:root {
  --buttermilk: #fff1b5;
  --pastel-blue: #c1dbe8;
  --burgundy: #43302e;

  --paper: #fbf5e6;
  --surface: #fffcf3;
  --ink: var(--burgundy);
  --ink-soft: #5a4643;
  --muted: #7d6b66;
  --line: #e6d9bd;
  --accent: #30577e;

  --band-muted: #c9b8b3;
  --band-text: #eadfd8;
  --band-line: #5c4744;

  --max: 1120px;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --display: "Playfair Display", var(--serif);
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 24px; }

body {
  font-family: var(--sans);
  font-variant-numeric: lining-nums;
  background: var(--burgundy);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding: 18px;
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--pastel-blue); color: var(--ink); }

.frame { background: var(--paper); min-height: calc(100vh - 36px); overflow: hidden; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 32px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -.01em; }
h4 { font-size: 1rem; font-weight: 600; }

/* Nav */
.nav {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px 32px;
}
.nav-links { display: flex; gap: 6px; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.nav-right { justify-content: flex-end; }
.nav-links a {
  padding: 8px 14px; border: 1.5px solid transparent; border-radius: 999px;
  transition: border-color .2s, background .2s, color .2s;
}
.nav-links a:hover { border-color: var(--ink); }
.nav-links a.active { background: var(--ink); border-color: var(--ink); color: var(--buttermilk); }
.logo {
  font-family: var(--display); font-weight: 800; font-size: 1.9rem;
  line-height: .85; text-align: center; letter-spacing: -.03em; color: var(--ink);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--ink); color: var(--buttermilk);
  padding: 12px 24px; border-radius: 999px; border: 2px solid var(--ink);
  cursor: pointer; transition: transform .15s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--buttermilk); }
.btn-blue { background: var(--pastel-blue); color: var(--ink); border-color: var(--pastel-blue); }
.btn-small { padding: 8px 18px; font-size: .7rem; }

/* Hero */
.hero { display: grid; grid-template-columns: 3fr 2fr; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); min-height: 560px; }

/* "Let's break the ice" deck */
.hero-side {
  background: var(--burgundy); color: var(--buttermilk); border-left: 2px solid var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 36px 28px;
}
.chat { position: relative; width: 234px; margin-bottom: 28px; text-align: left; }
.chat-avatar {
  position: absolute; left: -56px; bottom: 0; width: 44px; height: 44px;
  border-radius: 50%; object-fit: cover; border: 2px solid var(--buttermilk);
}
.chat-bubble {
  position: relative; background: var(--buttermilk); color: var(--burgundy);
  border-radius: 22px 22px 22px 6px; padding: 14px 18px 16px;
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .6);
  transform-origin: bottom left; animation: bubble-in .45s cubic-bezier(.2, .9, .3, 1.3) .2s both;
}
.chat-bubble::before {
  content: ""; position: absolute; left: -8px; bottom: 0; width: 14px; height: 14px;
  background: var(--buttermilk); clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.hero-side .chat-line { font-family: var(--serif); font-size: 1.45rem; line-height: 1.15; max-width: none; margin: 0; color: var(--burgundy); }
.hero-side h2.chat-line { font-style: italic; color: var(--accent); }
.type-wrap { position: relative; display: inline-block; }
.type-ghost { visibility: hidden; }
.type-live { position: absolute; inset: 0; }
.type-live.typing::after {
  content: ""; display: inline-block; width: 2px; height: .9em; margin-left: 2px;
  vertical-align: -.1em; background: currentColor; animation: caret .8s steps(1) infinite;
}
.typing-dots { position: absolute; left: 18px; top: 50%; display: flex; gap: 6px; transform: translateY(-50%); }
.typing-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--burgundy); animation: dot 1s ease-in-out infinite; }
.typing-dots i:nth-child(2) { animation-delay: .15s; }
.typing-dots i:nth-child(3) { animation-delay: .3s; }
.chat-bubble.typed .typing-dots { display: none; }
@keyframes bubble-in { from { opacity: 0; transform: scale(.6); } }
@keyframes caret { 50% { opacity: 0; } }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }
.hero-side h2 { font-size: clamp(1.7rem, 2.4vw, 2.2rem); max-width: 14ch; margin: 6px 0 22px; }
.deck { position: relative; width: 210px; height: 280px; margin-right: 24px; margin-bottom: 40px; cursor: pointer; outline: none; }
.deck:focus-visible { outline: 2px dashed var(--pastel-blue); outline-offset: 14px; border-radius: 18px; }
.fact-card {
  position: absolute; inset: 0;
  transform: translate(var(--x, 0), var(--y, 0)) rotate(var(--r, 0deg));
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .4s ease;
}
.deck:hover .fact-card.top:not(.flipped) { transform: translate(var(--x, 0), calc(var(--y, 0px) - 8px)) rotate(var(--r, 0deg)); }
.fact-card.tossing { transform: translate(-150%, -20px) rotate(-24deg) !important; opacity: 0; }
.fact-inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d; transform: perspective(1200px) rotateY(0);
  transition: transform .7s cubic-bezier(.3, .9, .3, 1);
}
.fact-card.flipped .fact-inner { transform: perspective(1200px) rotateY(180deg) scale(1.04); }
.fact-face {
  position: absolute; inset: 0; border: 2px solid var(--ink); border-radius: 18px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .55);
}
.fact-back {
  display: grid; place-items: center;
  background: repeating-linear-gradient(45deg, var(--buttermilk) 0 14px, var(--pastel-blue) 14px 28px);
}
.fact-back span {
  display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%;
  background: var(--burgundy); color: var(--buttermilk); border: 3px solid var(--buttermilk);
  font-family: var(--display); font-style: italic; font-weight: 600; font-size: 2.4rem;
}
.fact-front {
  transform: rotateY(180deg); color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 22px 20px;
}
.fact-blue { background: var(--pastel-blue); }
.fact-butter { background: var(--buttermilk); }
.fact-icon { width: 64px; height: 64px; }
.fact-illo { width: auto; height: 92px; }
.fact-front h3 { font-size: 1.4rem; line-height: 1.1; }
.fact-front p { font-size: .8rem; line-height: 1.45; color: var(--ink-soft); }
.deck-hint { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--band-muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero-panel {
  position: relative; display: flex; align-items: center; justify-content: center; padding: 64px 56px;
  background: repeating-linear-gradient(90deg, var(--pastel-blue) 0 26px, var(--surface) 26px 52px);
}
.hero-copy {
  position: relative; background: var(--surface); padding: 40px 40px 44px;
  border: 2px solid var(--ink); border-radius: 24px; max-width: 580px; width: 100%;
}
h1 { font-size: clamp(2.4rem, 4vw, 3.5rem); line-height: 1.02; }
.h1-sub {
  display: block; margin-top: 18px;
  font-family: var(--sans); font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.5; letter-spacing: 0; color: var(--ink-soft);
}
.h1-sub em {
  font-family: var(--display); font-style: italic; font-weight: 600;
  font-size: 1.22em; letter-spacing: -.01em; font-variant-numeric: lining-nums; color: var(--accent); white-space: nowrap;
}
.lead { font-size: .95rem; color: var(--ink-soft); margin-top: 20px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }

/* Ticker */
.ticker { overflow: hidden; border-bottom: 2px solid var(--ink); background: var(--paper); }
.ticker-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.ticker-track span {
  display: inline-flex; align-items: center; gap: 28px; padding: 12px 0 12px 28px;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
}
.ticker-track span::after { content: "✱"; color: var(--accent); font-size: .9rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Intro */
.intro { text-align: center; padding-top: 100px; }
.statement { font-family: var(--serif); font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.25; max-width: 900px; margin: 0 auto; text-wrap: balance; }
.doodle { display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -.18em; margin: 0 .08em; }
.doodle:nth-of-type(1) { transform: rotate(-10deg); }
.doodle:nth-of-type(2) { transform: rotate(8deg); }

.metrics { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 56px; }
.metric {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: var(--surface); border: 2px solid var(--ink); border-radius: 20px;
  padding: 18px 26px; min-width: 190px;
}
.metric:nth-child(odd) { background: var(--buttermilk); }
.metric:nth-child(even) { background: var(--pastel-blue); }
.metric-num { font-variant-numeric: lining-nums; font-family: var(--display); font-weight: 800; font-size: 2.2rem; line-height: 1.1; }
.metric-label { font-size: .74rem; font-weight: 500; color: var(--ink-soft); max-width: 18ch; }

.callout-wrap { position: relative; max-width: 620px; margin: 96px auto 0; }
.callout {
  border: 2px dashed var(--accent); border-radius: 22px; padding: 44px 40px;
  background: var(--paper); text-align: center;
}
.callout .label {
  display: inline-block; background: var(--pastel-blue); padding: 4px 12px;
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px;
}
.callout h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); max-width: 22ch; margin: 0 auto 22px; }
.squiggle { position: absolute; top: -10px; width: 130px; height: 170px; }
.squiggle-left { left: -150px; }
.squiggle-right { right: -150px; }

/* Work */
.work { padding-top: 120px; }
.section-title {
  text-align: center; font-family: var(--sans); font-size: .85rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 24px;
}
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter {
  font: inherit; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  background: transparent; color: var(--ink); border: 2px solid var(--ink); border-radius: 999px;
  padding: 7px 16px; cursor: pointer; transition: background .2s, color .2s;
}
.filter:hover { background: var(--buttermilk); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--buttermilk); }

/* Selected Work ver2 */
.work-panel { background: var(--buttermilk); border-radius: 40px; padding: 48px 40px; }
.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 22px;
  row-gap: 22px;
}
.project-card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  min-width: 0;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 22px;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.project-card.solo {
  display: flex; flex-direction: column; align-items: stretch;
  grid-row: auto; grid-column: 1 / -1;
  width: calc((100% - 22px) / 2); justify-self: center;
}
.project-card:hover, .project-card.reveal.visible:hover { z-index: 1; transform: translateY(-4px); box-shadow: 0 18px 30px -18px rgba(67, 48, 46, .45); }
.project-card.hidden { display: none; }

.card-band {
  position: relative;
  min-height: 214px;
  padding: 20px 22px 26px;
  background: var(--pastel-blue);
}
.project-card:nth-child(even) .card-band { background: var(--buttermilk); }
.band-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.case-num { flex: none; white-space: nowrap; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.card-band h3 {
  max-width: 12.5em;
  padding-right: 142px;
  font-size: clamp(1.85rem, 2.3vw, 2.35rem);
  line-height: 1.02;
}
.card-body {
  display: flex; flex-direction: column; gap: 12px;
  padding: 34px 22px 18px;
  background: var(--surface);
}
.card-meta {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.card-meta p:last-child { color: var(--muted); text-align: right; }
.card-foot {
  display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px 16px;
  margin-top: auto; padding-top: 14px;
  border-top: 2px solid var(--ink);
}
.impacts { display: flex; flex-wrap: wrap; gap: 8px 22px; min-width: 0; }
.impacts p { display: flex; flex-direction: column; gap: 3px; }
.impact-num {
  font-family: var(--serif); font-size: 1.7rem; line-height: .95; letter-spacing: -.02em;
  color: var(--accent);
}
.impact-label {
  font-size: .66rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-soft);
}
.case-link {
  flex: none; margin-left: auto;
  background: none; border: 0; padding: 0 0 2px;
  font: inherit; font-size: .78rem; font-weight: 600; color: var(--ink);
  cursor: pointer;
}
.case-link:hover { text-decoration: underline; }

/* Photo prints. Theme colors at rest, ordinary product colors on hover. */
.shot {
  position: absolute; right: 16px; bottom: -16px; z-index: 1;
  background: var(--surface); border: 2px solid var(--ink); border-radius: 4px;
  padding: 6px 6px 16px; margin: 0;
  box-shadow: 6px 6px 0 var(--buttermilk);
}
.project-card:nth-child(even) .shot { box-shadow: 6px 6px 0 var(--pastel-blue); }
.shot-desk { width: 124px; transform: rotate(6deg); }
.project-card:nth-child(3) .shot-desk { transform: rotate(-5deg); }
.shot-phone { width: 78px; transform: rotate(-5deg); }
.project-card:nth-child(4) .shot-phone { transform: rotate(5deg); }
.shot-vr {
  width: 132px; transform: rotate(4deg); bottom: -6px;
  background: none; border: none; box-shadow: none; padding: 0;
}
.shot-vr .ui { height: auto; aspect-ratio: 248 / 132; overflow: visible; border-radius: 0; }
.shot-house,
.project-card:nth-child(even) .shot-house {
  width: 96px; transform: rotate(3deg); bottom: -4px;
  background: none; border: none; box-shadow: none; padding: 0;
}
.shot-house .ui { height: auto; aspect-ratio: 120 / 168; overflow: visible; border-radius: 0; }
.shot .ui { position: relative; height: 78px; overflow: hidden; border-radius: 2px; }
.shot-phone .ui { height: 112px; }
.shot-vr .ui,
.shot-house .ui { height: auto; overflow: visible; border-radius: 0; }
.face { position: absolute; inset: 0; }
.face-live { opacity: 0; transition: opacity .4s ease; }
.project-card:hover .face-live,
.project-card:focus-within .face-live { opacity: 1; }

.t { background: var(--pastel-blue); height: 100%; padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.t .shot-hero { background: var(--ink); color: var(--buttermilk); border-radius: 4px; padding: 5px 6px; font-family: var(--serif); font-size: 12px; line-height: 1; }
.t .row { display: flex; gap: 4px; flex: 1; }
.t .tile { flex: 1; background: var(--surface); border: 1.5px solid var(--ink); border-radius: 4px; }
.t .bar { height: 4px; border-radius: 99px; background: var(--ink); opacity: .35; }
.t .bar.s { width: 58%; }
.t-app { background: var(--buttermilk); height: 100%; display: flex; flex-direction: column; }
.t-app header { background: var(--ink); color: var(--buttermilk); font-size: 9px; font-weight: 700; letter-spacing: .06em; padding: 5px 6px; }
.t-app .list { padding: 5px; display: flex; flex-direction: column; gap: 4px; }
.t-app .item { background: var(--surface); border: 1.5px solid var(--ink); border-radius: 5px; height: 22px; display: flex; align-items: center; gap: 4px; padding: 0 4px; }
.t-app .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pastel-blue); border: 1.5px solid var(--ink); flex: none; }
.t-app .ln { height: 3px; flex: 1; border-radius: 99px; background: var(--ink); opacity: .3; }
.t-dash .bar { height: 4px; border-radius: 99px; background: var(--ink); opacity: .35; }
.t-dash { height: 100%; display: flex; background: var(--surface); }
.t-dash aside { width: 22px; background: var(--ink); }
.t-dash main { flex: 1; padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.t-dash .chart { flex: 1; display: flex; align-items: flex-end; gap: 3px; background: var(--pastel-blue); border-radius: 4px; padding: 4px; }
.t-dash .col { flex: 1; background: var(--ink); border-radius: 2px 2px 0 0; }
.vr-theme, .vr-live { background: transparent; }
.shot-vr .ui svg,
.shot-house .ui svg { width: 100%; height: 100%; display: block; }

.n-weddi { height: 100%; background: #fffaf7; padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.n-weddi .top { display: flex; justify-content: space-between; align-items: center; }
.n-weddi .logo { font-family: var(--display); font-style: italic; font-weight: 600; color: #8c3d52; font-size: 12px; }
.n-weddi .pill { background: #8c3d52; color: #fff; font-size: 7px; border-radius: 99px; padding: 2px 5px; }
.n-weddi .shot-hero { flex: 1; border-radius: 5px; background: #f3c9d2; }
.n-weddi .row { display: flex; gap: 4px; }
.n-weddi .tile { flex: 1; height: 24px; border-radius: 4px; background: #fff; border: 1px solid #f0d5d0; }
.n-grab { height: 100%; background: #fff; display: flex; flex-direction: column; }
.n-grab header { background: #00b14f; color: #fff; font-size: 10px; font-weight: 700; padding: 6px; }
.n-grab .map { height: 36px; background: #e7f6ec; position: relative; }
.n-grab .map span { position: absolute; left: 14px; right: 14px; top: 16px; height: 3px; background: #00b14f; border-radius: 99px; }
.n-grab .map b { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #111; top: 14px; }
.n-grab .map b:first-of-type { left: 10px; }
.n-grab .map b:last-of-type { right: 10px; background: #00b14f; }
.n-grab .stop { margin: 5px; background: #fff; border: 1px solid #e6e6e6; border-radius: 6px; padding: 4px 5px; font-size: 7px; color: #222; line-height: 1.2; }
.n-grab .stop strong { display: block; font-size: 8px; }
.n-vault { height: 100%; display: flex; background: #f4f6f8; }
.n-vault aside { width: 26px; background: #14233a; }
.n-vault main { flex: 1; padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.n-vault .stat { display: flex; gap: 3px; }
.n-vault .stat div { flex: 1; background: #fff; border-radius: 3px; height: 22px; border-top: 3px solid #2f6fed; }
.n-vault .stat div:nth-child(2) { border-top-color: #1f9d55; }
.n-vault .stat div:nth-child(3) { border-top-color: #d97706; }
.n-vault .line { flex: 1; background: #fff; border-radius: 3px; position: relative; overflow: hidden; }
.n-vault .line i { position: absolute; left: 5px; right: 5px; bottom: 8px; height: 14px; border-bottom: 2px solid #2f6fed; transform: skewX(-18deg); }
.n-dell { height: 100%; background: #f3f4f6; display: flex; flex-direction: column; }
.n-dell header { background: #0b6bcb; color: #fff; font-size: 9px; font-weight: 700; padding: 6px; }
.n-dell .item { margin: 4px 5px 0; background: #fff; border-radius: 6px; padding: 4px 5px; display: flex; align-items: center; gap: 4px; }
.n-dell .sw { width: 12px; height: 12px; border-radius: 3px; background: #dbeafe; flex: none; }
.n-dell .ln { height: 3px; background: #d1d5db; border-radius: 99px; flex: 1; }
.n-dell .ok { font-size: 7px; font-weight: 700; color: #15803d; }
.card-kicker { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.card-body > p { font-size: .86rem; color: var(--ink-soft); line-height: 1.5; }
.card-meta p { font-size: .68rem; color: var(--ink); }

/* Modal */
.modal {
  width: min(780px, calc(100% - 32px)); max-height: 88vh;
  margin: auto; padding: 0; border: 2px solid var(--ink); border-radius: 28px;
  background: var(--surface); color: var(--ink);
  box-shadow: 0 40px 120px rgba(0,0,0,.35);
}
.modal.modal-wide {
  width: min(1040px, calc(100% - 40px));
  max-height: 94vh;
}
.modal::backdrop { background: rgba(67, 48, 46, .65); backdrop-filter: blur(4px); }
.modal[open] { animation: pop .25s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.modal-toolbar {
  position: sticky; top: 0; z-index: 2; height: 0;
  display: flex; justify-content: flex-end; pointer-events: none;
}
.modal-toolbar .close { pointer-events: auto; margin: 22px 22px 0 0; }
.modal-head {
  position: sticky; top: 0; z-index: 1; background: var(--buttermilk);
  display: flex; justify-content: space-between; align-items: start; gap: 24px;
  padding: 32px 76px 24px 40px; border-bottom: 2px solid var(--ink);
}
.eyebrow { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.modal-head h3 { font-size: 2.2rem; }
.modal-wide .modal-head { position: static; padding: 48px 56px 34px; }
.modal-wide .modal-head > div { width: min(760px, 100%); margin-inline: auto; }
.modal-wide .modal-head h3 { font-size: clamp(2.7rem, 3.6vw, 3.5rem); line-height: 1.02; text-wrap: balance; }
.modal-wide .modal-content > * { width: min(760px, 100%); margin-left: auto; margin-right: auto; }
.close {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  border: 2px solid var(--ink); background: var(--surface); font-size: 1.2rem; color: var(--ink);
}
.close:hover { background: var(--ink); color: var(--buttermilk); }
.modal-content { padding: 28px 40px 40px; }
.modal-wide .modal-content { padding: 40px 56px 72px; }
.modal-content > p:first-child { font-family: var(--serif); font-size: 1.35rem; line-height: 1.45; }
.modal-wide .modal-content > p:first-child { font-size: 1.6rem; line-height: 1.4; margin-bottom: 22px; }
.modal-content em { font-family: var(--serif); font-style: italic; font-size: 1.14em; color: var(--ink); }
.modal-wide .modal-content .m-text { font-size: 1.05rem; line-height: 1.7; }
.modal-wide .modal-content .m-text + .m-text { margin-top: 16px; }
.case-out { margin-top: 14px; }
.modal-wide .case-out { margin-top: 26px; }
.case-out a { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.case-out a:hover { text-decoration: underline; }
.modal-wide .case-out a {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; background: var(--ink); color: var(--buttermilk);
  border: 2px solid var(--ink); border-radius: 999px;
  font-size: .84rem; letter-spacing: .08em; text-decoration: none;
}
.modal-wide .case-out a:hover { background: var(--accent); border-color: var(--accent); color: #fff; text-decoration: none; }
.modal-content h4 { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 28px 0 8px; }
.modal-content .m-text { font-size: .96rem; color: var(--ink-soft); }
.modal-content .m-text + .m-text { margin-top: 12px; }
.modal-outcomes { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.modal-outcomes li { background: var(--paper); border: 2px solid var(--ink); border-radius: 16px; padding: 14px 18px; font-size: .86rem; color: var(--ink-soft); }
.modal-outcomes strong { display: block; font-variant-numeric: lining-nums; font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1.15; color: var(--ink); }
.case-beside { display: grid; grid-template-columns: minmax(240px, 300px) 1fr; gap: 22px; align-items: start; margin-top: 18px; }
.case-beside img { width: 100%; height: auto; display: block; border: 2px solid var(--ink); border-radius: 16px; background: var(--paper); }
.case-beside .case-points { margin-top: 0; }
.case-lede { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
.case-lede img { width: 100%; height: auto; display: block; border: 2px solid var(--ink); border-radius: 16px; background: var(--paper); }
.modal-wide .case-lede p { font-family: var(--serif); font-size: 1.6rem; line-height: 1.4; margin: 0; }
.case-section { margin-top: 52px; padding-top: 26px; border-top: 2px solid var(--line); }
.case-index { display: flex; align-items: baseline; gap: 12px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.case-index span { font-family: var(--serif); font-size: 1.85rem; font-weight: 400; letter-spacing: 0; line-height: 1; }
.modal-wide .case-section h4 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 2.4vw, 2.4rem); line-height: 1.12; letter-spacing: -.01em; text-transform: none; color: var(--ink); margin: 0 0 20px; text-wrap: balance; }
.case-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0; }
.case-split > div { border: 2px solid var(--ink); border-radius: 16px; padding: 22px 24px 24px; }
.case-split > div:first-child { background: var(--buttermilk); }
.case-split > div:last-child { background: var(--pastel-blue); }
.case-split h5 { font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.case-split ul, .case-list { margin: 14px 0 0; padding-left: 1.2em; }
.case-split li, .case-list li { font-size: 1.02rem; line-height: 1.6; color: var(--ink-soft); margin-top: 8px; }
.case-list li:first-child { margin-top: 0; }
.case-subhead { font-family: var(--serif); font-weight: 400; font-size: 1.55rem; line-height: 1.2; color: var(--ink); margin: 40px 0 14px; }
.modal-content .case-list + .m-text,
.modal-content .case-points + .m-text,
.modal-content .case-journey + .m-text { margin-top: 22px; }
.case-points { list-style: none; display: flex; flex-direction: column; margin-top: 18px; }
.case-points li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: start; padding: 18px 4px; border-top: 2px solid var(--line); }
.case-points li:last-child { border-bottom: 2px solid var(--line); }
.case-points strong { font-family: var(--serif); font-size: 2rem; font-weight: 400; line-height: 1; color: var(--accent); }
.case-points b { display: block; font-size: 1.02rem; margin-bottom: 6px; }
.case-points p, .case-phase p { font-size: 1.02rem; line-height: 1.6; color: var(--ink-soft); }
.case-phase p + p { margin-top: 12px; }
.case-phases { display: flex; flex-direction: column; gap: 16px; margin: 22px 0; }
.case-phases .case-results { margin-top: 0; }
.case-phase { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; border: 2px solid var(--ink); border-radius: 16px; padding: 22px 24px; background: var(--paper); }
.case-phase > span { font-family: var(--serif); font-size: 1.85rem; line-height: 1; color: var(--accent); padding-top: 2px; }
.case-phase b { display: block; font-size: 1.05rem; margin-bottom: 8px; }
.case-journey { list-style: none; display: flex; flex-direction: column; gap: 0; margin-top: 20px; }
.case-journey li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; position: relative; padding: 0 0 26px; background: none; border: 0; border-radius: 0; }
.case-journey li:last-child { padding-bottom: 0; }
.case-journey li::before { content: ""; position: absolute; left: 23px; top: 46px; bottom: 0; width: 2px; background: var(--ink); }
.case-journey li:last-child::before { display: none; }
.case-journey .step { width: 48px; height: 48px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: var(--buttermilk); font-family: var(--serif); font-size: 1.4rem; line-height: 1; color: var(--accent); position: relative; z-index: 1; }
.case-journey strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.4rem; line-height: 1.15; margin: 4px 0 6px; }
.case-journey li div span { font-size: 1rem; line-height: 1.5; color: var(--ink-soft); }
.case-wip { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.case-wip img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; display: block; border: 2px solid var(--ink); border-radius: 16px; background: var(--paper); }
.case-wip figcaption, .case-results figcaption { grid-column: 1 / -1; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.modal-wide .modal-content > .case-cover { width: auto; margin: -40px -56px 0; }
.modal-wide .modal-content > .case-cover.case-cover-inset { width: min(420px, 100%); margin: -8px auto 0; }
.case-cover img { width: 100%; height: auto; display: block; }
.case-cover + .case-section,
.case-cover + p { margin-top: 36px; }
.case-phase-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: stretch; margin-top: 16px; }
.case-phase-shot { position: relative; min-height: 0; overflow: hidden; border: 2px solid var(--ink); border-radius: 16px; background: var(--paper); }
.case-phase-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; display: block; }
.case-wide-photo { width: 100%; height: auto; display: block; margin-top: 12px; border: 2px solid var(--ink); border-radius: 16px; background: var(--paper); }
.case-wide-photo + .case-phase { margin-top: 12px; }
.case-results { margin-top: 22px; }
.case-masonry { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.case-masonry.case-masonry-fit { grid-template-columns: 1fr 1.423fr; align-items: end; }
.case-masonry > div { display: flex; flex-direction: column; gap: 12px; }
.case-results img { width: 100%; height: auto; display: block; border: 2px solid var(--ink); border-radius: 16px; background: var(--paper); margin: 0; }
.case-results figcaption { margin-top: 12px; }
.case-close { margin-top: 64px; padding: 32px 32px 36px; background: var(--ink); color: var(--buttermilk); border-radius: 22px; }
.case-close .case-index { color: var(--pastel-blue); }
.case-close .case-index span { color: var(--buttermilk); }
.modal-content .case-close h4 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 2.4vw, 2.45rem); line-height: 1.12; letter-spacing: -.01em; text-transform: none; color: var(--buttermilk); margin: 0 0 18px; text-wrap: balance; }
.case-close .m-text { color: var(--band-text); }
.case-close .m-text + .m-text { margin-top: 16px; }
.case-close .case-lesson { margin-top: 26px; padding-top: 20px; border-top: 2px solid var(--band-line); font-family: var(--serif); font-size: 1.45rem; line-height: 1.35; color: var(--buttermilk); }
.modal-outcomes { margin-top: 14px; }
.modal-wide .modal-outcomes { margin-top: 22px; gap: 14px; }
.modal-content .modal-outcomes + .m-text { margin-top: 32px; }
.modal-wide .modal-outcomes li { padding: 20px 22px; }
.modal-wide .modal-outcomes strong { font-family: var(--serif); font-weight: 400; font-size: 2.15rem; color: var(--accent); margin-bottom: 6px; }
.modal-outcomes.metrics-5 { grid-template-columns: repeat(6, 1fr); }
.modal-outcomes.metrics-5 li { grid-column: span 2; }
.modal-outcomes.metrics-5 li:nth-child(n + 4) { grid-column: span 3; }
.modal-callout { margin-top: 28px; padding: 22px 26px; background: var(--pastel-blue); border-radius: 18px; font-size: .96rem; }
.modal-wide .modal-callout { margin-top: 36px; padding: 28px 32px; }
.modal-callout span { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }

/* AI approach */
#ai { padding-top: 120px; }
.band { background: var(--ink); color: var(--band-text); border-radius: 40px; padding: 72px 56px; }
.band-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.band .eyebrow { color: var(--pastel-blue); }
.band h2 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); color: var(--buttermilk); }
.band h2 em { color: var(--pastel-blue); }
.section-intro { color: var(--band-muted); margin-top: 16px; }
.shifts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.shift { background: #4f3a37; border-radius: 24px; padding: 30px; display: flex; flex-direction: column; }
.shift-from { font-size: .78rem; color: var(--band-muted); text-decoration: line-through; }
.shift h3 { font-size: 2rem; color: var(--buttermilk); margin: 4px 0 12px; }
.shift > p:not(.shift-from):not(.proof) { font-size: .93rem; margin-bottom: 18px; }
.proof { margin-top: auto; font-size: .84rem; color: var(--band-muted); }
.proof span {
  display: inline-block; background: var(--pastel-blue); color: var(--ink); border-radius: 999px;
  font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 2px 10px; margin-right: 6px;
}
.loop { margin-top: 56px; }
.loop-title, .toolkit-label { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pastel-blue); }
.loop-title { margin-bottom: 16px; text-align: center; }
.loop-steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: step; }
.loop-steps li {
  counter-increment: step; text-align: center; font-size: .82rem; color: var(--band-muted);
  border: 2px solid var(--band-line); border-radius: 20px; padding: 18px 14px;
}
.loop-steps li span { display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--buttermilk); }
.loop-steps li span::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--sans); font-size: .64rem; letter-spacing: .14em; color: var(--pastel-blue); }
.toolkit { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 36px; }
.toolkit-label { margin-right: 6px; }
.pill { border: 2px solid var(--band-line); border-radius: 999px; padding: 5px 14px; font-size: .78rem; color: var(--band-text); }

/* Experience */
.experience { padding-top: 120px; }
.timeline { list-style: none; max-width: 820px; margin: 0 auto; border-top: 2px solid var(--ink); }
.timeline li { display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.t-date { font-size: .78rem; font-weight: 600; letter-spacing: .06em; color: var(--muted); font-variant-numeric: tabular-nums; }
.timeline h4 { font-family: var(--serif); font-weight: 400; font-size: 1.55rem; line-height: 1.2; }
.timeline p { color: var(--muted); font-size: .88rem; }
.edu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 820px; margin: 48px auto 0; }
.edu > div { border: 2px solid var(--ink); border-radius: 22px; padding: 22px 24px; background: var(--surface); }
.edu > div:nth-child(2) { background: var(--pastel-blue); }
.edu h4 { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; }
.edu p { color: var(--ink-soft); font-size: .84rem; margin-top: 4px; }

/* Contact */
.contact { padding-top: 120px; padding-bottom: 100px; }
.contact .callout { max-width: 720px; margin: 0 auto; }
.contact .hero-cta { justify-content: center; }

.footer {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 20px 32px; border-top: 2px solid var(--ink);
  font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .face-live { transition: none; }
  .ticker-track, .chat-bubble { animation: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 960px) {
  .projects { grid-template-columns: 1fr; }
  .project-card.solo { width: auto; grid-column: auto; }
}
@media (max-width: 1100px) {
  .hero-panel { padding: 48px 28px; }
  .hero-copy { padding: 32px 30px 36px; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-side { border-left: 0; border-top: 2px solid var(--ink); }
  .hero-panel { padding: 48px 24px; }
  .shifts, .edu { grid-template-columns: 1fr; }
  .loop-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { padding: 8px; }
  .frame { min-height: calc(100vh - 16px); }
  .container { padding-left: 18px; padding-right: 18px; }
  .intro, .work, #ai, .experience, .contact { padding-top: 72px; }
  .nav { grid-template-columns: 1fr; gap: 12px; justify-items: center; padding: 16px; }
  .nav-left, .nav-right { justify-content: center; gap: 2px; }
  .nav-links a { padding: 6px 10px; }
  .logo { order: -1; }
  .hero-copy { padding: 28px 22px 30px; }
  .work-panel, .band { border-radius: 28px; padding: 32px 18px; }
  .projects { grid-template-columns: 1fr; }
  .project-card.solo { width: auto; grid-column: auto; }
  .card-band { min-height: 176px; }
  .card-band h3 { font-size: 1.7rem; padding-right: 112px; }
  .shot-desk { width: 96px; }
  .shot-phone { width: 64px; }
  .shot-vr { width: 108px; }
  .shot-house { width: 78px; }
  .shot .ui { height: 62px; }
  .shot-phone .ui { height: 92px; }
  .shot-vr .ui,
  .shot-house .ui { height: auto; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .modal.modal-wide { width: calc(100% - 16px); max-height: 92vh; }
  .modal-toolbar .close { margin: 14px 14px 0 0; }
  .modal-head, .modal-content, .modal-wide .modal-head, .modal-wide .modal-content { padding-left: 22px; padding-right: 22px; }
  .modal-wide .modal-head h3 { font-size: 2.15rem; }
  .modal-wide .modal-content > .case-cover { margin-left: -22px; margin-right: -22px; }
  .modal-wide .case-section h4 { font-size: 1.65rem; }
  .modal-outcomes, .modal-outcomes.metrics-5, .case-split, .case-journey { grid-template-columns: 1fr; }
  .modal-outcomes.metrics-5 li,
  .modal-outcomes.metrics-5 li:nth-child(n + 4) { grid-column: auto; }
  .case-phase { grid-template-columns: 44px 1fr; gap: 12px; padding: 18px 16px; }
  .case-wip, .case-masonry, .case-masonry.case-masonry-fit, .case-phase-row, .case-lede, .case-beside { grid-template-columns: 1fr; }
  .case-beside img { width: min(280px, 100%); margin-inline: auto; }
  .case-phase-shot { aspect-ratio: 4 / 3; }
  .loop-steps { grid-template-columns: 1fr; }
}
