/* ============================================================================
   AUREL — aurel-auteur (direct register) · stylesheet
   A lit printed ledger. Palette + type committed in design/COMMIT-SHEET.md.
   Owner direction (2026-10-08b): brand/editorial craft — Pentagram/Porto Rocha/
   Collins typographic rigour, Aesop/Apple/Linear calm, Buck/Ordinary Folk motion.
   Rules in force: hierarchy carried by DECISIVE display sizes; one rigorous grid
   across all 7 scenes with deliberate asymmetry (never default centring); paper +
   ink + ONE cyan used as punctuation, never decoration; motion choreographed and
   purposeful. No WebGL — type and motion carry the film.
   Build order (auteur direct.md phase 2): foundation → hero → scenes → reveals
   → reduced-motion cut → mobile pass. This is that cut.
   ========================================================================== */

/* ── self-hosted typefaces (no third-party origin) — licence ledger:
      assets/sourced/ASSETS-SOURCED.md. Chakra Petch & Hanken Grotesk are OFL. ── */
@font-face{
  font-family:"Chakra Petch"; font-style:normal; font-weight:500 700;
  src:url("fonts/ChakraPetch.woff2") format("woff2"); font-display:swap;
}
@font-face{
  font-family:"Hanken Grotesk"; font-style:normal; font-weight:400 700;
  src:url("fonts/HankenGrotesk.woff2") format("woff2"); font-display:swap;
}

/* ── committed palette (OKLCH) — design/COMMIT-SHEET.md field 2 ───────────── */
:root{
  --paper:      oklch(0.962 0.006 232);   /* cool stock — deliberately NOT the warm-cream band */
  --paper-2:    oklch(0.938 0.010 226);   /* tinted ledger field */
  --ink:        oklch(0.250 0.028 236);   /* dot-matrix ribbon ink */
  --ink-2:      oklch(0.455 0.022 236);   /* secondary text (>= 4.5:1 on paper) */
  --ink-3:      oklch(0.520 0.022 236);   /* tertiary meta (4.9:1 on paper — was 0.56 = 4.15:1, failed 4.5) */
  --rule:       oklch(0.860 0.010 232);   /* hairline ledger rules */
  --signal:     oklch(0.585 0.130 222);   /* the ONE committed hue — logo cyan, tuned for paper */
  --signal-ink: oklch(0.470 0.110 226);   /* signal at text contrast */

  /* the grid — ONE system, reused in all 7 scenes (rail | content | margin) */
  --rail:  clamp(52px, 6.4vw, 104px);
  --gap:   clamp(16px, 2.2vw, 32px);
  --pad-l: clamp(20px, 5vw, 76px);
  --pad-r: clamp(20px, 5vw, 76px);
  --pad-t: clamp(40px, 7vw, 116px);
  --pad-b: clamp(48px, 8vw, 132px);
  --shadowless: 1px solid var(--rule);

  /* type scale — decisive steps, no timid in-betweens (owner direction 1) */
  --fs-hero: clamp(2.6rem, 6.6vw, 6.6rem);   /* type-led signature; past the prose ceiling, declared */
  --fs-h2:   clamp(2.15rem, 4.8vw, 4.4rem);  /* scene heads */
  --fs-h3:   clamp(1.1rem, 1.5vw, 1.45rem);
  --fs-lede: clamp(1.06rem, 1.4vw, 1.38rem);
  --fs-body: clamp(1rem, 0.5vw + 0.9rem, 1.15rem);
  --fs-meta: 0.86rem;

  --display:"Chakra Petch","Rajdhani","Arial Narrow",system-ui,sans-serif;
  --text:"Hanken Grotesk","Public Sans",system-ui,sans-serif;

  /* motion vocabulary — motion.md durations/easings, resolved policy */
  --ease-out-quart: cubic-bezier(0.23,1,0.32,1);
  --ease-in-out-quart: cubic-bezier(0.77,0,0.175,1);
  --dur-press: 140ms;   /* tap feedback 100–160ms */
  --dur-hover: 160ms;
  --dur-ui:    200ms;   /* <=300ms, no justification needed */
}

*{ box-sizing:border-box; }
body{
  margin:0; background:var(--paper); color:var(--ink);
  font-family:var(--text); font-weight:400; font-size:var(--fs-body); line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
img,svg{ display:block; max-width:100%; }
a{ color:var(--signal-ink); }

/* Reveals enhance an already-visible default — nothing is gated behind an animation.
   Without JS (or before GSAP runs) every element below is fully visible. */

/* ── ONE grid, reused by every scene: rail | content ──────────────────────── */
.scene{ position:relative; overflow-x:clip; background:var(--paper); }
.grid{
  position:relative; z-index:1; width:100%;
  display:grid; grid-template-columns:var(--rail) minmax(0,1fr);
  gap:var(--gap); padding:var(--pad-t) var(--pad-r) var(--pad-b) var(--pad-l);
}
.col-content{ grid-column:2; min-width:0; }
.dots{                                   /* the brand's dot language as texture (taste.md §6) */
  position:absolute; inset:0; z-index:0; pointer-events:none; opacity:.5;
  background-image:radial-gradient(var(--rule) 1.4px, transparent 1.5px);
  background-size:26px 26px;
  -webkit-mask-image:linear-gradient(90deg,transparent 24%,#000 100%);
          mask-image:linear-gradient(90deg,transparent 24%,#000 100%);
}
.rail{ position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; gap:16px; grid-column:1; }
.folio{
  font-family:var(--display); font-weight:600; font-size:clamp(18px,1.9vw,30px);
  line-height:1; letter-spacing:.01em; color:var(--ink-2); font-variant-numeric:tabular-nums;
}
.rail i{ flex:1 1 auto; width:1px; background:var(--rule); }

/* editorial scene-opening: a hairline rule + heading + right-aligned meta.
   Openings ROTATE — never the same twice in a row (taste.md). */
.opener{ border-top:2px solid var(--ink); padding-top:clamp(12px,1.6vw,20px);
  display:flex; justify-content:space-between; align-items:baseline; gap:var(--gap); margin-bottom:clamp(20px,3vw,40px); }
.opener .meta{ font-family:var(--display); font-weight:500; color:var(--ink-3); font-size:var(--fs-meta); letter-spacing:.02em; font-variant-numeric:tabular-nums; }

h1,h2,h3{ font-family:var(--display); margin:0; text-wrap:balance; }
h2{ font-weight:700; font-size:var(--fs-h2); line-height:1.02; letter-spacing:-0.02em; }
h3{ font-weight:600; font-size:var(--fs-h3); line-height:1.2; letter-spacing:-0.01em; }
p{ margin:0; }
.lede{ color:var(--ink-2); max-width:46ch; font-size:var(--fs-lede); line-height:1.5; }
.prose{ max-width:68ch; }

/* ── Scene 1 — Posisi jalan  | centred-type / scroll-scrub   (folio 01) ───── */
.scene--hook{ min-height:100svh; }
.scene--hook .grid{ min-height:100svh; }
.hook-wrap{ position:relative; z-index:1; display:flex; flex-direction:column; align-items:flex-start; }
.mark{ width:clamp(128px,22vw,272px); height:auto; }
.mark [fill="#F2F5F7"]{ fill:var(--ink); }     /* 58 cells -> ribbon ink */
.mark [fill="#35C4E8"]{ fill:var(--signal); }  /* the brand's 1 accent cell -> committed cyan (punctuation) */
.hook{
  font-weight:700; font-size:var(--fs-hero); line-height:0.99; letter-spacing:-0.025em;
  margin:clamp(24px,3.6vw,52px) 0 0; max-width:14ch;
}
.hook .over{ display:block; }
.hook-wrap .lede{ margin-top:clamp(18px,2.4vw,30px); }
.cta-row{ display:flex; align-items:center; gap:clamp(12px,1.4vw,20px); flex-wrap:wrap; margin-top:clamp(28px,3.6vw,46px); }
.cta{
  display:inline-flex; align-items:center; gap:.62em; font-family:var(--display); font-weight:600;
  font-size:clamp(1rem,1.05vw,1.16rem); letter-spacing:.005em; text-decoration:none;
  color:var(--paper); background:var(--ink); padding:.74em 1.08em; border-radius:3px;
  transition:transform var(--dur-press) var(--ease-out-quart);
}
.cta::before{ content:""; width:.58em; height:.58em; background:var(--signal); border-radius:1px; }  /* the ONE accent mark */
.cta-note{ color:var(--ink-2); font-size:.96rem; }
.foot{ margin-top:auto; padding-top:clamp(56px,9vw,140px); display:flex; gap:22px; align-items:baseline; flex-wrap:wrap; }
.foot span{ font-size:var(--fs-meta); color:var(--ink-3); }
.foot b{ font-family:var(--display); font-weight:600; color:var(--ink); letter-spacing:.02em; }

/* the grid-break: on wide screens the hook's first line leaves the column and is
   clipped by the sheet edge (design/COMMIT-SHEET.md field 4). The body never does. */
@media (min-width:1000px){
  .hook .over{ margin-left:calc(-1 * (var(--rail) + var(--gap) + var(--pad-l) * .72)); }
}
@media (max-width:640px){
  .grid{ grid-template-columns:1fr; }
  .col-content{ grid-column:1; }
  .rail{ flex-direction:row; align-items:center; gap:14px; grid-column:1; }
  .rail i{ width:auto; height:1px; align-self:center; }
  .hook{ font-size:clamp(2.1rem,9.6vw,3rem); }
}

/* ── Scene 2 — Yang berubah  | split-asymmetric (5/7) / entrance-reveal ──── */
.scene--split{ min-height:66svh; display:flex; align-items:center; }
.split{ display:grid; grid-template-columns:5fr 7fr; gap:clamp(24px,4vw,72px); align-items:start; }
.col--without{ padding-top:clamp(32px,7vw,96px); }
.col--with{ border-top:2px solid var(--ink); padding-top:clamp(14px,1.6vw,22px); }
.col h3{ margin-bottom:.6rem; }
.col p{ color:var(--ink-2); }
.col--with h3{ color:var(--ink); }
@media (max-width:760px){
  .split{ grid-template-columns:1fr; }
  .col--without{ padding-top:0; }
}

/* ── Scene 3 — Posisi menyeberang  | pinned-canvas / scroll-scrub (THE PEAK) ─ */
.scene--peak{ min-height:320vh; }               /* peak owns 320vh of scroll (storyboard) */
.stage{
  position:sticky; top:0; height:100svh; z-index:1;
  display:grid; grid-template-columns:var(--rail) minmax(0,1fr); gap:var(--gap);
  align-content:center; padding:var(--pad-t) var(--pad-r) var(--pad-b) var(--pad-l);
}
.stage-body{ grid-column:2; display:flex; flex-direction:column; gap:clamp(22px,3vw,42px); }
.stage-head{ max-width:60ch; }
.stage-head .lede{ margin-top:clamp(12px,1.6vw,20px); }
.track{ position:relative; z-index:1; width:100%; color:var(--ink); }
.track svg{ width:100%; height:auto; }
.track .trackrule{ stroke:var(--rule); stroke-width:1; }
.track .axis{ stroke:var(--ink); stroke-width:1.5; }
.track .tick{ stroke:var(--ink-2); stroke-width:1; }
.track .lbl{ font-family:var(--display); font-weight:600; font-size:15px; letter-spacing:.01em; fill:var(--ink); }
.track .lbl--sec{ fill:var(--ink-2); font-weight:500; }
.track .nodepath{ fill:var(--paper); stroke:var(--ink); stroke-width:2; }
.track .dotrun{ fill:var(--signal); }           /* cyan = the mechanism, used once */
.track .stopline{ stroke:var(--signal); stroke-width:2.5; }
.track .lockdot{ fill:var(--signal); }
.track .rowprint{ font-family:var(--display); font-weight:500; font-size:13px; fill:var(--ink-2); font-variant-numeric:tabular-nums; }
/* curtain (transition in/out = curtain): top/bottom thirds part as the peak pins in.
   The middle band holds the copy, so it is never covered. */
.curtain{ position:absolute; left:0; right:0; height:20svh; z-index:2; background:var(--paper-2);
  border-block:1px solid var(--rule); }
.curtain--top{ top:0; }
.curtain--bot{ bottom:0; }

/* ── Scene 4 — Anda pegang tiga tombol  | editorial-columns / pinned-stage ─ */
.scene--toggles{ min-height:160vh; }
.ledger{ padding:var(--pad-t) var(--pad-r) var(--pad-b) var(--pad-l); }
.ledger-wrap{ display:grid; grid-template-columns:var(--rail) minmax(0,1fr); gap:var(--gap); max-width:1160px; }
.ledger-body{ grid-column:2; }
.ledger-head{ position:sticky; top:clamp(14px,4vh,44px); z-index:3; background:var(--paper);
  border-bottom:2px solid var(--ink); padding-bottom:clamp(10px,1.4vw,18px); }
.ledger-head h2{ margin-top:.5rem; }
.row{ display:grid; grid-template-columns:clamp(44px,5vw,80px) minmax(0,1fr) minmax(0,16ch);
  gap:var(--gap); align-items:baseline; padding:clamp(22px,3.2vw,42px) 0; border-bottom:1px solid var(--rule); }
.row .n{ font-family:var(--display); font-weight:600; color:var(--ink-2); font-variant-numeric:tabular-nums; }
.row .t{ font-family:var(--display); font-weight:600; font-size:clamp(1.4rem,2.6vw,2.25rem); letter-spacing:-0.015em; }
.row .v{ font-family:var(--display); font-weight:500; color:var(--ink-2); text-align:right; font-variant-numeric:tabular-nums; }
/* wide screens: each ledger row owns real vertical space so the rows genuinely
   scroll through the pinned header across the whole 160vh — and the whitespace
   is bounded by content, never an empty stretch (owner direction 2). */
@media (min-width:761px){
  .row{ min-height:42vh; align-items:center; }
}
.ledger-note{ margin-top:clamp(22px,3vw,38px); color:var(--ink-2); max-width:58ch; }

/* ── Scene 5 — Cara kerjanya  | marginal-notes / entrance-reveal ─────────── */
.notes{ max-width:960px; }
.note{ display:grid; grid-template-columns:clamp(40px,5vw,72px) minmax(0,1fr); gap:var(--gap);
  padding:clamp(16px,2vw,26px) 0; border-top:1px solid var(--rule); }
.note .n{ font-family:var(--display); font-weight:600; color:var(--ink-2); font-variant-numeric:tabular-nums; }
.note p{ color:var(--ink-2); max-width:64ch; }
.note p b{ color:var(--ink); font-weight:600; }

/* ── Scene 6 — Ayat Anda sendiri  | full-bleed-media / pinned-stage (ink) ── */
.scene--quote{ min-height:200vh; background:var(--ink); color:var(--paper); --rule:oklch(0.40 0.02 236); }
.scene--quote .dots{ opacity:.14;
  background-image:radial-gradient(oklch(0.62 0.02 232) 1.4px, transparent 1.5px);
  -webkit-mask-image:linear-gradient(180deg,transparent 8%,#000 62%); mask-image:linear-gradient(180deg,transparent 8%,#000 62%); }
.quote-stage{ position:sticky; top:0; height:100svh; display:grid;
  grid-template-columns:var(--rail) minmax(0,1fr); gap:var(--gap);
  align-content:center; padding:var(--pad-t) var(--pad-r) var(--pad-b) var(--pad-l); z-index:1; }
.quote-body{ grid-column:2; }
.quote .folio, .scene--quote .folio{ color:oklch(0.66 0.02 232); }
.scene--quote .rail i{ background:oklch(0.40 0.02 236); }
.quote-stage .q-big{ font-family:var(--display); font-weight:700; line-height:1.0; letter-spacing:-0.025em;
  font-size:clamp(2.1rem,5.4vw,5.2rem); max-width:19ch; }
.quote-stage .q-sub{ margin-top:clamp(18px,2.2vw,30px); max-width:36ch; color:oklch(0.80 0.015 232); font-size:var(--fs-lede); }
.frag{ display:block; }
.q-mark{ /* the single cyan punctuation in this scene (storyboard: "satu tanda sian") */
  display:inline-block; width:.5em; height:.5em; background:var(--signal); border-radius:1px;
  margin-right:.5em; vertical-align:baseline; }
/* fragments are visible by default; JS may pin + sequence them as a staged reveal */
.rm .frag, .no-js .frag{ opacity:1; transform:none; }

/* ── Scene 7 — Mulai satu salinan  | centred-type / entrance-reveal ──────── */
.scene--cta .cta-wrap{ max-width:900px; }
.scene--cta h2{ font-weight:700; font-size:clamp(2.2rem,5vw,4.6rem); line-height:1.0; letter-spacing:-0.025em; }
.scene--cta .lede{ margin-top:clamp(14px,1.8vw,26px); }
.scene--cta .cta-row{ margin-top:clamp(26px,3.4vw,42px); }
.slip{ filter:url("#slip"); }          /* displacement (print register slip) — scene 7 in */

/* ── hover, gated to real pointers (motion.md) ───────────────────────────── */
@media (hover:hover) and (pointer:fine){
  .cta:hover{ transform:translateY(-2px); }
}

/* ── focus ───────────────────────────────────────────────────────────────── */
:where(a,button):focus-visible{ outline:3px solid var(--signal-ink); outline-offset:3px; border-radius:2px; }

/* ── mobile pass: pinned scenes shorten (scroll_len × 0.6); no images to swap ─ */
@media (max-width:768px){
  .scene--peak{ min-height:200vh; }
  .scene--toggles{ min-height:auto; }   /* auto, not 120vh: the pinned head had nothing to scroll through on a phone → a ~400px empty tail (owner note b) */
  .scene--quote{ min-height:140vh; }
}

/* ── small-width refinement (owner review 2026-10-08b, two notes) ──────────────
   (a) the ONE full-bleed dark scene (S6 "Ayat Anda sendiri") read too small and
       cramped on a phone — its reading scale + leading are raised at <=768 and
       again at <=430. Everything above 768px is byte-identical (desktop
       appearance unchanged; verified: q-big 77.76px @1440 before == after).
   (b) under-filled scenes on a phone — the two pinned 100svh stages (S3, S6)
       floated a short centred block in a mostly-empty screen, and the flowing
       S2/S4 carried an unused band. Spacing/min-heights are bounded to content
       here so no scene presents a near-empty screen (numbers in CINEMA-QA). */
@media (max-width:768px){
  /* (a) S6 — the dark scene's reading scale (was 41.5px @768 / 33.6px @390) */
  .quote-stage .q-big{ font-size:clamp(2.6rem, 7.6vw, 3.5rem); line-height:1.1; max-width:15ch; }
  .quote-stage .q-sub{ font-size:clamp(1.18rem, 1.2vw + 0.9rem, 1.42rem);
    line-height:1.5; margin-top:clamp(26px, 4svh, 44px); max-width:34ch; }
  .quote-stage{ padding-block:clamp(56px, 9svh, 120px); }   /* type grows, so the ink frame is not top/bottom empty */

  /* (b) bound the whitespace to content */
  .scene--split{ min-height:auto; }                          /* was 66svh → centred 332px block in 557px (0.60 fill) */
  .ledger{ padding-block:var(--pad-t) var(--pad-b); }
  /* the undefined UA default inset (40px each side) halved the dark quote's
     column on a phone — the quote was rendering in ~202px of a 390px screen.
     Removed at <=768 only; at 1440 the authored max-width already binds. */
  .quote-stage blockquote{ margin-inline:0; }
  /* S3 peak stage — lift the head and open the head→track gap so the centred
     composition fills the pinned frame instead of floating in paper */
  .stage-body{ gap:clamp(36px, 9svh, 84px); }
  .stage-head h2{ font-size:clamp(2.5rem, 8.6vw, 3.9rem); }
  .stage-head .lede{ font-size:clamp(1.1rem, 1.1vw + 0.82rem, 1.34rem); }
}
@media (max-width:760px){
  /* rows need real vertical presence now the pinned head is unpinned — mirrors
     the wide-screen min-height:42vh rule, sized for a phone */
  .row{ min-height:18svh; align-items:center; }
}
@media (max-width:430px){
  /* the phone tier — the dark scene reads at full emotional scale */
  .quote-stage .q-big{ font-size:clamp(2.8rem, 10.6vw, 3.3rem); line-height:1.09; max-width:15ch; }
  .quote-stage .q-sub{ font-size:1.18rem; }
  .stage-head h2{ font-size:clamp(2.7rem, 9.6vw, 3.4rem); }
}
@media (max-width:640px){
  /* the three pinned/ledger scenes (.stage S3, .ledger-wrap S4, .quote-stage S6)
     were the only ones still on the 2-column rail grid here — .grid collapses at
     640 but these did not, so their text sat in a 282px column on a 390px screen.
     Same phone layout as every other scene now (this block is ordered after the
     base rules on purpose: an earlier @media loses to a later plain rule). */
  .stage, .quote-stage, .ledger-wrap{ grid-template-columns:1fr; }
  .stage-body, .quote-body, .ledger-body{ grid-column:1; }
}

/* ── prefers-reduced-motion: a static printed cut of the SAME film ───────── */
@media (prefers-reduced-motion: reduce){
  .scene--peak, .scene--toggles, .scene--quote{ min-height:auto; }
  .stage, .quote-stage, .ledger-head{ position:static; height:auto; }
  .stage{ padding-block:var(--pad-t) var(--pad-b); }
  .quote-stage{ padding-block:var(--pad-b); }
  .curtain{ display:none; }
  .frag{ opacity:1; transform:none; }
  .cta{ transition:none; }
  .slip{ filter:none; }
}
