:root {
  --bg: #f7f4ef;
  --bg-strong: #f0ebe3;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --line: rgba(17, 17, 17, 0.09);
  --line-strong: rgba(17, 17, 17, 0.18);
  --text: #111111;
  --muted: #5d5852;
  --shadow: 0 28px 60px rgba(17, 17, 17, 0.08);
  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shell: min(1240px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.95), rgba(255,255,255,0) 28%),
    radial-gradient(circle at 85% 10%, rgba(0,0,0,0.03), rgba(0,0,0,0) 22%),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
}
:root {
  --safe-top: max(10px, env(safe-area-inset-top, 0px));
  --safe-bottom: max(10px, env(safe-area-inset-bottom, 0px));
}
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(circle at center, black 55%, transparent 100%);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: var(--safe-top);
  z-index: 40;
  width: calc(100% - 28px);
  max-width: 1260px;
  margin: var(--safe-top) auto 0;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(17,17,17,0.06);
  border-radius: 999px;
}
.site-header.is-scrolled {
  border-color: rgba(17,17,17,0.08);
  box-shadow: 0 12px 34px rgba(17,17,17,0.09);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #111;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
  flex: 0 0 auto;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.03);
}
.brand-text { letter-spacing: 0.02em; }
.site-nav {
  display: inline-flex;
  gap: 18px;
  align-items: center;
}
.site-nav a, .nav-cta {
  color: var(--muted);
  transition: color 0.3s ease, transform 0.3s ease;
}
.site-nav a:hover, .nav-cta:hover { color: #111; transform: translateY(-1px); }
.nav-cta {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.8);
}

.hero {
  padding: 48px 0 28px;
  min-height: calc(100vh - 100px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 42px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  color: var(--muted);
}
.hero h1 {
  margin: 0;
  line-height: 0.92;
}
.hero-serif {
  display: block;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(3.8rem, 9vw, 7rem);
  font-weight: 500;
}
.hero-display {
  display: block;
  font-size: clamp(4.4rem, 13vw, 10rem);
  font-weight: 800;
  letter-spacing: -0.05em;
}
.hero-lead {
  max-width: 640px;
  margin: 24px 0 0;
  font-size: clamp(1.08rem, 1.9vw, 1.35rem);
}
.hero-sublead {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(17,17,17,0.08); }
.button-dark { background: #111; color: #fff; }
.button-light { background: rgba(255,255,255,0.82); border-color: var(--line-strong); }
.hero-facts {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.hero-facts li {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 18px;
  padding: 16px 18px;
}
.hero-facts span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-facts strong { font-size: 0.98rem; }

.hero-visual { min-height: 740px; }
.visual-stage {
  position: relative;
  min-height: 100%;
  height: 760px;
}
.portrait-card {
  position: absolute;
  left: 3%;
  top: 2%;
  width: min(46vw, 420px);
  aspect-ratio: 0.78;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: var(--shadow);
  background: var(--surface-strong);
}
.portrait-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-copy { align-self: center; }
.visual-stage-simple {
  height: 760px;
}
.portrait-card-solo {
  left: auto;
  right: 0;
  top: 1%;
  width: min(46vw, 430px);
}
[data-parallax-inner] {
  transform: translate(var(--img-x, 0px), var(--img-y, 0px)) scale(1.035);
  transition: transform 0.35s ease-out;
  will-change: transform;
}
.strip {
  position: absolute;
  overflow: hidden;
  border-radius: 22px;
  background: var(--surface-strong);
  box-shadow: 0 20px 40px rgba(17,17,17,0.08);
}
.strip img { width: 100%; height: 100%; object-fit: cover; }
.strip-a { right: 15%; top: 2%; width: 22%; height: 240px; }
.strip-b { right: 0; top: 17%; width: 28%; height: 320px; }
.strip-c { right: 25%; bottom: 12%; width: 44%; height: 210px; }
.strip-d { left: 20%; bottom: 0; width: 28%; height: 260px; }

.orbit-button {
  position: absolute;
  right: 10%;
  bottom: 14%;
  width: clamp(190px, 22vw, 250px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.76);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 50px rgba(17,17,17,0.08);
  cursor: pointer;
}
.orbit-button:hover .orbit-core { transform: scale(1.05); }
.orbit-ring {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  transform-origin: center;
}
.orbit-ring-1 { animation: spin 18s linear infinite; }
.orbit-ring-2 { animation: spinReverse 24s linear infinite; font-size: 0.72rem; opacity: 0.75; }
.orbit-core {
  position: absolute;
  inset: 20%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #111;
  color: #fff;
  transition: transform 0.35s ease;
}
.orbit-core small {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.68rem;
  opacity: 0.65;
}
.orbit-core strong {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-weight: 500;
}

.intro-band {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 34px;
  animation: marquee 25s linear infinite;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.82rem;
}
.marquee-track span::after {
  content: "•";
  padding-left: 34px;
}

section { padding: 86px 0; }
.section-head {
  margin-bottom: 32px;
  display: grid;
  gap: 10px;
}
.section-head h2 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.section-copy {
  margin: 0;
  max-width: 780px;
  color: var(--muted);
  font-size: 1.02rem;
}
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
}
.about-card, .timeline, .case-card, .project-card, .skills-panel, .contact-card, .metric-card {
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.about-card {
  border-radius: var(--radius-xl);
  padding: 32px;
}
.card-label {
  margin: 0 0 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
}
.about-quote {
  margin: 0 0 18px;
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.15;
}
.trait-row, .chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.trait-row { margin-top: 26px; }
.trait-row span, .chip-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.72);
  color: var(--muted);
}
.timeline {
  border-radius: var(--radius-xl);
  padding: 18px;
  display: grid;
  gap: 12px;
}
.timeline-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.74);
  border: 1px solid rgba(17,17,17,0.06);
}
.timeline-index {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #111;
  color: #fff;
  font-size: 0.84rem;
  letter-spacing: 0.14em;
}
.timeline-year {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.timeline-item h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}
.timeline-item p:last-child { margin: 0; }

.metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  padding-top: 10px;
}
.metric-card {
  min-height: 170px;
  border-radius: 26px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.metric-card strong {
  font-size: clamp(2.3rem, 5vw, 4rem);
  letter-spacing: -0.05em;
}
.metric-card p {
  margin: 0;
  color: var(--muted);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.case-card {
  border-radius: 30px;
  padding: 26px;
  display: grid;
  gap: 18px;
}
.case-card.full-width { grid-column: 1 / -1; }
.case-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.case-card h3 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
}
.case-bullets {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}
.case-media {
  display: grid;
  gap: 12px;
}
.case-media > * {
  min-width: 0;
}
.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.case-media img, .project-card img, .project-pair img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(17,17,17,0.06);
  background: #fff;
}
.case-media img, .project-card img, .project-pair img, .modal-gallery img, .portrait-card img {
  cursor: zoom-in;
}
.dashboard-media img:first-child { min-height: 260px; }
.ai-media img:first-child { object-fit: contain; background: rgba(255,255,255,0.92); }
.text-link {
  padding: 0;
  border: 0;
  background: none;
  justify-self: start;
  font-weight: 700;
  cursor: pointer;
}
.text-link:hover { text-decoration: underline; }
.case-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: start;
}

.skills-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 20px;
}
.project-stack {
  display: grid;
  gap: 18px;
}
.project-card {
  border-radius: 28px;
  padding: 22px;
  display: grid;
  gap: 18px;
}
.project-card img { object-fit: contain; background: #fff; }
.project-text h3 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  line-height: 1.05;
}
.project-text p:last-of-type { margin-bottom: 0; }
.project-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.compact span { min-height: 30px; padding-inline: 12px; font-size: 0.92rem; }
.skills-panel {
  border-radius: 30px;
  padding: 24px;
  display: grid;
  gap: 20px;
  align-self: start;
  position: sticky;
  top: 96px;
}
.skill-block {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.skill-block:last-of-type { padding-bottom: 0; border-bottom: 0; }
.education-card {
  border-radius: 22px;
  padding: 20px;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(17,17,17,0.06);
}
.education-card h3 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}
.education-card p { margin: 0 0 6px; }

.contact-card {
  border-radius: 34px;
  padding: 30px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 26px;
}
.contact-card h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}
.contact-meta {
  display: grid;
  gap: 12px;
  align-content: start;
}
.contact-meta a {
  font-size: 1.08rem;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}
.contact-meta p { margin: 0; color: var(--muted); }

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.18s; }
.delay-3 { transition-delay: 0.26s; }
.delay-4 { transition-delay: 0.34s; }

.float-slow { animation: bob 8s ease-in-out infinite; }
.float-mid { animation: bob 6.5s ease-in-out infinite; }
.float-fast { animation: bob 5.5s ease-in-out infinite; }

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.4);
  backdrop-filter: blur(8px);
}
.case-modal {
  position: absolute;
  inset: 4vh min(4vw, 42px);
  max-width: 1120px;
  margin: auto;
  max-height: 92vh;
  overflow: auto;
  padding: 30px;
  border-radius: 34px;
  background: rgba(248, 245, 240, 0.96);
  border: 1px solid rgba(255,255,255,0.75);
  box-shadow: 0 30px 80px rgba(0,0,0,0.18);
}
.modal-close {
  position: sticky;
  top: 0;
  margin-left: auto;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}
.case-modal h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}
.modal-summary {
  max-width: 760px;
  margin: 18px 0 28px;
  font-size: 1.1rem;
}
.two-col-text {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.two-col-text h3 { margin: 0 0 10px; }
.two-col-text ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.modal-gallery {
  display: grid;
  gap: 12px;
}
.modal-gallery img {
  border-radius: 18px;
  border: 1px solid rgba(17,17,17,0.06);
  background: #fff;
}

.case-media img,
.modal-gallery img,
.project-card img,
.project-pair img,
.portrait-card img {
  cursor: zoom-in;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes spinReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 1080px) {
  .hero,
  .story-grid,
  .skills-layout,
  .contact-card,
  .case-split { grid-template-columns: 1fr; }
  .hero-visual { min-height: auto; }
  .visual-stage { height: 700px; }
  .portrait-card { width: min(62vw, 420px); }
  .strip-a { right: 4%; }
  .strip-c { right: 12%; }
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .skills-panel { position: static; }
}

@media (max-width: 820px) {
  .site-header {
    border-radius: 26px;
    width: calc(100% - 20px);
    flex-wrap: wrap;
    justify-content: center;
  }
  .site-nav { order: 3; width: 100%; justify-content: center; flex-wrap: wrap; }
  .hero { padding-top: 34px; }
  .hero-facts,
  .works-grid,
  .metrics,
  .two-up,
  .three-up,
  .two-col-text,
  .project-pair,
  .contact-card { grid-template-columns: 1fr; }
  .visual-stage {
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .visual-stage-simple {
    display: block;
  }
  .portrait-card,
  .strip,
  .orbit-button {
    position: relative;
    width: 100%;
    height: auto;
    inset: auto;
    aspect-ratio: auto;
  }
  .portrait-card { aspect-ratio: 0.78; }
  .strip { min-height: 200px; }
  .orbit-button {
    aspect-ratio: 1;
    min-height: 220px;
    grid-column: 1 / -1;
  }
  .metric-card { min-height: 132px; }
  .case-modal {
    inset: 18px;
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
.section-support {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 1.04rem;
}

.brand-mark {
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.brand-mark-photo {
  padding: 0;
  background: #111;
  border: 1px solid rgba(255,255,255,0.22);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255,255,255,0.82);
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #111;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-header.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

img.zoomable {
  cursor: zoom-in;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
}

.image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(10px);
}

.image-lightbox-dialog {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  width: min(92vw, 1100px);
  max-height: 88vh;
  padding: 18px;
  border-radius: 28px;
  background: rgba(248, 245, 240, 0.96);
  border: 1px solid rgba(255,255,255,0.75);
  box-shadow: 0 30px 80px rgba(0,0,0,0.24);
}

.image-lightbox-dialog img {
  display: block;
  max-width: 100%;
  max-height: calc(88vh - 36px);
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 18px;
}

.image-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

@media (max-width: 900px) {
  .site-header {
    width: calc(100% - 18px);
    padding: 12px 14px;
    gap: 12px;
    border-radius: 26px;
  }

  .case-media img,
  .modal-gallery img {
    aspect-ratio: 4 / 3;
    height: auto;
    min-height: 0;
  }

  .project-card img,
  .project-pair img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    min-height: 0;
  }

  .brand-text {
    font-size: 0.98rem;
  }

  .hero {
    min-height: auto;
    padding: 30px 0 12px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-copy,
  .hero-visual {
    min-width: 0;
  }

  .hero-visual {
    min-height: auto;
  }

  .visual-stage {
    height: auto;
    min-height: 0;
  }

  .portrait-card {
    position: relative;
    left: auto;
    top: auto;
    width: min(100%, 420px);
    margin: 0 auto;
    aspect-ratio: 0.78;
    border-radius: 28px;
  }

  .hero-facts,
  .story-grid,
  .works-grid,
  .skills-layout,
  .project-pair,
  .contact-card,
  .case-split,
  .two-col-text,
  .two-up,
  .three-up {
    grid-template-columns: 1fr;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .skills-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  :root {
    --shell: min(1240px, calc(100vw - 24px));
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
  }

  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    overflow-x: hidden;
    padding-bottom: calc(var(--safe-bottom) + 8px);
  }

  section {
    padding: 56px 0;
  }

  .page-noise {
    opacity: 0.03;
  }

  .site-header {
    width: calc(100% - 16px);
    margin-top: max(8px, env(safe-area-inset-top, 0px));
    padding: 12px 14px;
    border-radius: 24px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .brand {
    gap: 10px;
    min-width: 0;
    max-width: calc(100% - 74px);
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex: 0 0 auto;
  }

  .brand-mark img {
    border-radius: 50%;
  }

  .brand-text {
    max-width: 100%;
    font-size: 1.02rem;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-toggle {
    display: inline-flex;
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
  }

  .site-nav {
    display: none;
    order: 3;
    width: 100%;
    padding: 10px 4px 4px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .site-header.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.58);
  }

  .hero {
    min-height: auto;
    padding: 18px 0 10px;
    gap: 22px;
  }

  .hero-visual {
    order: 0;
  }

  .hero-copy {
    order: 1;
  }

  .hero-serif {
    font-size: clamp(2.9rem, 16vw, 4.8rem);
  }

  .hero-display {
    font-size: clamp(3.2rem, 18vw, 5.5rem);
    line-height: 0.9;
  }

  .hero-lead {
    margin-top: 18px;
    font-size: 1rem;
  }

  .hero-sublead,
  .section-support {
    font-size: 0.98rem;
  }

  .hero-actions {
    gap: 10px;
  }

  .button {
    width: 100%;
  }

  .hero-facts {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-facts li,
  .about-card,
  .timeline,
  .case-card,
  .project-card,
  .skills-panel,
  .contact-card,
  .metric-card {
    padding: 20px;
  }

  .portrait-card {
    position: relative;
    width: min(100%, 420px);
    margin: 0 auto;
    aspect-ratio: auto;
    border-radius: 26px;
  }

  .portrait-card img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }

  .timeline-index {
    width: 42px;
    height: 42px;
    font-size: 0.78rem;
  }

  .metric-card {
    min-height: 120px;
  }

  .case-card,
  .project-card {
    gap: 14px;
  }

  .case-topline {
    gap: 6px;
  }

  .case-media,
  .modal-gallery {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .case-media::-webkit-scrollbar,
  .modal-gallery::-webkit-scrollbar {
    display: none;
  }

  .case-media img,
  .modal-gallery img {
    flex: 0 0 min(78vw, 320px);
    width: min(78vw, 320px);
    max-width: min(78vw, 320px);
    min-height: 0;
    height: auto;
    aspect-ratio: auto !important;
    object-fit: contain;
    object-position: center;
    border-radius: 16px;
    background: rgba(255,255,255,0.96);
    scroll-snap-align: start;
  }

  .project-card img,
  .project-pair img {
    min-height: 0;
    height: auto;
    aspect-ratio: auto !important;
    object-fit: contain;
  }

  .chip-row {
    gap: 8px;
  }

  .chip-row span,
  .trait-row span {
    min-height: 32px;
    padding: 0 12px;
    font-size: 0.92rem;
  }

  .text-link {
    min-height: 42px;
  }

  .contact-card h2,
  .case-modal h2,
  .section-head h2 {
    line-height: 1.02;
  }

  .case-modal {
    inset: 12px;
    padding: 18px;
    border-radius: 24px;
    max-height: calc(100vh - 24px);
  }

  .modal-summary {
    margin: 14px 0 22px;
    font-size: 1rem;
  }

  .modal-close {
    width: 42px;
    height: 42px;
  }

  .image-lightbox-dialog {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    padding: 12px;
    border-radius: 22px;
    max-height: calc(100vh - var(--safe-bottom) - 24px);
  }

  .image-lightbox-dialog img {
    max-height: calc(100vh - var(--safe-bottom) - 60px);
  }

  .image-lightbox-close {
    top: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .brand-text {
    max-width: 140px;
  }

  .section-head {
    margin-bottom: 24px;
  }

  .hero {
    gap: 20px;
  }

  .case-media img,
  .modal-gallery img {
    flex-basis: min(84vw, 320px);
    width: min(84vw, 320px);
    max-width: min(84vw, 320px);
  }
}
