/* LoupeUp. Red, black and white, set in Outfit with Anton for headlines and Instrument Serif italic for pull quotes. */

@font-face { font-family: Outfit; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/outfit-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: Outfit; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/outfit-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: Outfit; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/outfit-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: Outfit; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/outfit-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: Anton; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/anton-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); }

/* Red is #D7101D (white text on it is 5.3:1). Small red text on white uses --red-text (#B80D18, 6.7:1). On black, red text uses --red-bright (#FF4452, 5.8:1). */
:root {
  color-scheme: light;
  --paper: #ffffff;
  --grey: #f1f1f1;
  --grey-2: #e2e2e2;
  --ink: #0a0a0a;
  --muted: #3d3d3d;
  --black: #141414;
  --black-deep: #070707;
  --red: #d7101d;
  --red-bright: #ff4452;
  --red-text: #b80d18;
  --line: rgba(10, 10, 10, 0.18);
  --line-strong: #0a0a0a;
  --line-dark: rgba(255, 255, 255, 0.2);
  --danger: #6f2b2b;
  --on-dark: #ffffff;
  --selection: #f7c9cd;
  --alert-on-dark: #f6d0d0;
  --ash: #d2d2d2;
  --font-sans: Outfit, "Avenir Next", "Segoe UI", sans-serif;
  --font-display: Anton, Impact, "Arial Narrow Bold", "Helvetica Neue", sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --max: 74rem;
  --header: 4.25rem;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
main { flex: 1; }
[id] { scroll-margin-top: 5.5rem; }
img, svg { max-width: 100%; display: block; }
h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: 0.008em;
  margin: 0;
}
h3, h4 { font-family: var(--font-sans); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: var(--red-text); text-underline-offset: 0.2em; text-decoration-thickness: 2px; }
a:hover { color: var(--black); }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--red); color: var(--on-dark); }

.skip { position: absolute; left: 0.75rem; top: -4rem; z-index: 80; background: var(--red); color: var(--on-dark); font-weight: 700; padding: 0.7rem 1rem; }
.skip:focus { top: 0.75rem; }

.wrap { width: min(var(--max), calc(100% - 2.5rem)); margin-inline: auto; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }

/* Small caps label. A short red bar leads it. */
.eyebrow, .facts dt, .kicker {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-text);
}
.eyebrow { display: inline-flex; align-items: center; gap: 0.7rem; }
.eyebrow::before { content: ""; flex: none; width: 2.2rem; height: 4px; background: var(--red); }
.on-dark .eyebrow, .hero .eyebrow, .band-dark .eyebrow, .contact-band .eyebrow, .band .eyebrow { color: var(--red-bright); }
.on-dark .eyebrow::before, .hero .eyebrow::before, .band-dark .eyebrow::before, .contact-band .eyebrow::before { background: var(--red-bright); }
.band-red .eyebrow { color: var(--on-dark); }
.band-red .eyebrow::before { background: var(--on-dark); }

/* Update banner */
.update-banner { background: var(--red); color: var(--on-dark); }
.update-dismissed .update-banner { display: none; }
.update-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; padding: 0.55rem 0; }
.update-banner p { margin: 0; font-size: 0.95rem; line-height: 1.4; font-weight: 500; }
.update-banner p::before { content: "Update"; display: inline-block; margin-right: 0.6rem; padding: 0.05rem 0.45rem; background: var(--black-deep); color: var(--on-dark); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; vertical-align: 0.12em; }
.update-banner a { color: var(--on-dark); font-weight: 700; }
.update-dismiss { flex: none; min-height: 2.75rem; padding: 0.4rem 0.9rem; border: 2px solid var(--on-dark); background: transparent; color: var(--on-dark); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
.update-dismiss:hover { background: var(--on-dark); color: var(--black); }
@media (max-width: 640px) { .update-banner-inner { align-items: flex-start; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--black-deep); border-bottom: 3px solid var(--red); }
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header); padding: 0.55rem 0; }
.logo { display: inline-flex; align-items: center; color: var(--on-dark); text-decoration: none; }
.logo img { height: 2.35rem; width: auto; }
.site-footer .logo img { height: 2.3rem; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; min-width: 5.5rem; border: 2px solid var(--red); background: transparent; color: var(--on-dark); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; }
.nav-toggle:hover { background: var(--red); color: var(--on-dark); }
.nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--black-deep); border-bottom: 3px solid var(--red); padding: 0.5rem 1.25rem 1.25rem; flex-direction: column; align-items: stretch; gap: 0; }
.nav-links.is-open { display: flex; z-index: 50; }
.nav-links a, .nav-logout { text-decoration: none; color: var(--on-dark); font-weight: 500; font-size: 1rem; min-height: 2.9rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line-dark); background: none; border-top: 0; border-left: 0; border-right: 0; text-align: left; cursor: pointer; display: inline-flex; align-items: center; }
.nav-links a:hover { color: var(--red-bright); }
.nav-links a[aria-current="page"] { color: var(--red-bright); }
.nav-links a.btn { color: var(--on-dark); background: var(--red); border: 2px solid var(--red); padding: 0.7rem 1.1rem; justify-content: center; margin-top: 1rem; }
.nav-links a.btn:hover { background: var(--on-dark); border-color: var(--on-dark); color: var(--black); }

/* Buttons: square, loud, with a hard offset on hover. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.8rem 1.4rem;
  border: 2px solid var(--black); border-radius: 0;
  font-family: var(--font-sans); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; line-height: 1.2; cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}
.btn:hover { transform: translate(-3px, -3px); box-shadow: 3px 3px 0 var(--red); }
.btn:active { transform: translate(0, 0); box-shadow: none; }
.btn-primary { background: var(--black); color: var(--on-dark); }
.btn-primary:hover { background: var(--black); color: var(--on-dark); }
.btn-ghost { background: transparent; color: var(--black); border-color: var(--black); }
.btn-ghost:hover { background: transparent; color: var(--black); box-shadow: 3px 3px 0 var(--black); }
.btn:disabled, button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.75rem; }
.text-link { text-underline-offset: 0.18em; }

/* Buttons on dark grounds */
.hero .btn-primary, .band-dark .btn-primary, .contact-band .btn-primary, .nav-links a.btn { background: var(--red); border-color: var(--red); color: var(--on-dark); }
.hero .btn-primary:hover, .band-dark .btn-primary:hover, .contact-band .btn-primary:hover { background: var(--red); color: var(--on-dark); box-shadow: 3px 3px 0 var(--on-dark); }
.btn-on-dark { background: transparent; color: var(--on-dark); border-color: var(--on-dark); }
.btn-on-dark:hover { background: transparent; color: var(--on-dark); box-shadow: 3px 3px 0 var(--red); }
.band-red .btn-primary { background: var(--black); border-color: var(--black); color: var(--on-dark); }
.band-red .btn-primary:hover { background: var(--black); color: var(--on-dark); box-shadow: 3px 3px 0 var(--on-dark); }
.band-red .btn-on-dark { color: var(--on-dark); border-color: var(--on-dark); }
.band-red .btn-on-dark:hover { color: var(--on-dark); box-shadow: 3px 3px 0 var(--black); }

:focus-visible { outline: 3px solid var(--red-text); outline-offset: 3px; }
.site-header :focus-visible, .hero :focus-visible, .band-dark :focus-visible, .contact-band :focus-visible, .site-footer :focus-visible, .update-banner :focus-visible { outline-color: var(--red-bright); }
.update-banner :focus-visible, .band-red :focus-visible { outline-color: var(--on-dark); }

/* Grain on dark grounds */
.hero::after, .band-dark::after, .contact-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; background-image: var(--grain); opacity: 0.07; mix-blend-mode: overlay;
}

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--black-deep); color: var(--on-dark); isolation: isolate; }
.hero-body { position: relative; z-index: 2; padding: 3.25rem 0 3rem; display: grid; gap: 1.5rem; }
.hero h1 { font-size: clamp(3.3rem, 15vw, 7rem); line-height: 0.92; max-width: 9.2em; }
.hero h1 em { font-style: normal; color: var(--red-bright); display: inline-block; }
.hero .lede { color: var(--ash); font-size: 1.2rem; margin-top: 0.4rem; }
.hero-note { color: var(--ash); font-size: 0.95rem; margin-top: 1.25rem; max-width: 34rem; }
.hero-slab { display: none; }
.hero-tag { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red-bright); }

.keywords { position: relative; z-index: 2; border-top: 1px solid var(--line-dark); background: var(--black-deep); }
.keywords ul { list-style: none; margin: 0; padding: 0.9rem 0; display: flex; flex-wrap: wrap; gap: 0.35rem 1.4rem; font-family: var(--font-display); text-transform: uppercase; font-size: 1.05rem; letter-spacing: 0.06em; color: var(--ash); }
.keywords li + li::before { content: "/"; color: var(--red-bright); margin-right: 1.4rem; }

/* Facts under the hero: oversized numerals */
.facts-strip { position: relative; z-index: 2; background: var(--red); color: var(--on-dark); }
.facts-row { display: grid; margin: 0; }
.fact { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 1.1rem; padding: 1.1rem 0; border-top: 2px solid var(--black); }
.fact:first-child { border-top: 0; }
.fact-num, .fact-text { margin: 0; }
.fact-num { font-family: var(--font-display); font-size: clamp(3.4rem, 9vw, 5.6rem); line-height: 0.9; }
.fact-text { font-size: 1rem; font-weight: 600; line-height: 1.3; max-width: 17rem; }

/* Sections */
.section { position: relative; padding: 4.5rem 0; }
.section h2 { font-size: clamp(2.5rem, 7.2vw, 5.4rem); max-width: 12em; }
.section-head { display: grid; gap: 1rem; margin-bottom: 2.5rem; }
.section-head p { max-width: 40rem; color: var(--muted); font-size: 1.1rem; }
.band-soft { background: var(--grey); }
.band-dark { position: relative; background: var(--black); color: var(--on-dark); isolation: isolate; }
.band-dark > .wrap, .contact-band > .wrap { position: relative; z-index: 2; }
.band-dark h2, .band-dark h3 { color: var(--on-dark); }
.band-dark p { color: var(--ash); }
.band-dark a:not(.btn) { color: var(--red-bright); }
.band-red { background: var(--red); color: var(--on-dark); }
.band-red h2, .band-red p { color: var(--on-dark); }
.band-red a:not(.btn) { color: var(--on-dark); font-weight: 700; }

/* Two paths */
.paths { display: grid; }
.path { display: grid; align-content: space-between; gap: 2.5rem; padding: 2.25rem 1.5rem 2rem; text-decoration: none; position: relative; min-height: 18rem; }
.path-a { background: var(--grey); color: var(--black); }
.path-b { background: var(--black); color: var(--on-dark); }
.path-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.path-a .path-label { color: var(--red-text); }
.path-b .path-label { color: var(--red-bright); }
.path-title { color: inherit; }
.path-b .path-title { color: var(--on-dark); }
.path-title { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(2.8rem, 8vw, 5rem); line-height: 0.95; letter-spacing: 0.008em; margin: 0.6rem 0 0.9rem; font-weight: 400; }
.path p { max-width: 26rem; }
.path-b p { color: var(--ash); }
.path-go { display: inline-flex; align-items: center; gap: 0.7rem; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; border-bottom: 3px solid currentColor; padding-bottom: 0.25rem; justify-self: start; }
.path-a .path-go { border-color: var(--red-text); }
.path-b .path-go { border-color: var(--red); color: var(--red-bright); }
.path:hover .path-go { gap: 1.1rem; }
.path a, a.path { color: inherit; }
a.path:hover { color: inherit; }
.path-a:hover { background: var(--grey-2); }
.path-b:hover { background: var(--black-deep); }

/* Pull quote */
.manifesto { background: var(--paper); padding: 4.5rem 0 4rem; }
.manifesto-grid { display: grid; gap: 1.5rem; }
.manifesto-mark { font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red-text); border-top: 4px solid var(--red); padding-top: 0.8rem; align-self: start; }
.manifesto-quote { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: clamp(2.2rem, 6.4vw, 4.6rem); line-height: 1.04; letter-spacing: -0.012em; margin: 0; }
.manifesto-quote span { background: linear-gradient(transparent 62%, rgba(215, 16, 29, 0.28) 62% 92%, transparent 92%); }
.manifesto-tail { margin-top: 1.75rem; max-width: 36rem; color: var(--muted); font-size: 1.1rem; }
.manifesto-sign { margin-top: 1.25rem; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; }

/* Services: sticky heading left, ruled rows right */
.services-grid { display: grid; gap: 2rem; }
.service-list { list-style: none; margin: 0; padding: 0; counter-reset: svc; border-top: 3px solid var(--black); }
.service-list li { display: grid; grid-template-columns: 3.4rem 1fr; gap: 0.2rem 1rem; padding: 1.5rem 0 1.6rem; border-bottom: 1px solid var(--line); }
.service-list li:last-child { border-bottom: 3px solid var(--black); }
.num { font-family: var(--font-display); font-size: 2.6rem; line-height: 0.95; color: var(--red-text); }
.service-list h3 { font-size: clamp(1.5rem, 3.4vw, 2rem); margin-bottom: 0.55rem; }
.service-list p { color: var(--muted); max-width: 36rem; }
.service-list li > div > p + p { margin-top: 0.6rem; }

/* Students band */
.students-grid { display: grid; gap: 2.5rem; }
.students-intro p { font-size: 1.12rem; max-width: 36rem; margin-top: 1.1rem; }
.shelf { display: grid; gap: 1.1rem; align-content: start; }
.spine { position: relative; padding: 1.5rem 1.4rem 1.5rem 1.6rem; background: var(--black-deep); border: 2px solid var(--red); border-left-width: 14px; }
.spine:nth-child(2) { background: var(--red); border-color: var(--red); border-left-color: var(--black-deep); color: var(--on-dark); }
.spine:nth-child(2) p, .spine:nth-child(2) .spine-kicker { color: var(--on-dark); }
.spine-kicker { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red-bright); }
.spine-title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.6rem, 7vw, 4.2rem); line-height: 0.95; margin: 0.35rem 0 0.7rem; letter-spacing: 0.008em; }
.spine p { font-size: 0.98rem; }
.fine { font-size: 0.86rem; color: var(--ash); }

/* Tiers: four different shapes */
.tier-grid { display: grid; gap: 1rem; }
.tier { position: relative; display: flex; flex-direction: column; padding: 1.5rem 1.4rem 1.6rem; background: var(--paper); border: 2px solid var(--black); }
.tier-label { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red-text); }
.tier h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.008em; font-size: clamp(2.1rem, 5vw, 3rem); line-height: 0.98; margin: 0.5rem 0 0.8rem; }
.tier > p { color: var(--muted); }
.tier .btn { margin-top: 1.2rem; align-self: flex-start; }
.tier-feature { background: var(--black); color: var(--on-dark); border-color: var(--black); }
.tier-feature .tier-label { color: var(--red-bright); }
.tier-feature > p, .tier-feature .pay-note { color: var(--ash); }
.tier-feature .btn-primary { background: var(--red); border-color: var(--red); color: var(--on-dark); }
.tier-feature .btn-primary:hover { background: var(--red); color: var(--on-dark); box-shadow: 3px 3px 0 var(--on-dark); }
.tier-feature h3 { font-size: clamp(2.8rem, 8vw, 5.2rem); }
.tier-feature > p:not(.pay-note):not(.tier-label) { font-size: 1.15rem; }
.tier-feature::after { content: ""; position: absolute; right: -2rem; bottom: -2.5rem; width: 62%; aspect-ratio: 1; background: url("/assets/loupe-line-red.svg") no-repeat center / contain; opacity: 0.2; pointer-events: none; }
.tier-feature > * { position: relative; z-index: 1; }
.tier-feature { overflow: hidden; }
.tier-red { background: var(--red); border-color: var(--red); }
.tier-red .tier-label, .tier-red > p, .tier-red .pay-note { color: var(--on-dark); }
.tier-red .btn-primary { background: var(--black); border-color: var(--black); }
.tier-wide { background: transparent; border-style: dashed; }
.pay-note, .trust, .hint, .file-status { color: var(--muted); font-size: 0.86rem; line-height: 1.45; }
.pay-note { margin-top: 0.65rem; }
.trust { margin-top: 0.75rem; }
.tier-trust { margin-top: 1.25rem; }

.steps { display: grid; margin-top: 3.5rem; border-top: 3px solid var(--black); counter-reset: step; }
.step { align-content: start; padding: 1.4rem 0 1.5rem; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 4.6rem 1fr; column-gap: 1rem; }
.step::before { counter-increment: step; content: counter(step); grid-row: span 2; font-family: var(--font-display); font-size: 4.2rem; line-height: 0.85; color: var(--red-text); }
.step strong { display: block; font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.01em; font-size: 1.7rem; line-height: 1; }
.step p { color: var(--muted); margin-top: 0.35rem; }

/* Workshops: a tour-date board without the dates */
.board { list-style: none; margin: 0 0 1.5rem; padding: 0; border-top: 3px solid var(--black); }
.board li { display: grid; gap: 0.35rem 2rem; padding: 1.15rem 0 1.25rem; border-bottom: 1px solid var(--line); align-items: end; }
.board-place { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(2.6rem, 9vw, 5.6rem); line-height: 0.95; margin: 0; font-weight: 400; letter-spacing: 0.008em; }
.board-note { color: var(--muted); max-width: 26rem; }
.board-tag { display: inline-block; margin-bottom: 0.4rem; padding: 0.15rem 0.55rem; background: var(--black); color: var(--on-dark); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.board-tag-red { background: var(--red); color: var(--on-dark); }
.board-fine { color: var(--muted); max-width: 44rem; }

/* Members */
.band-red.section h2 { max-width: 13em; }
.band-red.section > .wrap > p { max-width: 44rem; margin-top: 1.4rem; font-size: 1.1rem; }

/* About */
.about-grid { display: grid; gap: 2.5rem; }
.about-stat { font-family: var(--font-display); font-size: clamp(7rem, 26vw, 13rem); line-height: 0.82; color: var(--red-text); margin: 1.2rem 0 0.2rem; letter-spacing: -0.01em; }
.about-stat-cap { margin-top: 0.9rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.82rem; border-top: 4px solid var(--black); padding-top: 0.7rem; max-width: 14rem; }
.prose { display: grid; gap: 0.9rem; max-width: 42rem; }
.about-intro { margin-top: 1.4rem; font-size: 1.15rem; }
.about-intro p + p { margin-top: 0.8rem; }
.spec { margin: 0; border-top: 3px solid var(--black); }
.spec-row { display: grid; gap: 0.5rem 2rem; padding: 1.2rem 0 1.3rem; border-bottom: 1px solid var(--line); }
.spec dt { font-family: var(--font-sans); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red-text); }
.spec dd { margin: 0; color: var(--muted); }
.spec dd strong { color: var(--ink); }
.spec ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.spec li { color: var(--ink); font-weight: 500; }
.spec dd p + p { margin-top: 0.4rem; }
.spec-note { color: var(--muted); font-weight: 400; }
.spec-feature dd { font-family: var(--font-display); font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1; text-transform: uppercase; color: var(--ink); letter-spacing: 0.008em; }
.spec-feature dd span { display: block; margin-top: 0.7rem; font-family: var(--font-sans); font-size: 1.05rem; line-height: 1.55; text-transform: none; color: var(--muted); letter-spacing: 0; }

/* Contact */
.contact-band { position: relative; background: var(--black-deep); color: var(--on-dark); isolation: isolate; }
.contact-grid { display: grid; gap: 2.5rem; }
.contact-band h2 { color: var(--on-dark); font-size: clamp(3.2rem, 10vw, 7.4rem); line-height: 0.92; margin-top: 1rem; }
.contact-band .lede, .contact-band .hint, .contact-band .pay-note { color: var(--ash); }
.contact-band .lede { margin-top: 1.5rem; font-size: 1.05rem; }
.contact-band a:not(.btn) { color: var(--red-bright); }
.consult-book { display: grid; gap: 0.7rem; padding: 1.4rem 1.4rem 1.6rem; margin-top: 1.75rem; border: 2px solid var(--red); background: rgba(215, 16, 29, 0.14); }
.consult-book h3 { font-size: 1.5rem; color: var(--on-dark); }
.consult-book p { color: var(--ash); }
.consult-book .btn { justify-self: start; margin-top: 0.4rem; }
.notice { border-left: 4px solid var(--red); padding: 0.7rem 0 0.7rem 1rem; margin: 1rem 0; max-width: 42rem; font-weight: 500; }
.contact-form-wrap { background: var(--paper); color: var(--ink); padding: 1.6rem 1.4rem 1.8rem; border-top: 8px solid var(--red); }
.contact-form-wrap .notice, .contact-form-wrap .hint { color: var(--muted); }
.contact-form-wrap .form-status { color: var(--ink); }
.contact-form-wrap a:not(.btn) { color: var(--red-text); }
.form { display: grid; gap: 1.05rem; max-width: 38rem; margin-top: 1rem; }
.form label, .field { display: grid; gap: 0.4rem; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; }
.form input, .form select, .form textarea {
  width: 100%; background: var(--paper); color: var(--ink); border: 0; border-bottom: 3px solid var(--black); border-radius: 0;
  padding: 0.8rem 0.2rem 0.6rem; font-weight: 400; font-size: 1.05rem; letter-spacing: 0; text-transform: none; background-color: transparent;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-bottom-color: var(--red-text); box-shadow: 0 4px 0 -1px var(--red); }
.form textarea { min-height: 8rem; resize: vertical; border: 3px solid var(--black); padding: 0.7rem; }
.form textarea:focus { box-shadow: 4px 4px 0 var(--red); }
.password-row { display: flex; gap: 0.5rem; align-items: center; }
.password-row input { flex: 1; }
.password-row button { min-height: 2.75rem; padding: 0 0.9rem; border: 2px solid var(--black); border-radius: 0; background: var(--paper); cursor: pointer; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }
.field-error, [role="alert"] { color: var(--alert-on-dark); }
.page .field-error, .page [role="alert"], .contact-form-wrap [role="alert"] { color: var(--danger); }
.form-status { min-height: 1.4em; }
.form .btn-primary { justify-self: start; }

/* Guides library */
.filters { display: grid; gap: 1.1rem; margin: 2rem 0 1.5rem; padding: 1.2rem 0 1.4rem; border-top: 3px solid var(--black); border-bottom: 1px solid var(--line); }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { border: 2px solid var(--black); background: transparent; color: var(--ink); border-radius: 0; min-height: 2.75rem; padding: 0.4rem 1rem; cursor: pointer; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }
.chip:hover { box-shadow: 3px 3px 0 var(--red); transform: translate(-2px, -2px); }
.chip[aria-pressed="true"] { background: var(--black); color: var(--on-dark); }
.select-field { display: grid; gap: 0.35rem; max-width: 18rem; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; }
.select-field select { min-height: 2.9rem; border: 2px solid var(--black); border-radius: 0; background: var(--paper); padding: 0.4rem 0.7rem; font-weight: 500; font-size: 1rem; letter-spacing: 0; text-transform: none; }

.guide-grid { display: grid; gap: 1.25rem; }
.shelf-title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.9rem, 4.5vw, 2.8rem); letter-spacing: 0.01em; margin: 3rem 0 1.2rem; display: flex; align-items: baseline; gap: 1rem; }
.shelf-title::after { content: ""; flex: 1; height: 3px; background: var(--black); transform: translateY(-0.35em); }
.guide-card { position: relative; display: flex; flex-direction: column; background: var(--paper); }
.guide-card[hidden] { display: none; }
.guide-card h3 { font-size: 1.4rem; margin: 0.2rem 0 0.5rem; }
.guide-card > p { color: var(--muted); }
.guide-card .btn { margin-top: 0.9rem; align-self: flex-start; }
.guide-card .text-link { font-weight: 700; }
.guide-price { margin: 0.9rem 0 0; font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--ink); }
.guide-price .hint { font-family: var(--font-sans); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin-left: 0.5rem; color: var(--red-text); vertical-align: 0.5em; }

/* Featured guides: poster covers */
.is-feature { border: 2px solid var(--black); }
.is-feature .guide-cover { order: -1; }
.guide-cover { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; min-height: 15rem; padding: 1.3rem 1.3rem 1.2rem; background: var(--black); color: var(--on-dark); isolation: isolate; }
.guide-cover::before { content: ""; position: absolute; z-index: -1; right: -2.5rem; top: -1rem; bottom: -1rem; width: 30%; background: var(--red); transform: skewX(-12deg); }
.guide-cover-kicker { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red-bright); }
.guide-cover-title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.3rem, 7vw, 3.4rem); line-height: 0.95; letter-spacing: 0.008em; max-width: 64%; }
.guide-cover-meta { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ash); }
.is-feature .guide-body { padding: 1.3rem 1.3rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.is-feature .kicker { order: -1; }
.guide-card.is-student .guide-cover { background: var(--red); color: var(--on-dark); }
.guide-card.is-student .guide-cover::before { background: var(--black); }
.guide-card.is-student .guide-cover-kicker, .guide-card.is-student .guide-cover-meta { color: var(--on-dark); }
.guide-card.is-student .guide-cover-title, .guide-card.is-student .guide-cover-kicker { position: relative; z-index: 2; }
.guide-card.is-student .guide-cover-title { color: var(--on-dark); }
.guide-card.is-student .guide-cover-meta { color: var(--on-dark); position: relative; z-index: 2; align-self: flex-start; background: var(--black); padding: 0.2rem 0.55rem; }
.is-feature .btn-primary { align-self: stretch; text-align: center; }
.is-feature .file-status { margin-top: 0.8rem; }
.is-feature .btn-ghost { align-self: flex-start; }

/* Role-and-state guides: a ruled index, not cards */
.guide-index { gap: 0; border-top: 3px solid var(--black); }
.is-index { display: grid; gap: 0.3rem 2rem; padding: 1.35rem 0 1.5rem; border-bottom: 1px solid var(--line); }
.is-index .kicker { margin: 0; }
.is-index h3 { font-size: 1.5rem; }
.is-index .index-actions { display: flex; flex-wrap: wrap; gap: 0.5rem 0.9rem; align-items: center; margin-top: 0.4rem; }
.is-index .index-actions .btn { margin-top: 0; min-height: 2.6rem; padding: 0.55rem 1rem; }
.is-index .file-status { display: inline-block; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.72rem; color: var(--red-text); }
.is-index .text-link, .is-index .trust { display: none; }
.is-index .pay-note { flex-basis: 100%; margin-top: 0; }

.banner { background: var(--grey); border-left: 6px solid var(--red); padding: 1rem 1.2rem; margin: 1.2rem 0 1.5rem; }
.lock-hold { display: none; margin: 2rem 0; padding: 1rem 1.2rem; background: var(--grey); }
.members-locked .lock-hold { display: block; }
.members-locked .member-body { display: none; }

/* Footer */
.site-footer { position: relative; overflow: hidden; background: var(--black-deep); color: var(--ash); padding: 3rem 0 0; border-top: 3px solid var(--red); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; align-items: start; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
.footer-links a { min-height: 2.75rem; display: inline-flex; align-items: center; font-weight: 500; }
.site-footer a { color: var(--on-dark); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.site-footer a:hover { color: var(--red-bright); }
.legal { margin-top: 1rem; font-size: 0.92rem; max-width: 20rem; }
.site-footer::after { content: "LoupeUp"; display: block; margin: 2rem 0 -0.18em; text-align: center; font-family: var(--font-display); text-transform: uppercase; font-size: clamp(5rem, 24vw, 21rem); line-height: 0.82; letter-spacing: 0.01em; color: transparent; -webkit-text-stroke: 2px rgba(255, 68, 82, 0.55); pointer-events: none; user-select: none; }

/* Inner pages */
.page { padding: 3rem 0 5rem; background: var(--paper); }
.page h1 { font-size: clamp(2.7rem, 7.5vw, 5rem); line-height: 0.96; max-width: 14em; margin: 1rem 0 1.6rem; }
.page h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-top: 1.8rem; border-top: 3px solid var(--black); padding-top: 1rem; }
.page .prose h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-top: 1.8rem; max-width: none; }
.stack { display: grid; gap: 0.9rem; margin-top: 1rem; padding-left: 1.2rem; }
.stack li { color: var(--muted); padding-left: 0.3rem; }
.stack li::marker { color: var(--red-text); font-weight: 700; }
.member-wrap .prose { max-width: 46rem; }
.card { background: var(--grey); border: 0; border-top: 6px solid var(--red); padding: 1.3rem 1.3rem 1.4rem; }

[hidden] { display: none !important; }
[data-auth-alert]:empty { display: none; }

/* Wider screens */
@media (min-width: 720px) {
  .paths { grid-template-columns: 1.25fr 1fr; }
  .path { padding: 3rem 2.5rem 2.5rem; min-height: 24rem; }
  .facts-row { grid-template-columns: repeat(3, 1fr); }
  .fact { grid-template-columns: 1fr; row-gap: 0.4rem; padding: 1.6rem 1.5rem 1.7rem 0; border-top: 0; border-left: 2px solid var(--black); padding-left: 1.5rem; }
  .fact:first-child { border-left: 0; padding-left: 0; }
  .steps { grid-template-columns: repeat(3, 1fr); border-top-width: 3px; }
  .step { grid-template-columns: 1fr; padding: 1.6rem 1.5rem 1.8rem 0; border-bottom: 0; border-right: 1px solid var(--line); margin-right: 1.5rem; }
  .step:last-child { border-right: 0; margin-right: 0; }
  .step::before { grid-row: auto; font-size: 6rem; margin-bottom: 0.6rem; }
  .board li { grid-template-columns: 1.4fr 1fr; }
  .board li > div:first-child { grid-column: 1; }
  .spec-row { grid-template-columns: 11rem 1fr; }
  .spec-row.spec-feature { grid-template-columns: 11rem 1fr; }
  .footer-links { grid-template-columns: repeat(3, auto); }
  .guide-shelf { grid-template-columns: 1fr 1fr; }
  .is-index { grid-template-columns: 14rem 1fr auto; align-items: start; }
  .is-index > .kicker { grid-column: 1; grid-row: 1 / span 3; padding-top: 0.5rem; }
  .is-index > h3, .is-index > p, .is-index .index-actions { grid-column: 2; }
}
@media (min-width: 960px) {
  .hero-body { padding: 5.5rem 0 5.5rem; min-height: 40rem; align-content: center; }
  .hero-slab { display: block; position: absolute; z-index: 1; top: 0; bottom: 0; right: 0; width: 41%; background: var(--red); clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%); }
  .hero-slab img { position: absolute; width: 92%; max-width: none; right: -2%; bottom: -3%; }
  .hero h1 { font-size: min(7rem, 7.6vw); max-width: 7.6em; }
  .hero .lede, .hero-note { max-width: 35rem; }
  .section { padding: 7rem 0; }
  .services-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 5rem; }
  .services-grid .section-head h2 { font-size: clamp(2.4rem, 4.4vw, 3.9rem); }
  .services-grid .section-head { position: sticky; top: 7rem; align-self: start; margin-bottom: 0; }
  .manifesto { padding: 7rem 0 6rem; }
  .manifesto-grid { grid-template-columns: 11rem minmax(0, 1fr); gap: 3rem; }
  .students-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 5rem; align-items: start; }
  .shelf .spine:nth-child(2) { margin-left: 3rem; }
  .shelf .spine:nth-child(1) { margin-right: 3rem; }
  .tier-grid { grid-template-columns: repeat(12, 1fr); gap: 1.25rem; align-items: stretch; }
  .tier-single { grid-column: 1 / span 5; }
  .tier-feature { grid-column: 6 / span 7; grid-row: 1 / span 2; padding: 2.4rem 2.2rem; transform: translateY(-1.25rem); }
  .tier-red { grid-column: 1 / span 5; }
  .tier-wide { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.5rem 2rem; }
  .tier-wide > .tier-label { flex-basis: 100%; }
  .tier-wide h3 { margin: 0; }
  .tier-wide > p { flex: 1; min-width: 18rem; }
  .tier-wide .btn { margin: 0; }
  .about-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 5rem; align-items: start; }
  .contact-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 5rem; align-items: start; }
  .contact-form-wrap { padding: 2.2rem 2.2rem 2.4rem; margin-top: 0.5rem; }
  .guide-shelf { gap: 1.75rem; }
  .guide-shelf .is-feature:nth-child(even) { margin-top: 2.5rem; }
}
@media (min-width: 1180px) {
  .nav-toggle { display: none; }
  .nav-links { display: flex; position: static; flex-direction: row; align-items: center; gap: 0 1.5rem; padding: 0; border: 0; background: transparent; }
  .nav-links a, .nav-logout { min-height: 2.75rem; padding: 0.35rem 0; border-bottom: 0; font-size: 0.95rem; }
  .nav-links a.btn { padding: 0.7rem 1.2rem; margin: 0 0 0 0.4rem; font-size: 0.78rem; }
}
@media (max-width: 420px) {
  .guide-cover-title { font-size: 2.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .chip { transition: none; }
  .btn:hover, .chip:hover { transform: none; }
}
@media print {
  .site-header, .site-footer, .nav-toggle { position: static; }
  .site-footer::after { display: none; }
  .nav-links { display: flex; position: static; }
  .btn { border: 1px solid var(--ink); }
}

/* Member library row on paid guides */
.member-download { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1rem; margin-top: 1.1rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.member-download::before { content: "Member library"; flex-basis: 100%; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.member-download .file-status { margin: 0; }
.member-download .btn { margin-top: 0; min-height: 2.5rem; padding: 0.45rem 0.9rem; }
.prose > .btn { justify-self: start; }
