/* ==========================================================================
   HOSSEIN SERAJ — PORTFOLIO
   Art direction: high-contrast creative-director portfolio in deep space.
   A WebGL particle field drifts behind everything; the portrait dissolves into
   it; poster-scale condensed type, acid-lime signal colour, mono meta labels.

   Palette   deep space #030014 · acid lime #CCFF00 · white · white/50 · drawer #333333
             energy lines #88AAFF (in js/particles.js)
   Type      LTR (en, de): Anton (display) · Space Grotesk (text) · IBM Plex Mono (labels)
             RTL (fa, ar): Hilda (display) · IRANSans Bold (text and labels)
   Layers    z-0 particles · z-1 portrait · z-2 hero copy · z-3 marquee · z-100 header
             z-190/200 drawer scrim/drawer · z-280 language curtain · z-300 intro slate
   Every typographic rule reads the --display / --text / --label tokens, which
   switch with the page direction. Layout uses logical properties (RTL/LTR).
   Scroll-linked values (--ty, --cy, --co, --mx, --my, --px, --py, --fp, --ring,
   --rot) are written by js/main.js; CSS owns the rendering.
   ========================================================================== */

:root {
  --ink-rgb: 239, 233, 228;
  --bg-rgb: 11, 11, 11;
  --card-rgb: 31, 31, 31;
  --on-wine: #EFE9E4;      /* text on burgundy fills, both themes */
  --space: #0B0B0B;          /* charcoal black — background */
  --panel: rgba(var(--card-rgb), .6);
  --panel-2: #1F1F1F;
  --drawer: #1F1F1F;         /* dark gray — cards / sections */
  --white: #EFE9E4;          /* warm white — headings / text */
  --white-80: rgba(var(--ink-rgb), .82);
  --white-50: rgba(var(--ink-rgb), .55);
  --white-35: rgba(var(--ink-rgb), .36);
  --wine: #5A0E1A;           /* burgundy — accent / buttons (fills) */
  --wine-hi: #721425;        /* burgundy, hover */
  --taupe: #8B7F74;          /* taupe — borders / details / small accent text */
  --lime-soft: rgba(90, 14, 26, .22);
  --line: rgba(139, 127, 116, .18);
  --line-strong: rgba(139, 127, 116, .34);
  /* palette gradient for large emphasis text */
  --grad: linear-gradient(100deg, #8a1a2c 0%, #5A0E1A 30%, #8B7F74 100%);

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1560px;
  --header-h: 80px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);
  --spring: cubic-bezier(.22, 1.18, .36, 1);
  --t-fast: .25s;
  --t-med: .6s;

  /* LTR (en / de) */
  --display: var(--en-display);
  --display-case: uppercase;
  --display-ls: .01em;
  --text: var(--en-text);
  --text-w: 400;
  --body-size: clamp(15px, 1vw, 16.5px);
  --body-lh: 1.7;
  --label: var(--mono);
  --label-size: 11px;
  --label-ls: .14em;
  --label-case: uppercase;
  --label-w: 500;
  --ui-w: 500;
}

/* RTL (fa / ar): Hilda + IRANSans. Arabic-script text is never letter-spaced or upper-cased. */
html[dir="rtl"] {
  --display: var(--fa-display);
  --display-case: none;
  --display-ls: 0;
  --text: var(--fa-text);
  --text-w: 700;
  --body-size: clamp(14px, .95vw, 15.5px);
  --body-lh: 2.05;
  --label: var(--fa-text);
  --label-size: 12.5px;
  --label-ls: 0;
  --label-case: none;
  --label-w: 700;
  --ui-w: 700;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); background: var(--space); }
body {
  margin: 0; min-height: 100vh;
  background: var(--space);
  color: var(--white);
  font-family: var(--text);
  font-weight: var(--text-w);
  font-size: var(--body-size);
  line-height: var(--body-lh);
  font-synthesis: none;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: inherit; }
em { font-style: normal; }
::selection { background: var(--wine); color: var(--white); }
:focus-visible { outline: 2px solid var(--taupe); outline-offset: 3px; }

[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link {
  position: fixed; inset-inline-start: 16px; top: -60px; z-index: 500;
  background: var(--wine); color: var(--white); padding: 10px 16px; font-weight: var(--ui-w);
  transition: top var(--t-fast);
}
.skip-link:focus { top: 16px; }

/* ---------- Particle field (z-0) — CSS gradient shows until/unless WebGL starts ---------- */
.particles {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block;
  background:
    radial-gradient(60% 50% at 70% 20%, rgba(90, 14, 26, .28), transparent 70%),
    radial-gradient(50% 40% at 20% 80%, rgba(90, 14, 26, .16), transparent 70%),
    var(--space);
  opacity: .9; transition: opacity 1.2s ease;
}
.particles.is-live { opacity: 1; }
main, .site-footer { position: relative; z-index: 1; }

/* ---------- Type primitives ---------- */
.display, .about__title, .statement, .contact__title, .service__title, .card__title, .viewer__title, .marquee__item, .drawer__nav a span {
  font-family: var(--display); font-weight: 400; text-transform: var(--display-case); letter-spacing: var(--display-ls);
}
.display { font-size: clamp(3rem, 7vw, 7rem); line-height: .95; }
html[dir="rtl"] .display { font-size: clamp(2.5rem, 4.8vw, 4.8rem); line-height: 1.45; }
.display em, .contact__title em, .statement em { color: var(--taupe); }

.mono-label {
  font-family: var(--label); font-size: var(--label-size); letter-spacing: var(--label-ls);
  text-transform: var(--label-case); color: var(--white-50); font-weight: var(--label-w);
}
/* scene label: "—— SC 02 — ABOUT" in lime mono */
.scene-label {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--label); font-size: var(--label-size); letter-spacing: var(--label-ls); text-transform: var(--label-case);
  color: var(--taupe); font-weight: var(--label-w);
}
html[dir="rtl"] .scene-label { font-size: 13.5px; }
.scene-label__dot { width: 0; height: 1px; background: var(--wine); display: inline-block; flex: none; transition: width 1.1s var(--ease-out) .15s; }
.scene-label.is-in .scene-label__dot, .no-js .scene-label__dot { width: 34px; }

/* ---------- Buttons ---------- */
.btn {
  --bg: transparent; --fg: var(--white); --bd: var(--line-strong);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 50px; padding: 0 26px;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd); border-radius: 999px;
  font-family: var(--label); font-weight: var(--label-w); font-size: 11.5px; letter-spacing: .14em; text-transform: var(--label-case);
  cursor: pointer; overflow: hidden; isolation: isolate;
  transition: color var(--t-fast) var(--ease-out), border-color var(--t-fast), background var(--t-fast), transform .3s var(--ease-out);
}
html[dir="rtl"] .btn { font-size: 13.5px; letter-spacing: 0; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--white); transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease-out); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); }
.btn:hover, .btn:focus-visible { color: var(--space); border-color: var(--white); }
.btn:active { transform: scale(.97); }
.btn--gold { --bg: var(--wine); --fg: var(--white); --bd: var(--wine); }
/* twin of the lime CTA: same size and shape, outlined; fills lime on hover */
.btn--outline { --bg: rgba(var(--bg-rgb), .45); --fg: var(--white); --bd: var(--wine); }
.btn--outline::before { background: var(--wine); }
.btn--outline:hover, .btn--outline:focus-visible { color: var(--white); border-color: var(--wine); }
.btn--outline .btn__arrow { transition: transform .4s var(--ease-out); }
.btn--outline:hover .btn__arrow { transform: translate(2px, -2px); }
html[dir="rtl"] .btn--outline:hover .btn__arrow { transform: scaleX(-1) translate(2px, -2px); }
.btn--small { min-height: 40px; padding: 0 18px; }
.btn--big { min-height: 58px; padding: 0 34px; }
.btn__arrow { display: inline-block; transition: transform .4s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateY(2px); }
html[dir="rtl"] .btn__arrow--flip, html[dir="rtl"] .flip-rtl { transform: scaleX(-1); display: inline-block; }
.btn[disabled] { opacity: .6; pointer-events: none; }

.link-cta {
  display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding-inline: 6px;
  font-family: var(--label); font-weight: var(--label-w); font-size: 11.5px; letter-spacing: .14em; text-transform: var(--label-case);
  color: var(--white); position: relative;
}
html[dir="rtl"] .link-cta { font-size: 13.5px; letter-spacing: 0; }
.link-cta::after { content: ""; position: absolute; inset-inline: 6px; bottom: 12px; height: 1px; background: var(--white-35); transform-origin: left; transition: background var(--t-fast); }
.link-cta:hover { color: var(--taupe); }
.link-cta:hover::after { background: var(--wine); }
.link-cta__arrow { color: var(--taupe); transition: transform .4s var(--ease-out); }
html[dir="rtl"] .link-cta__arrow { transform: scaleX(-1); }

.icon-btn {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  background: transparent; border: 1px solid var(--line-strong); color: var(--white);
  cursor: pointer; font-size: 16px; transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.icon-btn:hover { background: var(--wine); color: var(--white); border-color: var(--taupe); }

/* ---------- Intro slate ---------- */
.slate {
  position: fixed; inset: 0; z-index: 300; background: var(--space);
  display: grid; place-items: center; align-content: center; gap: 22px; pointer-events: none;
  animation: slate-out .8s var(--ease-in-out) 1.3s forwards;
}
.slate__mark { width: 58px; height: 58px; fill: none; }
.slate__mark rect { stroke: var(--white); stroke-width: 1; stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw 1s var(--ease-in-out) .05s forwards; }
.slate__mark path { stroke: var(--taupe); stroke-width: 2; stroke-dasharray: 70; stroke-dashoffset: 70; animation: draw .8s var(--ease-out) .45s forwards; }
.slate__bar { position: absolute; inset-inline-start: 0; top: 50%; height: 1px; width: 100%; background: var(--wine); transform: scaleX(0); transform-origin: left; animation: slate-bar 1s var(--ease-in-out) .55s forwards; }
html[dir="rtl"] .slate__bar { transform-origin: right; }
.slate__tc { font-family: var(--mono); color: var(--white-50); font-size: 10px; letter-spacing: .3em; opacity: 0; animation: fade-in .4s ease .3s forwards; margin-top: 48px; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes slate-bar { 70%, 100% { transform: scaleX(1); } }
@keyframes slate-out { to { transform: translateY(-100%); visibility: hidden; } }
@keyframes fade-in { to { opacity: 1; } }

/* ---------- Language-change curtain ---------- */
.curtain { position: fixed; inset: 0; z-index: 280; pointer-events: none; visibility: hidden; }
.curtain__black { position: absolute; inset: 0; background: var(--space); border-block: 2px solid var(--taupe); transform: translateY(101%); }
.curtain__lime { display: none; }
.curtain.is-in, .curtain.is-out { visibility: visible; }
.curtain.is-in .curtain__black { transform: translateY(0); transition: transform .42s var(--ease-in-out); }
.curtain.is-out .curtain__black { transform: translateY(-101%); transition: transform .5s var(--ease-in-out); }

/* ---------- Header (z-100) ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-inline: var(--gutter);
  transition: height .5s var(--ease-out), background var(--t-med), border-color var(--t-med), transform var(--t-med) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { height: 64px; background: rgba(var(--bg-rgb), .72); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }

/* logo: HOSSEIN SERAJ + lime badge (English in every language) */
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand__text { display: grid; line-height: 1; min-width: 0; text-align: left; }
.brand__name { font-family: var(--en-display); font-size: 19px; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; color: var(--white); }
.brand__studio {
  font-family: var(--mono); font-weight: 400; font-size: 8.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--white-50);
  white-space: nowrap; overflow: hidden; max-height: 2em; margin-top: 5px;
  transition: max-height .5s var(--ease-out), opacity .4s, margin .5s var(--ease-out), color .3s;
}
.site-header.is-scrolled .brand__studio { max-height: 0; opacity: 0; margin-top: 0; }
.brand__mark { width: 40px; height: 40px; flex: none; overflow: visible; }
.brand__tile { fill: var(--wine); }
.brand__ring { fill: none; stroke: var(--taupe); stroke-width: 1; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--ring, 0)); opacity: .7; transform: rotate(-90deg); transform-origin: 22px 22px; }
.brand__diamond-wrap { transform-origin: 22px 22px; transform: rotate(calc(var(--rot, 0deg) + var(--hov, 0deg))); transition: transform .6s var(--ease-out); }
.brand__diamond { fill: none; stroke: var(--white); stroke-width: 2.2; stroke-linejoin: miter; }
.brand:hover .brand__diamond-wrap, .brand:focus-visible .brand__diamond-wrap { --hov: 180deg; }
.brand:hover .brand__studio { color: var(--taupe); }

.nav__list { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.nav__list a {
  position: relative; padding-block: 6px; color: var(--white-50); transition: color var(--t-fast);
  font-family: var(--label); font-size: var(--label-size); letter-spacing: var(--label-ls); text-transform: var(--label-case); font-weight: var(--label-w);
}
html[dir="rtl"] .nav__list a { font-size: 13px; }
.nav__list a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--wine); transform: scaleX(0); transition: transform .45s var(--ease-out); }
.nav__list a:hover, .nav__list a.is-active { color: var(--white); }
.nav__list a:hover::after, .nav__list a.is-active::after { transform: scaleX(1); }

.header-tools { display: flex; align-items: center; gap: 10px; }

/* Language menu */
.lang { position: relative; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px;
  background: transparent; border: 1px solid var(--line-strong); cursor: pointer;
  font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .14em; color: var(--white);
  transition: border-color var(--t-fast);
}
.lang__btn:hover, .lang__btn[aria-expanded="true"] { border-color: var(--taupe); }
.lang__current { color: var(--taupe); }
.lang__chev { width: 10px; height: 6px; fill: none; stroke: var(--white-50); stroke-width: 1.2; transition: transform .3s var(--ease-out); }
.lang__btn[aria-expanded="true"] .lang__chev { transform: rotate(180deg); }
.lang__menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 190px; z-index: 5;
  background: rgba(var(--card-rgb), .96); border: 1px solid rgba(var(--ink-rgb), .06); padding: 6px; border-radius: 14px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transform-origin: top; animation: menu-in .35s var(--ease-out);
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scaleY(.96); } }
.lang__menu a { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 10px; color: var(--white-50); transition: background var(--t-fast), color var(--t-fast); }
.lang__menu a b { font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: .14em; width: 24px; }
.lang__menu a span { font-size: 14px; }
.lang__menu a[lang="fa"] span, .lang__menu a[lang="ar"] span { font-family: var(--fa-text); font-weight: 700; }
.lang__menu a[lang="en"] span, .lang__menu a[lang="de"] span { font-family: var(--en-text); }
.lang__menu a:hover, .lang__menu a:focus-visible { background: rgba(var(--ink-rgb), .06); color: var(--white); outline-offset: -2px; }
.lang__menu a[aria-current="true"] { color: var(--taupe); }

.header-cta { --bg: transparent; --fg: var(--white); --bd: var(--wine); }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; background: transparent; border: 1px solid var(--line-strong); cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; inset-inline: 13px; height: 1.5px; background: var(--white); transition: transform .4s var(--ease-out), top .4s var(--ease-out); }
.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Drawer (z-200) ---------- */
.drawer-scrim { position: fixed; inset: 0; z-index: 190; background: rgba(var(--bg-rgb), .6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .5s ease; }
.drawer-scrim.is-open { opacity: 1; }
.drawer {
  position: fixed; inset-block: 0; inset-inline-end: 0; z-index: 200; width: min(100%, 42rem);
  background: var(--drawer); border-inline-start: 1px solid rgba(var(--ink-rgb), .05);
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%); transition: transform .7s var(--spring);
}
html[dir="rtl"] .drawer { transform: translateX(-100%); }
.drawer.is-open, html[dir="rtl"] .drawer.is-open { transform: none; }
.drawer__head {
  position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 40px); background: rgba(var(--card-rgb), .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(var(--ink-rgb), .06);
}
.drawer__title { font-family: var(--label); font-size: var(--label-size); letter-spacing: var(--label-ls); text-transform: var(--label-case); color: var(--white-50); }
.drawer__nav { padding: clamp(24px, 5vh, 56px) clamp(20px, 4vw, 40px); flex: 1; }
.drawer__nav li { border-bottom: 1px solid rgba(var(--ink-rgb), .08); }
.drawer__nav a { display: flex; align-items: baseline; gap: 18px; padding-block: 14px; color: var(--white); transition: color .3s, padding .5s var(--ease-out); }
.drawer__nav a i { font-family: var(--mono); font-style: normal; font-size: 11px; color: var(--white-50); }
.drawer__nav a span { font-size: clamp(2.2rem, 6vw, 4.2rem); line-height: 1; }
html[dir="rtl"] .drawer__nav a span { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.5; }
.drawer__nav a:hover, .drawer__nav a:focus-visible { color: var(--taupe); padding-inline-start: 12px; }
.drawer__nav a.is-cta { color: var(--taupe); }
.drawer__foot { padding: 24px clamp(20px, 4vw, 40px) 36px; display: grid; gap: 12px; }
.drawer__contacts { display: grid; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; text-align: center;
  padding: calc(var(--header-h) + 24px) var(--gutter) clamp(120px, 20vh, 200px);
}
/* portrait (z-1): grayscale, high contrast, dissolving into the field on every side */
.hero__portrait {
  position: absolute; z-index: 1; bottom: 0; left: 50%; height: 100%; aspect-ratio: 3 / 4; max-width: none;
  translate: calc(-50% + var(--mx, 0px)) calc(var(--ty, 0px) + var(--my, 0px));
  pointer-events: none;
}
.hero__portrait img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  /* grayscale + contrast are baked into the image file (no per-frame CSS filter) */
  opacity: .62; transform: scale(1); transition: transform .7s ease-out;
  -webkit-mask-image: radial-gradient(ellipse 47% 50% at 52% 46%, #000 38%, transparent 98%);
          mask-image: radial-gradient(ellipse 47% 50% at 52% 46%, #000 38%, transparent 98%);
}
.hero:hover .hero__portrait img { transform: scale(1.04); }

.hero__copy { position: relative; z-index: 2; width: min(100%, 1180px); margin-inline: auto; translate: 0 var(--cy, 0px); opacity: var(--co, 1); }
.availability { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; font-family: var(--label); font-size: 10.5px; letter-spacing: .16em; text-transform: var(--label-case); color: var(--white-50); }
html[dir="rtl"] .availability { font-size: 12.5px; letter-spacing: 0; }
.availability__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--wine); animation: pulse 2.2s infinite; }
.availability.is-off .availability__dot { background: var(--white-35); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(90, 14, 26, .55); } 70% { box-shadow: 0 0 0 9px rgba(90, 14, 26, 0); } 100% { box-shadow: 0 0 0 0 rgba(90, 14, 26, 0); } }

.hero__title { display: grid; justify-items: center; gap: .02em; }
.hero__top {
  font-family: var(--display); text-transform: var(--display-case); letter-spacing: .02em; line-height: 1.05;
  font-size: clamp(17px, 5.4vw, 70px); color: transparent; -webkit-text-stroke: 1px var(--white);
}
.hero__word {
  font-family: var(--display); text-transform: var(--display-case); letter-spacing: .005em; line-height: .9;
  font-size: clamp(50px, 14vw, 180px); color: var(--taupe); min-height: .9em; white-space: nowrap;
}
html[lang="de"] .hero__word { font-size: clamp(44px, 11.6vw, 168px); }
html[dir="rtl"] .hero__top { font-size: clamp(24px, 4.6vw, 64px); line-height: 1.6; -webkit-text-stroke: 1px var(--white); }
html[dir="rtl"] .hero__word { font-size: clamp(46px, 10vw, 140px); line-height: 1.35; }
@media (min-width: 1024px) { .hero__top { -webkit-text-stroke-width: 1.5px; } }

.hero__bio {
  max-width: 54ch; margin: clamp(18px, 3vh, 30px) auto 0; min-height: 5.1em;
  color: var(--white-80); font-size: clamp(14px, 1.08vw, 17px); text-shadow: 0 2px 18px rgba(var(--bg-rgb), .95);
}
.tw { opacity: 0; animation: tw-in .05s linear forwards; }
html[dir="rtl"] .tw { animation-duration: .35s; }
@keyframes tw-in { to { opacity: 1; } }
.hero__ctas { margin-top: clamp(22px, 3.5vh, 34px); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 26px; }

/* outlined marquee at the foot of the hero (z-3) */
.hero__marquee { position: absolute; z-index: 3; inset-inline: 0; bottom: 0; overflow: hidden; pointer-events: none; }
.hero__marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.hero__marquee-track span {
  font-family: var(--en-display); text-transform: uppercase; white-space: nowrap; line-height: 1.05;
  font-size: clamp(56px, 9.5vw, 150px); color: transparent; -webkit-text-stroke: 1px rgba(var(--ink-rgb), .15); padding-inline-end: .25em;
}

/* ---------- Roles marquee ---------- */
.marquee { overflow: hidden; padding-block: 16px; border-block: 1px solid var(--line); background: rgba(var(--bg-rgb), .55); }
.marquee__track { display: flex; width: max-content; animation: marquee 52s linear infinite; }
html[dir="rtl"] .marquee__track { animation-name: marquee-rtl; }
.marquee__group { display: flex; align-items: center; flex-shrink: 0; }
.marquee__item { font-size: clamp(1.6rem, 2.8vw, 2.6rem); white-space: nowrap; padding-inline: 32px; line-height: 1.2; }
.marquee__item:nth-of-type(2n) { color: transparent; -webkit-text-stroke: 1px var(--white-50); }
html[dir="rtl"] .marquee__item { line-height: 1.6; }
html[dir="rtl"] .marquee__item:nth-of-type(2n) { color: var(--white-50); -webkit-text-stroke: 0; }
.marquee__sep { width: 9px; height: 9px; background: var(--wine); border-radius: 50%; flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(96px, 16vh, 180px) var(--gutter) 0; max-width: var(--max); margin-inline: auto; }
.section__head { margin-bottom: clamp(40px, 7vh, 80px); display: grid; gap: 16px; }
.section__head--split { grid-template-columns: 1fr minmax(0, 420px); align-items: end; gap: 24px 48px; }
.section__head--split > div { display: grid; gap: 16px; }
.section__lede { color: var(--white-50); max-width: 46ch; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px var(--gutter); }
.about__title { grid-column: 1 / span 5; font-size: clamp(2.2rem, 3.6vw, 3.6rem); line-height: 1; }
html[dir="rtl"] .about__title { font-size: clamp(1.9rem, 2.8vw, 2.7rem); line-height: 1.6; }
.about__body { grid-column: 6 / span 4; display: grid; gap: 18px; color: var(--white-80); }
.about__lead { color: var(--white); font-size: 1.1em; }
.about__disciplines { grid-column: 10 / span 3; border-inline-start: 1px solid var(--line); padding-inline-start: 24px; }
.disciplines { margin-top: 18px; counter-reset: d; display: grid; gap: 10px; }
.disciplines li { counter-increment: d; display: flex; gap: 12px; font-size: 14px; font-weight: var(--ui-w); color: var(--white-80); }
.disciplines li::before { content: counter(d, decimal-leading-zero); font-family: var(--mono); font-size: 11px; color: var(--taupe); padding-top: 3px; }
html[dir="rtl"] .disciplines li::before { padding-top: 6px; }

.statement { margin: clamp(80px, 14vh, 160px) 0 0; padding-top: 40px; border-top: 1px solid var(--line); font-size: clamp(2.6rem, 5.6vw, 5.8rem); line-height: .98; max-width: 18ch; }
html[dir="rtl"] .statement { font-size: clamp(2rem, 3.8vw, 3.8rem); line-height: 1.7; max-width: 24ch; }
.statement .w { display: inline; }

/* ---------- Work: filters + slider ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(28px, 5vh, 56px); }
.filter {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px;
  background: transparent; color: var(--white-50); border: 1px solid var(--line-strong); cursor: pointer;
  font-family: var(--label); font-size: 11px; letter-spacing: .1em; text-transform: var(--label-case); font-weight: var(--label-w);
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
html[dir="rtl"] .filter { font-size: 13px; letter-spacing: 0; }
.filter sup { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0; color: var(--white-35); }
.filter:hover { color: var(--white); border-color: var(--white-50); }
.filter[aria-pressed="true"] { color: var(--white); background: var(--wine); border-color: var(--taupe); }
.filter[aria-pressed="true"] sup { color: var(--white-80); }

.slider { --pw: clamp(200px, min(19vw, 36vh), 300px); position: relative; }
.exhibit {
  display: flex; gap: clamp(14px, 1.6vw, 24px); align-items: flex-start;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px; scroll-padding-inline: var(--gutter);
  scrollbar-width: none; cursor: grab; outline-offset: -2px;
}
.exhibit::-webkit-scrollbar { display: none; }
.exhibit.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.exhibit.is-dragging .card__btn { pointer-events: none; }
.slide { flex: 0 0 auto; width: var(--pw); scroll-snap-align: start; transition: opacity .5s ease; }
.slide .card__media { aspect-ratio: 9 / 16; }
.slide[data-orientation="landscape"] { width: calc(var(--pw) * 3.16); }
.slide[data-orientation="landscape"] .card__media { aspect-ratio: 16 / 9; }
.slide img { -webkit-user-drag: none; user-select: none; }
.slide .card__media img { transform: translateX(var(--px, 0px)) scale(1.14); }
.slide .card__btn:hover .card__media img { transform: translateX(var(--px, 0px)) scale(1.19); }
.card { position: relative; }
.card.is-hidden { display: none; }

.slider__controls { display: flex; align-items: center; gap: 16px; margin-top: 28px; }
.slider__controls .icon-btn[disabled] { opacity: .3; pointer-events: none; }
.slider__count { font-family: var(--mono); font-size: 12.5px; color: var(--white); min-width: 64px; direction: ltr; text-align: center; }
html[dir="rtl"] .slider__count { font-family: var(--fa-text); font-size: 14px; }
.slider__progress { flex: 1; height: 2px; background: var(--line-strong); position: relative; overflow: hidden; border-radius: 2px; }
.slider__progress span { position: absolute; inset: 0; background: var(--wine); transform: scaleX(.04); transform-origin: left; transition: transform .3s var(--ease-out); }
html[dir="rtl"] .slider__progress span { transform-origin: right; }
.slider__hint { font-family: var(--label); font-size: 10.5px; letter-spacing: .12em; text-transform: var(--label-case); color: var(--white-50); white-space: nowrap; }
html[dir="rtl"] .slider__hint { font-size: 12.5px; letter-spacing: 0; }

.card__btn { display: block; width: 100%; padding: 0; text-align: start; background: none; border: 0; color: inherit; cursor: pointer; }
.card__media { position: relative; overflow: hidden; aspect-ratio: var(--ratio, 3 / 4); background: rgba(var(--ink-rgb), .04); border-radius: 14px; }
.card__media img, .card__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), opacity .5s ease, filter .6s ease; }
.card__media video { opacity: 0; }
.card.is-previewing .card__media video { opacity: 1; }
.card__btn:hover .card__media img, .card__btn:focus-visible .card__media img { transform: scale(1.05); }
.card__media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(11, 11, 11, .75), transparent 45%); }
.card__corners { position: absolute; inset: 14px; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .4s, inset .5s var(--ease-out); }
.card__corners::before, .card__corners::after { content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid var(--taupe); }
.card__corners::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.card__corners::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.card__btn:hover .card__corners, .card__btn:focus-visible .card__corners { opacity: 1; inset: 10px; }
.card__play {
  position: absolute; z-index: 2; bottom: 16px; inset-inline-start: 16px; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--label); font-size: 10px; letter-spacing: .16em; text-transform: var(--label-case); color: var(--white); font-weight: var(--label-w);
}
html[dir="rtl"] .card__play { font-size: 12px; letter-spacing: 0; }
.card__play::before { content: ""; width: 0; height: 0; border-block: 5px solid transparent; border-inline-start: 8px solid var(--taupe); }
.card__info { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; padding-top: 16px; }
.card__num { font-family: var(--mono); font-size: 11px; color: var(--taupe); padding-top: 6px; grid-row: span 2; }
html[dir="rtl"] .card__num { font-family: var(--fa-text); font-size: 12px; padding-top: 9px; }
.card__title { font-size: clamp(1.4rem, 1.8vw, 1.8rem); line-height: 1.05; transition: color var(--t-fast); }
html[dir="rtl"] .card__title { font-size: clamp(1.35rem, 1.7vw, 1.7rem); line-height: 1.6; }
.card__btn:hover .card__title { color: var(--taupe); }
.card__cat { font-size: 12px; color: var(--white-50); }
.exhibit__empty { color: var(--white-50); padding-block: 40px; }

/* ---------- BTS filmstrip ---------- */
.filmstrip {
  position: relative; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 34px 8px; background: rgba(0, 0, 0, .35); border-block: 1px solid var(--line);
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.filmstrip::before, .filmstrip::after { content: ""; position: absolute; inset-inline: 0; height: 12px; pointer-events: none; background: repeating-linear-gradient(90deg, transparent 0 14px, rgba(139, 127, 116, .16) 14px 26px); }
.filmstrip::before { top: 11px; }
.filmstrip::after { bottom: 11px; }
.strip-item { flex: 0 0 auto; scroll-snap-align: start; }
.strip-item:first-child { margin-inline-start: auto; }
.strip-item:last-child { margin-inline-end: auto; }
.strip-item .card__btn { width: clamp(240px, 28vw, 400px); }
.strip-item .card__media { aspect-ratio: 9 / 16; }
.strip-item .card__info { padding-inline: 4px; }

/* ---------- Photo shoots ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); align-items: start; }
.gallery__item { position: relative; overflow: hidden; background: rgba(var(--ink-rgb), .04); border-radius: 14px; aspect-ratio: var(--ar, 4 / 5); translate: 0 var(--py, 0px); }
.gallery__item:nth-child(4n+2) { margin-top: clamp(40px, 8vw, 120px); }
.gallery__item:nth-child(4n+3) { margin-top: clamp(16px, 3vw, 40px); }
.gallery__item:nth-child(4n+4) { margin-top: clamp(60px, 11vw, 170px); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .6s ease; }
.gallery__item::after { content: ""; position: absolute; inset: 10px; pointer-events: none; border: 2px solid transparent; border-radius: 8px; transition: border-color .4s, inset .5s var(--ease-out); }
.gallery__item:hover::after { border-color: var(--taupe); inset: 14px; }
.gallery__item button { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.gallery__item button:focus-visible { outline: 2px solid var(--taupe); outline-offset: -2px; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item--ph { display: grid; place-items: center; text-align: center; padding: 20px; border: 1px dashed var(--line-strong); color: var(--white-50); font-size: 13px; }
.gallery__item--ph .ph-tag { position: absolute; top: 12px; inset-inline-start: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--taupe); text-transform: uppercase; }
.gallery__note { grid-column: 1 / -1; color: var(--white-50); font-size: 14px; margin-top: 16px; }

/* ---------- Services ---------- */
.service-list { border-top: 1px solid var(--line); }
.service { position: relative; display: grid; grid-template-columns: 80px minmax(0, 1.2fr) minmax(0, 1fr); align-items: baseline; gap: 10px 32px; padding-block: clamp(20px, 3vw, 34px); border-bottom: 1px solid var(--line); }
.service::before { content: ""; position: absolute; inset-inline-start: 0; bottom: -1px; height: 1px; width: 100%; background: var(--wine); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease-out); }
html[dir="rtl"] .service::before { transform-origin: right; }
.service:hover::before { transform: scaleX(1); }
.service__num { font-family: var(--mono); font-size: 12px; color: var(--taupe); }
html[dir="rtl"] .service__num { font-family: var(--fa-text); font-size: 14px; }
.service__title { font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1; transition: transform .6s var(--ease-out), color .3s; }
html[dir="rtl"] .service__title { font-size: clamp(1.8rem, 3vw, 2.9rem); line-height: 1.55; }
.service:hover .service__title { transform: translateX(14px); color: var(--taupe); }
html[dir="rtl"] .service:hover .service__title { transform: translateX(-14px); }
.service__desc { color: var(--white-50); max-width: 46ch; transition: color .3s; }
.service:hover .service__desc { color: var(--white-80); }

/* ---------- Elite ---------- */
.elite { margin-top: clamp(96px, 16vh, 180px); background: rgba(var(--ink-rgb), .03); border-block: 1px solid var(--line); }
.elite__inner { max-width: var(--max); margin-inline: auto; padding: clamp(64px, 12vh, 140px) var(--gutter); display: grid; justify-items: center; gap: 40px; }
.elite__inner .scene-label { justify-self: start; }
.elite__plate { position: relative; width: min(100%, 640px); background: #fff; padding: clamp(28px, 5vw, 64px); border-radius: 18px; box-shadow: 0 40px 90px -40px rgba(0,0,0,.8); }
.elite__plate::before, .elite__plate::after { content: ""; position: absolute; width: 26px; height: 26px; border: 2px solid var(--taupe); }
.elite__plate::before { top: -14px; left: -14px; border-right: 0; border-bottom: 0; }
.elite__plate::after { bottom: -14px; right: -14px; border-left: 0; border-top: 0; }
.elite__plate img { width: 100%; height: auto; }
.elite__missing { font-size: 12px; color: #6b6e66; text-align: center; padding: 40px 0; }
.elite__note { max-width: 52ch; text-align: center; color: var(--white-80); }
.elite__note:empty { display: none; }

/* ---------- Contact ---------- */
.contact { padding-bottom: clamp(80px, 14vh, 160px); }
.contact__title { font-size: clamp(3rem, 8vw, 8.4rem); line-height: .92; max-width: 13ch; }
html[dir="rtl"] .contact__title { font-size: clamp(2.6rem, 5.6vw, 5.8rem); line-height: 1.5; max-width: 16ch; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px var(--gutter); align-items: start; }
.contact__side { display: grid; gap: 28px; position: sticky; top: calc(var(--header-h) + 24px); }
.contact-list, .drawer__contacts { border-top: 1px solid var(--line); }
.contact-list { display: grid; }
.contact-list a, .drawer__contacts a { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 12px; padding-block: 16px; border-bottom: 1px solid var(--line); transition: color var(--t-fast), padding var(--t-med) var(--ease-out); }
.contact-list a:hover, .drawer__contacts a:hover { color: var(--taupe); padding-inline-start: 10px; }
.contact-list .k, .drawer__contacts .k { font-size: 12.5px; color: var(--white-50); }
.contact-list .v, .drawer__contacts .v { font-family: var(--mono); font-size: 14.5px; direction: ltr; unicode-bidi: isolate; text-align: start; }
html[dir="rtl"] .contact-list .v, html[dir="rtl"] .drawer__contacts .v { text-align: end; }
.contact-list .arr, .drawer__contacts .arr { color: var(--taupe); }
html[dir="rtl"] .contact-list .arr, html[dir="rtl"] .drawer__contacts .arr { transform: scaleX(-1); }

.inquiry { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 24px; padding: clamp(24px, 4vw, 48px); background: rgba(var(--ink-rgb), .035); border: 1px solid var(--line); border-radius: 20px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.field { display: grid; gap: 8px; align-content: start; }
.field--wide { grid-column: 1 / -1; }
.field label { font-family: var(--label); font-size: 10.5px; letter-spacing: .14em; text-transform: var(--label-case); color: var(--white-50); font-weight: var(--label-w); }
html[dir="rtl"] .field label { font-size: 12.5px; letter-spacing: 0; }
.field input, .field textarea, .field select { width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(var(--ink-rgb), .6); padding: 12px 0; font-size: 16px; color: var(--white); border-radius: 0; outline: none; transition: border-color var(--t-fast); }
.field textarea { resize: vertical; min-height: 120px; line-height: 1.8; }
.field input::placeholder, .field textarea::placeholder { color: var(--white-35); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--taupe); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #d07a6e; }
.field__error { min-height: 1.2em; font-size: 12.5px; color: #d07a6e; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-inline-end: 28px; cursor: pointer; }
.select select option { background: var(--drawer); color: var(--white); }
.select::after { content: ""; position: absolute; inset-inline-end: 4px; top: 50%; width: 7px; height: 7px; border-inline-end: 1.5px solid var(--white-50); border-bottom: 1.5px solid var(--white-50); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.inquiry__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }
.form-status { font-size: 14px; color: var(--white-50); }
.form-status.is-ok { color: var(--taupe); }
.form-status.is-err { color: #d07a6e; }
.offline-panel { border: 1px solid var(--taupe); border-radius: 16px; padding: 22px; display: grid; gap: 14px; background: var(--lime-soft); outline: none; }
.offline-panel__title { font-weight: var(--ui-w); color: var(--taupe); }
.offline-panel__msg { margin: 0; white-space: pre-wrap; font-family: var(--mono); font-size: 12.5px; line-height: 1.8; background: rgba(var(--bg-rgb), .8); border: 1px solid var(--line); border-radius: 10px; padding: 14px; max-height: 220px; overflow: auto; }
html[dir="rtl"] .offline-panel__msg { font-family: var(--fa-text); font-size: 13.5px; }
.offline-panel__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Footer: the name fills with lime as the footer scrolls in (--fp) ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 0 var(--gutter) 72px; overflow: hidden; background: linear-gradient(to bottom, transparent, rgba(var(--bg-rgb), .85) 40%); }
.footer__big { font-family: var(--en-display); text-transform: uppercase; white-space: nowrap; text-align: center; font-size: clamp(3.6rem, 15vw, 15rem); line-height: 1.05; letter-spacing: .01em; padding-block: 28px 10px; }
.footer__big-text { background: linear-gradient(90deg, var(--taupe) 0 var(--fp, 0%), rgba(var(--ink-rgb), .07) var(--fp, 0%) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer__row { max-width: var(--max); margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; font-size: 12.5px; color: var(--white-50); padding-top: 24px; border-top: 1px solid var(--line); }
.footer__links, .footer__langs { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__links a:hover, .footer__top:hover, .footer__langs a:hover { color: var(--taupe); }
.footer__langs a[aria-current="true"] { color: var(--white); }
.footer__langs a[lang="fa"], .footer__langs a[lang="ar"] { font-family: var(--fa-text); font-weight: 700; }
.footer__langs a[lang="en"], .footer__langs a[lang="de"] { font-family: var(--en-text); }
.footer__tagline { font-family: var(--label); letter-spacing: .1em; text-transform: var(--label-case); font-size: 11px; }
html[dir="rtl"] .footer__tagline { font-size: 13px; letter-spacing: 0; }

/* ---------- Playhead (scroll progress) ---------- */
.playhead { position: fixed; inset-inline: 0; bottom: 0; z-index: 95; height: 22px; display: flex; align-items: center; gap: 12px; padding-inline: var(--gutter); pointer-events: none; }
.playhead__tc { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; color: var(--white-50); order: 2; direction: ltr; background: var(--space); padding: 2px 6px; }
.playhead__track { flex: 1; height: 1px; background: var(--line-strong); position: relative; }
.playhead__bar { position: absolute; inset-block: 0; inset-inline-start: 0; width: 100%; background: var(--wine); transform: scaleX(var(--p, 0)); transform-origin: left; }
html[dir="rtl"] .playhead__bar { transform-origin: right; }

/* ---------- Project viewer ---------- */
.viewer { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--space); color: var(--white); overflow: hidden; }
.viewer::backdrop { background: rgba(var(--bg-rgb), .92); }
.viewer[open] { animation: viewer-in .7s var(--ease-in-out); }
.viewer.is-closing { animation: viewer-out .45s var(--ease-in-out) forwards; }
@keyframes viewer-in { from { clip-path: var(--from-clip, inset(40% 30% 40% 30%)); } to { clip-path: inset(0); } }
@keyframes viewer-out { to { clip-path: inset(0 0 100% 0); } }
.viewer__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); height: 100%; }
.viewer__media { position: relative; display: grid; place-items: center; background: #000; overflow: hidden; padding: 24px; }
.viewer__media video, .viewer__media iframe, .viewer__media img { max-width: 100%; max-height: calc(100dvh - 48px); background: #000; border: 0; }
.viewer__media img.is-photo { width: auto; height: auto; max-height: calc(100dvh - 48px); object-fit: contain; }
.viewer__media video.is-portrait, .viewer__media img.is-portrait { height: calc(100dvh - 48px); width: auto; aspect-ratio: 9 / 16; }
.viewer__media iframe { width: min(100%, 1280px); aspect-ratio: 16 / 9; height: auto; }
.viewer__media iframe.is-portrait { width: auto; height: calc(100dvh - 48px); aspect-ratio: 9 / 16; }
.viewer__error { color: var(--white-50); text-align: center; padding: 20px; }
.viewer__info { display: flex; flex-direction: column; gap: 18px; padding: 28px clamp(24px, 3vw, 40px); background: var(--drawer); border-inline-start: 1px solid rgba(var(--ink-rgb), .05); overflow-y: auto; }
.viewer__top { display: flex; align-items: center; justify-content: space-between; }
.viewer__cat { color: var(--taupe); font-family: var(--label); font-size: 11px; letter-spacing: .12em; text-transform: var(--label-case); margin-top: auto; }
html[dir="rtl"] .viewer__cat { font-size: 13px; letter-spacing: 0; }
.viewer__title { font-size: clamp(2.4rem, 3.6vw, 3.6rem); line-height: .98; }
html[dir="rtl"] .viewer__title { font-size: clamp(2rem, 2.9vw, 2.9rem); line-height: 1.55; }
.viewer__desc { color: var(--white-80); }
.viewer__meta { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 14px; border-top: 1px solid var(--line); padding-top: 16px; }
.viewer__meta:empty { display: none; }
.viewer__meta dt { color: var(--white-50); }
.viewer__hint { font-size: 12px; color: var(--white-35); }
.viewer__nav { display: flex; gap: 8px; }

/* ---------- Custom cursor (fine pointers only) ---------- */
.cursor { display: none; }
@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .cursor {
    display: grid; place-items: center; position: fixed; top: 0; left: 0; z-index: 400; pointer-events: none;
    width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--wine);
    transform: translate3d(var(--x, -100px), var(--y, -100px), 0);
    transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), opacity .3s;
  }
  .cursor.is-big { width: 86px; height: 86px; margin: -43px 0 0 -43px; }
  .cursor.is-hidden { opacity: 0; }
  .cursor__label { font-family: var(--label); font-size: 10px; letter-spacing: .14em; text-transform: var(--label-case); color: var(--white); opacity: 0; transition: opacity .2s; font-weight: 500; }
  html[dir="rtl"] .cursor__label { font-size: 12.5px; letter-spacing: 0; font-weight: 700; }
  .cursor.is-big .cursor__label { opacity: 1; }
}

/* ---------- 404 ---------- */
.page-404 { min-height: 100vh; display: grid; place-items: center; font-family: var(--en-text); }
.nf { display: grid; justify-items: center; gap: 18px; text-align: center; padding: 24px; }
.nf__mark { width: 64px; height: 64px; fill: none; }
.nf__mark rect { stroke: var(--line-strong); stroke-width: 1; }
.nf__mark path { stroke: var(--taupe); stroke-width: 2; }
.nf__code { font-family: var(--mono); color: var(--taupe); letter-spacing: .3em; font-size: 13px; }
.nf__title { font-family: var(--en-display); text-transform: uppercase; font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1; }
.nf__links { color: var(--white-50); }
.nf__links a { color: var(--white); }
.nf__links a:hover { color: var(--taupe); }
.nf__links a[lang="fa"], .nf__links a[lang="ar"] { font-family: var(--fa-text); font-weight: 700; }

/* ==========================================================================
   MOTION — reveals only apply when JS is running and motion is allowed,
   so content is always visible otherwise.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js [data-reveal="rise"] { transform: translateY(.45em); clip-path: inset(0 0 45% 0); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out), clip-path 1.2s var(--ease-out); transition-delay: var(--d, 0s); }
  .js [data-reveal="rise"].is-in { clip-path: inset(-.4em -.3em -.5em -.3em); }
  .js [data-reveal="mask"] { opacity: 0; transform: none; transition: opacity .4s ease; }
  .js [data-reveal="mask"] > * { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--ease-in-out) .15s; }
  .js [data-reveal="mask"].is-in { opacity: 1; }
  .js [data-reveal="mask"].is-in > * { clip-path: inset(0); }
  .js [data-reveal="words"] { opacity: 1; transform: none; }
  .js [data-reveal="words"] .w { opacity: .1; transition: opacity .7s ease; transition-delay: calc(var(--i) * 55ms); }
  .js [data-reveal="words"].is-in .w { opacity: 1; }
  .js .card:not(.slide) { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
  .js .card:not(.slide) .card__media { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease-in-out); }
  .js .card.is-in { opacity: 1; transform: none; }
  .js .card.is-in .card__media { clip-path: inset(0); }
  @media (min-width: 821px) {
    .slide.is-far { opacity: .45; }
    .slide.is-far:hover, .slide:focus-within { opacity: 1; }
  }

  /* Opening sequence (after the slate): portrait fades up, headline rises, bio types itself */
  .js .hero__portrait { opacity: 0; animation: portrait-in 1.6s var(--ease-out) 1.35s forwards; }
  .js .hero__top { opacity: 0; transform: translateY(30px); animation: hero-up 1s var(--ease-out) 1.55s forwards; }
  .js .hero__word { opacity: 0; transform: translateY(40px) scale(.96); animation: hero-up 1.1s var(--ease-out) 1.7s forwards; }
  .js .hero__ctas, .js .availability { opacity: 0; animation: fade-in .8s ease 2.1s forwards; }
  .js .hero__marquee { opacity: 0; animation: fade-in 1.2s ease 2.2s forwards; }
  @keyframes portrait-in { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
  @keyframes hero-up { to { opacity: 1; transform: none; } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slate, .curtain { display: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee__track, .hero__marquee-track { animation: none; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-toggle { display: inline-block; }
  .about__title { grid-column: 1 / -1; }
  .about__body { grid-column: 1 / span 7; }
  .about__disciplines { grid-column: 8 / span 5; }
  .service { grid-template-columns: 56px minmax(0, 1fr); }
  .service__desc { grid-column: 2; }
}

@media (max-width: 820px) {
  :root { --header-h: 66px; }
  .site-header.is-scrolled { height: 58px; }
  .header-cta { display: none; }
  .brand__name { font-size: 15px; letter-spacing: .16em; }
  .brand__studio { font-size: 7.5px; letter-spacing: .22em; }
  .brand__mark { width: 36px; height: 36px; }
  .lang__btn { padding: 0 10px; }

  .hero { justify-content: flex-start; padding-top: calc(var(--header-h) + 8vh); padding-bottom: 32vh; }
  .hero__portrait { height: 85%; }
  .hero__portrait img { opacity: .48; -webkit-mask-image: radial-gradient(ellipse 50% 50% at 52% 50%, #000 40%, transparent 98%); mask-image: radial-gradient(ellipse 50% 50% at 52% 50%, #000 40%, transparent 98%); }
  .hero__bio { min-height: 7em; }
  .hero__marquee-track span { font-size: 64px; }

  .section__head--split { grid-template-columns: 1fr; }
  .about__body, .about__disciplines { grid-column: 1 / -1; }
  .about__disciplines { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--line); padding-top: 24px; }
  .disciplines { grid-template-columns: 1fr 1fr; }

  .slider { --pw: 72vw; }
  .slide[data-orientation="landscape"] { width: 88vw; }
  .slide[data-orientation="landscape"] .card__media { aspect-ratio: 16 / 9; }
  .slider__hint { display: none; }

  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gallery__item:nth-child(n) { grid-column: span 1; margin-top: 0; }
  .gallery__item:nth-child(4n+2), .gallery__item:nth-child(4n+4) { margin-top: 48px; }

  .contact__grid { grid-template-columns: 1fr; }
  .contact__side { position: static; }
  .inquiry { grid-template-columns: 1fr; }
  .viewer__inner { grid-template-columns: 1fr; grid-template-rows: auto 1fr; overflow-y: auto; }
  .viewer__media { padding: 0; }
  .viewer__media video.is-portrait, .viewer__media img.is-portrait, .viewer__media iframe.is-portrait { height: 68dvh; }
  .viewer__info { border-inline-start: 0; border-top: 1px solid var(--line); overflow: visible; }
  .viewer__top { position: absolute; top: 12px; inset-inline: 12px; z-index: 3; }
  .viewer__top .icon-btn { background: rgba(var(--bg-rgb), .7); }
  .viewer__cat { margin-top: 0; }
  .playhead__tc { display: none; }
  .marquee { padding-block: 12px; }
  .footer__row { justify-content: flex-start; }
  .drawer { width: 100%; }
}

@media (max-width: 480px) {
  .brand { gap: 10px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .contact-list a, .drawer__contacts a { grid-template-columns: 84px 1fr auto; }
  .inquiry__foot .btn { width: 100%; }
  .disciplines { grid-template-columns: 1fr; }
}

@media (min-width: 640px) and (max-width: 820px) { .drawer { width: min(100%, 36rem); } }
@media (min-width: 1800px) { :root { --body-size: 17.5px; } }

/* ==========================================================================
   BRAND PALETTE ACCENTS (charcoal · burgundy · warm white · dark gray · taupe)
   Burgundy is a fill colour; it is too dark to read as text on charcoal, so
   large emphasis uses the palette gradient and small accents use taupe.
   ========================================================================== */
.hero__word, .display em, .contact__title em, .statement em {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-fill-color: transparent;
}
/* gradient text needs a little room so descenders / Persian dots are not clipped */
.hero__word { padding-block: .02em .08em; background-image: linear-gradient(100deg, #a3283b 0%, #7a1626 38%, #a99c90 100%); filter: drop-shadow(0 2px 16px rgba(var(--bg-rgb), .95)) drop-shadow(0 0 40px rgba(90, 14, 26, .4)); }
.btn--gold:hover::before, .btn--gold:focus-visible::before { background: var(--wine-hi); }
.btn--gold:hover, .btn--gold:focus-visible { color: var(--white); border-color: var(--wine-hi); }
.header-cta { --fg: var(--white); --bd: var(--wine); }
.drawer__nav a.is-cta { color: var(--white); }
.drawer__nav a.is-cta i { color: var(--taupe); }
.brand__tile { fill: var(--wine); }
.brand__ring { stroke: var(--taupe); }
.availability__dot { background: #a3283b; }
.slider__progress span, .playhead__bar { background: linear-gradient(90deg, var(--wine), var(--taupe)); }
html[dir="rtl"] .slider__progress span, html[dir="rtl"] .playhead__bar { background: linear-gradient(270deg, var(--wine), var(--taupe)); }
.card__btn:hover .card__title, .service:hover .service__title { color: var(--white); }
.service:hover .service__title { text-shadow: 0 0 34px rgba(90, 14, 26, .55); }
.footer__big-text { background-image: linear-gradient(90deg, var(--wine) 0, var(--taupe) var(--fp, 0%), rgba(var(--ink-rgb), .07) var(--fp, 0%) 100%); }
html[dir="rtl"] .footer__big-text { background-image: linear-gradient(90deg, var(--wine) 0, var(--taupe) var(--fp, 0%), rgba(var(--ink-rgb), .07) var(--fp, 0%) 100%); }
.elite__plate::before, .elite__plate::after { border-color: var(--wine); }
.cursor { background: var(--wine); }
.cursor.is-big { background: rgba(90, 14, 26, .94); }
/* ---------- Contact icons (hairline glyphs in thin taupe rings) ---------- */
.ci { width: 18px; height: 18px; flex: none; }
.ci-btn {
  width: 46px; height: 46px; border-radius: 50%; display: inline-grid; place-items: center;
  border: 1px solid var(--line-strong); color: var(--white-80); background: rgba(var(--bg-rgb), .35);
  transition: background .35s var(--ease-out), border-color .35s, color .35s, transform .35s var(--ease-out);
}
.ci-btn:hover, .ci-btn:focus-visible { background: var(--wine); border-color: var(--wine); color: var(--white); transform: translateY(-2px); }
.hero__social { display: flex; justify-content: center; gap: 12px; margin-top: clamp(18px, 3vh, 28px); }
.hero__social:empty { display: none; }
.footer__links { gap: 10px; }
.footer__links .ci-btn { width: 40px; height: 40px; }
.footer__links .ci { width: 16px; height: 16px; }
.js .hero__social { opacity: 0; animation: fade-in .8s ease 2.25s forwards; }
@media (prefers-reduced-motion: reduce) { .js .hero__social { opacity: 1; } }

.contact-list a, .drawer__contacts a { grid-template-columns: 40px 100px 1fr auto; }
.ci-ring {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-strong); color: var(--taupe); transition: background .35s, border-color .35s, color .35s;
}
.contact-list a:hover .ci-ring, .drawer__contacts a:hover .ci-ring { background: var(--wine); border-color: var(--wine); color: var(--white); }
.contact-list a:hover, .drawer__contacts a:hover { color: var(--white); }
@media (max-width: 480px) { .contact-list a, .drawer__contacts a { grid-template-columns: 36px 76px 1fr auto; } .ci-ring { width: 36px; height: 36px; } }
/* ---------- Contact links: Cormorant Garamond (luxury editorial serif), burgundy on hover ---------- */
:root { --lux: "Cormorant Garamond", "Playfair Display", Georgia, serif; --wine-ink: #9b2235; /* palette burgundy, lifted one step so it reads on charcoal */ }
.contact-list .v, .drawer__contacts .v {
  font-family: var(--lux); font-style: italic; font-weight: 600; font-size: 22px; letter-spacing: .01em; line-height: 1.2;
  color: var(--white); transition: color .35s var(--ease-out);
}
.contact-list .k, .drawer__contacts .k {
  font-family: var(--lux), var(--fa-text); font-weight: 500; font-size: 16px; letter-spacing: .04em; color: var(--white-50);
  transition: color .35s var(--ease-out);
}
html[dir="rtl"] .contact-list .k, html[dir="rtl"] .drawer__contacts .k { font-family: var(--fa-text); font-size: 13px; letter-spacing: 0; }
.contact-list a:hover, .drawer__contacts a:hover,
.contact-list a:focus-visible, .drawer__contacts a:focus-visible { color: var(--wine-ink); }
.contact-list a:hover .v, .drawer__contacts a:hover .v, .contact-list a:hover .k, .drawer__contacts a:hover .k,
.contact-list a:focus-visible .v, .drawer__contacts a:focus-visible .v { color: var(--wine-ink); }
.contact-list a:hover .arr, .drawer__contacts a:hover .arr { color: var(--wine-ink); }
.contact-list a, .drawer__contacts a { border-bottom-color: var(--line); transition: color .35s, padding var(--t-med) var(--ease-out), border-color .35s; }
.contact-list a:hover, .drawer__contacts a:hover { border-bottom-color: var(--wine); }
.footer__links .ci-btn:hover { color: var(--white); }
@media (max-width: 480px) { .contact-list .v, .drawer__contacts .v { font-size: 19px; } }
/* ---------- Contact handles: same face as the header lockup (Anton) ---------- */
.contact-list .v, .drawer__contacts .v {
  font-family: var(--en-display); font-style: normal; font-weight: 400; font-size: 21px; letter-spacing: .08em; line-height: 1.1;
}
@media (max-width: 480px) { .contact-list .v, .drawer__contacts .v { font-size: 18px; letter-spacing: .06em; } }

/* ---------- "Open" cue: hairline arrow in a ring; a burgundy arc orbits it and the arrow nudges outward ---------- */
.cue {
  position: relative; width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--taupe);
  transition: background .35s var(--ease-out), border-color .35s, color .35s;
}
.cue svg { width: 15px; height: 15px; animation: cue-nudge 2.6s var(--ease-in-out) infinite; }
html[dir="rtl"] .cue svg { scale: -1 1; }
.cue::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0 78%, var(--wine-ink) 94%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px));
  animation: cue-orbit 3.4s linear infinite;
}
.contact-list a:nth-child(2) .cue::after, .drawer__contacts li:nth-child(2) .cue::after { animation-delay: -1.1s; }
.contact-list a:nth-child(3) .cue::after, .drawer__contacts li:nth-child(3) .cue::after { animation-delay: -2.2s; }
.contact-list a:hover .cue, .drawer__contacts a:hover .cue,
.contact-list a:focus-visible .cue, .drawer__contacts a:focus-visible .cue { background: var(--wine); border-color: var(--wine); color: var(--white); }
@keyframes cue-nudge { 0%, 62%, 100% { transform: translate(0, 0); } 76% { transform: translate(2.5px, -2.5px); } 88% { transform: translate(0, 0); } }
@keyframes cue-orbit { to { rotate: 360deg; } }

/* ---------- Elite: neon sign ---------- */
.elite {
  position: relative; overflow: hidden; margin-top: clamp(96px, 16vh, 180px);
  display: grid; place-items: center; min-height: clamp(380px, 62vh, 640px); padding: clamp(64px, 10vh, 120px) var(--gutter);
  background: radial-gradient(55% 60% at 50% 46%, rgba(90, 14, 26, .3), transparent 72%);
  border-block: 1px solid var(--line);
}
/* brushed "wall" lines behind the sign */
.elite::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(90deg, transparent 0 119px, rgba(139, 127, 116, .05) 119px 120px);
  -webkit-mask: radial-gradient(60% 70% at 50% 50%, #000, transparent); mask: radial-gradient(60% 70% at 50% 50%, #000, transparent);
}
.neon {
  position: relative; display: flex; align-items: center; gap: clamp(22px, 4vw, 60px);
  -webkit-box-reflect: below 10px linear-gradient(transparent 58%, rgba(0, 0, 0, .22));
}
.neon__mark { width: clamp(96px, 13vw, 176px); height: auto; overflow: visible; }
.neon__tile { fill: rgba(90, 14, 26, .08); stroke: #fbe9ec; stroke-width: 2.4; filter: url(#neon-wine); }
.neon__diamond { fill: none; stroke: #f4e7da; stroke-width: 2.6; stroke-linejoin: round; filter: url(#neon-taupe); }
.neon__type { display: grid; justify-items: start; gap: clamp(8px, 1.2vw, 14px); }
.neon__word {
  font-family: var(--en-text); font-weight: 300; font-size: clamp(54px, 9.5vw, 148px); line-height: .9;
  letter-spacing: .3em; margin-inline-end: -.3em; color: #fff4f2;
  text-shadow: 0 0 2px #fff, 0 0 7px #e2687c, 0 0 16px #b3263d, 0 0 34px #5A0E1A, 0 0 70px #5A0E1A;
}
.neon__rule { width: 100%; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #5A0E1A, #e2687c 50%, #8B7F74); box-shadow: 0 0 10px rgba(179, 38, 61, .8), 0 0 24px rgba(90, 14, 26, .7); }
.neon__sub {
  font-family: var(--en-text); font-weight: 400; text-transform: uppercase; font-size: clamp(12px, 1.6vw, 22px);
  letter-spacing: .62em; margin-inline-end: -.62em; color: #f1e6db;
  text-shadow: 0 0 2px #fff, 0 0 8px #b9aa9b, 0 0 20px #8B7F74, 0 0 40px rgba(139, 127, 116, .6);
}
/* breathing halo behind the sign */
.neon::before {
  content: ""; position: absolute; inset: -30% -15%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(179, 38, 61, .22), transparent);
  animation: neon-breathe 5s ease-in-out infinite;
}
@keyframes neon-breathe { 50% { opacity: .55; transform: scale(.96); } }

/* off until it scrolls into view, then the tubes flicker on one by one */
.js [data-reveal="neon"] { opacity: 1; transform: none; }
.js [data-reveal="neon"]:not(.is-in) .neon__mark,
.js [data-reveal="neon"]:not(.is-in) .neon__word,
.js [data-reveal="neon"]:not(.is-in) .neon__rule,
.js [data-reveal="neon"]:not(.is-in) .neon__sub { opacity: .08; }
.js [data-reveal="neon"].is-in .neon__mark { animation: neon-on 1.4s steps(1, end) .1s both; }
.js [data-reveal="neon"].is-in .neon__word { animation: neon-on 1.6s steps(1, end) .45s both; }
.js [data-reveal="neon"].is-in .neon__rule { animation: neon-on 1s steps(1, end) .9s both; }
.js [data-reveal="neon"].is-in .neon__sub { animation: neon-on 1.2s steps(1, end) 1.1s both; }
@keyframes neon-on {
  0% { opacity: .08; } 8% { opacity: 1; } 12% { opacity: .15; } 22% { opacity: 1; } 26% { opacity: .35; }
  44% { opacity: 1; } 48% { opacity: .6; } 52%, 100% { opacity: 1; }
}
@media (max-width: 640px) {
  .neon { flex-direction: column; gap: 22px; }
  .neon__type { justify-items: center; }
  .neon__word { letter-spacing: .24em; margin-inline-end: -.24em; }
  .neon__sub { letter-spacing: .42em; margin-inline-end: -.42em; }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal="neon"] .neon__mark, .js [data-reveal="neon"] .neon__word, .js [data-reveal="neon"] .neon__rule, .js [data-reveal="neon"] .neon__sub { opacity: 1 !important; }
}
/* ==========================================================================
   LIGHT THEME — "gallery paper": warm-white ground, charcoal ink, the same
   burgundy accent; taupe is deepened one step so small text keeps AA contrast.
   The Elite neon sign stays a dark plaque in both themes (neon needs the dark).
   ========================================================================== */
html[data-theme="light"] {
  color-scheme: light;
  --ink-rgb: 11, 11, 11;
  --bg-rgb: 239, 233, 228;
  --card-rgb: 228, 220, 212;
  --space: #EFE9E4;
  --panel-2: #E4DCD4;
  --drawer: #E6DED6;
  --white: #0B0B0B;
  --taupe: #6B6056;
  --wine-ink: #5A0E1A;
  --line: rgba(11, 11, 11, .12);
  --line-strong: rgba(11, 11, 11, .24);
}
html[data-theme="light"] .hero__portrait img { opacity: .4; mix-blend-mode: multiply; }
html[data-theme="light"] .hero__word {
  background-image: linear-gradient(100deg, #7a1626 0%, #5A0E1A 45%, #6B6056 100%);
  filter: drop-shadow(0 2px 14px rgba(239, 233, 228, .9));
}
html[data-theme="light"] .hero__top { -webkit-text-stroke-color: #0B0B0B; }
/* text that sits on burgundy fills stays warm white */
html[data-theme="light"] .btn--gold, html[data-theme="light"] .filter[aria-pressed="true"],
html[data-theme="light"] .btn--outline:hover, html[data-theme="light"] .btn--outline:focus-visible,
html[data-theme="light"] .ci-btn:hover, html[data-theme="light"] .ci-btn:focus-visible,
html[data-theme="light"] .icon-btn:hover, html[data-theme="light"] .skip-link { color: var(--on-wine); }
html[data-theme="light"] .btn--gold { --fg: var(--on-wine); }
html[data-theme="light"] .filter[aria-pressed="true"] sup { color: var(--on-wine); }
html[data-theme="light"] .contact-list a:hover .cue, html[data-theme="light"] .drawer__contacts a:hover .cue { color: var(--on-wine); }
html[data-theme="light"] .contact-list a:hover .ci-ring, html[data-theme="light"] .drawer__contacts a:hover .ci-ring { color: var(--on-wine); }
html[data-theme="light"] ::selection { color: var(--on-wine); }
html[data-theme="light"] .brand__diamond { stroke: var(--on-wine); }
html[data-theme="light"] .cursor__label { color: var(--on-wine); }
/* Elite: keep the neon on a dark plaque */
html[data-theme="light"] .elite {
  background: radial-gradient(55% 60% at 50% 46%, rgba(90, 14, 26, .35), transparent 72%), #0B0B0B;
  border-color: transparent;
}
html[data-theme="light"] .viewer__media { background: #0B0B0B; }
html[data-theme="light"] .particles {
  background: radial-gradient(60% 50% at 70% 20%, rgba(90, 14, 26, .08), transparent 70%), var(--space);
}

/* smooth hand-over when the theme changes (only during the switch) */
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .5s ease, color .5s ease, border-color .5s ease, fill .5s ease, stroke .5s ease !important;
}
/* View Transitions: the new theme spreads as a circle from the switch */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: theme-reveal .75s cubic-bezier(.76, 0, .24, 1); }
@keyframes theme-reveal { from { clip-path: circle(0 at var(--tx, 90%) var(--ty0, 40px)); } to { clip-path: circle(150vmax at var(--tx, 90%) var(--ty0, 40px)); } }

/* ---------- Theme switch: a small eclipse pill — the burgundy disc slides between moon and sun ---------- */
.theme-switch {
  position: relative; width: 66px; height: 40px; border-radius: 999px; flex: none; cursor: pointer;
  border: 1px solid var(--line-strong); background: rgba(var(--card-rgb), .45); padding: 0;
  display: inline-flex; align-items: center; justify-content: space-between; padding-inline: 10px;
  color: var(--taupe); transition: border-color .3s;
}
.theme-switch:hover { border-color: var(--wine); }
.theme-switch svg { width: 14px; height: 14px; position: relative; z-index: 1; transition: color .4s, opacity .4s; }
.theme-switch__knob {
  position: absolute; top: 4px; left: 4px; width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #7a1626, var(--wine) 70%);
  box-shadow: 0 0 0 1px rgba(239, 233, 228, .08), 0 4px 14px rgba(90, 14, 26, .55);
  transition: transform .6s cubic-bezier(.22, 1.18, .36, 1);
}
/* the disc always sits on the active mode's icon (moon left / sun right, independent of RTL) */
.theme-switch { direction: ltr; }
.theme-switch__moon { color: var(--on-wine); }
html[data-theme="light"] .theme-switch__knob { transform: translateX(26px); }
html[data-theme="light"] .theme-switch__moon { color: var(--taupe); }
html[data-theme="light"] .theme-switch__sun { color: var(--on-wine); }
@media (max-width: 480px) { .theme-switch { width: 58px; height: 36px; padding-inline: 8px; } .theme-switch__knob { width: 26px; height: 26px; } html[data-theme="light"] .theme-switch__knob { transform: translateX(22px); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-new(root) { animation: none; } }

/* header CTA is outlined (transparent fill): its text follows the ink colour */
html[data-theme="light"] .site-header .header-cta { --fg: var(--white); color: var(--white); }
html[data-theme="light"] .site-header .header-cta:hover { color: var(--space); }

/* ==========================================================================
   CONTACT FORM — quiet, editorial, precise. One hairline card, generous space,
   underline fields that draw a burgundy line on focus, a pill send button with
   a soft sheen. All motion is transform/opacity/background-size only (cheap).
   ========================================================================== */
.inquiry {
  position: relative; grid-template-columns: 1fr 1fr; gap: clamp(26px, 3.2vw, 38px) clamp(20px, 2.6vw, 36px);
  padding: clamp(28px, 4.6vw, 60px); border-radius: 24px;
  background: rgba(var(--card-rgb), .26); border: 1px solid var(--line);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
/* a single hairline of light along the top edge */
.inquiry::before {
  content: ""; position: absolute; top: -1px; inset-inline: 12%; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--wine-ink), transparent); opacity: .7;
}
.inquiry__head { grid-column: 1 / -1; display: grid; gap: 10px; margin-bottom: 4px; }
.inquiry__eyebrow {
  display: inline-flex; align-items: center; gap: 12px; color: var(--taupe);
  font-family: var(--label); font-size: var(--label-size); letter-spacing: var(--label-ls); text-transform: var(--label-case); font-weight: var(--label-w);
}
.inquiry__eyebrow i { width: 22px; height: 1px; background: var(--wine-ink); }
.inquiry__title { font-family: var(--display); font-weight: 400; text-transform: var(--display-case); letter-spacing: var(--display-ls); font-size: clamp(1.9rem, 3.2vw, 2.9rem); line-height: 1.02; color: var(--white); }
html[dir="rtl"] .inquiry__title { font-size: clamp(1.8rem, 2.8vw, 2.5rem); line-height: 1.5; }
.inquiry__note { color: var(--white-50); font-size: .95em; max-width: 44ch; }

.inquiry .field { gap: 6px; }
.inquiry .field label {
  font-family: var(--label); font-size: 10.5px; letter-spacing: .16em; text-transform: var(--label-case); font-weight: var(--label-w);
  color: var(--white-50); transition: color .3s ease;
}
html[dir="rtl"] .inquiry .field label { font-size: 12.5px; letter-spacing: 0; }
.inquiry .field:focus-within label { color: var(--white); }
.inquiry .field input, .inquiry .field textarea, .inquiry .field select {
  padding: 12px 0 13px; font-size: 16px; line-height: 1.6; color: var(--white);
  border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; background-color: transparent;
  /* focus line: drawn from the start edge by animating background-size */
  background-image: linear-gradient(var(--wine-ink), var(--wine-ink));
  background-repeat: no-repeat; background-position: left bottom; background-size: 0% 1.5px;
  transition: background-size .55s var(--ease-out), border-color .3s ease;
}
html[dir="rtl"] .inquiry .field input, html[dir="rtl"] .inquiry .field textarea, html[dir="rtl"] .inquiry .field select { background-position: right bottom; }
.inquiry .field input:focus, .inquiry .field textarea:focus, .inquiry .field select:focus { background-size: 100% 1.5px; border-color: var(--line-strong); }
.inquiry .field input::placeholder, .inquiry .field textarea::placeholder { color: var(--white-35); transition: opacity .3s ease; }
.inquiry .field input:focus::placeholder, .inquiry .field textarea:focus::placeholder { opacity: .45; }
.inquiry .field textarea { min-height: 112px; resize: vertical; }
.inquiry .select select { padding-inline-end: 28px; }
.inquiry .field.has-error input, .inquiry .field.has-error textarea, .inquiry .field.has-error select { border-color: #b8584c; background-image: linear-gradient(#b8584c, #b8584c); background-size: 100% 1px; }
.inquiry .field__error { font-size: 12px; color: #c96a5d; min-height: 1.1em; }
.inquiry .field__error:not(:empty) { animation: err-in .35s var(--ease-out); }
@keyframes err-in { from { opacity: 0; transform: translateY(-4px); } }
.field__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field__count { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; color: var(--white-35); white-space: nowrap; transition: color .3s; direction: ltr; }
html[dir="rtl"] .field__count { font-family: var(--fa-text); font-size: 12px; letter-spacing: 0; }
.field__count.is-ok { color: var(--wine-ink); }

/* send */
.inquiry__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; margin-top: 4px; }
.send {
  position: relative; display: inline-flex; align-items: center; gap: 16px; height: 58px; padding-inline: 30px 8px;
  border: 0; border-radius: 999px; background: var(--wine); color: var(--on-wine); cursor: pointer; overflow: hidden; isolation: isolate;
  font-family: var(--label); font-size: 11.5px; letter-spacing: .18em; text-transform: var(--label-case); font-weight: var(--label-w);
  box-shadow: 0 10px 30px -14px rgba(90, 14, 26, .9);
  transition: transform .25s var(--ease-out), box-shadow .4s ease, background .3s ease;
}
html[dir="rtl"] .send { font-size: 14px; letter-spacing: 0; }
/* soft sheen that crosses the button on hover */
.send::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(239, 233, 228, .16) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .9s var(--ease-out);
}
.send:hover::before, .send:focus-visible::before { transform: translateX(120%); }
.send:hover, .send:focus-visible { background: var(--wine-hi); box-shadow: 0 14px 36px -14px rgba(90, 14, 26, 1); }
.send:active { transform: scale(.97); }
.send__icon {
  position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(239, 233, 228, .12); transition: background .35s ease, color .35s ease;
}
.send__icon svg { width: 17px; height: 17px; transition: transform .45s var(--ease-out), opacity .2s; }
html[dir="rtl"] .send__icon svg { scale: -1 1; }
.send:hover .send__icon, .send:focus-visible .send__icon { background: var(--on-wine); color: var(--wine); }
.send:hover .send__icon svg { transform: translateX(3px); }
.send__spin {
  position: absolute; width: 18px; height: 18px; border-radius: 50%; opacity: 0;
  border: 1.5px solid currentColor; border-top-color: transparent; transition: opacity .2s;
}
.send.is-sending { pointer-events: none; }
.send.is-sending .send__icon svg { opacity: 0; }
.send.is-sending .send__spin { opacity: 1; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.send[disabled] { opacity: 1; }
.inquiry__privacy { font-size: 12px; color: var(--white-35); max-width: 36ch; line-height: 1.6; }

/* status line */
.form-status { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--white-80); }
.form-status:empty { display: none; }
.form-status:not(:empty) { animation: err-in .4s var(--ease-out); }
.form-status__icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 1px solid currentColor; }
.form-status__icon svg { width: 15px; height: 15px; }
.form-status.is-ok { color: var(--white); }
.form-status.is-ok .form-status__icon { color: var(--on-wine); background: var(--wine); border-color: var(--wine); }
.form-status.is-err { color: #c96a5d; }

/* "not sent yet" panel */
.offline-panel { border: 1px solid var(--line-strong); border-radius: 18px; background: rgba(var(--card-rgb), .4); padding: clamp(18px, 2.4vw, 26px); gap: 12px; }
.offline-panel__title { color: var(--white); display: flex; align-items: center; gap: 10px; }
.offline-panel__title::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--wine-ink); flex: none; }
.offline-panel__msg { background: rgba(var(--bg-rgb), .55); border-color: var(--line); border-radius: 12px; }

/* entry: the form's parts settle in one after another */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal="form"] { opacity: 1; transform: none; }
  .js [data-reveal="form"] > * { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
  .js [data-reveal="form"].is-in > * { opacity: 1; transform: none; }
  .js [data-reveal="form"].is-in > :nth-child(2) { transition-delay: .06s; }
  .js [data-reveal="form"].is-in > :nth-child(3) { transition-delay: .12s; }
  .js [data-reveal="form"].is-in > :nth-child(4) { transition-delay: .18s; }
  .js [data-reveal="form"].is-in > :nth-child(5) { transition-delay: .24s; }
  .js [data-reveal="form"].is-in > :nth-child(n+6) { transition-delay: .3s; }
}

@media (max-width: 820px) {
  .inquiry { grid-template-columns: 1fr; border-radius: 20px; }
}
@media (max-width: 480px) {
  .inquiry { padding: 24px 20px; }
  .send { width: 100%; justify-content: space-between; }
  .inquiry__privacy { max-width: none; }
}