/* Layout: a fixed 3D stage under thin overlays. The page moves from the bright yard,
   to the dark control room, out to the ship at sea, and back to paper for the people. */
:root {
  --paper: #ECEEF0;
  --paper-2: #F7F8F9;
  --ink: #131416;
  --steel: #5D5F63;
  --line: rgba(19, 20, 22, .12);
  --night: #0D1114;
  --night-2: #161C21;
  --night-line: rgba(236, 238, 240, .16);
  --fog: #A9AAAD;
  --gold: #B68A45;      /* brand gold: fills, and text on dark */
  --gold-hi: #CDA35A;   /* hover */
  --gold-ink: #8E6A2E;  /* text and outlines on light */
  --sea: #0B3D8F;

  --f-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --nav-h: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* step cards set display:flex, which would override it */
html { background: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--f-body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; border-radius: 2px; }

#stage {
  position: fixed; inset: 0;
  width: 100%; height: 100vh; height: 100lvh;
  display: block; z-index: 0;
  opacity: 0; transition: opacity .7s ease; /* fades in once its shaders are compiled */
}
#stage.is-ready { opacity: 1; }
html.no-webgl #stage { display: none; }

main, .site-footer { position: relative; z-index: 1; }

/* ---------- shared type ---------- */
.display {
  font-family: var(--f-display);
  font-stretch: 72%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.005em;
  line-height: .9;
  text-wrap: balance;
}
.eyebrow {
  font: 500 12px/1.2 var(--f-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--steel);
}
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  font: 600 14px/1 var(--f-body); letter-spacing: .01em;
  text-decoration: none; border: 1px solid transparent; border-radius: 999px;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-ink { background: var(--ink); color: var(--paper-2); }
.btn-ink:hover { background: #2B2C2F; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-hi); }
.btn-ghost { border-color: rgba(17, 21, 25, .28); color: var(--ink); background: rgba(247, 248, 249, .55); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-outline { border-color: var(--night-line); color: var(--paper); }
.btn-outline:hover { border-color: var(--paper); }

/* ---------- nav ---------- */
.nav {
  position: fixed; z-index: 10;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  left: var(--gutter); right: var(--gutter);
  max-width: 1240px; margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 52px; padding: 0 6px 0 16px;
  background: rgba(247, 248, 249, .78);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { height: 26px; width: auto; flex: none; }
.brand b { font: 700 15px/1 var(--f-display); font-stretch: 125%; letter-spacing: .08em; white-space: nowrap; }
.brand b .accent { color: var(--gold-ink); }
.brand small { font: 500 10px/1 var(--f-mono); letter-spacing: .16em; color: var(--steel); }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 8px 12px; border-radius: 999px;
  font-size: 14px; font-weight: 500; text-decoration: none; color: var(--steel);
}
.nav-links a:hover { color: var(--ink); background: rgba(17, 21, 25, .06); }
.nav .btn { min-height: 40px; padding: 0 18px; white-space: nowrap; }

/* ---------- scroll tracks ---------- */
.track { position: relative; }
.sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
}
.track-yard { height: 420vh; }
.track-services { height: 260vh; }
.track-steps { height: 440vh; background: var(--night); color: var(--paper); }
.track-sea { height: 380vh; }

/* ---------- hero (yard) ---------- */
/* calm the scene behind the copy without hiding it */
.track-yard .sticky::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(233, 236, 238, .9) 0%, rgba(233, 236, 238, .62) 28%, rgba(233, 236, 238, 0) 46%);
}
.hero {
  position: absolute;
  left: var(--gutter);
  top: calc(var(--nav-h) + 6vh);
  width: min(560px, calc(100% - 2 * var(--gutter)));
  display: flex; flex-direction: column; gap: 18px;
}
.hero h1 { font-size: clamp(42px, 6.6vw, 96px); }
.hero h1 .accent { color: var(--gold-ink); }
.lede {
  max-width: 44ch; padding: 12px 16px; border-left: 3px solid var(--gold);
  background: rgba(247, 248, 249, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--ink); font-size: clamp(17px, 1.5vw, 21px); font-weight: 500; line-height: 1.5;
} /* a panel like .readout: the line sits over light and dark parts of the 3D scene */
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }

.readout {
  position: absolute;
  left: var(--gutter); bottom: clamp(16px, 4vh, 36px);
  width: min(330px, calc(100% - 2 * var(--gutter)));
  padding: 14px 16px 16px;
  background: rgba(247, 248, 249, .86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  font: 400 12px/1.4 var(--f-mono);
  font-variant-numeric: tabular-nums;
  display: flex; flex-direction: column; gap: 10px;
}
.readout.is-yan { left: auto; right: var(--gutter); bottom: calc(clamp(16px, 4vh, 36px) + 28px); } /* above the scroll hint; set by ui.js */
.readout-top { display: flex; align-items: center; gap: 8px; font-weight: 500; letter-spacing: .12em; }
.readout-top .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 165, 74, .28);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(201, 165, 74, 0); } }
.readout-code { font-size: 20px; font-weight: 500; letter-spacing: .04em; }
.readout-code b { display: inline-block; padding: 0 5px; border: 1px solid var(--ink); font-weight: 500; }
.readout dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; }
.readout dl div { display: contents; }
.readout dt { color: var(--steel); }
.readout-bar { height: 2px; background: var(--line); overflow: hidden; }
.readout-bar span { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }

.scroll-hint {
  position: absolute; right: var(--gutter); bottom: clamp(16px, 4vh, 36px);
  font: 500 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--steel);
  display: flex; align-items: center; gap: 8px;
}
.scroll-hint .nudge { display: inline-block; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }

/* ---------- services ---------- */
.track-services .sticky { display: flex; flex-direction: column; justify-content: flex-end; }
.services-panel {
  background: var(--night); color: var(--paper);
  border-top: 1px solid var(--night-line);
  padding: clamp(24px, 4vh, 44px) var(--gutter) clamp(24px, 5vh, 48px);
  display: flex; flex-direction: column; gap: clamp(20px, 4vh, 40px);
  min-height: 52%;
}
.services-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.services-head .eyebrow { color: var(--fog); margin-bottom: 10px; }
.services-head h2 { font-size: clamp(30px, 4vw, 58px); max-width: 16ch; }
.services-viewport { overflow: hidden; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
.services-track {
  display: flex; gap: clamp(16px, 2.2vw, 32px);
  list-style: none; padding: 0;
  will-change: transform;
}
.svc {
  flex: 0 0 clamp(240px, 27vw, 340px);
  min-width: 0;
  border-top: 1px solid var(--night-line);
  padding-top: 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.svc svg { width: 30px; height: 30px; color: var(--paper); }
.svc h3 { font-size: clamp(22px, 2vw, 28px); }
.svc p { color: var(--fog); font-size: 14px; line-height: 1.5; }
.svc .tag { margin-top: auto; padding-top: 6px; font: 500 11px/1.3 var(--f-mono); letter-spacing: .1em; color: var(--gold); text-transform: uppercase; }

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) auto minmax(0, 1fr);
  gap: clamp(16px, 2.6vw, 36px);
  padding: calc(var(--nav-h) + 36px) var(--gutter) clamp(20px, 4vh, 40px);
}
.arch {
  min-width: 0;
  background: var(--paper);
  color: var(--ink);
  padding: clamp(20px, 3vw, 40px);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 16px;
}
.arch-left { border-radius: 6px 58% 6px 6px / 6px 44% 6px 6px; }
.arch-right { border-radius: 58% 6px 6px 6px / 44% 6px 6px 6px; }
.arch-left h2 { font-size: clamp(38px, 5.4vw, 84px); }
.arch-left p:last-child { max-width: 40ch; color: var(--steel); }

.rail-col { display: flex; gap: 18px; align-items: stretch; padding-block: 8%; }
.rail { position: relative; width: 12px; border-radius: 999px; background: var(--night-2); border: 1px solid var(--night-line); overflow: hidden; }
.rail-fill { position: absolute; inset: 0; background: var(--gold); transform-origin: top; transform: scaleY(0); border-radius: 999px; }
.step-list { list-style: none; padding: 0; display: flex; flex-direction: column; justify-content: space-between; }
.step-list button {
  display: flex; align-items: baseline; gap: 10px;
  padding: 6px 0; background: none; border: 0; cursor: pointer;
  color: var(--fog); font: 500 14px/1.2 var(--f-body); text-align: left;
  transition: color .25s;
}
.step-list button .mono { font-size: 11px; letter-spacing: .08em; }
.step-list .is-active button, .step-list button:hover { color: var(--paper); }

.step-card { display: flex; flex-direction: column; gap: 14px; }
.step-card .num { font: 800 clamp(64px, 9vw, 140px)/.8 var(--f-display); font-stretch: 72%; color: var(--gold-ink); }
.step-card h3 { font-size: clamp(28px, 3vw, 44px); }
.step-card p { color: var(--steel); max-width: 42ch; }
.metric { display: flex; align-items: baseline; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.metric b { font: 800 clamp(30px, 3vw, 44px)/1 var(--f-display); font-stretch: 72%; }
.metric span { font: 400 12px/1.3 var(--f-mono); color: var(--steel); letter-spacing: .04em; }

/* ---------- sea ---------- */
.sea { color: #fff; }
.sea-card {
  position: absolute; top: calc(var(--nav-h) + 40px);
  width: min(310px, 38vw);
  background: var(--paper-2); color: var(--ink);
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 18px 40px rgba(0, 18, 50, .25);
}
.sea-card-left { left: var(--gutter); }
.sea-card-right { right: var(--gutter); }
.sea-card svg { width: 28px; height: 28px; }
.sea-card h3 { font-size: 26px; }
.sea-card p { font-size: 14px; color: var(--steel); }
.sea-title {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding-inline: var(--gutter);
  font-size: clamp(46px, 8.6vw, 140px);
  text-shadow: 0 4px 30px rgba(0, 20, 60, .45);
  pointer-events: none;
}
.sea-title span { max-width: 11ch; }
.sea-readout {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(16px, 4vh, 36px);
  font-size: 12px; letter-spacing: .08em; color: rgba(255, 255, 255, .86);
}
html.no-webgl .track-sea .sticky { background: var(--sea); }

/* ---------- quotes ---------- */
.quotes { background: var(--paper-2); padding: clamp(80px, 14vh, 140px) var(--gutter); }
.wrap { max-width: 1180px; margin-inline: auto; }
.quotes-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(36px, 6vh, 64px); }
.quotes-head h2 { font-size: clamp(36px, 5vw, 72px); max-width: 14ch; }
.quote-list { display: flex; flex-direction: column; }
.quote {
  display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: 20px clamp(24px, 5vw, 80px);
  padding-block: clamp(28px, 5vh, 48px);
  border-top: 1px solid var(--line);
}
.who { display: flex; gap: 14px; align-items: center; align-self: start; }
.avatar {
  width: 56px; height: 56px; flex: none;
  display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--line);
  font: 800 20px/1 var(--f-display); font-stretch: 80%; letter-spacing: .04em; color: var(--ink);
}
.who b { display: block; font-weight: 600; }
.who b + span { display: block; font-size: 13px; color: var(--steel); line-height: 1.35; }
.quote blockquote { font-size: clamp(18px, 1.7vw, 23px); line-height: 1.5; max-width: 58ch; text-wrap: pretty; }
.quote .route { margin-top: 14px; font: 400 12px/1.4 var(--f-mono); color: var(--steel); letter-spacing: .04em; }

/* ---------- contact ---------- */
.contact { background: var(--night); color: var(--paper); padding: clamp(80px, 14vh, 140px) var(--gutter) 40px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); }
.contact h2 { font-size: clamp(40px, 6vw, 92px); margin-block: 14px 20px; }
.contact-logo { display: block; width: min(300px, 72%); height: auto; margin-bottom: clamp(28px, 5vh, 48px); }
.contact .eyebrow { color: var(--fog); }
.contact-copy p { color: var(--fog); max-width: 40ch; }
/* phone, e-mail and town: one card each, the value large; phone and e-mail are links */
.contact-lines { margin-top: 32px; display: grid; gap: 12px; max-width: 520px; }
.contact-line {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px; border: 1px solid var(--night-line); border-radius: 14px;
  background: rgba(236, 238, 240, .04); color: var(--paper); text-decoration: none;
}
a.contact-line { transition: border-color .2s ease, background-color .2s ease; }
a.contact-line:hover { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, transparent); }
.contact-line svg {
  flex: none; width: 46px; height: 46px; padding: 11px; border-radius: 50%;
  background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold);
}
.contact-line > span { display: grid; gap: 4px; min-width: 0; }
.contact-line small { font: 500 11px/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fog); }
.contact-line b { font: 600 clamp(19px, 1.9vw, 26px)/1.3 var(--f-body); color: var(--paper); overflow-wrap: anywhere; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; align-content: start; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fog); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px;
  background: var(--night-2); color: var(--paper);
  border: 1px solid var(--night-line); border-radius: 4px;
  padding: 0 14px; font: 400 15px/1 var(--f-body);
}
.field textarea { padding: 12px 14px; line-height: 1.45; resize: vertical; min-height: 92px; }
.field input::placeholder, .field textarea::placeholder { color: #77797D; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field.is-missing input { border-color: #C8604A; }
.form-tuzak { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status { font: 400 13px/1.4 var(--f-mono); color: var(--fog); }
.form-status.is-ok { color: var(--gold); font-size: 14px; }
.form-status.is-bad { color: #E08A74; }
.form-kvkk { grid-column: 1 / -1; font-size: 12px; color: var(--fog); opacity: .8; }
.form .btn:disabled { opacity: .6; cursor: progress; }

.site-footer {
  background: var(--night); color: var(--fog);
  padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--night-line);
  font: 400 12px/1.5 var(--f-mono);
}
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.site-footer .credits { flex-basis: 100%; font-size: 11px; opacity: .7; }
.site-footer .credits a { color: inherit; }

/* ---------- site texts (content.js) and the owner's editor (editor.js) ---------- */
html.texts-pending [data-k] { visibility: hidden; } /* for the moment the saved texts take to load */

.editor {
  position: fixed; z-index: 60; top: 0; right: 0; bottom: 0;
  width: min(420px, 100vw);
  display: flex; flex-direction: column;
  background: var(--paper-2); color: var(--ink);
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 60px rgba(13, 17, 20, .18);
  font: 400 14px/1.45 var(--f-body);
}
.editor-head { padding: 18px 20px 14px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.editor-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.editor-title h2 { font: 800 24px/1 var(--f-display); font-stretch: 72%; text-transform: uppercase; }
.editor-close {
  display: grid; place-items: center; width: 36px; height: 36px;
  border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer;
}
.editor-close:hover { border-color: var(--ink); }
.editor-tools { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.editor-logout {
  border: 0; background: none; padding: 4px 0;
  color: var(--steel); font: 400 13px/1 var(--f-body); text-decoration: underline; cursor: pointer;
}
.editor-logout:hover { color: var(--ink); }
.editor-manage {
  height: 32px; padding: 0 12px; border: 1px solid var(--gold); border-radius: 999px;
  background: transparent; color: var(--gold-ink); font: 600 13px/1 var(--f-body); cursor: pointer; white-space: nowrap;
}
.editor-manage:hover { background: var(--gold); color: var(--ink); }
.editor-close svg { width: 16px; height: 16px; }
.editor-sub { font-size: 13px; color: var(--steel); }
.editor-head input {
  width: 100%; height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
  font: 400 14px/1 var(--f-body);
}
.editor-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 20px 24px; }
.editor-group { border-bottom: 1px solid var(--line); }
.editor-group summary {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 15px 0; cursor: pointer; list-style: none;
  font: 500 12px/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase;
}
.editor-group summary::-webkit-details-marker { display: none; }
.editor-group summary::after { content: "+"; font-size: 16px; color: var(--gold-ink); }
.editor-group[open] summary::after { content: "–"; }
.editor-field { display: grid; gap: 6px; padding-bottom: 14px; }
.editor-label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.editor-label label { font-size: 13px; color: var(--steel); }
.editor-field.is-changed .editor-label label { color: var(--ink); font-weight: 600; }
.editor-field.is-changed .editor-label label::before { content: "● "; color: var(--gold); }
.editor-reset { border: 0; background: none; padding: 0; color: var(--gold-ink); font-size: 12px; text-decoration: underline; cursor: pointer; }
.editor-field textarea {
  width: 100%; min-height: 40px; resize: none; overflow: hidden;
  padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--ink); font: 400 14px/1.45 var(--f-body);
}
.editor-field textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: transparent; }
.editor-foot {
  display: grid; gap: 10px;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line); background: var(--paper-2);
}
.editor-status { min-height: 1.4em; font: 400 12px/1.4 var(--f-mono); color: var(--steel); }
.editor-actions { display: flex; justify-content: flex-end; gap: 10px; }
.editor .btn:disabled { opacity: .45; cursor: default; transform: none; }

html.is-editing [data-k], html.is-editing [data-kp] { cursor: text; }
html.is-editing [data-k]:hover, html.is-editing [data-kp]:hover { outline: 1px dashed var(--gold); outline-offset: 3px; }
.is-target { outline: 2px solid var(--gold) !important; outline-offset: 3px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .steps {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 14px;
    padding-top: calc(var(--nav-h) + 24px);
  }
  .arch-left { border-radius: 6px 40% 6px 6px / 6px 60% 6px 6px; padding-top: 28px; }
  .arch-left h2 { font-size: clamp(32px, 9vw, 52px); }
  .arch-left p:last-child { display: none; }
  .arch-right { border-radius: 6px; justify-content: flex-start; }
  .rail-col { padding: 0; }
  .rail { display: none; }
  .step-list { flex-direction: row; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .step-list button { white-space: nowrap; border: 1px solid var(--night-line); border-radius: 999px; padding: 8px 12px; }
  .step-list .is-active button { border-color: var(--gold); }
  .step-card .num { font-size: 64px; }
  .quote { grid-template-columns: minmax(0, 1fr); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .brand small { display: none; }
  .brand b { font-size: 13px; letter-spacing: .05em; }
  .hero { gap: 14px; }
  .lede { font-size: 16px; }
  .scroll-hint { display: none; }
  .readout { padding: 12px 14px; }
  .contact-line { gap: 12px; padding: 14px 12px; }
  .contact-line svg { width: 36px; height: 36px; padding: 8px; }
  .contact-line b { font-size: clamp(15px, 4.3vw, 18px); } /* a long e-mail address still fits one line */
  .sea-card { width: auto; right: var(--gutter); left: var(--gutter); padding: 14px 16px; }
  .sea-card-right { top: auto; bottom: calc(clamp(16px, 4vh, 36px) + 56px); } /* clears the two-line readout */
  .sea-card h3 { font-size: 20px; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .editor {
    top: auto; height: min(78vh, 78svh); width: 100vw;
    border-left: 0; border-top: 1px solid var(--line); border-radius: 16px 16px 0 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .readout-top .dot, .scroll-hint .nudge { animation: none; }
  #stage { transition: none; }
  .btn { transition: none; }
}
