/* ============================================================
   JEN YAN — Brand Design + Art Direction
   Design system: "Signal Bright" — stark black-on-white,
   generous whitespace, structural edges with restrained accent
   radius. Project photography is the visual interest; the
   system stays quiet around it.
   ============================================================ */

:root {
  /* Type scale */
  --text-xs: clamp(0.7rem, 0.66rem + 0.2vw, 0.8rem);
  --text-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.9rem);
  --text-base: clamp(0.9rem, 0.86rem + 0.2vw, 1rem);
  --text-lg: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.05rem + 1vw, 1.75rem);
  --text-2xl: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  --text-3xl: clamp(1.75rem, 0.9rem + 3vw, 3.25rem);
  --text-hero: clamp(1.65rem, 0.5rem + 3.65vw, 3.9rem);

  /* Spacing (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --radius-sm: 0.35rem;
  --radius-md: 0.55rem;
  --radius-lg: 0.9rem;
  --radius-xl: 1.35rem;
  --radius-2xl: 1.75rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-signal: cubic-bezier(0.16, 1, 0.3, 1);

  --content-narrow: 640px;
  --content-default: 980px;
  --content-wide: 1280px;
  --content-full: 100%;

  --font-display: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'Geist Mono', 'SF Mono', 'Roboto Mono', Menlo, monospace;

  --color-accent-2: #e4e4e4;
}

/* ---------- DARK (default) — pure black background, pure white text. Strict monochrome: black, white, and gray for smaller/secondary copy only.
   NOTE: this block must come BEFORE the light-theme block below. `:root` and `[data-theme='light']`
   have equal selector specificity, so the cascade falls back to source order — putting the light
   override second is what lets the toggle actually flip the palette. ---------- */
:root,
[data-theme='dark'] {
  --color-bg: #000000;
  --color-surface: #000000;
  --color-surface-2: #000000;
  --color-surface-offset: #1a1a1a;
  --color-surface-offset-2: #262626;
  --color-surface-dynamic: #333333;
  --color-divider: rgba(255, 255, 255, 0.16);
  --color-border: rgba(255, 255, 255, 0.28);
  --color-accent-2-highlight: rgba(255, 255, 255, 0.2);
  --color-accent-ink: #cccccc;

  --color-text: #ffffff;
  --color-text-muted: #999999;
  --color-text-faint: #666666;
  --color-text-inverse: #000000;

  --color-primary: #ffffff;
  --color-primary-hover: #cccccc;
  --color-primary-active: #999999;
  --color-primary-highlight: rgba(255, 255, 255, 0.3);

  --color-warning: #999999;
  --color-error: #999999;
  --color-success: #999999;
  --color-blue: #999999;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.7);
}

/* ---------- LIGHT — pure white surface, pure black text (inverse toggle) ---------- */
[data-theme='light'] {
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-surface-2: #ffffff;
  --color-surface-offset: #ededed;
  --color-surface-offset-2: #e0e0e0;
  --color-surface-dynamic: #d9d9d9;
  --color-divider: rgba(0, 0, 0, 0.1);
  --color-border: rgba(0, 0, 0, 0.16);
  --color-accent-2-highlight: rgba(0, 0, 0, 0.08);
  --color-accent-ink: #555555;

  --color-text: #000000;
  --color-text-muted: #666666;
  --color-text-faint: #999999;
  --color-text-inverse: #ffffff;

  --color-primary: #000000;
  --color-primary-hover: #333333;
  --color-primary-active: #666666;
  --color-primary-highlight: rgba(0, 0, 0, 0.3);

  --color-warning: #666666;
  --color-error: #666666;
  --color-success: #666666;
  --color-blue: #666666;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.18);
}

/* ============ Base layout helpers ============ */

.wrap {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 4vw, var(--space-12));
}

.wrap--default {
  max-width: var(--content-default);
}

section {
  padding-block: clamp(var(--space-16), 9vw, var(--space-32));
}
#work {
  padding-top: var(--space-5);
  padding-bottom: var(--space-5);
}
#approach {
  padding-top: var(--space-5);
}

.section-tight {
  padding-block: clamp(var(--space-10), 5vw, var(--space-16));
}

main {
  display: block;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--space-3);
  z-index: 999;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}
.skip-link:focus {
  left: var(--space-3);
}

/* ============ Typography ============ */

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent-ink);
  box-shadow: 0 0 0 3px var(--color-accent-2-highlight);
  flex-shrink: 0;
}

h1,
.h1 {
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -0.01em;
}
h2,
.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: var(--text-2xl);
}
h3,
.h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xl);
  letter-spacing: -0.005em;
}
h4,
.h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-lg);
}

.lede {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 46ch;
}

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

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

.text-link {
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.05em;
}
.text-link:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* ============ Header ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: transform 0.35s var(--ease-signal), border-color 0.4s var(--ease-signal), background-color 0.4s var(--ease-signal);
}
.site-header--hidden {
  transform: translateY(-120%);
}
.site-header--scrolled {
  background: color-mix(in oklab, var(--color-bg) 86%, transparent);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border-bottom-color: var(--color-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-5);
}
.site-header__inner.wrap {
  max-width: 1120px;
}

.logo-mark {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 650;
  font-size: var(--text-sm);
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.hero-name {
  text-transform: uppercase;
  font-size: 1.16em;
  display: inline-flex;
  align-items: baseline;
}
.hero-name__cursor {
  display: inline-block;
  width: 3px;
  height: 0.72em;
  margin-left: 0.1em;
  background: var(--color-accent-ink);
  animation: hero-cursor-blink 1s steps(1) infinite;
}
@keyframes hero-cursor-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-name__cursor {
    animation: none;
  }
}
.logo-mark svg {
  width: 30px;
  height: 30px;
  color: var(--color-primary);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.main-nav__links {
  display: flex;
  gap: var(--space-6);
  font-size: var(--text-sm);
}
.main-nav__links a {
  color: var(--color-text-muted);
  position: relative;
  padding-block: var(--space-1);
}
.main-nav__links a:hover,
.main-nav__links a[aria-current='page'] {
  color: var(--color-text);
}
.main-nav__links a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--color-accent-ink);
  border-radius: var(--radius-full);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  display: grid;
  place-items: center;
  color: var(--color-text-muted);
}
.theme-toggle:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.theme-toggle svg {
  width: 16px;
  height: 16px;
}

.menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--color-text);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  white-space: nowrap;
  transition: border-color 0.25s var(--ease-signal), color 0.25s var(--ease-signal), background-color 0.25s var(--ease-signal), transform 0.25s var(--ease-signal);
}
.btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-1px);
}
.btn--primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-inverse);
}
.btn--primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: var(--color-text-inverse);
}
.btn svg {
  width: 15px;
  height: 15px;
  color: var(--color-accent-ink);
}
.btn--primary svg {
  color: currentColor;
}

/* ============ Hero ============ */

.hero {
  padding-top: var(--space-16);
  padding-bottom: var(--space-10);
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
  width: 100%;
  position: relative;
  z-index: 1;
  text-align: center;
}
.hero__kicker {
  margin-bottom: var(--space-6);
}
.hero h1 {
  font-size: var(--text-hero);
  max-width: 24ch;
  margin-inline: auto;
  line-height: 1.32;
}
.hero h1 em {
  font-style: normal;
  font-weight: 400;
}
.hero-title-line {
  display: inline-block;
  margin-top: var(--space-3);
  font-size: 0.7em;
}

/* Hero title — a highlighter marker draws over each phrase once; text flips white → black under the mark */
.hero__title-wrap {
  position: relative;
  display: inline-block;
  margin-inline: auto;
  isolation: isolate;
}
.hero-underline-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
}
.hero-highlight-mark {
  position: absolute;
  background-color: var(--color-accent-2);
  clip-path: inset(0 100% 0 0);
  pointer-events: none;
  z-index: 1;
}
.hero-ink-window {
  pointer-events: none;
  z-index: 2;
}
.hero-ink-window h1,
.hero-ink-window em {
  pointer-events: none;
}
.hero-cursor {
  position: absolute;
  width: 26px;
  height: 32px;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}
.hero-cursor svg {
  display: block;
  width: 100%;
  height: 100%;
}
@media (prefers-reduced-motion: reduce) {
  .hero-highlight-mark {
    clip-path: inset(0 0% 0 0) !important;
  }
  .hero-cursor {
    display: none !important;
  }
}
/* Signal scan line decoration (subtle, not a glowing orb) */
.signal-line {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    color-mix(in oklab, var(--color-accent-2) 30%, transparent) 0,
    transparent 1px,
    transparent 48px
  );
  opacity: 0.5;
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}



/* ============ Section headers ============ */

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-8);
  margin-bottom: clamp(var(--space-10), 5vw, var(--space-16));
  flex-wrap: wrap;
}
.section-head h2 {
  max-width: 20ch;
}
.section-head .lede {
  margin-top: var(--space-3);
}
.section-index {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* ============ Work grid ============ */

.filter-bar {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-12));
}
.filter-chip {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
}
.filter-chip:hover {
  border-color: var(--color-primary);
  color: var(--color-text);
}
.filter-chip[aria-pressed='true'] {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-inverse);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(var(--space-5), 2.5vw, var(--space-8));
}

.work-card {
  position: relative;
  grid-column: span 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(24px);
  transition:
    transform 0.6s var(--ease-signal),
    opacity 0.6s var(--ease-signal),
    box-shadow 0.3s var(--ease-signal);
}
.work-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.work-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.work-card.is-visible:hover {
  transform: translateY(-3px);
}
.work-card--feature {
  grid-column: span 4;
}
.work-card--small {
  grid-column: span 2;
}

.work-card__media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-surface-offset);
}
.work-card--feature .work-card__media {
  aspect-ratio: 16/10;
}
.work-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-signal);
}
.work-card:hover .work-card__media img {
  transform: scale(1.045);
}
.work-card__tag {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: color-mix(in oklab, var(--color-bg) 55%, transparent);
  color: var(--color-text-inverse, #fff);
  backdrop-filter: blur(6px);
  border: 1px solid color-mix(in oklab, white 20%, transparent);
}

.work-card__body {
  padding: var(--space-5) var(--space-5) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}
.work-card__brand {
  font-size: var(--text-lg);
  font-family: var(--font-display);
  font-weight: 600;
}
.work-card__role {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.work-card__stat {
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-primary);
  letter-spacing: 0.03em;
}
.work-card__link {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.work-card__arrow {
  position: absolute;
  bottom: var(--space-5);
  right: var(--space-5);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: grid;
  place-items: center;
  color: var(--color-accent-ink);
  background: var(--color-surface);
  transition: transform 0.35s var(--ease-signal), background 0.2s;
}
.work-card:hover .work-card__arrow {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  transform: rotate(45deg);
}
.work-card__arrow svg {
  width: 15px;
  height: 15px;
}

/* ============ Image mosaic (rounded, editorial brand grid) ============ */

.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 26vw);
  grid-template-areas:
    "samsung sap sap archive"
    "samsung tmobile tmobile archive"
    "penske penske ups ups";
  gap: var(--space-3);
  background: transparent;
  margin-bottom: clamp(var(--space-16), 8vw, var(--space-24));
}
.mosaic__item {
  position: relative;
  overflow: hidden;
  display: block;
  background: var(--color-surface-offset);
  border-radius: var(--radius-lg);
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s var(--ease-signal),
    transform 0.7s var(--ease-signal);
}
.mosaic__item.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.mosaic__item--sap { grid-area: sap; }
.mosaic__item--samsung { grid-area: samsung; }
.mosaic__item--tmobile { grid-area: ups; }
.mosaic__item--ups { grid-area: tmobile; }
.mosaic__item--penske { grid-area: penske; }
.mosaic__item--archive { grid-area: archive; }
.mosaic__slide--placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-offset-2);
}
.mosaic__slide--placeholder span {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.4vw, 2.75rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}
.mosaic__zoom {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s var(--ease-signal);
}
.mosaic__item:hover .mosaic__zoom {
  transform: scale(1.06);
}
.mosaic__slides {
  position: relative;
  width: 100%;
  height: 100%;
}
.mosaic__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.mosaic__slide.is-active {
  display: block;
}
.mosaic__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-4);
  text-align: center;
  background: rgba(0, 0, 0, 0.62);
  opacity: 0;
  transition: opacity 0.4s var(--ease-signal);
}
.mosaic__item:hover .mosaic__overlay,
.mosaic__item:focus-visible .mosaic__overlay {
  opacity: 1;
}
.mosaic__logo {
  height: clamp(20px, 2.6vw, 32px);
  width: auto;
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.45s var(--ease-signal) 0.05s,
    transform 0.45s var(--ease-signal) 0.05s;
}
.mosaic__item:hover .mosaic__logo,
.mosaic__item:focus-visible .mosaic__logo {
  opacity: 1;
  transform: translateY(0);
}
.mosaic__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.45s var(--ease-signal) 0.12s,
    transform 0.45s var(--ease-signal) 0.12s;
}
.mosaic__item:hover .mosaic__meta,
.mosaic__item:focus-visible .mosaic__meta {
  opacity: 1;
  transform: translateY(0);
}
.mosaic__meta-event {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
}
.mosaic__meta-year {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
}
@media (max-width: 860px) {
  .mosaic {
    /* Same composition as desktop, with taller rows so the tiles keep a
       generous crop on narrower screens. */
    grid-template-rows: repeat(3, 30vw);
  }
}
@media (max-width: 560px) {
  .mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(6, 52vw);
    grid-template-areas:
      "sap sap"
      "samsung archive"
      "samsung archive"
      "tmobile tmobile"
      "penske penske"
      "ups ups";
    gap: var(--space-2);
  }
  .mosaic__logo { height: 22px; }
  .mosaic__slide--placeholder span { font-size: clamp(1.25rem, 6vw, 2rem); }
}

/* ============ Approach / AI section (editorial, no icon grid) ============ */

.approach {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(var(--space-10), 6vw, var(--space-20));
  align-items: start;
}
.approach__intro {
  grid-column: 1;
  align-self: start;
}
.approach__quote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.25;
  color: var(--color-text);
}
.approach__quote span {
  color: var(--color-primary);
}
.approach__quote--subtle {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  font-size: var(--text-base);
  color: var(--color-accent-ink);
  opacity: 0.7;
}
.approach__skills-list {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  row-gap: var(--space-1);
  list-style: none;
  padding: 0;
  margin: 0;
}
.approach__skills-list li {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  transition: color 0.25s var(--ease-signal);
}
.approach__skills-list li:not(:last-child)::after {
  content: '\00b7';
  display: inline-block;
  margin: 0 var(--space-2);
  color: var(--color-text-faint);
}
.approach__skills-list li:hover {
  color: var(--color-accent-ink);
}
.approach__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6) var(--space-4);
  margin-top: clamp(var(--space-10), 5vw, var(--space-16));
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}
.approach__stat-num {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  font-weight: 650;
}
.approach__stat-label {
  margin-top: var(--space-1);
  font-size: var(--text-xs);
  line-height: 1.4;
  color: var(--color-text-muted);
}
@media (max-width: 560px) {
  .approach__stats {
    grid-template-columns: 1fr;
  }
}
.approach__slider {
  grid-column: 2;
  grid-row: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  min-width: 0;
}
.approach__track {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-1) var(--space-1) var(--space-3);
  margin: calc(var(--space-1) * -1) calc(var(--space-1) * -1) calc(var(--space-3) * -1);
  cursor: grab;
  scrollbar-width: none;
}
.approach__track::-webkit-scrollbar {
  display: none;
}
.approach__track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}
.approach__card {
  flex: 0 0 min(22rem, 82%);
  scroll-snap-align: start;
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: transform 0.35s var(--ease-signal), border-color 0.35s var(--ease-signal);
}
.approach__card:hover {
  border-color: var(--color-accent-ink);
  transform: translateY(-4px);
}
.approach__num {
  font-family: var(--font-mono);
  color: var(--color-accent-ink);
  font-size: var(--text-sm);
}
.approach__card h3 {
  margin: 0;
  font-size: var(--text-base);
}
.approach__card h4 {
  margin: 0;
}
.approach__card p {
  color: var(--color-text-muted);
  margin: 0;
}

/* Core Skills / Process slider cards in light mode: white card surface
   with black header text and gray body text, matching the light theme. */
[data-theme='light'] .approach__card {
  background: #ffffff;
}
[data-theme='light'] .approach__card h3,
[data-theme='light'] .approach__card h4 {
  color: #000000;
}
[data-theme='light'] .approach__card p {
  color: var(--color-text-muted);
}
.approach__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.approach__dots {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.approach__dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: var(--radius-full);
  background: var(--color-border);
  cursor: pointer;
  transition: background 0.3s var(--ease-signal), width 0.3s var(--ease-signal);
}
.approach__dot.is-active {
  width: 22px;
  background: var(--color-accent-ink);
}
.approach__arrows {
  display: flex;
  gap: var(--space-3);
}
.approach__arrow {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.2s var(--ease-signal), background 0.2s var(--ease-signal), transform 0.2s var(--ease-signal);
}
.approach__arrow:hover:not(:disabled) {
  border-color: var(--color-accent-ink);
  background: var(--color-surface-offset);
  transform: translateY(-2px);
}
.approach__arrow:disabled {
  opacity: 0.3;
  cursor: default;
}
.approach__arrow svg {
  width: 16px;
  height: 16px;
}

/* ============ Stat strip ============ */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.stat {
  padding: clamp(var(--space-8), 4vw, var(--space-12)) var(--space-4);
  border-left: 1px solid var(--color-border);
  text-align: left;
}
.stat:first-child {
  border-left: none;
}
.stat__num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-text);
  font-weight: 650;
}
.stat__label {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ============ About teaser ============ */

.about-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-10), 6vw, var(--space-20));
  align-items: center;
}
.about-teaser--text-only {
  grid-template-columns: 1fr;
  gap: var(--space-3);
  max-width: 62ch;
  margin-inline: auto;
  text-align: center;
}
.about-teaser--text-only > * {
  justify-self: center;
}
.about-teaser--text-only .lede {
  margin-inline: auto;
}
.about-teaser h2 {
  font-size: var(--text-xl);
  line-height: 1.35;
}
.teaser-lede-link {
  color: inherit;
  font-size: inherit;
  text-decoration: none;
}
.teaser-lede-link:hover,
.teaser-lede-link:focus-visible {
  text-decoration: underline;
}
.about-teaser__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--color-surface-offset);
}
.about-teaser__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-mark {
  color: var(--color-text-muted);
  display: flex;
}
.about-mark svg {
  width: 100%;
  height: 100%;
}

/* ============ Footer / CTA ============ */

.cta-band {
  border-top: 1px solid var(--color-border);
  padding-block: clamp(var(--space-16), 9vw, var(--space-24));
}
.cta-band__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-10);
  flex-wrap: wrap;
}
.cta-band h2 {
  max-width: 16ch;
}
.cta-band__email {
  font-family: var(--font-display);
  font-size: var(--text-xl);
}
.cta-band__email:hover {
  color: var(--color-primary);
}

.site-footer {
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-8);
}
.site-footer__note {
  margin-top: var(--space-6);
  max-width: 72ch;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  line-height: 1.7;
  color: var(--color-text-muted);
  text-wrap: pretty;
}
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-family: var(--font-body);
}
.site-footer__links {
  display: flex;
  gap: var(--space-5);
}
.site-footer__links a:hover {
  color: var(--color-primary);
}

/* ============ Case study page ============ */

.cs-hero {
  padding-top: clamp(var(--space-12), 6vw, var(--space-20));
  padding-bottom: clamp(var(--space-10), 5vw, var(--space-16));
}
.cs-hero__meta {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
  margin: var(--space-6) 0 var(--space-8);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cs-hero__meta strong {
  color: var(--color-text-muted);
  font-weight: 500;
}
.cs-hero h1 {
  font-size: clamp(1.5rem, 1.1rem + 2.25vw, 3rem);
  max-width: 20ch;
}
.cs-hero__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 220px);
  gap: clamp(var(--space-6), 4vw, var(--space-12));
  align-items: start;
}
.cs-hero__note {
  margin-top: var(--space-2);
  padding: var(--space-4);
  border: 1px solid var(--color-accent-ink);
  border-radius: var(--radius-md);
  text-align: left;
}
.cs-hero__note p {
  font-family: var(--font-body);
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  text-wrap: pretty;
}
@media (max-width: 760px) {
  .cs-hero__head { grid-template-columns: 1fr; gap: var(--space-5); }
  .cs-hero__note { margin-top: 0; max-width: 42ch; }
}
.cs-hero__lede {
  margin-top: var(--space-6);
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 62ch;
}
.cs-hero__figure {
  position: relative;
  margin-top: clamp(var(--space-10), 5vw, var(--space-16));
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
}
.cs-hero__figure-parallax {
  position: absolute;
  inset: -7% 0;
  will-change: transform;
}
.cs-hero__figure-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transform: scale(1.14);
  animation: cs-hero-figure-in 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes cs-hero-figure-in {
  from {
    opacity: 0;
    transform: scale(1.22);
  }
  to {
    opacity: 1;
    transform: scale(1.14);
  }
}
@media (prefers-reduced-motion: reduce) {
  .cs-hero__figure-img {
    animation: none;
    opacity: 1;
    transform: scale(1.02);
  }
}

.cs-details {
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.cs-details > .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
}
.cs-details h4 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  font-weight: 500;
  margin-bottom: var(--space-4);
}
.cs-details ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  color: var(--color-text-muted);
}
.cs-details p {
  color: var(--color-text-muted);
}
.cs-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}
.cs-result__num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-primary);
}
.cs-result__label {
  margin-top: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.cs-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(var(--space-6), 4vw, var(--space-10));
}
.cs-gallery__item,
.cs-gallery__item--wide,
.cs-gallery__item--tall {
  grid-column: 1 / -1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  cursor: zoom-in;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s var(--ease-signal),
    transform 0.55s var(--ease-signal);
}
.cs-gallery__item.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.cs-gallery__item img,
.cs-gallery__item--wide img,
.cs-gallery__item--tall img {
  width: 100%;
  height: auto;
  display: block;
}

.cs-gallery__header {
  grid-column: 1 / -1;
  min-width: 0;
  padding-top: var(--space-6);
  margin-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s var(--ease-signal),
    transform 0.55s var(--ease-signal);
}
.cs-gallery__header.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.cs-gallery__header--first {
  padding-top: 0;
  margin-top: 0;
  border-top: none;
}
.cs-gallery__header h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text-muted);
}

.cs-gallery__fillrow {
  grid-column: 1 / -1;
  display: flex;
  gap: clamp(var(--space-2), 1vw, var(--space-3));
}
.cs-gallery__fillrow > .cs-gallery__item {
  flex: 1 1 0;
  min-width: 0;
}

.cs-gallery__item--video {
  grid-column: 1 / -1;
  cursor: zoom-in;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}
.gallery-video__mute-btn {
  position: absolute;
  right: var(--space-3);
  bottom: var(--space-3);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 2;
  padding: 0;
}
.gallery-video__mute-btn svg {
  width: 18px;
  height: 18px;
}
.cs-gallery__item--video:hover .gallery-video__mute-btn,
.cs-gallery__item--video:focus-within .gallery-video__mute-btn,
.cs-gallery__item--video.is-active .gallery-video__mute-btn,
.cs-slider__card--video:hover .gallery-video__mute-btn,
.cs-slider__card--video:focus-within .gallery-video__mute-btn,
.cs-slider__card--video.is-active .gallery-video__mute-btn {
  opacity: 1;
  transform: translateY(0);
}
.gallery-video__expand-btn {
  position: absolute;
  left: var(--space-3);
  bottom: var(--space-3);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 2;
  padding: 0;
}
.gallery-video__expand-btn svg {
  width: 16px;
  height: 16px;
}
.cs-gallery__item--video:hover .gallery-video__expand-btn,
.cs-gallery__item--video:focus-within .gallery-video__expand-btn,
.cs-gallery__item--video.is-active .gallery-video__expand-btn,
.cs-slider__card--video:hover .gallery-video__expand-btn,
.cs-slider__card--video:focus-within .gallery-video__expand-btn,
.cs-slider__card--video.is-active .gallery-video__expand-btn {
  opacity: 1;
  transform: translateY(0);
}
.cs-gallery__item--video:has(iframe) {
  aspect-ratio: 16/9;
}
.cs-gallery__item--video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}
.cs-gallery__item--video video {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
}

/* ============ Case study gallery slider (swipeable, same pattern as Approach) ============ */

.cs-slider {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: var(--space-5);
}
.cs-slider__track {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-1) var(--space-1) var(--space-3);
  margin: calc(var(--space-1) * -1) calc(var(--space-1) * -1) calc(var(--space-3) * -1);
  cursor: grab;
  scrollbar-width: none;
}
.cs-slider__track::-webkit-scrollbar {
  display: none;
}
.cs-slider__track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}
.cs-slider__card {
  position: relative;
  flex: 0 0 min(26rem, 82%);
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  aspect-ratio: 4/3;
  cursor: zoom-in;
}
.cs-slider__card--video {
  cursor: zoom-in;
}
.cs-slider__card:has(iframe) {
  aspect-ratio: 16/9;
}
.cs-slider__card img,
.cs-slider__card video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.cs-slider__card iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

/* Mixtape/album covers: show the entire artwork with no cropping, letterboxed
   on a subtle surface fill rather than forced to a fixed crop. */
.cs-slider__card--contain {
  aspect-ratio: 1/1;
}
.cs-slider__card--contain img {
  object-fit: contain;
}

/* Hover affordance: enlarge media slightly on hover so desktop viewers know
   the whole image/video is clickable to expand (skipped on touch, which has
   no hover state anyway). */
@media (hover: hover) and (pointer: fine) {
  .cs-gallery__item img,
  .cs-gallery__item--wide img,
  .cs-gallery__item--tall img,
  .cs-gallery__item--video video,
  .cs-gallery__item--video iframe,
  .cs-slider__card img,
  .cs-slider__card video,
  .cs-slider__card iframe {
    transition: transform 0.5s var(--ease-signal);
  }
  .cs-gallery__item:hover img,
  .cs-gallery__item--wide:hover img,
  .cs-gallery__item--tall:hover img,
  .cs-gallery__item--video:hover video,
  .cs-gallery__item--video:hover iframe,
  .cs-slider__card:hover img,
  .cs-slider__card:hover video,
  .cs-slider__card:hover iframe {
    transform: scale(1.045);
  }
}
.cs-slider__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-width: 0;
}
.cs-slider__dots {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  mask-image: linear-gradient(to right, black calc(100% - 20px), transparent 100%);
}
.cs-slider__dots::-webkit-scrollbar {
  display: none;
}
.cs-slider__dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: var(--radius-full);
  background: var(--color-border);
  cursor: pointer;
  transition: background 0.3s var(--ease-signal), width 0.3s var(--ease-signal);
}
.cs-slider__dot.is-active {
  width: 22px;
  background: var(--color-accent-ink);
}
.cs-slider__arrows {
  display: flex;
  gap: var(--space-3);
  flex-shrink: 0;
}
.cs-slider__arrow {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.2s var(--ease-signal), background 0.2s var(--ease-signal), transform 0.2s var(--ease-signal);
}
.cs-slider__arrow:hover:not(:disabled) {
  border-color: var(--color-accent-ink);
  background: var(--color-surface-offset);
  transform: translateY(-2px);
}
.cs-slider__arrow:disabled {
  opacity: 0.3;
  cursor: default;
}
.cs-slider__arrow svg {
  width: 16px;
  height: 16px;
}

.cs-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: clamp(var(--space-10), 5vw, var(--space-16));
  border-top: 1px solid var(--color-border);
  gap: var(--space-6);
  flex-wrap: wrap;
}
.cs-nav a {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.cs-nav__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cs-nav__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
}
.cs-nav a:hover .cs-nav__title {
  color: var(--color-primary);
}
.cs-nav__next {
  text-align: right;
  align-items: flex-end;
}

/* ============ Lightbox ============ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: color-mix(in oklab, var(--color-bg) 92%, black 8%);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
}
.lightbox.is-open {
  display: flex;
}
.lightbox img {
  max-width: min(1200px, 92vw);
  max-height: 88vh;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.lightbox img.is-swapping {
  opacity: 0;
  transform: scale(0.985);
}
.lightbox__video {
  display: none;
  max-width: min(1200px, 92vw);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  background: #000;
}
.lightbox__iframe-wrap {
  display: none;
  width: min(1100px, 92vw);
  max-height: 88vh;
  aspect-ratio: 16 / 9;
}
.lightbox__iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius-md);
  background: #000;
  display: block;
}
.lightbox.is-video img,
.lightbox.is-iframe img {
  display: none;
}
.lightbox.is-video .lightbox__video {
  display: block;
}
.lightbox.is-iframe .lightbox__iframe-wrap {
  display: block;
}
.lightbox.is-video .lightbox__nav,
.lightbox.is-video .lightbox__counter,
.lightbox.is-iframe .lightbox__nav,
.lightbox.is-iframe .lightbox__counter {
  display: none;
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: grid;
  place-items: center;
  color: var(--color-text);
  background: var(--color-surface);
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.lightbox__close:hover,
.lightbox__nav:hover {
  border-color: var(--color-accent-ink);
}
.lightbox__close {
  top: var(--space-6);
  right: var(--space-6);
}
.lightbox__close svg,
.lightbox__nav svg {
  width: 18px;
  height: 18px;
}
.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
}
.lightbox__nav:hover {
  transform: translateY(-50%) scale(1.06);
}
.lightbox__nav--prev {
  left: var(--space-6);
}
.lightbox__nav--next {
  right: var(--space-6);
}
.lightbox__counter {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  color: var(--color-text-faint);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
}
@media (max-width: 640px) {
  .lightbox__nav--prev {
    left: var(--space-3);
  }
  .lightbox__nav--next {
    right: var(--space-3);
  }
  .lightbox__nav {
    width: 38px;
    height: 38px;
  }
}

/* ============ Case study: creative process ============ */
/* Hidden site-wide per Jen (Sep 2026). Remove this rule to bring it back. */
.cs-process { display: none !important; }

.cs-process {
  border-top: 1px solid var(--color-border);
}
.cs-process__head {
  max-width: 62ch;
}
.cs-process__head h2 {
  margin-top: var(--space-3);
}
.cs-process__head .lede {
  margin-top: var(--space-4);
}
.cs-process__slider {
  margin-top: clamp(var(--space-16), 8vw, var(--space-24));
}
.cs-process__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: grid;
  place-items: center;
  color: var(--color-accent-ink);
}
.cs-process__icon svg {
  width: 16px;
  height: 16px;
}

/* ============ About page ============ */

.about-hero {
  padding-top: clamp(var(--space-12), 6vw, var(--space-20));
}
.about-hero__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(var(--space-10), 6vw, var(--space-16));
  align-items: start;
}
.about-hero h1 {
  font-size: clamp(1.75rem, 1.2rem + 2.25vw, 3.25rem);
}
.about-copy p + p {
  margin-top: var(--space-5);
}
.about-copy {
  margin-top: var(--space-8);
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 60ch;
}
.about-side {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-2);
}
.about-side dl {
  display: flex;
  flex-direction: column;
}
.about-side dl > div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: var(--space-4);
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--color-border);
}
.about-side dt {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-faint);
  padding-top: 0.15em;
}
.about-side dd {
  font-size: var(--text-base);
}

.timeline {
  display: flex;
  flex-direction: column;
}
.timeline__row {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: var(--space-8);
  padding-block: var(--space-8);
  border-top: 1px solid var(--color-border);
}
.timeline__row:first-child {
  border-top: none;
}
.timeline__year {
  font-family: var(--font-mono);
  color: var(--color-primary);
  font-size: var(--text-sm);
}
.timeline__row h4 {
  margin-bottom: var(--space-2);
}
.timeline__row p {
  color: var(--color-text-muted);
}

/* ============ Reveal utility ============ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s var(--ease-signal),
    transform 0.7s var(--ease-signal);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ Responsive ============ */

@media (max-width: 900px) {
  .site-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
  .logo-mark {
    grid-column: 1;
    justify-self: start;
  }
  .main-nav {
    grid-column: 2;
    justify-self: center;
  }
  .main-nav__links {
    display: none;
  }
  .menu-toggle {
    grid-column: 3;
    justify-self: end;
    display: grid;
  }
  .approach,
  .about-teaser,
  .about-hero__grid {
    grid-template-columns: 1fr;
  }
  .approach__intro,
  .approach__slider {
    grid-column: 1;
    grid-row: auto;
  }
  .approach__card {
    flex-basis: 88%;
  }
  .cs-slider__card {
    flex-basis: 88%;
  }
  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat:nth-child(3) {
    border-left: none;
  }
  .cs-details > .wrap {
    grid-template-columns: 1fr;
  }
  .cs-results {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

@media (max-width: 720px) {
  .work-card,
  .work-card--feature,
  .work-card--small {
    grid-column: span 6;
  }
  .cta-band__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: auto;
  }
}

/* Mobile nav sheet */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--color-bg);
  display: none;
  flex-direction: column;
  padding: var(--space-6);
}
.mobile-nav.is-open {
  display: flex;
}
.mobile-nav__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-nav__links {
  margin-top: var(--space-12);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
}

/* ============ Text selection — matches headline highlight ============ */
::selection {
  background: var(--color-accent-2);
  color: #000000;
}

/* ============ Grain texture — subtle film-grain overlay for tactile depth ============ */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 998;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  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='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}
@media (max-width: 640px) {
  .grain-overlay { opacity: 0.035; }
}

/* ============ Custom cursor — dot + trailing ring, mirrors the hero highlighter cursor ============ */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  pointer-events: none;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-ring {
  border-radius: 50%;
}
.cursor-dot {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  color: var(--color-accent-ink);
  user-select: none;
  transition: opacity 0.2s var(--ease-signal), width 0.25s var(--ease-signal), height 0.25s var(--ease-signal);
}
.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid color-mix(in oklab, var(--color-text) 55%, transparent);
  transition: opacity 0.2s var(--ease-signal), width 0.25s var(--ease-signal), height 0.25s var(--ease-signal), border-color 0.25s var(--ease-signal), background-color 0.25s var(--ease-signal);
}
body.has-custom-cursor,
body.has-custom-cursor a,
body.has-custom-cursor button,
body.has-custom-cursor .btn {
  cursor: none;
}
body.cursor-hover .cursor-ring {
  width: 56px;
  height: 56px;
  border-color: var(--color-accent-ink);
  background: color-mix(in oklab, var(--color-accent-2) 12%, transparent);
}
body.cursor-hidden .cursor-dot,
body.cursor-hidden .cursor-ring {
  opacity: 0;
}
@media (pointer: coarse), (hover: none) {
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

/* ---- Early Career / Archive gallery (misc.html) ---- */
.cs-archive {
  border-top: 1px solid var(--color-border);
}
.cs-gallery__caption {
  grid-column: 1 / -1;
  margin: calc(var(--space-4) * -1) 0 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: 62ch;
}
.cs-gallery__item--placeholder {
  aspect-ratio: 21 / 9;
  display: grid;
  place-items: center;
  cursor: default;
  background: var(--color-surface-offset-2);
}
.cs-gallery__item--small {
  max-width: 40%;
  margin: 0 auto;
}
@media (max-width: 640px) {
  .cs-gallery__item--small {
    max-width: 65%;
  }
}
.cs-slider__card--logo {
  background: #f5f4f1;
}
.cs-slider__card--logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16%;
  box-sizing: border-box;
}
.cs-slider__tag {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 2;
  padding: 0.3em 0.75em;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  border-radius: var(--radius-full, 999px);
  pointer-events: none;
}
.cs-gallery__item--half {
  max-width: 50%;
  margin: 0 auto;
}
@media (max-width: 640px) {
  .cs-gallery__item--half { max-width: 100%; }
}

/* Side-by-side gallery pair, matched in height so mixed aspect ratios line up */
.cs-gallery__row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(var(--space-3), 2vw, var(--space-6));
}
.cs-gallery__row > .cs-gallery__item {
  grid-column: auto;
  flex: 0 1 auto;
  min-width: 0;
}
.cs-gallery__row > .cs-gallery__item img {
  height: clamp(200px, 23vw, 340px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
@media (max-width: 640px) {
  .cs-gallery__row {
    flex-direction: column;
    align-items: stretch;
  }
  .cs-gallery__row > .cs-gallery__item img {
    height: auto;
    width: 100%;
  }
}
.cs-gallery__item--placeholder span {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

/* Two-row slider (used where a section has many images) */
.cs-slider__track--rows {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(3, auto);
  grid-auto-columns: min(18rem, 62%);
}
.cs-slider__track--rows .cs-slider__card {
  flex: none;
  width: 100%;
}

/* Full-width looping banner video (e.g. UPS night-theme outboards) */
.cs-gallery__item--banner video {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3 / 1;
  object-fit: contain;
}
.cs-slider__track--rows .cs-slider__card:has(iframe) {
  aspect-ratio: 4/3;
}

/* Plain hero media: full frame, no crop, no card border/rounding, no parallax */
.cs-hero__figure--plain {
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  background: none;
  overflow: visible;
}
.cs-hero__figure--plain .cs-hero__figure-parallax {
  position: static;
  inset: auto;
  transform: none !important;
}
.cs-hero__figure--plain .cs-hero__figure-img {
  height: auto;
  object-fit: contain;
  transform: none;
  animation: cs-hero-plain-in 1s ease forwards;
}
@keyframes cs-hero-plain-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Desktop: cap the thumbnail grid to the content width so it lines up with
   the "Case Studies" heading instead of running edge to edge. Row height is
   tied to the capped width, so tiles keep their proportions on big screens. */
@media (min-width: 861px) {
  .mosaic {
    --mosaic-pad: clamp(var(--space-5), 4vw, var(--space-12));
    max-width: var(--content-wide);
    margin-inline: auto;
    padding-inline: var(--mosaic-pad);
    grid-template-rows: repeat(3, calc((min(100vw, var(--content-wide)) - 2 * var(--mosaic-pad)) * 0.25));
  }
}

/* Uniform thumbnail grid: 2 projects per row, 3 rows, every tile the same size */
.mosaic,
.mosaic[class] {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: none;
  grid-auto-rows: auto;
  grid-template-areas: none;
}
.mosaic .mosaic__item {
  grid-area: auto;
  aspect-ratio: 16 / 10;
}
@media (min-width: 861px) {
  .mosaic { grid-template-rows: none; }
}
@media (max-width: 560px) {
  .mosaic[class] { grid-template-columns: 1fr; }
}

/* Gallery cards: white matte behind letterboxed media, in both themes */
.cs-slider__card,
.cs-slider__card--logo {
  background: #fff;
}

/* Project Info: prose intro replacing Overview/Deliverables/Results */
.cs-info {
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.cs-info h4 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  font-weight: 500;
  margin-bottom: var(--space-6);
}
.cs-info__body {
  max-width: 66ch;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.cs-info__body p {
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text-muted);
}
.cs-info__credits {
  margin-top: var(--space-4);
}
.cs-info__rule {
  display: block;
  width: 3rem;
  height: 1px;
  background: var(--color-border);
  margin-bottom: var(--space-5);
}
.cs-info__credits p {
  font-size: var(--text-sm);
  line-height: 1.7;
}
.cs-info__credits strong {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--color-text);
}
.cs-gallery__caption--intro {
  margin: calc(var(--space-2) * -1) 0 var(--space-2);
}
.cs-info__credits p { color: var(--color-text-muted); }
.cs-info__credits--inline { margin-top: var(--space-6); }
@media (hover: none), (pointer: coarse) {
  .gallery-video__expand-btn,
  .gallery-video__mute-btn { opacity: 1; transform: none; }
}
/* Tighter hero so case studies show sooner */
.hero { padding-top: var(--space-8); padding-bottom: var(--space-4); }
#work { padding-top: var(--space-2); }
#work .section-head { margin-bottom: var(--space-8); }
@media (max-width: 560px) {
  .hero { padding-top: var(--space-5); padding-bottom: var(--space-2); }
  #work .section-head { margin-bottom: var(--space-6); }
}
/* About intro portrait */
.about-intro { display: flex; align-items: center; gap: var(--space-6); margin-top: var(--space-4); }
.about-intro__portrait { position: relative; flex: none; width: 128px; height: 128px; margin: 0; }
.about-intro__photo { position: relative; z-index: 1; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
@media (max-width: 560px) {
  .about-intro { gap: var(--space-5); }
  .about-intro__portrait { width: 100px; height: 100px; margin: 0; }
}
