:root {
  --paper: #f4f3ef;
  --ink: #172329;
  --muted: #5f6b6e;
  --line: #b7bfbd;
  --accent: #d44a25;
  --deep: #183b45;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --mono: "DM Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
a { color: inherit; text-decoration: none; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 10; padding: .7rem 1rem; background: var(--ink); color: white; }

.site-header, .section-shell, .site-footer { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.site-header { min-height: 82px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.wordmark { font: 600 1.4rem/1 var(--mono); letter-spacing: -.1em; }
.wordmark span { color: var(--accent); }
nav { display: flex; gap: clamp(.8rem, 2.2vw, 2.1rem); font: 500 .78rem/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; }
nav a:hover, .text-link:hover, .card-action { color: var(--accent); }
.nav-resume { color: var(--accent); }

.hero { min-height: 690px; display: flex; flex-direction: column; justify-content: center; padding: 8rem 0 3.2rem; }
.eyebrow, .card-meta { margin: 0; font: 500 .72rem/1.3 var(--mono); letter-spacing: .055em; text-transform: uppercase; color: var(--muted); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 1020px; margin: 2rem 0 3rem; font: 600 clamp(3.4rem, 8vw, 7.9rem)/.91 var(--serif); letter-spacing: -.055em; }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(210px, .62fr); gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.hero-layout h1 { margin-top: 2rem; }
.headshot-slot { align-self: stretch; min-height: 285px; margin: 0; overflow: hidden; background: #d8d0c1; border-radius: 100% 100% 8px 8px; }
.headshot-slot img { width: 100%; height: 100%; min-height: 285px; display: block; object-fit: cover; object-position: 50% 12%; }
.hero-bottom { display: flex; gap: 2rem; justify-content: space-between; align-items: end; }
.hero-summary { max-width: 510px; margin-bottom: 0; font-size: clamp(1.05rem, 1.6vw, 1.35rem); line-height: 1.43; }
.text-link { display: inline-block; font: 500 .82rem/1.3 var(--mono); border-bottom: 1px solid currentColor; padding-bottom: .22rem; white-space: nowrap; }
.hero-rule { margin-top: auto; padding-top: 3rem; display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.hero-rule span { padding: .9rem 0; border-top: 1px solid var(--line); font: 500 .68rem/1 var(--mono); color: var(--muted); }

.work-section, .archive, .about { padding: 7.5rem 0; }
.section-intro { max-width: 695px; margin-bottom: 3.5rem; }
.section-intro h2, .about h2 { margin: 1rem 0 1rem; font: 600 clamp(2.5rem, 5vw, 4.8rem)/.96 var(--serif); letter-spacing: -.045em; }
.section-intro > p:last-child { max-width: 560px; color: var(--muted); font-size: 1.08rem; line-height: 1.55; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.2rem 1.1rem; }
.project-card--wide { grid-column: span 2; }
.card-link { display: block; }
.project-visual { position: relative; overflow: hidden; height: clamp(280px, 34vw, 425px); padding: 1.1rem; background: var(--deep); color: #f6f2e9; }
.project-card:not(.project-card--wide) .project-visual { height: clamp(255px, 29vw, 340px); }
.visual-label { position: relative; z-index: 2; font: 500 .66rem/1 var(--mono); letter-spacing: .06em; }
.project-visual::before, .project-visual::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.55); }
.visual-robot { background: linear-gradient(138deg, #0d222a, #315461); }
.visual-robot::before { width: 55%; aspect-ratio: 1; left: 24%; top: 12%; border-radius: 50%; box-shadow: 0 0 0 36px rgba(255,255,255,.08), 0 0 0 78px rgba(255,255,255,.05); }
.robot-mark { position: absolute; right: 7%; bottom: 3%; font: 600 clamp(4rem, 13vw, 11rem)/1 var(--mono); letter-spacing: -.1em; color: rgba(255,255,255,.88); }
.visual-reel { background: linear-gradient(145deg, #d6c6af, #8a5c43); color: #16252a; }
.visual-reel::before { width: 42%; aspect-ratio: 1; left: 29%; top: 19%; border: 3px solid currentColor; border-radius: 50%; box-shadow: inset 0 0 0 38px transparent; }
.visual-reel::after { width: 15%; aspect-ratio: 1; left: 42.5%; top: 32.5%; border: 3px solid currentColor; border-radius: 50%; }
.reel-mark { position: absolute; inset: 0; transform: rotate(-22deg); }
.reel-mark i { position: absolute; display: block; width: 2px; height: 41%; top: 29%; left: 50%; background: currentColor; transform-origin: 50% 100%; }
.reel-mark i:nth-child(2) { transform: rotate(120deg); }.reel-mark i:nth-child(3) { transform: rotate(240deg); }
.visual-steel { background: #ab352d; }
.steel-mark { position: absolute; inset: 10% 12%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 9%; transform: perspective(480px) rotateX(5deg) rotateY(-12deg); }
.steel-mark i { background: #efeae1; box-shadow: 18px 0 0 rgba(25,38,42,.27); }
.visual-trailer { background: #e0d6bf; color: #172329; }
.visual-trailer::before { inset: 23% 12% 27% 12%; border: 2px solid currentColor; }
.visual-trailer::after { width: 63%; height: 2px; left: 18%; top: 50%; background: currentColor; }
.trailer-mark { position: absolute; inset: 0; }
.trailer-mark i { position: absolute; width: 12%; aspect-ratio: 1; border: 2px solid currentColor; border-radius: 50%; bottom: 14%; }
.trailer-mark i:first-child { left: 26%; }.trailer-mark i:nth-child(2) { left: 63%; }.trailer-mark i:nth-child(3) { width: 1px; height: 53%; left: 50%; bottom: 24%; border: 0; background: currentColor; }
.card-meta { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0 .7rem; }
.card-meta strong { color: var(--accent); font: 500 .66rem/1.3 var(--mono); letter-spacing: .02em; text-align: right; }
.project-card h3 { max-width: 800px; margin-bottom: .55rem; font: 600 clamp(1.65rem, 2.6vw, 2.65rem)/1.03 var(--serif); letter-spacing: -.035em; }
.project-card p { max-width: 600px; color: var(--muted); line-height: 1.45; }
.card-action { display: inline-block; font: 500 .76rem/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; }

.archive { border-top: 1px solid var(--line); }
.compact { margin-bottom: 2rem; }
.archive-list { border-top: 1px solid var(--ink); }
.archive-list a { display: grid; grid-template-columns: 70px 1fr minmax(180px, .5fr); gap: 1rem; align-items: center; padding: 1.15rem .1rem; border-bottom: 1px solid var(--line); font: 600 clamp(1.2rem, 2.4vw, 2rem)/1 var(--serif); transition: padding .2s, color .2s; }
.archive-list a span:first-child, .archive-list a span:last-child { font: 400 .71rem/1.3 var(--mono); color: var(--muted); text-transform: uppercase; }
.archive-list a:hover { color: var(--accent); padding-left: .55rem; }

.about { display: grid; grid-template-columns: .95fr 1.05fr; gap: 5rem; border-top: 1px solid var(--line); }
.about-copy { padding-top: 4.1rem; }
.about-copy p { font-size: 1.13rem; line-height: 1.54; }
.about-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem; margin-top: 2.3rem; }
.button { padding: .8rem 1.05rem; background: var(--ink); color: white; font: 500 .78rem/1 var(--mono); }
.button:hover { background: var(--accent); }
.site-footer { padding: 1.4rem 0 2rem; display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); color: var(--muted); font: 400 .69rem/1.4 var(--mono); text-transform: uppercase; }
.resume-entry { display: grid; grid-template-columns: minmax(0, 1fr) 135px; gap: 1.2rem; padding: 1.15rem 0; border-top: 1px solid var(--line); }.resume-entry h3 { margin: 0 0 .35rem; font: 600 1.3rem/1.1 var(--serif); }.resume-entry p { margin: 0; }.resume-entry > span { color: var(--muted); font: 400 .72rem/1.4 var(--mono); text-align: right; }

@media (max-width: 720px) {
  .site-header, .section-shell, .site-footer { width: min(100% - 32px, 1180px); }
  .site-header { min-height: 68px; } nav { gap: 1rem; } nav a:nth-child(2) { display: none; }
  .hero { min-height: 600px; padding-top: 5rem; } h1 { font-size: clamp(3.15rem, 15vw, 4.8rem); }.hero-layout { grid-template-columns: 1fr; }.headshot-slot { width: min(290px, 70vw); min-height: 310px; margin-top: 2rem; }
  .hero-bottom, .about { display: block; }.hero-bottom .text-link { margin-top: 1.75rem; }
  .hero-rule { grid-template-columns: repeat(2, 1fr); margin-top: 3.6rem; }.hero-rule span:nth-child(odd) { padding-left: 0; }
  .work-section, .archive, .about { padding: 4.8rem 0; }.project-grid { grid-template-columns: 1fr; }.project-card--wide { grid-column: span 1; }.project-card:not(.project-card--wide) .project-visual, .project-visual { height: 290px; }
  .archive-list a { grid-template-columns: 42px 1fr; }.archive-list a span:last-child { display: none; }.about-copy { padding-top: 0; }.site-footer { display: block; }.site-footer span:last-child { display: block; margin-top: .5rem; }.resume-entry { grid-template-columns: 1fr; }.resume-entry > span { text-align: left; }
}
