/* ==========================================================
   Shipcontroller — concept redesign
   ========================================================== */

:root {
  /* Brand colours, sampled from the Shipcontroller logo */
  --navy: #244c68;        /* "CONTROLLER", inner S */
  --sea: #3a6fa2;         /* "SHIP", outer wave */
  --sea-tint: #9cbddc;    /* sea blue on dark grounds */

  /* Derived neutrals, same hue as the logo blues */
  --ink: #0f212e;
  --ink-2: #142c3d;
  --ink-3: #1b3a50;
  --paper: #f1f4f6;
  --paper-2: #e3e9ee;
  --white: #fafbfc;
  --text: #142634;
  --muted: #5a6b78;
  --muted-light: #93a7b6;
  --line: rgba(20, 38, 52, .13);
  --line-light: rgba(241, 244, 246, .15);

  /* Functional only: navigation lights in diagrams */
  --port: #b5452f;
  --stbd: #2e7a57;
  --lcd: #cfd5cf;
  --lcd-ink: #1b2422;

  --head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --sec: clamp(88px, 11vw, 160px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 400; }
p { margin: 0; }
::selection { background: var(--ink); color: var(--paper); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--sec) 0; scroll-margin-top: 72px; }

/* ---------- type ---------- */
.display {
  font-family: var(--head);
  font-weight: 500;
  font-stretch: 112%;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -.025em;
}
/* Two-tone headlines, after the two-tone wordmark */
.display em, h1 em { font-style: normal; color: var(--sea); }
.display.light em, .hero h1 em, .display-sec .display em, .dps .display em, .contact .display em { color: var(--sea-tint); }
.index, .eyebrow {
  font: 400 12px/1.4 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.index.light, .eyebrow.light { color: var(--muted-light); }
.light { color: var(--paper); }
.section-lede { max-width: 38em; color: var(--muted); margin-top: 28px; font-size: 18px; }
.section-lede.light { color: var(--muted-light); }
.section-head { display: grid; gap: 22px; margin-bottom: clamp(56px, 7vw, 96px); max-width: 860px; }
.section-head .section-lede { margin-top: 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  font: 400 14px/1 var(--sans);
  letter-spacing: .04em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.btn-solid { background: var(--paper); color: var(--ink); }
.btn-solid:hover { background: var(--white); }
.btn-ghost { color: var(--paper); border-color: var(--line-light); }
.btn-ghost:hover { border-color: var(--paper); }
.btn-line { color: var(--navy); border-color: var(--navy); padding: 11px 18px; font-size: 13px; }
.btn-line:hover { background: var(--navy); color: var(--paper); }

.link-arrow {
  display: inline-block;
  font-size: 14px; letter-spacing: .03em;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: border-color .25s;
}
.link-arrow::after { content: " →"; }
.link-arrow:hover { border-color: var(--sea); color: var(--sea); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(241, 244, 246, .94);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.wordmark {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none;
  font: 500 13px/1 var(--sans);
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--ink);
}
.wordmark img { height: 20px; width: auto; }
.site-footer .wordmark img { height: 18px; }
.wordmark.light { color: var(--paper); }
.nav { display: flex; gap: 34px; }
.nav a { text-decoration: none; font-size: 14px; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--ink); }
.header-end { display: flex; align-items: center; gap: 22px; }
.lang { font: 400 12px var(--mono); letter-spacing: .1em; color: var(--muted); }
.lang a { text-decoration: none; }
.lang a[aria-current] { color: var(--ink); }
.menu-toggle {
  display: none;
  background: none; border: 1px solid var(--ink); color: var(--ink);
  font: 400 13px var(--sans); padding: 9px 14px; cursor: pointer;
}
.mobile-nav { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.hero-content { padding-top: clamp(72px, 10vw, 136px); padding-bottom: clamp(48px, 6vw, 80px); }
.hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; flex-wrap: wrap; }
.hero-photo { margin: 0; max-width: 1920px; margin-inline: auto; }
.hero-photo img { width: 100%; aspect-ratio: 1920 / 600; min-height: 260px; object-fit: cover; object-position: 20% 50%; }
.hero h1 {
  font-family: var(--head);
  font-weight: 500;
  font-stretch: 115%;
  font-size: clamp(2.5rem, 6.4vw, 5.6rem);
  line-height: .98;
  letter-spacing: -.035em;
  margin: 22px 0 36px;
}
.hero-lede { max-width: 33em; font-size: clamp(16px, 1.4vw, 19px); color: #c9d0d4; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-foot {
  position: relative; width: 100%;
  display: flex; justify-content: space-between; gap: 16px;
  padding-top: 22px; padding-bottom: 26px;
  border-top: 1px solid var(--line-light);
  font: 400 11px var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted-light);
}

/* ---------- spec strip ---------- */
.specstrip { background: var(--ink); color: var(--paper); border-top: 1px solid var(--line-light); }
.specstrip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.specstrip-grid > div { padding: 40px 28px 44px 0; display: grid; gap: 10px; }
.specstrip-grid > div + div { padding-left: 28px; border-left: 1px solid var(--line-light); }
.spec-num {
  font-family: var(--head); font-weight: 400; font-stretch: 112%;
  font-size: clamp(1.8rem, 2.8vw, 2.4rem); line-height: 1;
  letter-spacing: -.02em;
}
.spec-num small { font-size: .5em; margin-left: 4px; color: var(--muted-light); }
.spec-lbl { font-size: 14px; color: var(--muted-light); max-width: 18em; line-height: 1.5; }

/* ---------- intro ---------- */
.intro-grid { display: grid; grid-template-columns: 220px 1fr; gap: 40px; }
.intro-grid .index { padding-top: 14px; }
.intro .display { max-width: 18em; }
.intro-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 48px; color: var(--muted); max-width: 900px; }
.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(72px, 9vw, 128px);
  border-top: 1px solid var(--line);
}
.pillars article { padding: 36px 36px 0 0; }
.pillars article + article { padding-left: 36px; border-left: 1px solid var(--line); }
.pillar-n { font: 400 12px var(--mono); letter-spacing: .14em; color: var(--sea); }
.pillars h3 { font: 500 semi-expanded 22px/1.25 var(--head); margin: 14px 0 12px; }
.pillars p { color: var(--muted); font-size: 16px; }

/* ---------- range ---------- */
.range { background: var(--white); border-top: 1px solid var(--line); }
.remotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.remote { padding: 48px 40px 52px 0; display: flex; flex-direction: column; }
.remote + .remote { padding-left: 40px; border-left: 1px solid var(--line); }
.remote-img {
  height: 380px;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper);
  margin-bottom: 36px;
}
.remote-img img { max-height: 320px; width: auto; filter: drop-shadow(0 18px 22px rgba(13,25,34,.18)); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.remote:hover .remote-img img { transform: translateY(-6px); }
.remote-tag { font: 400 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.remote h3 { font: 400 semi-expanded 2.25rem/1.1 var(--head); margin: 10px 0 16px; letter-spacing: -.01em; }
.remote > p:not(.remote-tag) { color: var(--muted); font-size: 16px; }
.remote-specs { margin: 28px 0 32px; border-top: 1px solid var(--line); flex: 1; }
.remote-specs div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.remote-specs dt { color: var(--muted); }
.remote-specs dd { margin: 0; text-align: right; }
.remote .link-arrow { align-self: flex-start; }

.compare { margin-top: 64px; border-top: 1px solid var(--ink); }
.compare summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0;
  font: 500 semi-expanded 1.35rem var(--head);
}
.compare summary::-webkit-details-marker { display: none; }
.compare summary::after { content: "+"; font: 300 26px var(--sans); transition: transform .3s; }
.compare[open] summary::after { transform: rotate(45deg); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.compare th, .compare td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: center; font-weight: 300; }
.compare thead th { font: 400 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.compare tbody th { text-align: left; padding-left: 0; }
.compare td { color: var(--ink); width: 15%; }

/* ---------- manoeuvres ---------- */
.manoeuvres { background: var(--paper); }
.man-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.man-text .display { margin-top: 22px; }
.man-tabs { margin-top: 44px; border-top: 1px solid var(--line); }
.man-tabs button {
  width: 100%;
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 18px 0;
  background: none; border: 0; border-bottom: 1px solid var(--line);
  text-align: left; cursor: pointer; color: var(--muted);
  font: inherit;
  transition: color .25s, padding .35s;
  position: relative;
}
.man-tabs button span { font: 500 semi-expanded 1.35rem var(--head); }
.man-tabs button small { font-size: 13px; text-align: right; }
.man-tabs button[aria-selected="true"] { color: var(--ink); padding-left: 22px; }
.man-tabs button[aria-selected="true"]::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 10px; height: 2px; background: var(--sea);
}
.man-tabs button:hover { color: var(--ink); }
.man-caption { margin-top: 26px; color: var(--muted); font-size: 15px; min-height: 3.4em; max-width: 34em; }

.man-figure { margin: 0; background: var(--white); border: 1px solid var(--line); color: var(--ink); }
.man-figure svg { width: 100%; height: auto; display: block; }
.m-grid { color: rgba(13,25,34,.06); }
.quay rect { fill: var(--paper-2); stroke: var(--line); }
.quay text { font: 400 10px var(--mono); letter-spacing: .3em; fill: var(--muted); text-anchor: middle; }
.hull { fill: var(--white); stroke: var(--ink); stroke-width: 1.2; }
.deck { fill: none; stroke: var(--ink); stroke-width: .6; opacity: .45; }
.cg { fill: var(--ink); }
.ghost { fill: none; stroke: var(--ink); stroke-width: .8; stroke-dasharray: 3 4; opacity: 0; }
.light-port { fill: var(--port); }
.light-stbd { fill: var(--stbd); }
.vec { color: var(--ink); opacity: 0; transition: opacity .4s; }
.vec line { stroke: var(--sea); stroke-width: 1.6; marker-end: url(#ah); }
.labels text { font: 400 10px var(--mono); letter-spacing: .16em; fill: var(--muted); }
.labels .lbl-motion { fill: var(--ink); font-size: 11px; }
.hull-g, .ghost { transform-box: view-box; transform-origin: 210px 270px; }

/* active vectors per manoeuvre (set via JS geometry, visibility here) */
[data-active="sway"] .v-port-eng,
[data-active="sway"] .v-stbd-eng,
[data-active="sway"] .v-bow,
[data-active="pivot"] .v-bow,
[data-active="pivot"] .v-stern,
[data-active="balance"] .v-bow,
[data-active="balance"] .v-stern,
[data-active="hold"] .v-bow,
[data-active="hold"] .v-stern { opacity: 1; }

[data-active] .ghost { opacity: .5; }
[data-active="sway"] .ghost { animation: sway 4.5s cubic-bezier(.45,0,.25,1) infinite; }
[data-active="balance"] .ghost { animation: sway 4.5s cubic-bezier(.45,0,.25,1) infinite; }
[data-active="pivot"] .ghost { animation: pivot 4.5s cubic-bezier(.45,0,.25,1) infinite; }
[data-active="hold"] .ghost { animation: hold 3s ease-in-out infinite; }
@keyframes sway { 0%, 15% { transform: translateX(0); opacity: 0; } 25% { opacity: .55; } 80%, 100% { transform: translateX(70px); opacity: 0; } }
@keyframes pivot { 0%, 15% { transform: rotate(0); opacity: 0; } 25% { opacity: .55; } 80%, 100% { transform: rotate(35deg); opacity: 0; } }
@keyframes hold { 0%, 100% { transform: translateX(0); opacity: 0; } 50% { transform: translateX(4px); opacity: .5; } }
.boat { transition: transform 1.1s cubic-bezier(.45,0,.25,1); }

.man-more {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(72px, 8vw, 112px);
  border-top: 1px solid var(--line);
}
.man-more > div { padding: 32px 32px 0 0; }
.man-more > div + div { padding-left: 32px; border-left: 1px solid var(--line); }
.man-more h4 { font: 500 semi-expanded 1.3rem var(--head); margin-bottom: 10px; }
.man-more p { color: var(--muted); font-size: 15px; }

/* ---------- LCD display section ---------- */
.display-sec { background: var(--ink-2); color: var(--paper); }
.display-sec .index { color: var(--muted-light); }
.display-sec .section-lede { color: var(--muted-light); }
.lcd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.lcd { margin: 0; }
.lcd-screen {
  aspect-ratio: 4 / 3;
  background: var(--lcd);
  color: var(--lcd-ink);
  padding: 7% 8%;
  font-family: var(--mono);
  display: flex; flex-direction: column;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.25), inset 0 2px 10px rgba(0,0,0,.18);
  outline: 10px solid #22313c;
  outline-offset: 0;
  margin: 10px;
  container-type: inline-size;
  overflow: hidden;
}
.lcd-title { font-size: 7.5cqi; font-weight: 500; letter-spacing: .04em; border-bottom: 2px solid var(--lcd-ink); padding-bottom: 2%; text-align: center; }
.lcd-big { font-size: 20cqi; font-weight: 500; line-height: 1; text-align: center; margin: auto 0; letter-spacing: -.02em; }
.lcd-big span { font-size: .6em; }
.lcd-split { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--lcd-ink); }
.lcd-split > div { display: flex; flex-direction: column; align-items: center; padding-top: 3%; }
.lcd-split > div + div { border-left: 2px solid var(--lcd-ink); }
.lcd-split b { font-weight: 500; font-size: 6.5cqi; }
.lcd-split strong { font-weight: 500; font-size: 12cqi; line-height: 1.1; }
.lcd-split i { font-style: normal; font-size: 5.5cqi; }
.lcd-split strong.inv { background: var(--lcd-ink); color: var(--lcd); padding: 0 6%; font-size: 9cqi; margin-top: 4%; }
.lcd-graph { flex: 1; width: 100%; margin-top: 4%; fill: none; stroke: var(--lcd-ink); stroke-width: 1.4; }
.lcd-alert { align-self: center; background: var(--lcd-ink); color: var(--lcd); font-size: 7cqi; padding: 1% 5%; margin-top: -26%; margin-bottom: 14%; animation: blink 1.6s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.lcd-list { list-style: none; margin: 3% 0 0; padding: 0; text-align: center; font-size: 7.5cqi; line-height: 1.3; flex: 1; }
.lcd-list .sel { background: var(--lcd-ink); color: var(--lcd); display: inline-block; padding: 0 3%; }
.lcd-foot { display: flex; justify-content: space-between; font-size: 7cqi; border-top: 2px solid var(--lcd-ink); padding-top: 2%; }
.lcd-small { text-align: center; font-size: 8cqi; margin-top: auto; line-height: 1.25; }
.lcd figcaption { margin: 22px 10px 0; font-size: 14px; color: var(--muted-light); border-top: 1px solid var(--line-light); padding-top: 14px; }

/* ---------- DPS ---------- */
.dps { background: var(--ink); color: var(--paper); }
.dps-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(48px, 7vw, 112px); align-items: center; }
.dps .display { margin-top: 22px; }
.uses { list-style: none; padding: 0; margin: 44px 0 0; border-top: 1px solid var(--line-light); }
.uses li { padding: 15px 0 15px 32px; border-bottom: 1px solid var(--line-light); position: relative; font-size: 16px; color: #d5dade; }
.uses li::before { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 1px; background: var(--sea-tint); }
.dps-figure svg { width: 100%; max-width: 420px; margin: 0 auto; display: block; }
.rings circle, .rings path { fill: none; stroke: var(--line-light); stroke-width: 1; }
.ticks line { stroke: var(--muted-light); stroke-width: 1; opacity: .6; }
.cardinal { font: 400 12px var(--mono); fill: var(--muted-light); text-anchor: middle; }
.dps-boat path { fill: none; stroke: var(--paper); stroke-width: 1.4; }
.dps-boat { transform-box: view-box; transform-origin: 180px 180px; animation: drift 7s ease-in-out infinite; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(4px, -3px) rotate(.8deg); }
  50% { transform: translate(-3px, 2px) rotate(-.6deg); }
  75% { transform: translate(2px, 4px) rotate(.4deg); }
}
.tol { fill: none; stroke: var(--sea-tint); stroke-width: 1; stroke-dasharray: 2 3; }
.dps-stats { display: grid; grid-template-columns: 1fr 1fr; margin-top: 40px; border-top: 1px solid var(--line-light); }
.dps-stats > div { display: grid; gap: 10px; padding: 26px 20px 0 0; }
.dps-stats > div + div { padding-left: 24px; border-left: 1px solid var(--line-light); }
.dps-chain {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(80px, 9vw, 128px);
  border-top: 1px solid var(--line-light);
  counter-reset: c;
}
.chain-item { padding: 32px 32px 0 0; position: relative; }
.chain-item + .chain-item { padding-left: 32px; border-left: 1px solid var(--line-light); }
.chain-k { font: 400 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--sea-tint); }
.chain-item h4 { font: 500 semi-expanded 1.35rem var(--head); margin: 12px 0 10px; }
.chain-item p { font-size: 15px; color: var(--muted-light); }

/* ---------- safety ---------- */
.safety { background: var(--paper); }
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.feature-list article { padding: 36px 36px 40px 0; border-bottom: 1px solid var(--line); }
.feature-list article:not(:nth-child(3n+1)) { padding-left: 36px; border-left: 1px solid var(--line); }
.feature-list h3 { font: 500 semi-expanded 1.45rem/1.2 var(--head); margin-bottom: 12px; }
.feature-list p { color: var(--muted); font-size: 16px; }

/* ---------- compatibility ---------- */
.compat { background: var(--white); border-top: 1px solid var(--line); }
.compat-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(48px, 7vw, 112px); }
.compat .display { margin-top: 22px; }
.compat-list { margin: 0; border-top: 1px solid var(--ink); }
.compat-list div { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.compat-list dt { font: 400 11px/2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.compat-list dd { margin: 0; font-size: 16px; }

/* ---------- system modules ---------- */
.system { background: var(--paper); }
.modules { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.5vw, 36px); }
.module-img { aspect-ratio: 1; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; padding: 14%; margin-bottom: 24px; }
.module-img img { max-height: 100%; width: auto; object-fit: contain; }
.module h3 { font: 500 semi-expanded 1.35rem var(--head); margin-bottom: 10px; }
.module p { color: var(--muted); font-size: 15px; }

/* ---------- maker ---------- */
.maker { background: var(--white); border-top: 1px solid var(--line); }
.maker-grid { display: grid; grid-template-columns: 220px 1fr; gap: 40px; }
.maker-grid .index { padding-top: 16px; }
.maker blockquote { margin: 0; max-width: 21em; }
.maker-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.maker-k { font: 400 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sea); }
.maker-cols p { margin-top: 12px; color: var(--muted); font-size: 15px; }
.maker-note { margin-top: 48px; font-size: 14px; color: var(--muted); }

/* ---------- contact ---------- */
.contact { background: var(--ink); color: var(--paper); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 112px); }
.contact .display { margin-top: 22px; }
.checklist { list-style: none; padding: 0; margin: 40px 0 0; counter-reset: k; }
.checklist li { counter-increment: k; padding: 12px 0; border-bottom: 1px solid var(--line-light); color: #d5dade; font-size: 16px; display: flex; gap: 18px; }
.checklist li::before { content: counter(k, decimal-leading-zero); font: 400 11px/2.2 var(--mono); color: var(--sea-tint); }
.dist { margin-top: 36px; font-size: 15px; color: var(--muted-light); }
.dist a { color: var(--paper); }
.form { display: grid; gap: 22px; align-content: start; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form label { display: grid; gap: 8px; }
.form label > span { font: 400 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-light); }
.form input, .form select, .form textarea {
  width: 100%;
  background: transparent;
  border: 0; border-bottom: 1px solid rgba(241,244,246,.3);
  color: var(--paper);
  font: 400 17px var(--sans);
  padding: 8px 0 10px;
  border-radius: 0;
  outline: none;
  transition: border-color .2s;
  -webkit-appearance: none; appearance: none;
}
.form select { background-image: linear-gradient(45deg, transparent 50%, var(--muted-light) 50%), linear-gradient(135deg, var(--muted-light) 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.form select option { color: var(--ink); }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--paper); }
.form .check { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted-light); }
.form .check input { width: 16px; height: 16px; border: 1px solid rgba(241,244,246,.4); padding: 0; flex: none; }
.form .check input:checked { background: var(--paper); box-shadow: inset 0 0 0 3px var(--ink); }
.form .check span { font: 400 14px var(--sans); letter-spacing: 0; text-transform: none; }
.form .btn { justify-self: start; margin-top: 10px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-light); border-top: 1px solid var(--line-light); padding: 72px 0 32px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid p { margin-top: 18px; line-height: 1.7; }
.footer-grid h5 { font: 400 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--paper); margin-bottom: 16px; }
.footer-grid div > a:not(.wordmark) { display: block; text-decoration: none; padding: 4px 0; transition: color .2s; }
.footer-grid a:hover { color: var(--paper); }
.footer-legal { display: flex; justify-content: space-between; margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--line-light); font-size: 13px; }
.footer-legal a { text-decoration: none; margin-left: 24px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-toggle { display: inline-block; }
  .header-end .btn-line { display: none; }
  .mobile-nav {
    display: grid; overflow: hidden; max-height: 0;
    transition: max-height .4s ease;
    background: var(--paper);
  }
  .mobile-nav.open { max-height: 420px; border-top: 1px solid var(--line); }
  .mobile-nav a { padding: 16px var(--gutter); border-bottom: 1px solid var(--line); text-decoration: none; font: 500 semi-expanded 1.2rem var(--head); }
  .modules { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
  .lcd-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  .specstrip-grid { grid-template-columns: 1fr 1fr; }
  .specstrip-grid > div { padding: 28px 16px 30px 0; }
  .specstrip-grid > div + div { padding-left: 0; border-left: 0; }
  .specstrip-grid > div:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line-light); }
  .specstrip-grid > div:nth-child(n+3) { border-top: 1px solid var(--line-light); }

  .intro-grid, .maker-grid { grid-template-columns: 1fr; gap: 20px; }
  .intro-cols, .maker-cols { grid-template-columns: 1fr; gap: 20px; }
  .pillars, .man-more, .dps-chain, .remotes, .feature-list { grid-template-columns: 1fr; }
  .pillars article, .pillars article + article,
  .man-more > div, .man-more > div + div,
  .chain-item, .chain-item + .chain-item,
  .remote, .remote + .remote,
  .feature-list article, .feature-list article:not(:nth-child(3n+1)) {
    padding-left: 0; padding-right: 0; border-left: 0;
  }
  .pillars article, .man-more > div, .chain-item { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
  .chain-item { border-bottom-color: var(--line-light); }
  .remote { padding-bottom: 56px; border-bottom: 1px solid var(--line); }
  .remote-img { height: 320px; }
  .remote-img img { max-height: 270px; }

  .man-grid, .dps-grid, .compat-grid, .contact-grid { grid-template-columns: 1fr; }
  .man-figure { order: -1; }
  .man-tabs button small { display: none; }

  .compat-list div { grid-template-columns: 1fr; gap: 6px; }
  .row2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .hero-foot span:last-child { display: none; }
}

@media (max-width: 560px) {
  .lcd-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .lcd-screen { outline-width: 6px; margin: 6px; }
  .lcd figcaption { font-size: 12px; margin-top: 14px; }
  .modules { grid-template-columns: 1fr 1fr; gap: 16px; row-gap: 40px; }
  .dps-stats { grid-template-columns: 1fr; }
  .dps-stats > div + div { padding-left: 0; border-left: 0; padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--line-light); }
  .lang { display: none; }
  .hero-photo img { min-height: 300px; object-position: 12% 50%; }
  .footer-legal { flex-direction: column; gap: 14px; }
  .footer-legal a { margin: 0 20px 0 0; }
}

/* ---------- promise strip ---------- */
.promise .spec-num { font-size: clamp(1.25rem, 1.8vw, 1.6rem); font-weight: 500; letter-spacing: -.01em; }
.promise .spec-lbl { max-width: 22em; }

/* ---------- the last ten metres ---------- */
.moments { background: var(--paper); }
.moment-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: mo; }
.moment-list li {
  counter-increment: mo;
  display: grid; grid-template-columns: 64px 1.15fr 1fr; column-gap: 40px; row-gap: 10px;
  padding: 40px 0; border-bottom: 1px solid var(--line);
}
.moment-list li::before { content: counter(mo, decimal-leading-zero); grid-row: 1 / span 2; font: 400 12px/2.4 var(--mono); letter-spacing: .14em; color: var(--muted); }
.m-q { grid-column: 2; font: 500 semi-expanded clamp(1.3rem, 2vw, 1.75rem)/1.2 var(--head); letter-spacing: -.015em; color: var(--text); }
.m-ctx { grid-column: 2; color: var(--muted); font-size: 16px; max-width: 30em; }
.m-a { grid-column: 3; grid-row: 1 / span 2; border-left: 2px solid var(--sea); padding-left: 24px; align-self: start; }
.m-k { font: 400 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sea); }
.m-a p { margin-top: 10px; font-size: 16px; color: var(--text); }
.m-a strong { font-weight: 600; }

/* ---------- docking sequence ---------- */
.sequence { background: var(--white); border-top: 1px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line); }
.steps li { position: relative; padding: 40px 28px 0 0; }
.steps li::before { content: ""; position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--white); border: 2px solid var(--sea); }
.steps li:last-child::before { background: var(--sea); }
.step-n { display: block; font: 400 12px var(--mono); letter-spacing: .14em; color: var(--muted); }
.step-mode { display: inline-block; margin: 14px 0 18px; padding: 4px 9px; background: var(--lcd); color: var(--lcd-ink); font: 500 12px var(--mono); letter-spacing: .06em; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.steps h3 { font: 500 semi-expanded 1.25rem/1.2 var(--head); margin-bottom: 10px; letter-spacing: -.01em; }
.steps p { color: var(--muted); font-size: 15px; }
.steps-note { margin-top: 48px; font-size: 13px; color: var(--muted); }

@media (max-width: 1080px) {
  .steps { grid-template-columns: 1fr; }
  .steps::before { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .steps li { padding: 0 0 40px 44px; }
  .step-mode { margin: 10px 0 12px; }
}
@media (max-width: 860px) {
  .moment-list li { grid-template-columns: 1fr; padding: 32px 0; }
  .moment-list li::before { grid-row: auto; }
  .m-q, .m-ctx, .m-a { grid-column: 1; grid-row: auto; }
  .m-a { margin-top: 14px; }
}

/* ---------- long German compounds ---------- */
html[lang="de"] body { hyphens: auto; -webkit-hyphens: auto; }
html[lang="de"] .btn, html[lang="de"] .index, html[lang="de"] .nav a { hyphens: manual; -webkit-hyphens: manual; }
.maker-grid > *, .intro-grid > *, .compat-grid > *, .dps-grid > *, .contact-grid > *, .man-grid > * { min-width: 0; }
.display, .m-q { overflow-wrap: break-word; }
