/* manmar.me — one page.
   Palette is BRIEF v2 §1: ink, bone, sodium amber. Red is declared and unused
   — reserved, not spent. Only transform and opacity are ever animated, and no
   filter ever is. */

/* Self-hosted, subset to exactly the characters this site contains.
   Rebuild after any copy change: tools/build-fonts.py. Both faces are SIL OFL;
   licences ride along in tools/vendor/. */
@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-900.woff2") format("woff2");
  font-weight: 900; font-style: normal; font-display: swap;
}

/* unicode-range keeps the Tamil files off any Latin run, whatever a stylesheet
   further down asks for. U+25CC is in the subset because the shaper inserts it
   to carry an isolated vowel sign — the 404 tiles are isolated vowel signs. */
@font-face {
  font-family: "Noto Sans Tamil";
  src: url("assets/fonts/noto-tamil-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0B80-0BFF, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "Noto Sans Tamil";
  src: url("assets/fonts/noto-tamil-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0B80-0BFF, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "Noto Sans Tamil";
  src: url("assets/fonts/noto-tamil-900.woff2") format("woff2");
  font-weight: 900; font-style: normal; font-display: swap;
  unicode-range: U+0B80-0BFF, U+200C-200D, U+25CC;
}

:root {
  --ink:   #0A0A0C;
  --bone:  #EFE9DF;
  --amber: #E39A2E;
  --red:   #C7351F;   /* reserved (v2 §1) — nothing uses it yet */

  --bg: var(--ink);
  --fg: var(--bone);
  /* Amber carries text only on ink, where it clears 7:1. Inverted, the accent
     falls back to the foreground and amber stays on hairlines and fills. */
  --accent: var(--amber);
  --hair: rgba(239, 233, 223, .16);
  --hair-soft: rgba(239, 233, 223, .08);

  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* System serif, zero bytes over the wire — it should read as a typed
     document, not as brand. Nothing on the site itself uses it: it was THE
     STATEMENT's, and ONE SURVIVES scopes its own --os-serif to the same stack
     inside .os, since the piece owns its type. Kept as the site's declared
     serif rather than deleted, so a second one is never invented. */
  --serif: Georgia, "Times New Roman", serif;
  --tamil: "Noto Sans Tamil", "Nirmala UI", "Latha", "Tamil Sangam MN", "Tamil MN", var(--sans);

  --pad: clamp(1.15rem, 5vw, 4.5rem);
  --rule: 1px solid var(--hair);
}

:root.invert {
  --bg: var(--bone);
  --fg: var(--ink);
  --accent: var(--ink);
  --hair: rgba(10, 10, 12, .18);
  --hair-soft: rgba(10, 10, 12, .09);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(1rem, .95rem + .35vw, 1.18rem);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

[lang="ta"] { font-family: var(--tamil); }

h1, h2 { font-weight: 900; margin: 0; line-height: .98; letter-spacing: -.022em; }
p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }

/* Every `display:` below would otherwise out-rank the hidden attribute, and
   the trailer button is hidden by default. Settle it once, here. */
[hidden] { display: none !important; }

a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: .22em; }
a:hover { text-decoration-color: currentColor; }

:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

.dot { padding: 0 .5em; opacity: .45; }

/* The frame is sticky, so an anchor must not land under it. */
section[id] { scroll-margin-top: 7.5rem; }


/* §3 Loader ------------------------------------------------------------- */
/* It fades in only once it has been on screen for 400ms, so a page that loads
   faster than that never shows it at all — §3's "skips entirely". */
.loader {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-content: center;
  gap: .5rem;
  text-align: center;
  background: var(--bg);
  opacity: 0;
  animation: fade-in .35s .4s forwards;
}
.loader.is-gone { animation: none; opacity: 0; transition: opacity .3s linear; }
.loader-word { font-weight: 700; letter-spacing: .01em; }
.loader-count { font-weight: 900; font-size: 2.6rem; color: var(--accent); font-variant-numeric: tabular-nums; }

@keyframes fade-in { to { opacity: 1; } }


/* §3 Page frame --------------------------------------------------------- */
.sentinel { height: 1px; margin-bottom: -1px; }

/* Four rows on a phone: the nav and the two control labels are each too wide
   to share one. Once the frame is stuck, the identity line steps back and it
   holds at three. */
.frame {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-areas: "mark" "id" "nav" "ctl";
  grid-template-columns: 1fr;
  gap: .38rem;
  align-items: center;
  padding: .7rem var(--pad) .6rem;
  background: var(--bg);
  border-bottom: var(--rule);
}
.frame.is-tight { padding-top: .5rem; padding-bottom: .45rem; }
.frame.is-tight .identity { display: none; }

.wordmark {
  grid-area: mark;
  display: flex;
  align-items: baseline;
  gap: .5rem;
  text-decoration: none;
}
.wordmark-latin { font-weight: 900; font-size: 1.16rem; letter-spacing: .05em; }
.wordmark-tamil { font-size: .82rem; color: var(--accent); }

.identity { grid-area: id; font-size: .82rem; opacity: .72; }

.nav { grid-area: nav; font-weight: 700; font-size: .7rem; letter-spacing: .16em; }
.nav a { text-decoration: none; }
.nav a:hover, .nav a:focus-visible { color: var(--accent); }

.controls { grid-area: ctl; display: flex; gap: .4rem; justify-self: end; }
.ctl {
  font: inherit;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .03em;
  white-space: nowrap;
  color: inherit;
  background: none;
  border: var(--rule);
  border-radius: 100px;
  padding: .3rem .58rem;
  cursor: pointer;
  opacity: .62;
}
/* v3 §1 language control. JS builds it only when two languages are complete,
   so with English alone nothing here ever renders. */
.lang-pick { display: flex; align-items: center; }
.lang-opt {
  font: inherit;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .03em;
  white-space: nowrap;
  color: inherit;
  background: none;
  border: 0;
  padding: .3rem .2rem;
  cursor: pointer;
  opacity: .62;
}
.lang-opt:hover { opacity: 1; }
.lang-opt[aria-pressed="true"] { opacity: 1; color: var(--accent); }
.lang-pick-st .lang-opt { font-size: .68rem; letter-spacing: .1em; }
.lang-pick-st { margin-left: .45rem; }

.ctl:hover { opacity: 1; }
.ctl[aria-pressed="true"] { opacity: 1; border-color: var(--accent); color: var(--accent); }

@media (min-width: 46rem) {
  .frame {
    grid-template-areas: "mark nav" "id ctl";
    grid-template-columns: 1fr auto;
    padding: 1rem var(--pad);
    gap: .45rem 1.5rem;
  }
  .frame.is-tight { padding: 1rem var(--pad); }
  .frame.is-tight .identity { display: block; }   /* there is room up here */
  .nav { justify-self: end; font-size: .74rem; }
  .identity { font-size: .88rem; }
  .wordmark-latin { font-size: 1.35rem; }
}


/* §5 Hero --------------------------------------------------------------- */
.hero { border-bottom: var(--rule); }

.hero-stage {
  position: relative;
  min-height: min(84svh, 46rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(2.5rem, 9vh, 6rem) var(--pad) clamp(1.5rem, 4vw, 3rem);
  overflow: clip;
  isolation: isolate;
}

.hero-media { position: absolute; inset: 0; z-index: -2; background: #141416; }
/* The real loop, delivered. No slow zoom on it — v2 §5 asked for that only
   while a still frame was standing in. */
.hero-frame {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Scrim, so the copy holds at any brightness the real footage turns out to be. */
.hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, var(--bg) 1%, rgba(10, 10, 12, .86) 55%, rgba(10, 10, 12, .42) 100%);
}
:root.invert .hero-stage::after {
  background: linear-gradient(to top, var(--bg) 1%, rgba(239, 233, 223, .9) 55%, rgba(239, 233, 223, .5) 100%);
}

.hero-copy { max-width: 46rem; }
.hero h1 {
  font-size: clamp(2.35rem, 8.4vw, 5.1rem);
  letter-spacing: -.03em;
  text-wrap: balance;
}
.hero-sub {
  margin-top: 1rem;
  font-size: clamp(1.05rem, .95rem + .8vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
  max-width: 32ch;
}
.hero-line { margin-top: .85rem; opacity: .78; font-size: .95rem; max-width: 44ch; }
/* Set as written — no case transform anywhere on the page. The copy is the
   copy, capitals included (BRIEF §0). */
.laurel {
  margin-top: .9rem;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .045em;
  color: var(--accent);
}

/* Buttons */
.cta { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.btn {
  display: inline-block;
  font: inherit;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .1em;
  color: var(--fg);
  background: none;
  border: 2px solid var(--fg);
  padding: .78rem 1.15rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease-out;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-solid { background: var(--amber); border-color: var(--amber); color: var(--ink); }

.alert { display: flex; gap: .5rem; flex-wrap: wrap; }
.alert-field {
  font: inherit;
  font-size: .95rem;
  color: var(--fg);
  background: rgba(0, 0, 0, .25);
  border: 2px solid var(--hair);
  padding: .7rem .85rem;
  min-width: 12rem;
  flex: 1 1 12rem;
}
:root.invert .alert-field { background: rgba(255, 255, 255, .4); }
.alert-field:focus-visible { border-color: var(--accent); outline: none; }
.alert-done { font-weight: 700; color: var(--accent); }

/* Shared scroll lock ---------------------------------------------------- */
/* Named for THE STATEMENT, which is gone; ONE SURVIVES (§4, below) and the
   trailer lightbox both still use it, so the name stays rather than churn two
   features for a rename. */
html.st-open { overflow: hidden; }


/* §5 Trailer lightbox --------------------------------------------------- */
/* Built on the click and thrown away on close, so neither the video nor its
   poster costs anything on a first load. */
.lb {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 5vw, 3rem);
  background: rgba(10, 10, 12, .94);
}
.lb-video {
  width: 100%;
  max-width: 74rem;
  max-height: 82vh;
  aspect-ratio: 16 / 9;
  background: #000;
}
.lb-close {
  position: absolute;
  top: clamp(.5rem, 2vw, 1.2rem);
  right: clamp(.5rem, 2vw, 1.2rem);
  width: 2.75rem;
  height: 2.75rem;
  font: inherit;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--bone);
  background: none;
  border: 0;
  cursor: pointer;
  opacity: .7;
}
.lb-close:hover { opacity: 1; }


/* §4 ONE SURVIVES ------------------------------------------------------- */
/* A separate object laid over the finished site, never a gate on it: the site
   is whole in the HTML and whole underneath this. Palette, type and rhythm are
   the prototype's own and deliberately not the site's — it is one piece, seen
   once, and it should read as one. The wordmark is the single exception (v4
   §2). English-only while the Tamil is unwritten (v4.1 §1), so there is no
   Tamil type ramp here and no language control in the bar. */
.os {
  --os-bg:          #080908;
  --os-text:        #f3f0e9;
  --os-muted:       #a9a69f;
  --os-dim:         #6e716b;
  --os-line:        #292d29;
  --os-accent:      #d35d3d;
  --os-accent-soft: rgba(211, 93, 61, .13);
  --os-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --os-serif: Georgia, "Times New Roman", serif;

  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 74% 18%, rgba(120, 125, 116, .09), transparent 30%),
    linear-gradient(180deg, #090a09 0%, #080908 100%);
  color: var(--os-text);
  font-family: var(--os-sans);
  transition: transform .6s cubic-bezier(.62, .02, .2, 1);
}
.os.is-lifting { transform: translateY(-100%); }

/* The prototype is a standalone document: its type sits on UA defaults, not on
   this stylesheet's global h1/h2/h3/p rules. Those leak in otherwise and change
   the setting — a 24px h3 line-box where the prototype had 18px was enough to
   push a file card's description into its RECOVER label. Reset to what the
   piece was written against, then let the os- rules below define what it uses.
   :where() keeps this at zero specificity so every .os-* rule still wins. */
.os :where(h1, h2, h3, p) { margin: 0; font-weight: inherit; line-height: normal; }

/* The site's ring is drawn in --fg, which flips with the light/dark toggle and
   would go near-black against this panel. The overlay keeps its own. */
.os :focus-visible { outline: 2px solid var(--os-text); outline-offset: 3px; }

/* Each screen takes focus so the whole screen is announced rather than one
   button out of context. It carries tabindex="-1" and so is never reached by
   Tab — drawing a ring around the entire column would mark a position the
   reader cannot be in. Every control inside it still rings normally. */
.os-copy:focus, .os-copy:focus-visible { outline: none; }

/* Texture sits under the scroller, so it stays put instead of travelling with
   the content the way a background on .os-wrap would. */
.os-fx { position: absolute; inset: 0; pointer-events: none; }
.os-noise {
  position: absolute;
  inset: 0;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}
/* Not rendered at all under reduced motion — main.js never builds it. */
.os-rain {
  position: absolute;
  inset: 0;
  opacity: .11;
  background: repeating-linear-gradient(104deg, transparent 0 27px, rgba(255, 255, 255, .12) 28px 29px, transparent 30px 62px);
  animation: os-rain 1.3s linear infinite;
}
@keyframes os-rain { from { transform: translateY(-70px); } to { transform: translateY(70px); } }

.os-scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.os-wrap {
  width: min(1040px, 100%);
  min-height: 100%;
  margin: auto;
  padding: 24px clamp(18px, 4vw, 42px) 32px;
  display: flex;
  flex-direction: column;
}

.os-bar, .os-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--os-muted);
  font-size: 11px;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.os-bar { min-height: 42px; }
.os-foot { min-height: 34px; }
.os-progress { white-space: nowrap; }

/* v4 §2: the one place the piece borrows from the site. */
.os-mark {
  font: inherit;
  font-family: var(--sans);
  font-weight: 900;
  font-size: 1.16rem;
  letter-spacing: .05em;
  text-transform: none;
  color: var(--os-text);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.os-bar-right { display: flex; align-items: center; flex-wrap: wrap; gap: 0 .1rem; }
.os-act {
  font: inherit;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--os-muted);
  background: none;
  border: 0;
  padding: 8px .3rem;
  cursor: pointer;
}
.os-act:hover { color: var(--os-text); }
.os-act[aria-pressed="true"] { color: var(--os-accent); }
.os-dot { color: var(--os-dim); }

.os-stage {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(290px, .82fr);
  align-items: center;
  gap: clamp(28px, 6vw, 76px);
  padding: 44px 0 52px;
}
.os-stage.is-single { grid-template-columns: 1fr; max-width: 820px; margin: auto; width: 100%; }
.os-copy { min-width: 0; }

.os-eyebrow {
  margin: 0 0 20px;
  color: var(--os-accent);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.os-h1, .os-h2 {
  margin: 0;
  font-family: var(--os-serif);
  font-weight: 400;
  letter-spacing: -.035em;
}
.os-h1 { font-size: clamp(46px, 8vw, 92px); line-height: .95; }
.os-h2 { font-size: clamp(34px, 5.5vw, 62px); line-height: 1.03; }

.os-lead {
  margin: 27px 0 0;
  max-width: 670px;
  color: var(--os-muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.68;
}
.os-lead strong { color: var(--os-text); font-weight: 500; }
/* The orienting line between a headline and the quotes under it. Smaller than
   .os-lead on purpose: it says what you are looking at, then gets out of the
   way of the thing itself. */
.os-connect {
  margin: 24px 0 0;
  max-width: 640px;
  color: var(--os-muted);
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.6;
}
/* Screen 04's stake line is a connective that happens to sit above the
   question rather than below a headline, so it wants the gap on the other
   side of it. */
.os-stake { margin-bottom: 30px; }
.os-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
/* The frame line under the intro's one button. Same secondary-caption
   treatment as .os-manmar — muted, 14px — at the tighter spacing a line
   sitting directly under its button wants. */
.os-frame { margin-top: 18px; color: var(--os-muted); font-size: 14px; line-height: 1.6; }

/* The prototype eased border-colour and background on hover. §1 allows only
   transform and opacity to be animated — tools/check-motion.py reads every
   transition in this file and fails on anything else — so the hover states are
   kept and their tweening is not. */
.os-btn, .os-file {
  font: inherit;
  color: var(--os-text);
  background: rgba(13, 15, 13, .68);
  border: 1px solid var(--os-line);
  cursor: pointer;
  transition: opacity .3s, transform .2s;
}
.os-btn { min-height: 48px; padding: 13px 18px; text-align: left; letter-spacing: .04em; }
.os-btn:hover, .os-file:hover:enabled { border-color: var(--os-accent); background: var(--os-accent-soft); }
.os-btn.is-primary { border-color: var(--os-accent); background: var(--os-accent-soft); }
.os-btn.is-quiet { color: var(--os-muted); }

.os-portrait-wrap { display: grid; place-items: center; min-height: 430px; }
.os-portrait {
  width: min(340px, 86vw);
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--os-line);
  background: #151715;
  box-shadow: 0 24px 90px rgba(0, 0, 0, .36);
}
/* The photograph fills the frame. Cover-fit and centred, so the dark lower
   portion stays under the MAYA / LAST SEEN line rather than being cropped
   away. The CSS-drawn figure that used to stand in here — a ::before of
   stacked radial gradients, plus a ::after of dark bands and scanlines over
   it — is gone with the placeholder it belonged to. */
.os-portrait-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.os-portrait-label {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 17px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #e5e1d9;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.os-transcript {
  margin-top: 29px;
  padding-left: 20px;
  border-left: 1px solid var(--os-accent);
  max-width: 650px;
  color: var(--os-text);
  font-family: var(--os-serif);
  font-size: clamp(21px, 3vw, 31px);
  line-height: 1.42;
}
.os-transcript p { margin: 0; }
.os-muted { color: var(--os-muted); }
/* Screen 01's transcript plays with the waveform. Every line is present from
   the start at the muted body colour — nothing appears from empty — and the
   one currently being said steps up to full. A line that has gone by returns
   to muted, never dimmer, so it stays readable. Colour steps rather than
   eases: it is neither transform nor opacity, and §1 does not tween those. */
.os-transcript.is-cued p { color: var(--os-muted); }
.os-transcript.is-cued p.is-now { color: var(--os-text); }

.os-system {
  margin-top: 26px;
  padding: 18px 19px;
  border: 1px solid var(--os-line);
  background: rgba(14, 16, 14, .6);
  color: var(--os-muted);
  font-size: 14px;
  line-height: 1.6;
}
.os-system strong { color: var(--os-text); font-weight: 500; }

.os-files { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 35px; }
/* The prototype positioned the cost label absolutely at the card's bottom. In
   flow with margin-top:auto it lands in the same place and cannot collide with
   a description that runs long — which it does here, where the cards sit a
   couple of pixels narrower than the prototype's. Same picture, one less way
   to break it. */
.os-file {
  padding: 19px;
  min-height: 170px;
  text-align: left;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.os-file-num { color: var(--os-accent); font-size: 10px; letter-spacing: .17em; text-transform: uppercase; }
.os-file-title { margin: 23px 0 9px; font-size: 16px; font-weight: 600; letter-spacing: .02em; }
.os-file-desc { color: var(--os-muted); font-size: 13px; line-height: 1.5; }
.os-file-cost {
  margin-top: auto;
  padding-top: 14px;
  color: var(--os-dim);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.os-file.is-chosen { border-color: var(--os-accent); background: var(--os-accent-soft); }
.os-file.is-destroyed { opacity: .14; filter: grayscale(1) blur(.35px); transform: scale(.985); }
/* The stamp is a real element, not ::after content, so the word lives in
   STRINGS with everything else a reader can see. */
.os-file-stamp {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  color: #dad7d0;
  font-size: 11px;
  letter-spacing: .18em;
  background: rgba(0, 0, 0, .5);
}
.os-file.is-destroyed .os-file-stamp { display: grid; }

.os-loss-strip { margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.os-loss {
  border-top: 1px solid var(--os-line);
  padding-top: 10px;
  color: var(--os-muted);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.os-evidence { margin-top: 28px; display: grid; gap: 12px; max-width: 720px; }
.os-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--os-line);
}
.os-row span:first-child { color: var(--os-muted); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }
.os-row span:last-child { font-family: var(--os-serif); font-size: 19px; line-height: 1.42; }

.os-warning { margin: 28px 0 0; color: var(--os-accent); font-size: 13px; line-height: 1.55; max-width: 680px; }

.os-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 34px; }
.os-choices .os-btn { min-height: 94px; }
.os-choices .os-btn small {
  display: block;
  margin-top: 9px;
  color: var(--os-muted);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0;
}

.os-ending { border-top: 1px solid var(--os-line); padding-top: 26px; margin-top: 30px; max-width: 760px; }
.os-ending-result { margin-top: 18px; font-family: var(--os-serif); font-size: clamp(28px, 4.8vw, 52px); line-height: 1.12; }
.os-ending-cost { margin-top: 25px; color: var(--os-muted); font-size: 17px; line-height: 1.65; max-width: 650px; }
.os-ending-read {
  margin-top: 26px;
  padding-left: 20px;
  border-left: 1px solid var(--os-accent);
  color: var(--os-text);
  font-family: var(--os-serif);
  font-size: clamp(19px, 2.6vw, 26px);
  line-height: 1.45;
  max-width: 650px;
}
.os-verdict {
  margin-top: 30px;
  padding-top: 27px;
  border-top: 1px solid var(--os-line);
  color: var(--os-text);
  font-family: var(--os-serif);
  font-size: clamp(23px, 3.4vw, 36px);
  line-height: 1.32;
}
.os-manmar { margin-top: 34px; color: var(--os-muted); font-size: 14px; line-height: 1.6; }
.os-manmar strong { display: block; color: var(--os-text); font-size: 12px; letter-spacing: .19em; margin-bottom: 7px; }
/* The card's thesis opens the screen rather than closing one, so it carries no
   rule above it. */
.os-card-thesis { margin-top: 0; padding-top: 0; border-top: 0; }
.os-card-h1 { margin-top: 30px; }

.os-wave { display: flex; align-items: flex-end; gap: 3px; height: 52px; max-width: 430px; margin-top: 26px; }
/* Bars step rather than ease: height is neither transform nor opacity, so §1
   will not have it transitioned. The read is the same — the wave fills left to
   right on the one loop, a step per frame. */
.os-wave i { flex: 1; background: var(--os-accent); opacity: .25; height: 8%; }

.os-fade { animation: os-fade .48s ease both; }
@keyframes os-fade { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .os-stage { grid-template-columns: 1fr; padding-top: 30px; }
  .os-portrait-wrap { order: -1; min-height: auto; }
  .os-portrait { width: min(245px, 72vw); }
  .os-files, .os-choices { grid-template-columns: 1fr; }
  .os-file { min-height: 132px; }
  .os-row { grid-template-columns: 1fr; gap: 7px; }
  .os-foot { align-items: flex-start; flex-direction: column; gap: 6px; }
}

/* v4 §2i — the piece stays fully playable and readable with all of it off. */
@media (prefers-reduced-motion: reduce) {
  .os, .os *, .os *::before, .os *::after { animation: none !important; transition: none !important; }
  .os-rain { display: none; }
}


/* Section rhythm -------------------------------------------------------- */
.promises, .madefor, .language, .studio, .press, .contact {
  padding: clamp(3.2rem, 9vw, 6.5rem) var(--pad);
  border-bottom: var(--rule);
}


/* §6 Three promises ----------------------------------------------------- */
.promises {
  display: grid;
  gap: clamp(2rem, 5vw, 3.2rem);
}
.promise h2 { font-size: clamp(1.6rem, 5.6vw, 2.35rem); }
.promise p { margin-top: .6rem; opacity: .78; max-width: 34ch; }

@media (min-width: 46rem) {
  .promises { grid-template-columns: repeat(3, 1fr); }
}


/* §7 Made for the phone -------------------------------------------------- */
.madefor h2 {
  font-size: clamp(1.9rem, 6.6vw, 3.6rem);
  max-width: 20ch;
  text-wrap: balance;
}
.vrow {
  margin-top: clamp(1.6rem, 5vw, 2.8rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(.4rem, 1.5vw, 1rem);
  max-width: 44rem;   /* three 9:16 slots go very tall very fast */
}
.vrow img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }


/* §9 Studio -------------------------------------------------------------- */
.studio-line {
  font-size: clamp(1.7rem, 6vw, 3rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -.025em;
  max-width: 22ch;
}
.studio-line + .studio-line { margin-top: .5rem; }
.studio-body {
  font-size: clamp(1rem, .95rem + .45vw, 1.25rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  max-width: 52ch;
  opacity: .82;
  margin-top: 1.4rem;
}
.studio-body + .studio-line { margin-top: 1.4rem; }

/* The entity paragraph: quieter than .studio-body — a crawler's restatement. */
.studio-about {
  margin-top: clamp(2rem, 6vw, 3.5rem);
  max-width: 62ch;
  font-size: clamp(.9rem, .86rem + .25vw, 1rem);
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: 0;
  opacity: .68;
}
.studio-about p + p { margin-top: .85rem; }
.studio-about a { color: inherit; text-underline-offset: .18em; }

/* A fixed strip of five. Not a feed: no dates, no captions, ever. */
.strip {
  margin-top: clamp(2rem, 6vw, 3.5rem);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(58%, 1fr);
  gap: clamp(.4rem, 1.5vw, 1rem);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.strip img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; scroll-snap-align: start; }

@media (min-width: 46rem) {
  .strip { grid-auto-columns: 1fr; overflow-x: visible; }
}


/* §10 Press — no gating of any kind -------------------------------------- */
.press-copy {
  font-size: clamp(1.35rem, 4.6vw, 2.1rem);
  font-weight: 700;
  line-height: 1.22;
  max-width: 26ch;
  text-wrap: balance;
}
.press p + p { margin-top: 1.6rem; }
.press .btn { font-size: .88rem; padding: 1.05rem 1.6rem; }
.press-humans { opacity: .78; font-size: .95rem; }

/* Press photography. Portrait sources, so 2:3 — the strip's 3:2 would cut the
   heads off. The grid sits between two <p>s, which breaks their `p + p`
   adjacency, so the spacing it interrupts is restored on both sides. */
.press-shots {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(.4rem, 1.5vw, 1rem);
}
.press-shots img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}
.press-shots + p { margin-top: 1.6rem; }

/* The team credit. Reads as a note, not a headline: the section's argument is
   the download above it. */
.press-team {
  max-width: 58ch;
  font-size: .95rem;
  line-height: 1.5;
  opacity: .78;
}

@media (min-width: 46rem) {
  .press-shots { grid-template-columns: repeat(4, 1fr); }
}


/* §11 Contact ------------------------------------------------------------ */
.contact h2 { font-size: clamp(2rem, 7vw, 3.6rem); }
.routes {
  margin: clamp(1.8rem, 5vw, 3rem) 0 0;
  display: grid;
  gap: 0;
}
.routes dt {
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .18em;
  color: var(--accent);
  padding-top: 1.2rem;
  border-top: var(--rule);
}
.routes dd {
  margin: .45rem 0 1.2rem;
  max-width: 46ch;
  opacity: .86;
}

@media (min-width: 46rem) {
  .routes { grid-template-columns: 9rem 1fr; align-items: start; }
  .routes dt { grid-column: 1; }
  .routes dd { grid-column: 2; margin-top: 0; padding-top: 1.2rem; border-top: var(--rule); }
}


/* §11 Footer ------------------------------------------------------------- */
.foot {
  padding: clamp(2.5rem, 7vw, 4rem) var(--pad) clamp(3rem, 8vw, 5rem);
  font-size: .88rem;
  display: grid;
  gap: .55rem;
}
.foot p:last-child { margin-top: .6rem; opacity: .55; font-size: .8rem; }
.foot a { text-decoration-thickness: 1px; }

/* §11 statement echo — the only trace THE STATEMENT leaves on the site. */
.echo { color: var(--accent); }
.echo-open {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: .22em;
}

/* Tamil sets tighter than Latin: the wide tracking that makes Archivo caps
   read as a label just pulls a Tamil word apart. Scoped to the language, not
   applied per element, so nothing has to be remembered twice. */
html[lang="ta"] .nav,
html[lang="ta"] .btn,
html[lang="ta"] .routes dt { letter-spacing: .02em; }


/* Custom cursor — desktop pointers only, added by JS (§1) --------------- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border: 1.5px solid var(--amber);
  border-radius: 50%;
  pointer-events: none;
  /* Above everything. The native pointer is hidden while this ring stands in
     for it, so if the ring is ever painted under something opaque — the
     loader at 90, THE STATEMENT at 100 — the reader has no pointer at all. */
  z-index: 200;
  will-change: transform;
  transition: opacity .2s linear;
}
.cursor.is-hot { background: rgba(227, 154, 46, .22); }
html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor input { cursor: none; }


/* §12 404 --------------------------------------------------------------- */
.lost {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.8rem, 6vh, 3rem);
  padding: clamp(2.5rem, 8vw, 6rem) var(--pad);
}
.lost-line {
  font-size: clamp(1.5rem, 5.5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.toy { display: grid; gap: clamp(1.2rem, 4vh, 2.2rem); }

.slots { display: flex; flex-wrap: wrap; gap: .5rem; }
.slot {
  display: grid;
  place-content: center;
  width: 3.4rem;
  height: 4rem;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--fg);
  /* An empty slot should read as waiting, not as decoration — but it carries a
     glyph, and a glyph has to clear 4.5:1. This is as faint as that allows. */
  opacity: .58;
  border: 1px dashed var(--hair);
}
.slot.is-full { opacity: 1; border-style: solid; border-color: var(--accent); }

/* JS turns this into the scatter arena; until then the tiles simply sit in a
   row and the word is already legible. Both states are the same height, so
   scattering them shifts nothing. */
.tiles {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: .5rem;
  min-height: clamp(11rem, 34vh, 16rem);
}
.tiles.is-arena { display: block; position: relative; height: clamp(11rem, 34vh, 16rem); }

.tile {
  width: 3.4rem;
  height: 4rem;
  font-family: var(--tamil);
  font-size: 1.5rem;
  font-weight: 500;      /* only 500/700/900 are subset — never synthesise */
  line-height: 1;
  color: var(--fg);
  background: var(--bg);
  border: 2px solid var(--fg);
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.is-arena .tile { position: absolute; top: 0; left: 0; will-change: transform; }
.tile.is-snapping { transition: transform .18s ease-out; }
.tile.is-held { cursor: grabbing; border-color: var(--accent); z-index: 2; }
.tile.is-done { border-color: var(--accent); color: var(--accent); cursor: default; }

.back { display: inline-block; font-weight: 900; letter-spacing: .04em; }
.back.is-pulsing { animation: pulse .5s ease-in-out 3; }
@keyframes pulse { 50% { transform: scale(1.07); } }


/* Plain pages: privacy, support ---------------------------------------- */
.plain { padding: clamp(3rem, 10vw, 7rem) var(--pad); max-width: 44rem; }
.plain h1 { font-size: clamp(2rem, 7vw, 3.2rem); margin-bottom: 1rem; }
.todo { font-weight: 700; color: var(--accent); }
.back { display: inline-block; margin-top: 2rem; font-weight: 700; }

/* These two pages became real prose on 2026-08-11 (legal_pages_brief.md), and
   prose needs a rhythm the stubs never did: `p { margin: 0 }` is a global reset
   and every section on the homepage sets its own spacing. Line length is
   already held by .plain's 44rem. */
.plain p + p, .plain ul { margin-top: 1rem; }
.plain ul { padding-left: 1.15em; }
.plain li + li { margin-top: .7rem; }
.plain :where(p, li) { max-width: 38rem; line-height: 1.55; }
/* The effective-date line sits under the title as a credit, not a sentence: set
   smaller, exempt from the prose measure above, and given the full column. At
   body size inside 38rem it broke after "Covers" and left "manmar.me" alone on
   a line of its own. It still wraps on a phone, which is fine — there it wraps
   as a credit rather than as a stranded word. Matches how the iruvam.com
   siblings set the same line. */
.plain .meta {
  margin-top: .35rem; max-width: none;
  font-size: .875em; font-weight: 500; opacity: .72;
}
.plain .meta + p { margin-top: 1.6rem; }
/* The lead-ins are the only bold in the body; keep them from shouting. */
.plain :where(p, li) strong { font-weight: 700; }


/* §1 prefers-reduced-motion: no animation anywhere, everything visible --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .loader { display: none; }
}
