/* ==========================================================
   WISEMANTECH 威士曼科技 — precise monochrome, one blue
   Layout: one 8-column grid shared by every section, so all
   left edges line up with the navigation ticks.
   ========================================================== */
:root {
  --c-light: #f0f0f0;
  --c-dark: #0f0f0f;
  --blue: #1f5bff;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(16px, 1.25vw, 20px);
  --nav-h: 44px;
  --sans: "Inter Tight", "Helvetica Neue", Helvetica, "Noto Sans TC", Arial, sans-serif;
  --zh: "Noto Sans TC", "Inter Tight", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

/* section colour schemes */
.light { --bg: var(--c-light); --fg: var(--c-dark); --mute: #6b6b6b; --line: rgba(0,0,0,.12); --line-2: rgba(0,0,0,.05); }
.dark  { --bg: var(--c-dark); --fg: var(--c-light); --mute: #8c8c8c; --line: rgba(255,255,255,.13); --line-2: rgba(255,255,255,.05); }
.light, .dark { background: var(--bg); color: var(--fg); transition: background .6s var(--ease), color .6s var(--ease); }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--c-light); color: var(--c-dark);
  font: 400 15px/1.6 var(--sans);
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }   /* no outline flash on mouse clicks; keyboard focus still visible */

/* ---------- intro: the logo, drawn → filled → zoomed through ----------
   JS drives the timeline with classes (i-draw, i-fill, i-name, i-echo, i-out, i-gone).
   The fallback animation hides the overlay even if JS never runs. */
#intro {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; overflow: hidden;
  background: #0b0b0c; color: var(--c-light);
  animation: introFallback 0s linear 8s forwards;
}
@keyframes introFallback { to { visibility: hidden; opacity: 0; } }
html.intro-lock, html.intro-lock body { overflow: hidden; }
#intro.i-gone { opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s .6s; }
.in-grid i { position: absolute; background: rgba(255, 255, 255, .1); transition: transform 1.4s var(--ease); }
.in-grid i:first-child { left: 0; right: 0; top: 50%; height: 1px; transform: scaleX(0); }
.in-grid i:last-child { top: 0; bottom: 0; left: 50%; width: 1px; transform: scaleY(0); }
.i-draw .in-grid i { transform: none; }
.in-stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: clamp(22px, 4.5vh, 48px); }
.in-logo { display: block; width: min(56vw, 50vh); height: auto; overflow: visible; transform-origin: 50% 43.8%; }
.in-line { fill: none; stroke: var(--c-light); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
.i-draw .in-line { stroke-dashoffset: 0; transition: stroke-dashoffset 1.5s cubic-bezier(.65, 0, .35, 1) var(--d, 0s); }
.in-fill { fill: var(--c-light); opacity: 0; transition: opacity .7s ease; }
.i-fill .in-fill { opacity: 1; }
.in-dia { fill: var(--blue); transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .7s cubic-bezier(.34, 1.7, .64, 1) .15s; }
.i-fill .in-dia { transform: scale(1); }
.in-echo path { fill: none; stroke: rgba(240, 240, 240, .55); stroke-width: 1; vector-effect: non-scaling-stroke; transform-box: view-box; transform-origin: 1376px 1327px; opacity: 0; }
.i-echo .in-echo path { animation: echo 1.6s cubic-bezier(.2, .7, .2, 1) var(--d) forwards; }
@keyframes echo { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(2.1); } }
.in-name { display: grid; justify-items: center; gap: 12px; text-align: center; }
.in-en { font: 800 clamp(20px, 2.6vw, 38px)/1 var(--sans); letter-spacing: .32em; padding-left: .32em; overflow: hidden; }
.in-en .ch { display: inline-block; transform: translateY(110%); transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.in-zh { font: 700 clamp(12px, 1.1vw, 15px) var(--zh); letter-spacing: .8em; padding-left: .8em; color: #8c8c8c; opacity: 0; transition: opacity .8s ease .5s; }
.i-name .in-en .ch { transform: none; }
.i-name .in-zh { opacity: 1; }
.in-meta { position: absolute; left: var(--pad); right: var(--pad); bottom: 22px; display: flex; justify-content: space-between; font: 600 11px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #8c8c8c; }
.in-count { color: var(--c-light); font-variant-numeric: tabular-nums; }
.in-skip { position: absolute; top: 18px; right: var(--pad); padding: 10px 0 10px 16px; font: 600 11px var(--sans); letter-spacing: .16em; color: #8c8c8c; transition: color .3s; }
.in-skip:hover { color: var(--c-light); }
/* exit: zoom through the blue diamond */
.i-out .in-logo { transform: scale(48); transition: transform 1.05s cubic-bezier(.7, 0, .2, 1); }
.i-out .in-echo, .i-out .in-name, .i-out .in-meta, .i-out .in-skip, .i-out .in-grid { opacity: 0; transition: opacity .3s; }

/* ---------- 8-column grid ---------- */
.grid8 { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); column-gap: var(--pad); padding: 0 var(--pad); }
.c1 { grid-column: 1; } .c2 { grid-column: 2; } .c3 { grid-column: 3; } .c4 { grid-column: 4; } .c5 { grid-column: 5; }
.c6 { grid-column: 6; } .c7 { grid-column: 7; } .c8 { grid-column: 8; }
.c1-3 { grid-column: 1 / 4; } .c2-3 { grid-column: 2 / 4; } .c2-4 { grid-column: 2 / 5; } .c2-5 { grid-column: 2 / 6; }
.c2-6 { grid-column: 2 / 7; } .c3-4 { grid-column: 3 / 5; } .c4-5 { grid-column: 4 / 6; } .c6-7 { grid-column: 6 / 8; } .c2-8 { grid-column: 2 / 9; } .c5-6 { grid-column: 5 / 7; } .c5-8 { grid-column: 5 / 9; }
.c6-8 { grid-column: 6 / 9; } .c7-8 { grid-column: 7 / 9; }

/* ---------- wordmark ---------- */
.masthead { overflow: hidden; }
.wordmark { margin: 0; line-height: .74; font-family: var(--sans); font-weight: 800; letter-spacing: -.015em; white-space: nowrap; }
.masthead .wordmark { margin-top: -.035em; padding-bottom: .02em; }
.wm-fit { display: inline-block; font-size: 16vw; }
.wm-fit .ch { display: inline-block; transform: translateY(105%); transition: transform 1.3s var(--ease); transition-delay: calc(var(--i) * 55ms + 150ms); }
.ready .wm-fit .ch { transform: none; }
.wordmark--foot { overflow: hidden; padding: 0 0 .02em; }
/* outlined type: fill with the background and paint the stroke underneath, so the font's
   overlapping contours (e.g. the crossbar of A) don't show as extra lines inside the letter */
.wordmark--foot .wm-fit { color: var(--bg); -webkit-text-stroke: 2px var(--fg); paint-order: stroke fill; }
.wordmark--foot .wm-fit { letter-spacing: .05em; }   /* on the big-type element so em = its own size; outlines need air so letters don't fuse */

/* ---------- nav ----------
   Solid bar (no blend modes — they force expensive compositing over the 3D/canvas scenes).
   JS toggles .on-dark from cached section ranges. */
.nav {
  position: sticky; top: 0; z-index: 50;
  color: var(--c-dark); background: rgba(240, 240, 240, .95);
  font-size: 13px; font-weight: 500; letter-spacing: .02em;
  transition: color .35s, background-color .35s;
}
.nav.on-dark { color: var(--c-light); background: rgba(15, 15, 15, .95); }
.nav .grid8 { align-items: center; height: var(--nav-h); }
.nav a { position: relative; justify-self: start; display: inline-flex; align-items: baseline; gap: 6px; }
.nav a small { font: 400 11px var(--zh); opacity: .5; transition: opacity .3s; }
.nav a:hover small, .nav a.cur small { opacity: 1; }
.nav a::before { content: ""; position: absolute; left: 0; top: 24px; width: 1px; height: 6px; background: currentColor; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav a:hover::after, .nav a.cur::after { transform: scaleX(1); transform-origin: left; }
.nav .nav-mark { align-items: center; gap: 10px; }
.nav-mark::before, .nav-mark::after { display: none; }
.nav a[hidden], .nav.open a[hidden] { display: none; }
@media (min-width: 901px) { .nav .grid8 > * { grid-row: 1; } }
.nav-mark svg { display: block; width: 22px; height: auto; fill: currentColor; }
.nav-name { font: 700 12px var(--zh); letter-spacing: .12em; }
.nav-plus { position: relative; width: 20px; height: 20px; display: none; justify-self: end; }
.nav-plus i { position: absolute; background: currentColor; left: 2px; right: 2px; height: 1.5px; top: 9px; transition: transform .4s var(--ease); }
.nav-plus i:last-child { transform: rotate(90deg); }
.nav.open .nav-plus i:first-child { transform: rotate(45deg); }
.nav.open .nav-plus i:last-child { transform: rotate(-45deg); }
.nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; opacity: .14; }
.nav-progress { position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--blue); transform-origin: left; transform: scaleX(0); z-index: 1; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 22px; font: 500 14px var(--zh); background: var(--fg); color: var(--bg); border: 1px solid var(--fg); transition: background .3s, color .3s, border-color .3s; }
.btn span { transition: transform .4s var(--ease); }
.btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn:hover span { transform: translateX(4px); }
.btn--line { background: transparent; color: var(--fg); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: calc(100svh - var(--nav-h) - 11.6vw); display: flex; flex-direction: column; }
.hero-main { flex: 1; align-items: center; align-content: center; padding-top: clamp(48px, 8vh, 96px); padding-bottom: clamp(48px, 8vh, 96px); }
.hero-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--mute); margin-bottom: 28px; display: flex; align-items: center; gap: 12px; opacity: 0; transition: opacity 1s var(--ease) .5s; }
.hero-eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--blue); }
.ready .hero-eyebrow { opacity: 1; }
.hero-title { font-family: var(--zh); font-weight: 700; font-size: clamp(34px, 3.9vw, 64px); line-height: 1.28; letter-spacing: .01em; }
.hero-title em { font-style: normal; color: var(--blue); }
.hero-side { padding-bottom: .35em; }
.hero-lead { font-family: var(--zh); font-size: 15px; line-height: 1.9; color: var(--mute); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease) .9s, transform 1s var(--ease) .9s; }
.ready .hero-cta { opacity: 1; transform: none; }
.hero-meta { align-items: center; height: 52px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 500; color: var(--mute); }
.hero-meta .scroll-cue, .hero-brand { color: var(--fg); }
.hero-brand { justify-self: end; font-weight: 700; letter-spacing: .02em; }
.hero-brand small { font: 500 12px var(--zh); letter-spacing: .1em; color: var(--mute); margin-left: 8px; }
.scroll-cue { position: relative; }
.scroll-cue i { position: absolute; left: -10px; top: 50%; width: 1px; height: 18px; margin-top: -9px; background: var(--blue); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- sticky, scroll-driven sections ---------- */
[style*="--len"] { height: var(--len); position: relative; }
.sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.sec-foot { position: absolute; left: 0; right: 0; bottom: 16px; font-size: 12px; font-weight: 500; z-index: 3; }
.foot-count b { font-weight: 500; margin-left: 22px; }
.foot-count em { font-style: normal; color: var(--mute); margin: 0 6px; }
.foot-count b + em + b { margin-left: 0; }

/* ---------- type tunnel ---------- */
.tunnel { position: absolute; inset: 0; perspective: 1000px; overflow: hidden; }
.t-world { position: absolute; left: 50%; top: 50%; transform-style: preserve-3d; }
.t-plane {
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  font-family: var(--sans); font-weight: 400; letter-spacing: .01em; white-space: nowrap;
  color: var(--fg);
  will-change: transform, opacity; contain: layout style;
}
.t-plane span { opacity: var(--o, .5); }
.t-plane.hl span { color: var(--blue); }
.tunnel-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 20%, var(--bg) 78%); pointer-events: none; }
.tunnel-copy { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 0 var(--pad); pointer-events: none; z-index: 2; }
.tc-item { grid-area: 1 / 1; opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.tc-item.on { opacity: 1; transform: none; }
.tc-word { font-weight: 800; font-size: clamp(60px, 14vw, 220px); line-height: .9; letter-spacing: .02em; }
.tc-zh { margin-top: 18px; font-family: var(--zh); font-size: 15px; color: var(--fg); }

/* ---------- impact: before → after, played once when scrolled into view ---------- */
.impact { padding-bottom: clamp(80px, 10vw, 150px); }
/* both figures share four rows (label / figure / chart / note) through subgrid, so left and right line up */
.imp-grid { grid-template-rows: repeat(4, auto); row-gap: 0; }
.imp { display: grid; grid-row: span 4; grid-template-rows: subgrid; align-content: start; padding-top: 24px; border-top: 1px solid var(--fg); }
.imp-fig { align-self: start; }
.imp-bars, .imp-viz { align-self: start; }
.imp-k { display: flex; gap: 12px; font: 600 12px var(--sans); letter-spacing: .03em; color: var(--mute); }
.imp-k span { color: var(--blue); }
.imp-fig { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; margin: 40px 0 36px; font-family: var(--zh); font-weight: 700; }
.imp-from { position: relative; font-size: clamp(28px, 3vw, 48px); line-height: 1; transition: color .6s .7s; }
.imp-from::after { content: ""; position: absolute; left: -6%; right: -6%; top: 54%; height: 3px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease) .35s; }
.imp-arrow { font-size: clamp(22px, 2.2vw, 36px); color: var(--mute); opacity: 0; transform: translateX(-12px); transition: opacity .5s .9s, transform .7s var(--ease) .9s; }
.imp-to { display: inline-flex; align-items: baseline; gap: 8px; font-size: clamp(22px, 2.2vw, 34px); opacity: 0; transform: translateY(24px); transition: opacity .6s 1s, transform .9s var(--ease) 1s; }
.imp-to b { font: 800 clamp(72px, 8.4vw, 144px)/.88 var(--sans); letter-spacing: .01em; color: var(--blue); font-variant-numeric: tabular-nums; }
.imp-to--solo { transition-delay: .2s; }
.imp-sub { flex-basis: 100%; margin-top: 14px; font-size: clamp(17px, 1.5vw, 22px); }
.play .imp-from { color: var(--mute); }
.play .imp-from::after { transform: scaleX(1); }
.play .imp-arrow, .play .imp-to { opacity: 1; transform: none; }

.imp-bars { display: grid; gap: 18px; padding-top: 4px; }
.bar { display: grid; grid-template-columns: 1fr auto; row-gap: 8px; font: 400 13px var(--zh); }
.bar-l { color: var(--mute); }
.bar-l em { font: 600 11px var(--sans); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--fg); margin-right: 10px; }
.bar-v { font-weight: 700; }
.bar-v--ai { color: var(--blue); }
.bar-f { grid-column: 1 / -1; position: relative; display: block; height: 10px; background: var(--line-2); }
.bar-f::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; transform: scaleX(0); transform-origin: left; }
.bar-f--man::after { width: 100%; background: var(--fg); transition: transform 1.4s var(--ease) .3s; }
/* 13 min of a ~480 min working day ≈ 2.7%; kept at a visible minimum */
.bar-f--ai::after { width: max(2.7%, 6px); background: var(--blue); transition: transform .5s var(--ease) 1.8s; }
.play .bar-f::after { transform: scaleX(1); }

/* 24 h track: three manned shifts merge into one continuous AI line (same language as the bars on the left) */
.imp-viz { padding-top: 4px; }
.sh-head, .sh-man { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sh-head span { font: 700 13px var(--zh); padding-bottom: 10px; }
.sh-head em { font: 500 11px var(--sans); font-style: normal; letter-spacing: .04em; color: var(--mute); margin-left: 6px; }
.sh-track { position: relative; height: 10px; background: var(--line-2); }
.sh-fill { position: absolute; inset: 0; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 1.6s cubic-bezier(.45, 0, .2, 1) .4s; }
.sh-cut { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--bg); transition: opacity .5s ease 2.1s; }
.sh-cut:nth-of-type(2) { left: calc(33.333% - 1px); }
.sh-cut:nth-of-type(3) { left: calc(66.666% - 1px); }
.sh-status { display: grid; margin-top: 12px; min-height: 26px; }
.sh-man, .sh-ai { grid-area: 1 / 1; }
.sh-man span { font: 500 13px var(--zh); color: var(--mute); text-decoration: line-through transparent; text-decoration-thickness: 2px; transition: text-decoration-color .3s, opacity .4s ease 1.9s; }
.sh-man span:nth-child(1) { transition-delay: .7s, 1.9s; }
.sh-man span:nth-child(2) { transition-delay: 1.2s, 1.9s; }
.sh-man span:nth-child(3) { transition-delay: 1.7s, 1.9s; }
.sh-ai { display: flex; align-items: center; gap: 10px; font: 700 15px var(--zh); opacity: 0; transform: translateY(8px); transition: opacity .6s ease 2.3s, transform .8s var(--ease) 2.3s; }
.sh-ai i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); animation: livePulse 1.8s ease-out infinite; }
.sh-ai em { font: 600 11px var(--sans); font-style: normal; letter-spacing: .12em; color: var(--blue); margin-left: auto; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(31, 91, 255, .55); } 100% { box-shadow: 0 0 0 10px rgba(31, 91, 255, 0); } }
.play .sh-fill { transform: scaleX(1); }
.play .sh-cut { opacity: 0; }
.play .sh-man span { text-decoration-color: var(--blue); opacity: 0; }
.play .sh-ai { opacity: 1; transform: none; }
.imp-note { align-self: end; padding-top: 28px; font: 400 14px/1.8 var(--zh); color: var(--mute); }
.imp-foot { margin-top: 48px; font: 400 12px var(--zh); color: var(--mute); }
/* ---------- FDE explainer (vector logo) ---------- */
.vec { position: absolute; inset: 0; width: 100%; height: 100%; }
.ap-grid { position: relative; height: 100%; align-items: center; z-index: 2; pointer-events: none; }
.ap-intro { align-self: start; padding-top: 80px; }
.eyebrow { font-size: 12px; font-weight: 500; margin-bottom: 18px; }
.ap-lead { font-family: var(--zh); font-size: clamp(22px, 2vw, 32px); line-height: 1.35; font-weight: 700; }
.ap-steps { display: grid; }
.as { grid-area: 1 / 1; opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.as.on { opacity: 1; transform: none; }
.as h3 { font-weight: 700; font-size: clamp(32px, 3.6vw, 56px); line-height: 1; letter-spacing: .01em; margin-bottom: 22px; }
.as p { font-family: var(--zh); font-size: 15px; line-height: 1.8; max-width: 340px; }
.as .as-k { font: 600 12px var(--sans); letter-spacing: .04em; color: var(--blue); margin-bottom: 18px; }
.as h3 { font-family: var(--zh); }

/* ---------- shared section heads ---------- */
.sec-head { padding-top: clamp(96px, 14vw, 220px); padding-bottom: clamp(56px, 7vw, 112px); align-items: end; }
.h-xl { font-weight: 800; font-size: clamp(48px, 7.6vw, 124px); line-height: .98; letter-spacing: .005em; }
.h-lg { font-weight: 800; font-size: clamp(34px, 4.4vw, 68px); line-height: 1; letter-spacing: .01em; }
.sec-note { font-family: var(--zh); color: var(--mute); font-size: 15px; line-height: 1.7; }

/* ---------- cases: text left, animation right ---------- */
.cases { padding-bottom: clamp(64px, 8vw, 120px); }
.case-index { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(28px, 4vw, 56px); }
.case-index a { display: inline-flex; gap: 10px; align-items: baseline; padding: 10px 14px; border: 1px solid var(--line); font: 400 13px var(--zh); transition: border-color .3s, background .3s, color .3s; }
.case-index a b { font: 500 11px var(--sans); color: var(--mute); }
.case-index a:hover { border-color: var(--blue); background: var(--blue); color: #fff; }
.case-index a:hover b { color: #fff; }
.case { border-top: 1px solid var(--line); padding: clamp(56px, 7vw, 112px) 0; scroll-margin-top: var(--nav-h); }
.case-row { align-items: center; row-gap: 32px; }
.case-text { padding-right: clamp(0px, 2vw, 40px); }
.case-meta { display: flex; gap: 14px; align-items: baseline; font-size: 12px; color: var(--mute); margin-bottom: 18px; }
.case-n { color: var(--fg); font-weight: 600; }
.case h3 { font-family: var(--zh); font-weight: 700; font-size: clamp(24px, 2.2vw, 34px); line-height: 1.35; letter-spacing: .01em; margin-bottom: 28px; }
.case-dl { display: grid; grid-template-columns: 84px 1fr; column-gap: 16px; }
.case-dl dt { font-size: 12px; font-weight: 500; color: var(--mute); padding: 16px 0; border-top: 1px solid var(--line); }
.case-dl dd { font-family: var(--zh); font-size: 14.5px; line-height: 1.75; padding: 13px 0; border-top: 1px solid var(--line); }
.case-dl dt:last-of-type { color: var(--blue); }
.case-dl dd:last-of-type { font-weight: 500; }

.case-visual { position: relative; width: 100%; max-width: 820px; background: #0b0b0c; color: #f0f0f0; border: 1px solid rgba(255,255,255,.1); }
.viz-bar { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-bottom: 1px solid rgba(255,255,255,.1); font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: #8a8a8a; }
.viz-rec { color: #5b8bff; animation: recPulse 2.4s ease-in-out infinite; }
@keyframes recPulse { 50% { opacity: .45; } }
.viz { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; }
.viz text { font-family: var(--mono); fill: #8a8a8a; font-size: 9px; letter-spacing: .06em; }
.viz .t-w { fill: #fff; }
.viz .t-b { fill: #5b8bff; }
.viz .t-lg { font-size: 13px; }
.viz .t-xl { font-size: 18px; font-family: var(--sans); font-weight: 600; letter-spacing: -.01em; }
.viz .ln { stroke: rgba(255,255,255,.22); fill: none; stroke-width: 1; }
.viz .ln-w { stroke: #e9e9e9; fill: none; stroke-width: 1.5; }
.viz .ln-b { stroke: var(--blue); fill: none; stroke-width: 1.6; }
.viz .fill-b { fill: var(--blue); }
.viz .fill-bs { fill: rgba(31, 91, 255, .16); }
.viz .grid-bg { stroke: rgba(255,255,255,.04); }
.viz .fade { transition: opacity .5s; }
.viz .pop { transform-box: fill-box; transform-origin: center; transition: transform .45s cubic-bezier(.34, 1.7, .64, 1), opacity .3s; }
.viz .draw { transition: stroke-dashoffset 1.2s var(--ease); }

/* ---------- services ---------- */
.services { padding: clamp(80px, 10vw, 140px) 0; overflow: hidden; }
.tickers { margin-bottom: clamp(48px, 6vw, 96px); }
.tk { overflow: hidden; border-top: 1px solid var(--line); }
.tk:last-child { border-bottom: 1px solid var(--line); }
.tk-track { display: flex; width: max-content; will-change: transform; }
.tk-track span { font-weight: 800; font-size: clamp(52px, 10vw, 160px); line-height: 1.02; letter-spacing: .02em; padding: 0 .28em; white-space: nowrap; }
.tk-track span.o { color: var(--bg); -webkit-text-stroke: 2px var(--fg); paint-order: stroke fill; }
.svc-list ul { list-style: none; padding: 0; }
.svc-list li { display: grid; grid-template-columns: 40px minmax(0, 3fr) minmax(0, 4fr); gap: var(--pad); align-items: baseline; padding: 22px 0; border-top: 1px solid var(--line); }
.svc-list li > * { transition: transform .5s var(--ease), color .3s; }
.svc-list li:last-child { border-bottom: 1px solid var(--line); }
.svc-list li:hover > * { transform: translateX(14px); }   /* transform, not padding: no relayout on hover */
.svc-list li:hover h3 { color: var(--blue); }
.svc-n { font-size: 12px; color: var(--mute); }
.svc-list h3 { font-weight: 600; font-size: clamp(22px, 2.3vw, 36px); letter-spacing: .01em; line-height: 1.15; transition: color .3s; }
.svc-list p { font-family: var(--zh); color: var(--mute); font-size: 14.5px; line-height: 1.7; }

/* ---------- process: six steps, one per grid column (2 → 7) ---------- */
.process { padding-bottom: clamp(80px, 10vw, 160px); }
.proc { grid-column: 1 / -1; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); column-gap: var(--pad); row-gap: 56px; }
.proc li { position: relative; display: flex; flex-direction: column; padding-top: 28px; border-top: 1px solid var(--fg); }
.proc li:nth-child(1) { grid-column: 2; } .proc li:nth-child(2) { grid-column: 3; } .proc li:nth-child(3) { grid-column: 4; }
.proc li:nth-child(4) { grid-column: 5; } .proc li:nth-child(5) { grid-column: 6; } .proc li:nth-child(6) { grid-column: 7; }
.proc li::before { content: ""; position: absolute; left: 0; top: -4px; width: 7px; height: 7px; background: var(--fg); transition: background .3s, transform .4s var(--ease); }
.proc li:hover::before { background: var(--blue); transform: scale(1.4); }
.proc-n { font-size: 12px; font-weight: 600; color: var(--blue); margin-bottom: 36px; }
.proc h3 { font-family: var(--zh); font-weight: 700; font-size: clamp(20px, 1.6vw, 24px); line-height: 1.3; margin-bottom: 16px; }
.proc h3 small { display: block; margin-top: 4px; font: 500 12px var(--sans); color: var(--mute); letter-spacing: 0; }
.proc p { font-family: var(--zh); font-size: 14px; line-height: 1.8; }
.proc .proc-scope { margin-top: auto; padding-top: 22px; font-size: 12px; line-height: 1.7; color: var(--mute); }

/* ---------- about / company ---------- */
.company { padding-bottom: clamp(80px, 10vw, 160px); }
.co-intro { align-items: start; row-gap: 28px; }
.co-name { font: 800 clamp(28px, 2.8vw, 44px)/1 var(--sans); letter-spacing: .02em; }
.co-zh { font: 700 clamp(16px, 1.3vw, 20px) var(--zh); letter-spacing: .4em; color: var(--mute); margin-top: 14px; }
.co-text { font-family: var(--zh); }
.co-lead { font-size: clamp(19px, 1.7vw, 26px); font-weight: 700; line-height: 1.6; margin-bottom: 28px; }
.co-text p:not(.co-lead) { font-size: 15px; line-height: 2; color: var(--mute); max-width: 680px; }
.co-text p + p:not(.co-lead) { margin-top: 16px; }
.co-values { list-style: none; margin: clamp(72px, 9vw, 128px) 0 0; row-gap: 28px; }
.co-values li { border-top: 1px solid var(--line); padding-top: 22px; }
.co-values b { display: block; font: 700 20px var(--zh); margin-bottom: 10px; }
.co-values b small { font: 500 12px var(--sans); color: var(--mute); margin-left: 8px; letter-spacing: .03em; }
.co-values p { font-family: var(--zh); font-size: 14px; line-height: 1.8; color: var(--mute); }
.co-facts { margin: clamp(48px, 6vw, 80px) 0 0; row-gap: 32px; }
.co-facts dt { font-size: 12px; color: var(--mute); padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.co-facts dd { margin: 0; font-family: var(--zh); font-size: 14.5px; line-height: 2; }
.co-facts a { display: inline-block; padding: 4px 0; border-bottom: 1px solid currentColor; line-height: 1.4; }
.co-facts a:hover { color: var(--blue); }
/* ---------- contact ---------- */
.contact { padding: clamp(96px, 12vw, 180px) 0; }
.ct-grid { align-items: end; row-gap: 48px; }
.ct-zh { font: 700 clamp(18px, 1.6vw, 24px) var(--zh); letter-spacing: .2em; margin-top: 18px; }
.ct-grid .sec-note { margin: 20px 0 36px; }
.ct-mail { display: inline-flex; gap: 12px; font-size: clamp(17px, 1.8vw, 26px); letter-spacing: .01em; border-bottom: 1px solid currentColor; padding-bottom: 4px; word-break: break-all; }
.ct-mail span { transition: transform .4s var(--ease); }
.ct-mail:hover span { transform: translateX(6px); }
.ct-form { display: grid; }
.ct-form label { display: grid; grid-template-columns: 112px 1fr; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); transition: border-color .3s; }
.ct-form label:focus-within { border-color: var(--blue); }
.ct-form label span { font: 400 12px var(--zh); color: var(--mute); }
.ct-form input, .ct-form textarea { background: none; border: 0; outline: none; font: 16px var(--zh); color: var(--fg); resize: vertical; width: 100%; padding: 2px 0; }
.ct-form ::placeholder { color: var(--mute); opacity: .6; }
.ct-form button { justify-self: start; margin-top: 22px; min-height: 48px; background: var(--fg); color: var(--bg); padding: 0 26px; font: 500 14px var(--zh); display: inline-flex; align-items: center; gap: 10px; transition: background .3s; }
.ct-form button:hover { background: var(--blue); color: #fff; }

/* ---------- footer ---------- */
.footer { padding-top: 22px; overflow: hidden; }
.ft-row { font-size: 12px; font-weight: 500; padding-bottom: 6vw; align-items: center; }
.ft-row a, .ft-row button { justify-self: start; }
.ft-row a { display: inline-block; padding: 8px 0; }
.ft-mark { display: inline-flex; align-items: center; gap: 10px; }
.ft-mark svg { width: 18px; height: auto; fill: currentColor; }

/* ---------- line reveal ---------- */
/* extra room below the baseline so descenders (g, y, p) are not clipped by the reveal mask */
[data-lines] .ln-wrap { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.16em; }
[data-lines] .ln-in { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 90ms); }
[data-lines].in .ln-in { transform: none; }
dl[data-lines] { opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
dl[data-lines].in { opacity: 1; transform: none; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */

/* tablet — process becomes 3 × 2, cases stay side by side */
@media (max-width: 1200px) {
  .proc { grid-column: 2 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .proc li:nth-child(n) { grid-column: auto; }
  .co-facts > div:nth-child(odd) { grid-column: 2 / 5; }
  .co-facts > div:nth-child(even) { grid-column: 5 / 9; }
}

/* small tablet & phone — single column */
@media (max-width: 900px) {
  :root { --nav-h: 52px; }

  .c1, .c2, .c4, .c5, .c6, .c7, .c8,
  .c1-3, .c2-3, .c2-4, .c2-5, .c2-6, .c2-8, .c4-5, .c5-6, .c5-8, .c6-7, .c6-8, .c7-8 { grid-column: 1 / -1; }
  .co-facts { grid-template-columns: 1fr 1fr; }
  .co-facts > div:nth-child(n) { grid-column: auto; }

  /* nav: logo + name left, menu button right; full-screen menu */
  .nav .grid8 { grid-template-columns: 1fr auto; }
  .nav a { display: none; }
  .nav .nav-mark { display: inline-flex; grid-column: 1; }
  .nav-plus { display: block; grid-column: 2; }
  .nav.open { color: var(--c-light); background: var(--c-dark); }
  .nav.open .grid8 { height: 100svh; grid-auto-rows: min-content; align-content: start; row-gap: 6px; padding-top: 16px; }
  .nav.open .nav-mark, .nav.open .nav-plus { grid-row: 1; margin-bottom: 36px; }
  .nav.open a:not(.nav-mark) { display: flex; grid-column: 1 / -1; justify-content: space-between; align-items: baseline; font-size: 28px; font-weight: 600; letter-spacing: .01em; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .nav.open a:not(.nav-mark) small { font-size: 13px; opacity: .6; }
  .nav.open a::before, .nav.open a::after { display: none; }

  /* hero */
  .hero { min-height: 0; }
  .hero-main { padding-top: 64px; padding-bottom: 64px; }
  .hero-main { row-gap: 28px; }
  .hero-title { font-size: clamp(30px, 8.2vw, 48px); }
  .hero-lead .ln-wrap { display: inline; }
  .hero-lead .ln-in { display: inline; }
  .hero-meta { grid-template-columns: 1fr auto; }
  .hero-meta > span { display: none; }
  .hero-meta > .scroll-cue, .hero-meta > .hero-brand { display: block; grid-column: auto; }
  .hero-brand small { display: none; }
  .scroll-cue { padding-left: 10px; }
  .scroll-cue i { left: 0; }

  /* sticky scenes */
  .sec-foot { grid-template-columns: 1fr; }
  .sec-foot > * { justify-self: center; }
  .ap-grid { align-content: space-between; padding-top: 72px; padding-bottom: 64px; }
  .ap-intro { padding-top: 0; }
  .as h3 { margin-bottom: 14px; }
  .as p { font-size: 14px; }

  /* sections */
  .sec-head { row-gap: 18px; }
  .case-text { padding-right: 0; }
  .svc-list li { grid-template-columns: 28px 1fr; row-gap: 6px; }
  .svc-list li p { grid-column: 2; }
  .svc-list li:hover > * { transform: none; }
  .ct-form label { grid-template-columns: 1fr; gap: 6px; }
  .ft-row { grid-template-columns: 1fr 1fr; row-gap: 14px; }
  .ft-row > * { grid-column: auto; }
}

/* phone */
@media (max-width: 600px) {
  .proc { grid-column: 1 / -1; grid-template-columns: 1fr; row-gap: 40px; }
  .proc-n { margin-bottom: 18px; }
  .co-facts { grid-template-columns: 1fr; }
  .imp + .imp { margin-top: 64px; }
  .co-lead br { display: none; }
  .case-dl { grid-template-columns: 1fr; }
  .case-dl dt { padding: 14px 0 0; }
  .case-dl dd { border-top: 0; padding: 4px 0 12px; }
  .case-index a { flex: 1 1 calc(50% - 4px); }
  .in-logo { width: min(72vw, 46vh); }
  .hero-cta .btn { flex: 1 1 auto; }
  .tc-zh { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .001s !important; }
}

/* ==========================================================
   MULTI-PAGE SITE — shared footer, contact, and the sub pages
   (solutions / about / privacy / 404)
   ========================================================== */
.no-intro #intro { display: none; }

/* text link with arrow (works on light and dark) */
.more { display: inline-flex; gap: 10px; font: 500 14px var(--zh); border-bottom: 1px solid currentColor; padding-bottom: 4px; transition: color .3s; }
.more span { transition: transform .4s var(--ease); }
.more:hover { color: var(--blue); }
.more:hover span { transform: translateX(4px); }
.more-row { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 32px; }
.svc-more { margin-top: clamp(36px, 4vw, 56px); }

/* page head: the same big-type rhythm as section heads, a little closer to the nav */
.page-head .sec-head { padding-top: clamp(72px, 9vw, 150px); }
.page-head { padding-bottom: clamp(56px, 7vw, 112px); }
.ph-row { align-items: end; row-gap: 28px; }
.ph-title { font-family: var(--zh); font-weight: 700; font-size: clamp(30px, 3.4vw, 56px); line-height: 1.3; letter-spacing: .01em; }
.ph-title em { font-style: normal; color: var(--blue); }
.ph-lead { font-family: var(--zh); font-size: 15px; line-height: 1.9; color: var(--mute); }
.page-head .case-index { margin-top: clamp(40px, 5vw, 72px); }

/* solutions */
.sol { border-top: 1px solid var(--line); padding: clamp(56px, 7vw, 112px) 0; scroll-margin-top: var(--nav-h); }
.sol .grid8 { row-gap: 32px; align-items: start; }
.sol-n { font-size: 12px; font-weight: 600; color: var(--blue); margin-bottom: 18px; }
.sol h2 { font-weight: 700; font-size: clamp(28px, 3vw, 48px); line-height: 1.05; letter-spacing: .01em; }
.sol-zh { font: 700 clamp(16px, 1.3vw, 20px) var(--zh); margin-top: 14px; color: var(--mute); }
.sol-lead { font: 700 clamp(18px, 1.5vw, 22px)/1.75 var(--zh); margin-bottom: 28px; }
.sol-dl { display: grid; grid-template-columns: 112px 1fr; column-gap: 16px; margin: 0; }
.sol-dl dt { font: 400 12px var(--zh); color: var(--mute); padding: 17px 0; border-top: 1px solid var(--line); }
.sol-dl dd { margin: 0; font: 400 14.5px/1.85 var(--zh); padding: 13px 0; border-top: 1px solid var(--line); }
.sol-dl ul { list-style: none; padding: 0; margin: 0; }
.sol-dl li::before { content: "—"; color: var(--blue); margin-right: 10px; }
.sol-dl a { border-bottom: 1px solid currentColor; }
.sol-dl a:hover { color: var(--blue); }

/* two-up / three-up text cards: industries, beliefs, approach */
.cards { list-style: none; margin: 0; row-gap: clamp(40px, 5vw, 72px); }
.cards li { border-top: 1px solid var(--line); padding-top: 22px; }
.cards .card-k { font: 600 12px var(--sans); color: var(--blue); letter-spacing: .04em; margin-bottom: 18px; }
.cards h3 { font: 700 clamp(22px, 2vw, 30px)/1.3 var(--zh); margin-bottom: 14px; }
.cards h3 small { display: block; margin-top: 6px; font: 500 12px var(--sans); color: var(--mute); letter-spacing: .02em; }
.cards p { font: 400 14.5px/1.85 var(--zh); color: var(--mute); max-width: 520px; }
.band { padding-bottom: clamp(80px, 10vw, 160px); }
.band .more-row { margin-top: clamp(48px, 6vw, 80px); }

/* FAQ — native <details>, so it works without JS */
.faq-list { border-bottom: 1px solid var(--line); }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 40px 1fr 16px; gap: var(--pad); align-items: baseline; padding: 22px 0; font: 700 clamp(17px, 1.5vw, 22px)/1.45 var(--zh); transition: color .3s; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--blue); }
.faq-list summary b { font: 500 12px var(--sans); color: var(--mute); }
.faq-list summary i { position: relative; width: 14px; height: 14px; align-self: center; }
.faq-list summary i::before, .faq-list summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.faq-list summary i::after { transform: rotate(90deg); }
.faq-list details[open] summary i::after { transform: rotate(0); }
.faq-list details a { color: var(--fg); border-bottom: 1px solid currentColor; }
.faq-list details p { padding: 0 0 26px calc(40px + var(--pad)); font: 400 15px/1.9 var(--zh); color: var(--mute); max-width: 860px; }

/* about: figures */
.stats { padding: clamp(80px, 10vw, 140px) 0; }
.stat-list { list-style: none; margin: 0; row-gap: 48px; }
.stat-list li { border-top: 1px solid var(--fg); padding-top: 22px; }
.stat-num { font: 800 clamp(56px, 6.4vw, 112px)/.9 var(--sans); color: var(--blue); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.stat-num small { font: 700 clamp(16px, 1.4vw, 22px) var(--zh); color: var(--fg); margin-left: 8px; letter-spacing: 0; }
.stat-k { margin-top: 20px; font: 400 14px/1.7 var(--zh); color: var(--mute); }
.stat-k b { display: block; font: 600 12px var(--sans); color: var(--fg); letter-spacing: .04em; margin-bottom: 4px; }
.stat-foot { margin-top: 40px; font: 400 12px var(--zh); color: var(--mute); }

/* about: team */
.team-tag { font: 600 12px var(--sans); letter-spacing: .04em; color: var(--mute); margin-bottom: 18px; }
.team-line { font: 800 clamp(22px, 2.2vw, 34px)/1.2 var(--sans); color: var(--blue); letter-spacing: .01em; }
.team-text .team-lead { font: 700 clamp(19px, 1.7vw, 26px)/1.6 var(--zh); margin-bottom: 24px; }
.team-text p:not(.team-lead) { font: 400 15px/2 var(--zh); color: var(--mute); max-width: 680px; }
.team-caps { list-style: none; padding: 0; margin: 36px 0 0; border-bottom: 1px solid var(--line); }
.team-caps li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font: 500 15px var(--zh); }
.team-caps li span { font: 500 12px var(--sans); color: var(--mute); text-align: right; }

/* about: company facts */
.info { padding: clamp(80px, 10vw, 140px) 0; border-top: 1px solid var(--line); }
.info .grid8 { row-gap: 32px; align-items: start; }
.info .sol-dl dd { font-size: 16px; }

/* privacy / plain documents */
.doc { padding-bottom: clamp(80px, 10vw, 160px); }
.doc-body { font: 400 15px/2 var(--zh); max-width: 760px; }
.doc-body h2 { font: 700 19px/1.5 var(--zh); margin: 44px 0 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.doc-body p, .doc-body ul { color: var(--mute); }
.doc-body ul { padding-left: 1.2em; margin: 6px 0; }
.doc-body a { color: var(--fg); border-bottom: 1px solid currentColor; }
.doc-body a:hover { color: var(--blue); }
.doc-date { margin-top: 44px; font: 400 12px var(--zh); color: var(--mute); }

/* contact additions */
.ct-direct { display: grid; gap: 4px; margin-top: 24px; font: 400 14px/1.8 var(--zh); color: var(--mute); }
.ct-direct a { color: var(--fg); transition: color .3s; }
.ct-direct a:hover { color: var(--blue); }
.ct-form button[disabled] { opacity: .5; cursor: progress; }
.ct-consent { margin-top: 14px; font: 400 12px/1.7 var(--zh); color: var(--mute); }
.ct-consent a { border-bottom: 1px solid currentColor; }
.ct-status { margin-top: 12px; min-height: 1.6em; font: 500 14px var(--zh); }
.ct-status.ok { color: var(--blue); }
.ct-status.err { color: #d4351c; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* footer: company details above the wordmark */
.ft-info { padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(40px, 5vw, 72px); row-gap: 32px; font: 400 14px/1.9 var(--zh); }
.ft-k { font: 500 12px var(--sans); color: var(--mute); padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.ft-info a { transition: color .3s; }
.ft-info a:hover { color: var(--blue); }
.ft-info + .ft-row { border-top: 1px solid var(--line); padding-top: 14px; }

/* 404 */
.nf { min-height: calc(100svh - var(--nav-h) - 11.6vw); display: flex; align-items: center; }
.nf .grid8 { width: 100%; row-gap: 28px; align-items: end; }

@media (max-width: 900px) {
  .faq-list summary { grid-template-columns: 28px 1fr 16px; }
  .faq-list details p { padding-left: 0; }
  .ft-info { grid-template-columns: 1fr 1fr; }
  .ft-info > * { grid-column: auto; }
}
@media (max-width: 600px) {
  .sol-dl { grid-template-columns: 1fr; }
  .sol-dl dt { padding: 14px 0 0; }
  .sol-dl dd { border-top: 0; padding: 4px 0 12px; }
  .ft-info { grid-template-columns: 1fr; }
  .team-caps li { flex-direction: column; gap: 2px; }
  .team-caps li span { text-align: left; }
}
