@property --glow { syntax: '<color>'; inherits: true; initial-value: #C9A24D; }

:root {
  --bg: #070A14;
  --ink: #F6F3EC;
  --muted: #A5A9B8;
  --gold: #C9A24D;
  --line: rgba(246, 243, 236, .12);
  --glow: #C9A24D;
  --display: 'Unbounded', 'Be Vietnam Pro', system-ui, sans-serif;
  --body: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --nav-h: 64px;
  transition: --glow .9s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.75 var(--body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.2; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: #1a1405; padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--glow); z-index: 60; }

/* ambient light follows the field being read */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 80% 30%, color-mix(in srgb, var(--glow) 16%, transparent), transparent 70%),
              radial-gradient(50% 40% at 10% 90%, color-mix(in srgb, var(--glow) 9%, transparent), transparent 70%); }
main, .footer { position: relative; z-index: 1; }

/* nav */
.nav { position: fixed; top: 0; inset-inline: 0; height: var(--nav-h); z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(7, 10, 20, .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--line); }
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.mark { font: 700 1.25rem var(--display); text-decoration: none; letter-spacing: -.01em; }
.mark span, .word .tld, .pass__name span { color: var(--gold); }
.nav__links { display: flex; gap: 28px; font-size: .9rem; color: var(--muted); }
.nav__links a { text-decoration: none; transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { display: none; font-weight: 500; text-decoration: none; border: 1px solid var(--gold); color: var(--gold); padding: 6px 16px; border-radius: 999px; font-size: .9rem; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 999px; font: 500 .98rem var(--body); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .2s, background .2s, border-color .2s, color .2s; }
.btn--gold { background: var(--gold); color: #17110a; }
.btn--gold:hover { background: #d9b360; }
.btn--ghost, .btn--line { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover, .btn--line:hover { border-color: var(--glow); color: var(--ink); }
.btn:active { transform: translateY(1px); }

/* hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
#stage { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,10,20,.55) 0%, rgba(7,10,20,.1) 40%, rgba(7,10,20,.85) 100%); pointer-events: none; }
.hero__in { position: relative; padding-top: var(--nav-h); }
.hero__title { display: flex; flex-direction: column; gap: 20px; }
.word { font: 700 clamp(4.5rem, 17vw, 12rem)/.95 var(--display); letter-spacing: -.04em; }
.sub { font: 300 clamp(1.15rem, 2.4vw, 1.75rem)/1.4 var(--body); max-width: 30ch; color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__facts { margin: 32px 0 0; color: var(--muted); font-size: .95rem; }

/* sections */
.sec { padding: clamp(72px, 12vw, 140px) 0; }
h2 { font: 600 clamp(1.7rem, 4vw, 2.6rem)/1.2 var(--display); letter-spacing: -.02em; margin-bottom: 20px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 48ch; }

/* profile */
.profile { display: grid; gap: 48px; align-items: center; }
.profile__text p { color: var(--muted); max-width: 40ch; }
.pass { position: relative; border: 1px solid var(--line); border-radius: 24px; padding: 48px 32px 32px; background: linear-gradient(160deg, rgba(246,243,236,.06), rgba(246,243,236,.01)); box-shadow: 0 0 80px -30px var(--glow); }
.pass__hole { position: absolute; top: 16px; left: 50%; width: 52px; height: 8px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); transform: translateX(-50%); }
.pass__name { font: 700 2.2rem var(--display); letter-spacing: -.03em; margin-bottom: 24px; }
.pass__list > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.pass__list dt { color: var(--muted); font-size: .92rem; }
.pass__list dd { margin: 0; }
.pass__note { color: var(--muted); font-size: .95rem; margin: 20px 0; }

/* fields */
.fields { padding: clamp(40px, 8vw, 80px) 0 clamp(72px, 12vw, 140px); }
.fields__head { max-width: 56ch; margin-bottom: 48px; }
.fields__head p { color: var(--muted); font-size: 1.1rem; }
.fields__grid { display: grid; gap: 0; }
.index { position: sticky; top: var(--nav-h); z-index: 20; display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; background: rgba(7,10,20,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); scrollbar-width: none; margin-inline: -20px; padding-inline: 20px; }
.index::-webkit-scrollbar { display: none; }
.index a { flex: none; text-decoration: none; font-size: .88rem; color: var(--muted); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; white-space: nowrap; transition: color .25s, border-color .25s, background .25s; }
.index a.on { color: var(--ink); border-color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
.panel { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; padding: 56px 0; border-top: 1px solid var(--line); max-width: 640px; position: relative; }
.panel h3 { font: 600 clamp(1.5rem, 3.2vw, 2.1rem)/1.25 var(--display); letter-spacing: -.02em; }
.panel .tag { margin: 14px 0 20px; font-size: 1.25rem; font-weight: 500; color: var(--c); }
.panel p { color: #d8d6d0; }
.uses-label { margin: 12px 0 8px !important; font-size: .9rem; color: var(--muted) !important; }
.uses { margin-bottom: 28px; }
.uses li { position: relative; padding: 8px 0 8px 22px; border-bottom: 1px solid var(--line); }
.uses li::before { content: ''; position: absolute; left: 0; top: 1.05em; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.panel .pick { align-self: flex-start; }
.panel .pick:hover { border-color: var(--c); }
.fields__close { margin-top: 56px; font-size: 1.15rem; max-width: 52ch; color: var(--ink); }

/* facts */
.facts { margin-top: 48px; display: grid; gap: 0; }
.facts li { padding: 28px 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.num { font: 700 clamp(2.2rem, 6vw, 3.6rem)/1 var(--display); color: var(--gold); letter-spacing: -.03em; }
.facts p { margin: 0; color: var(--muted); max-width: 52ch; }
.facts a { color: var(--ink); text-underline-offset: 3px; }

/* steps */
.steps { margin-top: 48px; display: grid; gap: 0; counter-reset: s; }
.steps li { counter-increment: s; padding: 24px 0 24px 64px; border-top: 1px solid var(--line); position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 22px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); display: grid; place-items: center; font: 600 1rem var(--display); }
.steps h3 { font: 600 1.15rem var(--body); margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); }
.legal { margin-top: 32px; color: var(--muted); font-size: .95rem; max-width: 60ch; }

/* contact */
.contact__grid { display: grid; gap: 48px; }
.direct { margin-top: 32px; display: grid; gap: 14px; }
.direct li { display: grid; grid-template-columns: 70px 1fr; align-items: baseline; border-top: 1px solid var(--line); padding-top: 14px; }
.direct span { color: var(--muted); font-size: .92rem; }
.direct a { font-size: 1.25rem; font-weight: 500; text-underline-offset: 4px; overflow-wrap: anywhere; }
.form { border: 1px solid var(--line); border-radius: 24px; padding: 28px; background: rgba(246,243,236,.03); }
.field { margin-bottom: 18px; display: grid; gap: 6px; }
.field label { font-size: .92rem; color: var(--muted); }
.opt { opacity: .7; }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: rgba(7,10,20,.7); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 48px; }
select option { background: #0e1220; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,77,.25); }
input[aria-invalid="true"] { border-color: #ff7a7f; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form__msg { min-height: 1.5em; font-size: .95rem; color: var(--gold); margin-bottom: 8px; }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 48px 0 56px; color: var(--muted); font-size: .92rem; }
.footer .mark { color: var(--ink); display: inline-block; margin-bottom: 16px; }
.footer p { max-width: 70ch; }
.footer a { color: var(--ink); text-underline-offset: 3px; }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (min-width: 900px) {
  .nav__cta { display: none; }
  .profile { grid-template-columns: 1fr 1fr; gap: 80px; }
  .fields__grid { grid-template-columns: 300px 1fr; gap: 64px; align-items: start; }
  .index { flex-direction: column; top: calc(var(--nav-h) + 24px); margin: 0; padding: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; overflow: visible; gap: 2px; align-self: start; }
  .index a { border: 0; border-left: 2px solid var(--line); border-radius: 0; padding: 8px 14px; white-space: normal; font-size: .95rem; background: none !important; }
  .index a.on { border-left-color: var(--c); }
  .panel { min-height: 78vh; }
  .facts { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .facts li { padding-right: 16px; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .steps li { padding: 64px 0 0; }
  .steps li::before { top: 16px; }
  .contact__grid { grid-template-columns: 1fr 1.1fr; gap: 80px; }
}
@media (max-width: 899px) {
  .nav__links { display: none; }
  .nav__cta { display: inline-block; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  :root { transition: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
