/* Digiworz website: light, university friendly. Tokens match the NTU deck. */
:root {
  --white: #ffffff;
  --mint: #F0FDF4;
  --mint-2: #DCFCE7;
  --line: #D9EDDF;
  --ink: #1a1a1a;
  --grey: #555e50;
  --dim: #8a9384;
  --lime: #22C55E;
  --green: #15803D;
  --shadow: 0 1px 2px rgba(40, 60, 20, .05), 0 8px 24px rgba(40, 60, 20, .08);
  --shadow-lift: 0 2px 4px rgba(40, 60, 20, .06), 0 16px 40px rgba(40, 60, 20, .14);
  --radius: 18px;
  --wrap: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 17px/1.6 Arial, "Helvetica Neue", Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: var(--green); }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: 20px; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--green);
}
.kicker::before { content: ""; width: 24px; height: 3px; border-radius: 2px; background: var(--lime); }
.lead { font-size: 19px; color: var(--grey); max-width: 640px; }
.section { padding: 104px 0; position: relative; }
.section.soft { background: var(--mint); }
.section-head { display: grid; gap: 16px; margin-bottom: 48px; max-width: 760px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none;
  border: 2px solid var(--green); transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: #166534; transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-ghost { background: rgba(255, 255, 255, .8); color: var(--green); }
.btn-ghost:hover { background: var(--white); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

/* Draft ribbon (remove at launch) */
.draft-ribbon {
  background: var(--ink); color: #dfe8d4; font-size: 13px; text-align: center; padding: 7px 16px;
}
.draft-ribbon b { color: var(--lime); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(40, 60, 20, .06); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 700; padding: 9px 13px; border-radius: 999px;
  transition: background .2s, color .2s;
}
.nav a:hover { background: var(--mint); color: var(--green); }
.nav .btn { padding: 10px 20px; font-size: 15px; margin-left: 8px; color: var(--white); }
.nav .btn:hover { background: #166534; color: var(--white); }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle svg { width: 28px; height: 28px; }

/* Hero */
.hero { position: relative; min-height: min(86vh, 820px); display: flex; align-items: center; overflow: hidden; background: var(--mint); }
.hero-media { position: absolute; inset: 0; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.92) 34%, rgba(255,255,255,.45) 58%, rgba(255,255,255,0) 78%);
}
.hero-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .wrap { position: relative; width: 100%; padding-top: 64px; padding-bottom: 64px; }
.hero-copy { max-width: 600px; display: grid; gap: 26px; }
.hero h1 { font-size: clamp(52px, 8vw, 96px); font-weight: 700; letter-spacing: -.03em; }
.hero h1 .accent { color: var(--lime); }
.hero .lead { font-size: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-partners { font-size: 14px; color: var(--grey); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero-partners b { color: var(--green); }
.hero-partners span { display: inline-flex; align-items: center; gap: 8px; }
.hero-partners span + span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--lime); margin-right: 10px; }
.tag {
  position: absolute; display: inline-block; font-size: 12px; font-weight: 700; color: var(--green);
  background: rgba(255, 255, 255, .92); border-radius: 999px; padding: 5px 12px; box-shadow: var(--shadow);
}
.hero .tag { right: 24px; bottom: 22px; }

/* Partners */
.partners { padding: 72px 0 96px; }
.partners .intro { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; margin-bottom: 32px; }
.partners .intro p { max-width: 520px; color: var(--grey); }
.group-label { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--green); margin: 0 0 14px; }
.core { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 36px; }
.core-card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 30px 28px 26px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.core-card::before { content: ""; position: absolute; left: 28px; top: 0; width: 56px; height: 4px; border-radius: 0 0 3px 3px; background: var(--lime); }
.core-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.core-card img { height: 40px; width: auto; max-width: 58%; object-fit: contain; }
.core-card .tier { font-size: 22px; font-weight: 700; line-height: 1; text-align: right; }
.core-card .tier small { display: block; font-size: 13px; color: var(--grey); font-weight: 400; margin-top: 6px; }
.others { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; }
.logo-tile {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; height: 92px;
  display: grid; place-items: center; padding: 16px; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.logo-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.logo-tile img { max-height: 40px; width: auto; object-fit: contain; }
.logo-tile img.tall { max-height: 58px; }
.logo-tile .word { font-weight: 700; font-size: 20px; letter-spacing: .04em; }
.others figcaption { text-align: center; font-size: 12px; color: var(--grey); margin-top: 8px; line-height: 1.3; }
.others figcaption.plat { color: var(--green); font-weight: 700; }
.others figure { margin: 0; }
.fine { font-size: 13px; color: var(--dim); }

/* New era */
.era { background: linear-gradient(180deg, var(--mint) 0%, var(--white) 100%); overflow: hidden; }
.era-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.era-points { display: grid; gap: 16px; margin-top: 34px; }
.point { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; }
.icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--mint-2); color: var(--green);
  display: grid; place-items: center;
}
.icon svg { width: 26px; height: 26px; }
.point h3 { font-size: 18px; margin-bottom: 4px; }
.point p { color: var(--grey); font-size: 16px; }
.era-note { margin-top: 30px; padding: 18px 22px; border-left: 4px solid var(--lime); background: var(--white); border-radius: 0 12px 12px 0; box-shadow: var(--shadow); color: var(--grey); font-size: 16px; }
.era-note b { color: var(--green); }
.network { position: relative; aspect-ratio: 1 / 1; max-width: 520px; justify-self: center; width: 100%; }
.network svg { width: 100%; height: 100%; overflow: visible; }

/* Solutions */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.card .ph { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--mint); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .ph img { transform: scale(1.05); }
.card .ph .tag { left: 14px; bottom: 14px; }
.card .body { padding: 22px 24px 26px; display: grid; gap: 8px; }
.card .body p { color: var(--grey); font-size: 15.5px; }

/* AV x AI */
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px; }
.panel .group-label { margin-bottom: 20px; }
.panel .point + .point { margin-top: 18px; }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chip {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--mint);
  font-weight: 700; font-size: 15.5px; transition: background .25s, transform .25s var(--ease);
}
.chip:hover { background: var(--mint-2); transform: translateY(-2px); }
.chip .icon { width: 38px; height: 38px; border-radius: 10px; background: var(--white); flex: none; }
.chip .icon svg { width: 20px; height: 20px; }
.band {
  margin-top: 28px; background: var(--green); color: var(--white); border-radius: var(--radius);
  padding: 26px 32px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; position: relative; overflow: hidden;
}
.band b { font-size: 18px; }
.band span { opacity: .92; }
.proof { margin-top: 16px; font-size: 15px; color: var(--grey); }
.proof b { color: var(--green); }

/* MAXHUB */
.maxhub-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.maxhub-media { position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lift); aspect-ratio: 4 / 3.2; }
.maxhub-media img { width: 100%; height: 100%; object-fit: cover; }
.maxhub-media .tag { left: 16px; bottom: 16px; }
.maxhub-logo { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.maxhub-logo img { height: 26px; width: auto; }
.maxhub-logo span { font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--green); padding: 5px 10px; border-radius: 999px; background: var(--mint-2); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 28px 0 22px; }
.fact { background: var(--mint); border-radius: 16px; padding: 20px; }
.fact strong { display: block; font-size: 34px; color: var(--green); line-height: 1; margin-bottom: 8px; }
.fact p { font-size: 14.5px; color: var(--grey); }
.ticks { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--grey); font-size: 16px; }
.ticks li::before {
  content: ""; width: 22px; height: 22px; border-radius: 50%; margin-top: 2px;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.ticks b { color: var(--ink); }

/* Configurator teaser */
.config { background: var(--mint); overflow: hidden; }
.config-grid { display: grid; grid-template-columns: .9fr 1.25fr; gap: 56px; align-items: center; }
.steps { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: center; font-size: 16px; color: var(--grey); }
.steps li::before {
  content: counter(s); width: 40px; height: 40px; border-radius: 50%; background: var(--lime); color: var(--white);
  font-weight: 700; display: grid; place-items: center;
}
.steps b { color: var(--ink); }
.screen {
  position: relative; border-radius: 20px; background: var(--white); padding: 12px; box-shadow: var(--shadow-lift);
  transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transition: transform .6s var(--ease);
}
.screen:hover { transform: perspective(1600px) rotateY(0) rotateX(0); }
.screen img { border-radius: 12px; }
.screen .live {
  position: absolute; top: -14px; right: 26px; background: var(--green); color: var(--white); font-size: 13px; font-weight: 700;
  padding: 7px 14px; border-radius: 999px; display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow);
}
.screen .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #BBF7D0; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* Projects */
.projects { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 260px 260px; gap: 20px; }
.project { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--mint); }
.project:first-child { grid-row: span 2; }
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.project:hover img { transform: scale(1.05); }
.project .cap {
  position: absolute; left: 14px; right: 14px; bottom: 14px; background: rgba(255, 255, 255, .94); border-radius: 12px;
  padding: 12px 16px;
}
.project .cap b { display: block; font-size: 15.5px; }
.project .cap span { font-size: 13.5px; color: var(--grey); }
.trusted { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.trusted .label { font-size: 14px; color: var(--grey); margin-right: 6px; }
.pill { font-size: 14px; font-weight: 700; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; }

/* Why + service */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.why { background: var(--green); color: var(--white); border-radius: 24px; padding: 40px; position: relative; overflow: hidden; }
.why h2 { color: var(--white); margin: 14px 0 26px; font-size: 34px; }
.why .kicker { color: #BBF7D0; }
.why .kicker::before { background: #86EFAC; }
.why-list { display: grid; gap: 20px; position: relative; }
.why-list div { display: grid; grid-template-columns: 14px 1fr; gap: 16px; }
.why-list div::before { content: ""; width: 12px; height: 12px; margin-top: 6px; border-radius: 50%; background: #86EFAC; }
.why-list b { display: block; font-size: 18px; margin-bottom: 2px; }
.why-list p { opacity: .9; font-size: 15.5px; }
.why svg.deco { position: absolute; right: -110px; top: -110px; width: 300px; opacity: .14; pointer-events: none; }
.service { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.stat strong { display: block; font-size: 30px; color: var(--green); line-height: 1.05; margin-bottom: 8px; }
.stat p { font-size: 15px; color: var(--grey); }
.leader { grid-column: span 2; display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: center; background: var(--mint); border-radius: var(--radius); padding: 22px 26px; }
.leader .icon { width: 64px; height: 64px; border-radius: 50%; background: var(--white); }
.leader b { font-size: 17px; }
.leader p { color: var(--grey); font-size: 15px; }
.certs { grid-column: span 2; display: flex; flex-wrap: wrap; gap: 10px; }

/* CTA + footer */
.cta { padding: 0 0 104px; }
.cta-box {
  position: relative; overflow: hidden; border-radius: 28px; background: var(--mint); padding: 64px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center;
}
.cta-box h2 { margin: 14px 0 16px; }
.cta-box .lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cta-box > * { position: relative; }
.contact-list { display: grid; gap: 14px; }
.contact-list a, .contact-list div {
  display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: center; color: var(--ink); text-decoration: none;
  background: var(--white); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); font-weight: 700; font-size: 16px;
  transition: transform .25s var(--ease);
}
.contact-list a:hover { transform: translateX(4px); }
.contact-list .icon { width: 46px; height: 46px; border-radius: 12px; }
.contact-list .icon svg { width: 22px; height: 22px; }
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 36px; font-size: 14px; color: var(--grey); }
.site-footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.site-footer img { height: 40px; width: auto; margin-bottom: 14px; }
.site-footer h4 { margin: 0 0 12px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--green); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--grey); text-decoration: none; }
.site-footer a:hover { color: var(--green); }
.legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--dim); font-size: 13px; }

/* Animated brand lines */
.flow { fill: none; stroke-linecap: round; }
.flow.a { stroke: var(--lime); stroke-width: 2; opacity: .55; }
.flow.b { stroke: var(--green); stroke-width: 1.4; opacity: .35; }
.flow.c { stroke: #86EFAC; stroke-width: 1; opacity: .5; }
.dash { stroke-dasharray: 6 14; animation: dash 6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -200; } }
.drift { animation: drift 14s ease-in-out infinite alternate; transform-origin: center; }
.drift.slow { animation-duration: 20s; }
@keyframes drift { from { transform: translateY(-8px); } to { transform: translateY(10px); } }
.pulse { fill: var(--lime); }
.node-ring { fill: var(--white); stroke: var(--line); stroke-width: 1.5; }
.node-core { fill: var(--green); }
.ping { fill: none; stroke: var(--lime); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ping 3s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }
.reveal[data-d="6"] { transition-delay: .48s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .screen { transform: none; }
}

/* Responsive */
@media (max-width: 1080px) {
  .nav a:not(.btn) { display: none; }
  .menu-toggle { display: block; }
  .nav.open { position: absolute; top: 76px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; padding: 12px 24px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open a:not(.btn) { display: block; }
  .nav.open .btn { margin: 8px 0 0; justify-content: center; }
  .others { grid-template-columns: repeat(4, 1fr); }
  .era-grid, .maxhub-grid, .config-grid, .why-grid, .cta-box { grid-template-columns: 1fr; }
  .network { max-width: 420px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .projects { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 220px 220px; }
  .project:first-child { grid-column: span 2; grid-row: auto; }
  .screen { transform: none; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .kicker { letter-spacing: .14em; font-size: 12px; }
  .section { padding: 72px 0; }
  .wrap { padding: 0 16px; }
  .nav .btn { display: none; }
  .nav.open .btn { display: inline-flex; }
  .hero { min-height: 0; }
  .hero-media::after { background: linear-gradient(180deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.94) 60%, rgba(255,255,255,.98) 100%); }
  .hero .wrap { padding-top: 56px; padding-bottom: 72px; }
  .core, .ai-grid, .cards, .facts, .service, .chips { grid-template-columns: 1fr; }
  .leader, .certs { grid-column: auto; }
  .others { grid-template-columns: repeat(2, 1fr); }
  .projects { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 240px; }
  .project:first-child { grid-column: auto; }
  .panel, .why { padding: 26px; }
  .cta-box { padding: 32px 22px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}

/* ---------- The room wakes up (scroll story) ---------- */
.wake { position: relative; height: 380vh; background: var(--white); }
.wake-stage { position: sticky; top: 76px; height: calc(100vh - 76px); padding: 14px 16px 16px; }
.wake-frame {
  position: relative; height: 100%; border-radius: 26px; overflow: hidden; background: #dfe4dc;
  box-shadow: 0 30px 80px rgba(40, 60, 20, .18);
}
.wake-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.wake-loading {
  position: absolute; inset: 0; display: grid; place-content: center; gap: 14px; justify-items: center;
  color: var(--green); font-weight: 700; font-size: 14px; letter-spacing: .12em; text-transform: uppercase;
  background: var(--mint); transition: opacity .6s;
}
.wake-loading span { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--mint-2); border-top-color: var(--lime); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.wake.ready .wake-loading { opacity: 0; pointer-events: none; }

.wake-copy {
  position: absolute; left: 28px; top: 28px; width: min(420px, 40%);
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px) saturate(1.3); border-radius: 20px;
  padding: 24px 26px 26px; box-shadow: var(--shadow-lift);
}
.wake-steps { display: grid; margin-top: 12px; }
.wake-step { grid-area: 1 / 1; opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); pointer-events: none; }
.wake-step.on { opacity: 1; transform: none; pointer-events: auto; }
.wake-step h2 { font-size: clamp(22px, 2.3vw, 32px); margin-bottom: 10px; }
.wake-step p { color: var(--grey); font-size: 16px; }

.wake-hud {
  position: absolute; right: 28px; top: 28px; width: 250px; background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px) saturate(1.3); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow-lift); font-size: 13.5px;
}
.hud-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: 10px; }
.hud-head b { margin-left: auto; font-size: 18px; letter-spacing: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.hud-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); animation: blink 1.6s infinite; }
.wake-hud ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.wake-hud li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); color: var(--grey); }
.wake-hud li b { color: var(--dim); font-weight: 700; transition: color .3s; text-align: right; }
.wake-hud li.live b { color: var(--green); }
.wake-hud li.live b::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); margin-right: 7px; vertical-align: 1px; }
.hud-power { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; padding-top: 10px; color: var(--grey); }
.hud-power b { color: var(--ink); font-variant-numeric: tabular-nums; }
.wake-power { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--mint-2); overflow: hidden; }
.wake-power i { display: block; height: 100%; width: 4%; background: linear-gradient(90deg, var(--lime), var(--green)); border-radius: 3px; }

.wake-pip {
  position: absolute; right: 28px; bottom: 28px; width: 250px; margin: 0; background: var(--white); border-radius: 14px;
  padding: 6px; box-shadow: var(--shadow-lift); opacity: 0; transition: opacity .2s;
}
.wake-pip canvas { display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: 9px; background: #e8ece5; }
.wake-pip figcaption { font-size: 12px; font-weight: 700; color: var(--grey); padding: 6px 4px 2px; display: flex; align-items: center; gap: 7px; }
.rec { width: 8px; height: 8px; border-radius: 50%; background: #e0452c; animation: blink 1.2s infinite; }

.wake-toast {
  position: absolute; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0;
  display: flex; align-items: center; gap: 10px; background: var(--green); color: var(--white); font-weight: 700; font-size: 14px;
  padding: 12px 18px; border-radius: 999px; box-shadow: var(--shadow-lift); transition: opacity .4s, transform .4s var(--ease); white-space: nowrap;
}
.wake-toast svg { width: 18px; height: 18px; }
.wake-toast.on { opacity: 1; transform: translate(-50%, 0); }

.wake-rail { position: absolute; left: 28px; bottom: 28px; list-style: none; margin: 0; padding: 10px 14px; display: flex; gap: 10px; background: rgba(255,255,255,.9); border-radius: 999px; box-shadow: var(--shadow); }
.wake-rail li { width: 10px; height: 10px; border-radius: 50%; background: var(--line); cursor: pointer; transition: background .3s, transform .3s; }
.wake-rail li.on { background: var(--lime); }
.wake-rail li:hover { transform: scale(1.3); }
.wake-tag { left: 50%; top: 16px; transform: translateX(-50%); }

/* ---------- Client logos ---------- */
.clients { margin-top: 56px; display: grid; gap: 18px; }
.clients .group-label { margin: 0 auto 4px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee .track { display: flex; align-items: center; gap: 64px; width: max-content; animation: marquee 60s linear infinite; padding: 10px 0; }
.marquee.reverse .track { animation-direction: reverse; animation-duration: 54s; }
.marquee:hover .track { animation-play-state: paused; }
.marquee img { height: 54px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: .62; transition: filter .3s, opacity .3s, transform .3s; }
.marquee img:hover { filter: none; opacity: 1; transform: scale(1.06); }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 900px) {
  .wake { height: 340vh; }
  .wake-stage { padding: 10px; }
  .wake-copy { left: 12px; right: 12px; top: auto; bottom: 64px; width: auto; padding: 18px 20px; }
  .wake-step p { font-size: 14.5px; }
  .wake-hud { right: 12px; top: 12px; width: 200px; padding: 12px 14px; font-size: 12px; }
  .wake-hud li { padding: 4px 0; }
  .wake-hud li:nth-child(n+5) { display: none; }
  .wake-pip { left: 12px; right: auto; top: 12px; bottom: auto; width: 150px; }
  .wake-toast { left: 12px; right: auto; bottom: 214px; transform: translateY(16px); font-size: 12px; white-space: normal; max-width: calc(100% - 24px); }
  .wake-toast.on { transform: none; }
  .wake-rail { left: 50%; transform: translateX(-50%); bottom: 16px; }
  .wake-tag { top: auto; bottom: 52px; display: none; }
  .marquee img { height: 40px; }
  .marquee .track { gap: 40px; }
}
@media (prefers-reduced-motion: reduce) { .marquee .track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }
