/* Keel Autopilot. One page that descends from the surface to the keel.
   Ink above the waterline, blue below it. */

@font-face {
  font-family: "Big Shoulders Display";
  src: url("assets/fonts/big-shoulders-display.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Familjen Grotesk";
  src: url("assets/fonts/familjen-grotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --ink: #0b1220;
  --deep: #060b18;
  --blue: #2f5bff;
  --blue-lift: #7d9bff;
  --paper: #f2f4f8;
  --white: #ffffff;
  --soft-on-paper: #414b63;
  --soft-on-ink: #b4c0dc;
  --soft-on-blue: #ffffff;
  --rule-on-paper: rgba(11, 18, 32, 0.16);
  --rule-on-ink: rgba(242, 244, 248, 0.2);

  --display: "Big Shoulders Display", "Arial Narrow", "Helvetica Neue", sans-serif;
  --text: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;

  --pad: max(clamp(1.25rem, 5vw, 5rem), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --section: clamp(5.5rem, 12vw, 11rem);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --glide: cubic-bezier(0.33, 0, 0, 1);   /* quick to start, a long settle: the curtain, the headings, the arrival */
  --focus: var(--blue);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--blue) var(--deep);
  -webkit-tap-highlight-color: transparent;
}

/* Controls answer at once and their labels are not selectable text. */
a, button, summary, label, select { touch-action: manipulation; }
button, .btn, summary, .choice label, .nav a {
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: clamp(1.0625rem, 0.98rem + 0.32vw, 1.25rem);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

::selection { background: var(--blue); color: var(--white); }

h1, h2, h3, p, ol, ul, dl, dd, fieldset { margin: 0; padding: 0; }
ol, ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; text-underline-offset: 0.2em; }
button, input, select { font: inherit; color: inherit; }
img, svg { display: block; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.defs { position: absolute; }
[hidden] { display: none !important; }

.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 40;
  padding: 0.75rem 1rem; border-radius: 0.75rem;
  background: var(--ink); color: var(--paper);
  transition: top 0.3s var(--ease);
}
.skip:focus { top: 1rem; }

.wrap { width: min(100%, 92rem); margin-inline: auto; padding-inline: var(--pad); }

.display {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(3rem, 9.4vw, 9rem);
  line-height: 1;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}

.lede {
  max-width: 40rem;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  font-size: clamp(1.2rem, 1rem + 0.9vw, 1.6rem);
  line-height: 1.38;
}

/* Headings rise into place line by line from behind a mask, once, when they arrive. Visible by default without script.
   The padding gives a comma room to hang below the line without being clipped. */
.ln { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.ln > span { display: block; }
.js .reveal .ln > span { transform: translateY(112%); transition: transform 1.25s var(--glide) calc(var(--i, 0) * 0.09s); }
.js .reveal.is-in .ln > span { transform: none; }

/* ---------- The opening ---------- */

/* An ink curtain holds the mark while the ocean loads, then lifts. The headline rises behind it and the nav drops in.
   main.js adds .intro-done once the ocean's first frame is up, or after a few seconds whatever happens. */
.intro {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: var(--ink); color: var(--paper); --logo-keel: url(#keel-grad);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.35s var(--glide) 0.3s;
}
.intro__inner { overflow: hidden; padding: 0.4rem; transition: transform 0.8s var(--glide), opacity 0.5s var(--ease) 0.15s; }
.intro__logo { display: block; width: clamp(10rem, 20vw, 15rem); height: auto; transform: translateY(110%); animation: rise 1.1s var(--glide) 0.15s forwards; }
.intro__bar { position: absolute; left: 50%; bottom: max(3rem, 14svh); width: 7.5rem; height: 2px; margin-left: -3.75rem; background: var(--rule-on-ink); overflow: hidden; }
.intro__bar::after { content: ""; position: absolute; inset: 0; background: var(--blue-lift); transform-origin: left; transform: scaleX(0); animation: load 3s var(--glide) 0.3s forwards; }
@keyframes rise { to { transform: none; } }
@keyframes load { to { transform: scaleX(0.85); } }
.intro-done .intro { clip-path: inset(0 0 100% 0); pointer-events: none; }
.intro-done .intro__inner { transform: translateY(-35%); opacity: 0; }
.intro-done .intro__bar::after { animation: none; transform: scaleX(1); transition: transform 0.3s var(--ease); }
@media (prefers-reduced-motion: reduce) { .intro { display: none; } }

.js:not(.still) .hero h1 .ln > span { transition: transform 1.4s var(--glide) calc(0.55s + var(--i) * 0.11s); }
.js:not(.still) .hero__sub { transition: opacity 1s var(--ease) 1s, translate 1.4s var(--glide) 1s; }
.js:not(.still) .nav { transition-property: background-color, color, border-color, translate; transition-duration: 0.6s, 0.6s, 0.6s, 1.3s; transition-timing-function: var(--ease), var(--ease), var(--ease), var(--glide); transition-delay: 0s, 0s, 0s, 0.85s; }
.js:not(.still) .depth { transition: color 0.6s var(--ease), opacity 1s var(--ease) 1.3s; }
/* before the curtain lifts */
.js:not(.still):not(.intro-done) .hero h1 .ln > span { transform: translateY(112%); }
.js:not(.still):not(.intro-done) .hero__sub { opacity: 0; translate: 0 1.75rem; }
.js:not(.still):not(.intro-done) .nav { translate: 0 calc(-100% - 1.5rem); }
.js:not(.still):not(.intro-done) .depth { opacity: 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 0.85rem;
  padding: 0.45rem 0.45rem 0.45rem 1.3rem;
  border: 0; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-weight: 600; line-height: 1.1; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: transform 0.16s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn__arrow {
  display: grid; place-items: center; flex: none;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: rgba(242, 244, 248, 0.16);
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}
.btn__arrow svg { width: 1.15rem; height: 1.15rem; }
.btn:active { transform: scale(0.97); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light .btn__arrow { background: var(--blue); color: var(--white); }
.btn--ink .btn__arrow { background: var(--blue); }
.btn--small { padding: 0.3rem 0.3rem 0.3rem 1rem; font-size: 0.95rem; gap: 0.6rem; }
.btn--small .btn__arrow { width: 2.1rem; height: 2.1rem; }

/* ---------- Floating nav ---------- */

.nav {
  position: fixed; z-index: 20;
  top: calc(env(safe-area-inset-top, 0px) + 0.75rem);
  left: 50%; transform: translateX(-50%);
  width: min(calc(100% - 1.5rem), 62rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.4rem 0.4rem 0.4rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--rule-on-paper);
  background: var(--paper);
  box-shadow: 0 10px 30px -18px rgba(6, 11, 24, 0.5);
  color: var(--ink);
  --logo-keel: var(--blue);
  transition: background-color 0.6s var(--ease), color 0.6s var(--ease), border-color 0.6s var(--ease);
}
.nav__logo { display: block; width: 6.6rem; flex: none; border-radius: 0.5rem; }
.nav__logo svg { width: 100%; height: auto; }
.logo-keel { fill: var(--logo-keel, var(--blue)); transition: fill 0.6s var(--ease); }
.nav__links { display: flex; gap: 1.15rem; font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.nav__links a { text-decoration: none; padding: 0.4rem 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size 0.25s var(--ease); }
.nav__links a[aria-current] { background-size: 100% 2px; }

/* Where the pill has no room for the tabs they ride under it as a strip that scrolls sideways,
   out of sight during the dive and lowered once the page is below the waterline. */
@media (max-width: 63.99rem) {
  .nav__links {
    position: absolute; top: calc(100% + 0.5rem); left: 0; right: 0; gap: 0.2rem; padding: 0.3rem;
    border-radius: 999px; border: 1px solid var(--rule-on-ink); background: #141f3f; color: var(--paper);
    box-shadow: 0 10px 30px -18px rgba(6, 11, 24, 0.5);
    overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    opacity: 0; visibility: hidden; translate: 0 -0.6rem;
    transition: opacity 0.3s var(--ease), translate 0.3s var(--ease), visibility 0s 0.3s;
  }
  .nav__links::-webkit-scrollbar { display: none; }
  .is-below .nav__links { opacity: 1; visibility: visible; translate: none; transition-delay: 0s; }
  .nav__links a { flex: none; display: grid; place-items: center; min-height: 2.25rem; padding: 0 0.85rem; border-radius: 999px; background: none; transition: background-color 0.25s var(--ease), color 0.25s var(--ease); }
  .nav__links a[aria-current] { background: var(--paper); color: var(--ink); }
  .nav__links a:focus-visible { outline-offset: -3px; }
}

body[data-tone="dark"] .nav, body[data-tone="blue"] .nav {
  background: #141f3f;
  border-color: var(--rule-on-ink);
  color: var(--paper);
  --logo-keel: url(#keel-grad);
  --focus: var(--white);
}
body[data-tone="dark"] .nav .btn, body[data-tone="blue"] .nav .btn { background: var(--paper); color: var(--ink); }
body[data-tone="dark"] .nav .btn__arrow, body[data-tone="blue"] .nav .btn__arrow { background: var(--blue); color: var(--white); }

/* ---------- Depth scale, like the draught marks on a hull ---------- */

/* It reads the dive and the run along the hull, then steps aside; on a phone it leaves once the tabs arrive. */
.depth { transition: opacity 0.3s var(--ease), visibility 0s 0.3s; }
.no-depth .depth { opacity: 0; visibility: hidden; }
@media (max-width: 47.99rem) { .is-below .depth { opacity: 0; visibility: hidden; } }

/* On phones the reading sits inside the nav pill, between the logo and the button. */
.depth {
  position: fixed; z-index: 21;
  top: calc(env(safe-area-inset-top, 0px) + 2.55rem); left: calc(50% - 1.5rem); transform: translate(-50%, -50%);
  display: flex; align-items: baseline; gap: 0.45rem;
  color: var(--ink);
  font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  pointer-events: none;
  transition: color 0.6s var(--ease);
}
.depth__label { display: none; }
.depth__value { font-size: 1rem; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.depth__scale { display: none; }
body[data-tone="dark"] .depth, body[data-tone="blue"] .depth { color: var(--paper); }

/* ---------- Hero ---------- */

.hero { position: relative; height: 200vh; height: 200svh; background: #0a101c; }
.hero__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: linear-gradient(to bottom, var(--paper) 0 52%, #16276a 52%, var(--ink) 66%, #03060f 100%); }
.hero__scene { position: absolute; inset: 0; width: 100%; height: 100%; }

.scene-sky { fill: var(--paper); }
.scene-rays path { fill: rgba(92, 128, 255, 0.13); }
.scene-ink { fill: var(--ink); }
.scene-keel { fill: url(#keel-grad); }
.scene-swell__back { fill: var(--blue); animation: swell-back 8s linear infinite; }
.scene-swell__front { animation: swell-front 5.5s linear infinite; }
@keyframes swell-back { to { transform: translateX(-400px); } }
@keyframes swell-front { to { transform: translateX(-320px); } }

.hero__copy { position: absolute; inset: 0; pointer-events: none; }
.hero__copy h1 {
  position: absolute; left: var(--pad); top: clamp(5.5rem, 12svh, 6.5rem);
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(3rem, 8.6vw, 8rem); line-height: 0.93; letter-spacing: 0.005em;
  color: var(--ink);
}
.hero__sub {
  position: absolute; left: var(--pad); right: var(--pad); bottom: max(4.75rem, 9svh);
  display: grid; gap: 1.1rem; justify-items: start;
  color: var(--paper); pointer-events: auto;
}
.hero__sub p { max-width: 27rem; font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem); line-height: 1.38; }

.hero__mid, .hero__end {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 13svh;
  color: var(--paper); opacity: 0; pointer-events: none;
}
.hero__mid {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.5rem, 7vw, 6.5rem); line-height: 0.95;
}
.hero__end-big {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.5rem, 7vw, 6.5rem); line-height: 0.95; max-width: 11em; text-wrap: balance;
}
.hero__end p { margin-top: 1.1rem; max-width: 19em; font-weight: 600; font-size: clamp(1.35rem, 1.1rem + 1.1vw, 2.1rem); line-height: 1.2; text-wrap: balance; }

/* ---------- The live ocean ---------- */

/* ocean.js draws on this canvas behind the page. It fades in once its first frame is ready;
   until then, and wherever WebGL is missing, the drawn hero scene shows instead. */
.ocean { position: fixed; inset: 0; width: 100%; height: 100lvh; z-index: 0; opacity: 0; transition: opacity 0.8s var(--ease); pointer-events: none; }
.ocean-on .ocean { opacity: 1; }
main, .foot { position: relative; z-index: 1; }
.ocean-on .hero, .ocean-on .hero__stage { background: transparent; }
.hero__scene { transition: opacity 0.8s var(--ease); }
.ocean-on .hero__scene { opacity: 0; }
/* Over the live water: the words keep to the dark sea left of the boat's reflection, and a faint glow
   behind the letters covers the odd bright streak. The picture itself is never dimmed. */
.ocean-on .hero__sub p, .ocean-on .hero__mid, .ocean-on .hero__end { text-shadow: 0 0 2px rgba(3, 8, 20, 0.45), 0 1px 22px rgba(3, 8, 20, 0.55); }
.ocean-on .hero__mid { max-width: 5.6em; }
.ocean-on .hero__end-big { max-width: 8.6em; }

/* ---------- The run along the hull ---------- */

.hull { position: relative; background: var(--deep); color: var(--paper); }
.ocean-on .hull { background: transparent; }
.hull__rail { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 6vw, 4rem); padding-block: clamp(3rem, 8vw, 6rem); }
.station { padding-inline: var(--pad); scroll-margin-top: 7.5rem; }
.slab {
  width: min(100%, 88rem); margin-inline: auto;
  padding: clamp(1.5rem, 3vw, 2.75rem); border-radius: 2rem;
  background: rgba(6, 11, 24, 0.88); border: 1px solid rgba(242, 244, 248, 0.1);
}
.station .display { font-size: clamp(2.6rem, 5vw, 5rem); }
.station .lede { margin-top: 1rem; font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.3rem); }
.hull__progress { display: none; }

.station--who .who__list { margin-top: clamp(1.5rem, 3vw, 2.5rem); border-color: var(--paper); }
.station--who .who__list li { border-color: var(--paper); padding-block: clamp(0.9rem, 1.6vw, 1.4rem); }
.station--who .who__list h3 { font-size: clamp(1.9rem, 3.6vw, 3.4rem); }
.station--who p { color: var(--soft-on-ink); }

/* Wide screens: the stops sit side by side on a rail that vertical scroll slides along. */
.hull.is-rail { height: calc(100svh + var(--run) * 100svh); }
.is-rail .hull__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.is-rail .hull__rail { display: flex; gap: 0; height: 100%; padding: 0; will-change: transform; }
.is-rail .station { flex: 0 0 100%; display: grid; place-items: center; padding: 5.25rem calc(var(--pad) + 4.5rem) 2.75rem var(--pad); }
.is-rail .station--who .who__list li { padding-block: 0.75rem; }
.is-rail .station--who .who__list h3 { font-size: clamp(1.7rem, 3vw, 2.8rem); }
.is-rail .hull__progress { display: block; position: absolute; left: var(--pad); right: var(--pad); bottom: 1.25rem; height: 3px; background: rgba(242, 244, 248, 0.18); }
.is-rail .hull__progress span { display: block; height: 100%; background: var(--blue-lift); transform-origin: 0 50%; transform: scaleX(0); }
/* The stops by name along that line: the one on screen is lit, and each is a way to jump there. */
.hull__stops { display: none; }
.is-rail .hull__stops { display: block; position: absolute; left: var(--pad); right: var(--pad); bottom: 1.25rem; font-weight: 600; font-size: 0.78rem; line-height: 1; }
.hull__stops a { position: absolute; bottom: 0; transform: translateX(-50%); padding: 0.45rem 0.4rem 0.8rem; white-space: nowrap; text-decoration: none; color: var(--soft-on-ink); transition: color 0.3s var(--ease); }
.hull__stops a::after { content: ""; position: absolute; left: calc(50% - 0.25rem); bottom: -0.16rem; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #55618a; transition: background-color 0.3s var(--ease), transform 0.3s var(--ease); }
.hull__stops a[aria-current] { color: var(--white); }
.hull__stops a[aria-current]::after { background: var(--white); transform: scale(1.5); }
.is-rail .post { padding: 0.45rem 0.45rem 0.7rem; border-radius: 1rem; }
.is-rail .post__day { font-size: 1.3rem; }
.is-rail .post__meta { font-size: 0.72rem; }
.is-rail .post__cap { font-size: 0.8rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Your week, already posted ---------- */

.field { display: grid; gap: 0.45rem; }
.field label, .choice legend { font-weight: 600; font-size: 0.95rem; }
.field input, .field select {
  width: 100%; min-height: 3.25rem; padding: 0.7rem 1rem;
  border: 2px solid transparent; border-radius: 0.9rem;
  background: var(--white); color: var(--ink);
  font-size: max(1rem, 16px);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field input::placeholder { color: #5d6781; }
.field input:focus-visible, .field select:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--white); }
.field__opt { font-weight: 400; opacity: 0.85; }

.choice legend { margin-bottom: 0.45rem; }
.choice__row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: grid; place-items: center; min-height: 3.25rem; padding: 0 1.15rem;
  border-radius: 999px; background: rgba(6, 11, 24, 0.34); color: var(--white); font-weight: 600;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), transform 0.16s var(--ease);
}
.choice label:active span { transform: scale(0.97); }
.choice input:checked + span { background: var(--white); color: var(--ink); }
.choice input:focus-visible + span { outline: 3px solid var(--white); outline-offset: 3px; }
.post {
  display: grid; gap: 0.7rem; align-content: start;
  padding: 0.7rem 0.7rem 1rem; border-radius: 1.4rem;
  background: var(--white); color: var(--ink);
  box-shadow: 0 22px 44px -22px rgba(6, 11, 24, 0.7);
  scroll-snap-align: start;
  container-type: inline-size;
}
.post__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.1rem 0.5rem; padding-inline: 0.3rem; }
.post__day { font-family: var(--display); font-weight: 900; font-size: 1.7rem; line-height: 1; text-transform: uppercase; }
.post__meta { font-size: 0.85rem; color: var(--soft-on-paper); }
.post__art {
  position: relative; isolation: isolate; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 0.9rem;
  display: grid; align-content: end; gap: 0.45rem; padding: 0.95rem;
  background: #10141c; color: var(--white);
  font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: 0.9;
}
.post__art img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.post__art::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(4, 7, 14, 0.72), rgba(4, 7, 14, 0) 58%); }
.post__art::after { content: ""; position: absolute; }
.art__words { font-size: 13.5cqw; text-wrap: balance; overflow-wrap: anywhere; }
.art__biz { display: flex; align-items: center; gap: 0.4rem; font-family: var(--text); font-weight: 600; font-size: 0.78rem; line-height: 1.2; text-transform: none; overflow-wrap: anywhere; }
.art__biz::before { content: ""; flex: none; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--t); box-shadow: 0 0 0 2px var(--white); }

/* headline: the words sit on the photo, underlined in the brand colour */
.art--statement .art__words { padding-bottom: 0.12em; background: linear-gradient(var(--t), var(--t)) 0 100% / 2.2em 0.14em no-repeat; }
/* label: the words on a solid brand-colour tag */
.art--stamp .art__words { justify-self: start; padding: 0.22em 0.32em 0.16em; border-radius: 0.35rem; background: var(--t); font-size: 11.5cqw; }
/* panel: the photo above, the words on a brand-colour block below */
.art--split { padding: 0; gap: 0; }
.art--split::before { background: none; }
.art--split .art__biz { padding: 0.5rem 0.95rem; background: linear-gradient(to top, rgba(4, 7, 14, 0.6), rgba(4, 7, 14, 0)); }
.art--split .art__words { order: 2; padding: 0.85rem 0.95rem 0.95rem; background: var(--t); font-size: 12cqw; }
/* list: a carousel cover, the photo darkened under the list */
.art--list::before { background: linear-gradient(to top, rgba(4, 7, 14, 0.86) 0 55%, rgba(4, 7, 14, 0.2)); }
.art--list .art__words { font-size: 10.5cqw; }

/* format marks, as Instagram shows them */
.is-reel::after { top: 0.8rem; right: 0.8rem; border-left: 0.95rem solid var(--white); border-block: 0.58rem solid transparent; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5)); }
.is-carousel::after { top: 0.85rem; right: 0.8rem; width: 0.95rem; height: 0.95rem; border: 2px solid var(--white); border-radius: 0.2rem; box-shadow: 4px -4px 0 -2px var(--white); filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45)); }
.is-story::after { top: 0.55rem; left: 0.8rem; right: 0.8rem; height: 2px; background: repeating-linear-gradient(90deg, var(--white) 0 23%, transparent 23% 26%); opacity: 0.95; }
.post__cap { padding-inline: 0.3rem; font-size: 0.95rem; line-height: 1.4; color: var(--soft-on-paper); }
.post__cap b { color: var(--ink); font-weight: 600; }

.post.is-building { animation: build 0.45s var(--ease) both; animation-delay: calc(var(--i) * 45ms); }
@keyframes build { from { clip-path: inset(0 0 100% 0 round 1.4rem); transform: translateY(1.2rem); } to { clip-path: inset(0 0 0 0 round 1.4rem); transform: none; } }

/* ---------- What we do, one stop each: a finding, its figure, and what Keel did about it ---------- */
.tells { display: grid; gap: 0.8rem; margin-top: clamp(1.25rem, 2.5vw, 2rem); }
.tell {
  --fig: var(--blue-lift); --fig-rest: rgba(242, 244, 248, 0.14); --fig-soft: var(--soft-on-ink);
  display: grid; grid-template-rows: auto auto 1fr; gap: 0.7rem; padding: 1rem 1rem 1.15rem 1.15rem; border-radius: 1.1rem;
  background: rgba(20, 31, 63, 0.9); border: 1px solid rgba(242, 244, 248, 0.1);
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.tell.is-yes { --fig: var(--white); --fig-rest: rgba(255, 255, 255, 0.28); --fig-soft: var(--white); --focus: var(--white); background: var(--blue); border-color: transparent; }
.tell__top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.tell h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 1.7rem; line-height: 1; letter-spacing: 0.01em; }
.tell__state { padding: 0.42rem 0.9rem; border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 600; font-size: 0.9rem; line-height: 1; transition: background-color 0.3s var(--ease), color 0.3s var(--ease); }
.tell.is-yes .tell__state { background: rgba(6, 11, 24, 0.3); color: var(--white); }
.tell__say { max-width: 24rem; min-height: 2.6em; font-weight: 600; font-size: 1.08rem; line-height: 1.3; text-wrap: balance; transition: opacity 0.16s var(--ease), filter 0.16s var(--ease); }
.tell__say.is-swapping { opacity: 0; filter: blur(3px); }
.tell__fig { align-self: end; display: flex; align-items: center; gap: 1.1rem; min-height: 5.5rem; color: var(--fig-soft); font-size: 0.85rem; line-height: 1.45; transition: color 0.35s var(--ease); }
.tell__fig b { color: var(--paper); font-weight: 600; font-size: 1rem; }

.fig-ring { flex: none; width: 5.5rem; height: 5.5rem; }
.fig-ring circle { fill: none; stroke: var(--fig-rest); stroke-width: 7; transition: stroke 0.35s var(--ease); }
.fig-ring circle + circle { stroke: var(--fig); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; }
.fig-ring text, .fig-rows dd { font-family: var(--display); font-weight: 900; fill: var(--paper); color: var(--paper); }
.fig-ring text { font-size: 18px; }

.fig-bars { flex: none; display: flex; align-items: flex-end; gap: 0.3rem; height: 5.5rem; }
.fig-bars i { display: grid; align-content: end; justify-items: center; width: 1.15rem; height: 100%; font-style: normal; font-size: 0.7rem; line-height: 1; }
.fig-bars i::before { content: ""; width: 100%; height: calc(var(--h) * 4.2rem); margin-bottom: 0.35rem; border-radius: 0.3rem; background: var(--fig-rest); transform-origin: 50% 100%; }
.fig-bars .is-top { color: var(--paper); }
.fig-bars .is-top::before { background: var(--fig); }

.fig-curve { width: 100%; max-width: 14rem; overflow: visible; }
.fig-curve path { fill: none; stroke: rgba(242, 244, 248, 0.3); stroke-width: 1.5; }
.fig-curve .fig-curve__fill { stroke: none; fill: var(--fig); opacity: 0.18; }
.fig-curve .fig-curve__line { stroke: var(--fig); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 100; }
.fig-curve .fig-curve__now { stroke-dasharray: 3 4; }
.fig-curve circle { fill: var(--fig); }
.fig-curve text { fill: currentColor; font-size: 11px; }

.fig-rows { display: grid; gap: 0.55rem; width: 100%; max-width: 20rem; }
.fig-rows div { display: grid; grid-template-columns: 3rem 1fr; align-items: center; gap: 0.6rem; }
.fig-rows dd { display: flex; align-items: center; gap: 0.6rem; font-size: 1.25rem; line-height: 1; }
.fig-rows dd::before { content: ""; flex: 0 1 calc(var(--w) * (100% - 3rem)); height: 1.5rem; border-radius: 0.4rem; background: var(--fig-rest); transform-origin: 0 50%; }
.fig-rows div:first-child dd::before { background: var(--fig); }

/* thirty days as thirty dots, ten to a row */
.fig-days { flex: none; width: 9.5rem; aspect-ratio: 10 / 3; background: radial-gradient(circle closest-side, var(--fig) 0 68%, transparent 72%) 0 0 / 10% 33.34%; }

.fig-steps { display: grid; gap: 0.5rem; }
.fig-steps li { display: flex; align-items: center; gap: 0.6rem; }
.fig-steps li::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; border: 2px solid var(--fig); }
.fig-steps li:first-child { color: var(--paper); font-weight: 600; }
.fig-steps li:first-child::before { background: var(--fig); }

/* Each figure draws itself as its stop arrives. main.js arms the card first, so without it the figure simply sits drawn. */
.js .tell { --draw: 0.9s var(--ease) calc(var(--i, 0) * 90ms + 200ms); }
.js .fig-ring circle + circle { transition: stroke-dashoffset var(--draw), stroke 0.35s var(--ease); }
.js .fig-curve__line { transition: stroke-dashoffset var(--draw); }
.js .fig-curve__fill, .js .fig-curve circle, .js .fig-curve__now { transition: opacity 0.5s var(--ease) 0.75s; }
.js .fig-bars i::before, .js .fig-rows dd::before { transition: transform var(--draw); }
.js .fig-days, .js .fig-steps li { transition: clip-path var(--draw); }
.tell.is-armed:not(.is-in) .fig-ring circle + circle { stroke-dashoffset: 75; }
.tell.is-armed:not(.is-in) .fig-curve__line { stroke-dashoffset: 100; }
.tell.is-armed:not(.is-in) :is(.fig-curve__fill, .fig-curve circle, .fig-curve__now) { opacity: 0; }
.tell.is-armed:not(.is-in) .fig-bars i::before { transform: scaleY(0.04); }
.tell.is-armed:not(.is-in) .fig-rows dd::before { transform: scaleX(0.04); }
.tell.is-armed:not(.is-in) :is(.fig-days, .fig-steps li) { clip-path: inset(0 100% 0 0); }
.fig-days, .fig-steps li { clip-path: inset(0); }
.is-rail .tells { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.tells__head { display: grid; gap: 0.9rem 3rem; }
.tells__head .lede { max-width: 34rem; margin: 0; color: var(--soft-on-ink); }
.tells { display: grid; gap: 0.8rem; margin-top: clamp(1.25rem, 2.5vw, 2rem); }
.tells__note { margin-top: 0.9rem; font-size: 0.85rem; color: var(--soft-on-ink); }
.is-rail .tells__head { grid-template-columns: auto minmax(0, 1fr); align-items: end; }
.is-rail .tells__head .lede { margin-bottom: 0.4rem; }
.is-rail .tells { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.is-rail .station--tells .display { font-size: clamp(2.4rem, 4vw, 4rem); }

/* ---------- Websites: the old site on the left of the line, the new one on the right ---------- */

.site { display: grid; gap: clamp(1.5rem, 3vw, 3rem); }
.site .lede { max-width: 28rem; color: var(--soft-on-ink); }
.site__points { display: grid; gap: 0.9rem; margin-top: clamp(1.25rem, 2.5vw, 2rem); }
.site__points li { padding-top: 0.8rem; border-top: 1px solid var(--rule-on-ink); }
.site__points h3 { font-weight: 600; font-size: 1.1rem; line-height: 1.25; }
.site__points p { margin-top: 0.2rem; max-width: 26rem; color: var(--soft-on-ink); font-size: 0.95rem; }
.is-rail .site { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; }
.is-rail .station--site .display { font-size: clamp(2.4rem, 4.2vw, 4.2rem); }

.ba { --at: 30%; position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 1.1rem; border: 1px solid rgba(242, 244, 248, 0.1); box-shadow: 0 26px 40px -30px #000; container-type: inline-size; }
.ba__side { position: absolute; inset: 0; }
.ba__after { clip-path: inset(0 0 0 var(--at)); display: grid; grid-template-rows: auto 1fr; background: var(--ink); color: var(--white); }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--at); width: 3px; margin-left: -1.5px; background: var(--white); box-shadow: 0 0 12px rgba(6, 11, 24, 0.45); pointer-events: none; }
.ba__line svg { position: absolute; top: 50%; left: 50%; width: 2.75rem; height: 2.75rem; margin: -1.375rem; padding: 0.6rem; border-radius: 50%; background: var(--white); fill: none; stroke: var(--blue); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; box-shadow: 0 6px 16px -6px rgba(6, 11, 24, 0.6); }
.ba__tag { position: absolute; z-index: 1; bottom: 0.7rem; min-width: 5rem; min-height: 2.5rem; padding: 0 1rem; border: 0; border-radius: 999px; background: var(--ink); color: var(--white); font-weight: 600; font-size: 0.9rem; cursor: pointer; box-shadow: 0 6px 16px -6px rgba(6, 11, 24, 0.6); transition: transform 0.16s var(--ease), background-color 0.2s var(--ease); }
.ba__tag::after { content: ""; position: absolute; inset: -0.4rem; }
.ba__tag:active { transform: scale(0.96); }
.ba__tag--before { left: 0.7rem; box-shadow: 0 0 0 1.5px rgba(242, 244, 248, 0.55), 0 6px 16px -6px rgba(6, 11, 24, 0.6); }
.ba__tag--after { right: 0.7rem; background: var(--blue); }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.ba:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }

/* the old site: everything a tired small-business page does, drawn small on purpose */
.ba__before { display: grid; align-content: start; gap: 3cqw; padding: 4cqw; background: #e9e4d4; color: #222; font-family: "Times New Roman", Times, serif; font-size: 3.4cqw; line-height: 1.3; }
.old__bar { padding: 1.2cqw 1.6cqw; background: #cfc8b0; color: #1a1ab8; font-size: 2.7cqw; text-decoration: underline; }
.old__title { color: #7a1010; font-size: 6.4cqw; font-weight: 700; text-align: center; }
.old__box { display: grid; place-items: center; height: 30cqw; border: 1px solid #888; background: #d6d0bd; color: #555; font-size: 2.8cqw; letter-spacing: 0.12em; text-transform: uppercase; }
.old__foot { color: #555; font-size: 2.6cqw; text-align: center; }

/* the new one: one photo, one line, one button */
.new__nav { display: flex; align-items: center; justify-content: space-between; padding: 2.6cqw 4cqw; background: var(--white); color: var(--ink); font-size: 3.6cqw; }
.new__nav span { padding: 1.3cqw 3.2cqw; border-radius: 999px; background: var(--blue); color: var(--white); font-weight: 600; font-size: 3cqw; }
.new__hero { position: relative; isolation: isolate; display: grid; align-content: end; gap: 3cqw; padding: 5cqw 4cqw max(14cqw, 4.25rem); }
.new__hero img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.new__hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(4, 7, 14, 0.88), rgba(4, 7, 14, 0.1) 70%); }
.new__h { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 11cqw; line-height: 0.9; text-wrap: balance; }
.new__cta { display: flex; flex-wrap: wrap; gap: 1.6cqw; font-weight: 600; font-size: 3.4cqw; }
.new__cta span { padding: 2cqw 4cqw; border-radius: 999px; background: var(--paper); color: var(--ink); }
.new__cta span + span { background: none; color: var(--white); box-shadow: inset 0 0 0 1.5px var(--white); }
.new__proof { font-size: 2.9cqw; }

@media (min-width: 48rem) {
  .ba { aspect-ratio: 4 / 3; }
  .ba__before { font-size: 2.3cqw; gap: 2cqw; }
  .old__bar { font-size: 1.9cqw; }
  .old__title { font-size: 4.4cqw; }
  .old__box { height: 20cqw; font-size: 1.9cqw; }
  .old__foot { font-size: 1.8cqw; }
  .new__nav { font-size: 2.4cqw; padding: 1.8cqw 3cqw; }
  .new__nav span { font-size: 2cqw; }
  .new__hero { padding: 3cqw 3cqw max(9cqw, 4.25rem); gap: 2cqw; }
  .new__h { font-size: 8cqw; }
  .new__cta { font-size: 2.2cqw; }
  .new__proof { font-size: 1.9cqw; }
}

/* ---------- See it at work: a made-up business per tab ---------- */

.eg__head { display: grid; gap: 1rem 3rem; }
.station--eg .choice input:not(:checked) + span { background: rgba(242, 244, 248, 0.12); }
.eg__cards { display: grid; gap: 0.8rem; margin-top: clamp(1.25rem, 2.5vw, 2rem); }
.eg { display: grid; grid-template-rows: auto 1fr; gap: 1rem; padding: 1.15rem; border-radius: 1.1rem; background: rgba(20, 31, 63, 0.9); border: 1px solid rgba(242, 244, 248, 0.1); animation: msg-in 0.35s var(--ease) both; }
.eg:nth-child(2) { animation-delay: 70ms; }
.eg:nth-child(3) { animation-delay: 140ms; }
.eg h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 1.7rem; line-height: 1; letter-spacing: 0.01em; }
.eg .post { width: min(100%, 15rem); align-self: center; justify-self: center; }
.eg__thread { display: flex; flex-direction: column; gap: 0.6rem; }
.eg__thread .msg { animation: none; }
.eg__month { display: grid; align-content: start; gap: 1.4rem; padding-top: 0.5rem; }
.eg__month div { display: grid; grid-template-columns: 4.6rem 1fr; align-items: center; gap: 0.9rem; }
.eg__month dt { font-family: var(--display); font-weight: 900; font-size: 3.4rem; line-height: 0.85; color: var(--blue-lift); font-variant-numeric: tabular-nums; }
.eg__month dd { font-weight: 600; line-height: 1.25; }
.eg__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1.5rem; margin-top: 0.9rem; }
.eg__foot .eg__note { margin-top: 0; }
.start__cta { margin-top: clamp(2rem, 4vw, 3rem); }
.hero__sub .hero__for { margin-top: 0.6rem; font-size: 0.95rem; font-weight: 600; }
.eg__note { margin-top: 0.9rem; font-size: 0.85rem; color: var(--soft-on-ink); }
.is-rail .eg__head { grid-template-columns: auto auto; justify-content: space-between; align-items: end; }
.is-rail .eg__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.is-rail .eg__month { height: 100%; align-content: space-evenly; padding-top: 0; }
.is-rail .eg__month div { grid-template-columns: 6rem 1fr; }
.is-rail .eg__month dt { font-size: 4.6rem; }

/* ---------- Who it's for ---------- */

.who__list { margin-top: clamp(3rem, 6vw, 5rem); border-bottom: 3px solid var(--ink); }
.who__list li { display: grid; gap: 0.5rem 3rem; padding-block: clamp(1.4rem, 2.5vw, 2.2rem); border-top: 3px solid var(--ink); }
.who__list h3 {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.1rem, 5.6vw, 5rem); line-height: 0.9;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}
.who__list p { max-width: 30rem; align-self: center; }

/* ---------- Below the waterline ---------- */

.hull, .faq, .foot { --focus: var(--white); }
[data-draught] { position: relative; overflow: hidden; }
[data-draught]::after {
  content: attr(data-draught); position: absolute; right: -0.03em; top: 0.12em;
  font-family: var(--display); font-weight: 900; font-size: clamp(9rem, 30vw, 28rem); line-height: 0.8; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 2px rgba(242, 244, 248, 0.12); pointer-events: none;
}
[data-draught] > .wrap { position: relative; z-index: 1; }

.msg { display: grid; gap: 0.2rem; max-width: 88%; align-self: flex-start; animation: msg-in 0.32s var(--ease) both; transform-origin: 0 100%; }
.msg__when { font-size: 0.75rem; color: var(--soft-on-ink); padding-inline: 0.6rem; }
.msg__text { padding: 0.65rem 0.9rem; border-radius: 1.15rem 1.15rem 1.15rem 0.35rem; background: #1c2a4f; color: var(--paper); font-size: 0.95rem; line-height: 1.38; }
.msg--me { align-self: flex-end; justify-items: end; transform-origin: 100% 100%; }
.msg--me .msg__text { background: var(--blue); color: var(--white); border-radius: 1.15rem 1.15rem 0.35rem 1.15rem; }
@keyframes msg-in { from { opacity: 0; transform: translateY(0.5rem) scale(0.96); } to { opacity: 1; transform: none; } }

/* ---------- Why Keel ---------- */

.why__text { display: grid; gap: 1.25rem; max-width: 34rem; margin-top: clamp(1.5rem, 3vw, 2.5rem); font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); line-height: 1.42; }

/* ---------- Questions ---------- */

.faq { background: var(--deep); color: var(--paper); padding-block: var(--section); }
.faq__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.faq__list { border-bottom: 2px solid var(--rule-on-ink); }
.faq details { border-top: 2px solid var(--rule-on-ink); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.3rem 0; cursor: pointer; list-style: none;
  font-weight: 600; font-size: clamp(1.2rem, 1rem + 1vw, 1.8rem); line-height: 1.2;
  transition: color 0.18s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 1.2rem; height: 1.2rem;
  background: linear-gradient(currentColor, currentColor) center / 100% 3px no-repeat, linear-gradient(currentColor, currentColor) center / 3px 100% no-repeat;
  transition: transform 0.25s var(--ease);
}
.faq summary:active { color: var(--blue-lift); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { max-width: 42rem; padding-bottom: 1.5rem; color: var(--soft-on-ink); }

/* ---------- Book a demo ---------- */

.demo { background: var(--blue); color: var(--white); padding-block: var(--section); --focus: var(--white); }
.demo .lede { color: var(--soft-on-blue); }
.demo .lede a { color: inherit; text-underline-offset: 0.2em; }
.demo__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: start; }
.demo__form { display: grid; gap: 1.1rem; }
.demo__form .btn { justify-self: start; margin-top: 0.5rem; }
.demo__error { grid-column: 1 / -1; padding: 0.9rem 1.1rem; border-radius: 0.9rem; background: var(--ink); color: var(--white); }
.demo__done { animation: msg-in 0.3s var(--ease) both; display: grid; gap: 0.75rem; align-content: center; padding: clamp(1.75rem, 4vw, 3rem); border-radius: 1.6rem; background: var(--ink); color: var(--paper); }
.demo__done-big { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(3rem, 6vw, 5rem); line-height: 0.95; }
.demo__form .btn:disabled { opacity: 0.7; cursor: progress; }
.hp { position: absolute; left: -200vw; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */

.foot { background: #03060f; color: var(--soft-on-ink); padding-block: clamp(3rem, 6vw, 5rem) calc(clamp(3rem, 6vw, 5rem) + env(safe-area-inset-bottom, 0px)); --logo-keel: url(#keel-grad); }
.foot__grid { display: grid; gap: 1rem; }
.foot__brand { display: grid; width: 11rem; margin-bottom: 0.5rem; color: var(--paper); }
.foot__logo { width: 100%; height: auto; }
.foot__auto { margin: -0.1rem 0 0 40.5%; font-weight: 600; font-size: 0.8rem; letter-spacing: 0.5em; text-transform: uppercase; white-space: nowrap; }
.foot a { color: var(--paper); }
.foot__small { font-size: 0.9rem; }

/* ---------- Hover, only where there is a pointer that can hover ---------- */

@media (hover: hover) and (pointer: fine) {
  .btn:hover .btn__arrow { transform: translateX(3px) scale(1.05); }
  .nav__links a:hover { background-size: 100% 2px; }
  .ba__tag--before:hover { background: #1c2a4f; }
  .ba__tag--after:hover { background: #1f47e0; }
  .hull__stops a:hover { color: var(--white); }
  .choice label:hover span { background: rgba(6, 11, 24, 0.5); }
  .who__list li:hover h3 { color: var(--blue); transform: translateX(0.15em); }
  .faq summary:hover { color: var(--blue-lift); }
}

/* ---------- Wider screens ---------- */

@media (min-width: 48rem) {
  .hero__sub { right: auto; bottom: max(4.75rem, 9svh); }
  .who__list li { grid-template-columns: 1.25fr 1fr; align-items: center; }
  .tells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq__grid { grid-template-columns: 0.8fr 1.2fr; }
  .demo__grid { grid-template-columns: 1fr 1fr; }
  .demo__form { grid-template-columns: 1fr 1fr; }
  .demo__form .field:nth-of-type(3), .demo__form .btn { grid-column: 1 / -1; }
  .foot__grid { grid-template-columns: auto 1fr auto auto; align-items: end; gap: 2.5rem; }
  .foot__brand { margin-bottom: 0; }
}

/* Between phone and wide, the nav links take the middle of the pill, so the reading steps aside. */
@media (min-width: 48rem) and (max-width: 67.99rem) {
  .depth { display: none; }
}

@media (min-width: 68rem) {
  .depth {
    top: 22vh; left: auto; right: max(1rem, env(safe-area-inset-right, 0px)); transform: none; z-index: 15;
    flex-direction: column; align-items: flex-end; gap: 0.35rem;
  }
  .depth__label { display: block; font-size: 0.8rem; opacity: 0.8; }
  .depth__value { font-size: 1.5rem; }
  .depth__scale {
    display: block; position: relative; width: 0.7rem; height: 8.5rem; margin-top: 0.4rem;
    background: repeating-linear-gradient(to bottom, currentColor 0 2px, transparent 2px 1.0625rem);
  }
  .depth__mark { position: absolute; right: -0.15rem; top: 0; width: 1.6rem; height: 4px; background: var(--blue); transform: translateY(var(--at, 0)); transition: transform 0.3s var(--ease), background-color 0.6s var(--ease); }
  body[data-tone="dark"] .depth { color: var(--paper); }
  body[data-tone="dark"] .depth__mark { background: var(--blue-lift); }
  body[data-tone="blue"] .depth { color: var(--white); }
  body[data-tone="blue"] .depth__mark { background: var(--white); }
}

/* ---------- Still version: reduced motion, or ?still for captures ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
.still *, .still *::before, .still *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }

@media (min-width: 80rem) {
  .post { padding: 0.5rem 0.5rem 0.8rem; border-radius: 1.1rem; }
  .post__cap { font-size: 0.85rem; }
  .post__day { font-size: 1.45rem; }
  .post__meta { font-size: 0.78rem; }
}

/* ---------- Automations ---------- */

.auto { display: grid; gap: clamp(1.5rem, 3vw, 3rem); }
.auto__intro > p:first-of-type { margin-top: 1rem; max-width: 30rem; color: var(--soft-on-ink); }
.auto__count { display: flex; align-items: flex-end; gap: 0.6rem; margin-top: 1.4rem; }
.auto__hrs { font-family: var(--display); font-weight: 900; font-size: clamp(4.5rem, 9vw, 8.5rem); line-height: 0.8; font-variant-numeric: tabular-nums; color: var(--white); }
.auto__unit { padding-bottom: 0.3rem; font-weight: 600; line-height: 1.2; color: var(--blue-lift); }
.auto__days { margin-top: 0.6rem; font-weight: 600; }
.auto__log { display: flex; align-items: center; gap: 0.6rem; margin-top: 1.1rem; padding: 0.55rem 0.9rem; width: fit-content; max-width: 100%; border-radius: 999px; background: rgba(125, 155, 255, 0.12); font-size: 0.9rem; color: var(--soft-on-ink); }
.auto__log i { flex: none; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.6); }
.auto__log.is-new i { animation: ping 0.9s var(--ease); }
.auto__log.is-new span { animation: log-in 0.35s var(--ease); }
@keyframes ping { to { box-shadow: 0 0 0 0.6rem rgba(61, 220, 151, 0); } }
@keyframes log-in { from { opacity: 0; transform: translateY(0.4rem); } }

.auto__jobs { display: grid; gap: 0.6rem; }
.auto__row { margin: 0; padding: 0.7rem 0.8rem 0.8rem; min-width: 0; border-radius: 1.1rem; background: rgba(20, 31, 63, 0.9); border: 1px solid rgba(242, 244, 248, 0.1); box-shadow: 0 26px 40px -30px #000; will-change: transform; }
.auto__row legend { padding: 0; margin-bottom: 0.45rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-lift); }
.auto__row label { position: relative; cursor: pointer; }
.auto__row input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.auto__row span {
  display: flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; padding: 0.45rem 0.9rem 0.45rem 0.55rem;
  border-radius: 0.8rem; background: rgba(242, 244, 248, 0.06); font-weight: 600; font-size: 0.95rem; line-height: 1.2;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.16s var(--ease);
}
.auto__row span::before { content: ""; flex: none; width: 1.35rem; height: 1.35rem; border-radius: 0.4rem; border: 2px solid rgba(242, 244, 248, 0.35); background: center / 0.8rem no-repeat; transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease); }
.auto__row b { margin-left: auto; padding-left: 0.6rem; font-size: 0.85rem; color: var(--blue-lift); font-variant-numeric: tabular-nums; transition: color 0.3s var(--ease); }
.auto__row label:active span { transform: scale(0.98); }
.auto__row input:checked + span { background: var(--blue); color: var(--white); }
.auto__row input:checked + span::before { border-color: var(--white); background-color: var(--white); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%232f5bff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); animation: tick 0.35s var(--ease); }
.auto__row input:checked + span b { color: var(--white); }
.auto__row input:focus-visible + span { outline: 3px solid var(--white); outline-offset: 2px; }
@keyframes tick { from { transform: scale(0.5); } }
.auto__note { font-size: 0.85rem; color: var(--soft-on-ink); }
@media (hover: hover) { .auto__row label:hover input:not(:checked) + span { background: rgba(242, 244, 248, 0.12); } }
.auto__opts { display: grid; gap: 0.45rem; }
@media (min-width: 40rem) { .auto__opts { grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); } }
.is-rail .auto { grid-template-columns: minmax(18rem, 0.8fr) 1.35fr; align-items: center; width: min(100%, 84rem); }

/* ---------- How it starts ---------- */

.start { position: relative; background: var(--deep); color: var(--paper); padding-block: var(--section); }
.start__steps { position: relative; display: grid; gap: 2rem; margin-top: clamp(2.25rem, 4vw, 3.5rem); }
.start__steps li { display: grid; gap: 0.4rem; align-content: start; }
.start__n { font-family: var(--display); font-weight: 900; font-size: 2.6rem; line-height: 1; color: var(--blue-lift); }
.start__steps h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 0.95; }
.start__steps p { color: var(--soft-on-ink); max-width: 22rem; }
.js .start__steps li { clip-path: inset(0 0 100% 0); transform: translateY(0.6rem); transition: clip-path 0.55s var(--ease) calc(var(--i) * 160ms + 250ms), transform 0.55s var(--ease) calc(var(--i) * 160ms + 250ms); }
.js .start__steps.is-in li { clip-path: inset(-1rem); transform: none; }
@media (min-width: 48rem) {
  .start__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem; padding-top: 2rem; }
  .start__steps::before, .start__steps::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--rule-on-ink); }
  .start__steps::after { background: var(--blue-lift); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.1s var(--ease) 0.15s; }
  .start__steps.is-in::after { transform: none; }
}
.start__n { text-transform: uppercase; }
.start__aim { margin-top: clamp(3rem, 6vw, 5rem); font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 0.95; }
.start__goals { display: grid; gap: 1.5rem 2.5rem; margin-top: 1.5rem; }
.start__goals li { padding-top: 1rem; border-top: 2px solid var(--blue-lift); }
.start__goals h4 { font-weight: 600; font-size: 1.2rem; line-height: 1.25; }
.start__goals p { margin-top: 0.35rem; max-width: 24rem; color: var(--soft-on-ink); }
@media (min-width: 48rem) { .tells { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 48rem) { .start__goals { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Why the keel matters ---------- */

.why { background: var(--deep); color: var(--paper); padding-block: 0 var(--section); }
.why .why__text { margin-top: 0; }
