@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f5f1eb;
  --ink: #2b211a;
  --muted: #8a7a6c;
  --accent: #ec5b24;
  --trust: #1d3d5c;
  --ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

body {
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* Fixed chrome: language top-right, legal links bottom. */
.chrome {
  position: fixed;
  left: 0; right: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  font-family: var(--ui);
  font-size: 14px;
  color: var(--muted);
  pointer-events: none;
}
.chrome.end { justify-content: flex-end; }
.chrome.top { top: 0; }
.chrome.bottom { bottom: 0; }
.chrome a { pointer-events: auto; text-decoration: none; }
.chrome a:hover, .chrome a:focus-visible { color: var(--ink); text-decoration: underline; }
.chrome nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* The track is the scroll distance; the stage stays put while the text rises. */
.track {
  position: relative;
  height: 380vh;
}

.intro {
  position: absolute;
  top: 23vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  text-align: center;
}

.name {
  position: relative;
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--trust);
  white-space: nowrap;
}
/* A small hint under the name, with a thin line drawing down towards the text. */
.cue {
  position: relative;
  display: block;
  margin-top: 18px;
  font-family: var(--ui);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.45;
  transition: opacity 0.4s;
}
.cue::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 12px);
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, transparent, var(--ink));
  transform-origin: top;
  animation: draw 2.4s ease-in-out infinite;
}
@keyframes draw {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 80px 24px 0;
  perspective: 240px;
  transform-style: preserve-3d;
}

.crawl {
  width: 100%;
  max-width: 900px;
  margin: 0;
  text-align: center;
  font-size: clamp(26px, 6vw, 60px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.05em;
  color: var(--accent);
  transform-style: preserve-3d;
  transform: rotateX(26deg) translateY(var(--y, 0px));
  will-change: transform;
}

/* The principles stand apart: each on its own line, in ink. */
.crawl .value, .words .value { display: block; color: var(--trust); }
.crawl .value:first-of-type, .words .value:first-of-type { margin-top: 0.15em; }

/* The closing line: flat, face-on and huge, landing after the text. */
.finale {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0 24px;
  text-align: center;
  text-wrap: balance;
  font-size: clamp(64px, 12vw, 190px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.055em;
  color: var(--accent);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  will-change: transform, opacity;
}

/* Text surfaces out of the paper at the bottom of the screen. */
.stage::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 45%;
  background: linear-gradient(to bottom, transparent, var(--paper) 85%);
  pointer-events: none;
}

/* ------------------------------------------------------------ phones
   landing.js marks <html> with .m-words on narrow screens. */

/* The original paragraph stays for search engines and screen readers
   while a phone layout animates a copy of it. */
.sr-copy {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Each word stands up and lights as you reach it. */
.m-words .track { height: 500vh; }
.m-words .finale { font-size: 21vw; }
.m-words .stage::after { height: 22%; }
.words {
  position: absolute;
  left: 0; right: 0; top: 0;
  padding: 0 28px;
  font-size: 12vw;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.045em;
  color: var(--ink);
  will-change: transform;
}
.words .w {
  display: inline-block;
  transform-origin: 50% 100%;
  color: var(--muted);
  transition: color 0.35s;
}
.words .w.lit { color: var(--accent); }
.words .value { white-space: nowrap; }
.words .value .w.lit { color: var(--trust); }

/* Reduced motion: no tilt, no travel, the text simply stands. */
.static .track { height: auto; }
.static .intro { position: static; transform: none; padding-top: 96px; }
.static .cue { display: none; }
.static .stage { position: static; height: auto; perspective: none; padding: 40px 24px 120px; flex-direction: column; align-items: center; }
.static .stage::after { display: none; }
.static .crawl { transform: none; }
.static .finale { position: static; opacity: 1; visibility: visible; font-size: clamp(48px, 12vw, 120px); padding-bottom: 120px; }

@media (max-width: 560px) {
  .chrome { padding: 16px; font-size: 13px; }
  .chrome nav { gap: 14px; }
  .stage { padding: 80px 32px 0; perspective: 420px; }
}
