@font-face {
  font-family: "Vela Mono";
  src: url("../assets/roboto-mono-latin.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Vela Sans";
  src: url("../assets/inter-latin.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --color-bg: #000;
  --color-text: #d9d9d9;
  --color-muted: #858585;
  --color-line: #202020;
  --font-mono: "Vela Mono", "SFMono-Regular", Consolas, monospace;
  --font-sans: "Vela Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--color-bg); scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--color-bg); color: var(--color-text); font-family: var(--font-mono); -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; cursor: pointer; border: 0; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 1px solid #dedede; outline-offset: 5px; }
img, svg { display: block; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
::selection { color: #000; background: #d9d9d9; }

.skip-link { position: fixed; top: -60px; left: 20px; z-index: 100; background: #dedede; color: #000; padding: 12px; font-size: 12px; }
.skip-link:focus { top: 10px; }
.site-header { height: 48px; position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 0 40px; background: transparent; }
.site-header.is-scrolled { background: var(--color-bg); }
.brand-link { display: inline-flex; flex: 0 0 auto; align-items: center; }
.brand-mark { display: block; width: 120px; height: 38px; background: url("../assets/vela-logo.svg") center / contain no-repeat; }
.desktop-nav { display: flex; align-self: stretch; gap: 0; }
.nav-link { position: relative; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; background: none; color: #666; font-size: 12px; white-space: nowrap; transition: color 150ms ease; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--color-text); }
.nav-link[aria-current="page"]::after { content: ""; height: 1px; position: absolute; bottom: 4px; left: 0; right: 0; background: #ccc; }
.copy-icon { width: 11px; height: 11px; margin-left: 6px; }
.mobile-page-title, .menu-toggle, .mobile-nav { display: none; }

.hero { height: 652px; position: relative; isolation: isolate; background: #0a0a0a; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: -48px 0 0; background: url("../assets/hero-background-desktop.webp") center bottom / cover no-repeat; }
.hero-content { padding: 149px 24px 0; text-align: center; }
.hero-eyebrow { color: #686868; font-size: 12px; line-height: 18px; }
.hero h1 { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 18px 0 16px; font-size: clamp(36px, 3.62vw, 52px); font-weight: 400; line-height: 1.2; letter-spacing: -1.5px; }
.hero h1 em { font-family: "Times New Roman", Georgia, serif; font-size: 1.08em; font-weight: 400; letter-spacing: -1px; white-space: nowrap; }
.cosmic-spark { width: 71px; height: 71px; flex-shrink: 0; object-fit: contain; }
.hero-description { max-width: 960px; margin: 0 auto; font-size: 14px; line-height: 18px; color: #909090; }
.download-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 420px; gap: 20px; margin: 39px auto 0; }
.download-button { min-width: 200px; height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 18px; border-radius: 4px; background: #dedede; color: #000; font-size: 14px; font-weight: 400; white-space: nowrap; transition: background 150ms ease, transform 150ms ease; }
.download-button svg { width: 15px; height: 15px; }
.download-button:hover { background: #fff; transform: translateY(-1px); }
.download-button:active { transform: translateY(0); }

.story { display: grid; grid-template-columns: 440px minmax(0, 600px); gap: 80px; max-width: 1120px; min-height: 424px; margin: 0 auto; padding: 105px 0 96px; }
.story-identity h2 { margin-top: 37px; font-size: 34px; line-height: 42px; letter-spacing: -1.5px; font-weight: 400; }
.story-identity h2 span { color: #383838; }
.story-copy h3 { margin-bottom: 20px; font: italic 14px/17px Georgia, "Times New Roman", serif; }
.story-copy p { font-size: 12px; line-height: 15px; color: var(--color-muted); }
.story-copy p + p { margin-top: 14px; }
.story-copy .story-closing { margin-top: 20px; color: var(--color-text); }

.site-footer { min-height: 158px; border-top: 1px solid #191919; padding: 21px 40px 25px; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; font-size: 12px; line-height: 18px; }
.copyright { color: #383838; }
.footer-links { display: flex; gap: 52px; padding: 8px 20px 0 0; }
.footer-column { display: flex; align-items: flex-start; flex-direction: column; gap: 20px; }
.footer-link { padding: 0; display: inline-flex; align-items: center; background: none; color: var(--color-text); font-size: 12px; line-height: 18px; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.footer-link:hover { color: #fff; }
.notice { position: fixed; top: 48px; right: 40px; z-index: 50; width: max-content; max-width: min(360px, calc(100vw - 32px)); padding: 14px 20px; border-radius: 4px; background: #aaa; color: #080808; box-shadow: 0 5px 24px #0004; font-size: 10px; line-height: 15px; white-space: pre-line; overflow-wrap: anywhere; }
.noscript-message { padding: 24px; text-align: center; font-size: 12px; color: var(--color-muted); }
.noscript-message a { text-decoration: underline; }

@media (min-width: 1441px) {
  .hero { height: min(48.61vw, 860px); }
  .hero-content { padding-top: clamp(151px, 11.2vw, 220px); }
}

@media (min-width: 701px) and (max-width: 1199px) {
  .story { margin: 0 7%; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr); gap: 60px; }
  .hero h1 { gap: 10px; font-size: clamp(30px, 3.75vw, 45px); }
  .cosmic-spark { width: 50px; height: 50px; }
  .hero-description { max-width: 80%; }
  .desktop-break { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
