/* ==========================================================================
   LIKAI — Cinematic build · base.css
   Dark, film-like industrial system.
   Method borrowed from the ams-osram teardown: greyscale UI + one brand accent,
   colour carried by graphics rather than by chrome; strict resource discipline.
   ========================================================================== */

:root {
  /* surfaces — layered blacks, not flat black */
  --bg:      #05070a;
  --bg-1:    #090d12;
  --bg-2:    #0d131a;
  --bg-3:    #121a23;
  --line:    rgba(255, 255, 255, .08);
  --line-2:  rgba(255, 255, 255, .16);

  /* text */
  --ink:     #f2f5f9;
  --ink-2:   #98a5b3;
  --ink-3:   #64707d;

  /* the only chromatic accent in the whole UI */
  --brand:   #e60012;
  --brand-2: #ff3b52;

  /* inverted block (used once, deliberately) */
  --light:      #f4f6f8;
  --light-ink:  #0b0f14;
  --light-ink2: #56616d;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", Roboto, Arial, sans-serif;
  --font-disp: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC",
    "Hiragino Sans GB", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

  --wrap: 1320px;
  --pad: clamp(20px, 4vw, 60px);
  --nav-h: 72px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .7s;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.66 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 300; background: var(--brand); color: #fff; padding: 12px 18px; }
.skip:focus { left: 0; }

/* ── layout ────────────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.wrap--narrow { max-width: 960px; }
.sec { position: relative; padding: clamp(72px, 8.5vw, 132px) 0; }
.sec--tight { padding: clamp(48px, 5.5vw, 84px) 0; }
.sec--deep { background: var(--bg-1); }
.sec--light { background: var(--light); color: var(--light-ink); }
.sec--light h2, .sec--light h3 { color: var(--light-ink); }
.sec--light .lede, .sec--light .muted { color: var(--light-ink2); }
.hair { height: 1px; border: 0; margin: 0; background: var(--line); }

/* ── type ──────────────────────────────────────────────────────────────── */
h1, h2, h3, .d { font-family: var(--font-disp); font-weight: 600; letter-spacing: -.028em; line-height: 1.08; }
.t-hero { font-size: clamp(2.6rem, 7.2vw, 6rem); line-height: 1.02; letter-spacing: -.035em; }
.t-1 { font-size: clamp(2rem, 3.8vw, 3.4rem); }
.t-2 { font-size: clamp(1.45rem, 2.2vw, 2.05rem); line-height: 1.16; }
.t-3 { font-size: 1.16rem; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
.lede { font-size: clamp(1rem, 1.15vw, 1.14rem); color: var(--ink-2); max-width: 62ch; }
.small { font-size: .88rem; } .xs { font-size: .79rem; }
.muted { color: var(--ink-2); } .dim { color: var(--ink-3); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 11px/1 var(--font-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--brand-2);
}
.eyebrow::before { content: ""; width: 20px; height: 1px; background: currentColor; }
.eyebrow--grey { color: var(--ink-3); }
.mt-xs { margin-top: 8px; } .mt-s { margin-top: 14px; } .mt-m { margin-top: 24px; }
.mt-l { margin-top: 38px; } .mt-xl { margin-top: 60px; }
.center { text-align: center; }
.sec__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 26px; margin-bottom: clamp(32px, 3.8vw, 58px); }
.sec__head .lede { margin-top: 14px; }

/* ── buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 13px 24px;
  border: 1px solid transparent; border-radius: 2px; background: var(--brand); color: #fff;
  font: 600 .92rem/1 var(--font-body); cursor: pointer;
  transition: background .25s ease, transform .3s var(--ease-out), box-shadow .3s ease;
}
.btn:hover { background: #c3000f; transform: translateY(-1px); box-shadow: 0 14px 30px -16px rgba(230,0,18,.85); }
.btn--ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.34); box-shadow: none; }
.btn--light { background: var(--light-ink); color: #fff; }
.btn--light:hover { background: #1c242e; }
.btn--sm { padding: 10px 17px; font-size: .85rem; }
.btn--block { width: 100%; justify-content: center; }
.btn svg { flex: none; }

.link { display: inline-flex; align-items: center; gap: 8px; font: 600 .89rem var(--font-body); color: var(--brand-2); }
.link svg { transition: transform .3s var(--ease-out); }
.link:hover svg { transform: translateX(4px); }
.link--ink { color: var(--ink); }
.link--ink:hover { color: var(--brand-2); }

.tag {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px;
  border: 1px solid var(--line-2); border-radius: 2px;
  font: 500 .72rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
}
.tag--red { border-color: rgba(230,0,18,.5); color: var(--brand-2); background: rgba(230,0,18,.08); }
.sec--light .tag { border-color: rgba(11,15,20,.2); color: var(--light-ink2); }

/* ── navigation ────────────────────────────────────────────────────────── */
.util { border-bottom: 1px solid var(--line); background: #030507; }
.util__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 38px; font-size: .78rem; color: var(--ink-3); }
.util__links { display: flex; align-items: center; gap: 20px; }
.util a:hover { color: var(--ink); }

.nav {
  position: sticky; top: 0; z-index: 90; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(5,7,10,.82); backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: background .3s ease, border-color .3s ease;
}
.nav.is-stuck { background: rgba(5,7,10,.96); border-bottom-color: var(--line-2); }
.nav__in { display: flex; align-items: center; gap: 26px; width: 100%; }
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand__mark {
  width: 34px; height: 34px; display: grid; place-items: center; flex: none;
  background: var(--brand); color: #fff; font: 700 16px/1 var(--font-disp); border-radius: 2px;
}
.brand__name { font: 600 1rem/1.1 var(--font-disp); letter-spacing: -.01em; }
.brand__sub { display: block; font: 500 9.5px/1.5 var(--font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }

.menu { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.menu__i { position: relative; }
.menu__a {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 13px; border-radius: 3px;
  font-size: .9rem; color: var(--ink-2); transition: color .2s ease, background .2s ease;
}
.menu__i:hover > .menu__a, .menu__i.is-open > .menu__a { color: var(--ink); background: rgba(255,255,255,.05); }
.menu__i.is-here > .menu__a { color: var(--brand-2); }
.caret { transition: transform .25s var(--ease); opacity: .55; }
.menu__i:hover .caret { transform: rotate(180deg); }

.mega {
  position: fixed; top: var(--nav-h); left: 50%; transform: translate(-50%, -8px);
  width: min(1000px, 93vw); padding: 28px 30px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 34px;
  background: rgba(9,13,18,.985); border: 1px solid var(--line-2);
  box-shadow: 0 40px 90px -30px #000, 0 0 0 1px rgba(0,0,0,.6);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s ease, transform .3s var(--ease-out), visibility .22s;
}
.mega--3 { grid-template-columns: repeat(3, 1fr); }
.menu__i:hover .mega, .menu__i:focus-within .mega, .menu__i.is-open .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.mega__c > h4 {
  font: 500 10.5px/1 var(--font-mono); letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-3); padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--line);
}
.mega__c a { display: block; padding: 8px 0; font-size: .88rem; color: var(--ink-2); }
.mega__c a:hover { color: var(--brand-2); }
.mega__c a b { display: block; color: var(--ink); font-weight: 600; }
.mega__c a span { display: block; font-size: .76rem; color: var(--ink-3); }
.mega__f { grid-column: 1 / -1; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }

.nav__act { display: flex; align-items: center; gap: 10px; flex: none; }
.ibtn { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); cursor: pointer; border-radius: 3px; }
.ibtn:hover { color: var(--ink); border-color: rgba(255,255,255,.32); }
.burger { display: none; }
.burger span { display: block; width: 16px; height: 1.5px; background: var(--ink); margin: 3.5px auto; transition: transform .3s var(--ease-out), opacity .2s; }
.burger.is-open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.drawer { position: fixed; inset: 0; z-index: 80; padding: 22px var(--pad) 40px; background: var(--bg); overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility .28s; }
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer details, .drawer > a.dtop { border-bottom: 1px solid var(--line); }
.drawer summary { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font: 600 1.05rem/1.2 var(--font-disp); cursor: pointer; list-style: none; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary::after { content: "+"; color: var(--brand); font-size: 1.2rem; }
.drawer details[open] summary::after { content: "–"; }
.drawer details a { display: block; padding: 10px 0 10px 2px; color: var(--ink-2); font-size: .92rem; }
.drawer > a.dtop { display: block; padding: 16px 0; font: 600 1.05rem/1.2 var(--font-disp); }
.drawer__cta { margin-top: 24px; display: grid; gap: 10px; }

/* ── hero ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: min(100svh, 900px); display: flex; align-items: flex-end;
  padding: calc(var(--nav-h) + 40px) 0 clamp(28px, 4vw, 52px); overflow: hidden;
  background: var(--bg);
}
/* CSS-only "diamond wire" field — no image request, no library */
.hero__wires {
  position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.075) 0 1px, transparent 1px 84px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 84px);
  mask-image: radial-gradient(110% 78% at 50% 62%, #000 26%, transparent 76%);
  -webkit-mask-image: radial-gradient(110% 78% at 50% 62%, #000 26%, transparent 76%);
}
.hero__scan {
  position: absolute; left: 0; right: 0; height: 26vh; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(230,0,18,.10) 55%, transparent);
  animation: scan 9s var(--ease) infinite;
}
.hero__glow {
  position: absolute; width: 70vw; height: 70vw; right: -22vw; top: -26vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(230,0,18,.20), transparent 62%); filter: blur(60px); pointer-events: none;
}
.hero__in { position: relative; z-index: 2; width: 100%; }
.hero h1 { max-width: 20ch; text-wrap: balance; }
.hero__sub { margin-top: 26px; font-size: clamp(1rem, 1.25vw, 1.16rem); color: var(--ink-2); max-width: 60ch; }
.hero__row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* glass figure bar pinned to the bottom of the hero */
.bar {
  position: relative; z-index: 3; margin-top: clamp(46px, 6vw, 88px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line-2); backdrop-filter: blur(10px); background: rgba(255,255,255,.035);
}
.bar > div { padding: 20px clamp(14px, 2vw, 26px); border-right: 1px solid var(--line-2); }
.bar > div:last-child { border-right: 0; }
.bar__n { font: 600 clamp(1.4rem, 2.4vw, 2rem)/1 var(--font-disp); letter-spacing: -.03em; }
.bar__n em { font-style: normal; color: var(--brand-2); }
.bar__l { margin-top: 7px; font-size: .78rem; color: var(--ink-3); }

/* inner page head */
.phead { position: relative; padding: clamp(38px, 5vw, 74px) 0 clamp(34px, 4vw, 56px); border-bottom: 1px solid var(--line); overflow: hidden; }
.phead__grid { position: absolute; inset: 0; opacity: .4; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 84px); mask-image: linear-gradient(180deg, #000, transparent); -webkit-mask-image: linear-gradient(180deg, #000, transparent); }
.phead .wrap { position: relative; z-index: 2; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font: 500 .78rem/1.4 var(--font-mono); color: var(--ink-3); }
.crumbs a:hover { color: var(--brand-2); }
.phead h1 { margin-top: 16px; }
.phead .lede { margin-top: 16px; }

@keyframes scan { 0% { transform: translateY(-30%); opacity: 0; } 35% { opacity: 1; } 100% { transform: translateY(120vh); opacity: 0; } }

/* ── hero background video (asset pack) ───────────────────────────────── */
.hero-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: .34; filter: saturate(.62) contrast(1.1);
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }
