/* ==========================================================================
   Foresight Consulting — Design System
   Structure follows the Aeline reference: inset rounded panels, centered
   section heads with a square-bullet eyebrow, pill buttons, bento and card
   grids. Palette sampled from the brand mark.
     ember  #FC4824 / #E8431C     deep ember #9C1800
     wordmark red #B4240C
     navy   #00183C / #0C3C60     teal #0C6C90
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */

:root {
  /* Brand.
     --ember is the decorative flame (badges, rules, gradients) — never behind
     or as text, because white-on-#E8431C is only 4.0:1.
     --ember-text is the same hue at the wordmark's value: clears 4.5:1 on every
     paper surface, and flips to --ember-bright inside dark panels.
     --ember-fill is that value but never overridden, so a pill button reads the
     same on light and dark. */
  --ember:        #E8431C;
  --ember-text:   #C42D0C;
  --ember-fill:   #C42D0C;
  --ember-bright: #FC4824;
  --ember-deep:   #9C1800;
  --brick:        #B4240C;
  --navy:         #00183C;
  --navy-soft:    #0C3C60;
  --teal:         #0C6C90;
  --teal-light:   #6FB6D6;

  /* Surfaces */
  --paper:        #F6F3EF;
  --card:         #FFFFFF;
  --card-2:       #EFEAE3;
  --ink:          #0A1B2E;
  --ink-raise:    #12293F;
  --ink-2:        #26364A;
  --muted:        #556577;
  --muted-2:      #5C6B7D;   /* 4.55:1 on the lightest card, 5.45:1 on white */

  /* On dark */
  --on-dark:      #EEF2F6;
  --on-dark-2:    #C3CEDA;
  --on-dark-3:    #93A3B5;

  /* Lines */
  --line:         rgba(10, 27, 46, .12);
  --line-soft:    rgba(10, 27, 46, .07);
  --line-strong:  rgba(10, 27, 46, .26);
  --line-dark:    rgba(255, 255, 255, .13);

  /* Type — two families.
     --sans  Headings, UI and every figure. "Google Sans" is listed first so a
             self-hosted licensed copy is picked up with no other change; it is
             Google-proprietary and not served by Google Fonts, so DM Sans (SIL
             OFL, closest geometric match) is what actually renders by default.
     --body  Lato, for all running text.
     --num   Alias of --sans, used wherever figures must align in columns; those
             rules also set font-variant-numeric: tabular-nums. */
  --sans: "Google Sans", "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --body: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --num:  var(--sans);
  --mono: var(--sans);   /* legacy alias — the mono face has been retired */

  --t-display: clamp(2.5rem, 5.6vw, 4.75rem);
  --t-h1:      clamp(2.25rem, 4.6vw, 4rem);
  --t-h2:      clamp(1.875rem, 3.4vw, 3rem);
  --t-h3:      clamp(1.25rem, 1.9vw, 1.625rem);
  --t-h4:      clamp(1.0625rem, 1.4vw, 1.25rem);
  --t-lead:    clamp(1rem, 1.35vw, 1.1875rem);
  --t-body:    1.0625rem;
  --t-small:   .875rem;
  --t-micro:   .75rem;

  /* Space */
  --shell:     clamp(.5rem, 1vw, .875rem);   /* outer gutter around inset panels */
  --gutter:    clamp(1.25rem, 4vw, 3rem);
  --section:   clamp(4rem, 7.5vw, 7.5rem);
  --section-sm: clamp(3rem, 5vw, 4.5rem);
  --maxw:      1240px;

  /* Radii — the Aeline signature */
  --r-panel:   clamp(18px, 2.2vw, 32px);
  --r-card:    clamp(14px, 1.4vw, 20px);
  --r-chip:    12px;
  --r-pill:    999px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-card: 0 1px 2px rgba(10, 27, 46, .04), 0 8px 24px -12px rgba(10, 27, 46, .16);
  --shadow-float: 0 18px 44px -18px rgba(10, 27, 46, .38);
}

/* ---------- 2. Reset ----------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t-body);
  line-height: 1.6;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; height: auto; }
h1, h2, h3, h4, h5, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--ember-fill); color: #fff; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: .75rem 1.25rem; border-radius: var(--r-pill);
  font: 600 var(--t-small)/1 var(--sans);
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- 3. Layout primitives ---------------------------------------- */

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: var(--section); position: relative; }
.section--sm { padding-block: var(--section-sm); }
.section--flush-top { padding-top: 0; }

/* Inset rounded panel — the Aeline hero/CTA/footer device */
.panel {
  margin-inline: var(--shell);
  border-radius: var(--r-panel);
  overflow: hidden;
  position: relative;
}
.panel--ink {
  background: var(--ink);
  color: var(--on-dark);
  --line: var(--line-dark);
  --ink-2: var(--on-dark-2);
  --muted: var(--on-dark-3);
  --ember-text: var(--ember-bright);
  --teal: var(--teal-light);
  --card: var(--ink-raise);
  --card-2: #17324B;
}
.panel--ink h1, .panel--ink h2, .panel--ink h3, .panel--ink h4 { color: #fff; }

.on-ink {
  color: var(--on-dark);
  --line: var(--line-dark);
  --ink-2: var(--on-dark-2);
  --muted: var(--on-dark-3);
  --ember-text: var(--ember-bright);
  --teal: var(--teal-light);
}

/* ---------- 4. Type ------------------------------------------------------ */

.display, h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.05;
  text-wrap: balance;
}
.display { font-size: var(--t-display); }
h1, .h1 { font-size: var(--t-h1); }
h2, .h2 { font-size: var(--t-h2); line-height: 1.08; }
h3, .h3 { font-size: var(--t-h3); line-height: 1.2; letter-spacing: -.022em; }
h4, .h4 { font-size: var(--t-h4); line-height: 1.3; letter-spacing: -.016em; font-weight: 600; }

.lead {
  font-size: var(--t-lead);
  line-height: 1.55;
  color: var(--ink-2);
  letter-spacing: -.008em;
  text-wrap: pretty;
}
.prose { color: var(--ink-2); text-wrap: pretty; max-width: 64ch; }
.prose p + p { margin-top: 1.05em; }

.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.accent { color: var(--ember-text); }
.note { font-size: var(--t-small); color: var(--muted); line-height: 1.55; }

/* ---------- 5. Section head (centered — the Aeline pattern) -------------- */

.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);   /* definite track: a nowrap CTA must
                                              not stretch the column past the
                                              container and get clipped */
  justify-items: center;
  text-align: center;
  gap: 1.15rem;
  max-width: 62ch;
  margin-inline: auto;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}
.sec-head > * { max-width: 100%; }
.sec-head .lead { max-width: 56ch; }
.sec-head .actions { margin-top: .5rem; }

/* Left-aligned variant, used where a page needs an asymmetric head */
.sec-head--left {
  justify-items: start;
  text-align: left;
  margin-inline: 0;
  max-width: 46ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--mono);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--ember);
  flex: none;
  border-radius: 1px;
}

/* ---------- 6. Buttons & links ------------------------------------------ */

.btn {
  font-family: var(--sans);
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .9rem 1.6rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .02em;
  border: 1px solid var(--btn-bg);
  border-radius: var(--r-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: background .35s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease), transform .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn .arw {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0, 0, 0, .2);
  font-size: .7rem; line-height: 1;
  transition: transform .35s var(--ease);
}
.btn:hover .arw { transform: translateX(3px); }

.btn--primary { --btn-bg: var(--ember-fill); --btn-fg: #fff; }
.btn--primary:hover { --btn-bg: var(--ember-deep); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line-strong); }
.btn--ghost .arw { background: rgba(10, 27, 46, .1); }
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: #fff; border-color: var(--ink); }
.btn--ghost:hover .arw { background: rgba(255, 255, 255, .18); }

.panel--ink .btn--ghost, .on-ink .btn--ghost { --btn-fg: #fff; border-color: rgba(255,255,255,.34); }
.panel--ink .btn--ghost .arw, .on-ink .btn--ghost .arw { background: rgba(255,255,255,.16); }
.panel--ink .btn--ghost:hover, .on-ink .btn--ghost:hover { --btn-bg: #fff; --btn-fg: var(--ink); border-color: #fff; }
.panel--ink .btn--ghost:hover .arw, .on-ink .btn--ghost:hover .arw { background: rgba(10,27,46,.1); }

.btn--sm { padding: .65rem 1.15rem; font-size: .8125rem; }
.btn--sm .arw { width: 17px; height: 17px; font-size: .625rem; }

.actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
@media (max-width: 430px) {
  .btn { white-space: normal; text-align: center; }
  .actions .btn { width: 100%; justify-content: center; }
}
.actions--center { justify-content: center; }

.tlink {
  display: inline-flex;
  align-items: center;
  padding-block: .15rem;      /* >=24px touch target for inline links */
  gap: .45rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .875rem;
  color: var(--ember-text);
  transition: gap .3s var(--ease);
}
.tlink:hover { gap: .75rem; }

/* ---------- 7. Header ---------------------------------------------------- */

.site-header {
  position: fixed;
  inset: var(--shell) var(--shell) auto;
  z-index: 100;
  border-radius: var(--r-pill);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s var(--ease);
}
.site-header.is-stuck {
  background: rgba(246, 243, 239, .8);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -22px rgba(10, 27, 46, .5);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
  padding-inline: clamp(.75rem, 2vw, 1.5rem);
  max-width: var(--maxw);
  margin-inline: auto;
}
@media (max-width: 860px) { .nav { height: 64px; } }

/* Brand lockup — supplied artwork, composed horizontally for the navbar.
   Two variants: full colour for light surfaces, reversed for the ink hero and
   the footer panel, where the navy "CONSULTING" would otherwise disappear. */
.brand { display: inline-flex; align-items: center; }
.brand-logo { width: auto; height: 34px; }
@media (max-width: 860px) { .brand-logo { height: 29px; } }
@media (max-width: 380px) { .brand-logo { height: 26px; } }

.brand-logo--ondark { display: none; }

.brand--footer img { width: auto; height: 40px; }
@media (max-width: 860px) { .brand--footer img { height: 34px; } }

.nav-links { display: flex; align-items: center; gap: clamp(.75rem, 1.8vw, 1.75rem); }
.nav-links a {
  font-family: var(--sans);
  font-size: .875rem; font-weight: 500; color: var(--ink-2);
  padding: .5rem .85rem; border-radius: var(--r-pill);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.nav-links a:hover { background: rgba(10, 27, 46, .06); color: var(--ink); }
.nav-links a[aria-current="page"] { background: rgba(10, 27, 46, .08); color: var(--ink); font-weight: 600; }

/* Over a dark hero panel the header sits on navy, so its chrome inverts until
   the glass background kicks in on scroll (and reverts while the drawer is open,
   which is a light surface). */
body.hero-dark:not(.nav-open) .site-header:not(.is-stuck) .brand-logo--onlight { display: none; }
body.hero-dark:not(.nav-open) .site-header:not(.is-stuck) .brand-logo--ondark { display: block; }
body.hero-dark:not(.nav-open) .site-header:not(.is-stuck) .nav-links a { color: rgba(255, 255, 255, .84); }
body.hero-dark:not(.nav-open) .site-header:not(.is-stuck) .nav-links a:hover,
body.hero-dark:not(.nav-open) .site-header:not(.is-stuck) .nav-links a[aria-current="page"] {
  background: rgba(255, 255, 255, .14); color: #fff;
}
body.hero-dark:not(.nav-open) .site-header:not(.is-stuck) .nav-toggle span,
body.hero-dark:not(.nav-open) .site-header:not(.is-stuck) .nav-toggle span::before,
body.hero-dark:not(.nav-open) .site-header:not(.is-stuck) .nav-toggle span::after { background: #fff; }

.nav-right { display: flex; align-items: center; gap: .75rem; }
@media (max-width: 1040px) { .nav-links, .nav-right .btn { display: none; } }

.nav-toggle {
  display: none; width: 42px; height: 42px;
  background: none; border: 0; cursor: pointer;
  align-items: center; justify-content: center;
}
@media (max-width: 1040px) { .nav-toggle { display: inline-flex; } }
.nav-toggle span { display: block; position: relative; width: 20px; height: 1.5px; background: var(--ink); transition: background .2s var(--ease); }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 1.5px; background: var(--ink);
  transition: transform .4s var(--ease), top .3s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

.nav-drawer {
  position: fixed;
  inset: var(--shell);
  z-index: 99;
  background: var(--paper);
  border-radius: var(--r-panel);
  padding: 92px var(--gutter) 2rem;
  display: flex; flex-direction: column; justify-content: space-between;
  transform: translateY(calc(-100% - var(--shell)));
  transition: transform .55s var(--ease);
  overflow-y: auto;
}
body.nav-open .nav-drawer { transform: translateY(0); }
.nav-drawer ul { display: flex; flex-direction: column; }
.nav-drawer li { border-bottom: 1px solid var(--line); }
.nav-drawer li a {
  display: flex; align-items: baseline; gap: 1rem; padding: 1rem 0;
  font-size: clamp(1.5rem, 7vw, 2.25rem); font-weight: 500; letter-spacing: -.03em;
}
.nav-drawer .ordinal { font-size: .6875rem; }
.nav-drawer .btn { width: 100%; justify-content: center; margin-top: 1.5rem; }
body.nav-open { overflow: hidden; }
@media (min-width: 1041px) { .nav-drawer { display: none; } }

.ordinal {
  font-family: var(--mono); font-size: var(--t-micro);
  letter-spacing: .1em; color: var(--ember-text); font-weight: 500;
}

/* ---------- 8. Hero panel ------------------------------------------------ */

.hero {
  padding: clamp(6.5rem, 11vw, 9.5rem) var(--gutter) 0;
  text-align: center;
  background-color: #0A1B2E;   /* solid base; gradients layer on top */
  background-image:
    radial-gradient(120% 90% at 50% -10%, rgba(232, 67, 28, .34), rgba(232, 67, 28, 0) 58%),
    radial-gradient(90% 80% at 88% 110%, rgba(12, 108, 144, .38), rgba(12, 108, 144, 0) 60%),
    linear-gradient(168deg, #0D2540 0%, #0A1B2E 52%, #071426 100%);
}
.hero-inner {
  max-width: 60ch; margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);   /* definite track, not max-content */
  justify-items: center;
  gap: 1.25rem;
}
.hero-inner > * { max-width: 100%; }
.hero .eyebrow { color: rgba(255, 255, 255, .68); }
.hero .eyebrow::before { background: var(--ember-bright); }
.hero h1 { color: #fff; }
.hero .lead { color: var(--on-dark-2); max-width: 52ch; }
.hero .actions { margin-top: .75rem; }

.hero-trust {
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.hero-trust p { font-size: var(--t-small); color: var(--on-dark-3); }
.hero-trust .platforms {
  display: flex; gap: .45rem; flex-wrap: wrap; justify-content: center;
}
.hero-trust .platforms li {
  font-family: var(--mono); font-size: var(--t-micro); letter-spacing: .1em;
  text-transform: uppercase; color: var(--on-dark-2);
  border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--r-pill);
  padding: .35rem .8rem;
}

/* Fanned card arc */
.hero-fan {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-top: clamp(2rem, 4vw, 3.25rem);
  padding-bottom: clamp(1rem, 2vw, 2rem);
  min-height: 150px;
}
.fan-card {
  flex: none;
  width: clamp(124px, 14.5vw, 208px);
  margin-inline: clamp(-1.75rem, -1.6vw, -.75rem);
  background: #fff;
  border-radius: var(--r-card);
  box-shadow: var(--shadow-float);
  padding: clamp(.6rem, .9vw, .9rem);
  transform-origin: 50% 100%;
  transition: transform .5s var(--ease);
}
.fan-card:nth-child(1) { transform: rotate(-13deg) translateY(30px); z-index: 1; }
.fan-card:nth-child(2) { transform: rotate(-6.5deg) translateY(10px); z-index: 2; }
.fan-card:nth-child(3) { transform: rotate(0deg) translateY(-4px); z-index: 3; }
.fan-card:nth-child(4) { transform: rotate(6.5deg) translateY(10px); z-index: 2; }
.fan-card:nth-child(5) { transform: rotate(13deg) translateY(30px); z-index: 1; }
.hero-fan:hover .fan-card:nth-child(1) { transform: rotate(-15deg) translateY(22px); }
.hero-fan:hover .fan-card:nth-child(5) { transform: rotate(15deg) translateY(22px); }
.hero-fan:hover .fan-card:nth-child(3) { transform: translateY(-12px); }
@media (max-width: 720px) {
  .fan-card:nth-child(1), .fan-card:nth-child(5) { display: none; }
  .fan-card { width: clamp(120px, 30vw, 170px); }
}

.fan-label {
  font-family: var(--mono); font-size: .5rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted-2); margin-bottom: .3rem;
}
.fan-fig {
  font-family: var(--mono); font-weight: 500; letter-spacing: -.03em;
  font-size: clamp(.9rem, 1.5vw, 1.25rem); color: var(--ink);
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.fan-card svg { margin-top: .45rem; width: 100%; height: auto; }

/* Optional hero photograph: drop a file in and uncomment. It sits under the
   gradients, which stay as the legibility scrim over it.
.hero { background-image:
    radial-gradient(120% 90% at 50% -10%, rgba(232,67,28,.34), rgba(232,67,28,0) 58%),
    radial-gradient(90% 80% at 88% 110%, rgba(12,108,144,.38), rgba(12,108,144,0) 60%),
    linear-gradient(168deg, rgba(13,37,64,.92), rgba(7,20,38,.96)),
    url("../img/hero.jpg");
  background-size: cover; background-position: center; }
*/

/* Inner-page hero */
.page-hero {
  padding: clamp(6.5rem, 11vw, 9rem) var(--gutter) clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
.page-hero .hero-inner { gap: 1.15rem; }

/* ---------- 9. Marquee --------------------------------------------------- */

.marquee {
  overflow: hidden;
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; flex: none; }
.marquee-group span {
  display: inline-flex; align-items: center; gap: 1.4rem;
  font-family: var(--mono); font-size: var(--t-micro); letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted);
  padding-inline: 1.4rem; white-space: nowrap;
}
.marquee-group span::after { content: ""; width: 5px; height: 5px; background: var(--ember); transform: rotate(45deg); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- 10. Cards ---------------------------------------------------- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(1.25rem, 2.2vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: .7rem;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
a.card:hover, .card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--line-strong); }

.card--ink {
  background: var(--ink); border-color: transparent;
  color: var(--on-dark);
  --ink-2: var(--on-dark-2); --muted: var(--on-dark-3);
  --ember-text: var(--ember-bright); --teal: var(--teal-light);
}
.card--ink h2, .card--ink h3, .card--ink h4 { color: #fff; }
.card--tint { background: var(--card-2); border-color: transparent; }
.card--ember {
  background-color: var(--ember-fill);
  background-image: linear-gradient(150deg, var(--ember-fill), var(--ember-deep));
  border-color: transparent; color: #fff;
  --ink-2: rgba(255,255,255,.86); --muted: rgba(255,255,255,.76);
}
.card--ember h2, .card--ember h3, .card--ember h4 { color: #fff; }

.card p { color: var(--ink-2); font-size: .9375rem; }
.card .tlink { margin-top: auto; padding-top: .85rem; align-self: flex-start; }

/* Icon / number badge, top-left of a card — Aeline's lime chip */
.badge {
  width: 38px; height: 38px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-chip);
  background: var(--ember-fill); color: #fff;
  font-family: var(--mono); font-size: .8125rem; font-weight: 500;
  letter-spacing: -.02em;
}
.badge--ghost { background: rgba(232, 67, 28, .12); color: var(--ember-text); }
.card--ink .badge--ghost, .card--ember .badge--ghost { background: rgba(255,255,255,.16); color: #fff; }

/* Grids */
.grid { display: grid; gap: clamp(.75rem, 1.2vw, 1rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 660px)  { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* Five items: a five-across pipeline at desktop, then step down through counts
   that still divide evenly. Five never sits cleanly in a 3- or 2-column grid,
   so each step re-spans the tail instead of leaving a half-empty last row. */
.grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1180px) {   /* below this, five across drops under ~200px wide */
  .grid--5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .grid--5 > * { grid-column: span 2; }                                   /* 3 across */
  .grid--5 > *:nth-child(4), .grid--5 > *:nth-child(5) { grid-column: span 3; }  /* 2 across */
}
@media (max-width: 820px) {
  .grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--5 > *, .grid--5 > *:nth-child(4) { grid-column: span 1; }
  .grid--5 > *:nth-child(5) { grid-column: span 2; }
}
@media (max-width: 560px) {
  .grid--5 { grid-template-columns: 1fr; }
  .grid--5 > *, .grid--5 > *:nth-child(4), .grid--5 > *:nth-child(5) { grid-column: span 1; }
}

/* A lone last item in a two-column grid stretches rather than leaving a gap.
   The :nth-child(odd) guard means even-numbered sets are untouched. */
.facts > *:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 1000px) {
  .grid--3 > *:last-child:nth-child(odd),
  .timeline > *:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ---------- 11. Bento (outcomes) ----------------------------------------- */

.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.75rem, 1.2vw, 1rem);
}
@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .bento { grid-template-columns: 1fr; } }
.bento .card { justify-content: space-between; min-height: clamp(180px, 22vw, 230px); }

.stat-fig {
  font-family: var(--mono);
  font-size: clamp(1.375rem, 2.5vw, 2rem);
  font-weight: 500; letter-spacing: -.045em; line-height: 1.05;
  display: flex; align-items: baseline; flex-wrap: wrap; gap: .35rem;
  font-variant-numeric: tabular-nums;
}
.stat-fig .from { color: var(--muted); font-size: .72em; }
.stat-fig .arrow { color: var(--ember-text); font-size: .72em; }
.card--ember .stat-fig .from, .card--ember .stat-fig .arrow { color: rgba(255,255,255,.88); }
.stat-name { font-family: var(--sans); font-size: .9375rem; font-weight: 600; }
.stat-meta {
  font-family: var(--mono); font-size: var(--t-micro); letter-spacing: .05em;
  color: var(--muted); line-height: 1.5;
}

/* ---------- 12. Feature card with visual panel (Aeline "expertise") ------ */

.feature { padding: 0; overflow: hidden; }
.feature-visual {
  background-color: var(--card-2);
  background-image: linear-gradient(160deg, var(--card-2), #E4DDD3);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex; align-items: center; justify-content: center;
  min-height: clamp(180px, 20vw, 240px);
}
.card--ink .feature-visual { background-color: #17324B; background-image: linear-gradient(160deg, #17324B, #0D2338); }
.feature-body {
  padding: clamp(1.25rem, 2.2vw, 1.75rem);
  display: flex; flex-direction: column; gap: .55rem; text-align: center; align-items: center;
}
.feature-body p { color: var(--ink-2); font-size: .9375rem; max-width: 46ch; }

/* ---------- 12b. Image slots ---------------------------------------------
   Drop a real image in by putting an <img> inside the .media box:
     <div class="media media--16x10"><img src="assets/img/foo.jpg" alt="..."></div>
   The placeholder chrome removes itself as soon as an <img> is present.
   -------------------------------------------------------------------------- */

.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--card-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.media--16x10 { aspect-ratio: 16 / 10; }
.media--4x5   { aspect-ratio: 4 / 5; }
.media--3x2   { aspect-ratio: 3 / 2; }

.media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Placeholder chrome — only while no <img> has been dropped in */
.media:not(:has(img)) {
  border: 1px dashed var(--line-strong);
  background-image:
    repeating-linear-gradient(45deg,
      rgba(10, 27, 46, .04) 0 10px,
      rgba(10, 27, 46, 0) 10px 20px);
}
.media:not(:has(img))::after {
  content: attr(data-slot);
  white-space: pre-line;          /* data-slot uses &#10; to break its lines */
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  padding: .75rem 1rem;
  line-height: 1.7;
}
/* Older engines without :has() simply show a clean tinted box. */

.card--ink .media, .panel--ink .media { background: #17324B; }
.card--ink .media:not(:has(img)), .panel--ink .media:not(:has(img)) {
  border-color: rgba(255, 255, 255, .22);
  background-image:
    repeating-linear-gradient(45deg,
      rgba(255, 255, 255, .05) 0 10px,
      rgba(255, 255, 255, 0) 10px 20px);
}

/* Feature card whose visual slot is an image rather than a chart */
.feature .media { border-radius: 0; }

/* Client logo plate. The four marks range from 1:1 to 5.2:1, so they are
   contained rather than cropped, on the card tint, with generous padding —
   that is what makes four unrelated logos read as one set. */
.media--logo {
  background: var(--card-2);
  padding: clamp(1.1rem, 2.6vw, 1.75rem);
  border-bottom: 1px solid var(--line);
  /* Its own band height rather than an aspect ratio: when the grid collapses to
     one column a 16:10 plate becomes card-width tall and the logo dominates. */
  aspect-ratio: auto;
  height: clamp(120px, 14vw, 168px);
}
.media--logo img {
  width: 100%; height: 100%;
  max-width: 250px; max-height: 108px;   /* keeps all four at one optical size */
  margin: auto;
  object-fit: contain;
  object-position: center;
}

/* Logo beside the case-study name */
.case-brand {
  width: clamp(96px, 13vw, 148px);
  aspect-ratio: 16 / 10;
  background: var(--card-2);
  border-radius: var(--r-chip);
  padding: .7rem .85rem;
  justify-self: end;
  flex: none;
}
.case-brand img { width: 100%; height: 100%; object-fit: contain; }

.case-head--branded {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: clamp(1rem, 3vw, 2rem);
}
.case-head--branded > .case-brand { grid-row: 1 / span 3; grid-column: 2; }
@media (max-width: 620px) {
  .case-head--branded { grid-template-columns: 1fr; }
  .case-head--branded > .case-brand { grid-row: auto; grid-column: 1; justify-self: start; }
}


/* ---------- 13. Timeline (approach) -------------------------------------- */

.timeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(.75rem, 1.2vw, 1rem); }
@media (max-width: 1000px) { .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .timeline { grid-template-columns: 1fr; } }

.tl-step { display: flex; flex-direction: column; gap: .7rem; }
.tl-rail { display: flex; align-items: center; gap: .5rem; }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ember); flex: none; }
.tl-line { height: 1px; background: var(--line-strong); flex: 1; }
.tl-step h3 { margin-top: .2rem; }
.tl-step p { font-size: .9375rem; color: var(--ink-2); }

/* ---------- 14. Ledger rows (capabilities / framework detail) ------------ */

.rows { display: grid; gap: clamp(.75rem, 1.2vw, 1rem); }
.row-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(1rem, 2.4vw, 2rem);
  align-items: start;
}
@media (max-width: 900px) { .row-card { grid-template-columns: auto minmax(0, 1fr); } }
@media (max-width: 900px) { .row-card .row-body { grid-column: 2; } }
.row-body { color: var(--ink-2); font-size: .9375rem; }
.row-body .for {
  display: block; font-family: var(--mono); font-size: var(--t-micro);
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem;
}
.row-body .evidence {
  display: inline-flex; align-items: center; gap: .35rem; margin-top: .8rem;
  padding-block: .3rem;
  font-family: var(--mono); font-size: var(--t-micro); letter-spacing: .04em; color: var(--teal);
}

/* ---------- 15. Case studies --------------------------------------------- */

.case-study { padding: 0; overflow: hidden; }
.case-head {
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  border-bottom: 1px solid var(--line);
  display: grid; gap: .6rem;
}
.case-meta { font-family: var(--mono); font-size: var(--t-micro); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.case-fig {
  font-family: var(--mono); font-size: clamp(1.125rem, 1.9vw, 1.5rem);
  letter-spacing: -.035em; line-height: 1.15; font-variant-numeric: tabular-nums;
}
.case-fig .from { color: var(--muted); }
.case-fig .arrow { color: var(--ember-text); }

/* Metrics band: the scorecard runs full width as a grid of cells rather than a
   tall list stacked in one column. That is what balances the case card — the
   two prose beats below are near-identical in length, so they sit level. */
.case-metrics {
  padding: clamp(1.25rem, 2.4vw, 1.75rem) clamp(1.5rem, 2.6vw, 2.25rem);
  background: var(--card-2);
  border-bottom: 1px solid var(--line);
}

.case-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.6vw, 2.25rem);
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  align-items: start;
}
@media (max-width: 760px) { .case-body { grid-template-columns: 1fr; } }

/* Closing quote and evidence line span both columns */
.pull--full { grid-column: 1 / -1; margin-top: clamp(.25rem, 1vw, .75rem); }

.beat + .beat { margin-top: 1.4rem; }
.case-body .beat + .beat { margin-top: 0; }   /* the grid gap sets the rhythm */
.beat :is(h3, h4) { margin-bottom: .4rem; }
.beat p { color: var(--ink-2); font-size: .9375rem; }

.pull {
  border-left: 2px solid var(--ember);
  padding-left: 1.1rem;
  font-size: var(--t-lead); line-height: 1.5; letter-spacing: -.012em;
  margin-top: 1.5rem; text-wrap: pretty;
  max-width: 88ch;
}

.scorecard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.5rem, .9vw, .75rem);
}
@media (max-width: 900px) { .scorecard { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .scorecard { grid-template-columns: 1fr; } }

.score-row {
  display: flex; flex-direction: column; gap: .25rem;
  padding: .75rem .9rem;
  background: var(--card);
  border-radius: var(--r-chip);
}
.score-row dt { font-size: .8125rem; color: var(--muted); line-height: 1.35; }
.score-row dd {
  font-family: var(--num); font-size: 1rem; font-weight: 500;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap;
}
.score-row dd .from { color: var(--muted); }
.score-row dd .arrow { color: var(--ember-text); }
.score-row dd .delta { font-size: .75rem; color: var(--teal); letter-spacing: .03em; }

/* Founder cards — bio on top, contact pinned to the bottom so the two cards'
   contact rows align even though the bios differ in length. */
.founder { gap: .35rem; }
.founder-role {
  font-family: var(--sans);
  font-weight: 600;
  font-size: .9375rem;
  letter-spacing: -.01em;
  color: var(--ember-text);
}
.founder-bio { margin-top: .6rem; }
.founder-contact {
  margin-top: auto;
  padding-top: 1.15rem;
  display: grid;
  gap: .35rem;
}
.founder-contact li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .7rem;
  align-items: center;
}
.founder-contact a {
  font-size: .9375rem;
  color: var(--ink-2);
  overflow-wrap: break-word;
  display: inline-block;
  padding-block: .2rem;
  transition: color .3s var(--ease);
}
.founder-contact a:hover { color: var(--ember-text); }

/* ---------- 16. Facts / chips -------------------------------------------- */

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.75rem, 1.2vw, 1rem); }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }
.fact { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .85rem; align-items: start; }
.fact .tick {
  width: 22px; height: 22px; flex: none; margin-top: .1rem;
  border-radius: 50%; background: rgba(232, 67, 28, .14);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ember-text); font-size: .625rem;
}
.card--ink .fact .tick, .panel--ink .fact .tick {
  background: transparent;                       /* glyph sits on solid ink: 5.04:1 */
  border: 1px solid rgba(255, 255, 255, .16);
  color: var(--ember-bright);
}
.fact p { font-size: .9375rem; color: var(--ink-2); }
.fact p b { color: var(--ink); font-weight: 600; }
.card--ink .fact p b, .panel--ink .fact p b { color: #fff; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.chips li {
  font-family: var(--mono); font-size: var(--t-micro); letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line); border-radius: var(--r-pill); padding: .55rem 1rem;
}

/* ---------- 17. CTA panel ------------------------------------------------ */

.cta-panel {
  padding: clamp(2.75rem, 6vw, 5rem) var(--gutter);
  background-color: #0A1B2E;   /* solid base; gradients layer on top */
  background-image:
    radial-gradient(100% 120% at 12% 0%, rgba(232, 67, 28, .38), rgba(232, 67, 28, 0) 62%),
    radial-gradient(80% 100% at 95% 100%, rgba(12, 108, 144, .34), rgba(12, 108, 144, 0) 60%),
    linear-gradient(150deg, #0D2540, #071426);
}
.cta-inner {
  max-width: var(--maxw); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: 1.35rem; justify-items: start;
}
.cta-inner > * { max-width: 100%; }
.cta-inner h2 { max-width: 20ch; }
.cta-inner .lead { max-width: 46ch; }

/* Optional CTA photograph — same pattern as the hero.
.cta-panel { background-image:
    radial-gradient(100% 120% at 12% 0%, rgba(232,67,28,.38), rgba(232,67,28,0) 62%),
    linear-gradient(150deg, rgba(13,37,64,.92), rgba(7,20,38,.96)),
    url("../img/cta.jpg");
  background-size: cover; background-position: center; }
*/

/* ---------- 18. Form ----------------------------------------------------- */

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.35rem; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field--full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: .45rem; }
.field label {
  font-family: var(--mono); font-size: var(--t-micro); letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.field label .req { color: var(--ember-text); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--card);
  border: 1px solid var(--line-strong); border-radius: var(--r-chip);
  padding: .8rem 1rem; font-size: .9375rem;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
  appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
                    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: right 1rem center, right calc(1rem - 5px) center;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
  padding-right: 2.25rem;
}
.field textarea { resize: vertical; min-height: 7rem; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ember-text);
  box-shadow: 0 0 0 3px rgba(232, 67, 28, .13);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field .err { font-size: var(--t-micro); color: var(--ember-text); min-height: 1em; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--ember-text); }

.form-note { font-size: var(--t-small); color: var(--muted); max-width: 54ch; }
.form-status {
  margin-top: 1.25rem; padding: 1rem 1.25rem;
  border: 1px solid var(--line); border-left: 3px solid var(--ember);
  border-radius: var(--r-chip); background: var(--card);
  font-size: .9375rem; display: none;
}
.form-status.is-visible { display: block; }
/* Failed submission — distinguish from the success state at a glance */
.form-status.is-error { border-left-color: #c0392b; }

.split { display: grid; grid-template-columns: minmax(0, .68fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split-aside { position: sticky; top: 104px; display: grid; gap: 1rem; }
@media (max-width: 900px) { .split-aside { position: static; } }

/* ---------- 19. Footer panel --------------------------------------------- */

.site-footer { padding: 0 0 var(--shell); }
.footer-panel {
  margin-inline: var(--shell);
  border-radius: var(--r-panel);
  background: var(--ink);
  color: var(--on-dark-2);
  --ember-text: var(--ember-bright);   /* deep ember is unreadable on navy */
  padding: clamp(2.25rem, 4vw, 3.5rem) var(--gutter) clamp(1.25rem, 2vw, 1.75rem);
  --line: var(--line-dark);
}
.footer-inner { max-width: var(--maxw); margin-inline: auto; }

/* Five peer columns, not a stacked block beside a cluster.
   The old two-column footer put brand + tagline + contact in one column, so its
   height was the SUM of three blocks (305px) while the link lists opposite were
   a MAX of one (~145px) — that difference was the 160–210px of dead space. As
   peers the row height is the tallest single block, and align-items:start stops
   short columns being stretched into empty boxes. */
.footer-top {
  display: grid;
  grid-template-columns:
    minmax(0, 1.15fr)   /* brand + tagline */
    minmax(0, 1.5fr)    /* contact: holds a 34-character email */
    minmax(0, 1fr)      /* practice */
    minmax(0, 1fr)      /* engage   */
    minmax(0, 1.05fr);  /* legal    */
  align-items: start;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  padding-bottom: clamp(2rem, 3.5vw, 3rem);
  border-bottom: 1px solid var(--line-dark);
}
/* Each step lands on a column count the five items divide into, so no row is
   ever left half-empty. */
@media (max-width: 1180px) {   /* same step the .grid--5 system already uses */
  .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand   { grid-column: 1; }
  .footer-contact { grid-column: 2 / -1; }   /* row 1: brand + contact  */
}                                             /* row 2: the three lists */
@media (max-width: 760px) {
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand, .footer-contact { grid-column: auto; }
  .footer-top > *:last-child { grid-column: 1 / -1; }   /* legal spans the pair */
}
@media (max-width: 520px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-top > *, .footer-top > *:last-child { grid-column: 1; }
}
.footer-brandline { font-size: var(--t-lead); color: #fff; letter-spacing: -.022em; max-width: 24ch; line-height: 1.3; margin-top: 1rem; }

/* Contact & Location — now a peer column, so its heading matches the others
   rather than shouting at 20px white against their 12px muted caps. */
.footer-contact h2 { margin-bottom: 1rem; }
.footer-contact ul { display: grid; gap: 1rem; }
.footer-contact li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .85rem;
  align-items: start;
}
.fc-icon {
  width: 21px; height: 21px;
  color: var(--ember-text);
  flex: none;
  margin-top: .15rem;
}
.footer-contact a {
  font-size: .9375rem;
  color: var(--on-dark-2);
  line-height: 1.55;
  display: inline-block; padding-block: .2rem;   /* >=24px touch target */
  transition: color .3s var(--ease);
  overflow-wrap: break-word;    /* break at the <wbr> before @domain, not mid-token */
}
.footer-contact a:hover { color: var(--ember-bright); }
.fc-address { display: block; }

.footer-top h2 {
  font-family: var(--mono); font-size: var(--t-micro); letter-spacing: .14em;
  text-transform: uppercase; color: var(--on-dark-3); font-weight: 500; margin-bottom: .9rem;
}
.footer-col ul { display: grid; gap: .2rem; }
.footer-col a {
  font-size: .9375rem; transition: color .3s var(--ease);
  display: inline-block; padding-block: .3rem;   /* >=24px touch target */
}
.footer-col a:hover { color: var(--ember-bright); }

.footer-disclaimer {
  padding-block: clamp(1.5rem, 2.5vw, 2rem);
  border-bottom: 1px solid var(--line-dark);
  font-size: var(--t-small); line-height: 1.6; color: var(--on-dark-3); max-width: 74ch;
}
.footer-base {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  padding-top: 1.5rem; font-size: var(--t-small); color: var(--on-dark-3);
}
.footer-base ul { display: flex; flex-wrap: wrap; gap: 1.15rem; }
.footer-base a { display: inline-block; padding-block: .3rem; }
.footer-base a:hover { color: var(--ember-bright); }

/* ---------- 20. Legal ---------------------------------------------------- */

.legal { max-width: 74ch; margin-inline: auto; }
.legal h2 { font-size: var(--t-h3); margin-top: 2.5rem; }
.legal h3 { font-size: var(--t-h4); margin-top: 1.6rem; }
.legal p, .legal li { color: var(--ink-2); font-size: .9375rem; }
.legal p { margin-top: .85rem; }
.legal ul { margin-top: .85rem; display: grid; gap: .45rem; }
.legal ul li { padding-left: 1.15rem; position: relative; }
.legal ul li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 5px; height: 5px; background: var(--ember); transform: rotate(45deg);
}
.review-flag {
  border: 1px solid var(--line); border-left: 3px solid var(--ember);
  border-radius: var(--r-chip); background: var(--card);
  padding: 1rem 1.25rem; font-family: var(--mono); font-size: var(--t-micro);
  letter-spacing: .07em; text-transform: uppercase; color: var(--ember-deep);
}

/* ---------- 21. Motion --------------------------------------------------- */

.js [data-reveal] {
  opacity: 0; transform: translateY(20px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- 22. Utilities ------------------------------------------------ */

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 1.75rem; }
.mt-3 { margin-top: clamp(2rem, 4vw, 3rem); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.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;
}

/* Honeypot — off-screen rather than display:none, which more bots skip */
.hp {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
