/* =====================================================================
   Onova Tech — "Onova Orbit" design system
   A precision-observatory aesthetic: luminous daylight + deep-space drama.
   ===================================================================== */

:root {
  /* ---- Color (OKLCH, tinted toward brand hue ~236) ---- */
  --brand:        oklch(0.70 0.155 236);
  --brand-bright: oklch(0.82 0.13 224);
  --brand-deep:   oklch(0.52 0.16 244);
  --nova:         oklch(0.90 0.085 88);

  --ink:        oklch(0.26 0.03 248);
  --ink-soft:   oklch(0.46 0.022 248);
  --ink-faint:  oklch(0.62 0.018 248);

  --canvas:     oklch(0.985 0.004 236);
  --surface:    oklch(0.965 0.006 236);
  --line:       oklch(0.88 0.012 236);

  --space:        oklch(0.185 0.03 252);
  --space-deep:   oklch(0.135 0.028 256);
  --on-space:     oklch(0.93 0.012 236);
  --on-space-soft:oklch(0.72 0.02 240);
  --space-line:   oklch(0.34 0.035 250);

  /* ---- Type ---- */
  --font-display: "Bai Jamjuree", "Anuphan", system-ui, sans-serif;
  --font-body:    "Anuphan", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* ---- Fluid spacing ---- */
  --shell: min(92vw, 1180px);
  --gap-section: clamp(4.5rem, 11vh, 9rem);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);          /* ease-out-expo-ish */
  --shadow-soft: 0 1px 2px oklch(0.4 0.03 248 / 0.04), 0 12px 30px oklch(0.4 0.05 248 / 0.07);
  --shadow-lift: 0 2px 6px oklch(0.4 0.03 248 / 0.06), 0 24px 60px oklch(0.4 0.06 248 / 0.12);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
:focus-visible { outline: 2px solid var(--brand-deep); outline-offset: 3px; border-radius: 4px; }

.shell { width: var(--shell); margin-inline: auto; }

.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 200;
  background: var(--ink); color: var(--canvas);
  padding: 10px 18px; border-radius: var(--r-sm); transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* =====================================================================
   Typography
   ===================================================================== */
.kicker {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.78rem, 0.6rem + 0.6vw, 0.82rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-deep);
  display: inline-flex; align-items: center; gap: 0.6em;
}
.kicker::before {
  content: ""; width: 28px; height: 2px; background: currentColor; opacity: .55;
}
.kicker--light { color: var(--brand-bright); }

.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-size: clamp(1.7rem, 1rem + 2.6vw, 3rem);
  max-width: 22ch;
}
.section__lead {
  color: var(--ink-soft);
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.18rem);
  max-width: 60ch;
  margin-top: 1.1rem;
}

/* =====================================================================
   Buttons
   ===================================================================== */
.btn {
  --bg: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.95rem; line-height: 1;
  padding: 0.85em 1.5em; border-radius: var(--r-pill);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .25s, color .25s;
  white-space: nowrap;
}
.btn--lg { padding: 1.05em 1.9em; font-size: 1.02rem; }
.btn--primary {
  background: var(--brand); color: oklch(0.99 0.01 236);
  box-shadow: 0 6px 18px oklch(0.70 0.155 236 / 0.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px oklch(0.70 0.155 236 / 0.45); }
.btn--ghost {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--brand); color: var(--brand-deep); transform: translateY(-2px); }

/* =====================================================================
   Header
   ===================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: oklch(0.985 0.004 236 / 0.78);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px oklch(0.4 0.05 248 / 0.05);
}
.header__inner {
  display: flex; align-items: center; gap: 1.25rem;
  height: 72px;
}
.nav { display: flex; gap: clamp(1rem, 2.2vw, 2rem); margin-inline: auto; }
.nav a {
  font-weight: 500; font-size: 0.96rem; color: var(--ink-soft);
  position: relative; padding: 6px 0; transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--brand); transition: width .35s var(--ease);
}
.nav a:hover { color: var(--ink); } .nav a:hover::after { width: 100%; }
.nav a.is-active { color: var(--ink); }
.nav a.is-active::after { width: 100%; opacity: .5; }

.header__actions { display: flex; align-items: center; gap: 0.9rem; }

/* Brand lockup */
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand__logo { height: 32px; width: auto; display: block; transition: opacity .2s; }
.brand:hover .brand__logo { opacity: 0.78; }
.footer__logo { height: 40px; width: auto; display: block; }
.brand__orbit { width: 34px; height: 34px; display: grid; place-items: center; }
.orbit-mark { width: 100%; height: 100%; overflow: visible; }
.orbit-mark__ring { fill: none; stroke: var(--line); stroke-width: 6; }
.orbit-mark__trail { fill: none; stroke: var(--brand); stroke-width: 9; stroke-linecap: round; transform-origin: 50% 50%; }
.orbit-mark__nova { fill: var(--brand-bright); filter: drop-shadow(0 0 4px var(--brand)); transform-origin: 50% 50%; }
.brand:hover .orbit-mark__trail,
.brand:hover .orbit-mark__nova { animation: spin 3.5s linear infinite; }

.brand__word { font-family: var(--font-display); font-weight: 700; font-size: 1.32rem; letter-spacing: -0.01em; }
.brand__word b { color: var(--brand); font-weight: 700; }
.brand__word i { color: var(--ink-soft); font-style: normal; font-weight: 600; margin-left: 1px; }
.brand__word--lg { font-size: 1.7rem; }

/* Language switch */
.lang-switch {
  display: inline-flex; align-items: center; gap: 0.35em;
  font-family: var(--font-display); font-weight: 600; font-size: 0.82rem;
  color: var(--ink-faint);
}
.lang-switch button { padding: 4px 6px; border-radius: 6px; transition: color .2s, background .2s; letter-spacing: 0.04em; }
.lang-switch button.is-active { color: var(--brand-deep); }
.lang-switch button:not(.is-active):hover { color: var(--ink); }

/* Mobile nav toggle */
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: var(--r-sm); flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; flex-direction: column; gap: 0.4rem;
  padding: 1rem max(4vw, calc((100vw - var(--shell)) / 2)) 1.5rem;
  border-bottom: 1px solid var(--line); background: var(--canvas);
}
.mobile-nav:not([hidden]) { display: flex; }
@media (min-width: 921px) { .mobile-nav { display: none !important; } }
.mobile-nav a { padding: 0.75rem 0.5rem; font-weight: 500; font-size: 1.05rem; border-radius: var(--r-sm); }
.mobile-nav a.btn { margin-top: 0.5rem; }

/* =====================================================================
   Hero
   ===================================================================== */
.hero { position: relative; padding-block: clamp(3.5rem, 9vh, 7rem) clamp(4rem, 10vh, 8rem); overflow: hidden; }
.hero__inner { position: relative; z-index: 2; }

.hero__field { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(oklch(0.70 0.05 236 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.70 0.05 236 / 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 75% 15%, #000, transparent 70%);
}

.hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.2rem, 1rem + 4.4vw, 4.4rem);
  line-height: 1.12; letter-spacing: -0.02em;
  margin-top: 1.3rem; max-width: 18ch;
}
.hero__title span { display: block; text-wrap: balance; }
.hero__title-em { color: var(--brand); }
.hero__lead { font-size: clamp(1.02rem, 0.95rem + 0.5vw, 1.2rem); color: var(--ink-soft); max-width: 52ch; margin-top: 1.6rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }

.hero__readout {
  display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: clamp(2.5rem, 6vh, 4rem);
  padding-top: 1.6rem; border-top: 1px solid var(--line);
  max-width: 760px;
}
.hero__readout dt {
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint);
  margin-bottom: 0.35rem;
}
.hero__readout dd { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink); }

/* Orbit animation system */
.orbit-system {
  position: absolute; top: clamp(-4rem, -6vh, -2rem); right: -8vw;
  width: clamp(380px, 46vw, 720px); aspect-ratio: 1;
}
.orbit {
  position: absolute; inset: 0; margin: auto; border-radius: 50%;
  border: 1px solid oklch(0.70 0.08 236 / 0.22);
}
.orbit--1 { width: 30%; height: 30%; }
.orbit--2 { width: 55%; height: 55%; border-color: oklch(0.70 0.08 236 / 0.18); }
.orbit--3 { width: 78%; height: 78%; border-color: oklch(0.70 0.08 236 / 0.13); }
.orbit--4 { width: 100%; height: 100%; border-color: oklch(0.70 0.08 236 / 0.09); }
.orbit-core {
  position: absolute; inset: 0; margin: auto; width: 11%; height: 11%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--brand-bright), var(--brand) 60%, var(--brand-deep));
  box-shadow: 0 0 40px oklch(0.72 0.15 233 / 0.5), 0 0 90px oklch(0.72 0.15 233 / 0.25);
}
.orbiter { position: absolute; inset: 0; margin: auto; border-radius: 50%; animation: spin linear infinite; }
.orbiter i {
  position: absolute; top: -4px; left: 50%; transform: translateX(-50%);
  width: 9px; height: 9px; border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 12px var(--brand-bright);
}
.orbiter--a { width: 55%; height: 55%; animation-duration: 14s; }
.orbiter--b { width: 78%; height: 78%; animation-duration: 26s; animation-direction: reverse; }
.orbiter--b i { background: var(--nova); box-shadow: 0 0 14px var(--nova), 0 0 28px oklch(0.90 0.085 88 / 0.4); width: 11px; height: 11px; }
.orbiter--c { width: 100%; height: 100%; animation-duration: 40s; }
.orbiter--c i { width: 6px; height: 6px; background: var(--brand-deep); }

@keyframes spin { to { transform: rotate(360deg); } }

/* =====================================================================
   Sections (shared)
   ===================================================================== */
.section { padding-block: var(--gap-section); position: relative; }
.section__head { max-width: 46rem; margin-inline: auto; text-align: center; margin-bottom: clamp(2.5rem, 6vh, 4.5rem); }
.section__head .kicker { margin-bottom: 1.1rem; }
.section__head--left { margin-inline: 0; text-align: left; }
.section__head--left .section__lead { margin-inline: 0; }

.section--space { background: var(--space); color: var(--on-space); isolation: isolate; }
.section--space .section__title { color: var(--on-space); }
.section--space .section__lead { color: var(--on-space-soft); }
.space-field {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(60% 50% at 80% 0%, oklch(0.70 0.15 236 / 0.16), transparent 60%),
    radial-gradient(50% 40% at 10% 100%, oklch(0.60 0.13 270 / 0.14), transparent 60%);
}
.space-field::before {
  content: ""; position: absolute; inset: -50%;
  background-image:
    radial-gradient(1px 1px at 20% 30%, oklch(0.95 0.02 236 / 0.8), transparent),
    radial-gradient(1px 1px at 70% 60%, oklch(0.95 0.02 236 / 0.7), transparent),
    radial-gradient(1.5px 1.5px at 45% 80%, oklch(0.90 0.06 88 / 0.7), transparent),
    radial-gradient(1px 1px at 85% 25%, oklch(0.95 0.02 236 / 0.6), transparent),
    radial-gradient(1px 1px at 30% 70%, oklch(0.95 0.02 236 / 0.5), transparent),
    radial-gradient(1px 1px at 60% 15%, oklch(0.95 0.02 236 / 0.6), transparent);
  background-size: 100% 100%;
  animation: drift 60s linear infinite;
}
@keyframes drift { to { transform: translate(3%, 2%); } }

/* =====================================================================
   Capabilities — numbered list, hairline rows (not icon cards)
   ===================================================================== */
.cap-list { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.cap {
  display: grid; grid-template-columns: 5rem 1fr; gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.6rem, 3vh, 2.6rem) 0.25rem;
  border-bottom: 1px solid var(--line);
  transition: background .35s var(--ease), padding-left .35s var(--ease);
}
.cap:hover { background: var(--surface); padding-left: 1.25rem; }
.cap__index {
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
  color: var(--brand); font-feature-settings: "tnum";
  line-height: 1;
}
.cap__body h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.2rem, 1rem + 0.8vw, 1.6rem); line-height: 1.25; letter-spacing: -0.01em; }
.cap__body p { color: var(--ink-soft); margin-top: 0.5rem; max-width: 62ch; }

/* =====================================================================
   Products
   ===================================================================== */
.prod-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.2rem, 2.5vw, 2rem); }
.prod {
  background: oklch(0.24 0.03 252 / 0.65);
  border: 1px solid var(--space-line);
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 3vw, 2.6rem);
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.prod:hover { transform: translateY(-4px); border-color: oklch(0.55 0.12 236 / 0.6); box-shadow: 0 30px 70px oklch(0.1 0.05 256 / 0.5); }
.prod--feature { background: linear-gradient(180deg, oklch(0.27 0.045 248 / 0.85), oklch(0.21 0.035 252 / 0.6)); }
.prod__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.prod__logo { width: auto; height: 72px; object-fit: contain; }
.prod__icon svg { width: 56px; height: 56px; fill: none; stroke: var(--brand-bright); stroke-width: 1.6; stroke-linecap: round; }
.prod__name { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); line-height: 1.15; color: var(--on-space); letter-spacing: -0.01em; }
.prod__tagline { color: var(--brand-bright); font-family: var(--font-display); font-weight: 600; margin-top: 0.3rem; }
.prod__desc { color: var(--on-space-soft); margin-top: 1rem; line-height: 1.7; }
.prod__points { list-style: none; padding: 0; margin-top: 1.4rem; display: grid; gap: 0.7rem; }
.prod__points li { position: relative; padding-left: 1.7rem; color: var(--on-space); font-size: 0.97rem; }
.prod__points li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 9px; height: 9px;
  border-radius: 50%; border: 1.5px solid var(--brand-bright);
}
.prod--feature .prod__points li::before { background: var(--brand); border-color: var(--brand); }

.tag {
  font-family: var(--font-display); font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.4em 0.85em; border-radius: var(--r-pill);
  color: var(--on-space-soft); border: 1px solid var(--space-line);
  align-self: flex-start;
}
.tag--live { color: oklch(0.88 0.16 150); border-color: oklch(0.6 0.14 150 / 0.5); background: oklch(0.6 0.14 150 / 0.12); }

/* =====================================================================
   Why — 2x2 pillars, hairline grid (not boxed cards)
   ===================================================================== */
.why__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.pillar { padding: clamp(1.6rem, 3vw, 2.4rem); border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); position: relative; transition: background .35s; }
.pillar:nth-child(2n) { border-right: none; }
.pillar:nth-child(n+3) { border-bottom: none; }
.pillar:hover { background: var(--surface); }
.pillar__no {
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
  color: oklch(0.99 0.01 236); background: var(--brand);
  width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
  margin-bottom: 1.1rem;
}
.pillar h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); line-height: 1.3; }
.pillar p { color: var(--ink-soft); margin-top: 0.6rem; max-width: 42ch; }
.why__inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (min-width: 921px) { .why .section__head { position: sticky; top: 100px; } }

/* =====================================================================
   Contact
   ===================================================================== */
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact__channels { list-style: none; padding: 0; margin-top: 2rem; display: grid; gap: 1rem; }
.contact__channels li { display: flex; flex-direction: column; gap: 0.2rem; }
.contact__channels .ch-label { font-family: var(--font-display); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-space-soft); }
.contact__channels .ch-val { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--brand-bright); width: fit-content; }
a.ch-val:hover { text-decoration: underline; text-underline-offset: 4px; }
.ch-val--soon { color: var(--on-space); }
.ch-val--soon small { font-family: var(--font-body); font-weight: 400; font-size: 0.72rem; color: var(--on-space-soft); margin-left: 0.5em; letter-spacing: 0; }

.contact__form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; grid-column: 1 / -1; }
.field--half { grid-column: span 1; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; color: var(--on-space); }
.field input, .field textarea {
  font: inherit; color: var(--on-space);
  background: oklch(0.24 0.03 252 / 0.7);
  border: 1px solid var(--space-line); border-radius: var(--r-sm);
  padding: 0.8rem 1rem; transition: border-color .25s, box-shadow .25s, background .25s;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: oklch(0.6 0.02 240); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px oklch(0.70 0.155 236 / 0.25); background: oklch(0.26 0.03 252 / 0.9);
}
.contact__form .btn { grid-column: 1 / -1; justify-self: start; margin-top: 0.4rem; }
.btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }
.field__error { color: oklch(0.78 0.15 25); font-size: 0.82rem; min-height: 0; }
.field__error[hidden] { display: none; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form__send-error { grid-column: 1 / -1; color: oklch(0.8 0.15 25); font-weight: 500; }
.form__send-error[hidden] { display: none; }
.field--invalid input, .field--invalid textarea { border-color: oklch(0.65 0.18 25); }
.field--invalid input:focus, .field--invalid textarea:focus { box-shadow: 0 0 0 3px oklch(0.65 0.18 25 / 0.25); }
/* success panel replaces the form */
.form__success { grid-column: 1 / -1; display: none; flex-direction: column; gap: 0.6rem; padding: 1.6rem; border: 1px solid oklch(0.6 0.14 150 / 0.5); border-radius: var(--r-md); background: oklch(0.6 0.14 150 / 0.1); }
.contact__form.is-sent .field, .contact__form.is-sent > .btn { display: none; }
.contact__form.is-sent .form__success { display: flex; }
.form__success strong { font-family: var(--font-display); color: oklch(0.9 0.16 150); font-size: 1.1rem; }
.form__success span { color: var(--on-space-soft); }

/* Back to top */
.to-top {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 80;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--brand); color: oklch(0.99 0.01 236);
  display: grid; place-items: center;
  box-shadow: 0 8px 24px oklch(0.70 0.155 236 / 0.4);
  opacity: 0; transform: translateY(12px) scale(0.9); pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-2px); }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer { background: var(--space-deep); color: var(--on-space-soft); padding-block: clamp(3rem, 7vh, 5rem); }
.footer__inner { display: grid; grid-template-columns: 1.5fr 1fr auto; gap: 2rem; align-items: start; }
.footer__brand .brand__word i { color: var(--on-space-soft); }
.footer__brand p { margin-top: 0.8rem; max-width: 32ch; }
.footer__nav { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__nav a { transition: color .2s; } .footer__nav a:hover { color: var(--brand-bright); }
.footer__legal { font-size: 0.85rem; line-height: 1.8; text-align: right; align-self: end; }

/* =====================================================================
   Reveal animation
   ===================================================================== */
/* Reveals are an enhancement: hidden only when JS is active (html.js).
   Without JS the content is fully visible. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-reveal-delay="1"] { transition-delay: .08s; }
.js .reveal[data-reveal-delay="2"] { transition-delay: .16s; }
.js .reveal[data-reveal-delay="3"] { transition-delay: .24s; }
.js .reveal[data-reveal-delay="4"] { transition-delay: .32s; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 920px) {
  .nav { display: none; }
  .header__cta { display: none; }
  .nav-toggle { display: flex; }
  .header__inner { justify-content: space-between; }
  .brand { margin-right: auto; }
  .why__inner { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; }
  .prod-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  :root { --shell: 90vw; }
  .section__head { text-align: left; margin-inline: 0; }
  .why__grid { grid-template-columns: 1fr; }
  .pillar { border-right: none !important; }
  .pillar:nth-child(3) { border-bottom: 1px solid var(--line); }
  .contact__form { grid-template-columns: 1fr; }
  .field--half { grid-column: 1 / -1; }
  .cap { grid-template-columns: 3.2rem 1fr; gap: 1rem; }
  .cap:hover { padding-left: 0.25rem; }
  .orbit-system { right: -30vw; top: auto; bottom: -10vh; opacity: 0.5; }
  .hero__readout { gap: 1.25rem 1.5rem; }
}

/* =====================================================================
   Reduced motion
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  .orbiter, .space-field::before, .brand:hover .orbit-mark__trail, .brand:hover .orbit-mark__nova { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn, .cap, .prod, .nav a::after { transition: none !important; }
}
