:root {
  color-scheme: light;
  --grid-x: 50vw;
  --grid-y: 28vh;
  --ink: #171717;
  --soft-ink: #3f3f3a;
  --muted: #76736c;
  --line: #ded8cc;
  --paper: #ffffff;
  --panel: #ebe5da;
  --white: #ffffff;
  --accent: #cb5a43;
  --frame-hover: #fff0df;
  --max: 1180px;
  --radius: 6px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

.interactive-grid-bg,
.interactive-grid-bg::before,
.interactive-grid-bg::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.interactive-grid-bg {
  z-index: 0;
  overflow: hidden;
  background: var(--paper);
}

.interactive-grid-bg::before,
.interactive-grid-bg::after {
  content: "";
}

.interactive-grid-bg::before {
  opacity: 0;
  background:
    radial-gradient(circle 220px at var(--grid-x) var(--grid-y), rgba(255, 196, 134, 0.34), transparent 68%),
    radial-gradient(circle 420px at var(--grid-x) var(--grid-y), rgba(255, 228, 197, 0.42), transparent 72%);
  transition: opacity 180ms ease;
}

.interactive-grid-bg::after {
  opacity: 0;
  background-image:
    linear-gradient(rgba(23, 23, 23, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 23, 23, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0, rgba(0, 0, 0, 1) 44rem, transparent 62rem);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0, rgba(0, 0, 0, 1) 44rem, transparent 62rem);
  transition: opacity 220ms ease;
}

.is-grid-hot .interactive-grid-bg::after {
  opacity: 0;
}

.is-grid-hot .interactive-grid-bg::before {
  opacity: 1;
}

.reduce-grid-motion .interactive-grid-bg::before,
.reduce-grid-motion .interactive-grid-bg::after {
  animation: none;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header,
.footer,
main {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 56px));
  margin: 0 auto;
}

.site-header {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 32px;
  align-items: start;
  padding: 28px 0;
}

.site-header,
.footer {
  isolation: isolate;
}

.site-header::before,
.footer::before {
  content: "";
  position: absolute;
  inset: 0 -12px;
  z-index: -1;
  border-radius: 12px;
  background: var(--frame-hover);
  opacity: 0;
  transform: scaleX(0.985);
  pointer-events: none;
  transition: opacity 240ms ease-out, transform 240ms ease-out;
}

@media (hover: hover) and (pointer: fine) {
  .site-header:hover::before,
  .footer:hover::before {
    opacity: 1;
    transform: scaleX(1);
  }
}

.site-header:focus-within::before,
.footer:focus-within::before {
  opacity: 1;
  transform: scaleX(1);
}

.site-header a:focus-visible,
.footer a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
  border-radius: 2px;
}

.brand {
  display: flex;
  gap: 16px;
  align-items: start;
}

.brand span {
  font-size: 17px;
  font-weight: 700;
}

.brand small {
  color: var(--soft-ink);
  font-size: 13px;
  line-height: 1.3;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  color: var(--soft-ink);
  font-size: 14px;
}

.nav a,
.back-link,
.text-link,
.footer a {
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.nav a:hover,
.back-link:hover,
.text-link:hover,
.footer a:hover {
  color: var(--accent);
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - 112px);
  align-items: start;
  padding: 48px 0 104px;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  min-height: calc(100svh - 228px);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  max-width: none;
  overflow: hidden;
  isolation: isolate;
}

.hero-copy::before,
.hero-copy::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.hero-copy::before {
  opacity: 1;
  background-image:
    linear-gradient(rgba(23, 23, 23, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 23, 23, 0.045) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.92) 0, rgba(0, 0, 0, 0.82) 64%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.92) 0, rgba(0, 0, 0, 0.82) 64%, transparent 100%);
}

.hero-copy::after {
  opacity: 0;
  background:
    radial-gradient(circle 200px at var(--hero-glow-x, 50%) var(--hero-glow-y, 50%), rgba(255, 197, 126, 0.32), transparent 58%),
    radial-gradient(circle 360px at var(--hero-glow-x, 50%) var(--hero-glow-y, 50%), rgba(255, 232, 204, 0.44), transparent 70%);
  filter: blur(18px);
  mask-image: radial-gradient(circle 280px at var(--hero-glow-x, 50%) var(--hero-glow-y, 50%), rgba(0, 0, 0, 1) 0, rgba(0, 0, 0, 0.7) 54%, transparent 84%);
  -webkit-mask-image: radial-gradient(circle 280px at var(--hero-glow-x, 50%) var(--hero-glow-y, 50%), rgba(0, 0, 0, 1) 0, rgba(0, 0, 0, 0.7) 54%, transparent 84%);
}

.hero-copy.is-glow-active::after {
  opacity: 1;
}

.hero-copy > * {
  position: relative;
  z-index: 1;
}

.hello {
  margin: 0 0 18px;
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 520;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 32px;
  font-size: clamp(52px, 8.6vw, 132px);
  font-weight: 560;
  line-height: 0.92;
}

.hero-copy h1 {
  max-width: none;
  font-size: clamp(44px, 6.8vw, 96px);
  line-height: 1.08;
  width: 100%;
  text-align: left;
  text-wrap: pretty;
}

.primary-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  font-weight: 650;
}

.primary-link:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.section-shell {
  padding: 96px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 34px;
  text-shadow: 0 1px 18px rgba(245, 241, 232, 0.75);
}

.section-heading span,
.section-number {
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 560;
  line-height: 0.95;
}

.project-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.filter-pill {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid rgba(23, 23, 23, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: clamp(15px, 1.35vw, 20px);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.filter-pill:hover,
.filter-pill:focus-visible,
.filter-pill.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.filter-pill:focus-visible {
  outline: 3px solid rgba(23, 23, 23, 0.16);
  outline-offset: 3px;
}

.filter-pill:active {
  transform: scale(0.97);
}

.project-grid {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  width: 100%;
}

.empty-filter {
  width: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.project-column {
  display: grid;
  flex: 1 1 0;
  min-width: 0;
  gap: 42px;
}

.project-card {
  overflow: visible;
  min-height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.project-card:hover {
  transform: translateY(-3px);
}

.project-card a,
.project-card-inner {
  display: grid;
  min-height: 100%;
}

.project-card img {
  width: 100%;
  aspect-ratio: var(--project-aspect, 1 / 1);
  border-radius: 30px;
  object-fit: cover;
  background: var(--panel);
}

.project-visual {
  display: grid;
  width: 100%;
  aspect-ratio: var(--project-aspect, 1 / 1);
  place-items: center;
  padding: 22px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 20% 20%, rgba(203, 90, 67, 0.25), transparent 34%),
    radial-gradient(circle at 78% 72%, rgba(38, 99, 118, 0.28), transparent 30%),
    linear-gradient(135deg, #f8f5ed, #dfe8df);
}

.project-visual span {
  max-width: 9ch;
  color: var(--ink);
  font-size: clamp(32px, 4vw, 58px);
  font-weight: 620;
  line-height: 0.95;
}

.project-visual-kinetic {
  background:
    linear-gradient(90deg, rgba(23, 23, 23, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(23, 23, 23, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 25% 18%, rgba(67, 117, 203, 0.28), transparent 30%),
    radial-gradient(circle at 75% 78%, rgba(203, 90, 67, 0.3), transparent 32%),
    #eef3ed;
  background-size:
    28px 28px,
    28px 28px,
    auto,
    auto,
    auto;
}

.project-visual-mlai {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.24) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    radial-gradient(circle at 22% 16%, rgba(255, 231, 128, 0.28), transparent 28%),
    radial-gradient(circle at 78% 76%, rgba(80, 188, 168, 0.32), transparent 34%),
    #18222b;
  background-size:
    30px 30px,
    30px 30px,
    auto,
    auto,
    auto;
}

.project-visual-mlai span {
  color: #f7f3ea;
}

.project-card-body {
  display: grid;
  gap: 6px;
  padding: 20px 8px 0;
}

.project-card-body h3 {
  margin: 0;
  font-size: clamp(22px, 2.05vw, 34px);
  font-weight: 560;
  line-height: 1.05;
}

.project-card-body p {
  margin: 0;
  color: var(--soft-ink);
  font-size: clamp(16px, 1.45vw, 23px);
  line-height: 1.2;
}

.project-card-body .project-card-bio {
  max-width: 34rem;
  padding-top: 6px;
  color: var(--muted);
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.35;
}

.is-muted {
  opacity: 0.62;
}

.skill-carousel {
  display: grid;
  width: 100%;
  max-width: none;
  margin-top: 36px;
}

.skill-marquee {
  overflow: hidden;
  padding: 8px 0 10px;
  mask-image: linear-gradient(90deg, #000 0%, #000 84%, transparent);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 84%, transparent);
}

.skill-track {
  display: flex;
  width: max-content;
  gap: 38px;
  animation: skill-scroll 28s linear infinite;
}

.skill-marquee:hover .skill-track {
  animation-duration: 64s;
}

.skill-chip {
  display: grid;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.skill-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

@keyframes skill-scroll {
  to {
    transform: translateX(calc(-50% - 7px));
  }
}

.timeline {
  display: grid;
  gap: 10px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 40px;
  padding: 32px 0;
}

.timeline-item > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  text-transform: uppercase;
}

.timeline-item h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.15;
}

.timeline-item div p {
  max-width: 820px;
  margin: 0;
  color: var(--soft-ink);
}

.background-page {
  padding-top: 44px;
}

.about-page {
  padding-top: 44px;
}

.about-intro {
  padding: 40px 0 88px;
}

.about-eyebrow,
.note-index {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft-ink);
}

.about-intro-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 64px;
  align-items: end;
  margin-top: 32px;
}

.about-intro h1 {
  margin: 0;
  font-size: clamp(48px, 6.6vw, 88px);
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.about-intro em,
.mood-note em {
  font-family: Georgia, serif;
  font-weight: 400;
}

.about-intro-note img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 24px;
}

.about-intro-note p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--soft-ink);
}

.about-intro-note a {
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.about-board-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--ink);
  padding: 20px 0 40px;
}

.about-board-heading h2 {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}

.about-board-heading > span {
  font-size: 12px;
  color: var(--soft-ink);
}

.moodboard-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 40px 32px;
  align-items: center;
  padding: 12px 12px 48px;
}

.mood-photo {
  margin: 0;
  padding: 10px 10px 18px;
  background: var(--white);
  border: 1px solid #e4e4e4;
  box-shadow: 0 6px 18px rgb(0 0 0 / 5%);
  transform: rotate(var(--tilt, 0deg));
}

.mood-photo img {
  width: 100%;
  height: auto;
}

.mood-photo figcaption {
  padding: 16px 6px 0;
  font-family: Georgia, serif;
  font-size: 17px;
  line-height: 1.4;
}

.mood-photo figcaption span {
  display: block;
  margin-bottom: 6px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--soft-ink);
}

.mood-hike { grid-column: 1 / 8; --tilt: -2deg; }
.mood-compass { grid-column: 9 / 13; }
.mood-studio { grid-column: 7 / 13; --tilt: 2deg; grid-row: 2; }
.mood-transition { grid-column: 1 / 6; grid-row: 2; padding-left: 32px; }
.polaroid-pile {
  grid-column: 7 / 13;
  grid-row: 2;
  position: relative;
  min-width: 0;
  min-height: clamp(360px, 43vw, 520px);
  isolation: isolate;
  overflow: clip;
}
.polaroid-card {
  position: absolute;
  top: 36px;
  left: 10%;
  width: 80%;
  padding: 12px 12px 22px;
  border: 1px solid #e4e4e4;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 5px 16px rgb(0 0 0 / 10%);
  text-align: left;
  font: inherit;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  transform: translate(var(--drag-x, 0px), calc(var(--card-offset) + var(--drag-y, 0px))) rotate(var(--card-angle));
  transition: transform 280ms ease-out;
}
.polaroid-card[aria-hidden="true"] { pointer-events: none; }
.polaroid-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fafafa; pointer-events: none; }
.polaroid-title { display: block; font: 20px/1.25 Georgia, serif; margin: 16px 4px 6px; }
.polaroid-caption { display: block; font-size: 12px; line-height: 1.5; margin: 0 4px; color: var(--soft-ink); }
.polaroid-card.is-dragging { cursor: grabbing; transition: none; }
.polaroid-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
.pile-drag-tab {
  position: absolute;
  z-index: 7;
  bottom: 6px;
  left: 50%;
  transform: translate(-50%, 5px);
  background: var(--ink);
  color: white;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .polaroid-pile:hover .pile-drag-tab { opacity: 1; transform: translate(-50%, 0); }
}
.polaroid-pile:focus-within .pile-drag-tab { opacity: 1; transform: translate(-50%, 0); }
.polaroid-pile:focus-within:not(.is-dragging) .pile-drag-tab { font-size: 0; }
.polaroid-pile:focus-within:not(.is-dragging) .pile-drag-tab::after { content: "Tap / Enter for next ↗"; font-size: 12px; }
.pile-announcement { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mood-note .pile-context { margin-top: 24px; font-family: Georgia, serif; font-style: italic; }
@media (prefers-reduced-motion: reduce) {
  .polaroid-card, .pile-drag-tab { transition: none; }
}
.mood-still-life { grid-column: 1 / 5; --tilt: -2deg; grid-row: 3; }
.mood-landscape { grid-column: 6 / 13; --tilt: 1.5deg; grid-row: 3; }

.mood-note > p {
  margin: 24px 0;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.mood-note small {
  display: block;
  font-size: 14px;
  line-height: 1.7;
  color: var(--soft-ink);
}

.mood-note svg {
  width: 72px;
  height: 72px;
  margin-top: 16px;
}

.mood-signoff {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 19px;
}

.mood-signoff img {
  width: 120px;
  height: auto;
}

.about-story {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 96px;
  padding: 96px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  scroll-margin-top: 32px;
}

.about-story-heading h2 {
  font-size: clamp(36px, 4.6vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin-top: 24px;
}

.about-chapters {
  display: grid;
  gap: 48px;
}

.about-chapters h3 {
  margin: 16px 0;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.about-chapters p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--soft-ink);
}

.about-chapters p:last-child { margin-bottom: 0; }
.about-practice .skill-groups article { background: var(--white); }
.about-practice .link-list a { border-radius: 4px; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .about-intro-grid { gap: 32px; grid-template-columns: 1.3fr 1fr; }
  .about-story { gap: 40px; grid-template-columns: 1fr 1.5fr; }
  .moodboard-grid { gap: 28px 20px; }
  .mood-compass { grid-column: 8 / 13; }
  .mood-transition { padding-left: 0; }
}

@media (max-width: 600px) {
  .about-intro { padding: 16px 0 56px; }
  .about-intro-grid, .about-story { grid-template-columns: 1fr; gap: 32px; }
  .about-intro h1 { font-size: clamp(43px, 10.5vw, 62px); }
  .about-intro-note { max-width: 440px; }
  .about-intro-note img { width: 64px; height: 64px; }
  .moodboard-grid { grid-template-columns: 1fr; padding: 0 6px 48px; gap: 32px; }
  .moodboard-grid > * { grid-column: auto; grid-row: auto; }
  .polaroid-pile { min-height: 400px; }
  .mood-photo { --tilt: 0deg; }
  .mood-hike { --tilt: -1deg; }
  .mood-studio { --tilt: 1deg; }
  .mood-note { padding: 16px 12px; }
  .mood-note > p { font-size: 34px; }
  .mood-note svg { width: 52px; height: 52px; }
  .mood-still-life { width: 85%; justify-self: center; }
  .mood-signoff { gap: 8px; font-size: 16px; }
  .mood-signoff img { width: 96px; }
  .about-story { padding: 56px 0; }
}

.about-panel {
  display: grid;
  gap: 72px;
}

/* A small, non-blocking composition on navigation; never a full-screen overlay. */
.navigation-geometry {
  position: fixed;
  width: 0;
  height: 0;
  z-index: 20;
  pointer-events: none;
  color: var(--ink);
}
.geometry-piece {
  position: absolute;
  display: block;
  width: 14px;
  height: 14px;
  background: currentColor;
  opacity: 0;
  animation: geometry-scatter 600ms cubic-bezier(0.16, 1, 0.3, 1) var(--delay) both;
}
.geometry-disc { width: 24px; height: 24px; border-radius: 50%; }
.geometry-dot { width: 6px; height: 6px; border-radius: 50%; }
.geometry-bar { width: 7px; height: 34px; }
.geometry-line { width: 32px; height: 2px; }
.geometry-ring { width: 21px; height: 21px; border: 1.5px solid currentColor; border-radius: 50%; background: white; }
.geometry-square { border: 1.5px solid currentColor; background: white; }
.geometry-arc { width: 40px; height: 40px; border: 1.5px solid currentColor; border-right-color: transparent; border-bottom-color: transparent; border-radius: 50%; background: none; }
.geometry-triangle { width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 25px solid currentColor; background: none; }
@keyframes geometry-scatter {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(0deg) scale(0.35); }
  18% { opacity: 0.85; }
  60% { opacity: 0.75; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--turn)) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .navigation-geometry { display: none; }
  .geometry-piece { animation: none; }
}

.about-summary p:last-child {
  max-width: 980px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4.5vw, 72px);
  font-weight: 560;
  line-height: 1.05;
}

.skill-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(23, 23, 23, 0.14);
}

.skill-groups article {
  display: grid;
  gap: 10px;
  padding: 28px;
  background: rgba(248, 244, 236, 0.92);
}

.skill-groups h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
}

.skill-groups p {
  margin: 0;
  color: var(--soft-ink);
  font-size: 17px;
  line-height: 1.35;
}

.link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.link-list a {
  display: grid;
  gap: 8px;
  padding: 22px 24px;
  border: 1px solid rgba(23, 23, 23, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

.link-list a:hover,
.link-list a:focus-visible {
  background: var(--ink);
  color: var(--white);
}

.link-list span {
  font-size: 20px;
  font-weight: 700;
}

.link-list small {
  overflow: hidden;
  color: inherit;
  font-size: 13px;
  opacity: 0.72;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footer {
  display: block;
  padding: 88px 0 40px;
  color: var(--ink);
}

.footer::before {
  display: none;
}

.footer-invitation {
  font-size: 13px;
  letter-spacing: 0.03em;
}

.footer-art-link {
  position: relative;
  display: block;
  padding: 16px 0 72px;
  color: var(--ink);
}

.footer a.footer-art-link:hover {
  color: var(--ink);
}

.footer-wordmark {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.footer-letters {
  font-family: "Arial Black", "Arial", sans-serif;
  font-size: 200px;
  font-weight: 900;
  fill: var(--white);
  stroke: var(--ink);
  stroke-width: 2.4px;
  paint-order: stroke fill;
}

.footer-spark {
  transform-origin: 1035px 57px;
  transition: transform 280ms ease-out;
}

.footer-art-link:is(:hover, :focus-visible) .footer-spark {
  transform: rotate(18deg);
}

.footer-cursor-tab {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 24px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  white-space: nowrap;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .footer-art-link.is-pointer-active:not(:focus-visible) .footer-cursor-tab {
    top: 0;
    bottom: auto;
    left: 0;
    transform: translate(var(--cursor-x), var(--cursor-y));
  }
}

.footer .footer-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--ink);
  color: var(--soft-ink);
  font-size: 12px;
  text-align: left;
}

@media (max-width: 540px) {
  .footer-art-link {
    padding-top: 32px;
  }

  .footer-letters {
    stroke-width: 2.5px;
  }
}

.footer p {
  margin: 0;
}

.case-study {
  padding: 44px 0 112px;
  --case-navy: #1d2f47;
  --case-blue: #2f6b96;
  --case-pale: rgba(232, 242, 249, 0.72);
}

.case-study-mlai {
  --case-navy: #050505;
  --case-blue: #008c8c;
  --case-orange: #ff3b10;
  --case-pale: #f4efe6;
}

.case-study-relish {
  --case-pale: #fff;
}

.back-link,
.text-link {
  color: var(--muted);
  font-size: 15px;
}

.case-hero {
  display: grid;
  gap: 48px;
  margin-top: 32px;
  padding: 76px 56px 88px;
  border-radius: 30px;
  background: var(--case-pale);
}

.case-study-mlai .case-hero {
  background: var(--white);
}

.case-title {
  max-width: 1040px;
}

.case-eyebrow,
.case-section-eyebrow {
  margin: 0 0 28px;
  color: var(--case-blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-title h1 {
  margin-bottom: 24px;
  max-width: 860px;
  color: var(--case-navy);
  font-size: clamp(58px, 9vw, 148px);
  font-weight: 800;
  line-height: 0.84;
}

.case-study-mlai .case-title,
.case-study-mlai .case-title h1 {
  max-width: none;
}

.case-study-mlai .case-title h1 {
  font-size: clamp(58px, 8vw, 132px);
}

.case-title p {
  max-width: 820px;
  margin-bottom: 24px;
  color: var(--soft-ink);
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.28;
}

.meta-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  justify-self: end;
  width: min(360px, 100%);
  margin: 0;
  background: transparent;
  border: 0;
}

.meta-list div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  min-height: 76px;
  padding: 18px 0;
  border-top: 1px solid rgba(29, 47, 71, 0.28);
  background: transparent;
}

.meta-list div:last-child {
  border-bottom: 1px solid rgba(29, 47, 71, 0.28);
}

dt {
  color: var(--case-blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

dd {
  margin: 0;
  color: #111;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.case-image {
  width: 100%;
  max-height: 760px;
  border-radius: 30px;
  object-fit: cover;
  background: var(--panel);
}

.hero-image {
  aspect-ratio: 16 / 9;
}

.case-proof-band {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 48px;
  margin: 0 calc(50% - 50vw);
  padding: 56px max(56px, calc((100vw - var(--max)) / 2)) 64px;
  background: var(--case-navy);
  color: var(--white);
}

.case-study-mlai .case-proof-band {
  border-top: 1px solid rgba(5, 5, 5, 0.16);
  border-bottom: 1px solid rgba(5, 5, 5, 0.16);
  background: var(--case-pale);
  color: var(--case-navy);
}

.case-proof-band h2 {
  margin: 0;
  color: #9fc6e6;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 800;
}

.case-study-mlai .case-proof-band h2 {
  color: var(--case-blue);
}

.case-proof-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
}

.case-proof-stats div {
  display: grid;
  gap: 10px;
}

.case-proof-stats strong {
  font-size: clamp(64px, 8vw, 120px);
  font-weight: 800;
  line-height: 0.85;
}

.case-study-mlai .case-proof-stats div:first-child strong {
  color: var(--case-blue);
}

.case-study-mlai .case-proof-stats div:nth-child(2) strong {
  color: var(--case-orange);
}

.case-proof-stats span {
  color: #b7d5ef;
  font-size: 15px;
  font-weight: 700;
}

.case-study-mlai .case-proof-stats span {
  color: var(--case-navy);
}

.case-sections {
  display: grid;
  gap: 64px;
  padding-top: 96px;
}

.case-section {
  display: grid;
  grid-template-columns: 72px minmax(260px, 430px) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  padding: 40px 0;
  border-top: 1px solid rgba(23, 23, 23, 0.1);
}

.case-section:not(:has(img)) {
  grid-template-columns: 72px minmax(0, 840px);
}

.case-section-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.05;
}

.case-section-dark {
  margin: 0 calc(50% - 50vw);
  padding: 88px max(56px, calc((100vw - var(--max)) / 2));
  grid-template-columns: minmax(0, 240px) minmax(0, 760px);
  background: #202020;
  color: #f4f1ea;
}

.case-study-mlai .case-section-dark {
  border-top: 1px solid rgba(5, 5, 5, 0.16);
  border-bottom: 1px solid rgba(5, 5, 5, 0.16);
  background: var(--case-pale);
  color: var(--case-navy);
}

.case-section-dark .section-number,
.case-section-dark .case-section-eyebrow {
  color: #9fc6e6;
}

.case-study-mlai .case-section-dark .section-number,
.case-study-mlai .case-section-dark .case-section-eyebrow {
  color: var(--case-orange);
}

.case-section-dark .case-section-copy h2,
.case-section-dark .body-copy {
  color: #f4f1ea;
}

.case-study-mlai .case-section-dark .case-section-copy h2,
.case-study-mlai .case-section-dark .body-copy {
  color: var(--case-navy);
}

.body-copy ol {
  display: grid;
  gap: 0;
  margin: 40px 0 0;
  padding: 0;
  counter-reset: journey-step;
  list-style: none;
}

.body-copy li {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 52px;
  padding: 36px 0;
  border-top: 1px solid rgba(244, 241, 234, 0.22);
  counter-increment: journey-step;
}

.case-study-mlai .body-copy li {
  border-top-color: rgba(5, 5, 5, 0.16);
}

.body-copy li::before {
  content: counter(journey-step, decimal-leading-zero);
  color: #9fc6e6;
  font-size: 14px;
  font-weight: 800;
}

.case-study-mlai .body-copy li::before {
  color: var(--case-orange);
}

.body-copy li strong {
  display: block;
  margin-bottom: 14px;
  color: #fff;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.05;
}

.case-study-mlai .body-copy li strong {
  color: var(--case-navy);
}

.body-copy li span {
  display: block;
}

.case-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 18px;
  margin-top: 28px;
}

.case-gallery figure {
  margin: 0;
}

.case-gallery img {
  width: 100%;
  max-height: 520px;
  border: 1px solid rgba(5, 5, 5, 0.12);
  border-radius: 18px;
  object-fit: contain;
  background: #fff;
}

.case-gallery figcaption {
  margin-top: 12px;
  color: inherit;
  font-size: 14px;
  font-weight: 700;
}

.body-copy {
  color: var(--soft-ink);
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.55;
}

.body-copy p {
  margin-bottom: 18px;
}

.not-found {
  min-height: 60vh;
  padding: 80px 0;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .project-card,
  .timeline-item,
  .case-section {
    animation: rise 520ms ease both;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(12px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (max-width: 920px) {
  .site-header,
  .footer,
  main {
    width: min(100% - 32px, var(--max));
  }

  .site-header,
  .footer,
  .section-heading,
  .timeline-item,
  .case-section,
  .case-section:not(:has(img)) {
    grid-template-columns: 1fr;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: calc(100svh - 120px);
    padding: 40px 0 88px;
  }

  .hero-copy {
    min-height: calc(100svh - 248px);
  }

  .filter-pill {
    min-height: 44px;
    padding: 0 20px;
  }

  .meta-list {
    grid-template-columns: 1fr;
  }

  .case-hero {
    padding: 52px 28px 64px;
  }

  .case-title h1 {
    font-size: clamp(54px, 14vw, 108px);
  }

  .case-proof-band,
  .case-section-dark {
    grid-template-columns: 1fr;
    padding-right: 32px;
    padding-left: 32px;
  }

  .case-proof-stats {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .skill-groups,
  .link-list {
    grid-template-columns: 1fr;
  }

  .body-copy li {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .skill-chip {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

  .footer div {
    text-align: left;
  }
}

@media (max-width: 540px) {
  .brand {
    display: grid;
  }

  .nav {
    gap: 16px;
  }

  h1 {
    font-size: 42px;
    line-height: 1.1;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .section-shell {
    padding: 72px 0;
  }

  .case-study {
    padding-top: 28px;
  }

  .case-hero {
    padding: 40px 20px 52px;
    border-radius: 22px;
  }

  .meta-list div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .case-proof-band,
  .case-section-dark {
    padding-right: 20px;
    padding-left: 20px;
  }

  .project-filter-tabs {
    gap: 8px;
    margin-bottom: 34px;
  }

  .filter-pill {
    min-height: 44px;
    padding: 0 16px;
    font-size: 14px;
  }

  .project-card img,
  .project-visual {
    border-radius: 22px;
  }

  .skill-marquee {
    mask-image: none;
    -webkit-mask-image: none;
  }

  .skill-chip {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .skill-icon {
    width: 24px;
    height: 24px;
  }

  .collab {
    font-size: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-spark {
    transition: none;
    transform: none !important;
  }
  .site-header::before,
  .footer::before,
  .site-header a,
  .footer a {
    transition: none;
    transform: none;
  }

  .skill-track {
    overflow-x: auto;
    width: auto;
    animation: none;
  }
}
