/* Kawai — Terminal-inspired redesign (local dev) */
:root {
  --navy: #1B2E5E;
  --navy-2: #0e1834;
  --ink: #04070f;
  --red: #D42B2B;
  --red-hot: #ff3b3b;
  --paper: #f2f3f6;
  --line: rgba(255,255,255,.12);
  --line-dark: rgba(27,46,94,.14);
  --text: #e9eeff;
  --mute: #8b97b8;
  --chamfer: 22px;
  --sans: "Inter Tight", system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--ink); color: var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-weight: 400; letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: clamp(2.3rem, 5.4vw, 4.6rem); margin-bottom: 1.4rem; }
h3 { font-size: 1.6rem; letter-spacing: -0.02em; margin-bottom: .8rem; line-height: 1.12; }
section { padding: clamp(80px, 12vw, 160px) clamp(20px, 6vw, 96px); position: relative; }
.center { text-align: center; }
.narrow { max-width: 640px; }
.muted { color: rgba(233,238,255,.42); }
.muted-dark { color: rgba(27,46,94,.38); }
.eyebrow { font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-bottom: 1.4rem; display: flex; align-items: center; gap: .6rem; }
.dark-eyebrow { color: var(--red); }
.dot { width: 7px; height: 7px; background: var(--red-hot); border-radius: 50%; box-shadow: 0 0 12px var(--red-hot); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.55; color: rgba(233,238,255,.72); max-width: 560px; }
.lede-dark { font-size: 1.15rem; line-height: 1.55; color: rgba(27,46,94,.72); margin-bottom: 2.6rem; }

/* chamfered shapes — the Terminal signature, with Kawai's slanted red tab */
.chamfer, .ccard, .cap, .tabpane, .stat, .form, .btn, .client {
  clip-path: polygon(var(--chamfer) 0, 100% 0, 100% calc(100% - var(--chamfer)), calc(100% - var(--chamfer)) 100%, 0 100%, 0 var(--chamfer));
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; padding: 1rem 1.6rem; border: 0; cursor: pointer; --chamfer: 10px; transition: background .2s, transform .2s; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-hot); }
.btn-sm { padding: .7rem 1.1rem; font-size: .72rem; }
.link { font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--red); text-decoration: none; }
.link:hover { text-decoration: underline; }
.light-link { color: var(--red-hot); }

/* nav */
.nav { position: fixed; z-index: 50; top: 14px; left: 50%; transform: translateX(-50%); width: min(1240px, calc(100% - 28px)); display: flex; align-items: center; gap: 2rem; padding: .7rem .8rem .7rem 1.4rem; background: rgba(4,7,15,.55); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border: 1px solid var(--line); border-radius: 14px; transition: background .3s; }
.nav.on-light { background: rgba(14,24,52,.82); }
.nav-logo img { height: 22px; width: auto; }
.nav-links { display: flex; gap: 1.8rem; margin-left: auto; }
.nav-links a { font-size: .9rem; text-decoration: none; color: rgba(233,238,255,.75); }
.nav-links a:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; width: 36px; height: 36px; flex-direction: column; justify-content: center; gap: 6px; cursor: pointer; margin-left: auto; }
.nav-toggle span { height: 1.5px; background: #fff; width: 22px; margin: 0 auto; display: block; }

/* ===== HERO ===== */
.hero { height: 100vh; min-height: 640px; padding: 0; overflow: hidden; background: var(--ink); }
#journey { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-copy { position: absolute; left: clamp(20px, 5vw, 80px); top: clamp(96px, 14vh, 140px); max-width: 470px; pointer-events: none; z-index: 2; }
.hero-copy .eyebrow { max-width: 380px; line-height: 1.6; }
.hero-copy h1 { font-size: clamp(2.4rem, 4.8vw, 4.4rem); margin-bottom: 1.1rem; text-shadow: 0 2px 30px rgba(0,0,0,.6); }
.hero-copy .lede { font-size: 1.02rem; max-width: 400px; text-shadow: 0 1px 14px rgba(0,0,0,.8); }
.hero-copy { transition: opacity .8s, transform .8s; }
body.copy-off .hero-copy { opacity: 0; transform: translateY(-12px); }

.hud { position: absolute; inset: auto clamp(14px, 3vw, 40px) clamp(14px, 3vh, 28px); z-index: 3; font-family: var(--mono); }
.hud-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 14px; flex-wrap: wrap; }
.hud-stage { display: flex; flex-direction: column; gap: 4px; }
.hud-num { font-size: .72rem; color: var(--red-hot); letter-spacing: .14em; }
.hud-title { font-family: var(--sans); font-size: clamp(1.4rem, 2.6vw, 2.2rem); letter-spacing: -.03em; color: #fff; }
.hud-place { font-size: .78rem; color: var(--mute); letter-spacing: .06em; text-transform: uppercase; }
.hud-doc { display: flex; gap: .7rem; align-items: center; font-size: .78rem; padding: .6rem .9rem; border: 1px solid var(--line); background: rgba(4,7,15,.6); backdrop-filter: blur(8px); border-radius: 8px; }
.hud-doc .k { color: var(--red-hot); text-transform: uppercase; letter-spacing: .12em; font-size: .66rem; }
.flip { animation: flip .45s cubic-bezier(.2,.8,.2,1); }
@keyframes flip { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } }

.hud-rail { list-style: none; display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; margin-bottom: 12px; }
.hud-rail li { font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(139,151,184,.55); padding-top: 8px; border-top: 2px solid rgba(255,255,255,.1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s, border-color .3s; }
.hud-rail li.on { color: #cfd8ff; border-color: rgba(207,216,255,.55); }
.hud-rail li.now { color: #fff; border-color: var(--red-hot); box-shadow: 0 -6px 14px -8px var(--red-hot); }

.hud-bottom { display: flex; align-items: center; gap: 10px; }
.hud-btn { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: rgba(255,255,255,.06); border: 1px solid var(--line); padding: .45rem .7rem; border-radius: 6px; cursor: pointer; }
.hud-btn:hover { background: rgba(255,255,255,.14); }
.hud-track { position: relative; flex: 1; height: 3px; background: rgba(255,255,255,.12); }
.hud-bar { position: absolute; inset: 0; background: var(--red-hot); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 10px var(--red-hot); }
.hud-chapters button { position: absolute; top: -6px; width: 2px; height: 15px; background: rgba(255,255,255,.35); border: 0; cursor: pointer; padding: 0; }
.hud-chapters button::after { content: ""; position: absolute; inset: -6px -8px; }
.hud-chapters button:hover { background: #fff; }
.hud-tc { font-size: .78rem; color: #cfd8ff; min-width: 74px; text-align: right; }
.hud-rew { position: absolute; right: 0; top: -60vh; font-size: clamp(1.4rem, 3vw, 2.4rem); font-weight: 700; color: #fff; letter-spacing: .1em; opacity: 0; text-shadow: 2px 0 var(--red-hot), -2px 0 #4fd2ff; }
.hud-rew.show { opacity: 1; animation: blink .5s steps(2) infinite; }
.scroll-cue { position: absolute; right: clamp(14px, 3vw, 40px); top: 50%; writing-mode: vertical-rl; font-family: var(--mono); font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; color: var(--mute); text-decoration: none; z-index: 3; }

/* ===== LIGHT SECTIONS ===== */
.light { background: var(--paper); color: var(--navy); }
.light::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px); background-size: 80px 80px; opacity: .35; mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent); pointer-events: none; }
.light > * { position: relative; }
.trust { padding-bottom: 60px; border-radius: 28px 28px 0 0; margin-top: -28px; z-index: 4; }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 3rem; margin-top: 3.5rem; }
.logo-row span { font-family: var(--mono); font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(27,46,94,.55); padding: 1rem 0; border-bottom: 1px solid var(--line-dark); }

.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 4rem; max-width: 1240px; margin-inline: auto; }
.ccard { background: #fff; padding: 2.2rem 2rem 2rem; display: flex; flex-direction: column; transition: transform .35s, background .35s, color .35s; position: relative; }
.ccard::before { content: ""; position: absolute; left: 0; top: 0; width: 34px; height: 6px; background: var(--red); transform: skewX(-35deg); transform-origin: left; margin-left: 22px; }
.ccard:hover { background: var(--navy); color: #fff; transform: translateY(-6px); }
.ccard:hover .ccard-n { color: #ff8a8a; }
.ccard h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); line-height: 1.15; margin: 1.6rem 0 1.1rem; min-height: 2.3em; }
.ccard p { line-height: 1.55; opacity: .75; margin-bottom: 1.8rem; flex: 1; }
.ccard-n { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; color: var(--red); }

/* ===== DARK SECTIONS ===== */
.dark { background: var(--ink); }
.dark::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 80% 0%, rgba(27,46,94,.55), transparent 60%); pointer-events: none; }
.dark > * { position: relative; }
.system { border-radius: 28px 28px 0 0; margin-top: -28px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 4rem; }
.stat { background: linear-gradient(180deg, rgba(27,46,94,.45), rgba(27,46,94,.12)); border: 1px solid var(--line); padding: 2rem 1.6rem; display: flex; flex-direction: column; }
.roll { font-family: var(--sans); font-size: clamp(3.4rem, 6vw, 5.4rem); letter-spacing: -.05em; color: #fff; line-height: 1; margin-bottom: 0; }
.roll-word { letter-spacing: -.04em; }
.roll .digit { display: inline-block; height: 1em; overflow: hidden; vertical-align: top; }
.roll .digit span { display: block; transition: transform 1.6s cubic-bezier(.2,.8,.2,1); }
.stat h4 { font-weight: 500; font-size: 1.1rem; line-height: 1.25; margin: 3rem 0 .8rem; min-height: 2.5em; }
.stat p { color: var(--mute); font-size: .92rem; line-height: 1.5; }

/* LionO Sight — logo breathes in and out */
.platform-head { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: center; }
.liono { display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.liono img { width: clamp(150px, 16vw, 220px); height: auto; mix-blend-mode: multiply; animation: liono-pulse 5s ease-in-out infinite; }
.liono figcaption { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); display: flex; align-items: center; gap: .5rem; }
.liono figcaption::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: blink 1.6s infinite; }
@keyframes liono-pulse { 0%, 100% { opacity: .12; transform: scale(.97); filter: blur(1.5px); } 45%, 60% { opacity: 1; transform: scale(1); filter: blur(0); } }
@media (max-width: 760px) { .platform-head { grid-template-columns: 1fr; } .liono { align-items: flex-start; } }

/* platform tabs */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line-dark); margin-bottom: 2rem; overflow-x: auto; }
.tabs button { font-family: var(--mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; padding: 1rem 1.4rem; background: none; border: 0; color: rgba(27,46,94,.5); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--navy); border-color: var(--red); }
.tabs button { position: relative; }
.tabs.cycling button[aria-selected="true"] { border-color: rgba(212,43,43,.25); }
.tabs.cycling button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%; background: var(--red); transform-origin: left; animation: tabfill var(--tab-ms, 6000ms) linear forwards; }
@keyframes tabfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.tabpanes { position: relative; }
.tabpane { display: none; grid-template-columns: 1fr 1fr; gap: 3rem; background: #fff; padding: 2.6rem; }
.tabpane.active { display: grid; animation: flip .5s; }
.tabpane p { line-height: 1.6; opacity: .78; margin-bottom: 1.4rem; }
.ticks { list-style: none; display: grid; gap: .7rem; }
.ticks li { padding-left: 1.6rem; position: relative; font-size: .95rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 10px; height: 10px; background: var(--red); clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%); }
.pane-vis { min-height: 280px; background: var(--ink); position: relative; overflow: hidden; clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px); }
.pane-vis::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(120,150,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(120,150,255,.12) 1px, transparent 1px); background-size: 32px 32px; animation: drift 12s linear infinite; }
.pane-vis::after { content: attr(data-label); position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--mono); font-size: .9rem; letter-spacing: .1em; color: #fff; padding: .9rem 1.2rem; border: 1.5px solid var(--red-hot); box-shadow: 0 0 30px rgba(255,59,59,.35), inset 0 0 20px rgba(255,59,59,.15); white-space: nowrap; }
@keyframes drift { to { background-position: 32px 32px; } }

/* capabilities */
.caps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 3.5rem; }
.cap { border: 1px solid var(--line); background: rgba(255,255,255,.02); padding: 2.2rem 2rem 2rem; display: flex; flex-direction: column; transition: background .3s; }
.cap:hover { background: rgba(27,46,94,.35); }
.cap.feature { background: linear-gradient(160deg, var(--navy), var(--navy-2)); }
.cap-i { font-family: var(--mono); color: var(--red-hot); font-size: .8rem; margin-bottom: 2.2rem; }
.cap h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); margin: 0 0 1rem; min-height: 2.3em; display: flex; align-items: flex-end; }
.cap p { color: rgba(233,238,255,.7); line-height: 1.6; margin-bottom: 1.8rem; flex: 1; }
.cap strong { color: #fff; font-weight: 600; }

/* network map */
.map { margin-top: 3rem; background: var(--ink); border-radius: 18px; overflow: hidden; padding: 1rem; }
#netmap { width: 100%; height: auto; display: block; }
#netmap .route { fill: none; stroke: rgba(170,190,255,.35); stroke-width: 1.2; stroke-dasharray: 4 6; }
#netmap .route-live { fill: none; stroke: var(--red-hot); stroke-width: 2; filter: drop-shadow(0 0 6px var(--red-hot)); }
#netmap text { font-family: var(--mono); font-size: 12px; fill: #cfd8ff; letter-spacing: .06em; }
#netmap .lagos { font-size: 16px; font-weight: 700; fill: #fff; }

/* clients */
.client-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 3rem; }
.client { border: 1px solid var(--line); padding: 2rem 1.6rem; min-height: 230px; background: rgba(255,255,255,.02); }
.client h4 { font-size: 1.15rem; font-weight: 500; margin-bottom: 1rem; color: #fff; }
.client p { color: var(--mute); line-height: 1.55; font-size: .94rem; }
.creds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); margin-top: 3rem; border: 1px solid var(--line); }
.creds div { background: var(--ink); padding: 1.3rem 1rem; display: flex; flex-direction: column; gap: .35rem; }
.creds strong { font-family: var(--mono); font-size: .82rem; letter-spacing: .06em; color: #fff; }
.creds span { font-size: .78rem; color: var(--mute); line-height: 1.35; }

/* faq */
.faq-list { max-width: 900px; margin-top: 2.5rem; }
.faq details { border-top: 1px solid var(--line-dark); }
.faq details:last-child { border-bottom: 1px solid var(--line-dark); }
.faq summary { list-style: none; cursor: pointer; padding: 1.5rem 3rem 1.5rem 0; font-size: 1.25rem; letter-spacing: -.01em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 1.4rem; color: var(--red); transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 3rem 1.6rem 0; line-height: 1.65; opacity: .78; max-width: 760px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; max-width: 1240px; }
.addr { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; margin-top: 2.6rem; }
.addr dt { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red-hot); padding-top: .2rem; }
.addr dd { line-height: 1.5; color: rgba(233,238,255,.85); }
.addr a { text-decoration: none; border-bottom: 1px solid var(--line); }
.form { background: #fff; color: var(--navy); padding: 2.4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form label { display: flex; flex-direction: column; gap: .4rem; font-size: .82rem; font-weight: 500; }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea { font: inherit; font-size: 1rem; padding: .75rem 0; border: 0; border-bottom: 1px solid rgba(27,46,94,.25); background: transparent; color: var(--navy); outline: none; border-radius: 0; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--red); }
.form-note { font-size: .8rem; opacity: .6; }

/* footer */
.footer { padding: 4rem clamp(20px, 6vw, 96px) 2.5rem; border-top: 1px solid var(--line); background: var(--ink); }
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.foot-logo { height: 26px; width: auto; }
.footer nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer nav a { text-decoration: none; color: var(--mute); font-size: .9rem; }
.footer nav a:hover { color: #fff; }
.foot-data { font-size: .8rem; line-height: 1.6; color: var(--mute); max-width: 980px; margin-bottom: 1.4rem; }
.foot-data strong { color: #cfd8ff; font-weight: 600; }
.foot-data a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.foot-data a:hover { color: #fff; }
.foot-legal { font-family: var(--mono); font-size: .72rem; color: rgba(139,151,184,.6); }

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 1080px) {
  .stats, .client-grid { grid-template-columns: 1fr 1fr; }
  .creds { grid-template-columns: repeat(4, 1fr); }
  .caps-grid, .cards3 { grid-template-columns: 1fr; }
  .ccard h3 { min-height: 0; }
  .cap h3 { min-height: 0; }
}
@media (max-width: 760px) {
  .nav-links, .nav .btn { display: none; }
  .nav-toggle { display: flex; }
  .nav.open { flex-wrap: wrap; }
  .nav.open .nav-links { display: flex; flex-direction: column; width: 100%; gap: 1rem; padding: 1rem 0; }
  .hero-copy { top: 90px; }
  .hero-copy .lede { display: none; }
  .hud-rail { display: none; }
  .hud-doc { font-size: .68rem; }
  .scroll-cue { display: none; }
  .tabpane { grid-template-columns: 1fr; padding: 1.6rem; }
  .contact-grid, .form { grid-template-columns: 1fr; }
  .stats, .client-grid { grid-template-columns: 1fr; }
  .creds { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ===== HIGH-END LAYER ===== */
/* film grain over everything dark — subtle, premium */
body::after { content: ""; position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .045; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-4%)} 60%{transform:translate(-4%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }

/* hero: Lucem indicator */
.hud-chips { position: absolute; z-index: 3; top: 92px; right: max(14px, calc((100% - 1240px) / 2)); display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font-family: var(--mono); transition: opacity .6s; }
.hero-eye { display: inline-block; width: 64px; height: 26px; }
.scan-layer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 4; }
@media (max-width: 1100px) { body:not(.copy-off) .hud-chips { opacity: 0; } }
@media (max-width: 760px) { .hud-chips { top: 76px; right: 14px; } }
.hud-lucem { display: flex; align-items: center; gap: .7rem; font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #cfd8ff; padding: .55rem .9rem; border: 1px solid var(--line); border-radius: 8px; background: rgba(4,7,15,.6); backdrop-filter: blur(8px); }
.mini-eye { width: 38px; height: 18px; border: 1.3px solid #cfd8ff; border-radius: 50%; position: relative; overflow: hidden; display: inline-block; box-shadow: 0 0 10px rgba(207,216,255,.35); animation: lid 6s infinite; }
.mini-eye i { position: absolute; top: 4px; left: 14px; width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff9a9a, #ff3b3b 45%, #7a0b0b); box-shadow: 0 0 10px #ff3b3b, 0 0 0 2px rgba(255,59,59,.25); will-change: transform; }
@keyframes lid { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }

/* manifesto: words light up as you scroll */
.manifesto { padding-top: clamp(100px, 14vw, 180px); padding-bottom: clamp(120px, 16vw, 200px); }
.manifesto-text { font-size: clamp(1.8rem, 3.8vw, 3.4rem); line-height: 1.16; letter-spacing: -.03em; max-width: 1180px; font-weight: 400; }
.manifesto-text .w { color: rgba(233,238,255,.14); transition: color .5s; }
.manifesto-text .w.lit { color: #fff; }
.manifesto-text .w.hl.lit { color: var(--red-hot); }

/* LUCEM */
.lucem { overflow: hidden; }
.lucem::before { background: radial-gradient(ellipse at 70% 50%, rgba(212,43,43,.16), transparent 55%), radial-gradient(ellipse at 10% 0%, rgba(27,46,94,.55), transparent 60%); }
.lucem-grid { display: grid; grid-template-columns: minmax(320px, 0.85fr) 1.15fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.lucem-copy strong { color: #fff; font-weight: 600; }
.lucem-copy .lede + .lede { margin-top: 1rem; color: #fff; }
.lucem-points { list-style: none; display: grid; gap: 0; margin-top: 2.4rem; border-top: 1px solid var(--line); }
.lucem-points li { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.lucem-points b { font-family: var(--mono); color: var(--red-hot); font-weight: 600; font-size: .95rem; }
.lucem-points span { color: rgba(233,238,255,.75); font-size: .95rem; }
.lucem-stage { position: relative; }
.lucem-stage { border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem 1.2rem 1rem; background: linear-gradient(180deg, rgba(14,24,52,.55), rgba(4,7,15,.6)); backdrop-filter: blur(6px); }
.board-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.board-head b { color: #fff; font-weight: 600; }
.legend { display: flex; align-items: center; gap: .45rem; }
.legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-left: .5rem; }
.lg-a { background: #ffcf3d; } .lg-r { background: var(--red-hot); } .lg-g { background: #3ddc84; }
#lucem-board { width: 100%; height: clamp(300px, 26vw, 360px); display: block; margin-top: .4rem; }
.lucem-feed { margin-top: .8rem; border: 1px solid var(--line); background: rgba(4,7,15,.7); backdrop-filter: blur(10px); border-radius: 12px; padding: .9rem 1rem .4rem; font-family: var(--mono); }
.feed-head { display: flex; justify-content: space-between; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-bottom: .5rem; }
.feed-head .live { color: #3ddc84; display: flex; align-items: center; gap: .4rem; }
.feed-head .live i { width: 6px; height: 6px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 8px #3ddc84; animation: blink 1.4s infinite; }
#lucem-log { list-style: none; }
#lucem-log li { display: grid; grid-template-columns: 78px 74px 1fr auto; gap: .2rem .8rem; font-size: .74rem; padding: .55rem 0; border-top: 1px solid rgba(255,255,255,.06); opacity: 0; transform: translateY(-6px); transition: opacity .5s, transform .5s; }
#lucem-log li.in { opacity: 1; transform: none; }
#lucem-log time { color: var(--mute); }
#lucem-log b { color: var(--red-hot); font-weight: 600; }
#lucem-log .what { color: #fff; }
#lucem-log .did { grid-column: 3; color: rgba(207,216,255,.7); }
#lucem-log em { grid-row: 1; grid-column: 4; font-style: normal; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; padding: .15rem .45rem; border-radius: 4px; height: fit-content; }
#lucem-log em.auto { color: #3ddc84; border: 1px solid rgba(61,220,132,.35); }
#lucem-log em.sign-off { color: #ffcf3d; border: 1px solid rgba(255,207,61,.35); }
@media (max-width: 1080px) { .lucem-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { #lucem-log li { grid-template-columns: 64px 1fr; } #lucem-log b { display: none; } #lucem-log .did, #lucem-log .what { grid-column: 2; } #lucem-log em { grid-column: 2; grid-row: auto; justify-self: start; } .hud-lucem { display: none; } }
@media (max-width: 1100px) and (min-width: 761px) {
  .nav { gap: 1.2rem; }
  .nav-links { gap: 1.1rem; }
  .nav-links a, .nav .btn { white-space: nowrap; }
  .nav-links a { font-size: .84rem; }
}

/* LionO logo links to the live demo */
.liono-link { display: block; border-radius: 12px; transition: transform .3s; }
.liono-link:hover { transform: scale(1.04); }
.liono figcaption a { color: inherit; text-underline-offset: 3px; }

/* floating WhatsApp: a tab peeking from the right edge; first tap opens it,
   second tap goes to WhatsApp. Breathes between WhatsApp green and Kawai red. */
.wa-float { position: fixed; z-index: 60; right: 0; bottom: clamp(18px, 4vh, 40px); display: flex; align-items: center; gap: .6rem; padding: .75rem 1.3rem .75rem .75rem; color: #fff; text-decoration: none; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; border-radius: 999px 0 0 999px; background: #25D366; box-shadow: 0 10px 30px -8px rgba(0,0,0,.5); animation: wa-livery 6s ease-in-out infinite; transform: translateX(calc(100% - 34px)); transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .4s; }
.wa-float svg { width: 24px; height: 24px; flex: none; }
.wa-float.open { transform: translateX(0); animation-play-state: paused; }
.wa-float span { opacity: 0; transition: opacity .3s; }
.wa-float.open span { opacity: 1; }
@keyframes wa-livery { 0%, 100% { background: #25D366; box-shadow: 0 10px 30px -8px rgba(37,211,102,.55); } 50% { background: #D42B2B; box-shadow: 0 10px 30px -8px rgba(212,43,43,.6); } }
body:not(.past-hero) .wa-float { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .wa-float { animation: none; } }
