/* ════════════════════════════════════════════════════════════════
   SF MARINA ALBANIA — "After the Tide"
   twilight-harbour editorial · v2 (Kim's revisions, Oct 2026)
   ════════════════════════════════════════════════════════════════ */

:root {
  /* night sea, twilight, aged brass */
  --color-night:    #050d18;
  --color-deep:     #0a1825;
  --color-midnight: #0f2438;
  --color-tide:     #16304a;
  --color-mist:     #5b8fa8;
  --color-mist-lt:  #7fb2c9;

  --color-brass:    #b89968;
  --color-brass-lt: #d4b88a;
  --color-brass-dk: #7a5a2a;
  --color-ember:    #d97c4a;
  --color-ember-dk: #b9582a;

  --color-bone:     #f5ede0;
  --color-pearl:    #ecf2f5;
  --color-paper:    #f3ebdb;

  /* signal flags (International Code of Signals) */
  --signal-yellow:  #e8b64a;
  --signal-blue:    #2a63c4;

  --ink:            var(--color-bone);
  --ink-soft:       rgba(245, 237, 224, 0.74);
  --ink-faint:      rgba(245, 237, 224, 0.46);
  --ink-paper:      #1a2540;
  --ink-paper-soft: rgba(26, 37, 64, 0.78);
  --ink-paper-faint:rgba(26, 37, 64, 0.52);

  --font-display:   'Fraunces', 'Times New Roman', serif;
  --font-body:      'Karla', system-ui, sans-serif;
  --font-mono:      'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --gutter:         clamp(1.25rem, 4vw, 3rem);
  --max-content:    1280px;

  --ease-out:       cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:    cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--color-night);
  overflow-x: hidden;
}

::selection { background: var(--color-brass); color: var(--color-night); }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

:focus-visible { outline: 2px solid var(--color-brass-lt); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 300;
  background: var(--color-bone); color: var(--color-night);
  padding: .7rem 1rem; font-weight: 600; transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* cinematic grain — monochrome noise, normal blending (no per-frame blend cost) */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ═══════════════ NAVIGATION ═══════════════ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem var(--gutter);
  transition: background .6s var(--ease-out), padding .4s var(--ease-out), border-color .6s;
  border-bottom: 1px solid transparent;
}
.nav--scrolled {
  background: rgba(5, 13, 24, 0.8);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  padding-top: 1rem; padding-bottom: 1rem;
  border-bottom-color: rgba(184, 153, 104, 0.12);
}
.nav__brand { display: flex; align-items: center; gap: .85rem; color: var(--color-brass-lt); transition: color .4s; }
.nav__brand:hover { color: var(--color-bone); }
.nav__mark { width: 28px; height: 28px; flex-shrink: 0; }
.nav__brand-text { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-display); }
.nav__brand-line-1 { font-size: .95rem; font-weight: 500; letter-spacing: .04em; color: var(--color-bone); }
.nav__brand-line-2 { font-size: .7rem; font-weight: 300; font-style: italic; letter-spacing: .18em; color: var(--color-brass-lt); text-transform: uppercase; margin-top: .18rem; }

.nav__menu { display: flex; gap: 2.1rem; align-items: center; }
.nav__menu a {
  font-size: .8rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-soft); position: relative; padding: .35rem 0; transition: color .3s;
}
.nav__menu a::after {
  content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 1px;
  background: var(--color-brass); transition: width .4s var(--ease-out), left .4s var(--ease-out);
}
.nav__menu a:hover, .nav__menu a.is-active { color: var(--color-bone); }
.nav__menu a:hover::after, .nav__menu a.is-active::after { width: 100%; left: 0; }
.nav__cta {
  color: var(--color-brass-lt) !important; border: 1px solid rgba(184, 153, 104, .4);
  padding: .6rem 1.2rem !important; transition: all .4s var(--ease-out) !important;
}
.nav__cta::after { display: none; }
.nav__cta:hover, .nav__cta.is-active { background: var(--color-brass); color: var(--color-night) !important; border-color: var(--color-brass); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: .7rem; margin-right: -.7rem; }
.nav__toggle span { display: block; width: 22px; height: 1.5px; background: var(--color-bone); transition: transform .35s var(--ease-out); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

/* ═══════════════ HERO (unchanged) ═══════════════ */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 680px; overflow: hidden; isolation: isolate; }
.hero__sky {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 80% 50% at 70% 70%, rgba(217, 124, 74, .18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 30% 100%, rgba(184, 153, 104, .12) 0%, transparent 70%),
    linear-gradient(180deg, #050d18 0%, #0a1530 30%, #1a1f3a 60%, #2a2540 85%, #3a2845 100%);
}
.hero__stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; opacity: 0; animation: fade-in 3s var(--ease-out) .4s forwards; }
.hero__mountains { position: absolute; bottom: 22%; left: 0; right: 0; width: 100%; height: 18vh; z-index: 3; opacity: .7; }
.hero__lighthouse { position: absolute; bottom: 30%; right: 8%; width: 4px; height: 60px; z-index: 4; }
.hero__lighthouse::before {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 6px; height: 60px;
  background: linear-gradient(to top, var(--color-bone) 0%, var(--color-bone) 70%, var(--color-brass) 70%, var(--color-brass) 100%);
}
.hero__lighthouse::after {
  content: ''; position: absolute; top: -4px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%;
  background: var(--color-brass-lt); box-shadow: 0 0 16px 4px var(--color-brass-lt); animation: lamp-pulse 2.5s ease-in-out infinite;
}
@keyframes lamp-pulse { 0%, 100% { opacity: .7; box-shadow: 0 0 12px 3px var(--color-brass-lt); } 50% { opacity: 1; box-shadow: 0 0 22px 6px var(--color-brass-lt); } }
.hero__beacon {
  position: absolute; bottom: 50px; left: 50%; transform-origin: bottom center; width: 600px; height: 600px; margin-left: -300px;
  background: conic-gradient(from 270deg, transparent 0deg, rgba(212, 184, 138, .18) 6deg, rgba(212, 184, 138, .32) 12deg, rgba(212, 184, 138, .18) 18deg, transparent 24deg, transparent 360deg);
  border-radius: 50%; mix-blend-mode: screen; animation: beacon-sweep 10s linear infinite; pointer-events: none;
}
.hero__beacon--2 { animation-delay: -5s; opacity: .6; }
@keyframes beacon-sweep { to { transform: rotate(360deg); } }
.hero__yacht-track { position: absolute; bottom: 28%; left: 0; right: 0; height: 200px; z-index: 4; pointer-events: none; }
.hero__yacht { position: absolute; bottom: 0; width: 110px; height: 92px; left: -120px; animation: yacht-drift 70s linear infinite; }
@keyframes yacht-drift { 0% { transform: translateX(0) translateY(0); } 50% { transform: translateX(50vw) translateY(-4px); } 100% { transform: translateX(calc(100vw + 130px)) translateY(0); } }
.waves { position: absolute; bottom: 0; left: 0; right: 0; height: 38%; z-index: 5; pointer-events: none; }
.wave { position: absolute; bottom: 0; left: 0; width: 200%; height: 100%; }
.wave svg { width: 100%; height: 100%; }
.wave--1 { height: 65%; bottom: 32%; opacity: .55; animation: wave-drift-slow 26s linear infinite; }
.wave--2 { height: 72%; bottom: 16%; opacity: .78; animation: wave-drift 20s linear infinite reverse; }
.wave--3 { height: 80%; bottom: 4%; opacity: .92; animation: wave-drift-fast 15s linear infinite; }
.wave--4 { height: 38%; bottom: 0; animation: wave-drift 12s linear infinite reverse; }
@keyframes wave-drift { to { transform: translateX(-50%); } }
@keyframes wave-drift-slow { from { transform: translateX(-25%); } to { transform: translateX(-75%); } }
@keyframes wave-drift-fast { from { transform: translateX(-10%); } to { transform: translateX(-60%); } }

.hero__content {
  position: absolute; inset: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 var(--gutter);
}
.hero__crest { width: 56px; height: 56px; margin-bottom: 1.8rem; color: var(--color-brass-lt); opacity: 0; animation: fade-in 1.4s var(--ease-out) .2s forwards; }
.hero__crest svg { width: 100%; height: 100%; animation: gentle-spin 60s linear infinite; }
@keyframes gentle-spin { to { transform: rotate(360deg); } }
.hero__eyebrow {
  font-size: .72rem; font-weight: 500; letter-spacing: .35em; text-transform: uppercase; color: var(--color-brass-lt);
  margin-bottom: 1.6rem; opacity: 0; animation: fade-up 1.2s var(--ease-out) .5s forwards;
}
.hero__eyebrow::before, .hero__eyebrow::after { content: ''; display: inline-block; width: 28px; height: 1px; background: var(--color-brass); vertical-align: middle; margin: 0 1rem; opacity: .6; }
.hero__title {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(3.5rem, 11vw, 9.5rem); line-height: .92;
  letter-spacing: -.025em; font-variation-settings: "opsz" 144, "SOFT" 30; margin-bottom: 1.5rem;
}
.reveal-line { display: block; overflow: hidden; }
.reveal-line span { display: inline-block; transform: translateY(110%); animation: reveal-up 1.4s var(--ease-out) forwards; }
.reveal-line:nth-child(1) span { animation-delay: .8s; }
.reveal-line:nth-child(2) span { animation-delay: 1s; }
.reveal-line--italic em { font-style: italic; font-weight: 300; color: var(--color-brass-lt); font-variation-settings: "opsz" 144, "SOFT" 100; }
@keyframes reveal-up { from { transform: translateY(110%); } to { transform: translateY(0); } }
.hero__tagline {
  font-family: var(--font-display); font-size: clamp(.95rem, 1.5vw, 1.15rem); font-weight: 300; letter-spacing: .32em;
  text-transform: uppercase; margin: .4rem 0 2.2rem;
}
.reveal-fade { opacity: 0; animation: fade-up 1.4s var(--ease-out) forwards; }
.hero__tagline .reveal-fade { animation-delay: 1.6s; }
.hero__lede {
  max-width: 580px; font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: clamp(1rem, 1.3vw, 1.12rem); line-height: 1.65; color: var(--ink-soft); margin-bottom: 3rem; animation-delay: 2s;
}
.hero__scroll {
  display: inline-flex; flex-direction: column; align-items: center; gap: .8rem; font-size: .72rem; font-weight: 500;
  letter-spacing: .32em; text-transform: uppercase; color: var(--color-brass-lt); transition: color .3s; animation-delay: 2.3s;
}
.hero__scroll svg { width: 18px; height: 18px; animation: scroll-bob 2.5s ease-in-out infinite; }
.hero__scroll:hover { color: var(--color-bone); }
@keyframes scroll-bob { 0%, 100% { transform: translateY(0); opacity: .6; } 50% { transform: translateY(6px); opacity: 1; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-in { to { opacity: 1; } }
.hero__chrome {
  position: absolute; bottom: 2.2rem; z-index: 10; display: flex; align-items: center; gap: .8rem; font-size: .7rem; font-weight: 500;
  letter-spacing: .22em; color: var(--color-brass-lt); opacity: 0; animation: fade-in 1.6s var(--ease-out) 2.6s forwards;
}
.hero__chrome--left { left: var(--gutter); }
.hero__chrome--right { right: var(--gutter); }
.hero__chrome span:first-child { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--color-bone); }
.hero__chrome-num { font-variant-numeric: tabular-nums; }

/* ═══════════════ SHARED ═══════════════ */
.section-header__num { font-family: var(--font-display); font-style: italic; font-size: 1rem; color: var(--color-brass); letter-spacing: .1em; margin-bottom: 1.6rem; }
.section-header__num--light { color: var(--color-brass-lt); }
.section-header__title {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.05;
  letter-spacing: -.02em; margin-bottom: 1.6rem; color: var(--color-bone); font-variation-settings: "opsz" 144, "SOFT" 30;
}
.section-header__title em { font-style: italic; font-weight: 300; color: var(--color-brass-lt); }
.section-header__desc { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: 1.1rem; line-height: 1.6; color: var(--ink-soft); max-width: 560px; }

.mono-label {
  font-family: var(--font-mono); font-size: .68rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
}

/* reveal-on-scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--rd, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ═══════════════ MANIFESTO ═══════════════ */
.manifesto {
  background: var(--color-deep); padding: clamp(7rem, 14vw, 11rem) var(--gutter);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.manifesto__ornament { width: 120px; height: 20px; margin-bottom: 2.5rem; color: var(--color-brass); }
.manifesto__label { font-family: var(--font-display); font-style: italic; font-size: .95rem; color: var(--color-brass-lt); margin-bottom: 2rem; letter-spacing: .04em; }
.manifesto__text {
  font-family: var(--font-display); font-weight: 300; font-size: clamp(1.6rem, 3.4vw, 2.7rem); line-height: 1.32;
  letter-spacing: -.012em; max-width: 900px; font-variation-settings: "opsz" 144, "SOFT" 50;
}
.manifesto__emph { display: block; color: var(--color-brass-lt); }
.manifesto__emph em { font-style: italic; font-weight: 400; }
.manifesto__sign { margin-top: 3.5rem; display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.manifesto__sign-name { font-family: var(--font-display); font-style: italic; font-size: 1.4rem; }
.manifesto__sign-role { font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-faint); }

/* ═══════════════ II. DISCIPLINES ═══════════════ */
.disciplines {
  background:
    radial-gradient(ellipse 70% 40% at 85% 10%, rgba(91, 143, 168, .08), transparent 70%),
    var(--color-night);
  padding: clamp(6rem, 12vw, 10rem) var(--gutter) clamp(5rem, 9vw, 8rem);
}
.disciplines .section-header { max-width: var(--max-content); margin: 0 auto clamp(3rem, 6vw, 5rem); }

/* ── core business ── */
.core {
  position: relative; max-width: var(--max-content); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.38fr); gap: clamp(1.8rem, 4vw, 4rem);
  padding: clamp(1.5rem, 3.2vw, 3.2rem);
  border: 1px solid rgba(184, 153, 104, .28);
  background: linear-gradient(140deg, rgba(26, 58, 92, .42) 0%, rgba(15, 36, 56, .55) 45%, rgba(10, 24, 37, .7) 100%);
  isolation: isolate;
}
.core::before {
  content: ''; position: absolute; top: -1px; left: -1px; width: 72px; height: 72px; z-index: -1;
  background: linear-gradient(135deg, var(--color-brass) 0%, transparent 52%); opacity: .55;
}
.core::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 50% 60% at 0% 0%, rgba(184, 153, 104, .1), transparent 70%);
}
.core__eyebrow { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.core__badge {
  font-family: var(--font-mono); font-size: .66rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  color: var(--color-night); background: var(--color-brass-lt); padding: .38rem .7rem .34rem;
}
.core__num { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--color-brass); letter-spacing: .08em; }
.core__title {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(2.1rem, 3.6vw, 3.1rem); line-height: 1.02;
  letter-spacing: -.02em; margin-bottom: 1.3rem; font-variation-settings: "opsz" 144, "SOFT" 30;
}
.core__title em { font-style: italic; font-weight: 300; color: var(--color-brass-lt); }
.core__lede { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: 1.12rem; line-height: 1.55; color: var(--color-bone); margin-bottom: 1rem; }
.core__body { font-size: .98rem; line-height: 1.65; color: var(--ink-soft); margin-bottom: 2rem; }
.core__steps-label {
  display: flex; align-items: center; gap: .9rem; margin-bottom: .8rem;
  font-family: var(--font-mono); font-size: .66rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--color-brass-lt);
}
.core__steps-label::after { content: ''; flex: 1; height: 1px; background: rgba(184, 153, 104, .22); }

.steps { position: relative; padding-left: 1.6rem; }
.steps::before { /* track */
  content: ''; position: absolute; left: .42rem; top: 1.05rem; bottom: 1.05rem; width: 1px;
  background: repeating-linear-gradient(to bottom, rgba(184, 153, 104, .45) 0 3px, transparent 3px 7px);
}
.steps::after { /* progress along the track */
  content: ''; position: absolute; left: .42rem; top: 1.05rem; width: 1px; height: calc((100% - 2.1rem) * var(--track, 0));
  background: var(--color-brass-lt); box-shadow: 0 0 8px rgba(212, 184, 138, .6); transition: height .7s var(--ease-out);
}
.step {
  position: relative; display: grid; grid-template-columns: 2.4rem 1fr; column-gap: .2rem; width: 100%;
  text-align: left; padding: .62rem 0; color: var(--ink-faint); transition: color .4s;
}
.step::before { /* waypoint */
  content: ''; position: absolute; left: -1.6rem; top: 1.02rem; width: 9px; height: 9px; margin-left: .23rem; border-radius: 50%;
  background: var(--color-deep); border: 1px solid rgba(184, 153, 104, .6); transition: all .4s var(--ease-out); z-index: 1;
}
.step__num { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; padding-top: .28rem; }
.step__name { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.3; letter-spacing: -.005em; }
.step__desc {
  grid-column: 2; font-size: .9rem; line-height: 1.55; color: var(--ink-soft);
  max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease-out), opacity .5s, margin .5s;
}
.step:hover { color: var(--ink-soft); }
.step[aria-pressed="true"] { color: var(--color-bone); }
.step[aria-pressed="true"] .step__name { color: var(--color-brass-lt); font-style: italic; }
.step[aria-pressed="true"] .step__desc { max-height: 6em; opacity: 1; margin-top: .35rem; }
.step[aria-pressed="true"]::before { background: var(--color-brass-lt); border-color: var(--color-brass-lt); box-shadow: 0 0 0 5px rgba(212, 184, 138, .14), 0 0 14px rgba(212, 184, 138, .7); }
.step.is-done::before { background: var(--color-brass); border-color: var(--color-brass); }

.core__controls { display: flex; align-items: center; gap: 1rem; margin-top: 1.4rem; }
.core__play {
  display: inline-flex; align-items: center; gap: .55rem; padding: .5rem .85rem .5rem .7rem;
  border: 1px solid rgba(184, 153, 104, .35); font-family: var(--font-mono); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--color-brass-lt); transition: background .3s, color .3s;
}
.core__play:hover { background: rgba(184, 153, 104, .12); color: var(--color-bone); }
.core__play svg { width: 14px; height: 14px; }
.core__play svg path { stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.core__play .i-play { display: none; fill: currentColor; stroke: none; }
.core__play[data-paused="true"] .i-play { display: block; }
.core__play[data-paused="true"] .i-pause { display: none; }
.core__bar { flex: 1; height: 1px; background: rgba(184, 153, 104, .2); position: relative; overflow: hidden; }
.core__bar span { position: absolute; inset: 0; background: var(--color-brass-lt); transform-origin: left; transform: scaleX(0); }

.core__figure { margin: 0; align-self: start; position: sticky; top: 96px; }
.core__sheet {
  position: relative; border: 1px solid rgba(184, 153, 104, .24); background: #091827; overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), inset 0 0 0 4px rgba(10, 24, 37, .9), inset 0 0 0 5px rgba(184, 153, 104, .12);
}
.core__sheet::after { /* corner registration marks */
  content: ''; position: absolute; inset: 8px; pointer-events: none;
  background:
    linear-gradient(var(--color-brass-lt), var(--color-brass-lt)) top left / 12px 1px no-repeat,
    linear-gradient(var(--color-brass-lt), var(--color-brass-lt)) top left / 1px 12px no-repeat,
    linear-gradient(var(--color-brass-lt), var(--color-brass-lt)) top right / 12px 1px no-repeat,
    linear-gradient(var(--color-brass-lt), var(--color-brass-lt)) top right / 1px 12px no-repeat,
    linear-gradient(var(--color-brass-lt), var(--color-brass-lt)) bottom left / 12px 1px no-repeat,
    linear-gradient(var(--color-brass-lt), var(--color-brass-lt)) bottom left / 1px 12px no-repeat,
    linear-gradient(var(--color-brass-lt), var(--color-brass-lt)) bottom right / 12px 1px no-repeat,
    linear-gradient(var(--color-brass-lt), var(--color-brass-lt)) bottom right / 1px 12px no-repeat;
  opacity: .5;
}
.core__live { display: none; }
.core__figure figcaption, .betally__figure figcaption, .origin__chart figcaption {
  margin-top: .9rem; font-family: var(--font-display); font-style: italic; font-size: .82rem; color: var(--ink-faint); letter-spacing: .02em;
}
.core__figure figcaption span, .origin__chart figcaption span { color: var(--color-brass-lt); font-weight: 500; margin-right: .35rem; }

/* ── the plan drawing ── */
.plan { width: 100%; height: auto; font-family: var(--font-mono); }
.plan__land { fill: #142a3d; stroke: rgba(245, 237, 224, .45); stroke-width: 1; }
.plan__quay { stroke: var(--color-bone); stroke-width: 2.2; stroke-opacity: .75; }
.plan__road { stroke: var(--color-bone); stroke-opacity: .14; stroke-dasharray: 6 6; fill: none; }
.plan__office rect, .plan__office path, .plan__cabinet rect { fill: rgba(10, 24, 37, .7); stroke: var(--color-brass-lt); stroke-opacity: .55; }
.plan__office path { fill: none; }
.plan__tiny { font-size: 7px; font-weight: 500; fill: var(--color-bone); fill-opacity: .55; letter-spacing: .1em; }
.plan__lamps circle { fill: var(--color-brass-lt); }
.plan__north circle { fill: none; stroke: var(--color-bone); stroke-opacity: .35; }
.plan__north path { fill: var(--color-brass-lt); }
.plan__scale rect { fill: var(--color-bone); fill-opacity: .7; }
.plan__scale rect.is-alt { fill: none; stroke: var(--color-bone); stroke-opacity: .7; }
.plan__titleblock rect { fill: #0a1825; stroke: var(--color-bone); stroke-opacity: .45; }
.plan__titleblock path { stroke: var(--color-bone); stroke-opacity: .3; }
.plan__tb-small { font-size: 7px; font-weight: 500; fill: var(--color-brass-lt); letter-spacing: .1em; }
.plan__tb-big { font-size: 12.5px; font-weight: 600; fill: var(--color-bone); letter-spacing: .06em; }
.plan__tb-faint { fill: var(--color-bone); fill-opacity: .4; font-size: 5.6px; }

.plan__layer { opacity: 0; transition: opacity .9s var(--ease-out); }
.plan__layer.is-on { opacity: 1; }

/* 1 · survey */
.plan__coverage { fill: none; stroke: var(--color-mist); stroke-opacity: .16; stroke-width: 34; stroke-linejoin: round; transition: opacity .8s; }
.plan--surveyed .plan__coverage { opacity: 0; }
.plan__isobath { fill: none; stroke: var(--color-mist-lt); stroke-opacity: .6; stroke-width: .9; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease-out), stroke-opacity .8s; }
.plan__layer.is-on .plan__isobath { stroke-dashoffset: 0; }
.plan--designed .plan__isobath { stroke-opacity: .26; }
.plan__depth { font-size: 8px; font-weight: 600; fill: var(--color-mist-lt); paint-order: stroke; stroke: #0d2236; stroke-width: 3px; transition: opacity .6s; }
.plan--designed .plan__depth { opacity: .45; }
.plan__sounding { font-size: 6.5px; fill: var(--color-pearl); fill-opacity: .5; opacity: 0; transition: opacity .5s; }
.plan__sounding.on { opacity: 1; }
.plan--designed .plan__sounding { opacity: 0 !important; }
.plan__surveyor { opacity: 0; transition: opacity .4s; }
.plan--s1 .plan__surveyor { opacity: 1; }
.plan__ping { stroke: var(--color-mist-lt); stroke-width: 2; stroke-opacity: .85; animation: ping .5s ease-in-out infinite alternate; }
@keyframes ping { from { stroke-opacity: .35; } to { stroke-opacity: .95; } }
.plan__sv-hull { fill: var(--color-bone); }

/* 2 · layout */
.plan__dash { fill: none; stroke: var(--color-brass-lt); stroke-width: 1; stroke-dasharray: 4 3; stroke-opacity: .85; }
.plan__dash--bold { stroke-width: 1.5; }
.plan__dash--chan { stroke-dasharray: 2 4; }
.plan__zone { stroke-opacity: .42; }
.plan__arrow { fill: none; stroke: var(--color-brass-lt); }
.plan__dim path { stroke: var(--color-bone); stroke-opacity: .7; stroke-width: .7; fill: none; }
.plan__dim text { font-size: 7.5px; font-weight: 500; fill: var(--color-bone); paint-order: stroke; stroke: #0d2236; stroke-width: 3px; letter-spacing: .06em; }
[data-layer="2"] > * { transition: opacity .6s; }
.plan--designed [data-layer="2"] { opacity: .32; }
.plan--built [data-layer="2"] .plan__zone, .plan--built [data-layer="2"] .plan__dash--chan, .plan--built [data-layer="2"] .plan__arrow { opacity: 0; }

/* 3 · design → 5 · built */
.plan__pontoon {
  fill: #e9dcc4; fill-opacity: 0; stroke: var(--color-brass-lt); stroke-width: .9;
  transition: fill-opacity .9s var(--ease-out) calc(var(--i, 0) * 40ms), stroke-opacity .6s;
}
.plan__bwunit { fill: #cbb994; }
.plan__bwunit.is-pending { stroke-dasharray: 3 2.4; }
.plan--built .plan__pontoon { fill-opacity: 1; }
.plan[data-arrived="true"] .plan__bwunit.is-pending, .plan--built .plan__bwunit.is-pending { stroke-dasharray: none; fill-opacity: 1; }
.plan__gangway { fill: var(--color-brass-lt); fill-opacity: .35; stroke: var(--color-brass-lt); stroke-width: .6; transition: fill-opacity .8s; }
.plan--built .plan__gangway { fill-opacity: 1; }
.plan__power { stroke: #ffcf7a; stroke-width: .8; stroke-dasharray: 1.5 2; fill: none; }
.plan__water { stroke: var(--color-mist-lt); stroke-width: .8; stroke-dasharray: 1.5 2; fill: none; }
.plan--built .plan__utils { opacity: .55; }
.plan__utils { transition: opacity .8s; }
.plan__pedestals circle { fill: #0a1825; stroke: var(--color-brass-lt); stroke-width: .6; }
.plan__layer[data-layer="3"]:not(.is-on) .plan__pontoon { fill-opacity: 0; }

/* 4 · delivery */
.plan__tugpath { fill: none; stroke: none; }
.plan__tow { opacity: 0; transition: opacity .5s; }
.plan--s4 .plan__tow { opacity: 1; }
.plan[data-arrived="true"] .plan__tow { opacity: 0; transition-delay: .9s; }
.plan__tug { fill: var(--color-ember); }
.plan__tug-cabin { fill: var(--color-bone); }
.plan__towline { stroke: var(--color-bone); stroke-width: .8; stroke-dasharray: 2 1.5; fill: none; }
.plan__bwunit.is-moving { fill-opacity: 1; }

/* 5 · installation */
.plan__anchors path { stroke: var(--color-bone); stroke-opacity: .5; stroke-width: .6; fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s var(--ease-out) calc(var(--i) * 70ms); }
.plan__anchors circle { fill: var(--color-brass-lt); opacity: 0; transition: opacity .5s calc(var(--i) * 70ms + .5s); }
.plan__layer.is-on .plan__anchors path { stroke-dashoffset: 0; }
.plan__layer.is-on .plan__anchors circle { opacity: 1; }
.plan__pile circle { fill: #0a1825; stroke: var(--color-bone); stroke-width: .9; transform-box: fill-box; transform-origin: center; transform: scale(2.4); opacity: 0; transition: transform .7s var(--ease-out) calc(var(--i) * 90ms), opacity .4s calc(var(--i) * 90ms); }
.plan__pile .plan__pile-core { fill: var(--color-brass-lt); stroke: none; }
.plan__layer.is-on .plan__pile circle { transform: scale(1); opacity: 1; }
.plan__flash { fill: none; stroke: var(--color-brass-lt); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.plan__layer.is-current .plan__flash { animation: flash 1.6s var(--ease-out) .2s both; }
@keyframes flash { from { opacity: .9; transform: scale(.4); } to { opacity: 0; transform: scale(2.2); } }

/* 6 · operation & maintenance */
.plan__hull { fill: var(--color-bone); stroke: var(--color-brass); stroke-width: .5; }
.plan__cabin { fill: #c3d2db; }
.plan__mast { fill: var(--color-brass); }
.plan__boom { stroke: var(--color-brass); stroke-width: .6; }
.plan__boat { opacity: 0; transition: opacity .6s var(--ease-out) calc(var(--i) * 28ms); }
.plan__layer.is-on .plan__boat { opacity: 1; }
.plan__glows circle { fill: url(#pGlow); opacity: 0; transition: opacity 1s calc(var(--i) * 30ms + .6s); }
.plan__layer.is-on .plan__glows circle { opacity: .75; animation: glow 3.2s ease-in-out calc(var(--i) * -170ms) infinite; }
@keyframes glow { 0%, 100% { opacity: .5; } 50% { opacity: .95; } }
.plan__waves path { fill: none; stroke: var(--color-pearl); stroke-opacity: .4; stroke-width: 1; }
.plan__layer.is-on .plan__waves path { animation: swell 4.6s ease-in-out var(--d) infinite; }
@keyframes swell { 0% { transform: translate(6px, -10px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(-4px, 12px); opacity: 0; } }
.plan__rib path { fill: var(--color-ember); }
.plan__rib .plan__wake { fill: none; stroke: var(--color-pearl); stroke-opacity: .5; }
.plan__rib { transform-box: fill-box; transform-origin: center; }
.plan__layer.is-on .plan__rib { animation: rib 16s ease-in-out infinite; }
@keyframes rib {
  0% { transform: translateX(0) scaleX(1); } 46% { transform: translateX(332px) scaleX(1); }
  50% { transform: translateX(332px) scaleX(-1); } 96% { transform: translateX(0) scaleX(-1); } 100% { transform: translateX(0) scaleX(1); }
}
.plan__ring { fill: none; stroke: var(--color-brass-lt); stroke-opacity: .6; transform-box: fill-box; transform-origin: center; }
.plan__layer.is-on .plan__ring { animation: ring 2.6s var(--ease-out) infinite; }
@keyframes ring { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.plan__flagpole { stroke: var(--color-bone); stroke-width: .6; }

/* ── supplementary ── */
.supp { max-width: var(--max-content); margin: clamp(3.5rem, 7vw, 5.5rem) auto 0; }
.supp__label {
  display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1.6rem;
  font-family: var(--font-mono); font-size: .68rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--color-brass-lt);
}
.supp__label::before { content: ''; width: 28px; height: 1px; background: var(--color-brass); }
.supp__label::after { content: ''; flex: 1; height: 1px; background: rgba(184, 153, 104, .18); }
.supp__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.card {
  position: relative; display: flex; flex-direction: column; padding: 2.2rem 1.9rem 1.9rem;
  background: linear-gradient(180deg, rgba(22, 48, 74, .38) 0%, rgba(10, 24, 37, .4) 100%);
  border: 1px solid rgba(184, 153, 104, .13); isolation: isolate; overflow: hidden;
  transition: transform .6s var(--ease-out), border-color .6s, background .6s;
}
.card::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .6s;
  background: radial-gradient(ellipse 60% 50% at var(--glow-x, 50%) var(--glow-y, 0%), rgba(184, 153, 104, .15), rgba(184, 153, 104, .04) 40%, transparent 70%);
}
.card:hover { transform: translateY(-4px); border-color: rgba(184, 153, 104, .34); background: linear-gradient(180deg, rgba(22, 48, 74, .62) 0%, rgba(10, 24, 37, .5) 100%); }
.card:hover::before { opacity: 1; }
.card__num { position: absolute; top: 1.5rem; right: 1.8rem; font-family: var(--font-display); font-style: italic; font-size: .9rem; color: var(--color-brass); letter-spacing: .08em; }
.card__icon { width: 46px; height: 46px; color: var(--color-brass-lt); margin-bottom: 1.6rem; }
.card__icon svg { width: 100%; height: 100%; overflow: visible; }
.card:hover .card__led { stroke: #7fe3b0; }
.card__led { transition: stroke .4s; }
.card__beam { stroke-dasharray: 3 3; animation: beam 2.4s linear infinite; }
@keyframes beam { to { stroke-dashoffset: -12; } }
.card__lift { transform-box: fill-box; transform-origin: center; }
.card:hover .card__lift { animation: lift 1.2s var(--ease-in-out) infinite alternate; }
@keyframes lift { to { transform: translateY(-4px); } }
.card__title { font-family: var(--font-display); font-weight: 400; font-size: 1.32rem; line-height: 1.22; letter-spacing: -.01em; margin-bottom: .9rem; font-variation-settings: "opsz" 144, "SOFT" 30; padding-right: 1.4rem; }
.card__body { font-size: .94rem; line-height: 1.65; color: var(--ink-soft); margin-bottom: 1.2rem; }
.card__note { font-family: var(--font-display); font-style: italic; font-size: .88rem; color: var(--color-brass-lt); margin: -.4rem 0 1.2rem; line-height: 1.45; }
.card__tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: auto; }
.card__tags li, .sail-card__tags li {
  font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--color-brass-lt);
  border: 1px solid rgba(184, 153, 104, .26); padding: .3rem .65rem; border-radius: 1.5em;
}
.card--betally { border-color: rgba(212, 184, 138, .32); background: linear-gradient(180deg, rgba(42, 58, 82, .5) 0%, rgba(10, 24, 37, .45) 100%); }
.card__ribbon {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  margin: 1.4rem -1.9rem -1.9rem; padding: .95rem 1.9rem;
  border-top: 1px solid rgba(212, 184, 138, .3); background: rgba(212, 184, 138, .1);
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--color-brass-lt);
  transition: background .4s, color .4s;
}
.card__ribbon:hover { background: var(--color-brass-lt); color: var(--color-night); }
.card__ribbon span { transition: transform .4s var(--ease-out); }
.card__ribbon:hover span { transform: translateX(4px); }

/* ═══════════════ BETALLY (light, Scandinavian) ═══════════════ */
.betally {
  position: relative; color: var(--ink-paper); overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(42, 99, 196, .07), transparent 70%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(184, 153, 104, .1), transparent 70%),
    linear-gradient(180deg, #eef2f4 0%, #e7edf0 100%);
  padding: clamp(5.5rem, 11vw, 9rem) var(--gutter);
}
.betally::before { /* top wave from the dark section */
  content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1440V22C1200 52 960 0 720 26S240 52 0 22Z' fill='%23050d18'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.betally__inner {
  position: relative; max-width: var(--max-content); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center;
}
.betally__eyebrow {
  font-family: var(--font-mono); font-size: .7rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--color-brass-dk); margin-bottom: 1.5rem;
}
.betally__eyebrow span { opacity: .5; margin: 0 .3rem; }
.betally__title {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(2.4rem, 5vw, 4.1rem); line-height: 1.02; letter-spacing: -.025em;
  margin-bottom: 1.6rem; color: var(--ink-paper); font-variation-settings: "opsz" 144, "SOFT" 30;
}
.betally__title em { font-style: italic; font-weight: 300; color: #8a6a35; }
.betally__word { position: relative; display: inline-block; }
.betally__word::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: .06em; height: .09em; background: var(--signal-blue);
  transform-origin: left; transform: scaleX(1); transition: transform .5s var(--ease-out);
}
.betally__word.is-swapping::after { transform: scaleX(0); }
.betally__lede { font-size: 1.04rem; line-height: 1.7; color: #3d4b62; max-width: 560px; margin-bottom: 2rem; }
.betally__flow { display: grid; gap: .1rem; margin-bottom: 2rem; border-top: 1px solid rgba(26, 37, 64, .12); }
.betally__flow li {
  display: grid; grid-template-columns: 2.6rem 6.4rem 1fr; gap: .6rem; align-items: baseline;
  padding: .85rem 0; border-bottom: 1px solid rgba(26, 37, 64, .12); font-size: .94rem; color: #3d4b62; line-height: 1.5;
}
.betally__flow-n { font-family: var(--font-mono); font-size: .7rem; color: var(--color-brass-dk); letter-spacing: .1em; }
.betally__flow strong { font-family: var(--font-display); font-weight: 500; font-size: 1.08rem; color: var(--ink-paper); }
.betally__stat { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 2.2rem; max-width: 520px; }
.betally__stat-num { font-family: var(--font-display); font-size: 3.2rem; line-height: 1; font-weight: 300; color: var(--signal-blue); letter-spacing: -.03em; }
.betally__stat-text { font-size: .9rem; line-height: 1.45; color: #3d4b62; }
.betally__stat-text small { display: block; margin-top: .3rem; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(26, 37, 64, .5); }
.betally__links { display: flex; flex-wrap: wrap; gap: .8rem; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .9rem 1.3rem;
  font-family: var(--font-mono); font-size: .68rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  transition: background .35s, color .35s, border-color .35s, transform .35s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn--ink { background: var(--ink-paper); color: var(--color-bone); border: 1px solid var(--ink-paper); }
.btn--ink:hover { background: #24345a; }
.btn--line { border: 1px solid rgba(26, 37, 64, .35); color: var(--ink-paper); }
.btn--line:hover { border-color: var(--ink-paper); background: rgba(26, 37, 64, .05); }

.betally__figure { margin: 0; position: relative; }
.betally__toggle {
  display: inline-flex; padding: 4px; margin-bottom: 1rem; border-radius: 999px;
  background: rgba(26, 37, 64, .07); border: 1px solid rgba(26, 37, 64, .1);
}
.betally__toggle button {
  padding: .55rem 1.1rem; border-radius: 999px; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(26, 37, 64, .7); transition: background .35s, color .35s, box-shadow .35s;
}
.betally__toggle button[aria-pressed="true"] { background: #fff; color: var(--ink-paper); box-shadow: 0 2px 8px rgba(26, 37, 64, .12); }
.betally__stage {
  position: relative; border-radius: 10px; overflow: hidden; background: #f4f7f8;
  border: 1px solid rgba(26, 37, 64, .1); box-shadow: 0 40px 70px -40px rgba(26, 37, 64, .45);
}
.bt { width: 100%; height: auto; }
.bt__scene { transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.betally[data-scene="marina"] .bt__scene--camp, .betally[data-scene="camp"] .bt__scene--marina { opacity: 0; transform: translateY(10px); pointer-events: none; }
.bt__ripples path { animation: rip 5s ease-in-out infinite alternate; }
.bt__ripples path:nth-child(2n) { animation-delay: -2.5s; }
@keyframes rip { to { transform: translateX(14px); } }
.bt__cable { fill: none; stroke: #1a2540; stroke-width: 3.4; stroke-linecap: round; }
.bt__cable--flow { stroke: #ffb46b; stroke-width: 1.8; stroke-dasharray: 2 16; opacity: 0; transition: opacity .4s; }
.bt__hose { fill: none; stroke: #5b8fa8; stroke-width: 4.6; stroke-linecap: round; }
.bt__hose--flow { stroke: #f2fbff; stroke-width: 1.6; stroke-dasharray: 1 10; opacity: 0; transition: opacity .4s; }
.betally.is-flowing .bt__cable--flow { opacity: 1; animation: flow 1.1s linear infinite; }
.betally.is-flowing .bt__hose--flow { opacity: 1; animation: flow-w 1.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -18; } }
@keyframes flow-w { to { stroke-dashoffset: -11; } }
.bt__led { color: #e8a23a; transition: color .5s; }
.betally.is-flowing .bt__led { color: #34c48a; }
.bt__lcd { font-family: var(--font-mono); font-size: 9px; font-weight: 600; fill: #7fe3b0; letter-spacing: .08em; }
.bt__lcd--sub { font-size: 6.5px; fill: #e8c06a; }
.betally.is-flowing .bt__lcd--sub { fill: #7fe3b0; }
.bt__signal path { opacity: 0; }
.betally.is-tapping .bt__signal path { animation: sig 1s ease-out both; }
.betally.is-tapping .bt__signal path:nth-child(2) { animation-delay: .15s; }
.betally.is-tapping .bt__signal path:nth-child(3) { animation-delay: .3s; }
@keyframes sig { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }

.meter {
  position: absolute; top: 5%; right: 4%; width: min(44%, 220px);
  background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(26, 37, 64, .1); border-radius: 10px; padding: .85rem .95rem .75rem;
  box-shadow: 0 18px 40px -22px rgba(26, 37, 64, .45); font-family: var(--font-mono); color: var(--ink-paper);
}
.meter__head { display: flex; align-items: center; gap: .45rem; font-size: .66rem; letter-spacing: .08em; margin-bottom: .55rem; }
.meter__dot { width: 7px; height: 7px; border-radius: 50%; background: #e8a23a; box-shadow: 0 0 0 3px rgba(232, 162, 58, .18); transition: background .5s, box-shadow .5s; }
.betally.is-flowing .meter__dot { background: #34c48a; box-shadow: 0 0 0 3px rgba(52, 196, 138, .2); }
.meter__live { margin-left: auto; font-size: .56rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(26, 37, 64, .5); }
.meter__row { display: grid; grid-template-columns: 3.6rem 1fr auto; align-items: baseline; gap: .4rem; padding: .22rem 0; border-top: 1px dashed rgba(26, 37, 64, .12); }
.meter__k { font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(26, 37, 64, .55); }
.meter__row b { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; text-align: right; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.meter__u { font-size: .62rem; color: rgba(26, 37, 64, .6); min-width: 1.8rem; }
.meter__foot { margin-top: .45rem; font-size: .55rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(26, 37, 64, .45); }

.betally__stage-wrap { position: relative; }
.seal { position: absolute; right: -18px; bottom: -18px; width: clamp(96px, 12vw, 132px); aspect-ratio: 1; z-index: 2; filter: drop-shadow(0 12px 18px rgba(26, 37, 64, .25)); }
.seal svg { width: 100%; height: 100%; overflow: visible; }
.seal__bg { fill: var(--ink-paper); }
.seal__rim { fill: none; stroke: var(--color-brass-lt); stroke-width: 1; opacity: .6; }
.seal__ring { transform-origin: 80px 80px; animation: gentle-spin 40s linear infinite; }
.seal__ring text { font-family: var(--font-mono); font-size: 10.4px; font-weight: 500; letter-spacing: .14em; fill: var(--color-brass-lt); }
.seal__big { font-family: var(--font-display); font-style: italic; font-size: 19px; fill: var(--color-bone); }
.seal__small { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .16em; text-transform: uppercase; fill: var(--color-brass-lt); }
.betally__figure figcaption { color: rgba(26, 37, 64, .55); }

/* ═══════════════ III. FOR SAILOR SOCIETY ═══════════════ */
.sailors {
  position: relative;
  background:
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(42, 99, 196, .1), transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(232, 182, 74, .06), transparent 70%),
    var(--color-midnight);
  padding: clamp(6rem, 12vw, 10rem) var(--gutter) clamp(5rem, 9vw, 7.5rem);
}
.sailors::before { /* wave from the light band above */
  content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1440V30C1180 4 960 56 720 30S220 8 0 34Z' fill='%23e7edf0'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.sailors__head {
  max-width: var(--max-content); margin: 0 auto clamp(3rem, 6vw, 5rem);
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(2rem, 6vw, 6rem); align-items: center;
}
.sailors__label { font-family: var(--font-mono); font-size: .7rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--signal-yellow); margin: -.6rem 0 1.2rem; }
.sailors__lede { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: 1.15rem; line-height: 1.65; color: var(--ink-soft); max-width: 580px; }
.sailors__mast { margin: 0; justify-self: center; width: 100%; max-width: 300px; }
.hoist { width: 100%; height: auto; overflow: visible; }
.hoist__truck { fill: var(--color-brass-lt); }
.hoist__halyard { stroke: var(--color-bone); stroke-opacity: .5; stroke-width: 1; fill: none; }
.hoist__toggle { stroke: var(--color-bone); stroke-opacity: .7; stroke-width: 1.2; }
.hoist__letter { font-family: var(--font-display); font-style: italic; font-size: 34px; fill: var(--color-bone); }
.hoist__name { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .18em; fill: var(--color-brass-lt); }
.hoist__flag { transition: transform 1.6s var(--ease-out) calc(var(--k) * .16s + .1s), opacity 1s calc(var(--k) * .16s); }
.js .sailors__mast:not(.is-hoisted) .hoist__flag { transform: translateY(380px); opacity: 0; }
.hoist__cloth { overflow: visible; transition: filter .5s; }
/* cloth: translate follows -cos, shear follows the slope (-sin) — sine-accurate easing */
.fs { animation: flutter 1.9s infinite; animation-delay: calc(var(--d) - 1.9s); }
.fk { animation: shear 1.9s infinite; animation-delay: calc(var(--d) - 1.9s); }
.fsh { fill: #000; opacity: .05; animation: shade 1.9s cubic-bezier(.37, 0, .63, 1) infinite; animation-delay: calc(var(--d) - 1.9s + .475s); }
@keyframes flutter {
  0%   { transform: translateY(calc(var(--a) * -1)); animation-timing-function: cubic-bezier(.37, 0, .63, 1); }
  50%  { transform: translateY(var(--a)); animation-timing-function: cubic-bezier(.37, 0, .63, 1); }
  100% { transform: translateY(calc(var(--a) * -1)); }
}
@keyframes shear {
  0%   { transform: skewY(0deg); animation-timing-function: cubic-bezier(.61, 1, .88, 1); }
  25%  { transform: skewY(calc(var(--k) * -1)); animation-timing-function: cubic-bezier(.12, 0, .39, 0); }
  50%  { transform: skewY(0deg); animation-timing-function: cubic-bezier(.61, 1, .88, 1); }
  75%  { transform: skewY(var(--k)); animation-timing-function: cubic-bezier(.12, 0, .39, 0); }
  100% { transform: skewY(0deg); }
}
@keyframes shade { 0%, 100% { opacity: .015; } 50% { opacity: .12; } }
.sailors__mast.is-paused .fs, .sailors__mast.is-paused .fk, .sailors__mast.is-paused .fsh { animation-play-state: paused; }
.sailors[data-hl] .hoist__flag { opacity: .45; transition: opacity .4s, transform 1.6s var(--ease-out); }
.sailors[data-hl="S"] .hoist__flag[data-flag="S"], .sailors[data-hl="A"] .hoist__flag[data-flag="A"],
.sailors[data-hl="I"] .hoist__flag[data-flag="I"], .sailors[data-hl="L"] .hoist__flag[data-flag="L"] { opacity: 1; }
.sailors__mast figcaption { margin-top: 1rem; text-align: center; font-family: var(--font-display); font-style: italic; font-size: .82rem; color: var(--ink-faint); line-height: 1.5; }
.sailors__mast figcaption b { font-style: normal; font-family: var(--font-mono); font-weight: 500; letter-spacing: .14em; color: var(--signal-yellow); }

.sailors__grid { max-width: var(--max-content); margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.sail-card {
  position: relative; display: flex; flex-direction: column; padding: 1.8rem 1.6rem 1.7rem;
  background: rgba(5, 13, 24, .35); border: 1px solid rgba(245, 237, 224, .08);
  transition: transform .5s var(--ease-out), border-color .5s, background .5s;
}
.sail-card::before { content: ''; position: absolute; top: -1px; left: -1px; right: -1px; height: 3px; background: var(--card-accent, var(--signal-yellow)); }
.sail-card[data-flag-card="S"] { --card-accent: linear-gradient(90deg, var(--color-bone) 0 33%, var(--signal-blue) 33% 66%, var(--color-bone) 66%); }
.sail-card[data-flag-card="A"] { --card-accent: linear-gradient(90deg, var(--color-bone) 0 50%, var(--signal-blue) 50%); }
.sail-card[data-flag-card="I"] { --card-accent: linear-gradient(90deg, var(--signal-yellow) 0 38%, #10151c 38% 62%, var(--signal-yellow) 62%); }
.sail-card[data-flag-card="L"] { --card-accent: linear-gradient(90deg, var(--signal-yellow) 0 50%, #10151c 50%); }
.sail-card:hover { transform: translateY(-4px); border-color: rgba(245, 237, 224, .2); background: rgba(5, 13, 24, .55); }
.sail-card__flag { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.5rem; }
.flag-mini { width: 42px; height: 28px; overflow: visible; transition: transform .5s var(--ease-out); }
.sail-card:hover .flag-mini { transform: rotate(-4deg) translateY(-2px); }
.sail-card__flag span { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); }
.sail-card__title { font-family: var(--font-display); font-weight: 400; font-size: 1.32rem; line-height: 1.2; margin-bottom: .8rem; font-variation-settings: "opsz" 144, "SOFT" 30; }
.sail-card__body { font-size: .93rem; line-height: 1.62; color: var(--ink-soft); margin-bottom: 1.3rem; }
.sail-card__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; }
.sail-card__tags li { color: var(--ink-soft); border-color: rgba(245, 237, 224, .16); }

/* ═══════════════ IV. FROM GOTHENBURG (paper chart) ═══════════════ */
.origin {
  position: relative; background: var(--color-paper); color: var(--ink-paper);
  padding: clamp(6rem, 12vw, 10rem) var(--gutter) clamp(5rem, 9vw, 7rem);
}
.origin::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 20% 30%, rgba(184, 153, 104, .06), transparent 50%),
    radial-gradient(circle at 85% 75%, rgba(26, 58, 92, .05), transparent 50%);
}
.origin::after { /* wave from the dark section above */
  content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 60px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1440V24C1210 54 980 2 720 28S250 50 0 20Z' fill='%230f2438'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.origin__inner {
  position: relative; max-width: var(--max-content); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center;
}
.origin__chart { margin: 0; }
.origin__frame {
  background: #f6efe2; padding: 7px; border: 1px solid rgba(26, 37, 64, .4);
  box-shadow: inset 0 0 0 5px #f6efe2, inset 0 0 0 6px rgba(26, 37, 64, .28), 0 30px 60px -36px rgba(26, 37, 64, .5);
}
.chart { width: 100%; height: auto; }
.chart__sea { fill: #f5eddd; }
.chart__grat path { stroke: var(--ink-paper); stroke-opacity: .11; stroke-width: 1; fill: none; }
.chart__gratlabels text { font-family: var(--font-mono); font-size: 13px; fill: rgba(26, 37, 64, .5); letter-spacing: .04em; }
.chart__shallows { fill: none; stroke: #7fa9bf; stroke-opacity: .26; stroke-width: 10; stroke-linejoin: round; }
.chart__land { fill: #e4d7ba; stroke: var(--ink-paper); stroke-opacity: .5; stroke-width: 1; fill-rule: evenodd; }
.chart__seanames text { font-family: var(--font-display); font-style: italic; font-size: 17px; fill: rgba(26, 37, 64, .5); letter-spacing: .08em; }
.chart__seanames text.big { font-size: 21px; letter-spacing: .14em; }
.chart__seanames text.sm { font-size: 15px; letter-spacing: .06em; }
.chart__lands text { font-family: var(--font-body); font-weight: 600; font-size: 12.5px; letter-spacing: .3em; fill: rgba(26, 37, 64, .38); }
.chart__plan { fill: none; stroke: var(--ink-paper); stroke-opacity: .32; stroke-width: 1.8; stroke-dasharray: .5 7; stroke-linecap: round; }
.chart__route { fill: none; stroke: var(--color-ember-dk); stroke-width: 3.2; stroke-dasharray: 10 6; stroke-linecap: round; }
.chart__reveal { fill: none; stroke: #fff; stroke-width: 16; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.chart__probe { fill: none; stroke: none; }
.chart__wp circle { fill: #f5eddd; stroke: var(--ink-paper); stroke-width: 1.6; transition: fill .5s, stroke .5s; }
.chart__wp text { font-family: var(--font-body); font-weight: 600; font-size: 15px; fill: var(--ink-paper); opacity: .4; transition: opacity .6s; paint-order: stroke; stroke: #f5eddd; stroke-width: 4px; }
.chart__wp.is-passed circle { fill: var(--color-ember-dk); stroke: var(--color-ember-dk); }
.chart__wp.is-passed text { opacity: 1; }
.chart__port-ring { fill: none; stroke: var(--ink-paper); stroke-width: 1.6; }
.chart__port-dot { fill: var(--ink-paper); }
.chart__port-name { font-family: var(--font-body); font-weight: 700; font-size: 18px; letter-spacing: .22em; fill: var(--ink-paper); paint-order: stroke; stroke: #f5eddd; stroke-width: 5px; }
.chart__port-sub { font-family: var(--font-display); font-style: italic; font-size: 16px; fill: var(--color-ember-dk); paint-order: stroke; stroke: #f5eddd; stroke-width: 5px; }
.chart__arrive { opacity: 0; transform-box: fill-box; transform-origin: center; }
.chart__port--end.is-arrived .chart__arrive { animation: arrive 2.6s var(--ease-out) infinite; }
@keyframes arrive { from { opacity: 1; transform: scale(.4); } to { opacity: 0; transform: scale(1.6); } }
.chart__ship-hull { fill: var(--color-ember-dk); stroke: #fff; stroke-width: 2.2; }
.chart__ship-deck { stroke: #fff; stroke-width: 1.6; }
.chart__rose circle { fill: none; stroke: var(--ink-paper); stroke-opacity: .4; }
.chart__rose .chart__rose-inner { stroke-opacity: .2; }
.chart__rose-tick { stroke: var(--ink-paper); stroke-opacity: .4; }
.chart__rose-n { fill: var(--color-ember-dk); }
.chart__rose-s { fill: var(--ink-paper); fill-opacity: .45; }
.chart__rose-label { font-family: var(--font-display); font-style: italic; font-size: 18px; fill: var(--ink-paper); }

.log {
  display: grid; grid-template-columns: auto auto 1fr auto; align-items: baseline; gap: 1.2rem;
  margin-top: 1rem; padding: .8rem 1rem; border: 1px solid rgba(26, 37, 64, .2); background: rgba(255, 255, 255, .35);
}
.log__k { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-paper-faint); }
.log__nm { font-family: var(--font-mono); font-size: .8rem; color: var(--ink-paper-soft); }
.log__nm b { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; color: var(--ink-paper); font-variant-numeric: tabular-nums; letter-spacing: -.01em; margin-right: .15rem; }
.log__pos { font-family: var(--font-display); font-style: italic; font-size: 1rem; color: var(--color-ember-dk); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log__day { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; color: var(--ink-paper-soft); white-space: nowrap; }
.log__day b { font-weight: 600; font-variant-numeric: tabular-nums; }
.origin__chart figcaption { color: var(--ink-paper-faint); }
.origin__chart figcaption span { color: var(--color-brass-dk); }

.origin__text .section-header__num { color: rgba(26, 37, 64, .5); }
.origin__title { color: var(--ink-paper); }
.origin__title em { color: #8a6a35; }
.origin__body { font-size: 1.06rem; line-height: 1.72; color: var(--ink-paper-soft); margin-bottom: 1.3rem; max-width: 560px; }
.origin__link {
  display: inline-flex; align-items: center; gap: .4rem; margin: .4rem 0 0;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-paper);
  border-bottom: 1px solid var(--color-brass); padding-bottom: .25rem; transition: color .3s, border-color .3s;
}
.origin__link:hover { color: var(--color-brass-dk); border-color: var(--ink-paper); }
.origin__creds { margin-top: 2.4rem; padding-top: 2rem; border-top: 1px solid rgba(26, 37, 64, .15); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 2rem; }
.origin__creds div { display: flex; flex-direction: column; gap: .35rem; }
.origin__creds dt { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-paper-faint); }
.origin__creds dd { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--ink-paper); }

.stats {
  position: relative; max-width: var(--max-content); margin: clamp(4rem, 8vw, 6rem) auto 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(26, 37, 64, .2);
}
.stat { padding: 2rem 1.6rem 0 0; display: flex; flex-direction: column; gap: .6rem; }
.stat + .stat { padding-left: 1.6rem; border-left: 1px solid rgba(26, 37, 64, .12); }
.stat__n { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -.03em; color: var(--ink-paper); font-variant-numeric: tabular-nums; }
.stat__l { font-size: .86rem; line-height: 1.45; color: var(--ink-paper-soft); max-width: 220px; }

/* ═══════════════ V. CONTACT ═══════════════ */
.contact { position: relative; overflow: hidden; background: var(--color-deep); padding: clamp(7rem, 14vw, 11rem) var(--gutter) clamp(4rem, 8vw, 7rem); }
.contact__waves { position: absolute; top: -1px; left: 0; right: 0; height: 80px; pointer-events: none; background: var(--color-paper); }
.contact__waves svg { width: 100%; height: 100%; }
.contact__inner { position: relative; max-width: var(--max-content); margin: 0 auto; text-align: center; }
.contact__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(3rem, 7vw, 5.5rem); line-height: .95; letter-spacing: -.025em; margin-bottom: 1.6rem; font-variation-settings: "opsz" 144, "SOFT" 40; }
.contact__title em { font-style: italic; font-weight: 300; color: var(--color-brass-lt); }
.contact__lede { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: 1.18rem; line-height: 1.55; color: var(--ink-soft); max-width: 580px; margin: 0 auto 4rem; }
.contact__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; max-width: 1060px; margin: 0 auto; }
.contact__card {
  position: relative; display: flex; flex-direction: column; gap: .8rem; min-height: 190px; padding: 2.3rem 1.8rem 1.8rem; text-align: left;
  background: rgba(22, 48, 74, .3); border: 1px solid rgba(184, 153, 104, .15); transition: all .5s var(--ease-out);
}
.contact__card:not(.contact__card--static):hover { background: rgba(22, 48, 74, .6); border-color: var(--color-brass); transform: translateY(-4px); }
.contact__card:not(.contact__card--static):hover .contact__card-arrow { transform: translateX(8px); color: var(--color-brass-lt); }
.contact__card-label { font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; color: var(--color-brass-lt); }
.contact__card-value { font-family: var(--font-display); font-size: clamp(1.12rem, 1.65vw, 1.36rem); line-height: 1.3; color: var(--color-bone); letter-spacing: -.01em; margin-top: auto; }
.contact__link::after { content: ''; position: absolute; inset: 0; } /* whole card clickable */
.contact__link:focus-visible { outline: none; }
.contact__card:focus-within { outline: 2px solid var(--color-brass-lt); outline-offset: 3px; }
.contact__copy {
  position: relative; padding: .35rem .6rem;
  font-family: var(--font-mono); font-size: .58rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-faint); border: 1px solid rgba(245, 237, 224, .16); transition: color .3s, border-color .3s, background .3s;
}
.contact__copy:hover { color: var(--color-night); background: var(--color-brass-lt); border-color: var(--color-brass-lt); }
.contact__card-foot { position: relative; z-index: 2; display: flex; justify-content: flex-end; margin-top: .2rem; }
.contact__card-foot--wa { justify-content: space-between; align-items: center; gap: .6rem; }
.contact__wa {
  display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .8rem .4rem .55rem; border-radius: 999px;
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--color-bone);
  border: 1px solid rgba(37, 211, 102, .45); background: rgba(37, 211, 102, .08);
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease-out);
}
.contact__wa svg { width: 16px; height: 16px; fill: #25d366; transition: fill .3s; }
.contact__wa:hover { background: #25d366; border-color: #25d366; color: #06210f; transform: translateY(-1px); }
.contact__wa:hover svg { fill: #06210f; }
.contact__card-arrow { position: absolute; top: 2rem; right: 1.8rem; width: 22px; height: 22px; color: var(--ink-faint); transition: transform .5s var(--ease-out), color .5s; }
.contact__card-arrow svg { width: 100%; height: 100%; }
.contact__card-coords { font-size: .75rem; letter-spacing: .16em; color: var(--color-brass-lt); font-variant-numeric: tabular-nums; }

/* ═══════════════ FOOTER ═══════════════ */
.footer { background: var(--color-night); padding: 3.5rem var(--gutter) 2.5rem; border-top: 1px solid rgba(184, 153, 104, .1); }
.footer__inner { max-width: var(--max-content); margin: 0 auto; display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; }
.footer__brand { display: flex; align-items: center; gap: .7rem; color: var(--color-brass-lt); font-family: var(--font-display); font-size: .95rem; letter-spacing: .02em; }
.footer__brand svg { width: 22px; height: 22px; }
.footer__shpk { font-style: italic; color: var(--ink-faint); font-size: .8rem; margin-left: .3rem; }
.footer__meta { font-size: .78rem; color: var(--ink-faint); letter-spacing: .03em; display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.4rem; }
.footer__meta a { color: var(--color-brass-lt); border-bottom: 1px solid rgba(184, 153, 104, .3); }
.footer__meta a:hover { color: var(--color-bone); }
.footer__colophon { font-family: var(--font-display); font-style: italic; font-size: .78rem; color: var(--ink-faint); text-align: right; line-height: 1.5; }
.footer__colophon em { color: var(--color-brass-lt); }

.toast {
  position: fixed; left: 50%; bottom: 1.6rem; z-index: 400; transform: translate(-50%, 140%);
  background: var(--color-bone); color: var(--color-night); padding: .7rem 1.1rem; font-family: var(--font-mono); font-size: .72rem;
  letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .5); pointer-events: none;
  opacity: 0; visibility: hidden; transition: transform .5s var(--ease-out), opacity .4s, visibility 0s .5s;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .5s var(--ease-out), opacity .3s, visibility 0s; }

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 1100px) {
  .core { grid-template-columns: 1fr; }
  .core__figure { order: -1; position: static; }
  .core__intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 2.5rem; align-items: start; }
  .core__eyebrow, .core__title, .core__lede, .core__body { grid-column: 1; }
  .core__steps-label, .steps, .core__controls { grid-column: 2; }
  .core__steps-label { grid-row: 1; }
  .steps { grid-row: 2 / span 3; }
  .core__controls { grid-row: 5; }
  .supp__grid { grid-template-columns: 1fr 1fr; }
  .supp__grid .card:last-child { grid-column: span 2; }
  .betally__inner { grid-template-columns: 1fr; }
  .betally__figure { max-width: 640px; }
  .sailors__grid { grid-template-columns: 1fr 1fr; }
  .origin__inner { grid-template-columns: 1fr; row-gap: 0; }
  .origin__text { display: contents; }
  .origin__text .section-header__num, .origin__title { order: -2; }
  .origin__chart { order: -1; max-width: 680px; margin: .4rem 0 2.8rem; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(26, 37, 64, .12); margin-top: 2rem; }
}

@media (max-width: 960px) {
  .nav__menu {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 360px); flex-direction: column; align-items: flex-start; justify-content: center;
    background: rgba(5, 13, 24, .98); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    padding: 4rem 2.5rem; gap: 1.4rem; transform: translateX(100%); transition: transform .5s var(--ease-out); visibility: hidden;
  }
  .nav--menu-open .nav__menu { transform: translateX(0); visibility: visible; }
  .nav__menu a { font-size: 1rem; }
  .nav__toggle { display: flex; z-index: 200; }
  .nav--menu-open { background: rgba(5, 13, 24, .95); }
  .nav__brand { position: relative; z-index: 201; }
  .sailors__head { grid-template-columns: 1fr; }
  .sailors__mast { max-width: 240px; }
  .contact__grid { grid-template-columns: 1fr; max-width: 560px; }
  .footer__inner { grid-template-columns: 1fr; text-align: center; gap: 1.4rem; }
  .footer__brand { justify-content: center; }
  .footer__colophon { text-align: center; }
  .hero__chrome { font-size: .62rem; }
  .hero__chrome span:first-child { font-size: .9rem; }
  .hero__lighthouse { right: 5%; }
  .hero__beacon { width: 400px; height: 400px; margin-left: -200px; }
}

@media (max-width: 720px) {
  .core__intro { display: contents; }
  .core { padding: 1.3rem 1.1rem 1.6rem; row-gap: 0; }
  .core__eyebrow { order: 1; } .core__title { order: 2; } .core__lede { order: 3; } .core__body { order: 4; margin-bottom: 1.6rem; }
  .core__figure { order: 5; margin-bottom: 1.4rem; }
  .core__steps-label { order: 6; } .steps { order: 7; } .core__controls { order: 8; }
  .core::before { width: 48px; height: 48px; }
  .steps { padding-left: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
  .steps::before, .steps::after { display: none; }
  .step { display: flex; flex-direction: column; gap: .1rem; padding: .6rem .6rem .55rem; border: 1px solid rgba(184, 153, 104, .2); background: rgba(5, 13, 24, .3); }
  .step::before { display: none; }
  .step[aria-pressed="true"] { border-color: var(--color-brass-lt); background: rgba(212, 184, 138, .1); }
  .step__name { font-size: .92rem; }
  .step__num { padding-top: 0; font-size: .64rem; }
  .step__desc { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; max-height: none; opacity: 1; margin: 0; }
  .core__live {
    display: block; min-height: 3.2em; margin-top: .9rem; font-size: .92rem; line-height: 1.5; color: var(--ink-soft);
  }
  .core__live b { font-family: var(--font-display); font-weight: 400; font-style: italic; color: var(--color-brass-lt); margin-right: .35rem; }
  .supp__grid { grid-template-columns: 1fr; }
  .supp__grid .card:last-child { grid-column: auto; }
  .card { padding: 1.9rem 1.5rem 1.6rem; }
  .card__ribbon { margin: 1.3rem -1.5rem -1.6rem; padding: .9rem 1.5rem; }
  .betally__flow li { grid-template-columns: 2rem 1fr; }
  .betally__flow li > span:last-child { grid-column: 2; }
  .betally__stat-num { font-size: 2.6rem; }
  .meter { width: 52%; padding: .6rem .7rem .55rem; }
  .meter__row b { font-size: 1.05rem; }
  .meter__row { grid-template-columns: 2.9rem 1fr auto; }
  .meter__foot { display: none; }
  .seal { width: 88px; right: -10px; bottom: -10px; }
  .sailors__grid { grid-template-columns: 1fr; }
  .sailors__mast { max-width: 196px; }
  .log { grid-template-columns: auto 1fr auto; gap: .5rem .9rem; }
  .log__k { display: none; }
  .log__pos { grid-column: 1 / -1; order: 3; }
  .chart__wp text, .chart__lands, .chart__gratlabels, .chart__seanames text:not(.big) { display: none; }
  .chart__seanames text.big { font-size: 34px; }
  .chart__port-name { font-size: 34px; }
  .chart__port-sub { font-size: 28px; }
  .chart__rose { display: none; }
  .chart__ship { transform-box: view-box; }
  .chart__route { stroke-width: 5; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding-right: .8rem; }
  .stat + .stat { padding-left: .9rem; }
  .stat__l { font-size: .8rem; }
  .origin__creds { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 540px) {
  body { font-size: 16px; }
  .hero__lede { font-size: .95rem; padding: 0 1rem; }
  .hero__tagline { font-size: .74rem; letter-spacing: .2em; }
  .hero__eyebrow { font-size: .6rem; letter-spacing: .22em; }
  .hero__eyebrow::before, .hero__eyebrow::after { width: 16px; margin: 0 .5rem; }
  .manifesto__text { font-size: 1.35rem; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .betally__toggle button { padding: .5rem .8rem; font-size: .6rem; }
  .nav__menu { width: 100vw; align-items: flex-start; padding: 6rem 2.2rem 3rem; gap: 1.6rem; }
  .nav__menu a { font-size: 1.05rem; }
  .footer__meta { flex-direction: column; gap: .3rem; }
}

/* ═══════════════ REDUCED MOTION ═══════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero__yacht, .hero__beacon, .wave, .hero__crest svg, .seal__ring, .fs, .fk, .fsh { animation: none !important; }
  .core__play, .core__bar { display: none; }
}
