/* =====================================================================
   DIRECTION A — SIGNAL — see DESIGN.md for the full system.
   Layout concept: one dark field, text placed like instrument readouts
   around a living particle object; every section composed differently.
   ===================================================================== */
:root {
  --black: #101211;
  --raise: #171918;
  --raise-2: #202221;
  --line: #f3fef21a;
  --line-2: #f2fced3b;
  --fg: #eceeed;
  --fg-2: #adb5b2;
  --fg-3: #7c8481;
  --green: #46a758;
  --green-deep: #3e7949;
  --green-hi: #71d083;
  --green-glow: #008f0a4d;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0, 1);
  --ease-io: cubic-bezier(0.7, 0, 0.2, 1);
  --gutter: max(20px, 4.2vw);
  --nav-h: 68px;
  --fs-display: clamp(44px, 7.6vw, 132px);
  --fs-h2: clamp(34px, 5vw, 84px);
  --fs-h3: clamp(22px, 2.1vw, 32px);
  --fs-body: clamp(16px, 1.12vw, 18px);
  --fs-small: 13px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--black); overflow-x: clip; scroll-padding-top: calc(var(--nav-h) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--black); color: var(--fg); font-family: var(--font);
  font-size: var(--fs-body); line-height: 1.55; font-weight: 400; letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--green); color: #101211; }
a, button, [role="button"] { touch-action: manipulation; }
:focus-visible { outline: 1.5px solid var(--green-hi); outline-offset: 4px; border-radius: 4px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }
p { margin: 0; }
.display { font-size: var(--fs-display); line-height: 0.93; letter-spacing: -0.048em; font-weight: 500; }
.h2 { font-size: var(--fs-h2); line-height: 0.98; letter-spacing: -0.04em; }
.h3 { font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -0.022em; }
.lede { color: var(--fg-2); max-width: 34ch; }
.body { color: var(--fg-2); max-width: 46ch; }
.read { font-family: var(--mono); font-size: 12px; letter-spacing: 0; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.dagger { color: var(--green); font-size: 0.5em; vertical-align: super; margin-left: 0.08em; font-weight: 400; }
.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- text splitting (JS adds .js on <html>) ---------- */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.wi { display: inline-block; will-change: transform; }
.js [data-split] .wi { transform: translate3d(0, 108%, 0); opacity: 0; }
.js [data-split].in .wi { transform: none; opacity: 1; transition: transform 1.25s var(--ease), opacity 0.55s var(--ease); transition-delay: var(--d, 0s); }
.js [data-fade] { opacity: 0; transform: translateY(14px); }
.js [data-fade].in { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1.25s var(--ease); transition-delay: var(--d, 0s); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--green); --c: #171918;
  position: relative; display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 26px 0 20px;
  border-radius: 999px; background: var(--bg); color: var(--c); font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  overflow: hidden; isolation: isolate; transition: background 0.25s var(--ease);
}
.btn::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none;
  box-shadow: 0 0 0 0 currentColor; animation: beat 2.25s var(--ease) infinite;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--green-hi);
  transform: translateY(101%); border-radius: inherit; transition: transform 0.55s var(--ease);
}
.btn:hover::after { transform: none; }
.btn--ghost { --bg: transparent; --c: var(--fg); box-shadow: inset 0 0 0 0.5px var(--line-2); }
.btn--ghost::before { background: var(--green); }
.btn--ghost::after { background: #f4f5f312; }
.btn .lbl { display: inline-block; position: relative; }
@keyframes beat { 0% { box-shadow: 0 0 0 0 #008619b9; } 70%, 100% { box-shadow: 0 0 0 7px #5ef7780a; } }

.link-line { position: relative; display: inline-flex; align-items: center; gap: 10px; color: var(--fg); font-size: 15px; justify-self: start; }
/* inline link: only the underline changes, so body copy keeps its measure and rhythm */
.ilink { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em;
  text-decoration-color: var(--fg-3); transition: color .25s, text-decoration-color .25s; }
.ilink:hover, .ilink:focus-visible { color: var(--green-hi); text-decoration-color: currentColor; }
.link-line::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--fg-3); transform-origin: right; transition: transform 0.25s var(--ease); }
.link-line:hover::after { background: var(--green); transform: scaleX(1); animation: line-swap 0.7s var(--ease); }
@keyframes line-swap { 0% { transform: scaleX(1); transform-origin: right; } 45% { transform: scaleX(0); transform-origin: right; } 46% { transform-origin: left; } 100% { transform: scaleX(1); transform-origin: left; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); display: flex; align-items: center; gap: 24px;
  padding: env(safe-area-inset-top, 0px) var(--gutter) 0; transition: transform 0.25s var(--ease), background 0.25s;
}
.nav::after { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; height: 1px; background: var(--line); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease); }
.nav.scrolled::after { transform: none; }
.nav.scrolled { background: linear-gradient(rgba(0, 0, 0, 0.8), #0c0c0083); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav.hide { transform: translateY(-100%); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.03em; font-size: 15px; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a { position: relative; padding: 8px 12px; font-size: 14px; color: var(--fg-2); border-radius: 8px; transition: color .25s; }
.nav__links a:hover { color: var(--fg); }
.nav__links a[aria-current="page"] { color: var(--fg); }
.nav__links a[aria-current="page"]::before { content: ""; position: absolute; left: 50%; bottom: 0; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--green); }
.nav .btn { height: 40px; font-size: 14px; padding: 0 18px 0 15px; }
html:not(.js) .nav__menu { display: none; }
.nav__menu { display: none; height: 44px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 0.5px var(--line-2); font-size: 14px; }
.progress { position: fixed; z-index: 51; left: 0; top: 0; height: 2px; width: 100%; background: var(--green); transform-origin: left; transform: scaleX(0); pointer-events: none; }

.menu {
  position: fixed; inset: 0; z-index: 60; background: var(--black); display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 24px + env(safe-area-inset-top, 0px)) var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
  clip-path: inset(0 0 100% 0); transition: clip-path 0.8s var(--ease-io); visibility: hidden;
}
.menu.open { clip-path: inset(0 0 0 0); visibility: visible; }
.menu a.m { display: block; font-size: clamp(40px, 11vw, 64px); letter-spacing: -0.045em; line-height: 1.05; color: var(--fg); padding: 4px 0; }
.menu a.m[aria-current="page"] { color: var(--green); }
.menu .w .wi { transform: translateY(110%); transition: transform .9s var(--ease); }
.menu.open .w .wi { transform: none; transition-delay: var(--d, 0s); }
.menu__close { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: var(--gutter); height: 40px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 0.5px var(--line-2); font-size: 14px; }

/* ---------- cursor: native arrow stays, a tight ring sits around it ---------- */
.cur-ring, .cur-label { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; }
.cur-ring {
  width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  border: 1px solid var(--green); opacity: 0; transition: opacity .18s, border-color .18s, box-shadow .18s;
}
.cur-ring.on { opacity: .55; }
.cur-ring.press { opacity: .9; border-color: var(--green-hi); box-shadow: 0 0 0 3px var(--green-glow); }
.cur-label {
  padding: 4px 8px; border-radius: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .02em;
  color: var(--fg); background: rgba(0, 0, 0, .7); box-shadow: inset 0 0 0 0.5px var(--line-2);
  opacity: 0; transition: opacity .15s; white-space: nowrap;
}
.cur-label.on { opacity: 1; }
/* interactive components answer outside their own box, so the pointer never covers the label */
.hit { outline: 1px solid var(--green-hi); outline-offset: 4px; border-radius: 4px; }
@media (hover: none), (pointer: coarse) { .cur-ring, .cur-label { display: none; } }

/* ---------- veil (page transition) ---------- */
.veil { position: fixed; inset: 0; z-index: 80; pointer-events: none; background: var(--black); transform-origin: top; }
.veil::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--green); box-shadow: 0 0 18px 2px var(--green-glow); }
.veil.out { transform: scaleY(0); transition: transform 0.55s var(--ease-io) 0.05s; }
.veil.in { transform: scaleY(1); transform-origin: bottom; transition: transform 0.7s var(--ease-io); }

.grain { position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1.25s steps(6) infinite; }
@keyframes grain { 0% { background-position: 0 0; } 20% { background-position: -37px 21px; } 40% { background-position: 24px -48px; } 60% { background-position: -11px 33px; } 80% { background-position: 41px 12px; } 100% { background-position: 0 0; } }

/* ---------- image slots ---------- */
[data-img] { position: relative; }
[data-img] > img.slot {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
  filter: grayscale(1) contrast(1.15) brightness(.82); mix-blend-mode: luminosity; transition: opacity 1.25s var(--ease);
}
[data-img].has-img > img.slot { opacity: 1; }
[data-img].has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #57ff802c, #0c0c0083); mix-blend-mode: multiply; pointer-events: none; }

/* ---------- footer ---------- */
.foot { position: relative; z-index: 2; background: var(--black); border-top: 0.5px solid var(--line); padding: 72px var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px)); }
.foot__top { display: flex; flex-wrap: wrap; gap: 48px 64px; justify-content: space-between; }
.foot__brand { max-width: 320px; display: grid; gap: 18px; }
.foot__brand p { color: var(--fg-2); font-size: 15px; }
.foot__cols { display: flex; flex-wrap: wrap; gap: 48px 72px; }
.foot__col { display: grid; gap: 10px; align-content: start; font-size: 15px; }
.foot__col h3 { margin: 0 0 6px; font-size: 12px; font-weight: 400; color: var(--fg-3); }
.foot__col a, .foot__col span { color: var(--fg-2); transition: color .25s; }
.foot__col a:hover { color: var(--fg); }
/* external profiles: the row only exists once site links are configured, so the footer never shows an empty gap */
.foot__social { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; }
.foot__social a { font-size: 13px; color: var(--fg-3); display: inline-flex; align-items: center; gap: 6px; }
.foot__social a:hover { color: var(--fg); }
.foot__bottom { margin-top: 72px; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; font-size: 12px; color: var(--fg-3); }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: beat 2.25s infinite; }

/* =====================================================================
   HOME
   ===================================================================== */
.field-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block; }
.home main { position: relative; z-index: 1; }
.chapter { position: relative; min-height: 100vh; min-height: 100svh; }

.h-hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(40px, 7vh, 84px); }
.h-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px; }
.h-hero h1 { max-width: 11.5ch; }
.h-hero__side { display: grid; gap: 28px; justify-items: start; padding-bottom: 0.6em; }
.h-hero__side .lede { max-width: 30ch; }
.h-hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; width: 1px; height: 42px; background: var(--line-2); overflow: hidden; }
.scroll-cue::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--green); animation: cue 2.25s var(--ease-io) infinite; }
@keyframes cue { to { top: 110%; } }

/* plan: text hangs from the top centre, labels sit on the drawing */
.h-plan { min-height: 260vh; }
.h-plan__head { position: sticky; top: calc(var(--nav-h) + 4vh); text-align: center; display: grid; justify-items: center; gap: 18px; }
.h-plan__head .body { text-align: center; max-width: 40ch; }
.labels { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.tag { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--fg); white-space: nowrap; opacity: 0; transition: opacity .25s; will-change: transform; }
.tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px #57ff802c; }
.tag b { font-weight: 400; padding: 4px 9px; border-radius: 6px; background: rgba(0, 0, 0, 0.7); box-shadow: inset 0 0 0 0.5px var(--line); }
/* phones: dots instead of a pile of names; tap a dot to read one room */
.tag-dot { position: absolute; left: 0; top: 0; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 2px #101211, 0 0 0 6px #57ff802c; opacity: 0; transition: opacity .2s, box-shadow .2s, transform .2s; }
.tag-dot.active { box-shadow: 0 0 0 2px #101211, 0 0 0 12px #57ff802c; transform: scale(1.35); }
.tag--tap { opacity: 0; transition: opacity .18s; font-size: 13.5px; }
.tag--tap.on { opacity: 1; }
.tag--tap::before { content: ""; position: absolute; left: -10px; top: 50%; width: 10px; height: 1px; background: var(--green); }
.tag--tap.left::before { left: auto; right: -10px; }
.plan-hint { position: fixed; left: 50%; bottom: calc(126px + env(safe-area-inset-bottom)); transform: translateX(-50%); font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--fg-2); opacity: 0; transition: opacity .3s; pointer-events: none; white-space: nowrap; }
.plan-hint.on { opacity: 1; }

/* extrude: tall counter on the left edge, text in a narrow right column */
.h-extrude { min-height: 170vh; }
.h-extrude__inner { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.elev { display: grid; gap: 4px; align-self: stretch; align-content: center; }
.elev__num { font-family: var(--mono); font-size: clamp(56px, 9vw, 150px); line-height: .9; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; color: var(--fg); }
.elev__num small { font-size: .28em; letter-spacing: 0; color: var(--fg-3); margin-left: .25em; }
.elev__bar { width: 100%; height: 1px; background: var(--line-2); position: relative; }
.elev__bar i { position: absolute; inset: 0; background: var(--green); transform-origin: left; transform: scaleX(0); }
.h-extrude__text { display: grid; gap: 22px; max-width: 420px; justify-self: end; }

/* equipment: four corner readouts around the object */
.h-equip { min-height: 180vh; }
.hud { position: sticky; top: 0; height: 100vh; height: 100svh; }
.hud__c { position: absolute; display: grid; gap: 6px; }
.hud__c .read { font-size: 12px; }
.hud__c strong { font-weight: 500; font-size: clamp(18px, 1.6vw, 24px); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hud__tl { left: var(--gutter); top: calc(var(--nav-h) + 6vh); }
.hud__tr { right: var(--gutter); top: calc(var(--nav-h) + 6vh); text-align: right; }
.hud__bl { left: var(--gutter); bottom: 9vh; }
.hud__br { right: var(--gutter); bottom: 9vh; text-align: right; justify-items: end; }
.hud__title { position: absolute; left: 50%; bottom: 8vh; transform: translateX(-50%); text-align: center; display: grid; gap: 16px; justify-items: center; width: min(980px, 88vw); }
.hud__corner { position: absolute; width: 14px; height: 14px; border-color: var(--line-2); border-style: solid; border-width: 0; }
.hud__corner.a { left: calc(var(--gutter) - 14px); top: calc(var(--nav-h) + 6vh - 14px); border-left-width: 0.5px; border-top-width: 0.5px; }
.hud__corner.b { right: calc(var(--gutter) - 14px); bottom: calc(9vh - 14px); border-right-width: 0.5px; border-bottom-width: 0.5px; }
.equip-photo { position: absolute; right: var(--gutter); top: 50%; width: clamp(140px, 14vw, 220px); transform: translateY(-50%); margin: 0; opacity: 0; transition: opacity 1s; }
.equip-photo.has-img { opacity: 1; }
.equip-photo img { width: 100%; aspect-ratio: var(--ar); object-fit: contain; display: block; border-radius: 6px; padding: 10px; background: #fbfdfc; box-shadow: 0 0 0 0.5px #f2fced3b; }
.equip-photo figcaption { margin-top: 10px; color: var(--fg-3); font-size: 12px; text-align: right; }

/* stages: pinned kinetic sentence */
.h-stages { min-height: 640vh; }
.stages__pin { position: sticky; top: 0; height: 100vh; height: 100svh; }
.stages__pin::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0, rgba(0, 0, 0, 0.5) 28%, transparent 50%); pointer-events: none; }
/* the copy holds the left column; the kitchen builds on the right */
.stages__copy { position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%); width: min(40vw, 620px); display: grid; gap: 28px; }
.sentence, .stages__note { position: relative; }
.sentence { font-size: clamp(40px, 5.2vw, 92px); letter-spacing: -0.05em; line-height: 0.98; font-weight: 500; max-width: 10ch; }
.sentence .verb { color: var(--green); display: inline-block; min-width: 4ch; text-align: left; }
.sentence .obj { color: var(--fg); }
.stages__track { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 9vh; display: flex; justify-content: space-between; gap: 8px; }
.stages__track::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: var(--line-2); }
.stages__track i.fill { position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: var(--green); transform-origin: left; transform: scaleX(0); }
.stage-tick { position: relative; display: grid; gap: 14px; justify-items: center; font-size: 12px; color: var(--fg-2); transition: color .25s; flex: 1; }
.stage-tick:first-of-type { justify-items: start; }
.stage-tick:last-of-type { justify-items: end; }
.stage-tick::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--black); box-shadow: inset 0 0 0 0.5px var(--fg-3); transition: background .25s, box-shadow .25s; }
.stage-tick.on { color: var(--fg); }
.stage-tick.on::before { background: var(--green); box-shadow: 0 0 0 4px #57ff802c; }
.stages__note { color: var(--fg-2); max-width: 34ch; min-height: 3.2em; }

/* network: big readout left, short text right, low on the screen */
.h-net { min-height: 200vh; }
.h-net__pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; }
.h-net__copy { position: relative; display: grid; gap: 26px; justify-items: start; width: min(36vw, 520px); }
.big-read { display: grid; gap: 4px; }
.big-read b { white-space: nowrap; font-weight: 500; font-size: clamp(72px, 9vw, 150px); line-height: .82; letter-spacing: -0.07em; font-variant-numeric: tabular-nums; }
.big-read > span { color: var(--fg-3); font-size: 14px; }
.h-net__contact { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.h-net__contact .btn { white-space: nowrap; }
.h-net__tel { white-space: nowrap; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; color: var(--fg); }
.h-net__qr { margin: 0; display: grid; gap: 6px; justify-items: center; font-size: 12px; color: var(--fg-3); }
.h-net__qr img { width: 88px; height: 88px; border-radius: 8px; box-shadow: inset 0 0 0 0.5px var(--line); background: #fff; }
.map-no { position: absolute; right: var(--gutter); bottom: 4vh; margin: 0; font-size: 11px; color: var(--fg-3); opacity: 0; }
.tag--map b { font-size: 12px; }
.tag--map.is-hub b { font-weight: 600; }

@keyframes spin { to { transform: rotate(360deg); } }

/* =====================================================================
   SUB PAGES — shared hero
   ===================================================================== */
.page main { position: relative; z-index: 1; }
.p-hero { position: relative; min-height: 92vh; min-height: 92svh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: end; gap: 32px; padding-top: calc(var(--nav-h) + 6vh); padding-bottom: 8vh; overflow: hidden; }
.p-hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.p-hero__text { position: relative; z-index: 1; display: grid; gap: 26px; }
.p-hero__crumb { font-size: 12px; color: var(--fg-3); display: flex; gap: 10px; align-items: center; }
.p-hero__crumb::before { content: ""; width: 18px; height: 1px; background: var(--green); }
.p-hero__aside { position: relative; z-index: 1; justify-self: end; display: grid; gap: 20px; max-width: 380px; padding-bottom: 0.4em; }
.p-hero__aside::before { content: ""; position: absolute; inset: -40px -60px -30px -60px; z-index: -1; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.8), transparent); pointer-events: none; }
.p-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 30vh; background: linear-gradient(transparent, var(--black)); z-index: 0; pointer-events: none; }

.sec { position: relative; padding-top: clamp(80px, 10vh, 140px); padding-bottom: clamp(80px, 10vh, 140px); }
.sec-head { display: grid; gap: 22px; max-width: 760px; margin-bottom: clamp(48px, 7vh, 88px); }

/* ---------- Solutions: sector index ---------- */
.sectors { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.sector-list { list-style: none; margin: 0; padding: 0; border-top: 0.5px solid var(--line); }
.sector-list li { border-bottom: 0.5px solid var(--line); }
.sector-list button {
  width: 100%; text-align: left; display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: clamp(14px, 2.2vh, 24px) 0; font-size: clamp(22px, 6.4vw, 54px); letter-spacing: -0.04em; line-height: 1.05; color: var(--fg-3);
  transition: color .25s var(--ease), padding .25s var(--ease);
}
.sector-list button .read { opacity: 0; transition: opacity .25s; }
.sector-list button[aria-selected="true"] { color: var(--fg); padding-left: clamp(12px, 2vw, 28px); }
.sector-list button[aria-selected="true"] .read { opacity: 1; color: var(--green); }
.sector-list button:hover { color: var(--fg-2); }
.sector-list button[aria-selected="true"]:hover { color: var(--fg); }
.sector-panel { position: sticky; top: calc(var(--nav-h) + 40px); display: grid; gap: 26px; padding: 28px 0 0; }
.sector-panel h3 { min-height: 2.3em; }
.sector-panel .body { min-height: 5em; }
.focus { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.focus li { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; padding: 7px 13px; border-radius: 999px; box-shadow: inset 0 0 0 0.5px var(--line-2); color: var(--fg-2); animation: chip .7s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes chip { from { opacity: 0; transform: translateY(10px); } }
.sector-media { position: relative; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 0.5px var(--line); }
/* the render, revealed with a short mask wipe each time the sector changes */
.sector-photo { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; clip-path: inset(0 0 0 100%); transform: scale(1.03); transition: clip-path .9s var(--ease), transform 1.4s var(--ease); }
.sector-photo.in { clip-path: inset(0 0 0 0); transform: scale(1); }
.sector-photo[hidden] { display: none; }
.sector-cap { position: absolute; left: 12px; bottom: 10px; font-size: 12px; color: var(--fg-2); background: rgba(0,0,0,.6); padding: 4px 8px; border-radius: 6px; }
@keyframes fadein { from { opacity: 0; } }

/* ---------- Solutions: food flow (pinned horizontal) ---------- */
.flow { position: relative; height: 340vh; }
.flow__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; padding-top: calc(var(--nav-h) + 4vh); padding-bottom: 7vh; }
.flow__svg { width: 100%; height: 100%; display: block; overflow: visible; }
.flow__caption { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.flow__now { display: grid; gap: 8px; min-height: 5.2em; }
.flow__now strong { font-size: var(--fs-h3); font-weight: 500; letter-spacing: -0.02em; }
.flow__now p { color: var(--fg-2); max-width: 40ch; }

/* ---------- Solutions: exploded layers ---------- */
.layers { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 100px); align-items: center; min-height: 100vh; }
.stack3d { position: relative; height: min(70vh, 640px); perspective: 1600px; }
.stack3d__in { position: absolute; left: 50%; top: 50%; width: min(86%, 520px); aspect-ratio: 18.8 / 11.6; transform-style: preserve-3d; transform: translate(-50%, -50%) rotateX(58deg) rotateZ(-38deg); }
.plane { position: absolute; inset: 0; border-radius: 6px; box-shadow: inset 0 0 0 0.5px var(--line-2); background: linear-gradient(135deg, #f1f2f008, #f1f2f008); transition: box-shadow .25s, background .25s; }
.plane svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.plane.on { box-shadow: inset 0 0 0 0.5px var(--green); background: linear-gradient(135deg, #57ff802c, #5ef7780a); }
.layer-key { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.layer-key li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 0.5px solid var(--line); cursor: default; }
.layer-key li::before { content: ""; width: 10px; height: 10px; margin-top: 8px; border-radius: 2px; box-shadow: inset 0 0 0 0.5px var(--fg-3); transform: rotate(45deg); transition: background .25s, box-shadow .25s; }
.layer-key li.on::before { background: var(--green); box-shadow: none; }
.layer-key b { font-weight: 500; font-size: 20px; letter-spacing: -0.015em; display: block; transition: color .25s; color: var(--fg-2); }
.layer-key li.on b { color: var(--fg); }
.layer-key span { color: var(--fg-3); font-size: 15px; }

/* ---------- shared CTA band ---------- */
.band { position: relative; padding-top: clamp(110px, 18vh, 220px); padding-bottom: clamp(110px, 18vh, 220px); display: grid; gap: 40px; justify-items: start; border-top: 0.5px solid var(--line); overflow: hidden; }
.band .display { max-width: 13ch; }
/* the closing heading is cut open by a laser as it rises, the same effect as the products "非标定制" title */
.band__title { position: relative; }
.band__title .ghost { color: var(--fg-3); opacity: .3; }
.band__title .solid { position: absolute; inset: 0; color: var(--fg); clip-path: inset(0 100% 0 0); }
.band__laser { position: absolute; top: -4%; bottom: -4%; width: 2px; left: 0; background: var(--green); box-shadow: 0 0 22px 4px var(--green-glow); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .band__title .solid { clip-path: none; }
  .band__laser { display: none; }
}
.band__row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
@media (max-width: 860px) {
  /* the band is the last section before the footer: keep enough air, not a dead half-screen */
  .band { padding-bottom: clamp(56px, 8vh, 88px); }
  /* the fixed bar already carries the same call; do not repeat it inside the band */
  .has-mbar .band__row { display: none; }
}

/* ---------- Products ---------- */
.psearch { width: min(360px, 100%); min-height: 44px; margin: 0 0 14px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--raise); color: var(--fg); font: inherit; font-size: 15px; box-shadow: inset 0 0 0 0.5px var(--line-2); outline: none; }
.psearch:focus { box-shadow: inset 0 0 0 1.5px var(--green); }
.pempty { padding: 22px 0; color: var(--fg-2); font-size: 15px; }
.seg { position: relative; display: inline-flex; flex-wrap: wrap; gap: 0; padding: 4px; border-radius: 999px; box-shadow: inset 0 0 0 0.5px var(--line-2); margin-bottom: 44px; max-width: 100%; }
.seg button { position: relative; z-index: 1; height: 44px; padding: 0 16px; border-radius: 999px; font-size: 14px; color: var(--fg-2); transition: color .25s; white-space: nowrap; }
.seg button[aria-selected="true"] { color: #171918; }
:root[data-theme="light"] .seg button[aria-selected="true"] { color: #fbfdfc; }
:root[data-theme="light"] .plist button.on .t, :root[data-theme="light"] .plist button:hover .t, :root[data-theme="light"] .plist button:focus-visible .t { color: var(--green); }
.seg__pill { position: absolute; z-index: 0; top: 4px; height: 44px; border-radius: 999px; background: var(--green); transition: left .25s var(--ease), width .25s var(--ease), top .25s var(--ease); }
@keyframes rowin { from { opacity: 0; transform: translateY(18px); } }
.col-hide { }
.preview { position: fixed; left: 0; top: 0; z-index: 40; width: 240px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; pointer-events: none; background: var(--raise); box-shadow: inset 0 0 0 0.5px var(--line-2), 0 30px 60px rgba(0,0,0,.6); opacity: 0; transform: scale(.85); transition: opacity .35s, transform .25s var(--ease); }
.preview.on { opacity: 1; transform: none; }
.preview canvas { width: 100%; height: 100%; display: block; }
.preview img { width: 100%; height: 100%; display: block; object-fit: cover; }
.preview--photo { width: 280px; transition: opacity .35s, transform .25s var(--ease), background .25s; }
.range { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.pshow[hidden] { display: none; }
.pshow { position: sticky; top: calc(var(--nav-h) + 24px); margin: 0; display: grid; gap: 14px; }
.pshow__img { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; transition: background .25s; }
.pshow__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 7%; animation: fadein .25s ease both; }
.pshow figcaption { display: flex; justify-content: space-between; gap: 16px; color: var(--fg-3); }
.plist { list-style: none; margin: 0; padding: 0; border-top: 0.5px solid var(--line); }
.plist button { width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 20px 0; text-align: left; }
.plist .read { color: var(--fg-3); }
.plist .t { font-size: clamp(20px, 2vw, 30px); letter-spacing: -0.025em; transition: transform .25s var(--ease), color .25s; }
.plist button:hover .t, .plist button:focus-visible .t, .plist button.on .t { transform: translateX(14px); color: var(--green-hi); }
.plist .th { display: none; width: 72px; height: 54px; object-fit: contain; border-radius: 6px; padding: 3px; }
.plist li { border-bottom: 0.5px solid var(--line); animation: rowin .8s var(--ease) both; animation-delay: var(--d, 0s); }

.drawer { position: fixed; inset: 0; z-index: 75; display: grid; grid-template-columns: 1fr minmax(0, 620px); visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer__scrim { background: rgba(0,0,0,.6); opacity: 0; transition: opacity .25s; }
.drawer.open .drawer__scrim { opacity: 1; }
.drawer__panel { position: relative; background: var(--raise); box-shadow: inset 0.5px 0 0 var(--line-2); transform: translateX(100%); transition: transform .8s var(--ease-io); overflow-y: auto; padding: calc(28px + env(safe-area-inset-top, 0px)) max(28px, env(safe-area-inset-right, 0px)) 40px 36px; display: grid; gap: 30px; align-content: start; }
.drawer.open .drawer__panel { transform: none; }
.drawer__close { justify-self: end; height: 38px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 0.5px var(--line-2); font-size: 14px; }
.drawer__media { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--black); box-shadow: inset 0 0 0 0.5px var(--line); }
.drawer__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 5%; display: block; }
.drawer__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); border-top: 0.5px solid var(--line); }
.kv dt, .kv dd { margin: 0; padding: 14px 0; border-bottom: 0.5px solid var(--line); font-size: 15px; }
.kv dt { color: var(--fg-3); }
.kv dd { font-family: var(--mono); font-size: 12px; color: var(--fg); font-variant-numeric: tabular-nums; }

.fab { position: relative; height: 420vh; }
.fab__pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; gap: 40px; }
.fab__text { display: grid; gap: 26px; }
.fab__count { margin-bottom: -16px; color: var(--fg-2); }
/* a scroll rail, not a row of buttons: numbers, a hairline and a fill */
.fab__steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; }
.fab__steps::before, .fab__steps::after { content: ""; position: absolute; left: 3px; top: 3px; height: 1px; background: var(--line); }
.fab__steps::before { right: 3px; }
.fab__steps::after { right: auto; width: var(--p, 0%); max-width: calc(100% - 6px); background: var(--green); transition: width .18s linear; }
.fab__steps li { position: relative; display: grid; gap: 5px; padding-top: 18px; min-width: 0; color: var(--fg-2); }
.fab__steps li::before { content: ""; position: absolute; left: 0; top: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--raise); box-shadow: inset 0 0 0 1px var(--line-2); transition: background .2s, box-shadow .2s; }
.fab__steps li.on::before { background: var(--green); box-shadow: 0 0 0 4px #57ff802c; }
.fab__steps li.done::before { background: var(--green-deep); }
.fab__steps li .read { font-size: 10.5px; color: var(--fg-2); }
.fab__steps li b { font-weight: 400; font-size: 12.5px; line-height: 1.25; }
.fab__steps li.on b { color: var(--fg); }
.fab__steps li.on .read { color: var(--green); }
.fab__steps li.done b { color: var(--fg-2); }
.fab__now { color: var(--fg-2); min-height: 3.2em; max-width: 38ch; }
.fab__svg { width: 100%; height: auto; max-height: 72vh; display: block; overflow: visible; }

.cut { position: relative; padding-top: clamp(120px, 20vh, 240px); padding-bottom: clamp(120px, 20vh, 240px); border-top: 0.5px solid var(--line); overflow: hidden; }
.cut__title { position: relative; font-size: clamp(48px, 10vw, 180px); line-height: .9; letter-spacing: -0.06em; font-weight: 500; }
.cut__title .ghost { color: transparent; -webkit-text-stroke: 1px var(--fg-3); }
.cut__title .solid { position: absolute; inset: 0; color: var(--fg); clip-path: inset(0 100% 0 0); }
.cut__laser { position: absolute; top: -4%; bottom: -4%; width: 2px; left: 0; background: var(--green); box-shadow: 0 0 22px 4px var(--green-glow); opacity: 0; }
.cut__foot { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: center; justify-content: space-between; }

/* ---------- Projects ---------- */
.chip { height: 38px; padding: 0 14px; border-radius: 999px; font-size: 14px; color: var(--fg-2); box-shadow: inset 0 0 0 0.5px var(--line-2); display: inline-flex; align-items: center; gap: 8px; transition: color .25s, background .25s, box-shadow .25s; }
.chip sup { font-family: var(--mono); font-size: 12px; color: var(--fg-3); top: 0; }
.chip[aria-pressed="true"] { background: var(--fg); color: #171918; box-shadow: none; }
.chip[aria-pressed="true"] sup { color: #373b39; }
.pindex { list-style: none; margin: 0; padding: 0; border-top: 0.5px solid var(--line); }
.pindex li { border-bottom: 0.5px solid var(--line); overflow: hidden; }
.pindex a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: baseline; padding: clamp(18px, 3vh, 32px) 0; position: relative; }
.pindex .t { font-size: clamp(24px, 2.6vw, 42px); letter-spacing: -0.03em; line-height: 1.08; transition: transform .7s var(--ease), color .25s; }
.pindex a:hover .t { transform: translateX(clamp(10px, 2vw, 30px)); }
.pindex .m { display: flex; gap: 22px; color: var(--fg-3); font-size: 14px; white-space: nowrap; }
.pindex .m b { font-weight: 400; color: var(--fg-2); }
.pindex li.leaving { animation: leave .45s var(--ease) both; }
.pindex li.arriving { animation: arrive .7s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes leave { to { opacity: 0; transform: translateY(-14px); } }
@keyframes arrive { from { opacity: 0; transform: translateY(24px); } }
.pindex:hover .t { color: var(--fg-3); }
.pindex a:hover .t { color: var(--fg); }

.feature { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 100px); }
.feature__media { position: sticky; top: calc(var(--nav-h) + 30px); height: calc(100vh - var(--nav-h) - 60px); border-radius: 12px; overflow: hidden; background: var(--raise); box-shadow: inset 0 0 0 0.5px var(--line); }
.feature__media canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.feature__media .read { position: absolute; left: 18px; bottom: 16px; }
.feature__steps { display: grid; gap: 0; }
.feature--plan { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.feature--plan .feature__media { height: auto; aspect-ratio: 18.8 / 12.6; top: calc(50vh - 15vw + var(--nav-h) / 2); }
.fstep { min-height: 72vh; display: grid; align-content: center; gap: 20px; opacity: .28; transition: opacity .25s var(--ease); }
.fstep.on { opacity: 1; }
.fstep .read { color: var(--green); }

/* a project opens as the page itself (normal document scroll), not as a layer over it */
.case { display: none; position: relative; background: var(--black); padding-top: var(--nav-h); }
.case.open { display: block; animation: caseIn .8s var(--ease) both; }
body.case-open main > :not(#case), body.case-open .preview { display: none !important; }
@keyframes caseIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.case__bar { position: sticky; top: var(--nav-h); z-index: 2; display: flex; justify-content: space-between; align-items: center; height: 56px; padding: 0 var(--gutter); background: linear-gradient(var(--black), rgba(0,0,0,0)); }
.case__hero { position: relative; height: 72vh; margin: 0 var(--gutter); border-radius: 14px; overflow: hidden; background: var(--raise); box-shadow: inset 0 0 0 0.5px var(--line); }
.case__hero canvas, .case__img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.case__img { object-fit: cover; }
.case__hero [hidden] { display: none; }
.case__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 100px); padding-top: 72px; padding-bottom: 72px; }
#cTitle { font-size: clamp(28px, 2.8vw, 44px); line-height: 1.12; letter-spacing: -0.02em; }
/* a project's photos: large and small in turn, on a 12-column grid */
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense; gap: 12px; padding: 0 var(--gutter) 80px; }
.gallery figure { position: relative; grid-column: span 4; aspect-ratio: 4 / 3; margin: 0; border-radius: 12px; overflow: hidden; background: var(--raise); box-shadow: inset 0 0 0 0.5px var(--line); }
.gallery figure:nth-child(5n + 1) { grid-column: span 8; grid-row: span 2; aspect-ratio: auto; }
.gallery figure:nth-child(5n + 4) { grid-column: span 6; aspect-ratio: 16 / 10; }
.gallery figure:nth-child(5n + 5) { grid-column: span 6; aspect-ratio: 16 / 10; }
.gallery figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery figure.is-iso { background: #fbfdfc; }
.gallery figure.is-iso img { object-fit: contain; padding: 4%; }
.gallery figcaption { position: absolute; left: 12px; bottom: 10px; background: rgba(0,0,0,.6); padding: 4px 8px; border-radius: 6px; color: var(--fg-2); }
@media (max-width: 600px) {
  .case__bar { height: 48px; }
  .case__hero { height: 42vh; }
  .case__body { gap: 24px; padding-top: 40px; padding-bottom: 40px; }
  #cTitle { font-size: 21px; line-height: 1.15; letter-spacing: -.02em; }
  #cSummary { font-size: 15px; line-height: 1.6; }
  #cKind { font-size: 11px; }
  #cStory { gap: 24px; }
  .cstory { gap: 6px; padding-top: 14px; }
  .cstory .body { font-size: 15px; line-height: 1.65; }
  #cNext { font-size: 16px; min-height: 44px; }
  .gallery { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-bottom: 56px; }
  .gallery figure, .gallery figure:nth-child(3n + 1) { grid-column: auto !important; aspect-ratio: 16 / 10 !important; }
}
.fstep__units { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; opacity: 0; transition: opacity .3s var(--ease); }
.fstep.on .fstep__units { opacity: 1; }
.fstep__units li { font-size: 12px; padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 0.5px var(--line); color: var(--fg-2); }

/* ---------- Company ---------- */
.manifesto { min-height: 220vh; }
.manifesto__pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-content: center; }
.manifesto__text { font-size: clamp(30px, 4.2vw, 68px); line-height: 1.08; letter-spacing: -0.035em; max-width: 22ch; font-weight: 500; }
.manifesto__text .mw { color: var(--fg-3); transition: color .25s; }
.manifesto__text .mw.lit { color: var(--fg); }
.manifesto__text .mw.lit.g { color: var(--green); }

.figs { position: relative; display: grid; gap: clamp(28px, 6vh, 64px); }
.fig { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 28px; align-items: end; width: max-content; max-width: 100%; }
.fig:nth-child(1) { margin-left: 0; }
.fig:nth-child(2) { margin-left: 16%; }
.fig:nth-child(3) { margin-left: 32%; }
.fig:nth-child(4) { margin-left: 48%; }
.fig b { font-weight: 500; font-size: clamp(56px, 9vw, 152px); line-height: .85; letter-spacing: -0.065em; font-variant-numeric: tabular-nums; }
.fig > span { color: var(--fg-2); padding-bottom: .5em; font-size: 15px; }
.figs__note { font-size: 12px; color: var(--fg-3); margin-top: 24px; }

.tl { position: relative; padding-top: clamp(96px, 14vh, 180px); padding-bottom: clamp(96px, 14vh, 180px); overflow: hidden; }
.tl__track { display: flex; gap: 0; cursor: grab; user-select: none; touch-action: pan-y; will-change: transform; padding-left: var(--gutter); }
.tl__track.drag { cursor: grabbing; }
.tl__item { position: relative; flex: 0 0 clamp(260px, 30vw, 420px); padding: 34px 32px 0 0; display: grid; gap: 12px; align-content: start; }
.tl__item::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-2); }
.tl__item::after { content: ""; position: absolute; left: 0; top: -5px; width: 11px; height: 11px; border-radius: 50%; background: var(--black); box-shadow: inset 0 0 0 0.5px var(--fg-3); transition: background .25s, box-shadow .25s; }
.tl__item.on::after { background: var(--green); box-shadow: 0 0 0 5px #57ff802c; }
.tl__item .read { font-size: 12px; }
.tl__item strong { font-weight: 500; font-size: clamp(22px, 2vw, 30px); letter-spacing: -0.025em; }
.tl__item p { color: var(--fg-2); max-width: 30ch; }
.tl__bar { margin: 48px var(--gutter) 0; height: 1px; background: var(--line); position: relative; }
.tl__bar i { position: absolute; left: 0; top: 0; height: 1px; background: var(--green); width: 20%; transform-origin: left; }

.gates { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 100px); }
.gates__line { position: relative; padding-left: 52px; }
.gates__line::before { content: ""; position: absolute; left: 15px; top: 0; bottom: 0; width: 1px; background: var(--line-2); }
.gates__fill { position: absolute; left: 15px; top: 0; width: 1px; height: 100%; background: var(--green); transform-origin: top; transform: scaleY(0); }
.gates__unit { position: absolute; left: 9px; top: 0; width: 13px; height: 13px; border-radius: 3px; background: var(--fg); box-shadow: 0 0 18px #ebfde766; }
.gate { position: relative; min-height: 34vh; display: grid; align-content: start; gap: 10px; padding-bottom: 40px; }
.gate::before { content: ""; position: absolute; left: -49px; top: 4px; width: 25px; height: 25px; border-radius: 50%; background: var(--black); box-shadow: inset 0 0 0 0.5px var(--line-2); transition: box-shadow .25s, background .25s; }
.gate svg { position: absolute; left: -43px; top: 10px; width: 13px; height: 13px; }
.gate svg path { stroke: #171918; stroke-width: 2.2; fill: none; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .25s var(--ease) .15s; }
.gate.pass::before { background: var(--green); box-shadow: none; }
.gate.pass svg path { stroke-dashoffset: 0; }
.gate strong { font-weight: 500; font-size: 20px; letter-spacing: -0.02em; color: var(--fg-3); transition: color .25s; }
.gate.pass strong { color: var(--fg); }
.gate p { color: var(--fg-3); max-width: 36ch; transition: color .25s; }
.gate.pass p { color: var(--fg-2); }

/* ---------- Company: certificate archive ---------- */
.certs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.cert-list { list-style: none; margin: 0; padding: 0; }
.cert-group { display: flex; justify-content: space-between; padding: 30px 0 10px; border-bottom: 0.5px solid var(--line-2); }
.cert-group:first-child { padding-top: 0; }
.cert-group .read:first-child { color: var(--fg-2); }
.cert-list li:not(.cert-group) { border-bottom: 0.5px solid var(--line); }
.cert-list button {
  width: 100%; text-align: left; display: grid; grid-template-columns: 2.6em minmax(0, 1fr) auto; align-items: baseline; gap: 14px;
  padding: clamp(10px, 1.5vh, 16px) 0; color: var(--fg-3); transition: color .25s var(--ease), padding .25s var(--ease);
}
.cert-list button b { font-weight: 500; font-size: clamp(22px, 2.5vw, 38px); letter-spacing: -0.035em; line-height: 1.08; }
.cert-list button span:last-child { font-size: 13px; text-align: right; }
.cert-list button[aria-selected="true"] { color: var(--fg); padding-left: clamp(8px, 1.4vw, 20px); }
.cert-list button[aria-selected="true"] .read { color: var(--green); }
.cert-list button:hover { color: var(--fg-2); }
.cert-list button[aria-selected="true"]:hover { color: var(--fg); }
.cert-view { position: sticky; top: calc(var(--nav-h) + 28px); display: grid; gap: 22px; }
.cert-plate { position: relative; aspect-ratio: 1; width: min(100%, calc(100svh - var(--nav-h) - 236px)); border-radius: 14px; overflow: hidden; background: var(--raise-2); box-shadow: inset 0 0 0 0.5px var(--line); }
.cert-field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cert-doc { position: absolute; inset: 9%; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; cursor: zoom-in; border-radius: 2px; }
.cert-doc img { max-width: 100%; max-height: 100%; width: auto; height: auto; box-shadow: 0 0 0 0.5px var(--line-2), 0 26px 50px -14px #00000099; clip-path: inset(0 0 100% 0); transition: clip-path .85s var(--ease); }
.cert-doc img.in { clip-path: inset(0 0 0 0); }
.cert-doc.miss::after { content: "—"; color: var(--fg-3); }
/* a beam crosses the plate each time a document is laid on it */
.cert-scan { position: absolute; left: 9%; right: 9%; top: 9%; height: 1px; background: var(--green-hi); box-shadow: 0 0 14px 1px var(--green-glow); opacity: 0; pointer-events: none; }
.cert-scan.go { animation: certscan .9s var(--ease) both; }
@keyframes certscan { 0% { top: 9%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: 91%; opacity: 0; } }
.cert-meta { display: flex; justify-content: space-between; align-items: end; gap: 20px; width: min(100%, calc(100svh - var(--nav-h) - 236px)); }
.cert-meta > div { display: grid; gap: 8px; }
.cert-meta .read { color: var(--green); }
.cert-meta .h3 { min-height: 1.2em; }
.cert-meta .body { font-size: 14px; }
.cert-rail { display: none; }
/* full size */
.lb { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-rows: auto minmax(0, 1fr); background: #101211; opacity: 0; transition: opacity .25s var(--ease); }
.lb.on { opacity: 1; }
.lb[hidden] { display: none; }
.lb__bar { display: flex; align-items: baseline; gap: 16px; padding: 18px var(--gutter); color: #eceeed; }
.lb__bar .read { color: var(--green-hi); }
.lb__name { font-weight: 500; font-size: 18px; }
.lb__scope { color: #adb5b2; font-size: 14px; flex: 1; }
.lb__x, .lb__nav { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: #eceeed; box-shadow: inset 0 0 0 0.5px #f2fced3b; background: rgba(0, 0, 0, 0.6); transition: background .2s; }
.lb__x:hover, .lb__nav:hover { background: #46a758; color: #101211; }
.lb svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.lb__stage { display: flex; overflow: auto; padding: 0 var(--gutter) 24px; overscroll-behavior: contain; }
.lb__img { margin: auto; max-width: 100%; max-height: 100%; width: auto; height: auto; flex: none; cursor: zoom-in; box-shadow: 0 30px 80px -20px #000000cc; opacity: 0; transform: scale(0.98); transition: opacity .4s var(--ease), transform .5s var(--ease); background: #fff; }
.lb__img.in { opacity: 1; transform: none; }
.lb.zoom .lb__img { max-width: none; max-height: none; cursor: zoom-out; }
.lb__nav { position: absolute; top: 50%; margin-top: -22px; }
.lb__prev { left: max(10px, calc(var(--gutter) / 2 - 22px)); }
.lb__next { right: max(10px, calc(var(--gutter) / 2 - 22px)); }
html.lb-open { overflow: hidden; }

/* ---------- Network ---------- */
.coverage { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); align-items: center; }
.cov-stage { position: relative; aspect-ratio: 1; width: min(100%, calc(100svh - var(--nav-h) - 100px)); }
.cov-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cov-cap { position: absolute; left: 0; bottom: 0; display: grid; gap: 4px; pointer-events: none; }
.cov-cap b { font-weight: 500; font-size: clamp(24px, 2.2vw, 34px); letter-spacing: -0.03em; line-height: 1.05; min-width: 4em; }
.cov-cap .read { color: var(--green); }
.cov-map-no { position: absolute; right: 0; bottom: 0; margin: 0; font-size: 11px; color: var(--fg-2); }
.cov-no, .cov-src { color: var(--fg-2); }
.cov-list { list-style: none; margin: 0; padding: 0; border-top: 0.5px solid var(--line); }
.cov-list li { border-bottom: 0.5px solid var(--line); }
.cov-list button { width: 100%; text-align: left; display: grid; grid-template-columns: 2.6em minmax(0, 1fr) auto; align-items: baseline; gap: 14px; padding: clamp(12px, 1.8vh, 18px) 0; color: var(--fg-2); transition: color .25s var(--ease), padding .25s var(--ease); }
.cov-list .read { color: var(--fg-2); }
.cov-list button b { font-weight: 500; font-size: clamp(24px, 2.8vw, 42px); letter-spacing: -0.04em; line-height: 1.05; }
.cov-list button:hover { color: var(--fg-2); }
.cov-list button[aria-expanded="true"] { color: var(--fg); padding-left: clamp(8px, 1.4vw, 20px); }
.cov-list button[aria-expanded="true"] .read:first-child { color: var(--green); }
.cov-detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.cov-detail > div { overflow: hidden; display: grid; gap: 10px; padding-left: calc(2.6em + 14px + clamp(8px, 1.4vw, 20px)); }
.cov-list button[aria-expanded="true"] + .cov-detail { grid-template-rows: 1fr; }
.cov-list button[aria-expanded="true"] + .cov-detail > div { padding-bottom: 20px; }
.cov-detail .body { font-size: 14px; }
.cov-src { display: none; margin: 0; font-size: 11px; }
.coverage.no-gl { grid-template-columns: 1fr; }
.coverage.no-gl .cov-src { display: block; }
@media (max-width: 860px) {
  .coverage { display: block; }
  /* the map sticks under the nav; the list scrolls beneath it, so a tap on Hainan or Tibet still has a map */
  /* cover the nav gap only while the map is stuck; fixed overlay, so it can never sit on the map's top */
  .coverage.stuck::after { content: ""; position: fixed; z-index: 9; left: 0; right: 0; top: 0; height: calc(var(--nav-h) + 8px); background: var(--black); pointer-events: none; }
  .sec:has(#coverage) .sec-head { margin-bottom: 24px; }
  /* the stage stays square so the map is never cropped: a short box let fitPortrait shrink the drawing into a strip */
  .cov-stage { position: sticky; top: calc(var(--nav-h) + 8px); z-index: 8; width: 100%; aspect-ratio: 1 / 1; height: auto; margin: 0 0 18px; background: var(--black); isolation: isolate; }
  .cov-list { position: relative; z-index: 1; }
  /* the fixed contact bar sits over the bottom ~70 px; give the last row's own box that clearance, so when it scrolls to the bottom edge its button lands above the bar */
  .has-mbar .cov-list li:last-child { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .cov-stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: -18px; height: 18px; background: linear-gradient(var(--black), transparent); pointer-events: none; }
  .cov-list button b { font-size: 22px; }
}
@media (max-width: 600px) {
  .cov-stage { top: calc(var(--nav-h) + 6px); }
}

.tiers { position: relative; border-radius: 18px; box-shadow: inset 0 0 0 0.5px var(--line); padding: clamp(24px, 4vw, 56px); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); }
.tiers::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px circle at var(--mx, 30%) var(--my, 20%), #57ff802c, transparent 60%); pointer-events: none; }
.tiers__left { display: grid; gap: 28px; align-content: start; position: relative; }
.tiers__resp { display: grid; gap: 6px; }
.tiers__resp b { font-weight: 500; font-size: clamp(40px, 5vw, 80px); letter-spacing: -0.05em; line-height: 1; }
.tiers__resp span { color: var(--fg-3); font-size: 14px; }
.feat { list-style: none; margin: 0; padding: 0; position: relative; }
.feat li { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 0.5px solid var(--line); font-size: 15px; transition: color .25s; }
.feat li::before { content: ""; width: 16px; height: 1px; background: var(--fg-3); transition: background .25s, width .25s var(--ease); }
.feat li.add { animation: featin .7s var(--ease) both; animation-delay: var(--d, 0s); }
.feat li.add::before { background: var(--green); width: 24px; }
@keyframes featin { from { opacity: 0; transform: translateX(-16px); } }
.visits { display: flex; gap: 4px; flex-wrap: wrap; }
.visits i { width: 14px; height: 14px; border-radius: 3px; box-shadow: inset 0 0 0 0.5px var(--line-2); transition: background .25s var(--ease); transition-delay: var(--d, 0s); }
.visits i.on { background: var(--green); box-shadow: none; }

.cycle { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; min-height: 100vh; }
.cycle__dial { position: relative; width: min(100%, 560px); aspect-ratio: 1; justify-self: center; }
.cycle__dial svg { width: 100%; height: 100%; display: block; overflow: visible; }
.cycle__center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none; }
.cycle__center div { display: grid; gap: 10px; max-width: 58%; }
.cycle__center strong { font-weight: 500; font-size: clamp(28px, 3vw, 46px); letter-spacing: -0.04em; }
.cycle__center p { color: var(--fg-2); font-size: 15px; }

.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 100px); }
.contact__info { display: grid; gap: 28px; align-content: start; }
.contact__info dl { margin: 0; display: grid; gap: 18px; }
.contact__info dt { color: var(--fg-3); font-size: 12px; }
.contact__info dd { margin: 4px 0 0; font-size: 20px; letter-spacing: -0.015em; user-select: all; }
.form { display: grid; gap: 8px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.field { position: relative; display: grid; padding-top: 22px; }
.field label { position: absolute; left: 0; top: 36px; color: var(--fg-3); font-size: 15px; pointer-events: none; transition: top .25s var(--ease), font-size .25s var(--ease), color .25s; }
.field input, .field textarea, .field select { width: 100%; background: transparent; border: 0; border-bottom: 0.5px solid var(--line-2); padding: 12px 0 14px; color: var(--fg); font: inherit; font-size: 15px; border-radius: 0; outline: none; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; }
.field select option { background: var(--raise); color: var(--fg); }
.field i { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.field:focus-within i { transform: none; }
.field.filled label, .field:focus-within label, .field:has(select) label { top: 2px; font-size: 12px; color: var(--fg-2); }
.field.err i { transform: none; background: #a35829; }
.field .msg { font-size: 12px; color: #ffa057; }
:root[data-theme="light"] .field .msg { color: #a35829; }
.field .msg { min-height: 18px; padding-top: 6px; }
.field--check { display: grid; grid-template-columns: 22px minmax(0,1fr) auto; gap: 4px 10px; align-items: start; padding-top: 10px; }
.field--check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green); }
.field--check label { position: static; pointer-events: auto; font-size: 14px; color: var(--fg-2); line-height: 1.45; }
.field--check .msg { grid-column: 2 / -1; padding-top: 0; }
.privacy-link { font-size: 14px; color: var(--green-hi); white-space: nowrap; padding-top: 2px; }
.privacy { margin-top: 14px; border-top: 0.5px solid var(--line); padding-top: 14px; color: var(--fg-2); font-size: 14px; line-height: 1.6; }
.privacy summary { color: var(--fg); cursor: pointer; }
.privacy p { margin-top: 8px; max-width: 46ch; }
.form__foot { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: 24px; }
.form__sent { color: var(--fg-2); font-size: 15px; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav .btn { display: none; }
  .nav__menu { display: inline-flex; align-items: center; margin-left: auto; }
}
@media (max-width: 860px) {
  :root { --nav-h: 60px; }
  .h-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .h-hero h1 { max-width: 12ch; }
  .h-extrude__inner { flex-direction: column; justify-content: flex-end; align-items: stretch; padding-bottom: 10vh; gap: 28px; }
  .elev { align-self: auto; }
  .h-extrude__text { justify-self: start; }
  .hud__tl, .hud__tr { top: calc(var(--nav-h) + 3vh); }
  .hud__bl, .hud__br { bottom: 26vh; }
  .hud__title { bottom: 6vh; }
  .equip-photo { display: none; }
  .stage-tick { font-size: 12px; }
  .stage-tick span { display: none; }
  .stage-tick.on span { display: block; position: absolute; top: 20px; white-space: nowrap; }
  .p-hero { grid-template-columns: minmax(0, 1fr); align-content: end; min-height: 88svh; }
  .p-hero__aside { justify-self: start; }
  .sectors, .layers, .feature, .gates, .coverage, .cycle, .contact, .case__body, .tiers { grid-template-columns: minmax(0, 1fr); }
  .sector-panel { position: relative; top: 0; }
  .stack3d { height: 52vh; }
  .fab__pin { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 24px; }
  .fab__svg { max-height: 44vh; }
  .feature__media { position: sticky; top: var(--nav-h); height: 40vh; z-index: 2; }
  .feature--plan .feature__media { height: auto; top: var(--nav-h); }
  .fstep { min-height: 52vh; }
  .fig { margin-left: 0 !important; width: auto; grid-template-columns: minmax(0, 1fr); }
  .fig:nth-child(even) { justify-self: end; }
  .pindex a { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .pindex .t { font-size: clamp(19px, 5.4vw, 26px); letter-spacing: -0.025em; line-height: 1.12; }
  .pindex .m { gap: 14px; flex-wrap: wrap; }
  .plist button { grid-template-columns: 28px minmax(0, 1fr) 72px; padding: 12px 0; }
  .plist .th { display: block; }
  .range { grid-template-columns: minmax(0, 1fr); }
  .pshow { display: none; }
  .drawer { grid-template-columns: minmax(0, 1fr); }
  .drawer__scrim { display: none; }
  .drawer__panel { padding-left: 20px; padding-right: 20px; }
  .case__hero { height: 46vh; }
  .preview { display: none; }
  .manifesto__text { font-size: clamp(28px, 7.4vw, 44px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .js [data-split] .wi, .js [data-fade] { transform: none !important; opacity: 1 !important; }
  .grain { display: none; }
}

/* ---------- language switch (中文 / EN) ---------- */
.nav__lang { padding: 8px 10px; font-size: 14px; color: var(--fg-2); transition: color .25s; }
.nav__lang:hover { color: var(--fg); }
.menu .menu__lang { align-self: flex-start; height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 0.5px var(--line-2); font-size: 14px; color: var(--fg-2); }
@media (max-width: 1080px) { .nav__lang { margin-left: auto; } .nav__lang + .nav__menu { margin-left: 4px; } }

/* brand mark + qr */
.brand .logo-mark { width: 26px; height: 34px; }
.foot__qr, .contact__qr { width: 96px; height: 96px; display: block; margin-top: 10px; border-radius: 4px; }

/* ---------- light theme: same site on white-green ---------- */
:root[data-theme="light"] {
  --black: #f8faf8; --raise: #fbfdfc; --raise-2: #eff1ef;
  --line: #1f150019; --line-2: #1915014a;
  --fg: #1d211c; --fg-2: #454843; --fg-3: #5f6563;
  --green: #2a7e3b; --green-deep: #2a7e3b; --green-hi: #3e9b4f;
  --green-glow: #008f0a4d;
  color-scheme: light;
}
:root[data-theme="light"] .btn:not(.btn--ghost) { --c: #fbfdfc; }
:root[data-theme="light"] .nav.scrolled { background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6)); }
:root[data-theme="light"] .btn--ghost::after { background: #20100010; }
:root[data-theme="light"] .cur-ring { border-color: var(--green-deep); }
:root[data-theme="light"] .cur-label { background: rgba(255, 255, 255, .9); box-shadow: inset 0 0 0 0.5px var(--line-2); }
:root[data-theme="light"] .tag b { background: rgba(255, 255, 255, 0.8); }
:root[data-theme="light"] .sector-cap { background: rgba(255, 255, 255, 0.8); }
:root[data-theme="light"] .stages__pin::before { background: linear-gradient(90deg, rgba(255, 255, 255, 0.8) 0, rgba(255, 255, 255, 0.5) 28%, transparent 50%); }
:root[data-theme="light"] .p-hero__aside::before { background: radial-gradient(closest-side, rgba(255, 255, 255, 0.8), transparent); }
:root[data-theme="light"] .plane { background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), #f0fdec74); }
:root[data-theme="light"] .equip-photo img { box-shadow: 0 0 0 0.5px var(--line-2); }
:root[data-theme="light"] .case__bar { background: linear-gradient(var(--black), #f1f2f008); }
:root[data-theme="light"] .gallery figcaption { background: rgba(255, 255, 255, 0.8); }
:root[data-theme="light"] .preview { box-shadow: inset 0 0 0 0.5px var(--line-2), 0 30px 60px #19140035; }
:root[data-theme="light"] .drawer__scrim { background: #0f0f0079; }
:root[data-theme="light"] .chip[aria-pressed="true"] { color: var(--black); }
:root[data-theme="light"] .gates__unit { box-shadow: 0 0 18px #008f0a4d; }
:root[data-theme="light"] [data-img].has-img::after { background: linear-gradient(180deg, #57ff802c, #1915014a); }
.themebtn { position: fixed; right: 16px; bottom: 86px; z-index: 90; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--raise); color: var(--fg-2); box-shadow: inset 0 0 0 0.5px var(--line-2), 0 8px 22px rgba(0,0,0,.3); cursor: pointer; transition: color .25s, transform .25s var(--ease); }
.themebtn:hover { color: var(--fg); }

/* delivered projects register */

.field select { background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }

.mbar { display: none; }
.cov-no { position: absolute; left: 0; bottom: 0; margin: 0; font-size: 12px; color: var(--fg-3); }
@media (max-width: 860px) {
  .has-mbar .foot { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  .has-mbar body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  .has-mbar .menu { padding-bottom: 84px; }
  .has-mbar:has(.menu.open) .mbar { display: none; }

  .mbar { display: grid; grid-template-columns: auto auto 1fr; gap: 8px; position: fixed; z-index: 80; left: 0; right: 0; bottom: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--raise); box-shadow: 0 -1px 0 var(--line-2); }
  .mbar a, .mbar .mbar__wx { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2); }
  .mbar svg { width: 18px; height: 18px; fill: currentColor; }
  .mbar .mbar__main { background: var(--green); color: var(--black); box-shadow: none; }
}
/* ---------- phone: compress scrolly tracks, plain-list fallbacks ---------- */
@media (max-width: 860px) {
  .seg { border-radius: 16px; }
  .h-plan { min-height: 170svh; }
  .foot__bottom { flex-direction: column; padding-right: 56px; }


  .stages__pin::before { background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0, rgba(0, 0, 0, 0.5) 30%, transparent 48%); }
  :root[data-theme="light"] .stages__pin::before { background: linear-gradient(0deg, rgba(255, 255, 255, 0.8) 0, rgba(255, 255, 255, 0.5) 30%, transparent 48%); }
  .stages__copy { top: auto; bottom: calc(9vh + 54px); transform: none; width: auto; right: var(--gutter); gap: 12px; }
  .sentence { font-size: clamp(30px, 9vw, 44px); }
  .stages__note { font-size: 14px; min-height: 4.2em; }
  .h-net__pin { align-items: flex-end; padding-bottom: calc(9vh + 20px); }
  .h-net__pin::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0, rgba(0, 0, 0, 0.5) 34%, transparent 58%); pointer-events: none; }
  :root[data-theme="light"] .h-net__pin::before { background: linear-gradient(0deg, rgba(255, 255, 255, 0.8) 0, rgba(255, 255, 255, 0.5) 34%, transparent 58%); }
  .h-net__copy { width: 100%; gap: 12px; z-index: 1; }
  .big-read b { font-size: 52px; }
  .h-net .h2 { font-size: 26px; }
  .h-net__qr img { width: 64px; height: 64px; }
  .h-net__contact { display: grid; grid-template-columns: auto auto; justify-content: start; align-items: center; column-gap: 22px; row-gap: 10px; }
  .h-net__contact .btn { grid-column: 1; }
  .h-net__tel { grid-column: 1; }
  .h-net__qr { grid-column: 2; grid-row: 1 / span 2; }
  .h-net__tel { font-size: 18px; }
  .map-no { bottom: auto; top: calc(var(--nav-h) + 8px); }
  .cov-no { position: static; margin-top: 10px; }
  .map-no { right: auto; left: var(--gutter); }
  .gates > div:first-child { position: static !important; }
      .flow { height: 180vh; }
  .manifesto { min-height: 120vh; }
  .h-net { min-height: 240vh; }

  .h-stages { min-height: 700vh; }
  .stages__copy, .fstep { z-index: 3; }
  .layers { min-height: 0; }
  #cycle { height: auto !important; }
  #cycle .cycle { position: relative; height: auto !important; min-height: 0; padding: 60px 0; }
  .cycle__dial { display: none; }
  .cylist { list-style: none; margin: 22px 0 0; padding: 0; border-top: 0.5px solid var(--line); }
  .cylist li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-bottom: 0.5px solid var(--line); font-size: 14px; }
  .cylist b { font-weight: 500; }
  .cylist span { color: var(--fg-2); }
}
@media (max-width: 860px) { .fab { height: 500vh; } }
@media (max-width: 600px) {
  .fab__pin { gap: 16px; align-content: center; }
  .fab__text { gap: 16px; }
  .fab__count { margin-bottom: -8px; }
  .fab__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
  .fab__steps::before, .fab__steps::after { display: none; }
  .fab__steps li { display: grid; grid-template-columns: 2.2em minmax(0, 1fr); align-items: baseline; gap: 8px; padding-top: 0; }
  .fab__steps li::before { display: none; }
  .fab__svg { max-height: 36vh; }
}
@media (max-width: 860px) {
  .stage-tick span { display: none !important; }
  .certs { display: block; }
  .cert-list, .cert-view { display: none; }
  .cert-rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 10px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .cert-rail::-webkit-scrollbar { display: none; }
  .cert-card { flex: 0 0 78%; margin: 0; scroll-snap-align: center; display: grid; gap: 14px; align-content: start; }
  .cert-card__doc { aspect-ratio: 1; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; padding: 7%; border-radius: 12px; background: var(--raise-2); box-shadow: inset 0 0 0 0.5px var(--line); }
  .cert-card__doc img { max-width: 100%; max-height: 100%; width: auto; height: auto; box-shadow: 0 0 0 0.5px var(--line-2), 0 16px 30px -10px rgba(0, 0, 0, 0.5); }
  .cert-card figcaption { display: grid; gap: 4px; }
  .cert-card figcaption b { font-weight: 500; font-size: 20px; letter-spacing: -0.02em; }
  .cert-card figcaption span:last-child { color: var(--fg-2); font-size: 14px; }
  .lb__bar { flex-wrap: wrap; gap: 6px 12px; }
  .lb__scope { flex-basis: 100%; order: 3; }
  .lb__nav { top: auto; bottom: 18px; margin-top: 0; }
}
@media (max-width: 860px) { #cycle .cycle { display: block; padding: 40px var(--gutter); } .cycle__center { display: none; } }

/* the standard map's review number sits in the hero that carries the map */
.p-hero .cov-no { position: absolute; left: auto; right: var(--gutter); bottom: 12px; z-index: 2; }

/* project overlay: the brief in three parts; the plan drawn in particles with its room names */
.cstory { display: grid; gap: 8px; padding-top: 18px; border-top: 0.5px solid var(--line); }
.cstory .read { color: var(--green); }
.case__plan { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.case__plan[hidden] { display: none; }
.plan-tag { position: absolute; left: 0; top: 0; font-size: 12px; color: var(--fg); padding: 2px 7px; border-radius: 5px; background: rgba(0, 0, 0, 0.7); white-space: nowrap; pointer-events: none; opacity: 0; will-change: transform; }
:root[data-theme="light"] .plan-tag { background: #f7f9f8; color: var(--fg); box-shadow: inset 0 0 0 0.5px var(--line-2), 0 4px 14px rgba(0,0,0,.15); }

/* solutions: renders by area */
.rtabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.rtabs button { font: inherit; min-height: 44px; font-size: 14px; padding: 9px 16px; border-radius: 999px; border: 0; background: none; color: var(--fg-2); box-shadow: inset 0 0 0 0.5px var(--line-2); cursor: pointer; transition: background .25s, color .25s; }
.rtabs button[aria-selected="true"] { background: var(--green); color: var(--black); box-shadow: none; }
:root[data-theme="light"] .rtabs button[aria-selected="true"] { color: #fbfdfc; }
.rsum { color: var(--fg-2); max-width: 60ch; margin: 0 0 28px; min-height: 1.6em; }
.rgrid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense; gap: 12px; }
.rgrid figure { position: relative; grid-column: span 4; aspect-ratio: 4 / 3; margin: 0; border-radius: 12px; overflow: hidden; background: var(--raise); clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease) var(--d, 0s); }
.rgrid figure.in { clip-path: inset(0 0 0 0); }
.rgrid figure:nth-child(5n + 1) { grid-column: span 8; grid-row: span 2; aspect-ratio: auto; }
.rgrid figure:nth-child(5n + 4), .rgrid figure:nth-child(5n + 5) { grid-column: span 6; aspect-ratio: 16 / 10; }
.rgrid figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rgrid figcaption { position: absolute; left: 12px; bottom: 10px; padding: 4px 8px; border-radius: 6px; background: rgba(0, 0, 0, 0.6); color: var(--fg-2); }
:root[data-theme="light"] .rgrid figcaption { background: rgba(255, 255, 255, 0.8); }
@media (max-width: 860px) {
  .gallery, .rgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery figure, .rgrid figure { grid-column: span 1 !important; grid-row: auto !important; aspect-ratio: 4 / 3 !important; }
  .gallery figure:nth-child(3n + 1), .rgrid figure:nth-child(3n + 1) { grid-column: span 2 !important; aspect-ratio: 16 / 10 !important; }
}
@media (prefers-reduced-motion: reduce) { .rgrid figure, .sector-photo { clip-path: none !important; transition: none !important; transform: none !important; } }


/* hero caption: which unit the particle cloud is showing (solutions) */



@media (max-width: 860px) {
  .themebtn { display: none; }
  .has-mbar .h-hero__ctas .btn:first-child { display: none; }
}
:lang(zh) .cut__title .ghost { -webkit-text-stroke: 0; color: var(--fg-3); opacity: .3; }

@media print {
  .nav, .menu, .mbar, .cur-ring, .cur-label, .veil, .grain, .themebtn, [class*="__canvas"], canvas, .h-net__qr, .p-hero__canvas, .klab__tabs, .klab__tools, .klab__panel, .pindex__preview, .drawer { display: none !important; }
  :root { --fg: #1a211e !important; --fg-2: #454843 !important; --fg-3: #5f6563 !important; --line: #dfe2e0 !important; --line-2: #e6e9e8 !important; --raise: #f7f9f8 !important; --black: #1a211e !important; }
  .h-hero, .p-hero { min-height: 0 !important; height: auto !important; padding-top: 40px !important; }
  .rgrid img, .case__media img { display: none !important; }
  body { background: #fff !important; color: #1a211e !important; }
  [data-split] .wi, [data-fade], .stages__copy, .fstep { opacity: 1 !important; transform: none !important; }
  .h-stages, .h-plan, .h-net, .flow, .fab, .cycle, .feature { min-height: 0 !important; height: auto !important; }
  .stages__pin, .h-plan__head, .h-net__pin, .flow__pin, .fab__pin, .sector-panel, .pshow, .feature__media, .stages__copy, .fstep, .h-net__qr { position: static !important; height: auto !important; }
  .p-hero { min-height: 0; }
  a { color: inherit; text-decoration: none; }
}

.klab__tabs { -webkit-mask-image: linear-gradient(90deg, #1a211e 88%, transparent); mask-image: linear-gradient(90deg, #1a211e 88%, transparent); }

.field:has(textarea) { background: var(--raise); border-radius: 8px; padding: 14px 16px; box-shadow: inset 0 0 0 0.5px var(--line); }
.field:has(textarea) label { left: 16px; }
.field:has(textarea) > i { left: 16px; right: 16px; bottom: 8px; }

/* global: the floating theme switch never sits above a modal */
body:has(.menu.open) .themebtn, body:has(.drawer.open) .themebtn, body:has(.case.open) .themebtn { display: none; }
/* mobile: trim the residual dead bands */
@media (max-width: 860px) {
  .has-mbar .foot { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  .h-net__pin { padding-bottom: 60px; }
  .cut { padding-bottom: 60px; }
}

/* ===== product-centre hero kit: one fullscreen scheme, REST / EXPLORE_3D / EXPLORE_PLAN ===== */
.hk { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
/* a still of the resting scene: the hero paints instantly, the live canvas fades over it when the first frame is ready */
.hk__poster { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: url(../img/brand/hk-poster-1440.webp) center / cover no-repeat; transition: opacity .6s var(--ease); }
:root[data-theme="light"] .hk__poster { background-image: url(../img/brand/hk-poster-1440-light.webp); }
@media (max-width: 720px) { .hk__poster { background-image: url(../img/brand/hk-poster-390.webp); } }
@media (max-width: 720px) { :root[data-theme="light"] .hk__poster { background-image: url(../img/brand/hk-poster-390-light.webp); } }
@media (max-width: 720px) and (min-resolution: 2dppx) { .hk__poster { background-image: url(../img/brand/hk-poster-390@3x.webp); } }
@media (max-width: 720px) and (min-resolution: 2dppx) { :root[data-theme="light"] .hk__poster { background-image: url(../img/brand/hk-poster-390-light@3x.webp); } }
.hk.is-ready .hk__poster { opacity: 0; transition: none; } /* the poster and the live 3D must never share the screen */
.hk__cv { z-index: 1; }
.hk__dots { position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) .9px, transparent .9px);
  background-size: 24px 24px; pointer-events: none; }
.hk__cv { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; display: block; touch-action: pan-y; transition: opacity .2s var(--ease-io, ease); }
.hk.is-explore .hk__cv { touch-action: none; }
.hk__plan { position: absolute; inset: 0; z-index: 2; opacity: 0; pointer-events: none; transition: opacity .2s var(--ease-io, ease); touch-action: none; }
.hk__lead { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hk__lead .lv { fill: none; stroke: var(--green-hi); stroke-width: .8; }
.hk__lead .dl { fill: none; stroke: var(--green-hi); stroke-width: .75; }
.hk__lead .hv { fill: none; stroke: var(--green-hi); stroke-width: 1.4; }
.hk__lead .hv.b { stroke-width: .9; opacity: .7; }
.hk__lead .sv { fill: none; stroke: var(--green-hi); stroke-width: 1.4; }
.hk__lead .sv.b { stroke-width: .9; opacity: .7; }
.hk__lead .ad { fill: var(--green-hi); }
.hk__lead .bs { stroke: var(--green-hi); stroke-width: .8; }

/* title block — rest state */
.hk__title { position: absolute; z-index: 4; left: 5.5vw; bottom: 7vh; width: min(40vw, 576px); pointer-events: none;
  transition: opacity .24s var(--ease-io, ease), transform .3s var(--ease-io, ease); }
.hk__title > * { pointer-events: auto; }
.hk__eb { font-size: 12px; letter-spacing: .14em; color: var(--fg-3); text-transform: uppercase; margin-bottom: 18px; }
.hk__title .display { font-size: clamp(48px, 6.2vw, 96px); line-height: .98; letter-spacing: -.02em; }
.hk__lede { margin: 22px 0 30px; color: var(--fg-2); font-size: clamp(15px, 1.3vw, 18px); line-height: 1.7; max-width: 34em; }
.hk__cta { display: flex; gap: 12px; }
.hk.is-explore .hk__title { opacity: 0; visibility: hidden; transform: translateY(14px); pointer-events: none; }
.hk.is-explore .hk__title > * { pointer-events: none; }
/* dim the page nav while exploring — the hero is the workspace */
body:has(.hk.is-explore) .nav { opacity: .5; }

/* collapsed caption in explore — doubles as the "back" affordance */
.hk__cap { position: absolute; z-index: 4; left: 5.5vw; bottom: 7vh; margin: 0; padding: 4px 0; font: inherit; font-size: 14px;
  color: var(--fg-2); background: none; border: 0; text-align: left; cursor: pointer; }
.hk__cap b { color: var(--fg); font-weight: 600; }
.hk__cap span { font-family: var(--mono); font-size: 11px; color: var(--fg-3); letter-spacing: .04em; }
.hk.is-plan .hk__cap span { display: none; }
.hk.is-plan .hk__cap::after { content: "拖动设备 / 自动吸附 / 尺寸单位 mm / Esc 退出"; font-family: var(--mono); font-size: 11px; color: var(--fg-3); letter-spacing: .04em; }
html:lang(en) .hk.is-plan .hk__cap::after { content: "drag units / auto snap / mm / Esc to exit"; }
@media (hover: none) {
  .hk.is-plan .hk__cap::after { content: "拖动设备 / 自动吸附 / 点按返回"; }
  html:lang(en) .hk.is-plan .hk__cap::after { content: "drag units / auto snap / tap to go back"; }
}

/* toolbar */
.hk__bar { position: absolute; z-index: 5; top: calc(var(--nav-h) + 22px); left: 5.5vw; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hk__seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 6px; padding: 2px; margin-right: 6px; }
.hk__seg button { padding: 6px 14px; font: inherit; font-size: 13px; color: var(--fg-3); background: transparent; border: 0; border-radius: 4px; cursor: pointer; }
.hk__seg button.on { background: var(--fg); color: var(--black); }
.hk__t { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px 7px 12px; font: inherit; font-size: 13px;
  color: var(--fg-3); background: transparent; border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer;
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease); }
.hk__t:hover { color: var(--fg); }
/* a switch, not a legend: on = green ring and lit dot, off = plain outline, struck-through name, empty dot */
.hk__t[aria-pressed]::after { content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none; transition: background .2s var(--ease), box-shadow .2s var(--ease); }
.hk__t[aria-pressed="true"] { color: var(--fg); border-color: var(--green); background: var(--raise-2); }
.hk__t[aria-pressed="true"]::after { background: var(--green-hi); box-shadow: 0 0 9px var(--green-glow); }
.hk__t[aria-pressed="false"] { text-decoration: line-through; text-decoration-color: var(--fg-3); }
.hk__t[aria-pressed="false"]::after { box-shadow: inset 0 0 0 1px var(--fg-3); }
.hk__t[aria-pressed="false"] .ln { opacity: .35; }
.hk__t .ln { display: inline-block; width: 18px; height: 0; border-top: 2px solid var(--green-hi); }
.hk__t .ln--dish { border-top: 2px dotted var(--fg-2); }
.hk__t .ln--hood { border-top: 1.5px dashed var(--fg-2); }
.hk__t .ln--snap { border-top: 1.5px dotted var(--green-hi); }
.hk__t[data-t="reset"] { border-color: transparent; color: var(--fg-3); }
.hk:not(.is-plan) .hk__t[data-t="snap"] { display: none; }   /* snapping is a plan-view behaviour: nothing to switch in 3D */
.hk__exit { position: absolute; z-index: 5; top: calc(var(--nav-h) + 22px); right: 5.5vw; padding: 8px 14px;
  font: inherit; font-size: 13px; color: var(--fg-2); background: transparent;
  border: 1px solid var(--line-2); border-radius: 6px; cursor: pointer; }
.hk__exit i { font-style: normal; color: var(--fg-3); }

/* rest hint + legend */
.hk__hint { position: absolute; z-index: 4; right: 5.5vw; bottom: 7vh; text-align: right; font-size: 12.5px; color: var(--fg-3); line-height: 2; pointer-events: none; }
.hk__hint .hk__lg { display: inline-flex; align-items: center; gap: 8px; margin-left: 18px; font-family: var(--mono); font-size: 11px; }
.hk__hint .ln { display: inline-block; width: 18px; height: 0; border-top: 2px solid var(--green-hi); }
.hk__hint .ln--dish { border-top-style: dotted; opacity: .6; }
.hk.is-explore .hk__hint { display: none; }

/* hover tag + selected badge + dims */
.hk__tag { position: absolute; z-index: 6; transform: translate(0,0); font-size: 12.5px; color: var(--fg); white-space: nowrap; pointer-events: none; }
.hk__tag i { font-style: normal; font-family: var(--mono); color: var(--green-hi); margin-right: 6px; }
.hk__tag span, .hk__tag em { display: block; font-style: normal; }
.hk__tag span { font-family: var(--mono); font-size: 11px; color: var(--fg-3); margin-top: 2px; }
.hk__tag em { font-size: 11.5px; color: var(--fg-3); margin-top: 3px; }
.hk__badge { position: absolute; z-index: 6; left: 0; top: 0; padding: 3px 8px; font-family: var(--mono); font-size: 11px; pointer-events: none;
  color: var(--green-hi); background: var(--black); border: 1px solid var(--green-hi); border-radius: 3px; white-space: nowrap; }
.hk__dims { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.hk__dim { position: absolute; left: 0; top: 0; font-family: var(--mono); font-size: 11px; color: var(--green-hi); white-space: nowrap; }

/* plan drag status tip */
.hk__dtip { position: absolute; z-index: 6; left: 5.5vw; top: calc(var(--nav-h) + 72px); font-family: var(--mono); font-size: 11.5px;
  color: var(--fg); background: var(--black); border: 1px solid var(--line-2); padding: 8px 12px; pointer-events: none; }
.hk__dtip b { font-weight: 600; color: var(--green-hi); }
.hk__dtip span { display: block; color: var(--fg-3); margin-top: 3px; }
.hk__dtip em.hk__dpos { display: block; font-style: normal; color: var(--fg); margin-top: 3px; }
.hk__dtip em.hk__dsnap { display: block; font-style: normal; color: var(--green); margin-top: 3px; }
.hk__dtip em.hk__dsnap:empty { display: none; }
/* keyboard-only equipment list — off-canvas but focusable */
.hk__srlist { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.hk__srlist:focus-within { z-index: 95; width: auto; height: auto; clip: auto; clip-path: none; white-space: normal; overflow: visible;
  left: 50%; right: auto; top: 50%; transform: translate(-50%,-50%); display: grid; gap: 4px; max-height: 70vh; overflow-y: auto;
  padding: 14px; background: var(--black); border: 1px solid var(--green-hi); }
.hk__srlist .hk__srbtn { display: block; font: inherit; font-size: 13px; color: var(--fg); background: none; border: 0; text-align: left;
  padding: 8px 14px; cursor: pointer; }
.hk__srlist .hk__srbtn:focus { outline: 1px solid var(--green-hi); }
.hk__drot { pointer-events: auto; margin-top: 6px; padding: 8px 14px; min-height: 44px; font: inherit; font-size: 12.5px;
  color: var(--green-hi); background: none; border: 1px solid var(--green-hi); border-radius: 4px; cursor: pointer; }

/* spec sheet */
.hk__panel { position: absolute; z-index: 7; right: 5.5vw; top: calc(var(--nav-h) + 72px); width: 280px; padding: 18px 20px 16px;
  background: var(--black); border: 1px solid var(--line-2); }
.hk__ph { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 11px; color: var(--green-hi); letter-spacing: .04em; }
.hk__ph i { font-style: normal; }
.hk__px { background: none; border: 0; color: var(--fg-3); font-size: 16px; cursor: pointer; padding: 6px; line-height: 1; }
.hk__panel h3 { margin: 10px 0 12px; font-size: 21px; font-weight: 600; }
.hk__panel dl { margin: 0 0 14px; }
.hk__panel dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.hk__panel dt { font-size: 12px; color: var(--fg-3); }
.hk__panel dd { margin: 0; font-family: var(--mono); font-size: 12px; color: var(--fg); text-align: right; }
/* secondary specs: always open in the desktop side panel, disclosed on phones (see the mobile block) */
.hk__panel > dl { margin-bottom: 0; }
.hk__pmore { margin-bottom: 14px; }
.hk__pmore dl { margin: 0; }
.hk__ptog { display: none; }
.hk__call { display: block; padding: 12px; text-align: center; font-size: 14px; font-weight: 600;
  background: var(--fg); color: var(--black); border-radius: 6px; text-decoration: none; }
.hk__pnav { display: flex; justify-content: space-between; margin-top: 10px; }
.hk__pnav button { background: none; border: 0; color: var(--fg-3); font: inherit; font-size: 12px; cursor: pointer; padding: 8px 0; min-height: 24px; }
.hk__pnav button:hover { color: var(--fg); }
.hk__delx { background: none; border: 0; padding: 4px 6px; min-height: 32px; font: inherit; font-size: 11.5px; color: var(--fg-3); cursor: pointer; }
.hk__delx:hover { color: var(--fg); }
.hk__rot { display: block; width: 100%; min-height: 40px; margin: 0 0 14px; padding: 9px 14px; font: inherit; font-size: 13.5px; font-weight: 600;
  color: var(--green-hi); background: none; border: 1px solid var(--green-hi); border-radius: 4px; cursor: pointer; }
.hk__rot:hover { color: var(--green); border-color: var(--green); }

/* catalogue: add a unit to the scheme (carried over from the products-page layout lab) */
.hk__cat { position: absolute; z-index: 8; right: 5.5vw; top: calc(var(--nav-h) + 72px); width: 300px; max-height: 70vh; overflow: auto;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
  background: var(--black); border: 1px solid var(--line-2); padding: 14px 16px 10px; }
.hk__cat::-webkit-scrollbar { width: 6px; }
.hk__cat::-webkit-scrollbar-track { background: transparent; }
.hk__cat::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.3); border-radius: 3px; }
/* the list is longer than the sheet: a pinned fade says more rows are below, and follows the scroll */
.hk__cat::after { content: ""; position: sticky; bottom: -10px; display: block; height: 26px; margin: -26px -16px -10px;
  background: linear-gradient(transparent, var(--black)); pointer-events: none; }
.hk__catH { position: sticky; top: -14px; z-index: 1; margin-top: -14px; padding: 14px 0 8px; background: var(--black);
  display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 11px;
  color: var(--green-hi); letter-spacing: .04em; }
.hk__catN { margin: 6px 0 2px; font-size: 12px; color: var(--fg-3); }
.hk__catG { margin-top: 10px; }
.hk__catG > span { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--fg-3); }
.hk__catG button { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; min-height: 40px;
  padding: 8px 2px; font: inherit; font-size: 13px; color: var(--fg); background: none; border: 0; border-top: 1px solid var(--line);
  text-align: left; cursor: pointer; }
.hk__catG button em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--fg-3); white-space: nowrap; flex: none; }
.hk__catG button:hover, .hk__catG button:focus-visible { color: var(--green-hi); outline: none; }

/* plan view: schedule + construction drawing */
.hk__sched { position: absolute; z-index: 7; right: 5.5vw; top: calc(var(--nav-h) + 72px); width: 280px; max-height: 70vh; overflow: auto;
  background: var(--black); border: 1px solid var(--line-2); }
.hk__schedH { display: flex; justify-content: space-between; padding: 12px 14px 8px; font-size: 12px; color: var(--fg-3); }
.hk__srow { display: flex; align-items: baseline; gap: 10px; padding: 7px 14px; width: 100%; font: inherit; font-size: 12.5px; color: var(--fg-2); background: none; border: 0; text-align: left; cursor: pointer; }
.hk__srow i { font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--fg-3); width: 34px; }
.hk__srow em { font-style: normal; margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--fg-3); }
.hk__srow.on { background: #70fe8c1b; }
.hk__srow.on i { color: var(--green-hi); }
.hk__sleg { display: flex; align-items: center; gap: 8px; padding: 6px 14px; font-family: var(--mono); font-size: 10.5px; color: var(--fg-3); }
.hk__sleg:first-of-type { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.hk__sleg .ln { display: inline-block; width: 18px; height: 0; }
.hk__sleg .ln--ghost { border-top: 1.5px dashed var(--fg-3); }
.hk__sleg .ln--snap { border-top: 1.5px dashed var(--green-hi); }
.hk__sleg .ln--hood { border-top: 1.5px dashed var(--fg-3); opacity: .6; }

/* plan svg primitives — drawn with the theme's ink, so the plan reads on both the light and the dark page */
.hk__plan .gd { fill: none; stroke: var(--line); stroke-width: .5; }
.hk__plan .pw { fill: var(--fg); }
.hk__plan .op { stroke: var(--fg-2); stroke-width: 1; fill: none; }
.hk__plan .arc { stroke: var(--fg-3); stroke-width: .8; stroke-dasharray: 4 3; fill: none; }
.hk__plan .hd { fill: var(--line); stroke: var(--fg-2); stroke-width: 1.1; stroke-dasharray: 7 4; }
.hk__plan .hd.off { display: none; }
.hk__plan .fr { fill: none; stroke: var(--green-hi); stroke-width: 2.6; stroke-dasharray: 10 7; stroke-linecap: butt; animation: hkflow 1.1s linear infinite; }
.hk__plan .fd { fill: none; stroke: var(--fg-2); stroke-width: 2.4; stroke-dasharray: 2 7; stroke-linecap: round; animation: hkflow 1.6s linear infinite; }
.hk__plan .fr.off, .hk__plan .fd.off { display: none; }
@keyframes hkflow { to { stroke-dashoffset: -17; } }
@media (prefers-reduced-motion: reduce) { .hk__plan .fr, .hk__plan .fd { animation: none; } }
.hk__plan .pe { cursor: grab; }
.hk__plan .pe[data-fix] { cursor: pointer; }
.hk__plan .pe__o { fill: var(--raise-2); stroke: var(--fg-2); stroke-width: .9; }
.hk__plan .pe__m { fill: none; stroke: var(--fg-2); stroke-width: .75; }
.hk__plan .pe__n { font-family: var(--mono); font-size: 11px; fill: var(--fg-3); text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.hk__plan .pe.on .pe__o, .hk__plan .pe.on .pe__m { stroke: var(--green-hi); }
.hk__plan .pe.on .pe__o { stroke-width: 1.6; }
.hk__plan .gh { fill: none; stroke: var(--fg-3); stroke-width: .75; stroke-dasharray: 3 3; }
.hk__plan .sg { stroke: var(--green-hi); stroke-width: .8; stroke-dasharray: 4 3; }
.hk__plan .dl { stroke: var(--green-hi); stroke-width: .75; }
.hk__plan .dn { font-family: var(--mono); font-size: 11px; fill: var(--fg-3); }
.hk__plan #hkDims2 .dn { fill: var(--green-hi); }
.hk__plan .dc { stroke: var(--fg-3); stroke-width: .5; }
/* the 50 mm snap field: a lattice at the snap pitch that comes up round the pointer, and brighter while a unit is carried */
.hk__plan #hkSnapPat circle { fill: var(--green-hi); r: 0.8px; }
.hk__plan .snapf { opacity: .6; pointer-events: none; transition: opacity .2s var(--ease); }
.hk__plan.dragging .snapf { opacity: 1; }
.hk__plan.snap-off .snapf { display: none; }

body.hk-lock, html.hk-lock { overflow: hidden; overscroll-behavior: none; }
body.hk-lock .hk { position: fixed; inset: 0; z-index: 60; height: 100vh; height: 100svh; background: var(--black); }
body.hk-lock .mbar, body.hk-lock .nav, body.hk-lock .progress { display: none; } /* the lock layer is the whole workspace */
@media (hover: none) {
  .hk__exit i { display: none; }
  .hk__exit, .hk__seg button, .hk__t, .hk__px, .hk__pnav button, .hk__rot { min-height: 44px; align-items: center; }
  .hk__px { min-width: 44px; justify-content: center; }
  .hk__cap { bottom: calc(20px + env(safe-area-inset-bottom)); }
}
/* while the bottom bar is up, hero copy must sit above it (has-mbar lives on <html>) */
@media (max-width: 860px) {
  html.has-mbar .hk__title { bottom: calc(7vh + 78px); }
  html.has-mbar .hk__cap { bottom: calc(7vh + 78px); }
  html.has-mbar .hk__hint { bottom: calc(7vh + 78px); }
}
/* the exit button owns the right edge; the wrapping toolbar must stop before it */
@media (max-width: 900px) and (min-width: 721px) {
  .hk__bar { right: 150px; }
}
@media (max-width: 720px) {
  html.has-mbar .hk__title { bottom: calc(24px + 78px); }
  html.has-mbar .hk__cap { bottom: calc(20px + 78px + env(safe-area-inset-bottom)); }
}

@media (max-width: 720px) {
  .hk { min-height: 100svh; }
  .hk__title { left: 20px; right: 20px; bottom: 24px; width: auto; }
  .hk__title .display { font-size: clamp(32px, 9.4vw, 44px); line-height: 1.02; }
  .hk__cta { flex-direction: column; align-items: stretch; }
  .hk__cta .btn--ghost { display: none; }
  .hk__bar { top: 64px; left: 20px; right: 20px; }
  .hk__bar .hk__t { display: none; }
  .hk__bar .hk__t[data-t="reset"] { display: inline-flex; }
  /* adding units has to stay reachable on a phone, like the products-page lab it came from */
  .hk__bar .hk__t[data-t="add"] { display: inline-flex; }
  .hk__exit { top: 64px; right: 20px; }
  .hk__cap { left: 20px; bottom: 20px; }
  .hk__hint { right: 20px; left: 20px; bottom: auto; top: calc(var(--nav-h) + 14px); text-align: center; }
  .hk__panel { left: 0; right: 0; top: auto; bottom: 0; width: auto; border-left: 0; border-right: 0; border-bottom: 0;
    max-height: 74svh; overflow-y: auto; padding: 14px 18px calc(12px + env(safe-area-inset-bottom)); }
  .hk__panel::before { content: ""; display: block; width: 36px; height: 4px; margin: 0 auto 12px; background: rgba(255, 255, 255, 0.3); }
  /* the sheet must leave the model visible: only the two key specs show, the rest is a tap away */
  .hk__panel h3 { margin: 6px 0 8px; font-size: 19px; }
  .hk__panel dl > div { padding: 6px 0; }
  .hk__phr { display: flex; align-items: center; gap: 2px; }
  .hk__ptog { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 4px 8px;
    font: inherit; font-size: 11.5px; color: var(--fg-3); background: none; border: 0; cursor: pointer; }
  .hk__ptog i { font-style: normal; font-size: 10px; transform: rotate(90deg); transition: transform .2s var(--ease); }
  .hk__panel.more .hk__ptog i { transform: rotate(-90deg); }
  .hk__pmore { display: none; }
  .hk__panel.more .hk__pmore { display: block; }
  .hk__cat { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 56svh; border-left: 0; border-right: 0; border-bottom: 0;
    padding: 14px 18px calc(12px + env(safe-area-inset-bottom)); }
  .hk__catG button { min-height: 44px; }
  .hk__call { padding: 11px; min-height: 44px; }
  .hk__pnav { margin-top: 4px; }
  .hk__sched { display: none; }

  /* touch: grow the hit area of text links past 40px without moving anything on screen */
  .link-line, .foot__col a, .foot__social a, .nav__lang, .brand { position: relative; }
  /* the padding stops at half the gap between rows so neighbouring targets never overlap */
  .foot__col { gap: 18px; }
  .foot__col a::before { content: ""; position: absolute; left: 0; right: 0; top: -11px; bottom: -11px; }
  .foot__social a::before { content: ""; position: absolute; left: 0; right: 0; top: -9px; bottom: -9px; }
  .link-line::before { content: ""; position: absolute; left: 0; right: 0; top: -9px; bottom: -9px; }
  .nav__lang::before, .brand::before { content: ""; position: absolute; left: -4px; right: -4px; top: -10px; bottom: -10px; }
  .foot__bottom a { padding: 11px 0; }
  /* 16px keeps iOS from zooming the page when a field takes focus */
  .field input, .field textarea, .field select { font-size: 16px; }
  /* the hotline is its own link on the home page; 10px gap to the button above, so 5px each way */
  .h-net__tel { position: relative; min-height: 40px; display: inline-flex; align-items: center; }
  .h-net__tel::before { content: ""; position: absolute; left: -6px; right: -6px; top: -5px; bottom: -5px; }
  .link-line { z-index: 2; }
  #featOpen { min-height: 40px; }
}

/* short phones (SE-class): tighten the sheet so the model keeps a usable area above it */
@media (max-width: 720px) and (max-height: 640px) {
  .hk__panel { padding: 10px 18px calc(10px + env(safe-area-inset-bottom)); }
  .hk__panel h3 { font-size: 17px; margin: 4px 0 6px; }
  .hk__panel dl > div { padding: 4px 0; }
  .hk__call { padding: 9px; }
  .hk__pnav { margin-top: 2px; }
}

/* hidden must always win over layout display */
.hk [hidden] { display: none !important; }
.hk__cta .btn { height: 48px; padding: 0 22px 0 18px; font-size: 14px; }
.hk__go { --bg: var(--fg); --c: var(--black); }
.hk__go[disabled] { opacity: .6; cursor: progress; }

/* phone case gallery: one large frame at a time (the 860 two-column rule above would otherwise win) */
@media (max-width: 600px) {
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .gallery figure, .gallery figure:nth-child(3n + 1) { grid-column: auto !important; aspect-ratio: 16 / 10 !important; }
}

/* ---------- no-JS index (inside <noscript>; injected at publish) ---------- */
.seo-index { max-width: 1100px; margin: 0 auto; padding: 56px var(--gutter) 72px; border-top: 0.5px solid var(--line); color: var(--fg-2); font-size: 14px; line-height: 1.6; }
.seo-index h2 { margin: 26px 0 10px; color: var(--fg); font-size: 22px; font-weight: 500; }
.seo-index h2:first-child { margin-top: 0; }
.seo-index h3 { margin: 16px 0 4px; color: var(--fg); font-size: 15px; font-weight: 500; }
.seo-index ul { margin: 0; padding-left: 20px; columns: 2; column-gap: 36px; }
.seo-index li { break-inside: avoid; }
@media (max-width: 600px) { .seo-index ul { columns: 1; } }


/* WeChat QR dialog opened from the phone bar; image is loaded only on open */
.wxpop { position: fixed; inset: 0; z-index: 96; display: grid; place-items: center; padding: 24px; background: rgba(0,0,0,.7); }
.wxpop[hidden] { display: none; }
.wxpop__box { position: relative; width: min(300px, 100%); padding: 56px 24px 22px; border-radius: 14px; background: var(--raise); color: var(--fg); text-align: center; display: grid; gap: 14px; box-shadow: 0 24px 70px rgba(0,0,0,.5); }
.wxpop__box b { font-size: 17px; font-weight: 500; padding: 0 44px; }
.wxpop__box img { width: 96px; height: 96px; max-width: 100%; margin: 0 auto; border-radius: 6px; background: #fff; object-fit: contain; }
.wxpop__box span { color: var(--fg-2); font-size: 13px; }
.wxpop__x { position: absolute; right: 10px; top: 8px; width: 44px; height: 44px; font-size: 24px; line-height: 1; color: var(--fg-2); background: none; border: 0; cursor: pointer; }

@media (max-width: 340px) {
  .mbar { grid-template-columns: auto auto minmax(0, 1fr); gap: 6px; padding: 8px; }
  .mbar a, .mbar .mbar__wx { min-height: 44px; padding: 0 9px; font-size: 13px; }
  .mbar svg { width: 16px; height: 16px; }
}
