﻿/* THE STORY SECTIONS, between the eye wall and the work: the name (a dictionary entry), the seven
   days, why the speed is real, and who we're for. Copy is the approved copy (content/08-site-v2.md). They reuse Section
   05's editorial frame (.s5, .s5-wrap, kicker, heading, reveal-on-scroll); two run dark, so the
   page alternates ivory and ink instead of one long ivory stretch. Girgit appears only as the
   supplied 3D renders. */

.st-dark { background: var(--black); color: var(--ivory); }
.st-dark .s5-kicker { color: #A9A397; }
.st-dark .s5-wrap, .st-days .s5-wrap { padding-bottom: clamp(4.5rem, 11vw, 9rem); }
.st-aside { margin: clamp(1.8rem, 4vw, 2.8rem) 0 0; font-size: clamp(1.4rem, 2.2vw, 1.9rem); color: var(--olive); rotate: -2deg; transform-origin: left center; }
.st-dark .st-aside { color: #C9C2B4; }

/* ---------- The name: a dictionary entry for the word ----------
   Forest green like the header and footer. The entry is an ivory dictionary card in the footer's
   language (black frame, checker strip, hard shadow); "our meaning" is marked in acid. The statement
   sits beside it. */
.st-name { background: var(--forest); }
.st-name-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.st-dict-card {
  --sq: 9px; position: relative; padding: calc(var(--sq) * 2 + clamp(1.2rem, 2.6vw, 2rem)) clamp(1.3rem, 3.4vw, 2.8rem) clamp(1.6rem, 3.4vw, 2.6rem);
  background: var(--ivory); color: var(--black); border: 3px solid var(--black); box-shadow: 10px 10px 0 var(--black); rotate: -1deg;
}
.st-dict-card::before { content: ''; position: absolute; inset: 0 0 auto; height: calc(var(--sq) * 2); border-bottom: 3px solid var(--black); background: repeating-conic-gradient(var(--yellow) 0 25%, var(--black) 0 50%) 0 0 / calc(var(--sq) * 2) calc(var(--sq) * 2); }
.st-dict-head { display: grid; gap: 0.5rem; padding-bottom: clamp(1rem, 2.4vw, 1.6rem); border-bottom: 2px solid var(--black); }
.st-dict-word { margin: 0; font: 800 clamp(4rem, 9.5vw, 8.5rem)/1.3 var(--deva); letter-spacing: 0; color: var(--forest); cursor: default; }
.st-dict-word [lang] { display: inline-block; }
.st-dict-say { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.8rem; margin: 0; }
.st-dict-say i { font: italic 800 clamp(1.4rem, 2.2vw, 2rem)/1 var(--satoshi); }
.st-dict-ipa { font: 500 1.05rem/1.3 var(--satoshi); color: #6E675D; }
.st-dict-tag { padding: 0.3rem 0.65rem; border: 2px solid var(--black); border-radius: 999px; font: 700 0.72rem/1 var(--satoshi); letter-spacing: 0.1em; text-transform: uppercase; }
.st-dict-defs { display: grid; gap: clamp(0.9rem, 1.8vw, 1.2rem); margin: clamp(1.2rem, 2.6vw, 1.8rem) 0 0; padding: 0; list-style: none; }
.st-dict-defs li { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); gap: 0.9rem; align-items: baseline; }
.st-dict-n { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--black); color: var(--ivory); font: 800 0.95rem/1 var(--satoshi); translate: 0 0.3rem; }
.st-dict-defs p { margin: 0; font: 500 clamp(1.05rem, 1.4vw, 1.3rem)/1.5 var(--satoshi); color: #2A2620; }
.st-dict-defs em { margin-right: 0.35em; font-style: italic; color: #6E675D; }
.st-dict-defs i { font-weight: 700; color: var(--black); }
.st-dict-defs strong { font-weight: 800; color: var(--black); }
.st-dict-ours { margin: 0.3rem -0.8rem 0; padding: 0.9rem 0.8rem; border: 2px solid var(--black); background: var(--acid); }
.st-dict-ours em { color: var(--black); }
.st-deva { font-family: var(--deva); font-weight: 800; color: var(--acid); letter-spacing: 0; cursor: help; }
.st-dict-card .st-deva { color: var(--forest); }
/* The Hindi words swap to English on hover, tap or focus (js/site.js): the English on a highlight. */
.st-name .hi { border-bottom-color: rgb(67 255 24 / 0.6); }
.st-name .hi.is-en { font-family: var(--satoshi); font-weight: 800; color: var(--black); background: var(--acid); }
.st-dict-card .hi { border-bottom-color: var(--black); }
.st-dict-card .hi.is-en { background: var(--yellow); }
.st-name .hi:focus-visible { outline: 3px solid var(--acid); outline-offset: 3px; }
.st-dict-card .hi:focus-visible { outline-color: var(--black); }
.st-name-turn { margin: 0 0 clamp(1rem, 2vw, 1.4rem); font: 900 clamp(2.4rem, 5vw, 4.8rem)/0.92 var(--satoshi); letter-spacing: -0.04em; text-transform: uppercase; color: var(--ivory); }
.st-name-turn span { color: var(--acid); }
.st-name-line { margin: 0; max-width: 40ch; font: 500 clamp(1.08rem, 1.5vw, 1.35rem)/1.55 var(--satoshi); color: #D9D3C7; }
.st-name-line--strong { color: var(--ivory); font-weight: 600; }
@media (max-width: 900px) {
  .st-name-grid { grid-template-columns: 1fr; }
  .st-dict-card { rotate: 0deg; box-shadow: 6px 6px 0 var(--black); }
}
/* Rang badalna: hover the headword and it runs through the colours. */
@media (prefers-reduced-motion: no-preference) {
  .st-dict-word:hover [lang] { animation: st-rang 2.6s linear infinite; }
  @keyframes st-rang { 0%, 100% { color: var(--forest); } 20% { color: #19C8BE; } 40% { color: #3C6EFF; } 60% { color: #FF8C28; } 80% { color: #FF3D9A; } }
}

/* ---------- The seven days: four cards, Before the clock to Live ---------- */
.st-lede { max-width: 36ch; margin: 0 0 clamp(2rem, 4vw, 3rem); font: 500 clamp(1.15rem, 1.8vw, 1.6rem)/1.45 var(--satoshi); color: #2F2D28; }
.st-days-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(0.8rem, 1.6vw, 1.4rem); margin: 0; padding: 0; list-style: none; }
.st-day {
  display: grid; align-content: start; gap: 1rem; min-height: 13rem; padding: clamp(1.1rem, 1.8vw, 1.6rem);
  border: 2px solid var(--black); border-radius: 1.1rem; background: #FFFDF8;
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
.st-day:nth-child(odd) { rotate: -1deg; } .st-day:nth-child(even) { rotate: 1deg; }
.st-day:hover { transform: translateY(-6px); box-shadow: 6px 6px 0 var(--black); }
.st-day-tag { justify-self: start; padding: 0.4rem 0.75rem; border: 1.5px solid var(--black); border-radius: 999px; background: var(--day); color: var(--day-ink, var(--black)); font: 800 0.76rem/1 var(--satoshi); letter-spacing: 0.1em; text-transform: uppercase; }
.st-day p { margin: 0; font: 600 clamp(1.02rem, 1.3vw, 1.2rem)/1.4 var(--satoshi); }
.st-day:last-child { --day-ink: #FFFFFF; }
.st-day:last-child p { font: 900 clamp(2.6rem, 4.4vw, 4rem)/0.9 var(--satoshi); letter-spacing: -0.05em; text-transform: uppercase; }
.st-small { max-width: 62ch; margin: clamp(1.8rem, 4vw, 2.6rem) 0 0; font: 500 0.98rem/1.6 var(--satoshi); color: #5E5A50; }

/* ---------- Why the speed is real: three columns on ink ---------- */
.st-why-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.6rem, 4vw, 3.5rem); margin: 0; padding: 0; list-style: none; }
.st-why-cols li { padding-top: 1.4rem; border-top: 1px solid rgb(244 239 229 / 0.25); }
.st-why-n { font: 700 0.74rem/1 var(--satoshi); letter-spacing: 0.16em; color: var(--acid); }
.st-why-cols h3 { margin: 0.9rem 0 0.8rem; font: 900 clamp(1.5rem, 2.4vw, 2.3rem)/1 var(--satoshi); letter-spacing: -0.035em; text-transform: uppercase; }
.st-why-cols p { margin: 0; max-width: 34ch; font: 500 1.05rem/1.6 var(--satoshi); color: #D9D3C7; }
.deco--hourglass { right: 4%; top: clamp(2.5rem, 6vw, 4.5rem); width: clamp(60px, 7vw, 120px); rotate: -8deg; }

/* ---------- Who we're for: ticks for the best fits, the rest asleep ---------- */
/* The good fits: framed ivory cards (the footer's language), each with a coloured tag; the poor fits
   in one forest panel with pink crosses, Girgit asleep beside them. */
.st-fit-yes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 1.8rem); margin: 0; padding: 0; list-style: none; }
.st-fit-card { --c: var(--acid); display: grid; align-content: space-between; gap: 2rem; min-height: 12rem; padding: 1.2rem 1.4rem 1.5rem; border: 3px solid var(--black); background: var(--ivory); box-shadow: 6px 6px 0 var(--black); transition: transform 200ms var(--ease), box-shadow 200ms var(--ease); }
.st-fit-card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--black); }
.st-fit-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.st-fit-tag { padding: 0.4rem 0.7rem; border: 2px solid var(--black); background: var(--c); color: var(--black); font: 800 0.72rem/1 var(--satoshi); letter-spacing: 0.12em; text-transform: uppercase; }
.st-fit-n { font: 800 0.9rem/1 var(--satoshi); color: #6E675D; font-variant-numeric: tabular-nums; }
.st-fit-card p { margin: 0; max-width: 24ch; font: 800 clamp(1.3rem, 2.1vw, 1.85rem)/1.15 var(--satoshi); letter-spacing: -0.025em; color: var(--black); }
.st-fit-less { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1.5rem clamp(1.5rem, 4vw, 3rem); margin-top: clamp(1.6rem, 3.4vw, 2.6rem); padding: clamp(1.4rem, 3vw, 2.2rem); border: 3px solid var(--black); background: var(--forest); color: var(--ivory); box-shadow: 6px 6px 0 var(--black); }
.st-fit-h3 { margin: 0 0 0.9rem; font: 900 clamp(1.4rem, 2.4vw, 2.1rem)/1 var(--satoshi); letter-spacing: -0.03em; text-transform: uppercase; color: var(--acid); }
.st-fit-no { display: grid; gap: 0.7rem; margin: 0; padding: 0; list-style: none; }
.st-fit-no li { position: relative; padding-left: 2.3rem; font: 600 clamp(1.05rem, 1.4vw, 1.25rem)/1.4 var(--satoshi); color: #D9D3C7; }
.st-fit-no li::before { content: '¹5' / ''; position: absolute; left: 0; top: 0.05em; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border: 2px solid #FF8FC7; border-radius: 50%; color: #FF8FC7; font: 800 0.7rem/1 var(--satoshi); }
.st-fit-sleep { display: block; width: clamp(9rem, 18vw, 15rem); height: auto; }
@media (max-width: 760px) {
  .st-fit-yes, .st-fit-less { grid-template-columns: 1fr; }
  .st-fit-card { min-height: 0; }
  .st-fit-sleep { justify-self: end; width: 10rem; }
}
/* Girgit peeks over the top edge of the cards, on the right, clear of the heading. */
.st-fit-board { position: relative; }
.st-fit-peek { position: absolute; z-index: 2; right: clamp(1rem, 4vw, 3rem); bottom: calc(100% - 6px); width: clamp(110px, 12vw, 180px); height: auto; pointer-events: none; }
.st-fit .s5-head { margin-bottom: clamp(5rem, 9vw, 8.5rem); }
.st-close { max-width: 24ch; margin: clamp(2.5rem, 5vw, 4rem) 0 0; font: 900 clamp(1.7rem, 3.2vw, 2.9rem)/1 var(--satoshi); letter-spacing: -0.045em; text-transform: uppercase; }

@media (max-width: 1000px) {
  .st-days-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .st-why-cols { grid-template-columns: 1fr; }
  .st-dict-defs li { grid-template-columns: 2rem minmax(0, 1fr); gap: 0.7rem; }
  .st-days-list { grid-template-columns: 1fr; }
  .st-day { min-height: 0; }
  .st-fit-peek { width: 96px; }
  .st-fit .s5-head { margin-bottom: 5rem; }
}

/* ---------- Motion (reduced motion: none) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* The dictionary card tilts in and settles at its resting angle. */
  .js .st-dict-card[data-reveal] { translate: 0 60px; rotate: -7deg; transition: opacity 600ms var(--ease), translate 900ms var(--pop), rotate 900ms var(--pop); }
  .js .st-dict-card[data-reveal].in-view { translate: none; rotate: -1deg; }
  .js .st-dict-defs[data-stagger] > * { transition-delay: calc(300ms + var(--i) * 120ms); }
  /* The good-fit cards rise in one after another; hover stays instant. */
  .js .st-fit-card[data-reveal] { rotate: 2deg; transition: opacity 600ms var(--ease) var(--d, 0ms), translate 700ms var(--ease) var(--d, 0ms), rotate 700ms var(--pop) var(--d, 0ms), transform 200ms var(--ease), box-shadow 200ms var(--ease); }
  .js .st-fit-card[data-reveal].in-view { rotate: none; }
  .st-fit-card:nth-child(2) { --d: 110ms; } .st-fit-card:nth-child(3) { --d: 220ms; } .st-fit-card:nth-child(4) { --d: 330ms; }
  .js .st-fit-less[data-reveal] { transition-delay: 200ms; }
  /* Girgit pops up behind the cards. */
  .js .st-fit-peek[data-reveal] { translate: 0 30%; scale: 0.7; transform-origin: 50% 100%; transition: opacity 400ms var(--ease) 350ms, translate 800ms var(--pop) 350ms, scale 800ms var(--pop) 350ms; }
  .js .st-fit-peek[data-reveal].in-view { translate: none; scale: 1; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 900px) {
  .js .st-dict-card[data-reveal].in-view { rotate: 0deg; }
}
