/* ==========================================================================
   AMB Consulting Group · v2 corporate site
   Layout concept: cinematic dark "darkspace" — one ink ground, ivory serif
   display type, a single warm-gold accent used sparingly, hairline rules,
   and very generous vertical rhythm. Deliberately dark-first (single look).
   ========================================================================== */
:root {
  color-scheme: dark;
  /* colour tokens */
  --ink: #0a0f17;          /* dominant ground */
  --ink-raised: #101722;   /* quiet surfaces */
  --text: #ece6da;         /* ivory */
  --muted: #9aa3b0;        /* secondary text */
  --line: rgba(236, 230, 218, 0.13); /* hairlines */
  --gold: #c6a46a;         /* the one accent */
  --gold-soft: rgba(198, 164, 106, 0.55);
  --scrim: 10, 15, 23;     /* rgb of --ink, for gradients */
  /* type tokens */
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --latin: "Cormorant Garamond", "Noto Serif SC", Georgia, "Times New Roman", serif;
  /* layout tokens */
  --maxw: 1240px;
  --gutter: clamp(16px, 5vw, 72px);
  --hh: 76px;              /* header height */
  --section: clamp(88px, 12vw, 184px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hh) + 16px); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.85;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--gold-soft); text-underline-offset: 0.3em; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 1px; }
::selection { background: rgba(198, 164, 106, 0.35); color: #fff; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.25; margin: 0; letter-spacing: 0.02em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--gold); color: var(--ink); padding: 8px 14px; text-decoration: none; }
.skip:focus { top: 12px; }
.selectable { user-select: text; -webkit-user-select: text; }

/* --- review markers: placeholders & tags (meant to be spotted) ---------- */
.ph { text-decoration: underline dotted var(--gold); text-decoration-thickness: 1.5px; text-underline-offset: 0.28em; }
.tag {
  display: inline-block; font-family: var(--sans); font-size: 0.8125rem; font-weight: 400; line-height: 1.5;
  letter-spacing: 0.02em; color: var(--gold); border: 1px dotted var(--gold-soft);
  padding: 0 0.5em; margin-inline: 0.2em; vertical-align: 0.12em; white-space: normal;
}
.lic { font-family: var(--sans); font-size: max(1em, 0.9375rem); font-weight: 500; letter-spacing: 0.02em; white-space: nowrap; color: var(--text); }

/* --- eyebrows & shared type ---------------------------------------------- */
.eyebrow {
  font-family: var(--sans); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--gold); margin: 0 0 1.6rem;
  display: flex; align-items: center; gap: 0.9rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); opacity: .8; flex: none; }
.display { font-size: clamp(2rem, 4.2vw, 3.5rem); font-weight: 600; line-height: 1.22; text-wrap: balance; }
.split-head .display { font-size: clamp(2rem, 3.6vw, 3.125rem); }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.8; color: var(--text); font-weight: 400; }
.fine { font-size: 0.875rem; color: var(--muted); line-height: 1.75; }
.text-link {
  display: inline-flex; align-items: center; gap: 0.6em; margin-top: 2rem;
  font-size: 0.9375rem; letter-spacing: 0.08em; text-decoration: none; color: var(--text);
  padding-bottom: 6px; border-bottom: 1px solid var(--gold-soft); transition: border-color .4s var(--ease), gap .4s var(--ease);
}
.text-link:hover { border-color: var(--gold); gap: 0.9em; }
.btn {
  display: inline-flex; align-items: center; gap: 0.6em; min-height: 48px; padding: 0 1.8em;
  font-family: var(--sans); font-size: 0.9375rem; letter-spacing: 0.14em; color: var(--text);
  background: transparent; border: 1px solid var(--gold); border-radius: 0; cursor: pointer; text-decoration: none;
  transition: background .4s var(--ease), color .4s var(--ease);
}
.btn:hover { background: var(--gold); color: var(--ink); }
.btn.is-pending, .biz-link.is-pending { border-color: var(--line); color: var(--muted); cursor: default; }
.btn.is-pending:hover { background: transparent; color: var(--muted); }

/* --- draft bar + header -------------------------------------------------- */
.draft-bar { position: relative; z-index: 31; background: #05080d; color: var(--muted); font-size: 0.8125rem; letter-spacing: 0.06em; padding-block: 6px; text-align: center; border-bottom: 1px solid var(--line); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; height: var(--hh);
  background: transparent; border-bottom: 1px solid transparent;
  transition: background .5s var(--ease), border-color .5s var(--ease), backdrop-filter .5s;
}
.site-header.is-solid, .site-header[data-open] {
  background: rgba(var(--scrim), 0.86); border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: baseline; gap: 14px; text-decoration: none; color: var(--text); }
.brand-mark { font-family: var(--latin); font-weight: 600; font-size: 1.75rem; letter-spacing: 0.22em; line-height: 1; }
.brand-sub { font-family: var(--sans); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); padding-left: 14px; border-left: 1px solid var(--gold-soft); line-height: 1.2; }
.site-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.site-nav ul { display: flex; gap: clamp(18px, 2.6vw, 40px); }
.site-nav a { font-size: 0.9375rem; letter-spacing: 0.1em; text-decoration: none; color: rgba(236, 230, 218, 0.82); padding-block: 8px; border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.site-nav a:hover { color: #fff; }
.site-nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--gold); }
.lang { position: relative; }
.lang-btn { font: inherit; font-size: 0.875rem; letter-spacing: 0.12em; color: var(--muted); background: none; border: 1px solid var(--line); padding: 6px 12px; cursor: pointer; display: inline-flex; gap: 8px; }
.lang-btn [aria-current] { color: var(--text); }
a.lang-btn { text-decoration: none; color: var(--text); border-color: var(--gold-soft); transition: border-color .3s, color .3s; }
a.lang-btn:hover { color: #fff; border-color: var(--gold); }
.lang-sep { opacity: .5; }
.lang-note {
  position: absolute; right: 0; top: calc(100% + 10px); white-space: nowrap; font-size: 0.8125rem; letter-spacing: 0.08em;
  color: var(--gold); background: var(--ink-raised); border: 1px solid var(--line); padding: 6px 12px;
  opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .3s, transform .3s;
}
.lang:hover .lang-note, .lang-btn:focus-visible + .lang-note, .lang.is-open .lang-note { opacity: 1; transform: none; }
.nav-toggle { display: none; }

/* --- English pages: Cormorant Garamond display + Inter body (Noto stays as CJK fallback) --- */
html[lang="en"] {
  --serif: "Cormorant Garamond", Georgia, "Noto Serif SC", "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Arial, "Noto Sans SC", system-ui, sans-serif;
}
html[lang="en"] body { line-height: 1.7; letter-spacing: 0; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { font-weight: 500; letter-spacing: 0; line-height: 1.12; }
html[lang="en"] .hero h1 { font-weight: 500; font-size: clamp(2.75rem, 6.8vw, 6rem); line-height: 1.02; letter-spacing: -0.01em; max-width: 13em; }
html[lang="en"] .page-hero h1 { font-weight: 500; font-size: clamp(2.75rem, 5.6vw, 4.75rem); line-height: 1.04; letter-spacing: -0.005em; }
html[lang="en"] .display { font-size: clamp(2.25rem, 4.4vw, 3.75rem); line-height: 1.1; }
html[lang="en"] .split-head .display { font-size: clamp(2.25rem, 3.8vw, 3.375rem); }
html[lang="en"] .hero-sub { letter-spacing: 0.01em; }
html[lang="en"] .lead { line-height: 1.65; }
html[lang="en"] .quote p { font-weight: 400; font-style: italic; font-size: clamp(3rem, 7.6vw, 6.5rem); line-height: 1.02; letter-spacing: -0.01em; }
html[lang="en"] .biz h3, html[lang="en"] .partner h3 { font-size: clamp(1.75rem, 2.6vw, 2.375rem); }
html[lang="en"] .insight h3 { font-size: clamp(1.5rem, 2vw, 1.75rem); line-height: 1.25; }
html[lang="en"] .essay h3 { font-size: clamp(1.875rem, 3vw, 2.625rem); }
html[lang="en"] .principle-list h3 { font-size: clamp(1.625rem, 2.2vw, 2rem); }
html[lang="en"] .legal-body h2 { font-size: clamp(1.875rem, 2.8vw, 2.5rem); }
html[lang="en"] .risk-list h3 { font-size: 1.375rem; }
html[lang="en"] .scope-grid h3 { font-size: 1.75rem; }
html[lang="en"] .approach dt, html[lang="en"] .facts dd, html[lang="en"] .partner-by-v { font-size: 1.3125rem; }
html[lang="en"] .approach > div { grid-template-columns: 7.5em minmax(0, 1fr); }
html[lang="en"] .contact-list > div { grid-template-columns: 5em minmax(0, 1fr); }
html[lang="en"] .fig-pre { font-family: var(--sans); font-weight: 400; font-size: 0.2em; letter-spacing: 0.06em; }
html[lang="en"] .site-nav a, html[lang="en"] .text-link, html[lang="en"] .btn { letter-spacing: 0.06em; }
html[lang="en"] .figure dt { letter-spacing: 0.02em; }
html[lang="en"] .fig { font-size: clamp(3.25rem, 5.4vw, 5.25rem); }
.fig-word { font-style: italic; font-weight: 500; }

/* pull the first section under the transparent header */
main > .hero:first-child, main > .page-hero:first-child { margin-top: calc(-1 * var(--hh)); }

/* --- hero (canvas night aerial) ----------------------------------------- */
.hero, .page-hero { position: relative; isolation: isolate; overflow: hidden; background: #070b12; display: flex; align-items: flex-end; }
.hero { min-height: min(78vh, 760px); padding-block: calc(var(--hh) + 48px) clamp(64px, 9vw, 120px); }
.page-hero { min-height: min(52vh, 500px); padding-block: calc(var(--hh) + 48px) clamp(48px, 6vw, 88px); }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-drift { position: absolute; inset: 0; transform-origin: 62% 40%; }
.hero-drift canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(var(--scrim), 0.88) 0%, rgba(var(--scrim), 0.55) 38%, rgba(var(--scrim), 0) 72%),
    linear-gradient(0deg, rgba(var(--scrim), 1) 0%, rgba(var(--scrim), 0.35) 30%, rgba(var(--scrim), 0) 55%),
    linear-gradient(180deg, rgba(var(--scrim), 0.65) 0%, rgba(var(--scrim), 0) 22%);
}
.page-hero .hero-scrim { background:
    linear-gradient(90deg, rgba(var(--scrim), 0.9) 0%, rgba(var(--scrim), 0.6) 45%, rgba(var(--scrim), 0.2) 100%),
    linear-gradient(0deg, rgba(var(--scrim), 1) 0%, rgba(var(--scrim), 0) 60%),
    linear-gradient(180deg, rgba(var(--scrim), 0.7) 0%, rgba(var(--scrim), 0) 30%); }
.hero-content { position: relative; width: 100%; }
.hero h1 { font-weight: 900; font-size: clamp(2.5rem, 6.4vw, 5.6rem); line-height: 1.12; letter-spacing: 0.04em; max-width: 14em; text-wrap: balance; }
.page-hero h1 { font-weight: 900; font-size: clamp(2.25rem, 5vw, 4.25rem); line-height: 1.15; letter-spacing: 0.04em; }
.hero-sub { margin-top: clamp(20px, 2.4vw, 32px); font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: rgba(236, 230, 218, 0.82); max-width: 34em; font-weight: 300; letter-spacing: 0.06em; }
.hero-note { margin-top: 18px; }
.hero-cue { position: absolute; right: var(--gutter); bottom: clamp(48px, 8vw, 110px); width: 1px; height: 72px; overflow: hidden; }
.hero-cue-line { position: absolute; inset: 0; background: linear-gradient(180deg, transparent, var(--gold)); animation: cue 3.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
@keyframes drift { from { transform: scale(1.0) translate3d(0, 0, 0); } to { transform: scale(1.07) translate3d(-1.2%, 0.8%, 0); } }
.hero-drift.is-drifting { animation: drift 90s linear infinite alternate; }

/* --- sections ----------------------------------------------------------- */
.section { padding-block: var(--section); border-top: 1px solid var(--line); }
main > .hero + .section, main > .page-hero + .section { border-top: 0; }
.section-head { margin-bottom: clamp(48px, 6vw, 88px); }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head--row .text-link { margin-top: 0; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.split-head .fine { margin-top: 20px; }
.split-body { max-width: 40em; color: rgba(236, 230, 218, 0.86); }

/* numbers band */
.numbers { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-raised) 100%); }
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); }
.figure { padding: clamp(28px, 3vw, 44px) clamp(16px, 2.4vw, 36px) 0 0; border-right: 1px solid var(--line); margin-right: clamp(16px, 2.4vw, 36px); display: flex; flex-direction: column; align-items: flex-start; }
.figure:last-child { border-right: 0; margin-right: 0; }
.figure dd { display: contents; }
.fig { order: 0; font-family: var(--latin); font-weight: 500; font-size: clamp(3.5rem, 6.4vw, 6rem); line-height: 0.95; color: var(--text); letter-spacing: 0.01em; font-variant-numeric: lining-nums; white-space: nowrap; }
.fig-pre { font-family: var(--serif); font-size: 0.32em; font-weight: 600; color: var(--gold); margin-right: 0.25em; vertical-align: 0.55em; }
.fig-cn { font-family: var(--serif); font-weight: 900; font-size: clamp(3rem, 6vw, 5.5rem); }
.figure dt { order: 1; font-size: 1rem; color: var(--text); letter-spacing: 0.08em; margin-top: 18px; }
.fig-src { order: 2; font-size: 0.8125rem; color: var(--muted); letter-spacing: 0.04em; margin-top: 10px; }
.figure .tag { order: 3; margin: 6px 0 0; }

/* business rows */
.biz-list { border-top: 1px solid var(--line); counter-reset: biz; }
.biz {
  display: grid; grid-template-columns: 72px minmax(0, 4fr) minmax(0, 5fr) minmax(0, 2.6fr); gap: clamp(20px, 3vw, 48px);
  align-items: baseline; padding-block: clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line);
}
.biz-n, .pr-n, .essay-n, .risk-n, .tl-year { font-variant-numeric: lining-nums; }
.biz-n, .pr-n, .essay-n, .risk-n { font-family: var(--latin); font-size: 1.25rem; color: var(--gold); letter-spacing: 0.08em; }
.biz h3 { font-size: clamp(1.5rem, 2.4vw, 2.125rem); }
.biz-kind { color: var(--muted); font-size: 0.9375rem; letter-spacing: 0.06em; margin: 0.6em 0 0; }
.biz-desc { color: rgba(236, 230, 218, 0.82); margin: 0; }
.biz-link { justify-self: end; font-size: 0.9375rem; letter-spacing: 0.08em; text-decoration: none; padding-bottom: 6px; border-bottom: 1px solid var(--gold-soft); white-space: nowrap; }
.biz-link:hover { border-color: var(--gold); }
.biz-muted { opacity: 0.5; }
.biz-muted .biz-n { color: var(--muted); }

/* insights */
.insight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 64px); }
.insight { border-top: 1px solid var(--gold-soft); padding-top: 28px; }
.insight-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 0.8125rem; letter-spacing: 0.16em; color: var(--muted); margin-bottom: 22px; }
.insight-meta span:first-child { color: var(--gold); }
.insight h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.45; margin-bottom: 16px; }
.insight h3 a { text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); }
.insight h3 a:hover { background-size: 100% 1px; color: var(--text); }
.insight p:not(.insight-meta) { color: var(--muted); }

/* philosophy */
.philosophy { text-align: left; background: radial-gradient(ellipse 70% 80% at 85% 50%, rgba(198, 164, 106, 0.07), transparent 70%), var(--ink); }
.quote { margin: 0; }
.quote p { font-family: var(--serif); font-weight: 900; font-size: clamp(2.75rem, 7vw, 6rem); line-height: 1.15; letter-spacing: 0.05em; }
.quote-sub { margin-top: 2.2rem; color: var(--muted); max-width: 32em; font-size: 1.0625rem; }

/* contact band */
.contact-band-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; flex-wrap: wrap; }
.contact-band-side { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.contact-band-side .btn { margin-top: 18px; }
.contact-line { display: flex; gap: 20px; margin: 0; }
.contact-k { color: var(--muted); letter-spacing: 0.12em; min-width: 3em; }

/* about */
.approach { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.approach > div { display: grid; grid-template-columns: 6em minmax(0, 1fr); gap: 24px; padding-block: 24px; border-bottom: 1px solid var(--line); }
.approach dt { font-family: var(--serif); font-weight: 600; font-size: 1.125rem; color: var(--text); }
.approach dd { margin: 0; color: rgba(236, 230, 218, 0.8); }
.principle-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.principle-list li { padding: 40px clamp(16px, 2vw, 32px) 0 0; border-right: 1px solid var(--line); margin-right: clamp(16px, 2vw, 32px); }
.principle-list li:last-child { border-right: 0; margin-right: 0; }
.pr-n { display: block; font-size: 2.25rem; line-height: 1; margin-bottom: 28px; }
.principle-list h3 { font-size: clamp(1.375rem, 2vw, 1.75rem); margin-bottom: 14px; }
.principle-list p { color: var(--muted); }
.timeline { border-left: 1px solid var(--line); padding-left: clamp(24px, 3vw, 48px); }
.timeline li { position: relative; padding-bottom: 40px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: calc(-1 * clamp(24px, 3vw, 48px) - 4px); top: 0.75em; width: 7px; height: 7px; border: 1px solid var(--gold); background: var(--ink); transform: rotate(45deg); }
.tl-year { display: block; font-family: var(--latin); font-size: 1.75rem; color: var(--gold); line-height: 1.2; margin-bottom: 6px; }
.timeline p { color: rgba(236, 230, 218, 0.84); }

/* businesses page */
.biz-detail { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.biz-detail-head .biz-n { display: block; font-size: 2.5rem; line-height: 1; margin-bottom: 28px; }
.biz-detail-body { max-width: 40em; color: rgba(236, 230, 218, 0.86); }
.biz-detail-body .btn { margin-top: 32px; }
.facts { margin: 32px 0 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.facts > div { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 0.8125rem; color: var(--gold); letter-spacing: 0.16em; }
.facts dd { margin: 4px 0 0; font-family: var(--serif); font-size: 1.125rem; color: var(--text); }
.broker-box { margin-top: 32px; padding: 28px clamp(20px, 3vw, 36px); border: 1px solid var(--line); border-left: 2px solid var(--gold); background: var(--ink-raised); }
.broker-box p { margin-bottom: 0.4em; }
.broker-box .eyebrow { margin-bottom: 1rem; }
.broker-name { font-family: var(--serif); font-size: 1.375rem; font-weight: 600; color: var(--text); }
.broker-rel { color: var(--muted); }
.scope-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 96px); }
.scope-grid h3 { font-size: 1.5rem; padding-bottom: 18px; border-bottom: 1px solid var(--gold-soft); margin-bottom: 8px; }
.plain-list li { padding-block: 14px; border-bottom: 1px solid var(--line); color: rgba(236, 230, 218, 0.84); }

/* insights page */
.essay { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(32px, 6vw, 96px); padding-block: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); }
.essay:last-child { border-bottom: 1px solid var(--line); }
.essay-meta { display: flex; flex-direction: column; gap: 10px; font-size: 0.875rem; letter-spacing: 0.14em; color: var(--muted); }
.essay-n { font-size: 2.25rem; line-height: 1; margin-bottom: 8px; }
.essay-status { color: var(--gold); border-top: 1px solid var(--line); padding-top: 10px; align-self: flex-start; }
.essay h3 { font-size: clamp(1.625rem, 2.8vw, 2.375rem); margin-bottom: 22px; }
.essay-body { max-width: 44em; }
.essay-body p:not(.lead) { color: rgba(236, 230, 218, 0.78); }

/* contact */
.contact-list { margin: 40px 0 0; border-top: 1px solid var(--line); }
.contact-list > div { display: grid; grid-template-columns: 4em minmax(0, 1fr); gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.contact-list dt { color: var(--muted); letter-spacing: 0.12em; }
.contact-list dd { margin: 0; }
.form { display: grid; gap: 28px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.875rem; letter-spacing: 0.14em; color: var(--muted); }
.optional { letter-spacing: 0; }
.field input, .field textarea, .field select {
  font: inherit; color: var(--text); background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 10px 0; border-radius: 0; width: 100%; transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 28px;
  background: linear-gradient(45deg, transparent 50%, var(--gold) 50%) right 6px center / 6px 6px no-repeat,
              linear-gradient(-45deg, transparent 50%, var(--gold) 50%) right 0 center / 6px 6px no-repeat;
}
.field select:invalid { color: var(--muted); }
.field select option { color: var(--text); background: var(--ink-raised); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--gold); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.form-foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.form-status { margin: 0; color: var(--gold); font-size: 0.9375rem; }

.contact-aside { margin-top: 28px; }
.form-disclosure { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }

/* partners */
.partner-list { border-top: 1px solid var(--line); }
.partner {
  display: grid; grid-template-columns: 72px minmax(0, 7fr) minmax(0, 3fr); gap: clamp(20px, 3vw, 48px);
  align-items: baseline; padding-block: clamp(36px, 4.4vw, 64px); border-bottom: 1px solid var(--line);
}
.partner-n { font-family: var(--latin); font-size: 1.75rem; line-height: 1; color: var(--gold); letter-spacing: 0.08em; font-variant-numeric: lining-nums; }
.partner h3 { font-size: clamp(1.5rem, 2.4vw, 2.125rem); margin-bottom: 14px; }
.partner-main p { color: rgba(236, 230, 218, 0.82); max-width: 36em; }
.partner-by { display: flex; flex-direction: column; gap: 4px; margin: 0; padding-left: 20px; border-left: 1px solid var(--gold-soft); }
.partner-by-k { font-size: 0.8125rem; letter-spacing: 0.2em; color: var(--gold); }
.partner-by-v { font-family: var(--serif); font-size: 1.125rem; color: var(--text); }
.partner-more { margin-top: 32px; }
.notice-list { margin: 28px 0 0; border-top: 1px solid var(--line); }
.notice-list li { font-size: 0.9375rem; }

/* disclosures */
.legal-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.legal-toc { position: sticky; top: calc(var(--hh) + 32px); }
.legal-toc ol { counter-reset: toc; border-top: 1px solid var(--line); }
.legal-toc li { counter-increment: toc; border-bottom: 1px solid var(--line); }
.legal-toc a { display: flex; gap: 14px; padding-block: 12px; font-size: 0.9375rem; text-decoration: none; color: var(--muted); }
.legal-toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--latin); color: var(--gold); }
.legal-toc a:hover { color: var(--text); }
.legal-body { max-width: 46em; }
.legal-body > section { padding-bottom: clamp(48px, 6vw, 80px); margin-bottom: clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.legal-body > section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.legal-body h2 { font-size: clamp(1.625rem, 2.6vw, 2.25rem); margin-bottom: 24px; }
.legal-body .eyebrow { margin-bottom: 1rem; }
.legal-body p { color: rgba(236, 230, 218, 0.84); }
.risk-list { border-top: 1px solid var(--line); margin-bottom: 24px; }
.risk-list li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.risk-list h3 { font-size: 1.1875rem; margin-bottom: 6px; }
.risk-list p { margin: 0; }

/* --- footer ------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: #070b11; padding-block: clamp(64px, 8vw, 112px) 40px; color: var(--muted); font-size: 0.875rem; line-height: 1.85; }
.foot-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.foot-addr { margin-top: 20px; }
.foot-nav { display: flex; gap: clamp(32px, 6vw, 88px); flex-wrap: wrap; }
.foot-nav li { margin-bottom: 10px; }
.foot-nav a { text-decoration: none; color: rgba(236, 230, 218, 0.8); font-size: 0.9375rem; letter-spacing: 0.06em; }
.foot-nav a:hover { color: var(--gold); }
.foot-legal { padding-top: 36px; max-width: 64em; }
.foot-legal p { margin-bottom: 0.9em; }
.foot-key { color: var(--text); font-size: 0.9375rem; }
.foot-lic { color: rgba(236, 230, 218, 0.82); }
.foot-copy { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.8125rem; letter-spacing: 0.08em; }

/* --- motion ------------------------------------------------------------- */
/* 内容静止时就可见(截图/缩略图不留白)，进入视口时只做轻微上移 */
.js .reveal { transform: translateY(14px); transition: transform 1.4s var(--ease); }
.js .reveal.is-in { transform: none; }
.js .biz-muted.reveal { opacity: 0.5; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { transform: none; }
}

/* --- responsive --------------------------------------------------------- */
@media (max-width: 1080px) {
  .biz { grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr); }
  .biz-link { grid-column: 2 / -1; justify-self: start; }
  .partner { grid-template-columns: 56px minmax(0, 1fr); }
  .partner-by { grid-column: 2; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figure:nth-child(2) { border-right: 0; margin-right: 0; }
  .figure:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 32px; }
  .principle-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principle-list li:nth-child(2) { border-right: 0; margin-right: 0; }
  .principle-list li:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 40px; }
}
@media (max-width: 900px) {
  :root { --hh: 64px; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; font: inherit; font-size: 0.875rem; letter-spacing: 0.16em;
    color: var(--text); background: none; border: 1px solid var(--line); padding: 8px 14px; cursor: pointer; min-height: 40px;
  }
  .nav-toggle-bars { width: 16px; height: 7px; border-block: 1px solid currentColor; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(var(--scrim), 0.97); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 28px;
    display: none;
  }
  .site-header[data-open] .site-nav { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav a { display: block; padding-block: 16px; font-family: var(--serif); font-size: 1.25rem; border-bottom: 0; }
  .site-nav a[aria-current="page"] { color: var(--gold); }
  html[lang="en"] .site-nav a { font-family: var(--serif); font-size: 1.5rem; letter-spacing: 0; }
  .lang { margin-top: 20px; display: flex; align-items: center; gap: 14px; }
  .lang-note { position: static; opacity: 1; transform: none; border: 0; background: none; padding: 0; color: var(--muted); }
  .brand-sub { font-size: 0.6875rem; letter-spacing: 0.24em; padding-left: 10px; }
  .brand { gap: 10px; }
  .brand-mark { font-size: 1.5rem; }
  .split, .biz-detail, .essay, .legal-grid { grid-template-columns: minmax(0, 1fr); }
  .legal-toc { position: static; }
  .insight-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-cue { display: none; }
}
@media (max-width: 600px) {
  .hero { min-height: min(84svh, 620px); }
  .page-hero { min-height: 380px; }
  .hero-scrim { background:
      linear-gradient(0deg, rgba(var(--scrim), 1) 0%, rgba(var(--scrim), 0.6) 40%, rgba(var(--scrim), 0.1) 75%),
      linear-gradient(180deg, rgba(var(--scrim), 0.7) 0%, rgba(var(--scrim), 0) 25%); }
  .biz { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .partner { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .partner-by { grid-column: auto; }
  .biz-link { grid-column: auto; }
  .figures { grid-template-columns: minmax(0, 1fr); }
  .figure { border-right: 0; margin-right: 0; padding-right: 0; }
  .figure:nth-child(n+2) { border-top: 1px solid var(--line); margin-top: 28px; }
  .principle-list { grid-template-columns: minmax(0, 1fr); }
  .principle-list li { border-right: 0; margin-right: 0; padding-right: 0; }
  .principle-list li:nth-child(n+2) { border-top: 1px solid var(--line); margin-top: 32px; }
  .facts, .scope-grid { grid-template-columns: minmax(0, 1fr); }
  .approach > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .contact-band-inner { flex-direction: column; align-items: flex-start; gap: 32px; }
  .contact-line { gap: 16px; }
  .lic { white-space: normal; }
  .brand-sub { display: none; }
  .eyebrow { letter-spacing: 0.16em; gap: 0.7rem; }
  .eyebrow::before { width: 18px; }
}
