:root {
  --bone: #f2eee5;
  --cream: #fff8ef;
  --ink: #0b0a09;
  --orange: #ff6550;
  --orange-btn: #ff5550;
  --muted: #aaa39a;
  --stone: #c9c1b8;
  --ash: #8e837d;
  --line: #2a2320;
  --line-soft: #302c28;
  --rule: #bdb7ae;
  --copy: #4d4944;
  --dark: #17100e;
  --gray-300: oklch(87% 0 0);
  --gray-400: oklch(70.8% 0 0);
  --gray-700: oklch(37.1% 0 0);
  --gray-800: oklch(26.9% 0 0);
  --display: "Gideon Roman", "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --text: "Barlow", "Segoe UI", sans-serif;
  --pad: 72px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #000;
  color: var(--bone);
  font-family: var(--display);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--orange);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.frame {
  width: min(1440px, 100%);
  margin: 0 auto;
  background: #000;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  padding: 0 var(--pad);
  background: #000;
}
/* Homepage (.how): nav scrolls away through the hero; JS pins after the orange band */
body:has(.how) .nav {
  position: relative;
  top: auto;
}
body:has(.how) .nav-spacer {
  display: block;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}
body:has(.how) .nav.is-pinned {
  position: fixed;
  top: var(--frame-pad-t, 0px);
  left: max(
    var(--frame-pad-l, 0px),
    calc(
      (100vw - min(100vw, var(--content-max, 1440px) + var(--frame-pad-l, 0px) + var(--frame-pad-r, 0px))) / 2
      + var(--frame-pad-l, 0px)
    )
  );
  right: max(
    var(--frame-pad-r, 0px),
    calc(
      (100vw - min(100vw, var(--content-max, 1440px) + var(--frame-pad-l, 0px) + var(--frame-pad-r, 0px))) / 2
      + var(--frame-pad-r, 0px)
    )
  );
  width: auto;
  z-index: 10;
  background: #000;
  transform: translateY(-100%);
}
body:has(.how) .nav.is-pinned.is-shown {
  transform: translateY(0);
}
@media (prefers-reduced-motion: no-preference) {
  body:has(.how) .nav.is-pinned.is-animating {
    transition: transform 250ms ease-out;
  }
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--bone);
  font-size: 20px;
  letter-spacing: 0.02em;
  line-height: 24px;
}
.brand img { width: 38px; height: 38px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 38px; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.02em;
  line-height: 16px;
}
.nav-links a[aria-current="page"] { color: var(--bone); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 18px;
  background: var(--orange);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.2px;
  line-height: 12px;
  border: 0;
  cursor: pointer;
  transition: background-color 150ms ease-out;
}
/* Beat .nav-links a muted grey so the orange CTA label stays black */
.nav-links .btn,
.nav-links .btn:hover,
.nav-links .btn:focus,
.nav-links .btn:focus-visible {
  color: #000;
}
.btn:hover,
.btn:focus-visible {
  background-color: #ff7a68;
}
.btn-lg { height: 50px; padding: 0 22px; }
.btn-ghost {
  background: transparent;
  color: var(--bone);
  border: 1px solid #4c4640;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  background-color: transparent;
  color: var(--bone);
}
.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--bone);
  cursor: pointer;
}
.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  position: relative;
}
.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-btn span::before { top: -7px; }
.menu-btn span::after { top: 7px; }

.hero {
  display: flex;
  gap: 53px;
  min-height: 0;
  padding: 20px var(--pad) 0;
  overflow: visible;
  position: relative;
  z-index: 1;
  background: #000;
  align-items: flex-start;
}
.hero-copy {
  width: min(610px, 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 24px;
  padding-bottom: 24px;
  padding-top: 36px;
}
.hero h1 {
  margin: 0;
  font-size: 62px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.86;
  color: var(--bone);
}
.hero-line { display: block; }
.hero-dek {
  margin: 0;
  width: min(560px, 100%);
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}
.hero-actions { display: flex; gap: 12px; padding-top: 6px; flex-wrap: wrap; }
.downloads {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  /* Wider than .hero-copy (610px) so three outline boxes fit on one desktop row;
     still narrow enough to wrap around ~760px once side padding + frame eat space */
  width: min(660px, calc(100vw - 2 * var(--pad) - 80px));
}
.downloads a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 22px;
  background: transparent;
  color: var(--bone);
  border: 1px solid #4c4640;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.7px;
  line-height: 12px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}
.downloads a:hover,
.downloads a:focus-visible {
  background-color: #ff6550;
  color: var(--ink);
}
.hero-art {
  width: min(640px, 46%);
  min-height: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0 18px 0;
}
.scroll-cover--hero {
  width: 100%;
  height: 640px;
  overflow: hidden;
}
.scroll-cover--hero .scroll-cover-pin {
  width: 100%;
  will-change: transform;
  overflow-anchor: none;
}
.hero-art img {
  width: 100%;
  height: 640px;
  object-fit: cover;
  display: block;
}

.coaching {
  display: flex;
  flex-direction: column;
  gap: 52px;
  padding: 17px var(--pad) 92px;
  position: relative;
  z-index: 2;
  background: #000;
}
.coaching-head { min-height: 150px; }
.coaching h2 {
  margin: 0;
  max-width: 1198px;
  font-size: 58px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.86;
  color: var(--bone);
}
.coaching h2 em {
  display: block;
  margin-top: 0;
  font-style: normal;
  color: var(--orange);
}
/* The product walkthrough under the coaching heading. Its box is the old overlay
   mock's at the 1440px design width (1278 x 610); it keeps that shape and scales
   down on narrower screens. */
.coaching-video {
  display: block;
  width: 100%;
  max-width: 1278px;
  height: auto;
  aspect-ratio: 1278 / 610;
  object-fit: cover;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.how {
  position: relative;
  min-height: 454px;
  color: var(--dark);
  overflow: hidden;
  background: var(--orange);
}
.how-hand {
  position: absolute;
  left: 0;
  top: 44px;
  width: min(820px, 58%);
  height: 410px;
  object-fit: contain;
  object-position: left center;
  pointer-events: none;
  z-index: 0;
}
.how h2 {
  position: absolute;
  left: var(--pad);
  top: 44px;
  margin: 0;
  width: 370px;
  font-size: 52px;
  font-weight: 400;
  line-height: 52px;
  color: var(--dark);
  z-index: 1;
}
.steps {
  position: absolute;
  left: 860px;
  top: 38px;
  width: 508px;
  z-index: 1;
}
.step {
  display: flex;
  gap: 56px;
  border-bottom: 1px solid #17100e7a;
  padding-bottom: 22px;
  margin-bottom: 19px;
}
.step:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.step b {
  width: 40px;
  flex: none;
  font-size: 25px;
  font-weight: 400;
  line-height: 30px;
}
.step h3 { margin: 0 0 7px; font-size: 23px; font-weight: 400; line-height: 28px; }
.step p { margin: 0; font-family: var(--text); font-size: 17px; line-height: 23px; color: #211714; }

.ledger {
  background: var(--bone);
  color: #000;
  padding: var(--pad);
  position: relative;
  z-index: 2;
}
#features,
#pricing,
#how {
  scroll-margin-top: 100px;
}
.ledger h2 {
  margin: 0;
  min-height: 108px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
  font-size: 42px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.88;
}
.feature {
  position: relative;
  min-height: 138px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 0;
}
.feature::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--rule);
  transform: scaleX(1);
  transform-origin: left center;
}
.feature h3 {
  margin: 0;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.92;
}
.feature p {
  margin: 0;
  width: min(610px, 48%);
  color: var(--copy);
  font-size: 17px;
  line-height: 1.45;
}

/* Curtain: one sticky image, then pricing (solid sheet) and the closing copy
   pulled up over it. Pricing scrolls away with the page; the picture stays. */
.curtain {
  --curtain-h: calc(100vh - var(--frame-pad-t, 0px) - var(--frame-pad-b, 0px));
  position: relative;
}
.curtain > .closing-bg {
  position: sticky;
  top: var(--frame-pad-t, 0px);
  height: var(--curtain-h);
  z-index: 0;
  pointer-events: none;
}
.curtain-over {
  position: relative;
  z-index: 1;
  margin-top: calc(var(--curtain-h) * -1);
}
.pricing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  padding: var(--pad);
}
#pricing {
  position: relative;
  z-index: 2;
  background: #000;
}
.pricing h2 {
  margin: 0;
  color: var(--cream);
  font-size: 48px;
  font-weight: 400;
  line-height: 52px;
  text-align: center;
}
.pricing-dek {
  margin: 12px 0 0;
  width: min(720px, 100%);
  color: var(--stone);
  font-size: 18px;
  line-height: 28px;
  text-align: center;
}
.plans {
  width: min(1296px, 100%);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.plan {
  width: 312px;
  flex: 1 1 0;
  border: 1px solid var(--line);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.plan .name {
  margin: 0;
  color: var(--stone);
  font-size: 14px;
  letter-spacing: 1px;
  line-height: 18px;
}
.plan .price {
  margin: 0;
  color: var(--cream);
  font-size: 56px;
  line-height: 56px;
}
.plan .cadence { margin: 2px 0 0; color: var(--stone); font-size: 14px; line-height: 18px; }
.plan .blurb { margin: 0; color: var(--cream); font-size: 16px; line-height: 22px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.plan li {
  border-top: 1px solid var(--line);
  padding-top: 8px;
  color: var(--stone);
  font-size: 16px;
  line-height: 22px;
}
.plan .subscribe {
  height: 42px;
  background: var(--orange-btn);
  color: #1a120f;
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 0;
  line-height: 20px;
  transition: background-color 150ms ease-out;
}
.plan .subscribe:hover,
.plan .subscribe:focus-visible {
  background-color: #ff6e69;
}
.pricing-note {
  margin: 0;
  width: min(860px, 100%);
  color: var(--stone);
  font-size: 16px;
  line-height: 24px;
  text-align: center;
}

/* --- Pricing card hover (mirrors .tile-photo scale) --- */
#pricing .plan {
  transform: scale(1);
  transition: transform 250ms ease-out;
  transform-origin: center center;
}
#pricing .plan:hover,
#pricing .plan:focus-visible {
  transform: scale(1.03);
}
@media (prefers-reduced-motion: reduce) {
  #pricing .plan {
    transform: none !important;
    transition: none !important;
  }
}

/* One bust-and-globe layer for the handoff and the closing copy together.
   The picture lives on .closing-bg::before so scroll blur never hits the type. */
.closing {
  position: relative;
  z-index: 1;
  width: 100%;
  background-color: transparent;
  overflow-anchor: none;
}
.closing-bg {
  --closing-blur: 22px;
  --closing-blur-t: 1;
  --closing-shift: 0px;
  overflow: hidden;
  background-color: #000;
}
/* 24px bleed above and below. Scroll translate stays inside it so the
   shift reveals more of this picture. Black shows behind, never a gap.
   Translate and the blur scale share one transform so neither replaces the other. */
.closing-bg::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -24px;
  height: calc(100% + 48px);
  background-color: #000;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  transform: translate3d(0, var(--closing-shift, 0px), 0) scale(calc(1 + 0.16 * var(--closing-blur-t, 1)));
  transform-origin: center center;
  filter: blur(var(--closing-blur, 22px));
}
.closing-bg.is-bg-loaded::before {
  background-image: var(--closing-image, url("assets/footer-bust-globe.jpg"));
}
.rome {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 1170px;
  background: transparent;
}
.manifesto {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  min-height: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 120px 0;
  text-align: center;
}
.manifesto p {
  margin: 0;
  color: var(--bone);
  font-size: 52px;
  letter-spacing: 0.01em;
  line-height: 0.94;
  text-shadow: #000000fa 0 3px 22px, #000000f2 0 0 6px;
}
.finale {
  position: relative;
  z-index: 2;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 28px var(--pad) 20px;
  text-align: center;
}
.finale h2 {
  margin: 0;
  color: var(--bone);
  font-size: 76px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.86;
  text-shadow: #000000f2 0 2px 18px, #000000e6 0 0 4px;
}
.finale p {
  margin: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.4;
  text-shadow: #000000f2 0 2px 18px, #000000e6 0 0 4px;
}

.site-footer {
  position: relative;
  z-index: 3;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 40px;
  margin-top: 0;
  padding: 20px var(--pad) 36px;
  background-color: #000;
}
.closing .site-footer {
  margin-top: -300px;
  background-color: transparent;
  background-image: none;
}
.wordmark {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  margin: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px var(--pad) 320px;
  text-align: center;
  color: var(--bone);
  font-size: 160px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.84;
  text-shadow: #000000f2 0 2px 18px, #000000e6 0 0 4px;
}
.rome .wordmark {
  align-items: flex-end;
  padding-top: 0;
  padding-bottom: 300px;
}
.footer-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line-soft);
  padding-top: 22px;
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; width: min(600px, 100%); }
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1.1px;
  line-height: 12px;
}
.footer-links a:hover { color: var(--bone); }
.legal {
  margin: 0;
  color: #706a63;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1px;
  line-height: 12px;
  white-space: nowrap;
}

/* articles */
.field-hero {
  background: var(--orange);
  box-shadow: inset 0 2px 3px #0003, inset 0 2px 3px #0003, inset 0 2px 3px #0003;
  text-align: center;
  padding: 64px var(--pad) 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.field-hero .kicker {
  margin: 0;
  width: min(773px, 100%);
  color: var(--cream);
  font-size: 60px;
  letter-spacing: 2px;
  line-height: 72px;
}
.field-hero h1 {
  margin: 0;
  width: min(860px, 100%);
  color: var(--cream);
  font-size: 52px;
  font-weight: 400;
  line-height: 58px;
}
.field-hero p {
  margin: 0;
  width: min(720px, 100%);
  color: #1a120f;
  font-size: 18px;
  line-height: 28px;
}
.topics { padding: 48px var(--pad) 64px; }
.topics-intro h2 { margin: 0 0 8px; color: var(--cream); font-size: 28px; font-weight: 400; line-height: 34px; }
.topics-intro p { margin: 0 0 20px; width: min(760px, 100%); color: var(--stone); font-size: 16px; line-height: 24px; }
.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 300px));
  gap: 16px;
  align-items: start;
}
.tile { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tile h2 { margin: 0; min-height: 64px; color: var(--cream); font-size: 26px; font-weight: 400; line-height: 32px; }
.tile-card { overflow: hidden; }
.tile-photo {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: #000;
  overflow: hidden;
  cursor: pointer;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 250ms ease-out;
}
.tile-photo:hover,
.tile-photo:focus-visible {
  transform: scale(1.03);
}
.tile-photo.is-static { cursor: default; }
/* Slight vertical bleed so scroll translate reveals more picture, not a gap. */
.tile-photo-pin {
  position: absolute;
  left: 0;
  right: 0;
  top: -24px;
  height: calc(100% + 48px);
  background: #000 center / cover no-repeat;
  pointer-events: none;
  overflow-anchor: none;
  will-change: transform;
}
.tile-list {
  background: #000;
  overflow: hidden;
}
.tile-close {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  padding: 10px 22px 0;
  border: 0;
  background: transparent;
  color: var(--cream);
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.5px;
  cursor: pointer;
}
.tile-list a, .tile-list span {
  display: block;
  border-top: 1px solid #3a302c;
  margin: 0 22px;
  padding: 12px 0;
  color: var(--cream);
  text-decoration: none;
  font-size: 16px;
  line-height: 22px;
}
.tile-list a:hover { color: var(--orange); }
.tile-list span { color: var(--ash); }
.articles-footer,
.articles-footer.is-bg-loaded {
  margin-top: 0;
  background-image: none;
  min-height: 0;
}
/* Homepage wordmark padding clears the closing image. Articles sits on the footer bar. */
.articles-footer .wordmark {
  flex: 0 0 auto;
  padding: 8px var(--pad) 0;
}

/* --- Approved entrance / interaction motion --- */
@media (prefers-reduced-motion: no-preference) {
  .brand img {
    opacity: 0;
    animation: brutus-fade-in 360ms ease-out forwards;
  }

  .hero-art img {
    opacity: 0;
    transform: translateY(6px);
    animation: brutus-portrait-in 520ms ease-out 200ms forwards;
  }

  .how:not(.is-in) .step {
    opacity: 0;
    transform: translateY(8px);
  }
  .how .step {
    transition: opacity 420ms ease-out, transform 420ms ease-out;
  }
  .how.is-in .step { opacity: 1; transform: translateY(0); }
  .how.is-in .step:nth-child(1) { transition-delay: 120ms; }
  .how.is-in .step:nth-child(2) { transition-delay: 240ms; }
  .how.is-in .step:nth-child(3) { transition-delay: 360ms; }
  .how:not(.is-in) .step:nth-child(1) { transition-delay: 240ms; }
  .how:not(.is-in) .step:nth-child(2) { transition-delay: 120ms; }
  .how:not(.is-in) .step:nth-child(3) { transition-delay: 0ms; }

  .feature:not(.is-in) {
    opacity: 0;
  }
  .feature:not(.is-in)::after {
    transform: scaleX(0);
  }
  .feature {
    transition: opacity 420ms ease-out;
  }
  .feature::after {
    transform: scaleX(0);
    transition: transform 400ms ease-out;
  }
  .feature.is-in {
    opacity: 1;
  }
  .feature.is-in::after {
    transform: scaleX(1);
  }

  .tile-list.is-animating {
    transition: height 320ms ease-out;
  }
}

@keyframes brutus-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes brutus-portrait-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body:has(.how) .nav.is-pinned {
    transition: none !important;
  }
  .brand img,
  .hero-art img,
  .how-hand,
  .how .step,
  .feature,
  .feature::after,
  .tile-photo {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .scroll-cover--hero .scroll-cover-pin,
  .tile-photo-pin {
    transform: none !important;
  }
  .closing-bg::before {
    filter: none !important;
    transform: none !important;
  }
  .feature::after { transform: scaleX(1) !important; }
  .tile-list,
  .btn,
  .plan .subscribe {
    transition: none !important;
  }
}

@media (max-width: 1100px) {
  :root { --pad: 28px; }
  .hero { flex-direction: column; min-height: 0; gap: 28px; }
  .hero-art { width: 100%; min-height: 0; }
  .scroll-cover--hero { height: auto; }
  .hero-art img { height: auto; max-height: 520px; }
  .hero h1, .coaching h2 { font-size: 46px; }
  .how { min-height: 0; padding: 36px var(--pad) 28px; }
  .how-hand {
    position: relative;
    top: 0;
    width: min(420px, 70%);
    height: 220px;
  }
  .how h2, .steps { position: relative; left: auto; top: auto; width: auto; }
  .how h2 { margin: 8px 0 24px; }
  .feature { flex-direction: column; align-items: flex-start; justify-content: center; padding: 28px 0; }
  .feature p { width: 100%; }
  .plans { flex-wrap: wrap; }
  .plan { width: calc(50% - 8px); flex: 1 1 240px; }
  .manifesto { padding: 16px var(--pad) 0; }
  .manifesto p { font-size: 36px; }
  .finale h2 { font-size: 52px; }
  .wordmark { font-size: 84px; }
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 300px)); }
  .closing .site-footer { margin-top: 0; }
  .closing {
    width: 100%;
  }
  .closing-bg::before {
    background-size: cover;
    background-position: center;
  }
  .rome { min-height: 0; }
  .wordmark { padding-bottom: 48px; }
  .rome .wordmark { padding-bottom: 16px; }
}

@media (max-width: 760px) {
  :root { --pad: 16px; }

  /* Two items in the bar: Articles + orange Get Started. Features and Pricing stay in the page and the footer. */
  .menu-btn { display: none; }
  .nav {
    position: sticky;
    height: 72px;
    padding: 0 14px;
    gap: 8px;
  }
  body:has(.how) .nav { position: relative; }
  body:has(.how) .nav.is-pinned { position: fixed; }
  .brand {
    min-width: 0;
    gap: 8px;
    font-size: 15px;
    white-space: nowrap;
  }
  .brand img { width: 32px; height: 32px; flex: none; }
  .nav-links,
  .nav-links.open {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    flex: none;
    gap: 8px;
    width: auto;
    margin-left: auto;
    padding: 0;
    background: transparent;
    border: 0;
    z-index: auto;
  }
  .nav-links a:not(.btn) {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 2px;
    font-size: 12px;
    line-height: 16px;
    white-space: nowrap;
    color: var(--bone);
  }
  .nav .btn,
  .nav-links .btn,
  .nav-links.open .btn {
    display: inline-flex;
    height: 48px;
    padding: 0 12px;
    font-size: 10px;
    letter-spacing: 0.4px;
    white-space: nowrap;
  }
  .nav-links a[href="#features"],
  .nav-links a[href="/#features"],
  .nav-links a[href="#pricing"],
  .nav-links a[href="/#pricing"] {
    display: none;
  }

  /* One bust-and-globe behind the quote, the wordmark, and the footer.
     Fit the whole picture to the column (bust and globe both stay in frame).
     The combined block is at least that tall; taller copy continues on #000. */
  body:has(.how) .curtain {
    --curtain-h: 0px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    container-type: inline-size;
  }
  body:has(.how) .curtain > .closing-bg {
    position: relative;
    top: auto;
    height: auto;
    min-height: calc(100cqw * 9 / 16);
    grid-row: 2;
    grid-column: 1;
    z-index: 0;
    background-color: #000;
  }
  body:has(.how) .curtain-over {
    display: contents;
    margin-top: 0;
  }
  body:has(.how) #pricing {
    grid-row: 1;
    grid-column: 1;
  }
  body:has(.how) .closing {
    grid-row: 2;
    grid-column: 1;
    z-index: 1;
    min-height: calc(100cqw * 9 / 16);
    background-color: transparent;
  }
  body:has(.how) .closing-bg::before {
    background-color: #000;
    background-repeat: no-repeat;
    background-position: center 24px;
    background-size: 100% auto;
  }
  #pricing .plan,
  #pricing .plan:hover,
  #pricing .plan:focus-visible {
    transform: none;
  }

  .hero { gap: 20px; }
  .hero-copy { padding-top: 12px; gap: 18px; }
  .hero h1 {
    font-size: min(40px, calc((100vw - 64px) * 0.09));
    line-height: 1;
  }
  .hero-line { white-space: nowrap; }
  .hero-dek { font-size: 17px; line-height: 1.5; }
  .hero-actions .btn { min-height: 48px; font-size: 12px; letter-spacing: 0.04em; }
  .downloads {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .downloads a {
    width: 100%;
    height: auto;
    min-height: 48px;
    padding: 14px 16px;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-align: center;
  }
  .hero-art { padding: 0; }
  .hero-art img { max-height: 420px; width: 100%; height: auto; object-fit: contain; }

  .coaching { gap: 28px; padding-bottom: 48px; }
  .coaching-head { min-height: 0; }
  .coaching h2 {
    font-size: min(34px, calc((100vw - 64px) * 0.082));
    line-height: 1.05;
  }

  .how-hand {
    width: min(280px, 78%);
    height: auto;
    max-height: 160px;
  }
  .how h2 { font-size: 40px; line-height: 1.05; }
  .step { gap: 16px; }
  .step p { font-size: 16px; line-height: 1.45; }

  .ledger { padding: 28px var(--pad); }
  .ledger h2 {
    min-height: 0;
    font-size: min(32px, calc((100vw - 64px) * 0.078));
    line-height: 1.08;
    padding-bottom: 18px;
  }
  .feature { min-height: 0; align-items: flex-start; gap: 10px; padding: 20px 0; }
  .feature h3 { font-size: 24px; line-height: 1.15; }
  .feature p { font-size: 16px; line-height: 1.5; width: 100%; }

  .plans { flex-direction: column; }
  .plan { width: 100%; flex: none; min-width: 0; }
  .plan .price { font-size: 48px; line-height: 1.1; }
  .plan .subscribe { height: 48px; font-size: 16px; }
  .pricing h2 { font-size: 36px; line-height: 1.1; }
  .pricing-dek, .pricing-note { font-size: 16px; line-height: 1.5; }

  .manifesto { padding: 20px var(--pad) 0; }
  .manifesto p {
    font-size: min(26px, calc((100vw - 64px) * 0.068));
    line-height: 1.2;
  }
  .finale { padding: 24px var(--pad) 12px; }
  .finale h2 {
    font-size: min(40px, calc((100vw - 64px) * 0.1));
    line-height: 1;
  }
  .finale p { font-size: 17px; line-height: 1.45; }
  .finale .btn { min-height: 48px; font-size: 12px; letter-spacing: 0.04em; }
  .wordmark,
  .rome .wordmark {
    font-size: min(56px, calc((100vw - 40px) * 0.15));
    line-height: 1;
    padding: 8px var(--pad) 12px;
  }
  .footer-bar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-links { gap: 4px 16px; width: 100%; }
  .footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 0;
    font-size: 12px;
    letter-spacing: 0.06em;
  }
  .legal { white-space: normal; font-size: 12px; line-height: 1.4; }

  .tile-grid { grid-template-columns: minmax(0, 1fr); }
  .tile, .tile-card, .tile-photo { max-width: 100%; }
  .tile h2 { min-height: 0; font-size: 24px; line-height: 1.25; }
  .topics { padding: 32px var(--pad) 48px; }
  .field-hero { padding: 36px var(--pad) 28px; }
  .field-hero .kicker {
    font-size: 26px;
    line-height: 1.2;
    letter-spacing: 0.04em;
  }
  .field-hero h1 { font-size: 30px; line-height: 1.2; }
  .field-hero p { font-size: 17px; line-height: 1.5; }

  .page-shell { padding: 28px 16px 56px; }
  .page-header h1 { font-size: 36px; line-height: 1.1; }
  .policy-table-wrap { max-width: 100%; overflow-x: auto; }
  .policy-table { font-size: 15px; }
  .policy-table th,
  .policy-table td { overflow-wrap: anywhere; }

  /* Homepage phone: no logo row and no feature links. A hamburger opens Articles and Get Started. */
  body:has(.how) .nav-spacer {
    display: none;
    height: 0 !important;
  }
  body:has(.how) .nav,
  body:has(.how) .nav.is-pinned,
  body:has(.how) .nav.is-pinned.is-shown {
    position: absolute;
    top: 8px;
    right: 8px;
    left: auto;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    gap: 0;
    background: transparent;
    transform: none;
    z-index: 30;
  }
  body:has(.how) .brand { display: none; }
  body:has(.how) .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
  }
  body:has(.how) .nav-links { display: none; }
  body:has(.how) .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: min(240px, calc(100vw - 32px));
    margin: 0;
    padding: 8px;
    gap: 8px;
    background: #000;
    border: 1px solid var(--line);
    z-index: 31;
  }
  body:has(.how) .nav-links.open a[href="#features"],
  body:has(.how) .nav-links.open a[href="/#features"],
  body:has(.how) .nav-links.open a[href="#pricing"],
  body:has(.how) .nav-links.open a[href="/#pricing"] {
    display: none;
  }
  body:has(.how) .nav-links.open a[href="articles/"],
  body:has(.how) .nav-links.open a[href="/articles/"],
  body:has(.how) .nav-links.open a[href="./"] {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 12px;
    color: var(--bone);
    font-size: 13px;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }
  body:has(.how) .nav-links.open .btn {
    display: inline-flex;
    width: 100%;
    height: 48px;
    min-height: 48px;
    padding: 0 12px;
    background: #ff6550;
    color: #000;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }
  body:has(.how) .menu-btn[aria-expanded="true"] span {
    background: transparent;
  }
  body:has(.how) .menu-btn[aria-expanded="true"] span::before,
  body:has(.how) .menu-btn[aria-expanded="true"] span::after {
    top: 0;
  }
  body:has(.how) .menu-btn[aria-expanded="true"] span::before { transform: rotate(45deg); }
  body:has(.how) .menu-btn[aria-expanded="true"] span::after { transform: rotate(-45deg); }
}

@media (max-width: 340px) {
  .brand { font-size: 0; gap: 0; }
}
