:root {
  --bg: #fafafa;
  --fg: #0b0b0b;
  --muted: #6e6e6e;
  --line: #e2e2e2;
  --card: #f0f0ee;
  --accent: #1f7a4d;
  --hl: #ffd400;
  --serif: "Instrument Serif", "Times New Roman", Times, serif;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --pad: clamp(20px, 4vw, 56px);
  --max: 1360px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
main, .site-header, .site-footer { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.02;
  margin: 0;
}
.eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0;
}
.eyebrow a { text-decoration: none; }
.num { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* header */
.site-header {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; padding-bottom: 24px;
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(8px);
}
.logo { font-family: var(--serif); font-size: 24px; text-decoration: none; }
.site-header nav { display: flex; gap: clamp(14px, 3vw, 32px); font-size: 15px; }
.site-header nav a { text-decoration: none; }

/* hero */
.hero { padding: clamp(48px, 10vw, 140px) 0 clamp(56px, 9vw, 120px); border-bottom: 1px solid var(--line); }
.hero h1 { font-size: clamp(52px, 10vw, 148px); max-width: 11ch; }
.hero-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: clamp(32px, 5vw, 64px); align-items: end; }
.lede { font-size: clamp(18px, 1.6vw, 22px); margin: 0; max-width: 34em; }
.status { margin: 0; font-size: 15px; color: var(--muted); justify-self: end; max-width: 26em; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: 1px; }

/* sections */
.section { padding: clamp(56px, 8vw, 112px) 0; border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 56px); align-items: baseline; flex-wrap: wrap; }
.section-note { margin: 0; color: var(--muted); font-size: 15px; max-width: 36em; }

/* case list */
.case-row {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 64px);
  padding: clamp(28px, 4vw, 48px) 0; border-top: 1px solid var(--line);
  text-decoration: none; align-items: center;
}
.case-row:first-child { border-top: 0; padding-top: 0; }
.case-text h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.08; margin: 8px 0 16px; letter-spacing: -0.01em; }
.case-company { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.case-short { margin: 0 0 20px; color: #333; }
.more { font-size: 15px; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.case-cover, .case-hero-img { background: var(--card); border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 10; }
.case-cover img, .case-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.cover-type { display: flex; align-items: center; justify-content: center; background: #111; color: #f4f4f0; }
.cover-type span { font-family: var(--serif); font-size: clamp(44px, 6vw, 96px); letter-spacing: -0.02em; }

/* process */
.process-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); margin-bottom: clamp(40px, 6vw, 80px); }
.process-intro h2 { font-size: clamp(40px, 5vw, 72px); }
.process-intro p { margin: 0 0 1em; font-size: 18px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.steps li { padding: 28px 28px 32px 0; border-bottom: 1px solid var(--line); }
.steps h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 10px 0 10px; line-height: 1.1; }
.steps p { margin: 0; color: #333; font-size: 16px; }
.team-note { margin: clamp(32px, 4vw, 56px) 0 0; font-size: clamp(18px, 1.6vw, 22px); max-width: 40em; }

/* skills */
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 40px; }
.skill h3 { font-size: 15px; font-weight: 500; margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.skill ul { list-style: none; margin: 0; padding: 0; color: #333; font-size: 16px; }
.skill li { padding: 3px 0; }

/* about */
.about { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.portrait { border-radius: 6px; overflow: hidden; position: sticky; top: 100px; }
.about-text h2 { font-size: clamp(44px, 5vw, 72px); margin-bottom: 24px; }
.about-text p { font-size: 18px; margin: 0 0 1em; max-width: 36em; }
.sub { font-size: 15px; font-weight: 500; margin: 40px 0 12px; }
.experience { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.experience li { display: grid; grid-template-columns: 110px 1fr 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.experience .years { color: var(--muted); font-variant-numeric: tabular-nums; }
.experience .r { color: #333; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.plain { list-style: none; padding: 0; margin: 0; font-size: 15px; color: #333; }
.plain li { padding: 4px 0; }

/* early: carousel */
.carousel-nav { display: flex; gap: 8px; margin-left: auto; }
.carousel-nav[hidden] { display: none; }
.carousel-nav button { font: inherit; font-size: 20px; line-height: 1; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; background-color: transparent; color: var(--fg); cursor: pointer; }
.early {
  list-style: none; margin: 0; padding: 0 0 12px;
  display: flex; gap: 2px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.early li { flex: 0 0 auto; scroll-snap-align: start; }
.early figure { margin: 0; }
.early img { height: clamp(280px, 32vw, 440px); width: auto; max-width: none; }
.early figcaption { font-size: 11px; color: var(--muted); margin-top: 6px; padding-left: 2px; letter-spacing: 0.01em; }

/* domains */
.domains { margin-top: clamp(40px, 5vw, 64px); }
.domains .sub { margin-top: 0; }
.domains ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: 0 20px; }
.domains li { border-top: 1px solid var(--fg); padding-top: 12px; font-size: 15px; white-space: nowrap; }

/* hover: yellow underlay slides in from the left */
.hl, .site-header nav a, .logo, .contact-links a, .eyebrow a {
  background-image: linear-gradient(var(--hl), var(--hl));
  background-repeat: no-repeat; background-position: 0 0; background-size: 0% 100%;
  transition: background-size .35s cubic-bezier(.2, .7, .2, 1);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.site-header nav a, .logo, .eyebrow a { padding: 2px 4px; margin: -2px -4px; }
.case-row:hover .hl, .next-case:hover .hl, .hl:hover, .hl:focus-visible,
.site-header nav a:hover, .logo:hover, .contact-links a:hover, .eyebrow a:hover,
.site-header nav a:focus-visible, .contact-links a:focus-visible { background-size: 100% 100%; }
.carousel-nav button:hover { border-color: var(--hl); }
@media (prefers-reduced-motion: reduce) {
  .hl, .site-header nav a, .logo, .contact-links a, .eyebrow a { transition: none; }
  html { scroll-behavior: auto; }
}

/* footer */
.site-footer { padding-top: clamp(64px, 10vw, 140px); padding-bottom: 32px; }
.site-footer h2 { font-size: clamp(48px, 8vw, 120px); margin: 16px 0 32px; max-width: 12ch; }
.contact-links { display: flex; gap: 32px; flex-wrap: wrap; font-size: clamp(18px, 2vw, 26px); margin: 0 0 clamp(64px, 8vw, 120px); }
.contact-links a { text-decoration: none; border-bottom: 1px solid currentColor; }
.footer-bottom { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 20px; }

/* case page */
.case-hero { padding: clamp(40px, 8vw, 110px) 0 clamp(32px, 5vw, 56px); }
.case-hero h1 { font-size: clamp(44px, 7vw, 104px); max-width: 14ch; margin-top: 16px; }
.case-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: clamp(32px, 5vw, 64px) 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.case-meta dt { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.case-meta dd { margin: 0; font-size: 15px; }
.case-hero-img { aspect-ratio: auto; }
.case-hero-img img { height: auto; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: clamp(40px, 6vw, 80px) 0; border-bottom: 1px solid var(--line); }
.metric { display: flex; flex-direction: column; gap: 8px; }
.metric-value { font-family: var(--serif); font-size: clamp(40px, 4.5vw, 68px); line-height: 1; letter-spacing: -0.02em; }
.metric-label { font-size: 14px; color: var(--muted); max-width: 18em; }
.case-section { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(20px, 4vw, 64px); padding: clamp(40px, 6vw, 80px) 0 0; }
.case-section-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.4vw, 48px); margin: 6px 0 0; line-height: 1.05; }
.prose { max-width: 40em; }
.prose p { margin: 0 0 1em; font-size: 18px; }
.prose ul { margin: 0 0 1em; padding-left: 0; list-style: none; }
.prose li { font-size: 17px; padding: 10px 0 10px 24px; border-top: 1px solid var(--line); position: relative; }
.prose li::before { content: ""; position: absolute; left: 0; top: 21px; width: 10px; height: 1px; background: var(--fg); }
.prose b { font-weight: 500; }
.gallery { display: grid; align-items: start; grid-template-columns: repeat(2, 1fr); gap: 24px; padding-top: clamp(32px, 4vw, 56px); }
.gallery figure { margin: 0; }
.gallery figure:only-child, .gallery figure:nth-child(3n+1):last-child { grid-column: 1 / -1; }
.gallery img { width: 100%; border-radius: 6px; background: var(--card); }
.gallery figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.next-case { display: flex; flex-direction: column; gap: 12px; text-decoration: none; margin-top: clamp(64px, 8vw, 120px); padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.next-case .display { font-size: clamp(44px, 7vw, 104px); }

/* responsive */
@media (max-width: 960px) {
  .hero-meta, .process-intro, .about, .case-row, .case-section { grid-template-columns: 1fr; }
  .status { justify-self: start; }
  .steps, .skills { grid-template-columns: repeat(2, 1fr); }
  .domains ul { grid-template-columns: repeat(4, 1fr); gap: 16px 20px; }
  .metrics, .case-meta { grid-template-columns: repeat(2, 1fr); }
  .portrait { position: static; max-width: 420px; }
  .case-row .case-cover { order: -1; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .site-header nav a:nth-child(2) { display: none; }
  .steps, .skills, .gallery, .two-col { grid-template-columns: 1fr; }
  .domains ul { grid-template-columns: repeat(2, 1fr); }
  .carousel-nav { display: none; }
  .steps li { padding-right: 0; }
  .experience li { grid-template-columns: 1fr; gap: 2px; }
  .logo { font-size: 20px; }
}
