/* 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;
  /* THE STATEMENT's sentences and ending copy only (v2 §1). System serif, zero
     bytes over the wire — it should read as a typed document, not as brand. */
  --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); }

/* §4 THE STATEMENT ------------------------------------------------------ */
/* Sits on top of the finished site. The site is whole underneath it and whole
   in the HTML; this is an overlay, never a gate on the content. */
/* Shared scroll lock — THE STATEMENT and the trailer lightbox both use it. */
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; }

.st {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  overflow-y: auto;
  overscroll-behavior: contain;
  transition: transform .6s cubic-bezier(.62, .02, .2, 1);
}
.st.is-lifting { transform: translateY(-100%); }

.st-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;              /* Tamil labels are longer than SKIP/PRESS KIT */
  gap: .4rem .9rem;
  padding: .8rem var(--pad);
  background: var(--bg);
  border-bottom: var(--rule);
}
.st-mark {
  font: inherit;
  font-family: var(--sans);
  font-weight: 900;
  font-size: 1.16rem;
  letter-spacing: .05em;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.st-bar-right { display: flex; align-items: center; flex-wrap: wrap; }
.st-act {
  font: inherit;
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  white-space: nowrap;
  color: inherit;
  background: none;
  border: 0;
  padding: .35rem .15rem;
  cursor: pointer;
  opacity: .72;
}
.st-act:hover { opacity: 1; }
.st-act[aria-pressed="true"] { opacity: 1; color: var(--accent); }

.st-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.3rem, 4vh, 2.3rem);
  width: 100%;
  max-width: 54rem;
  margin: 0 auto;
  padding: clamp(2rem, 7vw, 3.5rem) var(--pad) clamp(2.5rem, 8vh, 4.5rem);
}

.st-eyebrow {
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .26em;
  color: var(--accent);
}

.st-sentence {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 6.2vw, 3rem);
  line-height: 1.3;
}

/* The blank is the object on the table. It breathes until a word lands in it,
   then takes the word with a single beat and stops. */
.st-blank {
  display: inline-block;
  min-width: 4.5ch;
  text-align: center;
  padding: 0 .1em;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}
.st-blank:not(.is-filled) { animation: st-breathe 1.9s ease-in-out infinite; }
.st-blank.is-pop { animation: st-pop .34s ease-out; }

@keyframes st-breathe { 50% { opacity: .32; } }
@keyframes st-pop { 40% { transform: scale(1.07); } }

.st-choices { display: flex; flex-wrap: wrap; gap: .6rem; }
.st-choice {
  font: inherit;
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .1em;
  color: var(--fg);
  background: none;
  border: 2px solid var(--fg);
  padding: .85rem 1.15rem;
  cursor: pointer;
  transition: transform .12s ease-out, opacity .3s linear;
}
.st-choice:hover:enabled { transform: translateY(-2px); }
.st-choice.is-dim { opacity: .15; }
.st-choice.is-chosen { border-color: var(--accent); color: var(--accent); }

.st-count {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  opacity: .62;
}
/* Quiet, but a reader still has to be able to read it: .48 measured 4.31:1
   against ink and 4.5 is the bar. This is as far back as it can stand. */
.st-record { font-family: var(--sans); font-size: .8rem; opacity: .62; }

.st-assembled {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 3.4vw, 1.65rem);
  line-height: 1.5;
}
.st-word { color: var(--accent); font-weight: 700; }

.st-card { display: flex; flex-direction: column; gap: clamp(.9rem, 3vh, 1.5rem); }
.st-ending-name {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 5.4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
}
.st-ending {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 3.1vw, 1.3rem);
  line-height: 1.5;
  max-width: 46ch;
}
.st-reveal {
  display: grid;
  gap: .28rem;
  font-family: var(--sans);
  font-size: .92rem;
  line-height: 1.55;
  max-width: 54ch;
  opacity: .74;
}
.st-handoff { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .4rem; }


/* 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; }

/* 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; }


/* §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"] .st-eyebrow { letter-spacing: .1em; }
html[lang="ta"] .st-choice,
html[lang="ta"] .st-count,
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; }


/* §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; }
}
