/* =========================================================
   The Portrait Field Manual
   A dark editorial course theme, built to be read and printed.
   ========================================================= */

:root {
  --ink: #09080a;
  --ink-2: #0d0b0e;
  --panel: #121014;
  --panel-2: #171318;
  --bone: #f1eae0;
  --bone-dim: #d4cabe;
  --muted: #a2988d;
  --faint: #6f665f;
  --line: #2a242a;
  --line-strong: #3b323a;
  --blood: #b33a3a;
  --blood-deep: #7f2424;
  --gold: #c7a86a;
  --teal: #4f817b;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --max: 1240px;
  --gutter: clamp(1.1rem, 4vw, 4rem);
  --header-h: 66px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 800px at 82% -10%, rgba(179, 58, 58, 0.10), transparent 60%),
    radial-gradient(900px 700px at -10% 35%, rgba(79, 129, 123, 0.055), transparent 55%),
    var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--blood);
  color: #fff;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--bone); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }

h1, h2, h3, h4, p { margin-top: 0; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.02;
}

h2 { font-size: clamp(2.4rem, 5.4vw, 5rem); }
h3 { font-size: clamp(1.55rem, 2.5vw, 2.15rem); line-height: 1.1; }
h4 { font-size: 1.03rem; line-height: 1.25; }

p { color: var(--bone-dim); }
strong { color: var(--bone); font-weight: 600; }
em { font-style: italic; }

code, kbd, samp {
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--gold);
  background: rgba(199, 168, 106, 0.08);
  border: 1px solid rgba(199, 168, 106, 0.16);
  border-radius: 3px;
  padding: 0.08em 0.32em;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

.container {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -100px;
  z-index: 10000;
  background: var(--bone);
  color: var(--ink);
  padding: 0.65rem 1rem;
  text-decoration: none;
  font-weight: 600;
  border-radius: 2px;
}
.skip-link:focus { top: 1rem; }

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(241, 234, 224, 0.10);
  background: rgba(9, 8, 10, 0.86);
  backdrop-filter: blur(18px) saturate(120%);
}

.header-inner {
  width: min(100% - (var(--gutter) * 2), 1480px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--bone);
}
.brand-mark {
  width: 10px;
  height: 10px;
  background: var(--blood);
  display: inline-block;
  transform: rotate(45deg);
  box-shadow: 0 0 18px rgba(179, 58, 58, 0.55);
}
.brand span:last-child { color: var(--faint); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }

.site-nav a {
  display: inline-block;
  padding: 0.4rem 0.55rem;
  font-size: 0.76rem;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover,
.site-nav a.is-active {
  color: var(--bone);
  border-bottom-color: var(--blood);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-left: 0.35rem;
  white-space: nowrap;
}

.progress-pill {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
}
.progress-pill b { color: var(--gold); font-weight: 500; }

.print-btn {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--bone-dim);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.48rem 0.72rem;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.print-btn:hover {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}

.menu-toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--bone);
  width: 38px;
  height: 34px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
}

.header-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: transparent;
}
.header-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blood-deep), var(--blood), var(--gold));
  transition: width 280ms ease;
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: end;
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(9, 8, 10, 0) 40%, var(--ink) 96%),
    repeating-linear-gradient(90deg, rgba(241, 234, 224, 0.036) 0 1px, transparent 1px 9.5vw);
  mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
}

.hero::after {
  content: "01";
  position: absolute;
  right: -0.04em;
  top: 12%;
  z-index: -1;
  font-family: var(--serif);
  font-size: clamp(18rem, 38vw, 38rem);
  line-height: 0.7;
  color: transparent;
  -webkit-text-stroke: 1px rgba(241, 234, 224, 0.08);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(250px, 0.45fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.4rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.5;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blood);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--blood);
  display: inline-block;
}

.hero h1 {
  max-width: 10.5ch;
  margin-bottom: 2.4rem;
  font-size: clamp(3.8rem, 9.8vw, 9.8rem);
  line-height: 0.84;
  letter-spacing: -0.055em;
}
.hero h1 em {
  color: var(--blood);
  font-style: italic;
  padding-right: 0.06em;
}

.hero-lede {
  max-width: 56ch;
  margin-bottom: 2rem;
  font-size: clamp(1.03rem, 1.6vw, 1.24rem);
  line-height: 1.65;
  color: var(--bone-dim);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.72rem 1.05rem;
  border: 1px solid var(--line-strong);
  color: var(--bone);
  font-family: var(--mono);
  font-size: 0.69rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--blood);
  border-color: var(--blood);
  color: #fff;
}
.btn-primary:hover {
  background: var(--bone);
  border-color: var(--bone);
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}

.hero-aside {
  border-left: 1px solid var(--line);
  padding-left: clamp(1rem, 2vw, 1.8rem);
  padding-bottom: 0.5rem;
}
.hero-aside .label {
  margin-bottom: 0.8rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}
.hero-aside p {
  margin-bottom: 1.1rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted);
}
.hero-aside .signature {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--bone);
  letter-spacing: -0.01em;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero-stats div {
  padding: 1rem 1rem 1rem 0;
  border-right: 1px solid var(--line);
}
.hero-stats div:last-child { border-right: 0; }
.hero-stats b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 400;
  color: var(--bone);
  line-height: 1;
}
.hero-stats span {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------------- Generic sections ---------------- */

.section {
  padding: clamp(4rem, 8vw, 8rem) 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  align-items: end;
}
.section-head h2 { margin-bottom: 0; max-width: 12ch; }
.section-head .section-intro {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--bone-dim);
}

.small {
  font-size: 0.84rem;
  color: var(--muted);
}

.mono-label {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blood);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.card {
  padding: clamp(1.2rem, 2.5vw, 1.8rem);
  background: linear-gradient(180deg, rgba(23, 19, 24, 0.92), rgba(15, 13, 16, 0.92));
  border: 1px solid var(--line);
}
.card h3, .card h4 { margin-bottom: 0.7rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .card-label {
  display: block;
  margin-bottom: 0.7rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.note {
  border-left: 2px solid var(--blood);
  padding: 0.2rem 0 0.2rem 1rem;
  color: var(--bone-dim);
}
.note p:last-child { margin-bottom: 0; }

.pullquote {
  margin: 2rem 0;
  padding: 1.4rem 0 1.4rem 1.4rem;
  border-left: 2px solid var(--gold);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1.25;
  color: var(--bone);
}
.pullquote cite {
  display: block;
  margin-top: 0.8rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

ul.clean, ol.clean {
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
}
ul.clean li, ol.clean li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.62rem;
  color: var(--bone-dim);
}
ul.clean li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 5px;
  height: 5px;
  background: var(--blood);
  transform: rotate(45deg);
}
ol.clean { counter-reset: item; }
ol.clean li { counter-increment: item; padding-left: 2rem; }
ol.clean li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.05em;
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--blood);
}

/* ---------------- Quick start ---------------- */

.quickstart {
  background:
    linear-gradient(180deg, rgba(179, 58, 58, 0.05), transparent 28%),
    var(--ink-2);
}

.quick-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.quick-list {
  counter-reset: q;
  list-style: none;
  margin: 0;
  padding: 0;
}
.quick-list li {
  counter-increment: q;
  display: grid;
  grid-template-columns: 2.3rem minmax(0, 1fr);
  gap: 0.9rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.quick-list li::before {
  content: "0" counter(q);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--blood);
  padding-top: 0.25rem;
}
.quick-list h4 { margin-bottom: 0.25rem; }
.quick-list p { margin-bottom: 0; font-size: 0.94rem; color: var(--muted); }

.quick-aside {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}
.quick-aside .card { border-color: rgba(179, 58, 58, 0.34); }
.quick-aside .big-number {
  font-family: var(--serif);
  font-size: clamp(4rem, 8vw, 6.5rem);
  line-height: 0.8;
  color: var(--blood);
  margin-bottom: 0.8rem;
}
.quick-aside .big-number span {
  font-size: 0.28em;
  font-family: var(--mono);
  letter-spacing: 0.1em;
  color: var(--faint);
  vertical-align: middle;
}

/* ---------------- Gear ---------------- */

.gear-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.gear-card {
  border: 1px solid var(--line);
  padding: 1.25rem;
  background: var(--panel);
}
.gear-card .gear-index {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--faint);
  letter-spacing: 0.12em;
}
.gear-card h3 {
  font-size: 1.45rem;
  margin: 0.55rem 0 0.65rem;
}
.gear-card p { font-size: 0.92rem; color: var(--muted); margin-bottom: 0.7rem; }
.gear-card ul { margin: 0; padding-left: 1rem; font-size: 0.9rem; color: var(--bone-dim); }
.gear-card li { margin-bottom: 0.35rem; }

.gear-spec {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 1.5rem 0 0;
  border: 1px solid var(--line);
  background: var(--line);
}
.gear-spec div {
  background: var(--ink-2);
  padding: 1rem;
}
.gear-spec b {
  display: block;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 400;
  color: var(--bone);
}
.gear-spec span {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.table-wrap {
  margin: 1.5rem 0 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--panel);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  font-size: 0.9rem;
}
th, td {
  padding: 0.8rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
th {
  font-family: var(--mono);
  font-size: 0.59rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(241, 234, 224, 0.025);
  font-weight: 500;
}
tr:last-child td { border-bottom: 0; }
td strong { color: var(--bone); }
td .tag {
  display: inline-block;
  margin: 0 0.25rem 0.2rem 0;
  padding: 0.08rem 0.38rem;
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.price { white-space: nowrap; color: var(--gold); font-family: var(--mono); font-size: 0.82rem; }

.setup-card {
  margin-top: 1.5rem;
  border: 1px solid rgba(199, 168, 106, 0.22);
  background:
    linear-gradient(135deg, rgba(199, 168, 106, 0.07), transparent 45%),
    var(--panel);
  padding: clamp(1.2rem, 2.5vw, 1.8rem);
}
.setup-card h3 { font-size: 1.6rem; margin-bottom: 0.75rem; }
.setup-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.setup-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding: 0.48rem 0;
  font-size: 0.88rem;
}
.setup-list span:first-child { color: var(--muted); }
.setup-list span:last-child { color: var(--bone); font-family: var(--mono); font-size: 0.78rem; text-align: right; }

/* ---------------- Modules ---------------- */

.curriculum {
  padding-top: clamp(2rem, 4vw, 3rem);
}

.module {
  padding: clamp(3rem, 6vw, 6rem) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.module:first-of-type { border-top: 0; }

.module-head {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr) 150px;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start;
}
.module-number {
  font-family: var(--serif);
  font-size: clamp(3.1rem, 5.8vw, 5.3rem);
  line-height: 0.7;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  user-select: none;
}
.module-kicker {
  margin-bottom: 0.5rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blood);
}
.module-head h2 {
  max-width: 17ch;
  margin-bottom: 0.65rem;
  font-size: clamp(2.2rem, 4.5vw, 4.2rem);
}
.module-deck {
  max-width: 62ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
}
.module-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  justify-content: flex-end;
  padding-top: 0.25rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.module-check input {
  appearance: none;
  width: 17px;
  height: 17px;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  position: relative;
  flex: 0 0 auto;
  transition: background 160ms ease, border-color 160ms ease;
}
.module-check input:checked {
  background: var(--blood);
  border-color: var(--blood);
}
.module-check input:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.module-check input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.module-body {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.6fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  margin-top: clamp(2rem, 4vw, 3.2rem);
  padding-left: calc(105px + clamp(1rem, 3vw, 2.5rem));
}

.module-rail {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.one-idea {
  border-top: 2px solid var(--blood);
  padding-top: 1rem;
}
.one-idea .label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--mono);
  font-size: 0.57rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blood);
}
.one-idea p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.25;
  color: var(--bone);
}

.field-note {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 1rem;
}
.field-note .label {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.field-note p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
}
.field-note ul {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.86rem;
  color: var(--muted);
}
.field-note li { margin-bottom: 0.25rem; }

.module-content { min-width: 0; }
.module-content > *:first-child { margin-top: 0; }
.module-content h3 {
  margin: 2rem 0 0.85rem;
  font-size: 1.55rem;
}
.module-content h3:first-child { margin-top: 0; }
.module-content h4 {
  margin: 1.3rem 0 0.45rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.module-content p { margin-bottom: 1rem; }
.module-content ul, .module-content ol { margin: 0 0 1.2rem; }
.module-content li { margin-bottom: 0.5rem; color: var(--bone-dim); }
.module-content li::marker { color: var(--blood); }

.watch-list {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 2rem;
}
.video-card {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  border: 1px solid var(--line);
  background: var(--panel);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}
.video-card:hover {
  border-color: var(--line-strong);
  background: var(--panel-2);
  transform: translateY(-1px);
}
.video-thumb {
  position: relative;
  overflow: hidden;
  background: #000;
}
.video-thumb img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: grayscale(0.3) contrast(1.04) brightness(0.82);
  transition: filter 220ms ease, transform 300ms ease;
}
.video-card:hover .video-thumb img {
  filter: grayscale(0) contrast(1.06) brightness(0.92);
  transform: scale(1.025);
}
.play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.62rem;
  padding-left: 2px;
  background: rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(3px);
}
.video-info { padding: 0.8rem 0.95rem; }
.video-meta {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.video-info h4 {
  margin: 0 0 0.32rem;
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--bone);
}
.video-info p {
  margin: 0;
  font-size: 0.81rem;
  line-height: 1.45;
  color: var(--muted);
}
.video-timestamps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.35rem;
}
.video-timestamps span {
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.04em;
  color: var(--faint);
  border: 1px solid var(--line);
  padding: 0.03rem 0.28rem;
}

.drill {
  margin-top: 1.8rem;
  padding: 1.2rem 1.3rem;
  border: 1px solid rgba(79, 129, 123, 0.32);
  background: linear-gradient(135deg, rgba(79, 129, 123, 0.075), transparent 60%), var(--panel);
}
.drill h3 {
  margin: 0 0 0.65rem;
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}
.drill ol, .drill ul { margin-bottom: 0; }
.drill li { font-size: 0.92rem; }
.drill .done {
  margin: 0.8rem 0 0;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.drill .done b { color: var(--gold); }

.settings-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
  margin: 1rem 0 1.4rem;
}
.settings-row div {
  background: var(--ink-2);
  padding: 0.8rem;
}
.settings-row span {
  display: block;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.15rem;
}
.settings-row b {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--bone);
}

/* ---------------- Plans / shoot / business ---------------- */

.plan-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.week-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line);
}
.week-list li {
  position: relative;
  padding: 0 0 1.6rem 1.5rem;
}
.week-list li::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 0.5rem;
  width: 7px;
  height: 7px;
  background: var(--blood);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--ink);
}
.week-list .week-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blood);
  margin-bottom: 0.2rem;
}
.week-list h4 { margin-bottom: 0.3rem; }
.week-list p { margin-bottom: 0; font-size: 0.92rem; color: var(--muted); }

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line);
}
.timeline li {
  position: relative;
  padding: 0 0 1.5rem 1.5rem;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 0.5rem;
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--ink);
}
.timeline .time {
  display: block;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.15rem;
}
.timeline h4 { margin-bottom: 0.25rem; }
.timeline p { margin-bottom: 0; font-size: 0.9rem; color: var(--muted); }

.shotlist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.shotlist div {
  background: var(--ink-2);
  padding: 0.85rem 0.95rem;
}
.shotlist b {
  display: block;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.18rem;
}
.shotlist span { font-size: 0.88rem; color: var(--muted); }

.template {
  position: relative;
  margin: 1rem 0 0;
  padding: 1.2rem;
  background: #0c0a0d;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--bone-dim);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.copy-btn {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  appearance: none;
  border: 1px solid var(--line-strong);
  background: var(--ink);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.28rem 0.45rem;
  cursor: pointer;
}
.copy-btn:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }

.business-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.business-grid .card { min-height: 100%; }

.ethics {
  border: 1px solid rgba(179, 58, 58, 0.4);
  background:
    linear-gradient(135deg, rgba(179, 58, 58, 0.10), transparent 52%),
    var(--panel);
  padding: clamp(1.4rem, 3vw, 2.2rem);
}
.ethics h3 { color: var(--bone); }
.ethics p { color: var(--bone-dim); }
.ethics strong { color: #fff; }

.red-flags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 1.25rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.red-flags li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.red-flags li::before {
  content: "×";
  position: absolute;
  left: 0;
  top: -0.05em;
  color: var(--blood);
  font-family: var(--mono);
}

/* ---------------- Glossary ---------------- */

details.glossary-group {
  border-top: 1px solid var(--line);
}
details.glossary-group summary {
  cursor: pointer;
  padding: 1rem 0;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  list-style: none;
}
details.glossary-group summary::-webkit-details-marker { display: none; }
details.glossary-group summary::before { content: "+ "; color: var(--blood); }
details.glossary-group[open] summary::before { content: "− "; }
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 1.5rem;
  padding-bottom: 1.5rem;
}
.glossary-grid dt {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--bone);
  margin-bottom: 0.15rem;
}
.glossary-grid dd {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

/* ---------------- Sources ---------------- */

.sources-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2.5rem;
}
.source-group h3 {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.source-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.source-group li {
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}
.source-group a { color: var(--bone-dim); text-decoration: none; }
.source-group a:hover { color: var(--blood); }
.source-group span { display: block; margin-top: 0.15rem; font-size: 0.78rem; color: var(--faint); }

/* ---------------- Footer ---------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 4rem;
  background: var(--ink-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 2rem;
  align-items: end;
}
.footer-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 0.8rem;
}
.footer-title em { color: var(--blood); }
.footer-grid p { max-width: 55ch; color: var(--muted); font-size: 0.9rem; margin-bottom: 0; }
.footer-meta {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  text-align: right;
}
.footer-meta a { color: var(--muted); text-decoration: none; }

/* ---------------- Focus / utilities ---------------- */

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

.mt-0 { margin-top: 0 !important; }
.mt-05 { margin-top: 0.5rem !important; }
.mt-08 { margin-top: 0.8rem !important; }
.mt-1 { margin-top: 1rem !important; }
.mt-15 { margin-top: 1.5rem !important; }
.mt-2 { margin-top: 2rem !important; }
.mt-3 { margin-top: 3rem !important; }
.mb-0 { margin-bottom: 0 !important; }

.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;
}

[hidden] { display: none !important; }

/* ---------------- Responsive ---------------- */

@media (max-width: 1050px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-aside { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 1.2rem; max-width: 60ch; }
  .module-head { grid-template-columns: 72px minmax(0, 1fr); }
  .module-check { grid-column: 2; justify-content: flex-start; padding-top: 0; }
  .module-body { padding-left: calc(72px + 1rem); grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.5fr); }
  .quick-aside { position: static; }
}

@media (max-width: 820px) {
  :root { --header-h: 58px; }
  .site-nav {
    position: fixed;
    z-index: 600;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1rem;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    max-height: calc(100svh - var(--header-h));
    overflow-y: auto;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.7rem 0; border-bottom: 1px solid var(--line); font-size: 0.86rem; }
  .menu-toggle { display: inline-grid; place-items: center; margin-left: auto; }
  .header-actions { margin-left: 0; }
  .progress-pill { display: none; }
  .print-btn { display: none; }
  .hero { min-height: auto; padding-top: 5rem; }
  .hero h1 { font-size: clamp(3.4rem, 16vw, 6.5rem); }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stats div:nth-child(2) { border-right: 0; }
  .hero-stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-head { grid-template-columns: 1fr; }
  .section-head h2 { max-width: none; }
  .quick-grid, .plan-grid, .footer-grid { grid-template-columns: 1fr; }
  .gear-grid, .grid-3 { grid-template-columns: 1fr; }
  .gear-spec { grid-template-columns: 1fr; }
  .grid-2, .business-grid, .sources-grid, .glossary-grid { grid-template-columns: 1fr; }
  .module-head { grid-template-columns: 1fr; gap: 0.6rem; }
  .module-number { font-size: 3rem; }
  .module-check { grid-column: auto; }
  .module-body { padding-left: 0; grid-template-columns: 1fr; gap: 1.8rem; }
  .module-rail { order: 2; }
  .module-content { order: 1; }
  .module-content h3 { margin-top: 1.5rem; }
  .video-card { grid-template-columns: 130px minmax(0, 1fr); }
  .video-info { padding: 0.65rem 0.75rem; }
  .video-info h4 { font-size: 0.92rem; }
  .video-info p { display: none; }
  .setup-list { grid-template-columns: 1fr; }
  .shotlist { grid-template-columns: 1fr; }
  .red-flags { grid-template-columns: 1fr; }
  .footer-meta { text-align: left; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .video-card { grid-template-columns: 1fr; }
  .video-thumb img { aspect-ratio: 16 / 8.5; }
  .video-info p { display: block; }
  .hero-actions .btn { width: 100%; }
  .settings-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------------- Print ---------------- */

@media print {
  :root {
    --ink: #fff;
    --ink-2: #fff;
    --panel: #fff;
    --panel-2: #fff;
    --bone: #111;
    --bone-dim: #222;
    --muted: #444;
    --faint: #666;
    --line: #ddd;
    --line-strong: #bbb;
    --blood: #8d1f1f;
    --gold: #7a5d23;
    --teal: #2d5e58;
  }
  body {
    background: #fff;
    color: #111;
    font-size: 11pt;
  }
  body::before { display: none; }
  .site-header, .hero-actions, .print-btn, .module-check, .copy-btn, .skip-link, .menu-toggle, .header-progress { display: none !important; }
  .hero { min-height: auto; padding: 1.5cm 0 0.8cm; }
  .hero::before, .hero::after { display: none; }
  .hero h1 { font-size: 46pt; }
  .container { width: 100%; }
  .section, .module { break-inside: avoid; padding: 0.7cm 0; }
  .module { break-before: page; }
  .module:first-of-type { break-before: auto; }
  .module-body { padding-left: 0; }
  .video-card { break-inside: avoid; }
  .video-thumb { display: none; }
  .video-card { grid-template-columns: 1fr; }
  .drill, .card, .field-note, .template, .ethics { break-inside: avoid; }
  a { color: #111; }
  .source-group a::after { content: " (" attr(href) ")"; font-size: 8pt; color: #555; }
  details.glossary-group { display: block; }
  details.glossary-group > summary { list-style: none; }
}
