@font-face { font-family: "DM Sans"; src: url(fonts/dm-sans.woff2) format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(fonts/instrument-serif.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(fonts/instrument-serif-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --ink: #05060a;
  --text: #f5f5f7;
  --dim: rgba(245, 245, 247, 0.72);
  --faint: rgba(245, 245, 247, 0.44);
  --gold: #dcc09a;   /* Vesper's side: the ground */
  --blue: #6ea8ff;   /* Symbaiotic's side: the day */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  background: var(--ink);
  color-scheme: dark;
  scroll-snap-type: y mandatory;
  -webkit-text-size-adjust: 100%;
}
html.jump { scroll-snap-type: none; scroll-behavior: auto; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ── the scene ── */
#scene {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100lvh;
  display: block; z-index: 0;
  background: var(--ink);
}
/* no WebGL: a still of the hinge */
.nogl #scene { display: none; }
.nogl body {
  background:
    radial-gradient(60vw 26vh at 50% 60%, rgba(255, 196, 140, 0.34), transparent 70%),
    linear-gradient(180deg, #070914 0%, #171530 44%, #4a2a30 59.7%, #f0c79b 60%, #1b1418 60.4%, #07080c 100%) fixed;
}

/* ── sections: one screen each ── */
.sc {
  position: relative; z-index: 1;
  height: 100svh;
  scroll-snap-align: start; scroll-snap-stop: always;
  display: flex; flex-direction: column; align-items: center;
  padding: clamp(104px, 17.5svh, 180px) 24px 0;
  text-align: center;
}
.copy { width: min(100%, 880px); }
.hero .copy { width: min(100%, 1040px); }

.js [data-r] { opacity: 0; will-change: opacity, transform; }

h1, h2 {
  margin: 0;
  font-family: var(--serif); font-weight: 400;
  letter-spacing: -0.018em;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(4, 6, 14, 0.5);
}
h1 { font-size: clamp(46px, 7.4vw, 112px); line-height: 0.96; }
h2 { font-size: clamp(34px, 4.9vw, 72px); line-height: 1.02; }
h1 em, h2 em { font-style: italic; }
h1 em {
  background: linear-gradient(90deg, #ecd0a6 0%, #f3ead9 48%, #a9c8ff 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  padding: 0 0.06em 0.08em 0; margin-right: -0.06em;   /* the italic overhang must stay inside the clip */
  text-shadow: none;
}
.gold { color: var(--gold); }
.blue { color: var(--blue); }

p { margin: 0; }
.lede, .sub {
  margin: clamp(18px, 2.4vh, 28px) auto 0;
  max-width: 34em;
  font-size: clamp(16px, 1.32vw, 20px); line-height: 1.5;
  color: var(--dim);
  text-wrap: balance;
  text-shadow: 0 1px 18px rgba(4, 6, 14, 0.6);
}
.lede span, .sub span { display: inline-block; }

/* ── chrome ── */
.nav {
  position: fixed; z-index: 5; top: 0; left: 0; right: 0;
  height: 72px; padding: 0 clamp(20px, 3.2vw, 44px);
  display: flex; align-items: center; justify-content: space-between;
  pointer-events: none;
  animation: arrive 1.4s var(--ease) 0.5s both;
}
.nav a { pointer-events: auto; text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 17px; letter-spacing: -0.01em; }
.brand { gap: 14px; }
.brand .mark { height: 28px; width: auto; flex: none; display: block; }
.brand b { font-weight: 600; }
.brand span { font-weight: 400; color: var(--dim); }
.brand span b { color: var(--text); }
.nav nav { display: flex; gap: 30px; }
.nav nav a { color: var(--dim); font-size: 14.5px; transition: color 0.25s; }
.nav nav a:hover { color: var(--text); }

.rail {
  position: fixed; z-index: 5; top: 50%; right: clamp(10px, 1.6vw, 26px);
  transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  animation: arrive 1.4s var(--ease) 0.9s both;
}
.rail button {
  all: unset; position: relative; cursor: pointer;
  width: 5px; height: 5px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.3);
  transition: height 0.4s var(--ease), background 0.4s;
}
.rail button::before { content: ""; position: absolute; inset: -5px -11px; }
.rail button:hover { background: rgba(255, 255, 255, 0.7); }
.rail button.on { height: 20px; background: #fff; }

a:focus-visible, button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 6px; }

/* ?og: the social card capture, without the page furniture */
.og .rail, .og .cue, .og .nav nav { display: none; }

@keyframes arrive { from { opacity: 0; } to { opacity: 1; } }

/* scroll cue: a line that fills and falls away */
.cue {
  all: unset; cursor: pointer;
  position: absolute; left: 0; right: 0; bottom: clamp(20px, 4.4svh, 42px);
  margin: 0 auto; width: max-content;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--faint);
}
.cue i {
  width: 1px; height: 34px;
  background: linear-gradient(#fff, rgba(255, 255, 255, 0));
  transform-origin: top;
  animation: drip 2.6s var(--ease) infinite;
}
@keyframes drip {
  0% { transform: scaleY(0); opacity: 0; }
  40% { transform: scaleY(1); opacity: 0.75; }
  100% { transform: translateY(18px) scaleY(1); opacity: 0; }
}

/* ── the close: the two companies, either side of the star ── */
.pair {
  position: absolute; left: 0; right: 0; bottom: clamp(84px, 13svh, 150px);
  margin: 0 auto; width: min(calc(100% - 40px), 980px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 12vw, 200px);
}
.co {
  display: block; text-align: left; text-decoration: none; color: var(--text);
  padding: 22px 24px 20px; border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  transition: transform 0.5s var(--ease), border-color 0.4s, background 0.4s;
}
.co:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.07); }
.co.v:hover { border-color: rgba(220, 192, 154, 0.55); }
.co.s:hover { border-color: rgba(110, 168, 255, 0.6); }
.co b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.01em; }
.co span { display: block; margin-top: 6px; font-size: 14.5px; line-height: 1.45; color: var(--dim); }
.co i { display: inline-block; margin-top: 14px; font-style: normal; font-size: 13.5px; }
.co.v i { color: var(--gold); }
.co.s i { color: var(--blue); }
.co i::after { content: " \2197"; display: inline-block; transition: transform 0.4s var(--ease); }
.co:hover i::after { transform: translate(2px, -2px); }

.foot {
  position: absolute; left: 0; right: 0; bottom: clamp(18px, 3svh, 30px);
  font-size: 12.5px; color: var(--faint); text-align: center;
}

/* ── phones ── */
@media (max-width: 720px) {
  .nav { height: 60px; }
  .brand { gap: 11px; }
  .brand .mark { height: 24px; }
  .nav nav { display: none; }
  .sc { padding: clamp(84px, 15svh, 130px) 26px 0; }
  h1 { font-size: clamp(42px, 12.4vw, 58px); line-height: 0.98; }
  h2 { font-size: clamp(32px, 9.4vw, 44px); line-height: 1.04; }
  .lede, .sub { font-size: 16px; max-width: 21.5em; }
  .rail { right: 8px; gap: 8px; }
  .pair { gap: 12px; bottom: 70px; width: calc(100% - 36px); }
  .co { padding: 16px 14px 14px; border-radius: 18px; }
  .co b { font-size: 21px; }
  .co span { font-size: 12.5px; }
  .co i { font-size: 12.5px; margin-top: 10px; }
}

/* short screens (a phone on its side) */
@media (max-height: 520px) {
  .sc { padding-top: 72px; }
  h1 { font-size: clamp(34px, 6vw, 52px); }
  h2 { font-size: clamp(28px, 4.6vw, 40px); }
  .cue, .rail { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cue i, .nav, .rail { animation: none; }
  .co, .co i::after { transition: none; }
}
