/* MURALEE — V3 scroll mockup */

:root {
  --night: #121110;
  --paper: #efebe4;
  --paper-2: #e6e1d8;
  --ink: #2a2824;
  --ink-soft: #57524b;
  --ink-mute: #8d877e;
  --coal: #2b2926;
  --coal-2: #232120;
  --coal-3: #181715;
  --cream: #ece7df;
  --cream-mute: #9b958c;
  --tan: #cba882;
  --line-dark: rgba(236, 231, 223, 0.14);
  --line-light: rgba(42, 40, 36, 0.14);

  --gap: 9px;
  /* nav bar scales with the window, in Partizan's proportions: 50px at 1440 wide, 60px at 1730, 68px at 2000 */
  --nav-h: clamp(46px, 3.47vw, 72px);
  --top: calc(var(--gap) + var(--nav-h) + 3px);
  --card-h: calc(100svh - var(--top) - var(--gap));
  --radius: 10px;
  --pad: clamp(18px, 2.2vw, 36px);

  /* Titles: Helvetica Neue LT Pro Bold Extended (user's licensed file) */
  --f-title: "Helvetica Neue LT Pro BdEx", "Archivo", "Helvetica Neue", Arial, sans-serif;
  /* Text: GT America (Regular, Medium for navigation, Bold for the work counter). Inter Tight is the fallback
     and is what shows wherever the GT America files are not served. */
  --f-body: "GT America", "Inter Tight", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --title-weight: 700;
  --title-track: -0.01em;
  --title-stretch: 100%;
  --title-case: uppercase;
  --title-scale: 0.8;
  --title-lh: 0.95;

  --ease: cubic-bezier(.2, .7, .1, 1);
  --expo: cubic-bezier(.16, 1, .3, 1);
}

@font-face { font-family: "GT America"; src: url("fonts/gt-america/GT-America-Standard-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "GT America"; src: url("fonts/gt-america/GT-America-Standard-Medium-Trial.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "GT America"; src: url("fonts/gt-america/GT-America-Standard-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }
@font-face {
  font-family: "Helvetica Neue LT Pro BdEx";
  src: url("fonts/HelveticaNeueLTPro-BdEx.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, svg { display: block; }

.t {
  font-family: var(--f-title);
  font-weight: var(--title-weight);
  letter-spacing: var(--title-track);
  font-stretch: var(--title-stretch);
  text-transform: var(--title-case);
  line-height: var(--title-lh);
  margin: 0;
}
.cap {
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.3;
}
.num { color: var(--ink-mute); margin-right: 8px; font-variant-numeric: tabular-nums; }
.on-dark .num { color: var(--cream-mute); }
.tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  border-radius: 4px;
  padding: 3px 6px 2px;
  line-height: 1.2;
  opacity: 0.8;
  white-space: nowrap;
}

/* ───────── Grain ───────── */
.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.22;
  mix-blend-mode: overlay;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ───────── Nav ───────── */
.nav {
  position: fixed;
  z-index: 50;
  top: var(--gap);
  left: var(--gap);
  right: var(--gap);
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(18px, 1.4vw, 28px);
  background: var(--paper);
  color: var(--ink);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(0,0,0,.25);
}
.nav .cap { font-size: clamp(11px, 0.7vw, 14px); }
.nav-l, .nav-r { display: flex; gap: clamp(20px, 1.45vw, 29px); align-items: center; }
.nav-r { justify-content: flex-end; gap: 18px; }
.nav a, .nav button { position: relative; }
/* inverted folder tab: the page background notches down into the bar above the active / hovered item */
.nav-tab {
  position: absolute; top: -1px; left: 0; height: 11px; width: 0;
  pointer-events: none; z-index: 1; overflow: visible;
  shape-rendering: geometricPrecision;
}
.nav-tab path { fill: var(--night); }
/* page veil: a thin frosted layer the page passes through when navigating between sections */
.page-glass {
  position: fixed; inset: 0; z-index: 46; pointer-events: none; --veil: 0;
  opacity: var(--veil);
  background: rgba(18,17,16, .14);
  -webkit-backdrop-filter: blur(calc(var(--veil) * 14px)); backdrop-filter: blur(calc(var(--veil) * 14px));
}
/* rolling label: the word slides up and its twin slides in from below */
.roll { display: inline-block; overflow: hidden; height: 1.3em; vertical-align: top; }
.roll > span { display: block; transition: transform .45s var(--expo); }
.roll > span::after { content: attr(data-t); display: block; }
.nav-l a:hover .roll > span, .nav-r a:hover .roll > span, .nav-l a:focus-visible .roll > span { transform: translateY(-50%); }
.nav-logo { width: clamp(64px, 4.75vw, 98px); color: var(--ink); }
.nav-logo svg { width: 100%; height: auto; fill: currentColor; }
.ldn { display: inline-flex; gap: 6px; align-items: center; font-variant-numeric: tabular-nums; }
.ldn time { display: inline-grid; grid-template-columns: 0fr; transition: grid-template-columns .5s var(--expo); white-space: nowrap; }
.ldn time > span { overflow: hidden; min-width: 0; padding-left: 0; transition: padding .5s var(--expo); }
.ldn.open time { grid-template-columns: 1fr; }
.ldn.open time > span { padding-left: 8px; }
.ldn .ldn-sep { opacity: .45; margin: 0 5px; }
.ldn .time { display: none; }
.ldn.open .time { display: inline; }
.menu-btn { display: none; }

.menu {
  position: fixed;
  z-index: 49;
  top: calc(var(--gap) + var(--nav-h) + 2px);
  left: var(--gap);
  right: var(--gap);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  pointer-events: none;
}
.menu a {
  grid-column: span 2;
  background: var(--paper);
  color: var(--ink);
  border-radius: 8px;
  height: 51px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity .3s var(--ease), transform .45s var(--ease);
}
.menu a.half { grid-column: span 1; }
.menu-scrim {
  position: fixed; inset: 0; z-index: 48;
  background: rgba(10,9,8,.55);
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease);
}
body.menu-open .menu { pointer-events: auto; }
body.menu-open .menu a { opacity: 1; transform: none; }
body.menu-open .menu-scrim { opacity: 1; pointer-events: auto; }
.menu a:nth-child(2) { transition-delay: .03s; }
.menu a:nth-child(3) { transition-delay: .06s; }
.menu a:nth-child(4) { transition-delay: .09s; }
.menu a:nth-child(5) { transition-delay: .12s; }
.menu a:nth-child(6), .menu a:nth-child(7) { transition-delay: .15s; }

/* ───────── Stack of cards ───────── */
.stack { position: relative; padding-top: var(--top); }
.card {
  position: sticky;
  top: min(var(--top), calc(100svh - var(--gap) - var(--own-h, 0px)));   /* taller than the screen: pin by the bottom edge */
  margin: 0 var(--gap);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: var(--card-h);
  transform-origin: 50% 0;
  will-change: transform;
  --cover: 0;
}
.card + .card, .pin + .card { margin-top: 0; }
.card::after {
  content: "";
  position: absolute; inset: 0;
  background: #000;
  opacity: calc(var(--cover) * 0.6);
  pointer-events: none;
  z-index: 20;
}
.card.fixed-h { height: var(--card-h); }
.pin { pointer-events: none; }
.on-light { background: var(--paper); color: var(--ink); }
.on-dark { background: var(--coal); color: var(--cream); }

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--pad) var(--pad) 0;
  position: relative;
  z-index: 3;
}
.on-dark .card-head .tag, .on-dark .mute { color: var(--cream-mute); }
.on-light .mute { color: var(--ink-mute); }

/* ───────── Placeholder media ───────── */
.ph {
  position: relative;
  overflow: hidden;
  border-radius: 7px;
  background: var(--g, var(--g1));
  background-size: 140% 140%;
  background-position: 50% 50%;
  transition: background-position 1.6s var(--ease);
}
.ph > .tag {
  position: absolute; top: 9px; left: 9px; z-index: 3;
  color: rgba(255,255,255,.85);
}
:root {
  --g1: radial-gradient(60% 55% at 72% 28%, #f6ecdc 0%, #d9b98f 26%, #8b7258 55%, #3a342e 85%);
  --g2: linear-gradient(165deg, #3c3934 0%, #5f5242 45%, #a88b69 100%);
  --g3: linear-gradient(100deg, #dac6a6 0%, #b8936a 38%, #7e8897 72%, #4d5a6b 100%);
  --g4: radial-gradient(70% 60% at 50% 85%, #8b7259 0%, #4a4037 45%, #2a2826 80%);
  --g5: linear-gradient(90deg, #48566a 0%, #6c7787 35%, #b19c80 100%);
  --g6: radial-gradient(55% 50% at 40% 30%, #ecd8b8 0%, #b08b62 38%, #4a4036 80%);
}
.ph.live { animation: drift 5s ease-in-out infinite alternate; }
@keyframes drift {
  0% { background-position: 20% 30%; }
  100% { background-position: 80% 70%; }
}

/* ───────── Hero + showreel scene (pinned by GSAP) ───────── */
/* the scene stays stuck to the top while its wrapper scrolls (the timeline) and while the first card rises over it */
.scene-wrap { position: relative; height: calc(100svh + var(--scene-scroll, 170vh) + 100svh); z-index: 1; }
.scene {
  position: sticky; top: 0;
  height: 100svh;
  padding-top: var(--top);
  overflow: hidden;
  background: #242220; /* showreel section tone from the mockup */
  --cover: 0;
}
.scene::after { content: ""; position: absolute; inset: 0; z-index: 9; pointer-events: none; background: #000; opacity: calc(var(--cover) * .6); }
.stack { margin-top: -100svh; position: relative; z-index: 2; }
.hero {
  position: absolute;
  top: var(--top); left: var(--gap); right: var(--gap); bottom: var(--gap);
  border-radius: var(--radius);
  overflow: hidden;
  background: #2c2a27;   /* same flat tone as the About card */
  color: var(--cream);
  will-change: transform, opacity;
  --cover: 0;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: #000; opacity: var(--cover);
}
.hero.grain::before { opacity: .3; z-index: 2; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 0; transition: opacity 1.2s linear; filter: grayscale(1) contrast(1.05) brightness(.9); mix-blend-mode: luminosity; }
.hero-bg.ready { opacity: .28; }   /* same low blend as the About clip */
.hero-scrim { display: none; }
.hero-logo {
  position: absolute;
  left: 50%; top: 47%;
  width: min(470px, 36vw);
  z-index: 2;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
}
.hero-logo-inner { transform-style: preserve-3d; will-change: transform; }
.hero-logo img, .hero-logo svg { width: 100%; height: auto; fill: #fff; }
.hero-coords {
  position: absolute; left: 0; right: 0; bottom: calc(var(--pad) + 2px); z-index: 2;
  margin: 0; display: flex; justify-content: center; gap: 1.6em;
  color: rgba(236,231,223,.72);
  font-variant-numeric: tabular-nums;
}
.hero-cue {
  position: absolute; right: var(--pad); bottom: var(--pad); z-index: 2; margin: 0;
}
.scroll-cue { display: inline-flex; align-items: center; gap: 8px; }
.scroll-cue i { display: block; width: 28px; height: 1px; background: currentColor; transform-origin: left; animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleX(0); } 50% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }

/* intro (load) */
.intro .hero-logo { animation: fade .9s .05s var(--expo) both; }
.intro .hero-cue { animation: up .6s .35s var(--expo) both; }
.intro .hero-coords { animation: up .6s .75s var(--expo) both; }
@keyframes fade { from { opacity: 0; transform: translate(-50%, calc(-50% + 12px)); } }
@keyframes up { from { opacity: 0; transform: translateY(10px); } }

/* the showreel panel that rises over the hero, then shrinks to a square */
.reel-panel {
  position: absolute;
  left: var(--gap); right: var(--gap); top: var(--top); bottom: var(--gap);
  border-radius: var(--radius);
  overflow: hidden;
  z-index: 3;
  background:
    radial-gradient(50% 60% at 78% 22%, #f3e7d4 0%, #dcc6a6 28%, rgba(176,150,118,.55) 58%, rgba(120,104,88,0) 80%),
    linear-gradient(118deg, #5f584f 0%, #8a7d6c 22%, #c9b394 56%, #e6d6bd 100%);
  transform: translateY(calc(100% + var(--gap) + var(--top)));
  will-change: transform, clip-path;
}
.reel-panel.grain::before { opacity: .12; }
.reel-panel-label {
  position: absolute; top: var(--pad); left: var(--pad); z-index: 2;
  color: rgba(42,40,36,.78);
}
.reel-ph-tag { position: absolute; z-index: 2; color: rgba(255,255,255,.85); opacity: 0; left: calc(50% - var(--sq, 0px) / 2 + 9px); top: calc(var(--sq-t, 0px) + 9px); }
.reel-video { position: absolute; inset: 0; z-index: 1; background: center / cover no-repeat; }
/* YouTube background: oversize the 16:9 frame so it covers the panel, and keep its UI out of reach */
.reel-video iframe.yt-bg { width: max(100%, 177.78vh); height: max(100%, 56.25vw); inset: auto; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.reel-video video, .reel-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }

/* labels and copy that belong to the final (square) state */
.reel-ui { position: absolute; inset: var(--top) var(--gap) var(--gap); z-index: 4; pointer-events: none; color: var(--cream); }
.reel-ui > * { opacity: 0; }
.reel-ui .reel-label { position: absolute; top: var(--pad); left: var(--pad); }
.reel-ui .reel-time { position: absolute; top: var(--pad); right: var(--pad); display: inline-flex; gap: 8px; align-items: center; color: var(--cream-mute); }
.reel-copy { position: absolute; left: var(--pad); bottom: max(var(--pad), calc((100% - var(--sq, 100%)) / 2)); width: calc((100% - var(--sq, 40%)) / 2 - 2 * var(--pad)); container-type: inline-size; pointer-events: auto; }
@media (orientation: portrait) {
  .reel-copy { top: calc(var(--sq-b, 60%) + 44px); bottom: auto; width: auto; right: var(--pad); }
  .reel-coords { display: none; }
  .reel-copy .tamil-word { margin-bottom: 14px; }
}
.reel-copy .mute { color: var(--cream-mute); margin: 0; }
.reel-copy .t { font-size: min(calc(clamp(34px, 3.9vw, 56px) * var(--title-scale)), 15.5cqw); margin: 10px 0 24px; }
.reel-coords { position: absolute; left: var(--pad); right: var(--pad); bottom: var(--pad); margin: 0; display: flex; justify-content: space-between; color: rgba(236,231,223,.72); font-variant-numeric: tabular-nums; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  height: 44px; padding: 0 18px;
  border-radius: 8px;
  font-size: 11px; letter-spacing: .02em; text-transform: uppercase;
  transition: transform .3s var(--ease), background .3s, color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-cream { background: var(--cream); color: var(--ink); }
.btn-tan { background: var(--tan); color: var(--ink); }
.btn-line { border: 1px solid currentColor; }
.btn-line:hover { background: currentColor; }
.on-light .btn-line:hover { color: var(--paper); background: var(--ink); }
.on-dark .btn-line:hover, .contact .btn-line:hover { color: var(--ink); background: var(--cream); }
.tri { width: 0; height: 0; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.reveal-late { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.reveal-late.in { opacity: 1; transform: none; }

/* ───────── Selected work ───────── */
.work { display: grid; grid-template-columns: minmax(280px, 25%) 1fr; }
.work-side {
  position: relative; z-index: 4;
  display: flex; flex-direction: column;
  padding: var(--pad);
  background: var(--paper);
}
.work-side::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 100%; width: 70px;
  background: linear-gradient(90deg, var(--paper) 0%, rgba(239,235,228,.85) 30%, rgba(239,235,228,0) 100%);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  -webkit-mask: linear-gradient(90deg, #000 40%, transparent);
  mask: linear-gradient(90deg, #000 40%, transparent);
}
.work-side .t { font-size: clamp(30px, 2.95vw, 56px); margin-top: auto; }
.work-side p:not(.cap) { font-size: 15px; color: var(--ink-soft); max-width: 300px; margin: 22px 0 26px; }
.work-side p.cap { margin: 0; }
.progress { display: flex; align-items: center; gap: 14px; font-size: 11px; max-width: 302px; font-variant-numeric: tabular-nums; }
.progress .bar { flex: 1; height: 1px; background: var(--line-light); position: relative; }
.progress .bar i { position: absolute; left: 0; top: -1px; height: 3px; background: var(--ink); width: 0; }
.progress .mute { color: var(--ink-mute); }
.work-side .btn { margin-top: 26px; align-self: flex-start; }
.work-track-wrap { position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 0 0 var(--pad); }
.work-track { display: flex; gap: 5px; will-change: transform; padding-left: 4px; }
.film {
  flex: 0 0 auto;
  width: min(516px, calc(var(--card-h) - 2 * var(--pad) - 150px), 70vw);
  aspect-ratio: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px;
  color: #f4efe7;
  cursor: pointer;
}
.film .t { font-size: calc(clamp(24px, 2.2vw, 30px) * var(--title-scale)); position: relative; z-index: 2; }
.film .meta { position: relative; z-index: 2; margin-top: 8px; display: flex; gap: 7px; align-items: center; }
.film .meta i, .jdot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; display: inline-block; }
.film::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(20,18,16,.45), rgba(20,18,16,0) 40%);
}
.film .playing {
  position: absolute; top: 9px; right: 9px; z-index: 3;
  opacity: 0; transition: opacity .3s;
  color: rgba(255,255,255,.85);
}
.film:hover .playing { opacity: 1; }
.film.has-poster:hover { animation: none; }
.film { transition: opacity .55s var(--ease), transform .7s var(--ease); }
.work-track:hover .film:not(:hover) { opacity: .38; }
.work-track .film:hover { transform: scale(1.025); z-index: 2; }
.film video, .film iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; z-index: 0; opacity: 0; transition: opacity .4s; }
.film.playing-now video, .film.playing-now iframe { opacity: 1; }
.film.has-poster { background-image: var(--poster); background-size: cover; background-position: center; }
.film.has-poster::after { background: linear-gradient(0deg, rgba(20,18,16,.6), rgba(20,18,16,0) 48%); }
.film.end {
  background: var(--coal); color: var(--cream);
  align-items: center; justify-content: center; text-align: center; gap: 10px;
}
.film.end::after { display: none; }
.film.end .t { font-size: calc(clamp(34px, 3.4vw, 46px) * var(--title-scale)); }

/* ── Selected work, desktop: vertical reel (class added by site.js) ── */
.work.reel .work-side::after { display: none; }
.work.reel .work-track-wrap {
  display: block; padding: 0; min-height: 0; background: var(--paper);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%);
}
.work.reel .work-track { position: relative; flex-direction: column; align-items: center; gap: 20px; padding: 0; }
.work.reel .film {
  width: min(var(--reel-max, 64%), calc(var(--card-h) * .5 * 16 / 9)); aspect-ratio: 16 / 9; padding: 16px;
  opacity: .2; transform: scale(.86); filter: saturate(.55);
  transition: opacity .6s var(--ease), transform .8s var(--expo), filter .6s var(--ease);
}
.work.reel .work-track:hover .film:not(:hover) { opacity: .2; }
.work.reel .film.is-focus, .work.reel .work-track .film.is-focus:hover { opacity: 1; transform: none; filter: none; z-index: 2; }
.work.reel .film .t, .work.reel .film .meta, .work.reel .film::after { opacity: 0; transition: opacity .5s var(--ease); }
.work.reel .film.is-focus .t, .work.reel .film.is-focus .meta, .work.reel .film.is-focus::after { opacity: 1; }
.work.reel .film .playing { display: none; }
/* square tiles (class "sq" on the card): the site's square motif carried into the reel */
.work.reel.sq .film { aspect-ratio: 1; width: min(var(--reel-max, 64%), calc(var(--card-h) * .6)); }
.work.reel .film.end .t, .work.reel .film.end .cap { opacity: 1; }
.film.fit-contain { background-color: #141312; background-size: contain; background-repeat: no-repeat; }
.film.fit-contain video { object-fit: contain; background: #141312; }

/* viewfinder brackets + crosshair that follow the focused tile */
/* drawn in white with a difference blend: dark on the paper, inverted over footage, so it always reads */
.reel-frame { position: absolute; left: 0; top: 0; z-index: 6; pointer-events: none; mix-blend-mode: difference; }
.reel-frame .c { position: absolute; width: 15px; height: 15px; border: 0 solid #fff; opacity: .9; }
.reel-frame .tl { left: 0; top: 0; border-left-width: 1.5px; border-top-width: 1.5px; }
.reel-frame .tr { right: 0; top: 0; border-right-width: 1.5px; border-top-width: 1.5px; }
.reel-frame .bl { left: 0; bottom: 0; border-left-width: 1.5px; border-bottom-width: 1.5px; }
.reel-frame .br { right: 0; bottom: 0; border-right-width: 1.5px; border-bottom-width: 1.5px; }
.reel-x { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; transform: translate(-50%, -50%) rotate(45deg); transition: transform .9s var(--expo); }
.reel-x::before, .reel-x::after { content: ""; position: absolute; background: #fff; }
.reel-x::before { left: 0; right: 0; top: 50%; height: 1px; }
.reel-x::after { top: 0; bottom: 0; left: 50%; width: 1px; }

/* tick ruler on the right edge */
.reel-ruler { position: absolute; right: var(--pad); top: 50%; transform: translateY(-50%); z-index: 6; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; pointer-events: none; }
.reel-ruler i { display: block; height: 1px; width: 9px; background: var(--ink); opacity: .32; transition: width .35s var(--ease), opacity .35s; }
.film.end .tag { margin-top: 4px; }
.work-side .progress, .work-side .btn { position: relative; z-index: 2; }

/* ───────── Chapters ───────── */
.chapter { background: transparent; }
.chapter .under { position: absolute; inset: 0; z-index: 1; }
.half {
  position: absolute; inset: 0; z-index: 5;
  will-change: transform;
}
/* halves overlap by half a pixel so no seam shows while closed */
.half.top { clip-path: inset(0 0 calc(50% - .5px) 0); }
.half.bot { clip-path: inset(calc(50% - .5px) 0 0 0); }
.face {
  position: absolute; inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: var(--pad);
}
.face .row { display: flex; justify-content: space-between; }
.card-head .ta { font-family: "Anek Tamil", "Tamil Sangam MN", "Nirmala UI", "Noto Sans Tamil", sans-serif; text-transform: none; color: var(--cream-mute); }
.face .big {
  align-self: center; justify-self: center;
  font-size: min(calc(clamp(96px, 17vw, 236px) * var(--title-scale)), 13.6vw);   /* never wider than a phone screen */
  line-height: 1;
  position: relative;
  z-index: 1;
  /* nudge so the cap-height centre (the middle of the O) sits exactly on the split line */
  transform: translateY(var(--cap-nudge, .13em));
}
.face .row .num { margin: 0; }
.sign p { margin: 0; }
.chapter-pin { height: 120vh; }
.face .rule { position: absolute; left: var(--pad); right: var(--pad); top: 50%; height: 1px; background: var(--line-light); }
.face-light { background: var(--paper); color: var(--ink); }
.face-tan { background: var(--tan); color: var(--ink); }
.face-tan .rule { background: rgba(42,40,36,.2); }
.face-tan .num { color: rgba(42,40,36,.55); }
.chapter .under.contact { display: flex; flex-direction: column; }
.contact-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.contact-hero, .foot-grid, .foot-line, .foot-base { position: relative; z-index: 1; }
.contact-hero .t { white-space: nowrap; font-size: calc(clamp(40px, 6.6vw, 104px) * var(--title-scale)); }
.mrow h3 { margin: 0; }

/* studio statement (under the Studio chapter) */
.statement { background: #2e2c29; color: var(--cream); }
.statement .t {
  position: absolute; left: var(--pad); top: 50%; transform: translateY(-58%);
  font-size: calc(clamp(40px, 5.8vw, 86px) * var(--title-scale));
  right: var(--pad);
  white-space: nowrap;
}
.statement .card-head { position: absolute; left: 0; right: 0; top: 0; }
.statement .foot {
  position: absolute; left: var(--pad); right: var(--pad); bottom: var(--pad);
  display: flex; justify-content: space-between; color: var(--cream-mute);
}

/* ───────── About ───────── */
/* head row above, foot row pinned below; the copy is centred vertically between them and kept to the left */
.about { background: #2c2a27; display: flex; flex-direction: column; padding-bottom: calc(var(--pad) + 15px); }
/* About: the clip loops low behind the copy, tinted down to the card colour */
.about-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 0; transition: opacity 1.2s linear; filter: grayscale(1) contrast(1.05) brightness(.9); mix-blend-mode: luminosity; }
.about-bg.ready { opacity: .28; }
.about .card-head, .about .about-grid, .about-foot { position: relative; z-index: 1; }
/* pinned to the card's bottom corners, exactly like the Studio statement's foot row */
.about-foot { position: absolute !important; left: var(--pad); right: var(--pad); bottom: var(--pad); display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; color: var(--cream-mute); }
.about-foot .scroll-cue { flex: none; color: var(--cream); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6vw;
  flex: 1; align-items: center;
  padding: 56px var(--pad);
}
.about-copy p {
  margin: 0 0 1.1em;
  font-size: clamp(13px, 1.02vw, 15px);
  line-height: 1.45;
  max-width: 48ch;
  color: #e7e2da;
}
.about-copy p:last-child { margin-bottom: 0; }
/* Tamil word marks: alpha PNGs used as masks so they take the text colour. --tamil-h is the shared body height;
   each word's multiplier compensates for its ascender/descender so the letter bodies match. */
:root { --tamil-h: clamp(26px, 2.6vw, 36px); }
.tamil-word {
  display: block; background: currentColor;
  -webkit-mask: var(--m) no-repeat left center / contain; mask: var(--m) no-repeat left center / contain;
  height: calc(var(--tamil-h) * var(--k, 1)); aspect-ratio: var(--ar);
}
.tamil-word.marabu    { --m: url("media/tamil-marabu.png");    --ar: 638 / 360;  --k: 1.44; }
.tamil-word.nambikkai { --m: url("media/tamil-nambikkai.png"); --ar: 1768 / 515; --k: 1.66; }
.tamil-word.adaiyalam { --m: url("media/tamil-adaiyalam.png"); --ar: 1945 / 417; --k: 1.35; }
.reel-copy .tamil-word { margin-bottom: 18px; }
.about-copy .tamil-word { margin-bottom: 28px; }
.lead-wrap { padding: clamp(40px, 7vh, 64px) var(--pad) 0; }
.trusted .lead-wrap .lead { padding: 14px 0 0; }
.sign { margin-top: 56px; }
.sign .mute { color: var(--cream-mute); }
.sign .t { font-size: calc(30px * var(--title-scale)); margin: 8px 0 3px; }
.portrait { aspect-ratio: 3 / 4; width: min(100%, 440px); max-height: calc(var(--card-h) - 150px); justify-self: end; }
/* behind-the-scenes still: luminosity-blended onto the section tone so it reads as the same colour, feathered at the edges */
.about-photo {
  position: relative; width: 100%; max-width: 640px; aspect-ratio: 16 / 10; justify-self: end; align-self: center;
  background: #2c2a27; border-radius: 7px; overflow: hidden;
  -webkit-mask-image: radial-gradient(115% 110% at 50% 50%, #000 42%, rgba(0,0,0,.55) 68%, transparent 100%);
  mask-image: radial-gradient(115% 110% at 50% 50%, #000 42%, rgba(0,0,0,.55) 68%, transparent 100%);
}
.about-photo img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: 58% 45%;
  filter: grayscale(1) contrast(1.08) brightness(.82);
  mix-blend-mode: luminosity; opacity: .88;
}

/* ───────── Trusted by ───────── */
.trusted { padding-bottom: calc(var(--pad) * 2); }
.trusted .lead {
  padding: clamp(40px, 7vh, 64px) var(--pad) 0;
  font-size: calc(clamp(36px, 4.4vw, 62px) * var(--title-scale));
  max-width: 22ch;
}
.clients {
  list-style: none; margin: clamp(40px, 7vh, 64px) var(--pad) 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 6px;
}
.clients li {
  border-top: 1px solid var(--line-light);
  display: flex; align-items: baseline; gap: 12px;
  padding: 12px 0 8px;
  cursor: default;
  transition: opacity .35s var(--ease), color .35s;
  color: #4b4741;
}
.clients li .num { font-size: 10px; margin: 0; }
.clients li .t { font-size: calc(clamp(24px, 2.5vw, 36px) * var(--title-scale)); transition: transform .45s var(--ease); white-space: nowrap; }
.clients:hover li { opacity: .32; }
.clients li:hover { opacity: 1; color: var(--ink); }
.clients li:hover .t { transform: translateX(4px); }

/* ───────── What we make ───────── */
.make { background: #272523; padding-bottom: calc(var(--pad) * 2); }
.rows { margin: clamp(40px, 6vh, 56px) var(--pad) 0; }
.mrow {
  display: grid; grid-template-columns: 90px 1fr 1fr; gap: 20px;
  border-top: 1px solid var(--line-dark);
  padding: 30px 0 38px;
  align-items: start;
}
.mrow:last-child { border-bottom: 1px solid var(--line-dark); }
.mrow .num { padding-top: 14px; font-size: 10px; }
.mrow .t { font-size: calc(clamp(30px, 3vw, 40px) * var(--title-scale)); color: #d9d4cc; transition: transform .5s var(--ease), color .3s; }
.mrow p { margin: 6px 0 0; color: var(--cream-mute); max-width: 46ch; font-size: 15px; }
.mrow:hover .t { transform: translateX(10px); color: #fff; }

/* ───────── Contact ───────── */
.contact {
  background: #2e2c29;   /* same tone as the Studio statement */
  color: var(--cream);
  display: flex; flex-direction: column;
}
.contact-hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 60px var(--pad) 30px; }
.contact-hero .mute { color: var(--cream-mute); }
.contact-hero .t { font-size: calc(clamp(30px, 4.6vw, 74px) * var(--title-scale)); margin: 10px 0 18px; line-height: 1; }
.contact-hero .btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; width: 100%; margin-top: 8px; }
.foot-grid {
  margin: 0 var(--pad);
  border-top: 1px solid var(--line-dark);
  padding: 22px 0 18px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 20px; align-items: start;
}
.foot-grid h4 { margin: 0 0 14px; font-weight: 400; color: var(--cream-mute); }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.foot-grid a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
/* footer details: one centred line, a dot between each item */
.foot-row { position: relative; z-index: 1; margin: 0 var(--pad); border-top: 1px solid var(--line-dark); padding: 20px 0 var(--pad); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.foot-row .side { color: var(--cream-mute); white-space: nowrap; }
.foot-row .side:last-child { text-align: right; }
@media (max-width: 1100px) {
  .foot-row { grid-template-columns: 1fr; justify-items: center; gap: 8px; }
  .foot-row .side:last-child { text-align: center; }
  /* wrapped lines would start with a stray dot, so space the items instead */
  .foot-row .foot-line { column-gap: 18px; }
  .foot-row .foot-line > * + *::before { display: none; }
}
.foot-line { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; text-align: center; row-gap: 6px; }
.foot-line > * + *::before { content: "·"; display: inline-block; margin: 0 .9em; color: var(--cream-mute); text-decoration: none; }
.foot-line a:hover { color: #fff; }
.foot-base {
  margin: 0 var(--pad);
  padding: 8px 0 var(--pad);   /* same margin below as at the sides */
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  color: var(--cream-mute);
}
.foot-base .tag { color: var(--cream-mute); margin-left: 10px; }

/* ───────── Lightbox ───────── */
.lightbox {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(10,9,8,.86);
  display: grid; place-items: center;
  opacity: 0; pointer-events: none; transition: opacity .4s var(--ease);
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-player { width: min(1100px, 92vw); aspect-ratio: 16/9; transform: scale(.96); transition: transform .6s var(--ease); border-radius: var(--radius); overflow: hidden; background: #000; }
.lightbox-player > * { width: 100%; height: 100%; }
.lightbox-player video, .lightbox-player iframe { display: block; object-fit: contain; border: 0; }
.lightbox.open .lightbox-player { transform: none; }
.lightbox .close { position: absolute; top: 18px; right: 22px; color: var(--cream); }

/* ───────── Work page ───────── */
.filters {
  position: fixed; z-index: 40;
  top: calc(var(--gap) + var(--nav-h) + 2px);
  left: var(--gap); right: var(--gap);
  height: 51px;
  display: flex; align-items: center; gap: 10px;
  padding: 0 20px;
  background: var(--paper); color: var(--ink);
  border-radius: 8px;
}
.filters button { color: var(--ink-mute); transition: color .2s; text-transform: uppercase; }
.filters button[aria-pressed="true"], .filters button:hover { color: var(--ink); }
.filters .jdot { color: var(--ink-mute); }
.filters .jdot.dark { color: var(--ink); }
.work-page {
  margin: calc(var(--gap) + var(--nav-h) + 2px + 51px + 2px) var(--gap) var(--gap);
  background: var(--paper);
  border-radius: var(--radius);
  padding: 20px;
  min-height: calc(100svh - 140px);
}
.wgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.wgrid .film { width: 100%; }
.wgrid .film.hide { display: none; }
.wgrid .film { animation: up .6s var(--ease) both; }
.work-page .end { color: var(--ink-mute); text-align: center; padding: 40px 0 60px; }

/* ───────── Responsive ───────── */
@media (max-width: 1000px) {
  .nav { left: max(var(--gap), calc(50% - 514px)); right: max(var(--gap), calc(50% - 514px)); }
  .nav-l, .nav-r a, .nav-tab { display: none; }
  .menu-btn { display: inline-flex; gap: 6px; align-items: center; }
  .work { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .work-side { padding-bottom: 12px; }
  .work-side::after { display: none; }
  .work-side .t { margin-top: 18px; }
  .work-side p { margin: 12px 0 14px; }
  .work-side .btn { display: none; }
  .work-track-wrap { padding-left: var(--pad); align-items: flex-start; }
  .film { width: min(440px, 72vw, calc(var(--card-h) - 330px)); }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .portrait { max-height: 60vh; justify-self: start; }
  .about-photo { justify-self: start; max-width: 100%; }
  .clients { grid-template-columns: repeat(2, 1fr); }
  .mrow { grid-template-columns: 40px 1fr; }
  .mrow p { grid-column: 2; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero-logo { width: min(470px, 56vw); }
}
@media (max-width: 600px) {
  :root { --pad: 16px; --nav-h: 56px; }
  .nav .cap { font-size: 12px; }
  .start .stepnav.cap, .start .stepnav .cap { font-size: 12px; }
  .start .stepnav { padding: 0 14px; }
  .nav-logo { width: 78px; }
  .nav { padding: 0 14px; }
  .hero-logo { top: 44%; width: 72vw; }
  .hero-coords { gap: 1em; }
  .reel-coords { display: none; }
  .statement .t { white-space: normal; font-size: calc(clamp(30px, 9.4vw, 44px) * var(--title-scale)); }
  .clients { grid-template-columns: 1fr; }
  .foot-grid { padding-top: 20px; gap: 14px; }
  .foot-grid h4 { margin-bottom: 6px; }
  .contact-hero { padding-top: 30px; }
  .wgrid { grid-template-columns: 1fr; }
  .filters { overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .intro .hero-logo, .intro .hero-cue, .intro .hero-coords { animation: none; }
  .scene-wrap { height: auto; }
  .scene { height: auto; position: relative; }
  .stack { margin-top: 0; }
  .hero { position: relative; height: var(--card-h); margin: 0 var(--gap); top: 0; left: 0; right: 0; }
  .reel-panel { position: relative; transform: none !important; clip-path: none !important; height: var(--card-h); margin: var(--gap) var(--gap) 0; top: 0; left: 0; right: 0; }
  .reel-ui { position: relative; inset: auto; height: 200px; margin: 0 var(--gap); }
  .reel-ui > * { opacity: 1 !important; }
  .scroll-cue i, .ph.live, .film:hover { animation: none; }
}

/* ───────── Start a project ───────── */
.start { position: fixed; inset: 0; z-index: 47; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 90px); background: var(--night); overflow-y: auto; padding-top: calc(var(--gap) + var(--nav-h) + 2px); opacity: 0; transition: opacity .35s var(--ease); }
.start.open { opacity: 1; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:disabled { opacity: .35; cursor: default; transform: none; }
.stepnav {
  position: sticky; top: 0; z-index: 2;
  box-shadow: 0 -34px 0 0 var(--night);   /* masks the strip above it so form text never shows between the two bars */
  margin: 0 var(--gap) 2px; height: var(--nav-h); border-radius: 8px;
  background: var(--paper); color: var(--ink-mute);
  display: flex; align-items: center; gap: 10px; padding: 0 clamp(18px, 1.4vw, 28px);
}
.stepnav.cap, .stepnav .cap { font-size: clamp(11px, 0.7vw, 14px); }
.stepnav span.a { color: var(--ink); }
.stepnav .jdot { background: var(--ink-mute); }
.start-close { margin-left: auto; color: var(--ink); }
.start-panel { margin: 0 var(--gap) var(--gap); border-radius: var(--radius); min-height: calc(100svh - var(--top) - var(--nav-h) - 2px - var(--gap)); padding: var(--pad); position: relative; }
.stp { display: none; animation: up .5s var(--expo) both; }
.stp.a { display: block; }
.stp h1 { font-size: calc(clamp(40px, 5vw, 72px) * var(--title-scale)); margin: 10px 0 8px; }
.stp .lede { margin: 0 0 clamp(28px, 5vh, 48px); }
.opts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; row-gap: 4px; }
.opts li button { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; text-align: left; padding: 6px 0; color: rgba(42,40,36,.35); transition: color .25s; width: 100%; }
.opts li button .t { font-size: calc(clamp(22px, 2.4vw, 36px) * var(--title-scale)); white-space: nowrap; }
.opts li button small { color: inherit; opacity: .8; }
.opts li button:hover, .opts li button[aria-pressed="true"], .opts:not(:hover) li button[aria-pressed="true"] { color: var(--ink); }
/* step 1: one column, the description under its title, the same gap between every option */
.opts.stack { grid-template-columns: 1fr; row-gap: 12px; }
.opts.stack li button { flex-direction: column; align-items: flex-start; flex-wrap: nowrap; gap: 5px; }
.cols2 { display: grid; grid-template-columns: max-content max-content; gap: 40px clamp(56px, 9vw, 150px); }
.cols2 .opts { grid-template-columns: 1fr; }
.glabel { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; color: var(--ink); font-weight: 600; }
.btns { display: flex; gap: 8px; margin-top: clamp(28px, 5vh, 48px); }
.bform { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 40px; max-width: 900px; }
.bform .field.wide, .bform .note, .bform .btns, .bform .hp { grid-column: 1 / -1; }
.bform .hp { position: absolute; left: -9999px; }
.bform label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .02em; color: var(--ink-mute); margin-bottom: 6px; }
.bform input { width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line-light); padding: 8px 0; border-radius: 0; outline: none; }
.bform input:focus { border-bottom-color: var(--ink); }
.bform .note { margin: 4px 0 0; }
.bform .btns { margin-top: 20px; }
.cal { display: grid; grid-template-columns: 260px 1fr; gap: 40px; max-width: 820px; border-top: 1px solid var(--line-light); padding-top: 24px; }
.cal h3 { font-size: calc(22px * var(--title-scale)); margin: 8px 0 12px; }
.cal .month { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cal .month button { padding: 4px 10px; font-size: 15px; line-height: 1; }
.cal .month button:disabled { opacity: .25; cursor: default; }
.cal-slots-h { margin: 22px 0 0; color: var(--ink); }
.cal-status { margin: 14px 0 0; min-height: 1.3em; }
.cal .btns { margin-top: 14px; }
.cal.busy .days, .cal.busy .times { opacity: .4; pointer-events: none; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.days span { padding: 8px 0; border-radius: 6px; color: var(--ink-mute); }
.days span.on { color: var(--ink); background: var(--paper-2); cursor: pointer; }
.days span.on:hover, .days span.sel { background: var(--ink); color: var(--paper); }
.times { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.times span { border: 1px solid var(--line-light); border-radius: 6px; padding: 8px 14px; cursor: pointer; }
.times span:hover, .times span.sel { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cal iframe { width: 100%; min-height: 640px; border: 0; grid-column: 1 / -1; }
@media (max-width: 800px) {
  .opts, .cols2, .bform { grid-template-columns: 1fr; }
  .cols2 { gap: 32px; }
  .opts li button .t { white-space: normal; }
  .cal { grid-template-columns: 1fr; }
  .stepnav span:not(.a), .stepnav .jdot { display: none; }
}

/* ───────── Accessibility ───────── */
.skip { position: fixed; top: -60px; left: var(--gap); z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; font-size: 12px; transition: top .2s; }
.skip:focus { top: calc(var(--gap) + 52px); outline: none; }
:focus-visible { outline: 2px solid var(--tan); outline-offset: 3px; border-radius: 4px; }
.nav a:focus-visible, .menu a:focus-visible { outline-color: var(--ink); }
.btn:focus-visible { outline-offset: 2px; }
.film:focus-visible { outline: 3px solid var(--cream); outline-offset: -3px; }
@media (prefers-reduced-motion: reduce) {
  .roll > span, .skip, .btn, .menu a, .menu-scrim, .start, .lightbox, .lightbox-player, .ldn time, .opts li button, .clients li, .clients li .t, .mrow .t { transition: none !important; }
  .stp, .wgrid .film { animation: none !important; }
  .half.top { transform: translateY(-60%); }
  .half.bot { transform: translateY(60%); }
}

/* ───────── Loader ───────── */
.ml-loader {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  background: #272624; color: var(--cream);
  transition: background-color .7s cubic-bezier(.76,0,.24,1) .35s;
}
.ml-loader.is-exit { background-color: rgba(39,38,36,0); pointer-events: none; }
.ml-logo { width: clamp(170px, 22vw, 320px); height: auto; overflow: visible; transform-origin: 50% 50%; will-change: transform, opacity; }
.ml-outline * { fill: none; stroke: var(--cream); stroke-opacity: .3; stroke-width: 1; vector-effect: non-scaling-stroke; }
.is-full .ml-outline { display: none; }
.ml-fill * { fill: #fff; }          /* matches the hero logo exactly */
.ml-l { fill: #fff; opacity: 0; }
.ml-meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between;
  padding: 0 var(--pad) var(--pad);
  color: var(--cream); font-variant-numeric: tabular-nums;
  transition: opacity .35s;
}
.ml-meta span:last-child { opacity: .55; }
.is-exit .ml-meta { opacity: 0; }
/* while the loader runs the hero waits; after the handoff the hero logo is already in place */
body.loading .hero-logo, body.loading .hero-cue, body.loading .hero-coords { opacity: 0 !important; animation: none; }
body.handoff .hero-logo { animation: none; opacity: 1; }   /* appears at once, exactly under the landed loader logo */
body.blending .hero-logo-inner { transform: none !important; }  /* no cursor drift from the moment the landing spot is measured until the swap */
@media (prefers-reduced-motion: reduce) { .ml-loader { transition: none; } }

/* ───────── Legal pages (privacy.html, legal.html) ───────── */
.legal-page { background: var(--night); }
.legal-bar { display: flex; justify-content: space-between; align-items: center; margin: var(--gap) var(--gap) 0; padding: 0 var(--pad); height: var(--nav-h); border-radius: var(--radius); background: var(--paper); color: var(--ink); }
.legal-bar .logo { width: clamp(64px, 4.75vw, 98px); }
.legal-bar.cap { font-size: clamp(11px, 0.7vw, 14px); font-weight: 500; }
.legal-bar a:hover { text-decoration: underline; text-underline-offset: 3px; }
.legal { margin: var(--gap); border-radius: var(--radius); background: var(--paper); color: var(--ink); padding: var(--pad) var(--pad) calc(var(--pad) * 2); }
.legal .card-head { padding: 0; }
.legal h1 { font-size: calc(clamp(36px, 5.4vw, 78px) * var(--title-scale)); margin: clamp(40px, 9vh, 96px) 0 clamp(28px, 6vh, 56px); }
.legal .body { max-width: 68ch; margin-left: auto; }
.legal h2 { font-family: var(--f-body); font-size: 11px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-mute); margin: 44px 0 12px; padding-top: 14px; border-top: 1px solid var(--line-light); }
.legal p, .legal li { font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.legal p { margin: 0 0 1em; }
.legal ul { margin: 0 0 1em; padding-left: 1.1em; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal .tbc { background: rgba(190,160,120,.35); padding: 0 4px; border-radius: 3px; }
.legal-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0 var(--gap) var(--gap); padding: 14px var(--pad); color: var(--cream-mute); }
.legal-foot a:hover { color: #fff; }
@media (max-width: 800px) { .legal .body { margin-left: 0; } }

/* ───────── Type weights ───────── */
.nav-l a, .menu a, .menu-btn, .ldn, .stepnav span, .start-close { font-weight: 500; }   /* navigation and the form's step bar */
.progress b, .progress #work-total { font-weight: 700; }                                   /* Selected work scroll numbers */

/* ───────── Selected work reel on narrow screens: copy above, reel below ───────── */
@media (max-width: 1000px) {
  .work.reel { grid-template-rows: auto minmax(0, 1fr); }
  .work.reel .work-side { padding-bottom: 6px; }
  .work.reel .work-side .t { margin-top: 10px; }
  .work.reel .work-side p { margin: 8px 0 10px; }
  .work.reel .film { aspect-ratio: 4 / 3; width: min(var(--reel-max, 80%), calc(var(--card-h) * .46 * 4 / 3)); }
  .work.reel .reel-ruler { right: 12px; }
  .work.reel .work-track-wrap { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%); }
}
