@font-face {
  font-family: "GH Display";
  src: url("/assets/display.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/assets/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-201D, U+2026, U+20AC, U+2122;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF;
}

/*
  Monochrome canvas, one brand voice.
  Neutrals carry the page; GeekHour's navy → green (the logo gradient) is reserved
  for the mark, the hero accent, progress and state.
*/
:root {
  --navy: #1c2a5c;
  --navy-deep: #0e1530;
  --green: #2fa866;
  --green-bright: #35c27a;
  --green-text: #1d7a48;
  --green-soft: #e6f6ed;
  --ink: #0a0a0a;
  --ink-2: #4d4d4d;
  --ink-3: #6e6e6e;
  --line: #ebebeb;
  --line-strong: #d4d4d4;
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --surface: #ffffff;
  --nav-bg: rgba(255, 255, 255, .86);
  --accent-text: var(--navy);
  --btn-bg: var(--ink);
  --btn-fg: #ffffff;
  --btn-hover: #2a2a2a;
  --hex-1: #c9c9c9;
  --hex-3: #e3e3e3;
  --dim: #c4c4c4;
  --selection: #cbeedb;
  --dark-bg: var(--navy-deep);
  --on-dark: #ffffff;
  --on-dark-2: rgba(226, 232, 250, .7);
  --on-dark-line: rgba(255, 255, 255, .12);
  --logo-top: #2b3760;
  --logo-bottom: #4cc07c;
  --brand-grad: linear-gradient(90deg, var(--logo-top), var(--logo-bottom));
  --glow: rgba(53, 194, 122, .16);
  --radius: 12px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-draw: cubic-bezier(0.65, 0, 0.35, 1);
  --font: "Geist", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", "Noto Sans SC",
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "GH Display", var(--font);
  --mono: "Geist Mono", "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

/* Dark theme follows the system setting */
@media (prefers-color-scheme: dark) {
  :root {
    --green-text: #4fd08c;
    --green-soft: rgba(53, 194, 122, .14);
    --ink: #ededed;
    --ink-2: #a1a1a1;
    --ink-3: #8a8a8a;
    --line: #1f1f1f;
    --line-strong: #333333;
    --bg: #0a0a0a;
    --bg-soft: #111111;
    --surface: #0a0a0a;
    --nav-bg: rgba(10, 10, 10, .82);
    --accent-text: #a3b5f0;
    --btn-bg: #ededed;
    --btn-fg: #0a0a0a;
    --btn-hover: #ffffff;
    --hex-1: #3a3a3a;
    --hex-3: #222222;
    --dim: #3d3d3d;
    --selection: #1d5a3b;
    --dark-bg: #0d1430;
    --logo-top: #8fa6ea;
    --glow: rgba(53, 194, 122, .12);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--line-strong) transparent;
  accent-color: var(--green);
}
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  caret-color: var(--green);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01";
  overflow-x: hidden;
}
::selection { background: var(--selection); color: var(--ink); }
.section-dark ::selection { background: var(--green); color: #fff; }
a { color: inherit; text-decoration: none; }
img { display: block; }
ul, ol { list-style: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.gh-stop-top { stop-color: var(--logo-top); }
.gh-stop-bottom { stop-color: var(--logo-bottom); }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1120px, 100% - 48px); margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font-size: 15px; font-weight: 500;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease-out), background-color .2s ease, border-color .2s ease;
}
.btn:active { transform: scale(.97); transition-duration: .1s; }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-dark, .btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-dark:hover, .btn-primary:hover { background: var(--btn-hover); }
.btn-primary .arrow { width: 18px; height: 18px; stroke-width: 2; transition: transform .3s var(--ease-out); }
.btn-primary:hover .arrow { transform: translateX(3px); }
.btn-ghost { border-color: var(--line-strong); background: var(--surface); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-3); background: var(--bg-soft); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.brand .logo { flex: none; display: block; }
.brand-name { font-size: 17px; letter-spacing: -.02em; }
.brand-cn { margin-left: 8px; padding-left: 8px; border-left: 1px solid var(--line-strong); font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--ink-2); }
.nav-links { position: relative; display: flex; gap: 28px; font-size: 14px; color: var(--ink-2); }
.nav-links a { transition: color .2s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-bar {
  position: absolute; left: 0; bottom: -6px; width: 1px; height: 2px; border-radius: 2px;
  background: var(--green); transform-origin: left;
  transform: translateX(var(--x, 0)) scaleX(var(--w, 0)); opacity: 0;
  transition: transform .5s var(--ease-out), opacity .25s ease;
}
.nav-bar.on { opacity: 1; }
.nav-end { display: flex; align-items: center; gap: 12px; }

/* Language switch: both labels show, the current one lit */
.lang-toggle {
  display: inline-flex; align-items: center; gap: 2px; height: 36px; padding: 0 4px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface);
  font: 500 12px/1 var(--font); color: var(--ink-3); cursor: pointer;
  transition: border-color .2s ease;
}
.lang-toggle:hover { border-color: var(--ink-3); }
.lang-toggle span { display: grid; place-items: center; min-width: 28px; height: 26px; padding: 0 6px; border-radius: 999px; transition: background-color .2s ease, color .2s ease; }
.lang-toggle .lang-en { font-family: var(--mono); letter-spacing: .04em; }
.lang-toggle:not([data-lang="en"]) .lang-zh, .lang-toggle[data-lang="en"] .lang-en { background: var(--bg-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.i18n-wait body { visibility: hidden; }

/* English: the display face only covers the Chinese copy, so English headings set in Geist */
html[lang="en"] { --display: var(--font); }
html[lang="en"] .hero-title, html[lang="en"] .section-head h2, html[lang="en"] .contact h2 { font-weight: 600; letter-spacing: -.035em; }

/* Hero */
.hero { position: relative; padding: 120px 0 32px; overflow: hidden; isolation: isolate; }

.hex-art {
  position: absolute; z-index: -1;
  width: 400px; right: calc(50% - 560px); top: 72px;
  overflow: visible;
}
.hex { stroke: var(--line-strong); stroke-width: 1.2; stroke-dasharray: 1; }
.hex-1 { stroke: var(--hex-1); }
.hex-3 { stroke: var(--hex-3); }
.hex-spokes path { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 5; }
.hex-spokes .faint { opacity: .55; }
.hex-trace {
  stroke: var(--green-bright); stroke-width: 2.4;
  stroke-dasharray: .06 .94; stroke-dashoffset: 0;
}
.hex-logo { transform-box: fill-box; transform-origin: center; }

/* Hero mark interaction: main.js eases --mx/--my (-1…1) toward the pointer, or an idle drift.
   The whole mark tilts toward it, each ring layer shifts by its depth --z,
   and a spotlight mask lights the rings green around it. */
.hex-art {
  --mx: 0; --my: 0;
  transform: perspective(1100px) rotateY(calc(var(--mx) * 9deg)) rotateX(calc(var(--my) * -9deg));
}
.hex-layer { translate: calc(var(--mx) * var(--z) * 16px) calc(var(--my) * var(--z) * 16px); }
.hex-glow { fill: none; stroke: var(--green-bright); stroke-width: 1.8; }
.hex-glow .hex-glow-spokes { stroke-width: 1.2; stroke-dasharray: 3 5; }
.hex-trace-2 { stroke-width: 2; }
.hex-trace-3 { stroke-width: 1.6; }
.hex-spot, .hex-halo { stroke: none; }
.hex-halo { opacity: 0; transition: opacity .6s ease; }
.hex-halo-stop { stop-color: var(--green-bright); stop-opacity: .3; }
.hex-halo-stop.edge { stop-opacity: 0; }
.hex-logo { transition: scale .5s var(--ease-out); }
.hex-pop { transform-box: fill-box; transform-origin: center; }
.hex-art.near .hex-halo { opacity: 1; }
.hex-art.near .hex-logo { scale: 1.08; }
.hero.near { cursor: pointer; }
.hex-ripple { fill: none; stroke: var(--green-bright); stroke-width: 2; transform-origin: 200px 230px; pointer-events: none; }

.hero-inner { position: relative; }
.hero-title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(52px, 8.6vw, 96px);
  line-height: 1.12; letter-spacing: .01em;
}
.hero-title .line { display: block; overflow: hidden; padding: 0 .12em .06em 0; margin-bottom: -.06em; }
.hero-title .line > span { display: inline-block; }
.accent { color: var(--accent-text); }
.accent i { font-style: normal; color: var(--green-bright); }
.hero-sub { margin-top: 28px; max-width: 32em; font-size: clamp(16px, 1.7vw, 18px); color: var(--ink-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* Stats: one strip, four peers on a shared label → value rhythm */
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 104px; border-top: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; gap: 8px; padding: 24px 24px 0 0; min-width: 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat dt { font-size: 13px; color: var(--ink-3); }
.stat dd {
  display: flex; align-items: baseline; gap: 4px; min-height: 44px;
  font-size: 36px; font-weight: 600; line-height: 1.2; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.stat dd small { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--ink-2); }
.stat dd.stat-text { align-items: flex-end; font-size: 18px; letter-spacing: -.01em; line-height: 1.6; }
.stat dd.stat-mono { font-family: var(--mono); font-weight: 500; font-size: 17px; letter-spacing: 0; }

/* Sections */
.section { padding: 128px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2, .contact h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(34px, 4.6vw, 52px); line-height: 1.15; letter-spacing: .01em;
}
.section-head p { margin-top: 12px; font-size: 17px; color: var(--ink-2); }

/* Categories marquee */
.marquee { padding: 72px 0 0; }
.marquee-head { margin-bottom: 20px; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.marquee-view {
  display: flex; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; flex: none; gap: 12px; padding-right: 12px; }
.marquee-track li {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-soft);
  font-size: 15px; font-weight: 500; color: var(--ink-2);
}
.marquee-track svg { width: 18px; height: 18px; color: var(--green-text); }
.js .marquee-track { animation: marquee 50s linear infinite; }
.marquee-view:hover .marquee-track { animation-play-state: paused; }

/* Services: four cards, each with a small illustration of the work */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.service {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
  transition: border-color .3s ease, box-shadow .4s ease, transform .4s var(--ease-out);
}
.service:hover { border-color: var(--line-strong); box-shadow: 0 12px 40px -18px rgba(14, 21, 48, .28); transform: translateY(-2px); }
.service-body { display: flex; flex-direction: column; gap: 10px; padding: 24px 28px 28px; flex: 1; }
.service-title { display: flex; align-items: center; gap: 12px; }
.service-title svg { flex: none; width: 22px; height: 22px; color: var(--accent-text); }
.service h3 { font-size: 20px; font-weight: 600; line-height: 1.4; letter-spacing: -.01em; }
.service-body > p { color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--ink-2); }
.tags li { white-space: nowrap; padding: 2px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green-text); }

/* Cases: video cards that open the Bilibili player in a dialog */
.section-soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.case {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
  transition: border-color .3s ease, box-shadow .4s ease, transform .4s var(--ease-out);
}
.case:hover { border-color: var(--line-strong); box-shadow: 0 12px 40px -18px rgba(14, 21, 48, .28); }
.cases .case.reveal.in:hover { transform: translateY(-2px); transition-delay: 0s; }
.cases .reveal:nth-child(3n+2) { transition-delay: .08s; }
.cases .reveal:nth-child(3n) { transition-delay: .16s; }
.case-cover {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  border: 0; border-bottom: 1px solid var(--line); padding: 0; cursor: pointer; color: #fff; font: inherit;
  background: var(--navy-deep);
}
.case-cover:focus-visible { outline-offset: -3px; border-radius: 0; }
.case-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.case-cover:hover img { transform: scale(1.04); }
.case-play {
  position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 50%; background: rgba(10, 10, 10, .55); border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .3s var(--ease-out), background-color .2s ease;
}
.case-play svg { width: 20px; height: 20px; margin-left: 3px; fill: #fff; stroke: none; }
.case-cover:hover .case-play { background: var(--green); border-color: transparent; transform: scale(1.08); }
.case-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.case h3 { font-size: 17px; font-weight: 600; line-height: 1.45; }
.case-body > p { font-size: 14px; color: var(--ink-2); }
.cases-more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 32px;
  font-size: 15px; font-weight: 500; color: var(--accent-text);
}
.cases-more svg { width: 16px; height: 16px; transition: transform .2s var(--ease-out); }
.cases-more:hover svg { transform: translate(2px, -2px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.player {
  width: min(1040px, 100% - 32px); max-width: none; max-height: none; margin: auto; padding: 0;
  border: 1px solid #262626; border-radius: 14px; overflow: hidden; background: #0a0a0a; color: #ededed;
}
.player::backdrop { background: rgba(6, 9, 20, .78); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.player[open] { animation: pop .3s var(--ease-out); }
.player-bar { display: flex; align-items: center; gap: 16px; padding: 10px 10px 10px 20px; }
.player-bar h3 { flex: 1; min-width: 0; font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-ext { flex: none; font-size: 13px; color: #a1a1a1; }
.player-ext:hover { color: #fff; }
.player-close {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px;
  border: 0; border-radius: 50%; background: transparent; color: #ededed; cursor: pointer;
}
.player-close:hover { background: #1f1f1f; }
.player-close svg { width: 20px; height: 20px; }
.player-frame { aspect-ratio: 16 / 9; background: #000; }
.player-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }

/* Illustration panel: dotted canvas, drawn with tokens so it follows the theme */
.art {
  position: relative; height: 220px; overflow: hidden; display: grid; place-items: center;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 1px 1px, var(--line-strong) 1px, transparent 0) 0 0 / 18px 18px,
    var(--bg-soft);
}
.art::after {
  content: ""; position: absolute; inset: auto -20% -60% -20%; height: 80%;
  background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none;
}

/* Code window */
.win {
  position: relative; z-index: 1; width: min(340px, 82%);
  border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface);
  box-shadow: 0 18px 40px -20px rgba(14, 21, 48, .35); overflow: hidden;
}
.win-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.win-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.win-bar i:nth-child(1) { background: #ff5f57; }
.win-bar i:nth-child(2) { background: #febc2e; }
.win-bar i:nth-child(3) { background: #28c840; }
.win-bar span { margin-left: 8px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.code { display: grid; gap: 8px; padding: 14px 14px 10px; }
.code p { display: flex; gap: 6px; }
.code .in1 { padding-left: 18px; }
.code b { display: block; height: 7px; width: var(--w); border-radius: 4px; background: var(--line-strong); }
.code b.k { background: var(--accent-text); opacity: .75; }
.code b.s { background: var(--green-bright); opacity: .8; }
.code b.f { background: #c084fc; opacity: .75; }
.term {
  display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-top: 1px solid var(--line);
  background: var(--bg-soft); font-family: var(--mono); font-size: 12px; color: var(--ink-2);
}
.term .prompt { color: var(--green-text); }
.caret { display: inline-block; width: 7px; height: 14px; background: var(--green-bright); }
.js .caret { animation: blink 1.1s steps(1) infinite; }

/* Hardware: device line art plus rating meters */
.art-hw { grid-template-columns: auto auto; gap: 28px; }
.hw-device { position: relative; z-index: 1; width: 170px; stroke: var(--ink-3); stroke-width: 1.6; }
.hw-device .screen { fill: var(--surface); stroke: var(--line-strong); }
.hw-device .notch { stroke: var(--ink-2); stroke-width: 2.4; }
.hw-device .lens { stroke: var(--accent-text); stroke-dasharray: 4 3; }
.hw-device .lens-in { fill: var(--green-bright); stroke: none; opacity: .85; }
.js .hw-device .lens { transform-box: fill-box; transform-origin: center; animation: spin 14s linear infinite; }
.meters { position: relative; z-index: 1; display: grid; gap: 12px; width: 150px; }
.meters li { display: grid; gap: 5px; font-size: 12px; color: var(--ink-3); }
.meters i { position: relative; display: block; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.meters i::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--brand-grad);
  transform-origin: left; transform: scaleX(var(--v));
}

/* Video editor */
.art-video { align-content: center; gap: 12px; }
.preview {
  position: relative; z-index: 1; width: 220px; aspect-ratio: 16 / 9; border-radius: 8px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 55%, #1d5a3b 100%);
  box-shadow: 0 14px 34px -18px rgba(14, 21, 48, .6);
}
.preview .play { width: 34px; height: 34px; fill: #fff; stroke: none; opacity: .92; }
.preview .tc {
  position: absolute; right: 8px; bottom: 6px; font-family: var(--mono); font-size: 10px;
  color: rgba(255, 255, 255, .75);
}
.timeline { position: relative; z-index: 1; display: grid; gap: 5px; width: 280px; }
.track { position: relative; height: 12px; border-radius: 3px; background: var(--line); }
.track b { position: absolute; top: 0; bottom: 0; left: var(--x); width: var(--w); border-radius: 3px; background: var(--accent-text); opacity: .7; }
.track.t2 b { background: var(--green-bright); }
.track.t3 { height: 8px; }
.track.t3 b { background: repeating-linear-gradient(90deg, var(--ink-3) 0 2px, transparent 2px 5px); opacity: .45; }
.playhead { position: absolute; top: -6px; bottom: -4px; left: 30%; width: 2px; border-radius: 1px; background: #ff4d4f; }
.playhead::before { content: ""; position: absolute; top: 0; left: -4px; border: 5px solid transparent; border-top-color: #ff4d4f; }
.js .playhead { animation: scrub 9s var(--ease-draw) infinite alternate; }

/* Community network */
.art-net svg { position: relative; z-index: 1; width: 260px; overflow: visible; }
.art-net .links path { stroke: var(--line-strong); stroke-width: 1.4; }
.art-net .pulses { stroke: var(--green-bright); }
.art-net .pulses path { stroke: var(--green-bright); stroke-width: 2; stroke-dasharray: .12 .88; stroke-dashoffset: 1; opacity: 0; }
.js .art-net .pulses path { animation: pulse 3.6s var(--ease-draw) infinite; }
.art-net .nodes circle { fill: var(--surface); stroke: var(--ink-3); }
.art-net .hub { fill: var(--surface); stroke: var(--accent-text); stroke-width: 1.6; }
.bubble {
  position: absolute; z-index: 2; padding: 3px 10px; border-radius: 10px 10px 10px 2px;
  border: 1px solid var(--line-strong); background: var(--surface);
  font-size: 12px; font-weight: 500; color: var(--ink-2); box-shadow: 0 6px 16px -10px rgba(14, 21, 48, .4);
}
.b1 { left: 14%; top: 18%; }
.b2 { right: 13%; top: 30%; }
.b3 { left: 20%; bottom: 14%; }
.js .bubble { animation: bob 5s ease-in-out infinite; }
.js .b2 { animation-delay: -1.6s; }
.js .b3 { animation-delay: -3.2s; }

/* Why: a contrast band in brand navy. Four reasons hang off one core; main.js lights one at a time
   (.on on the card, its node and spoke), following the hovered card or cycling while on screen. */
.section-dark { position: relative; overflow: hidden; isolation: isolate; background: var(--dark-bg); color: var(--on-dark); }
.section-dark::before {
  content: ""; position: absolute; z-index: -1; width: 720px; height: 720px; right: -200px; top: -280px;
  background: radial-gradient(closest-side, rgba(53, 194, 122, .22), transparent);
}
.why-pattern {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%;
  stroke: rgba(255, 255, 255, .06); stroke-width: 1;
  mask-image: linear-gradient(115deg, transparent 35%, #000 85%);
  -webkit-mask-image: linear-gradient(115deg, transparent 35%, #000 85%);
}
/* Two slow light pools drift behind everything */
.why-aurora { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.why-aurora i { position: absolute; border-radius: 50%; }
.why-aurora i:first-child { width: 760px; height: 760px; left: -260px; bottom: -420px; background: radial-gradient(closest-side, rgba(53, 194, 122, .16), transparent); }
.why-aurora i:last-child { width: 640px; height: 640px; left: 38%; top: -360px; background: radial-gradient(closest-side, rgba(143, 166, 234, .14), transparent); }

.why-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
#why .section-head { margin-bottom: 0; }
#why .section-head p { color: var(--on-dark-2); }
#why .eyebrow { display: block; margin-bottom: 16px; color: var(--green-bright); }

/* The core: the logo inside two hexagons, a light tracing the outer one, a spoke out to each reason */
.why-core { display: block; width: 100%; max-width: 340px; margin-top: 40px; overflow: visible; }
.core-hex { stroke: rgba(255, 255, 255, .16); stroke-width: 1.2; }
.core-hex-2 { stroke: rgba(255, 255, 255, .08); }
.core-trace { stroke: var(--green-bright); stroke-width: 2; stroke-dasharray: .07 .93; filter: drop-shadow(0 0 4px var(--green-bright)); }
.core-spokes path { stroke: rgba(255, 255, 255, .14); stroke-width: 1.2; stroke-dasharray: .015 .025; transition: stroke .4s ease; }
.core-spokes path.on { stroke: var(--green-bright); stroke-dasharray: .3 .7; }
.core-node circle { fill: var(--dark-bg); stroke: rgba(255, 255, 255, .22); stroke-width: 1.2; transition: fill .4s ease, stroke .4s ease, filter .4s ease; }
.core-node text { fill: var(--on-dark-2); stroke: none; font-family: var(--mono); font-size: 10px; letter-spacing: .04em; text-anchor: middle; transition: fill .4s ease; }
.core-node.on circle { fill: #134a3a; stroke: var(--green-bright); filter: drop-shadow(0 0 8px rgba(53, 194, 122, .7)); }
.core-node.on text { fill: #fff; }
.core-logo { filter: drop-shadow(0 0 14px rgba(53, 194, 122, .35)); }
.core-halo { fill: rgba(53, 194, 122, .07); stroke: rgba(53, 194, 122, .35); stroke-width: 1; transform-box: fill-box; transform-origin: center; }

.why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.why-card {
  position: relative; overflow: hidden; isolation: isolate; min-width: 0;
  display: flex; flex-direction: column; padding: 28px 28px 24px;
  border: 1px solid var(--on-dark-line); border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform .5s var(--ease-out), border-color .4s ease, box-shadow .5s ease;
}
/* Pointer spotlight, and a gradient edge on the lit card */
.why-card::before, .why-card::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; pointer-events: none; transition: opacity .5s ease; }
.why-card::before { background: radial-gradient(320px circle at var(--sx, 30%) var(--sy, 0%), rgba(53, 194, 122, .16), transparent 70%); }
.why-card::after {
  inset: -1px; padding: 1px; background: linear-gradient(135deg, #8fa6ea, var(--green-bright) 60%, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.why-card.on { border-color: transparent; }
.why-card.on::before { opacity: .6; }
.why-card.on::after { opacity: 1; }
.why-top { display: flex; align-items: center; justify-content: space-between; }
.why-icon {
  display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 14px; border: 1px solid rgba(255, 255, 255, .14);
  background: linear-gradient(160deg, rgba(143, 166, 234, .16), rgba(53, 194, 122, .16));
  color: var(--green-bright);
  transition: color .4s ease, background-color .4s ease, border-color .4s ease, box-shadow .5s ease;
}
.why-icon svg { width: 22px; height: 22px; }
.why-card.on .why-icon { border-color: transparent; background-color: #2fa866; background-image: linear-gradient(160deg, #3d4f8f, var(--green-bright)); color: #fff; box-shadow: 0 10px 28px -8px rgba(53, 194, 122, .55); }
.why-no { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; color: rgba(255, 255, 255, .35); transition: color .4s ease; }
.why-card.on .why-no { color: var(--green-bright); }
.why-card h3 { margin-top: 24px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.why-card p { margin-top: 10px; font-size: 15px; color: var(--on-dark-2); }
.why-tag {
  display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 20px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .02em; color: rgba(226, 232, 250, .55); transition: color .4s ease;
}
.why-tag::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: currentColor; }
.why-card.on .why-tag { color: var(--green-bright); }
@media (hover: hover) {
  .why-card:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 24px 48px -24px rgba(0, 0, 0, .7); }
  .why-card:hover::before { opacity: 1; }
}

/* Motion: the core draws itself as the section arrives, the icons draw in with their cards,
   and the lit card redraws its icon. Loops only run while the section is on screen (.live). */
.js #why .core-hex { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease-draw) .1s; }
.js #why .core-hex-2 { transition-delay: .35s; }
.js #why.in .core-hex { stroke-dashoffset: 0; }
.js #why .core-trace, .js #why .core-spokes, .js #why .core-nodes { opacity: 0; transition: opacity .8s ease 1.2s; }
.js #why.in .core-trace, .js #why.in .core-spokes, .js #why.in .core-nodes { opacity: 1; }
.js #why .core-logo, .js #why .core-halo { opacity: 0; transform: scale(.8); transform-box: fill-box; transform-origin: center; transition: opacity .9s ease .8s, transform 1s var(--ease-out) .8s; }
.js #why.in .core-logo, .js #why.in .core-halo { opacity: 1; transform: none; }
.js #why.in .core-halo { animation: halo 4s ease-in-out 2s infinite; }
.js #why.in .core-trace { animation: trace 9s linear infinite; }
.js #why.in .core-spokes path.on { animation: spoke 1.6s var(--ease-draw) infinite; }
.js #why.in .why-aurora i { animation: drift 18s ease-in-out infinite alternate; }
.js #why.in .why-aurora i:last-child { animation-duration: 23s; animation-direction: alternate-reverse; }
#why:not(.live) .core-trace, #why:not(.live) .core-halo, #why:not(.live) .core-spokes path, #why:not(.live) .why-aurora i { animation-play-state: paused; }

.js .why-card.reveal { transition: opacity .8s ease calc(var(--i) * .08s), transform .9s var(--ease-out) calc(var(--i) * .08s), border-color .4s ease, box-shadow .5s ease; }
.js .why-card.reveal.in:hover { transition-delay: 0s; }
.js .why-icon svg > * { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--ease-draw) calc(.35s + var(--i) * .12s); }
.js .why-card.in .why-icon svg > * { stroke-dashoffset: 0; }
.js .why-card.in.on .why-icon svg > * { animation: draw 1s var(--ease-draw); }

@keyframes spoke { from { stroke-dashoffset: .3; } to { stroke-dashoffset: -.7; } }
@keyframes halo { 50% { transform: scale(1.12); opacity: .55; } }
@keyframes drift { to { transform: translate(140px, -60px) scale(1.15); } }

@media (max-width: 960px) {
  .why-layout { grid-template-columns: 1fr; gap: 48px; }
  .why-core { display: none; }
}
@media (max-width: 720px) {
  .why { grid-template-columns: 1fr; gap: 12px; }
  .why-card { padding: 22px 20px 20px; }
  .why-card h3 { margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .js #why .core-hex { stroke-dashoffset: 0; transition: none; }
  .js #why .core-logo, .js #why .core-halo { transform: none; }
  .js #why.in .core-trace, .js #why.in .core-halo, .js #why.in .core-spokes path.on, .js #why.in .why-aurora i, .js .why-card.in.on .why-icon svg > * { animation: none; }
  .js .why-icon svg > * { stroke-dashoffset: 0; transition: none; }
  .why-card:hover { transform: none; }
}

/* Steps: one track, navy at the start and green at delivery (the logo gradient).
   Each step ends on something the client signs off, which is the promise in the section line.
   main.js measures the first and last node into --x1/--y1/--x2/--y2 so the track runs node to node. */
#process { position: relative; overflow-x: clip; isolation: isolate; }
#process::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 42%; width: 1100px; height: 520px; translate: -50% 0;
  background: radial-gradient(closest-side, var(--glow), transparent); opacity: .7; pointer-events: none;
}
.flow { position: relative; --x1: 32px; --y1: 32px; --x2: 32px; --y2: 32px; }
.flow-track {
  position: absolute; left: var(--x1); top: calc(var(--y1) - 1px);
  width: calc(var(--x2) - var(--x1)); height: 2px; border-radius: 2px; background: var(--line);
}
.flow-fill { position: absolute; inset: 0; border-radius: inherit; background: var(--brand-grad); transform-origin: left; }
.flow-comet {
  position: absolute; top: 50%; left: 0; width: 96px; height: 2px; translate: -100% -50%; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--green-bright)); border-radius: 2px;
}
.flow-comet::after {
  content: ""; position: absolute; right: -3px; top: 50%; width: 8px; height: 8px; translate: 0 -50%;
  border-radius: 50%; background: var(--green-bright); box-shadow: 0 0 12px 3px var(--glow), 0 0 4px var(--green-bright);
}
.js .flow:not(.measured) .flow-track { visibility: hidden; }

.steps { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.step { position: relative; min-width: 0; display: flex; flex-direction: column; }
.step-node {
  position: relative; z-index: 1; flex: none;
  display: grid; place-items: center; width: 64px; height: 64px;
  border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--accent-text);
  transition: color .4s ease, border-color .4s ease, transform .5s var(--ease-out);
}
/* Gradient ring, sliced to the step's place on the track, and a soft halo */
.step-node::before, .step-node::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; pointer-events: none; transition: opacity .5s ease, box-shadow .5s ease; }
.step-node::before {
  padding: 1.5px; background: var(--brand-grad); background-size: 500% 100%; background-position: calc(var(--i) * 25%) 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.step-node::after { box-shadow: 0 0 0 6px var(--glow), 0 8px 24px -6px var(--glow); }
.step-node svg { position: relative; width: 26px; height: 26px; }
.step:last-child .step-node { border-color: transparent; background: var(--brand-grad); color: #fff; }
.step:last-child .step-node::before { display: none; }

.step-body {
  position: relative; overflow: hidden; isolation: isolate; flex: 1;
  display: flex; flex-direction: column; margin-top: 24px; padding: 22px 20px 20px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
  transition: transform .5s var(--ease-out), box-shadow .5s ease, border-color .4s ease;
}
/* Pointer spotlight and gradient edge, shown on hover */
.step-body::before, .step-body::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity .4s ease; pointer-events: none; }
.step-body::before { background: radial-gradient(260px circle at var(--sx, 50%) var(--sy, 0%), var(--glow), transparent 70%); }
.step-body::after {
  inset: -1px; padding: 1px; background: var(--brand-grad); background-size: 500% 100%; background-position: calc(var(--i) * 25%) 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.step-num {
  position: absolute; z-index: -1; right: 12px; top: 4px;
  font-size: 64px; font-weight: 700; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums;
  color: transparent; -webkit-text-stroke: 1px var(--line-strong);
  transition: -webkit-text-stroke-color .4s ease, transform .6s var(--ease-out);
}
.step-no { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; color: var(--ink-3); }
.step h3 { margin-top: 10px; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.step p { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.step .step-gate {
  display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 20px;
  font-size: 13px; color: var(--ink);
}
.step-gate svg { width: 16px; height: 16px; padding: 2px; flex: none; border-radius: 50%; background: var(--green-soft); color: var(--green-text); }
.step-gate span { color: var(--ink-3); }
.step-gate em { font-style: normal; }

@media (hover: hover) {
  .step:hover .step-node { transform: translateY(-3px) scale(1.06); }
  .step:hover .step-body { transform: translateY(-4px); border-color: transparent; box-shadow: 0 18px 40px -18px rgba(14, 21, 48, .28); }
  .step:hover .step-body::before, .step:hover .step-body::after { opacity: 1; }
  .step:hover .step-num { -webkit-text-stroke-color: var(--accent-text); transform: translateX(-4px); }
}

/* Contact */
#process { padding-bottom: 112px; }
.contact { padding-top: 0; }
.contact-card {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 6fr); gap: 48px; align-items: center;
  position: relative; overflow: hidden; isolation: isolate;
  padding: 56px; border: 1px solid var(--line); border-radius: 20px;
  background:
    radial-gradient(ellipse 60% 90% at 0% 100%, var(--glow), transparent),
    radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 0) 0 0 / 20px 20px,
    var(--bg-soft);
}
.contact-mark { position: absolute; z-index: -1; width: 300px; height: 300px; right: -70px; bottom: -110px; opacity: .06; }
.contact-copy p { margin-top: 12px; font-size: 17px; color: var(--ink-2); }
.contact-actions { display: flex; flex-direction: column; gap: 12px; }
.qr-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center;
  padding: 16px; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--surface);
  box-shadow: 0 16px 40px -24px rgba(14, 21, 48, .35);
}
/* White tile behind the code keeps it scannable in dark mode */
.qr-img { width: 148px; height: 148px; padding: 6px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.qr-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px;
  background: var(--green-soft); color: var(--green-text); font-size: 12px; font-weight: 500;
}
.qr-badge svg { width: 14px; height: 14px; }
.qr-info h3 { margin-top: 10px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; line-height: 1.4; }
.qr-steps { margin-top: 8px; display: grid; gap: 4px; counter-reset: qr; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.qr-steps li { position: relative; padding-left: 22px; counter-increment: qr; }
.qr-steps li::before {
  content: counter(qr); position: absolute; left: 0; top: 2px;
  display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%;
  background: var(--line); color: var(--ink-2); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.contact-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-links a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface);
  font-size: 14px; font-weight: 500; transition: border-color .2s ease, background-color .2s ease;
}
.contact-links a:hover { border-color: var(--ink-3); background: var(--bg-soft); }
.contact-links svg { width: 16px; height: 16px; }

/* Footer: brand and link columns, then the legal line */
.footer { padding: 64px 0 0; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; padding-bottom: 56px; }
.footer .brand-cn { display: inline; }
.footer-desc { margin-top: 16px; max-width: 26em; font-size: 14px; color: var(--ink-3); }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-title { font-size: 13px; font-weight: 500; color: var(--ink); }
.footer-col ul { display: grid; gap: 10px; margin-top: 16px; font-size: 14px; }
.footer-col a { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-3); line-height: 1.5; transition: color .2s ease; }
.footer-col a:hover { color: var(--ink); }
.footer-col .ext { width: 12px; height: 12px; flex: none; opacity: .6; }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0 32px; border-top: 1px solid var(--line); }
.legal { display: flex; flex-wrap: wrap; align-items: center; column-gap: 20px; row-gap: 4px; font-size: 13px; color: var(--ink-3); }
.legal > * { white-space: nowrap; }
.legal a { transition: color .2s ease; }
.legal a:hover { color: var(--ink); }
.to-top { display: inline-flex; align-items: center; gap: 6px; flex: none; font-size: 13px; color: var(--ink-3); transition: color .2s ease; }
.to-top:hover { color: var(--ink); }
.to-top svg { width: 14px; height: 14px; }

/* ---------- Motion (JS only; content stays visible without it) ---------- */

/* One authored moment: the hexagon draws itself, then a light traces the perimeter, one lap per minute */
.js .hex { animation: draw 1.8s var(--ease-draw) both; }
.js .hex-1 { animation-delay: .1s; }
.js .hex-2 { animation-delay: .3s; }
.js .hex-3 { animation-delay: .5s; }
.js .hex-spokes { animation: fade 1.2s ease 1.1s both; }
.js .hex-logo { animation: focus 1s var(--ease-out) 1.2s both; }
.js .hex-trace { animation: fade .8s ease 1.8s both, trace 16s linear 1.8s infinite; }
.js .hex-trace-2 { animation-duration: .8s, 11s; animation-direction: normal, reverse; }
.js .hex-trace-3 { animation-duration: .8s, 7s; }
.js .hex-glow { animation: fade 1.2s ease 1.6s both; }
.hero.paused .hex-trace { animation-play-state: paused; }

.js .hero-title .line > span { animation: rise 1s var(--ease-out) both; }
.js .hero-title .line:nth-child(1) > span { animation-delay: .15s; }
.js .hero-title .line:nth-child(2) > span { animation-delay: .26s; }
.js .enter { animation: enter .9s var(--ease-out) both; animation-delay: calc(.45s + var(--d) * .1s); }

/* Process: the track fills node to node (linear, so each node lights as the fill reaches it),
   then a light keeps travelling along it while the section is on screen */
.js .flow-fill { transform: scaleX(0); transition: transform 1.6s linear .2s; }
.js .flow.in .flow-fill { transform: scaleX(1); }
.js .flow.in.live .flow-comet { animation: comet 3.2s var(--ease-draw) 2s infinite; }
.js .step-node { color: var(--dim); transform: scale(.7); transition-delay: calc(.2s + var(--i) * .4s); }
.js .step-node::before, .js .step-node::after { opacity: 0; transition-delay: calc(.2s + var(--i) * .4s); }
.js .flow.in .step-node { color: var(--accent-text); transform: none; }
.js .flow.in .step-node::before { opacity: 1; }
.js .flow.in .step:last-child .step-node { color: #fff; }
.js .flow.in .step:last-child .step-node::after { opacity: 1; animation: breathe 3.2s ease-in-out 2.4s infinite; }
.js .step:last-child .step-node { background: var(--surface); border-color: var(--line-strong); transition: color .4s ease, border-color .4s ease, transform .5s var(--ease-out), background-color .4s ease; transition-delay: 1.8s; }
.js .flow.in .step:last-child .step-node { background: var(--brand-grad); border-color: transparent; }
.js .step-body { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .9s var(--ease-out), box-shadow .5s ease, border-color .4s ease; transition-delay: calc(.1s + var(--i) * .4s); }
.js .flow.in .step-body { opacity: 1; transform: none; }
.js .flow.in .step:hover .step-body { transform: translateY(-4px); transition-delay: 0s; }
.js .flow.in .step:hover .step-node { transform: translateY(-3px) scale(1.06); transition-delay: 0s; }

/* Cards and columns rise in as they scroll into view */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .9s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
.services .reveal:nth-child(even) { transition-delay: .08s; }
.services .service.reveal.in:hover { transform: translateY(-2px); transition-delay: 0s; }

@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes trace { to { stroke-dashoffset: -1; } }
@keyframes fade { from { opacity: 0; } }
/* .hex-logo is a <g> around the <use>: Chrome stops painting a <use> with a gradient fill when it is animated directly */
@keyframes focus { from { opacity: 0; transform: scale(.82); } }
@keyframes rise { from { transform: translateY(108%); } }
@keyframes enter { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }
@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes scrub { from { left: 4%; } to { left: 94%; } }
@keyframes pulse { 0% { stroke-dashoffset: .12; opacity: 0; } 10% { opacity: 1; } 75% { opacity: 1; } 100% { stroke-dashoffset: -1; opacity: 0; } }
@keyframes comet { 0% { left: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes comet-y { 0% { top: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@keyframes breathe { 50% { box-shadow: 0 0 0 12px transparent, 0 8px 24px -6px var(--glow); } }
@keyframes bob { 50% { transform: translateY(-5px); } }

/* Responsive */
@media (max-width: 1180px) {
  .hex-art { width: 34vw; right: 24px; }
}
@media (max-width: 960px) {
  .hex-art { width: 320px; right: -60px; top: 48px; opacity: .55; }
  .services { grid-template-columns: 1fr; }
  .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cases .reveal:nth-child(n) { transition-delay: 0s; }
  .cases .reveal:nth-child(even) { transition-delay: .08s; }
  .steps { grid-template-columns: 1fr; gap: 16px; max-width: 640px; }
  .step { flex-direction: row; align-items: flex-start; gap: 20px; }
  .step-body { margin-top: 0; }
  .flow-track { top: var(--y1); left: calc(var(--x1) - 1px); width: 2px; height: calc(var(--y2) - var(--y1)); }
  .flow-fill { transform-origin: top; background: linear-gradient(180deg, var(--logo-top), var(--logo-bottom)); }
  .js .flow-fill { transform: scaleY(0); }
  .js .flow.in .flow-fill { transform: scaleY(1); }
  .flow-comet { top: 0; left: 50%; width: 2px; height: 96px; translate: -50% -100%; background: linear-gradient(180deg, transparent, var(--green-bright)); }
  .flow-comet::after { right: auto; left: 50%; top: auto; bottom: -3px; translate: -50% 0; }
  .js .flow.in.live .flow-comet { animation-name: comet-y; }
  .contact-card { grid-template-columns: 1fr; gap: 32px; align-items: start; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 720px) {
  .container { width: calc(100% - 32px); }
  .nav-links, .brand-cn { display: none; }
  .hero { padding: 72px 0 16px; }
  .hex-art { width: 240px; right: -80px; top: -8px; opacity: .4; }
  .hex-logo { display: none; }
  .hero-cta .btn { flex: 1; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 64px; }
  .stat { padding: 20px 0; }
  .stat + .stat { padding-left: 0; border-left: 0; }
  .stat:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat dd { font-size: 32px; min-height: 40px; }
  .stat dd.stat-text { font-size: 16px; }
  .stat dd.stat-mono { font-size: 15px; }
  .section { padding: 88px 0; }
  .section-head { margin-bottom: 40px; }
  .step { gap: 14px; }
  .step-node { width: 52px; height: 52px; }
  .step-node svg { width: 22px; height: 22px; }
  .step-body { padding: 18px 16px 16px; }
  .step-num { font-size: 52px; }
  .contact-card { padding: 32px 24px; }
  .marquee { padding-top: 48px; }
  .art { height: 200px; }
  .art-hw { gap: 16px; }
  .hw-device { width: 130px; }
  .meters { width: 120px; }
  .timeline { width: 240px; }
  .art-net svg { width: 210px; }
  .b1 { left: 5%; top: 10%; }
  .b2 { right: 5%; top: 22%; }
  .b3 { left: 7%; bottom: 9%; }
  .contact-mark { width: 220px; height: 220px; right: -60px; bottom: -80px; }
  .service-body { padding: 20px 20px 24px; }
  .cases { grid-template-columns: 1fr; gap: 16px; }
  .cases .reveal:nth-child(even) { transition-delay: 0s; }
  .case-body { padding: 18px 20px 20px; }
  .player { width: 100%; border-radius: 0; border-inline: 0; }
  .qr-card { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 16px; padding: 20px; }
  .qr-img { width: 188px; height: 188px; }
  .qr-steps { display: inline-grid; text-align: left; }
  .footer { padding-top: 48px; }
  .footer-top { padding-bottom: 40px; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .footer-bottom { align-items: flex-end; }
  .legal { flex-direction: column; align-items: flex-start; }
  .to-top span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .to-top { width: 32px; height: 32px; justify-content: center; border: 1px solid var(--line-strong); border-radius: 50%; }
  #process { padding-bottom: 72px; }
}

/* Reduced motion: keep fades and state feedback, drop travel and loops */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hex, .js .hex-spokes, .js .hex-logo, .js .hex-trace, .js .hex-glow,
  .js .hero-title .line > span, .js .enter { animation: fade .6s ease both; }
  .js .flow-fill, .js .flow.in .flow-fill { transform: none; opacity: 0; transition: opacity .6s ease .2s; }
  .js .flow.in .flow-fill { opacity: 1; }
  .js .flow.in.live .flow-comet, .js .flow.in .step:last-child .step-node::after { animation: none; }
  .js .step-node, .js .step-body { transform: none; transition-delay: calc(var(--i) * .1s); }
  .js .step-node::before, .js .step-node::after, .js .step:last-child .step-node { transition-delay: calc(var(--i) * .1s); }
  .step:hover .step-node, .step:hover .step-body, .step:hover .step-num,
  .js .flow.in .step:hover .step-body, .js .flow.in .step:hover .step-node { transform: none; }
  .js .marquee-track, .js .caret, .js .hw-device .lens, .js .playhead, .js .art-net .pulses path, .js .bubble { animation: none; }
  .js .reveal { transform: none; }
  .player[open] { animation: fade .3s ease; }
  .case-cover:hover img { transform: none; }
  .btn, .btn-primary .arrow { transition-property: opacity, background-color, border-color, color, box-shadow; }
}
