/* ==========================================================
   Medema Studio — medemastudio.com
   Palette: black / ink red / bone
   Type: Inter Tight 800 (display + heads), Inter (body + UI)
   Look: xerox poster. One image, one statement, red ink on black.
   ========================================================== */

/* self-hosted fonts (SIL Open Font License — see assets/fonts/LICENSES.txt) */
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/inter-tight-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
  --ink: #111111;
  --ink-2: #171717;
  --ink-3: #1d1d1d;
  --line: #262626;
  --line-2: #343434;
  --red: #db201a;
  --red-deep: #b5170f;
  --paper: #d6d2ca;
  --text: #d6d2ca;
  --text-2: #b8b3aa;
  --muted: #8a857d;

  --f-gothic: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --f-head: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;

  --wrap: 1280px;
  --gutter: 40px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* film grain over everything — subtle, no motion */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.2;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.15' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .85  0 0 0 0 .84  0 0 0 0 .82  0 0 0 2.2 -1.25'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, video { display: block; max-width: 100%; }
a { color: var(--red); }
a:hover { color: var(--text); }
::selection { background: var(--red); color: var(--ink); }

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--red); color: var(--ink); padding: 10px 14px; font-family: var(--f-mono);
  z-index: 200;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- type helpers ---------- */
.gothic { font-family: var(--f-gothic); font-weight: 900; }
.red { color: var(--red); }
.mono { font-family: var(--f-mono); }

.h-section {
  margin: 0;
  font-family: var(--f-head);
  font-weight: 400;
  font-size: clamp(46px, 6vw, 88px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 22px;
  font-family: var(--f-mono);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
  cursor: pointer;
}
.btn--red { background: var(--red); color: var(--ink); }
.btn--red:hover { background: var(--text); color: var(--ink); }
.btn--ghost { border-color: var(--text); color: var(--text); background: transparent; font-weight: 400; }
.btn--ghost:hover { background: var(--text); color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--text); }
.btn--ink:hover { background: var(--text); color: var(--ink); }

/* ---------- ticker ---------- */
.ticker {
  background: var(--red);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 16px;
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- header / nav ---------- */
.site-header { border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 18px; padding-bottom: 18px;
}
.logo { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.logo:hover { color: var(--text); }
.logo svg { color: var(--red); flex: none; }
.logo__mark { flex: none; display: block; }
.logo span { font-family: var(--f-gothic); font-weight: 800; font-size: 30px; line-height: 1; }

.nav { display: flex; align-items: center; gap: 28px; font-family: var(--f-mono); font-size: 13px; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; }
.nav a:not(.btn):hover,
.nav a[aria-current="page"] { color: var(--text); }
.nav .btn { min-height: 44px; padding: 10px 16px; font-size: 13px; }
.nav__ig { display: inline-flex; align-items: center; gap: 6px; }
.nav__ig span { display: none; }

.menu-toggle {
  display: none;
  background: none; border: 1px solid var(--line-2); color: var(--text);
  font-family: var(--f-mono); font-size: 12px; min-height: 44px; padding: 0 14px; cursor: pointer;
}

/* ---------- hero ---------- */
.hero .wrap {
  display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-end;
  padding-top: 56px; padding-bottom: 72px;
}
.hero__copy { flex: 1 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero__kicker {
  margin: 0; font-family: var(--f-mono); font-weight: 400; font-size: 13px;
  color: var(--red); letter-spacing: 0.04em; text-transform: lowercase;
}
.hero__title {
  margin: 0; font-family: var(--f-gothic); font-weight: 900;
  font-size: clamp(68px, 8.6vw, 136px); line-height: 0.86; letter-spacing: -0.01em;
}
.hero__lede { margin: 0; max-width: 480px; font-size: 20px; line-height: 1.5; color: var(--text-2); }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.collage {
  flex: 1 1 420px; min-width: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(6, minmax(56px, 72px));
}
.collage__a { grid-column: 1 / 5; grid-row: 1 / 5; border: 1px solid var(--line-2); }
.collage__b { grid-column: 4 / 7; grid-row: 3 / 7; border: 1px solid var(--line-2); box-shadow: -12px -12px 0 var(--ink); }
.collage__c {
  grid-column: 1 / 3; grid-row: 5 / 7; background: var(--red); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}

/* ---------- media boxes (image/video or halftone placeholder) ---------- */
.media { position: relative; overflow: hidden; background-color: var(--ink-3); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.media--ph-red { background-image: radial-gradient(rgba(255, 42, 31, .32) 1.2px, transparent 1.7px); background-size: 6px 6px; }
.media--ph-paper { background-image: radial-gradient(rgba(237, 230, 216, .2) 1.2px, transparent 1.7px); background-size: 5px 5px; }
.ratio-45 { aspect-ratio: 4 / 5; }

/* ---------- services strip ---------- */
.strip {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; white-space: nowrap; padding: 14px 0;
  font-family: var(--f-head); font-size: 34px; letter-spacing: 0.02em; text-transform: uppercase;
}
.strip ul { list-style: none; margin: 0; padding: 0 0 0 40px; display: inline-flex; gap: 18px; }
.strip li { display: inline-flex; gap: 18px; }
.strip li + li::before { content: "✶"; color: var(--red); }

/* ---------- sections ---------- */
.section { padding: 96px 0 64px; }
.section .wrap { display: flex; flex-direction: column; gap: 40px; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section__link { font-family: var(--f-mono); font-size: 14px; }

/* before / after */
.ba-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
.ba { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ba__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.ba__pair .media { border: 1px solid var(--line); }
.ba__pair .media.is-after { border-color: var(--red); }
.tag {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-family: var(--f-mono); font-size: 11px; padding: 3px 6px;
  background: var(--ink); color: var(--muted);
}
.is-after .tag { background: var(--red); color: var(--ink); font-weight: 600; }
.ba figcaption { font-family: var(--f-mono); font-size: 12px; color: var(--muted); text-transform: uppercase; }
.ba figcaption a { color: var(--muted); }
.ba figcaption a:hover { color: var(--red); }

/* how we work — paper section */
.paper {
  background-color: var(--paper);
  color: var(--ink);
  background-image: radial-gradient(rgba(22, 22, 22, .07) 1px, transparent 1.4px);
  background-size: 4px 4px;
}
.paper .section__accent { font-family: var(--f-gothic); font-weight: 900; text-transform: none; color: var(--red-deep); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.step { display: flex; flex-direction: column; gap: 14px; }
.step .media { aspect-ratio: 4 / 3; background-color: var(--ink); }
.step .media img { width: 100%; height: 100%; object-fit: cover; }
.step h3 { margin: 0; font-family: var(--f-head); font-weight: 400; font-size: 36px; line-height: 1; }
.step p { margin: 0; font-size: 16px; line-height: 1.5; }

/* work grid */
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.work-grid--home { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile {
  display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  aspect-ratio: 4 / 5; position: relative; overflow: hidden;
  background-color: var(--ink-3);
}
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, filter .4s ease; }
.tile::after {
  content: ""; position: absolute; inset: 0; border: 2px solid transparent; transition: border-color .15s ease; pointer-events: none;
}
.tile:hover::after, .tile:focus-visible::after { border-color: var(--red); }
.tile:hover img, .tile:hover video { transform: scale(1.03); }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary {
  cursor: pointer; list-style: none;
  font-family: var(--f-mono); font-size: 17px; font-weight: 600;
  display: flex; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "[+]"; color: var(--red); flex: none; }
.faq details[open] summary::before { content: "[–]"; }
.faq p { margin: 14px 0 0 44px; max-width: 720px; font-size: 16px; line-height: 1.6; color: var(--text-2); }

/* final cta */
.cta { background: var(--red); color: var(--ink); }
.cta .wrap { padding-top: 96px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-end; justify-content: space-between; }
.cta__copy { flex: 1 1 520px; display: flex; flex-direction: column; gap: 16px; }
.cta h2 { margin: 0; font-family: var(--f-gothic); font-weight: 900; font-size: clamp(64px, 9vw, 140px); line-height: 0.88; }
.cta p { margin: 0; font-size: 18px; }
.cta .cta__ig { font-family: var(--f-mono); font-size: 14px; }
.cta .cta__ig a { color: var(--ink); font-weight: 600; }
.cta .cta__ig a:hover { color: var(--text); }
.cta .btn { font-size: 17px; padding: 20px 28px; }

/* footer */
.site-footer .wrap {
  padding-top: 32px; padding-bottom: 48px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px;
  font-family: var(--f-mono); font-size: 13px; color: var(--muted);
}
.site-footer .logo span { font-size: 24px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* archive page */
.page-title { margin: 0; font-family: var(--f-gothic); font-weight: 900; font-size: clamp(72px, 9vw, 140px); line-height: 0.86; }
.archive { padding: 56px 0 96px; }
.archive .wrap { display: flex; flex-direction: column; gap: 32px; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(10, 10, 10, .96);
  display: none; align-items: center; justify-content: center; padding: 32px;
}
.lightbox.is-open { display: flex; }
.lightbox__stage { display: flex; align-items: center; justify-content: center; max-width: 100%; max-height: 100%; }
.lightbox__stage.media--ph-red { height: min(86vh, 960px); aspect-ratio: 4 / 5; background-color: var(--ink-3); }
.lightbox__stage img, .lightbox__stage video { display: block; max-width: 100%; max-height: 88vh; width: auto; height: auto; background: var(--ink); }
.lightbox__close {
  position: absolute; top: 18px; right: 20px;
  background: none; border: 1px solid var(--text); color: var(--text);
  font-family: var(--f-mono); font-size: 13px; min-height: 44px; padding: 0 16px; cursor: pointer;
}
.lightbox__close:hover { background: var(--text); color: var(--ink); }

/* 404 */
.notfound { min-height: 70vh; display: flex; align-items: center; }
.notfound .wrap { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.notfound svg { color: var(--red); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  :root { --gutter: 16px; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav__ig span { display: inline; }
  .nav .btn { margin-top: 14px; min-height: 52px; font-size: 15px; }
  .logo span { font-size: 24px; }
  .logo svg { width: 32px; height: 16px; }
  .site-header .logo__mark { width: 34px; height: 34px; }

  .hero .wrap { padding-top: 32px; padding-bottom: 40px; gap: 28px; }
  .hero__kicker { font-size: 11px; }
  .hero__lede { font-size: 17px; }
  .hero__ctas .btn { flex: 1 1 100%; min-height: 52px; }
  .collage { grid-template-rows: repeat(6, 48px); }

  .strip { font-size: 26px; padding: 10px 0; }
  .strip ul { padding-left: 16px; }

  .section { padding: 56px 0 40px; }
  .section .wrap { gap: 24px; }
  .ba-grid { grid-template-columns: 1fr; gap: 28px; }
  .step h3 { font-size: 28px; }
  .step .media { margin-bottom: 8px; }
  .steps { gap: 0; }
  .step { gap: 4px; border-top: 1px solid var(--ink); padding: 12px 0; }

  .work-grid, .work-grid--home { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .faq summary { font-size: 15px; }
  .faq p { margin-left: 0; font-size: 15px; }

  .cta .wrap { padding-top: 56px; padding-bottom: 56px; gap: 20px; }
  .cta .btn { width: 100%; min-height: 56px; }
  .lightbox { padding: 64px 12px 12px; }
  .lightbox__stage img, .lightbox__stage video { max-height: calc(100vh - 88px); }
  .ticker { font-size: 10px; gap: 16px; }
  .ticker .stamp { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile img, .tile video { transition: none; }
}

/* intake page */
.intake { padding: 56px 0 96px; }
.intake .wrap { display: flex; flex-direction: column; gap: 24px; }
.intake__lede { margin: 0; max-width: 560px; font-size: 18px; color: var(--text-2); }
.intake__form { background: var(--paper); padding: 8px; min-height: 760px; }
.intake__form iframe { display: block; width: 100%; min-height: 750px; border: 0; }
.intake__alt { font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.intake__alt a { color: var(--red); }

/* ---------- article pages (services + case studies) ---------- */
.kicker { margin: 0; font-family: var(--f-mono); font-size: 13px; color: var(--red); letter-spacing: 0.04em; }
.breadcrumb { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }
.article { padding: 48px 0 96px; }
.article .wrap { display: flex; flex-direction: column; gap: 24px; }
.article .page-title { font-size: clamp(60px, 8vw, 128px); }
.article__lede { margin: 0; max-width: 720px; font-size: 21px; line-height: 1.5; color: var(--text-2); }
.article__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.article__h { margin-top: 48px; }
.tags { margin: 0; font-family: var(--f-mono); font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.prose { max-width: 760px; margin-top: 24px; }
.prose h2 { margin: 44px 0 14px; font-family: var(--f-head); font-weight: 400; font-size: 40px; line-height: 1; text-transform: uppercase; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 14px; font-size: 17px; line-height: 1.7; color: var(--text-2); }
.prose a { color: var(--red); }
.checklist, .steps-list { margin: 0 0 14px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.checklist li, .steps-list li { font-size: 17px; line-height: 1.6; color: var(--text-2); padding-left: 28px; position: relative; }
.checklist li::before { content: "✶"; position: absolute; left: 0; color: var(--red); }
.steps-list li { padding-left: 0; }
.checklist strong, .steps-list strong { color: var(--text); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-top: 16px; }
.stat, .result-card { background: var(--ink-2); border: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.stat__num { margin: 0; font-family: var(--f-head); font-size: 52px; line-height: 1; color: var(--text); }
.stat__label { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.stats__note { margin: 0; font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.result-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.result-card { text-decoration: none; color: inherit; transition: border-color .15s ease; }
.result-card:hover { border-color: var(--red); color: inherit; }
.related { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.related .kicker { grid-column: 1 / -1; }
.related__card { display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: border-color .15s ease; }
.related__card:hover { border-color: var(--red); color: var(--text); }
.related__name { font-family: var(--f-head); font-size: 28px; text-transform: uppercase; line-height: 1; }
.related__meta { font-family: var(--f-mono); font-size: 12px; color: var(--red); }
.article .faq { max-width: 860px; }

/* about block (home) */
.about { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.about__copy { flex: 1 1 520px; display: flex; flex-direction: column; gap: 14px; }
.about__copy p { margin: 0; font-size: 18px; line-height: 1.7; color: var(--text-2); max-width: 720px; }
.about__links { flex: 1 1 280px; display: flex; flex-direction: column; gap: 10px; }

/* footer links */
.footer-links { width: 100%; display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.footer-links a { color: var(--muted); }

@media (max-width: 860px) {
  .article { padding: 32px 0 56px; }
  .article__lede { font-size: 18px; }
  .article__ctas .btn { flex: 1 1 100%; min-height: 52px; }
  .prose h2 { font-size: 32px; }
  .stat__num { font-size: 42px; }
  .related__name { font-size: 24px; }
}

/* ---------- field notes (blog) ---------- */
.post__title { margin: 0; max-width: 980px; font-family: var(--f-gothic); font-weight: 900; font-size: clamp(44px, 5.6vw, 84px); line-height: 0.95; }
.post__meta { margin: 0; font-family: var(--f-mono); font-size: 12px; color: var(--muted); text-transform: lowercase; }
.post .prose { margin-top: 16px; }
.post__sign { max-width: 760px; margin-top: 24px; padding: 20px 24px; border-left: 3px solid var(--red); background: var(--ink-2); }
.post__sign p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; margin-top: 16px; }
.note-card { display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 1px solid var(--line); background: var(--ink-2); text-decoration: none; color: var(--text); transition: border-color .15s ease; }
.note-card:hover { border-color: var(--red); color: var(--text); }
.note-card__title { margin: 0; font-family: var(--f-head); font-weight: 400; font-size: 30px; line-height: 1.05; text-transform: uppercase; }
.note-card__lede { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-2); }
@media (max-width: 860px) { .note-card { padding: 20px; } .note-card__title { font-size: 24px; } }

/* ==========================================================
   Xerox poster layer (Nov 2026 rebrand)
   Rule: one image, one statement, red ink on black. No extra UI.
   ========================================================== */

/* red type sits soft on the page, like cheap print */
.ink, .hero__title, .page-title, .post__title, .h-section, .cta h2, .logo span {
  filter: blur(.6px);
  text-shadow: 0 0 1.5px rgba(219, 32, 26, .8), 0 0 .06em rgba(219, 32, 26, .2);
}
.ink { color: var(--red); }

/* display type: heavy, tight, uppercase */
.h-section, .page-title, .post__title, .cta h2, .step h3, .prose h2,
.related__name, .note-card__title, .stat__num {
  font-family: var(--f-head); font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.05em; line-height: .88;
}
.h-section { color: var(--red); font-size: clamp(44px, 6.2vw, 96px); }
.h-section .red, .paper .section__accent { color: inherit; }
.page-title, .post__title { color: var(--red); }
.page-title { font-size: clamp(60px, 9vw, 150px); }
.post__title { font-size: clamp(42px, 5.6vw, 88px); line-height: .9; letter-spacing: -0.045em; }
.step h3, .related__name, .note-card__title { letter-spacing: -0.03em; line-height: .95; }
.prose h2 { color: var(--text); letter-spacing: -0.035em; line-height: .95; }
.stat__num { color: var(--red); letter-spacing: -0.04em; }

/* small labels: plain, uppercase, no code-comment styling */
.kicker, .hero__kicker, .breadcrumb, .post__meta, .tags, .section__link,
.related__meta, .stats__note, .ba figcaption, .intake__alt, .site-footer .wrap {
  font-family: var(--f-mono); font-weight: 600; font-size: 12px;
  letter-spacing: .08em; text-transform: uppercase;
}
.kicker { color: var(--red); }

/* header: name left, three links right */
.site-header { border-bottom: 0; }
.site-header .wrap { padding-top: 26px; padding-bottom: 26px; }
.logo span { font-family: var(--f-head); font-weight: 800; font-size: 16px; letter-spacing: -0.01em; text-transform: uppercase; color: var(--red); }
.site-footer .logo span { font-size: 16px; }
.nav { gap: 28px; font-family: var(--f-mono); font-weight: 600; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; }
.nav a, .nav a:not(.btn) { color: var(--text); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--red); }
.menu-toggle { font-family: var(--f-mono); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; border-color: var(--line-2); }

/* buttons: flat, uppercase, no brackets */
.btn { font-family: var(--f-mono); font-weight: 600; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; border-radius: 0; }
.btn--red { background: var(--red); color: var(--ink); }
.btn--red:hover { background: var(--text); }
.btn--ghost { font-weight: 600; border-color: var(--line-2); }
.btn--ink { background: var(--ink); color: var(--text); }

/* ---------- home hero ---------- */
.home .site-header { position: absolute; top: 0; left: 0; right: 0; background: transparent; }
.hero { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; }
.hero__photo {
  position: absolute; top: 0; right: 0; bottom: 0; width: 64%; z-index: 0;
  background: url("../media/hero/hero-xerox.webp") 30% 50% / auto 100% no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%), linear-gradient(0deg, transparent 0%, #000 16%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 34%), linear-gradient(0deg, transparent 0%, #000 16%, #000 82%, transparent 100%);
  mask-composite: intersect;
}
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 55% 45%, transparent 55%, rgba(0,0,0,.55)); }
.hero .wrap.hero__inner {
  position: relative; z-index: 2; display: block;
  padding-top: clamp(150px, 22vh, 230px); padding-bottom: 140px;
}
.hero__title {
  margin: 0; font-family: var(--f-head); font-weight: 800; text-transform: uppercase; color: var(--red);
  font-size: clamp(56px, 8.4vw, 150px); line-height: .86; letter-spacing: -0.055em; max-width: 11ch;
}
.hero__label { margin: clamp(34px, 5vh, 58px) 0 0; font-family: var(--f-head); font-weight: 800; font-size: clamp(14px, 1.25vw, 19px); text-transform: uppercase; letter-spacing: -0.01em; }
.hero__answer { margin: 10px 0 0; max-width: 16em; font-family: var(--f-head); font-weight: 800; font-size: clamp(26px, 2.9vw, 46px); line-height: 1.02; letter-spacing: -0.035em; }
.hero__cta {
  display: inline-block; margin-top: clamp(30px, 4.5vh, 48px); padding-bottom: 5px;
  font-family: var(--f-mono); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text); text-decoration: none; border-bottom: 1px solid currentColor;
}
.hero__cta:hover { color: var(--red); }
.hero__corners {
  position: absolute; left: 0; right: 0; bottom: clamp(18px, 2.6vw, 36px); z-index: 2;
  display: flex; justify-content: space-between;
  font-family: var(--f-head); font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: -0.01em;
}
.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; }

/* ---------- sections ---------- */
.section { padding: 120px 0 72px; }
.paper { background: var(--ink); color: var(--text); background-image: none; }
.step p { color: var(--text-2); }

/* images print in black and white; the real color shows on hover */
.tile img, .tile video, .step .media img, .ba__pair img {
  filter: grayscale(1) contrast(1.25) brightness(.95);
}
.tile:hover img, .tile:hover video, .tile:focus-visible img, .tile:focus-visible video { filter: none; }
.ba__pair .media.is-after img { filter: none; }
.tile:hover::after, .tile:focus-visible::after { border-color: var(--red); }

.faq summary { font-family: var(--f-head); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; text-transform: none; }
.faq summary::before { content: "+"; }
.faq details[open] summary::before { content: "–"; }
.faq p { margin-left: 26px; }

/* one red field: the closing call */
.cta { background: var(--red); color: var(--ink); }
.cta h2 { color: var(--ink); font-size: clamp(60px, 9vw, 150px); text-shadow: none; }
.cta .btn--ink { background: var(--ink); color: var(--text); }
.cta .btn--ink:hover { background: var(--text); color: var(--ink); }

.stat, .result-card, .related__card, .note-card { background: transparent; border-color: var(--line); }
.post__sign { background: transparent; }

@media (max-width: 860px) {
  .home .site-header { position: absolute; }
  .home .nav { background: var(--ink); }
  .hero__photo {
    width: 100%; bottom: auto; height: 62vh; background-position: 40% 30%; background-size: cover;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 52%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 52%, transparent 100%);
    -webkit-mask-composite: source-over; mask-composite: add;
  }
  .hero { min-height: 0; }
  .hero .wrap.hero__inner { padding-top: 40vh; padding-bottom: 32px; }
  .hero__title { font-size: clamp(50px, 15.5vw, 96px); }
  .hero__corners { position: relative; bottom: auto; padding-bottom: 28px; font-size: 13px; }
  .section { padding: 64px 0 40px; }
  .faq summary { font-size: 17px; }
}
.paper .section__accent { font-family: inherit; font-weight: inherit; text-transform: inherit; }
.paper .btn--ink { background: var(--red); color: var(--ink); }
.paper .btn--ink:hover { background: var(--text); color: var(--ink); }
.post__title { font-size: clamp(38px, 4.6vw, 72px); }
