/* ============================================================
   Portfolio — base styles
   Editorial-Swiss hybrid · warm off-white · one accent
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@100,400;100,500;100,600;125,800&family=Space+Grotesk:wght@400;500;600;700&family=Geist:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Backgrounds + ink (overridden by Tweaks). */
  --bg: #f6f2e9;
  --bg-soft: #ede8db;
  --bg-card: #fffdf7;
  --ink: #1a1a1a;
  --ink-soft: #3a3a3a;
  --muted: #6b6b6b;
  --muted-soft: #9c9a93;
  --hairline: #d8d2c2;
  --hairline-soft: #e6e1d2;
  --grid-dot: #c9c2ae;

  /* Accent — swappable via Tweaks. */
  --accent: #2a5cb0;
  --accent-ink: #fffdf7;

  /* Type. */
  --serif: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif; /* @kind font */
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif; /* @kind font */
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; /* @kind font */
  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif; /* @kind font */

  /* Spacing. */
  --gutter: 32px;
  /* Hero grid module: 1/40 of layout width (10 dots per column). JS refines
     this to exclude the scrollbar; 2.5vw is the no-scrollbar fallback. */
  --hero-m: 2.5vw;
  --measure: 640px;        /* reading column */
  --measure-wide: 980px;   /* layout column */

  /* Density (overridden by Tweaks). */
  --rhythm: 1; /* @kind other */
  --section-y: calc(58px * var(--rhythm));
  --block-y: calc(40px * var(--rhythm));

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

* { box-sizing: border-box; }
*::selection { background: var(--accent); color: var(--accent-ink); }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ===================== Layout ===================== */

.grid-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: flex;
  justify-content: center;
}
.grid-lines-inner {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
/* Global dot canvas only — no vertical ruler lines. Component-level guides
   (cv-rail-row, faq-row, work-row, etc.) draw their own explicit lines
   where needed. About's photo/intro columns get their own local guide
   lines (below) instead of a global ruler, which doubled up with
   component lines in Experience and bled into the gaps between sections. */
.grid-lines-inner .grid-col {
  height: 100%;
}

main { position: relative; z-index: 1; }
#root { position: relative; }

.shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-y) 0;
}

.section-head {
  display: block;
  margin-left: calc(25vw - var(--gutter) + 8px);
  margin-bottom: var(--block-y);
}
@media (max-width: 720px) {
  .section-head { margin-left: 0; }
}

.eyebrow {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
  text-transform: lowercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}


/* ===================== Type ===================== */

h1, h2, h3 { margin: 0; font-weight: 400; }

.display {
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: 'wght' 800, 'wdth' 125;
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--ink);
}
.display em { font-style: normal; color: var(--accent); }

.heading {
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: 'wght' 800, 'wdth' 125;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.lede {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: var(--measure);
}

p { margin: 0 0 1em; max-width: var(--measure); color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }

.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em; color: var(--muted); }

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

.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  z-index: 20;
}
.topnav::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 88px;
  backdrop-filter: blur(var(--nav-blur, 0px));
  -webkit-backdrop-filter: blur(var(--nav-blur, 0px));
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent);
  mask-image: linear-gradient(to bottom, #000 58%, transparent);
  pointer-events: none;
  z-index: 0;
}
.topnav::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 88px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  opacity: var(--nav-grain, 0);
  mix-blend-mode: overlay;
  -webkit-mask-image: linear-gradient(to bottom, #000 48%, transparent);
  mask-image: linear-gradient(to bottom, #000 48%, transparent);
  pointer-events: none;
  z-index: 0;
}
.topnav-inner {
  position: relative;
  z-index: 1;
  max-width: none;
  margin: 0;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  display: flex;
  align-items: center;
  height: 56px;
  gap: 20px;
  white-space: nowrap;
}
.menu-toggle { transform: translateY(6px); }
.topnav .brand {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  color: var(--nav-fg, #1a1a1a);
  transition: color 0.25s ease;
}
.topnav .brand em { font-style: normal; color: inherit; }
.topnav-links {
  margin-left: auto;
  display: flex;
  gap: 20px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 14px;
  color: var(--muted);
  text-transform: lowercase;
  letter-spacing: 0;
  white-space: nowrap;
}
.topnav-links a:hover { color: var(--ink); }

/* Hamburger toggle */
.menu-toggle {
  margin-left: auto;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0;
  transition: opacity 0.2s ease;
  mix-blend-mode: difference;
}
.menu-toggle:hover { opacity: 0.6; }
.menu-toggle-bar {
  display: block;
  width: 32px;
  height: 2.5px;
  background: var(--nav-fg, #1a1a1a);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, background 0.25s ease;
}
.menu-toggle[data-open="true"] .menu-toggle-bar:nth-child(1) { transform: translateY(4.75px) rotate(45deg); }
.menu-toggle[data-open="true"] .menu-toggle-bar:nth-child(2) { transform: translateY(-4.75px) rotate(-45deg); }
.menu-toggle[data-open="true"] { position: relative; z-index: 50; }
.menu-toggle[data-open="true"] .menu-toggle-bar { background: #1a1a1a !important; }

/* Dropdown panel + scrim */
.menu-scrim {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(20, 19, 17, 0.42);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.menu-scrim.is-open { opacity: 1; pointer-events: auto; }

/* Full-height panel filling the right layout column */
.menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  z-index: 40;
  width: 25vw;
  min-width: 320px;
  background: #f4f0e6;
  color: #1a1a1a;
  border-left: 1px solid var(--hairline);
  box-shadow: -24px 0 60px -24px rgba(0,0,0,0.22);
  transform: translateX(100%);
  opacity: 1;
  pointer-events: none;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
.menu-panel.is-open {
  transform: translateX(0);
  pointer-events: auto;
}
.menu-panel-inner {
  height: 100%;
  box-sizing: border-box;
  padding: 104px 40px 48px;
  display: flex;
  flex-direction: column;
  gap: 44px;
  overflow-y: auto;
}
.menu-panel-inner .menu-group:last-child { margin-top: auto; }
.menu-close {
  position: absolute;
  top: 14px;
  right: 32px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  z-index: 2;
}
.menu-close-bar {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 26px;
  height: 2px;
  background: #1a1a1a;
  border-radius: 2px;
}
.menu-close-bar:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.menu-close-bar:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }
.menu-close:hover { opacity: 0.6; }
.menu-brand-row {
  position: absolute;
  top: 22px;
  left: 40px;
  display: flex;
  align-items: flex-start;
  height: 36px;
}
.menu-brand {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.menu-group { display: flex; flex-direction: column; }
.menu-group-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.menu-panel-links { display: flex; flex-direction: column; }
.menu-panel-links a {
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: 'wght' 800, 'wdth' 110;
  font-size: clamp(19px, 1.9vw, 27px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #1a1a1a;
  text-decoration: none;
  padding: 5px 0;
  transition: color 0.15s ease, transform 0.18s ease;
}
.menu-panel-links a:hover { color: var(--accent); }
.menu-panel-ext { display: flex; flex-direction: column; }
.menu-panel-ext a {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 7px 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  transition: color 0.15s ease;
}
.menu-panel-ext a::after {
  content: "↗";
  font-size: 13px;
  color: var(--muted-soft);
  transition: color 0.15s ease, transform 0.18s ease;
}
.menu-panel-ext a:hover { color: #1a1a1a; }
.menu-panel-ext a:hover::after { color: var(--accent); transform: translate(2px, -2px); }

@media (max-width: 720px) {
  .menu-panel { width: 86vw; min-width: 0; }
  .menu-panel-inner { padding: 92px 28px 36px; }
  .menu-brand-row { left: 28px !important; }
}

.theme-switch {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--bg-soft);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.theme-switch[data-on="true"] {
  background: color-mix(in oklab, var(--accent) 28%, var(--bg-soft));
  border-color: color-mix(in oklab, var(--accent) 40%, var(--hairline));
}
.theme-switch-knob {
  position: absolute;
  top: 50%;
  left: 3px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: left 0.2s ease, color 0.2s ease;
}
.theme-switch[data-on="true"] .theme-switch-knob {
  left: 23px;
  color: var(--accent);
}
.topnav-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 12px;
  color: var(--muted); letter-spacing: 0.04em;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .topnav-status { display: none; }
}
@media (max-width: 720px) {
  .topnav-links { display: none; }
}
.topnav-status .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #3fa66f;
  box-shadow: 0 0 0 3px color-mix(in oklab, #3fa66f 22%, transparent);
}

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

/* Shared dot canvas behind Hero + the case-studies section together — one
   continuous layer instead of two independently-phased local repaints, so
   the dots (and the accent-blue → gray gradient) run seamlessly across the
   seam between them. */
.dark-canvas { position: relative; background: #161513; }
.dark-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--accent) 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle, #000 1px, transparent 1.4px);
  mask-image: radial-gradient(circle, #000 1px, transparent 1.4px);
  -webkit-mask-size: var(--hero-m) var(--hero-m);
  mask-size: var(--hero-m) var(--hero-m);
  -webkit-mask-position: calc(var(--hero-m) / 2) calc(var(--hero-m) / 2);
  mask-position: calc(var(--hero-m) / 2) calc(var(--hero-m) / 2);
  -webkit-mask-repeat: repeat;
  mask-repeat: repeat;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.hero {
  padding-top: 0; padding-bottom: 0;
  position: relative;
  z-index: 1;
  --ink: #f4f0e6;
  --ink-soft: #d5cfbe;
  --muted: #8e8a7e;
  --muted-soft: #5e5b53;
  --hairline: #2c2925;
  --hairline-soft: #232120;
  --grid-dot: #232120;
  --bg: #161513;
  --bg-soft: #1f1d1a;
  --bg-card: #1a1816;
}
.hero > * { position: relative; z-index: 1; }
.hero-shell {
  max-width: none;
  margin: 0;
  padding-left: var(--hero-m);
  padding-right: var(--hero-m);
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 0px;
  padding-bottom: 56px;
}
/* Lede stacked in the upper-center, offset right like the Armory service list. */
.hero-lede-wrap {
  display: flex;
  justify-content: flex-start;
  padding-left: calc(19 * var(--hero-m));
  padding-right: 0;
  margin-top: calc(2 * var(--hero-m));
}
.hero-lede {
  margin: 0;
  max-width: none;
  font-size: max(14px, 1.45vw);
  line-height: 1.65;
  color: var(--ink-soft);
}
.hero-lede-pill {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  margin: 0 1px;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--hairline) 90%, white 10%);
  box-sizing: border-box;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 400;
  white-space: nowrap;
}
/* Headline anchored to the bottom-left. */
.hero-foot { margin-top: auto; }
.hero-display {
  max-width: none;
  font-size: max(28px, 3.63vw);
  line-height: 1.05;
  margin: 0;
}
.hero-headbox {
  position: relative;
  width: calc(19 * var(--hero-m));
  max-width: 100%;
  border: 1px solid var(--accent);
  padding: 0 28px;
  height: calc(10 * var(--hero-m));
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}
.hero-headbox .hcorner { background: var(--accent); transition: background 0.18s ease; }
.hero-headbox:hover .hcorner { background: #ffffff; }
.hcorner {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--hairline);
  pointer-events: none;
}
.hc-tl { top: -1px; left: -1px; transform: translate(-50%, -50%); }
.hc-tr { top: -1px; right: -1px; transform: translate(50%, -50%); }
.hc-bl { bottom: -1px; left: -1px; transform: translate(-50%, 50%); }
.hc-br { bottom: -1px; right: -1px; transform: translate(50%, 50%); }
.hero-ledebox {
  position: relative;
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--hairline) 90%, white 10%);
  padding: 0 24px;
  height: calc(6 * var(--hero-m));
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}
.hero-ledebox .hero-lede { margin: 0; }
.hero-ledebox .hcorner { background: color-mix(in srgb, var(--hairline) 90%, white 10%); transition: background 0.18s ease; }
.hero-ledebox:hover .hcorner { background: var(--accent); }
@media (max-width: 820px) {
  .hero-lede-wrap { padding-left: 0; }
  .hero-shell { min-height: 80vh; padding-top: 96px; }
}
.hero-contact {
  margin-top: 36px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.hero-contexts {
  margin-top: 44px;
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 14px;
  padding-top: 24px;
  border-top: 1px dashed var(--hairline-soft);
}
.hero-contexts .hc-label {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
}
.hero-contexts .hc-list {
  display: inline-flex; flex-wrap: wrap; gap: 10px;
  font-family: var(--serif); font-style: italic;
  font-size: 18px; line-height: 1.3;
  color: var(--ink);
}
.hero-contexts .hc-sep { color: var(--muted-soft); margin-right: 10px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--bg-card);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.pill:hover { background: var(--bg-soft); }

/* Hero pills — stand out on the dark hero background; transparent fill so
   the shared dot canvas shows through inside the pill, not just around it */
.hero-contact .pill {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);  color: #f4f0e6;
  font-weight: 600;
}
.hero-contact .pill:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.hero-contact .pill::after {
  content: "↗";
  font-size: 12px;
  line-height: 1;
  margin-left: 1px;
  opacity: 0.65;
  transition: transform 0.18s ease, opacity 0.15s ease;
}
.hero-contact .pill:hover::after { opacity: 1; transform: translate(2px, -2px); }

/* ===================== Currently ===================== */

.currently {
  display: grid; grid-template-columns: 220px 1fr;
  gap: 48px; align-items: start;
}
@media (max-width: 720px) { .currently { grid-template-columns: 1fr; gap: 12px; } }
.currently p { font-family: var(--serif); font-size: 22px; line-height: 1.4; color: var(--ink); max-width: 640px; }
.currently p em { font-style: italic; }

/* ===================== Work / case studies (Armory-style rows) ===================== */

.work-section {
  margin-top: -1px;
  padding-top: var(--section-y); padding-bottom: 0;
  position: relative;
  z-index: 1;
  --ink: #f4f0e6;
  --ink-soft: #d5cfbe;
  --muted: #8e8a7e;
  --muted-soft: #45423c;
  --hairline: #2c2925;
  --hairline-soft: #232120;
  --grid-dot: #232120;
  --bg: #161513;
  --bg-soft: #1f1d1a;
  --bg-card: #1a1816;
  --accent: #5b8def;}
.work-head-shell {
  max-width: none; margin: 0;
  padding-left: var(--gutter); padding-right: var(--gutter);
}
.work-head { margin-bottom: 28px; margin-left: calc(25vw - var(--gutter) + 8px); }
@media (max-width: 720px) { .work-head { margin-left: 0; } }

.work-rows { display: flex; flex-direction: column; position: relative; z-index: 1; background: #161513; }
.work-head-shell, .work-head { position: relative; z-index: 1; }

.work-row {
  display: grid;
  grid-template-columns: 25% 25% 1fr 84px;
  align-items: start;
  min-height: 188px;
  border-top: 1px solid var(--hairline);
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease;
}
.work-row:last-child { border-bottom: 1px solid var(--hairline); }
.work-row:hover { background: var(--bg-soft); }
.work-row::before,
.work-row::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--hairline);
  pointer-events: none;
  z-index: 1;
}
.work-row::before { left: 25%; }
.work-row::after { left: 50%; }
@media (max-width: 820px) {
  .work-row::before, .work-row::after { display: none; }
}

.work-row-media {
  align-self: stretch;
  display: flex; align-items: center; justify-content: center;
  background: #161513;
  overflow: hidden;
  position: relative;
  transition: background 0.25s ease;
}
.work-row:hover .work-row-media { background: var(--accent); }
.work-row-co {
  font-family: var(--display); font-weight: 800;
  font-variation-settings: 'wght' 800, 'wdth' 125;
  font-size: clamp(22px, 2vw, 30px);
  text-transform: uppercase; letter-spacing: -0.01em;
  color: #ffffff;
  text-align: center; padding: 0 16px;
  transition: color 0.25s ease;
}
.work-row-co em { font-style: normal; }
.work-row:hover .work-row-co { color: var(--accent-ink); }

/* Brand wordmarks (white) */
.brandlogo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  line-height: 1;
}
.work-row:hover .brandlogo { color: var(--accent-ink); }

.brandlogo-appletv { gap: 5px; }
.brandlogo-appletv .brandlogo-tv {
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: 'wght' 700, 'wdth' 100;
  font-size: 30px;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}

.brandlogo-disney {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 30px;
  letter-spacing: 0.01em;
}
.brandlogo-disney .brandlogo-disney-word { text-transform: none; }
.brandlogo-disney .brandlogo-disney-plus {
  font-style: normal;
  font-weight: 500;
  margin-left: 2px;
}
.brandlogo-img {
  height: 30px;
  width: auto;
  display: block;
  /* force the colored source mark to render white */
  filter: brightness(0) invert(1);
}
.brandlogo-disney .brandlogo-img { height: 65px; }
.brandlogo-applestudios .brandlogo-img { height: 73px; }

.brandlogo-hulu {
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: 'wght' 800, 'wdth' 110;
  font-size: 30px;
  text-transform: lowercase;
  letter-spacing: -0.03em;
}

.work-row-num {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  padding-left: 25px; padding-top: 44px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
  letter-spacing: 0.04em;
}
.work-row-num svg { flex: 0 0 auto; }

.work-row-body {
  padding: 44px 28px 44px 25px;
  display: flex; flex-direction: column; gap: 16px;
}
.work-row-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(18px, 1.7vw, 23px); line-height: 1.12;
  text-transform: none; letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 0.2s ease;
}
.work-row-title em { font-style: normal; color: var(--accent); }
.work-row:hover .work-row-title { color: var(--accent); }
.work-row-blurb {
  font-family: var(--mono); font-size: 13px; line-height: 1.65;
  color: var(--muted); margin: 0;
}
.work-row-lock {
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
  font-family: var(--mono); font-size: 12px; color: var(--ink);
  letter-spacing: 0.04em;
}
.work-row-arrow {
  align-self: center;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  transition: transform 0.2s ease, color 0.2s ease;
}
.work-row:hover .work-row-arrow { transform: translateX(6px); color: var(--accent); }

@media (max-width: 820px) {
  .work-row {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 26px var(--gutter);
    gap: 14px;
  }
  .work-row-media { display: none; }
  .work-row-num { padding-left: 0; }
  .work-row-body { padding: 0; }
  .work-row-arrow { display: none; }
}

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

.about-section {
  position: relative;
  z-index: 2;
  padding-top: 0;
  padding-bottom: 10px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
#timeline { position: relative; padding-top: 100px; }
.about-corner {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--hairline);
  z-index: 4;
  pointer-events: none;
  transition: background 0.18s ease;
}
.ac-tl { top: 0; left: 25vw; transform: translate(-50%, -50%); }
.ac-tr { top: 0; left: 75vw; transform: translate(-50%, -50%); }
.ac-bl { bottom: 0; left: 25vw; transform: translate(-50%, 50%); }
.ac-br { bottom: 0; left: 75vw; transform: translate(-50%, 50%); }
.about-section:hover .about-corner { background: var(--accent); }
/* Connect the corner squares with a persistent vertical line, scoped to
   the section's own box only — never bleeds into the gap before/after it. */
.about-section::before,
.about-section::after,
.about-section .ac-mid-line {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--hairline);
  z-index: 0;
  pointer-events: none;
}
.about-section::before { left: 25vw; }
.about-section::after { left: 75vw; }
.about-section .ac-mid-line { left: 50vw; }
.about-shell {
  max-width: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 25vw 25vw 25vw 1fr;
  align-items: stretch;
  row-gap: 30px;
}
.about-photo {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  align-self: stretch;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
  background: var(--bg);
}
.about-photo::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: var(--hairline);
  z-index: 2;
  pointer-events: none;
}
.about-photo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--hairline);
  z-index: 2;
  pointer-events: none;
}
.photo-corner {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--hairline);
  z-index: 3;
  pointer-events: none;
  transition: background 0.18s ease;
}
.pc-tr { top: 0; right: 0; transform: translate(50%, -50%); }
.pc-br { bottom: 0; right: 0; transform: translate(50%, 50%); }
.pc-bl { bottom: 0; left: 0; transform: translate(-50%, 50%); }
.about-section:hover .photo-corner { background: var(--accent); }
.about-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
  filter: grayscale(1) sepia(0.042) saturate(1.02) brightness(1.003);
}
.about-head { padding-top: 8px; padding-left: var(--gutter); }
.about-cols {
  grid-column: 2 / 4;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 0;
  border-left: 0;
}
.about-intro {
  grid-column: 3;
  grid-row: 1;
  padding-left: 26px;
  padding-right: 26px;
  padding-top: 20px;
  box-sizing: border-box;
  background: var(--bg);
  position: relative;
  z-index: 1;
}
.about-intro-body {
  font-family: var(--serif);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 16px 0 0;
  max-width: 36ch;
}
.about-col {
  border-bottom: 0;
  border-right: 0;
  padding: 0 26px 30px calc(8px + 14px);
  display: flex;
  flex-direction: column;
}
.about-col-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}
.about-col-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.1;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--ink);
  margin: 0 0 24px;
  white-space: nowrap;
}
.about-col .about-col-title { margin-top: 16px; }
.about-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.about-places li {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: baseline;
  gap: 8px;
  padding: 6px 0;
  border-top: 0;
}
.about-flag { font-size: 15px; line-height: 1; }
.about-place {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.about-years {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.about-labeled { flex: 1; justify-content: space-between; }
.about-labeled li { padding: 0; }
.about-item-label {
  display: block;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1px;
}
.about-item-body {
  font-family: var(--serif);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.about-plain li {
  padding: 11px 0;
  display: flex;
  gap: 10px;
}
.about-plain li::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--accent);
}
@media (max-width: 820px) {
  .about-shell { grid-template-columns: 1fr; gap: 20px; }
  .about-photo { grid-column: 1; grid-row: auto; }
  .about-intro { grid-column: 1; grid-row: auto; padding-left: 0; }
  .about-cols { grid-column: 1; grid-row: auto; grid-template-columns: 1fr; }
}

/* ===================== Industries ===================== */

.industries { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.industries-shell {
  max-width: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 25vw 1fr;
  align-items: start;
}
.industries-head { padding-top: 8px; padding-left: var(--gutter); }
.industries-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  border-top: 1px solid var(--hairline);
  border-left: 0;
}
.industry-cell {
  position: relative;
  border-bottom: 1px solid var(--hairline);
  border-right: 0;
  min-height: 132px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  transition: background 0.2s ease;
}
.industry-cell:hover { background: var(--bg-soft); z-index: 3; }
.corner-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--hairline);
  z-index: 2;
  transition: background 0.2s ease;
}
.corner-tl { top: 0; left: 0; transform: translate(-50%, -50%); }
.corner-tr { top: 0; right: 0; transform: translate(50%, -50%); }
.corner-bl { bottom: 0; left: 0; transform: translate(-50%, 50%); }
.corner-br { bottom: 0; right: 0; transform: translate(50%, 50%); }
.industry-cell:hover .corner-dot { background: var(--accent); z-index: 6; }
/* No squares on the outer right edge (last cell) */
.industry-cell:nth-child(8) .corner-tr,
.industry-cell:nth-child(8) .corner-br { display: none; }
.industry-icon {
  color: var(--accent);
  display: inline-flex;
}
.industry-icon svg { width: 30px; height: 30px; }
.industry-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--ink);
  max-width: 14ch;
  text-align: center;
}
/* Section titles (column 2) */
#timeline .sec-title { position: relative; z-index: 2; }
.sec-title {
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: 'wght' 800, 'wdth' 125;
  font-size: clamp(18px, 1.65vw, 22px);
  line-height: 1.15;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--ink);
  padding-left: calc(25vw + 25px);
  padding-right: var(--gutter);
  margin-bottom: 22px;
}
.sec-title-star {
  font-size: 0.7em;
  vertical-align: 0.4em;
  margin-left: 1px;
  color: var(--accent);
}
.sec-title-note {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--accent);
  margin-left: 6px;
  position: relative;
  top: -7px;
  vertical-align: middle;
}
@media (max-width: 820px) {
  .sec-title { padding-left: var(--gutter); }
}

/* Toolbox */
#toolbox { position: relative; margin-top: -40px; }
#toolbox > * { position: relative; z-index: 1; }
.tools-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: stretch;
  padding: 0 74px;
}
.tool-cell {
  flex: 1 1 0;
  min-width: 0;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-left: 0;
  transition: background 0.18s ease;
}
.tool-cell:last-child { border-right: 0; }
.tool-name {
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: 'wght' 800, 'wdth' 110;
  font-size: clamp(12px, 1vw, 15px);
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--ink);
  text-align: center;
}
.tool-logo {
  max-height: 31px;
  max-width: 94%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: brightness(0);
  opacity: 0.82;
}
@media (max-width: 820px) {
  .tools-row { flex-wrap: wrap; }
  .tool-cell { flex: 1 1 25%; }
}
@media (max-width: 820px) {
  .industries-shell { grid-template-columns: 1fr; gap: 20px; }
  .industries-grid { grid-template-columns: repeat(4, 1fr); }
  .industry-cell:nth-child(8) .corner-tr,
  .industry-cell:nth-child(8) .corner-br { display: block; }
  .industry-cell:nth-child(4n) .corner-tr,
  .industry-cell:nth-child(4n) .corner-br { display: none; }
}
@media (max-width: 520px) {
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .industry-cell:nth-child(2n) .corner-tr,
  .industry-cell:nth-child(2n) .corner-br { display: none; }
}

/* ===================== Selected impact (metrics) ===================== */
.metrics-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--hairline);
  border-left: 0;
}
.metric-cell {
  position: relative;
  border-bottom: 1px solid var(--hairline);
  border-right: 0;
  min-height: 172px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  transition: background 0.2s ease;
}
.metric-cell:hover { background: var(--bg-soft); z-index: 3; }
.metric-cell:hover .corner-dot { background: var(--accent); z-index: 6; }
.metric-num {
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: 'wght' 800, 'wdth' 125;
  font-size: clamp(32px, 3.4vw, 50px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color 0.2s ease;
}
.metric-cell:hover .metric-num { color: var(--accent); }
.metric-label {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--muted);
}
/* No dots on the outer right edge (last cell) */
.metric-cell:nth-child(4) .corner-tr,
.metric-cell:nth-child(4) .corner-br { display: none; }
@media (max-width: 820px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-cell:nth-child(4) .corner-tr,
  .metric-cell:nth-child(4) .corner-br { display: block; }
  .metric-cell:nth-child(2n) .corner-tr,
  .metric-cell:nth-child(2n) .corner-br { display: none; }
}
@media (max-width: 520px) {
  .metrics-grid { grid-template-columns: 1fr; }
  .metric-cell { min-height: 128px; }
  .metric-cell .corner-tr,
  .metric-cell .corner-br { display: none; }
}

/* ===================== For recruiters (FAQ) ===================== */
#faq { position: relative; }
#faq .sec-title { position: relative; z-index: 2; }
.faq-content { position: relative; }
.faq-content::before,
.faq-content::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--hairline);
  z-index: 0;
  pointer-events: none;
}
.faq-content::before { left: 25vw; }
.faq-content::after { left: 75vw; }
.faq-rail {
  position: relative;
  margin-left: calc(-1 * var(--gutter));
  margin-right: calc(-1 * var(--gutter));
  border-top: 1px solid var(--hairline);
}
.faq-row {
  position: relative;
  padding: 0;
  border-bottom: 1px solid var(--hairline);
  transition: background 0.18s ease;
}
.faq-row:hover {
  background-color: var(--bg-soft);
  background-image: none;
}
.faq-row:hover .cv-corner,
.faq-row.is-open .cv-corner { background: var(--accent); z-index: 5; }
/* Redraw the two grid column lines (25vw / 75vw) on top of the hover fill so
   they don't vanish. Positioned like .cv-corner (same 25vw/75vw reference). */
.faq-row:hover::before,
.faq-row:hover::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--hairline);
  pointer-events: none;
  z-index: 0;
}
.faq-row:hover::before { left: 25%; }
.faq-row:hover::after { left: 75%; }
/* Question + answer both live in columns 2–3 (25vw → 75vw) */
.faq-toggle {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: calc(50vw - 25px);
  margin-left: calc(25vw + 25px);
  padding: 22px 25px 22px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  position: relative;
  z-index: 2;
}
.faq-q {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.32;
  letter-spacing: -0.005em;
  color: var(--ink);
  transition: color 0.18s ease;
}
.faq-row:hover .faq-q,
.faq-row.is-open .faq-q { color: var(--accent); }
.faq-icon {
  position: relative;
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  margin-top: 6px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  transform-origin: 55% 55%;
  transition: transform 0.28s ease, border-color 0.18s ease;
}
.faq-row.is-open .faq-icon { transform: rotate(-135deg); border-color: var(--accent); }
.faq-row:hover .faq-icon { border-color: var(--accent); }
.faq-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
  width: calc(50vw - 25px);
  margin-left: calc(25vw + 25px);
}
.faq-a {
  padding: 0 30px 24px 0;
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
}
@media (max-width: 820px) {
  .faq-panel {
    width: auto;
    margin-left: calc(var(--gutter) + 14px);
    margin-right: calc(var(--gutter) + 14px);
  }
  /* Full-width toggle so space-between pushes every chevron to the right
     gutter (aligned with the hamburger menu). A bare button width:auto
     shrinks to its content, so set it explicitly with padding gutters. */
  .faq-toggle {
    box-sizing: border-box;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: calc(var(--gutter) + 14px);
    padding-right: calc(var(--gutter) + 14px);
  }
  .faq-row .cv-corner { left: var(--gutter) !important; }
  .faq-row .cv-corner-r { left: calc(100% - var(--gutter)) !important; }
  .faq-content::before,
  .faq-content::after { display: none !important; }
  /* Persistent vertical guidelines at both gutters, running through the corner
     squares — same treatment as the Experience rail on mobile. */
  .faq-row::before,
  .faq-row::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--hairline);
    pointer-events: none;
    z-index: 0;
    display: block;
  }
  .faq-row::before,
  .faq-row:hover::before { left: var(--gutter); display: block; }
  .faq-row::after,
  .faq-row:hover::after { left: calc(100% - var(--gutter)); display: block; }
}

/* ===================== Timeline ===================== */

.timeline-shell {
  max-width: none;
  margin: 0;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Layout switcher */
.cv-switch {
  display: inline-flex;
  gap: 2px;
  margin: 0 0 26px calc(25vw - var(--gutter) + 8px);
  padding: 3px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--bg-soft);
}
.cv-switch button {
  appearance: none;
  border: 0;
  cursor: pointer;
  background: transparent;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 7px 16px;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease;
}
.cv-switch button.is-active {
  background: var(--accent);
  color: var(--accent-ink);
}

/* ---------- Option A: Timeline rail ---------- */
.cv-rail {
  position: relative;
  margin-left: calc(-1 * var(--gutter));
  margin-right: calc(-1 * var(--gutter));
  border-top: 1px solid var(--hairline);
}
.cv-rail-row {
  position: relative;
  display: grid;
  grid-template-columns: calc(25vw - var(--gutter)) 1fr;
  align-items: stretch;
  padding: 15px var(--gutter);
  border-bottom: 1px solid var(--hairline);
  transition: background 0.18s ease;
}
.cv-rail-row:hover { z-index: 5; }
.cv-rail-row::before,
.cv-rail-row::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--hairline);
  opacity: 1;
  pointer-events: none;
  transition: background 0.18s ease;
}
.cv-rail-row::before { left: 25%; }
.cv-rail-row::after { left: 75%; }
.cv-rail-row::before, .cv-rail-row::after { z-index: 1; }
.cv-rail-row:hover .cv-corner { background: var(--accent); }
.cv-rail-row:hover .cv-corner { background: var(--accent); }
.cv-rail-year {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--accent);
  white-space: nowrap;
}
.cv-rail-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 5px;
}
.cv-rail-info {
  grid-column: 2;
  position: relative;
  padding-left: 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cv-corner {
  position: absolute;
  left: 25%;
  width: 6px;
  height: 6px;
  background: var(--hairline);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 3;
  transition: background 0.18s ease;
}
.cv-corner-t { top: -3.5px; }
.cv-corner-b { bottom: -3.5px; }
.cv-corner-r { left: 75%; }
.cv-rail-row:hover .cv-corner { background: var(--accent); }
/* Footer below the roles — transparent; the global dot canvas shows through
   uniformly since there's no vertical ruler line left to patch. */
.cv-rail-foot {
  position: relative;
  z-index: 2;
  padding: 22px 0 4px;
}
/* "Show earlier roles" toggle — pill button, matching the hero pills */
.cv-rail-more {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 16px;
  margin: 0 0 0 calc(25vw + 9px);
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--bg-card);
  cursor: pointer;
  text-align: left;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink);
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.cv-rail-more-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cv-rail-more-label { white-space: nowrap; }
.cv-rail-more:hover { background: #161513; border-color: #161513; color: #f4f0e6; }
.cv-rail-more .cv-corner { display: none; }
.cv-rail-more-icon {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transform-origin: 55% 55%;
  transition: transform 0.28s ease;
}
.cv-rail-more-icon.is-open { transform: rotate(-135deg); }
.cv-rail-co {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.1;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--ink);
  margin: 0;
}
.cv-rail-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.cv-rail-role { color: var(--muted); white-space: nowrap; }
.cv-rail-sep { color: var(--muted-soft); }
.cv-rail-loc { color: var(--muted); }

/* ---------- Option B: Compact single-line rows ---------- */
.cv-compact {
  margin-left: calc(-1 * var(--gutter));
  margin-right: calc(-1 * var(--gutter));
  border-top: 1px solid var(--hairline);
}
.cv-compact-row {
  display: grid;
  grid-template-columns: calc(25vw - var(--gutter)) minmax(150px, auto) 1fr auto;
  align-items: baseline;
  column-gap: 28px;
  padding: 12px var(--gutter);
  border-bottom: 1px solid var(--hairline);
  transition: background 0.18s ease;
}
.cv-compact-row:hover { background: var(--bg-soft); }
.cv-compact-year {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  padding-left: 8px;
}
.cv-compact-co {
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: 'wght' 800, 'wdth' 125;
  font-size: 17px;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}
.cv-compact-role {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.cv-compact-loc {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-align: right;
  white-space: nowrap;
}

/* ---------- Option C: Editorial, content at the 1/4 line ---------- */
.cv-ed {
  margin-left: calc(25vw - var(--gutter) + 8px);
  border-left: 1px solid var(--hairline);
  padding-left: 30px;
  display: flex;
  flex-direction: column;
}
.cv-ed-row {
  position: relative;
  padding: 4px 0 26px;
}
.cv-ed-row:last-child { padding-bottom: 0; }
.cv-ed-row::before {
  content: "";
  position: absolute;
  left: calc(-30px - 4px);
  top: 11px;
  width: 7px;
  height: 7px;
  background: var(--hairline);
  transition: background 0.18s ease;
}
.cv-ed-row:hover::before { background: var(--accent); }
.cv-ed-year {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.cv-ed-co {
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: 'wght' 800, 'wdth' 125;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 6px;
}
.cv-ed-meta {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}
.cv-ed-role { color: var(--accent); white-space: nowrap; }
.cv-ed-sep { color: var(--muted-soft); }
.cv-ed-loc { color: var(--muted); }

@media (max-width: 820px) {
  .cv-switch { margin-left: 0; }
  .cv-rail-row { grid-template-columns: 96px 1fr; }
  .cv-rail-year { padding-left: 0; font-size: 11.5px; }
  .cv-compact-row {
    grid-template-columns: 84px 1fr;
    row-gap: 3px;
    column-gap: 14px;
  }
  .cv-compact-year { padding-left: 0; }
  .cv-compact-role { grid-column: 2; }
  .cv-compact-loc { grid-column: 2; text-align: left; }
  .cv-ed { margin-left: 0; }
}

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

.about-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 720px) { .about-grid { grid-template-columns: 1fr; gap: 12px; } }
.about-body p {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.5;
  color: var(--ink);
  max-width: 56ch;
}
.about-body p + p { margin-top: 14px; }
.about-tags {
  margin-top: 28px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.about-tags .tag {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.05em; text-transform: lowercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
}

.also-grid {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline-soft);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 720px) {
  .also-grid { grid-template-columns: 1fr; gap: 18px; }
}
.also-label {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.also-val {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.also-val .edu-line { margin-bottom: 6px; }
.also-val .edu-line:last-child { margin-bottom: 0; }
.also-val .edu-school { color: var(--ink); font-weight: 500; }
.also-val .edu-degree { color: var(--muted); }
.also-val .also-sep { color: var(--muted-soft); margin: 0 4px; }

/* ===================== Off-script ===================== */

.offscript-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hairline-soft);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 720px) { .offscript-grid { grid-template-columns: 1fr; } }

.offscript-card {
  background: var(--bg-card);
  padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 160px;
}
.offscript-label {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
}
.offscript-body {
  font-family: var(--serif);
  font-size: 20px; line-height: 1.45;
  color: var(--ink);
  max-width: 42ch;
  margin: 0;
}
.offscript-body em { font-style: italic; }
.offscript-body a {
  color: var(--accent);
  border-bottom: 1px solid color-mix(in oklab, var(--accent) 35%, transparent);
}
.offscript-body a:hover { border-color: var(--accent); }

/* ===================== Footer / Contact ===================== */

.contact {
  padding: var(--section-y) 0 calc(var(--section-y) * 0.7);
  position: relative;
  background: #161513;
  --ink: #f4f0e6;
  --ink-soft: #d5cfbe;
  --muted: #8e8a7e;
  --muted-soft: #5e5b53;
  --hairline: #2c2925;
  --hairline-soft: #232120;
  --grid-dot: #232120;
  --bg: #161513;
  --bg-soft: #1f1d1a;
  --bg-card: #1a1816;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Same gradient-through-a-dot-mask treatment as the hero: accent blue at
     top fading to the gray dot tone at bottom, applied across the whole
     group of dots (not per-dot). */
  background: linear-gradient(180deg, var(--accent) 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle, #000 1px, transparent 1.4px);
  mask-image: radial-gradient(circle, #000 1px, transparent 1.4px);
  -webkit-mask-size: var(--hero-m, 2.5vw) var(--hero-m, 2.5vw);
  mask-size: var(--hero-m, 2.5vw) var(--hero-m, 2.5vw);
  -webkit-mask-position: calc(var(--hero-m, 2.5vw) / 2) calc(var(--hero-m, 2.5vw) / 2);
  mask-position: calc(var(--hero-m, 2.5vw) / 2) calc(var(--hero-m, 2.5vw) / 2);
  -webkit-mask-repeat: repeat;
  mask-repeat: repeat;
  opacity: 0.5;
  background-attachment: scroll;
  pointer-events: none;
  z-index: 0;
}
.contact > * { position: relative; z-index: 1; }
.contact .shell {
  max-width: none;
  margin: 0;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.contact-grid {
  display: grid;
  grid-template-columns: calc(25vw - var(--gutter) + 25px) 1fr;
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: none;
}
.contact-photo {
  position: relative;
  width: 100%;
  max-width: none;
  height: 100%;
  padding-right: 40px;
  box-sizing: border-box;
  overflow: hidden;
  background: transparent;
}
.contact-photo img {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% - 40px);
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
@media (max-width: 720px) {
  .contact-photo { max-width: 130px; }
}
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; gap: 20px; margin-left: 0; width: auto; } }
.contact-body { grid-column: 2; }
.contact-body .display { max-width: 14ch; font-size: max(28px, 3.63vw); }
.contact-body .email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #f4f0e6;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.contact-body .email .email-icon { flex: 0 0 auto; }
.contact-body .email:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.contact-links {
  margin-top: 36px;
  display: flex; flex-wrap: wrap; gap: 8px;
}

.footer-links {
  margin-top: var(--section-y);
  margin-left: calc(-1 * var(--gutter));
  margin-right: calc(-1 * var(--gutter));
  padding: 44px 0 44px;
  background: #161513;
  border-top: 1px solid #2c2925;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  --ink: #f4f0e6;
  --ink-soft: #d5cfbe;
  --muted: #8e8a7e;
  --muted-soft: #5e5b53;
  --hairline: #2c2925;
  --hairline-soft: #232120;
  --grid-dot: #232120;
  --accent: #5b8def;
}
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col-0 { grid-column: 1; padding-left: var(--gutter); }
.footer-col-1 { grid-column: 2; padding-left: 27px; }
.footer-col-3 { grid-column: 3; padding-left: 25px; }
.footer-col-4 { grid-column: 4; padding-left: 25px; }
.footer-col-label {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--ink);
  margin-bottom: 4px;
}
.footer-col a {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--muted);
  text-decoration: none;
  width: fit-content;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--accent); }
@media (max-width: 720px) {
  .footer-links { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-col-1, .footer-col-3, .footer-col-4 { grid-column: auto; }
}

.footer-bottom {
  margin-top: 0;
  margin-left: calc(-1 * var(--gutter));
  margin-right: calc(-1 * var(--gutter));
  margin-bottom: calc(-1 * var(--section-y) * 0.7);
  padding: 22px var(--gutter) calc(var(--section-y) * 0.7 + 22px);
  background: #161513;
  border-top: 0;
  display: flex; align-items: center; gap: 24px;
  font-family: var(--serif); font-size: 13px; color: #8e8a7e;
  letter-spacing: 0;
}
.footer-bottom span { color: #d5cfbe; }
.footer-bottom .sep { opacity: 0.4; }

.footer-thanks {
  margin-top: 0;
  padding-top: calc(var(--section-y) * 0.9);
  margin-left: calc(-1 * var(--gutter));
  margin-right: calc(-1 * var(--gutter));
  padding: 0;
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: 'wght' 800, 'wdth' 125;
  font-size: 12.4vw;
  line-height: 0.84;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
  text-stroke: 2px var(--accent);
  white-space: nowrap;
  text-align: center;
  overflow: hidden;
  user-select: none;
  position: relative;
  z-index: 1;
  background: var(--bg);
}

/* ===================== Case study modal ===================== */

.cs-overlay {
  position: fixed; inset: 0;
  background: rgba(18, 17, 15, 0.42);
  backdrop-filter: blur(4px) saturate(105%);
  -webkit-backdrop-filter: blur(4px) saturate(105%);
  z-index: 40;
  overflow-y: auto;
  animation: cs-fade 180ms ease-out;
}
@keyframes cs-fade { from { opacity: 0; } to { opacity: 1; } }

.cs-overlay-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 80px 32px 96px;
}

.cs-close {
  position: fixed; top: 18px; right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  height: 36px; padding: 0 16px;
  font-family: var(--mono); font-size: 12px;
  color: var(--ink); cursor: pointer;
  letter-spacing: 0.04em;
}
.cs-close:hover { background: var(--bg-soft); }

/* Password gate */
.cs-gate {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  max-width: 480px;
  margin: 14vh auto 0;
  text-align: center;
  box-shadow: 0 32px 80px -24px rgba(0, 0, 0, 0.5);
}
.cs-gate .cs-close-in,
.cs-doc .cs-close-in {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
  z-index: 2;
}
.cs-gate .cs-close-in:hover,
.cs-doc .cs-close-in:hover { background: transparent; color: var(--ink); }
.cs-close-doc { position: sticky; top: 0; float: right; margin: -8px -8px 0 0; }
.cs-gate .lock-glyph {
  display: inline-flex;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--muted);
  align-items: center;
  justify-content: center;
}
.cs-gate h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: 24px; letter-spacing: -0.01em;
  margin: 18px 0 8px;
}
.cs-gate p {
  font-family: var(--sans); font-size: 14px; color: var(--muted);
  max-width: none; white-space: nowrap; margin: 0 auto 24px;
}
.cs-gate-form { display: flex; flex-direction: column; gap: 10px; }
.cs-gate input {
  width: 100%; height: 44px; padding: 0 16px;
  border: 1px solid var(--hairline);
  background: var(--bg);
  border-radius: 10px;
  font-family: var(--mono); font-size: 14px;
  color: var(--ink);
  outline: none;
  text-align: center; letter-spacing: 0.1em;
}
.cs-gate input:focus { border-color: var(--ink); }
.cs-gate input.error { border-color: #c44; }
.cs-gate button {
  height: 44px; border-radius: 10px; border: 0;
  background: var(--ink); color: var(--bg-card);
  font-family: var(--sans); font-weight: 500; font-size: 14px;
  cursor: pointer;
}
.cs-gate button:hover { background: var(--ink-soft); }
.cs-gate .err {
  font-family: var(--mono); font-size: 12px; color: #c44;
  letter-spacing: 0.04em; min-height: 16px;
}
.cs-gate .hint {
  margin-top: 24px;
  font-family: var(--mono); font-size: 11px; color: var(--muted-soft);
  letter-spacing: 0.05em; text-transform: uppercase;
}

/* ===================== Standalone case-study page ===================== */
.csp-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 60px;
  padding: 0 var(--gutter);
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline-soft);
}
.csp-brand {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.csp-brand em { font-style: normal; color: var(--accent); }
.csp-back {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.csp-back:hover { color: var(--ink); }
.csp-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px var(--gutter) 96px;
}
.csp-locked {
  text-align: center;
  padding: 96px 0;
}
.csp-locked h1 {
  font-family: var(--display); font-weight: 800;
  font-variation-settings: 'wght' 800, 'wdth' 125;
  font-size: 28px; text-transform: uppercase; letter-spacing: -0.01em;
  color: var(--ink); margin: 0 0 12px;
}
.csp-locked p {
  font-family: var(--serif); font-size: 17px; color: var(--muted);
  margin: 0 0 28px;
}
.csp-locked .pill { display: inline-flex; }

/* ===================== Unlocked case study layout ===================== */
.cs-doc .cs-meta {
  display: flex; gap: 14px; align-items: center;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.cs-doc .cs-meta > span:not(.sep) { text-transform: lowercase; }
.cs-doc .cs-meta .cs-meta-co { text-transform: none !important; }
.cs-doc .cs-meta .sep { opacity: 0.4; }
.cs-doc h1 {
  font-family: var(--display); font-weight: 800;
  font-variation-settings: 'wght' 800, 'wdth' 125;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08; letter-spacing: -0.015em;
  text-transform: uppercase;
  text-wrap: balance;
  margin-bottom: 18px;
}
.cs-doc h1 em { font-style: normal; color: var(--accent); }
.cs-doc .cs-lede {
  font-family: var(--serif); font-weight: 400;
  font-size: 19px; line-height: 1.5; color: var(--ink-soft);
  max-width: 46ch; margin-bottom: 48px;
}
.cs-hero {
  height: 320px;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border: 1px solid var(--hairline);
  margin-bottom: 56px;
  position: relative;
  overflow: hidden;
}
.cs-hero .placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.cs-screens { display: flex; flex-direction: column; gap: 32px; margin-bottom: 56px; }
.cs-screen { margin: 0; }
.cs-screen img { display: block; width: 100%; border: 1px solid var(--hairline); border-radius: var(--radius-lg); }
.cs-screen figcaption { margin-top: 12px; font-family: var(--mono); font-size: 12px; line-height: 1.5; color: var(--muted); }
.cs-block { margin-bottom: 48px; }
.cs-block h3 {
  font-family: var(--mono); font-weight: 500;
  font-size: 12px; color: var(--muted);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 14px;
}
.cs-block p {
  font-family: var(--serif); font-size: 17px; line-height: 1.6;
  color: var(--ink-soft); max-width: 62ch;
}
.cs-flow { display: flex; flex-wrap: nowrap; align-items: flex-start; gap: 18px; }
.cs-flow-step { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1 1 0; }
.cs-flow-num {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.cs-flow-label { font-family: var(--serif); font-size: 14px; font-weight: 500; color: var(--ink); line-height: 1.35; }
.cs-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  padding: 32px; background: var(--bg-card);
  border: 1px solid var(--hairline); border-radius: var(--radius-lg);
}
.cs-stat .n {
  font-family: var(--display); font-weight: 800;
  font-variation-settings: 'wght' 800, 'wdth' 125;
  font-size: 34px; line-height: 1.04;
  color: var(--accent); letter-spacing: -0.01em;
}
.cs-stat .l {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  letter-spacing: 0.04em; margin-top: 6px;
}

/* Dark theme overrides (applied via data-theme on <html>) */
html[data-theme="dark"] {
  --bg: #161513;
  --bg-soft: #1f1d1a;
  --bg-card: #1a1816;
  --ink: #f4f0e6;
  --ink-soft: #d5cfbe;
  --muted: #8e8a7e;
  --muted-soft: #5e5b53;
  --hairline: #2c2925;
  --hairline-soft: #232120;
  --grid-dot: #232120;
}
html[data-theme="paper"] {
  --bg: #fafaf6;
  --bg-soft: #f1efe6;
  --bg-card: #ffffff;
  --hairline: #e6e2d3;
  --hairline-soft: #ededed;
  --grid-dot: #dcdcdc;
}

/* Hide the fixed 4-column vertical lines starting at the same breakpoint
   (≤820px) where sections switch to their own gutter-based guidelines
   (Experience rail, FAQ rows) — otherwise, from 721–820px, the persistent
   global column lines stay visible while the gap-erasure masks (tuned for
   the 25/50/75% grid) and the gutter-based guides both compete, leaving
   stray vertical lines in the padding gaps between sections. */
/* ===================== Mobile polish (≤720px) ===================== */
@media (max-width: 720px) {
  :root { --gutter: 20px; }

  /* Section titles to the gutter. */
  .sec-title { padding-left: var(--gutter) !important; padding-right: var(--gutter); }

  /* Nav: brand + hamburger only (links already hidden). */
  .topnav-inner { padding-left: var(--gutter); padding-right: var(--gutter); }

  /* Hero: full-width stacked headline + intro. */
  .hero-shell { padding-left: var(--gutter); padding-right: var(--gutter); padding-top: 76px; padding-bottom: 28px; gap: 24px; min-height: 0 !important; }
  .hero-foot { display: contents; }
  .hero-headbox { order: 0; }
  .hero-lede-wrap { order: 1; display: block !important; width: 100% !important; padding: 0 !important; margin: 0 !important; }
  .hero-contact { order: 2; display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; align-items: flex-start !important; gap: 10px; margin-top: 22px !important; }
  .hero-contact .pill { width: auto !important; height: 46px !important; font-size: 15px !important; padding: 0 18px !important; }
  .hero-ledebox { width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; border: 0 !important; padding: 0 !important; height: auto !important; }
  .hero-ledebox .hcorner { display: none !important; }
  .hero-ledebox .hero-lede { padding-right: 0 !important; }
  .hero-headbox { max-width: 100% !important; width: 100% !important; box-sizing: border-box !important; height: auto !important; padding: 30px 24px !important; }
  .hero-headbox .hero-display { max-width: none !important; width: 100%; }
  .work-section { padding-top: 28px !important; }
  .hero-display { font-size: clamp(30px, 8.57vw, 45px); }
  .hero-lede { font-size: 17px !important; line-height: 1.7 !important; }

  /* Case-study rows: stacked card with logo on top. */
  .work-row {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
    align-items: start !important;
    padding: 24px var(--gutter) !important;
    gap: 14px !important;
  }
  .work-row::before, .work-row::after { display: none !important; }
  .work-row-media {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    align-self: flex-start !important;
    width: 100% !important;
    background: transparent !important;
    padding: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
  }
  .work-row:hover .work-row-media { background: transparent !important; }
  .work-row-media .work-row-co { margin: 0 !important; text-align: center !important; }
  .work-row-media .brandlogo { margin: 0 auto !important; justify-content: center !important; width: auto !important; }
  .work-row-media .brandlogo-img { margin: 0 auto !important; display: block !important; }
  .work-row-media svg { margin: 0 auto !important; display: block !important; }
  .work-row-co { color: #f4f0e6 !important; }
  .work-row:hover .work-row-co { color: #f4f0e6 !important; }
  .brandlogo-disney .brandlogo-img { height: 56px !important; }
  .brandlogo-applestudios .brandlogo-img { height: 64px !important; }
  .brandlogo-appletv svg { height: 35px !important; }
  .work-row-num { padding: 0 !important; }
  .work-row-body { padding: 0 !important; }
  .work-row-arrow { display: none !important; }

  /* Career rail: pull content to the gutter, drop corner squares. */
  .cv-rail-row { padding-left: var(--gutter) !important; padding-right: var(--gutter) !important; }
  .cv-rail-info { grid-column: 1 !important; }
  .cv-corner { left: var(--gutter) !important; }
  .cv-corner-r { left: calc(100% - var(--gutter)) !important; }
  /* Align the "Show earlier roles" pill with the roles at the gutter. */
  .cv-rail-more { margin-left: calc(var(--gutter) + 10px) !important; }
  /* Mobile: continuous guidelines at both gutters running through the squares. */
  .cv-rail-row::before { left: var(--gutter) !important; }
  .cv-rail-row::after { left: calc(100% - var(--gutter)) !important; }
  .cv-rail-meta { flex-direction: column !important; flex-wrap: nowrap !important; align-items: flex-start !important; gap: 2px !important; }
  .cv-rail-sep { display: none !important; }
  .cv-rail-loc { white-space: nowrap !important; }
  .cv-rail-head { flex-direction: column !important; align-items: flex-start !important; gap: 2px !important; margin-bottom: 2px !important; }
  .cv-rail-year { white-space: nowrap !important; }
  .cv-rail-co { white-space: nowrap !important; }
  #timeline { padding-top: 56px !important; }

  /* About: single column, photo capped, corner squares to gutter. */
  .about-shell { grid-template-columns: 1fr !important; gap: 22px !important; padding: 0 var(--gutter) !important; }
  .about-photo { grid-column: 1 !important; grid-row: auto !important; position: relative !important; }
  .about-photo::before { display: none !important; }
  .about-photo img { position: static !important; width: 100% !important; max-width: 100% !important; height: auto !important; max-height: none !important; aspect-ratio: auto !important; object-fit: contain !important; }
  .about-intro { grid-column: 1 !important; padding: 0 !important; }
  .about-intro-body { max-width: none !important; }
  .about-cols { grid-column: 1 !important; grid-template-columns: 1fr !important; border-left: 0 !important; }
  .about-col { border-left: 0 !important; padding-left: 0 !important; }
  .about-corner { display: none !important; }
  .about-section::before,
  .about-section::after,
  .about-section .ac-mid-line { display: none !important; }

  /* Contact: stacked, photo above heading. */
  .contact .shell { padding-left: var(--gutter); padding-right: var(--gutter); }
  .contact-grid { grid-template-columns: 1fr !important; gap: 20px !important; margin-left: 0 !important; width: auto !important; }
  .contact-body { grid-column: 1 !important; }
  .contact-body .display { max-width: none !important; }

  /* Footer: single column of links. */
  .footer-links { grid-template-columns: 1fr !important; gap: 28px !important; }
  .footer-col-0, .footer-col-1, .footer-col-3, .footer-col-4 { grid-column: 1 !important; padding-left: var(--gutter) !important; }
  .footer-thanks { font-size: 12.2vw !important; white-space: nowrap !important; overflow: visible !important; text-align: center !important; letter-spacing: -0.02em !important; }

  /* Full-screen slide-in menu panel. */
  .menu-panel { width: 100vw !important; min-width: 0 !important; }
  .menu-panel-links a { font-size: 26px !important; padding: 10px 0 !important; }
  .menu-brand-row { left: 28px !important; }
}

/* ===================== Toolbox logo sizing (≤820px) =====================
   Wider than the 720px "mobile polish" breakpoint above so phones that
   report a logical width in the 721–820px band (large phones / small
   tablets) also get the bigger, balanced logo treatment instead of
   falling back to the tiny desktop scale-factor sizing. */
@media (max-width: 820px) {
  .tools-row { flex-wrap: wrap !important; }
  .tool-cell { flex: 0 0 33.333% !important; min-height: 110px !important; }
  .tool-cell:nth-child(-n+4) { flex: 0 0 25% !important; }
  .tool-cell:nth-child(5), .tool-cell:nth-child(8) { justify-content: flex-start !important; padding-left: var(--gutter) !important; }
  .tool-cell:nth-child(7), .tool-cell:nth-child(10) { justify-content: flex-end !important; padding-right: var(--gutter) !important; }
  /* max-height/max-width alone can only SHRINK an image bigger than the cap —
     they never enlarge one smaller than it. The icon-glyph logos (Figma,
     ChatGPT, GitHub) happen to ship with an intrinsic size near the old cap,
     so they looked fine; the wordmark logos ship tiny (8–15px tall
     intrinsically) and never grew. Setting an explicit target height (not a
     ceiling) forces every logo to render at the same visual size, with
     width:auto preserving each one's aspect ratio and max-width as a
     safety net against overflow in the cell. */
  /* Wordmarks are sized by WIDTH (what the eye reads for text logos) since
     several SVGs carry internal viewBox padding that makes equal heights
     render unequal. Icons (Figma, ChatGPT, GitHub) are sized by height. */
  .tool-logo { height: auto !important; width: auto !important; max-width: 60% !important; max-height: none !important; }
  .tool-cell:nth-child(1) .tool-logo { height: 34px !important; width: auto !important; } /* Figma (icon) */
  .tool-cell:nth-child(2) .tool-logo { width: 104px !important; } /* Claude */
  .tool-cell:nth-child(3) .tool-logo { height: 34px !important; width: auto !important; } /* ChatGPT (icon) */
  .tool-cell:nth-child(4) .tool-logo { width: 100px !important; } /* Adobe */
  .tool-cell:nth-child(5) .tool-logo { width: 96px !important; } /* Replit */
  .tool-cell:nth-child(6) .tool-logo { width: 104px !important; } /* Airtable */
  .tool-cell:nth-child(7) .tool-logo { width: 92px !important; } /* Miro */
  .tool-cell:nth-child(8) .tool-logo { width: 104px !important; } /* Webflow */
  .tool-cell:nth-child(9) .tool-logo { height: 34px !important; width: auto !important; } /* GitHub (icon) */
  .tool-cell:nth-child(10) .tool-logo { width: 104px !important; } /* Storybook */
}

