:root {
  --bg: #0B0B0C;              /* solid black fallback when WebGL is unavailable */
  --ink: #F5F5F4;
  --ink-soft: #A3A3A3;
  --btn: #000000;
  --btn-hover: #1C1C1E;
  --r-pill: 999px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --pad-x: clamp(18px, 4vw, 56px);
}

* { margin: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Rethink Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

/* ---------- hero: one full-viewport frame ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  height: 100vh; height: 100svh; min-height: 520px;
}
.hero-shader {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
  display: block; background: var(--bg); pointer-events: none;
}
.hero-wordmark {
  position: absolute; top: 40px; left: 2vw; width: fit-content; z-index: 1;
  font-size: min(29.25vw, 40.3vh); font-weight: 800; letter-spacing: -0.035em; line-height: 0.82;
  white-space: nowrap;
  padding-right: 0.08em; /* room for the x, which overhangs its box with the tight tracking */
}
.wm-x { margin-left: 0.06em; }

/* shimmer: an off-white band sweeps across the white letters, then rests */
.hero-wordmark {
  color: var(--ink); /* fallback where background-clip: text is unsupported */
  background: linear-gradient(105deg,
    #F5F5F4 0%, #F5F5F4 40%, #A8A8A4 48%, #A8A8A4 52%, #F5F5F4 60%, #F5F5F4 100%);
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-wordmark { animation: shimmer 1.6s linear infinite; }
}
@keyframes shimmer {
  0% { background-position: 100% 0; }
  85%, 100% { background-position: 0% 0; }
}

/* headline + button along the bottom of the frame */
.deck {
  position: absolute; left: 0; right: 0; bottom: 5vh; z-index: 1;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  padding: 0 var(--pad-x);
}
h2 { font-size: clamp(2rem, 3.6vw, 3.3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; max-width: 22ch; }
.deck-left p { margin-top: 14px; font-size: 19px; color: var(--ink-soft); max-width: 46ch; font-weight: 500; line-height: 1.45; }

/* ---------- button ---------- */
.btn {
  flex-shrink: 0;
  display: inline-flex; align-items: center;
  background: var(--btn); color: #fff; border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-pill); padding: 16px 12px 16px 30px;
  font-weight: 700; font-size: 18px; text-decoration: none; white-space: nowrap;
  transition: transform 0.16s var(--ease-out), background-color 0.16s ease;
}
.btn-orb {
  display: grid; place-items: center; width: 38px; height: 38px; margin-left: 18px;
  border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.16);
  transition: transform 0.16s var(--ease-out);
}
.btn-orb .ico { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--btn-hover); }
  .btn:hover .btn-orb { transform: translate(2px, -1px) scale(1.05); }
}
.btn:active { transform: scale(0.97); }

@media (max-width: 860px) {
/* ---------- small screens: full-width wordmark up top; centered copy + full-width button at the bottom ---------- */
  .hero { display: flex; flex-direction: column; padding: 11vh 24px 7vh; }
  .hero-wordmark {
    position: relative; top: auto; left: auto; width: auto; margin: 0;
    /* the word is ~2.1em wide (incl. its right padding), so this spans the content width */
    font-size: calc((100vw - 48px) / 2.1);
  }
  .deck {
    position: relative; left: auto; right: auto; bottom: auto;
    flex-direction: column; align-items: stretch; gap: 28px; text-align: center;
    margin-top: auto; padding: 0;
  }
  h2 { font-size: clamp(2rem, 8vw, 2.9rem); max-width: none; }
  .deck-left p { margin: 14px auto 0; max-width: 42ch; font-size: 17px; }
  /* full-width button: label centered, arrow pinned to the right edge */
  .btn { position: relative; width: 100%; justify-content: center; padding-left: 58px; padding-right: 58px; }
  .btn-orb { position: absolute; right: 10px; top: 50%; margin: -19px 0 0; }
}
@media (max-width: 720px) {
  .btn { padding-top: 14px; padding-bottom: 14px; font-size: 16.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .btn-orb { transition: none; }
}
