/* Micah Thomson portfolio — static rebuild of the Framer site.
   Fonts: Space Grotesk (headings/UI) and Inter (body). Font-face rules are in fonts.css. */

:root {
  --bg: #151515;
  --ink: #ededed;
  --muted: rgba(255, 255, 255, 0.68);
  --soft: rgba(255, 255, 255, 0.5);
  --panel: #222222;
  --line: rgba(255, 255, 255, 0.14);
  --blue: #ededed;
  --radius: 24px;
  --header-h: 89px;
  --sg: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --inter: Inter, "Helvetica Neue", Arial, sans-serif;
  --gutter: 40px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.8 var(--inter);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, figure { margin: 0; }

.wrap { width: min(1200px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- Typography ---------- */
.display, .page-title {
  font: 400 64px/1.2 var(--sg);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.eyebrow {
  font: 400 16px/1.4 var(--sg);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}
h2, .h2 { font: 400 32px/1.4 var(--sg); color: var(--ink); }
h3, .h3 { font: 400 24px/1.4 var(--sg); color: var(--ink); }
.body-copy p + p { margin-top: 20px; }
.body-copy a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  background: var(--ink); color: #fff;
  transition: transform 0.4s cubic-bezier(0.3, 0.7, 0.2, 1);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .bar { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: block; width: 250px; line-height: 0; flex: none; }
.logo svg { width: 250px; height: 15px; }
.nav { display: flex; align-items: center; gap: 32px; font: 400 18px/25.2px var(--sg); flex: none; white-space: nowrap; }
.roll { display: block; height: 25.2px; overflow: hidden; }
.roll span { display: block; height: 25.2px; transition: transform 0.35s cubic-bezier(0.6, 0.05, 0.2, 1); }
.roll:hover span, .roll:focus-visible span { transform: translateY(-100%); }
.btn-resume {
  display: inline-flex; align-items: center; gap: 8px;
  height: 41px; padding: 0 16px; border-radius: 999px;
  background: #fff; color: var(--ink);
  font: 400 18px/1 var(--sg);
  transition: background 0.25s, transform 0.25s;
}
.btn-resume svg { width: 16px; height: 16px; }
.btn-resume:hover { background: #e9e9ee; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 32px; border-radius: 64px;
  background: var(--ink); color: #fff;
  font: 400 18px/25.2px var(--sg);
  border: 0; cursor: pointer;
  transition: transform 0.3s, background 0.3s;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:hover { background: #2c2c2c; }

/* ---------- Page structure ---------- */
main { padding-top: 160px; animation: page-in 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }

.page-head .page-title, .page-head .display { margin-top: 64px; max-width: 960px; }

/* ---------- Home ---------- */
#work { scroll-margin-top: 120px; }
.home-hero { margin-bottom: 121px; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 120px; }
.card { display: block; }
.card--wide { grid-column: 1 / -1; }
.card-img { height: 498px; border-radius: var(--radius); transition: border-radius .5s cubic-bezier(.22,.61,.36,1); overflow: hidden; background: #e9e9ee; isolation: isolate; }
.card--wide .card-img { height: 698px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1); transition: transform .5s cubic-bezier(.22,.61,.36,1); will-change: transform; }
@media (hover: hover) { .card:hover .card-img, .card:focus-visible .card-img { border-radius: 36px; }
  .card:hover .card-img img, .card:focus-visible .card-img img { transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .card-img, .card-img img { transition: none; } }
.card h2 { margin-top: 23px; }
.card h3 { color: var(--soft); }

/* ---------- Work pages ---------- */
.meta { display: flex; gap: 120px; }
.meta .val { font: 400 18px/25.2px var(--sg); margin-top: 12px; color: var(--ink); }
.work-title { margin-top: 76px; max-width: 960px; }
.hero-media { margin-top: 141px; }

.frame { position: relative; overflow: hidden; border-radius: var(--radius); background: #e9e9ee; isolation: isolate; transform: translateZ(0); }
.frame img, .frame video { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.js [data-zoom] > img { transform: scale(1.21); }
.frame--full { height: 600px; }
.frame--half { height: 400px; }
.frame--tall { aspect-ratio: 9 / 16; }

.blurb { margin-top: 98px; }
.blurb h2 { max-width: 960px; }
.blurb p { max-width: 960px; margin-top: 32px; }
.blurb .btn { margin-top: 64px; }

.stack { display: grid; gap: 40px; margin-top: 150px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }

.marquee { overflow: hidden; margin-inline: calc(50% - 50vw); width: 100vw; padding-block: 0; }
.marquee-track { display: flex; gap: 40px; width: max-content; animation: marquee 48s linear infinite; padding-left: 19px; }
.marquee-track img { width: 500px; height: 340px; object-fit: cover; border-radius: var(--radius); flex: none; }
@keyframes marquee { to { transform: translateX(calc(-4 * (500px + 40px))); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

.role { margin-top: 90px; margin-bottom: 84px; }
.role h2 { max-width: 960px; }
.role .body-copy { max-width: 960px; margin-top: 32px; }

/* ---------- About ---------- */
.about-photos { display: grid; grid-template-columns: 706fr 470fr; gap: 24px; margin-top: 98px; }
.about-photos .frame { height: 400px; }
.about-block { display: grid; grid-template-columns: 240px 1fr; column-gap: 16px; margin-top: 102px; }
.about-block .body-copy { max-width: 944px; }
.about-wide { margin-top: 121px; }
.about-wide .frame { height: 650px; }
.skills { margin-top: 120px; }
.skill-group { margin-top: 24px; }
.skill-group:first-of-type { margin-top: 79px; }
.skill-group h3 { margin-bottom: 8px; }
.skill-group p { margin: 0; }
.skill-group a { text-decoration: underline; text-underline-offset: 3px; }
.about-end { height: 84px; }

/* ---------- Contact ---------- */
.contact-intro { font: 400 22px/1.4 var(--sg); max-width: 860px; margin-top: 18px; }
.form { margin-top: 133px; margin-bottom: 120px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; }
.field { display: block; }
.field--full { grid-column: 1 / -1; }
.field > span { display: block; font: 400 16px/28.8px var(--inter); color: var(--ink); margin-bottom: 10px; }
.field input, .field textarea {
  width: 100%; height: 40px; border: 0; border-radius: 10px; padding: 0 12px;
  background: #f0f0f3; color: var(--ink);
  font: 400 16px/16px var(--inter);
  transition: box-shadow 0.2s, background 0.2s;
}
.field textarea { height: 160px; padding: 12px; line-height: 1.5; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(0, 0, 0, 0.35); }
.field input:focus, .field textarea:focus { outline: 0; background: #fff; box-shadow: 0 0 0 2px var(--ink); }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.form-note { font: 400 14px/1.4 var(--inter); color: var(--soft); }
.form .btn { justify-content: center; width: 240px; height: 40px; padding: 0; font-size: 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue); color: #fff; min-height: 615px; padding: 80px 0; display: flex; flex-direction: column; justify-content: space-between; }
.f-grid { display: grid; grid-template-columns: 630px 360px 1fr; }
.f-title { font: 400 64px/1.2 var(--sg); letter-spacing: -0.02em; color: #fff; max-width: 550px; }
.site-footer .btn { margin-top: 63px; background: var(--ink); }
.f-links { display: flex; flex-direction: column; gap: 16px; padding-top: 14px; font: 400 18px/22px var(--sg); }
.f-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.f-social { display: flex; gap: 16px; padding-top: 14px; height: 49px; }
.f-social a { display: block; width: 32px; height: 32px; }
.f-social svg { width: 32px; height: 32px; }
.copy { font: 400 16px/28.8px var(--inter); color: #fff; opacity: 0.6; }

/* ---------- Motion ---------- */
.js .rv { opacity: 0; transform: translateX(30px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .rv.in { opacity: 1; transform: none; }
.js .rf { opacity: 0.12; transition: opacity 1.1s ease; }
.js .rf.in { opacity: 1; }
.w { display: inline-block; }
.js .w { opacity: 0; transition: opacity 0.6s ease; }
.js .w.on { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  main { animation: none; }
  .js .rv, .js .rf, .js .w { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .roll span { transition: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1199px) {
  .f-grid { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .f-title { grid-column: 1 / -1; }
  .site-footer .btn { margin-top: 40px; }
  .f-links { padding-top: 0; }
  .f-social { padding-top: 0; justify-content: flex-start; }
}

/* ---------- Phone ---------- */
@media (max-width: 809px) {
  :root { --gutter: 20px; --header-h: 72px; }
  .display, .page-title { font-size: 40px; }
  h2, .h2 { font-size: 26px; }
  h3, .h3 { font-size: 20px; }
  main { padding-top: 120px; }
  .page-head .page-title, .page-head .display { margin-top: 40px; }
  .logo, .logo svg { width: 120px; }
  .logo svg { height: auto; }
  .nav { gap: 14px; font-size: 15px; }
  .nav .roll { height: 22px; }
  .nav .roll span { height: 22px; line-height: 22px; }
  .btn-resume { width: 36px; height: 36px; padding: 0; justify-content: center; }
  .btn-resume .resume-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .btn-resume svg { width: 18px; height: 18px; }
  .home-hero { margin-bottom: 64px; }
  .cards { grid-template-columns: 1fr; gap: 32px; margin-bottom: 80px; }
  .card-img, .card--wide .card-img { height: auto; aspect-ratio: 580 / 498; }
  .meta { gap: 48px; }
  .work-title { margin-top: 48px; }
  .hero-media { margin-top: 56px; }
  .blurb { margin-top: 64px; }
  .blurb .btn { margin-top: 40px; }
  .stack { margin-top: 80px; gap: 20px; }
  .frame--full { height: auto; aspect-ratio: 2 / 1; }
  .frame--half { height: auto; aspect-ratio: 580 / 400; }
  .pair { grid-template-columns: 1fr; gap: 20px; }
  .videos { grid-template-columns: 1fr; gap: 20px; }
  .videos .frame--tall { max-width: 320px; margin-inline: auto; width: 100%; }
  .marquee-track img { width: 300px; height: 204px; }
  @keyframes marquee { to { transform: translateX(calc(-4 * (300px + 40px))); } }
  .role { margin-top: 64px; }
  .about-photos { grid-template-columns: 1fr; margin-top: 56px; }
  .about-photos .frame { height: auto; aspect-ratio: 706 / 400; }
  .about-block { grid-template-columns: 1fr; row-gap: 16px; margin-top: 64px; }
  .about-wide { margin-top: 64px; }
  .about-wide .frame { height: auto; aspect-ratio: 1200 / 650; }
  .skills { margin-top: 72px; }
  .skill-group:first-of-type { margin-top: 40px; }
  .contact-intro { font-size: 18px; }
  .form { grid-template-columns: 1fr; margin-top: 64px; }
  .form-actions { justify-content: stretch; }
  .form .btn { width: 100%; }
  .site-footer { min-height: 0; padding: 56px 0 40px; gap: 64px; }
  .f-grid { grid-template-columns: 1fr; }
  .f-title { font-size: 40px; }
}

@media (max-width: 380px) { .nav { gap: 10px; font-size: 14px; } .logo, .logo svg { width: 108px; } }


/* =====================================================================
   v2 — dark theme, type-led home, larger imagery, quiet navigation
   ===================================================================== */
:root { --gutter: 40px; --header-h: 84px; }
.wrap { width: min(1480px, calc(100% - var(--gutter) * 2)); }
::selection { background: #ededed; color: #151515; }

/* Header: no bar, floats over content, blends with whatever is beneath */
.site-header { background: transparent; color: #fff; mix-blend-mode: difference; }
.site-header .bar { opacity: 0.72; transition: opacity 0.3s; }
.site-header:hover .bar, .site-header:focus-within .bar { opacity: 1; }
.logo, .logo svg { width: 150px; }
.logo svg { height: auto; }
.nav { font-size: 15px; gap: 26px; }
.btn-resume {
  background: transparent; color: #fff; height: 34px; padding: 0 14px;
  border: 1px solid currentColor; font-size: 15px;
}
.btn-resume:hover { background: #fff; color: #000; }

/* Buttons flip to light on dark */
.btn { background: #ededed; color: #151515; }
.btn:hover { background: #fff; }
.site-footer .btn { background: #ededed; color: #151515; }

/* Home: the name is the hero */
main { padding-top: 130px; }
.home-hero { margin-bottom: 140px; }
.home-hero .eyebrow { margin-bottom: 28px; }
.hero-name {
  font: 600 clamp(72px, 19.6vw, 330px)/0.84 var(--sg);
  letter-spacing: -0.045em; text-transform: uppercase; color: #f4f4f4;
  margin-left: -0.05em;
}
.home-hero { container-type: inline-size; }
@supports (font-size: 1cqw) { .hero-name { font-size: 23cqw; } }
.hero-name .w { display: block; width: fit-content; }
.hero-tag { font: 400 clamp(24px, 3vw, 44px)/1.25 var(--sg); letter-spacing: -0.02em; max-width: 1040px; margin-top: 64px; color: var(--muted); }

/* Home cards: one large image per employer */
.cards { grid-template-columns: 1fr; gap: 110px; margin-bottom: 140px; }
.card-img, .card--wide .card-img { height: auto; aspect-ratio: 16 / 10; background: var(--panel); }
.card-text { display: flex; justify-content: space-between; align-items: baseline; gap: 32px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.card h2 { margin-top: 0; font-size: clamp(32px, 4.4vw, 64px); line-height: 1.05; letter-spacing: -0.03em; }
.card h3 { margin-top: 0; font-size: clamp(16px, 1.5vw, 22px); text-align: right; }

/* Work pages: bigger type, bigger media */
.page-title, .display { font-size: clamp(40px, 6.4vw, 104px); line-height: 1.02; letter-spacing: -0.035em; }
.work-title { margin-top: 64px; max-width: 1200px; }
.page-head .page-title, .page-head .display { max-width: 1200px; }
.hero-media { margin-top: 110px; }
.blurb h2, .role h2 { font-size: clamp(26px, 2.6vw, 40px); line-height: 1.25; letter-spacing: -0.02em; max-width: 1100px; }
.blurb p, .role .body-copy { max-width: 900px; font-size: 18px; color: var(--muted); }
.frame { background: var(--panel); }
.frame--full, .frame--half { height: auto; }
.frame--full { aspect-ratio: 16 / 10; }
.frame--half { aspect-ratio: 4 / 3; }
.stack { gap: 40px; margin-top: 130px; }
.marquee-track img { width: 680px; height: 460px; background: var(--panel); }
@keyframes marquee { to { transform: translateX(calc(-4 * (680px + 40px))); } }
.about-photos .frame { height: auto; aspect-ratio: 706 / 470; }
.about-wide .frame { height: auto; aspect-ratio: 16 / 9; }
.meta .val { color: var(--ink); }

/* Forms on dark */
.field input, .field textarea { background: #242424; color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, 0.35); }
.field input:focus, .field textarea:focus { background: #2c2c2c; box-shadow: 0 0 0 2px #ededed; }

/* Footer: monochrome */
.site-footer { background: #0d0d0d; color: #ededed; border-top: 1px solid var(--line); }
.f-title { color: #f4f4f4; font-size: clamp(40px, 5.4vw, 84px); letter-spacing: -0.035em; max-width: 760px; }
.f-grid { grid-template-columns: 1.4fr 0.6fr 0.4fr; }
.copy { color: #ededed; opacity: 0.5; }

@media (max-width: 1199px) {
  .f-grid { grid-template-columns: 1fr 1fr; }
  .cards { gap: 80px; }
}
@media (max-width: 809px) {
  :root { --gutter: 20px; --header-h: 64px; }
  main { padding-top: 104px; }
  .logo, .logo svg { width: 112px; }
  .nav { gap: 14px; font-size: 14px; }
  .btn-resume { width: 34px; height: 34px; padding: 0; }
  .home-hero { margin-bottom: 72px; }
  .hero-tag { margin-top: 40px; }
  .cards { gap: 56px; margin-bottom: 80px; }
  .card-img, .card--wide .card-img { aspect-ratio: 4 / 3; }
  .card-text { flex-direction: column; gap: 4px; }
  .card h3 { text-align: left; }
  .frame--full { aspect-ratio: 4 / 3; }
  .frame--half { aspect-ratio: 4 / 3; }
  .marquee-track img { width: 320px; height: 220px; }
  @keyframes marquee { to { transform: translateX(calc(-4 * (320px + 40px))); } }
  .about-photos .frame { aspect-ratio: 4 / 3; }
  .about-wide .frame { aspect-ratio: 4 / 3; }
  .f-grid { grid-template-columns: 1fr; }
}
@media (max-width: 380px) { .logo, .logo svg { width: 100px; } }

/* Home: the big name travels into the header logo spot as you scroll */
.js .home .logo { opacity: 0; }
.js .home .hero-name { position: relative; z-index: 60; mix-blend-mode: difference; pointer-events: none; }
.js.logo-on .home .logo { opacity: 1; }

/* Live-text logo (same font, weight and tracking as the hero name) */
.logo { width: auto; display: flex; gap: 0.3em; font: 600 20px/0.84 var(--sg); letter-spacing: -0.045em; text-transform: uppercase; color: #f4f4f4; white-space: nowrap; }
.logo .lw { display: block; }
.js .home .hero-name .w { transform-origin: 0 0; will-change: transform; }
@media (max-width: 809px) { .logo { width: auto; font-size: 16px; } }
@media (max-width: 380px) { .logo { width: auto; font-size: 15px; } }

/* ---- Home projects: full-bleed, name over the image, Indeed full row then two per row ---- */
.cards--bleed { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; width: 100%; }
.cards--bleed .card { position: relative; display: block; }
.cards--bleed .card--wide { grid-column: 1 / -1; }
.cards--bleed .card-img, .cards--bleed .card--wide .card-img { border-radius: 0; height: auto; aspect-ratio: 4 / 3; background: var(--panel); }
.cards--bleed .card--wide .card-img { aspect-ratio: 16 / 9; }
.cards--bleed .card:hover .card-img, .cards--bleed .card:focus-visible .card-img { border-radius: 0; }
.cards--bleed .card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(0,0,0,0.550) 0%, rgba(0,0,0,0.542) 3%, rgba(0,0,0,0.520) 6%, rgba(0,0,0,0.485) 9%, rgba(0,0,0,0.441) 12%, rgba(0,0,0,0.390) 15%, rgba(0,0,0,0.334) 18%, rgba(0,0,0,0.275) 21%, rgba(0,0,0,0.216) 24%, rgba(0,0,0,0.160) 27%, rgba(0,0,0,0.109) 30%, rgba(0,0,0,0.065) 33%, rgba(0,0,0,0.030) 36%, rgba(0,0,0,0.008) 39%, rgba(0,0,0,0.000) 42%); }
.cards--bleed .card-text { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: 32px; margin: 0; padding: 0; border: 0; display: block; }
.cards--bleed .card h2 { font-size: clamp(34px, 4.6vw, 76px); line-height: 1; letter-spacing: -0.04em; color: #fff; margin: 0; }
.cards--bleed .card--wide h2 { font-size: clamp(44px, 8vw, 136px); letter-spacing: -0.05em; }
.home-hero { margin-bottom: 120px; }
.cards--bleed + .site-footer, main > .cards--bleed { margin-bottom: 0; }
@media (max-width: 809px) {
  .cards--bleed { grid-template-columns: 1fr; }
  .cards--bleed .card-img, .cards--bleed .card--wide .card-img { aspect-ratio: 4 / 3; }
  .cards--bleed .card-text { bottom: 20px; }
  .cards--bleed .card h2, .cards--bleed .card--wide h2 { font-size: clamp(36px, 11vw, 56px); }
}

/* hero copy that slides out to the left on scroll */
.hero-slide { will-change: transform, opacity; animation: hero-in 0.9s 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
@keyframes hero-in { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .hero-slide { animation: none; } }

.cards--bleed { scroll-margin-top: 0; }
#work.cards--bleed { scroll-margin-top: 0; }

/* Footer: same colour as the page, horizontal nav, legal text */
.site-footer { background: var(--bg); color: var(--ink); min-height: 0; display: block; padding: 56px 0 48px; border-top: 1px solid var(--line); }
.f-inner { display: flex; flex-direction: column; gap: 56px; }
.f-links { display: flex; flex-direction: row; flex-wrap: wrap; gap: 12px 40px; padding: 0; font: 400 18px/1.2 var(--sg); }
.f-links a { color: var(--ink); }
.f-links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.f-legal { display: grid; gap: 6px; max-width: 760px; }
.f-legal .copy { margin: 0; font: 400 14px/1.6 var(--inter); color: var(--ink); opacity: 0.55; }
@media (max-width: 809px) { .site-footer { padding: 40px 0 36px; } .f-inner { gap: 36px; } .f-links { gap: 10px 28px; font-size: 16px; } }

/* ---- Project pages: full-bleed hero with the company name over the image ---- */
main.work-main { padding-top: 0; }
.work-hero { position: relative; height: min(94vh, 64vw); min-height: 520px; overflow: hidden; background: var(--panel); }
.work-hero-img, .work-hero-img img { width: 100%; height: 100%; }
.work-hero-img img { object-fit: cover; }
.work-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(0,0,0,0.600) 0%, rgba(0,0,0,0.591) 3.2%, rgba(0,0,0,0.567) 6.4%, rgba(0,0,0,0.529) 9.6%, rgba(0,0,0,0.481) 12.9%, rgba(0,0,0,0.425) 16.1%, rgba(0,0,0,0.364) 19.3%, rgba(0,0,0,0.300) 22.5%, rgba(0,0,0,0.236) 25.7%, rgba(0,0,0,0.175) 28.9%, rgba(0,0,0,0.119) 32.1%, rgba(0,0,0,0.071) 35.4%, rgba(0,0,0,0.033) 38.6%, rgba(0,0,0,0.009) 41.8%, rgba(0,0,0,0.000) 45%), linear-gradient(to bottom, rgba(0,0,0,0.350) 0%, rgba(0,0,0,0.345) 1.6%, rgba(0,0,0,0.331) 3.1%, rgba(0,0,0,0.309) 4.7%, rgba(0,0,0,0.281) 6.3%, rgba(0,0,0,0.248) 7.9%, rgba(0,0,0,0.212) 9.4%, rgba(0,0,0,0.175) 11%, rgba(0,0,0,0.138) 12.6%, rgba(0,0,0,0.102) 14.1%, rgba(0,0,0,0.069) 15.7%, rgba(0,0,0,0.041) 17.3%, rgba(0,0,0,0.019) 18.9%, rgba(0,0,0,0.005) 20.4%, rgba(0,0,0,0.000) 22%); }
.work-hero-text { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: 40px; }
.work-name { font: 400 clamp(48px, 9vw, 150px)/0.98 var(--sg); letter-spacing: -0.05em; color: #fff; margin: 0; max-width: none; }
.work-main .meta { margin-top: 56px; flex-wrap: wrap; gap: 24px 96px; }
.work-main .blurb { margin-top: 110px; }

/* flush, edge-to-edge media */
.stack--bleed { width: 100%; gap: 0; margin-top: 120px; display: grid; }
.stack--bleed .frame, .stack--bleed .marquee-track img { border-radius: 0; }
.stack--bleed .pair, .stack--bleed .videos { gap: 0; }
.marquee-track { gap: 0; padding-left: 0; }
@keyframes marquee { to { transform: translateX(calc(-4 * 680px)); } }
.work-main .role { margin-top: 140px; margin-bottom: 140px; }
.next-project { margin-top: 0; }
.next-project .card-text .eyebrow { color: rgba(255, 255, 255, 0.8); margin: 0 0 14px; }
@media (max-width: 809px) {
  .work-hero { height: 72vh; min-height: 440px; }
  .work-hero-text { bottom: 24px; }
  .work-main .meta { margin-top: 36px; gap: 20px 40px; }
  .work-main .blurb { margin-top: 64px; }
  .stack--bleed { margin-top: 64px; }
  .stack--bleed .pair, .stack--bleed .videos { grid-template-columns: 1fr; }
  .stack--bleed .videos .frame--tall { max-width: none; }
  @keyframes marquee { to { transform: translateX(calc(-4 * 320px)); } }
  .work-main .role { margin-top: 72px; margin-bottom: 72px; }
}

/* ---- Round 3 tweaks ---- */
/* footer legal on one line (desktop) */
.f-legal { max-width: none; }
@media (min-width: 810px) { .f-legal .copy { white-space: nowrap; } }

/* project hero: dimmed and faded into the page background */
.work-hero { background: var(--bg); }
.work-hero-img { opacity: 0.8; -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1.000) 52%, rgba(0,0,0,0.985) 55.4%, rgba(0,0,0,0.945) 58.9%, rgba(0,0,0,0.882) 62.3%, rgba(0,0,0,0.802) 65.7%, rgba(0,0,0,0.708) 69.1%, rgba(0,0,0,0.606) 72.6%, rgba(0,0,0,0.500) 76%, rgba(0,0,0,0.394) 79.4%, rgba(0,0,0,0.292) 82.9%, rgba(0,0,0,0.198) 86.3%, rgba(0,0,0,0.118) 89.7%, rgba(0,0,0,0.055) 93.1%, rgba(0,0,0,0.015) 96.6%, rgba(0,0,0,0.000) 100%); mask-image: linear-gradient(to bottom, rgba(0,0,0,1.000) 52%, rgba(0,0,0,0.985) 55.4%, rgba(0,0,0,0.945) 58.9%, rgba(0,0,0,0.882) 62.3%, rgba(0,0,0,0.802) 65.7%, rgba(0,0,0,0.708) 69.1%, rgba(0,0,0,0.606) 72.6%, rgba(0,0,0,0.500) 76%, rgba(0,0,0,0.394) 79.4%, rgba(0,0,0,0.292) 82.9%, rgba(0,0,0,0.198) 86.3%, rgba(0,0,0,0.118) 89.7%, rgba(0,0,0,0.055) 93.1%, rgba(0,0,0,0.015) 96.6%, rgba(0,0,0,0.000) 100%); }
.work-hero::after { background: linear-gradient(to bottom, rgba(0,0,0,0.350) 0%, rgba(0,0,0,0.345) 1.6%, rgba(0,0,0,0.331) 3.1%, rgba(0,0,0,0.309) 4.7%, rgba(0,0,0,0.281) 6.3%, rgba(0,0,0,0.248) 7.9%, rgba(0,0,0,0.212) 9.4%, rgba(0,0,0,0.175) 11%, rgba(0,0,0,0.138) 12.6%, rgba(0,0,0,0.102) 14.1%, rgba(0,0,0,0.069) 15.7%, rgba(0,0,0,0.041) 17.3%, rgba(0,0,0,0.019) 18.9%, rgba(0,0,0,0.005) 20.4%, rgba(0,0,0,0.000) 22%); }

/* breathing room between the large images */
:root { --img-gap: 20px; }
.stack--bleed { padding-inline: var(--img-gap); gap: var(--img-gap); }
.stack--bleed .pair, .stack--bleed .videos { gap: var(--img-gap); }
.stack--bleed .marquee { margin-inline: calc(50% - 50vw); }
.marquee-track { gap: var(--img-gap); padding-left: var(--img-gap); }
@keyframes marquee { to { transform: translateX(calc(-4 * (680px + var(--img-gap)))); } }
@media (max-width: 809px) {
  :root { --img-gap: 12px; }
  @keyframes marquee { to { transform: translateX(calc(-4 * (320px + var(--img-gap)))); } }
}

/* Next project: contained card so it doesn't read as part of the current project */
.next-wrap { margin-top: 0; padding-top: 72px; padding-bottom: 96px; border-top: 1px solid var(--line); width: min(1480px, calc(100% - var(--gutter) * 2)); }
.next-label { margin-bottom: 24px; }
.next-card { display: block; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--panel); isolation: isolate; }
.next-img { aspect-ratio: 21 / 9; overflow: hidden; }
.next-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1); transition: transform .5s cubic-bezier(.22,.61,.36,1); }
.next-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.550) 0%, rgba(0,0,0,0.542) 3.9%, rgba(0,0,0,0.520) 7.9%, rgba(0,0,0,0.485) 11.8%, rgba(0,0,0,0.441) 15.7%, rgba(0,0,0,0.390) 19.6%, rgba(0,0,0,0.334) 23.6%, rgba(0,0,0,0.275) 27.5%, rgba(0,0,0,0.216) 31.4%, rgba(0,0,0,0.160) 35.4%, rgba(0,0,0,0.109) 39.3%, rgba(0,0,0,0.065) 43.2%, rgba(0,0,0,0.030) 47.1%, rgba(0,0,0,0.008) 51.1%, rgba(0,0,0,0.000) 55%); pointer-events: none; }
.next-text { position: absolute; z-index: 2; left: 32px; right: 32px; bottom: 28px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.next-text h2 { font: 400 clamp(32px, 4.6vw, 72px)/1 var(--sg); letter-spacing: -0.04em; color: #fff; margin: 0; }
.next-arrow svg { width: clamp(24px, 3vw, 44px); height: auto; color: #fff; }
@media (hover: hover) { .next-card:hover .next-img img { transform: scale(1.06); } }
@media (max-width: 809px) { .next-wrap { padding-top: 48px; padding-bottom: 56px; } .next-img { aspect-ratio: 4 / 3; } .next-text { left: 20px; right: 20px; bottom: 20px; } }

/* ---- Round 4 ---- */
/* Home: same breathing room around the project images */
.cards--bleed { padding-inline: var(--img-gap); gap: var(--img-gap); width: 100%; }
.home .cards--bleed { padding-bottom: var(--img-gap); }
.cards--bleed .card-text { left: 32px; right: 32px; }
@media (max-width: 809px) { .cards--bleed .card-text { left: 20px; right: 20px; } }

/* Next project: full-width slice, one fifth of the old height */
.next-project { padding: 0; gap: 0; display: block; margin-top: 0; }
.next-project .card { display: block; }
.next-project .card-img, .next-project .card--wide .card-img { aspect-ratio: 80 / 9; min-height: 150px; }
.next-project .card-img img { object-position: center 40%; }
.next-project .card-text { top: 50%; bottom: auto; transform: translateY(-50%); display: flex; align-items: center; justify-content: space-between; gap: 20px; left: var(--gutter); right: var(--gutter); }
.next-project .card h2, .next-project .card--wide h2 { font-size: clamp(30px, 4vw, 60px); }
.next-project .card-text .eyebrow { margin: 0 0 8px; font-size: 13px; }
.next-project::after { content: none; }
@media (max-width: 809px) { .next-project .card-img, .next-project .card--wide .card-img { aspect-ratio: auto; min-height: 130px; height: 130px; } .next-project .card h2, .next-project .card--wide h2 { font-size: 30px; } }
@media (max-width: 809px) { .next-project .card-text { flex-direction: row; align-items: center; justify-content: space-between; left: 20px; right: 20px; } }
.next-project .card::after { background: linear-gradient(to right, rgba(0,0,0,0.720) 0%, rgba(0,0,0,0.708) 7.1%, rgba(0,0,0,0.675) 14.3%, rgba(0,0,0,0.625) 21.4%, rgba(0,0,0,0.564) 28.6%, rgba(0,0,0,0.497) 35.7%, rgba(0,0,0,0.427) 42.9%, rgba(0,0,0,0.360) 50%, rgba(0,0,0,0.301) 57.1%, rgba(0,0,0,0.254) 64.3%, rgba(0,0,0,0.214) 71.4%, rgba(0,0,0,0.173) 78.6%, rgba(0,0,0,0.136) 85.7%, rgba(0,0,0,0.110) 92.9%, rgba(0,0,0,0.100) 100%); }

/* Round 5: gaps only BETWEEN images; outer edges stay flush with the screen */
.stack--bleed { padding-inline: 0; }
.cards--bleed { padding-inline: 0; }
.home .cards--bleed { padding-bottom: 0; }
.marquee-track { padding-left: 0; }

/* ---- Round 6: readable nav over images, quieter footer ---- */
.site-header { mix-blend-mode: normal; }
.site-header .bar { opacity: 1; }
.site-header::before { content: ""; position: absolute; z-index: -1; inset: 0 0 auto 0; height: calc(var(--header-h) + 70px); pointer-events: none;
  background: linear-gradient(to bottom, rgba(21,21,21,0.880) 0%, rgba(21,21,21,0.869) 7.1%, rgba(21,21,21,0.838) 14.3%, rgba(21,21,21,0.792) 21.4%, rgba(21,21,21,0.737) 28.6%, rgba(21,21,21,0.677) 35.7%, rgba(21,21,21,0.617) 42.9%, rgba(21,21,21,0.554) 50%, rgba(21,21,21,0.467) 57.1%, rgba(21,21,21,0.367) 64.3%, rgba(21,21,21,0.262) 71.4%, rgba(21,21,21,0.162) 78.6%, rgba(21,21,21,0.079) 85.7%, rgba(21,21,21,0.021) 92.9%, rgba(21,21,21,0.000) 100%); }
.site-header.is-hidden { transform: translateY(calc(-100% - 80px)); }
.site-header:focus-within { transform: none; }
.js .home .hero-name { mix-blend-mode: normal; }
.site-footer { border-top: 0; padding: 40px 0 44px; }
.f-inner { gap: 0; }
@media (max-width: 809px) { .site-footer { padding: 28px 0 32px; } }

/* ---- Round 7: footer is a fade over the bottom of the page, copyright sits on it ---- */
.site-footer { position: relative; z-index: 5; margin-top: -120px; padding: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(21,21,21,0.000) 0%, rgba(21,21,21,0.037) 7.1%, rgba(21,21,21,0.133) 14.3%, rgba(21,21,21,0.262) 21.4%, rgba(21,21,21,0.399) 28.6%, rgba(21,21,21,0.519) 35.7%, rgba(21,21,21,0.612) 42.9%, rgba(21,21,21,0.706) 50%, rgba(21,21,21,0.794) 57.1%, rgba(21,21,21,0.868) 64.3%, rgba(21,21,21,0.917) 71.4%, rgba(21,21,21,0.948) 78.6%, rgba(21,21,21,0.975) 85.7%, rgba(21,21,21,0.993) 92.9%, rgba(21,21,21,1.000) 100%); }
.site-footer .f-inner { padding-top: 84px; padding-bottom: 36px; }
.site-footer .f-legal .copy { opacity: 0.72; pointer-events: auto; }
.about-end { height: 170px; }
.form { margin-bottom: 190px; }
@media (max-width: 809px) {
  .site-footer { margin-top: -96px; }
  .site-footer .f-inner { padding-top: 64px; padding-bottom: 28px; }
  .about-end { height: 130px; }
  .form { margin-bottom: 150px; }
}

/* Round 7b: fade only the bottom 100px of the last images; copyright sits below on plain background */
.site-footer { z-index: 1; margin-top: -100px;
  background: linear-gradient(to bottom, rgba(21,21,21,0.000) 0px, rgba(21,21,21,0.032) 7.1px, rgba(21,21,21,0.113) 14.3px, rgba(21,21,21,0.223) 21.4px, rgba(21,21,21,0.342) 28.6px, rgba(21,21,21,0.449) 35.7px, rgba(21,21,21,0.530) 42.9px, rgba(21,21,21,0.607) 50px, rgba(21,21,21,0.688) 57.1px, rgba(21,21,21,0.767) 64.3px, rgba(21,21,21,0.840) 71.4px, rgba(21,21,21,0.904) 78.6px, rgba(21,21,21,0.955) 85.7px, rgba(21,21,21,0.988) 92.9px, rgba(21,21,21,1.000) 100px); }
.site-footer .f-inner { padding-top: 128px; padding-bottom: 44px; }
.about-end { height: 90px; }
.form { margin-bottom: 120px; }
@media (max-width: 809px) {
  .site-footer { margin-top: -80px; background: linear-gradient(to bottom, rgba(21,21,21,0.000) 0px, rgba(21,21,21,0.032) 5.7px, rgba(21,21,21,0.113) 11.4px, rgba(21,21,21,0.223) 17.1px, rgba(21,21,21,0.342) 22.9px, rgba(21,21,21,0.449) 28.6px, rgba(21,21,21,0.530) 34.3px, rgba(21,21,21,0.607) 40px, rgba(21,21,21,0.688) 45.7px, rgba(21,21,21,0.767) 51.4px, rgba(21,21,21,0.840) 57.1px, rgba(21,21,21,0.904) 62.9px, rgba(21,21,21,0.955) 68.6px, rgba(21,21,21,0.988) 74.3px, rgba(21,21,21,1.000) 80px); }
  .site-footer .f-inner { padding-top: 104px; padding-bottom: 32px; }
  .about-end { height: 70px; }
  .form { margin-bottom: 90px; }
}

/* Round 7c: the fade lives inside <main> so project names stay crisp above it */
.site-footer { margin-top: 0; z-index: auto; pointer-events: auto; background: var(--bg); }
.site-footer .f-inner { padding-top: 28px; padding-bottom: 44px; }
main { position: relative; }
main::after { content: ""; position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 100px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(21,21,21,0.000) 0px, rgba(21,21,21,0.032) 7.1px, rgba(21,21,21,0.113) 14.3px, rgba(21,21,21,0.223) 21.4px, rgba(21,21,21,0.342) 28.6px, rgba(21,21,21,0.449) 35.7px, rgba(21,21,21,0.530) 42.9px, rgba(21,21,21,0.607) 50px, rgba(21,21,21,0.688) 57.1px, rgba(21,21,21,0.767) 64.3px, rgba(21,21,21,0.840) 71.4px, rgba(21,21,21,0.904) 78.6px, rgba(21,21,21,0.955) 85.7px, rgba(21,21,21,0.988) 92.9px, rgba(21,21,21,1.000) 100px); }
.cards--bleed .card-text, .work-hero-text { z-index: 2; }
@media (max-width: 809px) {
  .site-footer { margin-top: 0; background: var(--bg); }
  .site-footer .f-inner { padding-top: 24px; padding-bottom: 32px; }
  main::after { height: 80px; background: linear-gradient(to bottom, rgba(21,21,21,0.000) 0px, rgba(21,21,21,0.032) 5.7px, rgba(21,21,21,0.113) 11.4px, rgba(21,21,21,0.223) 17.1px, rgba(21,21,21,0.342) 22.9px, rgba(21,21,21,0.449) 28.6px, rgba(21,21,21,0.530) 34.3px, rgba(21,21,21,0.607) 40px, rgba(21,21,21,0.688) 45.7px, rgba(21,21,21,0.767) 51.4px, rgba(21,21,21,0.840) 57.1px, rgba(21,21,21,0.904) 62.9px, rgba(21,21,21,0.955) 68.6px, rgba(21,21,21,0.988) 74.3px, rgba(21,21,21,1.000) 80px); }
}

/* Round 8: smaller, right-aligned legal line */
.f-inner { align-items: flex-end; }
.f-legal { margin-left: auto; text-align: right; max-width: none; }
.f-legal .copy { font-size: 12px; line-height: 1.5; opacity: 0.6; }
.site-footer .f-inner { padding-top: 20px; padding-bottom: 28px; }
@media (max-width: 809px) {
  .f-legal { max-width: 300px; }
  .site-footer .f-inner { padding-top: 18px; padding-bottom: 24px; }
}

/* ---- Round 9 ---- */
/* footer legal sits the same distance from the window's right edge as Next project sits from the left */
.site-footer .f-inner.wrap { width: 100%; max-width: none; margin: 0; padding-inline: var(--gutter); }

/* Next project: right-aligned ("moving forward"), small arrow beside the label */
.next-project .card-text { justify-content: flex-end; text-align: right; left: var(--gutter); right: var(--gutter); }
.next-project .card-text .eyebrow { display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; }
.inline-arrow svg { width: 13px; height: 13px; color: currentColor; display: block; }
.next-project .card::after { background: linear-gradient(to left, rgba(0,0,0,0.720) 0%, rgba(0,0,0,0.708) 7.1%, rgba(0,0,0,0.675) 14.3%, rgba(0,0,0,0.625) 21.4%, rgba(0,0,0,0.564) 28.6%, rgba(0,0,0,0.497) 35.7%, rgba(0,0,0,0.427) 42.9%, rgba(0,0,0,0.360) 50%, rgba(0,0,0,0.301) 57.1%, rgba(0,0,0,0.254) 64.3%, rgba(0,0,0,0.214) 71.4%, rgba(0,0,0,0.173) 78.6%, rgba(0,0,0,0.136) 85.7%, rgba(0,0,0,0.110) 92.9%, rgba(0,0,0,0.100) 100%); }

/* Tracking: looser in the small nav logo, tighter in the big hero name */
.hero-name { letter-spacing: -0.065em; }
@supports (font-size: 1cqw) { .hero-name { font-size: 23.7cqw; } }
.logo { letter-spacing: 0.02em; }

/* ---- Round 10: quieter copyright ---- */
.site-footer .f-legal .copy { opacity: 0.38; }

/* ---- Round 11 ---- */
:root { --sgx: "Special Gothic Expanded One", "Space Grotesk", "Helvetica Neue", Arial, sans-serif; }
/* hero name + nav logo share the expanded face so the scroll morph stays seamless (single weight: no faux bold) */
.hero-name, .logo { font-family: var(--sgx); font-weight: 400; font-synthesis: none; }
.hero-name { line-height: 0.92; letter-spacing: -0.04em; }
@supports (font-size: 1cqw) { .hero-name { font-size: 15cqw; } }
.logo { font-size: 16px; line-height: 0.92; letter-spacing: 0.02em; }
@media (max-width: 809px) { .logo { font-size: 13px; } }
@media (max-width: 380px) { .logo { font-size: 12px; } }

/* footer: copyright left-aligned, 100px of air above it */
.f-inner { align-items: flex-start; }
.f-legal { margin-left: 0; text-align: left; }
.site-footer .f-inner { padding-top: 100px; }
@media (max-width: 809px) { .f-legal { max-width: none; } }
.hero-name { margin-left: -0.03em; }
@supports (font-size: 1cqw) { .hero-name { font-size: 16.4cqw; } }

.home-hero { position: relative; z-index: 3; }

/* ---- Round 12: hero block 100px higher on the home page ---- */
.home main { padding-top: 30px; }
@media (max-width: 809px) { .home main { padding-top: 84px; } }

/* ---- Round 13 ---- */
/* Home: the nav gradient lives inside <main> (under the hero text, over the project images) instead of inside the header */
.home .site-header::before { display: none; }
.home main::before { content: ""; position: sticky; top: 0; display: block; height: calc(var(--header-h) + 70px); margin-bottom: calc(-1 * (var(--header-h) + 70px)); z-index: 2; pointer-events: none;
  background: linear-gradient(to bottom, rgba(21,21,21,0.880) 0%, rgba(21,21,21,0.869) 7.1%, rgba(21,21,21,0.838) 14.3%, rgba(21,21,21,0.792) 21.4%, rgba(21,21,21,0.737) 28.6%, rgba(21,21,21,0.677) 35.7%, rgba(21,21,21,0.617) 42.9%, rgba(21,21,21,0.554) 50%, rgba(21,21,21,0.467) 57.1%, rgba(21,21,21,0.367) 64.3%, rgba(21,21,21,0.262) 71.4%, rgba(21,21,21,0.162) 78.6%, rgba(21,21,21,0.079) 85.7%, rgba(21,21,21,0.021) 92.9%, rgba(21,21,21,0.000) 100%); }
/* eyebrow baseline lines up with the nav text baseline (desktop; on phones it sits below the nav) */
@media (min-width: 810px) { .home-hero .eyebrow { position: relative; top: 1px; } }

/* ---- Round 14: About page in the same family as home + project pages ---- */
.about-main { padding-top: 0; }
.about-pad { padding-inline: var(--gutter); }

/* type-led opening: eyebrow on the nav baseline, big expanded headline */
.about-hero { padding: 120px var(--gutter) 0; }
.about-hero .eyebrow { margin: 0; }
@media (max-width: 809px) { .about-hero { padding-top: 84px; } }
.about-title { font: 400 clamp(30px, 6vw, 104px)/1.02 var(--sgx); font-synthesis: none; letter-spacing: -0.04em; text-transform: uppercase; color: #f4f4f4; margin: 28px 0 0; max-width: none; }
@media (max-width: 809px) { .about-title { margin-top: 20px; } }

/* images: edge to edge, gaps only between them */
.about-photos--bleed { display: grid; grid-template-columns: 1.35fr 1fr; gap: var(--img-gap); margin-top: 88px; }
.about-photos--bleed .frame { height: auto; aspect-ratio: auto; height: clamp(300px, 42vw, 680px); border-radius: 0; }
.about-wide--bleed { margin-top: 120px; }
.about-wide--bleed .frame { height: auto; aspect-ratio: 16 / 7; border-radius: 0; }
@media (max-width: 809px) {
  .about-photos--bleed { grid-template-columns: 1fr; margin-top: 48px; }
  .about-photos--bleed .frame { height: auto; aspect-ratio: 4 / 3; }
  .about-wide--bleed .frame { aspect-ratio: 4 / 3; }
}

/* text sections: label left, copy right */
.about-main .about-block { display: grid; grid-template-columns: minmax(200px, 5fr) 7fr; column-gap: var(--gutter); margin-top: 120px; }
.about-main .about-block > h2 { font: 400 32px/1.2 var(--sg); color: var(--ink); margin: 0; }
.about-main .about-block .body-copy { max-width: 860px; }
.about-main .about-block .body-copy p { font-size: 20px; line-height: 1.6; color: var(--muted); }
.about-main .skills { margin-top: 140px; }
.about-main .skills > div > p { font-size: 20px; line-height: 1.6; color: var(--muted); max-width: 860px; margin: 0; }
.about-main .skill-group, .about-main .skill-group:first-of-type { display: grid; grid-template-columns: minmax(150px, 2fr) 5fr; gap: 0 var(--gutter); margin: 0; padding: 22px 0; border-top: 1px solid var(--line); }
.about-main .skill-group:first-of-type { margin-top: 56px; }
.about-main .skill-group:last-child { border-bottom: 1px solid var(--line); }
.about-main .skill-group h3 { font: 400 13px/1.6 var(--inter); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0; padding-top: 3px; }
.about-main .skill-group p { font-size: 18px; line-height: 1.55; color: var(--ink); max-width: 760px; }
.about-main .about-end { height: 40px; }
@media (max-width: 809px) {
  .about-main .about-block { grid-template-columns: 1fr; row-gap: 20px; margin-top: 72px; }
  .about-main .about-block > h2 { font-size: 26px; }
  .about-main .about-block .body-copy p, .about-main .skills > div > p { font-size: 17px; }
  .about-main .skills { margin-top: 88px; }
  .about-main .skill-group, .about-main .skill-group:first-of-type { grid-template-columns: 1fr; gap: 8px; }
  .about-main .skill-group:first-of-type { margin-top: 36px; }
  .about-main .skill-group p { font-size: 16px; }
}

/* ---- Round 15: Contact page + mobile hamburger menu ---- */
.contact-title { font-size: clamp(56px, 13vw, 220px); letter-spacing: -0.05em; line-height: 0.95; margin-top: 36px; }
.contact-main .contact-intro { font: 400 clamp(18px, 1.7vw, 24px)/1.5 var(--sg); color: var(--muted); max-width: 720px; margin: 36px 0 0; letter-spacing: 0; }
.contact-form-wrap { margin-top: 96px; }
.contact-main .form { margin: 0; padding-top: 48px; border-top: 1px solid var(--line); grid-template-columns: 1fr 1fr; gap: 40px var(--gutter); }
.contact-main .field > span { font: 400 13px/1.6 var(--inter); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-main .field input, .contact-main .field textarea { background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,0.28); border-radius: 0; padding: 12px 0; height: 52px; font: 400 20px/1.4 var(--inter); color: var(--ink); transition: border-color 0.2s; }
.contact-main .field textarea { height: 180px; padding: 12px 0; }
.contact-main .field input::placeholder, .contact-main .field textarea::placeholder { color: rgba(255,255,255,0.28); }
.contact-main .field input:focus, .contact-main .field textarea:focus { background: transparent; box-shadow: none; border-bottom-color: #ededed; outline: 0; }
.contact-main .form-actions { margin-top: 8px; }
.contact-main .form .btn { background: #ededed; color: #151515; width: 200px; height: 52px; font-size: 17px; }
.contact-main .form .btn:hover { background: #fff; }
.contact-main .form-note { color: var(--muted); }
@media (max-width: 809px) {
  .contact-title { font-size: clamp(48px, 20vw, 120px); }
  .contact-form-wrap { margin-top: 56px; }
  .contact-main .form { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; }
  .contact-main .form .btn { width: 100%; }
  .contact-main .about-end { height: 56px; }
}

/* hamburger */
.menu-toggle { display: none; position: relative; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; background: transparent; color: #f4f4f4; cursor: pointer; }
.menu-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; border-radius: 1px; transition: transform 0.35s cubic-bezier(0.3, 0.7, 0.2, 1), top 0.35s cubic-bezier(0.3, 0.7, 0.2, 1); }
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 26px; }
html.menu-open .menu-toggle span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
html.menu-open .menu-toggle span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }
.mobile-menu { display: none; }
@media (max-width: 809px) {
  .site-header .nav { display: none; }
  .menu-toggle { display: block; }
  .logo { font-size: 14px; }
  .mobile-menu { display: flex; position: fixed; inset: 0; z-index: 49; background: rgba(21,21,21,0.97); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    padding: calc(var(--header-h) + 24px) var(--gutter) 40px; flex-direction: column; justify-content: flex-start;
    opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0s linear 0.35s; }
  html.menu-open .mobile-menu { opacity: 1; visibility: visible; transition: opacity 0.35s ease, visibility 0s; }
  .mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }
  .mobile-menu a { font: 400 clamp(40px, 13vw, 72px)/1.08 var(--sgx); font-synthesis: none; letter-spacing: -0.04em; text-transform: uppercase; color: #f4f4f4;
    opacity: 0; transform: translateY(16px); transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
  html.menu-open .mobile-menu a { opacity: 1; transform: none; }
  html.menu-open .mobile-menu a:nth-child(2) { transition-delay: 0.05s; }
  html.menu-open .mobile-menu a:nth-child(3) { transition-delay: 0.1s; }
  html.menu-open .mobile-menu a:nth-child(4) { transition-delay: 0.15s; }
  .mobile-menu .mm-resume { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; margin-top: 28px; padding: 0 20px; height: 44px; border: 1px solid rgba(255,255,255,0.7); border-radius: 999px; font: 400 17px/1 var(--sg); letter-spacing: 0; text-transform: none; }
  .mobile-menu .mm-resume svg { width: 16px; height: 16px; }
  html.menu-open { overflow: hidden; }
  html.menu-open .site-header, html.menu-open .site-header.is-hidden { transform: none; }
  html.menu-open .site-header::before, html.menu-open .home main::before { opacity: 0; }
  html.menu-open .site-header .logo { opacity: 1 !important; }
}
.about-main::after, .contact-main::after { display: none; }
.form-note:empty { display: none; }
.contact-title { letter-spacing: -0.03em; }
@media (max-width: 809px) { .mobile-menu { background: #151515; } .contact-main .form-actions { gap: 0; } }

/* ---- Round 16: Special Gothic Expanded One is for the name/logo only ---- */
.about-title, .contact-title { font: 400 clamp(44px, 9vw, 150px)/0.98 var(--sg); letter-spacing: -0.05em; text-transform: none; color: #fff; margin: 28px 0 0; }
@media (max-width: 809px) {
  .about-title, .contact-title { font-size: clamp(40px, 13vw, 96px); margin-top: 20px; }
  .mobile-menu a { font: 400 clamp(44px, 14vw, 80px)/1.1 var(--sg); letter-spacing: -0.04em; text-transform: none; }
  .mobile-menu .mm-resume { font: 400 17px/1 var(--sg); letter-spacing: 0; }
}

/* Intro / Skills labels stay put while their copy scrolls (desktop) */
@media (min-width: 810px) {
  .about-main .about-block > h2 { position: sticky; top: 120px; align-self: start; }
}

/* ---- Round 17: navigation states ---- */
/* desktop nav: underline grows left-to-right on hover, retreats right-to-left; current page keeps it */
.nav-link { position: relative; display: inline-block; padding: 4px 0; line-height: 1.2; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right center; transition: transform 0.4s cubic-bezier(0.6, 0.05, 0.2, 1); }
.nav-link:hover::after, .nav-link:focus-visible::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left center; }
@media (prefers-reduced-motion: reduce) { .nav-link::after { transition: none; } }

/* logo dims on hover so it reads as a link */
.logo .lw { transition: opacity 0.25s ease; }
.logo:hover .lw, .logo:focus-visible .lw { opacity: 0.55; }

/* mobile menu: same underline grow/shrink, current page underlined */
.mobile-menu nav a:not(.mm-resume) { align-self: flex-start; background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-size: 0 3px; background-position: 100% 100%; padding-bottom: 4px; }
@media (max-width: 809px) {
  .mobile-menu nav a:not(.mm-resume) { transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), background-size 0.4s cubic-bezier(0.6, 0.05, 0.2, 1); }
  .mobile-menu .mm-resume { transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), background 0.25s, color 0.25s; }
}
.mobile-menu nav a:not(.mm-resume):hover, .mobile-menu nav a:not(.mm-resume):focus-visible, .mobile-menu nav a[aria-current="page"] { background-size: 100% 3px; background-position: 0 100%; }
.mobile-menu .mm-resume:hover, .mobile-menu .mm-resume:focus-visible { background: #f4f4f4; color: #151515; }

/* ---- Round 18: About/Contact open with the headline alone ---- */
.about-hero { padding-top: 128px; }
.about-title, .contact-title { margin-top: 0; }
@media (max-width: 809px) { .about-hero { padding-top: 104px; } .about-title, .contact-title { margin-top: 0; } }

/* ---- Round 19: LinkedIn text links; clearer copyright ---- */
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; transition: opacity 0.25s ease; }
.text-link:hover, .text-link:focus-visible { opacity: 0.6; }
.tl-arrow svg { width: 13px; height: 13px; display: block; color: currentColor; }
.about-main .body-copy p .text-link { font-size: 18px; }
.contact-links { margin: 28px 0 0; font: 400 18px/1.4 var(--sg); }
.site-footer .f-legal .copy { opacity: 0.62; }

/* ---- Round 20: more air above the footer; ChartLab screens shown whole ---- */
.site-footer .f-inner { padding-top: 200px; }
.marquee-track img { height: auto; aspect-ratio: 1024 / 618; object-fit: contain; }

/* ---- Round 21: on project pages the copyright sits on the bottom of the Next project image (wide screens) ---- */
.work-page .site-footer .f-inner { padding-top: 40px; }
@media (min-width: 1100px) {
  .work-page .site-footer { position: relative; z-index: 3; height: 0; margin-top: 0; padding: 0; pointer-events: none; background: transparent; }
  .work-page .site-footer .f-inner { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 var(--gutter) 16px; }
  .work-page .site-footer .f-legal { max-width: calc(100vw - 560px); }
  .work-page .site-footer .f-legal .copy { white-space: normal; opacity: 0.8; }
}

/* ---- Round 22: project pages use the same two-column rhythm as About ---- */
.work-main .about-block { display: grid; grid-template-columns: minmax(200px, 5fr) 7fr; column-gap: var(--gutter); }
.work-main .work-intro { margin-top: 80px; }
.work-main .work-role { margin-top: 140px; margin-bottom: 140px; }
.work-main .stack--bleed { margin-top: 120px; }
.work-main .work-intro .meta { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 32px; margin: 0; }
.work-main .work-intro .meta .val { font: 400 20px/1.4 var(--sg); margin-top: 6px; color: var(--ink); }
.work-main .work-intro .blurb { margin: 0; }
.work-main .work-intro .blurb h2 { font: 400 clamp(26px, 2.6vw, 40px)/1.25 var(--sg); letter-spacing: -0.02em; max-width: 860px; margin: 0; }
.work-main .work-intro .blurb p { font-size: 20px; line-height: 1.6; color: var(--muted); max-width: 760px; margin-top: 28px; }
.work-main .work-intro .blurb .btn { margin-top: 44px; }
.work-main .work-role > h2 { font: 400 32px/1.2 var(--sg); letter-spacing: 0; color: var(--ink); margin: 0; max-width: none; }
.work-main .work-role .body-copy { max-width: 860px; margin: 0; }
.work-main .work-role .body-copy p { font-size: 20px; line-height: 1.6; color: var(--muted); }
@media (min-width: 810px) {
  .work-main .work-intro .meta, .work-main .work-role > h2 { position: sticky; top: 120px; align-self: start; }
}
@media (max-width: 809px) {
  .work-main .about-block { grid-template-columns: 1fr; row-gap: 28px; }
  .work-main .work-intro { margin-top: 48px; }
  .work-main .work-intro .meta { flex-direction: row; flex-wrap: wrap; gap: 20px 36px; }
  .work-main .work-intro .meta .val { font-size: 17px; }
  .work-main .work-intro .blurb p, .work-main .work-role .body-copy p { font-size: 17px; }
  .work-main .work-role { margin-top: 72px; margin-bottom: 72px; row-gap: 20px; }
  .work-main .work-role > h2 { font-size: 26px; }
  .work-main .stack--bleed { margin-top: 64px; }
}

/* ---- Round 23: motion system, page transitions, image blur-up, brand details ---- */
:root {
  color-scheme: dark;                                   /* dark scrollbars + form controls */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);           /* things arriving / settling */
  --ease-io: cubic-bezier(0.6, 0.05, 0.2, 1);           /* things that grow/shrink (underlines, morphs) */
  --t-quick: 0.25s;                                     /* hover feedback */
  --t-base: 0.45s;                                      /* UI state changes */
  --t-slow: 0.9s;                                       /* scroll reveals + entrances */
}

/* one set of timings for the whole site */
.site-header { transition: transform var(--t-base) var(--ease-out); }
.site-header .bar { transition: opacity var(--t-quick) ease; }
.btn-resume { transition: background var(--t-quick) ease, transform var(--t-quick) ease, color var(--t-quick) ease; }
.btn { transition: background var(--t-quick) ease, transform var(--t-quick) ease; }
.card-img { transition: border-radius var(--t-base) var(--ease-out); }
.card-img img, .next-img img { transition: transform var(--t-base) var(--ease-out); }
.js .rv { transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); }
.js .rf { transition: opacity var(--t-slow) var(--ease-out); }
.js .w { transition: opacity var(--t-base) ease; }
.nav-link::after { transition: transform var(--t-base) var(--ease-io); }
.logo .lw, .text-link { transition: opacity var(--t-quick) ease; }
.menu-toggle span { transition: transform var(--t-base) var(--ease-out), top var(--t-base) var(--ease-out); }
.contact-main .field input, .contact-main .field textarea { transition: border-color var(--t-quick) ease; }
@media (max-width: 809px) {
  .mobile-menu { transition: opacity var(--t-base) ease, visibility 0s linear var(--t-base); }
  html.menu-open .mobile-menu { transition: opacity var(--t-base) ease, visibility 0s; }
  .mobile-menu a { transition: opacity var(--t-base) ease, transform var(--t-base) var(--ease-out); }
  .mobile-menu nav a:not(.mm-resume) { transition: opacity var(--t-base) ease, transform var(--t-base) var(--ease-out), background-size var(--t-base) var(--ease-io); }
  .mobile-menu .mm-resume { transition: opacity var(--t-base) ease, transform var(--t-base) var(--ease-out), background var(--t-quick) ease, color var(--t-quick) ease; }
}
.hero-slide { animation-duration: var(--t-slow); animation-timing-function: var(--ease-out); }

/* page-to-page cross-fade (Chrome / Safari); the header stays put while the pages swap */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-group(root) { animation-duration: 0.4s; }
::view-transition-old(root) { animation: vt-out 0.25s var(--ease-out) both; }
::view-transition-new(root) { animation: vt-in 0.4s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
html.vt main { animation: none; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* images sharpen out of their blurred preview as they arrive */
@keyframes lq-in { from { filter: blur(10px); } to { filter: blur(0); } }
img.lq-in { animation: lq-in 0.7s var(--ease-out) both; }
@media (prefers-reduced-motion: reduce) { img.lq-in { animation: none; } }

/* keyboard focus: clear white ring, sits inside full-bleed images so it is never clipped */
:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.card:focus-visible, .cards--bleed .card:focus-visible { outline-offset: -8px; }
.btn:focus-visible, .btn-resume:focus-visible, .menu-toggle:focus-visible { outline-offset: 3px; }
.contact-main .field input:focus-visible, .contact-main .field textarea:focus-visible { outline: 0; }
.card { position: relative; }
.card:focus-visible { outline: 0; }
.card:focus-visible::after { content: ""; position: absolute; inset: 8px; border: 2px solid #fff; pointer-events: none; z-index: 5; }

/* Round 24: more room above the homepage hero */
.home main { padding-top: 144px; }
@media (max-width: 809px) { .home main { padding-top: 127px; } }
/* eyebrow→name gap equals name→tagline gap; tagline position unchanged */
.home-hero .hero-name { margin-bottom: -3.2cqw; }

/* Round 25: next-project image matches the project hero images (80% opacity) */
.next-project .card-img img { opacity: 0.8; }

/* Round 26: wide desktop — eyebrow sits to the right of MICAH, bottom-aligned with its baseline, above THOMSON */
@media (min-width: 1200px) {
  .home main { padding-top: 112px; }
  .home-hero .eyebrow { position: absolute; left: 67cqw; right: 0; top: calc(12.3cqw + 22.4px); transform: translateY(-100%); margin: 0; white-space: nowrap; font-size: 24px; }
}

.eb-br { display: none; }
@media (min-width: 1200px) { .eb-br { display: inline; } }

/* Round 27: homepage eyebrow removed — pull the name up */
.home main { padding-top: 112px; }
@media (max-width: 809px) { .home main { padding-top: 110px; } }

/* Round 28: subtle image motion — scroll parallax + a slow settle as images arrive (homepage cards + project heroes) */
.work-hero-img { overflow: hidden; }
.js .px-img {
  --py: 0px;
  scale: 1.16;                                  /* arrives slightly zoomed in … */
  translate: 0 var(--py);
  transition: scale 1.6s var(--ease-out), transform var(--t-base) var(--ease-out);
  will-change: translate, scale;
}
.js .px-img.px-in { scale: 1.1; }               /* … and settles to 1.1 (the spare 5% each side is what parallax moves through) */
@media (hover: hover) {
  .card:hover .card-img img.px-img, .card:focus-visible .card-img img.px-img { transform: scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .js .px-img { scale: none; translate: none; transition: none; }
}

/* Round 29: project hero parallax is stronger — the image is 15% taller than its frame and slides down as you scroll away */
.js .work-hero-img img.px-img { height: 115%; scale: 1.05; }
.js .work-hero-img img.px-img.px-in { scale: 1; }
@media (prefers-reduced-motion: reduce) { .js .work-hero-img img.px-img { height: 100%; scale: none; } }

/* Round 30: laptop mock-up — the screen scrolls the full landing page as you scroll the site */
.frame.laptop { height: auto; aspect-ratio: 2048 / 1237; position: relative; background: transparent; }
.frame.laptop > img:first-child { width: 100%; height: 100%; object-fit: fill; }
.js .frame.laptop > img:first-child { transform: none; }
.lap-screen { position: absolute; overflow: hidden;
  left: 22.705%; top: 17.22%; width: 54.59%; height: 57.56%;            /* screen quad: x 465–1583, y 213–925 of 2048×1237 */
  clip-path: polygon(0.894% 0, 99.106% 0, 100% 100%, 0 100%); }
.lap-page { display: block; width: 100%; height: auto; transform: translate3d(0, calc(var(--lp, 0) * -68.5%), 0); will-change: transform; }
.lap-over { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.frame.laptop .lap-page { height: auto; width: 100%; object-fit: fill; max-width: none; }

/* Round 31: the laptop stays put (centred in the window) once it is fully on screen, and the page scrolls inside it */
.js .laptop-track { height: calc(100vw * 0.604 + 75vh); position: relative; }
.js .laptop-track .frame.laptop { position: sticky; top: max(0px, calc((100vh - 100vw * 0.604) / 2)); }
@media (prefers-reduced-motion: reduce) { .js .laptop-track { height: auto; } .js .laptop-track .frame.laptop { position: relative; top: auto; } }

/* Round 32: two-column copy on About / project / contact pages sits inside the same margins as the navigation */
.about-pad, .about-hero { box-sizing: border-box; width: min(1480px, calc(100% - var(--gutter) * 2)); margin-inline: auto; padding-inline: 0; }

/* Round 33: phones — the small name fades into the nav once the hero has scrolled past */
/* (applies at every width now) */
.js .home .logo { transition: opacity 0.4s ease; }
