/* The public presentation follows BuildingHQ's navy, blue and mist palette. */
:root {
  --ink: #091a2f; --blue: #1e63e9; --blue-deep: #174fbf; --blue-line: #dbe7ff;
  --muted: #5b6472; --line: #dfe5ee; --paper: #fff; --page: #eef2f7;
  font-family: 'Instrument Sans', system-ui, sans-serif; color: var(--ink); background: var(--page);
  --header-height: 72px; --footer-height: 68px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-inline-size: 320px; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
button:focus-visible, a:focus-visible { outline: 3px solid #679cff; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { text-wrap: balance; letter-spacing: -.045em; line-height: 1.08; }
h1 { font-size: clamp(2.7rem, 4.8vw, 5.4rem); font-weight: 600; }
h1 span, h1 em { display: block; }
h1 em { color: #8fb3ff; font-style: normal; }
h2 { font-size: clamp(2rem, 3.2vw, 3.5rem); font-weight: 600; }
h3 { font-size: 1.45rem; letter-spacing: -.025em; line-height: 1.3; }
.lede { font-size: clamp(1rem, 1.3vw, 1.2rem); line-height: 1.7; color: var(--muted); margin-block-start: 1.4rem; max-inline-size: 58ch; }
.eyebrow { font-size: .73rem; font-weight: 700; letter-spacing: .13em; line-height: 1.6; color: var(--blue); margin-block-end: 1.25rem; }
.skip { position: fixed; inset-block-start: 8px; inset-inline-start: 12px; z-index: 100; padding: .7rem; background: white; transform: translateY(-160%); }
.skip:focus { transform: none; }
.deck-header { min-block-size: var(--header-height); display: flex; align-items: center; gap: 1.5rem; padding: .7rem clamp(1rem, 3vw, 3rem); background: var(--ink); color: white; position: relative; z-index: 40; }
.brand { display: inline-flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.brand img { border-radius: 8px; }
.brand b { font-size: 1.15rem; letter-spacing: -.03em; }
.home-link { font-size: .85rem; color: #becbdd; }
.deck-header a:hover { color: #8fb3ff; }
.deck-tools { display: flex; gap: .4rem; align-items: center; margin-inline-start: auto; }
.tool, .btn, .step { display: inline-flex; justify-content: center; align-items: center; gap: .55rem; border: 1px solid var(--line); background: white; color: var(--ink); border-radius: 9px; min-block-size: 40px; padding: .5rem .85rem; font-size: .85rem; line-height: 1.4; }
.deck-tools > .tool { border-color: transparent; background: transparent; color: #d2dceb; }
.deck-tools > .tool:hover { background: #ffffff12; color: white; }
.deck-header .bhq-language-menu { inline-size: auto; flex: 0 0 auto; }
.deck-header .bhq-language-toggle { inline-size: auto; background: #fff; color: var(--ink); }
.deck-header .dropdown-item { color: var(--ink); }
.deck { outline: none; touch-action: pan-y pinch-zoom; }
.slide { min-block-size: calc(100svh - var(--header-height) - var(--footer-height)); padding: clamp(2rem, 4vw, 4rem); max-inline-size: 1800px; margin-inline: auto; }
.deck-ready .slide { animation: settle .25s ease-out; }
@keyframes settle { from { opacity: .5; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cover { background: var(--ink); color: white; position: relative; display: flex; flex-direction: column; justify-content: center; gap: 3rem; max-inline-size: none; overflow: hidden; }
.cover::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 82% 30%, #1e63e92b, transparent 65%); pointer-events: none; }
.cover-grid { display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; gap: clamp(2rem, 4vw, 5rem); position: relative; max-inline-size: 1480px; inline-size: 100%; margin-inline: auto; }
.cover .lede { color: #bac8da; max-inline-size: 42ch; }
.cover .eyebrow { color: #8fb3ff; }
.cover-art { position: relative; padding-block-start: 3rem; min-inline-size: 0; }
.cover-photo { position: absolute; inset: 0 0 25% 20%; border-radius: 18px; background: linear-gradient(0deg, #091a2f44, #091a2f11), url('../img/portfolio-midrise.jpg') center/cover; opacity: .7; }
.cover-art .product-shot { position: relative; transform: rotate(-2deg); margin-inline-end: 1.3rem; box-shadow: 0 30px 75px #0005; }
.cover .primary { margin-block-start: 2rem; }
.proof { display: block; position: relative; color: #b9cbe5; margin-block-start: 1.25rem; text-align: center; font-size: .8rem; }
.cover-facts { border-block-start: 1px solid #ffffff22; padding-block-start: 1.3rem; display: flex; justify-content: space-between; gap: 1rem; font-size: .8rem; color: #afc0d7; position: relative; max-inline-size: 1480px; inline-size: 100%; margin-inline: auto; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; border-radius: 99px; padding: .9rem 1.4rem; font-size: .95rem; line-height: 1.4; }
.primary { color: white; background: var(--blue); }
.primary:hover { color: white; background: var(--blue-deep); }
.secondary { border: 1px solid #8192ab; color: #e6edf8; }
.secondary:hover { border-color: white; color: white; }
.feature-slide { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.4fr); align-items: center; gap: clamp(2rem, 4vw, 5rem); }
.feature-copy { max-inline-size: 34rem; }
.feature-points { padding: 0; list-style: none; margin-block: 1.7rem 0; display: grid; gap: .8rem; font-size: .9rem; color: #37445a; }
.feature-points li { position: relative; padding-inline-start: 1.2rem; line-height: 1.65; }
.feature-points li::before { content: ''; inline-size: 5px; block-size: 5px; border-radius: 50%; background: var(--blue); position: absolute; inset-inline-start: 0; inset-block-start: .65em; }
.feature-visual { min-inline-size: 0; }
.product-shot { margin: 0; border: 1px solid #cdd8e7; border-radius: 12px; background: white; box-shadow: 0 18px 55px #16345912; overflow: hidden; }
.shot-open { display: block; inline-size: 100%; padding: 0; border: 0; background: white; color: var(--muted); text-align: start; }
.shot-open:hover { background: #f4f7fc; }
.shot-open:focus-visible { outline-offset: -4px; }
.product-shot img { display: block; inline-size: 100%; block-size: auto; aspect-ratio: 3 / 2; }
.mobile-pwa-visual { display: grid; justify-items: center; }
.mobile-product-shot {
  inline-size: min(100%, 290px); margin-inline: auto; border: 7px solid #12233a;
  border-radius: 28px; box-shadow: 0 22px 60px #16345924; background: #12233a;
}
.mobile-product-shot .shot-open { border-radius: 20px; overflow: hidden; }
.mobile-product-shot img { aspect-ratio: 390 / 844; object-fit: cover; }
.mobile-pwa-visual .caption { text-align: center; max-inline-size: 36ch; }
.browser-bar { display: flex; gap: 5px; align-items: center; block-size: 30px; padding-inline: 12px; border-block-end: 1px solid #e6ebf2; font-size: 9px; direction: ltr; }
.browser-bar i { inline-size: 5px; block-size: 5px; border-radius: 50%; background: #c7d1df; }
.browser-bar span { margin-inline-start: 10px; font-weight: 500; letter-spacing: .02em; }
.browser-bar b { margin-inline-start: auto; font-size: 14px; font-weight: 400; }
.caption { font-size: .73rem; line-height: 1.6; color: var(--muted); margin-block-start: 1rem; }
.cards-slide { display: flex; flex-direction: column; justify-content: center; gap: 2.8rem; }
.section-intro { max-inline-size: 850px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.feature-card { min-inline-size:0; overflow-wrap:anywhere; padding: clamp(1.4rem, 2.7vw, 2.6rem); border: 1px solid var(--line); background: white; border-radius: 14px; }
.feature-card p { margin-block-start: 1rem; color: var(--muted); line-height: 1.8; font-size: .95rem; }
.card-number { color: var(--blue); font-size: .85rem; display: block; margin-block-end: 2.5rem; }
.language-slide { display: flex; flex-direction: column; justify-content: center; gap: 1.5rem; }
.language-slide h2 { font-size: clamp(2rem, 3vw, 3rem); }
.language-slide .lede { max-inline-size: 80ch; margin-block-start: .8rem; font-size: 1rem; }
.language-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; max-inline-size: 1120px; }
.language-pair .product-shot { max-inline-size: 570px; }
.language-list { display: flex; gap: 1.6rem; flex-wrap: wrap; color: var(--muted); font-size: .8rem; }
.closing { background: var(--ink); color: white; display: grid; align-items: center; position: relative; overflow: hidden; max-inline-size: none; }
.closing-copy { position: relative; max-inline-size: 880px; margin-inline: auto; text-align: center; padding-block: 3rem; }
.closing h2 { font-size: clamp(2.8rem, 5.5vw, 5.5rem); }
.closing .eyebrow { color: #8fb3ff; }
.closing .lede { color: #bac8da; margin-inline: auto; }
.closing-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-block: 2.5rem 1.5rem; }
.guide-reference {display:block;margin-block:1rem;text-decoration:underline;text-underline-offset:.2em}
.contact { font-size: .85rem; color: #afc0d7; }
.closing-orbit { position: absolute; inline-size: 75vw; block-size: 75vw; border: 1px solid #ffffff0c; border-radius: 50%; inset-inline-start: 12.5vw; box-shadow: 0 0 0 6vw #ffffff03, 0 0 0 12vw #ffffff03; }
.deck-footer { position: sticky; inset-block-end: 0; z-index: 30; display: flex; align-items: center; gap: 1rem; justify-content: space-between; background: #fff; min-block-size: var(--footer-height); padding: .75rem clamp(1rem, 3vw, 3rem); border-block-start: 1px solid var(--line); }
.step { min-inline-size: 112px; border-color: transparent; }
.step:hover { background: var(--page); }
.step:disabled { opacity: .35; cursor: default; }
.position { display: flex; align-items: center; gap: 1.5rem; min-inline-size: 0; font-size: .78rem; color: var(--muted); }
#slide-status { flex-shrink: 0; color: var(--ink); }
#slide-name { max-inline-size: 60ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
progress { position: absolute; inset-block-start: -2px; inset-inline: 0; inline-size: 100%; block-size: 2px; border: 0; appearance: none; background: #dfe7f3; }
progress::-webkit-progress-bar { background: #dfe7f3; }
progress::-webkit-progress-value { background: var(--blue); }
progress::-moz-progress-bar { background: var(--blue); }
dialog { border: 1px solid var(--line); padding: 1.5rem; border-radius: 16px; color: var(--ink); max-inline-size: calc(100vw - 2rem); max-block-size: calc(100svh - 2rem); inline-size: 850px; box-shadow: 0 32px 110px #0004; }
dialog::backdrop { background: #071629cc; backdrop-filter: blur(5px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-block-end: 1.5rem; }
.dialog-heading h2 { font-size: 1.5rem; }
#slide-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.index-item { text-align: start; background: var(--page); border: 1px solid transparent; border-radius: 8px; padding: 1rem; font-size: .85rem; line-height: 1.6; color: var(--ink); }
.index-item span { display: block; color: var(--blue); margin-block-end: .4rem; }
.index-item[aria-current="true"] { border-color: var(--blue); background: #eaf1ff; }
#lightbox { inline-size: 1480px; }
#lightbox-image { display: block; inline-size: 100%; block-size: auto; max-block-size: calc(100svh - 9rem); object-fit: contain; }
html[dir="rtl"] { font-family: 'Vazirmatn', Tahoma, sans-serif; }
html[dir="rtl"] .direction-arrow { transform: scaleX(-1); }
html[lang="fa"] *:not(code):not(pre) { font-family: 'Vazirmatn', Tahoma, sans-serif !important; font-feature-settings: 'pnum' !important; letter-spacing: 0 !important; }
@media (min-width: 1800px) { .feature-slide { gap: 6rem; } }
@media (max-width: 1050px) {
  :root { --header-height: 110px; }
  .deck-header { flex-wrap: wrap; gap: .65rem 1rem; }
  .deck-tools { justify-content: flex-end; }
  .home-link { margin-inline-end: auto; }
  .feature-slide { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2rem; }
  h2 { font-size: 2rem; }
}
@media (max-width: 760px) {
  :root { --header-height: 120px; }
  .deck-header { padding: .7rem 1rem; }
  .deck-tools { inline-size: 100%; justify-content: space-between; gap: .2rem; }
  .tool { white-space: nowrap; font-size: .72rem; padding: .4rem .45rem; gap: .3rem; }
  .deck-tools > .tool > [aria-hidden] { display: none; }
  .deck-header .bhq-current-language { display: none; }
  .deck-header .bhq-language-menu .dropdown-menu {
    position: absolute; inline-size: 13rem; max-inline-size: calc(100vw - 2rem);
    inset-inline-end: 0; inset-inline-start: auto;
  }
  #fullscreen-button { min-inline-size: 40px; }
  .deck-tools > #fullscreen-button > [aria-hidden] { display: inline; font-size: 1rem; }
  #fullscreen-button > [data-i18n] {
    position: absolute; inline-size: 1px; block-size: 1px; padding: 0;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  .deck-header .bhq-language-toggle { min-inline-size: 52px; padding: .5rem; }
  .slide { padding: 2rem 1.2rem; }
  .cover-grid, .feature-slide, .cards { grid-template-columns: minmax(0, 1fr); }
  .cover-grid { gap: 1.5rem; }
  h1 { font-size: clamp(2.7rem, 9vw, 4.5rem); }
  .cover { gap: 2rem; }
  .cover-art { padding-block-start: 1.2rem; }
  .cover-art .product-shot { transform: none; margin-inline-end: 0; }
  .cover .primary { margin-block-start: 1.3rem; }
  .cover-facts { font-size: .65rem; flex-wrap: wrap; }
  .feature-slide { gap: 2rem; align-content: center; }
  .feature-copy { max-inline-size: none; }
  .feature-points { margin-block-start: 1.2rem; gap: .5rem; font-size: .85rem; }
  .cards-slide { gap: 1.5rem; }
  .cards { gap: .8rem; }
  .feature-card { padding: 1.4rem; }
  .card-number { margin-block-end: .8rem; }
  .language-pair { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .mobile-product-shot { inline-size: min(100%, 225px); }
  .language-list { gap: .8rem 1.2rem; }
  .position { font-size: .72rem; }
  #slide-name { display: none; }
  .deck-footer { padding-inline: .65rem; gap: .2rem; }
  .step { min-inline-size: 80px; font-size: .78rem; }
  #slide-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  dialog { padding: 1rem; }
  .closing-copy { padding-block: 2rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .deck-ready .slide { animation: none; } }
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  html, body { background: white; min-inline-size: 0; }
  .deck-header, .deck-footer, .skip, dialog, .cover-photo, .closing-orbit { display: none !important; }
  .slide, .slide[hidden] { display: flex !important; flex-direction: column; justify-content: center; break-after: page; min-block-size: 0; block-size: 184mm; padding: 8mm; overflow: hidden; max-inline-size: none; animation: none; }
  .slide:last-child { break-after: auto; }
  .cover, .closing { background: white; color: var(--ink); }
  .cover h1 em { color: var(--blue); }
  .cover .lede, .closing .lede, .cover-facts, .proof, .contact { color: var(--muted); }
  .cover-grid { grid-template-columns: .9fr 1.1fr; gap: 10mm; }
  .cover-art .product-shot { transform: none; }
  .cover-facts { border-color: var(--line); }
  .cover .primary, .closing-actions { display: none; }
  .slide.feature-slide, .slide.feature-slide[hidden] { display: grid !important; grid-template-columns: .7fr 1.3fr; gap: 10mm; }
  h1, .closing h2 { font-size: 32pt; }
  h2, .language-slide h2 { font-size: 23pt; }
  h3 { font-size: 16pt; }
  .lede, .language-slide .lede, .feature-card p { font-size: 11pt; line-height: 1.6; }
  .eyebrow { font-size: 8pt; }
  .feature-points { font-size: 10pt; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature-card { padding: 6mm; }
  .card-number { margin-block-end: 6mm; }
  .language-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-shot { box-shadow: none; }
  .mobile-product-shot { inline-size: 52mm; border-width: 2mm; }
  .closing-copy { padding: 0; }
}

/* The build the deck was published from. On the closing slide rather than in the footer, because
   the deck's only <footer> is its Previous/Next bar — navigation, not a colophon, and hidden until
   the deck starts. Quiet enough to ignore and there when somebody asks "which version is this?". */
.closing-colophon {
    margin-block-start: 1.75rem;
    font-size: .8125rem;
    opacity: .55;
}
.closing-colophon code { font-size: inherit; }
