/* ============================================================
   Arc Media, arcmedia.me
   Design system: "The pole is the spine."
   Porcelain ground, ink text, oxblood and pole blue accents,
   chrome hairlines. Big Shoulders display, Source Serif 4 body,
   IBM Plex Mono utility.
   ============================================================ */

/* ---------- Fonts, self hosted ---------- */

@font-face {
  font-family: 'Big Shoulders';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(/assets/fonts/bigshoulders.woff2) format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/sourceserif4.woff2) format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/sourceserif4-italic.woff2) format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/plexmono-400.woff2) format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/plexmono-500.woff2) format('woff2');
}

/* ---------- Tokens ---------- */

:root {
  --porcelain: #F3F3F0;
  --ink: #171A1E;
  --oxblood: #6E2431;
  --oxblood-deep: #571B26;
  --blue: #2C4459;
  --chrome: #C9CCC9;
  --steel: #545B61;

  --display: 'Big Shoulders', 'Arial Narrow', 'Avenir Next Condensed', sans-serif;
  --body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --mono: 'IBM Plex Mono', 'SF Mono', Menlo, Consolas, monospace;

  --porcelain-deep: #E9EAE6;
  --ink-line: #2A2F35;

  --pole-w: 6px;
  --head-h: 3.75rem;
  --pole-shift: 0px;
}

@media (min-width: 760px) {
  :root { --pole-w: 10px; }
}

/* ---------- Reset and base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--head-h) + 1.5rem);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  padding-left: var(--pole-w);
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--body);
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Paper grain, so the ground reads as printed stock rather than flat fill.
   Kept under 5% so measured text contrast is unaffected. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  opacity: 0.05;
}

h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }

a { color: var(--oxblood); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

::selection { background: var(--blue); color: var(--porcelain); }

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

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  padding: 0.8em 1.2em;
  background: var(--ink);
  color: var(--porcelain);
  font-family: var(--mono);
  font-size: 0.8125rem;
  text-decoration: none;
}
.skip:focus-visible { left: calc(var(--pole-w) + 8px); top: 8px; color: var(--porcelain); }

/* ---------- The pole, signature element ---------- */

.pole {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--pole-w);
  z-index: 1;
  overflow: hidden;
  background: var(--porcelain);
  border-right: 1px solid var(--chrome);
  pointer-events: none;
}

.pole span {
  position: absolute;
  left: 0;
  right: 0;
  top: -120px;
  bottom: -120px;
  background: repeating-linear-gradient(
    45deg,
    var(--oxblood) 0 12px,
    var(--porcelain) 12px 21px,
    var(--blue) 21px 33px,
    var(--porcelain) 33px 42px
  );
  transform: translate3d(0, var(--pole-shift), 0);
  will-change: transform;
}

/* Cylinder shading: the rail reads as a turned object, not a striped strip */
.pole::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(23, 26, 30, 0.30),
    rgba(255, 255, 255, 0.22) 42%,
    rgba(255, 255, 255, 0.04) 60%,
    rgba(23, 26, 30, 0.36)
  );
}

/* Inverted pole for dark rooms. Same fixed geometry and the same
   --pole-shift, clipped by the room's clip-path so the phase never breaks. */
.pole--flip {
  background: var(--ink);
  border-right-color: var(--ink-line);
}

.pole--flip span {
  background: repeating-linear-gradient(
    45deg,
    var(--porcelain) 0 12px,
    var(--ink) 12px 21px,
    var(--oxblood) 21px 33px,
    var(--ink) 33px 42px
  );
}

.closing--oxblood .pole--flip {
  background: var(--oxblood-deep);
  border-right-color: var(--oxblood-deep);
}

.closing--oxblood .pole--flip span {
  background: repeating-linear-gradient(
    45deg,
    var(--porcelain) 0 12px,
    var(--oxblood-deep) 12px 21px,
    var(--blue) 21px 33px,
    var(--oxblood-deep) 33px 42px
  );
}

/* ---------- Layout primitives ---------- */

.wrap {
  width: 100%;
  max-width: 88rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 5rem);
}

.measure { max-width: 38em; }

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

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--porcelain);
  border-bottom: 1px solid var(--chrome);
}

.site-head .wrap {
  height: var(--head-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: 0.03em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark:hover { color: var(--oxblood); }

.chip {
  display: inline-block;
  width: 13px;
  height: 13px;
  flex: none;
  border: 1px solid var(--chrome);
  background: repeating-linear-gradient(
    45deg,
    var(--oxblood) 0 4px,
    var(--porcelain) 4px 6px,
    var(--blue) 6px 10px,
    var(--porcelain) 10px 12px
  );
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 1.05em 2.1em;
  border: 1px solid transparent;
  border-radius: 3px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary { background: var(--oxblood); color: var(--porcelain); }
.btn-primary:hover { background: var(--oxblood-deep); color: var(--porcelain); }

.btn-quiet { background: transparent; color: var(--ink); border-color: var(--steel); }
.btn-quiet:hover { border-color: var(--ink); color: var(--ink); }

.btn-sm { padding: 0.7em 1.2em; font-size: 0.85rem; }

.btn-lg { padding: 1.15em 2.7em; font-size: 1.125rem; }

.btn:active { transform: translateY(1px); }

/* ---------- Type components ---------- */

.kicker {
  display: flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--steel);
}

.kicker::before {
  content: "";
  width: 13px;
  height: 13px;
  flex: none;
  border: 1px solid var(--chrome);
  background: repeating-linear-gradient(
    45deg,
    var(--oxblood) 0 4px,
    var(--porcelain) 4px 6px,
    var(--blue) 6px 10px,
    var(--porcelain) 10px 12px
  );
}

.h2 {
  font-family: var(--display);
  font-weight: 680;
  font-size: clamp(2.3rem, 6vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: 0.005em;
  margin: 0.4em 0 0.45em;
}

.lede { color: var(--ink); font-size: 1.125rem; }

/* ---------- Sections ---------- */

.section { border-top: 1px solid var(--chrome); }
.section > .wrap { padding-block: clamp(2.75rem, 6vw, 5.25rem); }

/* ---------- Dark rooms ----------
   Ink and oxblood grounds bleed left across the pole gutter and carry
   their own inverted pole, clipped to the room, so the spine reads
   against every ground it crosses. */

.section--ink,
.closing--oxblood,
.site-foot {
  position: relative;
  z-index: 2;
  margin-left: calc(var(--pole-w) * -1);
  padding-left: var(--pole-w);
  clip-path: inset(0 0 0 0);
}

.section--ink {
  background: var(--ink);
  color: var(--porcelain);
  border-top-color: var(--ink);
}

.section--ink + .section--ink { border-top-color: var(--ink-line); }

.section--ink .kicker { color: var(--chrome); }
.section--ink .kicker::before { border-color: var(--ink-line); }
.section--ink .lede { color: var(--porcelain); }
.section--ink :focus-visible { outline-color: var(--chrome); }

/* ---------- Hero ----------
   Two part composition: type block left, the pole at object scale right.
   The pole is the signature, so here it is a thing, not an edge. */

.hero { position: relative; }

.hero > .wrap {
  min-height: calc(100svh - var(--head-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 2.5rem 5rem;
}

.hero-pole {
  display: none;
  position: absolute;
  top: 0;
  bottom: 0;
  right: clamp(1.5rem, 5vw, 6rem);
  width: clamp(200px, 22vw, 380px);
  overflow: hidden;
  background: var(--porcelain);
  border-inline: 1px solid var(--chrome);
  box-shadow: 0 24px 70px rgba(23, 26, 30, 0.14);
  pointer-events: none;
}

.hero-pole span {
  position: absolute;
  left: 0;
  right: 0;
  top: -360px;
  bottom: -360px;
  background: repeating-linear-gradient(
    45deg,
    var(--oxblood) 0 64px,
    var(--porcelain) 64px 112px,
    var(--blue) 112px 176px,
    var(--porcelain) 176px 224px
  );
  will-change: transform;
}

html.js .hero-pole span { animation: pole-turn 18s linear infinite; }

/* One vertical period of the 224px stripe pattern: 224 * sqrt(2) */
@keyframes pole-turn {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(0, -316.78px, 0); }
}

/* Cylinder shading at object scale */
.hero-pole::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(23, 26, 30, 0.38),
    rgba(23, 26, 30, 0.06) 20%,
    rgba(255, 255, 255, 0.30) 44%,
    rgba(255, 255, 255, 0.05) 62%,
    rgba(23, 26, 30, 0.44)
  );
}

@media (min-width: 880px) {
  .hero-pole { display: block; }
  .hero > .wrap {
    padding-right: calc(clamp(200px, 22vw, 380px) + clamp(1.5rem, 5vw, 6rem) + 3rem);
  }
}

/* Sized so each sentence holds one line beside the pole */
.hero h1 {
  font-family: var(--display);
  font-weight: 720;
  font-size: clamp(3.4rem, 6.4vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: 0.004em;
  margin: 0.35em 0 0.3em;
  max-width: 8em;
}

.hero .sub {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  max-width: 34em;
  color: var(--ink);
}

/* The page's one load moment: the type block resolves in a single move */
html.js .hero-enter {
  animation: hero-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(7px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.hero .cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.9rem;
  margin-top: 2.25rem;
}

.cta-main {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.btn-note {
  margin-top: 0.55rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--steel);
}

/* ---------- Leaks ledger ---------- */

.leaks {
  list-style: none;
  padding: 0;
  margin-top: 2.75rem;
  border-bottom: 1px solid var(--chrome);
}

.leaks li {
  border-top: 1px solid var(--chrome);
  padding-block: 1.6rem;
  display: grid;
  gap: 0.5rem 3rem;
}

.leaks h3 {
  font-family: var(--body);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.35;
}

.leaks p { color: var(--steel); font-size: 1rem; }

@media (min-width: 800px) {
  .leaks li { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

.leaks-close { margin-top: 2rem; font-size: 1.125rem; }

/* ---------- Builds, the mirror wall grid ---------- */

.builds {
  display: grid;
  gap: 1px;
  background: var(--chrome);
  border: 1px solid var(--chrome);
  margin-top: 2.75rem;
}

@media (min-width: 760px) {
  .builds { grid-template-columns: 1fr 1fr; }
}

.build-cell { background: var(--porcelain-deep); padding: clamp(2rem, 4vw, 3.25rem); }

.build-cell .chip {
  display: block;
  width: 16px;
  height: 16px;
  margin-bottom: 1.2rem;
}

.build-cell h3 {
  font-family: var(--display);
  font-weight: 680;
  font-size: clamp(2.2rem, 3vw, 2.7rem);
  line-height: 1;
  letter-spacing: 0.01em;
  margin-bottom: 0.55em;
}

.build-cell .outcome { font-size: 1.0625rem; }

.build-cell .caps {
  margin-top: 1.3em;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 2;
  letter-spacing: 0.01em;
  color: var(--steel);
}

.builds-note { margin-top: 2rem; font-size: 1.0625rem; max-width: 42em; }

/* ---------- The first eight days ---------- */

.days {
  list-style: none;
  padding: 0;
  margin-top: 2.75rem;
  border-bottom: 1px solid var(--ink-line);
}

.days li {
  border-top: 1px solid var(--ink-line);
  padding-block: 1.75rem;
  display: grid;
  gap: 0.4rem 0;
}

.day-tag {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--porcelain);
  padding-top: 0.3rem;
}

.days h3 {
  font-family: var(--body);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.35;
  color: var(--porcelain);
}

.days .day-body p { color: var(--chrome); margin-top: 0.35rem; max-width: 38em; }

@media (min-width: 800px) {
  .days li { grid-template-columns: 9.5rem minmax(0, 1fr); }
  .days .day-body { border-left: 1px solid var(--ink-line); padding-left: 2.25rem; }
}

/* ---------- Guarantees ---------- */

.guarantees {
  display: grid;
  gap: 2.25rem;
  margin-top: 2.75rem;
}

@media (min-width: 800px) {
  .guarantees { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
}

.guarantees .g h3 {
  font-family: var(--display);
  font-weight: 680;
  font-size: clamp(2rem, 2.4vw, 2.4rem);
  line-height: 1;
  letter-spacing: 0.01em;
  border-top: 8px solid var(--oxblood);
  padding-top: 1.1rem;
  margin-bottom: 0.5em;
  color: var(--porcelain);
}

.guarantees .g p { color: var(--chrome); font-size: 1.0625rem; }

.contract-line {
  margin-top: 2.5rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--chrome);
  display: flex;
  align-items: flex-start;
  gap: 0.7em;
}

.contract-line::before {
  content: "";
  width: 13px;
  height: 13px;
  margin-top: 0.2em;
  flex: none;
  border: 1px solid var(--ink-line);
  background: repeating-linear-gradient(
    45deg,
    var(--oxblood) 0 4px,
    var(--porcelain) 4px 6px,
    var(--blue) 6px 10px,
    var(--porcelain) 10px 12px
  );
}

/* ---------- Fit, for and not for ---------- */

.fit {
  display: grid;
  gap: 3rem;
  margin-top: 2.75rem;
}

@media (min-width: 800px) {
  .fit { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 7rem); }
}

.fit h3 {
  font-family: var(--display);
  font-weight: 680;
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: 0.01em;
  margin-bottom: 0.6em;
}

.fit ul {
  list-style: none;
  padding: 0;
  border-bottom: 1px solid var(--chrome);
}

.fit li {
  border-top: 1px solid var(--chrome);
  padding: 1.05rem 0;
  font-size: 1.0625rem;
}

.fit-not li { color: var(--steel); }

.fit-close { margin-top: 2.25rem; font-size: 1.0625rem; max-width: 42em; }

/* ---------- Founder note ---------- */

.founder .note p {
  font-size: 1.1875rem;
  line-height: 1.7;
  margin-top: 1.1em;
}

.founder .sig {
  margin-top: 2.25rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--steel);
}

/* ---------- FAQ ---------- */

.faq {
  margin-top: 2.25rem;
  border-bottom: 1px solid var(--chrome);
  max-width: 52em;
}

.faq details { border-top: 1px solid var(--chrome); }

.faq summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 1.3rem 2.75rem 1.3rem 0;
  font-family: var(--body);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.4;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  content: "+" / "";
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--oxblood);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq .a { padding: 0 0 1.5rem; max-width: 40em; }
.faq .a p { margin-top: 0.6em; }
.faq .a p:first-child { margin-top: 0; }

/* ---------- Closing ---------- */

.closing > .wrap { text-align: center; }

.closing h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: 0.004em;
  margin-inline: auto;
  max-width: 9em;
}

.closing .btn { margin-top: 2.5rem; }

.closing--oxblood {
  background: var(--oxblood);
  color: var(--porcelain);
  border-top-color: var(--oxblood);
}

.closing--oxblood > .wrap { padding-block: clamp(4rem, 8vw, 7rem); }

.closing--oxblood .btn-primary { background: var(--porcelain); color: var(--oxblood); }
.closing--oxblood .btn-primary:hover { background: var(--chrome); color: var(--oxblood-deep); }
.closing--oxblood .btn-note { color: var(--chrome); }
.closing--oxblood :focus-visible { outline-color: var(--porcelain); }

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

.site-foot {
  background: var(--ink);
  color: var(--porcelain);
  border-top: 1px solid var(--ink);
}

.site-foot .wrap { padding-block: 3.25rem 2.5rem; }

.foot-grid {
  display: grid;
  gap: 2.25rem;
}

@media (min-width: 800px) {
  .foot-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; }
}

.site-foot .wordmark { color: var(--porcelain); }
.site-foot .wordmark:hover { color: var(--chrome); }

.foot-desc { margin-top: 0.9rem; color: var(--chrome); font-size: 0.9375rem; max-width: 24em; }

.foot-h {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: #8A9096;
  margin-bottom: 0.9rem;
}

.foot-list { list-style: none; padding: 0; }
.foot-list li { margin: 0.5rem 0; }

.site-foot a { color: var(--porcelain); text-decoration: none; }
.site-foot a:hover { color: var(--chrome); text-decoration: underline; text-underline-offset: 3px; }
.site-foot :focus-visible { outline-color: var(--chrome); }

.foot-legal {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #33383E;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: #8A9096;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
}

/* ---------- Legal document pages ---------- */

.legal-grid {
  display: grid;
  gap: 3rem;
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(4rem, 8vw, 6rem);
}

@media (min-width: 960px) {
  .legal-grid { grid-template-columns: 15rem minmax(0, 1fr); gap: 4.5rem; }
}

.toc {
  display: none;
}

@media (min-width: 960px) {
  .toc {
    display: block;
    position: sticky;
    top: calc(var(--head-h) + 2rem);
    align-self: start;
  }
}

.toc-h {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--steel);
  margin-bottom: 1rem;
}

.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
  border-left: 1px solid var(--chrome);
}

.toc li { counter-increment: toc; }

.toc a {
  display: block;
  padding: 0.32em 0 0.32em 1.1em;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--steel);
  text-decoration: none;
  border-left: 2px solid transparent;
  margin-left: -1.5px;
}

.toc a::before { content: counter(toc, decimal-leading-zero) "  "; color: var(--steel); }

.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--oxblood); border-left-color: var(--oxblood); }
.toc a.active::before { color: var(--oxblood); }

.legal { max-width: 42em; counter-reset: clause; }

.crumb {
  font-family: var(--mono);
  font-size: 0.8125rem;
  margin-bottom: 2.5rem;
}
.crumb a { color: var(--steel); text-decoration: none; }
.crumb a:hover { color: var(--oxblood); text-decoration: underline; text-underline-offset: 3px; }

.legal h1 {
  font-family: var(--display);
  font-weight: 680;
  font-size: clamp(2.7rem, 7vw, 4.25rem);
  line-height: 1;
  letter-spacing: 0.005em;
}

.legal .meta-line {
  margin-top: 1.25rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--steel);
}

.legal .intro { margin-top: 2rem; font-size: 1.0625rem; }
.legal .intro p { margin-top: 0.8em; }

.clause { margin-top: 3rem; counter-increment: clause; }

.clause h2 {
  font-family: var(--body);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.35;
  scroll-margin-top: calc(var(--head-h) + 1.5rem);
}

.clause h2::before {
  content: counter(clause, decimal-leading-zero);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.85em;
  color: var(--oxblood);
  margin-right: 0.85em;
}

.clause p, .clause li { font-size: 1.03rem; line-height: 1.7; }
.clause p { margin-top: 0.85em; }
.clause ul, .clause ol { margin-top: 0.85em; padding-left: 1.5rem; }
.clause li { margin-top: 0.45em; }
.clause li::marker { color: var(--steel); font-family: var(--mono); font-size: 0.9em; }

/* ---------- 404 ---------- */

.lost > .wrap {
  min-height: calc(100svh - var(--head-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-block: 4rem;
}

.lost h1 {
  font-family: var(--display);
  font-weight: 720;
  font-size: clamp(3.5rem, 14vw, 9rem);
  line-height: 0.95;
}

.lost p { margin-top: 1.25rem; max-width: 30em; }
.lost .btn { margin-top: 2rem; }

/* ---------- Scroll reveal, JS gated ---------- */

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

html.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html.js .hero-enter { animation: none; }
  html.js .hero-pole span { animation: none; }
  html { scroll-behavior: auto; }
  .btn, .faq summary::after { transition: none; }
}
