/* =========================================================================
   yandee.ai 炎地 — design system
   Cool-neutral ink base · ONE accent (molten orange 炎) · ember glints
   Taste: VARIANCE 8 / MOTION 6 / DENSITY 4. No Inter, no lilac, no pure-black,
   no neon glow, no 3-equal-card rows, no emoji.
   ========================================================================= */

:root {
  /* ----- palette ----- */
  --ink: #0B0E12;
  --surface: #12161C;
  --surface-2: #181D25;
  --surface-3: #1F2630;
  --hairline: #262D37;
  --hairline-soft: #1C222B;

  --text-hi: #F3F6F9;
  --text-mid: #A7B0BC;
  --text-low: #69727E;

  --accent: #EC6A39;          /* molten orange (炎) */
  --accent-bright: #FF9266;   /* ember glints only */
  --accent-deep: #7A3015;
  --accent-tint: rgba(236, 106, 57, 0.12);
  --accent-tint-2: rgba(236, 106, 57, 0.06);

  --paper: #F2F4F6;
  --paper-2: #E7EAEE;
  --ink-on-paper: #0B0E12;
  --paper-mid: #5A636E;
  --paper-line: #D5DAE0;

  --gold: #C9A24B;
  --muted: #7A8290;

  /* ----- type ----- */
  --f-display: "Space Grotesk", "PingFang SC", "MiSans", "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --f-body: "Manrope", "PingFang SC", "MiSans", "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --f-mono: "JetBrains Mono", "Space Mono", ui-monospace, "PingFang SC", monospace;

  /* ----- system ----- */
  --maxw: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 20px;
  --radius-lg: 28px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.55s;
  --shadow-diffuse: 0 30px 60px -28px rgba(0, 0, 0, 0.55);
  --shadow-paper: 0 24px 50px -24px rgba(11, 14, 18, 0.18);
  --header-h: 68px;
}

/* =========================================================================
   reset / base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.js-ready { scroll-behavior: auto; } /* lenis owns scroll when js up */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--f-body);
  background: var(--ink);
  color: var(--text-mid);
  line-height: 1.6;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

::selection { background: var(--accent); color: var(--ink); }

/* =========================================================================
   typography
   ========================================================================= */
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--text-hi); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.h-display { font-size: clamp(2.2rem, 5.2vw, 4.4rem); }
.h1 { font-size: clamp(2rem, 4.4vw, 3.5rem); }
.h2 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); }
.h3 { font-size: clamp(1.15rem, 1.8vw, 1.5rem); }
:lang(zh-CN) h1, :lang(zh-CN) h2, :lang(zh-CN) h3 { letter-spacing: -0.01em; line-height: 1.2; }
/* CJK runs wider per glyph — size hero headline so authored lines never orphan a char */
:lang(zh-CN) .h-display { font-size: clamp(2rem, 4.2vw, 3.45rem); }
:lang(zh-CN) .h1 { font-size: clamp(1.7rem, 3.6vw, 3rem); }
/* widow control: keep last lines from stranding a single word/char */
p, li, .lede, figcaption, blockquote { text-wrap: pretty; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); }

.lede { font-size: clamp(1.02rem, 1.5vw, 1.22rem); color: var(--text-mid); max-width: 56ch; line-height: 1.65; }
.muted { color: var(--text-low); }
.mono { font-family: var(--f-mono); }
strong, b { color: var(--text-hi); font-weight: 600; }
.accent-text { color: var(--accent); }

/* =========================================================================
   layout primitives
   ========================================================================= */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4.5rem, 9vw, 8rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 1.1rem; }
.section-head .h2 { margin-bottom: 1.1rem; }

.paper { background: var(--paper); color: var(--ink-on-paper); }
.paper h1, .paper h2, .paper h3 { color: var(--ink-on-paper); }
.paper .lede, .paper p { color: var(--paper-mid); }
.paper .eyebrow { color: var(--accent-deep); }
.paper .eyebrow::before { background: linear-gradient(90deg, var(--accent-deep), transparent); }

/* generic grids — never 3 equal cliché; we use asymmetric/zig/bento */
.grid { display: grid; gap: clamp(1rem, 2vw, 1.6rem); }

/* justified golden-ratio gallery — tiles size to their image aspect (no crop);
   per row, flex-grow ∝ aspect + aspect-ratio ⇒ widths split by golden proportion,
   heights equal. Set --ar = image aspect on each tile. */
.gallery { display: flex; flex-direction: column; gap: clamp(0.9rem, 1.8vw, 1.4rem); }
.grow { display: flex; gap: clamp(0.9rem, 1.8vw, 1.4rem); align-items: stretch; }
.grow > * { flex: var(--ar, 1.6) 1 0; min-width: 0; aspect-ratio: var(--ar, 1.6); }
@media (max-width: 760px) {
  .grow { flex-direction: column; }
  .grow > * { aspect-ratio: var(--ar-m, var(--ar, 1.6)); }
}

/* =========================================================================
   buttons
   ========================================================================= */
.btn {
  --bg: var(--accent); --fg: #2A1206; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--f-display); font-weight: 600; font-size: 0.96rem;
  padding: 0.85rem 1.5rem; border-radius: 999px;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease);
  will-change: transform; white-space: nowrap;
}
.btn .ico { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(236, 106, 57, 0.5); }
.btn:hover .ico { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(0.985); }

.btn--ghost { --bg: transparent; --fg: var(--text-hi); --bd: var(--hairline); }
.btn--ghost:hover { --bd: var(--accent); background: var(--accent-tint-2); box-shadow: none; color: var(--text-hi); }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.04rem; }
.btn--block { width: 100%; }
.paper .btn--ghost { --fg: var(--ink-on-paper); --bd: var(--paper-line); }
.paper .btn--ghost:hover { --bd: var(--accent-deep); background: rgba(122, 48, 21, 0.06); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.text-link { color: var(--text-hi); border-bottom: 1px solid var(--accent); padding-bottom: 2px; font-weight: 500; transition: color 0.2s; }
.text-link:hover { color: var(--accent-bright); }

/* magnetic wrapper keeps transform isolated from layout */
.magnetic-wrap { display: inline-flex; }

/* =========================================================================
   header / nav
   ========================================================================= */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(11, 14, 18, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--hairline-soft);
}
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand { display: inline-flex; align-items: baseline; gap: 0.5rem; font-family: var(--f-display); font-weight: 700; color: var(--text-hi); font-size: 1.18rem; letter-spacing: -0.02em; }
.brand .dot { color: var(--accent); }
.brand .cn-name { font-size: 0.98rem; font-weight: 500; color: var(--accent); letter-spacing: 0.05em; padding-left: 0.55rem; border-left: 1px solid var(--hairline); }
.brand .by { font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.12em; color: var(--text-low); text-transform: uppercase; align-self: center; }
@media (max-width: 520px) { .brand .by { display: none; } }

.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { font-size: 0.92rem; color: var(--text-mid); transition: color 0.2s; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px; background: var(--accent); transition: width 0.3s var(--ease); }
.nav-links a:hover { color: var(--text-hi); }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 0.8rem; }
.lang-toggle {
  font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.08em; color: var(--text-mid);
  border: 1px solid var(--hairline); border-radius: 999px; padding: 0.4rem 0.7rem;
  display: inline-flex; align-items: center; gap: 0.35rem; transition: border-color 0.2s, color 0.2s;
}
.lang-toggle:hover { border-color: var(--accent); color: var(--text-hi); }
.lang-toggle .glyph { width: 13px; height: 13px; color: var(--accent); }

.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--hairline); border-radius: 12px; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 1.6px; background: var(--text-hi); transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* =========================================================================
   hero
   ========================================================================= */
.hero { position: relative; min-height: 100dvh; display: flex; align-items: center; padding-top: var(--header-h); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(1rem, 3vw, 2rem);
  align-items: center; width: 100%;
}
.hero-copy { max-width: 44rem; position: relative; z-index: 3; }
.hero-copy .eyebrow { margin-bottom: 1.4rem; }
.hero h1 { margin-bottom: 1.4rem; }
.hero h1 .word { display: inline-block; }
.hero .accent-underline { position: relative; color: var(--text-hi); white-space: nowrap; }
.hero .accent-underline::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: 0.08em; height: 0.42em; z-index: -1;
  background: var(--accent-tint); border-radius: 4px; transform: scaleX(0); transform-origin: left;
  animation: underline-grow 0.9s var(--ease) 0.7s forwards;
}
@keyframes underline-grow { to { transform: scaleX(1); } }
.hero .lede { margin-bottom: 2rem; }
.hero .btn-row { margin-bottom: 1.4rem; }
.risk-microcopy { font-size: 0.86rem; color: var(--text-low); display: inline-flex; align-items: center; gap: 0.5rem; }
.risk-microcopy .tick { width: 16px; height: 16px; color: var(--accent); flex: none; }

.hero-visual { position: relative; aspect-ratio: 1 / 1; min-height: 360px; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-floatcard {
  position: absolute; z-index: 4; background: rgba(18, 22, 28, 0.82); border: 1px solid var(--hairline);
  border-radius: 14px; padding: 0.7rem 0.9rem; backdrop-filter: blur(8px); box-shadow: var(--shadow-diffuse);
  display: flex; align-items: center; gap: 0.6rem; font-size: 0.8rem; color: var(--text-mid);
}
.hero-floatcard .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); position: relative; }
.hero-floatcard .pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--accent); opacity: 0.5; animation: pulse-ring 2.4s var(--ease) infinite; }
@keyframes pulse-ring { 0% { transform: scale(0.6); opacity: 0.6; } 100% { transform: scale(1.6); opacity: 0; } }
.hero-floatcard .mono { color: var(--text-hi); font-size: 0.86rem; }
/* float cards are annotations — still by default; the canvas owns hero motion */
.hero-floatcard--1 { top: 14%; right: 2%; }
.hero-floatcard--2 { bottom: 16%; left: -4%; }

/* mesh blob behind hero */
.mesh-blob { position: absolute; z-index: 0; filter: blur(70px); opacity: 0.5; pointer-events: none; border-radius: 50%; }
.mesh-blob--1 { width: 46vw; height: 46vw; right: -10vw; top: -8vw; background: radial-gradient(circle at 40% 40%, rgba(236,106,57,0.45), transparent 62%); }
.mesh-blob--2 { width: 34vw; height: 34vw; left: -8vw; bottom: -10vw; background: radial-gradient(circle at 50% 50%, rgba(236,106,57,0.18), transparent 60%); }

/* =========================================================================
   trust bar
   ========================================================================= */
.trust { border-block: 1px solid var(--hairline-soft); background: var(--surface); }
.trust-head { text-align: center; color: var(--text-mid); font-size: 0.95rem; margin-bottom: 2rem; }
.trust-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2.4vw, 2.2rem); }
.trust-stat { padding: 1.4rem 1rem 0.6rem; text-align: center; border-top: 1px solid var(--hairline); }
.trust-stat .num { font-family: var(--f-mono); font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--text-hi); font-weight: 500; letter-spacing: -0.02em; }
.trust-stat .num .unit { color: var(--accent); font-size: 0.6em; margin-left: 0.15em; }
.trust-stat .lbl { font-size: 0.8rem; color: var(--text-low); margin-top: 0.4rem; }
.brand-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; margin-top: 2rem; }
.chip { font-family: var(--f-display); font-weight: 500; font-size: 0.9rem; color: var(--text-mid); border: 1px solid var(--hairline); border-radius: 999px; padding: 0.42rem 1rem; display: inline-flex; align-items: center; gap: 0.45rem; transition: border-color 0.25s, color 0.25s; }
.chip:hover { border-color: var(--accent); color: var(--text-hi); }
.chip .seal { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
/* platform / engine logo strip — monochrome, brightens on hover */
.logo-strip-label { text-align: center; font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-low); margin: 2.6rem 0 1.5rem; }
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.3rem, 3vw, 2.6rem); }
.logo-strip .lg { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text-mid); transition: color 0.25s var(--ease); font-family: var(--f-display); font-weight: 600; font-size: 1rem; letter-spacing: 0.01em; }
.logo-strip .lg:hover { color: var(--text-hi); }
.logo-strip .lg svg { width: 22px; height: 22px; flex: none; }

/* =========================================================================
   reveal utility
   ========================================================================= */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--reveal-i, 0) * 90ms); will-change: opacity, transform; }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="scale"] { transform: translateY(20px) scale(0.97); }
[data-reveal="left"] { transform: translateX(-30px); }
[data-reveal="right"] { transform: translateX(30px); }

/* =========================================================================
   pain cards (spotlight border, 2-col zig — not 3-equal)
   ========================================================================= */
.pain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.pain-grid > :nth-child(2) { margin-top: 2.4rem; }
.pain-grid > :nth-child(3) { margin-top: -2.4rem; }
.spot-card {
  position: relative; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: clamp(1.5rem, 2.5vw, 2.2rem); overflow: hidden; transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.spot-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), var(--accent-tint), transparent 60%);
}
.spot-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.spot-card:hover::before { opacity: 1; }
.spot-card .num { font-family: var(--f-mono); color: var(--accent); font-size: 0.8rem; letter-spacing: 0.1em; }
.spot-card h3 { margin: 0.7rem 0 0.6rem; }
.spot-card p { font-size: 0.95rem; color: var(--text-mid); }

/* =========================================================================
   value chain — flywheel
   ========================================================================= */
.flywheel-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.flywheel { position: relative; aspect-ratio: 1/1; max-width: 540px; margin-inline: auto; width: 100%; }
.flywheel svg { width: 100%; height: 100%; overflow: visible; }
.fw-ring { fill: none; stroke: var(--hairline); stroke-width: 1.2; }
.fw-progress { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.fw-center { fill: var(--surface-2); stroke: var(--hairline); stroke-width: 1; }
.fw-center-text { font-family: var(--f-display); fill: var(--text-hi); font-weight: 700; }
.fw-center-sub { font-family: var(--f-mono); fill: var(--accent); }
.fw-node circle { fill: var(--surface-2); stroke: var(--hairline); stroke-width: 1.2; transition: stroke 0.3s, fill 0.3s; }
.fw-node text { font-family: var(--f-mono); fill: var(--text-mid); font-size: 11px; }
.fw-node.is-active circle { stroke: var(--accent); fill: var(--accent-tint); }
.fw-node.is-active text { fill: var(--text-hi); }

.fw-steps { display: flex; flex-direction: column; gap: 0.2rem; }
.fw-step { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 0.95rem 0; border-bottom: 1px solid var(--hairline-soft); cursor: default; transition: border-color 0.3s; }
.fw-step:hover { border-color: var(--accent); }
.fw-step .idx { font-family: var(--f-mono); color: var(--accent); font-size: 0.82rem; padding-top: 0.18rem; min-width: 1.6rem; }
.fw-step h3 { font-size: 1.08rem; margin-bottom: 0.18rem; }
.fw-step p { font-size: 0.88rem; color: var(--text-low); }

/* =========================================================================
   how it works — sticky steps
   ========================================================================= */
.loop-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.loop-sticky { position: sticky; top: calc(var(--header-h) + 2rem); }
.loop-sticky .h2 { margin-bottom: 0.9rem; }
.loop-steps { display: flex; flex-direction: column; gap: 1rem; }
.loop-step { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: clamp(1.4rem, 2.4vw, 2rem); position: relative; }
.loop-step .stepno { font-family: var(--f-mono); font-size: 0.78rem; color: var(--accent); letter-spacing: 0.12em; }
.loop-step h3 { margin: 0.55rem 0 0.5rem; }
.loop-step p { font-size: 0.93rem; }
.loop-step .arrow { position: absolute; left: 50%; bottom: -1.4rem; transform: translateX(-50%); color: var(--hairline); width: 20px; height: 20px; }
.loop-step:last-child .arrow { display: none; }

/* =========================================================================
   case studies — bento
   ========================================================================= */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(0.8rem, 1.6vw, 1.3rem); grid-auto-rows: minmax(150px, auto); }
.case-card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: clamp(1.3rem, 2.2vw, 1.9rem); display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden; transition: border-color 0.3s var(--ease); min-height: 170px;
}
.case-card:hover { border-color: var(--accent); }
.case-card .case-top { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; }
.case-card .case-name { font-family: var(--f-display); font-weight: 700; color: var(--text-hi); font-size: 1.12rem; }
.case-card .case-tag { font-family: var(--f-mono); font-size: 0.72rem; color: var(--accent); border: 1px solid var(--accent-deep); border-radius: 999px; padding: 0.2rem 0.6rem; }
.case-card .case-desc { font-size: 0.9rem; color: var(--text-mid); margin-top: 0.8rem; }
.case-card .case-metric { font-family: var(--f-mono); color: var(--text-hi); font-size: 1.05rem; margin-top: 1rem; }
.case-card .case-metric span { color: var(--text-low); font-size: 0.78rem; }
.case-a { grid-column: span 3; grid-row: span 2; }
.case-b { grid-column: span 3; }
.case-c { grid-column: span 3; }
.case-d { grid-column: span 2; }
.case-e { grid-column: span 2; }
.case-note { grid-column: 1 / -1; background: rgba(236, 106, 57, 0.05); border-color: var(--accent-deep); border-left: 3px solid var(--accent); display: flex; flex-direction: column; justify-content: center; }
.case-note p { font-size: 0.86rem; color: var(--text-mid); }
.case-note .k { font-family: var(--f-mono); font-size: 0.72rem; color: var(--accent); letter-spacing: 0.1em; }

/* =========================================================================
   portfolio / selected work (crafted creative mockups, invented brands)
   ========================================================================= */
.work-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(0.8rem, 1.6vw, 1.3rem); grid-auto-rows: 200px; }
.work-tile { position: relative; border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; background: var(--surface); transition: border-color 0.3s var(--ease), transform 0.3s var(--ease); }
.work-tile:hover { border-color: var(--accent); transform: translateY(-3px); }
.w-volt { grid-column: span 3; grid-row: span 2; }
.w-dash { grid-column: span 3; }
.w-nord { grid-column: span 3; }
.w-paw  { grid-column: span 2; }
.w-lume { grid-column: span 2; }
.w-ba   { grid-column: span 2; }
.work-meta { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 0.95rem 1.05rem; z-index: 4; }
.work-brand { font-family: var(--f-display); font-weight: 700; letter-spacing: 0.06em; font-size: 0.98rem; }
.work-cat { font-family: var(--f-mono); font-size: 0.64rem; letter-spacing: 0.12em; border-radius: 999px; padding: 0.26rem 0.58rem; backdrop-filter: blur(4px); }

/* real product imagery as tile backdrop + legibility scrim (text/overlay stays on top) */
.work-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.is-photo::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(8,10,13,0.60) 0%, rgba(8,10,13,0.05) 26%, rgba(8,10,13,0.10) 52%, rgba(8,10,13,0.66) 80%, rgba(8,10,13,0.96) 100%); }

/* ad creative tiles */
.work-ad { display: flex; flex-direction: column; justify-content: flex-end; padding: 1.2rem; }
.work-ad .ad-orb { position: absolute; border-radius: 50%; filter: blur(6px); opacity: 0.9; z-index: 1; }
.work-ad .ad-body { position: relative; z-index: 3; }
.work-ad .ad-kicker { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.14em; }
.work-ad .ad-head { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.04; margin: 0.45rem 0 1rem; text-wrap: balance; }
.work-ad .ad-cta { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--f-display); font-weight: 600; font-size: 0.82rem; padding: 0.5rem 0.95rem; border-radius: 999px; }
.work-ad .ad-cta svg { width: 14px; height: 14px; }

.w-volt { background: radial-gradient(120% 120% at 80% 10%, #3a1d12 0%, #0B0E12 70%); }
.w-volt .work-brand { color: #fff; }
.w-volt .work-cat { color: #fff; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18); }
.w-volt .ad-orb { width: 60%; height: 60%; right: -8%; top: 8%; background: radial-gradient(circle at 40% 40%, var(--accent-bright), var(--accent-deep) 60%, transparent 72%); }
.w-volt .ad-kicker { color: var(--accent-bright); }
.w-volt .ad-head { color: #fff; }
.w-volt .ad-cta { background: var(--accent); color: #2A1206; }

.w-nord { background: radial-gradient(120% 120% at 15% 90%, #2a2118 0%, #14110d 72%); }
.w-nord .work-brand { color: #f3ead9; }
.w-nord .work-cat { color: #f3ead9; background: rgba(255,255,255,0.08); border: 1px solid rgba(243,234,217,0.2); }
.w-nord .ad-orb { width: 52%; height: 52%; left: -6%; bottom: -6%; background: radial-gradient(circle at 50% 50%, #d8b27a, #8a6a3e 58%, transparent 72%); }
.w-nord .ad-kicker { color: #d8b27a; }
.w-nord .ad-head { color: #f6efe2; }
.w-nord .ad-cta { background: #e9dcc4; color: #14110d; }

/* dashboard tile */
.work-dash { padding: 1.05rem 1.2rem 1.2rem; display: flex; flex-direction: column; background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.work-dash .dash-head { display: flex; align-items: center; justify-content: space-between; }
.work-dash .dash-title { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.12em; color: var(--text-low); }
.work-dash .dash-live { font-family: var(--f-mono); font-size: 0.66rem; color: var(--accent); display: inline-flex; align-items: center; gap: 0.35rem; }
.work-dash .dash-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.work-dash .dash-roas { font-family: var(--f-mono); font-weight: 500; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--text-hi); letter-spacing: -0.02em; margin: 0.5rem 0 0.1rem; }
.work-dash .dash-roas span { color: var(--accent); }
.work-dash .dash-sub { font-size: 0.78rem; color: var(--text-low); }
.work-dash .dash-chart { display: flex; align-items: flex-end; gap: 5px; height: 46px; margin: 0.9rem 0; }
.work-dash .dash-chart i { flex: 1; background: linear-gradient(180deg, var(--accent), var(--accent-deep)); border-radius: 3px 3px 0 0; opacity: 0.85; }
.work-dash .dash-rows { display: flex; gap: 1.2rem; border-top: 1px solid var(--hairline-soft); padding-top: 0.7rem; }
.work-dash .dash-rows div { display: flex; flex-direction: column; }
.work-dash .dash-rows .k { font-family: var(--f-mono); font-size: 0.64rem; color: var(--text-low); letter-spacing: 0.06em; }
.work-dash .dash-rows .v { font-family: var(--f-mono); font-size: 0.95rem; color: var(--text-hi); }

/* social 3x3 */
.work-paw { padding: 0; }
.work-paw .paw-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 3px; padding: 3px; padding-top: 2.7rem; }
.work-paw .paw-grid i { border-radius: 4px; background: var(--surface-3); }
.work-paw .paw-grid i:nth-child(3n+1) { background: linear-gradient(135deg, var(--accent-deep), var(--surface-3)); }
.work-paw .paw-grid i:nth-child(4) { background: linear-gradient(135deg, var(--accent), var(--accent-deep)); }
.work-paw .paw-grid i:nth-child(8) { background: linear-gradient(135deg, #3a4a5a, var(--surface-3)); }
.work-paw .work-brand { color: var(--text-hi); }
.work-paw .work-cat { color: var(--text-mid); background: rgba(0,0,0,0.4); border: 1px solid var(--hairline); }

/* short video thumb */
.work-lume { background: radial-gradient(120% 120% at 70% 30%, #2a2230 0%, #121016 72%); display: flex; align-items: center; justify-content: center; }
.work-lume .play { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.3); display: grid; place-items: center; backdrop-filter: blur(4px); z-index: 3; }
.work-lume .play svg { width: 18px; height: 18px; margin-left: 3px; color: #fff; }
.work-lume .caps { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; display: flex; flex-direction: column; gap: 5px; z-index: 3; }
.work-lume .caps i { height: 7px; border-radius: 4px; background: rgba(255,255,255,0.85); }
.work-lume .caps i:nth-child(1) { width: 70%; }
.work-lume .caps i:nth-child(2) { width: 45%; background: var(--accent); }
.work-lume .work-brand { color: #fff; }
.work-lume .work-cat { color: #fff; background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.18); }
.work-lume .dur { position: absolute; top: 1rem; right: 1rem; }

/* before / after */
.work-ba { padding: 0; display: grid; grid-template-columns: 1fr 1fr; }
.work-ba .ba-half { position: relative; display: flex; align-items: flex-end; padding: 0.9rem; overflow: hidden; }
.work-ba .ba-half::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(8,10,13,0.05) 38%, rgba(8,10,13,0.82) 100%); }
.work-ba .ba-raw { background: repeating-linear-gradient(45deg, #1b2128, #1b2128 7px, #161b21 7px, #161b21 14px); }
.work-ba .ba-fin { background: radial-gradient(120% 120% at 70% 20%, #3a1d12, #0e1a18 75%); border-left: 1px solid var(--hairline); }
.work-ba .ba-tag { position: relative; z-index: 3; font-family: var(--f-mono); font-size: 0.64rem; letter-spacing: 0.12em; padding: 0.24rem 0.5rem; border-radius: 999px; }
.work-ba .ba-raw .ba-tag { color: var(--text-low); background: rgba(0,0,0,0.4); border: 1px solid var(--hairline); }
.work-ba .ba-fin .ba-tag { color: #2A1206; background: var(--accent); }
.work-ba .ba-blob { position: absolute; border-radius: 50%; }
.work-ba .ba-raw .ba-blob { width: 54px; height: 54px; top: 30%; left: 30%; background: #2b333d; }
.work-ba .ba-fin .ba-blob { width: 64px; height: 64px; top: 24%; left: 28%; background: radial-gradient(circle at 40% 40%, var(--accent-bright), var(--accent-deep) 65%); filter: blur(2px); }
.work-illus-note { text-align: center; font-size: 0.8rem; color: var(--text-low); margin-top: 1.6rem; }

/* =========================================================================
   deliverables / use cases (website · listing · social · email)
   ========================================================================= */
.dl-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(0.9rem, 1.8vw, 1.4rem); grid-auto-rows: 215px; }
.dl-web { grid-column: span 4; grid-row: span 2; }
.dl-phone { grid-column: span 2; grid-row: span 2; }
.dl-listing { grid-column: span 3; }
.dl-email { grid-column: span 3; }
.dl-card { position: relative; border: 1px solid var(--hairline); border-radius: var(--radius); background: var(--surface); overflow: hidden; transition: border-color .3s var(--ease), transform .3s var(--ease); display: flex; flex-direction: column; }
.dl-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.dl-label { position: absolute; top: 0.85rem; right: 0.85rem; z-index: 6; font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.12em; color: var(--text-hi); background: rgba(8,10,13,0.6); border: 1px solid var(--hairline); border-radius: 999px; padding: 0.26rem 0.6rem; backdrop-filter: blur(6px); }
.dl-fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* browser frame (DTC landing page) */
.browser { display: flex; flex-direction: column; height: 100%; min-height: 340px; }
.browser-bar { display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--hairline); background: var(--surface-2); }
.browser-dots { display: flex; gap: 6px; }
.browser-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--hairline); }
.browser-url { flex: 1; font-family: var(--f-mono); font-size: 0.68rem; color: var(--text-low); background: var(--ink); border: 1px solid var(--hairline); border-radius: 999px; padding: 0.3rem 0.8rem; text-align: center; }
.browser-body { position: relative; flex: 1; }
.browser-body > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.browser-body::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(247,243,237,0.97) 0%, rgba(247,243,237,0.82) 40%, rgba(247,243,237,0.08) 66%); }
.lp { position: relative; z-index: 2; padding: clamp(1.2rem, 2.4vw, 1.9rem); display: flex; flex-direction: column; height: 100%; }
.lp-nav { display: flex; align-items: center; gap: 1.1rem; font-family: var(--f-display); font-weight: 600; font-size: 0.74rem; color: #6b6258; }
.lp-nav .lp-logo { font-weight: 700; color: #1c1916; margin-right: auto; font-size: 0.95rem; letter-spacing: 0.04em; }
.lp-hero { margin-top: auto; max-width: 62%; }
.lp-hero h4 { font-family: var(--f-display); font-weight: 700; color: #1c1916; font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.04; letter-spacing: -0.02em; }
.lp-hero p { color: #5a5249; font-size: 0.84rem; margin: 0.5rem 0 1rem; max-width: 28ch; }
.lp-cta { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--accent); color: #2A1206; font-family: var(--f-display); font-weight: 600; font-size: 0.8rem; padding: 0.55rem 1.1rem; border-radius: 999px; align-self: flex-start; }

/* phone frame (social) */
.dl-phone { background: transparent; border: none; }
.dl-phone:hover { transform: translateY(-3px); }
.phone { position: relative; height: 100%; min-height: 360px; border-radius: 28px; border: 1px solid var(--hairline); background: #000; overflow: hidden; box-shadow: var(--shadow-diffuse); }
.phone > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,10,13,0.6) 0%, transparent 24%, transparent 58%, rgba(8,10,13,0.88) 100%); }
.phone-top { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; align-items: center; gap: 0.5rem; padding: 0.9rem; color: #fff; }
.phone-ava { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); flex: none; }
.phone-handle { font-family: var(--f-display); font-weight: 600; font-size: 0.82rem; }
.phone-dots { position: absolute; top: 44%; left: 0; right: 0; z-index: 3; display: flex; justify-content: center; gap: 5px; }
.phone-dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,0.5); }
.phone-dots i.on { background: var(--accent); }
.phone-bot { position: absolute; bottom: 0; left: 0; right: 0; z-index: 3; padding: 0 0.9rem 1rem; color: #fff; }
.phone-icons { display: flex; gap: 0.8rem; margin-bottom: 0.5rem; color: #fff; }
.phone-icons svg { width: 21px; height: 21px; }
.phone-cap { font-size: 0.78rem; line-height: 1.45; color: rgba(255,255,255,0.92); }
.phone-cap b { color: #fff; font-weight: 600; }

/* listing card */
.dl-listing { padding: 0; }
.dl-listing .lst { display: grid; grid-template-columns: 44% 1fr; height: 100%; min-height: 200px; }
.dl-listing .lst-img { position: relative; background: #fff; }
.dl-listing .lst-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 0.8rem; }
.dl-listing .lst-info { padding: clamp(1.1rem, 2vw, 1.5rem); display: flex; flex-direction: column; gap: 0.5rem; justify-content: center; }
.dl-listing .lst-info h4 { font-family: var(--f-display); font-weight: 700; color: var(--text-hi); font-size: 1.05rem; }
.dl-listing .lst-stars { display: inline-flex; gap: 2px; color: var(--accent); }
.dl-listing .lst-stars svg { width: 13px; height: 13px; }
.dl-listing .lst-stars span { color: var(--text-low); font-size: 0.72rem; font-family: var(--f-mono); margin-left: 0.3rem; align-self: center; }
.dl-listing .lst-price { font-family: var(--f-mono); color: var(--text-hi); font-size: 1.25rem; }
.dl-listing .lst-price s { color: var(--text-low); font-size: 0.8rem; margin-left: 0.4rem; }
.dl-listing .lst-feats { display: flex; flex-direction: column; gap: 0.32rem; margin-top: 0.2rem; }
.dl-listing .lst-feats li { font-size: 0.78rem; color: var(--text-mid); display: flex; gap: 0.4rem; }
.dl-listing .lst-feats .tick { color: var(--accent); width: 14px; height: 14px; flex: none; margin-top: 0.12rem; }

/* email / EDM card */
.dl-email { padding: 0; }
.dl-email .eml { display: flex; flex-direction: column; height: 100%; }
.dl-email .eml-subj { padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--hairline); font-size: 0.8rem; color: var(--text-mid); }
.dl-email .eml-subj b { color: var(--text-hi); font-weight: 600; }
.dl-email .eml-body { position: relative; flex: 1; min-height: 150px; display: flex; align-items: flex-end; padding: 1.1rem; }
.dl-email .eml-body > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dl-email .eml-body::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,10,13,0.15), rgba(8,10,13,0.85)); }
.dl-email .eml-copy { position: relative; z-index: 2; }
.dl-email .eml-copy h4 { font-family: var(--f-display); font-weight: 700; color: #fff; font-size: 1.1rem; margin-bottom: 0.6rem; max-width: 18ch; }
.dl-email .eml-btn { display: inline-flex; background: var(--accent); color: #2A1206; font-family: var(--f-display); font-weight: 600; font-size: 0.78rem; padding: 0.45rem 0.95rem; border-radius: 999px; }

/* =========================================================================
   differentiator + chain + comparison (paper)
   ========================================================================= */
.diff-lead { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.chain-viz { background: #fff; border: 1px solid var(--paper-line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-paper); }
.chain-row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.chain-node { font-family: var(--f-mono); font-size: 0.78rem; padding: 0.5rem 0.7rem; border-radius: 10px; border: 1px solid var(--paper-line); color: var(--ink-on-paper); background: var(--paper); white-space: nowrap; }
.chain-node.is-roas { background: var(--accent-deep); color: #fff; border-color: var(--accent-deep); }
.chain-arrow { color: var(--accent-deep); width: 18px; height: 18px; flex: none; }
.chain-caption { font-size: 0.84rem; color: var(--paper-mid); margin-top: 1rem; }

.cmp-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.92rem; background: #fff; border: 1px solid var(--paper-line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-paper); }
.cmp-table th, .cmp-table td { padding: 0.95rem 1rem; text-align: left; border-bottom: 1px solid var(--paper-line); vertical-align: middle; }
.cmp-table thead th { font-family: var(--f-display); font-size: 0.86rem; color: var(--ink-on-paper); background: var(--paper-2); white-space: nowrap; }
.cmp-table tbody th { font-weight: 600; color: var(--ink-on-paper); }
.cmp-table td { color: var(--paper-mid); }
.cmp-table .col-us { background: var(--accent-tint); border-left: 2px solid var(--accent); border-right: 2px solid var(--accent); }
.cmp-table thead .col-us { background: var(--accent-deep); color: #fff; }
.cmp-table tbody .col-us { color: var(--ink-on-paper); font-weight: 600; }
.cmp-table tr:last-child td, .cmp-table tr:last-child th { border-bottom: 0; }
.cmp-table .col-us-cap { display: inline-flex; align-items: center; gap: 0.4rem; }
.cmp-table .tick { color: var(--accent-deep); width: 15px; height: 15px; }

/* =========================================================================
   testimonials — seamless marquee
   ========================================================================= */
.testi-track { display: flex; gap: 1.2rem; width: max-content; animation: marquee-x 46s linear infinite; }
.testi-mask { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.testi-mask:hover .testi-track { animation-play-state: paused; }
@keyframes marquee-x { to { transform: translateX(-50%); } }
.testi-card { width: 360px; flex: none; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 1.6rem; }
.testi-card .quote { color: var(--text-hi); font-size: 0.98rem; line-height: 1.6; }
.testi-card .who { display: flex; align-items: center; gap: 0.7rem; margin-top: 1.1rem; }
.testi-card .ava { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-deep), var(--accent)); display: grid; place-items: center; font-family: var(--f-display); color: var(--ink); font-weight: 700; font-size: 0.9rem; flex: none; }
.testi-card .who .name { font-size: 0.85rem; color: var(--text-mid); }
.testi-illus-note { text-align: center; font-size: 0.8rem; color: var(--text-low); margin-top: 1.4rem; }

/* =========================================================================
   packages — asymmetric bento
   ========================================================================= */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: clamp(1.6rem, 2.6vw, 2.2rem); display: flex; flex-direction: column; position: relative; transition: border-color 0.3s var(--ease), transform 0.3s var(--ease); }
.plan:hover { transform: translateY(-4px); border-color: var(--hairline); }
.plan--feature { border-color: var(--accent); background: linear-gradient(180deg, var(--accent-tint-2), var(--surface)); transform: translateY(-12px); box-shadow: var(--shadow-diffuse); }
.plan--feature:hover { transform: translateY(-16px); border-color: var(--accent); }
.plan .badge { position: absolute; top: -1px; right: 1.4rem; transform: translateY(-50%); font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.1em; background: var(--accent); color: var(--ink); padding: 0.3rem 0.7rem; border-radius: 999px; }
.plan .plan-name { font-family: var(--f-display); font-weight: 700; color: var(--text-hi); font-size: 1.3rem; }
.plan .plan-for { font-size: 0.88rem; color: var(--text-low); margin-top: 0.4rem; min-height: 2.6em; }
.plan .plan-price { font-family: var(--f-mono); color: var(--accent); font-size: 1rem; margin: 1.2rem 0; padding-bottom: 1.2rem; border-bottom: 1px solid var(--hairline-soft); }
.plan ul.plan-feats { display: flex; flex-direction: column; gap: 0.7rem; flex: 1; margin-bottom: 1.6rem; }
.plan .plan-feats li { display: flex; gap: 0.6rem; font-size: 0.92rem; color: var(--text-mid); }
.plan .plan-feats .tick { color: var(--accent); width: 17px; height: 17px; flex: none; margin-top: 0.15rem; }
.plans-foot { text-align: center; color: var(--text-low); font-size: 0.88rem; margin-top: 1.8rem; }

/* =========================================================================
   audit CTA — split form + wechat
   ========================================================================= */
.audit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.audit-copy .h2 { margin-bottom: 1rem; }
.audit-gets { display: flex; flex-direction: column; gap: 0.7rem; margin: 1.6rem 0; }
.audit-gets li { display: flex; gap: 0.6rem; align-items: center; color: var(--text-mid); font-size: 0.96rem; }
.audit-gets .tick { color: var(--accent); width: 18px; height: 18px; flex: none; }

.lead-form { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.2rem); }
.form-lead { color: var(--text-mid); font-size: 0.9rem; margin: 0 0 1.1rem; padding-left: 0.75rem; border-left: 2px solid var(--accent); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.82rem; color: var(--text-mid); font-weight: 500; }
.field label .req { color: var(--accent); }
.field input, .field select {
  background: var(--ink); border: 1px solid var(--hairline); border-radius: 10px; padding: 0.78rem 0.9rem;
  color: var(--text-hi); font: inherit; font-size: 0.92rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder { color: var(--text-low); }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.field.has-error input, .field.has-error select { border-color: #C2554B; }
.field .err { font-size: 0.76rem; color: #D98079; display: none; }
.field.has-error .err { display: block; }
.form-foot { display: flex; align-items: center; gap: 0.6rem; margin-top: 1.2rem; flex-wrap: wrap; }
.form-note { font-size: 0.78rem; color: var(--text-low); }
.form-success { color: var(--accent); font-size: 0.9rem; margin-top: 1rem; background: var(--accent-tint); border: 1px solid var(--accent-deep); border-radius: 10px; padding: 0.8rem 1rem; }
.is-sent .form-grid, .is-sent .form-foot { opacity: 0.4; pointer-events: none; }

.wechat-card { background: var(--surface-2); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2rem); display: flex; flex-direction: column; align-items: center; text-align: center; justify-content: center; gap: 1rem; }
.wechat-card .qr { width: 168px; height: 168px; border-radius: 16px; background: #fff; padding: 12px; }
.wechat-card .qr svg { width: 100%; height: 100%; }
.wechat-card h3 { font-size: 1.1rem; }
.wechat-card p { font-size: 0.86rem; color: var(--text-mid); }
.wechat-card .or { font-family: var(--f-mono); font-size: 0.72rem; color: var(--text-low); letter-spacing: 0.1em; }
.wechat-card--row { flex-direction: row; align-items: center; text-align: left; gap: 1.4rem; margin-top: 1.9rem; }
.wechat-card--row .qr { width: 128px; height: 128px; flex: none; }
.wechat-card--row .wechat-text { display: flex; flex-direction: column; gap: 0.35rem; }
.wechat-card--row .wechat-text h3 { font-size: 1.02rem; }
.wechat-card--row .wechat-note { color: var(--text-low); font-size: 0.76rem; }
.wechat-card--row .btn { margin-top: 0.6rem; align-self: flex-start; }
@media (max-width: 560px) { .wechat-card--row { flex-direction: column; text-align: center; } .wechat-card--row .btn { align-self: stretch; } }

/* =========================================================================
   FAQ
   ========================================================================= */
.faq-list { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--hairline); }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.35rem 0; text-align: left; }
.faq-q span { font-family: var(--f-display); font-weight: 600; color: var(--text-hi); font-size: 1.04rem; }
.faq-q .pm { position: relative; width: 18px; height: 18px; flex: none; }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; transition: transform 0.3s var(--ease); }
.faq-q .pm::before { left: 0; right: 0; top: 8px; height: 2px; }
.faq-q .pm::after { top: 0; bottom: 0; left: 8px; width: 2px; }
.faq-item.is-open .pm::after { transform: scaleY(0); }
.faq-a { height: 0; overflow: hidden; transition: height 0.35s var(--ease); }
.faq-a p { padding-bottom: 1.35rem; color: var(--text-mid); font-size: 0.96rem; max-width: 70ch; }

/* =========================================================================
   final CTA — kinetic marquee
   ========================================================================= */
.final-cta { position: relative; text-align: center; overflow: hidden; }
/* legible-but-secondary kinetic watermark: visible slate outline, jade emphasis words */
.kinetic { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.2rem, 8vw, 5.4rem); color: transparent; -webkit-text-stroke: 1px rgba(167, 176, 188, 0.42); white-space: nowrap; display: flex; gap: 2rem; width: max-content; animation: marquee-x 30s linear infinite; }
.kinetic span { display: inline-flex; gap: 2rem; }
.kinetic .on { color: var(--accent); -webkit-text-stroke: 0; }
.final-inner { position: relative; z-index: 2; padding-block: clamp(3rem, 7vw, 5rem); }
.final-inner .h2 { max-width: 22ch; margin: 1.4rem auto 2rem; }

/* =========================================================================
   footer
   ========================================================================= */
.footer { border-top: 1px solid var(--hairline-soft); background: var(--surface); padding-block: clamp(2.5rem, 5vw, 4rem) 2rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer .brand { font-size: 1.3rem; margin-bottom: 0.8rem; }
.footer .f-about { font-size: 0.88rem; color: var(--text-low); max-width: 34ch; }
.footer h4 { font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.14em; color: var(--text-low); text-transform: uppercase; margin-bottom: 1rem; }
.footer ul li { margin-bottom: 0.6rem; }
.footer ul a { font-size: 0.9rem; color: var(--text-mid); transition: color 0.2s; }
.footer ul a:hover { color: var(--accent); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.6rem; border-top: 1px solid var(--hairline-soft); }
.footer-bottom p { font-size: 0.8rem; color: var(--text-low); }

/* =========================================================================
   chrome: scroll progress, grain, sticky CTA
   ========================================================================= */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--accent), var(--accent-bright)); z-index: 200; }
.grain { position: fixed; inset: 0; z-index: 150; pointer-events: none; opacity: 0.04; mix-blend-mode: overlay; 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='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.sticky-cta { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 120; opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.sticky-cta.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* =========================================================================
   responsive
   ========================================================================= */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 460px; margin-inline: auto; }
  .flywheel-wrap, .loop-layout, .diff-lead, .audit-grid { grid-template-columns: 1fr; }
  .loop-sticky { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links, .nav .text-link { display: none; }
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; background: rgba(11,14,18,0.97); backdrop-filter: blur(16px); flex-direction: column; align-items: stretch; gap: 0; padding: 1rem var(--gutter) 2rem; border-bottom: 1px solid var(--hairline); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s; }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { padding: 0.95rem 0; border-bottom: 1px solid var(--hairline-soft); }
  .nav-actions { margin-top: 1rem; }
  .trust-stats { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .case-a, .case-b, .case-c, .case-d, .case-e { grid-column: span 1; grid-row: auto; }
  .case-note { grid-column: 1 / -1; }
  .plans { grid-template-columns: 1fr; }
  .plan--feature { transform: none; }
  .plan--feature:hover { transform: translateY(-4px); }
  .work-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
  .w-volt, .w-dash, .w-nord { grid-column: span 2; grid-row: auto; }
  .w-paw, .w-lume, .w-ba { grid-column: span 1; }
  .dl-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .dl-web { grid-column: span 2; grid-row: auto; min-height: 320px; }
  .dl-phone { grid-column: span 2; grid-row: auto; min-height: 440px; }
  .dl-phone .phone { min-height: 440px; }
  .dl-listing, .dl-email { grid-column: span 1; min-height: 230px; }
}
@media (max-width: 640px) {
  .pain-grid { grid-template-columns: 1fr; }
  .pain-grid > * { margin-top: 0 !important; }
  .form-grid { grid-template-columns: 1fr; }
  .trust-stats { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .cmp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .cmp-table { min-width: 640px; }
  .work-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .w-volt, .w-dash, .w-nord, .w-paw, .w-lume, .w-ba { grid-column: span 1; grid-row: auto; }
  .dl-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .dl-web, .dl-phone, .dl-listing, .dl-email { grid-column: span 1; grid-row: auto; }
  .dl-web { min-height: 300px; }
  .dl-listing, .dl-email { min-height: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  .testi-track, .kinetic, .hero-floatcard--1, .hero-floatcard--2, .hero-floatcard .pulse::after, .hero .accent-underline::after { animation: none !important; }
  .hero .accent-underline::after { transform: scaleX(1); }
  [data-reveal] { transition: none; }
}
