:root {
  --bg: #05080f;
  --navy: #0a0f1a;
  --amber: #ffb020;
  --amber-hi: #ffd27a;
  --amber-lo: #d96a00;
  --cream: #f5f1e8;
  --muted: rgba(245, 241, 232, 0.62);
  --line: rgba(255, 210, 122, 0.28);
  --gutter: clamp(16px, 6vw, 96px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color: var(--cream); overflow-x: clip; scroll-behavior: smooth; }
[id] { scroll-margin-top: 80px; }
body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

#gl {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  display: block;
  background: radial-gradient(ellipse at 70% 50%, #1a1206 0%, var(--bg) 60%);
}

/* ---------- reticle that follows the light (scene 1) ---------- */
.reticle {
  position: fixed; left: 0; top: 0;
  width: 200px; height: 200px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .8s ease;
  z-index: 2;
  will-change: transform;
}
.reticle svg { width: 100%; height: 100%; overflow: visible; animation: spin 40s linear infinite; }
.r-ring { fill: none; stroke: var(--line); stroke-width: 0.6; stroke-dasharray: 2 6; vector-effect: non-scaling-stroke; }
.r-ticks line { stroke: rgba(255, 210, 122, 0.55); stroke-width: 1; vector-effect: non-scaling-stroke; }
.r-label {
  position: absolute; left: 86%; top: 6%;
  font-size: 11px; letter-spacing: 0.14em; white-space: nowrap;
  color: rgba(255, 210, 122, 0.75);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px clamp(16px, 4vw, 56px);
  z-index: 5;
  opacity: 0; transform: translateY(-8px);
  transition: opacity 1s ease 1.4s, transform 1s ease 1.4s;
}
.ready .nav { opacity: 1; transform: none; }
.nav { transition: opacity 1s ease 1.4s, transform 1s ease 1.4s, background .3s ease, padding .3s ease; }
.nav.scrolled { background: rgba(5, 8, 15, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); padding-top: 14px; padding-bottom: 14px; border-bottom: 1px solid rgba(245,241,232,.07); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-icon { height: 36px; width: auto; }
.brand-text { display: flex; align-items: baseline; font-size: 24px; line-height: 1; }
.w-bio { font-weight: 300; letter-spacing: -0.01em; }
.w-vein { font-weight: 700; letter-spacing: -0.02em; }
.w-med { margin-left: 10px; font-size: 10px; font-weight: 600; letter-spacing: 0.32em; color: var(--amber); }
.links { display: flex; gap: clamp(14px, 2.2vw, 34px); font-size: 14px; color: var(--muted); }
.links a { transition: color .2s; }
.links a:hover { color: var(--cream); }
.lang { padding-left: clamp(14px, 2.2vw, 34px); border-left: 1px solid rgba(245,241,232,.18); color: var(--amber-hi) !important; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  height: 100vh; min-height: 600px;
  z-index: 3;
  pointer-events: none;
}
.hero a, .hero button { pointer-events: auto; }

/* scene copies are stacked; only .active is visible */
.hero-copy {
  position: absolute; left: var(--gutter); right: var(--gutter); top: 50%;
  transform: translateY(-50%);
  max-width: 1000px;
}
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 22px;
}
h1 {
  font-size: clamp(40px, 6.4vw, 104px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-shadow: 0 2px 40px rgba(5, 8, 15, 0.65);
}
/* font-size is fitted in JS so the widest line matches the paragraph width */
h1 span { display: block; width: max-content; padding-bottom: 0.08em; white-space: nowrap; }
h1 .hl { color: transparent; background: linear-gradient(92deg, var(--amber-hi), var(--amber) 45%, var(--amber-lo)); -webkit-background-clip: text; background-clip: text; }
.lede {
  margin-top: 26px; max-width: 480px;
  font-size: clamp(15px, 1.25vw, 18px); line-height: 1.6;
  color: var(--muted);
  text-shadow: 0 1px 20px rgba(5, 8, 15, 0.9);
}

/* staged reveal: leaving is quick, entering is staggered */
.hero-copy .eyebrow, .hero-copy h1 span, .hero-copy .lede {
  opacity: 0; transform: translateY(18px);
  transition: opacity .45s ease, transform .45s ease;
}
.ready .hero-copy.active .eyebrow,
.ready .hero-copy.active h1 span,
.ready .hero-copy.active .lede {
  opacity: 1; transform: none;
  transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.2,1);
}
.ready .hero-copy.active .eyebrow { transition-delay: .55s; }
.ready .hero-copy.active h1 span:first-child { transition-delay: .7s; }
.ready .hero-copy.active h1 span:last-child { transition-delay: .88s; }
.ready .hero-copy.active .lede { transition-delay: 1.1s; }
/* first load waits for the LED power-on */
.intro.ready .hero-copy.active .eyebrow { transition-delay: .9s; }
.intro.ready .hero-copy.active h1 span:first-child { transition-delay: 1.05s; }
.intro.ready .hero-copy.active h1 span:last-child { transition-delay: 1.25s; }
.intro.ready .hero-copy.active .lede { transition-delay: 1.55s; }

.hint {
  position: absolute; right: clamp(16px, 4vw, 56px); bottom: 40px;
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
  opacity: 0; transition: opacity .6s ease;
}
.hint.show { opacity: 1; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px var(--amber); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.6); opacity: .5; } }

.status {
  position: absolute; left: var(--gutter); bottom: 40px;
  max-width: 30vw;
  font-size: 11px; letter-spacing: 0.06em; line-height: 1.5; color: rgba(245,241,232,.4);
  opacity: 0; transition: opacity .5s ease;
}
.status.show { opacity: 1; }

/* ---------- scene tabs ---------- */
.scenes {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; gap: 6px;
  opacity: 0; transition: opacity 1s ease 2.2s;
}
.ready .scenes { opacity: 1; }
.tab {
  display: grid; grid-template-columns: auto 1fr; column-gap: 10px; row-gap: 10px;
  align-items: baseline;
  width: clamp(120px, 12vw, 180px);
  padding: 10px 4px;
  text-align: left;
  color: rgba(245,241,232,.42);
  transition: color .3s;
}
.tab:hover, .tab.active { color: var(--cream); }
.tab:focus-visible { outline: 1px solid var(--amber); outline-offset: 4px; border-radius: 2px; }
.tab-n { font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--amber); font-variant-numeric: tabular-nums; }
.tab-t { font-size: 12px; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar { grid-column: 1 / -1; height: 2px; background: rgba(245,241,232,.14); overflow: hidden; border-radius: 2px; }
.bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--amber-lo), var(--amber)); transform-origin: left; transform: scaleX(0); }

/* ---------- scene 3: vector mark with draw-on reveal ---------- */
.pmark {
  position: absolute; left: 73%; top: 50%;
  width: clamp(200px, 22vw, 360px);
  transform: translate(-50%, -50%);
  text-align: center;
  opacity: 0; transition: opacity .35s ease;
}
.pmark.on { opacity: 1; transition-duration: .8s; }
.pm-svg svg {
  display: block; width: 100%; height: auto; overflow: visible;
  filter: drop-shadow(0 0 6px rgba(255, 140, 30, .45)) drop-shadow(0 0 22px rgba(255, 110, 10, .25));
}
.pm-svg [data-len] { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.pm-svg circle { transform: scale(0); transform-box: fill-box; transform-origin: center; }
.pmark.play .pm-svg [data-len] { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s cubic-bezier(.6,.1,.2,1) var(--d, 0s); }
.pmark.play .pm-svg .thread { transition-duration: 1.6s; }
.pmark.play .pm-svg circle { transform: scale(1); transition: transform .5s cubic-bezier(.3,1.6,.5,1) var(--d, 0s); }

.pm-word { display: flex; justify-content: center; align-items: baseline; margin-top: 30px; font-size: clamp(22px, 2.1vw, 32px); line-height: 1; }
.pm-word span span {
  display: inline-block;
  opacity: 0; transform: translateY(10px); filter: blur(6px);
}
.pmark.play .pm-word span span {
  opacity: 1; transform: none; filter: none;
  transition: opacity .6s ease, transform .6s ease, filter .6s ease;
  transition-delay: calc(1.9s + var(--i) * 0.06s);
}
.pm-word .w-med { margin-left: 12px; font-size: .38em; }
.pm-soon {
  position: relative; left: 50%; translate: -50% 0; width: max-content;
  margin-top: 22px;
  font-size: 11.5px; line-height: 1.8; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  color: var(--muted);
  opacity: 0; transform: translateY(8px);
}
.pm-soon strong { color: var(--amber); font-weight: 600; letter-spacing: .3em; }
.pmark.play .pm-soon { opacity: 1; transform: none; transition: opacity 1s ease 3.1s, transform 1s ease 3.1s; }

/* ---------- corporate content ---------- */
.content {
  position: relative; z-index: 3;
  background: linear-gradient(to bottom, rgba(5,8,15,0) 0, var(--bg) 14vh);
  padding-top: 10vh;
}
.sec { padding: clamp(72px, 11vh, 130px) var(--gutter); max-width: 1320px; margin: 0 auto; }
.sec + .sec { border-top: 1px solid rgba(245,241,232,.07); }
.sec-head { max-width: 720px; margin-bottom: clamp(36px, 6vh, 64px); }
.sec h2 { font-size: clamp(30px, 3.6vw, 52px); font-weight: 600; line-height: 1.08; letter-spacing: -0.03em; }
.sec-lede { margin-top: 20px; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.65; color: var(--muted); }
.sec h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.sec p { line-height: 1.6; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

.chip {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber); background: rgba(255,176,32,.09); border: 1px solid rgba(255,176,32,.28);
}
.chip-dim { color: var(--muted); background: rgba(245,241,232,.04); border-color: rgba(245,241,232,.14); }

/* products */
.products { display: grid; grid-template-columns: 2.2fr 1fr; gap: 24px; }
.product {
  border: 1px solid rgba(245,241,232,.09); border-radius: 18px;
  background: linear-gradient(160deg, rgba(255,140,30,.05), rgba(10,15,26,.6) 45%);
  overflow: hidden;
}
.product:first-child { display: grid; grid-template-columns: 1fr 1.15fr; }
.product-visual { position: relative; display: grid; place-items: center; padding: 28px; background: radial-gradient(circle at 50% 50%, #1a0e05, #07090f 70%); }
.pv-svg { width: 100%; max-width: 360px; height: auto; }
.product-visual .chip { position: absolute; left: 20px; top: 20px; }
.product-body { padding: clamp(24px, 3vw, 40px); }
.product-body > p { margin-top: 12px; color: var(--muted); }
.features { list-style: none; margin-top: 24px; display: grid; gap: 16px; }
.features li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.f-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--amber); background: rgba(255,176,32,.08); border: 1px solid rgba(255,176,32,.2); font-size: 15px; }
.features strong { display: block; font-size: 15px; font-weight: 600; }
.features span { font-size: 14px; color: var(--muted); }
.fine { margin-top: 24px; font-size: 12px; color: rgba(245,241,232,.42); }
.product-next { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 14px; border-style: dashed; background: rgba(10,15,26,.4); }
.product-next p { color: var(--muted); flex: 1; }
.product-next .chip { align-self: flex-start; }
.pn-mark img { height: 34px; opacity: .55; }

/* technology */
.tech { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.tech-fig { border-radius: 18px; overflow: hidden; border: 1px solid rgba(245,241,232,.09); background: #0a0d14; }
.tech-fig svg { display: block; width: 100%; height: auto; }
.t-lbl { font: 500 12px "Inter", sans-serif; fill: rgba(245,241,232,.55); letter-spacing: .04em; }
.t-amber { fill: #ffb020; }
.steps { list-style: none; display: grid; gap: 26px; }
.steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; }
.s-n { grid-row: span 2; font-size: 13px; font-weight: 600; color: var(--amber); padding-top: 3px; font-variant-numeric: tabular-nums; }
.steps p { margin-top: 6px; color: var(--muted); font-size: 15px; }

/* roadmap */
.road { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; }
.road::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: linear-gradient(90deg, var(--amber), rgba(245,241,232,.12) 40%); }
.road li { position: relative; padding-top: 30px; }
.r-dot { position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); border: 1px solid rgba(245,241,232,.3); }
.road li.done .r-dot { background: var(--amber); border-color: var(--amber); }
.road li.now .r-dot { border-color: var(--amber); box-shadow: 0 0 0 4px rgba(255,176,32,.15); }
.road li.now .r-dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--amber); animation: pulse 1.8s ease-in-out infinite; }
.r-st { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(245,241,232,.45); }
.road li.done .r-st, .road li.now .r-st { color: var(--amber); }
.road h3 { margin-top: 8px; font-size: 16px; }
.road p { margin-top: 6px; font-size: 14px; color: var(--muted); }

/* production + about */
.sec-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.sec-split .sec-head { margin-bottom: 0; }
.pillars { list-style: none; display: grid; gap: 14px; }
.pillars li { padding: 22px 24px; border-radius: 14px; border: 1px solid rgba(245,241,232,.09); background: rgba(10,15,26,.5); }
.pillars p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.facts { display: grid; gap: 0; border-top: 1px solid rgba(245,241,232,.1); }
.facts div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(245,241,232,.1); }
.facts dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(245,241,232,.45); padding-top: 2px; }
.facts dd { font-size: 15px; }

/* contact */
.contact { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.opt { color: rgba(245,241,232,.38); }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 14px; border-radius: 10px;
  font: inherit; font-size: 15px; color: var(--cream);
  background: rgba(245,241,232,.04); border: 1px solid rgba(245,241,232,.14);
  transition: border-color .2s, background .2s;
}
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--amber) 50%), linear-gradient(135deg, var(--amber) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.form select option { background: #0a0f1a; }
.form textarea { resize: vertical; min-height: 130px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--amber); background: rgba(255,176,32,.04); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { grid-template-columns: auto 1fr !important; align-items: center; }
.consent input { width: 18px; height: 18px; accent-color: var(--amber); }
.consent a { color: var(--amber-hi); text-decoration: underline; text-underline-offset: 3px; }
.btn {
  justify-self: start; padding: 14px 30px; border-radius: 999px;
  font-weight: 600; font-size: 15px; color: #160b02;
  background: linear-gradient(92deg, var(--amber-hi), var(--amber) 50%, #f08a00);
  box-shadow: 0 8px 30px -10px rgba(255,140,20,.6);
  transition: transform .2s, box-shadow .2s, opacity .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 34px -10px rgba(255,140,20,.75); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.form-msg { min-height: 1.4em; font-size: 14px; }
.form-msg.ok { color: var(--amber-hi); }
.form-msg.err { color: #ff8a7a; }
.contact-info { display: grid; gap: 22px; padding: 28px; border-radius: 16px; border: 1px solid rgba(245,241,232,.09); background: rgba(10,15,26,.5); }
.contact-info div { display: grid; gap: 6px; font-size: 15px; line-height: 1.6; }
.contact-info a { color: var(--amber-hi); }
.ci-l { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(245,241,232,.45); }

/* footer */
.foot { position: relative; z-index: 3; background: #04060b; border-top: 1px solid rgba(245,241,232,.08); padding: 40px var(--gutter) 34px; }
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot .brand-icon { height: 28px; }
.foot .brand-text { font-size: 20px; }
.foot-links { display: flex; gap: 24px; font-size: 14px; color: var(--muted); }
.foot-links a:hover { color: var(--cream); }
.foot-legal { margin-top: 26px; font-size: 12px; line-height: 1.7; color: rgba(245,241,232,.42); }
.foot-copy { margin-top: 10px; font-size: 12px; color: rgba(245,241,232,.32); }

/* legal pages */
.plain .nav { opacity: 1; transform: none; }
.legal { max-width: 780px; margin: 0 auto; padding: 140px var(--gutter) 90px; }
.legal h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 600; letter-spacing: -0.03em; }
.legal-meta { margin-top: 10px; font-size: 13px; color: rgba(245,241,232,.45); }
.legal h2 { margin-top: 40px; font-size: 18px; font-weight: 600; }
.legal p { margin-top: 12px; line-height: 1.75; color: rgba(245,241,232,.78); }
.legal a, .foot-copy a { color: var(--amber-hi); }
.legal .facts { margin-top: 36px; }
.legal-note { margin-top: 32px !important; font-size: 13px; color: rgba(245,241,232,.5) !important; }

@media (max-width: 1000px) {
  .products, .product:first-child, .tech, .sec-split, .contact { grid-template-columns: 1fr; }
  .road { grid-template-columns: 1fr; gap: 26px; padding-left: 30px; }
  .road::before { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(180deg, var(--amber), rgba(245,241,232,.12) 40%); }
  .road li { padding-top: 0; }
  .r-dot { left: -30px; top: 2px; }
}
@media (max-width: 560px) {
  .form .row { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 1100px) {
  .status { display: none; }
}
@media (max-width: 760px) {
  .links a:not(.lang) { display: none; }
  .lang { border: 0; padding: 0; }
  .brand-icon { height: 26px; }
  .brand-text { font-size: 20px; }
  .brand .w-med { display: none; }
  .hero { height: 100svh; }
  .hero-copy { top: auto; bottom: 124px; transform: none; }
  .hero-copy .eyebrow { font-size: 11px; margin-bottom: 14px; }
  .lede { font-size: 14px; margin-top: 16px; line-height: 1.55; }
  .pmark { left: 50%; right: auto; top: 13%; width: min(62vw, 280px); transform: translateX(-50%); }
  .pm-word { margin-top: 20px; }
  .pm-soon { width: 86vw; white-space: normal; font-size: 10px; letter-spacing: .1em; margin-top: 16px; }
  .hint { bottom: 92px; left: 16px; right: auto; }
  .scenes { left: 16px; right: 16px; transform: none; }
  .tab { flex: 1; width: auto; }
  .tab-t { display: none; }
  .r-label { font-size: 10px; }
}

/* phones: the upper half moves the light instead of scrolling the page */
.touchpad { display: none; }
@media (hover: none) and (pointer: coarse) {
  .touchpad { display: block; position: absolute; left: 0; right: 0; top: 0; height: 52%;
    pointer-events: auto; touch-action: none; -webkit-user-select: none; user-select: none; z-index: 4; }
  .touchpad[hidden] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reticle svg, .dot { animation: none; }
}
