/* ==========================================================================
   digitaladvisors.io — Digital Advisors, LLC
   One stylesheet for the whole site.

   Register: instrument panel, not brochure. Near-black canvas, one restrained
   steel accent used in doses you have to look for, hairline rules, monospace
   micro-labels carrying section numbers, and a display face set tight.
   Nothing here is decorative for its own sake — every motion in the site is
   either revealing structure or showing that something is alive.

   Motion policy: NO blanket `* { animation: none }` reduce-motion rule. That
   pattern has bitten us before — it freezes legitimate indicators along with
   the ornament. Each animated class opts out individually and lands on its
   final state immediately.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Palette measured off palantir.com's computed styles, ranked by painted
     area — html and body are #ffffff, the large surfaces are light greys, the
     primary text is #1e2124 rather than black, and there is no chromatic
     accent anywhere in the top eight. The site is light-based accordingly;
     dark is punctuation, used in two places, and there is no accent hue. */
  --bg:        #ffffff;
  --bg-2:      #f3f3f3;
  --bg-3:      #efefef;
  --panel:     #f3f3f3;
  --panel-2:   #e9e9e9;

  --ink:       #1e2124;
  --ink-2:     #4d5257;
  /* Palantir's own secondary grey is #767676, which clears AA on white (4.54)
     and fails it on both of our light surfaces — 4.09 on #f3f3f3, 3.95 on
     #efefef. These are the nearest values that clear 4.5 on all three, so a
     label reads the same wherever a band puts it. ink-3 and ink-4 are close
     together on purpose: the hierarchy between them is carried by size and
     tracking, which survives a contrast floor; a lighter grey does not. */
  --ink-3:     #6b6b6b;   /* 5.33 white · 4.80 #f3f3f3 · 4.63 #efefef */
  --ink-4:     #666666;   /* 5.74 white · 5.17 #f3f3f3 · 4.99 #efefef */

  --line:        #dbdbdb;
  --line-2:      #c9c9c9;
  --line-strong: #aaaaaa;

  /* The dark punctuation band, and its type ramp. */
  --dark:      #14171a;
  --dark-ink:  #ffffff;
  --dark-2:    #b6bcc4;
  --dark-3:    #9aa0a8;
  --dark-line:        rgba(255, 255, 255, 0.14);
  --dark-line-strong: rgba(255, 255, 255, 0.30);

  /* No accent hue. Emphasis is ink at full strength; aliveness comes from
     motion, not colour. Kept as tokens so the intent is legible rather than
     scattered as literals. */
  --accent:     #1e2124;
  --accent-dim: rgba(30, 33, 36, 0.22);
  --accent-ink: #1e2124;

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  --gutter: clamp(20px, 5vw, 72px);
  --measure: 34em;
  --max: 1320px;

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

/* --------------------------------------------------------------- reset -- */

*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }

html {
  scroll-behavior: smooth;
  /* the sticky header must not sit on top of an anchored heading */
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.02rem);
  line-height: 1.68;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: rgba(30, 33, 36, 0.16); color: var(--ink); }

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

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--bg);
  padding: 12px 18px; font: 500 0.8rem/1 var(--mono);
}
.skip:focus { left: 12px; top: 12px; }

/* -------------------------------------------------------------- layout -- */

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 78ch; }

section { position: relative; }

.band { padding-block: clamp(72px, 11vh, 148px); border-top: 1px solid var(--line); }
.band--flush { border-top: 0; }
.band--tight { padding-block: clamp(52px, 7vh, 92px); }
.band--panel { background: var(--bg-2); }

/* The deepest of the three light surfaces. Used once, for the record of what
   has actually been done — a page of evidence should read like paper. */
.band--deep { background: var(--bg-3); }

/* Dark is punctuation, not the canvas. Exactly two on the site: the platform
   band, where Emma should read as an event rather than another row, and the
   footer. Everything inside re-points at the dark type ramp. */
.band--dark {
  background: var(--dark);
  color: var(--dark-2);
  border-top: 0;
}
.band--dark h1, .band--dark h2, .band--dark h3, .band--dark h4,
.band--dark strong, .band--dark b { color: var(--dark-ink); }
.band--dark .eyebrow, .band--dark .kicker { color: var(--dark-3); }
.band--dark .eyebrow::before { background: var(--dark-line-strong); }
.band--dark .lede { color: var(--dark-2); }
.band--dark .rule { background: var(--dark-line); }
.band--dark a.inline { color: var(--dark-ink); border-bottom-color: var(--dark-line-strong); }
.band--dark a.inline:hover { border-bottom-color: var(--dark-ink); }
.band--dark .cols, .band--dark .plat { background: var(--dark-line); border-color: var(--dark-line); }
.band--dark .cols > *, .band--dark .plat__c { background: var(--dark); }
.band--dark .cols p, .band--dark .plat__c p { color: var(--dark-3); }
.band--dark .btn { border-color: var(--dark-line-strong); color: var(--dark-ink); }
.band--dark .btn::after { background: var(--dark-ink); }
.band--dark .btn:hover { color: var(--dark); border-color: var(--dark-ink); }

/* ------------------------------------------------------------ typography -- */

h1, h2, h3, h4 {
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.028em;
  line-height: 1.06;
  text-wrap: balance;
}

.display {
  font-size: clamp(2.35rem, 1rem + 5.4vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.042em;
  line-height: 0.99;
}

h2, .h2 {
  font-size: clamp(1.75rem, 1rem + 2.6vw, 3.1rem);
  letter-spacing: -0.034em;
  line-height: 1.05;
}

h3, .h3 {
  font-size: clamp(1.12rem, 0.98rem + 0.6vw, 1.44rem);
  letter-spacing: -0.022em;
  line-height: 1.24;
}

h4, .h4 {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--ink);
}

.lede {
  font-size: clamp(1.02rem, 0.94rem + 0.42vw, 1.24rem);
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 46ch;
  font-weight: 300;
}

p + p { margin-top: 1.05em; }
p { max-width: var(--measure); }
.wide p { max-width: none; }

strong, b { color: var(--ink); font-weight: 500; }


a.inline {
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
  transition: border-color 220ms var(--ease), color 220ms var(--ease);
}
a.inline:hover { border-bottom-color: var(--accent); color: #fff; }

/* the monospace micro-label that heads every section, carrying its number */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font: 500 0.66rem/1.5 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: clamp(18px, 2.6vh, 28px);
}
.eyebrow::before {
  content: '';
  width: 26px; height: 1px;
  background: var(--line-strong);
  flex: none;
}

.rule { height: 1px; background: var(--line); border: 0; }

.kicker {
  font: 500 0.68rem/1.5 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.mono { font-family: var(--mono); }

/* ------------------------------------------------------------- header -- */

.hdr {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms var(--ease), background 300ms var(--ease);
}
.hdr.is-stuck { border-bottom-color: var(--line); background: rgba(255, 255, 255, 0.93); }

.hdr__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 68px;
}

.mark { display: flex; align-items: center; gap: 11px; flex: none; }
.mark__glyph { width: 20px; height: 20px; flex: none; color: var(--ink); }
.mark__word {
  font: 500 0.94rem/1 var(--sans);
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}
.mark__word span { color: var(--ink-3); font-weight: 400; }

.nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); }
.nav a {
  font: 400 0.82rem/1 var(--sans);
  letter-spacing: -0.006em;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color 200ms var(--ease);
}
.nav a:hover, .nav a[aria-current='page'] { color: var(--ink); }

.nav__cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  font: 500 0.78rem/1 var(--mono) !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink) !important;
  transition: border-color 220ms var(--ease), background 220ms var(--ease);
}
.nav__cta:hover { border-color: var(--ink); background: rgba(30,33,36,0.04); }

.nav__count {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--accent-ink);
}

.burger {
  display: none;
  width: 40px; height: 40px; margin-right: -8px;
  background: none; border: 0; cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.burger span { display: block; width: 18px; height: 1px; background: var(--ink); position: relative; transition: background 180ms; }
.burger span::before, .burger span::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 1px; background: var(--ink);
  transition: transform 260ms var(--ease), top 200ms var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded='true'] span { background: transparent; }
.burger[aria-expanded='true'] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded='true'] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .burger { display: flex; }
  .nav {
    position: fixed; inset: 68px 0 auto 0;
    /* opaque: the sheet overlays page content, and the page is light now */
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    transform: translateY(-8px);
    opacity: 0; pointer-events: none;
    transition: opacity 220ms var(--ease), transform 220ms var(--ease);
    max-height: calc(100dvh - 68px); overflow-y: auto;
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav__cta { margin-top: 18px; justify-content: center; border-bottom: 1px solid var(--line-2) !important; }
}

/* --------------------------------------------------------------- hero -- */

.hero { position: relative; min-height: min(94vh, 900px); display: flex; align-items: center; overflow: hidden; }
.hero--short { min-height: 0; padding-block: clamp(76px, 13vh, 168px); align-items: flex-end; }

/* the generative field sits behind everything, masked out at the bottom so
   type never has to fight it */
.field {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 0;
  transition: opacity 2400ms var(--ease);
  /* Ink on white has none of the forgiveness light-on-black had: a stray node
     behind the headline reads as dirt, not atmosphere. So the field is held to
     the right of the measure and falls off hard. */
  -webkit-mask-image: radial-gradient(78% 86% at 82% 40%, #000 14%, transparent 68%);
          mask-image: radial-gradient(78% 86% at 82% 40%, #000 14%, transparent 68%);
}
.field.is-on { opacity: 1; }

.hero__in { position: relative; z-index: 2; width: 100%; }

/* The headline gets the whole measure to itself; the lede and the meta strip
   share the row beneath it. Splitting the hero into columns first was what
   forced a three-line headline to wrap into five. */
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.72fr);
  gap: clamp(26px, 4vw, 72px) clamp(28px, 5vw, 80px);
  align-items: end;
  margin-top: clamp(24px, 5vh, 56px);
}
.hero__head { grid-column: 1 / -1; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; align-items: start; } }

.hero__sub { max-width: 46ch; }
.hero__head .hero__sub { margin-top: clamp(20px, 3vh, 32px); }

.hero__meta {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: grid; gap: 14px;
}
.hero__meta dt { font: 500 0.62rem/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-4); }
.hero__meta dd { font-size: 0.88rem; color: var(--ink-2); margin-top: 5px; }

.hero__foot {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  border-top: 1px solid var(--line);
}
.hero__foot .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: 54px;
  font: 400 0.68rem/1 var(--mono);
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-4);
}
@media (max-width: 620px) { .hero__foot { display: none; } }

/* a small live indicator — the one place the accent is allowed to pulse */
.pip { display: inline-flex; align-items: center; gap: 8px; }
.pip::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-dim);
  animation: pip 2600ms var(--ease) infinite;
}
@keyframes pip {
  0%   { box-shadow: 0 0 0 0 var(--accent-dim); }
  70%  { box-shadow: 0 0 0 7px rgba(30,33,36,0); }
  100% { box-shadow: 0 0 0 0 rgba(30,33,36,0); }
}

/* ------------------------------------------------------- reveal system -- */

/* Every revealed element ships in its final state and is only pulled back
   when JS confirms it can animate. No JS, no motion preference, no flash of
   invisible content. */
.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 780ms var(--ease), transform 780ms var(--ease);
  transition-delay: var(--d, 0ms);
}

/* a hairline that draws itself across as the section arrives */
.js .draw { transform: scaleX(0); transform-origin: left center; }
.js .draw.is-in { transform: scaleX(1); transition: transform 1100ms var(--ease); transition-delay: var(--d, 0ms); }

/* headline lines that rise out of a clip — the one piece of type choreography */
.lines { display: block; }
.lines .ln { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.js .lines .ln > span { display: block; transform: translateY(102%); }
.js .lines.is-in .ln > span {
  transform: none;
  transition: transform 1000ms var(--ease);
  transition-delay: calc(var(--i, 0) * 92ms);
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal.is-in { opacity: 1; transform: none; transition: none; }
  .js .draw, .js .draw.is-in { transform: none; transition: none; }
  .js .lines .ln > span, .js .lines.is-in .ln > span { transform: none; transition: none; }
  .pip::before { animation: none; }
  .field { transition: none; }
}

/* --------------------------------------------------------------- grids -- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 88px);
  align-items: start;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 34px; } }

.split__head { position: sticky; top: 104px; }
@media (max-width: 900px) { .split__head { position: static; } }

.cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: clamp(34px, 5vh, 58px);
}
.cols > * { background: var(--bg); padding: clamp(22px, 3vw, 34px); }
.band--panel .cols > * { background: var(--bg-2); }

/* ------------------------------------------------- capability entries -- */

.caps { border-top: 1px solid var(--line); margin-top: clamp(30px, 5vh, 56px); }

.cap {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(16px, 3vw, 46px);
  padding-block: clamp(26px, 4vh, 44px);
  border-bottom: 1px solid var(--line);
  align-items: start;
}
@media (max-width: 860px) {
  .cap { grid-template-columns: 1fr; gap: 12px; }
  .cap__n { color: var(--ink-4); }
}
.cap__n { font: 500 0.7rem/1.4 var(--mono); letter-spacing: 0.16em; color: var(--ink-4); padding-top: 0.42em; }
.cap__body p { max-width: 52ch; }
.cap__out {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem; color: var(--ink-3);
}
.cap__out b { color: var(--ink-2); font-weight: 500; }

/* ---------------------------------------------------------- the method -- */

.phases { position: relative; margin-top: clamp(34px, 5vh, 60px); }

/* the spine: a hairline that fills as you travel down the phases */
.phases__spine {
  position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px;
  background: var(--line);
}
.phases__spine i {
  position: absolute; left: 0; top: 0; width: 1px; height: 0;
  background: linear-gradient(180deg, var(--ink), rgba(30,33,36,0.18));
  will-change: height;
}
@media (max-width: 720px) { .phases__spine { left: 0; } }

.phase {
  position: relative;
  padding-left: clamp(26px, 4vw, 54px);
  padding-block: clamp(22px, 3.4vh, 38px);
  border-bottom: 1px solid var(--line);
}
.phase:last-child { border-bottom: 0; }

.phase::before {
  content: '';
  position: absolute; left: -3px; top: calc(clamp(22px, 3.4vh, 38px) + 0.62em);
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line-strong);
  transition: background 420ms var(--ease), border-color 420ms var(--ease), box-shadow 420ms var(--ease);
}
.band--panel .phase::before { background: var(--bg-2); }
.band--dark .phase::before { background: var(--dark); border-color: var(--dark-line-strong); }
.band--dark .phase.is-lit::before { background: var(--dark-ink); border-color: var(--dark-ink); }
.phase.is-lit::before {
  background: var(--accent); border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(30,33,36,0.10);
}
@media (prefers-reduced-motion: reduce) { .phase::before { transition: none; } }

.phase__n { font: 500 0.66rem/1 var(--mono); letter-spacing: 0.2em; color: var(--ink-4); }
.phase h3 { margin-top: 12px; }
.phase p { margin-top: 10px; max-width: 58ch; }

/* --------------------------------------------------------- the record -- */

/* Exactly six tiles, so the columns are declared rather than auto-fitted —
   auto-fit left a lone tile on its own row with the grid's own background
   showing through the empty cells, which read as a rendering fault. */
.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
  margin-top: clamp(32px, 5vh, 54px);
}
@media (min-width: 560px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .stats { grid-template-columns: repeat(3, 1fr); } }

.stat { background: var(--bg-3); padding: clamp(20px, 2.6vw, 30px); }
.stat__n {
  font: 300 clamp(2rem, 1.2rem + 2.4vw, 3.1rem)/1 var(--sans);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  display: flex; align-items: baseline; gap: 2px;
}
.stat__n .u { font-size: 0.42em; letter-spacing: 0; color: var(--ink-3); margin-left: 6px; }
.stat__n .u--sym { font-size: 0.5em; margin-left: 0; color: var(--ink); }
.stat__l { margin-top: 12px; font-size: 0.86rem; line-height: 1.5; color: var(--ink-2); max-width: 30ch; }

.note {
  margin-top: clamp(28px, 4vh, 44px);
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
  font-size: 0.84rem; line-height: 1.6; color: var(--ink-3);
  max-width: 74ch;
}
.note b { color: var(--ink); }

/* ---------------------------------------------------------- platform -- */

.plat {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
  margin-top: clamp(32px, 5vh, 54px);
}
.plat__c { background: var(--bg); padding: clamp(20px, 2.6vw, 30px); }
.band--panel .plat__c { background: var(--bg-2); }
.band--deep .cols > *, .band--deep .plat__c { background: var(--bg-3); }
.plat__c h4 { margin-bottom: 9px; }
.plat__c p { font-size: 0.88rem; color: var(--ink-3); max-width: none; }

.boundary {
  margin-top: clamp(34px, 5vh, 56px);
  border: 1px solid var(--line-2);
  border-left: 2px solid currentColor;
  padding: clamp(22px, 3vw, 32px);
  background: transparent;
}
.boundary .kicker { color: var(--ink); }
/* .boundary sets its own colours, so it outranks the generic .band--dark
   rules and has to be re-pointed explicitly — it was rendering ink-on-ink. */
.band--dark .boundary { border-color: var(--dark-line-strong); border-left-color: var(--dark-ink); }
.band--dark .boundary .kicker { color: var(--dark-ink); }
.band--dark .boundary p { color: var(--dark-2); }
.boundary p { margin-top: 12px; max-width: 62ch; color: var(--ink-2); }

/* ----------------------------------------------------------- careers -- */

.roles { border-top: 1px solid var(--line); margin-top: clamp(32px, 5vh, 54px); }

.role {
  display: block;
  border-bottom: 1px solid var(--line);
  padding-block: clamp(24px, 3.4vh, 38px);
  position: relative;
  transition: background 300ms var(--ease);
}
a.role:hover { background: rgba(30,33,36,0.028); }
a.role:hover .role__go { transform: translateX(4px); color: var(--ink); }

.role__in {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  gap: clamp(14px, 3vw, 40px);
  align-items: center;
  padding-inline: clamp(0px, 1.4vw, 18px);
}
@media (max-width: 780px) {
  .role__in { grid-template-columns: 1fr auto; gap: 10px 18px; }
  .role__n { grid-column: 1 / -1; }
}

.role__n { font: 500 0.7rem/1 var(--mono); letter-spacing: 0.16em; color: var(--ink-4); }
.role__t { font-size: clamp(1.1rem, 0.98rem + 0.6vw, 1.5rem); letter-spacing: -0.026em; color: var(--ink); }
.role__m { margin-top: 8px; font: 400 0.76rem/1.5 var(--mono); letter-spacing: 0.04em; color: var(--ink-3); }
.role__go { font-size: 1.1rem; color: var(--ink-3); transition: transform 300ms var(--ease), color 300ms var(--ease); }

/* role detail page */
.doc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 250px); gap: clamp(30px, 5vw, 72px); align-items: start; }
@media (max-width: 940px) { .doc { grid-template-columns: 1fr; } }

.doc__aside { position: sticky; top: 104px; border: 1px solid var(--line); padding: 22px; background: var(--bg-2); }
@media (max-width: 940px) { .doc__aside { position: static; } }
.doc__aside dl { display: grid; gap: 15px; }
.doc__aside dt { font: 500 0.6rem/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-4); }
.doc__aside dd { font-size: 0.87rem; color: var(--ink-2); margin-top: 5px; }

.doc h3 { margin-top: clamp(34px, 5vh, 54px); padding-top: 22px; border-top: 1px solid var(--line); }
.doc h3:first-of-type { margin-top: clamp(26px, 4vh, 40px); }
.doc p { margin-top: 14px; }

.ticks { margin-top: 16px; display: grid; gap: 11px; }
.ticks li { position: relative; padding-left: 24px; max-width: 62ch; font-size: 0.94rem; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 0.66em;
  width: 9px; height: 1px; background: var(--line-strong);
}
.ticks--hot li::before { background: var(--accent); }

.callout {
  margin-top: clamp(30px, 4vh, 46px);
  border: 1px solid var(--line);
  padding: clamp(20px, 3vw, 28px);
  background: var(--bg-2);
}
.callout .kicker { color: var(--ink-2); }
.callout p { margin-top: 11px; font-size: 0.92rem; }

/* -------------------------------------------------------------- button -- */

.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(26px, 4vh, 40px); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  font: 500 0.78rem/1 var(--mono);
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  position: relative; overflow: hidden;
  transition: border-color 260ms var(--ease), color 260ms var(--ease);
}
.btn > * { position: relative; z-index: 1; }
.btn::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform 380ms var(--ease);
}
.btn:hover { color: var(--bg); border-color: var(--ink); }
.btn:hover::after { transform: none; }
.btn--solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--solid::after { background: transparent; }
.btn--solid:hover { color: var(--bg); opacity: 0.86; }
@media (prefers-reduced-motion: reduce) {
  .btn::after { transition: none; }
  .btn:hover::after { transform: translateY(101%); }
  .btn:hover { color: var(--ink); background: rgba(30,33,36,0.06); }
}


/* --------------------------------------------------------------- CTA --- */

.cta { text-align: left; }
.cta .display { max-width: 16ch; }

/* ------------------------------------------------------------- footer -- */

.ftr {
  border-top: 0;
  padding-block: clamp(46px, 7vh, 78px) 30px;
  background: var(--dark);
  color: var(--dark-2);
}

.ftr__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(140px, 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.ftr h5 { font: 500 0.62rem/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--dark-3); margin-bottom: 16px; font-weight: 500; }
.ftr ul { display: grid; gap: 11px; }
.ftr ul a { font-size: 0.88rem; color: var(--dark-2); transition: color 200ms var(--ease); }
.ftr ul a:hover { color: var(--dark-ink); }
.ftr__about p { font-size: 0.88rem; color: var(--dark-3); max-width: 38ch; margin-top: 14px; }

.ftr__base {
  margin-top: clamp(38px, 6vh, 64px); padding-top: 22px;
  border-top: 1px solid var(--dark-line);
  display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between;
  font: 400 0.68rem/1.6 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dark-3);
}

/* --------------------------------------------------------------- misc -- */

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag {
  font: 400 0.66rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3); border: 1px solid var(--line); padding: 7px 10px; border-radius: 2px;
}

.crumb { font: 400 0.7rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 22px; }
.crumb a { color: var(--ink-3); }
.crumb a:hover { color: var(--ink); }

.err { min-height: 62vh; display: flex; align-items: center; }

/* ------------------------------------------------- grid column counts -- */
/* .cols and .plat paint their 1px gaps with the container's own background,
   so a row the items don't fill shows as a grey slab. auto-fit cannot promise
   a full last row, so the count is declared per item-count instead. These
   live at the END of the file deliberately: the base .plat rule is declared
   further up, and on equal specificity the later rule wins. */
@media (min-width: 620px)  { .cols--n4, .plat--n4, .plat--n6 { grid-template-columns: repeat(2, 1fr); } }
/* --n3 skips the two-column step — three items in two columns is the same
   empty-cell bug one breakpoint down. */
@media (min-width: 980px)  { .cols--n3, .plat--n3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px)  { .plat--n6 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1160px) { .cols--n4, .plat--n4 { grid-template-columns: repeat(4, 1fr); } }

/* --------------------------------------------------------------- form -- */

.form { margin-top: clamp(28px, 4vh, 44px); max-width: 44rem; }

.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 640px) { .form__grid { grid-template-columns: 1fr; } }

.fld { display: flex; flex-direction: column; gap: 8px; }
.fld--wide { grid-column: 1 / -1; }

.fld > label {
  font: 500 0.66rem/1 var(--mono);
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3);
  display: flex; gap: 8px; align-items: baseline;
}
.fld .opt { text-transform: none; letter-spacing: 0.04em; color: var(--ink-4); }

.fld input,
.fld select,
.fld textarea {
  font: 400 0.95rem/1.5 var(--sans);
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 2px;
  padding: 12px 13px;
  width: 100%;
  transition: border-color 200ms var(--ease);
  -webkit-appearance: none; appearance: none;
}
.fld select {
  /* the native arrow is drawn per-platform and never matches; draw our own */
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%),
                    linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
.fld textarea { resize: vertical; min-height: 9.5rem; }
.fld input:hover, .fld select:hover, .fld textarea:hover { border-color: var(--line-strong); }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--ink); outline: none; }
.fld input::placeholder, .fld textarea::placeholder { color: var(--ink-4); }

/* The honeypot. Hidden from sight and from assistive tech, but a naive bot
   reads the DOM and fills it — which is the whole signal. Not `display:none`:
   some bots skip those.

   NB the class is `.fld`, not `.field`: `.field` is already the hero canvas
   (position:absolute; inset:0), and reusing the name pulled every form field
   out of the grid. Caught by measuring the grid's height, which was 0 while
   the inputs measured 1440px wide — the screenshot just looked like an empty
   column. */
.fld--trap {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden; opacity: 0; pointer-events: none;
}

.form__foot { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }

.form__note { font-size: 0.82rem; line-height: 1.6; color: var(--ink-3); max-width: 46ch; }

/* One status line for the whole form. It must never say "sent" unless the
   server confirmed delivery — see partnership.js. */
.form__status {
  margin-top: 20px; padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-left: 2px solid var(--ink);
  font-size: 0.9rem; line-height: 1.6;
  display: none;
}
.form__status.is-on { display: block; }
.form__status.is-bad { border-left-color: #a3302b; }
.form__status b { color: var(--ink); }

.btn[disabled] { opacity: 1; cursor: progress; }
.btn[aria-busy='true'] { color: var(--ink-3); }

/* An email address is data, not a headline. It sits in a heading slot on the
   contact page, so it needs the structure without the display treatment —
   heading tracking at heading size makes a 23-character address dominate the
   column and read as a banner. */
.h-addr {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.35;
  overflow-wrap: anywhere;   /* never let it push the column wide */
}
