/* Cinematic Clinic — director-led studio treatment. Near-black ground, bone type,
   one wide grotesque, full-bleed film, motion on scroll. Oxblood is the only colour. */
:root {
  --ink: #0B0B0D;
  --ink-2: #131316;
  --ink-3: #1B1B1F;
  --line: rgba(242, 239, 233, .10);
  --line-2: rgba(242, 239, 233, .18);
  --bone: #F2EFE9;
  --bone-2: #B5B1AA;
  --bone-3: #837F79;
  --ox: #C86A78;
  --ox-deep: #8E3A47;
  --ok: #8FC7A9;
  --err: #E39A9A;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1320px;
  --gutter: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
.lang-fa { --sans: "Vazirmatn", "Archivo", "Segoe UI", Tahoma, sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--bone); font-family: var(--sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.lang-fa { line-height: 1.9; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--ox); outline-offset: 3px; }
::selection { background: var(--ox-deep); color: #fff; }

/* type */
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.05; letter-spacing: -.025em; text-wrap: balance; color: var(--bone); }
/* EN display type — condensed uppercase, film-title register. FA is untouched:
   Persian has no case and Vazirmatn has no width axis. */
.lang-en h1, .lang-en h2, .lang-en .display, .lang-en .stat-n, .lang-en .num { font-variation-settings: "wdth" 70; }
.lang-en h1, .lang-en h2, .lang-en .display { text-transform: uppercase; letter-spacing: .012em; font-weight: 700; line-height: .92; }
.lang-en h3 { font-variation-settings: "wdth" 86; letter-spacing: .004em; font-weight: 600; }
.lang-en h1 { font-size: clamp(3rem, 7.2vw, 6.4rem); }
.lang-en h2 { font-size: clamp(2.3rem, 5vw, 4.3rem); }
.lang-en .stat-n { font-weight: 700; letter-spacing: .004em; }
/* the hero sub-line is body copy, not a title — keep it as set */
.lang-en .hero h1 { text-transform: none; letter-spacing: 0; font-weight: 400; line-height: 1.45; font-variation-settings: "wdth" 100; }
.lang-en .hero .display { font-size: clamp(3.2rem, 9.4vw, 8.8rem); letter-spacing: .006em; line-height: .88; max-width: 15ch; }
h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); letter-spacing: -.01em; }
.lang-fa h1, .lang-fa h2, .lang-fa h3 { letter-spacing: 0; font-weight: 700; line-height: 1.2; }
.lang-fa h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
p { margin: 0 0 18px; max-width: 62ch; }
strong { font-weight: 600; }
em { font-style: normal; color: var(--ox); }
.label { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-2); font-weight: 500; }
.lang-fa .label { letter-spacing: 0; text-transform: none; font-size: .9rem; }
.label.ox { color: var(--ox); }
.lead { font-size: clamp(1.15rem, 1.5vw, 1.4rem); line-height: 1.5; color: var(--bone-2); max-width: 46ch; letter-spacing: -.005em; }
.lang-fa .lead { line-height: 1.8; letter-spacing: 0; }
.muted { color: var(--bone-2); }
.link { color: var(--bone); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: border-color .2s; }
.link:hover { border-bottom-color: var(--ox); }
.arrow::after { content: " →"; }
[dir="rtl"] .arrow::after { content: " ←"; }

/* layout */
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section + .section { padding-top: 0; }
.rule { border-top: 1px solid var(--line); }
.narrow { max-width: 760px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--bone); color: var(--ink); padding: 8px 12px; z-index: 100; }
.skip:focus { top: 12px; }

/* nav */
.top { position: fixed; inset-inline: 0; top: 0; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.top.is-solid { background: color-mix(in srgb, var(--ink) 86%, transparent); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: -.01em; font-size: 1.05rem; flex: none; }
.brand-mark { width: 28px; height: 28px; border: 1.5px solid var(--bone); color: var(--bone); display: inline-grid; place-items: center; font-size: .66rem; font-weight: 600; letter-spacing: .06em; font-family: "Archivo", sans-serif; }
.lang-fa .brand { font-family: "Archivo", sans-serif; direction: ltr; }
.nav { display: flex; align-items: center; gap: 30px; font-size: .92rem; }
.nav a { color: var(--bone-2); flex: none; white-space: nowrap; transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--bone); }
.nav .lang { color: var(--bone-2); }
.nav .btn { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; flex-direction: column; justify-content: center; gap: 6px; cursor: pointer; }
.nav-toggle span { display: block; height: 1.5px; background: var(--bone); transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav { position: fixed; inset: 76px 0 0 0; background: var(--ink); flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 32px; gap: 0; font-size: 1.5rem; }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--bone); }
  .nav .btn { margin-top: 24px; justify-content: center; font-size: 1rem; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--bone); color: var(--ink); padding: 15px 26px; border: 1px solid var(--bone); border-radius: 999px; font-weight: 500; font-size: .95rem; cursor: pointer; font-family: inherit; line-height: 1; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.btn:hover { background: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--bone); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(242,239,233,.06); border-color: var(--bone); }
.btn-small { padding: 10px 18px; font-size: .88rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 30px; }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
}

/* hero */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 140px 0 48px; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; background: #000 center/cover no-repeat; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,11,13,.55) 0%, rgba(11,11,13,.15) 35%, rgba(11,11,13,.35) 65%, rgba(11,11,13,.94) 100%); }
.hero .label { margin-bottom: 22px; }
.hero .display { font-size: clamp(2.8rem, 8.2vw, 7.6rem); font-weight: 500; line-height: .98; letter-spacing: -.035em; max-width: 12ch; margin: 0 0 22px; text-wrap: balance; }
.lang-fa .hero .display { letter-spacing: 0; line-height: 1.15; font-weight: 700; max-width: 14ch; }
.hero .display em { color: var(--bone); opacity: .55; }
.hero h1 { font-size: clamp(1.15rem, 1.8vw, 1.5rem); font-weight: 400; letter-spacing: 0; line-height: 1.45; color: var(--bone-2); max-width: 40ch; font-variation-settings: "wdth" 100; }
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 56px; flex-wrap: wrap; }
.hero-foot .cta-row { margin-top: 0; }
.scroll-hint { display: inline-flex; align-items: center; gap: 12px; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-2); }
.lang-fa .scroll-hint { letter-spacing: 0; text-transform: none; font-size: .88rem; }
.scroll-hint::before { content: ""; width: 1px; height: 40px; background: linear-gradient(var(--bone), transparent); animation: drip 2.4s var(--ease) infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.play-btn { display: inline-flex; align-items: center; gap: 12px; background: transparent; border: 0; color: var(--bone); font: inherit; cursor: pointer; padding: 0; }
.play-btn .ring { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--bone); display: grid; place-items: center; transition: background .2s, transform .3s var(--ease); }
.play-btn:hover .ring { background: var(--bone); transform: scale(1.06); }
.play-btn:hover .ring::after { border-left-color: var(--ink); }
.play-btn .ring::after { content: ""; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent var(--bone); margin-inline-start: 3px; transition: border-color .2s; }
[dir="rtl"] .play-btn .ring::after { margin-inline-start: 0; margin-inline-end: 3px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.94); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.is-open { display: flex; }
.lightbox-frame { width: min(1400px, 100%); aspect-ratio: 16 / 9; background: #000; }
.lightbox-frame iframe { width: 100%; height: 100%; border: 0; }
.lightbox-close { position: absolute; top: 20px; inset-inline-end: 24px; background: none; border: 0; color: var(--bone); font: inherit; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; padding: 12px; }

/* led / built */
.led { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.led > div { background: var(--ink); padding: clamp(40px, 5vw, 72px) clamp(24px, 4vw, 56px); }
.led h2 { margin-bottom: 18px; }
.led p { color: var(--bone-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.tags span { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--bone-2); }
.lang-fa .tags span { letter-spacing: 0; text-transform: none; font-size: .86rem; }
@media (max-width: 800px) { .led { grid-template-columns: 1fr; } }

/* manifesto */
.manifesto { font-size: clamp(1.5rem, 3vw, 2.7rem); line-height: 1.25; letter-spacing: -.02em; max-width: 30ch; font-weight: 400; color: var(--bone); }
.manifesto strong { font-weight: 500; }
.manifesto .dim { color: var(--bone-3); }
.lang-fa .manifesto { letter-spacing: 0; line-height: 1.55; }

/* selected films — full-bleed stack */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.selected { display: grid; gap: clamp(48px, 6vw, 96px); }
.feature { display: grid; grid-template-columns: 1fr; gap: 22px; }
.feature .film-frame { aspect-ratio: 16 / 9; border: 0; }
.feature-meta { display: grid; grid-template-columns: 1.6fr 1fr auto; gap: 24px; align-items: start; }
.feature-meta h3 { font-size: clamp(1.6rem, 3vw, 2.6rem); letter-spacing: -.02em; }
.feature-meta p { margin: 0; color: var(--bone-2); font-size: .98rem; }
.feature-meta .label { padding-top: 6px; }
@media (max-width: 800px) { .feature-meta { grid-template-columns: 1fr; gap: 10px; } }

/* film facade (shared) */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid, .grid-4 { grid-template-columns: 1fr; } }
.film { display: block; }
.film-frame { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.film-frame img { width: 100%; height: 100%; object-fit: cover; opacity: .92;
  transform: translate3d(0, var(--py, 0), 0) scale(calc(var(--pz, 1) * var(--hz, 1)));
  transition: opacity .4s, scale 1.2s var(--ease); }
.film:hover .film-frame img { --hz: 1.05; opacity: 1; }
.film-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play { position: absolute; inset-inline-start: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(242,239,233,.6); background: rgba(11,11,13,.5); backdrop-filter: blur(6px); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.film:hover .play { background: var(--bone); border-color: var(--bone); }
.play::after { content: ""; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--bone); margin-inline-start: 3px; transition: border-color .2s; }
.film:hover .play::after { border-left-color: var(--ink); }
[dir="rtl"] .play::after { transform: scaleX(-1); margin-inline-start: 0; margin-inline-end: 3px; }
.film-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0 0; font-size: .95rem; }
.film-title { color: var(--bone); }
.film-cat { color: var(--bone-3); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; flex: none; }
.lang-fa .film-cat { letter-spacing: 0; text-transform: none; font-size: .85rem; }
.film.is-hidden { display: none; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(28px, 4vw, 48px); }
.chip { background: transparent; color: var(--bone-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 14px; font-family: inherit; font-size: .84rem; cursor: pointer; transition: all .2s; }
.chip span { color: var(--bone-3); }
.chip:hover { border-color: var(--bone); color: var(--bone); }
.chip.is-on { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.chip.is-on span { color: rgba(11,11,13,.65); }

/* process — big numerals */
.steps { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 120px 1fr 1.4fr; gap: 32px; padding: clamp(28px, 3.5vw, 48px) 0; border-bottom: 1px solid var(--line); align-items: start; }
.steps .num { font-size: clamp(2.4rem, 4vw, 4rem); line-height: .9; letter-spacing: -.03em; color: var(--bone-3); font-weight: 500; }
.steps strong { display: block; font-size: clamp(1.3rem, 2vw, 1.8rem); font-weight: 500; letter-spacing: -.015em; line-height: 1.15; }
.steps span.d { color: var(--bone-2); }
@media (max-width: 800px) { .steps li { grid-template-columns: 64px 1fr; } .steps span.d { grid-column: 2; } }

/* numbers */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.stats > div { background: var(--ink); padding: clamp(28px, 3vw, 44px) clamp(18px, 2vw, 28px); }
.stat-n { font-size: clamp(2.8rem, 5.5vw, 5.4rem); line-height: .95; letter-spacing: -.03em; font-weight: 500; font-variant-numeric: tabular-nums; display: block; margin-bottom: 14px; }
.stats .l { font-size: .92rem; color: var(--bone-2); line-height: 1.45; display: block; max-width: 22ch; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* positioning + closing */
.positioning { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.positioning h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); }
.positioning p { color: var(--bone-2); font-size: 1.08rem; }
@media (max-width: 800px) { .positioning { grid-template-columns: 1fr; } }
.closing { padding: clamp(96px, 14vw, 200px) 0; text-align: center; }
.closing h2 { font-size: clamp(2.4rem, 6vw, 5.6rem); letter-spacing: -.035em; max-width: 14ch; margin-inline: auto; }
.lang-fa .closing h2 { letter-spacing: 0; line-height: 1.2; }
.closing p { margin: 24px auto 0; color: var(--bone-2); }
.closing .cta-row { justify-content: center; }
.closing .link { color: var(--bone-2); font-size: .95rem; }

/* cards (offer pages) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--ink); padding: clamp(28px, 3vw, 44px) clamp(22px, 2.5vw, 36px); display: flex; flex-direction: column; gap: 12px; transition: background .3s; }
.card:hover { background: var(--ink-2); }
.card-k { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ox); }
.lang-fa .card-k { letter-spacing: 0; text-transform: none; font-size: .88rem; }
.card-t { font-size: clamp(1.5rem, 2.2vw, 2rem); letter-spacing: -.02em; font-weight: 500; line-height: 1.1; }
.card-d { color: var(--bone-2); font-size: .98rem; flex: 1; }
.card-more { color: var(--bone); font-size: .92rem; margin-top: 10px; }
@media (max-width: 800px) { .cards { grid-template-columns: 1fr; } }

/* page head (inner pages) */
.page-head { padding: clamp(160px, 22vh, 240px) 0 clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.page-head .label { margin-bottom: 22px; display: block; }
.page-head .lead { margin-top: 22px; max-width: 720px; }
.page-head h1 { max-width: 14ch; }

/* text blocks */
.list { padding-inline-start: 20px; margin: 0 0 18px; max-width: 62ch; }
.list li { margin-bottom: 10px; color: var(--bone-2); }
.list li strong { color: var(--bone); }
.list li::marker { color: var(--ox); }
.why-item { padding: clamp(24px, 3vw, 40px) 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; }
.why-item:last-child { border-bottom: 1px solid var(--line); }
.why-item h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); }
.why-item p { color: var(--bone-2); margin: 0; }
@media (max-width: 800px) { .why-item { grid-template-columns: 1fr; gap: 10px; } }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 22px 0; font-size: clamp(1.05rem, 1.4vw, 1.25rem); font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; letter-spacing: -.005em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--bone-3); font-size: 1.4rem; line-height: 1; flex: none; font-weight: 300; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 0 24px; color: var(--bone-2); max-width: 62ch; }
.statement { margin: 0 0 32px; padding: 0; font-size: clamp(1.4rem, 2.4vw, 2.1rem); line-height: 1.3; letter-spacing: -.015em; text-align: left; border-inline-start: 2px solid var(--ox); padding-inline-start: 24px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 0; }
.facts > div { background: var(--ink); padding: 18px 20px; }
.facts dt { font-size: .72rem; color: var(--bone-3); letter-spacing: .14em; text-transform: uppercase; }
.lang-fa .facts dt { letter-spacing: 0; text-transform: none; font-size: .86rem; }
.facts dd { margin: 6px 0 0; }
@media (max-width: 600px) { .facts { grid-template-columns: 1fr; } }
.modules { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.modules li { display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.mod-n { font-size: 1.6rem; color: var(--bone-3); line-height: 1.1; font-weight: 500; letter-spacing: -.02em; }
.mod-b { display: flex; flex-direction: column; gap: 6px; }
.mod-b strong { font-size: 1.2rem; font-weight: 500; }
.mod-b span { color: var(--bone-2); font-size: .97rem; }
.mod-len { color: var(--bone-3) !important; font-size: .74rem !important; letter-spacing: .12em; text-transform: uppercase; }
.academy-strip { border-block: 1px solid var(--line); padding: clamp(56px, 8vw, 110px) 0; display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.academy-strip p { color: var(--bone-2); }
@media (max-width: 800px) { .academy-strip { grid-template-columns: 1fr; } }
.note { color: var(--bone-3); font-size: .92rem; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 12px; }
.entity { font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.5; color: var(--bone-2); max-width: 60ch; }
.entity strong { color: var(--bone); font-weight: 500; }

/* forms */
.form { display: flex; flex-direction: column; gap: 18px; max-width: 640px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
label { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--bone-2); }
.lang-fa label { letter-spacing: 0; text-transform: none; font-size: .88rem; }
input, select, textarea { background: transparent; border: 0; border-bottom: 1px solid var(--line-2); color: var(--bone); padding: 12px 0; font-family: inherit; font-size: 1.05rem; width: 100%; border-radius: 0; transition: border-color .2s; }
input:focus, select:focus, textarea:focus { border-bottom-color: var(--bone); outline: none; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--bone-2) 50%), linear-gradient(135deg, var(--bone-2) 50%, transparent 50%); background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-inline-end: 28px; }
[dir="rtl"] select { background-position: 14px 50%, 9px 50%; padding-inline-end: 0; padding-inline-start: 28px; }
select option { background: var(--ink-2); }
textarea { resize: vertical; }
.hp { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); pointer-events: none; }
.form-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 10px 0 0; }
.form-note { font-size: .86rem; color: var(--bone-3); }
.form-status { min-height: 1.5em; margin: 0; font-size: .95rem; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-aside { border-top: 1px solid var(--line); padding-top: 24px; }
.contact-aside h2 { font-size: 1.4rem; margin-bottom: 14px; }
.contact-aside p { color: var(--bone-2); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* footer */
.foot { border-top: 1px solid var(--line); padding: clamp(56px, 7vw, 96px) 0 32px; color: var(--bone-2); font-size: .93rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.foot-grid a { display: block; color: var(--bone-2); padding: 4px 0; transition: color .2s; }
.foot-grid a:hover { color: var(--bone); }
.foot-brand { font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--bone); font-weight: 500; letter-spacing: -.025em; line-height: 1; margin-bottom: 18px; }
.lang-fa .foot-brand { font-family: "Archivo", sans-serif; direction: ltr; text-align: end; }
.foot-line { max-width: 34ch; }
.foot-print { color: var(--bone-3); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; margin-top: 18px; }
.lang-fa .foot-print { text-align: end; }
.foot-h { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-3); margin-bottom: 12px; }
.lang-fa .foot-h { letter-spacing: 0; text-transform: none; font-size: .88rem; }
.foot-credit { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: clamp(40px, 5vw, 64px); padding-top: 20px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--bone-3); }
.foot-credit a { color: var(--bone-2); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } }

/* =================================================================
   MOTION LAYER
   All of it is opt-out: html.no-motion (prefers-reduced-motion) and
   html:not(.js) both fall back to a complete, still page.
   ================================================================= */

/* --- Curtain: first paint and page-to-page handover --------------- */
.curtain {
  position: fixed; inset: 0; z-index: 200; background: var(--ink);
  display: grid; place-items: center; pointer-events: none;
  transform: translateY(0);
  transition: transform 1s cubic-bezier(.76, 0, .24, 1);
}
.curtain-mark {
  font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; color: var(--bone-3);
  opacity: 0; animation: markIn 1.1s var(--ease) forwards;
}
.curtain.is-up { transform: translateY(-101%); }
.curtain.is-up .curtain-mark { opacity: 0; transition: opacity .2s; animation: none; }
.curtain.is-down { transform: translateY(0); transition-duration: .46s; }
html:not(.js) .curtain { display: none; }
@keyframes markIn { 0% { opacity: 0 } 40% { opacity: 1 } 100% { opacity: .6 } }

/* --- Smooth scroll wrapper ---------------------------------------- */
html.has-smooth, html.has-smooth body { overscroll-behavior-y: none; }
html.has-smooth body { overflow-x: hidden; }
html.has-smooth #scroll { will-change: transform; }

/* --- Word masks ---------------------------------------------------- */
.w {
  display: inline-block; overflow: hidden; vertical-align: bottom;
  padding-bottom: .14em; margin-bottom: -.14em;
}
.wi {
  display: inline-block;
  transform: translateY(105%);
  opacity: 0;
  transition: transform 1s cubic-bezier(.16, 1, .3, 1), opacity .7s var(--ease);
}
.in .wi, .w.in .wi { transform: translateY(0); opacity: 1; }
html:not(.js) .wi, html.no-motion .wi { transform: none; opacity: 1; }

/* The hero headline is the first thing that moves — give it more room. */
.hero .display .wi { transition-duration: 1.25s; }

/* --- Cursor -------------------------------------------------------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 150; pointer-events: none;
  display: grid; place-items: center; opacity: 0;
  transition: opacity .3s;
  mix-blend-mode: difference;
}
.cursor.is-on { opacity: 1; }
.cursor-dot {
  position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--bone);
  transform: translate(-50%, -50%);
  transition: width .35s var(--ease), height .35s var(--ease), background .3s;
}
.cursor.is-link .cursor-dot { width: 46px; height: 46px; background: color-mix(in srgb, var(--bone) 28%, transparent); }
.cursor.is-big .cursor-dot { width: 92px; height: 92px; background: var(--bone); }
.cursor-label {
  position: absolute; transform: translate(-50%, -50%);
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink);
  opacity: 0; transition: opacity .25s; white-space: nowrap;
}
.lang-fa .cursor-label { letter-spacing: 0; text-transform: none; font-size: .8rem; }
.cursor.is-big .cursor-label { opacity: 1; }
@media (pointer: coarse) { .cursor { display: none; } }

/* --- Header hide on the way down ----------------------------------- */
.top { transform: translateY(0); transition: background .3s, border-color .3s, transform .5s var(--ease); }
.top.is-hidden { transform: translateY(-100%); }
body.nav-open .top { transform: none; }

/* --- Menu overlay --------------------------------------------------- */
body.is-locked, body.nav-open { overflow: hidden; }
@media (max-width: 900px) {
  .nav {
    display: flex; pointer-events: none; opacity: 0;
    transform: translateY(-12px);
    transition: opacity .45s var(--ease), transform .55s var(--ease);
  }
  body.nav-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
  body.nav-open .nav a { opacity: 1; transform: none; }
  .nav a:nth-child(1) { transition-delay: .06s } .nav a:nth-child(2) { transition-delay: .1s }
  .nav a:nth-child(3) { transition-delay: .14s } .nav a:nth-child(4) { transition-delay: .18s }
  .nav a:nth-child(5) { transition-delay: .22s } .nav a:nth-child(6) { transition-delay: .26s }
  .nav a:nth-child(7) { transition-delay: .3s }  .nav a:nth-child(8) { transition-delay: .34s }
  html:not(.js) .nav { opacity: 1; transform: none; pointer-events: auto; }
  html:not(.js) .nav a { opacity: 1; transform: none; }
}

/* --- Marquee -------------------------------------------------------- */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line);
  padding-block: clamp(18px, 2.4vw, 30px);
  user-select: none;
}
.marquee-track {
  display: flex; width: max-content; gap: 0;
  animation: slide 34s linear infinite;
}
.marquee-track span {
  display: inline-flex; align-items: center; white-space: nowrap;
  font-size: clamp(1.5rem, 3.4vw, 2.9rem); font-weight: 500;
  color: var(--bone-3); padding-inline: clamp(24px, 4vw, 56px);
}
.marquee-track span::after {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--ox); margin-inline-start: clamp(24px, 4vw, 56px);
}
@keyframes slide { to { transform: translateX(-50%); } }
[dir="rtl"] .marquee-track { animation-direction: reverse; }

/* --- Hero grain and shade ------------------------------------------- */
.hero-grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
  animation: grain 1.1s steps(3) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0) } 33% { transform: translate(-3%, 2%) } 66% { transform: translate(2%, -3%) }
}

/* --- Media reveal: stills wipe in rather than pop -------------------- */
.js .feature .film-frame, .js .hero-media { clip-path: inset(0 0 0 0); }
.js .feature .film { clip-path: inset(12% 0 12% 0); transition: clip-path 1.3s cubic-bezier(.16, 1, .3, 1); }
.js .feature.in .film { clip-path: inset(0 0 0 0); }

/* --- Link and button motion ----------------------------------------- */
.link { position: relative; }
.link::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -3px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: inline-start;
  transition: transform .5s var(--ease);
}
.link:hover::after { transform: scaleX(1); }
.btn { transition: background .25s, color .25s, border-color .25s, transform .35s var(--ease); }
.film-title { display: inline-block; transition: transform .5s var(--ease); }
.film:hover .film-title { transform: translateX(6px); }
[dir="rtl"] .film:hover .film-title { transform: translateX(-6px); }

/* --- Steps: the number leads, the text follows ----------------------- */
.js .steps li .num { transition: opacity .8s var(--ease), transform .9s var(--ease); opacity: 0; transform: translateY(14px); }
.js .steps li.in .num { opacity: 1; transform: none; }

/* --- Everything off ------------------------------------------------- */
html.no-motion .marquee-track,
html.no-motion .hero-grain,
html.no-motion .scroll-hint::before { animation: none; }
html.no-motion .curtain { display: none; }
html.no-motion .wi,
html.no-motion.js .reveal { opacity: 1; transform: none; transition: none; }
html.no-motion .feature .film { clip-path: none; }
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .hero-grain { animation: none; }
  .curtain { display: none; }
  .wi { opacity: 1; transform: none; }
  .feature .film { clip-path: none !important; }
}

/* =================================================================
   PHOTOGRAPHY
   ================================================================= */
.photo { display: block; position: relative; overflow: hidden; background: var(--ink-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* About — the portrait beside the statement */
.portrait-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.portrait-img { aspect-ratio: 4 / 5; }
.portrait-row .statement { margin-top: 0; }

/* Home — proof band: the claim with a photograph under it */
.proof-row { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.proof-img { aspect-ratio: 4 / 5; }
.proof-row h2 { margin: 14px 0 18px; }

@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* footer */
.foot { border-top: 1px solid var(--line); padding: clamp(56px, 7vw, 96px) 0 32px; color: var(--bone-2); font-size: .93rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.foot-grid a { display: block; color: var(--bone-2); padding: 4px 0; transition: color .2s; }
.foot-grid a:hover { color: var(--bone); }
.foot-brand { font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--bone); font-weight: 500; letter-spacing: -.025em; line-height: 1; margin-bottom: 18px; }
.lang-fa .foot-brand { font-family: "Archivo", sans-serif; direction: ltr; text-align: end; }
.foot-line { max-width: 34ch; }
.foot-print { color: var(--bone-3); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; margin-top: 18px; }
.lang-fa .foot-print { text-align: end; }
.foot-h { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-3); margin-bottom: 12px; }
.lang-fa .foot-h { letter-spacing: 0; text-transform: none; font-size: .88rem; }
.foot-credit { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: clamp(40px, 5vw, 64px); padding-top: 20px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--bone-3); }
.foot-credit a { color: var(--bone-2); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } }

/* =================================================================
   MOTION LAYER
   All of it is opt-out: html.no-motion (prefers-reduced-motion) and
   html:not(.js) both fall back to a complete, still page.
   ================================================================= */

/* --- Curtain: first paint and page-to-page handover --------------- */
.curtain {
  position: fixed; inset: 0; z-index: 200; background: var(--ink);
  display: grid; place-items: center; pointer-events: none;
  transform: translateY(0);
  transition: transform 1s cubic-bezier(.76, 0, .24, 1);
}
.curtain-mark {
  font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; color: var(--bone-3);
  opacity: 0; animation: markIn 1.1s var(--ease) forwards;
}
.curtain.is-up { transform: translateY(-101%); }
.curtain.is-up .curtain-mark { opacity: 0; transition: opacity .2s; animation: none; }
.curtain.is-down { transform: translateY(0); transition-duration: .46s; }
html:not(.js) .curtain { display: none; }
@keyframes markIn { 0% { opacity: 0 } 40% { opacity: 1 } 100% { opacity: .6 } }

/* --- Smooth scroll wrapper ---------------------------------------- */
html.has-smooth, html.has-smooth body { overscroll-behavior-y: none; }
html.has-smooth body { overflow-x: hidden; }
html.has-smooth #scroll { will-change: transform; }

/* --- Word masks ---------------------------------------------------- */
.w {
  display: inline-block; overflow: hidden; vertical-align: bottom;
  padding-bottom: .14em; margin-bottom: -.14em;
}
.wi {
  display: inline-block;
  transform: translateY(105%);
  opacity: 0;
  transition: transform 1s cubic-bezier(.16, 1, .3, 1), opacity .7s var(--ease);
}
.in .wi, .w.in .wi { transform: translateY(0); opacity: 1; }
html:not(.js) .wi, html.no-motion .wi { transform: none; opacity: 1; }

/* The hero headline is the first thing that moves — give it more room. */
.hero .display .wi { transition-duration: 1.25s; }

/* --- Cursor -------------------------------------------------------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 150; pointer-events: none;
  display: grid; place-items: center; opacity: 0;
  transition: opacity .3s;
  mix-blend-mode: difference;
}
.cursor.is-on { opacity: 1; }
.cursor-dot {
  position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--bone);
  transform: translate(-50%, -50%);
  transition: width .35s var(--ease), height .35s var(--ease), background .3s;
}
.cursor.is-link .cursor-dot { width: 46px; height: 46px; background: color-mix(in srgb, var(--bone) 28%, transparent); }
.cursor.is-big .cursor-dot { width: 92px; height: 92px; background: var(--bone); }
.cursor-label {
  position: absolute; transform: translate(-50%, -50%);
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink);
  opacity: 0; transition: opacity .25s; white-space: nowrap;
}
.lang-fa .cursor-label { letter-spacing: 0; text-transform: none; font-size: .8rem; }
.cursor.is-big .cursor-label { opacity: 1; }
@media (pointer: coarse) { .cursor { display: none; } }

/* --- Header hide on the way down ----------------------------------- */
.top { transform: translateY(0); transition: background .3s, border-color .3s, transform .5s var(--ease); }
.top.is-hidden { transform: translateY(-100%); }
body.nav-open .top { transform: none; }

/* --- Menu overlay --------------------------------------------------- */
body.is-locked, body.nav-open { overflow: hidden; }
@media (max-width: 900px) {
  .nav {
    display: flex; pointer-events: none; opacity: 0;
    transform: translateY(-12px);
    transition: opacity .45s var(--ease), transform .55s var(--ease);
  }
  body.nav-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
  body.nav-open .nav a { opacity: 1; transform: none; }
  .nav a:nth-child(1) { transition-delay: .06s } .nav a:nth-child(2) { transition-delay: .1s }
  .nav a:nth-child(3) { transition-delay: .14s } .nav a:nth-child(4) { transition-delay: .18s }
  .nav a:nth-child(5) { transition-delay: .22s } .nav a:nth-child(6) { transition-delay: .26s }
  .nav a:nth-child(7) { transition-delay: .3s }  .nav a:nth-child(8) { transition-delay: .34s }
  html:not(.js) .nav { opacity: 1; transform: none; pointer-events: auto; }
  html:not(.js) .nav a { opacity: 1; transform: none; }
}

/* --- Marquee -------------------------------------------------------- */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line);
  padding-block: clamp(18px, 2.4vw, 30px);
  user-select: none;
}
.marquee-track {
  display: flex; width: max-content; gap: 0;
  animation: slide 34s linear infinite;
}
.marquee-track span {
  display: inline-flex; align-items: center; white-space: nowrap;
  font-size: clamp(1.5rem, 3.4vw, 2.9rem); font-weight: 500;
  color: var(--bone-3); padding-inline: clamp(24px, 4vw, 56px);
}
.marquee-track span::after {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--ox); margin-inline-start: clamp(24px, 4vw, 56px);
}
@keyframes slide { to { transform: translateX(-50%); } }
[dir="rtl"] .marquee-track { animation-direction: reverse; }

/* --- Hero grain and shade ------------------------------------------- */
.hero-grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
  animation: grain 1.1s steps(3) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0) } 33% { transform: translate(-3%, 2%) } 66% { transform: translate(2%, -3%) }
}

/* --- Media reveal: stills wipe in rather than pop -------------------- */
.js .feature .film-frame, .js .hero-media { clip-path: inset(0 0 0 0); }
.js .feature .film { clip-path: inset(12% 0 12% 0); transition: clip-path 1.3s cubic-bezier(.16, 1, .3, 1); }
.js .feature.in .film { clip-path: inset(0 0 0 0); }

/* --- Link and button motion ----------------------------------------- */
.link { position: relative; }
.link::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -3px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: inline-start;
  transition: transform .5s var(--ease);
}
.link:hover::after { transform: scaleX(1); }
.btn { transition: background .25s, color .25s, border-color .25s, transform .35s var(--ease); }
.film-title { display: inline-block; transition: transform .5s var(--ease); }
.film:hover .film-title { transform: translateX(6px); }
[dir="rtl"] .film:hover .film-title { transform: translateX(-6px); }

/* --- Steps: the number leads, the text follows ----------------------- */
.js .steps li .num { transition: opacity .8s var(--ease), transform .9s var(--ease); opacity: 0; transform: translateY(14px); }
.js .steps li.in .num { opacity: 1; transform: none; }

/* --- Everything off ------------------------------------------------- */
html.no-motion .marquee-track,
html.no-motion .hero-grain,
html.no-motion .scroll-hint::before { animation: none; }
html.no-motion .curtain { display: none; }
html.no-motion .wi,
html.no-motion.js .reveal { opacity: 1; transform: none; transition: none; }
html.no-motion .feature .film { clip-path: none; }
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .hero-grain { animation: none; }
  .curtain { display: none; }
  .wi { opacity: 1; transform: none; }
  .feature .film { clip-path: none !important; }
}

/* =================================================================
   PHOTOGRAPHY
   ================================================================= */
.photo { display: block; position: relative; overflow: hidden; background: var(--ink-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* About — the portrait beside the statement */
.portrait-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.portrait-img { aspect-ratio: 4 / 5; }
.portrait-row .statement { margin-top: 0; }

/* Home — proof band: the claim with a photograph under it */
.proof-row { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.proof-img { aspect-ratio: 4 / 5; }
.proof-row h2 { margin: 14px 0 18px; }

/* Home — the operator, full-bleed above the led split */
.led-photo { display: block; width: 100%; margin: 0; }
.led-photo .photo { aspect-ratio: 21 / 9; }
@media (max-width: 760px) { .led-photo .photo { aspect-ratio: 3 / 2; } }

@media (max-width: 860px) {
  .portrait-row, .proof-row { grid-template-columns: 1fr; }
  .portrait-img, .proof-img { aspect-ratio: 3 / 2; }
}

/* =================================================================
   HERO ON SMALL SCREENS
   A 16:9 frame cropped to fill a 390×844 viewport loses about three
   quarters of the picture. On narrow screens the film keeps its own
   frame and the headline sits underneath it instead.
   ================================================================= */
@media (max-width: 760px) {
  .hero { min-height: 0; justify-content: flex-start; padding: 96px 0 44px; }
  .hero-media {
    position: relative; inset: auto; z-index: 0;
    width: 100%; aspect-ratio: 16 / 9; margin-bottom: clamp(26px, 6vw, 40px);
    background-size: cover; background-position: center;
  }
  .hero-media iframe, .hero-media video {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    min-width: 0; min-height: 0; transform: none;
  }
  .hero-shade, .hero-grain { display: none; }
  .hero .display { max-width: none; }
  .hero-foot { margin-top: 30px; }
}

/* Touch targets: inline and footer links sit at 15–22px tall, under the 24px
   WCAG 2.2 minimum. Padding lifts them on touch devices without moving anything
   on a mouse, where the smaller target is not a problem. */
@media (pointer: coarse) {
  .link, .foot-credit a, .foot-brand a, .foot a[href^="mailto"] { display: inline-block; padding-block: 6px; }
  .foot-credit span { display: inline-block; }
}

/* ---------------------------------------------------------------------
   FULL-BLEED FILM BAND + VERTICAL STRIP
   The band is the horizontal counterpart to the hero; the strip is the 9:16
   one. Both hold their aspect box before media loads so nothing reflows.
   --------------------------------------------------------------------- */
.band { position: relative; isolation: isolate; min-height: clamp(420px, 68vh, 760px); display: grid; align-items: end; overflow: hidden; margin: clamp(48px, 7vw, 104px) 0; }
.band-media { position: absolute; inset: 0; z-index: -2; background: var(--ink-2); }
.band-media img, .band-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.band-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,11,13,.72) 0%, rgba(11,11,13,.28) 42%, rgba(11,11,13,.86) 100%); }
.band-copy { padding-block: clamp(36px, 5vw, 72px); }
.band-copy h2 { max-width: 18ch; margin: 14px 0 26px; }
.lang-fa .band-copy h2 { max-width: 22ch; }
.band-copy .play-btn { margin-top: 4px; }

.vstrip { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 24px); margin-top: clamp(28px, 4vw, 48px); }
.vframe { display: block; position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 4px; background: var(--ink-2); border: 1px solid var(--line); }
.vframe video, .vframe img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(var(--hz, 1)); transition: transform .8s var(--ease); }
/* YouTube pillarboxes a 9:16 film inside a 16:9 thumbnail, so a centre crop of
   that thumbnail is the original portrait frame — no letterbox bars survive. */
a.vframe { position: relative; }
a.vframe .play { position: absolute; inset: 0; margin: auto; }
.vcard figcaption { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; }
.vcap-t { font-size: .98rem; color: var(--bone); }
.vcap-k { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--bone-3); }
.lang-fa .vcap-k { letter-spacing: 0; text-transform: none; font-size: .84rem; }
.vcard { margin: 0; }
.vcard:hover { --hz: 1.04; }

@media (max-width: 900px) {
  .vstrip { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(58vw, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .vstrip::-webkit-scrollbar { display: none; }
  .vcard { scroll-snap-align: start; }
}
@media (max-width: 560px) { .vstrip { grid-auto-columns: minmax(72vw, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  .vframe video { transition: none; transform: none; }
}

/* ---------------------------------------------------------------------
   TRUE ASPECT FOR FILM CARDS
   27 of the 59 films are 9:16 and 8 are square. Forcing them into a 16:9
   frame showed YouTube's blurred pillarbox bars, which read as a mistake.
   videos.json now records `orient`, so each card takes its real shape.
   --------------------------------------------------------------------- */
.film-frame.is-v { aspect-ratio: 9 / 16; }
.film-frame.is-s { aspect-ratio: 1 / 1; }
.grid { align-items: start; }

/* A full-width 9:16 feature would be enormous — a vertical film sits beside
   its copy instead of above it. */
.feature.is-v { grid-template-columns: minmax(0, 300px) minmax(0, 46ch); justify-content: start; gap: clamp(24px, 3vw, 56px); align-items: center; }
.feature.is-v .film-frame { aspect-ratio: 9 / 16; }
.feature.is-v .feature-meta { grid-template-columns: 1fr; gap: 14px; align-content: center; }
.feature.is-v .feature-meta h3 { font-size: clamp(1.5rem, 2.4vw, 2.2rem); }
@media (max-width: 760px) {
  .feature.is-v { grid-template-columns: 1fr; align-items: start; }
  .feature.is-v .film-frame { max-width: 320px; }
}

/* ---------------------------------------------------------------------
   FILMS PAGE — every film, in its own shape
   Horizontal runs full width, one per row. Portrait and square ride a
   drag-and-arrow carousel where a fixed card HEIGHT lets 9:16 and 1:1
   sit side by side without either being cropped.
   --------------------------------------------------------------------- */
.reel-stack { display: grid; gap: clamp(40px, 5vw, 88px); margin-top: clamp(24px, 3vw, 44px); }
.reel-item .film-frame { aspect-ratio: 16 / 9; }
.reel-item .film-meta { font-size: 1.02rem; padding-top: 18px; }
.reel-item .film-title { font-size: clamp(1.15rem, 1.8vw, 1.5rem); }

.carousel { position: relative; margin-top: clamp(22px, 3vw, 40px); }
.carousel-track {
  display: flex; gap: clamp(12px, 1.6vw, 24px);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  scrollbar-width: none; -ms-overflow-style: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track .film { flex: 0 0 auto; scroll-snap-align: start; }
.carousel-track .film-frame { height: clamp(340px, 52vh, 600px); width: auto; aspect-ratio: 9 / 16; }
.carousel-track .film-frame.is-s { aspect-ratio: 1 / 1; }
.carousel-track .film-meta { flex-direction: column; align-items: flex-start; gap: 4px; max-width: 28ch; }

.carousel-nav { display: flex; gap: 12px; margin-top: clamp(20px, 2.4vw, 32px); }
.carousel-btn {
  width: 48px; height: 48px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--line-2); color: var(--bone);
  display: grid; place-items: center; transition: background .2s, border-color .2s, opacity .2s;
}
.carousel-btn:hover:not(:disabled) { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.carousel-btn:disabled { opacity: .3; cursor: default; }
.carousel-btn::after { content: ""; width: 9px; height: 9px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; }
.carousel-btn[data-carousel-prev]::after { transform: rotate(-135deg); margin-inline-start: 3px; }
.carousel-btn[data-carousel-next]::after { transform: rotate(45deg); margin-inline-end: 3px; }
.lang-fa .carousel-btn[data-carousel-prev]::after { transform: rotate(45deg); }
.lang-fa .carousel-btn[data-carousel-next]::after { transform: rotate(-135deg); }

@media (prefers-reduced-motion: reduce) { .carousel-track { scroll-behavior: auto; } }

/* FILM META — the card carries a category and the clinic that commissioned it,
   so the meta line is now long enough to matter. `flex: none` on .film-cat let
   it push past a 263px carousel card at 390px; it must be allowed to shrink,
   and on a phone the two halves read better stacked than squeezed side by side. */
.film-meta { max-width: 100%; min-width: 0; }
.film-cat { flex: 0 1 auto; min-width: 0; }
.film-title { min-width: 0; overflow-wrap: anywhere; }
.carousel-track .film-meta { max-width: 100%; }
@media (max-width: 640px) {
  .film-meta { flex-direction: column; align-items: flex-start; gap: 5px; }
  .film-cat { letter-spacing: .08em; }
}

/* JOURNAL — the blog. Cards read as film cards so the site keeps one language:
   a still, a small meta line, a title, one line of lead. The body column is
   `narrow` like every other reading column on the site. */
.post-grid { display: grid; gap: clamp(28px, 3.4vw, 56px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.post-card { display: grid; gap: 12px; align-content: start; text-decoration: none; color: inherit; }
.post-card .film-frame { aspect-ratio: 16 / 9; }
.post-meta { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; color: var(--bone-3); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.lang-fa .post-meta { letter-spacing: 0; text-transform: none; font-size: .85rem; }
.post-title { font-size: clamp(1.15rem, 1.7vw, 1.45rem); line-height: 1.22; color: var(--bone); }
.post-lead { color: var(--bone-2); font-size: .98rem; line-height: 1.55; }
.post-card:hover .post-title { text-decoration: underline; text-underline-offset: .18em; }
.post-byline { color: var(--bone-3); font-size: .9rem; margin-top: 18px; }
.post-body > .wrap + .wrap { margin-top: clamp(20px, 2.4vw, 34px); }
.post-body h2 { margin-bottom: 14px; }
.link.back { display: inline-block; margin-bottom: 22px; }

/* =========================================================
   LIVE FILMS — every film plays, muted, while it is on screen.
   site.js mounts the player and adds .is-live once frames are
   really moving; until then the still holds the frame.
   ========================================================= */
.live { position: relative; overflow: hidden; background: #000; }
.live > iframe, .live > video, .live > .live-yt {
  position: absolute; top: 50%; left: 50%; width: 100%; height: 100%;
  transform: translate(-50%, -50%) scale(1.015);
  border: 0; pointer-events: none; opacity: 0;
  transition: opacity .9s var(--ease);
}
.live > video { object-fit: cover; }
.live.is-live > iframe, .live.is-live > video { opacity: 1; }
.live > .live-poster { transition: opacity .9s var(--ease); }
.film-frame.live > .live-poster { transition: opacity .9s var(--ease), scale 1.2s var(--ease); }
.live.is-live > .live-poster { opacity: 0; }
.film .play { transition: background .2s, border-color .2s, opacity .5s, transform .5s var(--ease); }
.film .live.is-live .play { opacity: 0; transform: scale(.85); }
.film:hover .live.is-live .play { opacity: 1; transform: none; }

/* cover: a 16:9 (or 9:16) film filling a box of any shape, cropped not boxed */
.live-cover { position: absolute; inset: 0; container-type: size; }
.live-cover > .live-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.live-cover > iframe, .live-cover > .live-yt { width: max(100cqw, 177.78cqh); height: max(100cqh, 56.25cqw); }
.live-cover.is-v > iframe, .live-cover.is-v > .live-yt { width: max(100cqw, 56.25cqh); height: max(100cqh, 177.78cqw); }
.live-cover > video { width: 100%; height: 100%; transform: translate(-50%, -50%); }

/* a player the visitor asked for, with sound: takes the frame over */
.live.is-player > iframe { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); z-index: 2; }
.live.is-player > .live-poster, .live.is-player .play { opacity: 0; }

/* ---- the pause control: a quiet icon in the header, every page ---- */
.motion {
  margin-inline-start: auto; flex: none; position: relative;
  display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0;
  border-radius: 50%; border: 1px solid var(--line-2); background: transparent;
  color: var(--bone-2); cursor: pointer; transition: color .2s, border-color .2s;
}
.motion:hover, .motion:focus-visible { color: var(--bone); border-color: var(--bone); }
.motion[hidden] { display: none; }
.motion + .nav-toggle { margin-inline-start: 4px; }
.motion-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.motion-icon { position: relative; width: 10px; height: 10px; }
.motion-icon::before, .motion-icon::after { content: ""; position: absolute; top: 0; width: 3px; height: 10px; background: currentColor; }
.motion-icon::before { left: 1px; }
.motion-icon::after { right: 1px; }
.motion.is-paused .motion-icon::before { left: 2px; width: 0; height: 0; background: none; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent currentColor; }
.motion.is-paused .motion-icon::after { display: none; }

/* ---- FILM PAGE — the title, the film playing, then everything about it ---- */
.film-hero { padding: clamp(92px, 9vw, 122px) 0 clamp(40px, 5vw, 72px); }
.film-hero-grid { display: grid; grid-template-areas: "head" "stage" "body"; row-gap: clamp(22px, 3vw, 36px); }
.film-hero:not(.is-v) .film-hero-grid { max-width: calc(64vh * 16 / 9); margin-inline: auto; }
.film-head { grid-area: head; }
.film-body { grid-area: body; }
.stage { grid-area: stage; position: relative; }
.stage > .live { width: 100%; aspect-ratio: 16 / 9; }
.stage.is-v > .live { width: min(100%, calc(min(76vh, 800px) * 9 / 16)); aspect-ratio: 9 / 16; margin-inline: auto; }
.stage.is-s > .live { width: min(100%, 76vh); aspect-ratio: 1 / 1; margin-inline: auto; }
.stage > .live > .live-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage-play { position: absolute; z-index: 3; inset-inline-start: clamp(16px, 2vw, 28px); bottom: clamp(16px, 2vw, 28px); text-shadow: 0 1px 14px rgba(0, 0, 0, .55); }
.stage-play[hidden] { display: none; }
.stage.is-v .stage-play { inset-inline-start: 50%; transform: translateX(-50%); white-space: nowrap; }
[dir="rtl"] .stage.is-v .stage-play { transform: translateX(50%); }
@media (min-width: 900px) {
  .film-hero.is-v .film-hero-grid { grid-template-columns: calc(min(76vh, 800px) * 9 / 16) minmax(0, 1fr); grid-template-areas: "stage head" "stage body"; grid-template-rows: auto 1fr; column-gap: clamp(40px, 5vw, 88px); align-items: start; }
  .film-hero.is-v .stage > .live { width: 100%; }
  .film-hero.is-v .film-body { align-self: start; }
}
.film-back { display: inline-block; text-decoration: none; }
.film-back::before { content: "\2190"; margin-inline-end: 10px; }
[dir="rtl"] .film-back::before { content: "\2192"; }
.lang-en .film-h1, .lang-fa .film-h1 { font-size: clamp(1.9rem, 3.6vw, 3.4rem); line-height: 1; letter-spacing: -.03em; margin: 16px 0 0; text-wrap: balance; }
.lang-fa .film-h1 { letter-spacing: 0; line-height: 1.3; }
.film-body .lead { max-width: 62ch; margin-top: 0; }
.film-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(138px, 1fr)); gap: 18px 28px; margin: 28px 0 22px; padding: 22px 0; border-block: 1px solid var(--line); }
.film-facts dt { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--bone-3); }
.lang-fa .film-facts dt { letter-spacing: 0; font-size: .8rem; }
.film-facts dd { margin: 6px 0 0; color: var(--bone); }
.film-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; }
.chip-static { cursor: default; pointer-events: none; }
.film-pager { display: flex; justify-content: space-between; gap: 24px; padding-block: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line); }
.film-pager a { display: grid; gap: 8px; max-width: 46%; color: var(--bone); text-decoration: none; }
.film-pager a:hover .film-pager-t { text-decoration: underline; text-underline-offset: 4px; }
.film-pager-next { text-align: end; margin-inline-start: auto; }
.film-pager-t { font-size: clamp(1rem, 1.6vw, 1.3rem); }

@media (prefers-reduced-motion: reduce) {
  .live > iframe, .live > video, .live > .live-poster { transition: none; }
}

/* =========================================================
   APERTURE — the identity, site-wide.
   Serif display (Instrument Serif) over the working grotesque. Sentence case:
   the films are loud, the type is quiet and expensive.
   ========================================================= */
:root { --serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif; --ink: #070708; }
.lang-en h1, .lang-en h2, .lang-en .display, .lang-en .stat-n {
  font-family: var(--serif); font-variation-settings: normal; text-transform: none;
  font-weight: 400; letter-spacing: -.012em; line-height: .98;
}
.lang-en h1 { font-size: clamp(3.2rem, 7.8vw, 7.4rem); }
.lang-en h2 { font-size: clamp(2.4rem, 5.4vw, 4.8rem); }
.lang-en h1 em, .lang-en h2 em, .lang-en .display em { font-style: italic; color: inherit; }
.lang-en .film-h1 { font-size: clamp(2.4rem, 4.6vw, 4.4rem); line-height: 1; letter-spacing: -.012em; }
.lang-en .closing h2 { font-size: clamp(2.6rem, 6vw, 5.6rem); }

/* =========================================================
   APERTURE — the home reel
   ========================================================= */
.page-home .top, .page-home .top.is-solid { background: linear-gradient(180deg, rgba(7,7,8,.62), rgba(7,7,8,0)); border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.page-home .top.is-hidden { transform: none; }
.ap { position: relative; }
.ap-track { display: none; position: relative; height: calc((var(--ap-n) - 1) * 80vh + 190vh); }
@media (max-width: 759px) { .ap-track { height: calc((var(--ap-n) - 1) * 70vh + 190vh); } }
.ap-js .ap-track { display: block; }
.ap-js .ap-grid { display: none; }
.ap-static .ap-track { display: none !important; }
.ap-static .ap-grid { display: grid !important; }
.ap-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #070708; }
.ap-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }

/* the name: over the first film while the reel runs, at the head of the page when it can't */
.ap-hero { position: relative; z-index: 2; width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; padding-top: clamp(128px, 15vw, 190px); }
.ap-js .ap:not(.ap-static) .ap-hero { position: absolute; top: 0; inset-inline: var(--gutter); width: auto; margin: 0; height: 100vh; height: 100svh; padding: 0 0 clamp(88px, 13vh, 150px);
  display: flex; flex-direction: column; justify-content: flex-end; pointer-events: none;
  opacity: 0; transform: translateY(18px); transition: opacity 1.4s var(--ease) .9s, transform 1.6s var(--ease) .9s; }
.ap-js .ap-ready:not(.ap-static) .ap-hero { opacity: var(--ap-hero, 1); transform: translateY(calc((1 - var(--ap-hero, 1)) * -40px)); transition-delay: .9s; }
.ap-js .ap-ready.ap-moved:not(.ap-static) .ap-hero { transition: none; }
.ap-name { font-family: var(--serif); font-weight: 400; font-size: clamp(3.4rem, 12.5vw, 13.5rem); line-height: .86; letter-spacing: -.028em; margin: 0; color: #F4EFE7; text-wrap: nowrap; text-shadow: 0 2px 60px rgba(0,0,0,.35); }
.lang-fa .ap-name { font-family: var(--sans); font-weight: 200; letter-spacing: 0; line-height: 1.1; font-size: clamp(3rem, 10vw, 10rem); }
.ap-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 22px; margin: clamp(14px, 2vw, 24px) 0 0; max-width: none; }
.ap-line > span:first-child { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 2.4rem); color: #F4EFE7; line-height: 1.1; }
.lang-fa .ap-line > span:first-child { font-family: var(--sans); font-style: normal; font-weight: 300; }
.ap-sub { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(244,239,231,.62); }
.lang-fa .ap-sub { letter-spacing: 0; text-transform: none; font-size: .9rem; }
.ap-scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2; font-size: .66rem; letter-spacing: .28em; text-transform: uppercase; color: rgba(244,239,231,.55);
  display: grid; justify-items: center; gap: 10px; opacity: 0; transition: opacity 1s var(--ease) 2.2s; }
.ap-scroll::after { content: ""; width: 1px; height: 38px; background: linear-gradient(rgba(244,239,231,.7), rgba(244,239,231,0)); transform-origin: top; animation: ap-drip 2.4s var(--ease) infinite; }
.ap-ready .ap-scroll { opacity: var(--ap-hero, 1); }
@keyframes ap-drip { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* the caption of the film in focus */
.ap-caption { position: absolute; inset-inline-start: var(--gutter); bottom: clamp(28px, 6vh, 64px); z-index: 2; max-width: min(520px, 70vw);
  opacity: calc((1 - var(--ap-hero, 1)) * (1 - var(--ap-end, 0))); }
.ap-caption > * { transition: opacity .5s var(--ease), transform .7s var(--ease); }
.ap-caption:not(.is-in) > * { opacity: 0; transform: translateY(10px); }
.ap-caption > :nth-child(2) { transition-delay: .05s; } .ap-caption > :nth-child(3) { transition-delay: .1s; } .ap-caption > :nth-child(4) { transition-delay: .15s; }
.ap-count { display: block; font-size: .7rem; letter-spacing: .22em; color: rgba(244,239,231,.55); font-variant-numeric: tabular-nums; margin-bottom: 10px; }
.ap-title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4.4vw, 4.2rem) !important; line-height: .95; letter-spacing: -.015em; text-transform: none !important; margin: 0; color: #F4EFE7; }
.lang-fa .ap-title { font-family: var(--sans); font-weight: 300; line-height: 1.25; }
.ap-meta { margin: 10px 0 18px; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(244,239,231,.62); }
.lang-fa .ap-meta { letter-spacing: 0; text-transform: none; font-size: .92rem; }
.ap-watch { pointer-events: auto; }
.ap-watch .ring { width: 48px; height: 48px; }
.ap-hovering .ap-watch .ring { background: var(--bone); transform: scale(1.08); }
.ap-hovering .ap-watch .ring::after { border-left-color: var(--ink); }

/* the index: sixteen ticks, a film strip's edge */
.ap-rail { position: absolute; inset-inline-end: clamp(14px, 2.4vw, 34px); top: 50%; transform: translateY(-50%); z-index: 3; display: grid; gap: 2px;
  opacity: calc((1 - var(--ap-hero, 1) * .55) * (1 - var(--ap-end, 0))); transition: opacity .4s; }
.ap-rail button { display: flex; align-items: center; justify-content: flex-end; gap: 12px; background: none; border: 0; padding: 5px 0; cursor: pointer; color: rgba(244,239,231,.5); font: inherit; }
[dir="rtl"] .ap-rail-t { transform: translateX(-6px); }
.ap-tick { order: 2; width: 14px; height: 1px; background: currentColor; transition: width .45s var(--ease), background .3s; }
.ap-rail-t { order: 1; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; opacity: 0; transform: translateX(6px); transition: opacity .3s, transform .4s var(--ease); }
.lang-fa .ap-rail-t { letter-spacing: 0; text-transform: none; font-size: .85rem; }
.ap-rail button[aria-current="true"] { color: #F4EFE7; }
.ap-rail button[aria-current="true"] .ap-tick { width: 34px; }
.ap-rail button:hover .ap-rail-t, .ap-rail button:focus-visible .ap-rail-t { opacity: 1; transform: none; }
.ap-rail button:hover .ap-tick { width: 26px; }
@media (max-width: 759px) { .ap-rail { display: none; } }

.ap-endline { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; max-width: none; z-index: 2; pointer-events: none;
  font-family: var(--serif); font-style: italic; font-size: clamp(1.8rem, 4vw, 3.4rem); color: #F4EFE7;
  opacity: clamp(0, calc((var(--ap-end, 0) - .55) * 3), 1); }
.lang-fa .ap-endline { font-family: var(--sans); font-style: normal; font-weight: 300; }

/* the reel without WebGL: the same films, still, each one playable */
.ap-grid { list-style: none; padding: clamp(44px, 6vw, 88px) 0 clamp(40px, 6vw, 80px); margin-block: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: clamp(12px, 1.6vw, 22px); grid-auto-flow: dense; }
.ap-grid li:has(.ap-card:not(.is-v)) { grid-column: span 2; }
.ap-card { all: unset; display: grid; gap: 8px; cursor: pointer; width: 100%; }
.ap-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #111; transition: filter .4s, transform .6s var(--ease); filter: saturate(.85); }
.ap-card.is-v img { aspect-ratio: 9 / 16; }
.ap-card:hover img, .ap-card:focus-visible img { filter: none; transform: scale(1.015); }
.ap-card:focus-visible { outline: 2px solid var(--ox); outline-offset: 4px; }
.ap-card-t { font-family: var(--serif); font-size: 1.5rem; line-height: 1.05; color: var(--bone); }
.lang-fa .ap-card-t { font-family: var(--sans); font-size: 1.15rem; }
.ap-card-m { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-3); }
.lang-fa .ap-card-m { letter-spacing: 0; text-transform: none; font-size: .85rem; }
@media (max-width: 520px) { .ap-grid { grid-template-columns: 1fr 1fr; } .ap-grid li:has(.ap-card:not(.is-v)) { grid-column: 1 / -1; } }

/* cinema: the film, whole, with sound */
.ap-cinema { position: fixed; inset: 0; z-index: 95; background: rgba(4, 4, 5, .96); display: grid; place-items: center; opacity: 0; transition: opacity .45s var(--ease); }
.ap-cinema[hidden] { display: none; }
.ap-cinema.is-open { opacity: 1; }
.ap-cinema video { width: min(92vw, calc(82vh * 16 / 9)); aspect-ratio: 16 / 9; background: #000; transform: scale(.96); transition: transform .6s var(--ease); }
.ap-cinema video.is-v { width: auto; height: min(84vh, 92vw * 16 / 9); aspect-ratio: 9 / 16; max-width: 92vw; }
.ap-cinema.is-open video { transform: none; }
.ap-cinema-title { position: absolute; inset-inline-start: var(--gutter); bottom: 18px; margin: 0; font-family: var(--serif); font-size: 1.3rem; color: var(--bone-2); max-width: 70vw; }
.lang-fa .ap-cinema-title { font-family: var(--sans); font-size: 1rem; }
.ap-cinema-close { position: absolute; top: 18px; inset-inline-end: var(--gutter); background: none; border: 1px solid var(--line-2); color: var(--bone); border-radius: 999px; padding: 8px 16px; font: inherit; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.ap-cinema-close:hover { border-color: var(--bone); }
.ap-locked, .ap-locked body { overflow: hidden; }

/* after the reel: what I make, in three lines */
.ap-after { padding: clamp(90px, 12vw, 170px) 0 clamp(40px, 6vw, 90px); background: var(--ink); position: relative; z-index: 1; }
.ap-services { list-style: none; padding: 0; margin: 22px 0 0; border-top: 1px solid var(--line); }
.ap-services a { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 38%); align-items: baseline; gap: 18px; padding: clamp(18px, 2.6vw, 34px) 0; border-bottom: 1px solid var(--line); color: var(--bone); }
.ap-s-n { font-size: .72rem; letter-spacing: .2em; color: var(--bone-3); font-variant-numeric: tabular-nums; }
.ap-s-t { font-family: var(--serif); font-size: clamp(2.2rem, 5.6vw, 5rem); line-height: 1; letter-spacing: -.015em; transition: transform .6s var(--ease), color .3s; }
.lang-fa .ap-s-t { font-family: var(--sans); font-weight: 300; font-size: clamp(1.8rem, 4.4vw, 3.6rem); line-height: 1.3; }
.ap-s-d { font-size: .95rem; line-height: 1.55; color: var(--bone-3); opacity: .75; transition: opacity .3s, color .3s; }
.ap-services a:hover .ap-s-t, .ap-services a:focus-visible .ap-s-t { transform: translateX(14px); color: #fff; }
[dir="rtl"] .ap-services a:hover .ap-s-t { transform: translateX(-14px); }
.ap-services a:hover .ap-s-d { opacity: 1; color: var(--bone-2); }
@media (max-width: 759px) { .ap-services a { grid-template-columns: 34px minmax(0, 1fr); } .ap-s-d { grid-column: 2; } }
.ap-all { margin: clamp(28px, 4vw, 48px) 0 0; }
.ap-entity { padding-top: 0; }
.ap-entity .entity { color: var(--bone-3); font-size: .95rem; }
/* the iris is the home page's entrance; the page iris only closes on the way out */
.page-home .curtain:not(.is-down) { visibility: hidden; }
.ap-endline { text-shadow: 0 2px 30px rgba(0, 0, 0, .6); }

/* =========================================================
   APERTURE v2 — the room is alive
   ========================================================= */

/* the "Scroll" hint waits 2 s to appear, but leaves at once */
.ap-ready.ap-moved .ap-scroll { transition: opacity .35s var(--ease); }

/* the viewfinder: frame lines that lock onto the film in focus, with its timecode */
.ap-vf { position: absolute; left: 0; top: 0; z-index: 1; pointer-events: none;
  width: var(--vf-w, 0); height: var(--vf-h, 0); transform: translate3d(var(--vf-x, 0), var(--vf-y, 0), 0); opacity: var(--vf-o, 0); }
.ap-vf-c { position: absolute; width: 22px; height: 22px; border: 0 solid rgba(244, 239, 231, .78); }
.ap-vf-c.tl { left: -12px; top: -12px; border-top-width: 1px; border-left-width: 1px; }
.ap-vf-c.tr { right: -12px; top: -12px; border-top-width: 1px; border-right-width: 1px; }
.ap-vf-c.bl { left: -12px; bottom: -12px; border-bottom-width: 1px; border-left-width: 1px; }
.ap-vf-c.br { right: -12px; bottom: -12px; border-bottom-width: 1px; border-right-width: 1px; }
.ap-vf-tc, .ap-vf-ar { position: absolute; right: -12px; font: 500 .62rem/1 var(--sans); letter-spacing: .16em;
  color: rgba(244, 239, 231, .74); font-variant-numeric: tabular-nums; white-space: nowrap; text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.ap-vf-tc { bottom: -30px; }
.ap-vf-tc::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #e0493c; margin-right: 9px; vertical-align: 1px; animation: ap-blink 1.6s steps(1) infinite; }
.ap-vf-ar { top: -28px; }
[dir="rtl"] .ap-vf-tc, [dir="rtl"] .ap-vf-ar { right: auto; left: -12px; }
@keyframes ap-blink { 50% { opacity: .2; } }
@media (max-width: 759px) { .ap-vf-c { width: 16px; height: 16px; } .ap-vf-tc, .ap-vf-ar { font-size: .56rem; letter-spacing: .12em; } }

/* the title arrives letter by letter; the counter rolls */
.ap-title .wd { display: inline-block; white-space: nowrap; }
.ap-title .ch { display: inline-block; opacity: 0; transform: translateY(.42em) rotate(5deg); filter: blur(5px);
  transition: opacity .55s var(--ease), transform .9s cubic-bezier(.2, .8, .2, 1), filter .6s var(--ease);
  transition-delay: calc(var(--i, 0) * 24ms); }
.ap-caption.is-in .ap-title .ch { opacity: 1; transform: none; filter: none; }
.ap-num { display: inline-block; overflow: hidden; vertical-align: bottom; }
.ap-num > span { display: inline-block; }
.ap-caption.is-in .ap-num > span { animation: ap-roll .8s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes ap-roll { from { transform: translateY(110%); } to { transform: none; } }

/* what I make: a film comes up under the pointer */
.ap-peek { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; width: 300px; aspect-ratio: 16 / 9;
  margin: -84px 0 0 28px; opacity: 0; transition: opacity .35s var(--ease); }
.ap-peek.is-v { width: 168px; aspect-ratio: 9 / 16; margin-top: -150px; }
.ap-peek img { display: block; width: 100%; height: 100%; object-fit: cover; box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  transform: scale(1.14); clip-path: inset(50% 0 50% 0); transition: transform 1.3s var(--ease), clip-path .7s cubic-bezier(.2, .8, .2, 1); }
.ap-peek.is-on { opacity: 1; }
.ap-peek.is-on img { transform: scale(1); clip-path: inset(0 0 0 0); }
[dir="rtl"] .ap-peek { margin-left: -328px; }
[dir="rtl"] .ap-peek.is-v { margin-left: -196px; }

/* between pages the lens closes and opens again, like the home page's iris */
@property --iris { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --iris-rot { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.curtain, .curtain.is-up, .curtain.is-down { transform: none !important; }
.curtain {
  --iris: 0px; --iris-rot: 0deg;
  background: repeating-conic-gradient(from var(--iris-rot), #0d0d0f 0deg 38.4deg, #1a1a1d 38.4deg 40deg);
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent var(--iris), #000 calc(var(--iris) + 1.5px));
  mask: radial-gradient(circle at 50% 50%, transparent var(--iris), #000 calc(var(--iris) + 1.5px));
  transition: --iris 1s cubic-bezier(.76, 0, .24, 1), --iris-rot 1s cubic-bezier(.76, 0, .24, 1);
}
.curtain.is-up { --iris: 150vmax; --iris-rot: 70deg; visibility: hidden;
  transition: --iris 1s cubic-bezier(.76, 0, .24, 1), --iris-rot 1s cubic-bezier(.76, 0, .24, 1), visibility 0s linear 1s; }
.curtain.is-down { --iris: 0px; --iris-rot: 0deg; visibility: visible;
  transition: --iris .48s cubic-bezier(.76, 0, .24, 1), --iris-rot .48s cubic-bezier(.76, 0, .24, 1), visibility 0s; }
