:root {
  --bg: #07080d;
  --panel: #0e1018;
  --line: #1c2030;
  --text: #f2f3f7;
  --muted: #8b90a3;
  --cyan: #33e1ff;
  --magenta: #d94bff;
  --font: -apple-system, "SF Pro Display", "Segoe UI", Inter, system-ui, sans-serif;
  --nav-h: 52px;
  /* Hero art width. Background.jpeg is 2752x1536 (h/w = 0.558). */
  --art-w: clamp(900px, 110vw, 1600px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(16px, 4vw);
  background: rgba(7, 8, 13, .75);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  font-size: 14px;
}
.nav a { text-decoration: none; }
.nav__brand { font-weight: 600; }
.nav__links { display: flex; gap: clamp(14px, 3vw, 32px); color: var(--muted); }
.nav__links a:hover, .nav__links a:focus-visible { color: var(--text); }

/* Shared type */
.grad {
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  margin: 0 0 14px;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.btn {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 24px;
  border: 0; border-radius: 999px;
  background: #fff; color: #000;
  font: 600 15px var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover, .btn:focus-visible { transform: translateY(-1px); box-shadow: 0 0 24px rgba(51, 225, 255, .35); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; box-shadow: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* Hero
   The R in Background.jpeg is centred at (55.25%, 49%), not (50%, 50%), so the
   art is shifted by that point. It is also pulled up by 22% of its height to
   crop the top. The spacer reserves the R's height (its bottom sits at ~43% of
   the art height after the shift; 0.47 leaves a margin), so the text always
   starts below the R, whatever the window height. */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - var(--nav-h));
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 0 16px;
}
.hero__art {
  position: absolute; top: 0; left: 50%;
  width: var(--art-w);
  transform: translate(-55.25%, -22%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%, #000 78%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 22%, #000 78%, transparent 100%);
  pointer-events: none;
}
.hero__art::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(7, 8, 13, 0) 45%, var(--bg) 96%);
}
.hero__img { display: block; width: 100%; height: auto; }
.hero__spacer { flex: 0 0 calc(var(--art-w) * 0.558 * 0.47); }
.hero__content {
  position: relative; z-index: 2;
  margin-top: auto;
  padding: 24px 0 8vh;
}
.hero__title {
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

/* Chapters: one idea per screen */
.chapter {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 96px 16px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, .04);
}
.chapter--travel { background: radial-gradient(ellipse at 50% 0%, rgba(51, 225, 255, .08), transparent 70%); }
.chapter__icon { width: 72px; height: 72px; margin-bottom: 24px; }
.chapter__title, .section__title {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.chapter__text {
  max-width: 34ch;
  margin: 20px 0 0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--muted);
}

/* Links + contact */
.section {
  padding: clamp(96px, 16vh, 160px) 16px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, .04);
}
.links {
  list-style: none;
  margin: 36px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
}
.pill {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid var(--line); border-radius: 999px;
  text-decoration: none; font-weight: 500;
  transition: border-color .2s ease, color .2s ease;
}
.pill:hover, .pill:focus-visible { border-color: var(--cyan); color: var(--cyan); }

.contact { max-width: 520px; margin: 36px auto 0; text-align: left; }
.field { display: block; margin-top: 14px; }
.field__label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 12px;
  background: #11131c; color: var(--text);
  font: 16px var(--font);
  resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--magenta); box-shadow: 0 0 0 3px rgba(217, 75, 255, .2); }
.contact .btn { display: block; margin: 24px auto 0; }
.contact__status { min-height: 1.5em; margin: 14px 0 0; text-align: center; color: #ff8fa3; }
.contact__note { margin: 4px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.thanks { margin-top: 36px; font-size: 1.2rem; }
.thanks img { display: block; margin: 0 auto 16px; }

.foot {
  padding: 28px 16px;
  text-align: center; font-size: 13px; color: #555a6b;
  border-top: 1px solid rgba(255, 255, 255, .05);
}

/* Scroll reveal: hidden only when JS is running (.js set inline in <head>) */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--d, 0) * 80ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Short, wide windows (laptops): scale the art and title with viewport height
   too, so the headline and the YouTube button fit on the first screen. The R
   stays centred because the art's translate is in percent. Inside @supports so
   older browsers keep the width-only values above. */
@supports (height: 100svh) {
:root { --art-w: min(max(900px, 110vw), 1600px, 150svh); }
/* Floor drops below 2.6rem only on very short screens (under ~690px tall). */
.hero__title { font-size: clamp(min(2.6rem, 6svh), min(8vw, 6.5svh), 6rem); }
.hero .btn { margin-top: clamp(16px, 3svh, 28px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}
