/* ============================================================
   Vellora — landing page
   Warm cream paper · wing-black ink · monarch orange.
   Type: DM Serif Display (display) · Inter (UI/body) · JetBrains Mono (labels)
   Three whole-page directions toggled via body[data-dir]:
     vellum   — editorial, asymmetric, generous (default)
     atlas    — ruled field-guide plates, structured grid
     migration— immersive, dashed spine, more motion
   ============================================================ */

:root {
  --paper:      #f7f4ef;
  --paper-deep: #efeae2;
  --paper-warm: #f1ead9;
  --vellum:     #ece3d0;
  --card:       #ffffff;
  --ink:        #15110d;
  --ink-muted:  #6b6459;
  --ink-faint:  #a39d92;
  --rule:       rgba(21,17,13,0.09);
  --rule-soft:  rgba(21,17,13,0.05);
  --accent:     #e25b1c;      /* tweakable */
  --accent-deep:#b8420a;
  --accent-soft:#fbe9d9;
  --cream:      #f7ecd6;
  --good:       #2d8a4e;

  /* dark, used inside phone screens */
  --d-paper:    #15100a;
  --d-paper-deep:#0e0a06;
  --d-card:     #1f1810;
  --d-card-soft:#261e15;
  --d-ink:      #f7ecd6;
  --d-ink-muted:#a39787;
  --d-ink-faint:#6b6459;
  --d-accent:   #ff7a2e;
  --d-accent-soft:#3a1c0c;
  --d-good:     #4ab66d;
  --d-rule:     rgba(247,236,214,0.10);
  --d-rule-soft:rgba(247,236,214,0.06);

  --serif: 'DM Serif Display', Georgia, serif;
  --sans:  'Inter', -apple-system, system-ui, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, monospace;

  --shadow-lift: 0 1px 2px rgba(21,17,13,0.04), 0 8px 24px -8px rgba(21,17,13,0.10);
  --shadow-sheet: 0 1px 2px rgba(21,17,13,0.04), 0 24px 60px -20px rgba(21,17,13,0.22);
  --shadow-device: 0 1px 0 rgba(0,0,0,0.08), 0 50px 90px -28px rgba(21,17,13,0.45), 0 0 0 8px #1a1510, 0 0 0 9px rgba(255,255,255,0.10);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1200px;
  --gutter: 40px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--accent-soft); color: var(--accent-deep); }

/* ── shared atoms ─────────────────────────────────────────── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent-deep);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.6;
}
.eyebrow.muted { color: var(--ink-muted); }

.mono {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-faint);
}

.display {
  font-family: var(--serif); font-weight: 400;
  letter-spacing: -0.018em; line-height: 1.0;
  color: var(--ink);
}

.lede {
  font-size: 19px; line-height: 1.55; color: var(--ink-muted);
  text-wrap: pretty;
}

.accent-text { color: var(--accent); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 50px; padding: 0 24px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  border: 1px solid transparent; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, border-color .2s;
  white-space: nowrap;
}
.btn-accent {
  background: var(--accent); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 12px 26px -12px var(--accent-deep), 0 2px 4px rgba(21,17,13,0.08);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 18px 34px -14px var(--accent-deep), 0 3px 6px rgba(21,17,13,0.1); }
.btn-ghost {
  background: var(--card); color: var(--ink); border-color: var(--rule);
  box-shadow: 0 1px 2px rgba(21,17,13,0.04), 0 6px 16px -10px rgba(21,17,13,0.18);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--card); transform: translateY(-2px); box-shadow: 0 1px 2px rgba(21,17,13,0.05), 0 12px 24px -12px rgba(21,17,13,0.22); }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { transform: translateY(-2px); }
.btn-lg { height: 56px; padding: 0 30px; font-size: 16px; }
/* App Store download badge — built on .btn .btn-ink .btn-lg, with the two-line
   "Download on the / App Store" lockup beside the Apple glyph. */
.btn-appstore { padding: 0 22px; gap: 11px; }
.btn-appstore svg { flex-shrink: 0; }
.btn-appstore .as-txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.04; }
.btn-appstore .as-txt small { font-size: 11px; font-weight: 500; letter-spacing: 0.01em; opacity: 0.9; }
.btn-appstore .as-txt strong { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }

/* ── App Store button — "coming soon" disabled state ───────────────────
   The iOS app is in review, so the badge is greyed out and inert. Hover,
   keyboard focus, or tap reveals a warm Vellora-coloured balloon (not an
   error) with the butterfly, reading "Coming soon". */
.soon-wrap { position: relative; display: inline-flex; }
.btn-appstore.is-soon {
  background: var(--paper-deep);
  color: var(--ink-faint);
  border: 1px solid var(--rule);
  box-shadow: none;
  cursor: default;
}
.btn-appstore.is-soon:hover { transform: none; box-shadow: none; background: var(--paper-deep); }
.btn-appstore.is-soon .as-txt small { opacity: 0.75; }

.soon-balloon {
  position: absolute; left: 50%; bottom: calc(100% + 13px);
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  padding: 9px 17px 9px 12px;
  background: var(--accent-soft); color: var(--accent-deep);
  border: 1.5px solid var(--accent); border-radius: 999px;
  font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
  box-shadow: 0 1px 2px rgba(21,17,13,0.05), 0 14px 30px -12px rgba(226,91,28,0.4);
  opacity: 0; transform: translate(-50%, 6px); transform-origin: bottom center;
  pointer-events: none; transition: opacity .26s var(--ease), transform .26s var(--ease);
  z-index: 30;
}
/* downward tail — a rotated square showing its bordered bottom corner */
.soon-balloon::after {
  content: ""; position: absolute; left: 50%; bottom: -6px;
  width: 12px; height: 12px; transform: translateX(-50%) rotate(45deg);
  background: var(--accent-soft);
  border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent);
}
.soon-bf { width: 22px; height: 22px; display: inline-flex; flex-shrink: 0; }
.soon-bf svg { width: 100%; height: 100%; display: block; }

.soon-wrap:hover .soon-balloon,
.soon-wrap:focus-within .soon-balloon,
.soon-wrap.open .soon-balloon {
  opacity: 1; transform: translate(-50%, 0); pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  .soon-balloon { transition: opacity .15s linear; transform: translate(-50%, 0); }
  .soon-wrap:hover .soon-balloon,
  .soon-wrap:focus-within .soon-balloon,
  .soon-wrap.open .soon-balloon { transform: translate(-50%, 0); }
}

/* coordinate tag */
.coord { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }

/* hairline divider with a dot */
.dot-rule { display: flex; align-items: center; gap: 12px; }
.dot-rule .line { flex: 1; height: 1px; background: var(--rule); }
.dot-rule .pip { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* contour bg layer */
.contours { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.contours svg { width: 100%; height: 100%; }

/* butterflies — gentle flap */
.flutter { animation: flap 5s ease-in-out infinite; transform-origin: center; }
@keyframes flap {
  0%,100% { transform: scaleX(1); }
  50%     { transform: scaleX(0.91); }
}
.bob { animation: bob 7s ease-in-out infinite; }
@keyframes bob {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-12px); }
}

/* trail draw */
.trail-path {
  stroke-dasharray: var(--len, 1400);
  stroke-dashoffset: var(--len, 1400);
}
.trail-path.drawn { transition: stroke-dashoffset 2.4s var(--ease); stroke-dashoffset: 0; }

/* reveal on scroll — animation (locks end-state via fill:both; can't get stuck) */
.reveal { opacity: 0; }
@keyframes reveal-up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes reveal-l  { from { opacity: 0; transform: translate(-34px,18px) rotate(-1.4deg); } to { opacity: 1; transform: none; } }
@keyframes reveal-r  { from { opacity: 0; transform: translate(34px,18px) rotate(1.4deg); } to { opacity: 1; transform: none; } }
.reveal:not(.in) { transform: translateY(26px); }
.reveal:not(.in).from-l { transform: translate(-34px,18px) rotate(-1.4deg); }
.reveal:not(.in).from-r { transform: translate(34px,18px) rotate(1.4deg); }
.reveal.in { animation: reveal-up .8s var(--ease) both; }
.reveal.from-l.in { animation-name: reveal-l; }
.reveal.from-r.in { animation-name: reveal-r; }
.reveal.d1.in { animation-delay: .08s; }
.reveal.d2.in { animation-delay: .16s; }
.reveal.d3.in { animation-delay: .24s; }

/* animation intensity gates */
body[data-anim="subtle"] .flutter,
body[data-anim="subtle"] .bob { animation: none; }
body[data-anim="subtle"] .trail-path.drawn { transition-duration: 1.2s; }

/* the journey threads BEHIND the page content (numbers/cards cover it; shows in margins) */
.journey {
  position: absolute; top: 0; left: 0; width: 100%;
  z-index: 1; pointer-events: none; overflow: visible;
}
.journey svg { position: absolute; top: 0; left: 0; width: 100%; overflow: visible; }
.journey-bf {
  position: absolute; top: 0; left: 0; width: 34px; height: 34px;
  will-change: transform; transition: opacity .5s ease;
}
/* gentle open/close flap on the wings (folds about the body) */
.dwings { animation: dflap 1.45s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes dflap {
  0%, 100% { transform: scaleX(1); }
  50%      { transform: scaleX(0.58); }
}
body[data-anim="rich"] .dwings { animation-duration: 1.05s; }
body[data-anim="subtle"] .dwings { animation: none; }

@media (prefers-reduced-motion: reduce) {
  .flutter, .bob, .dwings { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
  .trail-path { stroke-dashoffset: 0 !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(247,244,239,0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--rule);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 16px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand .wordmark { font-size: 21px; font-weight: 700; letter-spacing: -0.025em; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--ink-muted);
  letter-spacing: -0.01em; transition: color .2s; position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { height: 42px; padding: 0 18px; font-size: 14px; }
.nav-signin { font-size: 14px; font-weight: 600; color: var(--ink); padding: 0 6px; white-space: nowrap; }
.nav-signin:hover { color: var(--accent); }
@media (max-width: 880px) {
  .nav-links { display: none; }
}
/* Narrow phones: the wordmark + Sign in + Create account row overflows ~375px
   and "Sign in" wraps to two lines. Tighten the gutter and drop the secondary
   "Sign in" text (Create account is primary; Sign in is one tap inside it and
   repeated in the hero), so the nav stays on one clean line. */
@media (max-width: 480px) {
  .nav-inner { padding-left: 20px; padding-right: 20px; gap: 12px; }
  .nav-signin { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 56px; align-items: center;
}
.hero-eyebrow { margin-bottom: 22px; }
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(48px, 6.6vw, 88px); line-height: 0.98; letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero h1 .ink-soft { color: var(--ink-muted); }
.hero .lede { margin-top: 26px; max-width: 480px; font-size: 20px; }
.hero-cta { margin-top: 34px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-trust {
  margin-top: 26px; display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--ink-faint);
}
.hero-trust .avatars { display: flex; }
.hero-trust .avatars span {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--paper);
  margin-left: -8px; background-size: cover; background-position: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.hero-trust .avatars span:first-child { margin-left: 0; }

/* hero visual: illustration plate + overlapping device */
.hero-visual { position: relative; }
.hero-plate {
  position: relative; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--rule); box-shadow: var(--shadow-sheet);
  background: var(--card);
}
.media-card, .hero-plate, .device, .story, .tiltcard {
  transform: perspective(1100px) translate3d(var(--mx,0px),var(--my,0px),0)
             rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) rotate(var(--br,0deg)) scale(var(--hs,1));
  transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.34,1.4,.5,1), box-shadow .4s var(--ease);
}
.media-card:hover, .hero-plate:hover, .device:hover, .story:hover, .tiltcard:hover { box-shadow: 0 1px 2px rgba(21,17,13,.05), 0 36px 70px -24px rgba(21,17,13,.32); }
.hero-plate img { width: 100%; height: 452px; object-fit: cover; object-position: center 32%; display: block; }
.hero-plate .plate-tab {
  position: absolute; top: 14px; left: 14px;
  background: rgba(247,244,239,0.9); backdrop-filter: blur(6px);
  border: 1px solid var(--rule); border-radius: 999px;
  padding: 6px 12px; display: flex; align-items: center; gap: 8px;
}
.hero-device {
  position: absolute; right: -20px; bottom: 22px; width: 156px;
  z-index: 3;
}
.hero-device .device { width: 156px; height: 338px; aspect-ratio: auto; }
.hero-coord-tl { position: absolute; top: -26px; left: 4px; }
.hero-coord-br { position: absolute; bottom: -22px; left: 4px; }

/* "Try a demo trip" — quiet text CTA under the primary buttons (hero + final). */
.demo-link {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 16px;
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  color: var(--accent); text-decoration: none;
}
.demo-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.demo-link svg { flex-shrink: 0; }
.demo-link .demo-link-sub { color: var(--ink-muted); font-weight: 500; }

/* Secondary entry points under the store badges. The app badges are the
   primary action now; "use the web" and "try a demo" sit here as quiet text
   links so the CTA block reads as two tidy tiers instead of a stack of buttons. */
.hero-alt {
  margin-top: 18px;
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 11px;
  font-size: 14px;
}
.hero-alt.center { justify-content: center; }
.hero-alt .alt-link { font-weight: 600; color: var(--accent-deep); letter-spacing: -0.01em; }
.hero-alt .alt-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.hero-alt .alt-dot { color: var(--ink-faint); }
.hero-alt .alt-note { color: var(--ink-muted); }

/* Quiet reassurance under the final CTA — the per-trip / no-subscription model,
   stated as a benefit (pay for what you use), never a price. */
.pay-note {
  margin: 20px auto 0; max-width: 440px;
  font-size: 13.5px; line-height: 1.5; color: var(--ink-muted);
  letter-spacing: -0.01em; text-align: center;
}
.pay-note strong { color: var(--ink); font-weight: 600; }
.pay-note .pn-dot { color: var(--accent); }

.hero-butterfly { position: absolute; pointer-events: none; z-index: 4; }

/* parallax targets get transformed via JS */
.parallax { will-change: transform; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-device { width: 150px; right: 0; bottom: -24px; }
}

/* Phones: keep the two store badges side by side (compact) instead of letting
   them stack. They split the row evenly; the lockup text shrinks to fit. Web is
   untouched — this only applies under 480px. Covers both the hero and final CTA. */
@media (max-width: 480px) {
  .hero-cta { flex-wrap: nowrap; gap: 9px; align-items: stretch; }
  .hero-cta > .btn-appstore,
  .hero-cta > .soon-wrap { flex: 1 1 0; min-width: 0; }
  .soon-wrap { display: flex; }
  .soon-wrap > .btn-appstore { width: 100%; }
  .hero-cta .btn-appstore { height: 52px; padding: 0 11px; gap: 8px; }
  .hero-cta .btn-appstore svg { width: 18px; height: 18px; }
  .hero-cta .btn-appstore .as-txt { min-width: 0; }
  .hero-cta .btn-appstore .as-txt small { font-size: 9px; letter-spacing: 0; }
  .hero-cta .btn-appstore .as-txt strong { font-size: 14px; white-space: nowrap; }
}

/* ============================================================
   MARQUEE / trust strip
   ============================================================ */
.strip {
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 22px 0; background: transparent;
  overflow: hidden;
}
.strip-inner {
  display: flex; align-items: center; gap: 46px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-muted); white-space: nowrap;
  animation: march 32s linear infinite;
  width: max-content;
}
.strip-inner span { display: inline-flex; align-items: center; gap: 46px; }
.strip-inner .sep { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
@keyframes march { to { transform: translateX(-50%); } }
body[data-anim="subtle"] .strip-inner { animation: none; }

/* ============================================================
   SECTION shell
   ============================================================ */
.section { position: relative; padding: 100px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 4.4vw, 56px); line-height: 1.02; letter-spacing: -0.02em;
  margin-top: 18px; text-wrap: balance;
}
.section-head .lede { margin-top: 18px; }
.section.tint { background: var(--paper-deep); }

/* ── feature rows (vellum default) ── */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  padding: 60px 0;
}
.feature + .feature { border-top: 1px solid var(--rule); }
.feature.flip .feat-media { order: -1; }
.feat-body .plate-no { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--accent); }
.feat-body h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 3.4vw, 42px); line-height: 1.04; letter-spacing: -0.02em;
  margin: 12px 0 16px; text-wrap: balance;
}
.feat-body p { color: var(--ink-muted); font-size: 18px; max-width: 460px; }
.feat-points { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.feat-points li { list-style: none; display: flex; align-items: flex-start; gap: 11px; font-size: 15px; color: var(--ink); }
.feat-points { padding: 0; }
.feat-points .tick {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-top: 1px;
}
.feat-points .tick svg { width: 11px; height: 11px; }

.feat-media { position: relative; }
.media-card {
  position: relative; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--rule); box-shadow: var(--shadow-lift);
  background: var(--card);
}
.media-card img { width: 100%; height: auto; display: block; }
.media-tag {
  position: absolute; bottom: 14px; left: 14px;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(6px);
  border: 1px solid var(--rule); border-radius: 10px; padding: 7px 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-muted); white-space: nowrap;
}
.feat-butterfly { position: absolute; z-index: 3; pointer-events: none; }

/* photo plate + overlapping phone (mirrors the hero plate/device pattern):
   a scenic photo as the panel, with a small phone-framed app screenshot
   poking out of the bottom corner. Keeps the real screenshots small instead
   of blowing them up to the full card width. */
.photo-plate img { width: 100%; height: clamp(320px, 30vw, 392px); object-fit: cover; object-position: center 42%; display: block; }
.feat-shot { position: absolute; right: -14px; bottom: -28px; width: 150px; z-index: 4; pointer-events: none; }
.feature.flip .feat-shot { right: auto; left: -14px; }
.shot-phone {
  position: relative; border-radius: 26px; background: #0d0a06;
  padding: 7px; border: 1px solid rgba(21,17,13,.16);
  box-shadow: 0 2px 4px rgba(21,17,13,.14), 0 30px 56px -22px rgba(21,17,13,.55);
}
.shot-phone img { display: block; width: 100%; border-radius: 19px; }
.shot-notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 40px; height: 6px; border-radius: 999px; background: #000; opacity: .85; z-index: 2; }

/* ── MacBook frame — web app screenshots sit on an open laptop ──────────
   The lid is a warm near-black bezel around the screenshot; the base is a
   slightly wider aluminium deck (the extra width reads as the open-laptop
   perspective) with a centred opening notch. */
.macbook { position: relative; width: 100%; }
.macbook .mb-screen {
  position: relative;
  background: #1c1712;
  border-radius: 12px 12px 2px 2px;
  padding: 9px 9px 9px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), var(--shadow-sheet);
}
.macbook .mb-screen::before {
  content: ""; position: absolute; top: 4px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: #3a322a;
}
.macbook .mb-screen img { width: 100%; display: block; border-radius: 3px; }
.macbook .mb-base {
  position: relative; height: 13px;
  width: calc(100% + 13%); margin-left: -6.5%;
  background: linear-gradient(180deg, #d3ccc0 0%, #b6afa3 55%, #9b9488 100%);
  border-radius: 0 0 9px 9px;
  box-shadow: 0 16px 30px -16px rgba(21,17,13,0.5);
}
.macbook .mb-base::after {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 16%; height: 5px; border-radius: 0 0 7px 7px; background: #8d8579;
}
/* the screenshot zooms gently on hover like the photo cards */
.macbook .mb-screen img { transition: transform .9s var(--ease); }
.macbook:hover .mb-screen img { transform: scale(1.025); }

/* ── Phone leaning on the MacBook — the web + mobile duo per feature.
   The capture already carries its own status bar, so the frame is a clean
   rounded body (no fake notch). Sits on the outer-bottom corner of the media,
   mirroring the hero's plate + device pairing. */
.feat-phone {
  position: absolute; right: -6px; bottom: -30px; width: 132px; z-index: 6;
  border-radius: 24px; background: #0d0a06; padding: 5px;
  border: 1px solid rgba(21,17,13,0.16);
  box-shadow: 0 2px 4px rgba(21,17,13,.16), 0 26px 52px -20px rgba(21,17,13,.55);
}
.feature.flip .feat-phone { right: auto; left: -6px; }
.feat-phone img { display: block; width: 100%; border-radius: 19px; }
@media (max-width: 860px) {
  .feat-phone { width: 104px; right: 4px; bottom: -20px; }
  .feature.flip .feat-phone { left: 4px; }
}

@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 36px; padding: 44px 0; }
  .feature.flip .feat-media { order: 0; }
  .feat-shot { width: 120px; right: 4px; bottom: -20px; }
  .feature.flip .feat-shot { left: 4px; }
}

/* ============================================================
   HOW IT WORKS  (trail with 3 waypoints)
   ============================================================ */
.how { position: relative; }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 40px; }
.step { position: relative; z-index: 2; }
.step .num {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card); border: 1.5px solid var(--ink);
  font-family: var(--serif); font-size: 24px; color: var(--ink);
  position: relative; z-index: 2;
}
.step .num .pip { position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--rule); }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; letter-spacing: -0.01em; margin: 22px 0 10px; }
.step p { color: var(--ink-muted); font-size: 16px; max-width: 320px; }
.steps-trail { position: absolute; top: 28px; left: 0; right: 0; height: 60px; z-index: 0; pointer-events: none; }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps-trail { display: none; }
}

/* ============================================================
   STORIES  (subtle field-note testimonials)
   ============================================================ */
.stories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.story {
  background: var(--card); border: 1px solid var(--rule); border-radius: 18px;
  padding: 28px 26px; position: relative; box-shadow: var(--shadow-lift);
}
.story .quote { font-size: 17px; line-height: 1.55; color: var(--ink); text-wrap: pretty; }
.story .quote::before { content: "“"; font-family: var(--serif); font-size: 40px; color: var(--accent); line-height: 0; vertical-align: -16px; margin-right: 4px; }
.story .by { margin-top: 22px; display: flex; align-items: center; gap: 12px; }
.story .by .av { width: 38px; height: 38px; border-radius: 50%; background-size: cover; background-position: center; flex-shrink: 0; }
.story .by .who { font-size: 14px; font-weight: 600; white-space: nowrap; }
.story .by .loc { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
@media (max-width: 820px) { .stories-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left;
  padding: 26px 8px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-family: var(--serif); font-weight: 400; font-size: 23px; letter-spacing: -0.01em; color: var(--ink);
}
.faq-q .ico { flex-shrink: 0; width: 26px; height: 26px; position: relative; transition: transform .35s var(--ease); }
.faq-q .ico::before, .faq-q .ico::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; }
.faq-q .ico::before { top: 12px; left: 4px; right: 4px; height: 2px; }
.faq-q .ico::after { left: 12px; top: 4px; bottom: 4px; width: 2px; transition: opacity .3s; }
.faq-item.open .faq-q .ico { transform: rotate(180deg); }
.faq-item.open .faq-q .ico::after { opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a-inner { padding: 0 8px 28px; color: var(--ink-muted); font-size: 17px; line-height: 1.6; max-width: 660px; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta-band { position: relative; padding: 120px 0; text-align: center; overflow: hidden; }
.cta-band h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 6vw, 76px); line-height: 1.0; letter-spacing: -0.025em;
  text-wrap: balance; position: relative; z-index: 2;
}
.cta-band .lede { margin: 22px auto 0; max-width: 520px; position: relative; z-index: 2; }
.cta-band .hero-cta { justify-content: center; position: relative; z-index: 2; }
.cta-band .contours { z-index: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: var(--cream); padding: 72px 0 40px; }
.footer a { color: rgba(247,236,214,0.7); transition: color .2s; }
.footer a:hover { color: var(--cream); }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-brand .wordmark { font-size: 24px; font-weight: 700; letter-spacing: -0.025em; color: var(--cream); }
.footer-brand p { margin-top: 16px; color: rgba(247,236,214,0.6); font-size: 15px; max-width: 280px; }
.footer-col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(247,236,214,0.45); font-weight: 500; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 15px; }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(247,236,214,0.12);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.footer-bottom .coord { color: rgba(247,236,214,0.45); }
.footer-social { display: flex; gap: 14px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(247,236,214,0.18); display: grid; place-items: center; }
.footer-social svg { width: 16px; height: 16px; }
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; } }

/* ============================================================
   PHONE DEVICE (recreated app screens, dark mode)
   ============================================================ */
.device {
  position: relative; aspect-ratio: 9 / 19.5;
  background: var(--d-paper); border-radius: 34px; overflow: hidden;
  box-shadow: var(--shadow-device);
  color: var(--d-ink); font-family: var(--sans); font-size: 12px;
}
.device .notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 88px; height: 24px; border-radius: 16px; background: #000; z-index: 50; }
.device .status { position: absolute; top: 12px; left: 20px; right: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; color: var(--d-ink); z-index: 40; }
.device .status .sig { display: flex; gap: 4px; align-items: center; font-size: 10px; }
.device .screen { position: absolute; inset: 40px 0 0; overflow: hidden; }
/* Real-screenshot variant: the image is a full phone screen (its own status bar
   baked in), so it fills the whole device frame instead of the inset .screen. */
.device-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.d-scroll { height: 100%; overflow: hidden; padding-bottom: 70px; }
.d-pad { padding: 0 14px; }
.d-meta { font-size: 9px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--d-ink-muted); }
.d-h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
.d-h2 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.d-h3 { font-size: 13px; font-weight: 600; }
.d-body { font-size: 11px; color: var(--d-ink-muted); line-height: 1.4; }
.d-accent { color: var(--d-accent); }
.d-row { display: flex; align-items: center; gap: 9px; }
.d-card { background: var(--d-card); border: 1px solid var(--d-rule); border-radius: 14px; }
.d-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; background: var(--d-card); border: 1px solid var(--d-rule); border-radius: 999px; font-size: 10px; font-weight: 500; }
.d-chip.active { background: var(--d-ink); color: var(--d-paper); border-color: var(--d-ink); }
.d-hair { height: 1px; background: var(--d-rule); }
.tabbar {
  position: absolute; left: 10px; right: 10px; bottom: 9px; height: 52px;
  background: rgba(31,24,16,0.82); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--d-rule); border-radius: 24px;
  display: grid; grid-template-columns: repeat(5,1fr); align-items: center; z-index: 30;
}
.tabbar .tab { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--d-ink-muted); font-size: 8px; font-weight: 500; }
.tabbar .tab.active { color: var(--d-accent); }
.tabbar .tab svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.8; fill: none; }

/* numbered itinerary stop */
.stop { display: flex; gap: 11px; align-items: flex-start; padding: 9px 0; }
.stop .pin { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--cream); color: var(--d-paper); display: grid; place-items: center; font-weight: 700; font-size: 11px; }
.stop .thumb { width: 44px; height: 44px; border-radius: 10px; background-size: cover; background-position: center; flex-shrink: 0; }
.travel-pill { display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 2px 35px; padding: 3px 9px; border-radius: 999px; border: 1px dashed var(--d-rule); font-size: 9px; color: var(--d-ink-faint); }

/* avatars in collaboration screen */
.av-stack { display: flex; }
.av-stack .a { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--d-card); margin-left: -8px; background-size: cover; background-position: center; }
.av-stack .a:first-child { margin-left: 0; }

/* ============================================================
   DIRECTION: ATLAS  — ruled field-guide plates
   ============================================================ */
body[data-dir="atlas"] {
  --paper: #f4efe4;
}
body[data-dir="atlas"] .hero { padding-top: 150px; }
body[data-dir="atlas"] .hero h1 { font-size: clamp(44px, 5.6vw, 76px); }
/* atlas frames everything in ruled plates */
body[data-dir="atlas"] .hero-plate,
body[data-dir="atlas"] .media-card {
  border-radius: 6px;
  box-shadow: inset 0 0 0 5px var(--paper), inset 0 0 0 6px var(--ink), var(--shadow-lift);
  border: none;
}
body[data-dir="atlas"] .hero-visual::before,
body[data-dir="atlas"] .hero-visual::after {
  content: "+"; position: absolute; font-size: 16px; color: var(--ink-faint); z-index: 5;
}
body[data-dir="atlas"] .hero-visual::before { top: -14px; left: -14px; }
body[data-dir="atlas"] .hero-visual::after { bottom: -14px; right: -14px; }
/* features become a 2-col plate grid */
body[data-dir="atlas"] .features-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
body[data-dir="atlas"] .feature {
  display: block; padding: 0; border: 1px solid var(--ink); border-radius: 4px;
  background: var(--card); overflow: hidden;
  box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px var(--rule);
}
body[data-dir="atlas"] .feature + .feature { border-top: 1px solid var(--ink); }
body[data-dir="atlas"] .feature.flip .feat-media { order: 0; }
body[data-dir="atlas"] .feat-media { margin: 0; }
body[data-dir="atlas"] .media-card { border-radius: 0; box-shadow: none; border: none; border-bottom: 1px solid var(--rule); }
body[data-dir="atlas"] .feat-body { padding: 26px 26px 30px; }
body[data-dir="atlas"] .feat-body h3 { font-size: clamp(24px, 2.6vw, 30px); }
body[data-dir="atlas"] .feat-body p { font-size: 15px; }
body[data-dir="atlas"] .section-head h2 { font-size: clamp(32px,4vw,48px); }
body[data-dir="atlas"] .feat-butterfly { display: none; }
@media (max-width: 860px) { body[data-dir="atlas"] .features-rows { grid-template-columns: 1fr; } }

/* ============================================================
   DIRECTION: MIGRATION  — dashed spine, immersive, more motion
   ============================================================ */
body[data-dir="migration"] {
  background:
    radial-gradient(120% 70% at 82% -5%, var(--accent-soft) 0%, rgba(251,233,217,0) 45%),
    var(--paper);
}
/* central spine drawn by JS overlay */
.spine { display: none; }
body[data-dir="migration"] .spine {
  display: block; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 200px; height: 100%; pointer-events: none; z-index: 0;
}
body[data-dir="migration"] .hero h1 { font-size: clamp(52px, 7.4vw, 100px); }
body[data-dir="migration"] .hero-device { width: 240px; transform: rotate(-6deg); }
body[data-dir="migration"] .hero-plate { --br: 2deg; }
body[data-dir="migration"] .feature { gap: 80px; }
body[data-dir="migration"] .media-card { box-shadow: var(--shadow-sheet); --br: -1.5deg; }
body[data-dir="migration"] .feature.flip .media-card { --br: 1.5deg; }
body[data-dir="migration"] .section { padding: 120px 0; }
body[data-dir="migration"] .step .num { background: var(--accent); border-color: var(--accent); color: #fff; }
/* waypoint dots beside section heads */
body[data-dir="migration"] .section-head { position: relative; }
body[data-dir="migration"] .waypoint { display: none; }

/* small helper visibility for direction-specific notes */
.dir-only { display: none; }

/* ============================================================
   CRAFT LAYER  — field-journal texture, ink stamps, marginalia
   (the "less digital, more made-by-hand" pass)
   ============================================================ */
:root { --hand: 'Caveat', 'Segoe Script', cursive; }

/* paper grain — very subtle, fixed over everything, never intercepts clicks */
.grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}
/* keep real UI above the grain */
.nav, main, .footer, #tw-panel { position: relative; z-index: 2; }
.nav { z-index: 100; }

/* handwritten marginalia */
.annot {
  font-family: var(--hand); font-weight: 600;
  font-size: 23px; line-height: 1.05; color: var(--accent-deep);
  position: relative; display: inline-block;
}
.annot.ink { color: var(--ink); opacity: 0.78; }
.annot .scrawl { display: block; transform: rotate(-3deg); }
.annot svg { position: absolute; overflow: visible; pointer-events: none; }

/* an ink stamp — rotated, double rule, monospace, slightly distressed */
.stamp {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-deep); padding: 7px 12px;
  border: 1.5px solid var(--accent-deep); border-radius: 4px;
  box-shadow: inset 0 0 0 2.5px var(--paper);
  transform: rotate(-4deg); opacity: 0.9;
}
.stamp::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid currentColor; }
.stamp.ink { color: var(--ink); border-color: var(--ink); opacity: 0.62; }

/* washi-tape strip */
.tape {
  position: absolute; width: 84px; height: 26px;
  background: rgba(226,91,28,0.16);
  border-left: 1px solid rgba(226,91,28,0.22); border-right: 1px solid rgba(226,91,28,0.22);
  box-shadow: 0 1px 2px rgba(21,17,13,0.08);
}
.tape::after { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(90deg, transparent 0 6px, rgba(255,255,255,0.25) 6px 7px); }

/* hand-drawn squiggle underline under a heading word */
.uline { position: relative; display: inline-block; }
.uline::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: -0.16em; height: 0.32em;
  background: no-repeat center/100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='14' viewBox='0 0 200 14'%3E%3Cpath d='M2 8 C 40 3, 80 12, 120 6 S 180 3, 198 7' fill='none' stroke='%23e25b1c' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
  opacity: 0; transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease) .15s, opacity .4s .15s;
}
.reveal.in .uline::after, .uline.in::after { opacity: 0.85; transform: scaleX(1); }

/* corner survey ticks for sections */
.ticks { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.ticks i { position: absolute; width: 10px; height: 10px; color: var(--ink-faint); opacity: 0.4; }
.ticks i::before, .ticks i::after { content: ""; position: absolute; background: currentColor; }
.ticks i::before { left: 0; top: 50%; width: 100%; height: 1px; transform: translateY(-50%); }
.ticks i::after { top: 0; left: 50%; width: 1px; height: 100%; transform: translateX(-50%); }
.ticks .tl { left: 14px; top: 14px; } .ticks .tr { right: 14px; top: 14px; }
.ticks .bl { left: 14px; bottom: 14px; } .ticks .br { right: 14px; bottom: 14px; }

/* photo cards: gentle zoom on the image within, tag slides up */
.media-card, .hero-plate { will-change: transform; }
.media-card img, .hero-plate img { transition: transform .9s var(--ease); }
.media-card:hover img, .hero-plate:hover img { transform: scale(1.045); }
.media-tag { transition: transform .35s var(--ease), opacity .35s; }
.media-card:hover .media-tag { transform: translateY(-3px); }

/* organic reveal variants handled via reveal-l / reveal-r keyframes (see reveal block) */

/* magnetic button receives --tx/--ty from JS */
.magnetic { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.magnetic.pulling { transition: transform .12s linear; transform: translate(var(--tx,0), var(--ty,0)); }

/* ── hero marginalia + postmark ── */
.hero-annot { position: absolute; right: 18px; bottom: -52px; z-index: 6; width: 196px; text-align: right; }
.hero-annot .scrawl { transform: rotate(-3deg); font-size: 22px; }
.postmark {
  position: absolute; top: -22px; right: 18px; z-index: 6;
  width: 92px; height: 92px; border-radius: 50%;
  border: 2px dashed var(--accent); color: var(--accent-deep);
  display: grid; place-items: center; text-align: center;
  font-family: var(--mono); font-size: 8px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  background: rgba(247,244,239,0.55); transform: rotate(-12deg); opacity: 0.82;
  animation: sway 9s ease-in-out infinite;
}
.postmark span { line-height: 1.35; }
@keyframes sway { 0%,100% { transform: rotate(-12deg); } 50% { transform: rotate(-8deg); } }
body[data-anim="subtle"] .postmark { animation: none; }

@media (max-width: 980px) {
  .hero-annot { display: none; }
}

/* ── feature plates: marginalia + varied rhythm ── */
.feat-annot { margin-top: 22px; }
.feat-annot .scrawl { font-family: var(--hand); font-weight: 600; font-size: 22px; color: var(--accent-deep); transform: rotate(-2deg); display: inline-block; }
.feat-body .plate-no { display: inline-flex; }

/* map-pin drop layer over the map feature photo */
.pin-layer { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.map-pin {
  position: absolute; transform: translate(-50%, -100%) translateY(-14px); opacity: 0;
  transition: transform .5s cubic-bezier(.34,1.56,.64,1), opacity .3s;
}
.map-pin.dropped { transform: translate(-50%, -100%); opacity: 1; }
.map-pin .head {
  width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--accent); border: 2px solid #fff;
  box-shadow: 0 6px 12px -4px rgba(21,17,13,0.4); position: relative;
}
.map-pin .head::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fff; opacity: 0.9; }
.map-pin .head .ph { position: absolute; inset: 3px; border-radius: 50%; background-size: cover; background-position: center; transform: rotate(45deg); }
.map-pin .lbl {
  position: absolute; left: 50%; top: -22px; transform: translateX(-50%);
  background: var(--ink); color: var(--cream); font-family: var(--mono); font-size: 8px; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 3px 7px; border-radius: 5px; white-space: nowrap;
  opacity: 0; transition: opacity .3s .3s;
}
.map-pin.dropped .lbl { opacity: 1; }

/* ── stories as pinned field-note polaroids ── */
.stories-grid { perspective: 1200px; }
.story { transition: transform .5s var(--ease), box-shadow .4s var(--ease); }
.story:nth-child(1) { transform: rotate(-1.8deg); }
.story:nth-child(2) { transform: rotate(1.2deg) translateY(10px); }
.story:nth-child(3) { transform: rotate(-0.8deg); }
.story:hover { transform: rotate(0deg) translateY(-6px) !important; box-shadow: 0 1px 2px rgba(21,17,13,.05), 0 30px 60px -20px rgba(21,17,13,.3); z-index: 3; }
.story .tape { top: -13px; left: 50%; margin-left: -42px; }
.story .by .av { border-radius: 6px; transform: rotate(-2deg); box-shadow: 0 2px 6px -2px rgba(21,17,13,.3); }

/* section heads: kill the sameness with a margin index + hand underline */
.section-head { position: relative; }
.head-index {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--ink-faint);
  position: absolute; top: 6px; right: 0; white-space: nowrap;
}
@media (max-width: 720px) { .head-index { display: none; } }

/* how-it-works: numbers press in like an ink stamp on reveal */
.step.reveal .num { transition: transform .5s cubic-bezier(.34,1.7,.5,1), opacity .5s; }
.step.reveal:not(.in) .num { transform: scale(1.5) rotate(-8deg); opacity: 0; }
.step .num { box-shadow: 2px 2px 0 rgba(21,17,13,0.12); }

/* CTA marginalia */
.cta-annot { font-family: var(--hand); font-weight: 600; font-size: 24px; color: var(--accent-deep); display: inline-block; transform: rotate(-2deg); margin: 18px 0 6px; position: relative; z-index: 2; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .postmark { animation: none; }
  .map-pin { opacity: 1 !important; transform: translate(-50%,-100%) !important; }
  .map-pin .lbl { opacity: 1 !important; }
}
