/* ==========================================================================
   Erik Leavell — site styles
   1. Tokens          6. Metrics           11. Closing (lawn)   16. Motion
   2. Base            7. Work cards/rows   12. Footer           17. View transitions
   3. Utilities       8. Ink section       13. Work index       18. Reduced motion
   4. Controls        9. Quote             14. Case study
   5. Header / hero  10. Teaser            15. About
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  color-scheme: light;
  /* Paper: a pale, slightly green off-white. Ink: green-black. */
  --paper: #edefe6;
  --paper-deep: #e2e6d8;
  --paper-hi: #f7f8f2;
  --ink: #111913;
  --ink-soft: #2b342d;
  --muted: #535d54;
  --line: #cbd1c2;
  --line-strong: #a9b1a0;
  /* Dark sections */
  --night: #0f1611;
  --night-2: #172019;
  --night-line: #2c372e;
  --on-night: #e9ede2;
  --on-night-muted: #9fa999;
  /* Accents: lawn lime on dark, moss on light, ginger for play. */
  --lime: #cbf35c;
  --moss: #486100;
  --ginger: #e8874a;
  --ginger-ink: #9a4a17;
  /* Big Green Egg green, for the lawn */
  --egg: #163820;
  --egg-hi: #1d4629;

  --f-display: 'Archivo', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --f-body: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4.2vw, 56px);
  --max: 1240px;
  --radius: 4px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --header-h: 68px;

  --t-body: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
  --t-small: 0.9375rem;
  --t-mono: 0.8125rem;
  --t-lede: clamp(1.1875rem, 1.05rem + 0.55vw, 1.4375rem);
  --t-h3: clamp(1.3125rem, 1.1rem + 0.7vw, 1.75rem);
  --t-h2: clamp(2rem, 1.25rem + 2.6vw, 3.5rem);
}

/* 2. Base ------------------------------------------------------------------ */
[hidden] {
  display: none !important;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--paper);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img,
svg,
canvas,
iframe {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
p,
h1,
h2,
h3,
figure,
blockquote,
dl,
dd {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--f-display);
  text-wrap: balance;
  font-weight: 750;
  line-height: 1.04;
  letter-spacing: -0.02em;
}
p {
  text-wrap: pretty;
}
/* Long words may break only when a line can't hold them (e.g. at 200% text size). */
h1,
h2,
h3,
p,
blockquote,
dd,
li,
figcaption {
  overflow-wrap: anywhere;
}
a {
  color: inherit;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}
button {
  font: inherit;
  color: inherit;
}
::selection {
  background: var(--lime);
  color: var(--ink);
}
:focus-visible {
  outline: 2.5px solid var(--moss);
  outline-offset: 3px;
  border-radius: 2px;
}
.section--ink :focus-visible,
.closing :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--lime);
}
main:focus {
  outline: none;
}

/* 3. Utilities ------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: clamp(72px, 10vw, 136px);
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.mono {
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper-hi);
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
}
.skip-link:focus {
  top: calc(env(safe-area-inset-top, 0px) + 10px);
}
.eyebrow {
  font-family: var(--f-body);
  font-size: var(--t-small);
  font-weight: 600;
  letter-spacing: 0.005em;
  color: var(--moss);
  line-height: 1.3;
}
.h2 {
  font-size: var(--t-h2);
  font-weight: 760;
  font-stretch: 108%;
  line-height: 1.02;
}
.h3 {
  font-size: var(--t-h3);
  font-weight: 700;
  font-stretch: 104%;
}

/* 4. Controls -------------------------------------------------------------- */
.icon-arrow {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  transition: transform 0.35s var(--ease);
}
.btn {
  --btn-fill: var(--lime);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-family: var(--f-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.15;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  background: var(--btn-fill);
  transform: translateY(101%);
  transition: transform 0.4s var(--ease);
}
.btn:hover::before {
  transform: translateY(0);
}
.btn:hover .icon-arrow {
  transform: translateX(3px);
}
.btn:hover .icon-arrow--down {
  transform: translateY(3px);
}
.btn:hover .icon-arrow--ext {
  transform: translate(2px, -2px);
}
.btn--ink {
  background: var(--ink);
  color: var(--paper-hi);
  --btn-fill: var(--lime);
}
.btn--ink:hover {
  color: var(--ink);
}
.btn--line {
  border-color: var(--ink);
  color: var(--ink);
  --btn-fill: var(--ink);
}
.btn--line:hover {
  color: var(--paper-hi);
}
.btn--lime {
  background: var(--lime);
  color: var(--ink);
  --btn-fill: var(--paper-hi);
}
.btn--line-light {
  border-color: rgba(233, 237, 226, 0.55);
  color: var(--on-night);
  --btn-fill: var(--on-night);
}
.btn--line-light:hover {
  color: var(--ink);
  border-color: var(--on-night);
}
.btn--sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: var(--t-small);
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1.5px solid currentColor;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.2;
}
.link-arrow:hover .icon-arrow {
  transform: translateX(4px);
}
.link-arrow:hover .icon-arrow--ext {
  transform: translate(2px, -2px);
}
.link-arrow--light {
  color: var(--on-night);
}
.text-btn {
  background: none;
  border: 0;
  padding: 0;
  font-weight: 600;
  font-size: var(--t-small);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.25em;
  cursor: pointer;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper-hi);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s, opacity 0.2s;
}
.chip:hover:not(:disabled) {
  border-color: var(--ink);
}
.chip:disabled {
  opacity: 0.45;
  cursor: default;
}
.chip--play {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper-hi);
}
.chip--play:hover {
  background: var(--ink-soft);
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(233, 237, 226, 0.45);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.copy-btn:hover {
  background: var(--on-night);
  color: var(--ink);
}
.copy-btn.is-done {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}

/* 5a. Header --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid transparent;
  transition: transform 0.45s var(--ease), border-color 0.3s;
  view-transition-name: site-header;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
}
.site-header.is-hidden {
  transform: translateY(calc(-100% - env(safe-area-inset-top, 0px)));
}
.header-inner {
  min-height: var(--header-h);
  flex-wrap: wrap;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  border-radius: var(--radius);
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  height: 36px;
  min-width: 46px;
  padding: 0 9px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--lime);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.0625rem;
  font-stretch: 108%;
  letter-spacing: -0.02em;
  line-height: 1;
  transition: font-stretch 0.45s var(--ease), padding 0.45s var(--ease);
}
.brand:hover .brand-mark {
  font-stretch: 125%;
  padding: 0 12px;
}
.brand-name {
  font-family: var(--f-display);
  font-weight: 680;
  font-stretch: 104%;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-list {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: var(--t-small);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s;
}
.nav-list a:hover {
  background: var(--paper-deep);
}
.nav-list a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 7px;
  height: 2px;
  background: currentColor;
}
.menu-btn {
  display: none;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 12px 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper-hi);
  font-size: var(--t-small);
  font-weight: 600;
  cursor: pointer;
}
.menu-btn-icon {
  display: grid;
  gap: 4px;
  width: 16px;
}
.menu-btn-icon i {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}
.menu-btn[aria-expanded='true'] .menu-btn-icon i:first-child {
  transform: translateY(2.75px) rotate(45deg);
}
.menu-btn[aria-expanded='true'] .menu-btn-icon i:last-child {
  transform: translateY(-2.75px) rotate(-45deg);
}
.menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px -24px rgba(17, 25, 19, 0.25);
  animation: menu-in 0.4s var(--ease) both;
}
.menu-inner {
  padding-block: 12px 28px;
}
.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu-list a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-display);
  font-weight: 780;
  font-stretch: 110%;
  font-size: clamp(1.875rem, 8vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.menu-meta {
  margin-top: 18px;
  color: var(--muted);
}
@keyframes menu-in {
  from {
    clip-path: inset(0 0 100% 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}
.read-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  display: none;
  pointer-events: none;
}
[data-page='case'] .read-progress,
[data-page='proposal'] .read-progress {
  display: block;
}
.read-progress span {
  display: block;
  height: 100%;
  background: var(--moss);
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
}

/* 5b. Hero ----------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: clamp(40px, 7vw, 112px);
  align-items: center;
  padding-block: clamp(36px, 6vw, 88px) clamp(56px, 7vw, 104px);
}
.hero > * {
  min-width: 0;
}
.hero-copy {
  display: grid;
  gap: clamp(20px, 2.4vw, 28px);
  align-content: center;
}
.hero-title {
  font-size: clamp(2.625rem, 1.15rem + 4.35vw, 5.375rem);
  font-weight: 780;
  font-stretch: 108%;
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 13.5em;
}
.hl {
  color: inherit;
  background: linear-gradient(transparent 60%, var(--lime) 60%, var(--lime) 90%, transparent 90%) no-repeat 0 0 / 100% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-inline: 0.04em;
}
.hero-intro {
  font-size: var(--t-lede);
  line-height: 1.5;
  max-width: 34em;
  color: var(--ink-soft);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

/* 5c. Portrait + face stretch --------------------------------------------- */
.portrait {
  width: 100%;
  justify-self: end;
}
.portrait-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  border-radius: var(--radius);
  background: #7c8566;
  isolation: isolate;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.portrait-img,
.face-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
}
.portrait-img {
  object-fit: cover;
  object-position: 50% 50%;
  -webkit-user-drag: none;
  pointer-events: none;
}
.face-canvas {
  opacity: 0;
  transition: opacity 0.25s;
  cursor: grab;
}
.is-warp-ready .face-canvas {
  opacity: 1;
}
.is-grabbing .face-canvas {
  cursor: grabbing;
}
.face-needs-play .face-canvas {
  cursor: default;
}
.face-needs-play.is-playing .face-canvas {
  cursor: grab;
}
.is-playing .face-canvas {
  touch-action: none;
}
.portrait-frame::after {
  content: '';
  position: absolute;
  inset: -1px;
  border: 1.5px solid var(--ink);
  border-radius: calc(var(--radius) + 1px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.handle {
  position: absolute;
  z-index: 4;
  width: 9px;
  height: 9px;
  background: var(--paper-hi);
  border: 1.5px solid var(--ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.3s var(--ease);
  transform: scale(0.4);
}
.handle--tl { left: -4.5px; top: -4.5px; }
.handle--tr { right: -4.5px; top: -4.5px; }
.handle--bl { left: -4.5px; bottom: -4.5px; }
.handle--br { right: -4.5px; bottom: -4.5px; }
.is-warp-ready:hover::after,
.portrait-frame:focus-visible::after,
.is-grabbing::after,
.is-playing::after {
  opacity: 1;
}
.is-warp-ready:hover .handle,
.portrait-frame:focus-visible .handle,
.is-grabbing .handle,
.is-playing .handle {
  opacity: 1;
  transform: none;
}
.portrait-frame:focus-visible {
  outline-offset: 7px;
}
.key-marker {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 38%;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--ink), 0 4px 10px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, left 0.3s var(--ease), top 0.3s var(--ease);
}
.is-keying .key-marker {
  opacity: 1;
}
.bubble {
  position: absolute;
  z-index: 5;
  left: 14px;
  bottom: 14px;
  max-width: calc(100% - 28px);
  display: flex;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transform-origin: 0 100%;
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
}
.bubble.is-in {
  opacity: 1;
  transform: none;
}
.bubble.is-away {
  opacity: 0;
  transform: translateY(6px) scale(0.97);
}
.bubble-avatar {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 4px;
  border: 2px solid #fff;
  background-color: #8b7a5c;
  background-size: 300%;
  background-position: 50.5% 33%;
  box-shadow: 0 3px 10px rgba(17, 25, 19, 0.25);
}
.bubble-text {
  display: block;
  padding: 9px 13px 10px;
  border-radius: 16px 16px 16px 4px;
  background: #fff;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 550;
  line-height: 1.3;
  box-shadow: 0 8px 24px rgba(17, 25, 19, 0.2), 0 1px 2px rgba(17, 25, 19, 0.15);
}
.bubble-text.is-pop {
  animation: pop 0.5s var(--ease);
}
@keyframes pop {
  0% { transform: scale(0.9); }
  55% { transform: scale(1.04); }
  100% { transform: scale(1); }
}
.portrait-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  margin-top: 14px;
  font-size: var(--t-small);
  color: var(--muted);
  line-height: 1.4;
}
.portrait-time {
  color: var(--ink-soft);
}
.face-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

/* 6. Metrics --------------------------------------------------------------- */
.metrics {
  border-block: 1px solid var(--line);
}
.metrics-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}
.metric {
  min-width: 0;
  padding: clamp(26px, 3.2vw, 44px) clamp(16px, 2vw, 28px);
  border-left: 1px solid var(--line);
}
.metric:first-child {
  border-left: 0;
  padding-left: 0;
}
.metric-value {
  font-family: var(--f-display);
  font-weight: 740;
  font-stretch: 110%;
  font-size: clamp(2.25rem, 1.5rem + 2.1vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: normal;
}
.metric-from {
  color: var(--muted);
}
.metric-arrow {
  display: inline-block;
  color: var(--moss);
  font-weight: 500;
  font-stretch: 100%;
}
.metric-label {
  margin-top: 12px;
  max-width: 24ch;
  font-size: var(--t-small);
  color: var(--muted);
  line-height: 1.45;
}

/* 7. Work cards + rows ----------------------------------------------------- */
.section--work {
  padding-top: clamp(64px, 9vw, 120px);
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 36px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.card-title {
  font-size: clamp(1.25rem, 1.1rem + 0.45vw, 1.5rem);
  font-weight: 720;
  font-stretch: 104%;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.card-link {
  text-decoration: none;
}
.card-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 6;
}
.card-link:focus-visible {
  outline: none;
}
.card:has(.card-link:focus-visible),
.feature:has(.card-link:focus-visible) {
  outline: 2.5px solid var(--moss);
  outline-offset: 8px;
  border-radius: 2px;
}
.card-summary {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}
.card-line {
  color: var(--ink-soft);
  line-height: 1.5;
}
.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  font-weight: 600;
  font-size: var(--t-small);
}
.card:hover .card-cta .icon-arrow,
.feature:hover .card-cta .icon-arrow {
  transform: translateX(5px);
}

/* Media frames */
.media {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--media-bg, var(--paper-deep));
  isolation: isolate;
  container-type: inline-size;
}
.media-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.9s var(--ease);
}
.media-img--cover {
  object-fit: cover;
}
.media-img--contain {
  object-fit: contain;
}
.media--photo .media-img {
  padding: 7% 9%;
}
.media-img--blend {
  mix-blend-mode: multiply;
}
.media--collage .media-img {
  object-position: 50% 30%;
}
.card:hover .media-img,
.feature:hover .media-img,
.next:hover .next-thumb .media-img {
  transform: scale(1.04);
}
.media-label {
  position: absolute;
  z-index: 3;
  left: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 6px 8px;
  border-radius: 3px;
  background: rgba(15, 22, 17, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #eef2e8;
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s, transform 0.35s var(--ease);
}
.card:hover .media-label,
.feature:hover .media-label {
  opacity: 1;
  transform: none;
}

/* Screenshots in a minimal browser window */
.browser {
  --bar: 28px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 24px 60px -18px rgba(0, 0, 0, 0.55);
  transition: transform 0.8s var(--ease), box-shadow 0.8s var(--ease);
}
.browser-bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: calc(var(--bar) * 0.2);
  height: var(--bar);
  padding: 0 calc(var(--bar) * 0.4);
  background: #efece6;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.browser-bar i {
  width: calc(var(--bar) * 0.3);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #d3cdc3;
}
.browser-url {
  flex: 1;
  display: flex;
  align-items: center;
  height: calc(var(--bar) * 0.56);
  margin: 0 18% 0 calc(var(--bar) * 0.4);
  padding: 0 calc(var(--bar) * 0.3);
  border-radius: 99px;
  background: #fff;
  color: #9a948a;
}
.browser-url svg {
  width: calc(var(--bar) * 0.32);
  height: auto;
}
.browser img {
  display: block;
  width: 100%;
  height: auto;
}
/* In a 4:3 card frame, the window rises from the bottom edge. */
.media--site .browser {
  --bar: max(12px, 4.6cqw);
  position: absolute;
  left: 9%;
  right: 9%;
  top: 13%;
  border-radius: 6px 6px 0 0;
}
.card:hover .media--site .browser,
.feature:hover .media--site .browser,
.next:hover .media--site .browser {
  transform: translateY(-3.5%);
  box-shadow: 0 30px 70px -18px rgba(0, 0, 0, 0.6);
}
.row-thumb .media--site .browser {
  top: 12%;
}
/* Case hero */
.browser--stage {
  --bar: clamp(20px, 2.6vw, 32px);
  width: 100%;
  max-width: 1080px;
}

/* More work rows */
.more-work {
  margin-top: clamp(56px, 7vw, 88px);
}
.more-title {
  font-size: var(--t-h3);
  font-weight: 700;
  font-stretch: 104%;
  margin-bottom: 18px;
}
.rows {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.row {
  position: relative;
  border-bottom: 1px solid var(--line);
}
.row-link {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(150px, 1.1fr) minmax(0, 2.6fr) auto;
  align-items: center;
  gap: 8px 28px;
  padding: 24px 0;
  text-decoration: none;
}
.row-link::before {
  content: '';
  position: absolute;
  inset: 0 calc(var(--gutter) * -0.5);
  z-index: -1;
  background: var(--paper-deep);
  border-radius: var(--radius);
  transform: scaleY(0.4);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.row-link:hover::before {
  transform: none;
  opacity: 1;
}
.row-name {
  font-family: var(--f-display);
  font-weight: 720;
  font-stretch: 106%;
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.row-num {
  color: var(--muted);
}
.row-desc {
  color: var(--muted);
  line-height: 1.45;
}
.row-go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: var(--t-small);
}
.row-link:hover .row-go .icon-arrow {
  transform: translateX(5px);
}
.row-thumb {
  position: absolute;
  z-index: 2;
  right: 190px;
  top: 50%;
  width: 190px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-50%) rotate(-4deg) scale(0.85);
  transition: opacity 0.3s, transform 0.5s var(--ease);
}
.row-thumb .media {
  box-shadow: 0 18px 40px rgba(17, 25, 19, 0.28);
}
.row:hover .row-thumb {
  opacity: 1;
  transform: translateY(-50%) rotate(-2deg) scale(1);
}

/* 8. Ink section: What I do + career -------------------------------------- */
.section--ink {
  background: var(--night);
  color: var(--on-night);
}
.section--ink .eyebrow {
  color: var(--lime);
}
.wid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 7vw, 112px);
  align-items: start;
}
.wid-lede {
  margin-top: 22px;
  max-width: 28em;
  font-size: var(--t-lede);
  line-height: 1.5;
  color: var(--on-night-muted);
}
.wid-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--night-line);
}
.wid-item {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--night-line);
  font-family: var(--f-display);
  font-weight: 650;
  font-stretch: 104%;
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.wid-item::before {
  content: '';
  flex: none;
  width: 9px;
  height: 9px;
  background: var(--lime);
  transform: translateY(-0.12em);
}
.tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: clamp(36px, 5vw, 56px);
}
.tools-label {
  color: var(--on-night-muted);
}
.tool-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tool-list li {
  padding: 6px 13px;
  border: 1px solid var(--night-line);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--on-night);
  transition: border-color 0.2s, background-color 0.2s;
}
.tool-list li:hover {
  border-color: var(--lime);
}
.career {
  margin-top: clamp(72px, 10vw, 136px);
}
.career-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
}
.rail {
  margin-top: 34px;
}
.rail-track {
  position: relative;
  height: 80px;
}
.rail-bar {
  position: absolute;
  overflow: hidden;
  top: calc(var(--lane) * 32px);
  height: 26px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--lime) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--lime) 50%, transparent);
  transition: background-color 0.3s, border-color 0.3s;
  transform-origin: 0 50%;
}
.rail-bar--open {
  border-right: 0;
  border-radius: 3px 0 0 3px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--lime) 16%, transparent) 70%, transparent);
}
.rail-name {
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  white-space: nowrap;
  color: var(--on-night);
  transition: color 0.3s;
}
.rail-step {
  position: absolute;
  top: 4px;
  bottom: 4px;
  width: 2px;
  margin-left: -1px;
  background: var(--lime);
  opacity: 0.7;
}
.rail-bar--extra {
  overflow: visible;
  height: 10px;
  top: 68px;
  border-style: dashed;
  background: transparent;
}
.rail-bar--extra .rail-name {
  left: calc(100% + 8px);
  color: var(--on-night-muted);
}
.rail-bar--extra.is-hot .rail-name {
  color: var(--lime);
}
.rail-bar.is-hot {
  background: var(--lime);
  border-color: var(--lime);
}
.rail-bar.is-hot .rail-name {
  color: var(--night);
}
.rail-bar.is-hot .rail-step {
  background: var(--night);
}
.rail-axis {
  position: relative;
  height: 26px;
  margin-top: 6px;
  border-top: 1px solid var(--night-line);
}
.rail-tick {
  position: absolute;
  top: 0;
  height: 7px;
  border-left: 1px solid var(--night-line);
}
.rail-tick span {
  position: absolute;
  top: 8px;
  left: 0;
  transform: translateX(-50%);
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  color: var(--on-night-muted);
  font-variant-numeric: tabular-nums;
}
.rail-tick:first-child span {
  transform: none;
}
.rail-tick--now span {
  transform: translateX(-100%);
  color: var(--lime);
}
.career-hint {
  margin-top: 22px;
  color: var(--on-night-muted);
}
.career-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.career-item {
  position: relative;
  border-top: 2px solid var(--night-line);
  transition: border-color 0.3s;
}
.career-item.is-hot,
.career-item.is-open {
  border-top-color: var(--lime);
}
.career-btn {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 18px 20px 12px 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  color: inherit;
}
.career-years {
  color: var(--on-night-muted);
}
.career-org {
  font-family: var(--f-display);
  font-weight: 720;
  font-stretch: 104%;
  font-size: 1.25rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.career-role {
  font-size: var(--t-small);
  color: var(--on-night-muted);
  line-height: 1.45;
}
.career-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: var(--lime);
  font-size: 0.75rem;
}
.career-more::after {
  content: '+';
  display: inline-block;
  transition: transform 0.3s var(--ease);
}
.career-item.is-open .career-more::after {
  transform: rotate(45deg);
}
.career-card {
  position: absolute;
  z-index: 30;
  top: calc(100% - 4px);
  left: 0;
  width: max(100%, 330px);
  max-width: calc(100vw - 32px);
  padding: 18px 20px 20px;
  border: 1px solid color-mix(in srgb, var(--lime) 40%, var(--night-line));
  border-radius: 10px;
  background: var(--night-2);
  color: var(--on-night);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  display: none;
}
.career-item:nth-child(n + 4) .career-card {
  left: auto;
  right: 0;
}
.career-item.is-open .career-card {
  display: block;
  animation: card-in 0.3s var(--ease) both;
}
@keyframes card-in {
  from {
    opacity: 0;
    translate: 0 8px;
  }
}
.career-card-title {
  margin-bottom: 12px;
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--lime);
  line-height: 1.35;
}
.career-ms {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.career-ms li {
  display: grid;
  grid-template-columns: 3.4em minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  font-size: 0.9375rem;
  line-height: 1.45;
}
.ms-y {
  color: var(--on-night-muted);
  font-size: 0.75rem;
}
.ms-y--dot::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 2px;
  border-radius: 50%;
  background: var(--on-night-muted);
  transform: translateY(-2px);
}
.career-extra {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
}
.career-item--extra {
  border-top: 0;
}
.career-item--extra .career-btn {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  padding: 10px 14px;
  border: 1px dashed var(--night-line);
  border-radius: 999px;
  transition: border-color 0.3s;
}
.career-item--extra.is-open .career-btn,
.career-item--extra.is-hot .career-btn,
.career-item--extra .career-btn:hover {
  border-color: var(--lime);
}
.career-item--extra .career-org {
  font-family: var(--f-body);
  font-weight: 600;
  font-stretch: 100%;
  font-size: var(--t-small);
}
.career-item--extra .career-more {
  margin-top: 0;
}
.career-item--extra .career-card {
  left: 0;
  right: auto;
}

/* 9. Quote ----------------------------------------------------------------- */
.section--quote {
  padding-bottom: clamp(40px, 6vw, 72px);
}
.quote {
  position: relative;
  max-width: 1000px;
  display: grid;
  gap: 28px;
  justify-items: start;
  padding-top: clamp(40px, 2rem + 3vw, 76px);
}
.quote::before {
  content: '“';
  position: absolute;
  left: -0.04em;
  top: -0.08em;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(6rem, 4rem + 8vw, 11rem);
  line-height: 1;
  color: var(--moss);
  opacity: 0.18;
  pointer-events: none;
}
.quote-text {
  position: relative;
  display: grid;
  gap: 0.6em;
}
.quote-text p {
  font-size: clamp(1.4375rem, 1.1rem + 1.35vw, 2.375rem);
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: -0.018em;
}
.quote-rest {
  color: var(--ink-soft);
}
.quote-by {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: var(--t-small);
  line-height: 1.35;
}
.quote-by strong {
  display: block;
  font-weight: 650;
  font-size: 1rem;
}
.quote-by span span {
  color: var(--muted);
}
.quote-photo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

/* 10. About teaser --------------------------------------------------------- */
.section--teaser {
  padding-top: clamp(56px, 7vw, 96px);
}
.teaser {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(24px, 6vw, 96px);
  padding-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--line);
}
.teaser-body {
  display: grid;
  gap: 24px;
  justify-items: start;
}
.teaser-text {
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem);
  line-height: 1.42;
  letter-spacing: -0.01em;
  max-width: 34em;
}
.status {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  color: var(--muted);
  line-height: 1.5;
}
.status-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--moss);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--moss) 22%, transparent);
  transform: translateY(-1px);
}

/* 11. Closing: the lawn ---------------------------------------------------- */
.closing {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--egg);
  color: var(--on-night);
  padding-block: clamp(88px, 13vw, 176px);
}
.closing::before {
  /* Mowing stripes */
  content: '';
  position: absolute;
  inset: -10%;
  z-index: -2;
  background: repeating-linear-gradient(
    98deg,
    var(--egg-hi) 0 clamp(70px, 9vw, 130px),
    var(--egg) clamp(70px, 9vw, 130px) clamp(140px, 18vw, 260px)
  );
  transform: translateX(calc(var(--mow, 0) * -40px));
}
.closing::after {
  /* Grass grain */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.22;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.4 -.35'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
.closing-inner {
  display: grid;
  gap: clamp(28px, 3.5vw, 40px);
  justify-items: start;
}
.closing-title {
  font-size: clamp(2.5rem, 1.1rem + 5.2vw, 6.25rem);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 14em;
  color: #f4f7ee;
}
.closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.email-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.email-text {
  font-family: var(--f-mono);
  font-size: 0.9375rem;
  -webkit-user-select: all;
  user-select: all;
  word-break: break-all;
}
.lawn-note {
  position: absolute;
  right: var(--gutter);
  bottom: 18px;
  font-size: 0.6875rem;
  color: rgba(233, 237, 226, 0.5);
}

/* 12. Footer --------------------------------------------------------------- */
.site-footer {
  background: var(--night);
  color: var(--on-night);
  padding-block: clamp(48px, 7vw, 88px) calc(28px + env(safe-area-inset-bottom, 0px));
  overflow: hidden;
}
.footer-mark {
  margin: 0 0 clamp(36px, 5vw, 64px);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(3rem, 10.6vw, 10.5rem);
  line-height: 0.86;
  letter-spacing: -0.035em;
  white-space: nowrap;
  color: var(--on-night);
  cursor: default;
  -webkit-user-select: none;
  user-select: none;
  touch-action: pan-y;
}
.fm-l {
  display: inline-block;
  font-stretch: var(--w, 100%);
  transition: font-stretch 0.5s var(--ease), color 0.4s;
}
.fm-l.is-hot {
  color: var(--lime);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--night-line);
  font-size: var(--t-small);
  color: var(--on-night-muted);
  line-height: 1.6;
}
.footer-strong {
  color: var(--on-night);
  font-weight: 650;
  margin-bottom: 6px;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.footer-links a {
  text-decoration: none;
  color: var(--on-night);
}
.footer-links a:hover {
  text-decoration: underline;
}
.footer-contact .email-line {
  margin-block: 4px 10px;
}
.footer-contact .email-text {
  color: var(--on-night);
  text-decoration: none;
  font-size: 0.875rem;
}
.footer-legal {
  margin-top: 40px;
  font-size: 0.8125rem;
  color: var(--on-night-muted);
}

/* 13. Page heads + work index --------------------------------------------- */
.page-head {
  display: grid;
  gap: 18px;
  padding-block: clamp(40px, 7vw, 104px) clamp(36px, 5vw, 64px);
}
.page-title {
  font-size: clamp(3rem, 1.4rem + 6.4vw, 8rem);
  font-weight: 820;
  font-stretch: 116%;
  line-height: 0.92;
  letter-spacing: -0.04em;
}
.page-lede {
  max-width: 34em;
  font-size: var(--t-lede);
  line-height: 1.5;
  color: var(--ink-soft);
}
.work-index {
  padding-bottom: clamp(72px, 10vw, 136px);
}
.list-label {
  display: block;
  margin: 0 0 14px;
  font-weight: 500;
  color: var(--muted);
}
.feature-list + .list-label {
  margin-top: clamp(64px, 8vw, 104px);
}
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(24px, 4.5vw, 72px);
  align-items: center;
  padding-block: clamp(24px, 3.5vw, 44px);
  border-top: 1px solid var(--line);
}
.feature:last-child {
  border-bottom: 1px solid var(--line);
}
.feature-body {
  display: grid;
  gap: 12px;
  justify-items: start;
}
.feature-num {
  color: var(--muted);
}
.feature-title {
  font-size: clamp(1.75rem, 1.2rem + 1.7vw, 2.875rem);
  font-weight: 760;
  font-stretch: 108%;
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.feature-summary {
  font-size: var(--t-lede);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 28em;
}
.rows--index .row-link {
  grid-template-columns: 44px minmax(160px, 1.3fr) minmax(0, 2.2fr) auto;
}

/* 14. Case study ----------------------------------------------------------- */
.case-head > *,
.page-head > *,
.about-copy > *,
.hero-copy > * {
  min-width: 0;
}
.case-head {
  display: grid;
  gap: 20px;
  padding-block: clamp(28px, 4vw, 56px) clamp(40px, 5vw, 64px);
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.crumbs a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.crumbs-count {
  margin-left: auto;
}
.case-title {
  font-size: clamp(2.25rem, 1.15rem + 3.6vw, 4.75rem);
  font-weight: 780;
  font-stretch: 108%;
  line-height: 1;
  letter-spacing: -0.03em;
  max-width: 17em;
}
.case-intro {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
  margin-top: 12px;
}
.case-lede {
  font-size: var(--t-lede);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 34em;
}
.outcome {
  padding: 20px 22px 22px;
  border-radius: var(--radius);
  background: var(--paper-hi);
  border: 1px solid var(--line);
  box-shadow: inset 4px 0 0 var(--moss);
}
.outcome-label {
  color: var(--moss);
  font-weight: 500;
}
.outcome-text {
  margin-top: 8px;
  font-family: var(--f-display);
  font-weight: 650;
  font-stretch: 102%;
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.stage {
  background: var(--stage-bg);
  padding-block: clamp(28px, 5vw, 72px) clamp(20px, 3vw, 36px);
}
.stage-inner {
  display: grid;
  gap: 18px;
  justify-items: center;
}
.stage-frame {
  width: 100%;
  max-width: 600px;
}
.stage-cap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
  max-width: 860px;
  font-size: var(--t-small);
  line-height: 1.45;
  text-align: center;
}
.stage--dark .stage-cap {
  color: rgba(242, 245, 236, 0.78);
}
.stage--light .stage-cap {
  color: var(--muted);
}
.stage--dark .stage-cap .mono {
  color: rgba(242, 245, 236, 0.55);
}
.case-meta-wrap {
  padding-top: clamp(32px, 4vw, 48px);
}
.case-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 32px;
  padding-bottom: clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}
.case-meta dt {
  color: var(--muted);
  margin-bottom: 6px;
}
.case-meta dd {
  font-weight: 550;
  line-height: 1.45;
}
.case-body {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  padding-block: clamp(48px, 7vw, 96px);
}
.case-h {
  margin-bottom: 18px;
}
.case-text {
  font-size: 1.125rem;
  line-height: 1.65;
  max-width: 36em;
}
.did {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.did li {
  position: relative;
  padding: 16px 0 16px 28px;
  border-bottom: 1px solid var(--line);
  font-size: 1.0625rem;
  line-height: 1.5;
}
.did li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 1.5em;
  width: 8px;
  height: 8px;
  background: var(--moss);
}
.evidence {
  padding-bottom: clamp(48px, 7vw, 96px);
}
.ev-grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-hi);
}
.ev-charts {
  display: grid;
  gap: 28px;
  min-width: 0;
}
.bars {
  --c-before: #b8862f;
  --c-after: var(--moss);
  min-width: 0;
}
.bars-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: var(--t-small);
  color: var(--ink-soft);
}
.lg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.lg::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 3px;
}
.lg--before::before {
  background: var(--c-before);
}
.lg--after::before {
  background: var(--c-after);
}
.bars-unit {
  margin-top: 4px;
  font-size: 0.8125rem;
  color: var(--muted);
}
.bars-rows {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}
.bars-row {
  display: grid;
  gap: 2px;
}
.bars-label {
  margin-bottom: 6px;
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--ink);
}
.bars-track {
  position: relative;
  display: block;
  height: 22px;
  margin-right: 3.2em;
  background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 25%);
}
.bars-bar {
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: var(--w);
  border-radius: 0 4px 4px 0;
  transform-origin: 0 50%;
  transition: transform 1s var(--ease);
}
.bars-bar--before {
  background: var(--c-before);
}
.bars-bar--after {
  background: var(--c-after);
  transition-delay: 0.12s;
}
.bars-bar--zero {
  width: 3px;
  border-radius: 1px;
}
.bars-val {
  position: absolute;
  top: 50%;
  left: calc(var(--w) + 8px);
  transform: translateY(-50%);
  font-family: var(--f-display);
  font-weight: 720;
  font-stretch: 106%;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  white-space: nowrap;
}
.js .bars.is-pending .bars-bar {
  transform: scaleX(0);
}
.bars-axis {
  position: relative;
  height: 18px;
  margin: 8px 3.2em 0 0;
  border-top: 1px solid var(--line-strong);
}
.bars-axis span {
  position: absolute;
  top: 4px;
  transform: translateX(-50%);
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  color: var(--muted);
}
.bars-axis span:first-child {
  transform: none;
}
.bars-cap {
  margin-top: 14px;
  font-size: var(--t-small);
  color: var(--muted);
}
.trend {
  min-width: 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.trend-cap {
  display: grid;
  gap: 2px;
  margin-bottom: 8px;
}
.trend-title {
  font-size: var(--t-small);
  font-weight: 600;
}
.trend-sub {
  font-size: 0.8125rem;
  color: var(--muted);
}
.trend-svg {
  width: 100%;
  max-width: 460px;
  height: auto;
  overflow: visible;
}
.tr-grid {
  stroke: var(--line);
  stroke-width: 1;
}
.tr-axis {
  fill: var(--muted);
  font-family: var(--f-mono);
  font-size: 10px;
}
.tr-line {
  fill: none;
  stroke: var(--moss);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.tr-hit {
  fill: transparent;
}
.tr-dot {
  fill: var(--moss);
  stroke: var(--paper-hi);
  stroke-width: 2;
}
.tr-lab {
  fill: var(--ink);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 13px;
}
.tr-pt {
  cursor: default;
  outline: none;
}
.tr-tip {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
.tr-tip rect {
  fill: var(--ink);
}
.tr-tip text {
  fill: var(--paper-hi);
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 600;
}
.tr-pt:hover .tr-tip,
.tr-pt:focus-visible .tr-tip {
  opacity: 1;
}
.tr-pt:hover .tr-dot,
.tr-pt:focus-visible .tr-dot {
  r: 6px;
}
.tr-pt:focus-visible .tr-dot {
  stroke: var(--ink);
}
.tr-pt--edge:hover .tr-lab,
.tr-pt--edge:focus-visible .tr-lab {
  opacity: 0;
}
.ev-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
}
.ev-stats li {
  display: grid;
  gap: 4px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}
.ev-num {
  font-family: var(--f-display);
  font-weight: 760;
  font-stretch: 110%;
  font-size: clamp(2.25rem, 1.6rem + 1.8vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.ev-label {
  color: var(--muted);
  font-size: var(--t-small);
}
.case-note {
  padding-bottom: clamp(40px, 6vw, 72px);
}
.case-note p {
  max-width: 62em;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: var(--t-small);
  color: var(--muted);
  line-height: 1.6;
}
.case-note .mono {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}
.case-note a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink);
  font-weight: 600;
}
.next {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 400px);
  gap: 24px clamp(28px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(48px, 7vw, 96px);
  border-top: 1px solid var(--line);
}
.next-link > span {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.next > * {
  min-width: 0;
}
.next-link {
  display: grid;
  gap: 12px;
  justify-items: start;
  text-decoration: none;
}
.next-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
}
.next-kicker {
  color: var(--muted);
}
.next-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(2rem, 1.1rem + 3.6vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.next-summary {
  color: var(--muted);
  max-width: 30em;
}
.next-go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  margin-top: 6px;
}
.next:hover .next-go .icon-arrow {
  transform: translateX(5px);
}
.next-all {
  position: relative;
  z-index: 3;
  grid-column: 1;
  justify-self: start;
}
.next-thumb {
  grid-column: 2;
  grid-row: 1 / span 2;
}

/* 15. About ---------------------------------------------------------------- */
.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(240px, 4fr);
  gap: clamp(32px, 7vw, 112px);
  align-items: start;
  padding-block: clamp(36px, 6vw, 88px) clamp(56px, 7vw, 104px);
}
.about-copy {
  display: grid;
  gap: 22px;
}
.about-title {
  font-size: clamp(3.25rem, 1.3rem + 7.6vw, 9rem);
}
.about-text {
  display: grid;
  gap: 1em;
  margin-top: 8px;
  max-width: 36em;
}
.about-text p {
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.375rem);
  line-height: 1.6;
}
.about-media {
  display: grid;
  gap: 22px;
  margin-top: clamp(0px, 3vw, 40px);
}
.about-photo {
  display: grid;
  gap: 10px;
}
.about-photo img,
.loop-frame {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgba(17, 25, 19, 0.5);
}
.about-photo img {
  transform: rotate(1.4deg);
  transition: transform 0.7s var(--ease);
}
.about-photo:hover img {
  transform: rotate(0deg) scale(1.01);
}
.about-photo figcaption,
.loop figcaption {
  color: var(--muted);
  font-size: 0.75rem;
}
.about-photo figcaption {
  text-align: right;
}
.loops {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.loop {
  display: grid;
  gap: 8px;
}
.loop:first-child .loop-frame {
  transform: rotate(-2deg);
}
.loop:last-child .loop-frame {
  transform: rotate(1.5deg) translateY(10px);
}
.loop:last-child figcaption {
  margin-top: 10px;
}
.loop-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #6f6a5c;
  transition: transform 0.6s var(--ease);
}
.loop:hover .loop-frame {
  transform: none;
}
.loop-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.loop-toggle {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 22, 17, 0.62);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
}
.loop-frame:hover .loop-toggle,
.loop-toggle:focus-visible,
.loop.is-paused .loop-toggle {
  opacity: 1;
}
.loop-toggle .i-play,
.loop.is-paused .loop-toggle .i-pause {
  display: none;
}
.loop.is-paused .loop-toggle .i-play {
  display: block;
}

/* Inline notes */
.term {
  position: relative;
  display: inline;
}
.term-btn {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: help;
  text-decoration: underline dotted;
  text-decoration-color: var(--moss);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
  border-radius: 2px;
}
.term-btn:hover,
.term.is-open .term-btn {
  background: color-mix(in srgb, var(--lime) 55%, transparent);
}
.term-note {
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: calc(100% + 12px);
  display: none;
  width: max-content;
  max-width: min(290px, calc(100vw - 32px));
  padding: 10px 13px 11px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper-hi);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  pointer-events: none;
  transform: translateX(calc(-50% + var(--shift, 0px)));
}
.term-note::after {
  content: '';
  position: absolute;
  left: calc(50% - var(--shift, 0px));
  top: 100%;
  margin-left: -6px;
  border: 6px solid transparent;
  border-top-color: var(--ink);
}
.term.is-open .term-note {
  display: block;
  animation: note-in 0.28s var(--ease) both;
}
@media (hover: hover) {
  .term:hover .term-note {
    display: block;
    animation: note-in 0.28s var(--ease) both;
  }
}
@keyframes note-in {
  from {
    opacity: 0;
    translate: 0 6px;
  }
}

/* Trips */
.trips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 560px;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}
.trip {
  position: relative;
  display: grid;
  gap: 2px;
  padding-top: 26px;
  padding-right: 12px;
}
.trip::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 20px;
  right: 6px;
  border-top: 2px dashed var(--line-strong);
}
.trip:last-child::before {
  right: 20%;
  border-image: linear-gradient(90deg, var(--line-strong), transparent) 1;
}
.trip--done::before {
  border-top-style: solid;
  border-top-color: var(--ink);
}
.trip-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--paper);
}
.trip--done .trip-dot {
  background: var(--ink);
  box-shadow: inset 0 0 0 3px var(--paper);
}
.trip-place {
  font-family: var(--f-display);
  font-weight: 720;
  font-stretch: 106%;
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
}
.trip-status {
  color: var(--muted);
  font-size: 0.75rem;
}

.about-career {
  border-top: 1px solid var(--line);
}
.about-career-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.about-career-grid > div:first-child {
  display: grid;
  gap: 22px;
  justify-items: start;
}
.about-career-text {
  font-size: var(--t-lede);
  line-height: 1.5;
  max-width: 30em;
}
.career-list--stack {
  display: block;
  margin: 0;
  border-top: 1px solid var(--line);
}
.career-list--stack .career-item {
  border-top: 0;
  border-bottom: 1px solid var(--line);
}
.career-list--stack .career-item.is-open {
  border-bottom-color: var(--line);
}
.career-list--stack .career-btn {
  grid-template-columns: 7.5em minmax(8em, 1fr) minmax(0, 1.8fr) auto;
  gap: 4px 20px;
  align-items: baseline;
  padding: 18px 0;
}
.career-list--stack .career-years,
.career-list--stack .career-role {
  color: var(--muted);
}
.career-list--stack .career-org {
  font-size: 1.1875rem;
}
.career-list--stack .career-more,
.about-career .career-extra .career-more {
  color: var(--moss);
}
.career-list--stack .career-card,
.about-career .career-extra .career-card {
  position: static;
  width: auto;
  max-width: none;
  margin: 0 0 18px;
  background: var(--paper-hi);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}
.career-list--stack .career-card-title,
.about-career .career-card-title {
  color: var(--moss);
}
.career-list--stack .ms-y,
.about-career .ms-y {
  color: var(--muted);
}
.about-career .career-item--extra .career-btn {
  border-color: var(--line-strong);
}
.about-career .career-item--extra.is-open .career-btn,
.about-career .career-item--extra .career-btn:hover {
  border-color: var(--moss);
}
.about-career .career-extra {
  flex-direction: column;
}

.listening-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.listening-grid > div:first-child {
  display: grid;
  gap: 20px;
  justify-items: start;
}
.listening-intro {
  font-size: var(--t-lede);
  color: var(--on-night-muted);
  line-height: 1.5;
}
.spotify-embed {
  border-radius: 12px;
  overflow: hidden;
  background: var(--night-2);
  min-height: 352px;
}
.spotify-embed iframe {
  width: 100%;
  height: 352px;
  border: 0;
  border-radius: 12px;
}
.spotify-card {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--night-line);
  border-radius: 12px;
  background: var(--night-2);
  text-decoration: none;
  transition: border-color 0.3s;
}
.spotify-card:hover {
  border-color: var(--lime);
}
.spotify-card > .icon-arrow {
  margin-left: auto;
  color: var(--lime);
}
.spotify-disc {
  flex: none;
  position: relative;
  width: clamp(84px, 14vw, 132px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at 50% 50%, #0b0f0c 0 2px, #1b231d 2px 3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 1.6s var(--ease);
}
.spotify-disc i {
  position: absolute;
  inset: 33%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--night) 0 10%, var(--lime) 11%);
}
.spotify-card:hover .spotify-disc {
  transform: rotate(200deg);
}
.spotify-copy {
  display: grid;
  gap: 4px;
}
.spotify-kicker {
  color: var(--on-night-muted);
}
.spotify-title {
  font-family: var(--f-display);
  font-weight: 750;
  font-stretch: 108%;
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.spotify-sub {
  color: var(--on-night-muted);
  font-size: var(--t-small);
}

.mom {
  padding-block: clamp(88px, 12vw, 168px);
}
.mom-quote {
  display: grid;
  gap: clamp(24px, 3vw, 36px);
  margin-top: 22px;
}
.mom-quote p {
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 110%;
  font-size: clamp(2.25rem, 0.9rem + 5.6vw, 6.5rem);
  line-height: 1;
  letter-spacing: -0.035em;
  max-width: 13em;
  text-wrap: balance;
}
.mom-mark {
  color: inherit;
  background: linear-gradient(var(--ginger), var(--ginger)) no-repeat 0 86% / 100% 32%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size 1.1s var(--ease) 0.25s;
}
.js .mom-quote.is-pending .mom-mark {
  background-size: 0% 32%;
}
.mom-quote figcaption {
  display: grid;
  gap: 2px;
  font-size: 1.0625rem;
}
.mom-quote figcaption strong {
  font-weight: 650;
}
.mom-quote figcaption span {
  color: var(--muted);
}
.nf {
  min-height: 50vh;
  align-content: center;
}


/* Face controls: stick switch --------------------------------------------- */
.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 14px 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper-hi);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s;
}
.switch:hover {
  border-color: var(--ink);
}
.switch-track {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: var(--line);
  transition: background-color 0.25s;
}
.switch-track i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s var(--ease);
}
.switch[aria-checked='true'] .switch-track {
  background: var(--ginger);
}
.switch[aria-checked='true'] .switch-track i {
  transform: translateX(14px);
}
.chip--reset {
  border-color: var(--ginger);
  color: var(--ginger-ink);
  animation: card-in 0.3s var(--ease) both;
}

/* Case gallery -------------------------------------------------------------- */
.gallery {
  padding-bottom: clamp(56px, 8vw, 104px);
}
.gallery-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  margin-bottom: 20px;
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 32px) clamp(16px, 2vw, 28px);
}
.shot {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}
.shot--full {
  grid-column: 1 / -1;
}
.shot--full .shot-frame {
  aspect-ratio: 16 / 9;
}
.shot-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-deep);
}
.shot-btn {
  cursor: zoom-in;
}
.shot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 0);
  transition: transform 0.9s var(--ease);
}
.shot-btn:hover img {
  transform: scale(1.02);
}
.shot-zoom {
  position: absolute;
  right: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(15, 22, 17, 0.72);
  color: #fff;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.2s, transform 0.3s var(--ease);
}
.shot-btn:hover .shot-zoom,
.shot-btn:focus-visible .shot-zoom {
  opacity: 1;
  transform: none;
}
.shot figcaption {
  font-size: var(--t-small);
  color: var(--muted);
  line-height: 1.45;
}
.phones {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 7%;
  padding-top: 7%;
  background: var(--tile-bg);
  border-color: transparent;
}
.phone {
  width: 29%;
  aspect-ratio: 520 / 1125;
  flex: none;
  overflow: hidden;
  border: 5px solid #0d0f0e;
  border-radius: 22px;
  background: #0d0f0e;
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.55);
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 16px;
}
.phone:nth-child(2) {
  margin-top: 6%;
}

/* Lightbox */
.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--on-night);
}
.lightbox::backdrop {
  background: rgba(8, 12, 9, 0.9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.lightbox[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  animation: lb-in 0.3s var(--ease) both;
}
@keyframes lb-in {
  from {
    opacity: 0;
  }
}
.lb-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) var(--gutter) 10px;
}
.lb-count {
  color: var(--on-night-muted);
}
.lb-stage {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 0 var(--gutter);
}
.lb-img {
  max-width: min(1440px, 100%);
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.lb-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 18px);
}
.lb-cap {
  max-width: 60ch;
  font-size: var(--t-small);
  color: var(--on-night);
}
.lb-nav {
  display: flex;
  gap: 8px;
}
.lb-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(233, 237, 226, 0.35);
  border-radius: 50%;
  background: transparent;
  color: var(--on-night);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.lb-btn:hover {
  background: var(--on-night);
  color: var(--ink);
}
.lb-btn:focus-visible {
  outline-color: var(--lime);
}

/* Contact dialog ------------------------------------------------------------ */
.contact-dialog {
  width: min(520px, 100%);
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: -30px 0 80px rgba(8, 12, 9, 0.35);
}
.contact-dialog::backdrop {
  background: rgba(8, 12, 9, 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.contact-dialog[open] {
  animation: drawer-in 0.45s var(--ease) both;
}
@keyframes drawer-in {
  from {
    transform: translateX(40px);
    opacity: 0;
  }
}
.cd-panel {
  display: grid;
  gap: 26px;
  min-height: 100%;
  align-content: start;
  padding: calc(env(safe-area-inset-top, 0px) + clamp(22px, 4vw, 40px)) clamp(20px, 4vw, 40px) calc(env(safe-area-inset-bottom, 0px) + 32px);
}
.cd-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}
.cd-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50% 50% 50% 6px;
  background-color: #8b7a5c;
  background-size: 300%;
  background-position: 50.5% 33%;
  box-shadow: 0 0 0 3px var(--paper), 0 6px 16px rgba(17, 25, 19, 0.2);
}
.cd-title {
  font-size: clamp(1.875rem, 1.4rem + 1.6vw, 2.5rem);
  font-weight: 800;
  font-stretch: 110%;
  letter-spacing: -0.03em;
  line-height: 1;
}
.cd-sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: var(--t-small);
}
.cd-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper-hi);
  cursor: pointer;
}
.cd-close:hover {
  border-color: var(--ink);
}
.cd-form {
  display: grid;
  gap: 18px;
}
.cd-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.875rem;
  font-weight: 600;
}
.cd-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}
.cd-topics legend {
  float: left;
  width: 100%;
  margin-bottom: 8px;
  padding: 0;
}
.cd-topic {
  position: relative;
  cursor: pointer;
}
.cd-topic input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.cd-topic span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper-hi);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.cd-topic:hover span {
  border-color: var(--ink);
}
.cd-topic input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper-hi);
}
.cd-topic input:focus-visible + span {
  outline: 2.5px solid var(--moss);
  outline-offset: 2px;
}
/* "How’d you find me?" (optional): same chips, a touch smaller and quieter */
.cd-optional {
  margin-left: 6px;
  color: var(--muted);
  font-weight: 500;
}
.cd-sources {
  gap: 6px;
}
.cd-topic--sm span {
  min-height: 34px;
  padding: 0 13px;
  font-weight: 500;
}

/* Confirmation after ?notrack / ?track */
.ga-notice {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
  z-index: 1000;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper-hi);
  font-size: 0.875rem;
  line-height: 1.4;
  box-shadow: 0 10px 30px rgba(8, 12, 9, 0.3);
  transform: translateX(-50%);
  transition: opacity 0.5s, transform 0.5s;
}
.ga-notice.is-out {
  opacity: 0;
  transform: translate(-50%, 8px);
}
.cd-input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--paper-hi);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cd-input:hover {
  border-color: var(--muted);
}
.cd-input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime) 70%, transparent);
}
.cd-input[aria-invalid='true'] {
  border-color: #b3401f;
}
.cd-textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.5;
}
.cd-hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.cd-error {
  padding: 12px 14px;
  border-radius: 6px;
  background: #f6e3da;
  color: #7a2d12;
  font-size: var(--t-small);
  line-height: 1.45;
}
.cd-error a {
  font-weight: 600;
}
.cd-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}
.cd-send[disabled] {
  opacity: 0.7;
  cursor: progress;
}
.cd-alt {
  font-size: 0.875rem;
  color: var(--muted);
}
.cd-alt a {
  color: var(--ink);
}
.cd-done {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 28px 0;
}
.cd-done:focus {
  outline: none;
}
.cd-done-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--lime);
  font-size: 1.5rem;
  font-weight: 700;
  animation: pop 0.6s var(--ease) both;
}
.cd-done-title {
  font-family: var(--f-display);
  font-size: 1.75rem;
  font-weight: 780;
  font-stretch: 108%;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.cd-done-text {
  color: var(--muted);
  margin-bottom: 8px;
}

/* Résumé page ----------------------------------------------------------------- */
.resume {
  padding-block: clamp(36px, 6vw, 80px) clamp(64px, 9vw, 120px);
}
.rs-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.rs-head-text {
  display: grid;
  gap: 14px;
}
.rs-name {
  font-size: clamp(2.75rem, 1.4rem + 5vw, 6.5rem);
}
.rs-role {
  font-size: var(--t-lede);
  color: var(--ink-soft);
}
.rs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.rs-doc {
  display: grid;
  gap: clamp(32px, 4vw, 52px);
  padding: clamp(22px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-hi);
  box-shadow: 0 40px 80px -50px rgba(17, 25, 19, 0.35);
}
.rs-row--intro,
.rs-job {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 8fr);
  gap: 18px clamp(24px, 4vw, 56px);
}
.rs-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
  font-size: 0.875rem;
  color: var(--muted);
  align-content: start;
}
.rs-contact a {
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.rs-contact a:hover {
  text-decoration: underline;
}
.rs-contact .icon-arrow {
  width: 0.95em;
  height: 0.95em;
}
.rs-headline {
  font-size: clamp(1.625rem, 1.2rem + 1.5vw, 2.375rem);
  font-weight: 760;
  font-stretch: 106%;
  letter-spacing: -0.025em;
  line-height: 1.08;
  max-width: 18em;
}
.rs-summary {
  margin-top: 14px;
  max-width: 44em;
  line-height: 1.65;
  color: var(--ink-soft);
}
.rs-receipts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: clamp(20px, 3vw, 32px) 0;
  border-block: 1px solid var(--line);
}
.rs-receipts li {
  display: grid;
  gap: 8px;
  align-content: start;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.45;
}
.rs-num {
  font-family: var(--f-display);
  font-size: clamp(2rem, 1.5rem + 1.6vw, 2.875rem);
  font-weight: 760;
  font-stretch: 110%;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.rs-sec {
  display: grid;
  gap: 22px;
}
.rs-sec-title {
  color: var(--moss);
  font-weight: 500;
}
.rs-jobs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(28px, 3.5vw, 40px);
}
.rs-job + .rs-job {
  padding-top: clamp(28px, 3.5vw, 40px);
  border-top: 1px solid var(--line);
}
.rs-org {
  font-size: 1.375rem;
  font-weight: 740;
  font-stretch: 106%;
  margin-bottom: 6px;
}
.rs-job-title {
  font-size: var(--t-small);
  color: var(--ink-soft);
  line-height: 1.4;
}
.rs-dates {
  margin-top: 8px;
  color: var(--muted);
}
.rs-lede {
  font-weight: 600;
  line-height: 1.5;
  max-width: 42em;
}
.rs-bullets {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.rs-bullets li {
  position: relative;
  padding-left: 20px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 48em;
}
.rs-bullets li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.7em;
  width: 7px;
  height: 7px;
  background: var(--moss);
}
.rs-dl {
  display: grid;
  gap: 14px;
  margin: 0;
}
.rs-dl > div {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 8fr);
  gap: 4px clamp(24px, 4vw, 56px);
}
.rs-dl dt {
  font-weight: 650;
}
.rs-dl dd {
  color: var(--ink-soft);
  line-height: 1.55;
}
.rs-foot {
  margin-top: 28px;
}


/* Client names on public pages: drawn by CSS from three attribute fragments,
   so they're never page text and never one string in the HTML. */
.bn::before {
  content: attr(data-a) attr(data-b) attr(data-c);
}

/* What I do: links to the service pages */
.wid-main {
  min-width: 0;
}
.wid-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 26px;
}

/* Product case studies: link out to the live product */
.outcome-link {
  margin-top: 14px;
}

/* Evidence with stats only (no chart) */
.ev-grid--stats {
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}
.ev-stats--row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ev-caption {
  font-size: var(--t-small);
  color: var(--muted);
  line-height: 1.5;
}

/* Service pages ------------------------------------------------------------ */
.svc-title {
  max-width: 13em;
  font-size: clamp(2.5rem, 1.2rem + 4.6vw, 5.75rem);
  line-height: 0.96;
}
.svc-sec {
  padding-block: clamp(56px, 8vw, 112px);
}
.svc-h {
  max-width: 16em;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.svc-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: clamp(22px, 2.4vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-hi);
}
.svc-card-title {
  font-family: var(--f-display);
  font-weight: 720;
  font-stretch: 106%;
  font-size: clamp(1.1875rem, 1.05rem + 0.45vw, 1.4375rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.svc-card p {
  color: var(--ink-soft);
  line-height: 1.55;
}
.svc-card .link-arrow {
  margin-top: 4px;
}
.svc-proof {
  margin-bottom: clamp(8px, 2vw, 24px);
}
.svc-proof .metric-value {
  font-size: clamp(2rem, 1.4rem + 1.8vw, 3rem);
}
.svc-proof-note {
  padding: 0 0 18px;
  color: var(--muted);
}
.svc-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.svc-step {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding-top: 18px;
  border-top: 1px solid var(--night-line);
}
.svc-step-num {
  color: var(--lime);
}
.svc-step-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-stretch: 104%;
  font-size: clamp(1.1875rem, 1.05rem + 0.45vw, 1.4375rem);
  line-height: 1.15;
}
.svc-step p {
  color: var(--on-night-muted);
  line-height: 1.55;
}
.svc-local-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(20px, 5vw, 80px);
  align-items: start;
  padding-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--line);
}
.svc-local-text {
  max-width: 36em;
  font-size: var(--t-lede);
  line-height: 1.5;
  color: var(--ink-soft);
}
.faq {
  border-top: 1px solid var(--line);
  max-width: 62rem;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  position: relative;
  display: block;
  padding: 22px 48px 22px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--f-display);
  font-weight: 680;
  font-stretch: 104%;
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.25;
}
.faq-q::-webkit-details-marker {
  display: none;
}
.faq-q::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.faq-item[open] .faq-q::after {
  transform: translateY(-30%) rotate(-135deg);
}
.faq-q:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 4px;
}
.faq-a {
  padding: 0 0 24px;
  max-width: 44em;
  color: var(--ink-soft);
  line-height: 1.6;
}
.svc-sec + .section--quote {
  padding-top: clamp(16px, 3vw, 40px);
}
.svc-guide {
  color: var(--muted);
  font-size: var(--t-small);
}
.svc-guide a {
  color: var(--ink);
  font-weight: 600;
  text-underline-offset: 3px;
}
.svc-cross + .svc-cross {
  margin-top: 14px;
}
.svc-cross {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: clamp(32px, 4vw, 48px);
  color: var(--muted);
}
@media (max-width: 1100px) {
  .svc-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .svc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .svc-local-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .ev-stats--row {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  .svc-grid,
  .svc-steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .svc-proof .metrics-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .svc-proof .metric {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
  }
  .svc-proof .metric:first-child {
    border-top: 0;
  }
}

/* Ranking dumbbell chart (local search case) ----------------------------- */
.ranks {
  --c-before: #b8862f;
  --c-after: var(--moss);
  margin-top: clamp(16px, 2vw, 24px);
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-hi);
}
.ranks-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 14px;
}
.ranks-title {
  font-family: var(--f-display);
  font-weight: 720;
  font-stretch: 104%;
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
}
.ranks-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: var(--t-small);
  color: var(--ink-soft);
}
.rk-key {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.rk-key::before {
  content: '';
  box-sizing: border-box;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.rk-key--before::before {
  border: 2px solid var(--c-before);
  background: var(--paper-hi);
}
.rk-key--after::before {
  background: var(--c-after);
}
.rk-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rk-row,
.rk-axis {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 2px 20px;
}
.rk-row {
  position: relative;
  margin: 0 -8px;
  padding: 3px 8px;
  border-radius: 4px;
  outline: none;
  cursor: default;
}
.rk-row:hover,
.rk-row:focus-visible {
  background: #e7ebde;
}
.rk-row:hover .rk-kw,
.rk-row:focus-visible .rk-kw {
  color: var(--ink);
}
.rk-row:focus-visible {
  box-shadow: inset 0 0 0 2px var(--moss);
}
.rk-kw {
  min-width: 0;
  font-size: 0.8125rem;
  line-height: 1.3;
  color: var(--ink-soft);
  text-align: right;
}
.rk-track {
  position: relative;
  display: block;
  height: 22px;
}
.rk-track::after {
  content: '';
  position: absolute;
  left: 89.5%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.rk-band {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 3px;
  background: rgba(72, 97, 0, 0.07);
}
.rk-axis .rk-track {
  height: 40px;
}
.rk-band--label {
  padding: 3px 6px;
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  color: var(--moss);
  white-space: nowrap;
}
.rk-tick {
  position: absolute;
  bottom: 3px;
  transform: translateX(-50%);
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  color: var(--muted);
  white-space: nowrap;
}
.rk-tick--none {
  color: var(--muted);
}
.rk-none-short {
  display: none;
}
.rk-kw-val {
  display: none;
  margin-left: 8px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper-hi);
  font-size: 0.75rem;
  white-space: nowrap;
}
.rk-line {
  position: absolute;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background: var(--line-strong);
}
.rk-dot {
  position: absolute;
  top: 50%;
  box-sizing: border-box;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2px var(--paper-hi);
}
.rk-row:hover .rk-dot,
.rk-row:focus-visible .rk-dot {
  box-shadow: 0 0 0 2px var(--paper-deep);
}
.rk-dot--before {
  border: 2px solid var(--c-before);
  background: var(--paper-hi);
}
.rk-dot--after {
  background: var(--c-after);
}
.rk-tip {
  position: absolute;
  bottom: calc(100% - 2px);
  transform: translateX(-50%);
  z-index: 2;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper-hi);
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
.rk-row:hover .rk-tip,
.rk-row:focus .rk-tip {
  opacity: 1;
}
.rk-note {
  margin-top: 12px;
  font-size: var(--t-small);
  color: var(--muted);
}
.rk-table {
  margin-top: 10px;
}
.rk-table summary {
  display: inline-block;
  cursor: pointer;
  font-size: var(--t-small);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rk-table-wrap {
  margin-top: 12px;
  overflow-x: auto;
}
.rk-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.rk-table th,
.rk-table td {
  padding: 6px 10px 6px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.rk-table td {
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  white-space: nowrap;
}
.rk-table thead th {
  font-weight: 600;
  color: var(--muted);
}
@media (max-width: 720px) {
  .rk-row,
  .rk-axis {
    grid-template-columns: minmax(0, 1fr);
  }
  .rk-row {
    padding: 6px 8px;
  }
  .rk-kw {
    text-align: left;
  }
  .rk-axis .rk-kw {
    display: none;
  }
  .rk-row .rk-tip {
    display: none;
  }
  .rk-row:hover .rk-kw-val,
  .rk-row:focus .rk-kw-val {
    display: inline-block;
  }
  .rk-none-long {
    display: none;
  }
  .rk-none-short {
    display: inline;
  }
}

/* Transition map (brand transition case) ----------------------------------- */
.flow {
  padding-bottom: clamp(48px, 7vw, 88px);
}
.flow .case-h {
  margin-bottom: 18px;
}
.flow-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1.25fr) 56px minmax(0, 1fr);
  align-items: center;
  padding: clamp(22px, 3.5vw, 44px);
  border-radius: 10px;
  background: var(--night);
  color: var(--on-night);
}
.flow-head {
  margin-bottom: 12px;
  font-size: var(--t-mono);
  color: var(--on-night-muted);
}
.flow-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.flow-list li {
  padding: 9px 12px;
  border: 1px solid var(--night-line);
  border-radius: 6px;
  background: var(--night-2);
  font-size: var(--t-small);
  line-height: 1.3;
}
.flow-list--paths li {
  font-family: var(--f-mono);
  font-size: 0.8125rem;
}
.flow-list--to li {
  border-color: rgba(203, 243, 92, 0.35);
}
.flow-node {
  padding: 18px 20px;
  border-radius: 8px;
  background: var(--lime);
  color: var(--ink);
}
.flow-node-title {
  font-family: var(--f-display);
  font-weight: 760;
  font-stretch: 106%;
  font-size: clamp(1.1875rem, 1.05rem + 0.45vw, 1.4375rem);
  line-height: 1.1;
}
.flow-node-text {
  margin-top: 6px;
  font-size: var(--t-small);
  color: var(--ink-soft);
}
.flow-list--inputs {
  margin-top: 12px;
}
.flow-list--inputs li {
  position: relative;
  padding-left: 28px;
  background: transparent;
  color: var(--on-night-muted);
  font-size: 0.8125rem;
}
.flow-list--inputs li::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  transform: translateY(-50%);
}
.flow-arrow {
  position: relative;
  height: 2px;
  margin: 0 10px;
  background: var(--lime);
}
.flow-arrow::after {
  content: '';
  position: absolute;
  right: -2px;
  top: 50%;
  border: 6px solid transparent;
  border-left: 8px solid var(--lime);
  border-right: 0;
  transform: translateY(-50%);
}
.flow-cap {
  margin-top: 10px;
  font-size: var(--t-small);
  color: var(--muted);
}
@media (max-width: 860px) {
  .flow-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .flow-arrow {
    justify-self: center;
    width: 2px;
    height: 26px;
    margin: 0;
  }
  .flow-arrow::after {
    left: 50%;
    right: auto;
    top: auto;
    bottom: -2px;
    border: 6px solid transparent;
    border-top: 8px solid var(--lime);
    border-bottom: 0;
    transform: translateX(-50%);
  }
}

/* Gallery: tall page capture that scrolls in its frame --------------------- */
.shot--scroll .shot-frame img {
  object-position: 50% 0;
  transition: object-position 10s linear;
}
.shot--scroll .shot-btn:hover img,
.shot--scroll .shot-btn:focus-visible img {
  object-position: 50% 100%;
  transform: none;
}
.shot-hint {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(17, 25, 19, 0.8);
  color: var(--paper-hi);
  font-size: 0.6875rem;
  transition: opacity 0.3s;
}
.shot--scroll .shot-btn:hover .shot-hint {
  opacity: 0;
}
.shot-hint-touch {
  display: none;
}
@media (hover: none) {
  .shot-hint-hover {
    display: none;
  }
  .shot-hint-touch {
    display: inline;
  }
}
@media (prefers-reduced-motion: reduce) {
  .shot--scroll .shot-frame img {
    transition: none;
  }
  .shot--scroll .shot-btn:hover img,
  .shot--scroll .shot-btn:focus-visible img {
    object-position: 50% 0;
  }
}

/* Lightbox: tall captures scroll instead of shrinking to fit */
.lb-stage--tall {
  overflow-y: auto;
  place-items: start center;
}
.lb-stage--tall .lb-img {
  width: min(1100px, 100%);
  max-height: none;
  height: auto;
}

/* Search-results graphic (local search case) */
.media--serp {
  display: grid;
  place-items: center;
}
.serp {
  position: absolute;
  left: 9%;
  right: 9%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 5cqw;
  padding: 6cqw 6cqw 5cqw;
  border-radius: 8px;
  background: #fff;
  color: #202124;
  box-shadow: 0 24px 60px -20px rgba(17, 25, 19, 0.35);
  transition: translate 0.8s var(--ease);
}
.serp-search {
  display: flex;
  align-items: center;
  gap: 2.4cqw;
  padding: 2.4cqw 3.6cqw;
  border: 1px solid #dfe1e5;
  border-radius: 2.8cqw;
  color: #5f6368;
  font-size: max(9px, 3.1cqw);
  line-height: 1.2;
}
.serp-search svg {
  flex: none;
  width: max(9px, 3.2cqw);
  height: auto;
}
.serp-q {
  color: #202124;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.serp-list {
  display: grid;
  gap: 3.4cqw;
}
.serp-row {
  display: grid;
  grid-template-columns: 7cqw minmax(0, 1fr);
  align-items: center;
  gap: 2.4cqw;
}
.serp-row b {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: max(8px, 2.6cqw);
  color: #9aa0a6;
}
.serp-lines {
  display: grid;
  gap: 1.4cqw;
}
.serp-lines i {
  display: block;
  height: 2.2cqw;
  border-radius: 99px;
  background: #eceff1;
}
.serp-lines i:first-child {
  width: 78%;
}
.serp-lines i:last-child {
  width: 56%;
}
.serp-row--hit {
  margin: -1.6cqw -2.4cqw;
  padding: 1.6cqw 2.4cqw;
  border-radius: 6px;
  background: color-mix(in srgb, var(--lime) 45%, #fff);
}
.serp-row--hit b {
  color: var(--moss);
  font-weight: 700;
}
.serp-row--hit .serp-lines i {
  background: color-mix(in srgb, var(--moss) 55%, #fff);
}
.serp-move {
  display: flex;
  align-items: baseline;
  gap: 2.4cqw;
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 110%;
  line-height: 1;
  letter-spacing: -0.03em;
}
.serp-move s {
  font-size: 6cqw;
  color: #9aa0a6;
  text-decoration-thickness: 2px;
}
.serp-move span {
  font-size: 5cqw;
  color: var(--moss);
}
.serp-move strong {
  font-size: 9cqw;
  color: var(--ink);
}
.card:hover .serp,
.feature:hover .serp,
.next:hover .serp {
  translate: 0 -4px;
}
.stage .stage-frame {
  max-width: 640px;
}


/* Responsive --------------------------------------------------------------- */
@media (max-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: clamp(32px, 5vw, 64px);
  }
  .career-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
  }
  .career-list > .career-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .row-thumb {
    display: none;
  }
}
@media (max-width: 960px) {
  .cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .card {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 28px;
    align-items: center;
  }
  .wid,
  .teaser,
  .case-intro,
  .case-body,
  .about-career-grid,
  .listening-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .case-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ev-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .ev-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-contact {
    grid-column: 1 / -1;
  }
}
@media (max-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }
  .portrait {
    justify-self: start;
    max-width: 440px;
  }
  .about-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 720px) {
  .nav-list,
  .brand-name {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
  }
  .metrics-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .metric,
  .metric:first-child {
    padding: 22px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .metric:first-child {
    border-top: 0;
  }
  .card {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .row-link,
  .rows--index .row-link {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 16px;
    padding: 20px 0;
  }
  .row-name {
    grid-column: 1;
  }
  .row-num {
    display: none;
  }
  .row-desc {
    grid-column: 1;
    grid-row: 2;
  }
  .row-go {
    grid-column: 2;
    grid-row: 1 / span 2;
    font-size: 0;
    gap: 0;
  }
  .row-go .icon-arrow {
    font-size: 1.25rem;
  }
  .rail-name {
    display: none;
  }
  .career-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .career-list > .career-item:last-child:nth-child(odd) {
    grid-column: auto;
  }
  .career-btn,
  .career-list--stack .career-btn {
    grid-template-columns: 7em minmax(0, 1fr);
    gap: 2px 16px;
    padding: 16px 0;
  }
  .career-years {
    grid-row: 1 / span 3;
    padding-top: 3px;
  }
  .career-role,
  .career-more {
    grid-column: 2;
  }
  .career-card,
  .career-item:nth-child(n + 4) .career-card {
    position: static;
    width: auto;
    margin: 0 0 16px;
    box-shadow: none;
  }
  .career-item--extra .career-btn {
    display: inline-flex;
    padding: 10px 14px;
  }
  .next {
    grid-template-columns: minmax(0, 1fr);
  }
  .next-thumb {
    grid-column: 1;
    grid-row: auto;
    max-width: 420px;
  }
  .next-all {
    grid-row: auto;
  }
  .crumbs-count {
    margin-left: 0;
    width: 100%;
  }
}
@media (max-width: 520px) {
  .hero-actions .btn,
  .closing-actions .btn {
    flex: 1 1 100%;
  }
  .case-meta {
    grid-template-columns: minmax(0, 1fr);
  }
  .ev-stats {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .trips {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .trip {
    padding: 0 0 0 28px;
  }
  .trip::before {
    top: 18px;
    bottom: -14px;
    left: 6px;
    right: auto;
    border-top: 0;
    border-left: 2px dashed var(--line-strong);
  }
  .trip:last-child::before {
    display: none;
  }
  .trip--done::before {
    border-left-style: solid;
    border-left-color: var(--ink);
  }
  .trip-dot {
    top: 5px;
  }
  .lawn-note {
    right: auto;
    left: var(--gutter);
  }
}


@media (max-width: 860px) {
  .about-media {
    max-width: 440px;
  }
}
@media (max-width: 720px) {
  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .rs-row--intro,
  .rs-job,
  .rs-dl > div {
    grid-template-columns: minmax(0, 1fr);
  }
  .rs-receipts {
    grid-template-columns: minmax(0, 1fr);
  }
  .contact-dialog {
    width: 100%;
    height: auto;
    max-height: 92dvh;
    margin: auto 0 0;
    border-radius: 18px 18px 0 0;
  }
  .contact-dialog[open] {
    animation-name: sheet-in;
  }
  @keyframes sheet-in {
    from {
      transform: translateY(40px);
      opacity: 0;
    }
  }
  .lb-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* 16. Motion ---------------------------------------------------------------- */
@keyframes intro-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}
@keyframes hl-sweep {
  from {
    background-size: 0% 100%;
  }
}
.js [data-intro] {
  animation: intro-rise 0.8s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 80ms + 40ms);
}
.js .hero-title .hl {
  animation: hl-sweep 0.9s var(--ease) 0.55s both;
}
/* Big headlines slide in without fading, so they paint (and count as the
   largest paint for page-speed scores) on the very first frame. */
@keyframes intro-slide {
  from {
    transform: translateY(18px);
  }
}
.js .hero-title[data-intro],
.js .page-title[data-intro],
.js .case-title[data-intro] {
  animation-name: intro-slide;
}
.reveal {
  transition: opacity 0.8s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-pending {
  opacity: 0;
  transform: translateY(24px);
}

/* 17. View transitions ------------------------------------------------------ */
@view-transition {
  navigation: auto;
}
::view-transition-old(root) {
  animation: vt-out 0.24s var(--ease-in) both;
}
::view-transition-new(root) {
  animation: vt-in 0.42s var(--ease) 0.06s both;
}
::view-transition-group(*) {
  animation-duration: 0.6s;
  animation-timing-function: var(--ease);
}
::view-transition-group(site-header) {
  animation: none;
}
@keyframes vt-out {
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}
@keyframes vt-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* 18. Reduced motion -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

/* Print: show everything, drop the chrome. Mostly for the résumé. */
@media print {
  .site-header,
  .site-footer,
  .closing,
  .rs-actions,
  .rs-foot,
  .skip-link,
  dialog {
    display: none !important;
  }
  body {
    background: #fff;
  }
  .reveal,
  [data-intro] {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .rs-doc {
    border: 0;
    box-shadow: none;
    padding: 0;
    background: #fff;
  }
}

/* Footer legal line + privacy page */
.footer-legal a {
  color: inherit;
  text-underline-offset: 3px;
}
.legal {
  max-width: 46rem;
  padding-bottom: clamp(56px, 8vw, 112px);
  line-height: 1.65;
  color: var(--ink-soft);
}
.legal h2 {
  margin: 36px 0 10px;
  font-family: var(--f-display);
  font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.625rem);
  font-weight: 740;
  font-stretch: 104%;
  line-height: 1.2;
  color: var(--ink);
}
.legal p + p,
.legal p + ul,
.legal ul + p {
  margin-top: 12px;
}
.legal ul {
  display: grid;
  gap: 8px;
  padding-left: 1.2em;
}
.legal a {
  color: var(--ink);
  text-underline-offset: 3px;
}
.legal-title {
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);
  font-weight: 820;
  font-stretch: 112%;
  line-height: 0.96;
  letter-spacing: -0.035em;
}
