/* Shared structure for every option. Each vN.css sets the tokens and look. */

:root {
  --bg: #e4e9ea;
  --ink: #22292c;
  --muted: #56656b;
  --storm-bg: #1b2d3b;
  --storm-ink: #eef1f1;
  --storm-muted: #b7c4c9;
  --reach-bg: #1b2d3b;
  --reach-ink: #eef1f1;
  --reach-muted: #b7c4c9;
  --head-bg: rgba(27, 45, 59, 0.94);
  --head-ink: #eef1f1;
  --rock: #141718;
  --joint: #e4e9ea;
  --serif: Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 6vw, 96px);
  --indent: clamp(0px, 16vw, 260px);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }

.skip { position: absolute; left: 16px; top: -100px; background: #fff; color: #000; padding: 8px 12px; z-index: 50; }
.skip:focus { top: 12px; }

/* Header: fixed, transparent over the hero, solid once scrolled ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  color: var(--head-ink);
  transition: background-color 200ms ease, box-shadow 200ms ease;
}
.site-header.scrolled { background: var(--head-bg); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.site-header .brand { font-size: 18px; }
.site-header nav { display: flex; gap: clamp(16px, 3vw, 36px); font-size: 0.9375rem; }
.site-header nav a { text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.site-header nav a:hover { border-bottom-color: currentColor; }

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

.storm { position: relative; background: var(--storm-bg); color: var(--storm-ink); overflow: hidden; isolation: isolate; }
.swell { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero {
  padding: calc(var(--header-h) + clamp(56px, 12vh, 140px)) var(--gutter) clamp(40px, 8vh, 96px);
  padding-left: calc(var(--gutter) + var(--indent));
}
.hero h1 { max-width: 11ch; }
.sub { color: var(--storm-muted); margin-top: 1.1rem; max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 2rem; }
.launch { font-size: 0.9375rem; border: 1px solid currentColor; border-radius: 999px; padding: 6px 16px 7px; opacity: 0.85; }
.button {
  display: inline-block; font-size: 0.9375rem; font-weight: 500; text-decoration: none;
  background: var(--storm-ink); color: var(--storm-bg); padding: 10px 20px 11px; border-radius: 999px;
}
.button:hover { opacity: 0.9; }
.badge { display: none; }

/* The breakwater -------------------------------------------------------- */

.wall { display: block; width: 100%; height: clamp(110px, 12vw, 190px); }
.wall .mass { fill: var(--rock); }
.wall .block, .wall .rock { fill: var(--rock); stroke: var(--joint); stroke-width: 2.25; stroke-linejoin: round; }

@media (prefers-reduced-motion: no-preference) {
  .wall .block, .wall .rock {
    animation: settle 800ms cubic-bezier(.2, .7, .2, 1) both;
    animation-delay: calc(var(--i) * 9ms + 150ms);
  }
  @keyframes settle { from { transform: translateY(24px); opacity: 0; } }
}

/* Sections -------------------------------------------------------------- */

.section {
  padding: clamp(80px, 11vw, 150px) var(--gutter);
  display: grid;
  grid-template-columns: var(--indent) minmax(0, 42rem);
  align-items: start;
}
.section + .section { padding-top: 0; }
.section > h2 { margin-bottom: 1.25rem; }
.body > * + * { margin-top: 1rem; }
.lede { max-width: 30ch; }

.steps { list-style: none; padding: 0; display: grid; gap: 0; margin-top: 2.25rem !important; }
.steps li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); column-gap: 0.75rem; padding: 1.1rem 0; border-top: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); }
.steps li:last-child { border-bottom: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); }
.steps .n { grid-row: span 2; color: var(--muted); }
.steps h3 { font-size: 1.0625rem; font-weight: 500; }
.steps p { color: var(--muted); }
.after { color: var(--muted); }

.founder .body { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 32px; align-items: start; }
.founder .body > * + * { margin-top: 0; }
.portrait {
  width: 168px; aspect-ratio: 4 / 5; display: grid; place-items: center; text-align: center;
  background: color-mix(in srgb, var(--ink) 10%, var(--bg)); color: var(--muted); font-size: 0.8125rem; padding: 12px;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.name { font-size: 1.375rem; line-height: 1.25; }
.place { color: var(--muted); font-size: 0.9375rem; margin: 0.15rem 0 1rem; }

.reach { background: var(--reach-bg); color: var(--reach-ink); }
.section.reach { padding-top: clamp(80px, 11vw, 150px); }
.reach .body > p { color: var(--reach-muted); max-width: 36rem; }
.big-email { display: inline-block; margin-top: 1.75rem !important; overflow-wrap: anywhere; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 2.75rem 0 0 !important; padding-top: 1.5rem; border-top: 1px solid color-mix(in srgb, var(--reach-ink) 22%, transparent); }
.facts dt { font-size: 0.8125rem; color: var(--reach-muted); }
.facts dd { margin: 0.2rem 0 0; }

.site-footer {
  background: var(--reach-bg); color: var(--reach-muted); font-size: 0.875rem;
  padding: 26px var(--gutter) 34px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  border-top: 1px solid color-mix(in srgb, var(--reach-ink) 14%, transparent);
}

/* Small screens --------------------------------------------------------- */

@media (max-width: 720px) {
  :root { --indent: 0px; --header-h: 100px; }
  .site-header { flex-wrap: wrap; align-content: center; row-gap: 12px; }
  .site-header .brand { font-size: 14px; }
  .site-header nav { width: 100%; gap: 20px; font-size: 0.875rem; }
  .section { grid-template-columns: minmax(0, 1fr); }
  .founder .body { grid-template-columns: 1fr; gap: 20px; }
  .portrait { width: 140px; }
  .facts { grid-template-columns: 1fr; gap: 14px; }
}

/* Very narrow phones (iPhone SE and similar) */
@media (max-width: 360px) {
  .site-header .brand { font-size: 13px; }
  .site-header nav { gap: 14px; font-size: 0.8125rem; }
}

/* Phones in landscape: a slim single-row header so the short screen isn't lost to it */
@media (max-width: 900px) and (max-height: 500px) {
  :root { --header-h: 60px; }
  .site-header { flex-wrap: nowrap; }
  .site-header .brand { font-size: 13px; }
  .site-header nav { width: auto; gap: 16px; font-size: 0.8125rem; }
}
