/* ═══════════════════════════════════════════════════════════
   UFERZONE · CARTE MARINE — landing page styles
   Aesthetic: 19th-century sea-chart, Swiss restraint, editorial typography.
   Palette and rhythm mirror the native app (see app/src/styles/AppStyles.ts).
   ═══════════════════════════════════════════════════════════ */

:root,
:root[data-theme="light"] {
  --bg:                #F1E8D2;
  --surface:           #F7EFDB;
  --surface-elevated:  #FBF6E7;
  --surface-sunk:      #E8DCBE;
  --ink:               #15263A;
  --ink-muted:         #4D5A6B;
  --ink-subtle:        #8A8470;
  --ink-inverse:       #FBF6E7;
  --accent:            #143C5C;
  --accent-soft:       #5C93B8;
  --accent-ink:        #0A2438;
  --warm:              #B07C3E;
  --coral:             #B5412F;
  --coral-soft:        #EBD0C7;
  --divider:           #D8C9A7;
  --hairline:          #C9B98F;
  --water:             #A9C7DB;
  --uferzone-inner:    #E8BE8B;
  --uferzone-outer:    #F2DBA0;
  --primary-bg:        #143C5C;
  --primary-text:      #FBF6E7;

  --grain-opacity: 0.45;
  --grid-color: #1f3a52;
  --grid-opacity: 0.07;
  --vignette: rgba(125, 100, 60, 0.18);
}

:root[data-theme="dark"] {
  --bg:                #091621;
  --surface:           #10212F;
  --surface-elevated:  #172E40;
  --surface-sunk:      #050E16;
  --ink:               #ECE0C6;
  --ink-muted:         #A2ADBA;
  --ink-subtle:        #6A7686;
  --ink-inverse:       #091621;
  --accent:            #E5C394;
  --accent-soft:       #7FB1D1;
  --accent-ink:        #F4E3C0;
  --warm:              #D9A56B;
  --coral:             #E07A5F;
  --coral-soft:        #3A1F19;
  --divider:           #22384B;
  --hairline:          #2C4055;
  --water:             #1F3D52;
  --uferzone-inner:    #5A4128;
  --uferzone-outer:    #3D3621;
  --primary-bg:        #E5C394;
  --primary-text:      #091621;

  --grain-opacity: 0.28;
  --grid-color: #d9c79a;
  --grid-opacity: 0.05;
  --vignette: rgba(0, 0, 0, 0.45);
}

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

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

body {
  margin: 0;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "ss01", "cv09";
  transition: background-color 600ms ease, color 600ms ease;
  overflow-x: hidden;
  position: relative;
}

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

h1, h2, h3, h4 { font-weight: 400; margin: 0; letter-spacing: -0.01em; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 220ms ease;
}

button {
  font-family: inherit;
  cursor: pointer;
}

img, svg { display: block; max-width: 100%; }

/* ─── Atmosphere: paper grain + chart grid + edge graticule ── */
.paper {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: var(--grain-opacity);
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.2  0 0 0 0 0.18  0 0 0 0 0.12  0 0 0 0.55 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}
:root[data-theme="dark"] .paper { mix-blend-mode: screen; }

.paper::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, var(--vignette) 100%);
}

.chart-grid {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  color: var(--grid-color);
  opacity: var(--grid-opacity);
}

.graticule {
  position: fixed;
  top: 0; bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 5rem 0;
  pointer-events: none;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--ink-subtle);
  opacity: 0.7;
}
.graticule-left  { left: 14px; }
.graticule-right { right: 14px; align-items: flex-end; }
.graticule span { transform-origin: center; }
.graticule-left  span { writing-mode: vertical-rl; transform: rotate(180deg); }
.graticule-right span { writing-mode: vertical-rl; }
@media (max-width: 900px) { .graticule { display: none; } }

/* ─── Nav ──────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 1.1rem clamp(1.5rem, 4vw, 3rem);
  backdrop-filter: blur(8px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--hairline);
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  color: var(--ink);
}
.wordmark__rose { width: 22px; height: 22px; transform: translateY(4px); color: var(--accent); }
.wordmark__text {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.wordmark__sub {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  padding-left: 0.6rem;
  border-left: 1px solid var(--hairline);
}

.nav__links {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2.2rem);
  justify-content: center;
  font-family: "Manrope", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.nav__links a { position: relative; padding: 0.4rem 0; }
.nav__links a::after {
  content: "";
  position: absolute; left: 50%; bottom: -2px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 280ms ease, left 280ms ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; left: 0; }
.nav__primary { color: var(--accent) !important; }

.nav__tools {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.lang {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  color: var(--ink-subtle);
}
.lang button {
  background: none; border: none; padding: 0.2rem 0.1rem;
  color: var(--ink-subtle); letter-spacing: 0.12em;
  font-family: inherit; font-size: inherit;
  transition: color 200ms ease;
}
.lang button[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.lang button:hover { color: var(--ink); }

.theme {
  background: none;
  border: 1px solid var(--hairline);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink-muted);
  transition: color 240ms ease, border-color 240ms ease, transform 320ms ease;
}
.theme svg { width: 16px; height: 16px; }
.theme:hover { color: var(--ink); border-color: var(--accent); transform: rotate(15deg); }
.theme .theme__moon { display: none; }
:root[data-theme="dark"] .theme .theme__sun,
:root[data-theme="dark"] .theme .theme__rays { display: none; }
:root[data-theme="dark"] .theme .theme__moon { display: block; }

@media (max-width: 760px) {
  .nav { grid-template-columns: auto auto; row-gap: 0.75rem; }
  .nav__links { grid-column: 1 / -1; order: 3; justify-content: flex-start; flex-wrap: wrap; }
}

/* ─── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3rem, 8vh, 6rem) 1.5rem clamp(4rem, 10vh, 8rem);
}

.hero__coast {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%; height: 320px;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 920px;
  width: 100%;
  text-align: center;
}

.hero__eyebrow {
  display: flex; align-items: center; justify-content: center;
  gap: 1.2rem; margin-bottom: 2.5rem;
  animation: fade-in 900ms ease 100ms both;
}
.hero__eyebrow .rule {
  width: 90px; height: 1px;
  background: var(--hairline);
}
.eyebrow-text {
  font-family: "Manrope", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--warm);
}

.hero__title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: clamp(4rem, 14vw, 12rem);
  line-height: 0.94;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 0.5rem;
}
.hero__title span {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.3em);
  animation: letter-rise 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero__title span:nth-child(1) { animation-delay: 220ms; }
.hero__title span:nth-child(2) { animation-delay: 270ms; }
.hero__title span:nth-child(3) { animation-delay: 320ms; }
.hero__title span:nth-child(4) { animation-delay: 370ms; }
.hero__title span:nth-child(5) { animation-delay: 420ms; }
.hero__title span:nth-child(6) { animation-delay: 470ms; }
.hero__title span:nth-child(7) { animation-delay: 520ms; }
.hero__title span:nth-child(8) { animation-delay: 570ms; }

.hero__compass {
  display: inline-block;
  margin: 1.2rem 0 1.6rem;
  animation: compass-settle 1600ms cubic-bezier(0.16, 1, 0.3, 1) 700ms both;
}
.hero__compass svg { display: block; }
.hero__compass .needle {
  transform-origin: 100px 100px;
  animation: needle-drift 9s ease-in-out 2.5s infinite;
}

.hero__tagline {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  color: var(--ink-muted);
  max-width: 32ch;
  margin: 0 auto 0.55rem;
  line-height: 1.4;
  letter-spacing: 0.005em;
  animation: fade-up 900ms ease 1100ms both;
}
.hero__tagline em {
  color: var(--ink);
  font-style: italic;
  font-weight: 400;
}

.hero__subline {
  font-family: "Manrope", sans-serif;
  font-size: 0.86rem;
  color: var(--ink-subtle);
  max-width: 44ch;
  margin: 0 auto 2rem;
  letter-spacing: 0.04em;
  animation: fade-up 900ms ease 1250ms both;
}

.hero__readout {
  display: inline-flex; flex-wrap: wrap; justify-content: center;
  gap: 0.5rem 0.8rem; margin-bottom: 2.5rem;
  padding: 0.6rem 1.1rem;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--ink-subtle);
  animation: fade-up 900ms ease 1400ms both;
}
.hero__readout .dot { color: var(--warm); }

.hero__cta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem;
  animation: fade-up 900ms ease 1550ms both;
}

/* ─── Store buttons — engraved chart annotation style ──────── */
.store {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.4rem;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-family: "Manrope", sans-serif;
  position: relative;
  overflow: hidden;
  transition: transform 280ms ease, box-shadow 280ms ease, background-color 280ms ease;
  box-shadow: 0 1px 0 var(--surface-sunk), 0 8px 24px rgba(0,0,0,0.08);
  min-width: 200px;
}
.store::after {
  content: "";
  position: absolute; inset: 3px;
  border: 1px solid color-mix(in srgb, var(--bg) 18%, transparent);
  border-radius: 2px;
  pointer-events: none;
}
.store:hover { transform: translateY(-2px); box-shadow: 0 2px 0 var(--surface-sunk), 0 18px 32px rgba(0,0,0,0.14); }
.store svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.store__label { display: flex; flex-direction: column; text-align: left; line-height: 1.1; }
.store__small { font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.75; }
.store__large {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  margin-top: 0.1rem;
}

:root[data-theme="dark"] .store { background: var(--accent); color: var(--ink-inverse); border-color: var(--accent); }
:root[data-theme="dark"] .store::after { border-color: color-mix(in srgb, var(--ink-inverse) 22%, transparent); }

/* ─── Generic section heading ──────────────────────────────── */
.section__head {
  max-width: 920px;
  margin: 0 auto clamp(2.5rem, 6vh, 4rem);
  padding: 0 1.5rem;
  text-align: center;
}
.section__eyebrow {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--hairline);
}
.section__title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: clamp(2.25rem, 5.5vw, 4.25rem);
  line-height: 1.05;
  color: var(--ink);
  margin: 0 0 1.25rem;
  letter-spacing: -0.015em;
}
.section__title em { font-style: italic; color: var(--warm); font-weight: 300; }
.section__lede {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-style: italic;
  font-weight: 300;
  color: var(--ink-muted);
  max-width: 56ch;
  margin: 0 auto;
  line-height: 1.55;
}

/* ─── Measure section ─────────────────────────────────────── */
.measure {
  position: relative;
  z-index: 2;
  padding: clamp(4rem, 10vh, 8rem) clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid var(--hairline);
}

.measure__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .measure__grid { grid-template-columns: 1fr; }
}

/* Phone — pinned to chart with brass corner brackets */
.device {
  position: relative;
  margin: 0;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
  max-width: 380px;
}
.device__corners {
  position: absolute; inset: 0;
  pointer-events: none;
}
.device__corners span {
  position: absolute;
  width: 24px; height: 24px;
  border: 1px solid var(--warm);
  opacity: 0.6;
}
.device__corners span:nth-child(1) { top: 0; left: 0; border-right: none; border-bottom: none; }
.device__corners span:nth-child(2) { top: 0; right: 0; border-left: none; border-bottom: none; }
.device__corners span:nth-child(3) { bottom: 36px; left: 0; border-right: none; border-top: none; }
.device__corners span:nth-child(4) { bottom: 36px; right: 0; border-left: none; border-top: none; }

.device__frame {
  filter: drop-shadow(0 30px 60px rgba(20, 36, 58, 0.18));
  transform: rotate(-1.5deg);
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  justify-content: center;
}
.device:hover .device__frame { transform: rotate(0deg) translateY(-4px); }

.device__phone {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 320 / 660;
  background: var(--ink);
  border-radius: 50px;
  padding: 14px;
  box-shadow:
    0 0 0 1px var(--accent-ink),
    inset 0 0 0 1px color-mix(in srgb, var(--bg) 12%, transparent),
    inset 0 0 0 5px var(--accent-ink);
}

.device__notch {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 26px;
  background: #000;
  border-radius: 13px;
  z-index: 2;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.device__notch::after {
  content: "";
  position: absolute;
  top: 50%; right: 12px;
  width: 7px; height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: #0A0A0A;
  box-shadow: inset 0 0 0 1px #1a1a1a, inset 1px 1px 2px rgba(255,255,255,0.06);
}

.device__screen {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  object-fit: cover;
  background: var(--bg);
}

.device__glare {
  position: absolute;
  inset: 14px;
  border-radius: 36px;
  pointer-events: none;
  background:
    linear-gradient(135deg,
      rgba(255, 255, 255, 0.18) 0%,
      rgba(255, 255, 255, 0.04) 22%,
      rgba(255, 255, 255, 0) 45%,
      rgba(255, 255, 255, 0) 100%);
  mix-blend-mode: overlay;
  opacity: 0.65;
}
:root[data-theme="dark"] .device__glare { opacity: 0.35; }

.device__caption {
  margin-top: 1.4rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  text-align: center;
}

/* Feature list — chart legend entries */
.features { list-style: none; padding: 0; margin: 0; }
.feature {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.4rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
}
.feature:first-child { padding-top: 0; }
.feature:last-child { border-bottom: none; padding-bottom: 0; }
.feature__num {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  color: var(--warm);
  letter-spacing: 0.08em;
  border-right: 1px solid var(--hairline);
  padding-right: 1rem;
  text-align: right;
}
.feature h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 0.4rem;
  letter-spacing: -0.005em;
}
.feature p {
  font-family: "Manrope", sans-serif;
  font-size: 0.95rem;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.6;
  max-width: 42ch;
}

/* ─── Zones ───────────────────────────────────────────────── */
.zones {
  position: relative;
  z-index: 2;
  padding: clamp(4rem, 10vh, 8rem) clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid var(--hairline);
  background:
    linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--surface-sunk) 35%, transparent) 100%);
}

.zones__diagram {
  max-width: 1180px;
  margin: 0 auto 3rem;
  padding: 1.5rem;
  border: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--surface-elevated) 60%, transparent);
}
.zones__diagram svg { width: 100%; height: auto; }

.zones__notes {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.zones__notes p {
  font-family: "Manrope", sans-serif;
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.7;
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline);
}
.zones__notes strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
  letter-spacing: 0.005em;
}
@media (max-width: 900px) { .zones__notes { grid-template-columns: 1fr; } }

/* ─── Lakes ───────────────────────────────────────────────── */
.lakes {
  position: relative;
  z-index: 2;
  padding: clamp(4rem, 10vh, 8rem) clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid var(--hairline);
}

.lakes__plate {
  display: grid;
  grid-template-columns: 2.3fr 1fr;
  gap: 2rem;
  max-width: 1180px;
  margin: 0 auto;
  align-items: stretch;
}
.lakes__map {
  width: 100%;
  height: auto;
  padding: 1rem;
  border: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--surface-elevated) 65%, transparent);
}
.lakes__roster {
  padding: 1.6rem 1.4rem;
  border: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--surface-elevated) 60%, transparent);
}
.lakes__roster-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--warm);
  margin: 0 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--hairline);
}
.lakes__roster ol {
  list-style: none;
  margin: 0; padding: 0;
  counter-reset: lake;
  columns: 2;
  column-gap: 1.2rem;
}
.lakes__roster li {
  counter-increment: lake;
  font-family: "Cormorant Garamond", serif;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 0.35rem 0;
  border-bottom: 1px dotted var(--hairline);
  display: flex;
  break-inside: avoid;
}
.lakes__roster li::before {
  content: counter(lake, decimal-leading-zero);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  color: var(--warm);
  margin-right: 0.6rem;
  align-self: center;
  letter-spacing: 0.08em;
}
@media (max-width: 900px) {
  .lakes__plate { grid-template-columns: 1fr; }
  .lakes__roster ol { columns: 2; }
}

/* ─── Final CTA ───────────────────────────────────────────── */
.cta {
  position: relative;
  z-index: 2;
  padding: clamp(5rem, 12vh, 9rem) clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid var(--hairline);
  background:
    radial-gradient(ellipse at center top, color-mix(in srgb, var(--water) 22%, transparent) 0%, transparent 60%);
  text-align: center;
}
.cta__inner { max-width: 720px; margin: 0 auto; }
.cta__title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 1;
  color: var(--ink);
  margin: 1rem 0 1.4rem;
  letter-spacing: -0.02em;
}
.cta__lede {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-style: italic;
  color: var(--ink-muted);
  max-width: 48ch;
  margin: 0 auto 2.5rem;
}
.cta .hero__cta { animation: none; }

/* ─── Footer cartouche ────────────────────────────────────── */
.cartouche {
  position: relative;
  z-index: 2;
  padding: 4rem clamp(1.5rem, 4vw, 3rem) 5rem;
  border-top: 2px solid var(--ink);
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 14px,
      color-mix(in srgb, var(--hairline) 60%, transparent) 14px,
      color-mix(in srgb, var(--hairline) 60%, transparent) 15px
    );
}
.cartouche::before {
  content: "";
  position: absolute; top: -2px; left: 0; right: 0;
  height: 8px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.cartouche__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg);
  padding: 3rem 2rem;
  border: 1px solid var(--ink);
  position: relative;
}
.cartouche__inner::before,
.cartouche__inner::after {
  content: "";
  position: absolute; inset: 8px;
  border: 1px solid var(--hairline);
  pointer-events: none;
}
.cartouche__inner::after { inset: 14px; border-color: color-mix(in srgb, var(--hairline) 50%, transparent); }

.cartouche__deco {
  width: 200px; height: 50px;
  color: var(--warm);
  margin: 0 auto 1.2rem;
}
.cartouche__title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: 2.2rem;
  letter-spacing: 0.5em;
  margin-left: 0.5em; /* compensate for trailing letter-spacing */
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.cartouche__sub {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-muted);
  margin: 0;
}
.cartouche__rule {
  position: relative;
  display: inline-block;
  padding: 0.8rem 1.6rem;
  margin: 0.8rem 0 1.6rem;
}
.cartouche__rule::before,
.cartouche__rule::after {
  content: "";
  position: absolute; top: 50%;
  width: 40px; height: 1px;
  background: var(--hairline);
}
.cartouche__rule::before { right: 100%; }
.cartouche__rule::after  { left: 100%; }

.cartouche__links {
  font-family: "Manrope", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 1.6rem;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
}
.cartouche__links a:hover { color: var(--accent); }

.cartouche__meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin: 0;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ─── Reveal on scroll (set by JS via IntersectionObserver) ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 900ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Animations ──────────────────────────────────────────── */
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes letter-rise {
  from { opacity: 0; transform: translateY(0.5em); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes compass-settle {
  0%   { opacity: 0; transform: rotate(-35deg) scale(0.92); }
  60%  { opacity: 1; transform: rotate(6deg) scale(1.01); }
  100% { opacity: 1; transform: rotate(0deg) scale(1); }
}
@keyframes needle-drift {
  0%, 100% { transform: rotate(0deg); }
  40%      { transform: rotate(-3deg); }
  60%      { transform: rotate(2deg); }
}

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

/* ─── Small screens polish ────────────────────────────────── */
@media (max-width: 600px) {
  .nav { padding: 1rem 1.2rem; }
  .wordmark__sub { display: none; }
  .hero { min-height: 88vh; padding-top: 2rem; }
  .hero__readout { font-size: 0.6rem; gap: 0.4rem; }
  .feature { grid-template-columns: 44px 1fr; gap: 1rem; }
  .feature__num { padding-right: 0.7rem; }
  .cartouche__title { font-size: 1.5rem; letter-spacing: 0.35em; }
}
