/* =====================================================================
   DieBoosters – site styles (dark-first, editorial serif headlines)
   ===================================================================== */
@font-face { font-family: "Instrument Serif"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/inter-tight-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/inter-tight-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/inter-tight-latin-600-normal.woff2") format("woff2"); }

:root {
  /* palette: Iron (black), Eggshell (white), Stone, Zinc */
  --bg: #000000;
  --iron: #0a0a0a;
  --iron-2: #111111;
  --ink: #f0f0f0;
  --eggshell: #f3efe8;
  --text: rgba(240, 240, 240, .72);
  --muted: rgba(240, 240, 240, .5);
  --faint: rgba(240, 240, 240, .32);
  --stone: #a8a29e;
  --zinc: #71717a;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --card: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  --accent: #f3efe8;
  --radius: 18px;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display-sans: "Inter Tight", "Inter", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--eggshell); color: #000; }
:focus-visible { outline: 2px solid var(--eggshell); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* gradient headline text */
.gradient-text, .display, .h-serif {
  background: linear-gradient(to right bottom, #ffffff 30%, rgba(255, 255, 255, .5));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 12px;
  font-family: var(--sans); font-weight: 500; font-size: 15px; letter-spacing: -.005em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-dark { background: var(--eggshell); color: #000; }           /* primary */
.btn-dark:hover { background: #fff; }
.btn-light { background: rgba(255,255,255,.04); color: var(--ink); border-color: var(--line-2); }
.btn-light:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { color: #fff; background: rgba(255,255,255,.05); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }

/* ---------- header / nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 64px;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-compact { background: rgba(0,0,0,.72); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); border-bottom-color: var(--line); }
.nav { position: relative; display: flex; align-items: center; justify-content: space-between; height: 64px; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-family: var(--display-sans); font-weight: 600; font-size: 17px; letter-spacing: -.03em; }
.brand svg { width: 20px; height: 20px; flex: none; }
.nav-links { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; }
.nav-links a { padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--muted); text-decoration: none; transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-cta { height: 34px; padding: 0 14px; font-size: 14px; border-radius: 10px; background: rgba(255,255,255,.06); color: var(--ink); border: 1px solid var(--line-2); }
.nav-cta:hover { background: rgba(255,255,255,.1); }
.nav-cta .label-short { display: none; }
.menu-btn { display: none; }
@media (max-width: 820px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--ink); cursor: pointer; }
}
.mobile-menu { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.96); backdrop-filter: blur(10px); display: flex; flex-direction: column; justify-content: center; padding: 0 var(--gutter); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a { font-family: var(--serif); font-size: 48px; line-height: 1.15; color: var(--ink); text-decoration: none; padding: 4px 0; }
.mobile-menu .close { position: absolute; top: 14px; right: var(--gutter); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
.hero::before { /* soft light streak */
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 120%; pointer-events: none;
  background:
    radial-gradient(60% 50% at 75% 20%, rgba(255,255,255,.10), transparent 60%),
    radial-gradient(40% 35% at 10% 0%, rgba(243,239,232,.06), transparent 70%),
    linear-gradient(115deg, transparent 40%, rgba(255,255,255,.035) 50%, transparent 60%);
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 92%); mask-image: linear-gradient(to bottom, #000 45%, transparent 92%);
}
.hero > .wrap { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-grid .hero-art { order: -1; width: min(240px, 60vw); margin: 0 0 10px; } }
.hero-art { width: min(400px, 100%); aspect-ratio: 1; margin-left: auto; position: relative; }
.hero-art canvas { width: 100%; height: 100%; display: block; }
.hero-art.small { width: 48px; margin: 0 auto 22px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--ink); font-size: 13px; margin-bottom: 26px; text-decoration: none;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: #3ecf8e; box-shadow: 0 0 10px #3ecf8e; }
.eyebrow { font-size: 14px; color: var(--muted); margin: 0 0 18px; letter-spacing: .01em; }
.display {
  margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 8vw, 104px);
  line-height: .98; letter-spacing: -.01em; text-wrap: balance; max-width: 13ch;
}
.display .muted { font-style: italic; -webkit-text-fill-color: rgba(255,255,255,.42); }
.lead { max-width: 520px; margin: 26px 0 0; font-size: 18px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.page-hero { text-align: center; padding: 160px 0 50px; }
.page-hero .display { margin: 0 auto; max-width: 14ch; font-size: clamp(48px, 7vw, 84px); }
.page-hero .lead { margin-left: auto; margin-right: auto; }
.page-hero .actions { justify-content: center; }

/* ---------- sections ---------- */
section { position: relative; }
.section { padding: 100px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head h2, h2.h2 {
  margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5vw, 60px); line-height: 1.02; letter-spacing: -.005em;
  background: linear-gradient(to right bottom, #fff 30%, rgba(255,255,255,.5)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-head p { margin: 10px 0 0; color: var(--muted); max-width: 440px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card { background: var(--bg); padding: 30px 28px 32px; transition: background .3s; position: relative; }
.card:hover { background: #070707; }
.card h3 { margin: 0 0 10px; color: var(--ink); font-family: var(--display-sans); font-size: 18px; font-weight: 500; letter-spacing: -.015em; }
.card p { margin: 0; font-size: 15px; color: var(--muted); }
.card .num { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; color: var(--faint); margin-bottom: 56px; }

/* project cards */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.projects.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .projects.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .projects, .projects.three { grid-template-columns: 1fr; } }
.project { text-decoration: none; color: inherit; display: block; }
.project-media {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(120% 90% at 30% 0%, #1a1a1a, #070707 60%); border: 1px solid var(--line);
}
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), opacity .4s; }
.project:hover .project-media img { transform: scale(1.03); }
.project:hover .project-media { border-color: var(--line-2); }
.project-media .ph { position: absolute; inset: 0; display: grid; place-items: center; }
.project-media .ph canvas { width: 44%; height: auto; aspect-ratio: 1; }
.project-meta { display: flex; justify-content: space-between; gap: 12px; padding: 16px 2px 0; align-items: baseline; }
.project-meta h3 { margin: 0; color: var(--ink); font-family: var(--display-sans); font-size: 18px; font-weight: 500; letter-spacing: -.015em; }
.project-meta .sub { color: var(--faint); font-size: 13px; white-space: nowrap; }
.project p.sum { margin: 6px 2px 0; font-size: 15px; color: var(--muted); max-width: 52ch; }
.tag { display: inline-block; font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* filter chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 0 0 40px; }
.chip { cursor: pointer; font-family: var(--sans); font-weight: 500; font-size: 13px; padding: 8px 14px; border-radius: 999px; background: transparent; color: var(--muted); border: 1px solid var(--line-2); transition: all .2s; }
.chip:hover { color: var(--ink); border-color: rgba(255,255,255,.24); }
.chip.active { background: var(--eggshell); color: #000; border-color: var(--eggshell); }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; text-align: center; border-radius: 24px; border: 1px solid var(--line);
  padding: clamp(56px, 9vw, 110px) var(--gutter);
  background: radial-gradient(70% 90% at 50% 0%, rgba(255,255,255,.09), transparent 70%), #050505;
}
.cta-band h2 {
  margin: 0 auto; max-width: 14ch; font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 6vw, 76px); line-height: 1; letter-spacing: -.005em;
  background: linear-gradient(to right bottom, #fff 30%, rgba(255,255,255,.5)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cta-band p { max-width: 460px; margin: 18px auto 0; color: var(--muted); }
.cta-band .actions { justify-content: center; }

/* prose */
.prose { max-width: 680px; margin: 0 auto; font-size: 18px; line-height: 1.7; color: var(--text); }
.prose h2 { font-family: var(--serif); font-weight: 400; color: var(--ink); font-size: 36px; letter-spacing: -.005em; margin: 52px 0 14px; line-height: 1.1; }
.prose h3 { color: var(--ink); font-family: var(--display-sans); font-weight: 500; font-size: 21px; letter-spacing: -.015em; margin: 34px 0 8px; }
.prose h4 { color: var(--ink); font-weight: 600; font-size: 17px; margin: 24px 0 6px; }
.prose p, .prose ul, .prose ol { margin: 0 0 18px; }
.prose li { margin-bottom: 4px; }
.prose a { color: var(--ink); text-decoration-color: var(--faint); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose code { font-size: .88em; background: rgba(255,255,255,.07); padding: 2px 6px; border-radius: 6px; }
.prose.legal { font-size: 16px; }
.prose.legal h2 { font-family: var(--display-sans); font-weight: 600; font-size: 19px; letter-spacing: -.01em; margin-top: 36px; }

/* team */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.person { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; gap: 14px; align-items: center; }
.avatar { width: 52px; height: 52px; border-radius: 50%; flex: none; display: grid; place-items: center; color: var(--ink); font-family: var(--serif); font-size: 24px; background: radial-gradient(circle at 30% 25%, #3a3a3a, #111); border: 1px solid var(--line-2); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { margin: 0; color: var(--ink); font-family: var(--display-sans); font-size: 17px; font-weight: 500; letter-spacing: -.015em; }
.person p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }

/* project detail */
.detail-cover { aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: radial-gradient(120% 90% at 30% 0%, #1a1a1a, #070707 60%); margin: 10px 0 56px; display: grid; place-items: center; }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-cover canvas { width: 24%; aspect-ratio: 1; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 900px; margin: 0 auto 56px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts dt { font-size: 13px; color: var(--faint); margin-bottom: 4px; }
.facts dd { margin: 0; color: var(--ink); font-weight: 500; }
.facts a { text-decoration: none; display: inline-flex; gap: 4px; align-items: center; }
@media (max-width: 620px) { .facts { grid-template-columns: repeat(2, 1fr); } }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); text-decoration: none; margin-bottom: 22px; }
.back:hover { color: var(--ink); }

/* reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- footer: giant wordmark + legal line ---------- */
.site-footer { position: relative; margin-top: 120px; padding: 0 0 28px; color: var(--faint); font-size: 13px; overflow: hidden; }
.wordmark { position: relative; display: block; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wordmark svg { display: block; width: 100%; height: auto; overflow: visible; user-select: none; }
.wordmark .wm-fill { fill: rgba(255, 255, 255, .05); }
.wordmark .wm-glow { opacity: 0; transition: opacity .5s var(--ease); }
.wordmark:hover .wm-glow, .wordmark.active .wm-glow { opacity: 1; }
.wordmark text { font-family: var(--display-sans); font-weight: 600; letter-spacing: -.055em; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.footer-bottom nav { display: flex; gap: 20px; }
.site-footer a { color: var(--muted); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--ink); }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-top: 80px; }
.notfound .display { margin: 0 auto; }
.notfound .actions { justify-content: center; }
