@font-face { font-family: 'Vazirmatn Variable'; src: url(fonts/vazirmatn-arabic.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: 'Vazirmatn Variable'; src: url(fonts/vazirmatn-latin.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF,U+2000-206F,U+20AC,U+2122,U+2212; }

:root {
  --night: #070B1A;
  --ivory: #F6F1E7;
  --soft: #C9CEDA;
  --gold: #F5B942;
  --gold-hi: #FFD27A;
  --firoozeh: #3BD6C6;
  --coral: #FF7A66;
  --glass: rgb(13 19 42 / .72);
  --edge: rgb(246 241 231 / .14);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: clamp(16px, 5vw, 72px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--night); scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ivory); background: var(--night); font: 400 1.0625rem/1.85 'Vazirmatn Variable', system-ui, sans-serif; overflow-x: clip; }
:root[lang='en'] body { line-height: 1.65; }
h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: var(--gold-hi); }
::selection { background: var(--gold); color: var(--night); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; }

.skip { position: fixed; inset-block-start: 8px; inset-inline-start: 8px; z-index: 30; padding: 8px 16px; background: var(--gold); color: var(--night); transform: translateY(-200%); }
.skip:focus { transform: none; }

/* layers of the night: sky, particles, then content */
.sky { position: fixed; inset: 0; z-index: 0; background: radial-gradient(90% 70% at 25% 30%, #16224d 0%, transparent 62%), radial-gradient(70% 60% at 85% 90%, #1a1740 0%, transparent 60%), var(--night); }
:root[dir='ltr'] .sky { transform: scaleX(-1); }
#gl { position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%; display: block; pointer-events: none; }
.leader { position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity .3s; }
.leader.on { opacity: 1; }
.leader path { stroke: var(--firoozeh); stroke-width: 1; }
.leader circle { fill: var(--firoozeh); }
.top, main, .foot { position: relative; z-index: 2; }
.progress { position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 25; height: 3px; background: linear-gradient(90deg, var(--firoozeh), var(--gold)); transform: scaleX(0); transform-origin: 100% 50%; }
:root[dir='ltr'] .progress { transform-origin: 0 50%; }

/* header */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; padding: 14px var(--gutter); position: fixed; inset-inline: 0; inset-block-start: 0; z-index: 20; border-block-end: 1px solid transparent; transition: padding .25s var(--ease), background-color .25s, border-color .25s; }
.top.scrolled { padding-block: 6px; background: rgb(7 11 26 / .86); border-block-end-color: var(--edge); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.brand { color: var(--ivory); font-weight: 800; font-size: 1.1875rem; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.top nav, .nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; }
.menu-btn { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; background: none; border: 1px solid rgb(246 241 231 / .35); border-radius: 50%; color: var(--ivory); cursor: pointer; }
.menu-btn:hover { border-color: var(--gold); color: var(--gold-hi); }
.nav-link { position: relative; color: var(--soft); text-decoration: none; font-size: 1rem; display: inline-flex; align-items: center; min-height: 44px; transition: color .15s; }
.nav-link::after { content: ''; position: absolute; inset-inline: 0; inset-block-end: 8px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .25s var(--ease); }
.nav-link:hover { color: var(--ivory); }
.nav-link:hover::after, .nav-link[aria-current]::after { transform: scaleX(1); }
.nav-link[aria-current] { color: var(--ivory); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 26px; border: 1px solid transparent; border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, box-shadow .25s; }
.btn-solid { background: var(--gold); color: #1B1405; box-shadow: 0 0 0 0 rgb(245 185 66 / 0); }
.btn-solid:hover { background: var(--gold-hi); color: #1B1405; box-shadow: 0 8px 40px -6px rgb(245 185 66 / .55); }
.btn-line { background: rgb(13 19 42 / .5); color: var(--ivory); border-color: rgb(246 241 231 / .35); }
.btn-line:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn-lg { min-height: 58px; padding-inline: 36px; font-size: 1.125rem; }
.btn-sm { min-height: 44px; padding-inline: 22px; font-size: 1rem; }
.btn:disabled { opacity: .65; cursor: progress; }

/* shared type */
.gold { color: var(--gold); }
.coral { color: var(--coral); }
.label { color: var(--gold); font-weight: 700; font-size: 1rem; margin-block-end: 14px; }
h2 { font-size: clamp(2rem, 4.6vw, 3.625rem); line-height: 1.32; font-weight: 800; margin-block-end: 24px; text-wrap: balance; }
:root[lang='en'] h2 { line-height: 1.12; letter-spacing: -.025em; }
.body { color: var(--soft); max-width: 40em; font-size: 1.125rem; }
.body + .body { margin-block-start: 12px; }
.note { color: var(--soft); font-size: .9375rem; margin-block-start: 20px; max-width: 42em; }
.glass { background: var(--glass); border: 1px solid var(--edge); border-radius: 20px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

/* the swarm that builds the page */
.b-pending .top, .b-pending main, .b-pending .foot { opacity: 0; }
.b-wait { opacity: 0 !important; }
.b-rest { visibility: hidden; }
.b-layer { position: fixed; inset: 0; z-index: 40; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .35s; }
.b-layer.on { opacity: 1; }
.b-cursor { position: absolute; top: 0; left: 0; color: var(--c); will-change: transform; filter: drop-shadow(0 2px 5px rgb(0 0 0 / .55)); }
.b-cursor svg { display: block; transition: transform .1s; }
.b-cursor.b-press svg { transform: scale(.72); }
.b-box { position: absolute; top: 0; left: 0; border: 1px solid var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); transition: opacity .2s; }
.b-box::before, .b-box::after { content: ''; position: absolute; width: 7px; height: 7px; background: #fff; border: 1px solid var(--c); }
.b-box::before { inset-block-start: -4px; inset-inline-start: -4px; }
.b-box::after { inset-block-end: -4px; inset-inline-end: -4px; }
.b-box.b-fade { opacity: 0; }
.b-badge { position: absolute; inset-block-end: -24px; inset-inline-start: 50%; translate: 50% 0; padding: 0 7px; border-radius: 5px; background: var(--c); color: #0B0F1E; font-size: .6875rem; font-weight: 700; line-height: 1.6; white-space: nowrap; direction: ltr; }
:root[dir='ltr'] .b-badge { translate: -50% 0; }
.b-caret { position: absolute; top: 0; left: 0; width: 2px; background: var(--c); box-shadow: 0 0 8px var(--c); }
.b-bar { position: fixed; inset-block-end: 16px; inset-inline-start: 50%; translate: 50% 0; z-index: 41; display: flex; align-items: center; gap: 12px; padding: 5px 6px 5px 16px; background: rgb(13 19 42 / .92); border: 1px solid var(--edge); border-radius: 999px; font-size: .875rem; white-space: nowrap; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
:root[dir='rtl'] .b-bar { padding: 5px 16px 5px 6px; }
:root[dir='ltr'] .b-bar { translate: -50% 0; }
.b-bar.on { opacity: 1; visibility: visible; }
.b-bar button { min-height: 36px; padding-inline: 14px; background: none; border: 1px solid rgb(246 241 231 / .35); border-radius: 999px; color: var(--ivory); font: inherit; font-weight: 700; cursor: pointer; }
.b-bar button:hover { border-color: var(--gold); color: var(--gold-hi); }
/* On a phone the bottom of the first screen is the main button, so the bar sits under the menu. */
@media (max-width: 899px) { .b-bar { inset-block-end: auto; inset-block-start: 68px; } }
@media print { .b-wait { opacity: 1 !important; } .b-layer, .b-bar { display: none; } }

/* hero */
.hero { position: relative; min-height: 100svh; padding: 110px var(--gutter) 56px; display: flex; align-items: center; }
.hero-copy { max-width: min(920px, 60vw); }
.kicker { color: var(--gold); font-weight: 700; font-size: 1.0625rem; margin-block-end: 18px; }
h1 { font-size: clamp(2.75rem, 5.7vw, 6rem); line-height: 1.25; font-weight: 900; margin-block-end: 26px; }
:root[lang='en'] h1 { line-height: 1.04; letter-spacing: -.035em; font-size: clamp(2.75rem, 5vw, 5.5rem); }
.mask { display: block; overflow: hidden; padding-block: .14em; margin-block: -.14em; }
.mask-in { display: block; }
.lead { font-size: clamp(1.125rem, 1.8vw, 1.375rem); color: var(--ivory); max-width: 34em; margin-block-end: 34px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.shield-fallback { display: none; position: absolute; inset-block-start: 20%; inset-inline-end: 7%; width: 30vw; height: auto; }
.no-gl .shield-fallback { display: block; }
.no-gl #gl { display: none; }
.scroll-cue { position: absolute; inset-block-end: 24px; inset-inline-start: 50%; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--soft); font-size: .875rem; }
.scroll-cue i { display: block; width: 1px; height: 44px; background: linear-gradient(var(--gold), transparent); }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: top; } 100% { transform: scaleY(1); opacity: 0; transform-origin: top; } }
.motion .scroll-cue i { animation: cue 2.4s ease-in-out infinite; }

/* chapters that leave room for the 3D figure */
.chapter { padding: clamp(90px, 14vh, 150px) var(--gutter); }
.col { max-width: min(620px, 48vw); }
.col-wide { max-width: min(860px, 62vw); }
.center { padding: clamp(90px, 14vh, 150px) var(--gutter); text-align: center; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-block-start: 34px; }
.duo .glass { padding: 22px; }
.duo h3 { font-size: 1.5rem; font-weight: 800; margin-block-end: 6px; }
.duo p { color: var(--soft); font-size: 1rem; line-height: 1.75; }

.floors { margin-block-start: 56px; }
.floor { padding: 26px 28px; margin-block-end: 34vh; border-inline-start: 3px solid var(--edge); }
.floor:last-child { margin-block-end: 6vh; }
.floor.is-active { border-color: var(--firoozeh); background: rgb(13 26 48 / .86); }
.floor h3 { font-size: clamp(1.375rem, 2.3vw, 1.875rem); line-height: 1.45; font-weight: 800; margin-block-end: 8px; }
.floor p { color: var(--soft); }
.term { display: inline-block; margin-block-start: 12px; padding: 2px 12px; border: 1px solid rgb(59 214 198 / .45); border-radius: 999px; color: var(--firoozeh); font-size: .875rem; }

/* work */
.work { min-height: 100svh; display: flex; align-items: center; justify-content: center; }
.work-in { max-width: 1040px; margin-inline: auto; }
.work-name { font-size: clamp(3.5rem, 13vw, 10rem); line-height: 1; font-weight: 900; letter-spacing: -.04em; color: var(--gold); margin-block: 6px 12px; text-shadow: 0 0 60px rgb(245 185 66 / .35); }
.work-tag { font-size: clamp(1.25rem, 2.6vw, 1.875rem); font-weight: 700; margin-block-end: 28px; }
.work-card { max-width: 860px; margin-inline: auto; padding: 28px; text-align: start; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.work-card p { color: var(--ivory); }
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; margin-block-start: 14px; text-align: start; }
.work-item { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 24px; }
.work-item h3 { font-size: 1.5rem; line-height: 1.4; font-weight: 800; color: var(--gold); }
.work-item-tag { font-weight: 700; }
.work-item p:not(.work-item-tag) { color: var(--soft); flex: 1; }
.work-item .btn { margin-block-start: 8px; }
#work .note { margin-inline: auto; }

/* years */
.years { min-height: 110svh; display: flex; align-items: center; justify-content: center; }
.years-num { font-size: clamp(8rem, 26vw, 22rem); line-height: 1; font-weight: 900; color: var(--ivory); text-shadow: 0 0 90px rgb(245 185 66 / .45); font-variant-numeric: tabular-nums; }
.years-num sup { color: var(--gold); font-size: .42em; line-height: 0; vertical-align: .95em; }
.years-num small { display: block; color: var(--gold); font-size: clamp(1.25rem, 3vw, 2rem); font-weight: 700; line-height: 1.4; }
.years .body { margin: 12px auto 0; }
.span { display: grid; gap: 10px; justify-items: center; margin-block-start: 34px; }
.span li { padding: 6px 18px; background: var(--glass); border: 1px solid var(--edge); border-radius: 999px; font-size: 1rem; }

/* choices */
.picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-block-start: 30px; }
.pick { display: block; font: inherit; color: inherit; text-align: start; padding: 20px 22px; cursor: pointer; transform-style: preserve-3d; will-change: transform; }
.pick:hover { border-color: var(--gold); }
.pick[aria-pressed='true'] { border-color: var(--gold); background: rgb(58 44 16 / .78); }
.pick-title { display: block; font-weight: 800; font-size: 1.1875rem; line-height: 1.6; transform: translateZ(26px); }
.pick-sub { display: block; color: var(--soft); font-size: .9375rem; line-height: 1.7; transform: translateZ(14px); }
.answer { margin-block-start: 12px; padding: 22px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.answer-copy { flex: 999 1 300px; min-width: 0; }
.answer-copy h3 { font-size: 1.3125rem; line-height: 1.6; font-weight: 800; color: var(--gold-hi); margin-block-end: 4px; }
.answer-copy p { color: var(--soft); }
@keyframes swap { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.motion .answer-copy.swap { animation: swap .5s var(--ease) both; }

/* steps */
.how-in { max-width: 1120px; margin-inline: auto; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-block-start: 28px; text-align: start; }
.steps li { padding: 26px; }
.step-num { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--gold); color: #1B1405; font-weight: 900; font-size: 1.375rem; }
.steps h3 { font-size: 1.3125rem; font-weight: 800; margin-block: 16px 6px; }
.steps p { color: var(--soft); }

/* proof */
.checks { margin-block-start: 28px; padding: 6px 22px; }
.checks li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; border-block-end: 1px solid var(--edge); line-height: 1.6; }
.checks li:last-child { border-block-end: 0; }
.checks b { flex: none; font-weight: 800; color: var(--soft); }
.checks b[data-state='pass'] { color: var(--firoozeh); }
.checks b[data-state='fail'] { color: var(--coral); }

/* contact */
.form-card { padding: clamp(20px, 3vw, 30px); margin-block-start: 26px; }
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; }
.field input, .field textarea { font: inherit; color: var(--ivory); width: 100%; min-height: 52px; padding: 10px 16px; background: rgb(5 8 20 / .65); border: 1px solid rgb(246 241 231 / .4); border-radius: 12px; transition: border-color .15s; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
:root[dir='rtl'] .field .ltr { text-align: right; }
.field [aria-invalid='true'] { border-color: var(--coral); }
.err { color: #FF9C8C; font-size: .9375rem; line-height: 1.6; }
.err:empty { display: none; }
.form-err { font-weight: 500; }
.privacy { color: var(--soft); font-size: .9375rem; line-height: 1.7; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.sent { text-align: center; padding-block: 24px; }
.sent h3 { font-size: 1.75rem; font-weight: 900; margin-block-end: 6px; }
.sent p { color: var(--soft); margin-block-end: 18px; }
.channels { margin-block-start: 16px; display: grid; gap: 8px; }
.channel-note { padding: 12px 20px; background: rgb(245 185 66 / .12); border: 1px solid rgb(245 185 66 / .45); border-radius: 14px; font-weight: 500; line-height: 1.7; }
.channel { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 8px 20px; background: var(--glass); border: 1px solid var(--edge); border-radius: 14px; color: var(--ivory); text-decoration: none; transition: border-color .15s; }
.channel:hover { border-color: var(--gold); color: var(--ivory); }
.channel b { font-weight: 700; }
.channel span { color: var(--soft); font-size: .9375rem; overflow-wrap: anywhere; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding: 22px var(--gutter); color: var(--soft); font-size: .9375rem; border-block-start: 1px solid var(--edge); background: rgb(7 11 26 / .8); }

@media (max-width: 899px) {
  .top nav { gap: 0 8px; }
  .brand { font-size: 1.0625rem; }
  /* Without JavaScript the links stay in the bar, since nothing could open the panel. */
  .js .menu-btn { display: inline-flex; }
  .js .nav-links { display: none; position: absolute; inset-block-start: 100%; inset-inline: 0; flex-direction: column; align-items: stretch; padding: 6px var(--gutter) 14px; background: rgb(7 11 26 / .96); border-block-end: 1px solid var(--edge); }
  .js .top.open { background: rgb(7 11 26 / .96); }
  .js .top.open .nav-links { display: flex; }
  .js .nav-link { min-height: 52px; font-size: 1.125rem; border-block-end: 1px solid var(--edge); }
  .js .nav-link::after { display: none; }
  .js .nav-link:last-child { border-block-end: 0; }
  .js .nav-link[aria-current] { color: var(--gold-hi); }
  /* The figure sits above the words on a phone, and text keeps a panel behind it. */
  .hero { min-height: calc(100svh - 60px); padding-block-start: 40vh; align-items: flex-end; padding-block-end: 36px; }
  .hero-copy { max-width: none; }
  /* Each headline line stays whole on a phone; the size is set so the longer one fits. */
  h1 { font-size: 9.8vw; }
  h1 .mask-in { white-space: nowrap; }
  :root[lang='en'] h1 { font-size: 11.4vw; }
  .scroll-cue { display: none; }
  .col, .col-wide { max-width: none; }
  .chapter h2, .chapter .body, .chapter .label { position: relative; }
  .chapter .col { background: linear-gradient(rgb(7 11 26 / .55), rgb(7 11 26 / .55)); border-radius: 20px; }
  .floor { margin-block-end: 42vh; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .shield-fallback { inset-block-start: 110px; inset-inline-start: 50%; inset-inline-end: auto; translate: 50% 0; width: 52vw; }
  :root[dir='ltr'] .shield-fallback { translate: -50% 0; }
}
@media (max-width: 560px) {
  .picks, .duo { grid-template-columns: minmax(0, 1fr); }
  .cta .btn, .answer .btn, .form .btn, .work-card .btn { width: 100%; }
  .channel { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
