/* ---------------------------------------------------------------------------
   Devnox Advisory — layout and components.
   Sections mirror the JSX files, in page order:
     primitives · nav · hero · stats · services · translation · process
     · modes · cases · logos · about · cta · footer

   Breakpoints, chosen from measured content needs rather than round numbers:
     1120px — the four-up service grid stops fitting
      900px — two-column layouts stack; the nav becomes a drawer
      640px — single column throughout

   Most sections don't need a media query of their own: they read --gutter and
   --section-pad-y from tokens.css, which are redefined per breakpoint there.
--------------------------------------------------------------------------- */


/* ===========================================================================
   Primitives
   =========================================================================== */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}

.section {
  background: var(--bone);
  color: var(--ink);
  padding: var(--section-pad-y) 0;
  position: relative;
}

/* The closing CTA is the only section that inverts. */
.section--invert {
  background: var(--ink);
  color: var(--bone);
}

/* --- eyebrow --- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--slate);
}
.eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}
.section--invert .eyebrow { color: var(--bone-55); }

/* --- section header --- */
.section-header { max-width: 880px; }

.section-header__title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 24px 0 20px;
  /* `inherit`, not var(--ink) — this is what makes Section's inverted variant
     actually work. Hardcoding it was why the CTA had to duplicate this markup
     instead of reusing the component. */
  color: inherit;
  text-wrap: pretty;
}

.section-header__sub {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.55;
  color: var(--slate);
  margin: 0;
  max-width: 640px;
  text-wrap: pretty;
}
.section--invert .section-header__sub { color: var(--bone-75); }

/* --- buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn--primary { background: var(--ink); color: var(--bone); }
.btn--ghost   { background: transparent; color: var(--ink); border-color: var(--ink-20); }
.btn--inverse { background: var(--bone); color: var(--ink); }

@media (hover: hover) {
  .btn--primary:hover,
  .btn--inverse:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(16, 36, 58, 0.18);
  }
  .btn--ghost:hover { border-color: var(--ink); }
}

/* --- lockup ---
   `scale` arrives as the --lockup-scale custom property; colour comes from the
   cascade so the footer can invert the whole thing with two declarations. */
.lockup {
  display: inline-flex;
  align-items: center;
  gap: calc(10px * var(--lockup-scale, 1));
  color: var(--ink);
  --lockup-adv: var(--slate);
}
.lockup__mark {
  flex: 0 0 auto;
  width: calc(28px * var(--lockup-scale, 1));
  height: calc(28px * var(--lockup-scale, 1));
}
.lockup__name {
  font-family: var(--sans);
  font-weight: 500;
  font-size: calc(22px * var(--lockup-scale, 1));
  letter-spacing: -0.02em;
  line-height: 1;
}
.lockup__pipe {
  display: inline-block;
  width: 1px;
  height: calc(16px * var(--lockup-scale, 1));
  background: var(--lockup-adv);
  opacity: 0.55;
  margin: 0 calc(2px * var(--lockup-scale, 1));
}
.lockup__adv {
  font-family: var(--sans);
  font-weight: 400;
  font-size: calc(13px * var(--lockup-scale, 1));
  color: var(--lockup-adv);
  letter-spacing: -0.01em;
  line-height: 1;
}


/* ===========================================================================
   Nav
   =========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s;
}
.nav.is-scrolled {
  background: var(--bone-85);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--ink-10);
}

.nav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

/* On desktop the menu is not a box — its children join the bar's flex row. */
.nav__menu { display: contents; }

.nav__links {
  list-style: none;
  margin: 0 0 0 16px;
  padding: 0;
  display: flex;
  gap: 22px;
  flex: 1;
  min-width: 0;
}
.nav__links li { white-space: nowrap; }

.nav-link {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  opacity: 0.78;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.nav-link:hover,
.nav-link:focus-visible { opacity: 1; }

/* --- language switcher ---
   Real links to the sibling language pages, not buttons mutating state. This
   is what dissolves the hash/anchor collision: navigation and language are no
   longer competing for the same slot in the URL. */
.nav__lang {
  display: inline-flex;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: var(--track-tight);
  border: 1px solid var(--ink-20);
  border-radius: var(--r-pill);
  overflow: hidden;
  flex-shrink: 0;
}
.lang-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
}
.lang-link[aria-current] { background: var(--ink); color: var(--bone); }
.lang-link:hover:not([aria-current]) { background: var(--ink-10); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--bone);
  border-radius: var(--r-pill);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

/* --- hamburger --- */
.nav__toggle {
  display: none;
  margin-left: auto;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  padding: 0;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--ink-20);
  border-radius: var(--r-pill);
  cursor: pointer;
  color: var(--ink);
}
.nav__toggle-box {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
}
.nav__toggle-box span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.15s, top 0.2s;
}
.nav__toggle-box span:nth-child(1) { top: 0; }
.nav__toggle-box span:nth-child(2) { top: 5.25px; }
.nav__toggle-box span:nth-child(3) { top: 10.5px; }

.nav.is-open .nav__toggle-box span:nth-child(1) { top: 5.25px; transform: rotate(45deg); }
.nav.is-open .nav__toggle-box span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle-box span:nth-child(3) { top: 5.25px; transform: rotate(-45deg); }

/* Locks the page behind an open drawer. */
body.has-drawer-open { overflow: hidden; }

/* --- below 900: bar collapses to logo + toggle, everything else drawers --- */
@media (max-width: 899px) {
  .nav__inner { padding: 14px var(--gutter); }

  .nav__toggle { display: inline-flex; }

  /* The drawer needs an opaque bar to drop out of. Scoped to this breakpoint
     so a stale is-open class can't tint the desktop bar. */
  .nav.is-open {
    background: var(--bone);
    border-bottom-color: var(--ink-10);
  }

  .nav__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bone);
    border-bottom: 1px solid var(--ink-10);
    padding: 8px var(--gutter) 24px;
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
  }
  /* display:none rather than a transform keeps the drawer's links out of the
     tab order when it's shut, without a manual focus trap. */
  .nav.is-open .nav__menu { display: block; }

  .nav__links {
    margin: 0;
    flex-direction: column;
    gap: 0;
  }
  .nav__links li { border-bottom: 1px solid var(--ink-10); }
  .nav-link {
    display: block;
    padding: 16px 0;
    font-size: 17px;
    opacity: 1;
  }

  .nav__lang { margin-top: 20px; }
  .lang-link { padding: 10px 18px; font-size: 12px; }

  .nav__cta {
    display: flex;
    justify-content: center;
    margin-top: 16px;
    padding: 14px 18px;
    font-size: 15px;
  }
}


/* ===========================================================================
   Hero
   =========================================================================== */

.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 56px);
  padding-bottom: 64px;
  background: var(--bone);
  overflow: hidden;
}
.hero__body { margin-top: 36px; }

.hero__rule {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - (var(--gutter) * 2));
  max-width: var(--container-max);
  height: 1px;
  background: var(--ink-10);
}

.hero__h1 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(48px, 6.6vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
  max-width: 980px;
}

.hero__sub {
  font-family: var(--sans);
  font-size: 22px;
  line-height: 1.45;
  color: var(--slate);
  margin: 32px 0 0;
  max-width: 640px;
  text-wrap: pretty;
}

.hero__ctas {
  display: flex;
  gap: 14px;
  margin-top: 48px;
  flex-wrap: wrap;
}

/* --- 0 · Editorial --- */
.hero-editorial {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 64px;
  align-items: start;
}
.hero-editorial__mark {
  display: block;
  width: 140px;
  height: 140px;
  margin-top: 18px;
  color: var(--ink);
}

/* --- 1 · Manifesto --- */
.hero-manifesto__lines {
  display: grid;
  gap: 8px;
  max-width: 1100px;
}
.hero-manifesto__line,
.hero-manifesto__foot {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
}
.hero-manifesto__line { align-items: baseline; }
.hero-manifesto__foot { margin-top: 36px; max-width: 1100px; }

.hero-manifesto__idx {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--slate);
  letter-spacing: 0.06em;
  transform: translateY(-0.7em);
}
.hero-manifesto__h1 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(48px, 7.2vw, 112px);
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
.hero-manifesto__h1--accent { color: var(--teal); }
.hero-manifesto__sub { margin-top: 0; }

/* --- 2 · Diagram-first --- */
.hero-diagram {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.hero-diagram__h1 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(40px, 5.6vw, 84px);
  line-height: 1.03;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
.hero-diagram__sub {
  font-family: var(--sans);
  font-size: 20px;
  line-height: 1.5;
  color: var(--slate);
  margin: 28px 0 0;
  max-width: 540px;
  text-wrap: pretty;
}
.hero-diagram__figure {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 520px;
  margin-left: auto;
}
.hero-diagram__figure svg { display: block; width: 100%; height: 100%; }

/* SVG text: px here means user units, i.e. the 0–100 viewBox space. */
.hero-diagram__label {
  font-family: var(--mono);
  font-size: 3.8px;
  letter-spacing: 0.22em;
  fill: var(--ink);
}
.hero-diagram__center {
  font-family: var(--mono);
  font-size: 2.8px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  fill: var(--teal);
}

@media (max-width: 1119px) {
  .hero-editorial__mark { width: 112px; height: 112px; }
}

@media (max-width: 899px) {
  .hero { padding-bottom: 52px; }
  .hero__body { margin-top: 36px; }

  .hero-editorial,
  .hero-diagram {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .hero-editorial__mark { width: 88px; height: 88px; margin-top: 0; }
  .hero-diagram__figure { margin: 0 auto; max-width: 420px; }
}

@media (max-width: 639px) {
  .hero { padding-bottom: 56px; }

  .hero__h1 { font-size: clamp(34px, 9vw, 48px); }
  .hero__sub { font-size: 18px; margin-top: 24px; }
  .hero__ctas { margin-top: 32px; gap: 10px; }
  /* Stacked full-width CTAs beat two cramped pills on a narrow screen. */
  .hero__ctas .btn { flex: 1 1 100%; justify-content: center; }

  .hero-editorial__mark { width: 72px; height: 72px; }

  .hero-manifesto__line,
  .hero-manifesto__foot { grid-template-columns: 30px 1fr; gap: 10px; }
  .hero-manifesto__foot { margin-top: 32px; }
  .hero-manifesto__h1 { font-size: clamp(30px, 8.5vw, 48px); }
  .hero-manifesto__idx { font-size: 11px; }

  .hero-diagram__h1 { font-size: clamp(32px, 8.5vw, 44px); }
  .hero-diagram__sub { font-size: 17px; margin-top: 20px; }
  .hero-diagram__figure { max-width: 320px; }
}


/* ===========================================================================
   Stats
   =========================================================================== */

.stats {
  background: var(--bone);
  padding: var(--band-pad-y) 0;
  border-bottom: 1px solid var(--ink-10);
}
.stats__inner {
  display: grid;
  grid-template-columns: minmax(120px, 0.6fr) repeat(4, 1fr);
  gap: 32px;
  align-items: center;
}
.stats__item {
  border-left: 1px solid var(--ink-10);
  padding-left: 24px;
}
.stats__n {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 48px;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
}
.stats__l {
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.4;
  color: var(--slate);
  text-wrap: pretty;
}

@media (max-width: 899px) {
  .stats__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }
  .stats__label { grid-column: 1 / -1; }
  .stats__item { padding-left: 18px; }
  .stats__n { font-size: 38px; }
}

@media (max-width: 639px) {
  .stats__n { font-size: 32px; }
}


/* ===========================================================================
   Services
   =========================================================================== */

.services__grid {
  margin-top: var(--header-gap);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink-10);
  border-left: 1px solid var(--ink-10);
}

.service-card {
  border-right: 1px solid var(--ink-10);
  border-bottom: 1px solid var(--ink-10);
  padding: 32px 28px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 280px;
  background: transparent;
  color: var(--ink);
  transition: background 0.2s, color 0.2s;
  position: relative;
}
.service-card__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.service-card__n {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--slate);
  transition: color 0.2s;
}
.service-card__arrow {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s, transform 0.2s;
  color: inherit;
}
.service-card__title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
  color: inherit;
  text-wrap: balance;
}
/* Lead sentence — now `inherit` rather than --slate, so it reads as the
   stronger of the two paragraphs and flips to bone with the card. */
.service-card__body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  color: inherit;
  transition: color 0.2s;
  text-wrap: pretty;
}
/* Detail — one step down in size and weight of colour. --slate, not a lighter
   --ink-* alpha: on --bone, ink needs alpha >= 0.626 to clear 4.5:1, and every
   --ink token below that fails as body text. --slate is a measured 5.10:1. */
.service-card__detail {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  margin: -4px 0 0;
  color: var(--slate);
  transition: color 0.2s;
  text-wrap: pretty;
}

/* Hover was React state before, which meant no focus style and sticky
   behaviour on touch. The (hover: hover) guard keeps it off touch devices
   entirely. */
@media (hover: hover) {
  .service-card:hover { background: var(--ink); color: var(--bone); }
  .service-card:hover .service-card__n { color: var(--bone-60); }
  .service-card:hover .service-card__detail { color: var(--bone-78); }
  .service-card:hover .service-card__arrow { opacity: 1; transform: translateX(0); }
}
.service-card:focus-within { background: var(--ink); color: var(--bone); }
.service-card:focus-within .service-card__n { color: var(--bone-60); }
.service-card:focus-within .service-card__detail { color: var(--bone-78); }
.service-card:focus-within .service-card__arrow { opacity: 1; transform: translateX(0); }

@media (max-width: 1119px) {
  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 639px) {
  .services__grid { grid-template-columns: minmax(0, 1fr); }
  .service-card { min-height: 0; padding: 26px 22px 30px; }
}


/* ===========================================================================
   Translation layer
   =========================================================================== */

.translation__grid {
  margin-top: var(--header-gap);
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(0, 1.8fr);
  gap: 64px;
  align-items: start;
}

/* --- topic rail --- */
.translation__rail {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink-10);
}
.translation__rail-item { border-bottom: 1px solid var(--ink-10); }

.translation__rail-btn {
  width: 100%;
  padding: 20px 4px;
  display: grid;
  grid-template-columns: 36px 1fr 20px;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--sans);
  color: var(--ink);
}
.translation__rail-n {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: var(--track-tight);
  color: var(--slate);
}
.translation__rail-topic {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.translation__rail-arrow {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s, transform 0.2s;
  color: var(--teal);
}
/* aria-current does double duty: it's the semantics AND the styling hook. */
.translation__rail-btn[aria-current="true"] .translation__rail-n { color: var(--teal); }
.translation__rail-btn[aria-current="true"] .translation__rail-topic { font-weight: 500; }
.translation__rail-btn[aria-current="true"] .translation__rail-arrow { opacity: 1; transform: translateX(0); }

/* --- panel --- */
.translation__panel {
  perspective: 1600px;
  min-height: 460px;
}
.translation__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink-10);
}
.translation__sides {
  display: flex;
  align-items: center;
  gap: 16px;
}
/* Decorative and aria-hidden, so exempt from the text contrast rule — but at
   --ink-20 (1.49:1) it vanished between two now-readable labels. Nudged up
   for balance, still subordinate to them. */
.translation__sides-arrow { color: var(--ink-45); display: inline-flex; }

.side-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--slate);              /* was --ink-45 → 2.72:1, failed AA */
  transition: color 0.2s, font-weight 0.2s;
}
/* teal and slate sit only 1.70:1 apart, so colour alone is too weak a cue
   for which register is showing (WCAG 1.4.1). Weight is the second signal —
   the same pairing the topic rail already uses for aria-current. */
.side-tag.is-active { color: var(--teal); font-weight: 500; }

.translation__flip-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--ink-20);
  color: var(--ink);
  border-radius: var(--r-pill);
  padding: 8px 14px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.translation__flip-btn:hover { border-color: var(--ink); }

/* --- flipping card --- */
.translation__card {
  position: relative;
  margin-top: 32px;
  min-height: 320px;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.2, 0.7, 0.3, 1);
  transform: rotateY(0deg);
}
.translation__card.is-flipped { transform: rotateY(180deg); }

.translation-face {
  border-radius: var(--r-panel);
  padding: 40px 44px 44px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 320px;
}
.translation-face--board {
  position: relative;
  background: var(--bone);
  border: 1px solid var(--ink-10);
  color: var(--ink);
  transform: rotateY(0deg);
}
.translation-face--eng {
  position: absolute;
  inset: 0;
  width: 100%;
  background: var(--ink);
  border: 1px solid transparent;
  color: var(--bone);
  transform: rotateY(180deg);
}

.translation-face__label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--slate);
}
.translation-face__label::before {
  content: "";
  flex: 0 0 auto;
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.translation-face--eng .translation-face__label,
.translation-face--eng .translation-face__foot { color: var(--bone-60); }

.translation-face__topic {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.02em;
  margin: 0;
  color: inherit;
}
.translation-face__text {
  font-family: var(--sans);
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: -0.015em;
  /* pushes the footer to the bottom without a spacer element */
  margin: 0 0 auto;
  color: inherit;
  opacity: 0.92;
  text-wrap: pretty;
}
.translation-face--eng .translation-face__text {
  font-family: var(--mono);
  font-size: 18px;
  letter-spacing: -0.01em;
}

.translation-face__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* If a future translation is too long to sit opposite `flip`, the second
     item drops to its own line rather than the first wrapping mid-phrase. */
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
}
/* A real <button> — this is the keyboard path for flipping the card. The
   negative margin cancels the padding so it sits exactly where the plain
   span used to, while still giving a comfortable hit and focus target. */
.translation-face__flip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  appearance: none;
  padding: 3px 6px;
  margin: -3px -6px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  transition: background 0.15s;
}
.translation-face--board .translation-face__flip:hover { background: var(--ink-10); }
.translation-face--eng .translation-face__flip:hover { background: var(--bone-15); }
/* teal-on-ink is too dim to serve as a focus ring on the dark face. */
.translation-face--eng .translation-face__flip:focus-visible { outline-color: var(--bone); }

/* --- progress dots --- */
.translation__dots {
  margin-top: 24px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.translation__dot {
  width: 10px;
  height: 4px;
  padding: 0;
  border: none;
  border-radius: 2px;
  background: var(--ink-20);
  cursor: pointer;
  transition: width 0.25s, background 0.15s;
}
.translation__dot.is-active { width: 28px; background: var(--ink); }

@media (max-width: 899px) {
  /* The bug this fixes: the second track resolved to 0px, so the whole panel
     — the signature interactive — was invisible below ~900px. */
  .translation__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .translation__panel { min-height: 0; }
}

@media (max-width: 639px) {
  .translation__rail-btn { padding: 16px 4px; grid-template-columns: 30px 1fr 18px; }
  .translation__rail-topic { font-size: 16px; }

  .translation__card { min-height: 300px; margin-top: 24px; }
  .translation-face { padding: 28px 24px 30px; min-height: 300px; gap: 18px; }
  .translation-face__topic { font-size: 21px; }
  .translation-face__text { font-size: 19px; }
  .translation-face--eng .translation-face__text { font-size: 15px; }
}


/* ===========================================================================
   Process
   =========================================================================== */

.process__flow {
  margin-top: var(--header-gap);
  position: relative;
}
.process__rule {
  position: absolute;
  top: 38px;
  left: 24px;
  right: 24px;
  height: 1px;
  background: var(--ink-10);
}
.process__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  position: relative;
}
.process-step {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.process-step__node-wrap {
  position: relative;
  height: 76px;
  display: flex;
  align-items: flex-start;
}
.process-step__node {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--bone);
  border: 1px solid var(--ink-20);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: var(--track-tight);
  color: var(--ink);
}
.process-step__duration {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--teal);
}
.process-step__title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 12px 0 16px;
  color: var(--ink);
}
.process-step__body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--slate);
  margin: 0;
  max-width: 360px;
  text-wrap: pretty;
}

@media (max-width: 899px) {
    /* The rule connects three columns; once they stack it connects nothing. */
  .process__rule { display: none; }
  .process__steps { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 639px) {
  .process-step__node-wrap { height: 60px; }
  .process-step__node { width: 60px; height: 60px; font-size: 13px; }
  .process-step__title { font-size: 24px; }
}


/* ===========================================================================
   Modes
   =========================================================================== */

.modes { margin-top: calc(var(--header-gap) + 12px); }
.modes__intro {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--slate);
  text-align: center;
  margin-bottom: 28px;
}
.modes__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.mode-card {
  background: var(--bone);
  border: 1px solid var(--ink-10);
  border-radius: var(--r-panel);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mode-card--accent { border-color: var(--teal); }
.mode-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.mode-card__tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--teal);
}
/* "Weeks" vs "Months to years" — the substantive difference between the two
   engagement models, so it has to be readable. Was --ink-20 at 1.49:1. */
.mode-card__duration {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: var(--track-tight);
  text-transform: uppercase;
  color: var(--slate);
}
.mode-card__title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
.mode-card__body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--slate);
  margin: 0;
  text-wrap: pretty;
}
.mode-card__rule {
  height: 1px;
  background: var(--ink-10);
  margin: 4px 0 2px;
}
.mode-card__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mode-card__point {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
}
.mode-card__point::before {
  content: "—";
  flex: 0 0 auto;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 13px;
}

@media (max-width: 899px) {
  .modes__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 639px) {
  .mode-card { padding: 26px 22px; }
  .mode-card__title { font-size: 22px; }
}


/* ===========================================================================
   Cases
   =========================================================================== */

.cases__grid {
  margin-top: var(--header-gap);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.case-card {
  background: var(--bone);
  border: 1px solid var(--ink-10);
  border-radius: var(--r-card);
  padding: 40px 34px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 440px;
  position: relative;
  overflow: hidden;
}
.case-card__index {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--slate);              /* was --ink-20 → 1.49:1, failed AA */
}
.case-card__sector {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--teal);
  padding-right: 64px;
}
.case-card__headline {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 27px;
  letter-spacing: -0.025em;
  line-height: 1.18;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
.case-card__body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate);
  /* holds the tag row to the bottom, replacing a spacer element */
  margin: 0 0 auto;
  text-wrap: pretty;
}
.case-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.case-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: var(--track-tight);
  text-transform: uppercase;
  color: var(--slate);
  border: 1px solid var(--ink-10);
  border-radius: var(--r-pill);
  padding: 6px 10px;
}

@media (max-width: 899px) {
  /* Three columns put these at 74px wide on a phone. */
  .cases__grid { grid-template-columns: minmax(0, 1fr); }
  .case-card { min-height: 0; }
}

@media (max-width: 639px) {
  .case-card { padding: 28px 24px; gap: 18px; }
  .case-card__headline { font-size: 23px; }
}


/* ===========================================================================
   Logos
   =========================================================================== */

.logos {
  background: var(--bone);
  padding: var(--band-pad-y) 0;
  border-top: 1px solid var(--ink-10);
  border-bottom: 1px solid var(--ink-10);
}
.logos__inner {
  display: grid;
  grid-template-columns: minmax(180px, 0.5fr) 1fr;
  gap: 48px;
  align-items: start;
}
.logos__note {
  margin: 16px 0 0;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--slate);
  max-width: 280px;
  text-wrap: pretty;
}
.logos__items {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.logo-chip {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--ink-10);
  border-radius: var(--r-pill);
  padding: 9px 16px;
  white-space: nowrap;
}

@media (max-width: 899px) {
  .logos__inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .logos__note { max-width: none; }
}

@media (max-width: 639px) {
  .logos__items { gap: 8px; }
  .logo-chip { font-size: 11px; padding: 7px 12px; }
}


/* ===========================================================================
   About
   =========================================================================== */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 80px;
  align-items: start;
}
.about__photo {
  margin-top: 28px;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--ink-10);
  background: var(--ink-10);
}
.about__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.about__name {
  margin-top: 24px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.about__role {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: var(--track-tight);
  text-transform: uppercase;
  color: var(--teal);
}
.about__credential {
  margin: 18px 0 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--slate);
  max-width: 340px;
  text-wrap: pretty;
}
.about__linkedin {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink-20);
  padding-bottom: 3px;
  transition: border-color 0.15s;
}
.about__linkedin:hover { border-bottom-color: var(--ink); }

.about__title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(44px, 5vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  color: var(--ink);
}
.about__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.about__para {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  color: var(--slate);
  margin: 0;
  max-width: 580px;
  text-wrap: pretty;
}
.about__para:first-child { color: var(--ink); }

.about__values {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  border-top: 1px solid var(--ink-10);
}
.about__value {
  padding: 24px 0;
  border-bottom: 1px solid var(--ink-10);
  display: grid;
  grid-template-columns: minmax(160px, 0.5fr) 1fr;
  gap: 24px;
  align-items: baseline;
}
.about__value-k {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: var(--track-tight);
  text-transform: uppercase;
  color: var(--teal);
}
.about__value-v {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  text-wrap: pretty;
}

@media (max-width: 899px) {
  .about__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .about__photo { max-width: 280px; }
}

@media (max-width: 639px) {
  .about__title { font-size: clamp(32px, 9vw, 44px); }
  .about__para { font-size: 16px; }
  .about__values { margin-top: 32px; }
  .about__value { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 20px 0; }
  .about__value-v { font-size: 16px; }
}


/* ===========================================================================
   CTA
   =========================================================================== */

.cta__inner { max-width: 880px; }
.cta__title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(48px, 6.2vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 24px 0;
  color: var(--bone);
  text-wrap: balance;
}
.cta__sub {
  font-family: var(--sans);
  font-size: 22px;
  line-height: 1.45;
  color: var(--bone-75);
  margin: 0;
  max-width: 620px;
  text-wrap: pretty;
}
.cta__actions {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 48px;
  flex-wrap: wrap;
}
.cta__email {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--bone-75);
  text-decoration: none;
  border-bottom: 1px solid var(--bone-30);
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}
.cta__email:hover { color: var(--bone); border-bottom-color: var(--bone); }

@media (max-width: 639px) {
  .cta__title { font-size: clamp(34px, 9vw, 48px); }
  .cta__sub { font-size: 18px; }
  .cta__actions { margin-top: 32px; gap: 20px; }
  .cta__actions .btn { flex: 1 1 100%; justify-content: center; }
}


/* ===========================================================================
   Footer
   =========================================================================== */

.footer {
  background: var(--ink);
  color: var(--bone);
  padding: 64px 0 36px;
}
.footer .lockup {
  color: var(--bone);
  --lockup-adv: var(--bone-70);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 44px;
}
.footer__tagline {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-50);
}
.footer__address {
  margin-top: 32px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
  color: var(--bone-75);
}
.footer__col-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--bone-50);
  margin-bottom: 20px;
}
.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__link {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--bone-85);
  text-decoration: none;
  transition: color 0.15s;
}
.footer__link:hover { color: var(--bone); }

.footer__bottom {
  border-top: 1px solid var(--bone-15);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: var(--track-tight);
  text-transform: uppercase;
  color: var(--bone-55);
}

@media (max-width: 899px) {
  .footer { padding: 72px 0 40px; }
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    padding-bottom: 48px;
  }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 639px) {
  .footer { padding: 56px 0 32px; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 10px; }
}
