/* KhaiChong Dev — main site design system.
   Warm paper, deep ink and one gold accent. Plus Jakarta Sans for headlines and text,
   Geist Mono for small technical labels; Noto Sans SC (思源黑体) carries the Chinese headlines.
   Principle: one idea per block, calm spacing, imagery over paragraphs. */

:root {
  --paper: #f3efe7;
  --paper-2: #ebe5d8;
  --card: #faf8f3;
  --ink: #16180f;
  --ink-2: #2d3026;
  --muted: #5f6156;
  --faint: #85867a;
  --line: rgba(22, 24, 15, .12);
  --line-strong: rgba(22, 24, 15, .22);
  --accent: #c8913a;
  --accent-ink: #855a17;
  --accent-soft: #f0e0bd;
  --dark: #14160f;
  --on-dark: #f3efe7;
  --on-dark-2: #d5d2c5;
  --on-dark-muted: #a5a497;
  --gold: #e6b866;
  --live: #3fb46e;
  --danger: #a33a28;

  --font-display: "Plus Jakarta Sans", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-sans: "Plus Jakarta Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, "PingFang SC", "Microsoft YaHei", monospace;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --radius: 20px;
  --radius-lg: 28px;
  --gutter: clamp(20px, 4vw, 48px);
  --wrap: 1320px;
  --section: clamp(64px, 8vw, 116px);
  --header: 76px;
  interpolate-size: allow-keywords;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 24px); }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .09 0 0 0 0 .09 0 0 0 0 .06 0 0 0 .055 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font: 400 17px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
:lang(zh) body { line-height: 1.75; letter-spacing: .01em; }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: 12px; z-index: 300; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 15px; transform: translateY(-160%); transition: transform .25s var(--ease); }
.skip:focus { transform: none; }
.i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .32s; animation-timing-function: var(--ease); }

/* ---------- Type ---------- */

.display, .display-2, .h2, .h3-serif { font-family: var(--font-display); font-weight: 700; text-wrap: balance; }
.display { font-size: clamp(2.8rem, 5.7vw, 5.5rem); line-height: 1.02; letter-spacing: -.045em; }
.display-2 { font-size: clamp(2.4rem, 4.5vw, 4.3rem); line-height: 1.05; letter-spacing: -.04em; }
.h2 { font-size: clamp(2rem, 3.4vw, 3.2rem); line-height: 1.08; letter-spacing: -.035em; }
.h3-serif { font-size: clamp(1.7rem, 2.5vw, 2.3rem); line-height: 1.12; letter-spacing: -.03em; }
.h3 { font-size: clamp(1.25rem, 1.6vw, 1.45rem); font-weight: 650; line-height: 1.28; letter-spacing: -.025em; }
.h4 { font-size: 1.125rem; font-weight: 650; line-height: 1.35; letter-spacing: -.015em; }
.display em, .display-2 em, .h2 em { font-style: normal; color: var(--accent-ink); }
:lang(zh) .display, :lang(zh) .display-2, :lang(zh) .h2, :lang(zh) .h3-serif { line-height: 1.22; letter-spacing: .01em; }
:lang(zh) .display { font-size: clamp(2.5rem, 5.2vw, 5rem); line-height: 1.16; }
:lang(zh) .display-2 { font-size: clamp(2.1rem, 4vw, 3.9rem); }
:lang(zh) .h2 { font-size: clamp(1.8rem, 3vw, 2.9rem); }
:lang(zh) .h3-serif { font-size: clamp(1.5rem, 2.2vw, 2.1rem); line-height: 1.3; }
:lang(zh) em { font-style: normal; }

.lead { max-width: 40ch; color: var(--ink-2); font-size: clamp(1.125rem, 1.45vw, 1.28rem); line-height: 1.55; letter-spacing: -.008em; text-wrap: pretty; }
:lang(zh) .lead { max-width: 26em; line-height: 1.8; letter-spacing: .01em; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px; color: var(--muted); font: 500 12px/1.4 var(--font-mono); letter-spacing: .09em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 20px; height: 1px; background: currentColor; opacity: .55; }
:lang(zh) .eyebrow { font-family: var(--font-sans); font-size: 13px; letter-spacing: .14em; }
.mini-h { margin-bottom: 16px; color: var(--faint); font: 500 12px/1.4 var(--font-mono); letter-spacing: .09em; text-transform: uppercase; }
:lang(zh) .mini-h { font-family: var(--font-sans); font-size: 13px; letter-spacing: .12em; }
.note { max-width: 40ch; color: var(--muted); font-size: 15px; line-height: 1.6; text-wrap: pretty; }
.note-flag { display: flex; gap: 10px; margin-top: 28px; font-size: 14px; }
.note-flag::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: .6em; border-radius: 50%; background: var(--accent); }

/* Entrance motion: headline lines rise from a mask; blocks fade up as they enter. */
.line { display: block; overflow: hidden; padding: 0 .1em .14em 0; margin-bottom: -.14em; }
.js .line > span { display: inline-block; animation: line-up 1.15s var(--ease-out) both; }
.js .line:nth-child(2) > span { animation-delay: .09s; }
.js .line:nth-child(3) > span { animation-delay: .18s; }
@keyframes line-up { from { transform: translate3d(0, 112%, 0); } }
.js .rise { animation: rise 1s var(--ease-out) both; animation-delay: var(--rd, .2s); }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 18px, 0); } }
.js .reveal { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Layout ---------- */

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section-flush-top { padding-top: 0; }
.section-tight { padding-block: clamp(40px, 5vw, 64px); }
.wrap-bleed { padding-inline: clamp(8px, 1.4vw, 20px); }
.wrap-bleed + .wrap-bleed { margin-top: clamp(8px, 1.4vw, 20px); }
.panel { position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.panel-tint { background: var(--paper-2); }
.panel-dark { background: radial-gradient(120% 90% at 85% -10%, rgba(230, 184, 102, .13), transparent 55%), radial-gradient(80% 60% at -10% 110%, rgba(63, 180, 110, .06), transparent 60%), var(--dark); color: var(--on-dark); }
.panel-dark .eyebrow, .eyebrow-light { color: var(--on-dark-muted); }
.panel-dark .lead { color: var(--on-dark-2); }
.panel-dark .display-2 em, .panel-dark .h2 em { color: var(--gold); }
.panel-dark .mini-h { color: var(--on-dark-muted); }
.panel-dark .ticks .i { color: var(--gold); }
.panel-dark ::selection { background: var(--gold); color: var(--dark); }
.panel-dark :focus-visible { outline-color: var(--gold); }
.section-head { max-width: 900px; margin-bottom: clamp(32px, 4.5vw, 56px); }
.section-head-split { display: grid; gap: 22px 64px; max-width: none; }
.section-head:has(> .eyebrow:only-child) { margin-bottom: clamp(28px, 3vw, 40px); }
.section-head > .eyebrow:only-child { margin-bottom: 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ---------- Buttons, links, small parts ---------- */

.btn {
  --bg: transparent; --fg: var(--ink); --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border: 1px solid var(--bd); border-radius: 999px;
  background: var(--bg); color: var(--fg); font-size: 15px; font-weight: 500; letter-spacing: -.005em; line-height: 1.2;
  white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn .i { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn:active { transform: scale(.975); }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn-ink { --bg: var(--ink); --fg: var(--paper); }
.btn-ink:hover { --bg: #34372c; }
.btn-ghost { --bd: var(--line-strong); }
.btn-ghost:hover { --bd: var(--ink); --bg: rgba(22, 24, 15, .04); }
.btn-accent { --bg: var(--gold); --fg: var(--dark); }
.btn-accent:hover { --bg: #f0c982; }
.panel-dark .btn-ghost { --fg: var(--on-dark); --bd: rgba(243, 239, 231, .26); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; justify-content: space-between; }
.link { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding-bottom: 3px; border-bottom: 1px solid var(--line-strong); font-weight: 500; transition: border-color .25s var(--ease); }
.link:hover { border-color: currentColor; }
.link .i { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.link:hover .i { transform: translateX(3px); }
.status-pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 15px 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(250, 248, 243, .7); color: var(--ink-2); font: 500 13px/1.3 var(--font-mono); letter-spacing: .02em; }
:lang(zh) .status-pill { font-family: var(--font-sans); letter-spacing: .06em; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(63, 180, 110, .5); } 70%, 100% { box-shadow: 0 0 0 9px rgba(63, 180, 110, 0); } }
.badge { padding: 5px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font: 500 11px/1.2 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
:lang(zh) .badge { font-family: var(--font-sans); font-size: 12px; letter-spacing: .08em; }
.ticks { display: grid; gap: 12px; }
.ticks li { display: flex; align-items: flex-start; gap: 10px; font-size: 15.5px; line-height: 1.45; }
.ticks .i { width: 18px; height: 18px; margin-top: 1px; color: var(--accent-ink); }

/* ---------- Header & menu ---------- */

.site-header { position: sticky; top: 0; z-index: 50; view-transition-name: site-header; transition: background-color .35s var(--ease), box-shadow .35s var(--ease); }
.site-header[data-scrolled] { background: rgba(243, 239, 231, .82); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px); }
.header-bar { display: flex; align-items: center; gap: 20px; height: var(--header); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; letter-spacing: -.025em; white-space: nowrap; }
.brand-word span { color: var(--muted); font-weight: 500; }
.brand-mark { flex: none; width: 29px; height: 28px; background: currentColor; -webkit-mask: url("/assets/brand/mark.png") center / contain no-repeat; mask: url("/assets/brand/mark.png") center / contain no-repeat; }
.nav { margin-inline: auto; }
.nav ul { display: flex; gap: 2px; }
.nav a { position: relative; display: block; padding: 8px 14px; border-radius: 999px; color: var(--ink-2); font-size: 15px; transition: background-color .2s var(--ease), color .2s var(--ease); }
.nav a:hover { background: rgba(22, 24, 15, .06); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 1px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.header-end { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav + .header-end { margin-left: 0; }
.lang-switch { padding: 8px 12px; border-radius: 999px; color: var(--muted); font: 500 13px/1.2 var(--font-mono); transition: background-color .2s var(--ease), color .2s var(--ease); }
.lang-switch:hover { background: rgba(22, 24, 15, .06); color: var(--ink); }
.header-cta[aria-current="page"] { --bg: transparent; --fg: var(--ink); --bd: var(--line-strong); }
.menu-btn { display: none; align-items: center; gap: 10px; height: 40px; padding: 0 5px 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; font-size: 14px; font-weight: 500; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.menu-btn-icon { position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); }
.menu-btn-icon i { position: absolute; left: 8px; right: 8px; height: 1.5px; background: var(--paper); transition: transform .35s var(--ease); }
.menu-btn-icon i:first-child { top: 11px; }
.menu-btn-icon i:last-child { top: 16px; }
.menu-btn[aria-expanded="true"] .menu-btn-icon i:first-child { transform: translateY(2.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn-icon i:last-child { transform: translateY(-2.5px) rotate(-45deg); }
.menu { position: fixed; inset: var(--header) 0 0; z-index: 49; overflow-y: auto; padding: 8px 0 40px; background: var(--paper); }
.menu-list { border-top: 1px solid var(--line); }
.menu-list a { display: flex; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: clamp(1.9rem, 8vw, 2.6rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.1; }
:lang(zh) .menu-list a { font-size: clamp(1.7rem, 7vw, 2.3rem); letter-spacing: .02em; }
.menu-list a[aria-current="page"] { color: var(--accent-ink); }
.menu-num { color: var(--faint); font: 500 12px var(--font-mono); }
.js .menu:not([hidden]) .menu-list li { animation: rise .7s var(--ease-out) both; }
.menu-list li:nth-child(2) { animation-delay: .04s; }
.menu-list li:nth-child(3) { animation-delay: .08s; }
.menu-list li:nth-child(4) { animation-delay: .12s; }
.menu-list li:nth-child(5) { animation-delay: .16s; }
.menu-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 20px; margin-top: 28px; color: var(--muted); font: 500 14px var(--font-mono); }
html[data-menu-open] { overflow: hidden; }
html[data-menu-open] .site-header { background: var(--paper); box-shadow: 0 1px 0 var(--line); }

/* ---------- Device frames ---------- */

.frame { display: block; overflow: hidden; border-radius: 12px; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 28px 56px -28px rgba(30, 26, 15, .32), 0 10px 20px -12px rgba(30, 26, 15, .14); }
.frame-bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-bottom: 1px solid var(--line); background: #ece6da; }
.frame-bar i { width: 8px; height: 8px; border-radius: 50%; background: #d2cbbc; }
.frame-url { max-width: 62%; margin-inline: auto; padding: 2px 12px; overflow: hidden; border-radius: 6px; background: rgba(255, 255, 255, .6); color: var(--muted); font: 500 10px/1.4 var(--font-mono); white-space: nowrap; text-overflow: ellipsis; transform: translateX(-14px); }
.frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: var(--paper-2); }
.phone { display: block; padding: 4px; border-radius: 24px; background: #191b14; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25), 0 30px 50px -24px rgba(30, 26, 15, .5); }
.phone img { width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; border-radius: 20px; background: var(--paper-2); }

/* ---------- Brand intro (homepage; started by the inline head script) ---------- */

.intro { display: none; }
.intro-play .intro { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--paper); animation: intro-out .9s cubic-bezier(.76, 0, .24, 1) 1.35s forwards; }
.intro-inner { display: grid; justify-items: center; gap: 20px; animation: intro-fade .45s var(--ease) 1.2s forwards; }
.intro-mark { width: 86px; height: 82px; background: var(--ink); -webkit-mask: url("/assets/brand/mark.png") center / contain no-repeat; mask: url("/assets/brand/mark.png") center / contain no-repeat; animation: intro-mark 1s var(--ease-out) .05s both; }
.intro-name { overflow: hidden; font-size: 21px; font-weight: 600; letter-spacing: -.025em; }
.intro-name > span { display: block; animation: line-up .9s var(--ease-out) .3s both; }
.intro-name b { color: var(--muted); font-weight: 500; }
.intro-bar { position: relative; width: 150px; height: 1px; overflow: hidden; background: var(--line); }
.intro-bar::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; animation: intro-bar 1.1s cubic-bezier(.65, 0, .35, 1) .1s both; }
@keyframes intro-mark { from { clip-path: inset(0 100% 0 0); transform: scale(.94); } to { clip-path: inset(0 0 0 0); } }
@keyframes intro-bar { from { transform: scaleX(0); } }
@keyframes intro-fade { to { opacity: 0; transform: translate3d(0, -24px, 0); } }
@keyframes intro-out { to { transform: translate3d(0, -100%, 0); visibility: hidden; } }
.intro-play .site-header { animation: rise .9s var(--ease-out) 1.85s both; }
.intro-play .hero .line > span { animation-delay: 1.7s; }
.intro-play .hero .line:nth-child(2) > span { animation-delay: 1.79s; }
.intro-play .hero .line:nth-child(3) > span { animation-delay: 1.88s; }
.intro-play .hero .rise { animation-delay: calc(1.75s + var(--rd, 0s)); }
.intro-play .wall { animation-delay: 1.6s; }

/* ---------- Home hero ---------- */

.hero { position: relative; overflow: hidden; padding-top: clamp(32px, 5vw, 64px); }
.hero-copy { position: relative; z-index: 1; max-width: 620px; }
.hero-copy .status-pill { --rd: .05s; margin-bottom: clamp(26px, 3vw, 36px); }
.hero .display { margin-bottom: clamp(24px, 3vw, 34px); }
.hero-side { --rd: .32s; }
.hero-side .lead { margin-bottom: 32px; }

/* Wall of demo screens. Animated tracks hold their set twice; -50% minus half a gap loops seamlessly. */
.wall { position: relative; overflow: hidden; pointer-events: none; }
.js .wall { animation: wall-in 1.6s var(--ease-out) .3s both; }
@keyframes wall-in { from { opacity: 0; transform: translate3d(0, 56px, 0); } }
.wall-plane { position: absolute; left: 50%; top: 50%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; width: 1180px; height: 1500px; transform: translate(-50%, -50%) perspective(2400px) rotateX(26deg) rotateZ(-16deg) scale(.6); }
.wall-col { min-width: 0; }
.wall-track { display: grid; gap: 18px; }
.wall-hero .wall-track { animation: wall-up 64s linear infinite; }
.wall-hero .wall-col:nth-child(2) .wall-track { animation-name: wall-down; animation-duration: 78s; }
.wall-hero .wall-col:nth-child(3) .wall-track { animation-duration: 56s; }
.wall-hero .wall-col:nth-child(4) .wall-track { animation-name: wall-down; animation-duration: 70s; }
.wall-hero .wall-col:nth-child(5) .wall-track { animation-duration: 84s; }
.wall[data-paused] .wall-track { animation-play-state: paused; }
@keyframes wall-up { to { transform: translate3d(0, calc(-50% - 9px), 0); } }
@keyframes wall-down { from { transform: translate3d(0, calc(-50% - 9px), 0); } to { transform: none; } }
.w-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 10px; background: var(--paper-2); box-shadow: 0 0 0 1px var(--line), 0 24px 40px -22px rgba(30, 26, 15, .35); }
.w-phone { width: 54%; margin-inline: auto; padding: 4px; border-radius: 20px; background: #191b14; box-shadow: 0 24px 40px -22px rgba(30, 26, 15, .45); }
.w-phone img { width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; border-radius: 16px; background: var(--paper-2); }
.wall-hero { height: 360px; margin-top: 36px; -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 84%, transparent); mask-image: linear-gradient(180deg, transparent, #000 14%, #000 84%, transparent); }
.wall-static { display: none; }

/* ---------- Ticker ---------- */

.ticker { overflow: hidden; margin-top: clamp(32px, 5vw, 64px); padding-block: clamp(18px, 2.6vw, 34px); border-block: 1px solid var(--line); }
.ticker-track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.ticker[data-paused] .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; align-items: center; gap: clamp(24px, 3.4vw, 54px); padding-right: clamp(24px, 3.4vw, 54px); font: 700 clamp(2rem, 4.8vw, 4.4rem)/1.1 var(--font-display); letter-spacing: -.04em; white-space: nowrap; }
.ticker-group span:nth-of-type(even) { color: var(--accent-ink); }
:lang(zh) .ticker-group { font-size: clamp(1.8rem, 4vw, 3.8rem); letter-spacing: .02em; }
:lang(zh) .ticker-group span:nth-of-type(even) { font-style: normal; }
.ticker-star { flex: none; width: .3em; height: .3em; fill: var(--accent); }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ---------- Service visuals & pillars ---------- */

.pillars { display: grid; gap: 40px 20px; }
.pillar-body { padding: 24px 4px 0; }
.pillar-num { display: block; margin-bottom: 10px; color: var(--accent); font: 600 2.2rem/1 var(--font-display); }
.pillar .h3 { margin-bottom: 6px; }
.pillar p { color: var(--muted); }
.pv { position: relative; display: block; aspect-ratio: 5 / 4; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); isolation: isolate; }
.pv-design { background: #e8e1d3; }
.pv-grid { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: radial-gradient(circle at 30% 35%, #000, transparent 75%); mask-image: radial-gradient(circle at 30% 35%, #000, transparent 75%); }
.pv-aa { position: absolute; left: 9%; top: 4%; color: var(--ink); font: 800 clamp(5.5rem, 9vw, 8.5rem)/1 var(--font-display); letter-spacing: -.06em; transition: transform .9s var(--ease); }
.pillar:hover .pv-aa, .svc:hover .pv-aa { transform: translateX(8px) rotate(-3deg); }
.pv-swatches { position: absolute; right: 8%; bottom: 9%; display: grid; gap: 8px; color: var(--muted); font: 500 11px var(--font-mono); }
.pv-swatches li { display: flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; border-radius: 999px; background: rgba(250, 248, 243, .85); box-shadow: 0 1px 0 var(--line), 0 8px 18px -12px rgba(30, 26, 15, .3); }
.pv-swatches i { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.pv-swatches li:nth-child(1) i { background: #16180f; }
.pv-swatches li:nth-child(2) i { background: #c8913a; }
.pv-swatches li:nth-child(3) i { background: #f3efe7; }
.pv-swatches li:nth-child(4) i { background: #3fb46e; }
.pv-build { background: #ecdccb; }
.pv-build .frame { position: absolute; left: 8%; top: 12%; width: 84%; transition: transform .9s var(--ease); }
.pv-build .frame-bar { height: 22px; }
.pv-build .frame-url { font-size: 9px; }
.pv-build .phone { position: absolute; right: 6%; bottom: -16%; width: 27%; border-radius: 20px; transition: transform .9s var(--ease); }
.pv-build .phone img { border-radius: 16px; }
.pillar:hover .pv-build .frame, .svc:hover .pv-build .frame { transform: translateY(-6px); }
.pillar:hover .pv-build .phone, .svc:hover .pv-build .phone { transform: translateY(-14px) rotate(2deg); }
.pv-deploy { display: grid; align-content: center; gap: 14px; padding: 0 9%; background: radial-gradient(100% 80% at 80% 0%, rgba(230, 184, 102, .2), transparent 60%), var(--dark); color: var(--on-dark); }
.pv-url { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; border: 1px solid rgba(243, 239, 231, .12); border-radius: 12px; background: rgba(243, 239, 231, .07); font: 500 14px var(--font-mono); }
.pv-url .i { width: 16px; height: 16px; color: var(--live); }
.pv-live { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; padding: 4px 10px; border-radius: 999px; background: rgba(63, 180, 110, .15); color: #86d9a8; font-size: 12px; }
:lang(zh) .pv-live { font-family: var(--font-sans); }
.pv-checks { display: grid; gap: 8px; color: var(--on-dark-muted); font: 400 13px var(--font-mono); }
.pv-checks li { display: flex; justify-content: space-between; padding: 9px 14px; border-radius: 10px; background: rgba(243, 239, 231, .045); }
.pv-checks b { color: var(--live); font-weight: 500; }

/* ---------- Deploy panel & terminal ---------- */

.deploy-grid { display: grid; gap: 48px; align-items: center; }
.deploy-copy .lead { margin-top: 24px; }
.terminal { overflow: hidden; border: 1px solid rgba(243, 239, 231, .1); border-radius: 18px; background: rgba(8, 9, 6, .72); box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .7); color: var(--on-dark-2); font: 400 14px/1.5 var(--font-mono); }
.terminal-bar { display: flex; align-items: center; gap: 7px; height: 44px; padding: 0 16px; border-bottom: 1px solid rgba(243, 239, 231, .08); color: #85847a; font-size: 12px; }
.terminal-bar i { width: 10px; height: 10px; border-radius: 50%; background: #34362d; }
.terminal-bar span { margin-inline: auto; transform: translateX(-24px); }
.terminal-body { display: grid; gap: 11px; padding: 24px 24px 26px; }
.t-row { display: flex; align-items: baseline; gap: 12px; min-width: 0; white-space: nowrap; }
.t-cmd { margin-bottom: 8px; color: var(--on-dark); }
.t-prompt { color: var(--gold); }
.t-ok { color: var(--live); }
.t-key { flex: none; }
.t-fill { flex: 1; min-width: 14px; border-bottom: 1px dotted rgba(243, 239, 231, .2); transform: translateY(-4px); }
.t-val { overflow: hidden; color: #96958a; text-overflow: ellipsis; }
.t-live { margin-top: 10px; padding-top: 16px; border-top: 1px solid rgba(243, 239, 231, .08); color: var(--on-dark); }
.t-live .t-val { color: var(--live); }
.t-live::after { content: ""; width: 8px; height: 15px; align-self: center; background: var(--on-dark); animation: blink 1.1s steps(1) infinite; }
.t-pulse { width: 9px; height: 9px; align-self: center; border-radius: 50%; background: var(--live); animation: pulse 2.4s var(--ease) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.terminal figcaption { padding: 0 24px 18px; color: #6c6b61; font-size: 11px; letter-spacing: .04em; }
.js .terminal .t-row { opacity: 0; transform: translate3d(0, 6px, 0); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.js .terminal.is-in .t-row { opacity: 1; transform: none; }
.terminal.is-in .t-row:nth-child(2) { transition-delay: .55s; }
.terminal.is-in .t-row:nth-child(3) { transition-delay: .85s; }
.terminal.is-in .t-row:nth-child(4) { transition-delay: 1.15s; }
.terminal.is-in .t-row:nth-child(5) { transition-delay: 1.45s; }
.terminal.is-in .t-row:nth-child(6) { transition-delay: 1.75s; }
.terminal.is-in .t-row:nth-child(7) { transition-delay: 2.2s; }

/* ---------- Work: bento cards & project rows (shared tinted media) ---------- */

.bento { display: grid; gap: 36px 20px; margin-bottom: 48px; }
.bento-card { display: block; border-radius: 24px; }
.bento-media { position: relative; display: block; height: clamp(260px, 66vw, 420px); overflow: hidden; border-radius: 24px; background: var(--tint, var(--paper-2)); isolation: isolate; }
.bento-media .frame { position: absolute; left: 9%; right: 9%; top: 12%; transition: transform .9s var(--ease); }
.bento-media .phone { position: absolute; right: 5%; bottom: -18%; width: 24%; border-radius: 22px; transition: transform .9s var(--ease); }
.bento-media .phone img { border-radius: 18px; }
.bento-card:hover .frame, .project:hover .frame { transform: translate3d(0, -10px, 0); }
.bento-card:hover .phone, .project:hover .phone { transform: translate3d(0, -18px, 0) rotate(2deg); }
.bento-open { position: absolute; left: 18px; bottom: 18px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 500; opacity: 0; transform: translate3d(0, 10px, 0); transition: opacity .35s var(--ease), transform .5s var(--ease); }
.bento-open .i { width: 16px; height: 16px; }
.bento-card:hover .bento-open, .bento-card:focus-visible .bento-open { opacity: 1; transform: none; }
.bento-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 18px 4px 0; }
.bento-name { font: 700 clamp(1.35rem, 1.9vw, 1.7rem)/1.1 var(--font-display); letter-spacing: -.03em; }
.bento-cat { color: var(--muted); font-size: 15px; }
.b-fashion { --tint: #e4ddd1; }
.b-cafe { --tint: #ecd8c3; }
.b-shop { --tint: #dce2e8; }
.b-saas { --tint: #e1dfee; }
.b-studio { --tint: #dedccd; }
@supports (animation-timeline: view()) {
  .bento-media .frame { animation: drift-a linear both; animation-timeline: view(); }
  .bento-media .phone { animation: drift-b linear both; animation-timeline: view(); }
  @keyframes drift-a { from { translate: 0 34px; } to { translate: 0 -34px; } }
  @keyframes drift-b { from { translate: 0 80px; } to { translate: 0 -60px; } }
}
.projects { display: grid; gap: clamp(56px, 7vw, 104px); }
.project { display: grid; gap: 26px; align-items: center; }
.project-num { display: block; margin-bottom: 14px; color: var(--faint); font: 500 13px var(--font-mono); }
.project-name { margin-bottom: 10px; font: 700 clamp(1.9rem, 3.4vw, 3rem)/1.05 var(--font-display); letter-spacing: -.04em; }
.project-cat { margin-bottom: 16px; color: var(--accent-ink); font: 500 13px var(--font-mono); letter-spacing: .02em; }
:lang(zh) .project-cat { font-family: var(--font-sans); font-size: 14px; }
.project-desc { max-width: 34ch; margin-bottom: 28px; color: var(--muted); font-size: 1.05rem; }

/* ---------- Process ---------- */

.process-grid { display: grid; gap: 44px; }
.process-photo img { width: 100%; border-radius: var(--radius-lg); background: var(--paper-2); }
.online-note { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px; padding: 8px 15px 8px 12px; border-radius: 999px; background: rgba(63, 180, 110, .12); color: #1f6b43; font-size: 14.5px; font-weight: 600; }
.process-body .h2 { margin-bottom: 22px; }
.steps { border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.step-num { grid-row: span 2; color: var(--accent); font: 600 2rem/1 var(--font-display); }
.step .h4 { margin-bottom: 2px; }
.step p { color: var(--muted); font-size: 16px; }

/* ---------- Pricing ---------- */

.plan-strip { display: grid; gap: 16px; }
.plan-mini { display: flex; flex-direction: column; gap: 14px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.plan-mini:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -32px rgba(30, 26, 15, .4); }
.plan-mini-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 26px; }
.plan-mini-name { font-weight: 500; }
.plan-mini-sum { color: var(--muted); font-size: 15px; }
.is-featured { border-color: transparent; background: var(--dark); color: var(--on-dark); }
.is-featured .badge { background: var(--gold); color: var(--dark); }
.is-featured .plan-mini-sum, .is-featured .price-cur, .is-featured .price-from, .is-featured .plan-for, .is-featured .price-once { color: var(--on-dark-muted); }
.is-featured .plan-price { border-color: rgba(243, 239, 231, .14); }
.is-featured .ticks .i { color: var(--gold); }
.price { display: inline-flex; align-items: baseline; gap: 7px; }
.price strong { font: 700 clamp(2.5rem, 4vw, 3.4rem)/1 var(--font-display); letter-spacing: -.05em; }
.price-cur, .price-from { color: var(--muted); font-size: 15px; }
.plans { display: grid; gap: 16px; }
.plan { display: flex; flex-direction: column; gap: 22px; padding: clamp(28px, 3vw, 40px); border: 1px solid var(--line); border-radius: 24px; background: var(--card); scroll-margin-top: calc(var(--header) + 24px); }
.plan.is-featured { border-color: transparent; background: var(--dark); color: var(--on-dark); box-shadow: 0 50px 90px -50px rgba(20, 22, 15, .65); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-name { font: 700 1.7rem/1.1 var(--font-display); letter-spacing: -.035em; }
:lang(zh) .plan-name { font-size: 1.6rem; letter-spacing: .01em; }
.plan-for { color: var(--muted); font-size: 15.5px; }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 12px; padding-block: 20px; border-block: 1px solid var(--line); }
.price-once { color: var(--muted); font: 500 12px var(--font-mono); letter-spacing: .07em; text-transform: uppercase; }
.plan .ticks { flex: 1; }
.includes { margin-top: 20px; padding: 28px 32px; border: 1px solid var(--line); border-radius: 24px; background: var(--card); }
.includes .ticks { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px 28px; }
.includes .ticks .i { color: var(--live); }
.launch-grid { display: grid; gap: 44px; }
.launch-grid .lead { margin-top: 24px; }
.launch-cols { display: grid; gap: 16px; }
.launch-col { padding: 28px; border: 1px solid rgba(243, 239, 231, .1); border-radius: var(--radius); background: rgba(243, 239, 231, .045); }
.launch-col .ticks li { color: var(--on-dark-2); }
.launch-col:nth-child(2) .ticks .i { color: var(--on-dark-muted); }
.launch-note { color: var(--on-dark-muted); font-size: 15px; }
.fine-print { display: grid; gap: 10px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.fine-print p { max-width: 82ch; padding-left: 20px; border-left: 2px solid var(--accent); }

/* ---------- FAQ ---------- */

.faq-grid { display: grid; gap: 32px; }
.faq-list { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; font-size: clamp(1.05rem, 1.4vw, 1.2rem); font-weight: 500; letter-spacing: -.01em; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover .faq-icon { border-color: var(--ink); }
.faq-icon { position: relative; flex: none; width: 34px; height: 34px; border: 1px solid var(--line-strong); border-radius: 50%; transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease); }
.faq[open] .faq-icon { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.faq[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq::details-content { block-size: 0; overflow: clip; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
.faq[open]::details-content { block-size: auto; }
.faq-body p { max-width: 60ch; padding: 0 58px 26px 0; color: var(--muted); }

/* ---------- CTA band ---------- */

.cta-band::after { content: ""; position: absolute; right: -6%; bottom: -22%; width: min(560px, 55%); aspect-ratio: 1; background: rgba(243, 239, 231, .035); -webkit-mask: url("/assets/brand/mark.png") center / contain no-repeat; mask: url("/assets/brand/mark.png") center / contain no-repeat; pointer-events: none; }
.cta-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; padding-block: clamp(72px, 9vw, 124px); text-align: center; }
.cta-inner .eyebrow::after { content: ""; width: 20px; height: 1px; background: currentColor; opacity: .55; }
.cta-inner .display-2 { max-width: 15ch; }
:lang(zh) .cta-inner .display-2 { max-width: 12em; }
.cta-inner .lead { margin-top: 24px; }
.cta-inner .actions { flex-direction: column; justify-content: center; gap: 20px; margin-top: 40px; }
.cta-or { color: var(--on-dark-muted); font-size: 15px; }
.cta-or a { border-bottom: 1px solid rgba(243, 239, 231, .3); color: var(--on-dark); transition: border-color .25s var(--ease); }
.cta-or a:hover { border-color: var(--on-dark); }

/* ---------- Footer ---------- */

.site-footer { overflow-x: clip; padding-top: clamp(64px, 8vw, 104px); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 24px; padding-bottom: 48px; }
.footer-intro { grid-column: 1 / -1; }
.footer-intro p { max-width: 30ch; margin-top: 16px; color: var(--muted); }
.footer-h { margin-bottom: 14px; color: var(--faint); font: 500 12px var(--font-mono); letter-spacing: .09em; text-transform: uppercase; }
:lang(zh) .footer-h { font-family: var(--font-sans); font-size: 13px; letter-spacing: .12em; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { display: inline-flex; align-items: center; gap: 6px; border-bottom: 1px solid transparent; color: var(--ink-2); transition: border-color .25s var(--ease); }
.footer-col a:hover { border-color: currentColor; }
.footer-col .i { width: 14px; height: 14px; opacity: .6; }
.footer-base { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-block: 24px clamp(88px, 8vw, 104px); color: var(--muted); font-size: 14px; position: relative; }
.footer-base::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line); }
.footer-base p { margin-right: auto; }
.footer-base a:hover { color: var(--ink); }
.to-top { display: inline-flex; align-items: center; gap: 6px; }
.to-top .i { width: 15px; height: 15px; transition: transform .35s var(--ease); }
.to-top:hover .i { transform: translateY(-3px); }

/* ---------- Inner pages ---------- */

.page-hero { position: relative; overflow: hidden; padding-block: clamp(32px, 5vw, 76px) clamp(48px, 6vw, 84px); }
.page-hero-copy { position: relative; z-index: 1; max-width: 680px; }
.page-hero .display-2 { margin-bottom: 26px; }
.page-hero .lead { --rd: .25s; }
.page-hero-center { min-height: 62vh; display: grid; align-items: center; text-align: center; }
.page-hero-center .wrap { display: flex; flex-direction: column; align-items: center; }
.page-hero-center .display-2 { max-width: 16ch; }
.page-hero-center .actions { justify-content: center; margin-top: 36px; }
.page-hero-center .result-icon { margin-bottom: 28px; }

.svc-list { display: grid; gap: clamp(56px, 7vw, 100px); }
.svc { display: grid; gap: 28px; align-items: center; scroll-margin-top: calc(var(--header) + 24px); }
.svc .pv { aspect-ratio: 4 / 3; }
.svc-label { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; color: var(--muted); font: 500 13px var(--font-mono); letter-spacing: .09em; text-transform: uppercase; }
:lang(zh) .svc-label { font-family: var(--font-sans); font-size: 14px; letter-spacing: .12em; }
.svc-num { color: var(--accent); font: 600 2.2rem/1 var(--font-display); letter-spacing: 0; text-transform: none; }
.svc-body .h3-serif { margin-bottom: 14px; }
.svc-line { max-width: 34ch; margin-bottom: 28px; color: var(--muted); font-size: 1.1rem; }
.mini-cards { display: grid; gap: 16px; }
.mini-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.mini-num { display: block; margin-bottom: 26px; color: var(--accent); font: 600 2.2rem/1 var(--font-display); }
.mini-card .h4, .mini-card .h3 { margin-bottom: 6px; }
.mini-card p { color: var(--muted); }
.mini-cards-big .mini-num { margin-bottom: 40px; font-size: 3.4rem; }

.about-grid { display: grid; gap: 48px; }
.about-mark { display: none; place-items: center; width: 100%; max-width: 360px; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-lg); background: radial-gradient(90% 90% at 80% 0%, rgba(230, 184, 102, .22), transparent 60%), var(--dark); color: var(--paper); }
.about-mark .brand-mark { width: 40%; height: 40%; }
.about-copy p { max-width: 38ch; margin-bottom: 24px; color: var(--ink-2); font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.6; text-wrap: pretty; }
:lang(zh) .about-copy p { max-width: 26em; line-height: 1.9; }
.about-links { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 36px; }

.contact-grid { display: grid; gap: 56px; }
.brief { display: grid; gap: 26px; }
.field-row { display: grid; gap: 26px; }
.field { display: grid; gap: 10px; min-width: 0; padding: 0; border: 0; }
.field label, .field legend { padding: 0; font-size: 15px; font-weight: 500; }
.field legend { margin-bottom: 10px; }
.opt { margin-left: 6px; color: var(--faint); font: 400 12px var(--font-mono); }
:lang(zh) .opt { font-family: var(--font-sans); }
.field input, .field textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--card); font-size: 16px; line-height: 1.5; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:hover, .field textarea:hover { border-color: rgba(22, 24, 15, .36); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(200, 145, 58, .2); }
.field textarea { min-height: 150px; resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 13.5px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.pill span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 17px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--card); font-size: 14.5px; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.pill:hover span { border-color: var(--ink); }
.pill input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.pill input:focus-visible + span { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 6px; }
.form-privacy { color: var(--muted); font-size: 13.5px; }
.brief-result { padding: clamp(28px, 4vw, 44px); border: 1px solid var(--line); border-radius: 24px; background: var(--card); }
.brief-result:focus { outline: none; }
.brief-result .h3 { margin: 20px 0 10px; }
.brief-fallback .h3 { margin-top: 0; }
.brief-result > p { max-width: 52ch; color: var(--muted); }
.brief-result pre { max-height: 340px; margin: 22px 0; padding: 18px 20px; overflow: auto; border-radius: 12px; background: var(--paper); font: 13.5px/1.7 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.form-status { min-height: 1.5em; margin-top: 14px; color: var(--muted); font-size: 14px; }
.result-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: rgba(63, 180, 110, .15); color: #23804a; }
.result-icon .i { width: 24px; height: 24px; }
.contact-aside { display: grid; gap: 32px; }
.aside-block { padding-top: 22px; border-top: 1px solid var(--line); }
.aside-email { display: inline-block; border-bottom: 1px solid var(--line-strong); font: 650 clamp(1.2rem, 1.7vw, 1.5rem)/1.3 var(--font-display); letter-spacing: -.02em; overflow-wrap: anywhere; transition: border-color .25s var(--ease); }
.aside-email:hover { border-color: currentColor; }
.next-steps { display: grid; gap: 12px; counter-reset: step; }
.next-steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; color: var(--ink-2); font-size: 15.5px; counter-increment: step; }
.next-steps li::before { content: counter(step, decimal-leading-zero); padding-top: 3px; color: var(--accent-ink); font: 500 12px var(--font-mono); }

/* ---------- Breakpoints ---------- */

@media (min-width: 640px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .launch-cols { grid-template-columns: 1fr 1fr; }
  .launch-note { grid-column: 1 / -1; }
}

@media (min-width: 800px) {
  .plan-strip, .mini-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .section-head-split { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: end; }
  .section-head-split > :last-child { justify-self: end; text-align: right; }
}

@media (min-width: 900px) {
  .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
  .footer-intro { grid-column: auto; }
  .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px 20px; }
  .bento .b-fashion, .bento .b-saas { grid-column: span 7; }
  .bento .b-cafe, .bento .b-shop { grid-column: span 5; }
  .bento .b-studio { grid-column: 1 / -1; }
  .bento .bento-media { height: clamp(380px, 37vw, 560px); }
  .bento .b-cafe .frame, .bento .b-shop .frame { left: 12%; right: -22%; }
  .bento .b-cafe .phone, .bento .b-shop .phone { right: auto; left: 6%; width: 30%; }
  .bento .b-studio .bento-media { height: clamp(400px, 44vw, 640px); }
  .bento .b-studio .frame { left: 6%; right: 32%; top: 10%; }
  .bento .b-studio .phone { right: 9%; bottom: auto; top: 12%; width: 16%; }
}

@media (min-width: 1000px) {
  .hero { display: flex; align-items: center; min-height: clamp(640px, calc(100svh - var(--header)), 920px); padding-block: 40px 64px; }
  .hero > .wrap { width: 100%; }
  .wall-hero { position: absolute; top: -6%; bottom: -6%; left: 43%; right: -4%; height: auto; margin: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 24%), linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 24%), linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); mask-composite: intersect; }
  .wall-hero .wall-plane { transform: translate(-44%, -50%) perspective(2400px) rotateX(26deg) rotateZ(-16deg) scale(.95); }
  .ticker { margin-top: 0; }
  .page-hero.has-collage { display: flex; align-items: center; min-height: 520px; }
  .page-hero.has-collage > .wrap { width: 100%; }
  .page-hero.has-collage .page-hero-copy { max-width: 600px; }
  .wall-static { display: block; position: absolute; top: 0; bottom: 0; left: 52%; right: -8%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 26%), linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 26%), linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent); mask-composite: intersect; }
  .wall-static .wall-plane { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; width: 840px; height: auto; transform: translate(-46%, -50%) perspective(2400px) rotateX(26deg) rotateZ(-16deg) scale(.82); }
  .wall-static .wall-col:nth-child(2) { transform: translateY(-90px); }
  .wall-static .wall-col:nth-child(3) { transform: translateY(70px); }
  .deploy-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 88px; }
  .process-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 88px; align-items: start; }
  .process-photo { position: sticky; top: calc(var(--header) + 32px); }
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .launch-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 80px; align-items: start; }
  .faq-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 80px; align-items: start; }
  .faq-head { position: sticky; top: calc(var(--header) + 32px); }
  .svc { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 88px; }
  .svc:nth-child(even) .pv { order: 2; }
  .project { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 72px; }
  .project:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
  .project:nth-child(even) .project-media { order: 2; }
  .project .bento-media { height: clamp(420px, 40vw, 600px); }
  .about-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 96px; align-items: start; }
  .about-mark { display: grid; position: sticky; top: calc(var(--header) + 32px); }
  .contact-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 88px; align-items: start; }
  .contact-aside { position: sticky; top: calc(var(--header) + 32px); }
}

@media (max-width: 899px) {
  :root { --header: 68px; }
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .faq-body p { padding-right: 0; }
  .t-row { font-size: 12.5px; }
  .terminal-body { padding: 20px 18px 22px; }
  /* Swipeable rows keep long card lists from stacking into a wall of text on phones. */
  .pillars { display: flex; gap: 14px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .pillars::-webkit-scrollbar { display: none; }
  .pillar { flex: 0 0 min(82%, 340px); scroll-snap-align: start; }
}

@media (max-width: 799px) {
  .plan-strip { display: flex; gap: 12px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .plan-strip::-webkit-scrollbar { display: none; }
  .plan-mini { flex: 0 0 min(78%, 320px); scroll-snap-align: start; }
  .section-head-split .link { justify-self: start; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .header-cta { display: none; }
  .brand { font-size: 16px; }
  .hero-side .actions .btn { padding-inline: 20px; }
  .btn-lg { min-height: 52px; font-size: 15.5px; }
  .bento-media { border-radius: 20px; }
  .bento-open { opacity: 1; transform: none; }
  .includes { padding: 24px; }
  .mini-card { padding: 26px; }
  .footer-base { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .wall-track, .ticker-track, .bento-media .frame, .bento-media .phone { animation: none !important; }
  .js .reveal, .js .terminal .t-row { opacity: 1; transform: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

@media print {
  .site-header, .wall, .ticker, .cta-band, .menu, .intro, .lang-hint { display: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  body { background: #fff; }
}

/* ---------- Guided help assistant (chat.js) ---------- */

.chat-launcher { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 150; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px 0 8px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); box-shadow: 0 18px 40px -16px rgba(20, 22, 15, .6), 0 0 0 1px rgba(255, 255, 255, .06) inset; font-size: 15px; font-weight: 650; cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s var(--ease); -webkit-tap-highlight-color: transparent; }
.chat-launcher:hover { transform: translateY(-2px); box-shadow: 0 24px 48px -18px rgba(20, 22, 15, .7); }
.chat-launcher-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #f3d189, var(--gold) 55%, #b98330); color: var(--dark); }
.chat-launcher-icon .i { width: 19px; height: 19px; stroke-width: 1.8; }
.chat-launcher[aria-expanded="true"] { transform: scale(.92); opacity: 0; pointer-events: none; }
html[data-menu-open] .chat-launcher { display: none; }
.chat-panel { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 160; display: flex; flex-direction: column; width: min(400px, calc(100vw - 32px)); height: min(640px, calc(100dvh - 32px)); overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--card); box-shadow: 0 40px 90px -30px rgba(20, 22, 15, .5), 0 12px 24px -12px rgba(20, 22, 15, .2); transform-origin: bottom right; animation: chat-in .45s var(--ease-out); }
@keyframes chat-in { from { opacity: 0; transform: translate3d(0, 16px, 0) scale(.96); } }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 16px; border-bottom: 1px solid var(--line); background: var(--paper); }
.chat-avatar { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--dark); color: var(--paper); }
.chat-avatar .brand-mark { width: 19px; height: 18px; }
.chat-head-text { flex: 1; min-width: 0; }
.chat-title { font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.chat-subtitle { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12.5px; }
.chat-subtitle .dot { width: 7px; height: 7px; }
.chat-icon-btn { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease); }
.chat-icon-btn:hover { background: rgba(22, 24, 15, .07); color: var(--ink); }
.chat-icon-btn .i { width: 18px; height: 18px; }
.chat-log { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 18px 16px 8px; overflow-y: auto; overscroll-behavior: contain; }
.chat-msg { max-width: 86%; padding: 11px 14px; border-radius: 18px; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.chat-msg a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.chat-bot { align-self: flex-start; border-bottom-left-radius: 6px; background: var(--paper-2); color: var(--ink); }
.chat-bot a { color: var(--accent-ink); }
.chat-user { align-self: flex-end; border-bottom-right-radius: 6px; background: var(--ink); color: var(--paper); }
.chat-typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.chat-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: chat-dot 1.2s var(--ease) infinite; }
.chat-typing i:nth-child(2) { animation-delay: .15s; }
.chat-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes chat-dot { 0%, 60%, 100% { opacity: .25; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-options { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 2px 0 6px; animation: rise .4s var(--ease-out) both; }
.chat-options.is-wrap { flex-direction: row; flex-wrap: wrap; }
.chat-options.is-wrap .chat-option.is-featured { flex-basis: 100%; max-width: none; }
.chat-option { display: inline-flex; align-items: center; gap: 8px; max-width: 92%; padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--card); color: var(--ink); font-size: 14.5px; font-weight: 500; line-height: 1.35; text-align: left; cursor: pointer; transition: border-color .2s var(--ease), background-color .2s var(--ease), transform .2s var(--ease); }
.chat-option:hover { border-color: var(--ink); background: var(--paper); transform: translateX(2px); }
.chat-option.is-yes { border-color: rgba(63, 180, 110, .45); background: rgba(63, 180, 110, .1); color: #1f6b43; }
.chat-option.is-no { border-style: dashed; }
.chat-option .i { width: 16px; height: 16px; flex: none; }
.chat-option.is-featured { border-color: var(--ink); background: var(--ink); color: var(--paper); font-weight: 600; }
.chat-option.is-featured:hover { background: #34372c; border-color: #34372c; }
.chat-option.is-featured .i { color: var(--gold); }
a.chat-option { text-decoration: none; }
.chat-option.is-quiet { border-color: transparent; background: transparent; color: var(--muted); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.chat-contact { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0 4px; }
.chat-contact .i { width: 16px; height: 16px; }
.chat-form { display: flex; align-items: center; gap: 8px; margin: 0 12px 12px; padding: 5px 5px 5px 14px; border: 1px solid var(--line-strong); border-radius: 22px; background: var(--paper); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.chat-form:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(200, 145, 58, .18); }
.chat-input { flex: 1; min-width: 0; height: 38px; padding: 0; border: 0; background: transparent; font-size: 15px; outline: none; -webkit-appearance: none; appearance: none; }
.chat-input::placeholder { color: var(--faint); }
.chat-send { display: grid; flex: none; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--ink); color: var(--paper); cursor: pointer; transition: background-color .2s var(--ease), opacity .2s var(--ease); }
.chat-send:hover { background: #34372c; }

.chat-send .i { width: 18px; height: 18px; }

@media (max-width: 560px) {
  .chat-launcher { height: 50px; padding: 0 16px 0 7px; font-size: 14.5px; }
  .chat-panel { inset: 0; width: auto; height: 100dvh; border: 0; border-radius: 0; }
  html[data-chat-open] { overflow: hidden; }
}
@media print { .chat-launcher, .chat-panel { display: none !important; } }

/* Proactive prompt beside the help launcher. */
.chat-nudge { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(max(16px, env(safe-area-inset-bottom)) + 64px); z-index: 150; display: flex; align-items: flex-start; gap: 4px; max-width: min(300px, calc(100vw - 32px)); padding: 12px 8px 12px 16px; border: 1px solid var(--line); border-radius: 18px 18px 6px 18px; background: var(--card); box-shadow: 0 24px 50px -24px rgba(20, 22, 15, .45); animation: rise .5s var(--ease-out) both; }
.chat-nudge-text { padding: 0; border: 0; background: none; color: var(--ink); font-size: 14.5px; line-height: 1.45; text-align: left; cursor: pointer; }
.chat-nudge-close { display: grid; flex: none; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.chat-nudge-close:hover { background: rgba(22, 24, 15, .07); color: var(--ink); }
.chat-nudge-close .i { width: 14px; height: 14px; }
html[data-chat-open] .chat-nudge, html[data-menu-open] .chat-nudge { display: none; }

/* Suggests the Chinese version to Chinese-language browsers on English pages. */
.lang-hint { background: var(--dark); color: var(--on-dark); font-size: 14px; }
.lang-hint-inner { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 42px; }
.lang-hint a { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-weight: 600; }
.lang-hint a .i { width: 15px; height: 15px; }
.lang-hint button { display: grid; place-items: center; width: 28px; height: 28px; margin-left: 4px; border: 0; border-radius: 50%; background: transparent; color: var(--on-dark-muted); font-size: 18px; line-height: 1; cursor: pointer; }
.lang-hint button:hover { background: rgba(243, 239, 231, .1); color: var(--on-dark); }