/* =========================================================
   All On 6 by Dr Jiménez — Los Algodones, B.C., Mexico
   Editorial / clinical / unhurried. Built fresh for allon6mexico.com.
   ========================================================= */

:root {
  /* Surfaces */
  --bone:      #F1ECE2;   /* page */
  --ivory:     #F8F4EB;   /* card */
  --paper:     #FBF8F1;   /* lifted card */
  --shell:     #E8E1D2;   /* divider tone */
  --band-warm: #EFE9DC;   /* section band */
  --band-cool: #EEF0E8;   /* quiet contrast band */
  --band-deep: #1A1813;   /* "the serious stuff" dark band */

  /* Ink */
  --ink:   #14130F;
  --ink-2: #2B2A24;
  --ink-3: #5C5A52;
  --ink-4: #8A8678;

  /* Accents — used sparingly. Bronze affirms; terra cautions. */
  --bronze:   #8A6A3D;
  --bronze-2: #B0884E;
  --sage:     #6E7A66;
  --terra:    #A6553B;
  --bronze-wash: #EFE7D8;
  --terra-wash:  #F0E2DB;
  --sage-wash:   #E6EADF;

  --hairline:   #D6CFBE;
  --hairline-2: #C4BBA5;

  /* Type */
  --font-display: "Fraunces", "Cormorant Garamond", ui-serif, Georgia, serif;
  --font-sans:    "Inter", ui-sans-serif, -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Rhythm */
  --max:    1180px;
  --max-wide: 1340px;
  --pad:    clamp(20px, 4vw, 56px);
  --gap:    clamp(20px, 3vw, 40px);
  --sec:    clamp(64px, 9vw, 116px);
  --r-s: 8px; --r: 14px; --r-l: 20px;

  --shadow: 0 2px 6px rgba(20,19,15,.05), 0 30px 60px -36px rgba(20,19,15,.34);
  --ease: cubic-bezier(.2, .6, .2, 1);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }
/* clip (not hidden) so the off-canvas drawer can't widen the page,
   without promoting overflow-y to auto and breaking the sticky header */
html { overflow-x: clip; }
body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--ink); color: var(--bone); }

/* ------------------------------ A11Y ------------------------------ */
.skip-link {
  position: absolute; left: 16px; top: 16px;
  background: var(--ink); color: var(--bone);
  padding: 10px 14px; border-radius: 4px;
  font-size: 13px; letter-spacing: .04em;
  transform: translateY(-200%);
  transition: transform .25s var(--ease);
  z-index: 200;
}
.skip-link:focus { transform: translateY(0); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; border-radius: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ------------------------------ LAYOUT ------------------------------ */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
.wrap-wide { max-width: var(--max-wide); }
.rule { border: 0; height: 1px; background: var(--hairline); margin: 0; }
.section { padding-block: var(--sec); border-bottom: 1px solid var(--hairline); position: relative; }
.section--warm { background: var(--band-warm); }
.section--cool { background: var(--band-cool); }
.section--paper { background: var(--paper); }
.section--deep { background: var(--band-deep); color: var(--ivory); border-bottom-color: #2c2920; }
.section--deep .lede, .section--deep .body { color: #d8d2c4; }
.section--deep .kicker, .section--deep .small-caps { color: var(--bronze-2); }

/* ------------------------------ TYPE ------------------------------ */
.display {
  font-family: var(--font-display); font-weight: 340; font-style: normal;
  font-variation-settings: "opsz" 144, "SOFT" 38;
  letter-spacing: -.022em; line-height: .98; margin: 0;
}
.display em { font-style: italic; color: var(--terra); font-variation-settings: "opsz" 90, "SOFT" 60; }
h1.display { font-size: clamp(40px, 6.4vw, 78px); }
h2.display { font-size: clamp(29px, 4vw, 50px); }
h3.display { font-size: clamp(22px, 2.6vw, 31px); line-height: 1.04; }

.kicker {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 11px; margin: 0 0 18px;
}
.kicker::before { content: ""; width: 24px; height: 1px; background: currentColor; opacity: .8; }

.lede {
  font-family: var(--font-display); font-weight: 340; font-style: italic;
  font-size: clamp(19px, 1.7vw, 23px); font-variation-settings: "opsz" 40;
  line-height: 1.45; color: var(--ink-2); max-width: 54ch; margin: 0;
}
.body { font-size: 16px; line-height: 1.68; color: var(--ink-2); max-width: 64ch; }
.body p { margin: 0 0 1.05em; }
.body p:last-child { margin-bottom: 0; }
.small-caps { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.tnum { font-variant-numeric: tabular-nums; }

/* ------------------------------ BUTTONS ------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans); font-size: 14.5px; font-weight: 500; letter-spacing: .01em;
  padding: 14px 24px; border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--bone); cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn svg { transition: transform .3s var(--ease); }
.btn:hover { background: transparent; color: var(--ink); }
.btn:hover svg { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bone); }
.btn--on-deep { border-color: var(--bronze-2); background: var(--bronze-2); color: var(--band-deep); }
.btn--on-deep:hover { background: transparent; color: var(--ivory); }
.textlink {
  display: inline-flex; align-items: center; gap: 7px; color: var(--bronze);
  font-weight: 500; font-size: 15px;
  border-bottom: 1px solid transparent; transition: border-color .25s var(--ease), gap .25s var(--ease);
}
.textlink svg { transition: transform .25s var(--ease); }
.textlink:hover { border-color: var(--bronze); }
.textlink:hover svg { transform: translateX(3px); }

/* ------------------------------ HEADER ------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(241,236,226,.86); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--hairline);
  transition: padding .3s var(--ease), background .3s var(--ease);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 18px; }
.site-header.is-condensed .site-header__inner { padding-block: 11px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__name { font-family: var(--font-display); font-weight: 420; font-size: 19px; letter-spacing: -.01em; line-height: 1; }
.brand__name span { display: block; font-family: var(--font-mono); font-size: 9.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: 14.5px; color: var(--ink-2); position: relative; padding-block: 4px; transition: color .2s var(--ease); }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--bronze); transition: width .25s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.nav-cta { margin-left: 4px; }
.hamburger { display: none; }

/* mobile nav */
@media (max-width: 880px) {
  .nav { position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px); flex-direction: column; align-items: flex-start;
    gap: 6px; background: var(--ivory); padding: 92px 32px 32px; transform: translateX(100%);
    transition: transform .38s var(--ease); box-shadow: -30px 0 60px -30px rgba(20,19,15,.4); z-index: 150; }
  .nav.is-open { transform: translateX(0); }
  .nav a { font-size: 19px; font-family: var(--font-display); padding-block: 10px; }
  .nav-cta { margin-top: 16px; }
  .hamburger { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; z-index: 160; }
  .hamburger span { width: 24px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), opacity .3s var(--ease); }
  .hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .hamburger.is-open span:nth-child(2) { opacity: 0; }
  .hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .nav-scrim { position: fixed; inset: 0; background: rgba(20,19,15,.34); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s var(--ease); z-index: 140; }
  .nav-scrim.is-open { opacity: 1; visibility: visible; }
}

/* ------------------------------ HERO ------------------------------ */
.t-hero { padding-block: clamp(48px, 7vw, 96px) var(--sec); }
.t-hero__frame { border: 1px solid var(--hairline-2); border-radius: var(--r-l); padding: clamp(28px, 4vw, 56px); background:
  linear-gradient(180deg, var(--paper), var(--ivory)); position: relative; }
.t-hero__frame::after { content: ""; position: absolute; inset: 14px; border: 1px solid var(--hairline); border-radius: calc(var(--r-l) - 6px); pointer-events: none; }
.t-hero__grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.t-hero h1 { margin: 6px 0 22px; }
.breadcrumb { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 26px; }
.breadcrumb a { color: var(--ink-3); } .breadcrumb a:hover { color: var(--bronze); }
.breadcrumb span { margin-inline: 8px; opacity: .6; }

.at-glance { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--r); overflow: hidden; }
.at-glance > div { background: var(--paper); padding: 18px 20px; }
.at-glance dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 7px; }
.at-glance dd { margin: 0; font-family: var(--font-display); font-size: 21px; font-weight: 420; line-height: 1.1; }
.at-glance dd small { font-size: 13px; color: var(--ink-3); font-family: var(--font-sans); }

.byline { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--hairline); font-size: 13px; color: var(--ink-3); }
.byline b { color: var(--ink-2); font-weight: 600; }
.byline .dot { color: var(--bronze); }

/* ------------------------------ SECTION HEAD ------------------------------ */
.sec-head { max-width: 62ch; margin-bottom: clamp(34px, 5vw, 56px); }
.sec-head h2 { margin: 0 0 18px; }
.sec-head .lede { margin-top: 4px; }

/* ------------------------------ CARDS / GRIDS ------------------------------ */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.card { background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; }
.card__tag { display: inline-flex; align-self: flex-start; font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--bronze); border: 1px solid var(--hairline-2); border-radius: 999px; padding: 5px 11px; margin-bottom: 18px; }
.card h3 { margin: 0 0 14px; }
.spec { margin: 0; }
.spec div { display: grid; grid-template-columns: 9.5em 1fr; gap: 10px; padding: 11px 0; border-top: 1px solid var(--hairline); }
.spec div:first-child { border-top: 0; }
.spec dt { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-4); padding-top: 2px; }
.spec dd { margin: 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }

/* ledger grid — 1px-gap cells */
.ledger { display: grid; gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--r); overflow: hidden; }
.ledger > * { background: var(--paper); padding: 24px; }
.ledger--3 { grid-template-columns: repeat(3, 1fr); }
.ledger--2 { grid-template-columns: repeat(2, 1fr); }
.ledger h4 { font-family: var(--font-display); font-weight: 440; font-size: 19px; margin: 0 0 10px; }
.ledger .n { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--bronze); display: block; margin-bottom: 12px; }

/* split with rail */
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 5vw, 64px); align-items: start; }
.split--flip { grid-template-columns: 1.2fr .8fr; }
.rail { position: sticky; top: 110px; }
.rail .price-panel { margin-top: 22px; }

.price-panel { border: 1px solid var(--hairline-2); border-radius: var(--r); padding: 22px 24px; background: var(--ivory); }
.price-panel .amount { font-family: var(--font-display); font-size: clamp(30px, 4vw, 44px); font-weight: 380; line-height: 1; letter-spacing: -.02em; }
.price-panel .amount sup { font-size: .42em; color: var(--bronze); top: -1.1em; margin-right: 2px; }
.price-panel .note { font-size: 12.5px; color: var(--ink-3); margin-top: 12px; line-height: 1.5; }

/* numbered records / provisional */
.records { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); counter-reset: rec; }
.record { counter-increment: rec; }
.record::before { content: counter(rec, decimal-leading-zero); font-family: var(--font-mono); font-size: 12px; color: var(--bronze); letter-spacing: .1em; display: block; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--hairline); }
.record h4 { font-family: var(--font-display); font-weight: 440; font-size: 18px; margin: 0 0 8px; }
.record p { font-size: 14px; color: var(--ink-3); line-height: 1.55; margin: 0; }

/* checklist / factlist */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.checklist svg { margin-top: 3px; color: var(--sage); }
.checklist.is-caution svg { color: var(--terra); }

/* timeline / trips */
.trips { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.trip { border: 1px solid var(--hairline); border-radius: var(--r); overflow: hidden; }
.trip__head { background: var(--ink); color: var(--bone); padding: 18px 22px; display: flex; justify-content: space-between; align-items: baseline; }
.trip__head .t { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--bronze-2); }
.trip__head h4 { font-family: var(--font-display); font-weight: 420; font-size: 21px; margin: 6px 0 0; }
.daylist { margin: 0; padding: 0; list-style: none; }
.daylist li { padding: 16px 22px; border-top: 1px solid var(--hairline); }
.daylist li:first-child { border-top: 0; }
.daylist .d { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 5px; }
.daylist .h { font-weight: 600; font-size: 15px; margin-bottom: 3px; }
.daylist p { font-size: 13.5px; color: var(--ink-3); margin: 0; line-height: 1.5; }

/* quote receipt */
.receipt { border: 1px solid var(--hairline-2); border-radius: var(--r); background: var(--paper); overflow: hidden; max-width: 560px; }
.receipt__row { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 15px 24px; border-top: 1px dashed var(--hairline); align-items: baseline; }
.receipt__row:first-child { border-top: 0; }
.receipt__row .l { font-size: 14.5px; color: var(--ink-2); }
.receipt__row .l small { display: block; color: var(--ink-4); font-size: 12px; margin-top: 3px; }
.receipt__row .v { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .04em; color: var(--bronze); text-transform: uppercase; }
.receipt__row.is-total { background: var(--ink); color: var(--bone); border-top: 1px solid var(--ink); }
.receipt__row.is-total .l { color: var(--bone); font-weight: 600; }
.receipt__row.is-total .v { color: var(--bronze-2); }

/* gates */
.gates { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.gate { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 22px; border: 1px solid var(--hairline); border-radius: var(--r); background: var(--paper); }
.gate .mark { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.gate.is-go .mark { background: var(--sage-wash); color: var(--sage); }
.gate.is-stop .mark { background: var(--terra-wash); color: var(--terra); }
.gate h4 { margin: 2px 0 6px; font-size: 16px; }
.gate p { margin: 0; font-size: 14px; color: var(--ink-3); line-height: 1.55; }

/* proof slots */
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.proof-slot { aspect-ratio: 4 / 3; border: 1px dashed var(--hairline-2); border-radius: var(--r); display: grid; place-items: center; text-align: center; background: var(--ivory); color: var(--ink-4); padding: 20px; }
.proof-slot .small-caps { display: block; margin-bottom: 8px; }
.proof-note { font-size: 13px; color: var(--ink-3); margin-top: 18px; max-width: 60ch; }

/* FAQ accordion */
.faq { border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 24px 0; font-family: var(--font-display); font-weight: 440; font-size: clamp(18px, 2vw, 22px); }
.faq summary::-webkit-details-marker { display: none; }
.faq .sign { position: relative; width: 16px; height: 16px; flex: none; }
.faq .sign::before, .faq .sign::after { content: ""; position: absolute; background: var(--bronze); transition: transform .3s var(--ease); }
.faq .sign::before { left: 0; top: 7.25px; width: 16px; height: 1.5px; }
.faq .sign::after { left: 7.25px; top: 0; width: 1.5px; height: 16px; }
.faq details[open] .sign::after { transform: scaleY(0); }
.faq .answer { padding: 0 0 26px; color: var(--ink-2); font-size: 15.5px; line-height: 1.7; max-width: 70ch; }
.faq .answer p { margin: 0 0 .9em; } .faq .answer p:last-child { margin: 0; }

/* references */
.refs { display: grid; gap: 14px; counter-reset: ref; }
.refs li { list-style: none; counter-increment: ref; display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: 13.5px; color: var(--ink-3); line-height: 1.5; }
.refs li::before { content: counter(ref); font-family: var(--font-mono); font-size: 11px; color: var(--bronze); padding-top: 2px; }
.refs a { color: var(--ink-2); border-bottom: 1px solid var(--hairline-2); }
.refs a:hover { border-color: var(--bronze); color: var(--bronze); }

/* authorship */
.author-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.author-card { background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--r); padding: 24px; }
.author-card .role { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--bronze); margin-bottom: 14px; }
.author-card .who { font-family: var(--font-display); font-weight: 440; font-size: 20px; margin-bottom: 4px; }
.author-card .meta { font-size: 13.5px; color: var(--ink-3); line-height: 1.55; }
.author-card .portrait { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; margin-bottom: 16px; border: 1px solid var(--hairline-2); background: var(--shell); }

/* CTA band */
.cta-band { text-align: left; }
.cta-band h2 { margin: 0 0 18px; max-width: 18ch; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.cta-band .reassure { margin-top: 26px; font-size: 13px; color: #b9b2a3; }

/* sticky mobile CTA */
.mobile-cta { display: none; }
@media (max-width: 700px) {
  .mobile-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90;
    display: flex; gap: 10px; }
  .mobile-cta .btn { flex: 1; justify-content: center; box-shadow: var(--shadow); }
  .mobile-cta .btn--wa { background: #0b7a4b; border-color: #0b7a4b; color: #fff; }
}

/* ------------------------------ FOOTER ------------------------------ */
.site-footer { background: var(--band-deep); color: #cfc9bb; padding-block: clamp(48px, 7vw, 84px) 40px; }
.site-footer a { color: #cfc9bb; } .site-footer a:hover { color: var(--bronze-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--gap); padding-bottom: 44px; border-bottom: 1px solid #2c2920; }
.footer-grid h5 { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--bronze-2); margin: 0 0 18px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; font-size: 14px; }
.footer-brand .display { color: var(--ivory); font-size: 24px; margin-bottom: 14px; }
.footer-brand p { font-size: 13.5px; line-height: 1.6; max-width: 38ch; color: #a8a293; }
.nap { font-size: 13.5px; line-height: 1.65; color: #cfc9bb; font-style: normal; }
.nap b { color: var(--ivory); font-weight: 600; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; font-size: 12px; color: #8a8474; }
.footer-legal .disclaimer { max-width: 64ch; line-height: 1.55; }

/* ------------------------------ REVEAL ------------------------------ */
/* Fail-open: hidden state applies ONLY when JS is confirmed (html.js).
   Without JS, or before the observer fires, content is fully visible. */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal.is-in { opacity: 1; transform: none; }

/* ------------------------------ RESPONSIVE ------------------------------ */
@media (max-width: 980px) {
  .t-hero__grid { grid-template-columns: 1fr; gap: 38px; }
  .cards-3, .ledger--3, .proof-grid { grid-template-columns: 1fr; }
  .records { grid-template-columns: 1fr 1fr; }
  .split, .split--flip { grid-template-columns: 1fr; gap: 32px; }
  .rail { position: static; }
  .trips, .gates, .author-cards, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid { gap: 32px; }
}
@media (max-width: 520px) {
  .at-glance { grid-template-columns: 1fr; }
  .records { grid-template-columns: 1fr; }
  .spec div { grid-template-columns: 1fr; gap: 3px; }
}
