/* ============================================================
   Tokens — from DESIGN.md, with the colour taxonomy remapped
   from GSAP's tool set to this person's four disciplines.
   ============================================================ */
:root {
  /* surfaces */
  --ink:    #0e100f;
  --panel:  #191919;
  --cream:  #fffce1;
  --muted:  #7c7c6f;   /* mono label layer only */
  --prose:  #d8d5c0;   /* running text: 12.9:1 on the canvas */
  --hair:   #42433d;

  /* discipline hues — one per discipline, never reused */
  --blue:   #00bae2;   /* Interface */
  --pink:   #fec5fb;   /* Motion    */
  --lilac:  #9d95ff;   /* Systems   */
  --orange: #ff8709;   /* Build     */

  /* brand green — availability + the single CTA stroke, nothing else */
  --green:    #0ae448;
  --green-lt: #abff84;

  /* type */
  --display: 'Cabinet Grotesk', 'General Sans', ui-sans-serif, system-ui, sans-serif;
  --body:    'General Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --t-caption: 14px;
  --t-body-sm: 16px;
  --t-body:    19px;
  --t-body-lg: clamp(19px, 1.5vw, 23px);
  --t-sub:     clamp(24px, 2.6vw, 34px);
  --t-h-sm:    clamp(30px, 4vw, 44px);
  --t-h:       clamp(38px, 6.2vw, 66px);
  --t-h-lg:    clamp(46px, 8.4vw, 101px);
  --t-display: clamp(58px, 15.2vw, 224px);

  /* layout */
  --page: 1280px;
  --gut:  clamp(20px, 5vw, 64px);
  --sec:  clamp(88px, 12vw, 160px);
}

/* ============================================================ reset */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  /* keep the clip on <html>: overflow-x on <body> turns body into a
     scroll container and breaks position:sticky in Chromium */
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--body);
  font-size: var(--t-body);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, dl, dd, ul, figure { margin: 0; }
ul { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
img { max-width: 100%; }
::selection { background: var(--cream); color: var(--ink); }

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

.skip {
  position: absolute; left: -9999px; top: 12px; z-index: 100;
  background: var(--cream); color: var(--ink);
  padding: 10px 18px; border-radius: 100px;
  font: 500 var(--t-body-sm)/1 var(--body);
}
.skip:focus { left: 12px; }

/* shared inner width */
.nav__inner, .hero, .strip, .section, .contact, .footer__inner {
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gut);
}

/* ============================================================ eyebrow
   The { curly bracket } signature from DESIGN.md — every section
   is introduced by it, in mono so the brackets read as code. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  letter-spacing: 0.01em;
}
.eyebrow__brace {
  font-size: clamp(33px, 3.6vw, 42px);   /* the 28px brace size, x1.5 again */
  font-weight: 600;
  line-height: 1;
  color: var(--muted);
}
.eyebrow__text {
  font-size: clamp(15px, 1.6vw, 19px);   /* the 28px text size, ÷1.5 */
  font-weight: 600;
  color: var(--cream);                    /* matches heading colour, not the muted label colour */
}

/* ============================================================ pills
   Outlined only. The one chromatic escalation is the green stroke. */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px;
  border: 1px solid var(--cream);
  border-radius: 100px;
  font-family: var(--body);
  font-size: 17px; font-weight: 600; line-height: 1.05;
  color: var(--cream);
  background: transparent;
  transition: opacity .25s ease, transform .25s ease;
}
.pill:hover { opacity: .78; transform: translateY(-1px); }

.pill--brand {
  border-color: transparent;
  background:
    linear-gradient(var(--ink), var(--ink)) padding-box,
    linear-gradient(114.41deg, var(--green) 20.74%, var(--green-lt) 65.5%) border-box;
  border: 1.5px solid transparent;
}
.pill--lg { padding: 18px 32px; font-size: clamp(17px, 2vw, 23px); }

/* ============================================================ nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.nav.is-stuck { border-bottom-color: var(--hair); }

/* the resting-state separator: inset from the viewport edges (same gutters
   as every section), rather than the full-bleed line that takes over once
   the nav is stuck against actively-scrolling content */
.nav__rule {
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.nav__rule span {
  display: block;
  height: 1px;
  background: var(--hair);
  opacity: 1;
  transition: opacity .3s ease;
}
.nav.is-stuck .nav__rule span { opacity: 0; }
.nav__inner {
  display: flex; align-items: center; gap: 24px;
  padding-block: 16px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 40px);   /* full 2x on desktop, a safer bump on narrow screens */
  font-weight: 700; letter-spacing: -0.02em;
  margin-right: auto;
}

.nav__links { display: flex; gap: 4px; }
.nav__links a {
  padding: 10px 14px;
  font-size: var(--t-body);
  font-weight: 600;
  color: var(--muted);
  transition: color .2s ease;
}
.nav__links a:hover { color: var(--cream); }

.nav__toggle {
  display: none;
  width: 40px; height: 40px; padding: 0;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.nav__toggle span {
  display: block; width: 20px; height: 1px; background: var(--cream);
  transition: transform .3s ease, opacity .3s ease;
}
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

.nav__mobile {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--hair);
  padding: 8px var(--gut) 20px;
}
.nav__mobile[hidden] { display: none; }
.nav__mobile a {
  padding: 14px 0;
  font-size: var(--t-sub);
  font-family: var(--display); font-weight: 700; letter-spacing: -0.02em;
  border-bottom: 1px solid var(--hair);
}
.nav__mobile a:last-child { border-bottom: 0; color: var(--green-lt); }

/* ============================================================ hero */
.hero {
  padding-top: clamp(56px, 9vw, 120px);
  padding-bottom: clamp(48px, 7vw, 96px);
}
.hero__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--t-display);
  line-height: 0.88;
  letter-spacing: -0.035em;
  margin-top: clamp(20px, 3vw, 40px);
}
.hero__second { display: block; color: var(--cream); }

/* the split-text unit */
.split { display: block; }
.split .ch { display: inline-block; will-change: transform, opacity; }

/* ── signature: the selection frame ─────────────────────────
   A hairline bounding box with four handles and a mono chip that
   prints the word's real measured pixel size. Design object → live text. */
.selectable {
  position: relative;
  display: inline-block;
  padding: 0 .06em;
}
.selectable::before {
  content: "";
  position: absolute; inset: 4% -2px 14% -2px;
  border: 1px solid var(--blue);
  opacity: 0;
  pointer-events: none;
}
.selectable.is-selected::before { opacity: 1; }
.selectable::after {
  content: "";
  position: absolute; inset: 4% -2px 14% -2px;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 0    0,    var(--blue) 3.5px, transparent 4px),
    radial-gradient(circle at 100% 0,    var(--blue) 3.5px, transparent 4px),
    radial-gradient(circle at 0    100%, var(--blue) 3.5px, transparent 4px),
    radial-gradient(circle at 100% 100%, var(--blue) 3.5px, transparent 4px);
}
.selectable.is-selected::after { opacity: 1; }

.selectable__label {
  position: absolute;
  left: -2px; bottom: 6%;
  transform: translateY(115%);
  font-family: var(--mono);
  font-size: 11px; line-height: 1;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--blue);
  padding: 4px 7px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.hero__foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  margin-top: clamp(36px, 5vw, 72px);
}
.hero__lede {
  font-size: var(--t-body-lg);
  line-height: 1.38;
  letter-spacing: -0.01em;
  max-width: 46ch;
  color: var(--cream);
}
.hero__actions {
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
}

}

/* ============================================================ marquee
   Requested behaviour: runs on its own, speeds up while you scroll,
   freezes under the pointer. Also pauses on keyboard focus, offscreen
   and on a hidden tab, per the carousel rule in the UX guidelines. */
.strip {
  padding-block: clamp(36px, 4.5vw, 64px);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding-inline: 0;
  max-width: none;
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 72px, #000 calc(100% - 72px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 72px, #000 calc(100% - 72px), transparent 100%);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(36px, 4.4vw, 72px);
  width: max-content;
  will-change: transform;
}
.mark {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  flex: 0 0 auto;
  color: var(--muted);
  cursor: default;
  transform-origin: left center;
  transition: color .3s ease, transform .3s cubic-bezier(.2, 1, .3, 1);
}
.mark:hover { color: var(--cream); transform: scale(1.15); }
.mark svg {
  grid-row: 1 / 3;
  width: 40px; height: 40px;
  fill: none; stroke: currentColor;
  stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round;
}
.mark__name {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: -0.025em;
  color: var(--cream);
  line-height: 1.1;
}
.mark__note {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em;
  line-height: 1.25;
}

/* ============================================================ sections
   ONE padding rule. Modifiers only tighten it — no competing selectors. */
.section { padding-block: var(--sec); }
.section--tight { padding-block: calc(var(--sec) * 0.66); }

.section__head { margin-bottom: clamp(40px, 6vw, 80px); }
.section__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--t-h);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-top: 16px;
  max-width: 16ch;
}

/* ============================================================ discipline rows */
.rows { display: flex; flex-direction: column; }
.row {
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  padding-block: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--hair);
}
.row:last-child { border-bottom: 1px solid var(--hair); }

.row__art { position: relative; }
.art {
  width: 100%; height: auto;
  fill: none;
  stroke-linecap: round; stroke-linejoin: round;
}
.art .draw   { stroke: var(--hue); stroke-width: 1.25; }
.art .hair   { stroke: var(--hair); stroke-width: 1; }
.art .handle { stroke-dasharray: 3 3; }
.art .fill   { fill: color-mix(in srgb, var(--hue) 16%, transparent); }
.art .dot    { fill: var(--hue); stroke: none; }
.art .node   { fill: var(--ink); stroke: var(--hue); stroke-width: 1.25; }
.art .curve  { stroke-width: 1.75; }

.row__label {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--hue);
  margin-bottom: 14px;
}
.row__title {
  font-family: var(--display); font-weight: 700;
  font-size: var(--t-h-sm);
  line-height: 1.05; letter-spacing: -0.03em;
  max-width: 18ch;
}
.row__text {
  margin-top: 18px;
  font-size: var(--t-body-lg);
  line-height: 1.42;
  color: var(--prose);
  max-width: 44ch;
  font-weight: 500;
}

/* ============================================================ cases */
.cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(20px, 2.4vw, 32px);
}
.case {
  position: relative;
  border: 1px solid var(--hair);
  border-radius: 8px;
  padding: clamp(20px, 2.2vw, 28px);
  transition: border-color .35s ease, background-color .35s ease;
}
.case:hover, .case:focus-within {
  border-color: color-mix(in srgb, var(--hue) 55%, var(--hair));
  background: color-mix(in srgb, var(--hue) 4%, transparent);
}
.case__hit { position: absolute; inset: 0; border-radius: 8px; z-index: 2; }

/* corner handles — the same selection language as the hero */
.case::before, .case::after,
.case__preview::before, .case__preview::after {
  content: "";
  position: absolute;
  width: 7px; height: 7px;
  background: var(--hue);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
  z-index: 3;
}
.case::before { top: -4px; left: -4px; }
.case::after  { top: -4px; right: -4px; }
.case__preview::before { bottom: -4px; left: -4px; }
.case__preview::after  { bottom: -4px; right: -4px; }
.case:hover::before, .case:hover::after,
.case:hover .case__preview::before, .case:hover .case__preview::after,
.case:focus-within::before, .case:focus-within::after,
.case:focus-within .case__preview::before, .case:focus-within .case__preview::after { opacity: 1; }

.case__preview {
  position: static;
  background: var(--panel);
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  display: grid; place-items: center;
}
.art--case { width: 100%; }

.case__body { padding-top: 24px; }

.case__title {
  font-family: var(--display); font-weight: 800;
  font-size: var(--t-sub);
  letter-spacing: -0.03em; line-height: 1.05;
  margin-top: 8px;
}
.case__text {
  margin-top: 12px;
  font-size: var(--t-body-sm);
  line-height: 1.5;
  color: var(--prose);
  max-width: 48ch;
  font-weight: 500;
}
.meta {
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--hair);
}
.meta dt {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.04em;
  text-transform: lowercase;
}
.meta dd { margin: 4px 0 0; font-size: var(--t-body-sm); }
.case__cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 22px;
  font-size: var(--t-body-sm); font-weight: 600;
  color: var(--cream);
}
.case__cta::after {
  content: "→";
  transition: transform .3s ease;
}
.case:hover .case__cta::after { transform: translateX(5px); }

.work__more {
  margin-top: clamp(28px, 3.4vw, 44px);
  font-size: var(--t-body-sm);
  line-height: 1.6;
  color: var(--prose);
  max-width: 62ch;
  font-weight: 500;
}
.work__more span { color: var(--cream); }
.work__more a {
  color: var(--cream);
  border-bottom: 1px solid var(--hair);
  padding-bottom: 1px;
  transition: border-color .25s ease;
}
.work__more a:hover { border-bottom-color: var(--cream); }

.meta a {
  border-bottom: 1px solid var(--hair);
  transition: border-color .25s ease;
}
.meta a:hover { border-bottom-color: var(--cream); }

/* ============================================================ approach */
.approach__lead {
  font-family: var(--display); font-weight: 700;
  font-size: var(--t-h-sm);
  line-height: 1.08; letter-spacing: -0.03em;
  max-width: 20ch;
  margin-top: 20px;
}
.approach__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(20px, 3vw, 48px);
  margin-top: clamp(32px, 4vw, 56px);
}
.approach__cols p {
  font-size: var(--t-body);
  line-height: 1.5;
  color: var(--prose);
  font-weight: 500;
}

/* ============================================================ highlight word
   A single word picked out in its own colour, with a hairline underline that
   draws in once — the same drawn-line vocabulary as the section dividers. */
.hl {
  color: var(--blue);
  font-weight: 600;
}

/* ============================================================ contact */
.contact {
  padding-block: clamp(88px, 11vw, 150px);
  border-top: 1px solid var(--hair);
}
.contact__title {
  font-family: var(--display); font-weight: 800;
  font-size: var(--t-h-lg);
  line-height: 0.96; letter-spacing: -0.035em;
  margin-top: 20px;
}
.contact__actions {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 20px 32px;
  margin-top: clamp(32px, 4vw, 52px);
}
.contact__note {
  font-size: var(--t-body-sm);
  color: var(--prose);
  max-width: 30ch;
  line-height: 1.4;
  font-weight: 500;
}

/* ============================================================ contact grid + form
   The section had empty room below the heading on wide screens; the form
   takes that space as a second column rather than pushing the page taller. */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
  margin-top: clamp(40px, 5vw, 64px);
}

.contact-form {
  display: flex;
  flex-direction: column;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.field label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  font-family: var(--body);
  font-size: 16px;                 /* never smaller on a form field — avoids iOS auto-zoom on focus */
  font-weight: 500;
  color: var(--cream);
  background: transparent;
  border: 1px solid var(--hair);
  border-radius: 8px;
  padding: 13px 16px;
  width: 100%;
  transition: border-color .25s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); }

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: color-mix(in srgb, var(--cream) 35%, var(--hair));
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--cream);
  outline: none;                   /* the global :focus-visible ring still shows on keyboard focus */
}

.field textarea {
  resize: vertical;
  min-height: 112px;
  line-height: 1.5;
}

/* outline-only select: no native arrow, a hairline chevron instead */
.select-wrap { position: relative; }
.select-wrap::after {
  content: '';
  position: absolute;
  right: 18px; top: 50%;
  width: 8px; height: 8px;
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}
.field select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  cursor: pointer;
}
.field select:invalid { color: var(--muted); }   /* the "Choose one" placeholder option reads muted until picked */

/* the extra field only exists once "Other" is chosen — a CSS grid-row
   animates open/shut so no GSAP is needed for this one interaction */
.field--other {
  display: grid;
  grid-template-rows: 0fr;
  margin-bottom: 0;
  transition: grid-template-rows .45s cubic-bezier(.22,1,.36,1), margin-bottom .45s cubic-bezier(.22,1,.36,1);
}
.field--other.is-open { grid-template-rows: 1fr; margin-bottom: 20px; }
.field--other .field__inner {
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

button.pill { appearance: none; cursor: pointer; border: 1px solid transparent; }
.contact-form button.pill--brand { align-self: flex-start; }

.contact-form__hint {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

/* honeypot: off-screen rather than display:none, since some bots skip
   display:none fields specifically. Real visitors never see or reach it. */
.botcheck {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
}

.contact-form__status {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 13px;
  min-height: 1.4em;
}
.contact-form__status[data-state="sending"] { color: var(--muted); }
.contact-form__status[data-state="success"] { color: var(--green-lt); }
.contact-form__status[data-state="error"]   { color: var(--orange); }

.contact-form.is-sent .field,
.contact-form.is-sent button.pill--brand {
  opacity: .4;
  pointer-events: none;
}

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; }
}

/* ============================================================ footer */
.footer {
  background: var(--panel);
  border-top: 1px solid var(--hair);
  /* #7c7c6f clears 4.5:1 on the canvas but only reaches 4.1:1 on the
     lifted panel — step it up so footer text stays AA */
  --muted: #8d8d80;
}
.footer__inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px;
  padding-block: clamp(40px, 5vw, 68px);
}
.footer__mark {
  font-family: var(--display); font-weight: 700;
  font-size: 20px; letter-spacing: -0.02em;
  margin-right: auto;
}
.footer__links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer__links a {
  font-size: var(--t-body-sm); color: var(--muted);
  transition: color .2s ease;
}
.footer__links a:hover { color: var(--cream); }
.footer__meta {
  flex-basis: 100%;
  font-family: var(--mono); font-size: 12px;
  color: var(--muted);
}
.footer__meta span { color: var(--hair); }

/* ============================================================ responsive */
@media (max-width: 900px) {
  .nav__links, .nav .pill--brand { display: none; }
  .nav__toggle { display: flex; }
  .hero__foot { grid-template-columns: 1fr; align-items: start; }
  .row { grid-template-columns: 1fr; }
  .row__art { max-width: 380px; }
}
@media (max-width: 560px) {
  .hero__title { letter-spacing: -0.025em; }
  /* a 72px fade eats a fifth of a phone screen; keep it to a hint */
  .marquee {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
  }
  .case__body { padding-top: 20px; }
  .meta { gap: 8px 20px; }
}

/* ============================================================ reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ── selection-frame states (driven by main.js) ───────────── */
.selectable.is-idle::before {
  opacity: 1;
  border-color: color-mix(in srgb, var(--blue) 34%, transparent);
}
.selectable.is-idle::after  { opacity: 0; }
.selectable::before,
.selectable::after { transition: opacity .35s ease, border-color .45s ease; }

/* ============================================================ work page */
.hero--page { padding-bottom: clamp(32px, 4vw, 56px); }
.hero__title--page {
  font-size: var(--t-display);
  letter-spacing: -0.035em;
  line-height: 0.9;
}
.hero--page .hero__lede { margin-top: clamp(24px, 3vw, 40px); }

.entry {
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gut);
  padding-block: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--hair);
}
.entry__head { margin-bottom: clamp(28px, 3.4vw, 44px); }
.entry__title {
  font-family: var(--display); font-weight: 800;
  font-size: var(--t-h);
  line-height: 1.02; letter-spacing: -0.03em;
  margin-top: 12px;
}
.entry__oneliner {
  margin-top: 14px;
  font-size: var(--t-body-lg);
  line-height: 1.38;
  color: var(--hue);
  max-width: 34ch;
}
.entry__body {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
}
.entry__prose p {
  font-size: var(--t-body);
  line-height: 1.55;
  color: var(--prose);
  max-width: 60ch;
  font-weight: 500;
}
.entry__prose p + p { margin-top: 18px; }
.entry__prose p:first-child { color: var(--cream); }
.entry__note {
  margin-top: 26px !important;
  padding-left: 16px;
  border-left: 1px solid var(--hue);
  font-size: var(--t-body-sm) !important;
}

.entry__facts {
  border: 1px solid var(--hair);
  border-radius: 8px;
  padding: var(--card-padding, 24px);
  position: sticky; top: 104px;
}
.facts > div + div {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--hair);
}
.facts dt {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.04em; color: var(--muted);
  text-transform: lowercase;
}
.facts dd { margin: 6px 0 0; font-size: var(--t-body-sm); }
.facts__steps {
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--hair);
  font-family: var(--mono); font-size: 11px;
  line-height: 1.7; color: var(--muted);
}

.minor {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(20px, 2.4vw, 32px);
  margin-top: clamp(28px, 3.4vw, 44px);
}
.minor li {
  border-top: 1px solid var(--hair);
  padding-top: 18px;
}
.minor h3 {
  font-family: var(--display); font-weight: 700;
  font-size: var(--t-body-lg);
  letter-spacing: -0.02em;
}
.minor p {
  margin-top: 10px;
  font-size: var(--t-body-sm);
  line-height: 1.5;
  color: var(--prose);
  font-weight: 500;
}
.minor__stack {
  margin-top: 12px !important;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.03em;
}

@media (max-width: 900px) {
  .entry__body { grid-template-columns: 1fr; }
  .entry__facts { position: static; }
}

/* ============================================================ Lenis
   Inlined from lenis.css so smooth scrolling costs no extra request. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ============================================================ card shots
   .case__preview stays position:static on purpose — the card's corner
   handles are pseudo-elements anchored to .case, and a positioning
   context here would drag them out of the corners. */
.shot {
  position: relative;
  display: block;
  width: 100%; height: 100%;
  border-radius: 4px;
  overflow: hidden;
}
.shot img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: scale(1.001);            /* kills the 1px edge seam on scale-up */
  /* both screenshots are light-UI products; at full brightness they punch two
     white holes in a canvas the reference wants kept unbroken. Damp them at
     rest, hand back the true colour on approach. */
  filter: brightness(.66) contrast(1.05) saturate(.78);
  transition: transform .7s cubic-bezier(.22,1,.36,1), filter .5s ease;
}
.case:hover .shot img,
.case:focus-within .shot img {
  transform: scale(1.035);
  filter: brightness(1) contrast(1) saturate(1);
}

/* the card reads in its discipline colour at rest, true colour on approach */
.shot__tint {
  position: absolute; inset: 0;
  background: var(--hue);
  mix-blend-mode: multiply;
  opacity: .3;
  transition: opacity .5s ease;
  pointer-events: none;
}
.case:hover .shot__tint, .case:focus-within .shot__tint { opacity: 0; }

/* ============================================================ Work hero
   Soft organic shapes overlapping the type. Sizes are percentages of the
   headline box, so they track the word at every breakpoint instead of being
   distorted by a stretched viewBox. */
.bighead { position: relative; }
.bighead .hero__title--page { position: relative; z-index: 2; }

.blob {
  position: absolute;
  display: block;
  aspect-ratio: 1 / 0.84;
  pointer-events: none;
  /* barely any blur: heavy blur turns these into glowing orbs. The softness
     should come from the gradient shading, so they read as forms. */
  filter: blur(1.5px);
  will-change: transform;
}
.blob--a {
  z-index: 1;
  left: -2%; top: -30%; width: 21%;
  background: radial-gradient(circle at 36% 26%, #d6d0ff 0%, #9d95ff 44%, #4a41b4 100%);
  border-radius: 58% 42% 39% 61% / 47% 54% 46% 53%;
  opacity: .92;
}
.blob--b {
  z-index: 1;
  left: 29%; top: 14%; width: 19%;
  background: radial-gradient(circle at 62% 28%, #a6efff 0%, #00bae2 50%, #075a72 100%);
  border-radius: 42% 58% 63% 37% / 55% 41% 59% 45%;
  opacity: .88;
}
.blob--c {
  z-index: 3;
  left: 21%; top: 52%; width: 9.5%;
  background: radial-gradient(circle at 40% 28%, #ffdcae 0%, #ff8709 50%, #8e3f08 100%);
  border-radius: 51% 49% 44% 56% / 43% 57% 43% 57%;
  opacity: .9;
}

/* the eyebrow shares this box; keep it above the shapes and clear of them */
.hero--page .eyebrow { position: relative; z-index: 4; }
.hero--page .bighead { margin-top: clamp(28px, 4vw, 56px); }

@media (max-width: 700px) {
  .blob { filter: blur(1px); }
  .blob--a { width: 26%; top: -26%; }
  .blob--b { width: 24%; }
  .blob--c { width: 12%; }
}

/* ============================================================ CTA bloom
   Hairline petals only: the system is outline-first, so nothing here
   gets a fill. Registering the angle makes the gradient animatable. */
@property --bloom-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 114.41deg;
}
.pill--brand {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(var(--ink), var(--ink)) padding-box,
    linear-gradient(var(--bloom-angle), var(--green) 20.74%, var(--green-lt) 65.5%) border-box;
  transition: opacity .25s ease, transform .25s ease, --bloom-angle .6s ease;
  /* fallback fill origin for focus/touch, where there is no pointer position
     to read; JS overwrites these on pointerenter with the real entry point */
  --fx: 50%;
  --fy: 100%;
}
.pill--brand:hover { --bloom-angle: 294.41deg; }

/* sized off the pill's HEIGHT, not its width: a width-driven bloom grows with
   the label and turns a long email button into a screen-wide flower */
.bloom {
  position: absolute;
  left: 50%; top: 50%;
  height: 330%; width: auto; aspect-ratio: 1;
  translate: -50% -50%;
  z-index: -1;
  pointer-events: none;
  overflow: visible;
  /* difference blend auto-contrasts the petals against whatever is behind
     them — the dark canvas where they extend past the pill, and the fill
     colour once it floods in — instead of a fixed stroke colour that would
     wash out against one or the other */
  mix-blend-mode: difference;
}
/* the nav pill sits against the top edge; a full-size bloom would be
   clipped by the viewport, so it opens smaller up there */
.nav .bloom { height: 300%; }

/* every .pill--brand floods green on hover — a circle that expands from
   wherever the pointer actually entered the button (JS sets --fx/--fy on
   pointerenter), so a mouse arriving from the bottom-left fills outward
   from the bottom-left, one from the top-right fills from the top-right,
   and so on. clip-path's percentage radius resolves against the box
   diagonal, so 150% comfortably covers the pill from any entry corner. */
.fillwave {
  position: absolute; inset: 0;
  border-radius: 100px;
  overflow: hidden;
  pointer-events: none;
}
.fillwave__body {
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--fx) var(--fy), var(--green) 0%, var(--green-lt) 100%);
  clip-path: circle(0% at var(--fx) var(--fy));
  transition: clip-path .55s cubic-bezier(.22, 1, .36, 1);
}
.pill--brand:hover .fillwave__body,
.pill--brand:focus-visible .fillwave__body {
  clip-path: circle(150% at var(--fx) var(--fy));
}
.pill__label {
  position: relative;
  z-index: 1;
  transition: color .3s ease;
}
.pill--brand:hover .pill__label,
.pill--brand:focus-visible .pill__label {
  color: var(--ink);
}

.bloom path {
  fill: none;
  stroke: var(--green-lt);
  stroke-width: 1.1;
  stroke-linecap: round;
  transform-box: fill-box;
  transform-origin: 50% 100%;
  opacity: 0;
}
