/* ==========================================================================
   PinPredict — site stylesheet
   Design language: "precision instrument". Light near-white canvas, hairline
   rules, mitered/chevron geometry lifted from the logo mark, brand orange used
   as a scalpel rather than a coat of paint. Selected sections invert to a dark
   ground via .on-dark.
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */
:root {
  /* Brand orange. #EF4001 is the logo value, sampled from the square mark, but
     on the light ground it only reaches 3.6:1 as text — so UI orange is the
     deeper #C43400 (5.07:1) and the vivid value is reserved for the logo
     artwork and low-opacity background geometry, where contrast is moot. */
  --brand:      #C43400;
  --brand-hot:  #A82C00;
  --on-brand:   #FFFFFF;   /* text on a --brand fill */

  /* Background geometry. On the light ground, orange at low opacity turns
     salmon and reads soft, so the chevron watermark is a warm neutral here and
     orange only inside .on-dark, where it reads as a subtle glow. */
  --graphic:    #14120F;

  /* Light surfaces (default). Neutrals carry a slight warm bias toward the
     accent so they read as chosen rather than inherited. */
  --ink:          #F7F6F4;
  --surface-1:    #FFFFFF;
  --surface-2:    #EDEBE7;

  --fg:           #14120F;
  --fg-muted:     #4A453E;
  --fg-dim:       #6B655C;

  --line:         rgba(20, 18, 15, 0.14);
  --line-strong:  rgba(20, 18, 15, 0.28);
  --line-control: rgba(20, 18, 15, 0.48);  /* 3.2:1 — UI boundaries */

  --masthead-bg:       rgba(247, 246, 244, 0.82);
  --masthead-bg-stuck: rgba(247, 246, 244, 0.94);
  --masthead-shadow:   0 24px 40px -24px rgba(20, 18, 15, 0.34);
  --cta-wash:          rgba(196, 52, 0, 0.07);
  --chevron-op:        0.22;
  --cta-chevron-op:    0.1;

  /* Type */
  --font-display: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step-display: clamp(2.6rem, 6.6vw, 5.25rem);
  --step-h1:      clamp(2.25rem, 5vw, 3.75rem);
  --step-h2:      clamp(1.7rem, 3.1vw, 2.6rem);
  --step-h3:      clamp(1.1rem, 1.6vw, 1.3rem);
  --step-lead:    clamp(1.0625rem, 1.55vw, 1.375rem);
  --step-body:    1.0625rem;

  /* Rhythm */
  --gutter:       clamp(1.25rem, 5vw, 3rem);
  --measure:      1200px;
  --section-y:    clamp(4.5rem, 9vw, 8.5rem);
  --masthead-h:   4.75rem;

  --ease:         cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Inverted ground. Flips the whole token set, so no component needs a dark
   variant. Put it on any container: <section class="band on-dark">. */
.on-dark {
  --brand:      #EF4001;   /* the vivid logo orange clears AA on near-black */
  --brand-hot:  #FF5A21;
  --on-brand:   #0A0A0B;
  --graphic:    #EF4001;

  --ink:          #0A0A0B;
  --surface-1:    #101012;
  --surface-2:    #16161A;

  --fg:           #F4F4F5;
  --fg-muted:     #A1A1A8;
  --fg-dim:       #8A8A93;

  --line:         rgba(255, 255, 255, 0.09);
  --line-strong:  rgba(255, 255, 255, 0.17);
  --line-control: rgba(255, 255, 255, 0.34);

  --cta-wash:       rgba(239, 64, 1, 0.16);
  --chevron-op:     0.5;
  --cta-chevron-op: 0.16;

  background: var(--ink);
  color: var(--fg);
}

/* --- Reset / base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

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

::selection { background: var(--brand); color: var(--on-brand); }

/* --- Layout primitives -------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band {
  position: relative;
  background: var(--ink);
  color: var(--fg);
  padding-block: var(--section-y);
}
.band--tight  { padding-block: clamp(3rem, 6vw, 5rem); }
.band--hairline { border-top: 1px solid var(--line); }

.grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
}
.grid--split   { grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); }
.grid--thirds  { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }


/* --- Eyebrow label ------------------------------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin: 0 0 1.4rem;
}
.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: var(--brand);
  flex: none;
}
.eyebrow__num { color: var(--brand); }

/* --- Prose -------------------------------------------------------------- */
.lead {
  font-size: var(--step-lead);
  line-height: 1.5;
  color: var(--fg);
  max-width: 42ch;
  text-wrap: pretty;
}
.prose {
  color: var(--fg-muted);
  max-width: 62ch;
  text-wrap: pretty;
}
.prose > * + * { margin-top: 1.15em; }
.prose strong { color: var(--fg); font-weight: 500; }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  --btn-cut: 10px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  cursor: pointer;
  border: 0;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease),
              transform 0.22s var(--ease);
  /* Two opposite corners mitered — the logo's joint, at UI scale. */
  clip-path: polygon(
    var(--btn-cut) 0, 100% 0, 100% calc(100% - var(--btn-cut)),
    calc(100% - var(--btn-cut)) 100%, 0 100%, 0 var(--btn-cut)
  );
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--brand); color: var(--on-brand); }
.btn--primary:hover { background: var(--brand-hot); }

.btn--ghost {
  background: transparent;
  color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--line-control);
}
.btn--ghost:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--brand); }

.btn__arrow { transition: transform 0.22s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.25rem;
}

/* Inline text link with an animated rule */
.link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--brand);
  padding-bottom: 3px;
  background-image: linear-gradient(var(--brand), var(--brand));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  transition: background-size 0.28s var(--ease), color 0.2s var(--ease);
}
.link:hover { color: var(--brand-hot); background-size: 40% 1px; }
.link svg { transition: transform 0.22s var(--ease); }
.link:hover svg { transform: translateX(4px); }
.link--back:hover svg { transform: translateX(-4px); }

/* --- Header -------------------------------------------------------------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 0.85rem 1.25rem;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 600;
}
.skip:focus { left: 1rem; top: 1rem; }

.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
/* The translucent blur lives on a pseudo-element, NOT on .masthead itself.
   Any backdrop-filter other than `none` makes an element a containing block for
   fixed-position descendants — which would collapse the mobile nav drawer
   (position: fixed inside the header) to zero height. */
.masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--masthead-bg);
  backdrop-filter: blur(14px) saturate(150%);
  transition: background-color 0.3s var(--ease);
}
@supports not (backdrop-filter: blur(1px)) {
  .masthead::before { background: var(--ink); }
}
.masthead.is-stuck { border-bottom-color: var(--line); }
.masthead.is-stuck::before { background: var(--masthead-bg-stuck); }

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--masthead-h);
}

.brandmark { display: flex; align-items: center; flex: none; }
.brandmark img { width: 158px; height: auto; }

.nav { display: flex; align-items: center; gap: 0.35rem; }

.nav__link {
  position: relative;
  padding: 0.55rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 450;
  color: var(--fg-muted);
  transition: color 0.2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.15rem;
  height: 1px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.26s var(--ease);
}
.nav__link:hover { color: var(--fg); }
.nav__link:hover::after { transform: scaleX(1); }
/* "page" on the page itself; "true" on the section a sub-page belongs to. */
.nav__link[aria-current] { color: var(--fg); }
.nav__link[aria-current]::after { transform: scaleX(1); }


/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: none;
  border: 1px solid var(--line-control);
  color: var(--fg);
  cursor: pointer;
  flex: none;
}
.nav-toggle__bar {
  display: block;
  width: 1.15rem;
  height: 1.5px;
  margin: 0 auto;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle__bar + .nav-toggle__bar { margin-top: 4px; }
[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    /* Absolute against the sticky header, NOT fixed. Two reasons this is the
       robust form: `position: absolute` inside a positioned ancestor has no
       containing-block edge cases (backdrop-filter / transform / filter all
       change what `fixed` resolves against), and `top: 100%` needs no
       hard-coded header height. Height is content-driven, so there is no
       top/bottom pair that can ever resolve to zero and hide the menu. */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - var(--masthead-h));
    max-height: calc(100dvh - var(--masthead-h));
    overflow-y: auto;
    padding: 0.4rem var(--gutter) 1.6rem;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--masthead-shadow);
    transform: translateY(-0.75rem);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.24s var(--ease), transform 0.24s var(--ease),
                visibility 0.24s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__link {
    padding: 1.1rem 0;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--fg);
    border-bottom: 1px solid var(--line);
  }
  .nav__link::after { display: none; }
  .nav__link[aria-current] { color: var(--brand); }
  .nav__link:last-child { border-bottom: 0; }
  body.nav-open { overflow: hidden; }
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding-block: clamp(4.5rem, 11vw, 9.5rem);
  overflow: hidden;
  isolation: isolate;
}
.hero--tall { min-height: min(84vh, 46rem); }
.hero--mid  { min-height: min(70vh, 36rem); }

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
/* Nested mitered chevrons bleeding off the right edge. */
.hero__chevrons {
  position: absolute;
  top: 50%;
  right: -12%;
  width: min(88rem, 140%);
  translate: 0 -50%;
  color: var(--graphic);
  opacity: var(--chevron-op);
}
/* Faint drafting grid */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 6rem 6rem;
  mask-image: radial-gradient(ellipse 90% 70% at 20% 45%, #000 5%, transparent 72%);
  opacity: 0.55;
}

.hero__content { position: relative; max-width: 46rem; }

.hero__title {
  font-size: var(--step-display);
  letter-spacing: -0.032em;
}
.hero__title--sm { font-size: var(--step-h1); }
.hero__title .accent { color: var(--brand); }

.hero__sub {
  margin-top: 1.5rem;
  font-size: var(--step-lead);
  line-height: 1.5;
  color: var(--fg-muted);
  max-width: 40ch;
  text-wrap: pretty;
}

/* Page hero for interior pages */
.pagehead {
  position: relative;
  padding-block: clamp(4rem, 9vw, 7.5rem) clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
  isolation: isolate;
}
.pagehead__title { font-size: var(--step-h1); }
.pagehead__deck {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--brand);
  max-width: 34ch;
  text-wrap: balance;
}

/* --- Stat strip ---------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.stat {
  padding: 1.75rem 1.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--fg);
}
.stat__value .unit { color: var(--brand); }
.stat__label {
  margin-top: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

/* --- Cards --------------------------------------------------------------- */
.card {
  position: relative;
  padding: clamp(1.6rem, 2.6vw, 2.25rem);
  background: var(--surface-1);
  border: 1px solid var(--line);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease),
              transform 0.25s var(--ease);
}
/* Orange corner tick — a fragment of the mark's chevron. */
.card::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 14px;
  height: 14px;
  border-top: 2px solid var(--brand);
  border-right: 2px solid var(--brand);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.card:hover { border-color: var(--line-strong); background: var(--surface-2); transform: translateY(-3px); }
.card:hover::before { opacity: 1; }

.card__title { font-size: var(--step-h3); }
.card__body { margin-top: 0.8rem; color: var(--fg-muted); font-size: 0.98rem; }


/* --- Chevron-bulleted list ---------------------------------------------- */
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li {
  position: relative;
  padding: 1rem 0 1rem 2.25rem;
  border-bottom: 1px solid var(--line);
  color: var(--fg);
  font-size: 1.02rem;
}
.ticks li:first-child { border-top: 1px solid var(--line); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 1.45rem;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid var(--brand);
  border-right: 1.5px solid var(--brand);
  rotate: 45deg;
}

/* --- Pull statement ------------------------------------------------------ */
/* Boxless counterweight to a prose column: a heavy brand rule instead of a
   panel, so it reads as a statement rather than a callout. */
.pull {
  padding-top: 1.6rem;
  border-top: 2px solid var(--brand);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.95rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.028em;
  color: var(--fg);
  max-width: 26ch;
  text-wrap: balance;
}
.pull__meta {
  margin-top: 1.85rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.9;
  color: var(--fg-dim);
  max-width: 26ch;
}

/* --- Big statement ------------------------------------------------------- */
.statement {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 6.5rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.statement .accent { color: var(--brand); }
.statement__note {
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

/* --- Spread diagram (illustrative) -------------------------------------- */
.figure {
  border: 1px solid var(--line);
  background: var(--surface-1);
  padding: clamp(1.25rem, 2.5vw, 2rem);
}
.figure__caption {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--fg-dim);
  line-height: 1.7;
}
.figure svg { width: 100%; height: auto; }

/* --- Depth-of-market ladder --------------------------------------------- */
/* Mirrored orderbook: bids build leftward, asks rightward, both anchored on the
   centre axis. Two stacked bars per side — cumulative depth behind, level size
   in front — drawn as ::before/::after from inline --cum / --sz widths, which
   are data, not styling. Always sits on the inverted ground (.on-dark). */
.book {
  --book-bid:     #3DD598;      /* bid price text — 5.0:1 worst case, over bars */
  --book-ask:     #F08098;      /* ask price text — 4.5:1 worst case */
  --book-bid-rgb: 31, 169, 124;
  --book-ask-rgb: 210, 68, 92;
  --book-total:   #ADADB4;      /* cumulative column — 4.9:1 over the size bar */
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.book__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  padding-bottom: 0.9rem;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.book__hl { color: var(--brand); }

.book__scroll { overflow-x: auto; }
.book__inner { min-width: 20rem; }

.book__head,
.book__row { display: grid; grid-template-columns: 1fr 1fr; }
.book__head { border-block: 1px solid var(--line); }
.book__row + .book__row { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.book__row--touch { background: rgba(239, 64, 1, 0.05); }

.book__side {
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding-block: 0.46rem;
}
.book__side--bid {
  grid-template-columns: 3.2em 1fr 1fr;
  border-right: 1px solid var(--brand);
}
.book__side--ask { grid-template-columns: 1fr 1fr 3.2em; }
.book__head .book__side { padding-block: 0.6rem; }

/* Depth bars. Zero-width in the header, which sets no --cum / --sz. */
.book__side::before,
.book__side::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  pointer-events: none;
}
.book__side::before { width: var(--cum, 0); }
.book__side::after  { width: var(--sz, 0); }
.book__side--bid::before,
.book__side--bid::after { right: 0; }
.book__side--ask::before,
.book__side--ask::after { left: 0; }
.book__side--bid::before { background: rgba(var(--book-bid-rgb), 0.16); }
.book__side--bid::after  { background: rgba(var(--book-bid-rgb), 0.34); }
.book__side--ask::before { background: rgba(var(--book-ask-rgb), 0.16); }
.book__side--ask::after  { background: rgba(var(--book-ask-rgb), 0.34); }

/* Text rides above the bars. */
.book__side > span { position: relative; padding-inline: 0.5rem; }
.book__side--bid > :nth-child(2),
.book__side--bid > :nth-child(3),
.book__side--ask > :nth-child(3) { text-align: right; }

.book__h {
  font-size: 0.61rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.book__side--bid .book__px { color: var(--book-bid); }
.book__side--ask .book__px { color: var(--book-ask); }
.book__cum { color: var(--book-total); }
.book__sz  { color: var(--fg); font-weight: 500; }

@media (max-width: 560px) {
  .book { font-size: 0.66rem; }
  .book__side > span { padding-inline: 0.38rem; }
  .book__inner { min-width: 16rem; }
}

/* --- Roles (Careers) ---------------------------------------------------- */
.role {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem 2.5rem;
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
}
@media (min-width: 800px) {
  .role { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); }
}
.role__title {
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
}
.role__title a { transition: color 0.2s var(--ease); }
.role__title a:hover { color: var(--brand); }
.role__meta {
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.role__body { color: var(--fg-muted); max-width: 58ch; }

/* --- Role detail (job description) -------------------------------------- */
/* A job description is a long read: a rail carrying only the section label,
   beside one reading column. The body track and everything in it share a single
   42rem measure, so a paragraph and the bullet list under it end on the same
   right edge — left to their own devices .prose and .ticks each clamp to 62ch
   of a different font size, and the ragged edge between them is very visible. */
.grid--aside { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) {
  .grid--aside { grid-template-columns: minmax(0, 20rem) minmax(0, 42rem); }
}
.grid--aside .prose,
.grid--aside .ticks--jd { max-width: 42rem; }

/* Chevron list carrying full sentences rather than short phrases: the bold
   lead-in holds full contrast, the explanation drops back to muted. */
.ticks--jd li { color: var(--fg-muted); text-wrap: pretty; }
.ticks--jd strong { color: var(--fg); font-weight: 600; }

/* --- Callout / CTA panel ------------------------------------------------ */
.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(2.25rem, 5vw, 4rem);
  background:
    radial-gradient(120% 140% at 100% 0%, var(--cta-wash), transparent 58%),
    var(--surface-1);
  border: 1px solid var(--line);
}
.cta__title { font-size: var(--step-h2); max-width: 26ch; }
.cta__body { margin-top: 1.1rem; color: var(--fg-muted); max-width: 50ch; }
.cta__chevron {
  position: absolute;
  right: -3rem;
  bottom: -6rem;
  width: 22rem;
  color: var(--graphic);
  opacity: var(--cta-chevron-op);
  pointer-events: none;
}

/* --- Contact rows ------------------------------------------------------- */
.deflist { border-top: 1px solid var(--line); margin: 0; }
.deflist__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.35rem 2rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 700px) {
  .deflist__row { grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); align-items: baseline; }
}
.deflist__key {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.deflist__val { margin: 0; font-size: 1.05rem; color: var(--fg); }  /* <dd> ships 40px */
.deflist__val a { color: var(--brand); }
.deflist__val a:hover { color: var(--brand-hot); text-decoration: underline; text-underline-offset: 4px; }

/* Compact variant. A role page's facts are four short rows read at a glance, so
   the contact page's rhythm is too airy and its key column too wide for them. */
.deflist--tight .deflist__row { padding-block: 0.65rem; }
@media (min-width: 700px) {
  .deflist--tight .deflist__row { grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); }
}
.deflist--tight .deflist__val { font-size: 0.98rem; }

.mail {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4.2vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--brand);
  word-break: break-word;
}
.mail:hover { color: var(--brand-hot); }

/* --- Footer ------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: var(--fg);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer__top {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 800px) {
  .footer__top { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); }
}
.footer__logo img { width: 150px; }
.footer__tag { margin-top: 1.15rem; color: var(--fg-dim); font-size: 0.95rem; max-width: 30ch; }
.footer__heading {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin: 0 0 1.1rem;
}
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer__list a { color: var(--fg-muted); font-size: 0.95rem; }
.footer__list a:hover { color: var(--brand); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--fg-dim);
}

/* --- Scroll reveal ------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.07s; }
.reveal:nth-child(3) { transition-delay: 0.14s; }
.reveal:nth-child(4) { transition-delay: 0.21s; }
.reveal:nth-child(5) { transition-delay: 0.28s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* --- Headings & measure utilities --------------------------------------- */
.headline { font-size: var(--step-h2); }
.headline-lead {
  font-family: var(--font-display);
  font-size: var(--step-lead);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.025em;
  max-width: 26ch;
  text-wrap: balance;
}
.u-clamp-sm { max-width: 24ch; }
.u-clamp-md { max-width: 52ch; }
.u-clamp-lg { max-width: 46rem; }
.accent { color: var(--brand); }

/* --- Utilities ---------------------------------------------------------- */
.u-mt-sm { margin-top: 1.25rem; }
.u-mt    { margin-top: clamp(2rem, 4vw, 3rem); }
.u-mt-lg { margin-top: clamp(3rem, 6vw, 5rem); }
