/* ==========================================================================
   FAcode — components.css
   Reusable parts only. Every value comes from tokens.css.
   1  Icons            7  Rail (numbered rows)     13  Quote / testimonial
   2  Buttons          8  Matrix (hairline grid)   14  Marks strip
   3  Eyebrow + labels 9  Ledger (numbered blocks) 15  CTA band
   4  Section header  10  Track (process)          16  Footer
   5  Utility + header 11  Stat / metric           17  Forms
   6  Code panel      12  Case-study block         18  Sub-nav, FAQ, misc
   ========================================================================== */


/* ==========================================================================
   1. ICONS — one stroke weight, everywhere
   ========================================================================== */

.icon {
  flex: none;
  width: 20px;
  height: 20px;
  stroke-width: 1.5;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--sm { width: 15px; height: 15px; stroke-width: 1.75; }
.icon--lg { width: 26px; height: 26px; stroke-width: 1.25; }
.icon--solid { fill: currentColor; stroke: none; }

/* Rule-marker used in place of decorative icons */
.rule-mark {
  display: block;
  width: var(--sp-4);
  height: var(--bw-rule);
  background: var(--line-accent);
  border-radius: var(--r-full);
}


/* ==========================================================================
   2. BUTTONS
   ========================================================================== */

.btn {
  --btn-fg: var(--white);
  --btn-bg: var(--navy-800);
  --btn-bd: var(--navy-800);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  min-height: 48px;
  padding: var(--sp-1) var(--sp-4);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-snug);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  color: var(--btn-fg);
  background-color: var(--btn-bg);
  border: var(--bw-hair) solid var(--btn-bd);
  border-radius: var(--r-sm);
  transition: background-color var(--t-base), border-color var(--t-base),
              color var(--t-base), transform var(--t-fast);
}

.btn:hover { color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }

.btn:focus-visible {
  outline: var(--focus-width) solid var(--focus-ring);
  outline-offset: var(--focus-offset);
}

.btn .icon { transition: transform var(--t-base); }
.btn:hover .icon { transform: translateX(3px); }

.btn--sm { min-height: 40px; padding-inline: var(--sp-3); font-size: var(--fs-xs); }
.btn--block { width: 100%; }

/* Primary — navy on light ground */
.btn--primary:hover { --btn-bg: var(--navy-700); --btn-bd: var(--navy-700); }

/* Accent — the AA-safe teal fill, for the single loudest action on a page */
.btn--accent {
  --btn-bg: var(--teal-700);
  --btn-bd: var(--teal-700);
}
.btn--accent:hover { --btn-bg: var(--teal-800); --btn-bd: var(--teal-800); }

/* Ghost on light */
.btn--ghost {
  --btn-fg: var(--text-strong);
  --btn-bg: transparent;
  --btn-bd: var(--line-strong);
}
.btn--ghost:hover { --btn-bd: var(--navy-800); --btn-bg: var(--wash-navy); }

/* On navy: teal pops hardest here */
.on-navy .btn--primary,
.btn--on-navy {
  --btn-fg: var(--navy-900);
  --btn-bg: var(--teal-500);
  --btn-bd: var(--teal-500);
}
.on-navy .btn--primary:hover,
.btn--on-navy:hover { --btn-bg: var(--teal-400); --btn-bd: var(--teal-400); }

.on-navy .btn--ghost,
.btn--ghost-light {
  --btn-fg: var(--white);
  --btn-bg: transparent;
  --btn-bd: var(--line-on-navy-strong);
}
.on-navy .btn--ghost:hover,
.btn--ghost-light:hover {
  --btn-bd: var(--teal-500);
  --btn-bg: var(--wash-teal);
}

/* Text link with a travelling arrow — used instead of a second stacked button */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-snug);
  color: var(--text-accent);
  text-decoration: none;
  padding-block: var(--sp-1);
  border-bottom: var(--bw-hair) solid transparent;
  transition: border-color var(--t-base), color var(--t-base);
}

.link-arrow .icon { width: 16px; height: 16px; transition: transform var(--t-base); }
.link-arrow:hover { border-bottom-color: currentColor; }
.link-arrow:hover .icon { transform: translateX(4px); }


/* ==========================================================================
   3. EYEBROW + LABELS  (mono, the small voice of the system)
   ========================================================================== */

.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin: 0 0 var(--sp-3);
  max-width: none;
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-accent);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: var(--sp-3);
  height: var(--bw-hair);
  background: var(--line-accent);
}

.eyebrow--plain::before { display: none; }

.label {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-label-sm);
  text-transform: uppercase;
  color: var(--text-muted);
}

.tag {
  display: inline-block;
  padding: var(--sp-h) var(--sp-1);
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: var(--ls-label-sm);
  color: var(--text-muted);
  border: var(--bw-hair) solid var(--line);
  border-radius: var(--r-xs);
  background: transparent;
}

.tag--accent { color: var(--text-accent); border-color: var(--line-accent); }

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  list-style: none;
}

/* Ordinal used as ornament — the system's replacement for decorative icons */
.ordinal {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-label-sm);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}


/* ==========================================================================
   4. SECTION HEADER
   ========================================================================== */

.section-head { margin-bottom: var(--sp-8); }

.section-head h2 { margin-bottom: var(--sp-3); max-width: 20ch; }

.section-head .lead {
  max-width: var(--measure);
  margin-bottom: 0;
}

/* Asymmetric variant: heading left, lead in a narrower right column */
@media (min-width: 900px) {
  .section-head--split {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    column-gap: clamp(32px, 5vw, 96px);
    row-gap: var(--sp-5);
    align-items: end;
  }
  .section-head--split .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
  .section-head--split h2 { margin-bottom: 0; max-width: 16ch; }
  .section-head--split .lead { padding-bottom: var(--sp-h); }
}

.lead {
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  color: var(--text-muted);
  max-width: var(--measure);
}

.lead--display {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: var(--fw-regular);
  line-height: 1.42;
  letter-spacing: var(--ls-snug);
  color: var(--text-strong);
}


/* ==========================================================================
   5. UTILITY BAR + STICKY HEADER + MOBILE MENU
   ========================================================================== */

.utility-bar {
  background: var(--navy-900);
  color: var(--text-on-navy-body);
  border-bottom: var(--bw-hair) solid var(--line-on-navy-soft);
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: var(--ls-label-sm);
}

.utility-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: 36px;
  flex-wrap: wrap;
}

.utility-contacts {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.utility-contacts a {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  color: var(--text-on-navy-body);
  text-decoration: none;
  padding-block: var(--sp-1);
  transition: color var(--t-fast);
}

.utility-contacts a:hover { color: var(--teal-400); }
.utility-contacts .icon { width: 13px; height: 13px; color: var(--teal-500); }

.utility-regions {
  margin: 0;
  max-width: none;
  color: var(--text-on-navy-muted);
}

.utility-regions b { color: var(--text-on-navy-body); font-weight: var(--fw-medium); }

@media (max-width: 720px) {
  .utility-regions { display: none; }
  .utility-contacts { gap: var(--sp-2); }
  .utility-contacts a:not(:first-child) span { display: none; }
}


/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--white);
  border-bottom: var(--bw-hair) solid var(--line);
  transition: box-shadow var(--t-base), border-color var(--t-base);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--line-strong);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: var(--header-h);
}

@media (min-width: 960px) {
  .nav { min-height: var(--header-h-lg); }
}

.brand {
  display: block;
  flex: none;
  line-height: 0;
  border-radius: var(--r-xs);
}

.brand img {
  width: auto;
  height: 34px;
}

@media (min-width: 960px) {
  .brand img { height: 44px; }
}

/* Desktop links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-h);
  list-style: none;
}

.nav-links a:not(.btn) {
  position: relative;
  display: block;
  padding: var(--sp-1) var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-snug);
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--r-xs);
  transition: color var(--t-fast);
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: var(--sp-2);
  right: var(--sp-2);
  bottom: -2px;
  height: var(--bw-rule);
  background: var(--line-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base);
}

.nav-links a:not(.btn):hover { color: var(--text-strong); }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }

.nav-links a.is-active {
  color: var(--text-strong);
  font-weight: var(--fw-semibold);
}

.nav-links a.is-active::after { transform: scaleX(1); }

.nav-cta { margin-left: var(--sp-3); }

/* Toggle */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: none;
  border: var(--bw-hair) solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color var(--t-base);
}

.nav-toggle:hover { border-color: var(--line-strong); }

.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--text-strong);
  border-radius: var(--r-full);
  transition: transform var(--t-base), opacity var(--dur-1) var(--ease-out);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
}

/* Mobile panel */
@media (max-width: 959px) {
  .nav-links {
    position: fixed;
    inset: auto 0 0 0;
    top: var(--nav-top, 96px);
    display: block;
    padding: var(--sp-2) var(--gutter) var(--sp-8);
    background: var(--white);
    border-top: var(--bw-hair) solid var(--line);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--t-base), transform var(--t-base), visibility var(--dur-2);
  }

  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-links li { border-bottom: var(--bw-hair) solid var(--line-soft); }

  .nav-links a:not(.btn) {
    padding: var(--sp-3) 0;
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    font-weight: var(--fw-medium);
    letter-spacing: var(--ls-heading);
    color: var(--text-strong);
  }

  .nav-links a:not(.btn)::after { left: 0; right: auto; width: var(--sp-4); bottom: -1px; }

  .nav-links li.nav-cta {
    margin: var(--sp-4) 0 0;
    border-bottom: 0;
  }

  .nav-links li.nav-cta .btn { width: 100%; }
}


/* ==========================================================================
   6. CODE PANEL — the hero's signature object
   ========================================================================== */

.code-panel {
  border: var(--bw-hair) solid var(--line-on-navy);
  border-radius: var(--r-md);
  background: var(--code-bg);
  box-shadow: var(--shadow-panel);
  overflow: hidden;
}

.code-panel-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-2);
  background: var(--code-chrome);
  border-bottom: var(--bw-hair) solid var(--line-on-navy);
}

.code-panel-bar i {
  width: 8px;
  height: 8px;
  border-radius: var(--r-full);
  border: var(--bw-hair) solid var(--line-on-navy-strong);
}

.code-panel-bar i:first-child { border-color: var(--teal-500); }

.code-panel-bar b {
  margin-left: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-label-sm);
  color: var(--text-on-navy-muted);
}

.code-panel pre {
  margin: 0;
  padding: var(--sp-3) var(--sp-3) var(--sp-4) 0;
  overflow-x: auto;
  counter-reset: codeline;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  line-height: 1.85;
  color: var(--code-fg);
  tab-size: 2;
}

@media (min-width: 1100px) {
  .code-panel pre { font-size: var(--fs-sm); }
}

.code-panel .cl {
  display: block;
  padding-left: var(--sp-2);
  white-space: pre;
}

.code-panel .cl::before {
  counter-increment: codeline;
  content: counter(codeline);
  display: inline-block;
  width: 3ch;
  margin-right: var(--sp-3);
  text-align: right;
  color: var(--text-on-navy-muted);
  opacity: 0.55;
  user-select: none;
}

.tk-cm { color: var(--code-comment); }
.tk-kw { color: var(--code-keyword); }
.tk-fn { color: var(--code-fg); font-weight: var(--fw-medium); }
.tk-str { color: var(--code-string); }


/* ==========================================================================
   7. RAIL — full-width numbered rows. Not cards.
   ========================================================================== */

.rail { border-top: var(--bw-hair) solid var(--line); }

.rail-row {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--sp-2) var(--sp-4);
  align-items: start;
  padding: var(--sp-4) 0;
  border-bottom: var(--bw-hair) solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background-color var(--t-base);
}

.rail-row::before {
  content: "";
  position: absolute;
  left: calc(var(--gutter) * -0.5);
  top: 0;
  bottom: 0;
  width: var(--bw-marker);
  background: var(--line-accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--t-slow);
}

.rail-row:hover { background-color: var(--wash-navy); }
.rail-row:hover::before,
.rail-row:focus-visible::before { transform: scaleY(1); }

.rail-row .num {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-label-sm);
  color: var(--text-muted);
  padding-top: 0.45em;
  font-variant-numeric: tabular-nums;
  transition: color var(--t-base);
}

.rail-row:hover .num { color: var(--text-accent); }

.rail-row h3 {
  grid-column: 2;
  margin: 0;
  font-size: var(--fs-xl);
  letter-spacing: var(--ls-heading);
  transition: transform var(--t-base);
}

.rail-row:hover h3 { transform: translateX(4px); }

.rail-row p {
  grid-column: 2;
  margin: 0;
  max-width: var(--measure);
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.rail-row .go {
  grid-row: 1;
  grid-column: 3;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--text-muted);
  border: var(--bw-hair) solid var(--line);
  border-radius: var(--r-full);
  transition: color var(--t-base), border-color var(--t-base), transform var(--t-base);
}

.rail-row:hover .go {
  color: var(--text-accent);
  border-color: var(--line-accent);
  transform: translateX(4px);
}

.ai-tag {
  display: inline-block;
  margin-left: var(--sp-1);
  padding: 1px var(--sp-1);
  vertical-align: 0.28em;
  font-family: var(--font-mono);
  font-size: var(--fs-3xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-label);
  color: var(--text-accent);
  border: var(--bw-hair) solid var(--line-accent);
  border-radius: var(--r-xs);
}

@media (min-width: 900px) {
  .rail-row {
    grid-template-columns: 4rem minmax(0, 5fr) minmax(0, 6fr) auto;
    align-items: center;
    padding: var(--sp-5) 0;
  }
  .rail-row h3 { grid-column: 2; }
  .rail-row p  { grid-column: 3; grid-row: 1; }
  .rail-row .go { grid-column: 4; }
}


/* ==========================================================================
   8. MATRIX — hairline grid, no boxes, no shadows
   ========================================================================== */

.matrix {
  display: grid;
  gap: var(--bw-hair);
  background: var(--line);
  border: var(--bw-hair) solid var(--line);
  list-style: none;
}

.matrix > * {
  padding: var(--sp-4);
  margin: 0;
  background: var(--surface);
}

.section--paper .matrix > * { background: var(--white); }

.matrix .icon {
  width: 24px;
  height: 24px;
  margin-bottom: var(--sp-3);
  color: var(--text-accent);
}

.matrix h3 {
  margin-bottom: var(--sp-1);
  font-size: var(--fs-md);
}

.matrix p {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

@media (min-width: 640px) {
  .matrix--2 { grid-template-columns: repeat(2, 1fr); }
  .matrix--3 { grid-template-columns: repeat(2, 1fr); }
  .matrix--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .matrix--3 { grid-template-columns: repeat(3, 1fr); }
  .matrix--4 { grid-template-columns: repeat(4, 1fr); }
  .matrix > * { padding: var(--sp-5) var(--sp-4); }
}

/* Row form: icon beside text */
.matrix--row > * {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-3);
  align-items: start;
}

.matrix--row .icon { margin: 0; padding-top: 2px; }


/* ==========================================================================
   9. LEDGER — big ordinals carry the meaning instead of icons
   ========================================================================== */

.ledger {
  display: grid;
  gap: var(--sp-6) var(--grid-gap);
  list-style: none;
}

.ledger-item {
  padding-top: var(--sp-3);
  border-top: var(--bw-rule) solid var(--text-strong);
}

.ledger-item .ledger-num {
  display: block;
  margin-bottom: var(--sp-3);
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-medium);
  line-height: 1;
  letter-spacing: var(--ls-display);
  color: var(--text-accent);
  font-variant-numeric: tabular-nums;
}

.ledger-item h3 { margin-bottom: var(--sp-1); }

.ledger-item p {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

@media (min-width: 700px) {
  .ledger--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1040px) {
  .ledger--4 { grid-template-columns: repeat(4, 1fr); }
}


/* ==========================================================================
   10. TRACK — the process line
   ========================================================================== */

.track {
  display: grid;
  gap: var(--sp-5) var(--sp-4);
  list-style: none;
  counter-reset: trackstep;
}

.track-step {
  position: relative;
  padding-top: var(--sp-4);
  border-top: var(--bw-hair) solid var(--line);
}

.track-step::before {
  counter-increment: trackstep;
  content: "0" counter(trackstep);
  position: absolute;
  top: calc(var(--sp-4) * -1 + 6px);
  left: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: var(--ls-label-sm);
  color: var(--text-muted);
}

.track-step::after {
  content: "";
  position: absolute;
  top: calc(var(--bw-hair) * -1);
  left: 0;
  width: var(--sp-5);
  height: var(--bw-rule);
  background: var(--line-accent);
}

.track-step h3 { margin-bottom: var(--sp-1); font-size: var(--fs-md); }

.track-step p {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

@media (min-width: 700px) {
  .track--5 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1040px) {
  .track--5 { grid-template-columns: repeat(5, 1fr); gap: var(--sp-4); }
  .track-step { padding-top: var(--sp-5); }
  .track-step::before { top: calc(var(--sp-5) * -1 + 10px); }
}


/* ==========================================================================
   11. STAT / METRIC — case-study numbers as typographic focal points
   ========================================================================== */

.stat { display: block; }

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  font-weight: var(--fw-medium);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
}

.stat-value .plus,
.stat-value .unit { color: var(--text-accent); }

.stat-label {
  display: block;
  margin-top: var(--sp-1);
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: var(--ls-label-sm);
  text-transform: uppercase;
  color: var(--text-muted);
  max-width: 22ch;
}

.stat-grid {
  display: grid;
  gap: var(--sp-5) var(--sp-6);
  list-style: none;
}

@media (min-width: 620px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .stat-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat-grid--ruled > * + * {
    padding-left: var(--sp-6);
    border-left: var(--bw-hair) solid var(--line);
  }
}


/* ==========================================================================
   12. CASE-STUDY BLOCK — the portfolio showpiece
   ========================================================================== */

.case {
  padding-block: var(--section-y-lg);
  border-top: var(--bw-hair) solid var(--line);
}

.case:first-of-type { border-top: 0; padding-top: var(--sp-4); }

/* Header breaks wide — the project name is the focal point */
.case-head { margin-bottom: var(--sp-6); }

.case-name {
  margin: 0;
  max-width: 20ch;
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  /* Starts smaller than --fs-4xl: project names include unbreakable domains */
  font-size: clamp(1.75rem, 1.15rem + 2.7vw, 3.875rem);
  line-height: var(--lh-tight);
  overflow-wrap: break-word;
  letter-spacing: var(--ls-display);
  color: var(--text-strong);
}

.case-body { display: block; }

.case-body > h2 {
  margin-bottom: var(--sp-3);
  font-size: var(--fs-xl);
  letter-spacing: var(--ls-heading);
  max-width: 26ch;
}

.case-body > p {
  max-width: var(--measure);
  margin-bottom: var(--sp-3);
}

.case-disciplines {
  margin: 0 0 var(--sp-4);
  padding-top: var(--sp-2);
  max-width: none;
  border-top: var(--bw-rule) solid var(--text-strong);
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  line-height: 1.7;
  letter-spacing: var(--ls-label-sm);
  text-transform: uppercase;
  color: var(--text-muted);
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  list-style: none;
}

.case-tags li {
  padding: var(--sp-h) var(--sp-1);
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: var(--ls-label-sm);
  color: var(--text-accent);
  border: var(--bw-hair) solid var(--line-accent);
  border-radius: var(--r-xs);
}

/* Metrics are typography, not widgets */
.case-metrics {
  display: grid;
  gap: var(--sp-5);
  margin-top: var(--sp-8);
  padding-top: var(--sp-4);
  border-top: var(--bw-rule) solid var(--text-strong);
  list-style: none;
}

.case-metric b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-medium);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  color: var(--text-accent);
}

.case-metric span {
  display: block;
  margin-top: var(--sp-1);
  max-width: 26ch;
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  line-height: 1.6;
  letter-spacing: var(--ls-label-sm);
  color: var(--text-muted);
}

.case-quote {
  margin-top: var(--sp-6);
  padding-left: var(--sp-4);
  border-left: var(--bw-rule) solid var(--line-accent);
}

.case-quote blockquote {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: var(--fw-regular);
  line-height: 1.46;
  letter-spacing: var(--ls-snug);
  color: var(--text-strong);
  max-width: var(--measure);
}

.case-quote figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-1);
  margin-top: var(--sp-3);
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: var(--ls-label-sm);
  color: var(--text-muted);
}

.case-quote figcaption b {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-body);
  color: var(--text-strong);
}

@media (min-width: 620px) {
  .case-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-6); }
  .case-metrics > * + * { padding-left: var(--sp-6); border-left: var(--bw-hair) solid var(--line); }
}

@media (min-width: 900px) {
  .case-head {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    column-gap: clamp(40px, 5vw, 96px);
    row-gap: var(--sp-5);
    align-items: end;
    margin-bottom: var(--sp-8);
  }

  .case-head .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }

  /* Alternating spread — the name and its metadata swap sides case to case */
  .case--flip .case-head { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
  .case--flip .case-side { order: 1; }

  .case--flip .case-name {
    order: 2;
    margin-left: auto;
    text-align: right;
  }
}

/* ==========================================================================
   13. QUOTE / TESTIMONIAL
   ========================================================================== */

.quote-feature {
  display: grid;
  gap: var(--sp-4);
  align-items: start;
}

.quote-mark {
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  font-weight: var(--fw-bold);
  line-height: 0.62;
  color: var(--line-accent);
  user-select: none;
}

.quote-feature blockquote {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: var(--fw-regular);
  line-height: 1.44;
  letter-spacing: var(--ls-snug);
  color: var(--text-strong);
  max-width: var(--measure);
}

.quote-feature figcaption {
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: var(--bw-hair) solid var(--line);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  max-width: var(--measure);
}

.quote-feature figcaption b {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--text-strong);
}

.stars {
  margin-bottom: var(--sp-3);
  font-size: var(--fs-sm);
  letter-spacing: 0.25em;
  color: var(--text-accent);
}

.flag-in svg,
.flag-us svg,
.flag svg {
  display: inline-block;
  border: var(--bw-hair) solid var(--line-on-navy);
  border-radius: var(--r-xs);
}

@media (min-width: 860px) {
  .quote-feature { grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-5); }
}

/* --- Slider chrome --- */

.quote-slider { position: relative; }

.quote-slider-viewport { overflow: hidden; }

.quote-slider-track {
  display: flex;
  transition: transform var(--dur-4) var(--ease-out);
}

.quote-slide {
  flex: 0 0 100%;
  min-width: 0;
  padding-right: var(--sp-1);
}

.quote-slider-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
  padding-top: var(--sp-3);
}

.quote-slider-arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--text-muted);
  background: none;
  border: var(--bw-hair) solid var(--line);
  border-radius: var(--r-full);
  transition: color var(--t-base), border-color var(--t-base);
}

.quote-slider-arrow svg { width: 18px; height: 18px; stroke-width: 1.5; }

.quote-slider-arrow:hover {
  color: var(--text-accent);
  border-color: var(--line-accent);
}

.quote-slider-dots {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  margin-left: auto;
}

.quote-slider-dot {
  width: var(--sp-4);
  height: var(--bw-rule);
  padding: 0;
  background: var(--line-strong);
  border: 0;
  border-radius: var(--r-full);
  transition: background-color var(--t-base), width var(--t-base);
}

.quote-slider-dot.is-active { background: var(--line-accent); width: var(--sp-7); }

.quote-slider-dot:focus-visible { outline-offset: 6px; }


/* ==========================================================================
   14. MARKS STRIP — platforms / credentials
   ========================================================================== */

.marks {
  padding-block: var(--sp-5);
  border-top: var(--bw-hair) solid var(--line);
  border-bottom: var(--bw-hair) solid var(--line);
}

.marks .container {
  display: grid;
  gap: var(--sp-3);
  align-items: center;
}

.marks p {
  margin: 0;
  max-width: none;
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-muted);
}

.marks-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-6);
  list-style: none;
}

.marks-list li {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-snug);
  color: var(--text-strong);
}

@media (min-width: 900px) {
  .marks .container { grid-template-columns: auto 1fr; gap: var(--sp-8); }
  .marks-list { justify-content: space-between; }
}


/* ==========================================================================
   15. CTA BAND
   ========================================================================== */

.cta-band {
  /* The band sits on --navy-700, a lighter ground than a deep section, so
     teal text needs the brighter step to stay above 4.5:1. */
  --text-accent: var(--teal-300);
  --line-accent: var(--teal-400);

  display: grid;
  gap: var(--sp-5);
  padding: var(--sp-8) var(--sp-5);
  background: var(--surface-navy-fill);
  border-radius: var(--r-md);
  color: var(--text-on-navy-body);
}

.cta-band h2 {
  margin-bottom: var(--sp-2);
  color: var(--text-on-navy);
  font-size: var(--fs-2xl);
  max-width: 22ch;
}

.cta-band p { margin: 0; max-width: var(--measure); }

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: center;
}

@media (min-width: 900px) {
  .cta-band {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    padding: var(--sp-10) var(--sp-10);
    gap: var(--sp-8);
  }
  .cta-actions { justify-content: flex-end; }
}


/* ==========================================================================
   16. FOOTER
   ========================================================================== */

.site-footer {
  padding-block: var(--section-y) var(--sp-6);
  background: var(--navy-900);
  color: var(--text-on-navy-body);
  border-top: var(--bw-marker) solid var(--teal-500);
  font-size: var(--fs-sm);
}

.footer-grid {
  display: grid;
  gap: var(--sp-8) var(--grid-gap);
}

.footer-about .brand { display: inline-block; margin-bottom: var(--sp-4); }

.footer-about .brand img {
  height: 46px;
  filter: brightness(0) invert(1);
  opacity: 0.92;
  transition: opacity var(--t-base);
}

.footer-about .brand:hover img { opacity: 1; }

.footer-about p {
  max-width: 34ch;
  color: var(--text-on-navy-muted);
}

.footer-col h3 {
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: var(--bw-hair) solid var(--line-on-navy);
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-on-navy);
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: var(--sp-1); }

.footer-col a,
.footer-about a:not(.brand) {
  color: var(--text-on-navy-body);
  text-decoration: none;
  transition: color var(--t-fast);
}

.footer-col a:hover,
.footer-about a:not(.brand):hover { color: var(--teal-400); }

.footer-col address { color: var(--text-on-navy-muted); }

.footer-social {
  display: flex;
  gap: var(--sp-1);
  margin-top: var(--sp-4);
  list-style: none;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--text-on-navy-body);
  border: var(--bw-hair) solid var(--line-on-navy);
  border-radius: var(--r-sm);
  transition: color var(--t-base), border-color var(--t-base), background-color var(--t-base);
}

.footer-social svg { width: 17px; height: 17px; fill: currentColor; }

.footer-social a:hover {
  color: var(--teal-400);
  border-color: var(--teal-500);
  background: var(--wash-teal);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  justify-content: space-between;
  align-items: center;
  margin-top: var(--sp-10);
  padding-top: var(--sp-4);
  border-top: var(--bw-hair) solid var(--line-on-navy);
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: var(--ls-label-sm);
  color: var(--text-on-navy-muted);
}

.footer-bottom p { margin: 0; max-width: none; }

.footer-legal { display: flex; gap: var(--sp-3); }

.footer-legal a {
  color: var(--text-on-navy-muted);
  text-decoration: none;
  transition: color var(--t-fast);
}

.footer-legal a:hover { color: var(--teal-400); }

@media (min-width: 700px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-about { grid-column: 1 / -1; }
}

@media (min-width: 1000px) {
  .footer-grid { grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.4fr)); }
  .footer-about { grid-column: auto; }
}


/* ==========================================================================
   17. FORMS
   ========================================================================== */

.form-grid {
  display: grid;
  gap: var(--sp-4);
}

@media (min-width: 640px) {
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .form-field--full { grid-column: 1 / -1; }
}

.form-field { display: flex; flex-direction: column; gap: var(--sp-1); }

.form-field label {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-label-sm);
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-field .req { color: var(--text-accent); }
.form-field .opt { color: var(--text-muted); opacity: 0.7; }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: var(--sp-2);
  font-size: var(--fs-base);
  color: var(--text-body);
  background: var(--white);
  border: var(--bw-hair) solid var(--line-strong);
  border-radius: var(--r-sm);
  transition: border-color var(--t-base), box-shadow var(--t-base);
}

.form-field textarea { min-height: 148px; resize: vertical; line-height: var(--lh-body); }

.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--grey-400); }

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover { border-color: var(--grey-400); }

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: none;
  border-color: var(--teal-600);
  box-shadow: 0 0 0 3px var(--wash-teal-strong);
}

.form-field input[type="file"] {
  padding: var(--sp-1);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea { border-color: var(--err-700); }

.form-field.has-error .field-error { display: block; }

.field-error {
  display: none;
  font-size: var(--fs-xs);
  color: var(--err-700);
}

.field-hint {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  display: none;
  margin-bottom: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-sm);
  border-left: var(--bw-marker) solid currentColor;
  border-radius: var(--r-xs);
}

.form-status.is-success { display: block; color: var(--ok-700); background: var(--ok-wash); }
.form-status.is-error   { display: block; color: var(--err-700); background: var(--err-wash); }


/* ==========================================================================
   18. SUB-NAV, FAQ, LISTS, FLOAT
   ========================================================================== */

/* Sticky section sub-navigation */
.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: var(--z-sticky);
  background: var(--white);
  border-bottom: var(--bw-hair) solid var(--line);
}

@media (min-width: 960px) {
  .subnav { top: var(--header-h-lg); }
}

.subnav ul {
  display: flex;
  gap: var(--sp-4);
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.subnav ul::-webkit-scrollbar { display: none; }

.subnav a {
  display: block;
  padding: var(--sp-2) 0;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: var(--ls-label-sm);
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: var(--bw-rule) solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
}

.subnav a:hover { color: var(--text-strong); }

.subnav a.is-active {
  color: var(--text-accent);
  border-bottom-color: var(--line-accent);
}

/* FAQ — native disclosure, keyboard accessible with no JS */
.faq-list { border-top: var(--bw-hair) solid var(--line); }

.faq-item { border-bottom: var(--bw-hair) solid var(--line); }

.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-3) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-snug);
  color: var(--text-strong);
  transition: color var(--t-fast);
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--text-accent); }
.faq-item summary:focus-visible { outline-offset: -2px; }

/* The question may be marked up as a heading inside the summary */
.faq-item summary > h3 {
  margin: 0;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}

.faq-item summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 0.35em;
  background:
    linear-gradient(currentColor, currentColor) center / 100% var(--bw-hair) no-repeat,
    linear-gradient(currentColor, currentColor) center / var(--bw-hair) 100% no-repeat;
  transition: transform var(--t-base);
}

.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { color: var(--text-accent); }

.faq-item > p,
.faq-item > div {
  padding-bottom: var(--sp-4);
  max-width: var(--measure);
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

/* Check list */
.check-list { list-style: none; display: grid; gap: var(--sp-2); }

.check-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-2);
  align-items: start;
  font-size: var(--fs-sm);
}

.check-list .icon {
  width: 17px;
  height: 17px;
  margin-top: 0.28em;
  color: var(--text-accent);
  stroke-width: 2;
}

/* Breadcrumb */
.breadcrumb {
  margin-bottom: var(--sp-4);
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: var(--ls-label-sm);
  color: var(--text-muted);
  max-width: none;
}

.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--text-accent); }

/* Floating WhatsApp — brand navy, not a third colour */
.wa-float {
  position: fixed;
  right: var(--sp-3);
  bottom: var(--sp-3);
  z-index: var(--z-float);
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  color: var(--white);
  background: var(--navy-800);
  border: var(--bw-hair) solid var(--line-on-navy-strong);
  border-radius: var(--r-full);
  box-shadow: var(--shadow-lift);
  transition: background-color var(--t-base), transform var(--t-base);
}

.wa-float svg { width: 24px; height: 24px; fill: currentColor; }

.wa-float:hover {
  background: var(--teal-700);
  color: var(--white);
  transform: translateY(-2px);
}

@media (min-width: 960px) {
  .wa-float { right: var(--sp-5); bottom: var(--sp-5); }
}
