/* Ya’ar Levi Firseck, v1.0
   Layout: a cinema viewfinder laid over a living particle scene. Content is
   start-aligned on one centered measure and flips with language direction;
   the production HUD (crop marks, seed, timecode) sits on the frame edges.
   Single committed dark look: film-base black graded teal and amber. */

:root {
  /* color */
  --ink: #05080a;          /* film-base black, teal bias */
  --ink-2: #0b1417;        /* raised surfaces */
  --bone: #ece5d8;         /* projection white */
  --smoke: #909b9d;        /* secondary text */
  --teal: #35d3c6;         /* shadow grade */
  --amber: #ff8a3d;        /* highlight grade */
  --gold: #ffc07a;
  --line: rgb(236 229 216 / 0.14);
  --line-2: rgb(236 229 216 / 0.3);

  /* type */
  --font-display: "Archivo", "Noto Sans Hebrew", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Newsreader", "Frank Ruhl Libre", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", "Noto Sans Hebrew", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --fs-xs: 0.6875rem;                                   /* 11  HUD, timecode */
  --fs-sm: 0.875rem;                                    /* 14  captions, labels */
  --fs-base: 1.0625rem;                                 /* 17  body */
  --fs-md: 1.3125rem;                                   /* 21  lead text */
  --fs-lg: clamp(2rem, 0.6rem + 3vw, 3.75rem);          /* discipline titles */
  --fs-xl: clamp(2.5rem, 1rem + 6vw, 7rem);             /* section titles */
  --fs-hero: clamp(3.25rem, 14vw, 15rem);               /* studio name */

  /* space and frame */
  --g-l: max(16px, env(safe-area-inset-left, 0px));
  --g-r: max(16px, env(safe-area-inset-right, 0px));
  --wrap-pad: clamp(0px, calc(3.2vw - 12px), 48px);
  --frame: clamp(10px, 1.4vw, 20px);
  --nav-h: 72px;
  --ctl-h: 36px;           /* every pill control shares this height */
  --origin-start: left;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);

  color-scheme: dark;
}
html[dir="rtl"] { --origin-start: right; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--ink);
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  min-height: 100%;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-display);
  font-size: var(--fs-base);
  line-height: 1.55;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--amber); color: var(--ink); }
img { max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
main:focus, section:focus, h2:focus { outline: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.skip {
  position: fixed; z-index: 200;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  left: max(16px, env(safe-area-inset-left, 0px));
  padding: 10px 14px;
  background: var(--bone); color: var(--ink);
  text-decoration: none; font-weight: 600;
  translate: 0 -200%;
  transition: translate 0.2s;
}
.skip:focus { translate: 0 0; }

.wrap {
  width: 100%;
  max-width: 1480px;
  margin-inline: auto;
  padding-inline: var(--wrap-pad);
}
/* Full-bleed bands cancel the body gutter and re-add it inside */
.bleed {
  margin-left: calc(-1 * var(--g-l));
  margin-right: calc(-1 * var(--g-r));
}
.bleed > .wrap {
  max-width: calc(1480px + var(--g-l) + var(--g-r));
  padding-left: calc(var(--g-l) + var(--wrap-pad));
  padding-right: calc(var(--g-r) + var(--wrap-pad));
}

/* ---------- stage ---------- */
.gl {
  position: fixed; top: 0; left: 0; z-index: 0;
  display: block;
  width: 100vw; height: 100vh; height: 100lvh;
  max-width: none;
  pointer-events: none;
}
.atmos {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60vmax 50vmax at 88% 8%, rgb(255 138 61 / 0.1), transparent 62%),
    radial-gradient(70vmax 60vmax at 4% 96%, rgb(53 211 198 / 0.09), transparent 62%),
    radial-gradient(130vmax 95vmax at 50% 50%, transparent 52%, rgb(0 0 0 / 0.6));
}
.orb-fallback { display: none; }
html.no-gl .orb-fallback {
  display: block; position: absolute;
  width: 46vmin; aspect-ratio: 1;
  top: 16%; right: 10%;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, var(--bone), var(--teal) 28%, rgb(53 211 198 / 0.18) 56%, transparent 70%);
  opacity: 0.55;
}
html.no-gl[dir="rtl"] .orb-fallback { right: auto; left: 10%; }

.grain {
  position: fixed; inset: -50%; z-index: 60;
  pointer-events: none;
  opacity: 0.065;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(5) infinite;
  @media (prefers-reduced-motion: reduce) { animation: none; }
}
@keyframes grain {
  0% { translate: 0 0; } 20% { translate: -3% 2%; } 40% { translate: 2% -3%; }
  60% { translate: -2% -1%; } 80% { translate: 3% 3%; } 100% { translate: 0 0; }
}

.lb {
  position: fixed; left: 0; right: 0; z-index: 90;
  height: 0;
  background: var(--ink);
  pointer-events: none;
  transition: height 0.95s var(--ease-io);
}
.lb-top { top: 0; }
.lb-bottom { bottom: 0; }
html.is-intro .lb { height: max(0px, calc((100lvh - 100vw / 2.39) / 2)); transition: none; }
html.is-cut .lb { height: 51lvh; transition-duration: 0.45s; }

.loader {
  position: fixed; inset: 0; z-index: 95;
  display: grid; place-content: center; justify-items: center; gap: 10px;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  color: var(--smoke);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0s linear 0.5s;
}
html.is-intro .loader { opacity: 1; visibility: visible; transition: none; }
.loader p { margin: 0; }
.loader-main { color: var(--bone); font-size: var(--fs-sm); }
.loader-bar { position: relative; display: block; width: 160px; height: 1px; background: var(--line); overflow: hidden; }
.loader-bar i { position: absolute; inset: 0; background: var(--amber); transform-origin: left; scale: var(--load, 0) 1; }

/* ---------- HUD ---------- */
.hud {
  position: fixed; inset: 0; z-index: 40;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  color: var(--smoke);
  transition: opacity 1s 0.4s;
}
.hud::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: calc(var(--frame) + 64px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, rgb(5 8 10 / 0.88), rgb(5 8 10 / 0));
}
.crop { position: absolute; width: 18px; height: 18px; border: 0 solid var(--line-2); }
.crop-tl { top: calc(var(--frame) + env(safe-area-inset-top, 0px)); left: calc(var(--frame) + env(safe-area-inset-left, 0px)); border-top-width: 1px; border-left-width: 1px; }
.crop-tr { top: calc(var(--frame) + env(safe-area-inset-top, 0px)); right: calc(var(--frame) + env(safe-area-inset-right, 0px)); border-top-width: 1px; border-right-width: 1px; }
.crop-bl { bottom: calc(var(--frame) + env(safe-area-inset-bottom, 0px)); left: calc(var(--frame) + env(safe-area-inset-left, 0px)); border-bottom-width: 1px; border-left-width: 1px; }
.crop-br { bottom: calc(var(--frame) + env(safe-area-inset-bottom, 0px)); right: calc(var(--frame) + env(safe-area-inset-right, 0px)); border-bottom-width: 1px; border-right-width: 1px; }
.hud p {
  position: absolute;
  bottom: calc(var(--frame) + 4px + env(safe-area-inset-bottom, 0px));
  margin: 0;
  display: flex; align-items: center; gap: 8px;
  line-height: 1;
}
.hud-seed { left: calc(var(--frame) + 30px + env(safe-area-inset-left, 0px)); }
.hud-gap { margin-left: 10px; }
.hud-scene { left: 50%; translate: -50% 0; }
.hud-tc { right: calc(var(--frame) + 30px + env(safe-area-inset-right, 0px)); color: var(--bone); }
.rec {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
  animation: rec 2s ease-in-out infinite;
  @media (prefers-reduced-motion: reduce) { animation: none; }
}
@keyframes rec { 50% { opacity: 0.25; } }

/* ---------- cursor (fine pointers only) ---------- */
.cursor { position: fixed; inset: 0; z-index: 120; pointer-events: none; display: none; transition: opacity 0.2s; }
html.has-cursor .cursor { display: block; }
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor input, html.has-cursor textarea { cursor: text !important; }
.cursor.is-text, .cursor.is-away { opacity: 0; }
.cursor .c { position: absolute; top: 0; left: 0; width: 9px; height: 9px; border: 0 solid var(--bone); will-change: transform; transition: border-color 0.25s; }
.c-tl { border-top-width: 1.5px !important; border-left-width: 1.5px !important; }
.c-tr { border-top-width: 1.5px !important; border-right-width: 1.5px !important; }
.c-bl { border-bottom-width: 1.5px !important; border-left-width: 1.5px !important; }
.c-br { border-bottom-width: 1.5px !important; border-right-width: 1.5px !important; }
.cursor.is-locked .c { border-color: var(--amber); }
.cursor-dot { position: absolute; top: 0; left: 0; width: 4px; height: 4px; border-radius: 50%; background: var(--amber); transition: opacity 0.2s; }
.cursor.is-locked .cursor-dot { opacity: 0; }
.cursor-label { position: absolute; top: 0; left: 0; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--amber); white-space: nowrap; }

/* ---------- navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: max(calc(var(--frame) + 24px), calc(env(safe-area-inset-left, 0px) + 16px));
  padding-right: max(calc(var(--frame) + 24px), calc(env(safe-area-inset-right, 0px) + 16px));
  display: flex; align-items: center; gap: 24px;
  background: linear-gradient(to bottom, rgb(5 8 10 / 0.9), rgb(5 8 10 / 0.55) 60%, rgb(5 8 10 / 0));
  transition: opacity 1s 0.3s;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
  font-variation-settings: "wdth" 125;
  white-space: nowrap;
}
.brand-full {
  max-width: 0; overflow: hidden; opacity: 0;
  font-weight: 600; font-variation-settings: "wdth" 100;
  transition: max-width 0.7s var(--ease-out), opacity 0.4s;
}
.brand:hover .brand-full, .brand:focus-visible .brand-full { max-width: 12em; opacity: 1; }
.brand-rec { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px var(--amber); }

.nav-links { margin-inline-start: auto; }
.nav-links ul { display: flex; gap: clamp(16px, 2.2vw, 32px); list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative;
  display: inline-block;
  padding-block: 6px;
  font-size: var(--fs-sm);
  text-decoration: none;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--amber);
  scale: 0 1; transform-origin: var(--origin-start);
  transition: scale 0.5s var(--ease-out);
}
.nav-links a:hover::after, .nav-links a[aria-current="true"]::after { scale: 1 1; }

.nav-tools { display: flex; align-items: center; gap: 10px; }
.lang {
  display: inline-flex; align-items: center;
  height: var(--ctl-h);
  padding: 2px;
  border: 1px solid var(--line-2); border-radius: 999px;
}
.lang button {
  appearance: none; border: 0; background: transparent;
  min-width: 38px; height: 100%;
  padding-inline: 10px;
  border-radius: 999px;
  font-size: 0.75rem; font-weight: 600;
  color: var(--smoke);
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.lang button[aria-pressed="true"] { background: var(--bone); color: var(--ink); }
.pill, .sound, .menu-btn, .menu-close {
  appearance: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--ctl-h);
  padding-inline: 14px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: transparent;
  font-size: 0.75rem; font-weight: 600;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}
.pill:hover, .sound:hover, .menu-btn:hover, .menu-close:hover { border-color: var(--bone); }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.eq i { width: 2px; height: 3px; background: currentColor; }
.sound.is-on { border-color: var(--amber); }
.sound.is-on .eq i {
  background: var(--amber);
  animation: eq 0.9s ease-in-out infinite alternate;
  @media (prefers-reduced-motion: reduce) { animation: none; height: 8px; }
}
.sound.is-on .eq i:nth-child(2) { animation-delay: -0.3s; }
.sound.is-on .eq i:nth-child(3) { animation-delay: -0.55s; }
.sound.is-on .eq i:nth-child(4) { animation-delay: -0.15s; }
@keyframes eq { from { height: 3px; } to { height: 12px; } }
.menu-btn { display: none; }

.menu {
  position: fixed; inset: 0;
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; border: 0;
  padding-top: calc(env(safe-area-inset-top, 0px) + 18px);
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  background: rgb(5 8 10 / 0.97);
  color: var(--bone);
}
.menu::backdrop { background: transparent; }
.menu[open] { display: grid; }
.menu-inner { display: grid; grid-template-rows: auto 1fr; gap: 24px; }
.menu-close { justify-self: end; }
.menu-links { list-style: none; margin: 0; padding: 0; display: grid; align-content: center; gap: 4px; }
.menu-links a {
  display: inline-block;
  font-size: clamp(2.5rem, 12vw, 4.5rem);
  font-weight: 800; line-height: 1.08;
  font-variation-settings: "wdth" 125;
  text-decoration: none;
}
.menu[open] .menu-links li {
  animation: rise 0.7s var(--ease-out) both;
  @media (prefers-reduced-motion: reduce) { animation: none; }
}
.menu[open] .menu-links li:nth-child(2) { animation-delay: 0.05s; }
.menu[open] .menu-links li:nth-child(3) { animation-delay: 0.1s; }
.menu[open] .menu-links li:nth-child(4) { animation-delay: 0.15s; }
.menu[open] .menu-links li:nth-child(5) { animation-delay: 0.2s; }
@keyframes rise { from { opacity: 0; translate: 0 24px; } }

/* ---------- intro states ---------- */
html.is-intro .nav, html.is-intro .hud,
html.is-intro .hero-kicker, html.is-intro .prompt, html.is-intro .scroll-cue,
html.is-intro .hero-title { opacity: 0; }
html.is-intro .hero-kicker, html.is-intro .prompt, html.is-intro .scroll-cue { translate: 0 14px; }

/* ---------- sections ---------- */
main { position: relative; z-index: 2; }
.sec-title {
  margin: 0;
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--smoke);
}
.sec-title-xl {
  margin: 0;
  font-size: var(--fs-xl);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.012em;
  font-variation-settings: "wdth" 118;
  text-wrap: balance;
}

/* hero */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; align-items: end;
  padding-block: calc(var(--nav-h) + 24px) calc(64px + env(safe-area-inset-bottom, 0px));
}
.hero-inner {
  display: grid; gap: clamp(14px, 2vw, 22px);
  opacity: calc(1 - var(--out, 0) * 0.9);
  translate: 0 calc(var(--out, 0) * -80px);
}
.hero-kicker {
  margin: 0;
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--teal);
  transition: opacity 0.9s 0.15s, translate 0.9s var(--ease-out) 0.15s;
}
.hero-title {
  margin: 0;
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 0.84;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  font-variation-settings: "wdth" 125;
}
html[dir="rtl"] .hero-title { text-align: right; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.05em; margin-bottom: -0.05em; }
.hero-title .line-indent { padding-inline-start: 1.15em; }
html[dir="rtl"] .hero-title .line-indent { padding-inline-start: 0; padding-inline-end: 1.15em; }
.hero-title .ch { display: inline-block; }
.prompt {
  margin: 0;
  max-width: 66ch;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--smoke);
  transition: opacity 0.9s 0.45s, translate 0.9s var(--ease-out) 0.45s;
}
html[dir="rtl"] .prompt { text-align: right; }
.prompt-cmd { color: var(--amber); }
.prompt-text { color: var(--bone); }
.prompt-flags { color: var(--teal); white-space: nowrap; }
.caret {
  display: inline-block;
  width: 0.55em; height: 1.1em;
  margin-left: 4px;
  vertical-align: text-bottom;
  background: var(--amber);
  animation: blink 1.1s steps(1) infinite;
  @media (prefers-reduced-motion: reduce) { animation: none; }
}
@keyframes blink { 50% { opacity: 0; } }
.scroll-cue {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 6px;
  font-size: var(--fs-sm);
  color: var(--smoke);
  text-decoration: none;
  transition: opacity 0.9s 0.75s, translate 0.9s var(--ease-out) 0.75s, color 0.3s;
}
.scroll-cue:hover { color: var(--bone); }
.scroll-cue-line { position: relative; width: 48px; height: 1px; overflow: hidden; background: var(--line-2); }
.scroll-cue-line::after {
  content: ""; position: absolute; inset: 0;
  background: var(--amber);
  translate: -100% 0;
  animation: cue 2.4s var(--ease-io) infinite;
  @media (prefers-reduced-motion: reduce) { animation: none; translate: 0 0; }
}
@keyframes cue { 50% { translate: 0 0; } 100% { translate: 100% 0; } }

/* manifesto */
.manifesto { padding-block: clamp(120px, 22vh, 240px); }
.manifesto-inner { display: grid; gap: clamp(28px, 4vw, 56px); }
.manifesto-text {
  margin: 0;
  max-width: 24ch;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 1rem + 3.6vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}
html[lang="he"] .manifesto-text { line-height: 1.18; letter-spacing: 0; }
html.js .manifesto-text .w { opacity: 0.2; }
/* the last line catches the film light when it strikes */
.manifesto-cue .w { transition: color 0.7s, text-shadow 0.7s; }
.manifesto-cue.is-lit .w { color: var(--gold); text-shadow: 0 0 32px rgb(255 138 61 / 0.35); }
.manifesto-cue.is-lit {
  animation: strike 0.5s steps(1) 1;
  @media (prefers-reduced-motion: reduce) { animation: none; }
}
@keyframes strike {
  0% { opacity: 1; } 10% { opacity: 0.35; } 22% { opacity: 1; } 34% { opacity: 0.55; } 46%, 100% { opacity: 1; }
}

/* disciplines (stacked by default, pinned reel on wide screens) */
.make { position: relative; }
.make-pin { display: grid; gap: clamp(28px, 4vw, 48px); padding-block: clamp(80px, 12vh, 140px); }
.disc-list { display: grid; gap: 56px; }
.disc { display: grid; gap: 20px; padding-top: 28px; border-top: 1px solid var(--line); }
.disc-title {
  margin: 0;
  font-size: var(--fs-lg);
  font-weight: 760;
  line-height: 1;
  letter-spacing: -0.01em;
  font-variation-settings: "wdth" 110;
}
.disc-btn {
  appearance: none; background: none; border: 0; padding: 0; margin: 0;
  font: inherit; letter-spacing: inherit; color: inherit; text-align: inherit;
  cursor: pointer;
}
.disc-body { display: grid; gap: 24px; }
.disc-desc { margin: 0; max-width: 54ch; font-size: var(--fs-md); line-height: 1.5; }
.disc-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px 48px; }
.disc-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; align-content: start; }
.disc-items li { display: flex; align-items: baseline; gap: 12px; }
.disc-items li::before { content: ""; flex: none; width: 14px; height: 1px; background: var(--amber); translate: 0 -0.3em; }
.disc-specs { margin: 0; display: grid; align-content: start; }
.disc-specs div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 12px; padding-block: 9px; border-bottom: 1px solid var(--line); }
.disc-specs div:first-child { padding-top: 0; }
.disc-specs dt { font-size: var(--fs-sm); color: var(--smoke); }
.disc-specs dd { margin: 0; font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--teal); }
.make-progress { display: none; }

/* selected work: one featured film per row, loop on the left, details on the right */
.work { position: relative; padding-block: clamp(80px, 12vh, 140px); }
.work-inner { display: grid; gap: clamp(28px, 4vw, 56px); }
.feature { display: grid; gap: 28px; align-items: center; }
.feature-media {
  position: relative; display: block;
  width: min(100%, 380px); max-width: 100%;
  aspect-ratio: 9 / 16;
  padding: 0; border: 0; border-radius: 4px;
  overflow: hidden;
  background: var(--ink-2);
  box-shadow: 0 40px 90px -40px rgb(0 0 0 / 0.9), 0 0 0 1px var(--line);
  cursor: pointer;
}
.feature-media video { display: block; width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease-out); }
.feature-media:hover video { scale: 1.035; }
.feature-ar {
  position: absolute; top: 12px; inset-inline-start: 12px;
  padding: 3px 7px; border-radius: 2px;
  font-size: var(--fs-xs); color: var(--bone);
  background: rgb(5 8 10 / 0.55);
}
.feature-play {
  position: absolute; inset-inline-end: 14px; bottom: 14px;
  display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--amber); color: var(--ink);
  box-shadow: 0 10px 30px rgb(255 138 61 / 0.35);
  transition: scale 0.4s var(--ease-out), background 0.3s;
}
.feature-play svg { translate: 1px 0; }
.feature-media:hover .feature-play { scale: 1.1; background: var(--gold); }
.feature-info { display: grid; gap: 20px; align-content: start; max-width: 46ch; min-width: 0; }
.feature-type { margin: 0; font-size: var(--fs-md); color: var(--teal); }
.feature-title {
  margin: 0;
  font-size: clamp(2.75rem, 1rem + 4.6vw, 6rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.012em;
  font-variation-settings: "wdth" 118;
}
html[dir="rtl"] .feature-title { text-align: right; }
.feature-log { margin: 0; font-family: var(--font-serif); font-size: clamp(1.25rem, 1rem + 0.8vw, 1.65rem); line-height: 1.35; }
.feature-specs { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.feature-specs div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-block: 10px; border-bottom: 1px solid var(--line); }
.feature-specs dt { font-size: var(--fs-sm); color: var(--smoke); }
.feature-specs dd { margin: 0; font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--teal); }
.feature-btn { justify-self: start; gap: 10px; margin-top: 6px; }

/* the film player */
.player {
  position: fixed; inset: 0;
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; border: 0;
  padding-top: calc(env(safe-area-inset-top, 0px) + 14px);
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  background: rgb(3 5 6 / 0.97);
  color: var(--bone);
}
.player::backdrop { background: rgb(0 0 0 / 0.6); }
.player[open] { display: grid; }
.player-inner { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 14px; width: 100%; max-width: 1100px; height: 100%; margin-inline: auto; }
.player-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.player-title { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; font-size: var(--fs-md); font-weight: 700; }
.player-type { font-size: var(--fs-sm); font-weight: 500; color: var(--smoke); }
/* the video is placed absolutely so its own size never stretches the layout */
.player-stage { position: relative; min-height: 0; }
.player-video {
  position: absolute; inset: 0;
  display: block;
  height: 100%; width: auto; max-width: 100%;
  aspect-ratio: 9 / 16;
  margin: auto;
  border-radius: 4px;
  background: #000;
  object-fit: contain;
}
.player-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 6px;
  background: rgb(11 20 23 / 0.85);
  font-size: var(--fs-xs); color: var(--smoke);
}
.player-btn {
  appearance: none;
  display: grid; place-items: center;
  width: 40px; height: 40px; flex: none;
  border: 1px solid var(--line-2); border-radius: 50%;
  background: transparent; color: var(--bone);
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
}
.player-btn:hover { border-color: var(--bone); }
.player-toggle { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.player-toggle:hover { background: var(--gold); border-color: var(--gold); }
.player .i-pause, .player.is-playing .i-play, .player .i-mute, .player.is-muted .i-vol { display: none; }
.player.is-playing .i-pause, .player.is-muted .i-mute { display: block; }
.player-scrub { position: relative; flex: 1 1 260px; min-width: 160px; height: 30px; display: flex; align-items: center; }
.player-shots { position: absolute; inset: 0; pointer-events: none; }
.player-shots i { position: absolute; top: 5px; bottom: 5px; width: 1px; background: rgb(236 229 216 / 0.32); }
.player-range { position: relative; width: 100%; height: 30px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.player-range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--amber) calc(var(--p, 0) * 100%), rgb(236 229 216 / 0.18) 0); }
.player-range::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: var(--bone); box-shadow: 0 0 0 4px rgb(255 138 61 / 0.35); }
.player-range::-moz-range-track { height: 4px; border-radius: 2px; background: rgb(236 229 216 / 0.18); }
.player-range::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--amber); }
.player-range::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--bone); }
.player-range:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.player-time { color: var(--bone); }
.player-shot { color: var(--teal); }
/* the custom cursor sits under the top layer, so dialogs use the system cursor */
html.has-cursor dialog, html.has-cursor dialog * { cursor: auto !important; }
html.has-cursor dialog button, html.has-cursor dialog input, html.has-cursor dialog a { cursor: pointer !important; }

/* marquee */
.marquee {
  position: relative; z-index: 2;
  overflow: hidden;
  padding-block: clamp(36px, 6vw, 88px);
  border-block: 1px solid var(--line);
}
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-group { display: flex; align-items: center; flex: none; }
.marquee-item {
  padding-inline: 0.18em;
  font-size: clamp(3.5rem, 11vw, 11rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  font-variation-settings: "wdth" var(--mw, 125);
}
.marquee-item:nth-child(4n + 3) { color: rgb(236 229 216 / 0.2); }
.marquee-dot {
  flex: none;
  width: clamp(10px, 1.4vw, 22px); aspect-ratio: 1;
  margin-inline: clamp(10px, 1.6vw, 26px);
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 18px rgb(255 138 61 / 0.6);
}

/* process timeline */
.process { position: relative; }
.process-pin { display: grid; gap: clamp(32px, 4vw, 52px); padding-block: clamp(80px, 12vh, 140px); }
.timeline {
  position: relative;
  margin-top: 34px;
  padding-block: 10px;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
  border: 1px solid var(--line); border-radius: 4px;
  background: rgb(11 20 23 / 0.74);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--smoke);
}
.tl-row { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; padding-inline-end: 10px; }
.tl-row + .tl-row { margin-top: 6px; }
.tl-name { padding-inline-start: 10px; }
.tl-cells { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; }
.tl-ruler .tl-cells span { padding-inline-start: 6px; padding-bottom: 4px; line-height: 1; border-inline-start: 1px solid var(--line-2); }
.tl-clip {
  display: flex; align-items: center;
  height: 36px; min-width: 0;
  padding-inline: 8px;
  overflow: hidden;
  border: 1px solid rgb(53 211 198 / 0.45); border-radius: 3px;
  background: rgb(53 211 198 / 0.2);
  font-family: var(--font-display);
  font-size: 0.75rem; font-weight: 600;
  color: var(--bone);
  white-space: nowrap;
  transition: background-color 0.4s, border-color 0.4s, color 0.4s;
}
.tl-clip > span { overflow: hidden; text-overflow: ellipsis; }
.tl-clip:hover { border-color: var(--bone); }
.tl-clip.is-active { background-color: var(--amber); border-color: var(--amber); color: var(--ink); }
.tl-wave {
  height: 26px;
  border-color: rgb(255 138 61 / 0.35);
  background-color: rgb(255 138 61 / 0.12);
  background-image: var(--wave, none);
  background-size: 100% 100%;
}
.tl-wave.is-active { background-color: rgb(255 138 61 / 0.55); border-color: var(--amber); }
.tl-overlay { position: absolute; top: 0; bottom: 0; inset-inline-start: 40px; inset-inline-end: 10px; pointer-events: none; }
/* the playhead is a slider: drag the handle or the line, or use the arrow keys */
.tl-playhead {
  position: absolute; top: -6px; bottom: -6px;
  inset-inline-start: calc(var(--p, 0) * 100%);
  width: 1px;
  margin-inline-start: -0.5px;
  background: var(--amber);
  box-shadow: 0 0 12px var(--amber);
  pointer-events: auto;
  touch-action: none;
  cursor: grab;
  outline: none;
}
.tl-playhead::before { content: ""; position: absolute; top: 0; bottom: 0; left: -14px; width: 29px; }
.tl-handle {
  position: absolute; bottom: 100%; left: 50%;
  translate: -50% 0;
  display: flex; align-items: center; gap: 7px;
  margin-bottom: 6px;
  padding: 5px 9px 5px 7px;
  border-radius: 3px;
  background: var(--amber); color: var(--ink);
  white-space: nowrap;
  box-shadow: 0 6px 18px rgb(255 138 61 / 0.35);
  transition: scale 0.25s var(--ease-out), background 0.25s;
}
.tl-handle::after {
  content: ""; position: absolute; left: 50%; top: 100%;
  translate: -50% 0;
  border: 6px solid transparent; border-top-color: var(--amber);
}
.tl-grip { display: grid; grid-template-columns: repeat(3, 2px); gap: 2px; }
.tl-grip i { width: 2px; height: 11px; border-radius: 1px; background: rgb(5 8 10 / 0.5); }
.tl-tc { font-size: var(--fs-xs); font-weight: 500; }
.tl-playhead:hover .tl-handle, .timeline.is-dragging .tl-handle { scale: 1.08; background: var(--gold); }
.timeline.is-dragging, .timeline.is-dragging .tl-playhead { cursor: grabbing; }
.tl-playhead:focus-visible .tl-handle { outline: 2px solid var(--bone); outline-offset: 3px; }
.tl-hint { margin: -12px 0 0; font-size: var(--fs-sm); color: var(--smoke); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.step { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 1px solid var(--line); transition: opacity 0.45s; }
html.js .step { opacity: 0.38; }
html.js .step.is-active { opacity: 1; }
.step-no { font-size: 0.75rem; color: var(--amber); }
.step-title { margin: 0; font-size: var(--fs-md); font-weight: 700; line-height: 1.2; font-variation-settings: "wdth" 106; }
.step-desc { margin: 0; max-width: 42ch; font-size: var(--fs-sm); line-height: 1.55; color: var(--smoke); }

/* contact: a stage for the director's chair set beside the title and form.
   Phones stack title, contact details, stage, form. Wide screens keep the
   stage sticky in its own column while the form scrolls past it. */
.contact { position: relative; padding-block: clamp(96px, 14vh, 160px) clamp(80px, 12vh, 140px); }
.contact-inner { display: flex; flex-direction: column; gap: 36px; }
.contact-main { display: contents; }
.contact-title {
  order: 1;
  margin: 0;
  max-width: 17ch;
  font-size: clamp(2.5rem, 1rem + 5vw, 5.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.012em;
  font-variation-settings: "wdth" 112;
  text-wrap: balance;
  white-space: pre-line; /* the copy breaks after the comma: "You bring the brief, / we'll set ..." */
}
html[lang="he"] .contact-title { line-height: 1.05; letter-spacing: 0; }
.contact-side { order: 2; }
.finale-stage { order: 3; width: 100%; height: clamp(260px, 72vw, 360px); }
.brief { order: 4; }
.contact-sub { margin: 0 0 32px; max-width: 40ch; font-size: var(--fs-md); line-height: 1.5; }
.direct-label { margin: 0 0 10px; font-size: var(--fs-sm); color: var(--smoke); }
.email-row { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.email {
  font-size: clamp(1.15rem, 0.9rem + 1vw, 1.6rem);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  overflow-wrap: anywhere;
  user-select: all;
}
.email:hover { border-color: var(--amber); }
.brief { display: grid; gap: 28px; min-width: 0; }
.chips { margin: 0; padding: 0; border: 0; min-width: 0; }
.chips legend { padding: 0; margin-bottom: 12px; font-size: var(--fs-sm); color: var(--smoke); }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center;
  height: var(--ctl-h);
  padding-inline: 14px;
  border: 1px solid var(--line-2); border-radius: 999px;
  font-size: var(--fs-sm);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.chip:hover span { border-color: var(--bone); }
.chip input:checked + span { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 3px; }
.field-row { display: grid; gap: 28px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: var(--fs-sm); color: var(--smoke); }
.field input, .field textarea {
  width: 100%;
  padding: 10px 0;
  border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0;
  background: transparent;
  color: var(--bone);
  resize: vertical;
  transition: border-color 0.3s;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--amber); }
.field input::placeholder, .field textarea::placeholder { color: rgb(144 155 157 / 0.6); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding-inline: 28px;
  border: 0; border-radius: 999px;
  background: var(--amber); color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s;
}
.btn:hover { background: var(--gold); }
.status { margin: 0; min-height: 1.5em; max-width: 44ch; font-size: var(--fs-sm); color: var(--teal); }
.field .brief-out {
  padding: 12px;
  border: 1px solid var(--line-2); border-radius: 4px;
  background: rgb(11 20 23 / 0.8);
  font-family: var(--font-mono); font-size: var(--fs-sm);
}

/* footer */
.foot {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding-block: 28px calc(64px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--smoke);
}
.foot p { margin: 0; }
.ver { margin-inline-start: 8px; padding: 2px 6px; border: 1px solid var(--line-2); border-radius: 3px; font-size: var(--fs-xs); color: var(--teal); }
.foot-actions { display: flex; align-items: center; gap: 20px; }
.foot a { color: var(--smoke); text-underline-offset: 3px; }
.foot a:hover { color: var(--bone); }
.link-btn {
  padding: 0; border: 0; background: none;
  font-size: var(--fs-sm); color: var(--smoke);
  text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer;
}
.link-btn:hover { color: var(--bone); }

/* paused motion */
html.is-paused *, html.is-paused *::before, html.is-paused *::after { animation-play-state: paused !important; }

/* ---------- responsive ---------- */
@media (min-width: 640px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 899px) {
  :root { --nav-h: 60px; }
  .nav { gap: 12px; }
  .nav-links { display: none; }
  .nav-tools { margin-inline-start: auto; }
  .menu-btn { display: inline-flex; }
  .sound { padding-inline: 12px; }
  .sound-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .hud .hud-seed, .hud .hud-scene { display: none; }
  .hero { padding-bottom: calc(52px + env(safe-area-inset-bottom, 0px)); }
  .timeline {
    position: sticky; z-index: 3;
    top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 40px);
    background: rgb(11 20 23 / 0.96);
    box-shadow: 0 18px 24px -8px var(--ink);
  }
  /* once the timeline sticks under the menu, a band above it hides the steps scrolling up behind it.
     Hidden until then, so it never covers the section title or the 3D */
  .timeline::before {
    content: ""; position: absolute; z-index: -1;
    left: -1px; right: -1px; bottom: calc(100% + 1px);
    height: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 42px);
    background: var(--ink);
    opacity: 0; transition: opacity 0.2s;
    pointer-events: none;
  }
  .timeline.is-stuck::before { opacity: 1; }
  .process .sec-title-xl { position: relative; z-index: 4; }
  .tl-clip { height: 24px; padding-inline: 0; }
  .tl-clip > span { display: none; }
  .tl-wave { height: 16px; }
  .tl-ruler .tl-cells span { font-size: 9px; padding-inline-start: 3px; }
}

@media (min-width: 900px) {
  .feature { grid-template-columns: auto minmax(0, 1fr); gap: clamp(40px, 6vw, 112px); }
  .feature-media { width: auto; height: min(74lvh, 700px); }
  .contact-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 5vw, 96px); align-items: start; }
  .contact-main { display: grid; gap: 44px; min-width: 0; }
  .contact-title { font-size: clamp(2.75rem, 0.8rem + 3.8vw, 5.25rem); }
  .finale-stage { position: sticky; top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 16px); height: min(62lvh, 560px); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; }

  /* disciplines become a pinned reel */
  html.js .make { height: 400lvh; }
  html.js .make-pin {
    position: sticky; top: 0;
    height: 100lvh;
    align-content: center;
    padding-block: calc(var(--nav-h) + 16px) 72px;
  }
  html.js .disc-list { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 48px; row-gap: 4px; }
  html.js .disc { display: contents; }
  html.js .disc-title {
    grid-column: 1;
    opacity: 0.26;
    font-variation-settings: "wdth" 70;
    transition: opacity 0.5s, font-variation-settings 0.8s var(--ease-out);
  }
  html.js .disc-btn:hover { color: var(--gold); }
  html.js .disc:nth-child(1) .disc-title { grid-row: 1; }
  html.js .disc:nth-child(2) .disc-title { grid-row: 2; }
  html.js .disc:nth-child(3) .disc-title { grid-row: 3; }
  html.js .disc:nth-child(4) .disc-title { grid-row: 4; }
  html.js .disc.is-active .disc-title { opacity: 1; font-variation-settings: "wdth" 125; }
  html.js .disc-body {
    grid-column: 1; grid-row: 5;
    margin-top: clamp(20px, 4vh, 44px);
    opacity: 0; visibility: hidden;
    translate: 0 16px;
    transition: opacity 0.45s, translate 0.8s var(--ease-out), visibility 0s linear 0.45s;
  }
  html.js .disc.is-active .disc-body {
    opacity: 1; visibility: visible; translate: 0 0;
    transition: opacity 0.5s 0.1s, translate 0.8s var(--ease-out) 0.1s, visibility 0s;
  }
  html.js .make-progress { display: block; position: relative; height: 1px; max-width: 56%; background: var(--line); }
  html.js .make-progress i { position: absolute; inset: 0; background: var(--amber); transform-origin: var(--origin-start); scale: 0 1; }

  /* process pins while the playhead scrubs */
  html.js .process { height: 320lvh; }
  html.js .process-pin {
    position: sticky; top: 0;
    height: 100lvh;
    align-content: center;
    padding-block: calc(var(--nav-h) + 24px) 64px;
  }
}

@media (min-width: 1200px) {
  .steps { grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 3px; margin-inline-start: 40px; margin-inline-end: 10px; }
  .step { padding-inline-end: 18px; }
}
