:root {
  --sand: #efe9de;
  --sea: #6fa392;
  --copper: #d4793a;
  --rust: #7b3218;
  --deep: #17392f;
  --ink-dark: #1d2422;
  --ink-deep: #0e2620;
  --ink-rust: #2b1307;
  --ink-light: #f7e8d9;
  --ink-foam: #e4efe9;
  --serif: "Newsreader Variable", Georgia, serif;
  --mono: "Geist Mono Variable", ui-monospace, monospace;
  --edge: clamp(10px, 2.2vmin, 16px);
  --rail: 6px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body { background: var(--sand); color: var(--ink-dark); font-family: var(--serif); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
html.lenis, html.lenis body { height: auto; }

.sec {
  position: relative;
  min-height: calc(var(--h) * 1vh);
  height: calc(var(--h) * 1vh);
  background: var(--bg);
  color: var(--ink);
  display: flex;
  align-items: center;
  padding: clamp(18px, 5vmin, 56px);
  padding-right: calc(var(--edge) * 2 + 28px);
  overflow: hidden;
}
.sec::after {
  /* the fine grain of the paint */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .09; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}
.sec__body { position: relative; z-index: 1; max-width: min(34rem, 100%); }

.brand {
  position: absolute; top: clamp(14px, 4vmin, 28px); left: clamp(18px, 5vmin, 56px); z-index: 2;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: clamp(11px, 1.9vmin, 13px); letter-spacing: .08em; text-transform: uppercase;
}
.brand svg { width: 18px; height: 18px; }

.eyebrow { font-family: var(--mono); font-size: clamp(10px, 1.7vmin, 12px); letter-spacing: .12em; text-transform: uppercase; opacity: .72; margin-bottom: clamp(8px, 2vmin, 16px); }
.title {
  font-weight: 380; font-variation-settings: "opsz" 72; letter-spacing: -.02em; line-height: .96;
  font-size: clamp(28px, min(8.6vw, 11vh), 92px); text-wrap: balance;
}
.lede { margin-top: clamp(10px, 2.4vmin, 22px); font-size: clamp(13px, min(2.2vw, 3.3vh), 19px); line-height: 1.4; max-width: 30em; opacity: .86; }
.spec { margin-top: clamp(12px, 3vmin, 26px); display: flex; flex-wrap: wrap; gap: 6px 22px; font-family: var(--mono); font-size: clamp(10px, 1.7vmin, 12px); letter-spacing: .06em; text-transform: uppercase; }
.spec span { padding-top: 7px; border-top: 1px solid color-mix(in srgb, currentColor 35%, transparent); opacity: .82; }
.spec b { font-weight: 600; opacity: 1; }

.horizon { position: absolute; left: 0; right: 0; bottom: clamp(18px, 8vh, 64px); height: 1px; background: color-mix(in srgb, var(--ink) 40%, transparent); }
.horizon__boat { position: absolute; left: 6%; bottom: -2px; width: clamp(30px, 6vmin, 46px); color: var(--ink); }
.horizon__boat svg { display: block; width: 100%; height: auto; overflow: visible; }
.horizon__boat path { fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }

.cta { position: relative; display: inline-flex; margin-top: clamp(14px, 3.4vmin, 28px); padding: 12px 20px; border-radius: 999px; text-decoration: none; color: var(--deep); font-family: var(--mono); font-size: clamp(11px, 1.8vmin, 13px); letter-spacing: .06em; text-transform: uppercase; }
.cta__bg { position: absolute; inset: 0; border-radius: inherit; background: var(--ink-foam); }
.cta__txt { position: relative; }

/* ---- the rail and its tiles ---- */
.rail { position: fixed; top: var(--edge); bottom: var(--edge); right: var(--edge); z-index: 10; width: 0; }
.rail__col {
  position: absolute; top: 0; bottom: 0; right: 0; width: var(--rail);
  display: flex; flex-direction: column; align-items: flex-end; gap: 3px; cursor: pointer;
}
.tile {
  position: relative; flex: var(--grow) 1 0; min-height: 0; width: var(--rail);
  border: 0; border-radius: 3px; background: var(--bg); color: var(--ink); cursor: pointer;
  font: inherit; text-align: left; overflow: hidden; padding: 0;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 32%, transparent), 0 0 0 1px color-mix(in srgb, white 18%, transparent);
  -webkit-tap-highlight-color: transparent;
  transition: box-shadow .6s ease;
}
.rail.is-open .tile {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 16%, transparent), inset 0 1px 0 color-mix(in srgb, white 26%, transparent),
    0 2px 4px -2px rgba(20, 12, 6, .25), 0 22px 44px -22px rgba(20, 12, 6, .55);
}
.tile__glow { position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(120% 90% at var(--gx, 70%) var(--gy, 50%), color-mix(in srgb, white 30%, transparent), transparent 60%); }
.tile__in { position: absolute; inset: 0; padding: clamp(8px, 1.8vmin, 14px) clamp(10px, 2vmin, 16px); opacity: 0; pointer-events: none; display: flex; flex-direction: column; justify-content: space-between; min-width: 200px; }
.tile__name { font-size: clamp(17px, min(3vw, 3.6vh), 26px); font-weight: 420; font-variation-settings: "opsz" 36; letter-spacing: -.01em; line-height: 1; transform-origin: 0 100%; display: inline-block; }
.tile__note { font-family: var(--mono); font-size: clamp(9px, 1.5vmin, 11px); letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.tile.is-short .tile__note { display: none; }
.tile__here { position: absolute; top: clamp(8px, 1.8vmin, 14px); right: clamp(10px, 2vmin, 16px); font-family: var(--mono); font-size: clamp(9px, 1.5vmin, 11px); letter-spacing: .08em; text-transform: uppercase; opacity: 0; }
.tile__thumb { position: absolute; top: 50%; right: clamp(10px, 2.4vmin, 20px); width: clamp(34px, 7vmin, 58px); height: clamp(34px, 7vmin, 58px); margin-top: calc(clamp(34px, 7vmin, 58px) / -2); pointer-events: none; opacity: 0; }
.tile__thumb svg { width: 100%; height: 100%; display: block; border-radius: 10px; background: color-mix(in srgb, var(--ink) 9%, transparent); box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--ink) 70%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--ink) 18%, transparent); }
.tile__thumb path, .tile__thumb circle, .tile__thumb line { fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.tile.is-short .tile__thumb { display: none; }
.tile:focus-visible { outline: 2px solid var(--ink-dark); outline-offset: 2px; }

.rail__mark { position: absolute; left: -13px; top: 0; width: 8px; height: 10px; margin-top: -5px; z-index: 3; pointer-events: none; color: var(--ink-dark); }
.rail__mark svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.rail__line { position: absolute; left: 0; right: 0; top: 0; height: 1px; margin-top: -.5px; z-index: 2; pointer-events: none; opacity: 0; background: currentColor; }

.rail__tip {
  position: absolute; right: calc(var(--rail) + 22px); top: 0; transform: translateY(-50%); white-space: nowrap; pointer-events: none;
  padding: 6px 10px; border-radius: 999px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  background: var(--ink-dark); color: var(--sand); opacity: 0; box-shadow: 0 6px 18px -8px rgba(0,0,0,.5);
}
