/* ═══ TOKENS ═══ */
:root {
  --bg: #0b0b0c;
  --bg-2: #121214;
  --bg-3: #1a1a1d;
  --line: rgba(236, 232, 223, .12);
  --line-strong: rgba(236, 232, 223, .28);
  --text: #ece8df;
  --muted: #9b978e;
  --accent: #ff5a36;
  --accent-ink: #0b0b0c;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --pad: clamp(1.25rem, 4vw, 4rem);
  --max: 1680px;
  --nav-h: 4.5rem;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* ═══ RESET ═══ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) - 1rem); background: var(--bg); }
body { margin: 0; font: 400 1rem/1.6 var(--font); color: var(--text); background: var(--bg); overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
code { font-family: var(--mono); font-size: .85em; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }
body.is-locked { overflow: hidden; }

.skip { position: fixed; left: 1rem; top: -4rem; z-index: 200; background: var(--text); color: var(--bg); padding: .6rem 1rem; transition: top .2s; }
.skip:focus { top: 1rem; }

/* ═══ TYPE ═══ */
.mono { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow { color: var(--muted); margin-bottom: 1.25rem; }
.display { font-weight: 800; font-stretch: 75%; font-size: clamp(2.4rem, 6.2vw, 6rem); line-height: .95; letter-spacing: -.02em; text-transform: uppercase; text-wrap: balance; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -.01em; color: var(--accent); }
.dot { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent); vertical-align: middle; margin-right: .4rem; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ═══ BUTTONS ═══ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3.1rem; padding: 0 1.6rem; font: 600 .8rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--line-strong); border-radius: 999px; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease); position: relative; overflow: hidden; white-space: nowrap; }
.btn:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn:active { transform: scale(.97); }
.btn--accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn--accent:hover { background: var(--text); border-color: var(--text); }
.btn--ghost { background: rgba(11, 11, 12, .35); backdrop-filter: blur(6px); }
.btn--sm { min-height: 2.5rem; padding: 0 1.1rem; font-size: .7rem; }

/* ═══ NAV ═══ */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h); padding: 0 var(--pad); display: flex; align-items: center; gap: 2rem; transition: background .35s, backdrop-filter .35s, transform .4s var(--ease); }
.nav.is-solid { background: rgba(11, 11, 12, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo { font-weight: 900; font-stretch: 75%; font-size: 1.5rem; letter-spacing: -.02em; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; margin-right: auto; transition: background .3s, color .3s; }
.nav__logo:hover { background: var(--text); color: var(--bg); }
.nav__links { display: flex; gap: 2rem; }
.nav__links a { font: 500 .72rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: .6rem 0; position: relative; transition: color .25s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .2rem; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__toggle { display: none; width: 2.75rem; height: 2.75rem; position: relative; border: 1px solid var(--line-strong); border-radius: 50%; }
.nav__toggle span { position: absolute; left: 50%; width: 1.1rem; height: 1.5px; background: var(--text); transform: translateX(-50%); transition: transform .35s var(--ease); }
.nav__toggle span:first-child { top: calc(50% - 4px); }
.nav__toggle span:last-child { top: calc(50% + 3px); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateX(-50%) translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateX(-50%) translateY(-3.5px) rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 90; background: var(--bg); padding: calc(var(--nav-h) + 2rem) var(--pad) 2rem; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; animation: fade .35s var(--ease); }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { font-weight: 800; font-stretch: 75%; text-transform: uppercase; font-size: clamp(2.4rem, 11vw, 4rem); line-height: 1.1; padding: .35rem 0; border-bottom: 1px solid var(--line); }
.menu .btn { align-self: stretch; min-height: 3.6rem; }
@keyframes fade { from { opacity: 0; } }

@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
}

/* ═══ REVEAL ═══ */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ═══ FOOTER ═══ */
.footer { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 2rem var(--pad) calc(2rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--muted); }
.footer a:hover { color: var(--accent); }

/* ═══ REDUCED MOTION ═══ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
