/* ViCruX / Nebularis design system
   Scientific identity (Nebularis): silver-grey + Yamaha blue.
   Corporate identity (ViCruX): orange + purple accents, used sparingly.
   Logo concepts are provisional; the wordmark is plain text until the Aims True finals arrive. */

:root {
  --bg: #05070d;
  --bg-2: #0a0f1c;
  --panel: #0d1424;
  --panel-2: #111a2e;
  --line: #1f2b42;
  --line-strong: #2c3c5c;
  --text: #eef2f8;
  --silver: #c9d1de;
  --muted: #9aa6ba;
  --blue: #1d4ed8;          /* Yamaha-blue fill */
  --blue-bright: #5b9bff;   /* Yamaha-blue on dark text/links (AA on --bg) */
  --blue-glow: #3d8bff;
  --orange: #ff7a2f;        /* corporate accent */
  --purple: #a78bfa;        /* corporate accent (text-safe tint) */
  --ok: #4ade80;
  --warn: #fbbf24;
  --err: #fca5a5;
  --radius: 14px;
  --wrap: 1180px;
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: Inter, "Segoe UI", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.site {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.site *, .site *::before, .site *::after { box-sizing: border-box; }
.site img { max-width: 100%; height: auto; display: block; }
.site a { color: var(--blue-bright); text-underline-offset: 3px; }
.site a:hover { color: #8db9ff; }
.site :focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 3px; border-radius: 4px; }
.site h1, .site h2, .site h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
.site p { margin: 0; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--blue); color: #fff !important; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.kicker { font: 400 .74rem/1.4 var(--font-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--blue-bright); }
.kicker.corp { color: var(--orange); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--silver); max-width: 64ch; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 76px; }
.brand-link { display: flex; align-items: center; flex: none; border-radius: 8px; }
.brand-logo img { display: block; height: 58px; width: auto; max-width: none; }
@media (max-width: 639px) { .brand-logo img { height: 46px; } }
.footer-logo img { display: block; width: min(280px, 100%); height: auto; margin-bottom: 14px; }
.about-logo img { display: block; width: min(560px, 100%); height: auto; }
.wordmark { display: flex; flex-direction: column; text-decoration: none; color: var(--text) !important; line-height: 1.1; }
.wordmark b { font: 700 1.25rem var(--font-display); letter-spacing: .02em; }
.wordmark b span { color: var(--orange); }
.wordmark small { font: 400 .6rem var(--font-mono); letter-spacing: .18em; color: var(--muted); text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { color: var(--silver); text-decoration: none; font-size: .93rem; padding: 8px 11px; border-radius: 8px; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: #fff; background: var(--panel-2); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line-strong); color: var(--text); border-radius: 8px; padding: 8px 12px; font: inherit; cursor: pointer; }
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .main-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 12px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px; font-size: 1rem; }
  .main-nav .btn { margin-top: 8px; text-align: center; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 10px; font: 600 .95rem var(--font-body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.btn-primary { background: var(--blue); color: #fff !important; }
.btn-primary:hover { background: #2563eb; }
.btn-ghost { background: transparent; color: var(--text) !important; border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--silver); }
.btn-corp { background: transparent; color: var(--text) !important; border-color: color-mix(in srgb, var(--orange) 60%, transparent); }
.btn-corp:hover { border-color: var(--orange); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 12px; margin-bottom: 34px; max-width: 760px; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.page-hero { padding: clamp(56px, 9vw, 120px) 0 clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 80% 0%, #12244d66, transparent 55%), radial-gradient(ellipse at 0% 100%, #2a165566, transparent 50%); }
.page-hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.2rem); margin: 14px 0 18px; max-width: 18ch; }

/* Home hero */
.hero { position: relative; min-height: min(88vh, 860px); display: grid; align-items: center; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; z-index: -2; background: var(--bg); }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; max-width: none; }
.hero-bg::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--bg) 8%, #05070dd9 45%, #05070d66 75%, #05070d99), linear-gradient(0deg, var(--bg), transparent 40%); }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); max-width: 13ch; margin: 18px 0 22px; }
.hero h1 .accent { background: linear-gradient(100deg, #fff, var(--silver) 40%, var(--blue-bright)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-bottom: 30px; }
.hero-credit { position: absolute; right: 16px; bottom: 10px; font: .66rem var(--font-mono); color: #8d97aa; }
.journey-link { margin-top: 26px; display: inline-flex; gap: 10px; align-items: center; color: var(--silver) !important; text-decoration: none; font-size: .95rem; }
.journey-link b { color: #fff; }
.journey-link .dot { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; }

.atom { position: absolute; right: max(4vw, 16px); top: 50%; width: min(36vw, 420px); aspect-ratio: 1; transform: translateY(-50%); z-index: -1; opacity: .8; pointer-events: none; }
.atom i { position: absolute; inset: 0; border: 1px solid #9fb6dd55; border-radius: 50%; }
.atom i:nth-child(1) { transform: rotate(0deg) scaleY(.36); animation: orbit 14s linear infinite; }
.atom i:nth-child(2) { transform: rotate(60deg) scaleY(.36); animation: orbit2 18s linear infinite; }
.atom i:nth-child(3) { transform: rotate(120deg) scaleY(.36); animation: orbit3 22s linear infinite; }
.atom b { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px; border-radius: 50%; background: var(--blue-glow); box-shadow: 0 0 30px 8px #3d8bff66; }
@keyframes orbit { to { transform: rotate(360deg) scaleY(.36); } }
@keyframes orbit2 { to { transform: rotate(420deg) scaleY(.36); } }
@keyframes orbit3 { to { transform: rotate(480deg) scaleY(.36); } }
@media (max-width: 760px) { .atom { opacity: .35; width: 80vw; right: -20vw; } }

/* Cards & grids */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--silver); font-size: .97rem; }
.card .foot { margin-top: auto; padding-top: 6px; }
.card.feature { border-color: #2a4a8a; background: linear-gradient(180deg, #0f1d3a, var(--bg-2)); }
.num { font: .72rem var(--font-mono); color: var(--muted); letter-spacing: .14em; }

.status { display: inline-flex; align-items: center; gap: 7px; width: max-content; padding: 4px 10px; border-radius: 999px; font: .7rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; border: 1px solid; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-operational { color: var(--ok); border-color: #4ade8055; }
.status-concept { color: var(--silver); border-color: #c9d1de55; border-style: dashed; }
.status-pilot { color: var(--warn); border-color: #fbbf2455; }
.status-research { color: var(--blue-bright); border-color: #5b9bff55; }
.status-planned { color: var(--purple); border-color: #a78bfa55; }

.notice { border-left: 3px solid var(--blue-bright); background: var(--panel); padding: 16px 20px; border-radius: 0 10px 10px 0; color: var(--silver); }
.notice.corp { border-left-color: var(--orange); }
.notice strong { color: #fff; }

/* People */
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 860px) { .people { grid-template-columns: 1fr; } }
.person { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: radial-gradient(circle at 50% 30%, #18264a, var(--bg-2) 70%); text-decoration: none; color: var(--text) !important; display: flex; flex-direction: column; }
.person img { width: 100%; height: 360px; object-fit: cover; object-position: top center; }
.person div { padding: 18px 20px 22px; border-top: 1px solid var(--line); }
.person b { display: block; font: 600 1.15rem var(--font-display); }
.person span { color: var(--blue-bright); font-size: .92rem; }
.person:hover { border-color: var(--line-strong); }

/* Journey teaser */
.teaser { position: relative; isolation: isolate; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #000; padding: clamp(28px, 6vw, 64px); }
.teaser-bg { position: absolute !important; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; max-width: none !important; }
.teaser::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #05070df2 20%, #05070d80); }
.teaser > * { position: relative; }
.teaser h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin: 10px 0 12px; max-width: 20ch; }
.teaser p { color: var(--silver); max-width: 56ch; margin-bottom: 22px; }

/* Prose */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.55rem; margin: 40px 0 12px; }
.prose h3 { font-size: 1.15rem; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--silver); }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.facts { display: grid; grid-template-columns: 220px 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts dt, .facts dd { margin: 0; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font: .78rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; background: var(--panel); }
.facts dd { color: var(--text); }
.facts dt:last-of-type, .facts dd:last-of-type { border-bottom: 0; }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; } .facts dt { border-bottom: 0; padding-bottom: 4px; } }

/* Forms */
.form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 30px); display: grid; gap: 16px; }
.form h3 { font-size: 1.25rem; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-size: .9rem; font-weight: 600; color: var(--text); }
.field .hint { font-size: .82rem; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 11px 13px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); font: inherit; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue-bright); outline-offset: 1px; border-color: transparent; }
.field [aria-invalid="true"] { border-color: var(--err); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--silver); }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--blue); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.4em; font-size: .95rem; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 48px 0 32px; margin-top: 0; }
.site-footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h2 { font: .74rem var(--font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--silver); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Intro overlay (short, once per session, skippable) */
.intro-overlay { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: radial-gradient(circle at 50% 50%, #0b1630, #020308 70%); color: var(--text); transition: opacity .7s ease; }
.intro-overlay.leaving { opacity: 0; pointer-events: none; }
.intro-inner { text-align: center; padding: 24px; }
.intro-emblem img { width: 84px; height: 84px; margin: 0 auto 18px; display: block; }
.intro-scale { font: 400 clamp(.9rem, 2vw, 1.1rem) var(--font-mono); color: var(--blue-bright); letter-spacing: .18em; }
.intro-word { font: 700 clamp(2.6rem, 9vw, 6rem) var(--font-display); letter-spacing: .12em; margin: 14px 0; }
.intro-motto { color: var(--silver); letter-spacing: .14em; text-transform: uppercase; font-size: clamp(.8rem, 1.6vw, 1rem); }
.intro-bar { width: min(320px, 70vw); height: 3px; margin: 26px auto 0; background: var(--line); border-radius: 3px; overflow: hidden; }
.intro-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue-glow), var(--silver)); animation: introbar 6s linear forwards; }
@keyframes introbar { to { width: 100%; } }
.intro-skip { position: absolute; top: max(16px, env(safe-area-inset-top)); right: 16px; }

/* Journey page */
.journey-frame { position: fixed; inset: 0; width: 100%; height: 100dvh; border: 0; background: #010207; }

@media (prefers-reduced-motion: reduce) {
  .site *, .site *::before, .site *::after { animation: none !important; transition: none !important; }
}
