/* =============================================================
   wavvelytte — design system
   Export + contract-print arm of Lokmangal Mudranalay
   -------------------------------------------------------------
   Palette derived from the actual brand marks:
   brick + coral (wavvelytte) / navy (Lokmangal heritage)
   ============================================================= */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Brand — sampled from the wavvelytte logo.
     --coral is the brand colour. It is BRIGHT, which means it only clears
     WCAG AA against dark surfaces. So it splits three ways by job:
       --coral       graphics + anything on ink/brick   (contrast N/A or high)
       --coral-cta   button fills, white text on top    (4.86:1 ✓)
       --coral-text  small coral text on paper/newsprint (4.8–5.6:1 ✓)
     Never put raw --coral on a light background as text. */
  --brick:        #A32B22;   /* on paper 6.50:1 ✓ · white on brick 7.18:1 ✓ */
  --brick-deep:   #7E1F19;
  --brick-dark:   #5C1611;
  --coral:        #E85A28;
  --coral-cta:    #C94418;
  --coral-text:   #B03811;
  --coral-lite:   #F5875C;

  /* Ink & paper — warm, uncoated-stock neutrals, not cold greys */
  --ink:          #14110F;
  --ink-soft:     #2A2622;
  --graphite:     #4A443E;
  --pewter:       #6B6259;   /* was #7C736A — failed AA on newsprint at 3.65:1 */
  --rule:         #DED5C9;
  --newsprint:    #EAE3D9;
  --paper:        #F7F3EE;
  --paper-pure:   #FFFFFF;

  /* Lokmangal heritage accent */
  --navy:         #24406E;
  --navy-deep:    #182C4D;

  /* Semantic */
  --bg:           var(--paper);
  --fg:           var(--ink);
  --fg-muted:     var(--graphite);
  --accent:       var(--coral);
  --accent-fg:    #FFFFFF;
  --border:       var(--rule);
  --focus:        var(--coral);

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Fluid type scale — 1.25 minor third, clamped */
  --t-xs:   0.75rem;
  --t-sm:   0.875rem;
  --t-base: 1rem;
  --t-md:   clamp(1.0625rem, 0.99rem + 0.35vw, 1.1875rem);
  --t-lg:   clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --t-xl:   clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --t-2xl:  clamp(1.875rem, 1.5rem + 1.9vw, 2.75rem);
  --t-3xl:  clamp(2.25rem, 1.6rem + 3.2vw, 4rem);
  --t-4xl:  clamp(2.75rem, 1.7rem + 5.2vw, 6rem);
  --t-5xl:  clamp(3rem, 1.4rem + 8vw, 8.5rem);

  /* Spacing — 4/8 rhythm, density 4/10 (marketing, generous) */
  --s-1:  0.25rem;  --s-2:  0.5rem;   --s-3:  0.75rem;
  --s-4:  1rem;     --s-5:  1.5rem;   --s-6:  2rem;
  --s-7:  3rem;     --s-8:  4rem;     --s-9:  6rem;
  --s-10: 8rem;     --s-11: 10rem;

  --section-y: clamp(4rem, 9vw, 8.5rem);
  --gutter:    clamp(1.25rem, 5vw, 4rem);
  --maxw:      1280px;
  --maxw-text: 68ch;

  /* Industrial = near-square. Nothing is a pill. */
  --r-sm: 2px;
  --r-md: 3px;

  /* Elevation — ink-tinted, never blue-grey */
  --sh-1: 0 1px 2px rgba(20,17,15,.06), 0 2px 8px rgba(20,17,15,.04);
  --sh-2: 0 2px 4px rgba(20,17,15,.07), 0 12px 28px rgba(20,17,15,.08);
  --sh-3: 0 8px 20px rgba(20,17,15,.10), 0 28px 60px rgba(20,17,15,.14);

  /* Motion — one rhythm across the whole site */
  --e-out:    cubic-bezier(.16, 1, .3, 1);      /* entering */
  --e-in:     cubic-bezier(.7, 0, .84, 0);       /* exiting */
  --e-press:  cubic-bezier(.34, 1.56, .64, 1);   /* spring */
  --d-fast:   160ms;
  --d-base:   240ms;
  --d-slow:   420ms;
  --d-reveal: 720ms;

  --z-base: 0; --z-raised: 10; --z-sticky: 40; --z-nav: 100; --z-modal: 1000;
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--t-md);
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, video, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
:focus:not(:focus-visible) { outline: none; }

::selection { background: var(--coral); color: #fff; }

/* ---------- 3. TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.022em;
  font-variation-settings: "SOFT" 0, "WONK" 1;
  text-wrap: balance;
}
h1 { font-size: var(--t-4xl); }
h2 { font-size: var(--t-3xl); }
h3 { font-size: var(--t-xl); }
h4 { font-size: var(--t-lg); }

p { text-wrap: pretty; }
strong { font-weight: 600; }

.lede {
  font-size: var(--t-lg);
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: var(--maxw-text);
  font-weight: 350;
}

/* Small-caps technical label — the "datasheet" voice */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brick);
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: .5;
}
.eyebrow--light { color: var(--coral); }
.eyebrow--onbrick { color: rgba(255,255,255,.78); }

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* Coral ink-swipe under a word in a headline */
.mark {
  position: relative;
  display: inline-block;
  color: var(--brick);
}
.mark::after {
  content: "";
  position: absolute;
  left: -0.06em; right: -0.06em;
  bottom: 0.06em;
  height: 0.22em;
  background: var(--coral);
  opacity: .28;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--d-reveal) var(--e-out) 400ms;
}
.is-revealed .mark::after,
.hero.is-in .mark::after { transform: scaleX(1); }

/* ---------- 4. LAYOUT ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 940px; }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--brick { background: var(--brick); color: #fff; }
.section--newsprint { background: var(--newsprint); }

.section-head { max-width: 780px; margin-bottom: var(--s-8); }
.section-head h2 { margin-top: var(--s-4); }
.section-head p { margin-top: var(--s-5); }

.grid { display: grid; gap: var(--s-5); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }

/* Hairline rule with a registration tick — recurring motif */
.rule {
  height: 1px;
  background: var(--border);
  position: relative;
}
.rule::after {
  content: "";
  position: absolute;
  left: 0; top: -3px;
  width: 3rem; height: 7px;
  background: var(--coral);
}

/* ---------- 5. TEXTURES (pure CSS/SVG — no image weight) ---------- */

/* Uncoated paper grain */
.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
}
.section--dark .grain::before,
.section--brick .grain::before { mix-blend-mode: overlay; opacity: .22; }

/* Halftone dot field — the printing motif, done as a gradient (free) */
.halftone {
  background-image: radial-gradient(circle at center, currentColor 1.1px, transparent 1.2px);
  background-size: 9px 9px;
  opacity: .13;
}

/* ---------- 6. BUTTONS ---------- */
.btn {
  --btn-bg: var(--coral-cta);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  min-height: 52px;
  padding: 0 var(--s-6);
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--t-base);
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--d-fast) var(--e-press),
              box-shadow var(--d-base) var(--e-out),
              background-color var(--d-base) var(--e-out);
  box-shadow: var(--sh-1);
}
/* Ink roller sweeps across on hover */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--brick-deep);
  transform: translateX(-101%);
  transition: transform var(--d-slow) var(--e-out);
}
.btn:hover { box-shadow: var(--sh-2); }
.btn:hover::before { transform: translateX(0); }
.btn:active { transform: scale(.975); }

.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn .arw { transition: transform var(--d-base) var(--e-out); }
.btn:hover .arw { transform: translateX(4px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { --btn-fg: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }

.btn--ghost-light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55);
}
.btn--ghost-light::before { background: #fff; }
.btn--ghost-light:hover { --btn-fg: var(--brick); box-shadow: inset 0 0 0 1.5px #fff; }

.btn--wa { --btn-bg: #25D366; --btn-fg: #0B3D22; }
.btn--wa::before { background: #1EB855; }
.btn--wa:hover { --btn-fg: #06301A; }

.btn--lg { min-height: 60px; padding: 0 var(--s-7); font-size: var(--t-md); }
.btn--block { display: flex; width: 100%; }

/* Quiet text link with a rule that draws in */
.link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 500;
  text-decoration: none;
  color: var(--brick);
  padding-block: 2px;
  background-image: linear-gradient(var(--coral), var(--coral));
  background-size: 0% 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size var(--d-base) var(--e-out), color var(--d-base) var(--e-out);
}
.link:hover { background-size: 100% 1.5px; color: var(--coral-text); }
.link svg { width: 1em; height: 1em; transition: transform var(--d-base) var(--e-out); }
.link:hover svg { transform: translateX(3px); }
.link--light { color: #fff; background-image: linear-gradient(#fff, #fff); }
.link--light:hover { color: #fff; }

/* ---------- 7. NAV ---------- */
.skip {
  position: absolute;
  left: var(--s-4); top: var(--s-4);
  z-index: calc(var(--z-nav) + 1);
  padding: var(--s-3) var(--s-5);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  border-radius: var(--r-sm);
  transform: translateY(-160%);
  transition: transform var(--d-base) var(--e-out);
}
.skip:focus { transform: translateY(0); }

.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(247,243,238,.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--d-base) var(--e-out),
              background-color var(--d-base) var(--e-out);
}
.nav.is-stuck {
  border-bottom-color: var(--border);
  background: rgba(247,243,238,.94);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  height: 76px;
  transition: height var(--d-base) var(--e-out);
}
.nav.is-stuck .nav__inner { height: 64px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
  flex: none;
  min-height: 44px;
}
.brand__mark { width: 46px; height: auto; flex: none; }
.brand__type {
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--brick);
}
.brand__type b { color: var(--coral); font-weight: 600; }
.brand__sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pewter);
  margin-top: -2px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(.35rem, 1.1vw, 1rem);
  list-style: none;
  padding: 0;
}
.nav__link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: var(--s-2) var(--s-3);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--r-sm);
  transition: color var(--d-fast) var(--e-out);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: var(--s-3); right: var(--s-3);
  bottom: 6px;
  height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--d-base) var(--e-out);
}
.nav__link:hover { color: var(--brick); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--brick); font-weight: 600; }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav__cta { flex: none; }
.nav__cta .btn { min-height: 44px; padding-inline: var(--s-5); font-size: var(--t-sm); }

.nav__burger {
  display: none;
  width: 48px; height: 48px;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: var(--r-sm);
}
.nav__burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: background-color var(--d-fast) linear;
}
.nav__burger span::before,
.nav__burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px; height: 1.5px;
  background: var(--ink);
  transition: transform var(--d-base) var(--e-out);
}
.nav__burger span::before { top: -7px; }
.nav__burger span::after { top: 7px; }
.nav__burger[aria-expanded="true"] span { background-color: transparent; }
.nav__burger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav__drawer {
  position: fixed;
  inset: 76px 0 0;
  z-index: calc(var(--z-nav) - 1);
  background: var(--paper);
  padding: var(--s-6) var(--gutter) var(--s-8);
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--d-base) var(--e-out),
              transform var(--d-base) var(--e-out),
              visibility 0s linear var(--d-base);
}
.nav__drawer.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}
.nav__drawer a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: var(--s-3) 0;
  font-family: var(--font-display);
  font-size: var(--t-xl);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.nav__drawer a[aria-current="page"] { color: var(--brick); }
.nav__drawer a span {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--pewter);
}
.nav__drawer .btn { margin-top: var(--s-5); }

/* ---------- 8. HERO ---------- */
.hero {
  position: relative;
  background: var(--brick);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(232,90,40,.42), transparent 58%),
    radial-gradient(100% 100% at 0% 100%, rgba(92,22,17,.62), transparent 60%),
    var(--brick);
}
/* Slow ink-roller sheen drifting across the brick */
.hero__sheen {
  position: absolute;
  inset: -20% -40%;
  z-index: -2;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.07) 47%, rgba(255,255,255,.11) 50%, rgba(255,255,255,.07) 53%, transparent 62%);
  animation: sheen 14s var(--e-out) infinite;
  will-change: transform;
}
@keyframes sheen {
  0%, 100% { transform: translateX(-14%); }
  50%      { transform: translateX(14%); }
}
.hero__halftone {
  position: absolute;
  inset: 0;
  z-index: -1;
  color: #fff;
  opacity: .07;
  background-image: radial-gradient(circle, currentColor 1.2px, transparent 1.3px);
  background-size: 10px 10px;
  mask-image: linear-gradient(200deg, #000 0%, transparent 55%);
  -webkit-mask-image: linear-gradient(200deg, #000 0%, transparent 55%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-8);
  padding-block: clamp(4.5rem, 11vw, 9rem) clamp(4rem, 9vw, 7rem);
  position: relative;
  z-index: 2;
}
/* Single column since the job-docket panel was removed — content stays left,
   capped by the h1/sub max-widths so it never over-stretches. */
@media (min-width: 1000px) {
  .hero__inner { gap: var(--s-9); }
}

.hero h1 {
  font-size: var(--t-5xl);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -0.03em;
  margin-top: var(--s-5);
  max-width: 15ch;
}
.hero h1 em {
  font-style: italic;
  font-variation-settings: "SOFT" 40, "WONK" 1;
  color: #FFD9C7;
}
.hero__sub {
  margin-top: var(--s-6);
  max-width: 56ch;
  font-size: var(--t-md);
  line-height: 1.62;
  color: rgba(255,255,255,.82);
  font-weight: 350;
}
.hero__sub strong { color: #fff; font-weight: 600; }
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-top: var(--s-7);
}
.hero__cta .btn--ghost-light::before { background: #fff; }

/* Trust line under CTAs */
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-5);
  margin-top: var(--s-6);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: .04em;
  color: rgba(255,255,255,.78);
}
.hero__trust span { display: inline-flex; align-items: center; gap: var(--s-2); }
.hero__trust svg { width: 13px; height: 13px; color: #FFB99B; }

/* Hero side panel — the "press sheet" spec card */
.sheet {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  padding: var(--s-6);
  border-radius: var(--r-sm);
  box-shadow: var(--sh-3);
  transform-origin: bottom right;
}
.sheet::before,
.sheet::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  border: 1px solid var(--coral);
  opacity: .55;
}
.sheet::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.sheet::after { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }

.sheet__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--border);
}
.sheet__head h3 { font-size: var(--t-lg); }
.sheet__head .mono { font-size: var(--t-xs); color: var(--pewter); }

.sheet__rows { list-style: none; padding: 0; margin: var(--s-4) 0 0; }
.sheet__rows li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-3) 0;
  border-bottom: 1px dashed var(--border);
  font-size: var(--t-sm);
}
.sheet__rows li:last-child { border-bottom: 0; }
.sheet__rows dt, .sheet__rows .k { color: var(--pewter); }
.sheet__rows .v { font-family: var(--font-mono); font-weight: 500; color: var(--ink); text-align: right; }
.sheet__rows .v em { font-style: normal; color: var(--brick); }

/* CMYK registration bar — the signature detail */
.regbar {
  display: flex;
  height: 6px;
  margin-top: var(--s-5);
  border-radius: 1px;
  overflow: hidden;
}
.regbar i { flex: 1; transform: scaleX(0); transform-origin: left; }
.regbar i:nth-child(1) { background: #00A6C8; }
.regbar i:nth-child(2) { background: #D6006E; }
.regbar i:nth-child(3) { background: #F0C000; }
.regbar i:nth-child(4) { background: var(--ink); }
.is-in .regbar i { animation: regbar var(--d-slow) var(--e-out) forwards; }
.is-in .regbar i:nth-child(1) { animation-delay: 620ms; }
.is-in .regbar i:nth-child(2) { animation-delay: 700ms; }
.is-in .regbar i:nth-child(3) { animation-delay: 780ms; }
.is-in .regbar i:nth-child(4) { animation-delay: 860ms; }
@keyframes regbar { to { transform: scaleX(1); } }

/* ---------- 9. HERO TEXT REVEAL (sheet-off-the-press) ---------- */
.reveal-line { display: block; overflow: hidden; }
.js .reveal-line > span {
  display: block;
  transform: translateY(105%);
  transition: transform 900ms var(--e-out);
}
.hero.is-in .reveal-line > span { transform: translateY(0); }
.hero.is-in .reveal-line:nth-child(1) > span { transition-delay: 80ms; }
.hero.is-in .reveal-line:nth-child(2) > span { transition-delay: 180ms; }
.hero.is-in .reveal-line:nth-child(3) > span { transition-delay: 280ms; }

.js .fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--d-reveal) var(--e-out), transform var(--d-reveal) var(--e-out);
}
.hero.is-in .fade-up,
.phead.is-in .fade-up { opacity: 1; transform: none; }
.hero.is-in .hero__sub    { transition-delay: 380ms; }
.hero.is-in .hero__cta    { transition-delay: 470ms; }
.hero.is-in .hero__trust  { transition-delay: 550ms; }
.hero.is-in .eyebrow      { transition-delay: 20ms; }
.hero.is-in .sheet        { transition-delay: 300ms; }

/* ---------- 10. SCROLL REVEAL (site-wide) ----------
   Everything below is gated on html.js. If JavaScript never runs —
   or an observer never fires — the content is simply visible.
   Content must never depend on an animation to be readable. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--d-reveal) var(--e-out), transform var(--d-reveal) var(--e-out);
  will-change: opacity, transform;
}
.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  will-change: auto;
}
/* Stagger children by 60ms — set via --i in markup or JS */
.js [data-reveal] { transition-delay: calc(var(--i, 0) * 60ms); }

/* ---------- 11. TILES (what we do) ---------- */
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--s-6);
  background: var(--paper-pure);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--d-base) var(--e-out),
              box-shadow var(--d-base) var(--e-out),
              border-color var(--d-base) var(--e-out);
}
/* Ink floods up from the base on hover */
.tile::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 100%;
  z-index: -1;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--d-slow) var(--e-out);
}
.tile:hover, .tile:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--sh-3);
  border-color: var(--ink);
}
.tile:hover::before, .tile:focus-visible::before { transform: scaleY(1); }
.tile:hover *, .tile:focus-visible * { color: var(--paper); }
.tile:hover .tile__num, .tile:focus-visible .tile__num { color: var(--coral); }
.tile:hover .tile__icon, .tile:focus-visible .tile__icon { color: var(--coral); border-color: rgba(255,255,255,.28); }

.tile__num {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: .12em;
  color: var(--coral-text);
  transition: color var(--d-base) var(--e-out);
}
.tile__icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  margin: var(--s-5) 0 var(--s-5);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--brick);
  transition: color var(--d-base) var(--e-out), border-color var(--d-base) var(--e-out);
}
.tile__icon svg { width: 24px; height: 24px; }
.tile h3 { transition: color var(--d-base) var(--e-out); }
.tile p {
  margin-top: var(--s-3);
  font-size: var(--t-sm);
  color: var(--fg-muted);
  transition: color var(--d-base) var(--e-out);
  flex: 1;
}
.tile__spec {
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px dashed var(--border);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: .04em;
  color: var(--pewter);
  transition: color var(--d-base) var(--e-out);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}
.tile__spec svg {
  width: 14px; height: 14px;
  flex: none;
  transition: transform var(--d-base) var(--e-out);
}
.tile:hover .tile__spec svg { transform: translateX(4px); }

/* ---------- 12. STATS ---------- */
.stat {
  position: relative;
  padding: var(--s-6) var(--s-5) var(--s-6) var(--s-6);
  background: var(--paper-pure);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.stat::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--coral);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--d-slow) var(--e-out) 120ms;
}
.stat.is-revealed::before { transform: scaleY(1); }
.stat__num {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--brick);
  font-variant-numeric: tabular-nums;
}
.stat__num small {
  font-size: .42em;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--coral-text);
}
.stat__label {
  margin-top: var(--s-4);
  font-size: var(--t-sm);
  line-height: 1.45;
  color: var(--fg-muted);
  max-width: 22ch;
}
.section--dark .stat,
.section--brick .stat {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.14);
}
.section--dark .stat__num { color: #fff; }
.section--dark .stat__label { color: rgba(255,255,255,.66); }

/* ---------- 13. PULL QUOTE (founder) ---------- */
.quote {
  position: relative;
  display: grid;
  gap: var(--s-7);
  align-items: center;
}
@media (min-width: 900px) {
  .quote { grid-template-columns: 200px 1fr; gap: var(--s-8); }
}
.quote blockquote {
  font-family: var(--font-display);
  font-size: var(--t-2xl);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 30, "WONK" 1;
  text-wrap: balance;
}
.quote blockquote::before {
  content: "\201C";
  display: block;
  font-size: 3em;
  line-height: .5;
  color: var(--coral);
  margin-bottom: .18em;
}
.quote figcaption {
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
  font-size: var(--t-sm);
}
.quote figcaption b { display: block; font-weight: 600; }
.quote figcaption span { color: var(--pewter); }
.section--dark .quote figcaption { border-top-color: rgba(255,255,255,.18); }
.section--dark .quote figcaption span { color: rgba(255,255,255,.6); }

/* Portrait frame — halftone placeholder until real photo lands */
.portrait {
  position: relative;
  aspect-ratio: 4/5;
  width: 100%;
  max-width: 200px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--newsprint);
  border: 1px solid var(--border);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait--empty {
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--s-4);
  color: var(--pewter);
}
.portrait--empty span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.5;
}
.portrait--empty::before {
  content: "";
  position: absolute;
  inset: 0;
  color: var(--brick);
  opacity: .1;
  background-image: radial-gradient(circle, currentColor 1.4px, transparent 1.5px);
  background-size: 8px 8px;
}
.section--dark .portrait { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }
.section--dark .portrait--empty { color: rgba(255,255,255,.5); }

/* ---------- 14. MAP (dot-matrix) ---------- */
.map {
  position: relative;
  width: 100%;
}
.map__svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.map__land { fill: currentColor; color: var(--rule); }
.section--dark .map__land { color: rgba(255,255,255,.16); }

.map__port {
  cursor: pointer;
  transition: transform var(--d-base) var(--e-press);
  transform-box: fill-box;
  transform-origin: center;
}
.map__port .dot { fill: var(--brick); transition: fill var(--d-fast) var(--e-out); }
.map__port .halo {
  fill: none;
  stroke: var(--coral);
  stroke-width: 1;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.map__port.is-live .halo { animation: ping 2.6s var(--e-out) infinite; }
@keyframes ping {
  0%   { opacity: .7; transform: scale(.6); }
  70%  { opacity: 0;  transform: scale(2.6); }
  100% { opacity: 0;  transform: scale(2.6); }
}
.map__port:hover, .map__port:focus-visible { transform: scale(1.35); }
.map__port:hover .dot, .map__port:focus-visible .dot { fill: var(--coral); }
.map__port .hit { fill: transparent; }

.map__origin .dot { fill: var(--coral); }
.map__route {
  fill: none;
  stroke: var(--coral);
  stroke-width: .9;
  stroke-linecap: round;
  opacity: 0;
  stroke-dasharray: var(--len, 400);
  stroke-dashoffset: var(--len, 400);
}
.map.is-revealed .map__route {
  opacity: .34;
  animation: draw 1.5s var(--e-out) forwards;
  animation-delay: calc(var(--i, 0) * 110ms + 300ms);
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.map__tip {
  position: absolute;
  z-index: var(--z-raised);
  min-width: 190px;
  padding: var(--s-3) var(--s-4);
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-sm);
  box-shadow: var(--sh-3);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, calc(-100% - 12px)) scale(.94);
  transition: opacity var(--d-fast) var(--e-out), transform var(--d-fast) var(--e-out);
}
.map__tip.is-on { opacity: 1; transform: translate(-50%, calc(-100% - 12px)) scale(1); }
.map__tip b { display: block; font-size: var(--t-sm); font-weight: 600; }
.map__tip span {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,.66);
  letter-spacing: .03em;
}
.map__tip::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -5px;
  width: 10px; height: 10px;
  background: var(--ink);
  transform: translateX(-50%) rotate(45deg);
}

/* Mobile: scrollable port list instead of the map */
.map__list {
  display: none;
  gap: var(--s-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--s-4);
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  -webkit-overflow-scrolling: touch;
}
.map__list li {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 210px;
  padding: var(--s-4);
  background: var(--paper-pure);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  list-style: none;
}
.map__list b { display: block; font-size: var(--t-sm); }
.map__list span {
  display: block;
  margin-top: var(--s-2);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--pewter);
}

/* ---------- 15. LOGO STRIP (marquee) ---------- */
.strip {
  position: relative;
  overflow: hidden;
  padding-block: var(--s-6);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.strip__track {
  display: flex;
  gap: var(--s-9);
  width: max-content;
  animation: marquee 42s linear infinite;
  will-change: transform;
}
.strip:hover .strip__track,
.strip:focus-within .strip__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.strip__item {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex: none;
  font-family: var(--font-mono);
  font-size: var(--t-sm);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--pewter);
  opacity: .8;
  transition: opacity var(--d-base) var(--e-out), color var(--d-base) var(--e-out);
  white-space: nowrap;
}
.strip__item:hover { opacity: 1; color: var(--brick); }
.strip__item svg { width: 20px; height: 20px; flex: none; }

/* ---------- 16. CTA BAND ---------- */
.band {
  position: relative;
  background: var(--brick);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.band__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(90% 140% at 82% 110%, rgba(232,90,40,.5), transparent 62%);
}
.band__inner {
  display: grid;
  gap: var(--s-6);
  align-items: center;
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
@media (min-width: 900px) {
  .band__inner { grid-template-columns: 1.4fr auto; gap: var(--s-8); }
}
.band h2 { font-size: var(--t-2xl); max-width: 20ch; }
.band p { margin-top: var(--s-4); color: rgba(255,255,255,.78); max-width: 48ch; }
.band__cta { display: flex; flex-wrap: wrap; gap: var(--s-4); }

/* ---------- 17. FOOTER ---------- */
.foot {
  background: var(--ink);
  color: rgba(255,255,255,.72);
  padding-block: var(--s-8) var(--s-6);
  font-size: var(--t-sm);
}
.foot__grid {
  display: grid;
  gap: var(--s-7);
  grid-template-columns: 1fr;
  padding-bottom: var(--s-7);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
@media (min-width: 760px)  { .foot__grid { grid-template-columns: 1.6fr 1fr 1fr; } }
@media (min-width: 1060px) { .foot__grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; } }

.foot h4 {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.58);
  margin-bottom: var(--s-4);
}
.foot ul { list-style: none; padding: 0; display: grid; gap: var(--s-1); }
.foot a {
  text-decoration: none;
  color: rgba(255,255,255,.72);
  transition: color var(--d-fast) var(--e-out);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;   /* touch target — these are navigation, not prose links */
}
.foot a:hover { color: #fff; }
.foot__brand .brand__type { color: #fff; }
.foot__brand p {
  margin-top: var(--s-4);
  max-width: 34ch;
  color: rgba(255,255,255,.55);
  line-height: 1.6;
}
.foot__lok {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255,255,255,.1);
}
.foot__lok img { width: 92px; height: auto; opacity: .85; }
.foot__lok span {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.58);
}
.foot__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding-top: var(--s-5);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: .04em;
  color: rgba(255,255,255,.58);
}

/* ---------- 18. PAGE HEADER (inner pages) ---------- */
.phead {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.phead__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(85% 120% at 88% 0%, rgba(163,43,34,.55), transparent 60%),
    radial-gradient(60% 90% at 0% 100%, rgba(232,90,40,.18), transparent 65%);
}
.phead__halftone {
  position: absolute;
  inset: 0;
  z-index: -1;
  color: #fff;
  opacity: .06;
  background-image: radial-gradient(circle, currentColor 1.2px, transparent 1.3px);
  background-size: 11px 11px;
  mask-image: radial-gradient(70% 100% at 100% 0%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(70% 100% at 100% 0%, #000, transparent 70%);
}
.phead__inner { padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 7vw, 5.5rem); }
.phead h1 { font-size: var(--t-4xl); margin-top: var(--s-5); max-width: 18ch; }
.phead h1 em { font-style: italic; color: #FFC9B0; font-variation-settings: "SOFT" 40, "WONK" 1; }
.phead p {
  margin-top: var(--s-6);
  max-width: 60ch;
  color: rgba(255,255,255,.75);
  font-size: var(--t-md);
  font-weight: 350;
}

/* Breadcrumb */
.crumb {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
  list-style: none;
  padding: 0;
  margin-bottom: var(--s-5);
  flex-wrap: wrap;
}
.crumb a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;          /* was a 15px tap target */
  padding-inline: 2px;
  color: rgba(255,255,255,.68);
  text-decoration: none;
}
.crumb a:hover { color: #fff; }
.crumb li:not(:last-child)::after { content: "/"; margin-left: var(--s-2); opacity: .4; }
.crumb [aria-current] { color: var(--coral); }

/* ---------- 19. CATEGORY / SPEC CARDS ---------- */
.cat {
  display: grid;
  gap: var(--s-6);
  align-items: center;
  padding-block: var(--s-8);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 900px) {
  .cat { grid-template-columns: .9fr 1.1fr; gap: var(--s-8); }
  .cat:nth-child(even) .cat__media { order: 2; }
}
.cat:last-child { border-bottom: 0; }

.cat__media {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--newsprint);
  border: 1px solid var(--border);
}
.cat__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--e-out), filter var(--d-slow) var(--e-out);
  filter: saturate(.92) contrast(1.04);
}
.cat:hover .cat__media img { transform: scale(1.045); filter: saturate(1) contrast(1.06); }

/* Photo placeholder — clearly a placeholder, never fake-looking */
.ph {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
  text-align: center;
  padding: var(--s-6);
  background: var(--newsprint);
  color: var(--pewter);
  overflow: hidden;
}
.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  color: var(--brick);
  opacity: .09;
  background-image: radial-gradient(circle, currentColor 1.6px, transparent 1.7px);
  background-size: 9px 9px;
}
.ph::after {
  content: "";
  position: absolute;
  inset: var(--s-4);
  border: 1px dashed var(--rule);
  border-radius: var(--r-sm);
}
.ph__in { position: relative; z-index: 1; max-width: 26ch; }
.ph svg { width: 26px; height: 26px; margin: 0 auto var(--s-3); color: var(--brick); opacity: .5; }
.ph b {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brick);
}
.ph span {
  display: block;
  margin-top: var(--s-2);
  font-size: var(--t-xs);
  line-height: 1.5;
  color: var(--pewter);
}

.cat h3 { font-size: var(--t-2xl); margin-top: var(--s-3); }
.cat > div > p { margin-top: var(--s-4); color: var(--fg-muted); max-width: 52ch; }

.specs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-5);
  padding: 0;
  list-style: none;
}
.specs li {
  padding: var(--s-2) var(--s-3);
  background: var(--newsprint);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--ink-soft);
  white-space: nowrap;
}
.specs li b { color: var(--brick); font-weight: 500; }
.cat .link { margin-top: var(--s-5); }

/* ---------- 20. TABLE (paper stocks) ---------- */
.tablewrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--paper-pure);
  -webkit-overflow-scrolling: touch;
}
table { width: 100%; border-collapse: collapse; min-width: 620px; }
thead th {
  position: sticky; top: 0;
  background: var(--ink);
  color: #fff;
  text-align: left;
  padding: var(--s-4) var(--s-5);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}
tbody td {
  padding: var(--s-4) var(--s-5);
  border-top: 1px solid var(--border);
  font-size: var(--t-sm);
  vertical-align: top;
}
tbody tr { transition: background-color var(--d-fast) var(--e-out); }
tbody tr:hover { background: var(--newsprint); }
tbody td:first-child { font-weight: 600; }
td.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--brick);
}

/* ---------- 21. TIMELINE ---------- */
.tl { position: relative; padding-left: var(--s-7); }
.tl::before {
  content: "";
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--border);
}
.tl::after {
  content: "";
  position: absolute;
  left: 7px; top: 8px;
  width: 1px; height: 100%;
  background: var(--coral);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.6s var(--e-out);
}
.tl.is-revealed::after { transform: scaleY(1); }

.tl__item { position: relative; padding-bottom: var(--s-7); }
.tl__item:last-child { padding-bottom: 0; }
.tl__item::before {
  content: "";
  position: absolute;
  left: calc(var(--s-7) * -1 + 2px);
  top: 10px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--brick);
  z-index: 1;
}
.tl__item:last-child::before { background: var(--coral-cta); border-color: var(--coral-cta); }
.tl__yr {
  font-family: var(--font-mono);
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--coral-text);
}
.tl__item h3 { margin-top: var(--s-2); font-size: var(--t-lg); }
.tl__item p { margin-top: var(--s-3); color: var(--fg-muted); max-width: 56ch; font-size: var(--t-sm); }

/* ---------- 22. FORM ---------- */
.form { display: grid; gap: var(--s-5); }
.field { display: grid; gap: var(--s-2); }
.field > label {
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--ink);
}
.field .req { color: var(--brick); }
.field .hint {
  font-size: var(--t-xs);
  color: var(--pewter);
  line-height: 1.5;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: var(--s-3) var(--s-4);
  background: var(--paper-pure);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: var(--t-base);
  color: var(--ink);
  transition: border-color var(--d-fast) var(--e-out), box-shadow var(--d-fast) var(--e-out);
  appearance: none;
}
.field textarea { min-height: 120px; padding-top: var(--s-3); resize: vertical; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237C736A' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--s-4) center;
  background-size: 18px;
  padding-right: var(--s-8);
  cursor: pointer;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brick);
  box-shadow: 0 0 0 3px rgba(163,43,34,.12);
}
.field input:user-invalid,
.field select:user-invalid {
  border-color: #C0392B;
}
.field .err {
  display: none;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--t-xs);
  font-weight: 500;
  color: #A32B22;
}
.field .err svg { width: 14px; height: 14px; flex: none; }
.field.has-err .err { display: flex; }
.field.has-err input,
.field.has-err select { border-color: #C0392B; }

/* Radio cards */
.radios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: var(--s-3);
}
.radio {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 52px;
  padding: var(--s-3) var(--s-4);
  background: var(--paper-pure);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: var(--t-sm);
  font-weight: 500;
  transition: border-color var(--d-fast) var(--e-out), background-color var(--d-fast) var(--e-out);
}
.radio input {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.radio__dot {
  width: 18px; height: 18px;
  flex: none;
  border: 1.5px solid var(--rule);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: border-color var(--d-fast) var(--e-out);
}
.radio__dot::after {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brick);
  transform: scale(0);
  transition: transform var(--d-fast) var(--e-press);
}
.radio:hover { border-color: var(--pewter); }
.radio:has(input:checked) { border-color: var(--brick); background: rgba(163,43,34,.04); }
.radio:has(input:checked) .radio__dot { border-color: var(--brick); }
.radio:has(input:checked) .radio__dot::after { transform: scale(1); }
.radio:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

.form__row { display: grid; gap: var(--s-5); }
@media (min-width: 700px) { .form__row { grid-template-columns: 1fr 1fr; } }

.form__status {
  display: none;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-4);
  border-radius: var(--r-sm);
  font-size: var(--t-sm);
  line-height: 1.5;
}
.form__status.is-on { display: flex; }
.form__status svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.form__status--err { background: #FBEAE7; color: #8C231B; border: 1px solid #E8BFB9; }
.form__status--ok  { background: #E8F5EC; color: #1B5E33; border: 1px solid #BFDFC9; }

.btn[aria-busy="true"] { pointer-events: none; opacity: .82; }
.btn__spin {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: none;
}
.btn[aria-busy="true"] .btn__spin { display: block; }
.btn[aria-busy="true"] .arw { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 23. SPLIT / PANELS ---------- */
.split { display: grid; gap: var(--s-8); }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; align-items: start; } }
@media (min-width: 900px) { .split--wide { grid-template-columns: 1.15fr .85fr; } }

.panel {
  padding: var(--s-6);
  background: var(--paper-pure);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.panel--brick {
  background: var(--brick);
  color: #fff;
  border-color: var(--brick-deep);
}
.panel--brick .eyebrow { color: rgba(255,255,255,.75); }
.panel--ink { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Numbered promise list */
.promises { list-style: none; padding: 0; display: grid; gap: var(--s-5); counter-reset: p; }
.promises li {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-5);
  align-items: start;
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--border);
  counter-increment: p;
}
.promises li:last-child { border-bottom: 0; padding-bottom: 0; }
.promises li::before {
  content: counter(p, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--coral-text);
  padding-top: 4px;
}
.promises b { display: block; font-size: var(--t-md); font-weight: 600; }
.promises p { margin-top: var(--s-2); font-size: var(--t-sm); color: var(--fg-muted); }

/* Country cards */
.country {
  display: flex;
  flex-direction: column;
  padding: var(--s-5);
  background: var(--paper-pure);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: transform var(--d-base) var(--e-out),
              box-shadow var(--d-base) var(--e-out),
              border-color var(--d-base) var(--e-out);
}
.country:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-2);
  border-color: var(--brick);
}
.country__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding-bottom: var(--s-3);
  border-bottom: 1px dashed var(--border);
}
.country__top h3 { font-size: var(--t-lg); }
.country__port {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--coral-text);
  text-align: right;
  flex: none;
}
.country p {
  margin-top: var(--s-4);
  font-size: var(--t-sm);
  color: var(--fg-muted);
  flex: 1;
}
.country__eta {
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--pewter);
}
.country__eta b { color: var(--brick); font-weight: 500; }

/* ---------- 24. GALLERY ---------- */
.gal {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  gap: var(--s-3);
}
.gal__cell {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--newsprint);
  border: 1px solid var(--border);
}
.gal__cell--wide { grid-column: span 2; aspect-ratio: 2/1; }
/* Mobile: fixed 2-up so the wide cell can't force uneven columns */
@media (max-width: 560px) {
  .gal { grid-template-columns: 1fr 1fr; }
  .gal__cell--wide { grid-column: 1 / -1; }
}
.gal__cell img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--e-out); }
.gal__cell:hover img { transform: scale(1.06); }

/* ---------- 25. MARATHI NOTE ---------- */
.marathi {
  font-family: var(--font-display);
  font-size: var(--t-lg);
  line-height: 1.75;
  color: var(--ink);
}
.devanagari { font-family: "Noto Serif Devanagari", var(--font-display), serif; }

/* ---------- 26. RESPONSIVE ---------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__cta { display: none; }
}
@media (min-width: 1081px) {
  .nav__drawer { display: none; }
}
@media (max-width: 860px) {
  .map__svg  { display: none; }
  .map__list { display: flex; }
  .map__tip  { display: none; }
}
@media (max-width: 640px) {
  .hero__cta .btn { width: 100%; }
  .quote blockquote { font-size: var(--t-xl); }
  .band__cta .btn { width: 100%; }
}

/* ---------- 27. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .reveal-line > span { transform: none !important; }
  .hero__sheen { display: none; }
  .strip__track { animation: none; }
  .map__port.is-live .halo { animation: none; opacity: 0; }
  .map__route { opacity: .34 !important; stroke-dashoffset: 0 !important; }
  .regbar i { transform: scaleX(1) !important; }
  .tl::after { transform: scaleY(1) !important; }
  .stat::before { transform: scaleY(1) !important; }
  .mark::after { transform: scaleX(1) !important; }
}

/* ---------- 28. PRINT (a printing company's site should print well) ---------- */
@media print {
  .nav, .band, .strip, .btn, .skip { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .hero, .phead, .section--dark, .section--brick { background: #fff !important; color: #000 !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
