/* ============================================================
   gi.css — DigitKard Ground Intelligence
   Design system for the department layer.

   Not a product site. This is an instrument panel and a field
   record. Restraint is the brief: no stock photography, no
   traction numbers, no claims the event log cannot support.

   The Aguwa onboarding flow does NOT use this file. It keeps
   its own Hindi-first styling, untouched.
   ============================================================ */

/* ---------- 1. TOKENS ---------- */

:root {
  /* paper + ink */
  --bg:        #f4f6f8;
  --surface:   #ffffff;
  --surface-2: #eef1f5;
  --ink:       #0f172a;
  --ink-2:     #33425a;
  /* #64748b measured 4.39:1 on --bg — under the 4.5:1 AA floor, and it is the
     colour the 11px mono eyebrows use. Darkened until it passes on bg, surface
     and surface-2 alike. The dark theme's --muted already clears 5.3:1
     everywhere, so it is left alone. */
  --muted:     #5e6d82;
  --line:      #dbe2ea;
  --line-2:    #c3cedb;

  /* signal colours — carried over from the live site's palette */
  --accent:      #2563eb;   /* the instrument / what is captured */
  --accent-soft: #e7eeff;
  --warn:        #c2410c;   /* failure, refusal, drop-off — recorded, not hidden */
  --warn-soft:   #fdece2;
  --open:        #7c5cbf;   /* not yet known / open question */
  --open-soft:   #efe9fb;

  /* type */
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans",
          "Noto Sans Devanagari", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Menlo,
          "Roboto Mono", Consolas, monospace;

  /* rhythm */
  --shell: 1080px;
  --r:     10px;
  --r-sm:  6px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #0a1018;
    --surface:   #111a26;
    --surface-2: #17222f;
    --ink:       #e8eef6;
    --ink-2:     #c0cddd;
    --muted:     #8496ab;
    --line:      #1f2c3b;
    --line-2:    #2c3d50;

    --accent:      #74a4ff;
    --accent-soft: #14233d;
    --warn:        #f59e6b;
    --warn-soft:   #2d1b12;
    --open:        #b39ce8;
    --open-soft:   #211a33;

    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg:        #0a1018;
  --surface:   #111a26;
  --surface-2: #17222f;
  --ink:       #e8eef6;
  --ink-2:     #c0cddd;
  --muted:     #8496ab;
  --line:      #1f2c3b;
  --line-2:    #2c3d50;

  --accent:      #74a4ff;
  --accent-soft: #14233d;
  --warn:        #f59e6b;
  --warn-soft:   #2d1b12;
  --open:        #b39ce8;
  --open-soft:   #211a33;

  color-scheme: dark;
}

/* ---------- 2. BASE ---------- */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

/* Keyboard focus. The browser default ring is a dark hairline, which all but
   disappears against the dark theme's ground and against the accent button.
   :focus-visible so a mouse click does not leave a ring behind, and an offset
   so the ring sits outside the element rather than on top of its own border. */
:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

h1, h2, h3 {
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 .5rem;
  font-weight: 640;
}
h1 { font-size: clamp(2rem, 5.2vw, 3.1rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); }
h3 { font-size: 1.06rem; font-weight: 650; }

p { margin: 0 0 1rem; }
p.lede {
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  color: var(--ink-2);
  max-width: 62ch;
}

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}
.narrow { max-width: 72ch; }

section { padding: clamp(40px, 7vw, 76px) 0; }
section + section { border-top: 1px solid var(--line); }

/* ---------- 3. THE INSTRUMENT SIGNATURE ----------
   Uppercase mono eyebrow. Used everywhere a machine-readable
   label would sit on real instrumentation. */

.eyebrow {
  font-family: var(--mono);
  font-size: .685rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 .85rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--line-2);
  flex: none;
}
.eyebrow.bare::before { display: none; }

code, .mono { font-family: var(--mono); font-size: .875em; }
code {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: .08em .38em;
}

/* ---------- 4. HEADER ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.masthead-in {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 62px;
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: .55rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 680;
  letter-spacing: -0.02em;
  flex: none;
}
.wordmark .unit {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.nav { display: flex; gap: .2rem; margin-left: auto; flex-wrap: wrap; }
.nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: .9rem;
  padding: .4rem .6rem;
  border-radius: var(--r-sm);
}
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* On a narrow screen the four nav items would wrap into a tall column and
   shove the language buttons off the edge. Below 760px the header becomes
   two rows instead: identity + controls, then the nav as one scrollable
   line. The language toggle must always be reachable without scrolling —
   it is the first thing a Hindi reader needs. */
@media (max-width: 760px) {
  .masthead-in { flex-wrap: wrap; gap: .5rem; padding-block: .55rem; min-height: 0; }
  .wordmark { flex: 1 1 auto; }
  .ctl { margin-left: auto; }
  .nav {
    order: 3;
    flex: 1 0 100%;
    margin-left: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: .15rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; padding: .3rem .5rem; }
}
@media (max-width: 420px) {
  .wordmark .unit { font-size: .56rem; letter-spacing: .1em; }
}

.ctl { display: flex; gap: .3rem; flex: none; }
.ctl button {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: .34rem .5rem;
  cursor: pointer;
}
.ctl button:hover { border-color: var(--line-2); color: var(--ink); }
.ctl button[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

/* ---------- 5. HERO ---------- */

.hero { padding: clamp(52px, 9vw, 104px) 0 clamp(40px, 6vw, 68px); }
.hero h1 { max-width: 20ch; }
.hero .lede { margin-top: 1.1rem; }

/* ---------- 5a. THE PARENT THESIS ----------
   Future 2100's own hero line, carried onto this site. DigitKard is the
   unit that serves it, so the sentence belongs here too — set apart from
   the eyebrow above it and the headline below, and attributed, so it
   reads as the thesis DigitKard reports to rather than a tagline this
   site made up for itself. */

.thesis {
  position: relative;
  margin: .35rem 0 1.6rem;
  padding-left: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem .8rem;
}

/* The rule is a pseudo-element rather than a border so it can draw itself
   downward on arrival. */
.thesis::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  transform-origin: top center;
  animation: thesis-bar .5s cubic-bezier(.2, .7, .3, 1) both;
}

.thesis .line {
  font-size: clamp(1.32rem, 3.3vw, 1.85rem);
  font-weight: 640;
  letter-spacing: -0.022em;
  color: var(--accent);
  line-height: 1.25;
  /* Wipes open left to right — the sentence is about moving from today to
     2100, so it arrives in that direction rather than just fading. */
  animation: thesis-wipe .95s cubic-bezier(.2, .7, .3, 1) .16s both;
}

.thesis .src {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  animation: thesis-fade .6s ease .95s both;
}

@keyframes thesis-bar {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}
@keyframes thesis-wipe {
  from { clip-path: inset(0 100% 0 0); opacity: .35; }
  to   { clip-path: inset(0 0 0 0);    opacity: 1; }
}
@keyframes thesis-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Anyone who asked for less motion gets the finished state, immediately. */
@media (prefers-reduced-motion: reduce) {
  .thesis::before,
  .thesis .line,
  .thesis .src { animation: none; }
  .thesis .line { clip-path: none; opacity: 1; }
}

/* ---------- the cycling sentence ----------
   Once gi.js takes the line over, it rotates through the languages in
   #thesisLangs. Two details matter:

   - The wipe follows each language's own reading direction. An Urdu or
     Arabic line opening left-to-right would be backwards.
   - The box holds the height of the tallest line so the headline below
     it never jumps as the languages change. */

.thesis .line.is-cycling {
  display: block;
  position: relative;
  /* Take the full row. As a shrink-to-fit flex item the box would be as wide
     as whichever sentence is showing, so every language would re-wrap at a
     different width and the measured height would be meaningless.
     The attribution simply moves to the line below. */
  flex: 1 1 100%;
  /* gi.js measures every translation at load and pins the tallest here, so
     a language that wraps does not shove the headline down. */
}
.thesis .line .lang { display: inline-block; }

/* The outgoing line is taken out of flow while it fades, otherwise it and
   the incoming one sit side by side for a moment and the sentence visibly
   doubles in width. */
.thesis .line .lang.out {
  position: absolute;
  left: 0; right: 0; top: 0;
  pointer-events: none;
}

.thesis .line .lang.in-ltr  { animation: thesis-wipe .8s cubic-bezier(.2,.7,.3,1) both; }
.thesis .line .lang.in-rtl  { animation: thesis-wipe-rtl .8s cubic-bezier(.2,.7,.3,1) both; }
.thesis .line .lang.out     { animation: thesis-out .35s ease both; }

@keyframes thesis-wipe-rtl {
  from { clip-path: inset(0 0 0 100%); opacity: .35; }
  to   { clip-path: inset(0 0 0 0);    opacity: 1; }
}
@keyframes thesis-out {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateY(-4px); }
}

/* The small label naming the current language. */
.thesis .tag {
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: .8;
}

/* Screen readers get one stable sentence instead of a changing one. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 5b. HERO SLIDER ----------
   Ground photographs at the top of the homepage. Built to survive the
   connection this site is actually read on:

   - Slide 1 loads eagerly; the rest are lazy. A 2G visitor pays for one
     image, not four, before the page is usable.
   - It is a scroll-snap strip, so with JavaScript off it is still a
     working, swipeable gallery rather than one frozen frame.
   - Auto-advance stops on hover, on focus, and for reduced motion. */

.slider {
  position: relative;
  margin: 2.2rem 0 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface-2);
}
.slider-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.slider-track::-webkit-scrollbar { display: none; }

.slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  position: relative;
  min-width: 0;
  margin: 0;
}
.slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: var(--surface-2);
}
.slide figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.6rem 1.1rem 1.4rem;
  color: #fff;
  font-size: .88rem;
  line-height: 1.45;
  background: linear-gradient(to top, rgba(6,10,16,.9) 0%, rgba(6,10,16,.55) 48%, transparent 100%);
}
.slide figcaption b { font-weight: 640; }

.slider-dots {
  position: absolute;
  left: 0; right: 0; bottom: .55rem;
  display: flex;
  justify-content: center;
  gap: .4rem;
  pointer-events: none;
}
.slider-dots button {
  pointer-events: auto;
  width: 7px; height: 7px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.45);
  cursor: pointer;
}
.slider-dots button[aria-current="true"] { background: #fff; width: 20px; border-radius: 999px; }

@media (max-width: 600px) {
  .slide figcaption { font-size: .8rem; padding: 2.2rem .85rem 1.3rem; }
  .slide img { aspect-ratio: 4 / 3; }
}

/* ---------- 6. THE CHAIN ----------
   Ground → DigitKard → FutureLab → Platforms.
   The single most important diagram on the site. */

.chain {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  margin: 2rem 0 0;
}
.chain-step {
  background: var(--surface);
  padding: 1.15rem 1.15rem 1.35rem;
  position: relative;
  min-width: 0;
}
.chain-step .n {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .12em;
  color: var(--muted);
}
.chain-step h3 { margin: .35rem 0 .3rem; font-size: 1rem; }
.chain-step p { font-size: .86rem; color: var(--muted); margin: 0; line-height: 1.55; }
.chain-step.is-us { background: var(--accent-soft); }
.chain-step.is-us h3 { color: var(--accent); }
.chain-step.is-us::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--accent);
}
@media (max-width: 760px) {
  .chain { grid-template-columns: 1fr; }
}

/* ---------- 7. CARDS & GRIDS ---------- */

.grid { display: grid; gap: 1px; background: var(--line);
        border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .grid-2 { grid-template-columns: 1fr; } }

.cell { background: var(--surface); padding: 1.4rem; min-width: 0; }
.cell h3 { margin-bottom: .4rem; }
.cell p:last-child { margin-bottom: 0; }
.cell p { color: var(--ink-2); font-size: .94rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.4rem;
}

/* ---------- 8. THE RECORD STRIP ----------
   A visual of the append-only log: rows that only ever get
   added. Success and its failure twin sit side by side. */

.record {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface);
  font-family: var(--mono);
  font-size: .8rem;
}
.record-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr auto;
  gap: .9rem;
  align-items: baseline;
  padding: .62rem .95rem;
  border-bottom: 1px solid var(--line);
}
.record-row:last-child { border-bottom: 0; }
.record-row .t { color: var(--muted); font-size: .72rem; }
.record-row .e { color: var(--ink); overflow-wrap: anywhere; }
.record-row .tag {
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .1rem .42rem;
  border-radius: 999px;
  white-space: nowrap;
}
.tag-ok   { background: var(--accent-soft); color: var(--accent); }
.tag-fail { background: var(--warn-soft);   color: var(--warn); }
.tag-open { background: var(--open-soft);   color: var(--open); }
@media (max-width: 620px) {
  .record-row { grid-template-columns: 1fr auto; }
  .record-row .t { grid-column: 1 / -1; }
}

/* ---------- 9. PAIRS ----------
   Every success event has a failure twin. This is the table
   that says so. */

.pairs { width: 100%; border-collapse: collapse; font-size: .9rem; }
.pairs th, .pairs td {
  text-align: left;
  padding: .7rem .9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.pairs th {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.pairs td.k { font-family: var(--mono); font-size: .8rem; }
.pairs td.f { font-family: var(--mono); font-size: .8rem; color: var(--warn); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line);
              border-radius: var(--r); background: var(--surface); }

/* ---------- 10. LADDER ----------
   Geography grain: district down to ward. */

.ladder { list-style: none; margin: 0; padding: 0; }
.ladder li {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1rem;
  padding: .72rem 0;
  border-bottom: 1px dashed var(--line);
  align-items: baseline;
}
.ladder li:last-child { border-bottom: 0; }
.ladder .lv {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.ladder li.last .lv { color: var(--accent); }
.ladder li.last strong { color: var(--accent); }
.ladder p { margin: .1rem 0 0; font-size: .89rem; color: var(--muted); }

/* A ladder inside a warn-toned panel must not end on the blue accent — the
   last row is that panel's emphasis, so it takes that panel's colour. */
.cell[data-tone="warn"] .ladder li.last .lv,
.cell[data-tone="warn"] .ladder li.last strong { color: var(--warn); }
@media (max-width: 620px) {
  .ladder li { grid-template-columns: 1fr; gap: .15rem; }
}

/* ---------- 11. NOTES ---------- */

.note {
  border-left: 3px solid var(--line-2);
  padding: .2rem 0 .2rem 1.1rem;
  color: var(--ink-2);
  font-size: .95rem;
}
.note.open   { border-left-color: var(--open); }
.note.warn   { border-left-color: var(--warn); }
.note strong { color: var(--ink); }

/* ---------- 12. STATUS PILL ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  padding: .26rem .6rem;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--muted);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.live { color: var(--accent); border-color: var(--accent); }
.pill.cfg  { color: var(--muted); }
.pill.slot { color: var(--open); border-color: var(--open); border-style: dashed; }

/* ---------- 12b. PRICE ----------
   Used on the plans page. The number is the thing being compared,
   so it gets the weight and the term next to it stays quiet. */

.price {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  margin: .3rem 0 .9rem;
}
.price .amt,
.price .amt-wrap {
  font-size: clamp(1.7rem, 4vw, 2.15rem);
  font-weight: 680;
  letter-spacing: -0.03em;
  line-height: 1;
}
/* The ₹ sign sits OUTSIDE .amt on purpose: the live price fetch replaces
   .amt's textContent, so a symbol inside it would be wiped out the moment
   the console's price arrives. .amt-wrap carries the symbol and the number
   together, and .amt inherits from it so the two never drift apart. */
.price .amt-wrap .amt { font: inherit; letter-spacing: inherit; }
.price .per {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Feature list inside a plan. Dashes, not ticks — a tick reads as a
   claim, and these are just what the plan includes. */
.feat { list-style: none; margin: 0 0 1.1rem; padding: 0; }
.feat li {
  position: relative;
  padding-left: 1.05rem;
  font-size: .92rem;
  color: var(--ink-2);
  margin-bottom: .4rem;
}
.feat li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--line-2);
}

/* ---------- 12c. STEPS ----------
   Numbered sequence. The number is a marker, not decoration, so it
   is monospaced and aligned like everything else machine-readable. */

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.steps li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 2.1rem 1fr;
  gap: .9rem;
  padding: .75rem 0;
  border-bottom: 1px dashed var(--line);
}
.steps li:last-child { border-bottom: 0; }
.steps li::before {
  content: counter(s, decimal-leading-zero);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .08em;
  color: var(--accent);
  padding-top: .18rem;
}
.steps p { margin: .15rem 0 0; font-size: .9rem; color: var(--muted); }

/* ---------- 13. BUTTONS ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.15rem;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
:root[data-theme="dark"] .btn-primary,
:root:not([data-theme="light"]) .btn-primary { color: #0a1018; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .btn-primary { color: #fff; }
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-row { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.6rem; }

/* ---------- 14. THE AGUWA DOOR ----------
   The one place the department layer hands over to the
   Hindi-first field flow. Deliberately looks different —
   it belongs to the other audience. */

.door {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: clamp(1.5rem, 4vw, 2.2rem);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
}
.door h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); margin-bottom: .35rem; }
.door p { color: var(--ink-2); margin: 0; max-width: 52ch; }
@media (max-width: 720px) {
  .door { grid-template-columns: 1fr; }
}

/* ---------- 15. FOOTER ---------- */

.foot {
  border-top: 1px solid var(--line);
  padding: 2.4rem 0 3rem;
  color: var(--muted);
  font-size: .87rem;
}
.foot-in { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: space-between; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--accent); text-decoration: underline; }
.foot-links { display: flex; gap: 1.1rem; flex-wrap: wrap; }

/* ---------- 16. LANGUAGE ----------
   Symmetric: neither language is privileged in CSS. Which one a page
   opens in is decided per page by `data-lang-default` on <html>, and
   overridden by the visitor's own saved choice.

   Department and legal pages open English. Family-facing pages open
   Hindi. The Aguwa flow keeps its own markup and is not governed here.

   The `:where()` keeps specificity at zero so a page can always hide a
   block with [hidden] or its own rule without fighting this one. */

:root[data-lang="en"] :where([data-hi]) { display: none; }
:root[data-lang="hi"] :where([data-en]) { display: none; }

/* Before gi.js runs, <html> already carries data-lang from the inline
   head script, so there is no flash of both languages. If scripting is
   off entirely, both are shown rather than neither — worse looking,
   but nothing is hidden from the reader. */

/* ---------- 17. MOTION ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(10px);
            transition: opacity .5s ease, transform .5s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---- Future 2100 ground-question cards (gi-questions.js) ---- */
.gq-card { display: flex; flex-direction: column; gap: .7rem; }
.gq-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.gq-code { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.gq-q { margin: 0; font-size: 1.12rem; line-height: 1.4; }
.gq-ground { margin: 0; font-size: .9rem; }
.gq-label { color: var(--muted); }
.gq-link { margin-top: auto; font-size: .88rem; font-weight: 600; text-decoration: none; }
.gq-link:hover { text-decoration: underline; }
.gq-grid[hidden] { display: none; }
