/* ==========================================================================
   GoodShift Private Limited — design system
   Single stylesheet. No framework, no build step.
   Sections: 1 tokens · 2 reset · 3 type · 4 layout · 5 components · 6 motion
   ========================================================================== */

/* 1 ── TOKENS ============================================================== */

:root {
  /* brand */
  --blue:        #2B0BF5;
  --blue-ink:    #2B0BF5;   /* blue as used for text on light */
  --blue-soft:   #EFECFE;
  --blue-line:   rgba(43, 11, 245, .22);

  /* venture accents */
  --petnimbus:   #FFBD11;
  --cyphermeet:  #7439F3;
  --xtream:      #D6111E;
  --ridequest:   #75B023;

  /* surfaces */
  --bg:          #FFFFFF;
  --surface:     #F6F6FA;
  --surface-2:   #EFEFF5;
  --inverse:     #0A0A12;
  --inverse-2:   #13131E;

  /* ink */
  --ink:         #0B0B12;
  --ink-2:       #3D3D4D;
  --ink-3:       #6C6C80;
  --on-inverse:  #F4F4F8;
  --on-inverse-2:#A9A9BC;
  --on-inverse-3:#74748A;

  /* lines */
  --line:        rgba(11, 11, 18, .11);
  --line-2:      rgba(11, 11, 18, .18);
  --line-inv:    rgba(255, 255, 255, .13);
  --line-inv-2:  rgba(255, 255, 255, .22);

  /* type */
  --fd: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --fb: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* scale */
  --step--1: clamp(.80rem, .78rem + .10vw, .86rem);
  --step-0:  clamp(.95rem, .92rem + .14vw, 1.03rem);
  --step-1:  clamp(1.12rem, 1.05rem + .32vw, 1.32rem);
  --step-2:  clamp(1.38rem, 1.24rem + .62vw, 1.80rem);
  --step-3:  clamp(1.70rem, 1.44rem + 1.14vw, 2.55rem);
  --step-4:  clamp(2.10rem, 1.62rem + 2.06vw, 3.60rem);
  --step-5:  clamp(2.50rem, 1.70rem + 3.40vw, 4.90rem);

  /* space + shape */
  --gut: clamp(1.15rem, .75rem + 1.7vw, 2.4rem);
  --max: 1180px;
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --shadow: 0 1px 2px rgba(11,11,18,.05), 0 8px 26px -10px rgba(11,11,18,.14);
  --shadow-lg: 0 2px 4px rgba(11,11,18,.05), 0 26px 60px -22px rgba(11,11,18,.26);

  color-scheme: light;
}

/* dark — system preference, unless the user explicitly chose light */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --blue:       #7C5BFF;
    --blue-ink:   #A08CFF;
    --blue-soft:  #191436;
    --blue-line:  rgba(124, 91, 255, .34);

    --bg:         #07070D;
    --surface:    #0E0E17;
    --surface-2:  #161622;
    --inverse:    #12121D;
    --inverse-2:  #1B1B29;

    --ink:        #F3F3F8;
    --ink-2:      #B6B6C8;
    --ink-3:      #83839A;
    --on-inverse: #F3F3F8;
    --on-inverse-2:#B6B6C8;
    --on-inverse-3:#83839A;

    --line:       rgba(255,255,255,.12);
    --line-2:     rgba(255,255,255,.20);
    --shadow:     0 1px 2px rgba(0,0,0,.5), 0 8px 26px -10px rgba(0,0,0,.7);
    --shadow-lg:  0 2px 4px rgba(0,0,0,.5), 0 26px 60px -22px rgba(0,0,0,.8);
    color-scheme: dark;
  }
}

/* dark — explicit choice wins in both directions */
:root[data-theme="dark"] {
  --blue:       #7C5BFF;
  --blue-ink:   #A08CFF;
  --blue-soft:  #191436;
  --blue-line:  rgba(124, 91, 255, .34);

  --bg:         #07070D;
  --surface:    #0E0E17;
  --surface-2:  #161622;
  --inverse:    #12121D;
  --inverse-2:  #1B1B29;

  --ink:        #F3F3F8;
  --ink-2:      #B6B6C8;
  --ink-3:      #83839A;
  --on-inverse: #F3F3F8;
  --on-inverse-2:#B6B6C8;
  --on-inverse-3:#83839A;

  --line:       rgba(255,255,255,.12);
  --line-2:     rgba(255,255,255,.20);
  --shadow:     0 1px 2px rgba(0,0,0,.5), 0 8px 26px -10px rgba(0,0,0,.7);
  --shadow-lg:  0 2px 4px rgba(0,0,0,.5), 0 26px 60px -22px rgba(0,0,0,.8);
  color-scheme: dark;
}


/* 2 ── RESET =============================================================== */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--fb);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
:where(h1,h2,h3,h4,h5) { font-weight: 600; line-height: 1.12; letter-spacing: -.022em; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--blue); color: #fff; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--blue); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 var(--r-s) 0;
}
.skip:focus { left: 0; }


/* 3 ── TYPE ================================================================ */

.d1 { font-family: var(--fd); font-size: var(--step-5); letter-spacing: -.035em; line-height: 1.02; }
.d2 { font-family: var(--fd); font-size: var(--step-4); letter-spacing: -.03em;  line-height: 1.06; }
.d3 { font-family: var(--fd); font-size: var(--step-3); letter-spacing: -.025em; line-height: 1.12; }
.d4 { font-family: var(--fd); font-size: var(--step-2); letter-spacing: -.02em;  line-height: 1.2; }
.d5 { font-family: var(--fd); font-size: var(--step-1); letter-spacing: -.015em; line-height: 1.3; }

.lead   { font-size: var(--step-1); line-height: 1.58; color: var(--ink-2); }
.muted  { color: var(--ink-3); }
.small  { font-size: var(--step--1); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--fd);
  font-size: .70rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue-ink);
}
.eyebrow::before {
  content: ""; width: 20px; height: 1.5px; background: currentColor; opacity: .55;
}
.eyebrow--plain::before { display: none; }

.measure    { max-width: 62ch; }
.measure-sm { max-width: 48ch; }

.link-u {
  color: var(--blue-ink); font-weight: 500;
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: var(--blue-line); transition: text-decoration-color .18s;
}
.link-u:hover { text-decoration-color: currentColor; }


/* 4 ── LAYOUT ============================================================== */

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.wrap-n { max-width: 880px; }

.section   { padding-block: clamp(3.6rem, 2.2rem + 5.4vw, 7.4rem); }
.section-s { padding-block: clamp(2.6rem, 1.8rem + 3.4vw, 5rem); }

.on-surface { background: var(--surface); }
.on-dark {
  background: var(--inverse);
  color: var(--on-inverse);
  --ink: var(--on-inverse);
  --ink-2: var(--on-inverse-2);
  --ink-3: var(--on-inverse-3);
  --line: var(--line-inv);
  --line-2: var(--line-inv-2);
  --surface: var(--inverse-2);
  --blue-ink: #A08CFF;
}

.grid { display: grid; gap: clamp(1rem, .6rem + 1.5vw, 1.9rem); }
.g-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 900px) { .g-3, .g-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }

.split {
  display: grid; gap: clamp(1.8rem, 1rem + 3vw, 4.2rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}
.split--head { grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); align-items: end; }
@media (max-width: 860px) { .split, .split--head { grid-template-columns: 1fr; } }

.stack   > * + * { margin-top: 1rem; }
.stack-s > * + * { margin-top: .5rem; }
.stack-l > * + * { margin-top: 1.9rem; }

.head { margin-bottom: clamp(2rem, 1.2rem + 2.4vw, 3.4rem); }
.head .d2, .head .d3 { margin-top: .85rem; }
.head p { margin-top: 1rem; }

.row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }


/* 5 ── COMPONENTS ========================================================== */

/* 5.1 buttons */
.btn {
  --btn-bg: var(--blue); --btn-fg: #fff; --btn-bd: var(--blue);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--fd); font-size: var(--step--1); font-weight: 600; letter-spacing: .01em;
  padding: .82rem 1.4rem; border-radius: 100px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  transition: transform .16s ease, box-shadow .2s ease, background .18s, color .18s, border-color .18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1.5px); box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--btn-bg) 75%, transparent); }
.btn:active { transform: translateY(0); }
.btn svg { width: 15px; height: 15px; flex: none; }

.btn--ghost  { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-2); }
.btn--ghost:hover { --btn-bd: var(--ink); box-shadow: none; }
.btn--ink    { --btn-bg: var(--ink); --btn-fg: var(--bg); --btn-bd: var(--ink); }
.btn--light  { --btn-bg: #fff; --btn-fg: #0B0B12; --btn-bd: #fff; }
.btn--sm     { padding: .58rem 1.05rem; font-size: .78rem; }

/* 5.2 header */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.site-head.is-stuck { border-bottom-color: var(--line); }
.site-head__in {
  display: flex; align-items: center; gap: 1.5rem;
  height: 70px;
}
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 30px; width: auto; }

/* light/dark logo pairs — used in the header, the footer and anywhere else */
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark  { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark  { display: block; }
}
/* inside an .on-dark band the white lockup always wins, whatever the theme */
.on-dark .logo-light, .cta-band .logo-light { display: none; }
.on-dark .logo-dark,  .cta-band .logo-dark  { display: block; }

/* responsive visibility helpers */
.only-mobile { display: none; }
@media (max-width: 900px) { .only-mobile { display: block; } }
@media (max-width: 560px) { .hide-sm { display: none; } }

.nav { margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: .3rem; }
.nav a {
  display: block; padding: .5rem .8rem; border-radius: 8px;
  font-size: var(--step--1); font-weight: 500; color: var(--ink-2);
  transition: color .16s, background .16s;
}
.nav a:hover { color: var(--ink); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.head-actions { display: flex; align-items: center; gap: .5rem; flex: none; }

.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 10px; border: 1px solid var(--line); color: var(--ink-2);
  transition: border-color .16s, color .16s, background .16s;
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-2); background: var(--surface); }
.icon-btn svg { width: 17px; height: 17px; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun  { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun  { display: none; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: block; }
}

.burger { display: none; }
@media (max-width: 900px) {
  .burger { display: grid; }
  .nav {
    position: fixed; inset: 70px 0 auto; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: .6rem var(--gut) 1.4rem;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .2s, transform .2s;
    max-height: calc(100dvh - 70px); overflow-y: auto;
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { padding: .85rem .2rem; border-bottom: 1px solid var(--line); border-radius: 0; font-size: var(--step-0); }
  .nav li:last-child a { border-bottom: 0; }
  .nav .btn { margin-top: 1rem; width: 100%; }
}

/* 5.3 hero */
.hero { position: relative; padding-block: clamp(3.2rem, 2rem + 5vw, 6.6rem) clamp(3rem, 2rem + 4vw, 5.6rem); overflow: hidden; }
.hero__grid { position: relative; z-index: 2; }
.hero .d1 { margin-top: 1.3rem; }
.hero .lead { margin-top: 1.5rem; max-width: 56ch; }
.hero .row { margin-top: 2.2rem; }

/* hexagon field — echoes the logo mark */
.hexfield {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: .5;
  -webkit-mask-image: radial-gradient(115% 85% at 88% 8%, #000 5%, transparent 62%);
  mask-image: radial-gradient(115% 85% at 88% 8%, #000 5%, transparent 62%);
}
.hexfield svg { width: 100%; height: 100%; }
.hexfield path { fill: none; stroke: var(--blue); stroke-width: 1.1; opacity: .3; }

/* 5.4 cards */
.card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: clamp(1.3rem, 1rem + .9vw, 1.9rem);
  transition: border-color .2s, transform .2s, box-shadow .25s;
}
.card--pad-l { padding: clamp(1.6rem, 1.1rem + 1.5vw, 2.5rem); }
.card--flat  { background: var(--surface); border-color: transparent; }
a.card:hover, .card--hover:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: var(--shadow); }

.card__n {
  font-family: var(--fd); font-size: .72rem; font-weight: 600; letter-spacing: .14em;
  color: var(--blue-ink); display: block; margin-bottom: .9rem;
}
.card :is(h2,h3,h4) { font-family: var(--fd); font-size: var(--step-1); letter-spacing: -.015em; }
.card p  { color: var(--ink-2); margin-top: .6rem; font-size: var(--step-0); }

/* 5.5 venture cards */
.vent {
  --accent: var(--blue);
  display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r-l); overflow: hidden;
  transition: border-color .22s, transform .22s, box-shadow .28s;
}
.vent:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.vent__top {
  position: relative; padding: 1.7rem 1.7rem 1.5rem;
  background:
    radial-gradient(120% 100% at 10% 0%, color-mix(in srgb, var(--accent) 17%, transparent) 0%, transparent 62%),
    var(--inverse);
  border-bottom: 1px solid var(--line-inv);
  min-height: 132px; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
/* logos vary wildly in aspect, so cap both axes and let the narrow one win */
.vent__logo { max-height: 42px; max-width: min(210px, 58%); width: auto; object-fit: contain; }
.vent__logo--sq { max-height: 62px; max-width: 62px; border-radius: 14px; }
.vent__body { padding: 1.5rem 1.7rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.vent__body :is(h2,h3) { font-family: var(--fd); font-size: var(--step-1); }
.vent__kind {
  font-family: var(--fd); font-size: .68rem; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase; color: var(--accent);
}
.vent__body p { color: var(--ink-2); margin-top: .7rem; flex: 1; }
.vent__foot { display: flex; align-items: center; gap: .55rem; margin-top: 1.4rem; font-family: var(--fd); font-size: var(--step--1); font-weight: 600; color: var(--ink); }
.vent__foot svg { width: 15px; height: 15px; transition: transform .2s; }
.vent:hover .vent__foot svg { transform: translateX(4px); }

/* 5.5b venture detail hero */
.vhero {
  --accent: var(--blue);
  position: relative; overflow: hidden;
  background:
    radial-gradient(88% 120% at 8% 0%, color-mix(in srgb, var(--accent) 24%, transparent) 0%, transparent 58%),
    var(--inverse);
  color: var(--on-inverse);
  padding-block: clamp(2.4rem, 1.6rem + 3vw, 4rem) clamp(2.8rem, 1.8rem + 4vw, 5rem);
}
.vhero .crumb, .vhero .crumb a { color: var(--on-inverse-3); }
.vhero .crumb a:hover { color: var(--on-inverse); }
.vhero__brand { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.vhero__logo { max-height: 52px; max-width: min(260px, 70vw); width: auto; object-fit: contain; }
.vhero__logo--sq { max-height: 66px; max-width: 66px; border-radius: 15px; }
.vhero h1 { color: #fff; }
.vhero .lead { color: var(--on-inverse-2); margin-top: 1.3rem; max-width: 56ch; }
.vhero .row { margin-top: 2.1rem; }
.vhero .btn--ghost { --btn-fg: #fff; --btn-bd: rgba(255,255,255,.28); }
.vhero .btn--ghost:hover { --btn-bd: #fff; }
.vhero .btn--accent { --btn-bg: var(--accent); --btn-bd: var(--accent); --btn-fg: #0B0B12; }

/* accent-tinted feature icon inside a venture page */
.accent-feat .feat__ico {
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  border-color: color-mix(in srgb, var(--accent) 34%, transparent);
  color: var(--accent);
}

/* status pill */
.pill {
  display: inline-flex; align-items: center; gap: .42rem;
  font-family: var(--fd); font-size: .68rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .32rem .68rem; border-radius: 100px;
  border: 1px solid var(--line-inv-2); color: var(--on-inverse-2);
  background: rgba(255,255,255,.05);
  white-space: nowrap;
}
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.pill--live  { color: #4ADE80; border-color: rgba(74,222,128,.38); background: rgba(74,222,128,.10); }
.pill--build { color: #FBBF24; border-color: rgba(251,191,36,.36); background: rgba(251,191,36,.10); }
.pill--soon  { color: var(--on-inverse-2); }

/* pill on light surfaces */
.pill--onlight { border-color: var(--line-2); color: var(--ink-3); background: transparent; }

/* 5.6 feature list */
.feat { display: flex; gap: .95rem; align-items: flex-start; }
.feat__ico {
  flex: none; width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue-ink);
  border: 1px solid var(--blue-line);
}
.feat__ico svg { width: 18px; height: 18px; }
.feat :is(h3,h4) { font-family: var(--fd); font-size: var(--step-0); font-weight: 600; }
.feat p { color: var(--ink-2); font-size: var(--step--1); margin-top: .28rem; line-height: 1.6; }

/* 5.7 spec / facts table */
.facts { border-top: 1px solid var(--line); }
.facts div {
  display: grid; grid-template-columns: minmax(150px, .42fr) 1fr; gap: 1rem;
  padding: .95rem 0; border-bottom: 1px solid var(--line);
}
.facts dt { font-size: var(--step--1); color: var(--ink-3); letter-spacing: .01em; }
.facts dd { font-weight: 500; word-break: break-word; }
@media (max-width: 520px) { .facts div { grid-template-columns: 1fr; gap: .2rem; } }

/* 5.8 numbered steps */
.steps { counter-reset: s; }
.steps > li {
  counter-increment: s; position: relative;
  padding: 1.5rem 0 1.5rem 3.6rem; border-bottom: 1px solid var(--line);
}
.steps > li:last-child { border-bottom: 0; }
.steps > li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute; left: 0; top: 1.55rem;
  font-family: var(--fd); font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  color: var(--blue-ink);
  width: 2.4rem;
}
.steps :is(h2,h3) { font-family: var(--fd); font-size: var(--step-1); }
.steps p { color: var(--ink-2); margin-top: .45rem; }

/* 5.9 partner strip */
.partners { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(1.5rem, 1rem + 2.5vw, 3.4rem); }
.partners a { opacity: .55; transition: opacity .2s, transform .2s; filter: grayscale(1); }
.partners a:hover { opacity: 1; transform: translateY(-2px); filter: none; }
.partners img { height: 30px; width: auto; }

/* 5.10 CTA band */
.cta-band {
  position: relative; overflow: hidden;
  background: var(--inverse); color: var(--on-inverse);
  border-radius: var(--r-l);
  padding: clamp(2.2rem, 1.4rem + 3.4vw, 4.4rem) clamp(1.4rem, .8rem + 3vw, 3.6rem);
  text-align: center;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(75% 130% at 50% -10%, color-mix(in srgb, var(--blue) 34%, transparent), transparent 62%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band .d3 { color: #fff; }
.cta-band p { color: var(--on-inverse-2); margin: 1rem auto 0; max-width: 52ch; }
.cta-band .row { justify-content: center; margin-top: 2rem; }

/* 5.11 footer */
.site-foot { background: var(--surface); border-top: 1px solid var(--line); padding-block: clamp(2.8rem, 2rem + 2.6vw, 4.4rem) 2rem; }
.foot-grid {
  display: grid; gap: clamp(1.8rem, 1rem + 3vw, 3.4rem);
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
}
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid img.foot-logo { height: 28px; width: auto; }
.foot :is(h2,h4) {
  font-family: var(--fd); font-size: .72rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 1rem;
}
.foot ul { display: grid; gap: .6rem; }
.foot a { color: var(--ink-2); font-size: var(--step--1); transition: color .16s; }
.foot a:hover { color: var(--ink); }
.foot-base {
  margin-top: clamp(2.2rem, 1.6rem + 2vw, 3.4rem); padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; justify-content: space-between;
}
.foot-base p { font-size: var(--step--1); color: var(--ink-3); }
.socials { display: flex; gap: .5rem; }
.socials a {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 9px; color: var(--ink-3);
  transition: color .16s, border-color .16s, transform .16s;
}
.socials a:hover { color: var(--ink); border-color: var(--line-2); transform: translateY(-2px); }
.socials svg { width: 15px; height: 15px; }

/* 5.12 page header (inner pages) */
.page-head { padding-block: clamp(2.6rem, 1.8rem + 3.4vw, 4.8rem) clamp(1.8rem, 1.2rem + 2vw, 3rem); }
.crumb { display: flex; gap: .5rem; align-items: center; font-size: var(--step--1); color: var(--ink-3); margin-bottom: 1.1rem; }
.crumb a:hover { color: var(--ink); }
.crumb svg { width: 13px; height: 13px; opacity: .5; }

/* 5.13 prose (legal pages) */
.prose { max-width: 72ch; }
.prose h2 { font-family: var(--fd); font-size: var(--step-2); margin-top: 2.8rem; }
.prose h3 { font-family: var(--fd); font-size: var(--step-1); margin-top: 2rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose p { margin-top: 1rem; }
.prose ul { margin-top: 1rem; display: grid; gap: .6rem; }
.prose ul li { position: relative; padding-left: 1.4rem; }
.prose ul li::before {
  content: ""; position: absolute; left: .25rem; top: .7em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--blue); opacity: .7;
}
.prose a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--blue-line); }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; margin-top: 1.4rem; font-size: var(--step--1); }
.prose th, .prose td { text-align: left; padding: .7rem .9rem; border: 1px solid var(--line); }
.prose th { background: var(--surface); font-weight: 600; color: var(--ink); }

.note {
  border-left: 2px solid var(--blue); background: var(--surface);
  padding: 1.1rem 1.3rem; border-radius: 0 var(--r-s) var(--r-s) 0; margin-top: 1.6rem;
}
.note p { margin-top: 0; }

/* scrollable wide content */
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }


/* hard line breaks in display headings — dropped on narrow screens */
@media (max-width: 700px) { br.brk { display: none; } }


/* 6 ── MOTION ============================================================== */

.js [data-reveal] {
  opacity: 0; transform: translateY(16px);
  transition: opacity .62s cubic-bezier(.2,.7,.3,1), transform .62s cubic-bezier(.2,.7,.3,1);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* print */
@media print {
  .site-head, .site-foot, .hexfield, .cta-band { display: none !important; }
  body { background: #fff; color: #000; }
}
