/* Mining Yachts — style.css
   Single dark scheme. Tokens first, then base, layout, components, pages, print, reduced motion. */

:root {
  color-scheme: dark;

  /* palette seeds */
  --sea: #031A1F;
  --hull: #062A31;
  --hull-hi: #0B3841;
  --hull-top: #0E4A52;
  --foam: #7FE3D0;
  --white: #FFFFFF;
  --mist: #9FC4C4;
  --brass: #C9A24B;

  /* derived */
  --text: #E8F3F2;
  --keel: #021216;
  --field: #04222A;
  --edge: #6FA0A2;
  --warn: #FFB59E;
  --line: rgba(159, 196, 196, .22);
  --line-strong: rgba(159, 196, 196, .42);
  --brass-soft: rgba(201, 162, 75, .55);
  --foam-wash: rgba(127, 227, 208, .1);

  /* type */
  --font-ui: "Helvetica Neue", "HelveticaNeue-Light", Helvetica, "Segoe UI", Arial, sans-serif;
  --font-num: Menlo, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  /* spacing scale */
  --s-1: .25rem;
  --s-2: .5rem;
  --s-3: .75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2.25rem;
  --s-7: 3.5rem;
  --s-8: clamp(4rem, 9vw, 8.5rem);

  --gutter: clamp(16px, 4vw, 44px);
  --max: 1180px;
  --radius: 10px;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, .45), 0 10px 28px -10px rgba(0, 0, 0, .6);
  --shadow-2: 0 2px 4px rgba(0, 0, 0, .45), 0 24px 56px -16px rgba(0, 0, 0, .7);
  --inset: inset 0 1px 0 rgba(255, 255, 255, .07);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; background: var(--sea); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--sea);
  color: var(--text);
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
a { color: var(--foam); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--white); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; border-radius: 3px; }
main:focus { outline: none; }
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--foam); color: var(--sea); padding: .75rem 1.1rem; border-radius: 6px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.sr-note { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

/* ---------- typography ---------- */
.eyebrow {
  font-size: .8125rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500;
  color: var(--brass); display: flex; align-items: center; gap: .85em;
}
.eyebrow::before { content: ""; width: 2.25rem; height: 1px; background: var(--brass); flex: none; }
.mega {
  font-weight: 100; color: var(--white);
  font-size: clamp(3.4rem, 12.5vw, 11.5rem);
  line-height: .9; letter-spacing: -.04em;
}
.mega span { display: block; }
.mega--page { font-size: clamp(3.25rem, 10vw, 8rem); line-height: .95; margin-top: var(--s-3); }
.display {
  font-weight: 200; color: var(--white);
  font-size: clamp(2rem, 4.8vw, 3.75rem); line-height: 1.04; letter-spacing: -.025em; margin-top: var(--s-4);
}
h3 { font-weight: 300; font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.25; color: var(--white); letter-spacing: -.005em; }
.lede { font-weight: 300; font-size: clamp(1.1875rem, 1.9vw, 1.5rem); line-height: 1.5; color: var(--white); max-width: 36em; margin-top: var(--s-5); }
.lede--narrow { color: var(--mist); max-width: 34em; }
.prose p + p, .prose p + h3, .prose ul + h3, .prose ol + h3, .prose h3 + p, .prose h3 + ul, .prose h3 + ol, .prose p + ul, .prose ul + p { margin-top: var(--s-4); }
.prose h3 { margin-top: var(--s-6); }
.prose { max-width: 40rem; }
.fine { font-size: .875rem; color: var(--mist); line-height: 1.55; margin-top: var(--s-4); max-width: 46em; }
strong { font-weight: 600; color: var(--white); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--s-8); position: relative; }
.section--hull { background: linear-gradient(180deg, var(--hull) 0%, #05252b 100%); border-block: 1px solid var(--line); }
.section-head { margin-bottom: var(--s-7); }
main > section:last-child { padding-bottom: clamp(7rem, 12vw, 11rem); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(3, 26, 31, .9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 68px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--white); min-height: 44px; }
.brand:hover { color: var(--white); }
.brand__mark { width: 40px; height: 28px; color: var(--foam); flex: none; }
.brand__name { font-weight: 200; font-size: 1.375rem; letter-spacing: .01em; white-space: nowrap; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: clamp(2px, .8vw, 10px); }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: .4rem .9rem;
  color: var(--text); text-decoration: none; font-size: .9375rem; letter-spacing: .04em; position: relative;
}
.site-nav a::after {
  content: ""; position: absolute; left: .9rem; right: .9rem; bottom: 6px; height: 1px; background: var(--brass);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.site-nav a:hover { color: var(--white); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--white); font-weight: 500; }

.nav-toggle {
  display: none; align-items: center; gap: .6rem; min-height: 44px; padding: 0 1rem;
  background: transparent; border: 1px solid var(--edge); border-radius: 999px; color: var(--white);
}
.nav-toggle__bars, .nav-toggle__bars::before { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .3s var(--ease); }
.nav-toggle__bars::before { content: ""; position: absolute; top: 6px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(-6px) rotate(-90deg); top: 6px; }

@media (max-width: 859px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--sea); border-bottom: 1px solid var(--line-strong); padding: var(--s-2) var(--gutter) var(--s-4); box-shadow: 0 24px 40px rgba(0, 0, 0, .5); }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav a { width: 100%; min-height: 52px; font-size: 1.0625rem; border-bottom: 1px solid var(--line); }
  .js .site-nav a::after { display: none; }
  .js .site-nav a[aria-current="page"] { color: var(--foam); }
  .js .site-nav a[aria-current="page"]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); margin-right: .75rem; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: .75rem 1.6rem; border-radius: 999px; border: 1px solid transparent;
  font-size: 1rem; font-weight: 500; letter-spacing: .03em; text-decoration: none; text-align: center; line-height: 1.2;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.btn--primary { background: var(--foam); color: var(--sea); box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 10px 24px -10px rgba(127, 227, 208, .55); }
.btn--primary:hover { background: var(--white); color: var(--sea); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--foam); }
.btn--ghost:hover { background: rgba(127, 227, 208, .14); color: var(--white); transform: translateY(-1px); }
.btn--sm { min-height: 44px; padding: .5rem 1.15rem; font-size: .9375rem; }
.btn:active { transform: translateY(0); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.btn-row--center { justify-content: center; }
.btn-row--tight { margin-top: var(--s-5); }

/* ---------- panels, fields ---------- */
.panel {
  position: relative;
  background: linear-gradient(180deg, rgba(14, 74, 82, .28), rgba(6, 42, 49, .92));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 3vw, 36px);
  box-shadow: var(--inset), var(--shadow-1);
}
.panel::before { content: ""; position: absolute; top: -1px; left: 24px; width: 56px; height: 2px; background: var(--brass); }
.panel__head h2 { font-weight: 200; font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--white); margin-top: var(--s-2); letter-spacing: -.01em; }
.note { font-size: .9375rem; color: var(--mist); margin-top: var(--s-4); line-height: 1.55; }
.tag {
  display: inline-block; padding: .1rem .55rem; margin-right: .35rem; border: 1px solid var(--brass); border-radius: 4px;
  color: var(--brass); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
}
.field { margin-top: var(--s-5); }
.field label { display: block; font-size: .9375rem; font-weight: 500; color: var(--white); margin-bottom: var(--s-2); }
.unit { font-family: var(--font-num); font-weight: 400; font-size: .8125rem; color: var(--mist); margin-left: .35rem; letter-spacing: 0; }
input[type="text"], select, textarea {
  width: 100%; min-height: 48px; padding: .65rem .95rem;
  background: var(--field); color: var(--white);
  border: 1px solid var(--edge); border-radius: 6px;
  font-family: var(--font-num); font-size: 1rem; line-height: 1.3;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .35);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
textarea { font-family: var(--font-ui); line-height: 1.5; resize: vertical; min-height: 140px; }
select { font-family: var(--font-ui); appearance: none; -webkit-appearance: none; padding-right: 2.6rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--mist) 50%), linear-gradient(135deg, var(--mist) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
select option { background: var(--hull); color: var(--white); }
input::placeholder, textarea::placeholder { color: var(--mist); opacity: 1; }
input[type="text"]:hover, select:hover, textarea:hover { border-color: var(--foam); }
input[type="text"]:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; border-color: var(--foam); }
input[readonly] { background: #05303a; border-style: dashed; color: var(--foam); }
[aria-invalid="true"] { border-color: var(--warn) !important; box-shadow: inset 0 2px 6px rgba(0, 0, 0, .35), 0 0 0 1px var(--warn); }
.hint { font-size: .8125rem; color: var(--mist); margin-top: var(--s-2); line-height: 1.45; }
.err { font-size: .875rem; color: var(--warn); line-height: 1.45; }
.err:not(:empty) { margin-top: var(--s-2); }
.err:not(:empty)::before { content: "Check this: "; font-weight: 600; }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 var(--s-5); }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 var(--s-5); }
.chip {
  min-height: 44px; padding: .45rem 1.1rem; border-radius: 999px; background: var(--foam-wash); border: 1px solid var(--line-strong);
  color: var(--white); font-size: .9375rem; transition: background .2s var(--ease), border-color .2s var(--ease);
}
.chip:hover { border-color: var(--foam); background: rgba(127, 227, 208, .2); }
.chip[aria-pressed="true"] { background: var(--foam); color: var(--sea); border-color: var(--foam); font-weight: 600; }
.presets { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }
.callout {
  border-left: 3px solid var(--brass); background: rgba(201, 162, 75, .08); padding: var(--s-4) var(--s-5); border-radius: 0 8px 8px 0;
  color: var(--text); font-size: .9375rem; line-height: 1.55;
}
.callout--soft { margin-top: var(--s-5); }
.more { margin-top: var(--s-5); border-top: 1px solid var(--line); }
.more > summary { cursor: pointer; min-height: 52px; display: flex; align-items: center; color: var(--foam); font-weight: 500; list-style: none; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::before { content: "+"; display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: .7rem; border: 1px solid var(--foam); border-radius: 50%; font-family: var(--font-num); }
.more[open] > summary::before { content: "\2212"; }

/* tables */
.table-wrap { overflow-x: auto; border-radius: 6px; margin-top: var(--s-4); -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.data-table caption { text-align: left; color: var(--mist); font-size: .875rem; padding-bottom: var(--s-3); caption-side: top; }
.data-table th, .data-table td { text-align: left; padding: .75rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mist); font-weight: 500; border-bottom-color: var(--line-strong); white-space: nowrap; }
.data-table tbody th { font-weight: 500; color: var(--white); white-space: nowrap; }
.data-table--num td, .data-table--num thead th:not(:first-child) { font-family: var(--font-num); text-align: right; white-space: nowrap; }
.data-table--num tbody th { white-space: normal; }
.pos { color: var(--foam); }
.neg { color: var(--warn); }

/* lists */
.check { list-style: none; display: grid; gap: var(--s-3); margin-top: var(--s-5); }
.check li { position: relative; padding-left: 1.75rem; line-height: 1.55; }
.check li::before { content: ""; position: absolute; left: 0; top: .6em; width: .9rem; height: 1px; background: var(--brass); }
.check li::after { content: ""; position: absolute; left: 0; top: calc(.6em - 2px); width: 5px; height: 5px; background: var(--brass); transform: rotate(45deg); }
.check--tight { gap: var(--s-2); }

/* ---------- horizon hero ---------- */
.horizon {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--sea);
}
.horizon__sky {
  position: absolute; inset: 0 0 -20% 0; z-index: 0;
  background: linear-gradient(180deg, #031A1F 0%, #04222A 34%, #073039 50%, #0E4A52 58%);
  transform: translate3d(0, var(--py, 0px), 0);
}
.stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.stars circle { fill: #fff; opacity: .55; }
.stars .tw { animation: twinkle 5s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .2; } 50% { opacity: .85; } }

.horizon__sun {
  position: absolute; z-index: 1; left: 70%; top: 56%;
  width: clamp(180px, 26vw, 400px); aspect-ratio: 1;
  transform: translate3d(-50%, calc(-58% + var(--py, 0px)), 0);
  pointer-events: none;
}
.horizon__sun::before {
  content: ""; position: absolute; inset: -40%; border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 227, 208, .32) 0%, rgba(127, 227, 208, .12) 35%, rgba(127, 227, 208, 0) 65%);
}
.sun-core {
  position: absolute; inset: 20%; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #ffffff 0%, #d9fbf4 40%, #7FE3D0 100%);
  box-shadow: 0 0 60px 10px rgba(127, 227, 208, .35);
}
.horizon__sun--small { width: clamp(120px, 15vw, 220px); left: 80%; top: 68%; }

.horizon__yacht {
  position: absolute; z-index: 2; left: 18%; bottom: 41.5%; width: clamp(120px, 15vw, 230px);
  transform: translate3d(0, var(--py, 0px), 0); pointer-events: none;
}
.horizon__yacht .bob { animation: bob 8s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-.6deg); } 50% { transform: translateY(3px) rotate(.8deg); } }
.horizon__yacht svg { display: block; width: 100%; height: auto; }
.y-hull, .y-deck { fill: #02141A; stroke: rgba(127, 227, 208, .5); stroke-width: .8; }
.y-mast { stroke: rgba(127, 227, 208, .6); stroke-width: .8; fill: none; }
.y-lights rect { fill: var(--brass); opacity: .95; }

.waves { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.wave { position: absolute; left: 0; right: 0; overflow: hidden; transform: translate3d(0, var(--py, 0px), 0); }
.wave svg { display: block; width: 200%; height: 100%; animation: drift 70s linear infinite; }
.wave path { vector-effect: non-scaling-stroke; stroke: rgba(127, 227, 208, .34); stroke-width: 1.2; }
.wave--1 { top: 56%; bottom: -8%; } .wave--1 path { fill: #0E4A52; }
.wave--2 { top: 62%; bottom: -8%; } .wave--2 path { fill: #0B3F47; } .wave--2 svg { animation-duration: 55s; animation-direction: reverse; }
.wave--3 { top: 69%; bottom: -8%; } .wave--3 path { fill: #08343B; } .wave--3 svg { animation-duration: 48s; }
.wave--4 { top: 77%; bottom: -8%; } .wave--4 path { fill: #062A31; stroke: rgba(127, 227, 208, .2); } .wave--4 svg { animation-duration: 40s; animation-direction: reverse; }
.wave--5 { top: 86%; bottom: -8%; } .wave--5 path { fill: #031A1F; stroke: rgba(127, 227, 208, .12); } .wave--5 svg { animation-duration: 32s; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.horizon__copy { position: relative; z-index: 5; }
.horizon--home { min-height: 660px; min-height: clamp(660px, 100vh, 940px); min-height: clamp(660px, 100svh, 940px); display: flex; }
.horizon--home .horizon__copy { flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding-top: clamp(40px, 8vh, 96px); padding-bottom: clamp(56px, 9vh, 96px); }
.horizon--home .eyebrow { margin-bottom: var(--s-4); }
.horizon__lower { position: relative; max-width: 40rem; isolation: isolate; }
.horizon__lower::before {
  content: ""; position: absolute; inset: -36px -48px -36px -36px; z-index: -1;
  background: radial-gradient(ellipse at 30% 55%, rgba(3, 26, 31, .82) 0%, rgba(3, 26, 31, .55) 55%, rgba(3, 26, 31, 0) 80%);
}
.horizon__lower .lede { margin-top: 0; }
.scroll-cue {
  position: absolute; z-index: 6; right: var(--gutter); bottom: 26px; display: inline-flex; flex-direction: column; align-items: center; gap: .5rem;
  color: var(--white); text-decoration: none; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; min-height: 44px; padding: 4px 8px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
}
.scroll-cue svg { width: 12px; height: 18px; animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

.horizon--short { background: var(--sea); }
.horizon--short .horizon__sky { background: linear-gradient(180deg, #031A1F 0%, #04222A 45%, #073039 100%); inset: 0 0 -10% 0; }
.horizon--short .horizon__copy { padding-top: clamp(40px, 7vw, 84px); padding-bottom: clamp(150px, 16vw, 200px); }
.horizon--short .eyebrow { margin-bottom: 0; }
.horizon--short .lede { color: var(--text); max-width: 34em; }
.horizon--short .wave { top: auto; height: 130px; }
.horizon--short .wave--s1 { bottom: 66px; height: 120px; } .horizon--short .wave--s1 path { fill: #0B3F47; }
.horizon--short .wave--s2 { bottom: 30px; height: 110px; } .horizon--short .wave--s2 path { fill: #062A31; stroke: rgba(127, 227, 208, .22); } .horizon--short .wave--s2 svg { animation-duration: 52s; animation-direction: reverse; }
.horizon--short .wave--s3 { bottom: -4px; height: 96px; } .horizon--short .wave--s3 path { fill: #031A1F; stroke: rgba(127, 227, 208, .12); } .horizon--short .wave--s3 svg { animation-duration: 38s; }
.horizon--short .horizon__sun { top: 62%; }

/* ---------- footer ---------- */
.site-footer { position: relative; background: var(--keel); border-top: 0; color: var(--text); padding-top: clamp(3rem, 6vw, 5rem); margin-top: 0; }
.footer-tide { position: absolute; left: 0; right: 0; top: -47px; height: 48px; overflow: hidden; pointer-events: none; }
.footer-tide svg { display: block; width: 200%; height: 100%; animation: drift 80s linear infinite; }
.footer-tide path { fill: var(--keel); stroke: rgba(127, 227, 208, .3); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: var(--s-7); padding-bottom: var(--s-7); }
.footer-name { display: flex; align-items: center; gap: .7rem; color: var(--white); font-weight: 200; font-size: 1.5rem; margin-bottom: var(--s-4); }
.footer-name .brand__mark { color: var(--foam); }
.footer-brand p { max-width: 32em; color: var(--mist); font-size: .9375rem; }
.footer-brand p + p { margin-top: var(--s-3); }
.footer-honest { color: var(--text) !important; border-left: 2px solid var(--brass); padding-left: var(--s-3); }
.footer-h { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; color: var(--brass); margin-bottom: var(--s-3); }
.footer-nav ul { list-style: none; }
.footer-nav a, .footer-mail { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; }
.footer-nav a:hover, .footer-mail:hover { color: var(--foam); text-decoration: underline; }
.footer-mail { color: var(--foam); text-decoration: underline; font-size: 1.0625rem; }
.footer-fine { font-size: .8125rem; color: var(--mist); max-width: 30em; margin-top: var(--s-3); }

/* ---------- home ---------- */
.manifest__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.manifest__text { font-weight: 300; font-size: 1.1875rem; }
.manifest__text p:first-child::first-letter { font-weight: 200; font-size: 3.4em; float: left; line-height: .85; padding: .08em .12em 0 0; color: var(--brass); }

.fixed { padding-block: clamp(3.5rem, 7vw, 6rem); }
.constants { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); margin-top: var(--s-6); }
.constant { padding-top: var(--s-4); border-top: 1px solid var(--brass-soft); }
.constant dt { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--mist); margin-bottom: var(--s-3); }
.constant dd { display: flex; flex-direction: column; gap: .25rem; }
.constant .num { font-size: clamp(1.5rem, 2.8vw, 2.4rem); color: var(--white); font-weight: 300; line-height: 1.1; overflow-wrap: anywhere; }
.constant__note { color: var(--mist); font-size: .875rem; }

.stepper { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: stretch; }
.step-tabs { display: flex; flex-direction: column; border-left: 1px solid var(--line-strong); }
.step-tab {
  display: grid; grid-template-columns: 2.4rem 1fr; align-items: center; gap: .5rem; text-align: left;
  min-height: 56px; padding: .6rem 1rem; background: transparent; border: 0; border-left: 3px solid transparent; margin-left: -2px;
  color: var(--mist); transition: background .25s var(--ease), color .25s var(--ease);
}
.step-tab:hover { background: var(--foam-wash); color: var(--white); }
.step-tab[aria-selected="true"] { background: var(--foam-wash); color: var(--white); border-left-color: var(--brass); font-weight: 500; }
.step-num { font-family: var(--font-num); font-size: .875rem; color: var(--brass); }
.step-name { font-size: 1.0625rem; line-height: 1.3; }
.step-stage { position: relative; background: linear-gradient(180deg, rgba(14, 74, 82, .3), rgba(6, 42, 49, .95)); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 52px); box-shadow: var(--inset), var(--shadow-2); display: flex; flex-direction: column; }
.step-stage::before { content: ""; position: absolute; top: -1px; left: 28px; width: 64px; height: 2px; background: var(--brass); }
.step-panel { flex: 1; }
.step-panel:focus-visible { outline-offset: 6px; }
.step-kicker { font-family: var(--font-num); font-size: .8125rem; color: var(--brass); letter-spacing: .12em; text-transform: uppercase; }
.step-panel h3 { font-weight: 200; font-size: clamp(1.75rem, 3.4vw, 2.75rem); line-height: 1.08; margin: var(--s-3) 0 var(--s-5); letter-spacing: -.02em; }
.step-panel p:last-child { font-size: 1.125rem; font-weight: 300; max-width: 36em; line-height: 1.7; }
.step-controls { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.step-progress { height: 2px; background: var(--line); margin-top: var(--s-5); }
.step-progress span { display: block; height: 100%; width: calc(var(--n, 1) / 6 * 100%); background: var(--brass); transition: width .5s var(--ease); }
html:not(.js) .step-panel[hidden] { display: block !important; margin-bottom: var(--s-6); }

.passages { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.passage__link {
  position: relative; display: flex; flex-direction: column; height: 100%; padding: clamp(22px, 3vw, 36px); text-decoration: none; color: var(--text);
  background: linear-gradient(180deg, rgba(14, 74, 82, .3), rgba(3, 26, 31, .9)); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--inset), var(--shadow-1); transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.passage__link:hover { transform: translateY(-4px); border-color: var(--brass-soft); box-shadow: var(--inset), var(--shadow-2); color: var(--text); }
.passage__art { width: 120px; height: 60px; fill: none; stroke: var(--foam); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: var(--s-5); }
.passage__no { position: absolute; top: 20px; right: 24px; color: var(--brass); font-size: .875rem; }
.passage h3 { font-weight: 200; font-size: 1.875rem; margin-bottom: var(--s-3); }
.passage p { color: var(--text); font-weight: 300; flex: 1; }
.passage__go { margin-top: var(--s-5); color: var(--foam); font-weight: 500; display: inline-flex; align-items: center; gap: .6rem; }
.passage__go::after { content: ""; width: 28px; height: 1px; background: var(--foam); transition: width .3s var(--ease); }
.passage__link:hover .passage__go::after { width: 48px; }

.glossary__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.gloss { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-6); }
.gloss > div { padding: var(--s-4) 0 var(--s-5); border-top: 1px solid var(--line-strong); }
.gloss dt { font-weight: 500; color: var(--white); letter-spacing: .02em; margin-bottom: var(--s-2); }
.gloss dd { color: var(--mist); font-size: .9375rem; line-height: 1.6; }

.bearing-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); }
.bearing-list li { padding-top: var(--s-4); border-top: 1px solid var(--brass-soft); }
.bearing-list h3 { font-weight: 200; font-size: 1.75rem; margin-bottom: var(--s-3); }
.bearing-list p { color: var(--text); font-weight: 300; }

.closing { text-align: center; padding-block: var(--s-8); background: radial-gradient(ellipse at 50% 100%, rgba(14, 74, 82, .55), rgba(3, 26, 31, 0) 70%); }
.closing__inner { display: flex; flex-direction: column; align-items: center; }
.closing .display { margin-top: 0; font-size: clamp(2.25rem, 6vw, 4.75rem); font-weight: 100; }
.closing .lede { text-align: center; }

/* ---------- deck plan ---------- */
.sheet {
  position: relative; border: 1px solid var(--line-strong); border-radius: 6px; padding: clamp(14px, 2.4vw, 32px);
  background: linear-gradient(180deg, #04222A 0%, #062A31 100%); box-shadow: var(--inset), var(--shadow-2);
}
.sheet::before, .sheet::after { content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid var(--brass); pointer-events: none; }
.sheet::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.sheet::after { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
.sheet__titleblock { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; font-family: var(--font-num); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mist); padding: 0 var(--s-5) var(--s-3); border-bottom: 1px solid var(--brass-soft); margin-bottom: var(--s-4); }
.plan-wrap { position: relative; background: linear-gradient(180deg, rgba(3, 26, 31, 0) 0%, rgba(14, 74, 82, .22) 72%, rgba(3, 26, 31, 0) 72%); border-radius: 4px; }
.plan { display: block; width: 100%; height: auto; overflow: visible; }

.plan .sunart circle { fill: var(--brass); }
.plan .rays line { stroke: var(--brass); stroke-width: 2; stroke-linecap: round; }
.plan .sunfeed, .plan .powerline { fill: none; stroke: var(--brass); stroke-width: 2; stroke-dasharray: 3 7; stroke-linecap: round; }
.plan .hull { fill: url(#hullfill); stroke: var(--mist); stroke-width: 2; }
.plan .partitions line { stroke: rgba(159, 196, 196, .5); stroke-width: 1.5; stroke-dasharray: 5 5; }
.plan .stores rect { fill: rgba(159, 196, 196, .07); stroke: rgba(159, 196, 196, .4); stroke-width: 1; }
.plan .shaft line, .plan .shaft path { stroke: rgba(159, 196, 196, .6); stroke-width: 2; fill: none; }
.plan .zone { fill: transparent; stroke: transparent; stroke-width: 2; cursor: pointer; pointer-events: all; transition: fill .35s var(--ease), stroke .35s var(--ease); }
.plan .zone:hover { fill: rgba(127, 227, 208, .08); stroke: rgba(201, 162, 75, .6); stroke-dasharray: 6 6; }
.plan .zone.is-active { fill: rgba(127, 227, 208, .14); stroke: var(--brass); stroke-width: 2.5; stroke-dasharray: none; }
.plan[data-active] .deck-zone:not(.is-active) > :not(.zone) { opacity: .5; }
.plan .unit rect { fill: #062A31; stroke: rgba(127, 227, 208, .7); stroke-width: 1.2; }
.plan .unit circle { fill: none; stroke: rgba(127, 227, 208, .8); stroke-width: 1; }
.plan .unit .led { fill: var(--brass); stroke: none; }
.plan .blades line { stroke: var(--foam); stroke-width: 1.4; }
.plan .blades { transform-box: fill-box; transform-origin: center; animation: spin 2.4s linear infinite; }
.plan .vent { stroke: rgba(159, 196, 196, .6); stroke-width: 1; }
.plan .cable { stroke: var(--brass); stroke-width: 1.5; fill: none; stroke-dasharray: 2 4; }
.plan .coil { fill: none; stroke: var(--foam); stroke-width: 3; stroke-linecap: round; }
.plan .pipe { fill: none; stroke: rgba(159, 196, 196, .8); stroke-width: 3; }
.plan .air { fill: none; stroke: var(--mist); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.plan .fan-ring { fill: rgba(3, 26, 31, .6); stroke: var(--mist); stroke-width: 2; }
.plan .fan path { stroke: var(--foam); stroke-width: 6; stroke-linecap: round; fill: none; }
.plan .fan { transform-box: fill-box; transform-origin: center; animation: spin 3.2s linear infinite; }
.plan .fan-hub { fill: var(--brass); }
@keyframes spin { to { transform: rotate(360deg); } }
.plan .deckline { stroke: var(--brass); stroke-width: 3; fill: none; }
.plan .saloon { fill: #0B3841; stroke: var(--mist); stroke-width: 1.5; }
.plan .windows rect { fill: rgba(127, 227, 208, .3); }
.plan .canopy { fill: rgba(127, 227, 208, .18); stroke: var(--foam); stroke-width: 2; }
.plan .cells line { stroke: rgba(127, 227, 208, .7); stroke-width: 1; }
.plan .strut { stroke: var(--mist); stroke-width: 2; }
.plan .rail line { stroke: rgba(159, 196, 196, .8); stroke-width: 1.5; }
.plan .lounger { stroke: var(--mist); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.plan .glass { fill: rgba(127, 227, 208, .26); stroke: rgba(127, 227, 208, .7); stroke-width: 1.5; }
.plan .console rect { fill: #062A31; stroke: var(--mist); stroke-width: 1.2; }
.plan .console .screen { stroke: var(--foam); stroke-width: 1.5; fill: none; }
.plan .mast { stroke: var(--mist); stroke-width: 2.5; }
.plan .mast-top { fill: var(--brass); }
.plan .signal { fill: none; stroke: var(--foam); stroke-width: 1.8; stroke-linecap: round; opacity: .8; }
.plan .bowrail { fill: none; stroke: rgba(159, 196, 196, .8); stroke-width: 1.5; }
.plan .wl { stroke: var(--brass); stroke-width: 1.2; stroke-dasharray: 8 8; opacity: .8; }
.plan .sea--front { fill: url(#water); }
.plan .sea-line { fill: none; stroke: rgba(127, 227, 208, .55); stroke-width: 1.6; }
.plan .sea-line--2 { opacity: .5; } .plan .sea-line--3 { opacity: .3; }

.hotspot {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  width: 44px; height: 44px; padding: 0; background: none; border: 0; border-radius: 50%; color: var(--white); z-index: 2;
}
.hotspot__dot {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--sea); border: 2px solid var(--brass); color: var(--white); font-size: 1rem; font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .6), 0 0 0 4px rgba(3, 26, 31, .55);
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.hotspot__dot::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid var(--brass); opacity: 0; animation: ping 2.8s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.7); opacity: .8; } 100% { transform: scale(1.3); opacity: 0; } }
.hotspot:hover .hotspot__dot { transform: scale(1.1); border-color: var(--foam); }
.hotspot[aria-pressed="true"] .hotspot__dot { background: var(--foam); color: var(--sea); border-color: var(--white); }
.hotspot[aria-pressed="true"] .hotspot__dot::after { animation: none; opacity: 0; }
.hotspot__label {
  position: absolute; left: 54px; top: 50%; transform: translateY(-50%); white-space: nowrap; display: none;
  background: rgba(3, 26, 31, .92); border: 1px solid var(--line-strong); border-radius: 4px; padding: .25rem .65rem; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--white);
}
@media (min-width: 700px) { .hotspot__label { display: block; } }

.sheet__lower { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-5); margin-top: var(--s-5); align-items: stretch; }
.deck-list { display: flex; flex-direction: column; gap: var(--s-2); }
.deck-pick {
  display: grid; grid-template-columns: 2.4rem 1fr; align-items: center; gap: .5rem; min-height: 60px; text-align: left; padding: .5rem 1rem;
  background: rgba(3, 26, 31, .5); border: 1px solid var(--line); border-radius: 6px; color: var(--text);
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.deck-pick .num { color: var(--brass); font-size: .875rem; }
.deck-pick strong { display: block; font-weight: 500; }
.deck-pick em { display: block; font-style: normal; font-size: .875rem; color: var(--mist); }
.deck-pick:hover { border-color: var(--foam); }
.deck-pick[aria-pressed="true"] { background: var(--foam-wash); border-color: var(--brass); box-shadow: inset 4px 0 0 var(--brass); }
.deck-pick[aria-pressed="true"] strong::after { content: " \2014 selected"; font-weight: 400; color: var(--mist); font-size: .8125rem; }
.deck-panel { background: rgba(3, 26, 31, .55); border: 1px solid var(--line); border-radius: 6px; padding: clamp(18px, 3vw, 34px); min-height: 280px; }
.deck-panel h3 { font-weight: 200; font-size: clamp(1.75rem, 3.2vw, 2.5rem); margin: var(--s-2) 0 var(--s-3); letter-spacing: -.02em; }
.deck-panel__empty p { max-width: 34em; color: var(--text); }
.deck-panel__empty .btn { margin-top: var(--s-5); }
.deck-panel__lead { font-weight: 300; font-size: 1.1875rem; color: var(--white); max-width: 38em; }
.deck-panel .check { margin-top: var(--s-4); gap: var(--s-2); font-size: .9688rem; }
.deck-panel__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-3); margin-top: var(--s-5); }
.tour-controls { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.sheet__hint { padding: 0 var(--s-5); }

.log-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-7); }
.log-card { padding-top: var(--s-4); border-top: 1px solid var(--brass-soft); scroll-margin-top: 96px; }
.log-card:target { border-top-color: var(--foam); }
.log-card__no { color: var(--brass); font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; }
.log-card h3 { font-weight: 200; font-size: 2rem; margin: var(--s-2) 0 var(--s-4); }
.log-card__role { display: block; font-size: .9375rem; font-weight: 400; color: var(--mist); letter-spacing: .14em; text-transform: uppercase; margin-top: .25rem; }
.log-card p + p { margin-top: var(--s-3); color: var(--text); }
.log-card p { font-weight: 300; }
.log-card .btn { margin-top: var(--s-5); }

/* ---------- voyage ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-6); align-items: start; }
.instruments { padding-bottom: clamp(24px, 3vw, 40px); }
.readouts { display: grid; gap: var(--s-5); min-width: 0; }
.callout[role="status"] { border-left-color: var(--warn); background: rgba(255, 181, 158, .08); }
.hero-read { background: linear-gradient(135deg, rgba(14, 74, 82, .55), rgba(6, 42, 49, .96)); box-shadow: var(--inset), var(--shadow-2); }
.big { margin-top: var(--s-3); display: flex; flex-wrap: wrap; align-items: baseline; gap: .25em .6em; }
.big output { font-size: clamp(2rem, 5.6vw, 4rem); font-weight: 300; color: var(--white); line-height: 1.05; overflow-wrap: anywhere; letter-spacing: -.03em; }
.big__unit { color: var(--mist); font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; }
.hero-read__sub { margin-top: var(--s-3); color: var(--text); font-weight: 300; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.tile { background: rgba(6, 42, 49, .9); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-5); box-shadow: var(--inset), var(--shadow-1); min-width: 0; }
.tile__k { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mist); }
.tile__v { margin-top: var(--s-2); font-size: clamp(1.25rem, 2.6vw, 1.75rem); color: var(--white); overflow-wrap: anywhere; line-height: 1.2; }
.tile--net { border-color: var(--brass-soft); }
.tile--net.is-pos .tile__v { color: var(--foam); }
.tile--net.is-neg .tile__v { color: var(--warn); }
.chipline { margin-top: var(--s-3); }
.state { display: inline-block; padding: .2rem .7rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .8125rem; letter-spacing: .06em; color: var(--text); }
.is-pos .state { border-color: var(--foam); color: var(--foam); }
.is-neg .state { border-color: var(--warn); color: var(--warn); }
.tide-panel .eyebrow { margin-bottom: var(--s-4); }
.tide { display: flex; height: 32px; border-radius: 6px; overflow: hidden; border: 1px solid var(--edge); background: rgba(3, 26, 31, .8); }
.tide__cost { display: block; height: 100%; width: 0; background: repeating-linear-gradient(135deg, #C9A24B 0 6px, #8d7230 6px 12px); transition: width .5s var(--ease); }
.tide__net { display: block; height: 100%; width: 0; background: var(--foam); transition: width .5s var(--ease); }
.tide__label { margin-top: var(--s-3); font-size: .9375rem; color: var(--text); }
.bearings-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-6); }
.bearings-dl > div { padding: var(--s-3) 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.bearings-dl dt { font-size: .8125rem; color: var(--mist); }
.bearings-dl dd { font-size: 1.0625rem; color: var(--white); overflow-wrap: anywhere; }
.grid-table td { white-space: nowrap; }
.grid-table tbody th { font-family: var(--font-num); }
.grid-table td.is-base { background: rgba(201, 162, 75, .12); box-shadow: inset 0 0 0 1px var(--brass-soft); }

.method__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.formula { margin-top: var(--s-6); padding: var(--s-5); border: 1px solid var(--brass-soft); border-radius: var(--radius); background: rgba(3, 26, 31, .55); }
.formula > .num { font-size: clamp(.9375rem, 1.6vw, 1.1875rem); color: var(--white); line-height: 1.5; overflow-wrap: anywhere; }
.formula__key { margin-top: var(--s-4); font-size: .875rem; color: var(--mist); line-height: 1.9; }
.formula__key .num { color: var(--brass); }
.steps-list { margin: var(--s-4) 0 0; padding-left: 1.5rem; display: grid; gap: var(--s-3); }
.steps-list li::marker { color: var(--brass); font-family: var(--font-num); }

/* ---------- energy ---------- */
.instrument { background: linear-gradient(180deg, rgba(14, 74, 82, .26), rgba(6, 42, 49, .94)); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); box-shadow: var(--inset), var(--shadow-1); position: relative; min-width: 0; }
.instrument::before { content: ""; position: absolute; top: -1px; left: 24px; width: 56px; height: 2px; background: var(--brass); }
.instrument__head h2 { font-weight: 200; font-size: clamp(1.5rem, 2.6vw, 2.125rem); color: var(--white); margin-top: var(--s-2); letter-spacing: -.01em; }
.instrument__lede { margin-top: var(--s-3); color: var(--text); font-weight: 300; }
.instrument--wide { margin-bottom: var(--s-6); }
.instrument__body { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s-6); margin-top: var(--s-4); align-items: start; }
.instrument-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: var(--s-5); align-items: start; }
.ruler-block { margin-top: var(--s-6); padding: var(--s-5) 28px 0; border-top: 1px solid var(--line); }
.ruler-title { font-size: .9375rem; color: var(--text); }
.ruler { position: relative; height: 96px; margin-top: var(--s-4); }
.ruler__track { position: absolute; left: 0; right: 0; top: 46px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--foam) 0%, #b7c98a 55%, var(--brass) 100%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.ruler__ticks span { position: absolute; left: var(--p); top: 62px; transform: translateX(-50%); font-family: var(--font-num); font-size: .8125rem; color: var(--mist); padding-top: 12px; }
.ruler__ticks span::before { content: ""; position: absolute; top: 0; left: 50%; width: 1px; height: 8px; background: var(--mist); }
.ruler__ticks .t-first { transform: none; } .ruler__ticks .t-first::before { left: 0; }
.ruler__ticks .t-last { transform: translateX(-100%); } .ruler__ticks .t-last::before { left: 100%; }
.ruler__marker { position: absolute; left: var(--p); top: 2px; transform: translateX(-50%); transition: left .5s var(--ease); display: flex; flex-direction: column; align-items: center; }
.ruler__marker span { background: var(--brass); color: var(--sea); font-weight: 700; padding: .2rem .6rem; border-radius: 4px; font-size: .875rem; white-space: nowrap; }
.ruler__marker::after { content: ""; width: 2px; height: 28px; background: var(--brass); }
.solve { border: 0; padding: 0; margin: var(--s-5) 0 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.solve legend { font-size: .9375rem; font-weight: 500; color: var(--white); padding: 0; margin-bottom: var(--s-2); }
.radio { position: relative; display: inline-block; }
.radio input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.radio span { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem 1.1rem; border: 1px solid var(--edge); border-radius: 999px; color: var(--white); font-size: .9375rem; background: var(--field); }
.radio input:checked + span { background: var(--foam); color: var(--sea); border-color: var(--foam); font-weight: 600; }
.radio input:checked + span::before { content: "\2713"; margin-right: .45rem; }
.radio input:focus-visible + span { outline: 3px solid var(--white); outline-offset: 3px; }
.result { margin-top: var(--s-4); font-size: .9688rem; color: var(--text); min-height: 1.5em; }
.result strong { font-family: var(--font-num); color: var(--foam); font-weight: 400; }
.result.is-warn { color: var(--warn); }
.notes__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }

/* ---------- contact ---------- */
.radio__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.mail-big { margin-top: var(--s-5); font-weight: 100; font-size: clamp(1.625rem, 5.4vw, 3.75rem); line-height: 1.1; letter-spacing: -.03em; overflow-wrap: anywhere; }
.mail-big a { color: var(--white); text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 1px; text-underline-offset: .25em; }
.mail-big a:hover { color: var(--foam); }
.radio__note { margin-top: var(--s-5); color: var(--text); font-weight: 300; max-width: 30em; }
.compose .field:first-of-type { margin-top: var(--s-5); }
.draft { margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--line-strong); }
.draft__pre { margin: var(--s-3) 0 0; padding: var(--s-4); background: var(--field); border: 1px solid var(--line-strong); border-radius: 6px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .875rem; line-height: 1.55; color: var(--white); }
.draft__link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.faq__list details { border-top: 1px solid var(--line-strong); }
.faq__list details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq__list summary { cursor: pointer; list-style: none; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); font-size: 1.1875rem; font-weight: 300; color: var(--white); padding: .5rem 0; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; font-family: var(--font-num); color: var(--brass); font-size: 1.5rem; flex: none; }
.faq__list details[open] summary::after { content: "\2212"; }
.faq__list details p { padding: 0 0 var(--s-5); color: var(--text); font-weight: 300; max-width: 40em; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .calc { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .constants { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-5); }
  .passages { grid-template-columns: minmax(0, 1fr); }
  .bearing-list { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
  .instrument__body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 880px) {
  .manifest__grid, .stepper, .glossary__grid, .method__grid, .notes__grid, .radio__grid, .faq__grid, .sheet__lower { grid-template-columns: minmax(0, 1fr); }
  .log-grid { grid-template-columns: minmax(0, 1fr); }
  .gloss { grid-template-columns: minmax(0, 1fr); }
  .deck-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-tabs { flex-direction: row; flex-wrap: wrap; border-left: 0; gap: var(--s-2); }
  .step-tab { flex: 1 1 calc(50% - .5rem); border: 1px solid var(--line); border-radius: 6px; margin-left: 0; min-height: 56px; }
  .step-tab[aria-selected="true"] { border-color: var(--brass); box-shadow: inset 3px 0 0 var(--brass); }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .bearings-dl { grid-template-columns: minmax(0, 1fr); }
  .constants { grid-template-columns: minmax(0, 1fr); }
  .deck-list { grid-template-columns: minmax(0, 1fr); }
  .step-tab { flex-basis: 100%; }
  .scroll-cue { display: none; }
  .horizon__sun { left: 72%; }
  .horizon__yacht { left: 8%; }
  .brand__name { font-size: 1.1875rem; }
  .sheet__titleblock { padding-inline: var(--s-3); }
  .btn-row .btn { flex: 1 1 100%; }
  .btn-row--tight .btn { flex: 1 1 auto; }
  .deck-panel__foot .btn, .tour-controls .btn { flex: 1 1 auto; }
  .ruler-block { padding-inline: 20px; }
}
@media (min-width: 1500px) {
  :root { --max: 1280px; }
}

/* ---------- print ---------- */
@media print {
  :root { color-scheme: light; }
  html, body { background: #fff !important; color: #000 !important; font-size: 11pt; }
  *, *::before, *::after { color: #000 !important; text-shadow: none !important; box-shadow: none !important; animation: none !important; transition: none !important; }
  .site-header, .site-footer .footer-nav, .footer-tide, .skip-link, .btn-row, .presets, .waves, .horizon__sky, .horizon__sun, .horizon__yacht, .scroll-cue,
  .hotspot, .nav-toggle, .more > summary, .closing, #v-copy, #v-print, #v-reset { display: none !important; }
  .horizon { background: #fff !important; min-height: 0 !important; }
  .horizon__copy { padding: 0 0 12pt !important; }
  .mega, .mega--page { font-size: 28pt !important; color: #000 !important; }
  .panel, .tile, .instrument, .step-stage { background: #fff !important; border: 1px solid #444 !important; break-inside: avoid; }
  .section, .section--hull { padding-block: 12pt !important; background: #fff !important; border: 0 !important; }
  .calc { display: block !important; }
  .readouts, .instruments { margin-bottom: 12pt; }
  input, select, textarea { background: #fff !important; border: 1px solid #444 !important; }
  .more:not([open]) > :not(summary) { display: block !important; }
  .site-footer { background: #fff !important; padding-top: 12pt; }
  a { text-decoration: none; }
  .tide__cost { background: #888 !important; } .tide__net { background: #000 !important; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  [data-depth], .wave, .horizon__sun, .horizon__yacht, .horizon__sky { --py: 0px !important; }
  .wave svg, .footer-tide svg { transform: none !important; }
  .hotspot__dot::after { opacity: 0 !important; }
}
