/* ==========================================================================
   Ragtrail: site stylesheet
   One file for every page. Edit the colour and font tokens in :root to
   restyle the whole site.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --paper: #f3efe7;
  --paper-50: #fbf9f5;
  --paper-200: #ece6da;
  --paper-300: #e0d8c9;
  --ink: #1b1a17;
  --ink-900: #141311;
  --ink-700: #2b2925;
  --ink-600: #45423c;
  --ink-500: #6b665d;
  --ink-400: #8e887d;
  --ink-300: #b3ac9f;
  --line: #d9d2c5;
  --line-dark: #3a3732;
  --clay: #9a4a2a;
  --clay-600: #83391d;
  --clay-300: #c98b6e;
  --clay-100: #f1dfd3;
  --slate: #34495e;
  --slate-300: #8496a8;
  --slate-100: #dce3ea;
  --ochre: #a57a2f;
  --ochre-300: #cdae74;
  --ochre-100: #f1e6cf;
  --moss: #3f5e4a;
  --moss-300: #88a291;
  --moss-100: #dce6de;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --radius: 3px;
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2. Base ---------- */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 1.1em; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--clay); color: var(--paper-50); }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--paper); padding: 8px 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- 3. Layout helpers ---------- */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.section { padding: 80px 0; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .section { padding: 112px 0; } }
.bg-paper { background: var(--paper); }
.bg-light { background: var(--paper-50); }
.bg-sand { background: var(--paper-200); }
.bg-ink { background: var(--ink); color: var(--paper); border-top-color: var(--line-dark); }

.grid { display: grid; gap: 24px; }
.grid-2 { display: grid; gap: 48px; }
.split { display: grid; gap: 48px; }
@media (min-width: 1024px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; }
  .split.reverse { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  .align-center { align-items: center; }
  .align-end { align-items: end; }
}
.cols-2, .cols-3, .cols-4, .cols-5 { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cols-2 > *, .cols-3 > *, .cols-4 > *, .cols-5 > * { background: var(--paper-50); padding: 26px; }
@media (min-width: 640px) { .cols-2, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .cols-3 { grid-template-columns: repeat(3, 1fr); } .cols-5 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cols-4 { grid-template-columns: repeat(4, 1fr); } .cols-5 { grid-template-columns: repeat(5, 1fr); } }
.bg-ink .cols-2, .bg-ink .cols-3, .bg-ink .cols-4 { background: var(--line-dark); border-color: var(--line-dark); }
.bg-ink .cols-2 > *, .bg-ink .cols-3 > *, .bg-ink .cols-4 > * { background: var(--ink); }

.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-6 { margin-top: 48px; } .mt-8 { margin-top: 64px; }
.measure { max-width: 44rem; }
.prose { max-width: 38rem; }

/* ---------- 4. Type ---------- */
.eyebrow { font: 500 0.72rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-500); }
.bg-ink .eyebrow, .hero-dark .eyebrow { color: var(--ink-300); }
.display-xl { font-size: clamp(2.6rem, 4.6vw + 0.6rem, 4.9rem); line-height: 0.98; letter-spacing: -0.025em; }
.display-lg { font-size: clamp(2.25rem, 4vw + 0.5rem, 4rem); line-height: 1.02; letter-spacing: -0.02em; }
.display-md { font-size: clamp(1.75rem, 2.4vw + 0.5rem, 2.75rem); line-height: 1.08; letter-spacing: -0.015em; }
.h3 { font-size: 1.45rem; line-height: 1.2; }
.lede { font-size: 1.125rem; line-height: 1.65; color: var(--ink-600); max-width: 38rem; }
.bg-ink .lede, .hero-dark .lede { color: var(--ink-300); }
.muted { color: var(--ink-600); }
.bg-ink .muted { color: var(--ink-300); }
.small { font-size: 0.9rem; }
.mono { font-family: var(--mono); }
.text-clay { color: var(--clay); } .text-slate { color: var(--slate); } .text-ochre { color: var(--ochre); } .text-moss { color: var(--moss); }
.bg-ink .text-clay { color: var(--clay-300); } .bg-ink .text-slate { color: var(--slate-300); }
.tag { font: 500 0.7rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.14em; }

.prose-body { max-width: 44rem; font-size: 1.06rem; line-height: 1.75; color: var(--ink-700); }
.prose-body strong { font-weight: 600; color: var(--ink); }
.bg-ink .prose-body strong, .hero-dark .prose-body strong { color: var(--paper); }
.bg-ink .prose-body a { color: var(--paper); text-decoration-color: var(--line-dark); }
.prose-body a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.pull { border-left: 2px solid var(--clay); padding-left: 20px; font: 400 1.35rem/1.35 var(--serif); color: var(--ink); }

/* Section heading block: "§ 01  LABEL" with a hairline, then the title */
.marker { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
.marker .num { font: 500 0.72rem var(--mono); letter-spacing: 0.14em; color: var(--clay); }
.bg-ink .marker { border-color: var(--line-dark); }
.bg-ink .marker .num { color: var(--clay-300); }
.heading { max-width: 44rem; }
.heading h2 { margin-top: 24px; }
.heading .intro { margin-top: 20px; font-size: 1.06rem; line-height: 1.7; color: var(--ink-600); }
.bg-ink .heading .intro { color: var(--ink-300); }

/* Unverified facts: visible on purpose. Remove each one once confirmed. */
.flag {
  display: inline-block; margin: 0 2px; padding: 0 4px; border: 1px dashed rgba(154, 74, 42, 0.5); border-radius: 2px;
  background: rgba(241, 223, 211, 0.5); color: var(--clay-600); font: 500 0.62rem/1.5 var(--mono);
  letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; vertical-align: 0.1em;
}
.flag.verify { border-color: rgba(165, 122, 47, 0.7); background: rgba(241, 230, 207, 0.6); color: var(--ochre); }
.bg-ink .flag, .hero-dark .flag { background: transparent; color: var(--clay-300); border-color: rgba(201, 139, 110, 0.5); }
.bg-ink .flag.verify, .hero-dark .flag.verify { color: var(--ochre-300); border-color: rgba(205, 174, 116, 0.6); }

/* Paper grain texture */
.grain { background-image: radial-gradient(rgba(27, 26, 23, 0.035) 1px, transparent 1px); background-size: 3px 3px; }
.grain-dark { background-image: radial-gradient(rgba(243, 239, 231, 0.035) 1px, transparent 1px); background-size: 3px 3px; }

/* ---------- 5. Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px;
  border: 1px solid var(--ink); border-radius: var(--radius); background: var(--ink); color: var(--paper-50);
  font: 500 0.92rem var(--sans); text-decoration: none; cursor: pointer; transition: all 0.3s var(--ease);
}
.btn:hover { background: var(--clay); border-color: var(--clay); }
.btn.secondary { background: transparent; color: var(--ink); }
.btn.secondary:hover { background: var(--ink); color: var(--paper-50); border-color: var(--ink); }
.btn.inverse { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn.inverse:hover { background: var(--clay); color: var(--paper-50); border-color: var(--clay); }
.btn.outline-light { background: transparent; color: var(--paper); border-color: rgba(243, 239, 231, 0.5); }
.btn.outline-light:hover { background: rgba(243, 239, 231, 0.1); border-color: var(--paper); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn .arr, .link .arr { transition: transform 0.3s var(--ease); }
.btn:hover .arr, .link:hover .arr { transform: translateX(3px); }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 5px; }
.link:hover { text-decoration-color: var(--clay); }
.bg-ink .link { text-decoration-color: var(--line-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 6. Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(243, 239, 231, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.site-header.on-dark:not(.scrolled):not(.menu-open) { background: transparent; border-color: transparent; color: var(--paper); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo svg { width: 24px; height: 24px; flex-shrink: 0; }
.logo span { font: 500 1.35rem/1 var(--serif); letter-spacing: -0.01em; }
.nav { display: none; }
.nav ul { list-style: none; display: flex; gap: 28px; }
.nav a { text-decoration: none; font-size: 0.9rem; opacity: 0.8; padding: 8px 0; position: relative; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-cta { display: none; padding: 8px 16px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper-50); border-radius: var(--radius); font-size: 0.85rem; font-weight: 500; text-decoration: none; }
.header-cta:hover { background: var(--clay); border-color: var(--clay); }
.on-dark:not(.scrolled):not(.menu-open) .header-cta { background: transparent; border-color: rgba(243, 239, 231, 0.5); color: var(--paper); }
.menu-btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; color: inherit; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
@media (min-width: 640px) { .header-cta { display: inline-flex; } }
@media (min-width: 1080px) { .nav { display: block; } .menu-btn { display: none; } }
.mobile-nav { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: var(--paper); color: var(--ink); overflow-y: auto; padding: 24px 0 40px; }
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { list-style: none; border-top: 1px solid var(--line); }
.mobile-nav li { border-bottom: 1px solid var(--line); }
.mobile-nav li a { display: flex; justify-content: space-between; padding: 16px 0; font: 400 1.5rem var(--serif); text-decoration: none; }

/* ---------- 7. Page hero ---------- */
.page-hero { padding: 120px 0 64px; }
@media (min-width: 768px) { .page-hero { padding: 148px 0 96px; } }
.hero-dark { background: var(--ink); color: var(--paper); }
.hero-meta { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.hero-dark .hero-meta { border-color: var(--line-dark); }
.hero-meta .ref { display: none; }
@media (min-width: 640px) { .hero-meta .ref { display: inline; } }
.page-hero h1 { max-width: 16ch; }
.hero-grid { display: grid; gap: 48px; margin-top: 40px; }
@media (min-width: 1024px) { .hero-grid.has-aside { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; } }

/* Home hero */
.home-hero { padding: 104px 0 0; }
.home-hero .hero-grid { margin-top: 0; min-height: calc(100vh - 104px); align-items: center; }
@media (min-width: 1024px) { .home-hero .hero-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); } }
.home-hero h1 { max-width: 13ch; margin-top: 24px; }
.path-cards { display: grid; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; margin-top: 40px; }
@media (min-width: 640px) { .path-cards { grid-template-columns: 1fr 1fr; } }
.path-cards a { display: block; background: var(--ink); padding: 20px; text-decoration: none; transition: background 0.3s; }
.path-cards a:hover { background: var(--ink-700); }
.path-cards .title { display: block; margin-top: 8px; font: 400 1.45rem/1.2 var(--serif); }
.path-cards .desc { display: block; margin-top: 8px; font-size: 0.88rem; color: var(--ink-300); line-height: 1.45; }
.path-cards .go { display: inline-block; margin-top: 16px; font-size: 0.9rem; }
.map-frame { position: relative; }
.map-frame svg { width: 100%; height: auto; }

/* ---------- 8. Components ---------- */
.card { background: var(--paper-50); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
@media (min-width: 768px) { .card { padding: 36px; } }
.card.dashed { background: transparent; border-style: dashed; border-color: var(--ink-300); }
.card.accent-top-slate { border-top: 4px solid var(--slate); }
.card.accent-top-ochre { border-top: 4px solid var(--ochre); }
.card h3 { font-size: 1.6rem; line-height: 1.2; margin-top: 12px; }
.card p.muted { margin-top: 12px; line-height: 1.65; }

/* Definition list styled like a trade document schedule */
.datalist { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0; }
.datalist > div { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.datalist > div:last-child { border-bottom: 0; }
@media (min-width: 640px) { .datalist > div { grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: 32px; } }
.datalist dt { font: 500 0.75rem/1.6 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-500); }
.datalist dd { margin: 0; font-size: 0.98rem; line-height: 1.65; color: var(--ink-700); }
.bg-ink .datalist, .bg-ink .datalist > div { border-color: var(--line-dark); }
.bg-ink .datalist dt { color: var(--ink-300); }
.bg-ink .datalist dd { color: var(--paper-200); }

/* Tick list */
.ticks { list-style: none; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; line-height: 1.6; color: var(--ink-700); }
.ticks li::before { content: ""; width: 14px; height: 14px; margin-top: 0.4em; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8' fill='none' stroke='%233F5E4A' stroke-width='1.6'/%3E%3C/svg%3E"); }
.bg-ink .ticks li { color: var(--paper-200); }
.bg-ink .ticks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8' fill='none' stroke='%2388A291' stroke-width='1.6'/%3E%3C/svg%3E"); }

/* Numbered steps grid */
.steps { list-style: none; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; counter-reset: step; }
.steps li { background: var(--paper-50); padding: 26px; counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); font: 500 0.72rem var(--mono); letter-spacing: 0.14em; color: var(--clay); }
.steps h3 { font-size: 1.35rem; line-height: 1.3; margin-top: 12px; }
.steps p { margin-top: 10px; color: var(--ink-600); line-height: 1.65; font-size: 0.97rem; }
@media (min-width: 768px) { .steps.two { grid-template-columns: 1fr 1fr; } .steps.three { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .steps.four { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 768px) and (max-width: 1099px) { .steps.four { grid-template-columns: 1fr 1fr; } }

/* Tables */
.table-wrap { overflow-x: auto; }
table.trade { width: 100%; min-width: 42rem; border-collapse: collapse; text-align: left; }
table.trade th, table.trade td { padding: 18px 20px 18px 0; vertical-align: top; border-bottom: 1px solid var(--line); line-height: 1.6; }
table.trade thead th { font: 500 0.72rem var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-500); border-bottom: 1px solid var(--ink); padding-top: 12px; padding-bottom: 12px; }
table.trade tbody th { font: 400 1.2rem var(--serif); }
table.trade tbody th.mono-th { font: 500 0.75rem var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-500); }

/* Stat row */
.stats { display: grid; border-bottom: 1px solid var(--line); background: var(--paper-50); }
.stats .stat { padding: 40px 0; border-bottom: 1px solid var(--line); }
.stats .stat:last-child { border-bottom: 0; }
@media (min-width: 640px) { .stats { grid-template-columns: 1fr 1fr; } .stats .stat { padding: 40px 24px; } .stats .stat:nth-child(odd) { border-right: 1px solid var(--line); } }
@media (min-width: 1024px) { .stats { grid-template-columns: repeat(4, 1fr); } .stats .stat { border-bottom: 0; border-right: 1px solid var(--line); } .stats .stat:last-child { border-right: 0; } .stats .stat:first-child { padding-left: 0; } }
.stat .k { font: 400 3.5rem/1 var(--serif); letter-spacing: -0.03em; }
.stat .head { display: flex; align-items: baseline; gap: 12px; }
.stat p { margin-top: 16px; max-width: 17rem; color: var(--ink-600); line-height: 1.6; font-size: 0.95rem; }

/* Lane ledger (home hero) */
.ledger { list-style: none; display: grid; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; margin-top: 16px; }
.ledger li { background: var(--ink); padding: 14px 16px; }
.ledger .name { display: block; margin-top: 4px; }
.ledger .via { display: block; margin-top: 4px; font: 0.72rem var(--mono); color: var(--ink-300); }
@media (min-width: 640px) { .ledger { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ledger { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .ledger { grid-template-columns: repeat(6, 1fr); } }

/* Pill badges */
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font: 500 0.6rem var(--mono); text-transform: uppercase; letter-spacing: 0.1em; background: var(--paper-200); color: var(--ink-500); }
.pill.live { background: var(--moss); color: var(--paper); }
.pill.building { background: var(--ochre-100); color: var(--ochre); }

/* Chips (evidence on file) */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chips li { border: 1px solid var(--line); background: var(--paper); padding: 4px 8px; border-radius: 2px; font-size: 0.82rem; color: var(--ink-700); }

/* KYB check list */
.checks { list-style: none; border-top: 1px solid var(--line); }
.checks li { padding: 24px 8px 24px 20px; border-bottom: 1px solid var(--line); border-left: 2px solid transparent; transition: background 0.3s, border-color 0.3s; }
.checks li:hover { background: var(--paper-50); }
.checks.seller li:hover { border-left-color: var(--clay); }
.checks.buyer li:hover { border-left-color: var(--slate); }
.checks .code { font: 600 0.75rem var(--mono); letter-spacing: 0.1em; margin-right: 10px; }
.checks h4 { display: inline; font-size: 1.35rem; }
.checks p { margin-top: 10px; color: var(--ink-600); line-height: 1.65; }

/* Document manifest */
.manifest { border: 1px solid rgba(27, 26, 23, 0.2); background: var(--paper-50); border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 40px -24px rgba(27, 26, 23, 0.25); }
.manifest-head { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid rgba(27, 26, 23, 0.2); font: 500 0.7rem var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-500); }
.manifest-head div { padding: 12px 20px; }
.manifest-head div:nth-child(odd) { border-right: 1px solid rgba(27, 26, 23, 0.2); }
.manifest-head .wide { display: none; }
@media (min-width: 640px) { .manifest-head { grid-template-columns: repeat(4, 1fr); } .manifest-head div { border-right: 1px solid rgba(27, 26, 23, 0.2); } .manifest-head div:last-child { border-right: 0; } .manifest-head .wide { display: block; } }
.manifest ol { list-style: none; }
.manifest li { display: grid; gap: 6px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.manifest li:last-child { border-bottom: 0; }
@media (min-width: 640px) { .manifest li { grid-template-columns: 3rem 16rem 1fr; gap: 24px; } }
.manifest .n { font: 0.75rem var(--mono); color: var(--ink-400); }
.manifest .name { font-weight: 500; }
.manifest .det { color: var(--ink-600); line-height: 1.6; }

/* Journey steps (How It Works / Home) */
.journey-steps { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.journey-steps li { display: grid; gap: 8px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.journey-steps .stage { font: 500 0.72rem/1.6 var(--mono); text-transform: uppercase; letter-spacing: 0.14em; }
.journey-steps h3 { font-size: 1.75rem; line-height: 1.15; max-width: 26ch; }
.journey-steps p { margin-top: 12px; color: var(--ink-600); line-height: 1.7; max-width: 38rem; }

/* Lane tabs */
.tabs { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tabs button { background: var(--paper-50); border: 0; padding: 14px 22px; text-align: left; cursor: pointer; font: inherit; color: var(--ink); border-top: 3px solid transparent; }
.tabs button .sub { display: block; font-size: 0.8rem; color: var(--ink-500); }
.tabs button[aria-selected="true"].clay { background: var(--clay); color: var(--paper-50); }
.tabs button[aria-selected="true"].slate { background: var(--slate); color: var(--paper-50); }
.tabs button[aria-selected="true"] .sub { color: var(--paper-200); }
.tabs.form-tabs { display: grid; width: 100%; border-radius: var(--radius) var(--radius) 0 0; }
.tabs.form-tabs button { background: rgba(236, 230, 218, 0.6); padding: 16px 22px; }
.tabs.form-tabs button .label { display: block; font: 400 1.35rem/1.2 var(--serif); color: var(--ink-500); }
.tabs.form-tabs button[aria-selected="true"] { background: var(--paper-50); }
.tabs.form-tabs button[aria-selected="true"] .label { color: var(--ink); }
.tabs.form-tabs button[aria-selected="true"].clay { border-top-color: var(--clay); }
.tabs.form-tabs button[aria-selected="true"].slate { border-top-color: var(--slate); }
.tabs.form-tabs button[aria-selected="true"] .sub { color: var(--ink-500); }

/* Embedded 3D viewer */
.viewer { position: relative; border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; background: #0b0d10; aspect-ratio: 16 / 10; }
.viewer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 640px) { .viewer { aspect-ratio: 3 / 4; } }

/* Accordion (FAQ) */
.accordion { list-style: none; border-top: 1px solid var(--line); }
.accordion li { border-bottom: 1px solid var(--line); }
.accordion button { width: 100%; display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; background: none; border: 0; text-align: left; font: 500 1.05rem/1.4 var(--sans); color: var(--ink); cursor: pointer; }
.accordion button:hover { color: var(--clay); }
.accordion .plus { flex-shrink: 0; width: 12px; height: 12px; margin-top: 5px; transition: transform 0.3s; }
.accordion button[aria-expanded="true"] .plus { transform: rotate(45deg); }
.accordion .panel { padding: 0 32px 24px 0; color: var(--ink-700); line-height: 1.7; }

/* CTA band */
.cta-band { background: var(--ink); color: var(--paper); }
.cta-band .inner { display: grid; gap: 40px; padding: 80px 0 40px; }
@media (min-width: 1024px) { .cta-band .inner { grid-template-columns: 1.2fr 1fr; align-items: end; } }
.cta-band h2 { max-width: 20ch; margin-top: 20px; }
.cta-paths { display: grid; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px) { .cta-paths { grid-template-columns: 1fr 1fr; } }
.cta-paths a { display: block; background: var(--ink); padding: 24px; text-decoration: none; transition: background 0.3s; }
.cta-paths a:hover { background: var(--ink-700); }
.cta-paths .title { display: block; margin-top: 12px; font: 400 1.5rem var(--serif); }
.cta-paths .desc { display: block; margin-top: 8px; font-size: 0.88rem; color: var(--ink-300); }
.cta-paths .go { display: inline-block; margin-top: 20px; font-size: 0.9rem; }
.cta-foot { border-top: 1px solid var(--line-dark); padding: 20px 0 40px; font-size: 0.9rem; color: var(--ink-400); }
.cta-foot a { color: var(--paper); margin-left: 12px; }

/* ---------- 9. Forms ---------- */
.form-panel { border: 1px solid var(--line); border-top: 0; background: var(--paper-50); padding: 20px; border-radius: 0 0 var(--radius) var(--radius); }
@media (min-width: 640px) { .form-panel { padding: 32px; } }
form.enquiry { display: grid; gap: 32px; position: relative; }
.fgroup { border: 0; border-top: 1px solid var(--line); padding: 24px 0 0; margin: 0; display: grid; gap: 20px; min-width: 0; }
.fgroup > legend { float: left; width: 100%; margin-bottom: 4px; padding: 0; display: flex; gap: 12px; align-items: center; }
.fgroup > legend + * { clear: both; }
.frow { display: grid; gap: 20px; }
@media (min-width: 640px) { .frow { grid-template-columns: 1fr 1fr; } .frow.vol { grid-template-columns: 1fr 12rem; } }
.field label, .field .label, fieldset.choice legend { display: block; margin-bottom: 6px; font-size: 0.9rem; font-weight: 500; color: var(--ink); padding: 0; }
.req { color: var(--clay); margin-left: 2px; }
.opt { margin-left: 6px; font-size: 0.78rem; font-weight: 400; color: var(--ink-400); }
.input {
  display: block; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper-50); color: var(--ink); font: 400 0.95rem var(--sans); transition: border-color 0.2s;
}
.input:hover { border-color: var(--ink-300); }
.input:focus { outline: none; border-color: var(--ink); }
.input[aria-invalid="true"] { border-color: var(--clay); background: rgba(241, 223, 211, 0.3); }
select.input { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5l4 4 4-4' fill='none' stroke='%236B665D' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 12px; }
textarea.input { min-height: 7rem; resize: vertical; }
.with-suffix { position: relative; }
.with-suffix .input { padding-right: 120px; }
.with-suffix .suffix { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font: 0.72rem var(--mono); text-transform: uppercase; color: var(--ink-500); pointer-events: none; }
.hint { margin-top: 6px; font-size: 0.8rem; color: var(--ink-500); line-height: 1.4; }
.error { margin-top: 6px; font-size: 0.8rem; font-weight: 500; color: var(--clay-600); }
fieldset.choice { border: 0; padding: 0; margin: 0; min-width: 0; }
.options { display: grid; gap: 8px; }
@media (min-width: 640px) { .options.c2 { grid-template-columns: 1fr 1fr; } .options.c3 { grid-template-columns: repeat(3, 1fr); } .options.c4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .options.c4 { grid-template-columns: repeat(4, 1fr); } }
.option { position: relative; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option label { display: flex; gap: 10px; align-items: flex-start; height: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); cursor: pointer; font-size: 0.93rem; font-weight: 500; line-height: 1.35; transition: border-color 0.2s, background 0.2s; margin: 0; }
.option label::before { content: ""; flex-shrink: 0; width: 10px; height: 10px; margin-top: 4px; border: 1px solid var(--ink-400); border-radius: 50%; }
.option label small { display: block; margin-top: 2px; font-size: 0.8rem; font-weight: 400; color: var(--ink-500); }
.option input:checked + label { border-color: var(--ink); background: var(--paper-50); }
.option input:checked + label::before { background: var(--ink); border-color: var(--ink); }
.clay-opts .option input:checked + label { border-color: var(--clay); background: rgba(241, 223, 211, 0.4); }
.clay-opts .option input:checked + label::before { background: var(--clay); border-color: var(--clay); }
.slate-opts .option input:checked + label { border-color: var(--slate); background: rgba(220, 227, 234, 0.5); }
.slate-opts .option input:checked + label::before { background: var(--slate); border-color: var(--slate); }
.option input:focus-visible + label { outline: 2px solid var(--clay); outline-offset: 2px; }
.invalid .option label { border-color: rgba(154, 74, 42, 0.6); }
.checkrow { display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; line-height: 1.6; color: var(--ink-700); cursor: pointer; }
.checkrow input { margin-top: 5px; width: 16px; height: 16px; accent-color: var(--ink); flex-shrink: 0; }
.origin-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.origin-chips label { display: inline-flex; gap: 8px; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); font-size: 0.92rem; cursor: pointer; }
.origin-chips input { accent-color: var(--slate); width: 16px; height: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; border-top: 1px solid var(--line); padding-top: 24px; font-size: 0.85rem; color: var(--ink-500); }
.form-foot a { text-decoration: underline; text-underline-offset: 4px; }
.banner-error { display: flex; gap: 10px; padding: 12px 16px; border: 1px solid rgba(154, 74, 42, 0.5); background: rgba(241, 223, 211, 0.6); color: var(--clay-600); border-radius: var(--radius); font-size: 0.93rem; }
.success { padding: 32px; border: 1px solid rgba(63, 94, 74, 0.4); background: rgba(220, 230, 222, 0.5); border-radius: var(--radius); outline: none; }
.success h3 { font-size: 1.8rem; margin-top: 12px; }
.success code { font: 500 0.95rem var(--mono); background: var(--paper-50); padding: 2px 6px; border-radius: 2px; }
.success ol { margin-top: 20px; padding-left: 20px; border-left: 1px solid rgba(63, 94, 74, 0.4); list-style: none; display: grid; gap: 10px; color: var(--ink-700); }

/* ---------- 10. Footer ----------
   Note: vertical padding only (padding-block), so the .container side gutters stay intact. */
.site-footer { background: var(--ink-900); color: var(--paper); border-top: 1px solid var(--line-dark); padding-bottom: env(safe-area-inset-bottom); }
.site-footer a { color: var(--paper-200); text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: var(--paper); }
.footer-grid { display: grid; gap: 40px; padding-block: 64px 48px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; padding-block: 80px 56px; } }
.footer-h { display: block; font: 500 0.7rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-400); }
.footer-brand .logo { color: var(--paper); }
.footer-brand p { margin-top: 18px; max-width: 24rem; line-height: 1.65; color: var(--ink-300); }
.footer-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.footer-actions a, .footer-actions button { display: inline-flex; align-items: center; padding: 9px 14px; border: 1px solid var(--line-dark); border-radius: var(--radius); background: transparent; color: var(--paper-200); font: 500 0.85rem var(--sans); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.footer-actions a:first-child { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.footer-actions a:first-child:hover { background: var(--clay); border-color: var(--clay); color: #fff; }
.footer-actions a:hover, .footer-actions button:hover { border-color: var(--ink-300); }
.site-footer ul { list-style: none; display: grid; gap: 12px; margin-top: 18px; }
.site-footer ul a { font-size: 0.95rem; }
.footer-contact { display: grid; gap: 12px; align-content: start; }
.footer-contact .footer-h { margin-bottom: 6px; }
.fc-row { display: inline-flex; align-items: center; gap: 10px; font-size: 1rem; }
.fc-row svg { width: 18px; height: 18px; color: var(--clay-300); flex-shrink: 0; }
.fc-mail { display: block; font-size: 0.92rem; }
.fc-mail small { display: block; font: 0.7rem var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-400); margin-top: 2px; }
.footer-offices { display: grid; gap: 16px; padding-block: 24px; border-top: 1px solid var(--line-dark); }
@media (min-width: 720px) { .footer-offices { grid-template-columns: repeat(3, 1fr); } }
.footer-offices div { display: grid; gap: 4px; font-size: 0.92rem; color: var(--paper-200); }
.footer-legal { display: grid; gap: 14px; padding-block: 24px 32px; border-top: 1px solid var(--line-dark); font-size: 0.8rem; color: var(--ink-400); line-height: 1.7; }
@media (min-width: 960px) { .footer-legal { grid-template-columns: 1fr auto; align-items: center; gap: 32px; } }
.footer-legal p { max-width: 62rem; }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 18px; white-space: nowrap; }
.footer-legal-links a { color: var(--ink-300); }
@media (max-width: 640px) { .site-footer { padding-bottom: calc(76px + env(safe-area-inset-bottom)); } }

/* ---------- 11. Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* Animated dashes on the lane map */
@keyframes dash { to { stroke-dashoffset: -200; } }
.lane-anim { animation: dash 6s linear infinite; }

/* ==========================================================================
   12. Motion & polish (v2)
   Everything here respects prefers-reduced-motion (see section 2).
   ========================================================================== */

/* Soft cross-fade between pages (Chrome, Edge, Safari 18+; others just navigate) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.35s; animation-timing-function: var(--ease); }

html { scroll-behavior: smooth; }

/* Scroll progress bar */
.progress-bar { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.progress-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--clay), var(--clay-300)); transform-origin: 0 50%; transform: scaleX(0); }

/* Header hides when scrolling down, returns when scrolling up */
.site-header { transition: transform 0.4s var(--ease), background 0.3s, color 0.3s, border-color 0.3s; }
.site-header.hide:not(.menu-open) { transform: translateY(-100%); }

/* Phone in the header */
.header-phone { display: none; align-items: center; gap: 8px; font: 500 0.85rem var(--mono); letter-spacing: 0.02em; text-decoration: none; opacity: 0.85; white-space: nowrap; }
.header-phone:hover { opacity: 1; }
.header-phone svg, .btn svg { width: 16px; height: 16px; flex-shrink: 0; }
@media (min-width: 1240px) { .header-phone { display: inline-flex; } }


/* WhatsApp button colour: muted, in palette (not the bright brand green) */
.btn.wa { background: #2f5e46; border-color: #2f5e46; color: #f3efe7; }
.btn.wa:hover { background: #244a37; border-color: #244a37; }

/* Floating actions */
.fab { position: fixed; z-index: 45; right: 20px; display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer; text-decoration: none; box-shadow: 0 10px 30px -10px rgba(20, 19, 17, 0.55); transition: transform 0.35s var(--ease), opacity 0.35s, background 0.3s; }
.fab svg { width: 20px; height: 20px; }
.fab.wa { bottom: 20px; padding: 12px 18px 12px 14px; border-radius: 999px; background: #2f5e46; color: #f3efe7; font: 500 0.88rem var(--sans); }
.fab.wa:hover { background: #244a37; transform: translateY(-2px); }
.fab.top { bottom: 80px; width: 44px; height: 44px; justify-content: center; border-radius: 50%; background: var(--ink); color: var(--paper); opacity: 0; transform: translateY(10px); pointer-events: none; }
.fab.top.show { opacity: 1; transform: none; pointer-events: auto; }
.fab.top:hover { background: var(--clay); }
@media (max-width: 640px) { .fab.wa span { display: none; } .fab.wa { padding: 14px; } .fab.top { bottom: 84px; } }

/* Call card (contact page) */
.call-card { padding: 24px; border-radius: var(--radius); background: var(--ink); color: var(--paper); }
.call-card .eyebrow { color: var(--ink-300); }
.call-card .muted { color: var(--ink-300); margin-top: 8px; }
.call-number { display: block; margin-top: 10px; font: 400 2rem/1.1 var(--serif); color: var(--paper); text-decoration: none; letter-spacing: -0.01em; }
.call-number:hover { color: var(--clay-300); }
.call-card .btn:not(.wa) { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.call-card .btn:not(.wa):hover { background: var(--clay); color: var(--paper-50); border-color: var(--clay); }

/* Trade-terms ticker */
.ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-50); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker.dark { border-color: var(--line-dark); background: var(--ink-900); }
.ticker ul { list-style: none; display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker li { padding: 16px 28px; font: 500 0.75rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-500); white-space: nowrap; position: relative; }
.ticker.dark li { color: var(--ink-300); }
.ticker li::after { content: "◆"; position: absolute; right: -6px; font-size: 0.5rem; top: 50%; transform: translateY(-50%); color: var(--clay-300); }
.ticker:hover ul { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Cards: lift + soft spotlight that follows the cursor (set by main.js) */
.card, .cols-2 > *, .cols-3 > *, .cols-4 > *, .steps li, .path-cards a, .cta-paths a {
  position: relative;
  transition: opacity 0.7s var(--ease), transform 0.5s var(--ease), box-shadow 0.4s var(--ease), background 0.3s, border-color 0.3s;
}
.card:hover, .steps li:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -26px rgba(27, 26, 23, 0.45); }
.spot::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(154, 74, 42, 0.08), transparent 45%);
}
.bg-ink .spot::before, .hero-dark .spot::before, .cta-paths .spot::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(201, 139, 110, 0.14), transparent 45%); }
.spot:hover::before { opacity: 1; }

/* Buttons: subtle sheen on hover */
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.22), transparent); transform: skewX(-20deg); transition: left 0.7s var(--ease); }
.btn:hover::after { left: 130%; }

/* Hero: vignette + gentle float on the map */
.home-hero { position: relative; overflow: hidden; }
.home-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 55% at 72% 45%, rgba(201, 139, 110, 0.10), transparent 70%), radial-gradient(50% 50% at 10% 90%, rgba(132, 150, 168, 0.08), transparent 70%); }
.home-hero .container { position: relative; }
.map-frame svg { filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.35)); }
.home-hero h1 { animation: rise 1s var(--ease) both; }
.home-hero .lede { animation: rise 1s 0.12s var(--ease) both; }
.home-hero .path-cards { animation: rise 1s 0.24s var(--ease) both; }
.home-hero .map-frame { animation: fadein 1.4s 0.2s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.page-hero h1 { animation: rise 0.9s var(--ease) both; }
.page-hero .lede { animation: rise 0.9s 0.1s var(--ease) both; }


/* Journey steps synced with the diagram */
.diagram-sticky { position: sticky; top: 96px; }
.journey-steps li { transition: opacity 0.5s var(--ease); }
.js-sync .journey-steps li { opacity: 0.4; }
.js-sync .journey-steps li.active { opacity: 1; }
.journey-steps li.active .stage::before { content: ""; display: inline-block; width: 22px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 10px; }
.journey-diagram [data-stage] { transition: opacity 0.6s var(--ease); }
.journey-diagram.synced [data-stage] { opacity: 0.32; }
.journey-diagram.synced [data-stage].on { opacity: 1; }
.journey-diagram .rig { transition: transform 1s var(--ease), opacity 0.6s; }
.journey-diagram .rail { transition: opacity 0.4s; }
.journey-diagram.synced .rail { opacity: 0.4; }
.journey-diagram.synced .rail.on { opacity: 1; }

/* Ships on the lane map pause under reduced motion (main.js pauses SVG animation too) */
@media (prefers-reduced-motion: reduce) { .ships { display: none; } .ticker ul { animation: none; } html { scroll-behavior: auto; } }

/* Accordion: smooth open/close (height animated by main.js) */
.accordion .panel { overflow: hidden; transition: height 0.35s var(--ease); }

/* Count-up numbers keep their width steady */
[data-count] { font-variant-numeric: tabular-nums; }

/* Header sign-in link */
.header-signin { display: none; padding: 8px 14px; font-size: 0.85rem; font-weight: 500; text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius); }
.header-signin:hover { border-color: var(--ink); }
.on-dark:not(.scrolled):not(.menu-open) .header-signin { border-color: rgba(243, 239, 231, 0.3); }
@media (min-width: 640px) { .header-signin { display: inline-flex; } }

/* ==========================================================================
   13. Live tracking, tokenization, calculator
   ========================================================================== */
.tracker { border: 1px solid var(--line-dark); border-radius: 8px; overflow: hidden; background: #0b0d10; }
.tracker-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 12px; border-bottom: 1px solid var(--line-dark); }
.presets, .providers { display: flex; flex-wrap: wrap; gap: 6px; }
.preset, .prov { background: transparent; border: 1px solid var(--line-dark); color: var(--ink-300); padding: 7px 12px; border-radius: 999px; font: 500 0.8rem var(--sans); cursor: pointer; transition: all 0.25s; }
.preset:hover, .prov:hover { color: var(--paper); border-color: var(--ink-400); }
.preset.on { background: var(--clay); border-color: var(--clay); color: #fff; }
.prov.on { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.tracker-map { position: relative; aspect-ratio: 16 / 9; background: radial-gradient(circle at 60% 40%, #13202c, #0b0d10); }
.tracker-map::before { content: "Loading live AIS map…"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--ink-400); font: 0.85rem var(--mono); }
.tracker-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 640px) { .tracker-map { aspect-ratio: 3 / 4; } }
.tracker-search { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 14px; border-top: 1px solid var(--line-dark); }
.tracker-search .input { background: #12161b; border-color: var(--line-dark); color: var(--paper); }
.tracker-msg { grid-column: 1 / -1; color: var(--ink-300); min-height: 1em; }
.tracker-links { grid-column: 1 / -1; display: flex; gap: 20px; }
.tracker-links a { color: var(--paper); }
@media (max-width: 640px) { .tracker-search { grid-template-columns: 1fr auto; } .tracker-search label { grid-column: 1 / -1; } }

/* Token card */
.tok-stage { perspective: 1200px; padding: 20px 0; }
.tok-card { --rx: 0deg; --ry: 0deg; max-width: 440px; margin: 0 auto; border-radius: 18px; padding: 26px; color: var(--paper);
  background: linear-gradient(140deg, #2b2925 0%, #1b1a17 45%, #3a2a22 100%); border: 1px solid rgba(201, 139, 110, 0.35);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform 0.25s ease-out, border-color 0.6s, background 0.6s; position: relative; overflow: hidden; }
.tok-card::after { content: ""; position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.08) 50%, transparent 60%); transform: translateX(-60%); transition: transform 1.2s var(--ease); pointer-events: none; }
.tok-card.pulse::after { transform: translateX(60%); }
.tok-top { display: flex; justify-content: space-between; align-items: center; color: var(--clay-300); }
.tok-chip { width: 38px; height: 28px; border-radius: 6px; background: linear-gradient(135deg, #cdae74, #8d6f38); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25); }
.tok-title { margin-top: 20px; font: 400 1.6rem/1.15 var(--serif); }
.tok-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 20px 0 0; }
.tok-fields dt { font: 500 0.62rem var(--mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-400); }
.tok-fields dd { margin: 2px 0 0; font-size: 0.92rem; }
.tok-hash { margin-top: 20px; font-size: 0.66rem; color: var(--ink-400); word-break: break-all; }
.tok-card.s1 { border-color: rgba(132, 150, 168, 0.6); }
.tok-card.s2 { border-color: rgba(201, 139, 110, 0.8); background: linear-gradient(140deg, #3a2a22, #1b1a17 50%, #2b2925); }
.tok-card.s3 { border-color: rgba(205, 174, 116, 0.8); }
.tok-card.s4 { border-color: rgba(136, 162, 145, 0.8); background: linear-gradient(140deg, #22302a, #1b1a17 50%, #2b2925); }
.tok-card.s5 { border-color: rgba(179, 172, 159, 0.5); filter: saturate(0.6); }
.tok-steps { list-style: none; display: grid; gap: 6px; }
.tok-steps button { width: 100%; display: flex; gap: 14px; align-items: center; padding: 12px 14px; background: transparent; border: 1px solid var(--line-dark); border-radius: 6px; color: var(--ink-300); font: 500 0.95rem var(--sans); text-align: left; cursor: pointer; transition: all 0.3s var(--ease); }
.tok-steps button .n { font: 500 0.72rem var(--mono); color: var(--ink-400); }
.tok-steps button:hover { border-color: var(--ink-400); color: var(--paper); }
.tok-steps button.done { color: var(--ink-400); }
.tok-steps button[aria-pressed="true"] { background: rgba(201, 139, 110, 0.12); border-color: var(--clay-300); color: var(--paper); }
.tok-steps button[aria-pressed="true"] .n { color: var(--clay-300); }
.tok-desc .muted { color: var(--ink-300); }
.tok-line { color: var(--clay-300); }
.tok-desc:not([hidden]) { animation: rise 0.5s var(--ease) both; }

/* Calculator */
.calc { background: var(--paper-50); color: var(--ink); display: grid; gap: 14px; }
.calc .field label { display: block; margin-bottom: 6px; font-size: 0.85rem; font-weight: 500; }
.calc-out { margin: 4px 0 0; border-top: 1px solid var(--line); }
.calc-out > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.calc-out dt { color: var(--ink-600); }
.calc-out dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 500; text-align: right; }
.calc-out .big dd { font: 400 1.8rem/1.1 var(--serif); }
.calc-out .big small { display: block; font: 500 0.8rem var(--mono); color: var(--clay); margin-top: 4px; }

/* ==========================================================================
   14. Installed app (PWA) polish
   ========================================================================== */
.site-header { padding-top: env(safe-area-inset-top); height: calc(var(--header-h) + env(safe-area-inset-top)); }
.fab.wa { bottom: calc(20px + env(safe-area-inset-bottom)); }
.fab.top { bottom: calc(80px + env(safe-area-inset-bottom)); }
@media (display-mode: standalone) { body { overscroll-behavior-y: none; } .skip { display: none; } }
.install-app[hidden] { display: none !important; }

/* ==========================================================================
   15. Trade-owner touches: hero actions and trust strip
   ========================================================================== */
.btn.ghost-dark { background: transparent; color: var(--paper); border: 1px solid rgba(243, 239, 231, 0.45); display: inline-flex; align-items: center; gap: 8px; }
.btn.ghost-dark:hover { border-color: var(--paper); background: rgba(243, 239, 231, 0.08); }
.btn.ghost-dark svg { width: 16px; height: 16px; }
.trust-strip { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: "IBM Plex Mono", monospace; font-size: 0.74rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-300, #B9B3A6); }
.trust-strip li { display: inline-flex; align-items: center; gap: 7px; }
.trust-strip li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--moss-300, #9DB08A); box-shadow: 0 0 0 3px rgba(157, 176, 138, 0.18); }
@media (max-width: 560px) { .hero-actions .btn { width: 100%; justify-content: center; } }
.hero-actions .btn:not(.ghost-dark) { background: var(--paper); color: var(--ink-900); border-color: var(--paper); }
.hero-actions .btn:not(.ghost-dark):hover { background: #fff; }
