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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.7;
  font-weight: 400;
  overflow-x: clip;
  max-width: 100%;
}

img, picture, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

img {
  width: 100%;
  height: auto;
}

a { color: var(--accent-ink); text-underline-offset: 2px; }
a:hover { color: var(--primary-ink); }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(32px, 4.4vw, 56px); margin: 0 0 0.6rem; }
h2 { font-size: clamp(26px, 3vw, 34px); margin: 0 0 0.7rem; }
h3 { font-size: 1.15rem; margin: 0 0 0.45rem; }
h4 { font-size: 1rem; margin: 0 0 0.4rem; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--text);
  color: #fff;
  padding: 8px 12px;
  z-index: 400;
}
.skip-link:focus { top: 12px; }

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}
.container-narrow { width: min(100% - 32px, 820px); margin-inline: auto; }

/* Sticky compact-left header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 250;
  height: var(--header-h);
  background: rgba(255, 248, 242, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
  flex: 0 0 auto;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  flex: 0 0 auto;
}
.brand-name {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  line-height: 1.15;
}
.brand-tag {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  min-width: 0;
}
.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a[aria-current="page"],
.main-nav a.is-active {
  border-bottom-color: var(--primary);
  color: var(--primary-ink);
}
.main-nav a.cta,
.header-cta {
  background: var(--primary);
  color: var(--cta-fg) !important;
  padding: 8px 14px;
  border: 0;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 0 !important;
}
.header-cta-ghost {
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  padding: 0;
  position: relative;
  z-index: 300;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  margin: 3px auto;
  pointer-events: none;
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  background: var(--background);
  z-index: 200;
  padding: 88px 20px 32px;
  overflow: auto;
  overflow-x: clip;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.2s ease, visibility 0.2s;
}
.mobile-drawer.is-open {
  transform: none;
  visibility: visible;
  z-index: 400;
}
.mobile-drawer[inert] { pointer-events: none; }
.drawer-close {
  position: fixed;
  top: 14px;
  right: 12px;
  z-index: 500;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 22px;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}
html.is-drawer-open,
html.is-drawer-open body {
  overflow: hidden;
}
html.is-drawer-open .hamburger {
  visibility: hidden;
  pointer-events: none;
}
.drawer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.drawer-nav a {
  display: block;
  padding: 12px 4px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.drawer-nav a[aria-current="page"] { color: var(--primary-ink); }
.drawer-cta {
  display: block;
  margin-top: 20px;
  background: var(--primary);
  color: var(--cta-fg) !important;
  text-align: center;
  text-decoration: none;
  padding: 14px 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.nav-open { overflow: hidden; }

main {
  display: block;
}
section[id] { scroll-margin-top: 88px; }

.band { padding: 56px 0; }
.band-paper { background: var(--background); }
.band-warm { background: var(--surface-2); }
.band-ink {
  background: #3A261C;
  color: #F7EDE4;
}
.band-ink h2, .band-ink h3, .band-ink p { color: inherit; }
.band-elev-1 { background: var(--surface); border-block: 1px solid var(--border); }

.kicker,
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-ink);
  margin-bottom: 10px;
}

/* Hero: typographic poster */
.hero-poster {
  position: relative;
  min-height: min(72vh, 640px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  overflow: visible;
}
.hero-poster-copy {
  padding: 64px 6vw 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.hero-poster-copy::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: var(--primary);
}
.hero-poster h1 { max-width: 16ch; }
.hero-proof {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 42ch;
  margin: 0 0 22px;
}
.hero-poster-still {
  min-width: 0;
  position: relative;
  background: #C9A888;
}
.hero-poster-still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.btn,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--cta-fg);
  text-decoration: none;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 0;
}
.btn:hover, .btn-primary:hover { background: var(--primary-ink); color: var(--cta-fg); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border-strong);
  text-decoration: none;
  padding: 11px 16px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

/* Compliance strip */
.compliance-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  font-size: 14px;
  color: var(--muted);
}
.compliance-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}
.age-seal {
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
}

/* Typographic data poster */
.data-poster,
.typo-poster {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  padding: 28px 24px;
}
.poster-nums {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0 8px;
}
.poster-num {
  min-width: 0;
}
.poster-num b {
  display: block;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.95;
  color: var(--accent);
  letter-spacing: -0.04em;
  font-weight: 700;
}
.poster-num span {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

/* Comparison ledger */
.ledger {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}
.ledger th, .ledger td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  min-width: 0;
}
.ledger th {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  background: var(--surface-2);
}
.ledger td strong { display: block; }
.ledger-wrap,
.data-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  background: var(--surface);
}
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.data-table th {
  background: var(--surface-2);
  font-size: 13px;
}

.ledger-stack { display: none; }
.ledger-row {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 14px;
  margin-bottom: 10px;
}
.ledger-row dt {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 8px 0 2px;
}
.ledger-row dt:first-child { margin-top: 0; }
.ledger-row dd { margin: 0; }

/* Framed still */
.framed-still {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: center;
}
.frame-mat {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  padding: 12px;
  min-width: 0;
}
.frame-mat img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
.frame-cap {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

/* Progressive desk / disclosure */
.desk, .faq, .faq-grid { display: grid; gap: 8px; }
.desk details,
.faq details,
.q-item {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0 16px;
}
.desk summary,
.faq summary,
.q-item summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 0;
  font-weight: 700;
}
.desk summary::-webkit-details-marker,
.faq summary::-webkit-details-marker { display: none; }
.desk .desk-body,
.q-body { padding: 0 0 16px; color: var(--muted); }

/* Criteria sheet */
.sheet {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.sheet-item,
.criteria {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 18px;
  min-width: 0;
}
.sheet-item h3 { font-size: 1rem; }

/* Process strip / stepper */
.steps, .process-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.step, .step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 18px;
  min-width: 0;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}

/* Jurisdiction gate */
.gate {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  background: var(--surface);
  border: 2px solid var(--ink);
  padding: 28px;
}
.gate-mark {
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.9;
  font-weight: 700;
  color: var(--primary);
}

/* Control panel */
.controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.control {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 18px;
  min-width: 0;
}

/* CTA band */
.cta-banner, .hub-cta-band {
  background: var(--surface);
  border: 1px solid var(--primary);
  padding: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 20px;
  align-items: center;
}

/* Dated register */
.register { list-style: none; margin: 0; padding: 0; }
.register li {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.register time {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}
.register a { text-decoration: none; color: var(--ink); font-weight: 700; }

/* Definition rail */
.def-list, .definition-list {
  display: grid;
  gap: 10px;
}
.def-list div, .definition-list div {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.def-list dt, .definition-list dt { font-weight: 700; }

/* Refusal ledger */
.refuse {
  background: var(--surface);
  border-left: 4px solid var(--primary);
  padding: 20px 22px;
}
.refuse ul { margin: 0; padding-left: 18px; }

/* Task map */
.task-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.task-map a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 18px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}
.task-map a span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

.reading-rail {
  display: grid;
  gap: 8px;
}
.reading-rail a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}

.colophon {
  font-size: 14px;
  color: var(--muted);
}

.page-hero {
  padding: 48px 0 28px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: end;
}
.page-hero img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--border-strong);
  background: var(--felt);
}
.crumbs {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}
.crumbs a { color: var(--muted); }
.lede { font-size: 1.05rem; color: var(--muted); max-width: 62ch; }

.prose { max-width: var(--prose); }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.4rem; }

.inline-image-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin: 28px 0;
}
.inline-image-row img,
.inline-image-row .visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--felt);
}

.figure, figure {
  margin: 28px 0;
}
.figure img, figure img {
  border: 1px solid var(--border-strong);
  background: var(--felt);
}
figcaption, .figcap {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

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

.card, .data-card, .loose-card, .hub-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
  min-width: 0;
}
.card-image img, .card > img, .hub-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 12px;
}
.card-body { min-width: 0; }

.disclaimer {
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.site-footer {
  background: #2A1B14;
  color: #E8D6C8;
  padding: 48px 0 28px;
  margin-top: 0;
}
.site-footer a { color: #F3E4D8; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.footer-grid h2 {
  color: #F7EDE4;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: 0 0 8px; }
.footer-note {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 13px;
  color: #C9B2A2;
}

.mobile-sticky {
  display: none;
}

/* Verify-all class aliases */
.data-card, .step-card, .step-num, .loose-card, .band, .faq-grid { }

@media (max-width: 1023px) {
  .main-nav, .header-cta, .header-cta-ghost { display: none; }
  .hamburger {
    display: flex;
    margin-left: auto;
  }
  .hero-poster {
    grid-template-columns: 1fr;
    min-height: 0;
    max-height: none;
    height: auto;
    overflow: visible;
  }
  .hero-poster-copy { padding: 80px 20px 36px; }
  .hero-poster-still { min-height: 220px; max-height: none; }
  .hero-poster-still img { height: auto; max-height: 280px; object-fit: cover; }
  .framed-still,
  .page-hero-grid,
  .gate,
  .cta-banner,
  .inline-image-row {
    grid-template-columns: 1fr;
  }
  .poster-nums,
  .sheet,
  .steps,
  .controls,
  .task-map,
  .grid-2,
  .grid-3,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 899px) {
  .hero-poster { min-height: 0 !important; max-height: none !important; padding: 0 !important; overflow: visible !important; }
  #hero-h { font-size: 32px !important; line-height: 1.1 !important; }
}

@media (max-width: 640px) {
  .poster-nums,
  .sheet,
  .steps,
  .process-strip,
  .controls,
  .task-map,
  .grid-2,
  .grid-3,
  .footer-grid,
  .compliance-row,
  .register li,
  .def-list div,
  .definition-list div {
    grid-template-columns: 1fr;
  }
  .ledger-desktop { display: none; }
  .ledger-stack { display: block; }
  .cta-banner { padding: 22px 16px; }
  .hero-cta .btn { flex: 1 1 auto !important; }
  .mobile-sticky {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    z-index: 180;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 248, 242, 0.96);
    border-top: 1px solid var(--border);
  }
  .mobile-sticky a {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--primary);
    color: var(--cta-fg);
    text-decoration: none;
    padding: 14px 16px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
  }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 430px) {
  .container { width: min(100% - 24px, var(--max)); }
  .hero-poster-copy { padding: 76px 16px 28px; }
}

/* Grid track safety */
.hero-poster,
.framed-still,
.page-hero-grid,
.gate,
.cta-banner,
.inline-image-row,
.sheet,
.steps,
.controls,
.task-map,
.grid-2,
.grid-3,
.footer-grid,
.poster-nums {
  min-width: 0;
}
.hero-poster > *,
.framed-still > *,
.page-hero-grid > *,
.inline-image-row > * {
  min-width: 0;
}

/* Editorial contact form — scoped so it cannot restyle the site chrome */
.contact-desk {
  max-width: 720px;
}
.contact-desk .chat {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  overflow: hidden;
}
.contact-desk .chat > header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.contact-desk .avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: var(--cta-fg);
  font-weight: 700;
  flex: 0 0 auto;
}
.contact-desk .messages {
  min-height: 160px;
  padding: 16px 18px;
}
.contact-desk .bubble {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 12px 14px;
  margin-bottom: 10px;
}
.contact-desk .identity {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}
.contact-desk label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}
.contact-desk input,
.contact-desk textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  padding: 10px 12px;
}
.contact-desk .composer {
  display: grid;
  gap: 10px;
}
.contact-desk .composer button,
.contact-desk .reset {
  border: 1px solid var(--border-strong);
  background: var(--primary);
  color: var(--cta-fg);
  font-weight: 700;
  padding: 10px 14px;
  cursor: pointer;
}
.contact-desk .status {
  font-size: 14px;
  color: var(--muted);
  margin-top: 10px;
}
.contact-desk .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
