/* Clean and mono. One neutral palette, rounded cards, small uppercase labels, pill buttons.
   Dark is the default theme, light is a switch away. Colors live in the two token blocks below. */

@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

/* Tokens */

:root {
  color-scheme: dark;
  --bg: #121212;
  --bg-2: #1a1a1a;
  --bg-3: #242424;
  --line: rgba(255, 255, 255, 0.13);
  --fg: #ececec;
  --muted: #9a9a9a;
  /* Marker for content that is still missing. Stays yellow in both themes so it is never missed. */
  --hl: #ffe45c;
  --hl-text: #2b2300;

  --f-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --maxw: 76rem;
  --gutter: 1.25rem;
  --r-lg: 1.5rem;
  --r-md: 1rem;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f4f2;
  --bg-2: #ebebe8;
  --bg-3: #e0e0dc;
  --line: rgba(0, 0, 0, 0.15);
  --fg: #111111;
  --muted: #5f5f5f;
}

@media (min-width: 40em) {
  :root { --gutter: 2rem; }
}

/* Base */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 6rem;
  max-width: 100%;
  overflow-x: clip;
}
@supports not (overflow: clip) { html { overflow-x: hidden; } }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  background: var(--bg);
  color: var(--fg);
  font: 400 1rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

#shell { position: relative; width: 100%; max-width: 100%; overflow-x: clip; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

svg { display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--muted); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li + li { margin-top: 0.5em; }
strong { font-weight: 600; }

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

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }

.skip {
  position: absolute;
  left: var(--gutter);
  top: -5rem;
  z-index: 80;
  padding: 0.7rem 1rem;
  background: var(--fg);
  color: var(--bg);
  border-radius: 999px;
  font-weight: 600;
}
.skip:focus { top: 0.75rem; color: var(--bg); }

h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }

/* Small uppercase labels. */
.label, .tag, .cb h4, .lbl, .eyebrow, .sec-head h2, .facts dt, .sticker, .plate-n {
  font-size: 0.75rem;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* Highlighter for content that is still missing. Always visible while building. */
.todo {
  display: inline;
  padding: 0.1em 0.4em;
  background: var(--hl);
  color: var(--hl-text);
  border: 1px dashed var(--hl-text);
  border-radius: 4px;
  font-size: 0.8125rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.9;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Word reveal (set up by main.js) */

.w {
  display: inline-block;
  vertical-align: top;
  overflow: hidden;
  padding: 0.06em 0.12em 0.18em;
  margin: -0.06em -0.12em -0.18em;
}
.wi { display: inline-block; }

@media (prefers-reduced-motion: no-preference) {
  .is-split .wi {
    transform: translateY(115%);
    transition: transform 0.9s var(--ease);
  }
  .is-split.in .wi { transform: none; }
}

/* Header: a floating pill */

.site-header {
  position: fixed;
  z-index: 40;
  top: 0.75rem;
  left: 0;
  right: 0;
  pointer-events: none;
}

.site-header .bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem 1rem;
  width: min(100% - 1.5rem, 62rem);
  min-height: 3.5rem;
  margin-inline: auto;
  padding: 0.35rem 0.4rem 0.35rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
}
.brand:hover { color: inherit; }
.brand-logo { display: block; height: 1.6rem; width: auto; }

.nav { display: flex; gap: 0.15rem; }
.nav a {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.nav a:hover { color: var(--fg); background: var(--bg-3); }
.nav a:last-child { margin-left: 0.25rem; background: var(--fg); color: var(--bg); }
.nav a:last-child:hover { background: var(--fg); color: var(--bg); opacity: 0.85; }

.tools { display: flex; align-items: center; gap: 0.4rem; }

.seg { display: inline-flex; padding: 0.2rem; border: 1px solid var(--line); border-radius: 999px; }
.seg button {
  min-width: 2.4rem;
  min-height: 2.2rem;
  padding: 0 0.6rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 500 0.75rem/1 var(--f-body);
  letter-spacing: 0.1em;
  cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--bg-3); color: var(--fg); }
.seg button:not([aria-pressed="true"]):hover { color: var(--fg); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  transition: background 0.2s;
}
.icon-btn:hover { background: var(--bg-3); }

/* Show the icon for the theme you would switch to. */
.icon-sun { display: none; }
:root:not([data-theme="light"]) .icon-sun { display: block; }
:root:not([data-theme="light"]) .icon-moon { display: none; }

.menu-btn { display: none; }

@media (max-width: 47.99em) {
  .js .menu-btn { display: inline-grid; }
  .js .nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--bg-2);
  }
  .js .nav[data-open="false"] { display: none; }
  .nav a { padding: 0.8rem 1rem; font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; }
  .nav a:last-child { margin: 0.25rem 0 0; text-align: center; }
}

/* Buttons: pills */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  font: 500 0.9375rem/1.2 var(--f-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.2s, opacity 0.2s;
}
.btn:hover { color: var(--fg); background: var(--bg-3); }
.btn-primary { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.btn-primary:hover { background: var(--fg); color: var(--bg); opacity: 0.86; }

/* Hero */

.hero { position: relative; padding-block: 8.5rem clamp(3.5rem, 8vw, 6rem); overflow: clip; }

.hero-grid { display: grid; gap: 1.5rem; min-width: 0; }
.hero-grid > * { min-width: 0; }

.sticker { display: inline-flex; align-items: center; gap: 0.7rem; margin: 0; color: var(--muted); justify-self: start; }
.sticker .dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--fg); animation: pulse 2.4s ease-in-out infinite; }
.sticker small { padding-left: 0.7rem; border-left: 1px solid var(--line); font-size: inherit; letter-spacing: inherit; }
@keyframes pulse { 50% { opacity: 0.25; } }

.hero h1 { font-size: clamp(2.5rem, 6.4vw, 5.75rem); line-height: 1; max-width: 14em; }
.hl { font-style: normal; color: var(--muted); }

.lead { max-width: 30rem; margin-bottom: 1.5rem; color: var(--muted); font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.5; }
.cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Stage: curved project cards around the character */

.stage { margin-block: 0.5rem; }

/* Full-bleed. The canvas is filled by js/stage.bundle.js; until then (or without WebGL) the still portrait shows. */
.screen {
  position: relative;
  height: clamp(26rem, 52vw, 39rem);
  margin-inline: calc(50% - 50vw);
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.screen.is-drag { cursor: grabbing; }
.stage-canvas { position: absolute; inset: 0; display: none; width: 100%; height: 100%; }
.screen.has-3d .stage-canvas { display: block; }
.char {
  position: absolute;
  left: 50%;
  bottom: 6%;
  height: 82%;
  width: auto;
  translate: -50% 0;
  image-rendering: pixelated;
  pointer-events: none;
}
.screen.has-3d .char { display: none; }

.plate {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem 1.25rem;
  align-items: center;
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.plate-n { margin: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.plate-n b { color: var(--fg); font-weight: 500; font-size: 1rem; }
.plate-info { min-width: 0; }
.plate-tags { display: flex; flex-wrap: wrap; gap: 0.1rem 0; margin: 0 0 0.4rem; color: var(--muted); }
.plate-name { margin: 0; font-size: clamp(1.5rem, 3.4vw, 2.5rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; overflow-wrap: anywhere; }
.plate-ctl { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.plate-ctl .icon-btn { width: 3rem; height: 3rem; }
.plate-ctl .btn { flex: 1 1 auto; }
.hint { margin: 0.75rem 0 0; color: var(--muted); font-size: 0.875rem; }

@media (min-width: 48em) {
  .plate { grid-template-columns: 1fr auto; }
  .plate-ctl { grid-column: auto; flex-wrap: nowrap; }
  .plate-ctl .btn { flex: none; }
}

.tag { color: inherit; }
.tag + .tag::before { content: "·"; margin: 0 0.7em; opacity: 0.6; }

/* Stats: a quiet row of figures. */
.receipt {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.receipt li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.receipt .lbl { min-width: 0; color: var(--muted); }
.receipt .lbl small { display: block; margin-top: 0.3rem; font-size: 0.8125rem; letter-spacing: 0; text-transform: none; }
.receipt .dots { display: none; }
.receipt .num { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }

@media (min-width: 56em) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1, .hero-copy, .stage, .receipt { grid-column: 1; }
  .hero h1 { grid-row: 1; max-width: 16em; }
  .hero-copy { grid-row: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem 3rem; flex-wrap: wrap; padding-top: 1.5rem; border-top: 1px solid var(--line); }
  .hero-copy .lead { margin: 0; }
  .stage { grid-row: 3; }
  .receipt { grid-row: 4; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 2rem; margin-top: 1rem; }
  .receipt li { flex-direction: column-reverse; align-items: flex-start; justify-content: flex-end; gap: 0.6rem; padding: 1.5rem 0; border-bottom: 0; }
  .lead { margin-bottom: 1.25rem; }
}

/* Sections */

.section { padding-block: clamp(4rem, 9vw, 8rem); border-top: 1px solid var(--line); }

.sec-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.sec-head h2 { color: var(--muted); }
.section-intro { max-width: 34rem; margin: 0; color: var(--fg); font-size: clamp(1.25rem, 2.4vw, 1.875rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }

/* Case studies: one wide image, then labels, then the title */

#work { counter-reset: case; }

.case {
  counter-increment: case;
  margin-top: 1rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.case-top { display: grid; gap: 1.5rem; padding: clamp(0.6rem, 1.5vw, 1rem) clamp(0.6rem, 1.5vw, 1rem) clamp(1.5rem, 3vw, 2.25rem); }

.case-visual { position: relative; display: grid; gap: 0.6rem; min-width: 0; }
.case-visual::before {
  content: counter(case, decimal-leading-zero);
  position: absolute;
  z-index: 2;
  top: 0.9rem;
  left: 0.9rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

/* Image slots. Swap the contents for an <img> later. */
.shot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  aspect-ratio: 16 / 9;
  padding: 1rem;
  overflow: hidden;
  border-radius: var(--r-md);
  background: repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--fg) 5%, transparent) 14px 15px), var(--bg-3);
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}
.shot b, .shot i { font-size: 0.6875rem; font-weight: 500; font-style: normal; letter-spacing: 0.14em; text-transform: uppercase; }
.shot:has(> img) { padding: 0; } /* the image fills the slot, so it takes the slot's rounded corners */
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; }

.case-head { min-width: 0; display: grid; gap: 0.75rem 3rem; padding-inline: clamp(0.5rem, 1.5vw, 1rem); }
.case-head h3 { font-size: clamp(1.75rem, 3.6vw, 3rem); line-height: 1.05; }
.tags { display: flex; flex-wrap: wrap; align-items: center; margin: 0; color: var(--muted); }
.meta { margin: 0; color: var(--muted); }
.blurb { max-width: 30rem; margin: 0; color: var(--muted); font-size: 1.0625rem; }

@media (min-width: 56em) {
  .case-visual:has(.shot:nth-child(2)) { grid-template-columns: 7fr 5fr; }
  .case-visual .shot + .shot { aspect-ratio: auto; }
  .case-head { grid-template-columns: 7fr 4fr; align-items: start; }
  .case-head .tags { grid-column: 1 / -1; }
  .case-head h3 { grid-column: 1; grid-row: 2 / span 2; }
  .case-head .meta { grid-column: 2; grid-row: 2; }
  .case-head .blurb { grid-column: 2; grid-row: 3; }
}

.case-more { border-top: 1px solid var(--line); }
.case-more summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4rem;
  padding: 0.75rem clamp(1.25rem, 3vw, 2rem);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  transition: background 0.2s;
}
.case-more summary::-webkit-details-marker { display: none; }
.case-more summary .arrow { margin-left: auto; flex: none; width: 22px; height: 22px; transition: rotate 0.5s var(--ease); }
.case-more[open] summary .arrow { rotate: 180deg; }
.case-more summary:hover { background: var(--bg-3); }
.case-more summary:focus-visible { outline-offset: -4px; }
.case-more .t-close, .case-more[open] .t-open { display: none; }
.case-more[open] .t-close { display: inline; }

.case-body { padding: 0 clamp(1.25rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2.5rem); }
@media (prefers-reduced-motion: no-preference) {
  .case-more[open] .case-body { animation: rise 0.6s var(--ease); }
}
@keyframes rise { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: none; } }

.cb { display: grid; gap: 0.75rem 2rem; padding-block: 1.75rem; border-top: 1px solid var(--line); }
.cb:first-child { border-top: 0; }
.cb h4 { color: var(--muted); }
.cb > div { min-width: 0; max-width: 46rem; }
.cb p:last-child, .cb ul:last-child, .cb ol:last-child { margin-bottom: 0; }
.cb li + li { margin-top: 0.75rem; }
.cb li strong { color: var(--fg); }

/* Project snapshot: client, engagement, role, scope, status. */
.snap { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem 2rem; margin: 0; }
.snap dt { margin-bottom: 0.25rem; color: var(--muted); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.snap dd { margin: 0; }

/* Selected screens: real screens from the project, cropped to the top of each page. */
.cb > .gallery { max-width: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 1.25rem 1rem; }
.gallery figure { margin: 0; min-width: 0; }
.gallery img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: var(--r-md); background: var(--bg-3); }
.gallery .portrait img { aspect-ratio: 3 / 4; }
/* Two equal columns: a row of two wide screens, then a row of two phones, so every row has one height. */
.cb > .gallery.gallery--pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery--pairs img { aspect-ratio: 16 / 10; }
.gallery--pairs .portrait img { aspect-ratio: 4 / 5; }
.gallery figcaption { margin-top: 0.5rem; color: var(--muted); font-size: 0.875rem; }
@media (min-width: 48em) {
  .cb { grid-template-columns: 11rem 1fr; }
}

/* More work grid */

.empty { margin: 0; }
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.grid .card { min-width: 0; padding: 1.25rem; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md); }
.grid .card-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; margin-bottom: 1rem; border-radius: calc(var(--r-md) - 4px); object-fit: cover; background: var(--bg-3); }
.grid .card h3 { margin-bottom: 0.5rem; font-size: 1.5rem; }
.grid .card p:last-child { margin: 0; color: var(--muted); }
.grid .tags { margin-bottom: 0.9rem; }

/* Services */

.svc { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.svc li { display: grid; gap: 0.6rem 1.5rem; margin: 0; padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
.svc-n { color: var(--muted); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; }
.svc h3 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); line-height: 1.05; }
.svc-body { min-width: 0; max-width: 28rem; }
.svc-body p { margin: 0 0 0.6rem; color: var(--muted); }
.svc-body .svc-inc { margin-bottom: 1rem; }
.svc-go {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.4rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}
.svc-go:hover { background: var(--bg-3); color: var(--fg); }
@media (min-width: 48em) {
  .svc li { grid-template-columns: 3.5rem 6fr 4fr; align-items: start; padding-block: 2.25rem; }
  .svc-n { padding-top: 0.7rem; }
}

/* Process */

.process { display: grid; gap: 2.5rem; }
.proc-num { display: none; margin: 0; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; min-width: 0; }
.steps li {
  display: grid;
  align-content: start;
  gap: 0.4rem;
  margin: 0;
  padding: clamp(0.9rem, 2vw, 1.25rem) 0;
  border-top: 1px solid var(--line);
  counter-increment: step;
  transition: opacity 0.4s ease, transform 0.5s var(--ease);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: "0" counter(step);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
}
.steps h3 { font-size: clamp(1.4rem, 2.8vw, 2.1rem); line-height: 1.05; }
.steps p { margin: 0; max-width: 34rem; color: var(--muted); font-size: 1rem; }

@media (min-width: 56em) {
  .process { grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; }
  .proc-num {
    display: block;
    margin-top: 1.5rem;
    font-size: clamp(7rem, 15vw, 13rem);
    font-weight: 500;
    letter-spacing: -0.05em;
    line-height: 0.85;
    color: color-mix(in srgb, var(--fg) 22%, transparent);
  }
  .steps li::before { display: none; }
}

/* About and Contact: one statement, one rule, one paragraph, a few facts */

.statement { max-width: 62rem; text-align: center; }

/* The About character at his desk: low-res canvas (176 x 168) scaled up with nearest-neighbour, so every pixel stays visible. */
.figure { position: relative; width: fit-content; margin: 0 auto clamp(1.25rem, 3.5vw, 2.25rem); isolation: isolate; }
.figure-canvas, .figure-still {
  display: block;
  height: clamp(17rem, 46vw, 27rem);
  width: auto;
  aspect-ratio: 176 / 168;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}
.figure-canvas { display: none; }
.figure.has-3d .figure-canvas { display: block; cursor: pointer; }
.figure.has-3d .figure-still { display: none; }
/* A soft disc behind him so a dark outfit does not sink into a dark page (same idea as the hero). */
.figure::before {
  content: "";
  position: absolute;
  inset: 0 -14% 0;
  z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, #fff 14%, transparent), transparent);
  pointer-events: none;
}
:root[data-theme="light"] .figure::before { background: radial-gradient(closest-side, color-mix(in srgb, #000 7%, transparent), transparent); }
.eyebrow { margin: 0 0 1.25rem; color: var(--muted); }
.statement h2 { margin-inline: auto; font-size: clamp(2.5rem, 7.5vw, 5.75rem); line-height: 1; letter-spacing: -0.04em; }
.st-lead {
  max-width: 38rem;
  margin: clamp(1.75rem, 4vw, 2.75rem) auto 0;
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 1px solid var(--line);
}
.st-lead p { margin-bottom: 1rem; color: var(--muted); font-size: clamp(1.0625rem, 2vw, 1.3125rem); line-height: 1.5; }
.st-lead p:last-child { margin-bottom: 0; }

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 1.25rem;
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.facts > * { min-width: 0; margin: 0; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.facts dt, .facts li > span:first-child:not(.todo) { margin-bottom: 0.4rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.facts li { display: block; }
.facts a { font-weight: 500; overflow-wrap: anywhere; }
.facts--links a::after { content: " \2197"; display: inline-block; text-decoration: none; }
.facts--links li:only-child { grid-column: 1 / -1; }
@media (min-width: 48em) {
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts--links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Footer */

.site-footer { padding-block: 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.875rem; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }
.foot p { margin: 0; }

/* Print and motion off */

@media print {
  .is-split .wi { transform: none !important; }
  .site-header, .stage { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Services group labels, "You get" lines, Why work with me, contact note (stage 3) */
.svc li.svc-group { display: block; padding: 1.25rem 0 0.4rem; border-bottom: 0; }
.svc li.svc-group .label { margin: 0; }
.svc-inc { color: var(--muted); }
.case-visual[hidden] { display: none; }
.why { margin: 0; padding: 0; list-style: none; display: grid; gap: 2rem; }
.why li { margin: 0; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.why h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.1; margin-bottom: 0.6rem; }
.why p { margin: 0; max-width: 38rem; }
@media (min-width: 52rem) { .why { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
[hidden] { display: none !important; }
.facts--links li > span:first-child { display: block; }

/* The last word of the headline changes style every couple of seconds (js/main.js sets data-v). Still when motion is reduced. */
.hero h1 .hl { transition: color 0.35s ease; }
.hero h1 .hl[data-v="1"] { color: transparent; -webkit-text-stroke: 0.025em var(--fg); }
.hero h1 .hl[data-v="2"] { color: var(--fg); font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 400; letter-spacing: -0.02em; }
.hero h1 .hl[data-v="3"] { color: var(--fg); font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-weight: 500; letter-spacing: -0.06em; }
.hero h1 .hl[data-v="4"] { color: var(--fg); font-weight: 900; }
.hero h1 .hl[data-v="5"] { color: var(--muted); font-weight: 200; }

/* Process cards: letters rise in when a card appears (js/main.js adds .in). */
.cw { display: inline-block; white-space: nowrap; }
.js .steps .ch { display: inline-block; opacity: 0; transform: translateY(0.45em); transition: opacity 0.35s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--d, 0ms); }
.js .steps li.in .ch { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .steps .ch { opacity: 1; transform: none; transition: none; } }


/* Process is pinned while you scroll: the steps open one by one, and close again when you scroll back up (js/main.js). */
#process.pin { height: calc(100svh + var(--steps, 6) * 38svh); }
#process.pin .process { position: sticky; top: 6rem; }
.js #process.pin .steps li:not(.open) { opacity: 0; transform: translateY(0.75rem); pointer-events: none; }
.js .steps li:not(.in) .ch { transition-delay: 0ms; transition-duration: 0.15s; }

/* Content that appears as you scroll (js/main.js adds .rv, then .in-view when the block comes into view). */
.js .rv { opacity: 0; transform: translateY(1.5rem); transition: opacity 0.7s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--rv-i, 0) * 70ms); }
.js .rv.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } }

.contact-cta { justify-content: center; margin-top: 2rem; }
