/* ==========================================================================
   Kaitomic · v6 "editorial enterprise"
   Formal structure (top navbar, KPI commitments, disciplined grids, navy
   bands/footer) carried by the editorial paper voice: warm ground, serif
   display, hairline rules, hand-drawn schematics, ghost numerals, watermark.
   Shape lock: panels 4px, inputs 6px, buttons pill.
   ========================================================================== */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-var.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --paper: #ECECEA;
  --paper-raised: #F3F2F0;
  --ink: #161513;
  --ink-soft: #3B3934;
  --muted: #6F6D66;
  --line: #D9D7D1;
  --line-strong: #C2C0B9;
  --navy: #0A2540;
  --navy-deep: #071B30;
  --accent: #00B4D8;
  --acc-ink: #0077A8;
  --err: #B3261E;
  --surface: var(--paper-raised);
  --shadow-s: 0 1px 2px rgba(22, 21, 19, 0.05), 0 6px 18px rgba(22, 21, 19, 0.05);
  --shadow: 0 24px 48px rgba(22, 21, 19, 0.10);
  --shadow-lg: 0 24px 48px rgba(22, 21, 19, 0.14);
  --btn-bg: var(--ink);
  --btn-ink: var(--paper);
  --mark-disc: #0A2540;
  --mark-ink: #FFFFFF;
  --mark-dot1: #A9C6E4;
  --mark-dot2: #4C74A8;
  --kicker-bg: #FFFFFF;

  --serif: "Instrument Serif", "Noto Serif TC", "Songti TC", "PMingLiU", Georgia, serif;
  --sans: "Manrope", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;

  --r-panel: 4px;
  --r-input: 6px;
  --r-btn: 999px;
  --r-pill: 999px;
  --r-card: 4px;
  --nav-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #171614;
    --paper-raised: #201F1C;
    --ink: #EAE9E5;
    --ink-soft: #C9C7C0;
    --muted: #96948C;
    --line: rgba(234, 233, 229, 0.12);
    --line-strong: rgba(234, 233, 229, 0.24);
    --err: #FF8A80;
    --surface: var(--paper-raised);
    --shadow-s: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 20px rgba(0, 0, 0, 0.45);
    --shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.55);
    --btn-bg: var(--accent);
    --btn-ink: #04222C;
    --mark-disc: #EAE9E5;
    --mark-ink: #0C1520;
    --mark-dot1: #3E6280;
    --mark-dot2: #4C74A8;
    --kicker-bg: #201F1C;
  }
}
:root[data-theme="dark"] {
  --paper: #171614;
  --paper-raised: #201F1C;
  --ink: #EAE9E5;
  --ink-soft: #C9C7C0;
  --muted: #96948C;
  --line: rgba(234, 233, 229, 0.12);
  --line-strong: rgba(234, 233, 229, 0.24);
  --err: #FF8A80;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.55);
  --btn-bg: var(--accent);
  --btn-ink: #04222C;
  --mark-disc: #EAE9E5;
  --mark-ink: #0C1520;
  --mark-dot1: #3E6280;
  --mark-dot2: #4C74A8;
}

/* ---- base ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { max-width: 1160px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 44px); }
section { padding-block: clamp(72px, 9vw, 112px); position: relative; }
.sec-alt { border-top: 1px solid var(--line); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: var(--r-btn);
}
.skip-link:focus { left: 8px; }

/* ---- icons ---- */
.icon { width: 24px; height: 24px; flex: none; }
.icon-sm { width: 20px; height: 20px; }
.icon-lg { width: 28px; height: 28px; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--r-btn); padding: 13px 26px;
  font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--muted); transform: translateY(-1px); }

.text-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; font-size: 15px; color: var(--acc-ink);
}
.text-link .icon { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.text-link:hover .icon { transform: translateX(3px); }

/* ---- navbar ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { height: var(--nav-h); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand svg { width: 32px; height: 32px; }
.wordmark { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.wordmark .w-o { color: var(--accent); }
.nav-links { display: flex; gap: 4px; margin-inline: auto; }
.nav-links a {
  padding: 8px 15px; border-radius: var(--r-btn);
  font-size: 14.5px; font-weight: 600; color: var(--ink-soft);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 800; background: color-mix(in srgb, var(--ink) 7%, transparent); }
.nav-right { display: flex; align-items: center; gap: 12px; margin-left: auto; flex: none; }
.nav .btn { padding: 10px 20px; font-size: 14px; }

.lang { display: flex; border: 1px solid var(--line-strong); border-radius: var(--r-btn); padding: 3px; }
.lang a {
  padding: 5px 12px; border-radius: 6px;
  font-size: 13px; font-weight: 700; color: var(--muted);
}
.lang a[aria-current="page"] { background: var(--navy); color: #fff; }
:root[data-theme="dark"] .lang a[aria-current="page"],
:root:not([data-theme="light"]) .lang a[aria-current="page"] { background: var(--accent); color: #04222C; }

.nav-burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: var(--r-btn); place-items: center; }
.nav-burger svg { width: 21px; height: 21px; }

.mobile-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 49;
  background: var(--paper); border-bottom: 1px solid var(--line);
  padding: 14px clamp(20px, 5vw, 44px) 24px;
  box-shadow: var(--shadow-lg);
}
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 13px 2px; font-weight: 700; font-size: 16px; border-bottom: 1px solid var(--line); }
.mobile-menu a[aria-current="page"] { color: var(--acc-ink); }
.mobile-menu .btn { margin-top: 18px; width: 100%; }

@media (max-width: 899px) {
  .nav-links, .nav .btn { display: none; }
  .nav-burger { display: grid; }
}

.cta-row { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.fx-up { animation: fadeUp 0.8s var(--ease) both; }
.fx-1 { animation-delay: 0.04s; } .fx-2 { animation-delay: 0.14s; }
.fx-3 { animation-delay: 0.24s; } .fx-4 { animation-delay: 0.18s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } }

/* ---- page hero: editorial split, rule below ---- */
.page-hero {
  padding-top: clamp(2.75rem, 6vw, 4.75rem);
  padding-bottom: 0;
}
.page-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: end;
  padding-bottom: clamp(1.75rem, 3vw, 2.75rem);
  border-bottom: 1px solid var(--line-strong);
}
.page-hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.8rem, 4.6vw, 4.6rem);
  line-height: 1.02; letter-spacing: -0.02em;
  max-width: 56rem; text-wrap: balance;
}
:lang(zh) .page-hero h1 { line-height: 1.18; letter-spacing: 0.01em; }
.page-hero .lede {
  margin: 0; font-family: var(--serif);
  font-size: clamp(1.12rem, 1.45vw, 1.32rem); line-height: 1.5;
  color: var(--ink-soft); max-width: 34rem;
}
.crumbs { display: flex; align-items: center; gap: 10px; font-size: 0.84rem; font-weight: 600; color: var(--muted); margin-bottom: 20px; }
.crumbs a:hover { color: var(--ink); }
.crumb-sep { opacity: 0.45; }
.crumbs [aria-current="page"] { color: var(--ink-soft); }

/* ---- section headers ---- */
.sec-head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 52px); }
.sec-head h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 3.8vw, 3rem); line-height: 1.08; letter-spacing: -0.005em;
  text-wrap: balance;
}
.sec-head p { margin-top: 14px; font-family: var(--serif); color: var(--muted); font-size: 1.12rem; max-width: 52ch; }

.sec-more { margin-top: 30px; }
.svc-desc { margin-top: 14px; font-family: var(--serif); color: var(--ink-soft); font-size: 1.12rem; max-width: 42ch; }
.includes { list-style: none; padding: 0; margin: 0; }
.includes li { display: flex; gap: 12px; padding-block: 10px; font-size: 0.98rem; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.includes li:last-child { border-bottom: 0; }
.includes .icon { width: 16px; height: 16px; color: var(--acc-ink); margin-top: 5px; }
/* ---- FAQ ---- */
.faq-list { border-top: 1px solid var(--line); max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-block: 22px; cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: 1.3rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--acc-ink); }
.faq-x { color: var(--muted); transition: transform 0.3s var(--ease); }
.faq-item[open] .faq-x { transform: rotate(45deg); color: var(--acc-ink); }
.faq-a { padding: 0 40px 22px 0; }
.faq-a p { color: var(--muted); font-family: var(--serif); font-size: 1.08rem; max-width: 62ch; }

.facts { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 6px 26px; }
.fact { display: flex; align-items: center; gap: 14px; padding-block: 16px; font-weight: 700; font-size: 0.97rem; }
.fact + .fact { border-top: 1px solid var(--line); }
.fact .icon { width: 17px; height: 17px; color: var(--acc-ink); }

/* ---- about ---- */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.about-copy p { font-family: var(--serif); color: var(--ink-soft); font-size: 1.14rem; margin-bottom: 18px; max-width: 58ch; }
.about-copy > h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; margin-bottom: 22px; }
.about-copy .sec-more { margin-top: 22px; }
.founder { margin-top: 26px; }
.founder p { font-weight: 800; font-size: 1.02rem; margin-bottom: 0; }
.founder span { display: block; margin-top: 3px; font-weight: 500; color: var(--muted); font-size: 0.93rem; }

/* ---- contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.contact-sub { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; margin: 6px 0 16px; }
.c-list { margin-top: 26px; }
.c-item { display: flex; gap: 14px; padding-block: 13px; align-items: flex-start; }
.c-item .icon { color: var(--acc-ink); margin-top: 3px; width: 21px; height: 21px; }
.c-item .lbl { display: block; font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.c-item a, .c-item .val { font-weight: 800; font-size: 1.03rem; }
.c-item a:hover { color: var(--acc-ink); }
.step-num {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  border: 1.5px solid var(--ink); font-family: var(--serif);
  display: grid; place-items: center; font-size: 0.95rem;
}

.form-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--r-panel); padding: clamp(24px, 3vw, 34px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-input);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--acc-ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.field .err { display: none; margin-top: 6px; font-size: 0.85rem; font-weight: 600; color: var(--err); }
.field.bad input, .field.bad textarea { border-color: var(--err); }
.field.bad .err { display: block; }
.form-card .btn { width: 100%; margin-top: 4px; }
.form-note { margin-top: 12px; font-size: 0.85rem; color: var(--muted); }

/* ---- CTA band ---- */
.cta-band { background: var(--navy-deep); color: #fff; border-top: 0; }
.cta-band-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 36px; padding-block: clamp(56px, 8vw, 96px);
}
.cta-band h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; }
.cta-band p { margin-top: 12px; font-family: var(--serif); color: rgba(255, 255, 255, 0.66); max-width: 44ch; font-size: 1.1rem; }
.cta-band-side { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; flex: none; }
.cta-band .btn { background: #fff; color: var(--navy); }
.cta-band .btn:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3); }
.status-line {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.88rem; font-weight: 600; color: var(--muted);
}
.status-line .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}
.cta-band .status-line { color: rgba(255, 255, 255, 0.65); }
.cta-band .status-line .dot { box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.2); }

/* ---- footer ---- */
footer { border-top: 1px solid var(--line); padding: 56px 0 32px; }

.foot-grid { display: grid; grid-template-columns: 1.6fr 0.9fr 1.1fr; gap: 40px; }
.foot-brand { display: flex; flex-direction: column; align-items: flex-start; }
.foot-brand-mark { display: flex; align-items: center; gap: 10px; }
.foot-brand .wordmark { font-size: 21px; }
.foot-tag { margin-top: 14px; max-width: 22rem; font-family: var(--serif); font-size: 1.05rem; font-weight: 400; line-height: 1.35; letter-spacing: 0; color: var(--ink-soft); }
:lang(zh) .foot-tag, :lang(zh-HK) .foot-tag { letter-spacing: 0.04em; max-width: 16em; }
.foot-grid h4 { font-size: 0.85rem; font-weight: 800; margin-bottom: 14px; }
.foot-grid ul { list-style: none; padding: 0; }
.foot-grid li { margin-bottom: 10px; }
.foot-grid li a, .foot-grid li span { color: var(--muted); font-size: 0.93rem; }
.foot-grid li a:hover { color: var(--ink); }
.foot-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: flex-start; align-items: baseline; gap: 28px; flex-wrap: wrap;
  padding-right: 5.5rem;
  font-size: 0.85rem; color: var(--muted);
}

/* ---- legal prose ---- */
.prose { max-width: 76ch; padding-bottom: clamp(72px, 10vw, 120px); }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; margin: 36px 0 10px; }
.prose p { font-family: var(--serif); color: var(--ink-soft); font-size: 1.1rem; margin-bottom: 12px; }

/* ---- 404 ---- */
body:has(> main.nf) { min-height: 100dvh; display: flex; flex-direction: column; }
.nf { flex: 1; display: grid; place-items: center; padding: 32px; text-align: center; }
.nf-inner { max-width: 480px; display: grid; justify-items: center; gap: 12px; }
.nf .nf-mark { width: 110px; height: 110px; margin-bottom: 10px; }
.nf h1 { font-family: var(--serif); font-weight: 400; font-size: 2.4rem; }
.nf p { color: var(--muted); font-family: var(--serif); font-size: 1.05rem; }
.nf .btn { margin-top: 10px; }

/* ---- spotlight on cards (subtle) ---- */
.spot { position: relative; overflow: hidden; }
.spot::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(280px circle at var(--spot-x, 50%) var(--spot-y, 50%),
    rgba(10, 37, 64, 0.05), transparent 65%);
  opacity: 0; transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
:root[data-theme="dark"] .spot::before,
:root:not([data-theme="light"]) .spot::before {
  background: radial-gradient(280px circle at var(--spot-x, 50%) var(--spot-y, 50%),
    rgba(230, 237, 243, 0.06), transparent 65%);
}
.spot:hover::before { opacity: 1; }

/* ---- reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---- responsive ---- */
@media (max-width: 899px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .cta-band-side { align-items: flex-start; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .faq-a { padding-right: 0; }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---- work page: chips, walkthroughs, note ---- */
.chip {
  display: inline-flex; align-items: center;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--acc-ink); border: 1px solid var(--line-strong);
  border-radius: var(--r-pill); padding: 5px 12px; margin-bottom: 16px;
}
.sub-label {
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin: 22px 0 4px;
}
/* ---- floating quick-enquiry widget ---- */
.enq-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(7, 27, 48, 0.32);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
body.enq-open .enq-backdrop { opacity: 1; pointer-events: auto; }

.enq-card {
  position: fixed; right: 20px; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: 95;
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100dvh - 118px); overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--r-panel);
  box-shadow: var(--shadow-lg); padding: 24px 24px 20px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: scale(0.94) translateY(20px);
  transform-origin: bottom right;
  transition: opacity 0.3s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}
body.enq-open .enq-card {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: none;
}

/* header: brand + close */
.enq-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line);
}
.enq-brand { display: flex; align-items: center; gap: 10px; }
.enq-brand .mark-img { width: 30px; height: 30px; min-width: 30px; }
.enq-close {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper); color: var(--muted);
  display: grid; place-items: center; cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.enq-close:hover { color: var(--ink); border-color: var(--line-strong); }
.enq-close .icon { width: 16px; height: 16px; }

/* headline: availability pill + heading */
.enq-headline { margin-bottom: 16px; }
.enq-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--acc-ink);
  border-radius: 999px; padding: 3px 10px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em;
  margin-bottom: 10px;
}
:root[data-theme="dark"] .enq-pill { color: var(--accent); }
.enq-pill-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22);
  animation: enqLive 2.4s ease-in-out infinite;
}
@keyframes enqLive {
  0%, 100% { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22); }
  50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.08); }
}
.enq-headline h2 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.1; }
.enq-headline p { color: var(--muted); font-size: 0.88rem; line-height: 1.45; margin-top: 4px; }
.enq-wave { width: 84px; margin-top: 12px; }
.enq-wave svg { display: block; width: 100%; height: auto; }

/* service chips */
.enq-chips { margin-bottom: 14px; }
.enq-chips-label, .enq-field label {
  display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.enq-chip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.enq-chip { display: grid; }
.enq-chip input { position: absolute; left: -9999px; width: 0; height: 0; opacity: 0; }
.enq-chip span {
  display: flex; align-items: center; justify-content: center; height: 100%;
  padding: 9px 6px; text-align: center; cursor: pointer; user-select: none;
  font-size: 0.76rem; font-weight: 700; line-height: 1.3; text-wrap: balance;
  color: var(--ink-soft);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-input);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.enq-chip span:hover { border-color: var(--line-strong); }
.enq-chip input:checked + span {
  background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-ink);
}
.enq-chip input:focus-visible + span { outline: 2px solid var(--acc-ink); outline-offset: 1px; }

/* fields */
.enq-field { margin-bottom: 12px; }
.enq-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.enq-label-row { display: flex; align-items: baseline; justify-content: space-between; }
.enq-optional { font-size: 0.68rem; font-weight: 500; color: var(--muted); text-transform: none; letter-spacing: 0; }
.enq-field input, .enq-field textarea {
  width: 100%; padding: 10px 12px; font: inherit; font-size: 0.9rem;
  color: var(--ink); background: var(--paper);
  border: 1px solid var(--line-strong); border-radius: var(--r-input);
}
.enq-field input:focus, .enq-field textarea:focus {
  outline: none; background: var(--surface, var(--paper-raised));
  border-color: var(--acc-ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}
.enq-field textarea { min-height: 88px; resize: vertical; }

/* submit + spinner */
.enq-submit { width: 100%; margin-top: 2px; }
.enq-submit-arrow { transition: transform 0.25s var(--ease); }
.enq-submit:hover .enq-submit-arrow, .enq-submit:focus-visible .enq-submit-arrow { transform: translateX(3px); }
.enq-card.sending .enq-submit-label,
.enq-card.sending .enq-submit-arrow { display: none; }
.enq-spinner { display: none; align-items: center; gap: 10px; }
.enq-card.sending .enq-spinner { display: inline-flex; }
.enq-spin { position: relative; width: 18px; height: 18px; }
.enq-spin i {
  position: absolute; inset: 0; border-radius: 50%;
}
.enq-spin i:nth-child(1) { border: 1.6px dashed color-mix(in srgb, currentColor 45%, transparent); border-top-color: currentColor; animation: enqSpin 1.2s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite; }
.enq-spin i:nth-child(2) { inset: 3px; border: 1.4px solid color-mix(in srgb, currentColor 30%, transparent); border-left-color: currentColor; animation: enqSpin 0.8s linear infinite reverse; }
.enq-spin i:nth-child(3) { inset: 7px; background: currentColor; border-radius: 50%; animation: enqPulse 1s ease-in-out infinite alternate; }
@keyframes enqSpin { to { transform: rotate(360deg); } }
@keyframes enqPulse { from { transform: scale(0.7); opacity: 0.6; } to { transform: scale(1.25); opacity: 1; } }

.enq-status { margin-top: 10px; font-size: 0.85rem; font-weight: 600; min-height: 1.2em; }
.enq-status.bad { color: var(--err); }
:root[data-theme="dark"] .enq-status.ok { color: var(--accent); }

/* success view */
.enq-success { display: none; }
.enq-card.sent .enq-headline, .enq-card.sent .enq-form-wrap { display: none; }
.enq-card.sent .enq-success { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 6px 2px 2px; }
.enq-badge { position: relative; width: 68px; height: 68px; display: grid; place-items: center; margin-bottom: 12px; }
.enq-badge-orbit { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--muted) 45%, transparent); animation: enqSpin 12s linear infinite; }
.enq-badge-core {
  width: 50px; height: 50px; border-radius: 50%;
  background: color-mix(in srgb, #10B981 12%, var(--paper-raised));
  display: grid; place-items: center;
}
.enq-check { width: 26px; height: 26px; }
.enq-check circle { stroke: #10B981; stroke-width: 2.5; fill: none; stroke-dasharray: 166; stroke-dashoffset: 166; animation: enqDraw 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards 0.1s; }
.enq-check path { stroke: #059669; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 48; animation: enqDraw 0.4s cubic-bezier(0.65, 0, 0.45, 1) forwards 0.35s; }
@keyframes enqDraw { to { stroke-dashoffset: 0; } }
.enq-success h3 { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; margin-bottom: 4px; }
.enq-success > p { color: var(--muted); font-size: 0.86rem; line-height: 1.45; margin: 0 auto 14px; max-width: 30ch; }

/* receipt card */
.enq-receipt {
  width: 100%; text-align: left;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-input);
  padding: 12px 14px; margin-bottom: 14px;
  display: flex; flex-direction: column; gap: 7px;
}
.enq-receipt-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.8rem; }
.enq-receipt-row.is-brief { align-items: flex-start; }
.enq-receipt-label { color: var(--muted); font-weight: 500; flex-shrink: 0; }
.enq-receipt-value { color: var(--ink); font-weight: 600; text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.enq-receipt-row.is-brief .enq-receipt-value { white-space: normal; line-height: 1.35; }
.enq-receipt-value.is-mono { font-family: var(--serif); letter-spacing: 0.06em; background: var(--paper-raised); border: 1px solid var(--line); border-radius: 4px; padding: 1px 7px; font-size: 0.82rem; }

.enq-done {
  width: 100%; padding: 10px; border-radius: var(--r-input); cursor: pointer;
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink);
  font: inherit; font-size: 0.88rem; font-weight: 700;
  transition: background-color 0.2s, border-color 0.2s;
}
.enq-done:hover { background: var(--paper); border-color: var(--muted); }
.enq-dismiss { width: 100%; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; margin-top: 12px; }
.enq-dismiss-bar { width: 100%; height: 100%; background: var(--muted); transform: scaleX(1); transform-origin: left; }
.enq-card.sent .enq-dismiss-bar { animation: enqDismiss 7s linear forwards; }
@keyframes enqDismiss { to { transform: scaleX(0); } }

/* launcher dock */
.enq-dock { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 95; display: flex; align-items: center; gap: 12px; }
.enq-cue {
  background: var(--paper-raised); border: 1px solid var(--line);
  box-shadow: var(--shadow); border-radius: 999px; padding: 7px 14px;
  font-size: 0.8rem; font-weight: 700; color: var(--ink);
  opacity: 0; transform: translateX(6px); pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.enq-dock:hover .enq-cue { opacity: 1; transform: translateX(0); }
body.enq-open .enq-cue { display: none; }

.enq-fab {
  position: relative; width: 58px; height: 58px; border-radius: 50%;
  background: var(--navy); color: #fff; border: none; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s var(--ease), background-color 0.2s;
}
:root[data-theme="dark"] .enq-fab { background: var(--accent); color: #04222C; }
.enq-fab:hover { transform: scale(1.05); }
.enq-fab:active { transform: scale(0.96); }
.enq-orbit {
  position: absolute; top: -8px; left: -8px; width: 74px; height: 74px;
  border-radius: 50%; pointer-events: none;
  border: 1px dashed color-mix(in srgb, var(--muted) 50%, transparent);
  animation: enqSpin 14s linear infinite;
  transition: opacity 0.3s;
}
.enq-orbit-sat {
  position: absolute; top: -3px; left: 50%; width: 6px; height: 6px; margin-left: -3px;
  border-radius: 50%; background: var(--acc-ink);
  box-shadow: 0 0 6px color-mix(in srgb, var(--accent) 80%, transparent);
}
:root[data-theme="dark"] .enq-orbit-sat { background: var(--accent); }
.enq-fab:hover .enq-orbit { border-color: var(--acc-ink); }
body.enq-open .enq-orbit { opacity: 0.15; }
.enq-ic-open, .enq-ic-close { grid-area: 1 / 1; display: grid; place-items: center; transition: opacity 0.25s ease, transform 0.3s var(--ease); }
.enq-ic-close { opacity: 0; transform: rotate(-90deg) scale(0.6); }
body.enq-open .enq-ic-open { opacity: 0; transform: rotate(90deg) scale(0.6); }
body.enq-open .enq-ic-close { opacity: 1; transform: rotate(0deg) scale(1); }

.hp-field { position: absolute; left: -9999px; width: 0; height: 0; opacity: 0; }

/* ---- back to top ---- */
.to-top {
  position: fixed; right: 26px; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: 85;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--paper-raised); border: 1px solid var(--line-strong); color: var(--ink-soft);
  display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--muted); color: var(--ink); transform: translateY(-2px); }
.to-top .icon { width: 20px; height: 20px; transform: rotate(-90deg); }

@media (max-width: 767px) {
  .enq-fab { width: 50px; height: 50px; }
  .enq-orbit { width: 64px; height: 64px; top: -7px; left: -7px; }
  .enq-dock { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .enq-card { right: 14px; left: 14px; width: auto; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); max-height: calc(100dvh - 92px); padding: 20px 18px 16px; }
  .enq-duo { grid-template-columns: 1fr; gap: 0; }
  .enq-chip-grid { grid-template-columns: repeat(3, 1fr); }
  .to-top { right: 16px; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .enq-card, .enq-backdrop, .enq-cue, .enq-ic-open, .enq-ic-close, .enq-fab, .enq-orbit { transition: none; }
  .enq-orbit, .enq-badge-orbit, .enq-pill-dot, .enq-submit-arrow { animation: none; transition: none; }
  .enq-check circle, .enq-check path { animation: none; stroke-dashoffset: 0; }
  .enq-card.sent .enq-dismiss-bar { animation: none; }
  .to-top { transition: none; }
}

/* ---- intake selects ---- */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field select {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--r-input);
}
.field select:focus {
  outline: none; border-color: var(--acc-ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* ---- notes / blog ---- */
.notes-list { border-top: 1px solid var(--line); }
.note-card {
  display: grid; grid-template-columns: 180px 1fr 32px; gap: clamp(14px, 3vw, 36px);
  align-items: start; padding-block: 30px; border-bottom: 1px solid var(--line);
}
.note-meta { font-size: 0.84rem; font-weight: 600; color: var(--muted); margin-top: 8px; }
.note-title {
  font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.12;
  transition: transform 0.3s var(--ease);
}
.note-sum { grid-column: 2; color: var(--muted); font-size: 0.98rem; max-width: 52ch; }
.note-card .icon { color: var(--ink); justify-self: end; margin-top: 10px; transition: transform 0.3s var(--ease); }
.note-card:hover .note-title { transform: translateX(6px); }
.note-card:hover .icon { transform: translateX(4px); }

.post { padding-block: clamp(48px, 7vh, 80px) clamp(48px, 7vw, 80px); }
.post h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.06; letter-spacing: -0.01em; max-width: 24em; }
.post-meta { margin-top: 16px; font-size: 0.88rem; font-weight: 600; color: var(--muted); }
.post-body { margin-top: 30px; }
.post-body p { font-size: 1.14rem; }
.post-body p:first-child { font-size: 1.22rem; color: var(--ink); }

/* ---- theme toggle ---- */
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--muted);
  display: grid; place-items: center;
  transition: color 0.2s, border-color 0.2s;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--muted); }
.theme-toggle .icon { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
.theme-toggle .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-moon { display: block; }

/* ---- tool logos ---- */
.logo-row {
  display: flex; flex-wrap: wrap; gap: 14px 28px;
  margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line);
}
.tool {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 700; color: var(--muted);
}
.tool svg { width: 18px; height: 18px; opacity: 0.8; }

@media (max-width: 767px) {
  .note-card { grid-template-columns: 1fr; gap: 6px; }
  .note-sum { grid-column: 1; }
  .note-card .icon { display: none; }
}

/* ---- flowcharts ---- */
.flow-cap {
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.svc-ill svg.flow { max-height: 230px; }
.svc-ill .flow text { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.svc-ill--frame { background: #F8FAFC; border-color: #E4E7EC; }
.svc-ill--frame .flow-cap { color: #667085; }
.svc-ill--frame .flow { display: block; width: 100%; height: auto; }
.svc-ill .flow text { font-family: "Manrope", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif; }

/* ---- PNG logo (light/dark swap) ---- */
.mark-img { display: inline-block; line-height: 0; }
.mark-img img { width: 100%; height: auto; display: block; }
.mark-img .mi-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mark-img .mi-light { display: none; }
  :root:not([data-theme="light"]) .mark-img .mi-dark { display: block; }
}
:root[data-theme="dark"] .mark-img .mi-light { display: none; }
:root[data-theme="dark"] .mark-img .mi-dark { display: block; }
:root[data-theme="light"] .mark-img .mi-dark { display: none; }
.brand .mark-img { width: 34px; }
.foot-brand .mark-img { width: 38px; height: 38px; flex-shrink: 0; }
.foot-brand .mark-img img { width: 100%; height: 100%; object-fit: contain; }
.nf-mark.mark-img { width: 112px; }
/* ==========================================================================
   v7 polish layer — grain, spotlight borders, optical type, stat presence
   Pure additive CSS: no shape-lock changes, reduced-motion safe.
   ========================================================================== */

/* ---- fine paper grain over everything (6s f.o.m. budget, no reflow) ---- */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 120px 120px;
  opacity: 0.035; mix-blend-mode: multiply;
}
:root[data-theme="dark"] body::after,
:root:not([data-theme="light"]) body::after {
  mix-blend-mode: screen; opacity: 0.05;
}

/* ---- type: tabular figures + optical sizing ---- */
body { font-optical-sizing: auto; font-variant-numeric: tabular-nums; }

/* ---- scrollbar: paper-toned, unobtrusive ---- */
@supports (scrollbar-width: thin) {
  html { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
}

/* ---- focus ring: color-mix halo, token-driven ---- */
:focus-visible { outline: 2px solid var(--acc-ink); outline-offset: 2px; border-radius: 4px; }

/* ---- card system: lifted background + top hairline + layering ---- */
.form-card, .facts {
  background: var(--paper-raised);
  box-shadow: var(--shadow-s);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.form-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* spotlight follow-border (coordinates shared with the existing .spot sheen;
   applied via .spotlight-c on pointer-fine devices only) */
@media (hover: hover) and (pointer: fine) {
  .spotlight-c { isolation: isolate; }
  .spotlight-c::after {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
    background: radial-gradient(140px circle at var(--spot-x, 50%) var(--spot-y, 50%),
      color-mix(in srgb, var(--accent) 42%, transparent), transparent 70%);
    opacity: 0; transition: opacity 0.4s var(--ease);
    -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    padding: 1px; pointer-events: none;
  }
  .spotlight-c:hover::after { opacity: 1; }
}

/* ---- founder card: signed, authentic ---- */
.founder {
  position: relative;
  margin-top: 30px; padding: 18px 22px;
  border: 1px solid var(--line); border-left: 2px solid var(--accent);
  border-radius: var(--r-panel); background: var(--paper-raised);
}
.founder p { font-size: 1.04rem; letter-spacing: 0.01em; }
.founder span { letter-spacing: 0.01em; }
.founder .fn-role { color: var(--muted); font-weight: 600; font-size: 0.9rem; }

/* ---- hand stamp: proof-of-work on the services page ---- */
.stamp {
  position: absolute; top: 4px; right: 0;
  width: 92px; height: 92px; display: grid; place-items: center; text-align: center;
  border: 1.5px solid var(--acc-ink); border-radius: 50%;
  color: var(--acc-ink);
  font-family: var(--serif); font-style: italic;
  font-size: 0.82rem; line-height: 1.25; letter-spacing: 0.02em;
  transform: rotate(8deg);
  opacity: 0.85;
  transition: transform 0.4s var(--ease);
}
.stamp:hover { transform: rotate(14deg); }

/* ---- module headers: var weight + cyan tick ---- */
.sec-head h2 {
  font-variation-settings: "wght" 500;
  text-wrap: pretty;
}
.sec-head h2::before {
  content: ""; position: absolute; width: 34px; height: 3px;
  margin-top: -0.62em; margin-left: -46px;
  background: var(--accent); border-radius: 2px;
}
@media (max-width: 1279px) { .sec-head h2::before { display: none; } }
.sec-head h2 { position: relative; }

/* ---- eyebrow: readable tracking + underline caret ---- */
.sec-eyebrow {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.sec-eyebrow::after { content: " —"; color: var(--accent); }
.chip { border-color: var(--line); background: var(--paper-raised); }
.chip::before {
  content: ""; display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--acc-ink); margin-right: 7px;
}

/* ---- buttons: layered press + ghost arrow nudge ---- */
.btn { box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-ghost .icon { transition: transform 0.25s var(--ease); }
.btn-ghost:hover .icon { transform: translateX(3px); }
.text-link { text-underline-offset: 3px; }
.text-link:hover { text-decoration: underline; }

/* ---- navy CTA band: depth + alignment ---- */
.cta-band {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(0, 180, 216, 0.12), transparent 60%),
    radial-gradient(700px 360px at 0% 110%, rgba(76, 116, 168, 0.14), transparent 65%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.cta-band-inner { align-items: flex-end; padding-bottom: clamp(72px, 9vw, 128px); }
.cta-band-side { padding-bottom: 10px; }
.cta-band .btn { padding: 14px 30px; }
.cta-band .status-line { align-self: flex-end; padding-bottom: 2px; }

/* ---- enq widget + to-top: shared accent colour ---- */
.enq-fab { background: var(--accent); color: #04222C; }
.enq-fab .enq-orbit-sat { background: var(--accent); }
.to-top { color: var(--ink); border-color: var(--line); background: var(--paper-raised); }
.to-top:hover { border-color: var(--muted); }

/* ---- dark-mode enq text contrast (needs JS flip: body.enq-ink-dark) ---- */
body.enq-ink-dark .enq-fab { background: var(--accent); color: #04222C; }

/* ---- layer synonym aliases (legacy class names kept working) ---- */
.card { border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--paper-raised); }
.r-card { border-radius: var(--r-panel); }
.surface { background: var(--paper-raised); }
.surface-2 { background: var(--paper); }

/* ---- reduced-motion: still the law ---- */
@media (prefers-reduced-motion: reduce) {
  .form-card, .stamp, .btn { transition: none; }
  .spotlight-c::after { transition: none; }
}

/* ==========================================================================
   Home v7 — asymmetric hero, gapless bento, pinned beliefs, scrubbed
   statement, horizontal engagement accordion, handover document.
   Motion states marked .is-* are added by motion.js; without JS every
   section renders in its finished state.
   ========================================================================== */
.home, .pages { --h-sec: clamp(8rem, 14vw, 12rem); --spring: cubic-bezier(0.34, 1.56, 0.64, 1); }
.home { overflow-x: clip; }
body { overflow-x: clip; }
.home section { padding-block: 0; }
.home .h-sec { padding-block: var(--h-sec); }
.home .h-sec + .h-sec { border-top: 1px solid var(--line); }

.h-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(44px, 5vw, 72px); }
.h-head--stack { grid-template-columns: 1fr; align-items: start; gap: 0; margin-bottom: 0; }
.h-head .sec-more { font-family: var(--sans); }
.h-head h2, .h-pin h2, .h-handover-copy h2 {
  font-family: var(--serif); font-weight: 400; font-variation-settings: "wght" 500;
  font-size: clamp(2.2rem, 4.2vw, 3.6rem); line-height: 1.04; letter-spacing: -0.01em;
  text-wrap: balance;
}
.h-head p, .h-pin p, .h-handover-copy p { font-family: var(--serif); color: var(--muted); font-size: 1.14rem; line-height: 1.55; max-width: 44ch; }
.h-pin p, .h-handover-copy p { margin-top: 20px; }
.h-head--stack .sec-more { margin-top: 24px; }

/* ---- hero ---- */
.home .h-hero { position: relative; isolation: isolate; overflow: hidden; padding-top: clamp(56px, 9vh, 104px); padding-bottom: clamp(72px, 9vw, 128px); }
.h-hero-wash {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 60% at 92% 78%, color-mix(in srgb, var(--accent) 11%, transparent), transparent 70%),
    radial-gradient(40% 45% at 4% 0%, color-mix(in srgb, var(--mark-dot2) 12%, transparent), transparent 70%),
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--ink) 5%, transparent) 0 1px, transparent 1px 96px);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
}
.h-title {
  max-width: 64rem;
  font-family: var(--serif); font-weight: 400; font-variation-settings: "wght" 500;
  font-size: clamp(3rem, 5.2vw, 5.5rem); line-height: 1.02; letter-spacing: -0.015em;
}
:lang(zh) .h-title { letter-spacing: 0.02em; line-height: 1.12; }
.h-pill {
  display: inline-flex; align-items: center; justify-content: center; vertical-align: middle;
  width: 1.9em; height: 0.84em; margin-top: -0.14em;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  background: var(--paper-raised); color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), var(--shadow-s);
}
.h-pill svg { width: 74%; height: auto; }
.h-pill--far { background: var(--navy); color: #fff; border-color: transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), var(--shadow-s); }
:lang(zh) .h-pill { margin-inline: 0.12em; }

.h-hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(36px, 6vw, 96px); margin-top: clamp(40px, 4.5vw, 64px); align-items: start; }
.h-lede { font-family: var(--serif); font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.5; color: var(--ink-soft); max-width: 34em; }
.h-cta-row { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.h-note { margin-top: 24px; display: flex; align-items: center; gap: 10px; font-size: 0.86rem; font-weight: 600; color: var(--muted); }
.h-note::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }

/* care console */
.con {
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--r-panel);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  overflow: hidden; font-size: 0.9rem; margin-top: clamp(0px, 2vw, 24px);
}
.con-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.con-title { font-weight: 800; font-size: 0.95rem; }
.con-sub { color: var(--muted); font-size: 0.8rem; }
.con-live { display: inline-flex; align-items: center; gap: 9px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--acc-ink); }
.con-pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #12B76A; }
.con-pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid #12B76A; animation: conPulse 2.2s var(--ease) infinite; }
@keyframes conPulse { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(1.8); opacity: 0; } }
.con-rows { list-style: none; margin: 0; padding: 4px 22px; }
.con-rows li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; align-items: center; padding-block: 12px; border-bottom: 1px solid var(--line); }
.con-rows li:last-child { border-bottom: 0; }
.con-dot { width: 8px; height: 8px; border-radius: 50%; background: #12B76A; }
.con-dot--upd { background: var(--accent); }
.con-name { font-weight: 700; }
.con-state { font-size: 0.72rem; font-weight: 800; padding: 3px 9px; border-radius: var(--r-pill); color: #0E7C4A; background: color-mix(in srgb, #12B76A 13%, transparent); }
.con-rows li:has(.con-dot--upd) .con-state { color: var(--acc-ink); background: color-mix(in srgb, var(--accent) 13%, transparent); }
:root[data-theme="dark"] .con-state { color: #5FD69A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .con-state { color: #5FD69A; } }
.con-note { grid-column: 2 / -1; color: var(--muted); font-size: 0.78rem; }
.con-log {
  height: 5.6em; overflow: hidden; border-top: 1px solid var(--line); background: var(--paper);
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace; font-size: 0.76rem; color: var(--ink-soft);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 28%, #000 72%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 28%, #000 72%, transparent);
}
.con-log-track { animation: conLog 16s linear infinite; }
.con-log-list { list-style: none; margin: 0; padding: 0 22px; }
.con-log-list li { line-height: 1.9em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes conLog { to { transform: translateY(-50%); } }
.con figcaption { padding: 10px 22px; border-top: 1px solid var(--line); font-size: 0.72rem; color: var(--muted); }

/* ---- commitments strip ---- */
.h-commits { border-block: 1px solid var(--line); }
.h-commits-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.h-commit { display: grid; align-content: start; gap: 10px; padding: clamp(28px, 3.5vw, 44px) clamp(16px, 2vw, 28px); border-left: 1px solid var(--line); }
.h-commit:first-child { border-left: 0; padding-left: 0; }
.h-commit-v { font-family: var(--serif); font-size: clamp(2rem, 3.2vw, 2.8rem); line-height: 1; letter-spacing: -0.01em; }
.h-commit-l { font-size: 0.88rem; font-weight: 600; color: var(--muted); max-width: 26ch; }

/* ---- services bento: 4 cols x 3 rows, dense ---- */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(15rem, auto); grid-auto-flow: dense; gap: 14px; }
.bento-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(24px, 2.4vw, 32px); padding-top: 96px;
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--r-panel);
  overflow: hidden; isolation: isolate;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), border-color 0.3s;
}
.bento-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.bento-card--xl { grid-column: span 2; grid-row: span 2; background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; border-color: transparent; }
.bento-card--wide { grid-column: span 2; }
.bento-icon { position: absolute; top: 24px; left: 24px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--acc-ink); }
.bento-icon .icon { width: 20px; height: 20px; }
.bento-card--xl .bento-icon { border-color: rgba(255, 255, 255, 0.22); color: var(--accent); }
.bento-ill { position: absolute; z-index: -1; top: 22px; right: 22px; width: 42%; max-width: 250px; color: var(--ink); opacity: 0.8; transition: transform 0.7s var(--ease); }
.bento-ill svg { width: 100%; height: auto; }
.bento-card:hover .bento-ill { transform: scale(1.05); }
.bento-card--xl .bento-ill { top: 9%; right: 5%; width: 58%; max-width: 380px; color: #fff; opacity: 0.9; }
.bento-body { display: grid; gap: 8px; max-width: 46ch; padding-right: 44px; }
.bento-card--wide .bento-body { max-width: 62%; }
.bento-title { font-family: var(--serif); font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.1; }
.bento-card--xl .bento-title { font-size: clamp(2rem, 3.2vw, 2.9rem); line-height: 1.04; }
.bento-desc { color: var(--muted); font-size: 0.95rem; }
.bento-card--xl .bento-desc { color: rgba(255, 255, 255, 0.72); font-size: 1rem; }
.bento-lead { margin-top: 14px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.16); font-family: var(--serif); font-style: italic; font-size: 1.14rem; line-height: 1.45; color: #fff; }
.bento-go { position: absolute; right: 22px; bottom: 22px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); transition: transform 0.5s var(--spring), background-color 0.3s, color 0.3s; }
.bento-card:hover .bento-go { transform: rotate(-45deg); background: var(--ink); color: var(--paper); border-color: var(--ink); }
.bento-card--xl .bento-go { border-color: rgba(255, 255, 255, 0.3); }
.bento-card--xl:hover .bento-go { background: #fff; color: var(--navy); border-color: #fff; }

/* ---- beliefs: pinned aside + scrolling principles ---- */
.h-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.beliefs { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(56px, 8vw, 112px); }
.belief { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 28px; padding-top: 28px; border-top: 1px solid var(--line-strong); }
.belief-ill { grid-row: span 2; width: 96px; height: 96px; display: grid; place-items: center; color: var(--ink); }
.belief-ill svg { width: 100%; height: 100%; }
.belief h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.08; }
.belief p { margin-top: 12px; font-family: var(--serif); color: var(--muted); font-size: 1.1rem; max-width: 40ch; }

/* ---- statement: word scrub ---- */
.home .h-statement {
  padding-block: var(--h-sec); border-block: 1px solid var(--line);
  background: radial-gradient(60% 80% at 100% 50%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%);
}
.h-statement blockquote { max-width: 62rem; }
.h-scrub { font-family: var(--serif); font-size: clamp(2.2rem, 4.6vw, 4.2rem); line-height: 1.1; letter-spacing: -0.01em; text-wrap: pretty; }
:lang(zh) .h-scrub { letter-spacing: 0.02em; line-height: 1.3; }
.h-scrub .w { transition: opacity 0.25s linear; }
.h-statement cite { display: flex; align-items: center; gap: 14px; margin-top: 36px; font-style: normal; font-size: 0.92rem; font-weight: 700; color: var(--muted); }
.h-statement cite::before { content: ""; width: 34px; height: 2px; background: var(--accent); border-radius: 2px; }

/* ---- engagement: horizontal accordion (JS) / stacked columns (no JS) ---- */
.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stage { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; }
.stage-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; width: 100%; padding: 28px 28px 20px; text-align: left; cursor: default; }
.stage-n { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--muted); }
.stage-t { font-family: var(--serif); font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.08; }
.stage-panel { padding: 0 28px 28px; }
.stage-panel p { font-family: var(--serif); color: var(--ink-soft); font-size: 1.08rem; max-width: 40ch; }
.stage-panel .stage-out { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-family: var(--sans); font-size: 0.9rem; font-weight: 700; color: var(--ink); }
.stage-out .icon { width: 16px; height: 16px; margin-top: 3px; color: var(--acc-ink); }
@media (min-width: 900px) {
  .stages.is-acc { display: flex; min-height: 27rem; container-type: inline-size; }
  .stages.is-acc .stage { flex: 1 1 0; transition: flex-grow 0.8s var(--ease), border-color 0.3s; }
  .stages.is-acc .stage.is-open { flex-grow: 2.6; background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; border-color: transparent; }
  .stages.is-acc .stage-btn { flex: 1; cursor: pointer; }
  .stages.is-acc .stage:not(.is-open):hover { border-color: var(--line-strong); }
  .stages.is-acc .stage::after {
    content: "+"; position: absolute; left: 28px; bottom: 28px; width: 34px; height: 34px;
    display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%;
    font-size: 1.1rem; color: var(--muted); pointer-events: none;
    transition: opacity 0.3s, transform 0.5s var(--spring);
  }
  .stages.is-acc .stage.is-open::after { opacity: 0; transform: scale(0.6) rotate(45deg); }
  .stages.is-acc .stage-panel {
    position: absolute; left: 0; bottom: 0; width: calc((100cqw - 36px) * 2.6 / 5.6);
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity 0.3s, transform 0.5s var(--ease), visibility 0s 0.3s;
  }
  .stages.is-acc .stage.is-open .stage-panel { opacity: 1; visibility: visible; transform: none; transition: opacity 0.5s 0.3s, transform 0.7s 0.3s var(--ease), visibility 0s; }
  .stages.is-acc .stage.is-open .stage-n { color: var(--accent); }
  .stages.is-acc .stage.is-open .stage-panel p { color: rgba(255, 255, 255, 0.8); }
  .stages.is-acc .stage.is-open .stage-out { color: #fff; border-top-color: rgba(255, 255, 255, 0.16); }
  .stages.is-acc .stage.is-open .stage-out .icon { color: var(--accent); }
}

/* ---- handover document ---- */
.h-handover-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.doc {
  position: relative; padding: clamp(24px, 3vw, 40px);
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--r-panel);
  box-shadow: var(--shadow), 12px 14px 0 -1px var(--paper), 12px 14px 0 0 var(--line-strong);
  transform: rotate(-1deg);
}
.doc-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 2px solid var(--ink); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.doc-mark { width: 28px; }
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-row { display: flex; align-items: center; gap: 14px; padding-block: 13px; border-bottom: 1px dashed var(--line-strong); font-size: 0.98rem; }
.doc-tick { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 5px; border: 1.5px solid var(--acc-ink); background: var(--acc-ink); color: #fff; transition: background-color 0.3s, color 0.3s, transform 0.45s var(--spring); }
.doc-tick .icon { width: 14px; height: 14px; }
.doc.is-live .doc-row:not(.is-done) .doc-tick { background: transparent; color: transparent; border-color: var(--line-strong); transform: scale(0.85); }
.doc-sign { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: 22px; }
.doc-sig { width: 150px; height: auto; color: var(--ink); }
.doc-sig path { stroke-dasharray: 420; stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s var(--ease); }
.doc-signed { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border: 1.5px solid var(--acc-ink); border-radius: var(--r-pill); color: var(--acc-ink); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; transform: rotate(-4deg); transition: opacity 0.3s, transform 0.6s var(--spring); }
.doc-signed .icon { width: 14px; height: 14px; }
.doc.is-live:not(.is-signed) .doc-sig path { stroke-dashoffset: 420; }
.doc.is-live:not(.is-signed) .doc-signed { opacity: 0; transform: rotate(-4deg) scale(1.35); }

/* ---- enterprise review ---- */
.ent-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 14px; align-items: stretch; }
.ent-docs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; }
.ent-doc { background: var(--paper); padding: clamp(24px, 2.6vw, 36px); }
.ent-doc > .icon { width: 26px; height: 26px; color: var(--acc-ink); }
.ent-doc h3 { margin-top: 20px; font-family: var(--serif); font-weight: 400; font-size: 1.45rem; line-height: 1.15; }
.ent-doc p { margin-top: 10px; color: var(--muted); font-size: 0.95rem; max-width: 40ch; }
.ent-sec { display: flex; flex-direction: column; padding: clamp(28px, 3vw, 40px); background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; border-radius: var(--r-panel); }
.ent-sec h3 { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.15; }
.ent-sec h3 .icon { color: var(--accent); }
.ent-sec ul { list-style: none; margin: 20px 0 0; padding: 0; }
.ent-sec li { display: flex; gap: 12px; padding-block: 11px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.93rem; color: rgba(255, 255, 255, 0.82); }
.ent-sec li .icon { width: 16px; height: 16px; margin-top: 4px; color: var(--accent); }
.ent-profile { margin-top: auto; padding-top: 26px; display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; text-underline-offset: 4px; }
.ent-profile:hover { text-decoration: underline; }

/* ---- integrations marquee ---- */
.home .h-integrations { padding-block: clamp(3.5rem, 6vw, 5.5rem); border-block: 1px solid var(--line); overflow: hidden; }
.h-integrations h2 { margin-bottom: 26px; font-family: var(--sans); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.h-marquee { 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); }
.h-marquee-track { display: flex; width: max-content; animation: hMarquee 40s linear infinite; }
.h-marquee:hover .h-marquee-track { animation-play-state: paused; }
.h-marquee-row { display: flex; list-style: none; margin: 0; padding: 0; }
.h-marquee-row li { display: flex; align-items: center; gap: 0.55em; padding-right: clamp(2.5rem, 5vw, 4.5rem); white-space: nowrap; font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.15; color: color-mix(in srgb, var(--ink) 40%, transparent); transition: color 0.3s; }
.h-marquee-row li::before { content: ""; width: 0.16em; height: 0.16em; border-radius: 50%; background: var(--accent); }
.h-marquee-row li:hover { color: var(--ink); }
@keyframes hMarquee { to { transform: translateX(-50%); } }

/* ---- FAQ ---- */
.h-faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.h-faq .faq-list { max-width: none; }

/* ---- closing CTA ---- */
.h-cta {
  padding-block: var(--h-sec); color: #fff;
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(0, 180, 216, 0.14), transparent 60%),
    radial-gradient(700px 380px at 0% 110%, rgba(76, 116, 168, 0.16), transparent 65%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.h-cta-inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.h-cta h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.8rem, 6vw, 5.4rem); line-height: 1; letter-spacing: -0.015em; text-wrap: balance; }
:lang(zh) .h-cta h2 { letter-spacing: 0.02em; line-height: 1.15; }
.h-cta-side p { font-family: var(--serif); color: rgba(255, 255, 255, 0.72); font-size: 1.14rem; max-width: 36ch; }
.h-cta .h-cta-row { margin-top: 28px; gap: 22px; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3); }
.h-cta-mail { font-weight: 700; border-bottom: 1px solid rgba(255, 255, 255, 0.35); transition: border-color 0.3s; }
.h-cta-mail:hover { border-bottom-color: #fff; }
.h-cta .h-cta-side .status-line { margin-top: 24px; font-family: var(--sans); font-size: 0.88rem; color: rgba(255, 255, 255, 0.65); }

/* ---- home responsive: every split collapses to one column below 1024px ---- */
@media (max-width: 1023px) {
  .h-head, .h-hero-grid, .h-split, .h-handover-grid, .ent-grid, .h-faq-grid, .h-cta-inner { grid-template-columns: 1fr; }
  .h-head { align-items: start; gap: 18px; }
  .h-commits-grid { grid-template-columns: 1fr 1fr; }
  .h-commit:nth-child(odd) { border-left: 0; padding-left: 0; }
  .h-commit:nth-child(n+3) { border-top: 1px solid var(--line); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc { transform: none; margin-right: 12px; }
}
@media (max-width: 899px) {
  .stages { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .h-pill { width: 1.6em; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento-card, .bento-card--xl, .bento-card--wide { grid-column: auto; grid-row: auto; min-height: 15rem; }
  .bento-card--wide .bento-body { max-width: none; }
  .bento-ill { width: 36%; }
  .bento-card--xl .bento-ill { width: 44%; }
  .belief { grid-template-columns: 1fr; }
  .belief-ill { grid-row: auto; width: 64px; height: 64px; margin-bottom: 16px; }
  .stages { grid-template-columns: 1fr; }
  .ent-docs { grid-template-columns: 1fr; }
  .con-rows li { grid-template-columns: 10px minmax(0, 1fr); }
  .con-state { grid-column: 2; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .con-log-track, .h-marquee-track, .con-pulse::after { animation: none; }
  .bento-card, .bento-ill, .bento-go, .stage, .stage-panel, .doc-tick, .doc-signed, .doc-sig path { transition: none !important; }
  .note-title, .ind-card, .sol-shot img, .tl-fill { transition: none !important; }
}

/* ==========================================================================
   Pages v7 — editorial subpages
   ========================================================================== */

.pages > section { padding-block: var(--h-sec); }
.pages .page-hero { padding-bottom: 0; }
.pages .h-cta { padding-block: var(--h-sec); }

.p-kicker {
  margin: 0;
  padding-top: clamp(1.75rem, 3vw, 2.5rem);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  line-height: 1.15;
}
.pages .h-commits { border-bottom: 1px solid var(--line); }
.pages .h-commit-l {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 24ch;
}

.svc-index {
  position: sticky;
  top: var(--nav-h);
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.svc-index-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-block: 12px;
  scrollbar-width: none;
}
.svc-index-row::-webkit-scrollbar { display: none; }
.svc-index a {
  flex: none;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-btn);
  background: var(--paper-raised);
  font-size: 0.84rem;
  font-weight: 700;
}
.svc-index a:hover { border-color: var(--ink); color: var(--ink); }

.svc-splits { padding-bottom: var(--h-sec); }
.svc-split {
  scroll-margin-top: calc(var(--nav-h) + 3.75rem);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
  padding-block: clamp(3.25rem, 6vw, 5.5rem);
  border-top: 1px solid var(--line);
}
.svc-split:first-child { border-top: 0; }
.svc-pin h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  line-height: 1.08;
  max-width: 16ch;
}
.svc-desc {
  margin-top: 16px;
  font-family: var(--serif);
  color: var(--ink-soft);
  font-size: 1.12rem;
  max-width: 36ch;
}
.p-ill { width: min(100%, 220px); margin-top: 28px; color: var(--ink); }
.p-ill svg { width: 100%; height: auto; }
.svc-detail h3 {
  margin-top: 28px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.svc-detail h3:first-child { margin-top: 0; }
.svc-receive {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.45;
  max-width: 42ch;
}
.svc-time {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.svc-time .icon { color: var(--acc-ink); }
.svc-related { margin-top: 22px; }

.sol-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding-block: clamp(3rem, 6vw, 5.5rem);
  border-top: 1px solid var(--line);
}
.sol-row:first-child { border-top: 0; padding-top: 0; }
.sol-row--flip .sol-copy { order: 2; }
.sol-row--text { grid-template-columns: minmax(0, 46rem); }
.sol-copy h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 3.4vw, 3.1rem);
  line-height: 1.08;
  max-width: 16ch;
}
.sol-copy h3 {
  margin-top: 26px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.sol-copy p {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 1.14rem;
  color: var(--ink-soft);
  max-width: 46ch;
}
.sol-services { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.sol-services a { font-family: var(--sans); font-weight: 700; font-size: 0.95rem; border-bottom: 1px solid var(--line-strong); }
.sol-services a:hover { border-bottom-color: var(--ink); }
.sol-demo { margin-top: 22px; }
.sol-note { font-family: var(--sans) !important; font-size: 0.86rem !important; color: var(--muted) !important; }
.sol-shot {
  display: block;
  overflow: hidden;
  border-radius: var(--r-panel);
  border: 1px solid var(--line);
  background: var(--paper-raised);
}
.sol-shot img {
  width: 100%;
  height: auto;
  transition: transform 0.7s var(--ease);
}
.sol-row:hover .sol-shot img { transform: scale(1.04); }
.sol-disclaimer { padding-top: 0 !important; }
.sol-disclaimer p {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 46rem;
}

.ind-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 14px;
}
.ind-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 16rem;
  padding: clamp(22px, 2.4vw, 32px);
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  transition: transform 0.5s var(--ease);
}
.ind-card:hover { transform: translateY(-4px); }
.ind-card--2 { grid-column: span 2; }
.ind-card--1 { grid-column: span 1; }
.ind-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  line-height: 1.1;
}
.ind-card p { color: var(--ink-soft); font-size: 0.98rem; max-width: 42ch; }
.ind-systems { margin-top: auto; color: var(--ink) !important; font-weight: 650; }

.tl { position: relative; }
.tl-track {
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line-strong);
}
.tl-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform-origin: top center;
}
.tl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(3rem, 6vw, 5rem); }
.tl-item { position: relative; padding-left: 64px; }
.tl-mark {
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  font-size: 0.72rem;
  font-weight: 800;
}
.tl-item h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  line-height: 1.1;
}
.tl-item > p { margin-top: 12px; font-family: var(--serif); color: var(--ink-soft); font-size: 1.12rem; max-width: 52ch; }
.tl-gets {
  margin-top: 18px !important;
  font-family: var(--sans) !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted) !important;
}

.commit-grid, .stack-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.commit-card, .stack-card {
  padding: clamp(22px, 2.6vw, 32px);
  border-top: 2px solid var(--ink);
  background: var(--paper-raised);
}
.commit-card h3, .stack-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.55rem;
}
.commit-card p, .stack-card p { margin-top: 10px; color: var(--muted); max-width: 46ch; }

.term-row {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(16px, 3vw, 48px);
  padding-block: 28px;
  border-top: 1px solid var(--line);
}
.term-row:first-child { border-top: 0; padding-top: 0; }
.term-row h3 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; }
.term-row p { font-family: var(--serif); color: var(--ink-soft); font-size: 1.08rem; }

.about-story-grid, .mv-split, .name-split, .founder-split, .contact-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}
.about-copy p, .mv-split p, .name-split p, .name-mark p {
  font-family: var(--serif);
  color: var(--ink-soft);
  font-size: 1.16rem;
  margin-bottom: 16px;
  max-width: 46ch;
}
.mv-split h2, .name-split h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.08;
  margin-bottom: 16px;
}
.about-scrub { margin: 0; }
.about-scrub .h-scrub { font-size: clamp(1.7rem, 2.8vw, 2.5rem); }
.name-pills { display: flex; gap: 12px; margin-bottom: 18px; }
.name-pills .h-pill { width: 4.6rem; height: 2rem; }
.name-mark h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; margin-bottom: 8px; }
.founder-card {
  padding: clamp(28px, 3vw, 40px);
  background: var(--navy);
  color: #fff;
}
.founder-name { font-family: var(--serif); font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1.05; }
.founder-card p { margin-top: 10px; }
.founder-sub { color: rgba(255, 255, 255, 0.72); font-family: var(--serif); font-size: 1.1rem; }
.founder-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; align-content: center; }
.founder-facts li { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.founder-facts .icon { color: var(--acc-ink); }

.contact-aside h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3vw, 2.6rem); }
.contact-steps { list-style: none; margin: 22px 0 8px; padding: 0; display: grid; gap: 16px; }
.contact-steps li { display: flex; gap: 14px; align-items: flex-start; }
.step-num {
  flex: none;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-size: 0.78rem;
  font-weight: 800;
}
.scope-help { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.scope-help h3 { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; margin-bottom: 12px; }
.form-notice { margin-top: 12px; font-size: 0.85rem; color: var(--muted); }

.notes-list { border-bottom: 1px solid var(--line); }
.note-row {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(12px, 2vw, 28px);
  align-items: baseline;
  padding-block: clamp(1.6rem, 3vw, 2.4rem);
  border-top: 1px solid var(--line);
}
.note-meta { font-size: 0.84rem; font-weight: 700; color: var(--muted); }
.note-title {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  line-height: 1.15;
  transition: transform 0.7s var(--ease);
}
.note-row:hover .note-title { transform: translateX(8px); }
.note-sum { color: var(--muted); font-size: 0.98rem; }
.post { padding-top: clamp(2.75rem, 6vw, 4.75rem); }
.post-hero { margin-top: 8px; }
.post-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 4.6vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 56rem;
  text-wrap: balance;
}
.post-meta { margin-top: 22px; font-size: 0.88rem; font-weight: 700; color: var(--muted); }
.post-body { max-width: 65ch; }
.post .prose p { font-size: 1.16rem; line-height: 1.65; }

.nf { min-height: 100dvh; display: grid; place-items: center; padding: clamp(32px, 6vw, 72px) 24px; text-align: left; }
.nf-inner { width: min(56rem, 100%); }
.nf .nf-mark { width: 72px; height: 72px; margin-bottom: 18px; }
.nf h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 4.6vw, 4.6rem);
  line-height: 1.02;
  max-width: 16ch;
}
.nf .lede { margin-top: 18px; font-family: var(--serif); font-size: 1.2rem; color: var(--ink-soft); max-width: 36rem; }
.nf p[lang] { margin-top: 8px; color: var(--muted); font-family: var(--serif); }
.nf .btn { margin-top: 28px; }

@media (max-width: 1023px) {
  .page-hero-split,
  .svc-split,
  .sol-row,
  .sol-row--flip,
  .about-story-grid,
  .mv-split,
  .name-split,
  .founder-split,
  .contact-split,
  .term-row,
  .note-row {
    grid-template-columns: 1fr;
  }
  .sol-row--flip .sol-copy { order: 0; }
  .ind-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .commit-grid, .stack-grid { grid-template-columns: 1fr; }
  .page-hero-split { align-items: start; }
}
@media (max-width: 640px) {
  .ind-grid { grid-template-columns: 1fr; }
  .ind-card, .ind-card--2, .ind-card--1 { grid-column: auto; min-height: 0; }
  .h-commits-grid { grid-template-columns: 1fr; }
}
