/* ============================================================
   Postby — site stylesheet
   Studio-grade. Editorial restraint.
   ============================================================ */

:root {
  --ink:         #0F4C5C;
  --ink-deep:    #0A3641;
  --signal:      #F47C2C;
  --signal-deep: #D9651A;
  --paper:       #FAFAF7;
  --paper-pure:  #FFFFFF;
  --graphite:    #0F172A;
  --steel:       #475569;
  --mist:        #E2E8F0;
  --mist-soft:   #EEF2F6;
  --alert:       #DC2626;
  --success:     #059669;

  --display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:    "JetBrains Mono", "SF Mono", Menlo, monospace;

  --pad-x: clamp(20px, 5vw, 56px);
  --section-y: clamp(64px, 9vw, 128px);

  --measure: 64ch;
  --measure-narrow: 52ch;
  --measure-wide: 78ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

/* -------- Type -------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(40px, 6.5vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-weight: 700;
}
h2 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
}
h3 {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 600;
}
h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0;
}
p {
  margin: 0 0 1.1em;
  text-wrap: pretty;
  max-width: var(--measure);
}
.lead {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--graphite);
  max-width: var(--measure-wide);
  font-weight: 400;
}
.eyebrow {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--signal);
}
.caption {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--steel);
}
.mono { font-family: var(--mono); font-size: 0.92em; letter-spacing: -0.01em; }
small, .meta { color: var(--steel); font-size: 14px; }

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 150ms ease;
}
a:hover { color: var(--signal); }

/* -------- Layout -------- */
.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 var(--pad-x); }
.wrap-tight  { max-width: 720px; margin: 0 auto; padding: 0 var(--pad-x); }

.section { padding: var(--section-y) 0; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.section.dark {
  background: var(--ink-deep);
  color: var(--paper);
}
.section.dark h1, .section.dark h2, .section.dark h3, .section.dark h4 { color: var(--paper); }
.section.dark p { color: rgba(250, 250, 247, 0.82); }
.section.dark a:not(.btn) { color: var(--paper); border-bottom: 1px solid rgba(250, 250, 247, 0.3); text-decoration: none; }
.section.dark a:not(.btn):hover { color: var(--signal); border-color: var(--signal); }
.section.dark .eyebrow { color: var(--signal); }
.section.dark .caption { color: rgba(250, 250, 247, 0.6); }

.rule { border: 0; border-top: 1px solid var(--mist); margin: 0; }
.rule-ink { border-top: 1px solid var(--ink); opacity: 0.18; }
.rule-section {
  border: 0;
  border-top: 1px solid var(--mist);
  margin: 0;
  max-width: 1200px;
  width: calc(100% - 2 * var(--pad-x));
  margin-left: auto;
  margin-right: auto;
}

/* -------- Skip link -------- */
.skip {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 16px;
  z-index: 100;
  text-decoration: none;
}
.skip:focus { top: 0; }

/* -------- Header -------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.site-header.is-scrolled { border-bottom-color: var(--mist); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--ink); }
.brand .brand-suffix {
  font-weight: 500;
  color: var(--steel);
  font-size: 15px;
  letter-spacing: 0;
}
.brand .brand-mark {
  width: 14px; height: 14px; border-radius: 3px; background: var(--signal);
  display: inline-block; align-self: center;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--graphite);
  text-decoration: none;
  letter-spacing: 0;
  padding: 6px 0;
}
.nav-links a:hover { color: var(--signal); }
.nav-links a.is-current { color: var(--ink); border-bottom: 2px solid var(--ink); }
.nav-toggle { display: none; background: transparent; border: 0; padding: 8px; }
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px;
  }
  .nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 1px; }
  .nav-open .nav-links {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--mist);
    padding: 12px var(--pad-x) 24px;
  }
  .nav-open .nav-links li { padding: 12px 0; border-bottom: 1px solid var(--mist-soft); }
  .nav-open .nav-links li:last-child { border-bottom: 0; padding-top: 18px; }
  .nav-open .nav-cta { align-self: flex-start; }
}

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 6px;
  font-family: var(--body);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease;
  white-space: nowrap;
  letter-spacing: 0;
}
.btn-lg { padding: 18px 32px; font-size: 16px; }
.btn-primary {
  background: var(--signal);
  color: #fff;
}
.btn-primary:hover {
  background: var(--signal-deep);
  color: #fff;
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: var(--paper);
}
.section.dark .btn-secondary {
  color: var(--paper);
  border-color: var(--paper);
}
.section.dark .btn-secondary:hover {
  background: var(--paper);
  color: var(--ink);
}
.btn-ghost {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  padding-bottom: 2px;
}
.btn-ghost:hover { color: var(--signal); border-color: var(--signal); }
.btn-arrow::after {
  content: "→";
  transition: transform 200ms ease;
  display: inline-block;
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* Tiny inline arrow link */
.arrow-link {
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
}
.arrow-link::after { content: "→"; transition: transform 150ms ease; }
.arrow-link:hover { color: var(--signal); border-color: var(--signal); }
.arrow-link:hover::after { transform: translateX(3px); }

/* -------- Hero -------- */
.hero {
  padding: clamp(72px, 10vw, 140px) 0 clamp(64px, 8vw, 110px);
  position: relative;
  background: var(--paper);
  border-bottom: 1px solid var(--mist);
}
.hero h1 { max-width: 18ch; }
.hero .lead { margin-top: 22px; max-width: 60ch; }
.hero .accent-line {
  display: block;
  width: 64px;
  height: 3px;
  background: var(--signal);
  margin-bottom: 36px;
}
.hero-actions {
  margin-top: 44px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.hero.dark { background: var(--ink-deep); border-bottom: 0; color: var(--paper); }
.hero.dark h1 { color: var(--paper); }
.hero.dark .lead { color: rgba(250, 250, 247, 0.82); }

/* Hero with right-side avatar */
.hero-split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
@media (max-width: 880px) { .hero-split { grid-template-columns: 1fr; } }
.hero-portrait {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  border-radius: 12px;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  font-family: var(--display);
  font-size: 96px;
  font-weight: 700;
  letter-spacing: -0.04em;
  position: relative;
  overflow: hidden;
}
.hero-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(244, 124, 44, 0.18), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(244, 124, 44, 0.12), transparent 50%);
}

/* -------- Section header -------- */
.section-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(32px, 5vw, 80px);
  margin-bottom: clamp(40px, 5vw, 64px);
  align-items: start;
}
.section-head .label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-head .label::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--signal);
}
.section-head h2 { max-width: 22ch; margin: 0; }
@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; }
}

/* -------- Stack list (vertical, ruled) -------- */
.stack-list {
  border-top: 1px solid var(--ink);
}
.stack-list > li,
.stack-list > .item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: clamp(20px, 3vw, 40px);
  padding: 36px 0;
  border-bottom: 1px solid var(--mist);
  list-style: none;
}
.stack-list .num {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--signal);
  padding-top: 6px;
}
.stack-list h3 { margin-bottom: 10px; }
.stack-list p {
  font-size: 17px;
  color: var(--graphite);
  margin-bottom: 0;
  max-width: 64ch;
}
.stack-list .item-body p + p { margin-top: 0.8em; }
@media (max-width: 720px) {
  .stack-list > li,
  .stack-list > .item { grid-template-columns: 1fr; gap: 8px; padding: 28px 0; }
  .stack-list .num { padding-top: 0; }
}

/* -------- Tier list (engagements) -------- */
.tier-list {
  border-top: 1px solid var(--ink);
}
.tier {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(28px, 4vw, 64px);
  padding: 48px 0;
  border-bottom: 1px solid var(--mist);
  align-items: start;
}
.tier-name {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tier-name h3 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}
.tier-name .tag {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
}
.tier-name .pitch {
  font-size: 16px;
  color: var(--steel);
  margin: 4px 0 0;
  max-width: 36ch;
}
.tier-list ul.tier-features {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 10px;
}
.tier-features li {
  position: relative;
  padding-left: 22px;
  font-size: 16px;
  color: var(--graphite);
}
.tier-features li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 10px; height: 1px;
  background: var(--ink);
}
.tier-min {
  font-size: 13px;
  color: var(--steel);
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
@media (max-width: 880px) {
  .tier { grid-template-columns: 1fr; gap: 24px; padding: 40px 0; }
}

/* -------- Two-column compare (fit / not fit) -------- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
}
@media (max-width: 720px) { .compare { grid-template-columns: 1fr; gap: 40px; } }
.compare-col h3 {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
}
.compare-col.fit h3 { color: var(--ink); }
.compare-col.not h3 { color: var(--steel); border-color: var(--steel); }
.compare ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.compare li {
  font-size: 16px;
  line-height: 1.55;
  color: var(--graphite);
  padding-left: 22px;
  position: relative;
}
.compare-col.fit li::before {
  content: "+";
  position: absolute;
  left: 0; top: 0;
  color: var(--signal);
  font-weight: 600;
}
.compare-col.not li::before {
  content: "—";
  position: absolute;
  left: 0; top: 0;
  color: var(--steel);
}

/* -------- Brief / lead-magnet inset -------- */
.inset {
  background: var(--paper-pure);
  border: 1px solid var(--mist);
  border-radius: 8px;
  padding: clamp(36px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 880px) { .inset { grid-template-columns: 1fr; } }
.inset h3 { margin-top: 0; }

/* -------- Forms -------- */
.form {
  display: grid;
  gap: 18px;
  max-width: 520px;
}
.form label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.form input,
.form textarea,
.form select {
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--mist);
  border-radius: 6px;
  background: var(--paper-pure);
  color: var(--graphite);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: none;
  border: 2px solid var(--ink);
  padding: 11px 13px;
}
.form textarea { min-height: 160px; resize: vertical; }
.form button { justify-self: start; margin-top: 4px; }
.form-msg {
  font-size: 14px;
  color: var(--steel);
  display: none;
  margin-top: 12px;
}
.form-msg.show { display: block; }
.form-msg.success { color: var(--success); }
.form-msg.error { color: var(--alert); }

.form-success {
  border: 1px solid var(--success);
  border-radius: 6px;
  padding: 24px;
  background: rgba(5, 150, 105, 0.04);
  color: var(--graphite);
}
.form-success h3 { color: var(--success); font-size: 18px; margin-bottom: 8px; }
.form-success p { margin: 0; font-size: 16px; }

/* -------- Booking embed -------- */
.booking-frame {
  background: var(--paper-pure);
  border: 1px solid var(--mist);
  border-radius: 8px;
  min-height: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 56px 32px;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.booking-frame iframe { width: 100%; border: 0; min-height: 720px; }
.booking-frame .placeholder {
  font-size: 14px;
  color: var(--steel);
  font-family: var(--mono);
  background: var(--mist-soft);
  border-radius: 4px;
  padding: 12px 18px;
  margin-bottom: 18px;
}
.booking-caption {
  text-align: center;
  font-size: 13px;
  color: var(--steel);
  max-width: 60ch;
  margin: 16px auto 0;
}

/* -------- Final CTA band -------- */
.cta-band {
  background: var(--ink-deep);
  color: var(--paper);
  padding: clamp(72px, 10vw, 140px) 0;
  text-align: center;
}
.cta-band h2 {
  color: var(--paper);
  max-width: 18ch;
  margin: 0 auto 20px;
  font-size: clamp(34px, 4.4vw, 52px);
}
.cta-band p {
  color: rgba(250, 250, 247, 0.78);
  max-width: 56ch;
  margin: 0 auto 36px;
  font-size: 17px;
}
.cta-band .accent-line {
  display: block;
  width: 56px;
  height: 3px;
  background: var(--signal);
  margin: 0 auto 32px;
}

/* -------- Footer -------- */
.site-footer {
  background: var(--ink-deep);
  color: rgba(250, 250, 247, 0.7);
  padding: 64px 0 32px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer-grid h4 {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  margin: 0 0 14px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a {
  color: rgba(250, 250, 247, 0.72);
  text-decoration: none;
  font-size: 14px;
  border: 0;
}
.footer-grid a:hover { color: var(--signal); }
.footer-grid .brand { color: var(--paper); }
.footer-grid p { color: rgba(250, 250, 247, 0.72); font-size: 14px; max-width: 38ch; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(250, 250, 247, 0.12);
  font-size: 13px;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: rgba(250, 250, 247, 0.72); border: 0; }

/* -------- Page heads (interior) -------- */
.page-head {
  padding: clamp(80px, 10vw, 140px) 0 clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--mist);
}
.page-head h1 {
  max-width: 22ch;
  margin-bottom: 20px;
}
.page-head .lead { max-width: 60ch; }
.page-head .accent-line {
  display: block;
  width: 56px;
  height: 3px;
  background: var(--signal);
  margin-bottom: 32px;
}

/* -------- Prose -------- */
.prose { max-width: 64ch; }
.prose h2 { margin-top: 56px; font-size: clamp(24px, 2.4vw, 32px); }
.prose h3 { margin-top: 32px; font-size: 18px; font-weight: 600; color: var(--ink); }
.prose p { font-size: 17px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 1.4em; }
.prose li { margin-bottom: 8px; max-width: 64ch; font-size: 17px; }

/* -------- Centered minimal page (thank you, 404) -------- */
.minimal {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 80px 0;
}
.minimal h1 {
  font-size: clamp(40px, 6vw, 72px);
  max-width: 18ch;
}
.minimal .accent-line {
  display: block;
  width: 56px;
  height: 3px;
  background: var(--signal);
  margin-bottom: 32px;
}
.minimal .lead { max-width: 56ch; margin-bottom: 36px; }

/* -------- Helpers -------- */
.text-steel { color: var(--steel); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* -------- Reduced motion -------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* -------- Print -------- */
@media print {
  .site-header, .cta-band, .site-footer { display: none; }
  body { color: #000; background: #fff; font-size: 12pt; }
}

/* -------- Focus visible -------- */
:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ============================================================
   Design layer v2 — textures, shapes, sections
   Adds visual rhythm without breaking the studio-grade feel.
   ============================================================ */

:root {
  --cream:    #F4EFE6;   /* warm second background */
  --cream-2:  #EDE5D5;   /* a touch deeper */
  --teal-50:  #EAF1F2;   /* paper-with-teal-cast */
  --teal-100: #D6E2E4;
  --ink-line: rgba(15, 76, 92, 0.14);
  --signal-soft: rgba(244, 124, 44, 0.12);
}

/* Paper noise — extremely subtle, sits behind everything */
body { position: relative; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.06  0 0 0 0 0.05  0 0 0 0 0.04  0 0 0 0.045 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
  mix-blend-mode: multiply;
}
.site-header, main, .site-footer { position: relative; z-index: 1; }

/* -------- Section background variants -------- */
.section.alt {
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.section.alt::before {
  /* horizontal hairline grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 47px,
    rgba(15, 76, 92, 0.05) 47px,
    rgba(15, 76, 92, 0.05) 48px
  );
  pointer-events: none;
}
.section.alt > * { position: relative; }

.section.tint {
  background: var(--teal-50);
  position: relative;
  overflow: hidden;
}
.section.tint::before {
  /* dot grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(15, 76, 92, 0.18) 1px, transparent 1.5px);
  background-size: 28px 28px;
  background-position: 14px 14px;
  opacity: 0.5;
  pointer-events: none;
}
.section.tint > * { position: relative; }

.section.deep {
  background: var(--ink-deep);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.section.deep h1, .section.deep h2, .section.deep h3, .section.deep h4 { color: var(--paper); }
.section.deep p { color: rgba(250, 250, 247, 0.82); max-width: var(--measure); }
.section.deep .label { color: var(--signal); }
.section.deep::before {
  /* diagonal stripe gradient */
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0,
    transparent 22px,
    rgba(244, 124, 44, 0.04) 22px,
    rgba(244, 124, 44, 0.04) 23px
  );
  pointer-events: none;
}
.section.deep > * { position: relative; }

/* -------- Diagonal-stripe rule between major chapters -------- */
.chapter-rule {
  height: 28px;
  background-image: repeating-linear-gradient(
    -45deg,
    var(--ink) 0,
    var(--ink) 1px,
    transparent 1px,
    transparent 7px
  );
  opacity: 0.7;
  margin: 0;
  border: 0;
  width: 100%;
}
.chapter-rule.signal {
  background-image: repeating-linear-gradient(
    -45deg,
    var(--signal) 0,
    var(--signal) 1px,
    transparent 1px,
    transparent 7px
  );
  opacity: 0.55;
}

/* -------- Decorative corner mark (L-shape) -------- */
.corner-mark {
  position: absolute;
  width: 28px;
  height: 28px;
  border-top: 1.5px solid var(--ink);
  border-left: 1.5px solid var(--ink);
}
.corner-mark.tr { right: 24px; top: 24px; transform: rotate(90deg); }
.corner-mark.bl { left: 24px; bottom: 24px; transform: rotate(270deg); }
.corner-mark.br { right: 24px; bottom: 24px; transform: rotate(180deg); }
.corner-mark.signal { border-color: var(--signal); }
.section.deep .corner-mark { border-color: rgba(250, 250, 247, 0.4); }

/* -------- Big numeral marker (chapter index) -------- */
.bignum {
  font-family: var(--display);
  font-size: clamp(80px, 13vw, 200px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink-line);
  text-stroke: 1.5px var(--ink-line);
  display: block;
  margin-bottom: 8px;
  user-select: none;
}
.section.deep .bignum {
  -webkit-text-stroke-color: rgba(244, 124, 44, 0.35);
}
.section.alt .bignum {
  -webkit-text-stroke-color: rgba(15, 76, 92, 0.18);
}

/* -------- Hero deco — outline circle + tick grid -------- */
.hero-deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.hero-deco.circle {
  right: -120px;
  top: 80px;
  width: 460px;
  height: 460px;
  border: 1.5px solid var(--ink-line);
  border-radius: 50%;
}
.hero-deco.circle::after {
  content: "";
  position: absolute;
  inset: 36px;
  border: 1px dashed rgba(244, 124, 44, 0.5);
  border-radius: 50%;
}
.hero-deco.dot-grid {
  left: var(--pad-x);
  bottom: 28px;
  width: 130px;
  height: 60px;
  background-image: radial-gradient(circle, var(--ink) 1.2px, transparent 1.4px);
  background-size: 14px 14px;
  opacity: 0.18;
}
.hero-deco.tick {
  right: 18%;
  bottom: 36px;
  width: 1px;
  height: 80px;
  background: var(--signal);
}
.hero-deco.tick::before, .hero-deco.tick::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 1px;
  background: var(--signal);
  left: -6px;
}
.hero-deco.tick::before { top: 0; }
.hero-deco.tick::after { bottom: 0; }
.hero { position: relative; overflow: hidden; }
.hero > .wrap { position: relative; z-index: 2; }

/* Hero variant on cream bg */
.hero.cream { background: var(--cream); border-bottom: 1px solid var(--ink-line); }
.hero.cream::after {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0, transparent 47px,
    rgba(15, 76, 92, 0.04) 47px, rgba(15, 76, 92, 0.04) 48px
  );
  pointer-events: none;
  z-index: 1;
}

/* -------- Pull quote (editorial accent) -------- */
.pullquote {
  position: relative;
  max-width: 22ch;
  font-family: var(--display);
  font-size: clamp(28px, 3.8vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--ink);
  padding: 8px 0 8px 32px;
  border-left: 3px solid var(--signal);
  margin: 0;
}
.pullquote cite {
  display: block;
  margin-top: 18px;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  font-style: normal;
}
.section.deep .pullquote { color: var(--paper); border-left-color: var(--signal); }
.section.deep .pullquote cite { color: rgba(250, 250, 247, 0.6); }

/* -------- Stat strip -------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.stat-strip > .stat {
  padding: 36px 28px;
  border-right: 1px solid var(--mist);
}
.stat-strip > .stat:last-child { border-right: 0; }
.stat-strip .stat-num {
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--ink);
  display: block;
  margin-bottom: 10px;
}
.stat-strip .stat-num em {
  font-style: normal;
  color: var(--signal);
}
.stat-strip .stat-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--steel);
  text-transform: uppercase;
}
@media (max-width: 880px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip > .stat:nth-child(2) { border-right: 0; }
  .stat-strip > .stat:nth-child(-n+2) { border-bottom: 1px solid var(--mist); }
}

/* -------- Layered card (the moat block) -------- */
.layered-card {
  background: var(--paper-pure);
  border: 1px solid var(--mist);
  border-radius: 10px;
  padding: clamp(28px, 3.5vw, 48px);
  position: relative;
  box-shadow: 0 1px 0 rgba(15, 76, 92, 0.04);
}
.layered-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 11px;
  border: 1px solid var(--ink-line);
  transform: translate(8px, 8px);
  z-index: -1;
}

/* -------- Marquee tag (eyebrow with bracket) -------- */
.tag-bracket {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--ink);
  border-radius: 4px;
}
.tag-bracket::before { content: "["; color: var(--signal); }
.tag-bracket::after  { content: "]"; color: var(--signal); }
.section.deep .tag-bracket { color: var(--paper); border-color: rgba(250, 250, 247, 0.4); }

/* -------- Improved readability tweaks -------- */
.section .lead { max-width: 60ch; }
.prose p, .stack-list p, .tier-features li { line-height: 1.7; }
p { line-height: 1.7; }

/* -------- Footer mark (decorative) -------- */
.site-footer { position: relative; overflow: hidden; }
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--signal) 30%, var(--signal) 70%, transparent);
  opacity: 0.5;
}

/* -------- Spec compliance: keep noise off print -------- */
@media print {
  body::before { display: none; }
}
