/* aaron spritzer — portfolio
   Bauhaus palette · Jost + JetBrains Mono · one red thread */

:root {
  --paper: #F1ECE1;
  --ink: #141414;
  --red: #D3301F;
  --red-text: #B0261A;
  --blue: #1E4FA3;
  --yellow: #F2B91C;
  --stone: #E3DCCD;
  --stone-2: #D9D1C0;
  --muted: #5C5850;
  --body: #3D3A35;
  --soft: #8E8A80;
  --line-dark: #3A3833;
  --gutter: 5vw;
  --max: 1440px;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background-color: var(--paper);
  background-image: url(paper-grain.png);
  background-size: 320px 320px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, iframe { display: block; max-width: 100%; }
a { color: var(--ink); text-underline-offset: 6px; text-decoration-thickness: 1px; }
a:hover { color: var(--red-text); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
em { font-style: italic; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: 12px 16px; z-index: 100; }
.skip:focus { left: 16px; top: 16px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em; }
.muted { color: var(--muted); }
.body-c { color: var(--body); }
.red { color: var(--red); }

/* ---------- header ---------- */
.site-header { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; min-height: 44px; }
.brand span { font-weight: 500; font-size: 22px; letter-spacing: 0.01em; }
.brand:hover { color: inherit; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 17px; }
.nav a { text-decoration: none; color: inherit; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover { color: inherit; text-decoration: underline; text-decoration-color: var(--red); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--red); }
.site-header.on-dark { color: var(--paper); }

/* ---------- home hero ---------- */
.hero { position: relative; width: 100%; height: min(56.25vw, 900px); min-height: 560px; background: var(--ink); color: var(--paper); overflow: hidden; }
.hero > .slot { position: absolute; inset: 0; aspect-ratio: auto; }
.hero > .slot video { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(20,20,20,.55), rgba(20,20,20,0) 28%, rgba(20,20,20,0) 50%, rgba(20,20,20,.7)); pointer-events: none; }
.hero .site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 2; max-width: none; }
.hero-copy { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: 56px; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; }
.hero-copy .mono { letter-spacing: 0.1em; margin-bottom: 16px; }
.hero h1 { font-weight: 500; line-height: 0.9; letter-spacing: -0.03em; font-size: clamp(44px, 6.5vw, 108px); }

.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 26px; background: var(--paper); color: var(--ink); text-decoration: none; font: 500 17px var(--sans); border: 0; cursor: pointer; }
.btn:hover { background: #fff; color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #000; color: var(--paper); }

/* ---------- the red thread ---------- */
.thread-wrap { position: relative; }
.thread-wrap > .thread { position: absolute; top: 0; bottom: 0; left: max(10px, calc(var(--gutter) - 28px)); width: 2px; background: var(--red); }

.intro { padding-top: 120px; padding-bottom: 120px; }
.intro p { max-width: 1080px; font-size: clamp(28px, 3.6vw, 52px); line-height: 1.18; letter-spacing: -0.015em; }
.intro p span { color: var(--soft); }

/* ---------- section heads ---------- */
.rule-head { display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: baseline; justify-content: space-between; border-top: 2px solid var(--ink); padding-top: 20px; margin-bottom: 48px; }
.rule-head h2 { font-weight: 500; font-size: 28px; }
.section { padding-bottom: 120px; }

/* ---------- project grid ---------- */
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 72px 32px; }
.card { display: flex; flex-direction: column; gap: 20px; text-decoration: none; color: var(--ink); }
.card:hover { color: var(--ink); }
.card.wide { grid-column: 1 / -1; }
.card .slot { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.card:hover .slot { transform: scale(0.985); }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; justify-content: space-between; }
.card-title { display: flex; gap: 18px; align-items: baseline; }
.card-title .mono { font-size: 14px; color: var(--muted); }
.card h3 { font-weight: 500; font-size: 34px; letter-spacing: -0.02em; line-height: 1.1; }
.card.wide h3 { font-size: clamp(32px, 3.4vw, 48px); }
.card:hover h3 { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.card-line { margin: -8px 0 0 38px; font-size: 18px; color: var(--body); }

.more-line { margin-top: 56px; font-size: 19px; }
.more-line a { font-weight: 500; }

/* ---------- disciplines ---------- */
.blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.block { padding: 40px 36px 48px; min-height: 280px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.block h3 { font-weight: 500; font-size: 32px; margin-bottom: 10px; }
.block p { font-size: 18px; }
.b-red { background: var(--red); color: #fff; }
.b-blue { background: var(--blue); color: #fff; }
.b-yellow { background: var(--yellow); color: var(--ink); }

/* ---------- credit strip / client band ---------- */
.band { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: baseline; justify-content: space-between; text-decoration: none; color: var(--ink); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); padding: 28px 0; }
.band:hover { color: var(--ink); }
.band h2 { font-weight: 500; font-size: 28px; flex: 0 1 auto; }
.band .names { flex: 999 1 480px; font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -0.01em; line-height: 1.35; }
.band .go { font-size: 19px; font-weight: 500; }
a.band:hover .go { color: var(--red-text); }

/* ---------- red thread teaser ---------- */
.split { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-start; }
.split > .lead { flex: 1 1 300px; }
.split > .main { flex: 999 1 520px; min-width: 0; }
.big-h { font-weight: 500; line-height: 0.95; letter-spacing: -0.03em; font-size: clamp(48px, 6vw, 92px); }
.para-l { max-width: 680px; font-size: 22px; line-height: 1.55; color: var(--body); }
.link-strong { display: inline-flex; align-items: center; min-height: 48px; font-size: 19px; font-weight: 500; }

/* ---------- contact / footer ---------- */
.contact { background: var(--ink); color: var(--paper); }
.contact .wrap { padding-top: 120px; padding-bottom: 64px; }
.contact h2 { font-weight: 500; line-height: 0.92; letter-spacing: -0.03em; font-size: clamp(52px, 8vw, 128px); margin-bottom: 48px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; }
.contact a { color: var(--paper); }
.contact a:hover { color: var(--yellow); }
.contact .email { font-size: clamp(22px, 2.4vw, 32px); text-underline-offset: 8px; word-break: break-word; }
.contact .small { font-size: 18px; min-height: 44px; display: inline-flex; align-items: center; }
.contact.slim .wrap { padding-top: 64px; padding-bottom: 48px; }
.contact.slim .footer-row { margin-top: 56px; }
.footer-row { margin-top: 96px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: #A9A499; }
.footer-row a { color: #A9A499; }

.cta-red { background: var(--red); color: #fff; }
.cta-red .wrap { padding-top: 112px; padding-bottom: 112px; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; justify-content: space-between; }
.cta-red h2 { font-weight: 500; line-height: 0.95; letter-spacing: -0.03em; font-size: clamp(44px, 6.4vw, 104px); }

/* ---------- page titles ---------- */
.page-title { padding-top: 56px; padding-bottom: 48px; display: flex; flex-wrap: wrap; gap: 24px 32px; align-items: flex-end; justify-content: space-between; }
.page-title .mono { margin-bottom: 20px; color: var(--muted); }
.page-title h1 { font-weight: 500; line-height: 0.88; letter-spacing: -0.04em; font-size: clamp(56px, 9vw, 150px); }
.page-title .tagline { max-width: 440px; font-size: 24px; line-height: 1.35; }

/* ---------- media slots ---------- */
.slot { position: relative; width: 100%; aspect-ratio: var(--ratio, 16 / 9); background: var(--stone); overflow: hidden; }
.slot > img, .slot > video, .slot > iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; opacity: 0; transition: opacity .4s ease; }
.slot.contain > img, .slot.contain > video { object-fit: contain; }
.slot.ready > img, .slot.ready > video, .slot.ready > iframe { opacity: 1; }
.slot .slot-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center; font: 12px/1.5 var(--mono); color: var(--body); }
.slot.ready .slot-label { display: none; }
.slot.t-ink { background: var(--ink); } .slot.t-ink .slot-label { color: var(--soft); }
.slot.t-blue { background: var(--blue); } .slot.t-blue .slot-label { color: var(--paper); }
.slot.t-red { background: var(--red); } .slot.t-red .slot-label { color: #fff; }
.slot.t-yellow { background: var(--yellow); } .slot.t-yellow .slot-label { color: var(--ink); }
.slot.t-stone2 { background: var(--stone-2); }
.slot.has-controls > video { object-fit: contain; background: #000; }
.cap { margin-top: 10px; color: var(--muted); }
.slot-optional.missing { display: none; }

/* wipe compare */
.wipe { position: relative; --pos: 50%; }
.wipe .slot { position: relative; }
.wipe .wipe-top { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.wipe .wipe-top .slot { position: absolute; inset: 0; height: 100%; background: transparent; }
.wipe .wipe-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--paper); pointer-events: none; z-index: 2; }
.wipe .wipe-line::after { content: ""; position: absolute; top: 50%; left: 50%; width: 36px; height: 36px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px var(--paper); }
.wipe input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3; }
.wipe input[type=range]:focus-visible + .wipe-line { background: var(--yellow); }
.wipe-tags { display: flex; justify-content: space-between; margin-top: 10px; color: var(--muted); }
.wipe.inactive .wipe-line, .wipe.inactive input, .wipe.inactive .wipe-top { display: none; }
.wipe-top .slot-label { display: none; }

/* ---------- details row ---------- */
.details { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 2px solid var(--ink); }
.details > div { padding: 20px 20px 20px 0; }
.details dt { font: 12px var(--mono); color: var(--muted); margin-bottom: 8px; }
.details dd { font-size: 19px; line-height: 1.45; }

/* ---------- story ---------- */
.story { display: flex; flex-wrap: wrap; gap: 24px 64px; padding-bottom: 120px; }
.story h2 { flex: 1 1 260px; font-weight: 500; font-size: 28px; }
.story .copy { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; font-size: clamp(21px, 2.2vw, 30px); line-height: 1.45; }

/* ---------- breakdown timeline ---------- */
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 40px; left: 11px; width: 2px; background: var(--red); }
.step { position: relative; padding: 0 0 96px 64px; }
.step:last-child { padding-bottom: 40px; }
.mark { position: absolute; left: 0; top: 6px; width: 24px; height: 24px; }
.mark.circle { border-radius: 50%; background: var(--red); }
.mark.square { background: var(--blue); }
.mark.triangle { background: var(--yellow); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.mark.ring { border-radius: 50%; border: 2px solid var(--red); background: var(--paper); }
.step-head { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: baseline; margin-bottom: 14px; }
.step-head .mono { font-size: 15px; color: var(--muted); }
.step h3 { font-weight: 500; font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.02em; line-height: 1.1; }
.step .desc { max-width: 760px; font-size: 19px; line-height: 1.6; color: var(--body); margin-bottom: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 24px; }
.tags .cam { margin-right: 8px; color: var(--muted); font: 12px var(--mono); }
.tag { font: 12px var(--mono); padding: 6px 10px; background: var(--ink); color: var(--paper); }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; max-width: 760px; }
.plans .slot.t-blue { background: #0d3b78; }
.plans.wide { max-width: none; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.slot.t-paper { background: #fff; }
.lede { max-width: 760px; font-size: 19px; line-height: 1.6; color: var(--body); margin: -24px 0 64px; }

/* next project */
.next { display: block; text-decoration: none; margin-top: 80px; }
.next .wrap { padding-top: 80px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; }
.next .mono { margin-bottom: 16px; }
.next .title { font-weight: 500; line-height: 0.92; letter-spacing: -0.03em; font-size: clamp(44px, 7vw, 112px); }
.next .arrow { font-size: 64px; line-height: 1; transition: transform .3s ease; }
.next:hover .arrow { transform: translateX(12px); }
.n-ink { background: var(--ink); color: var(--paper); } .n-ink:hover { color: var(--paper); }
.n-blue { background: var(--blue); color: #fff; } .n-blue:hover { color: #fff; }
.n-red { background: var(--red); color: #fff; } .n-red:hover { color: #fff; }
.n-yellow { background: var(--yellow); color: var(--ink); } .n-yellow:hover { color: var(--ink); }

/* ---------- about ---------- */
.about-top { padding-top: 64px; padding-bottom: 120px; display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-end; }
.about-top .main { flex: 999 1 560px; min-width: 0; }
.about-top h1 { font-weight: 500; line-height: 0.88; letter-spacing: -0.04em; font-size: clamp(72px, 11vw, 180px); margin-bottom: 40px; }
.about-top .intro-p { max-width: 720px; font-size: clamp(21px, 2vw, 28px); line-height: 1.45; }
.about-top .portrait { flex: 1 1 300px; max-width: 440px; }
.about-steps { position: relative; padding-bottom: 40px; }
.about-steps::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--gutter) + 11px); width: 2px; background: var(--red); }
.a-step { position: relative; display: flex; flex-wrap: wrap; gap: 32px 64px; padding: 0 0 112px 64px; }
.a-step .mark { top: 8px; }
.a-step .txt { flex: 999 1 480px; min-width: 0; }
.a-step .img { flex: 1 1 300px; }
.a-step h2 { font-weight: 500; font-size: clamp(38px, 4.4vw, 64px); line-height: 1; letter-spacing: -0.03em; margin: 12px 0 24px; }
.a-step p.t { max-width: 640px; font-size: 21px; line-height: 1.6; color: var(--body); }
.a-step .closing { max-width: 1000px; font-size: clamp(28px, 3.4vw, 48px); line-height: 1.2; letter-spacing: -0.02em; margin-top: 12px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); border-top: 2px solid var(--ink); }
.facts > div { padding: 28px 32px 28px 0; }
.facts .mono { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.facts p.v { font-size: 22px; }

/* ---------- credits ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 16px 36px; border-top: 2px solid var(--ink); padding-top: 20px; color: var(--body); margin-bottom: 48px; }
.legend span { display: inline-flex; align-items: center; gap: 10px; }
.legend .mark { position: static; width: 14px; height: 14px; display: inline-block; }
.credits { list-style: none; padding: 0; position: relative; }
.credits::before { content: ""; position: absolute; top: 18px; bottom: 18px; left: 11px; width: 2px; background: var(--red); }
.credit { position: relative; display: flex; flex-wrap: wrap; gap: 6px 40px; align-items: baseline; padding: 0 0 56px 64px; }
.credit:last-child { padding-bottom: 0; }
.credit .mark { top: 10px; }
.credit .yr { flex: 0 0 120px; font-size: 14px; color: var(--muted); }
.credit .show { flex: 999 1 400px; min-width: 0; }
.credit h2 { font-weight: 500; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 6px; }
.credit .role { flex: 1 1 240px; font-size: 20px; }
.credit.school .box { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 6px 40px; align-items: baseline; background: var(--stone); padding: 24px 28px; }
.credit.school .mark { top: 22px; }
.credit.school p { flex: 999 1 400px; font-size: 22px; line-height: 1.4; }
.dark-band { background: var(--ink); color: var(--paper); }
.dark-band .wrap { padding-top: 96px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; justify-content: space-between; }
.dark-band p { max-width: 760px; font-weight: 500; line-height: 1.05; letter-spacing: -0.02em; font-size: clamp(34px, 4.4vw, 64px); }

/* ---------- grids ---------- */
.pieces { display: grid; grid-template-columns: 0.5625fr 0.8fr 0.8fr; gap: 20px; align-items: start; }
@media (max-width: 760px) { .pieces { grid-template-columns: 1fr; max-width: 420px; } }
.pieces .slot > video { object-fit: cover; background: #000; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 48px 24px; }
.grid-feed { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px 20px; }
.model h2 { font-weight: 500; font-size: 24px; margin-top: 14px; }

/* ---------- reel modal ---------- */
dialog.reel { width: min(1280px, 94vw); max-width: none; padding: 0; border: 0; background: #000; color: var(--paper); }
dialog.reel::backdrop { background: rgba(10,10,10,.88); }
dialog.reel .close { position: absolute; top: -52px; right: 0; background: none; border: 0; color: var(--paper); font: 500 17px var(--sans); min-height: 44px; cursor: pointer; }

/* ---------- small screens ---------- */
@media (max-width: 640px) {
  body { font-size: 17px; }
  .hero { min-height: 640px; height: 100svh; max-height: 820px; }
  .hero-copy { bottom: 36px; }
  .intro { padding-top: 80px; padding-bottom: 80px; }
  .section, .story { padding-bottom: 80px; }
  .card-line { margin-left: 0; }
  .step, .a-step, .credit { padding-left: 44px; }
  .mark { width: 20px; height: 20px; }
  .timeline::before, .credits::before { left: 9px; }
  .about-steps::before { left: calc(var(--gutter) + 9px); }
  .credit .yr { flex-basis: 100%; }
  .next .arrow { font-size: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .card .slot, .next .arrow, .slot > * { transition: none; }
}

/* ---------- launch mode: empty slots disappear ---------- */
.launch .slot-label { display: none; }
.launch figure:has(.slot.missing),
.launch .slot-optional.missing,
.launch .model:has(.slot.missing),
.launch .a-step .img:has(.slot.missing),
.launch .about-top .portrait:has(.slot.missing) { display: none; }
.launch .wipe:has(> .slot.missing), .launch .wipe:has(> .slot.missing) + .wipe-tags { display: none; }
.launch .pair:not(:has(figure:not(:has(.slot.missing)))) { display: none; }
.launch .rule-head:has(+ .grid-3:not(:has(.model:not(:has(.slot.missing))))),
.launch .rule-head:has(+ .grid-feed:not(:has(figure:not(:has(.slot.missing))))) { display: none; }
.launch section:has(> .slot.missing):not(.hero) { display: none; }
