/* =========================================================================
   承影智慧 Durendal Systems — Design System
   ------------------------------------------------------------------------
   Single source of truth for visual style. Organised top-down:
     1. Tokens
     2. Reset & base
     3. Typography
     4. Layout primitives
     5. Header / Nav
     6. Footer
     7. Buttons & links
     8. Section patterns (kicker, divider, eyebrow)
     9. Cards (services, principles)
    10. Hero
    11. Inverted (dark) bands
    12. Forms
    13. Utility & responsive
   ========================================================================= */


/* ── 1. Tokens ───────────────────────────────────────────────────────────── */

:root {
  /* Indigo theme — names are kept (--ink / --paper) so cascading components
     stay valid. "ink" now means the readable pale-text color, "paper" the
     deep-indigo background. --accent is a new soft indigo for CTAs, kickers,
     and focus states. */
  --ink:        #E8EAF6;
  --ink-90:     rgba(232, 234, 246, 0.90);
  --ink-75:     rgba(232, 234, 246, 0.75);
  --ink-60:     rgba(232, 234, 246, 0.60);
  --ink-45:     rgba(232, 234, 246, 0.45);
  --ink-30:     rgba(232, 234, 246, 0.30);
  --paper:      #15182B;
  --paper-2:    #1B1F38;
  --paper-soft: #1E223D;

  --accent:     #7C84CC;
  --accent-soft: rgba(124, 132, 204, 0.6);

  --line:       rgba(232, 234, 246, 0.14);
  --line-soft:  rgba(232, 234, 246, 0.07);
  --line-paper: rgba(124, 132, 204, 0.25);

  --maxw:       1180px;
  --gutter:     40px;
  --gutter-sm:  24px;
  --nav-h:      78px;

  --serif:      "Noto Serif TC", "Songti TC", "PingFang TC", "Source Han Serif TC", serif;
  --serif-en:   "Marcellus", "Cormorant Garamond", "Times New Roman", serif;
  --sans:       "Noto Sans TC", "PingFang TC", "Source Han Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
  --mono:       "JetBrains Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;

  --easing:     cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* ── 2. Reset & base ─────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote, dl, dd, form, fieldset {
  margin: 0; padding: 0;
}
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--paper);
  color: var(--ink);
  /* Indigo theme — sans for body to keep small text readable on dark.
     Headings opt back into serif via explicit `font-family` rules below. */
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "palt" 1;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: var(--paper); }

/* ── 3. Typography ───────────────────────────────────────────────────────── */

.serif    { font-family: var(--serif); }
.serif-en { font-family: var(--serif-en); letter-spacing: 0.18em; }
.sans     { font-family: var(--sans); }
.mono     { font-family: var(--mono); font-feature-settings: "calt" 0; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-wrap: balance;
}

.display {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6.2vw, 5.2rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.04em;
}
.h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: 0.04em;
}
.h3 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.06em;
}
/* Lead — large brand-voice paragraphs (hero, page headers). Stays serif
   because the size (>= 17px) renders fine, and the gravitas matters. */
.lead {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.45vw, 1.25rem);
  font-weight: 400;
  line-height: 1.95;
  color: var(--ink-90);
  max-width: 54ch;
  text-wrap: pretty;
}
/* Body — workhorse body text. Sans for readability on dark mode. */
.body {
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--ink-90);
  text-wrap: pretty;
}

.kicker {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.eyebrow {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--ink-60);
}

/* ── 4. Layout primitives ────────────────────────────────────────────────── */

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section          { padding-block: clamp(72px, 11vw, 128px); }
.section--tight   { padding-block: clamp(56px, 8vw, 96px); }
.section--loose   { padding-block: clamp(96px, 14vw, 160px); }

.divider          { border-top: 1px solid var(--line); }
.divider-soft     { border-top: 1px solid var(--line-soft); }

.grid             { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid--3          { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2          { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--4          { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Section header: kicker + heading + optional right note, with hairline rule */
.section-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  padding-bottom: 28px;
  margin-bottom: clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
}
.section-header .kicker { grid-column: 1 / -1; margin-bottom: 14px; }
.section-header h2      { grid-column: 1; }
.section-header .note   {
  grid-column: 2;
  align-self: end;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink-75);
  text-align: right;
  max-width: 32ch;
}

/* ── 5. Header / Nav ─────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--easing), background-color .3s var(--easing);
}
.site-header.is-stuck { border-bottom-color: var(--line); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 32px;
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.lockup__mark { width: 34px; height: 34px; flex-shrink: 0; }
.lockup__word {
  display: flex; flex-direction: row; align-items: baseline; gap: 12px; line-height: 1;
}
.lockup__zh {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: 0.14em;
  color: var(--ink);
  white-space: nowrap;
}
.lockup__en {
  font-family: var(--serif-en);
  font-size: 26px;
  letter-spacing: 0.12em;
  color: var(--ink-75);
  white-space: nowrap;
}

.lockup--lg .lockup__mark { width: 56px; height: 56px; }
.lockup--lg .lockup__zh   { font-size: 26px; }
.lockup--lg .lockup__en   { font-size: 17px; }

.nav-primary {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
}
.nav-link {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-75);
  position: relative;
  padding-block: 6px;
  transition: color .2s var(--easing);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right .25s var(--easing);
}
.nav-link:hover, .nav-link:focus-visible { color: var(--ink); outline: 0; }
.nav-link:hover::after, .nav-link:focus-visible::after, .nav-link[aria-current="page"]::after { right: 0; }
.nav-link[aria-current="page"] { color: var(--ink); }

/* ── 6. Footer ───────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--paper);
  padding-block: 56px 32px;
  margin-top: 80px;
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 1.3fr;
  gap: 48px;
  padding-bottom: 48px;
}
/* Contact column sits at the far right; social row follows the address block. */
.site-footer__contact .social-row { margin-top: 0; }
.site-footer__follow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}
.site-footer__addr {
  color: var(--ink-60);
  line-height: 1.7;
}
.site-footer__follow-label {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-60);
  white-space: nowrap;
}
.site-footer__col h4 {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-45);
  margin-bottom: 18px;
}
.site-footer__col li { margin-bottom: 10px; font-size: 14.5px; }
.site-footer__col a { color: var(--ink-75); transition: color .2s var(--easing); }
.site-footer__col a:hover { color: var(--ink); }
.site-footer__brand .body { margin-top: 18px; max-width: 32ch; font-size: 14.5px; }

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--ink-45);
  text-transform: uppercase;
}

/* Full-width registration line — the company's verifiable record, stated
   plainly across the footer base. Restrained, but not hidden in a corner. */
.site-footer__registry {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  row-gap: 8px;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13.5px;
  letter-spacing: 0.04em;
  color: var(--ink-60);
}
.site-footer__registry > *:not(:last-child)::after {
  content: "·";
  margin: 0 18px;
  color: var(--ink-30);
}
.site-footer__registry a {
  color: var(--ink-45);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s var(--easing);
}
.site-footer__registry a:hover { color: var(--ink); }
@media (max-width: 560px) {
  .site-footer__registry { font-size: 12px; }
  .site-footer__registry > *:not(:last-child)::after { margin: 0 12px; }
}

/* ── 7. Buttons & links ──────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 13.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 16px 26px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--paper);
  transition: background-color .25s var(--easing), color .25s var(--easing), transform .25s var(--easing);
  white-space: nowrap;
}
.btn:hover, .btn:focus-visible { background: transparent; color: var(--accent); outline: 0; }
.btn .arrow { transition: transform .25s var(--easing); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink-30);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.btn--invert {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn--invert:hover { background: transparent; color: var(--ink); border-color: var(--ink); }

.text-link {
  font-family: var(--mono);
  font-size: 13.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  transition: border-color .25s var(--easing);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.text-link:hover { border-color: var(--ink); }
.text-link .arrow { transition: transform .25s var(--easing); }
.text-link:hover .arrow { transform: translateX(4px); }

/* Big serif anchor (for email, primary CTAs in copy) */
.big-link {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  letter-spacing: 0.04em;
  color: var(--ink);
  border-bottom: 1px solid var(--ink-30);
  padding-bottom: 6px;
  transition: border-color .25s var(--easing);
}
.big-link:hover { border-color: var(--ink); }

/* ── 8. Hero ─────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding-block: clamp(64px, 9vw, 112px) clamp(72px, 11vw, 128px);
  min-height: calc(92vh - var(--nav-h));
  display: flex;
  align-items: center;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}
.hero__title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0.04em;
  margin-top: 28px;
  text-wrap: balance;
}
.hero__lede {
  margin-top: 32px;
  max-width: 44ch;
}
.hero__cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 48px;
}
.hero__mark {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero__mark img {
  width: clamp(240px, 32vw, 380px);
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(124, 132, 204, 0.25));
}

/* Hero with photographic blade background (index) */
.hero--blade {
  min-height: clamp(480px, 64vh, 720px);
  background-color: #0B0D18;
  background-image:
    linear-gradient(180deg, rgba(21, 24, 43, 0) 74%, #15182B 99%),
    linear-gradient(100deg, #15182B 6%, rgba(21, 24, 43, 0.55) 34%, rgba(21, 24, 43, 0) 60%),
    url("../img/hero-blade-v2.png");
  background-position: 0 0, 0 0, 100% 46%;
  background-size: auto, auto, cover;
  background-repeat: no-repeat;
}

/* "為什麼是承影" — twin-swords (Durendal × 承影) photographic backdrop */
.section--origin {
  position: relative;
  background-color: var(--paper);
  background-image:
    linear-gradient(180deg, rgba(21, 24, 43, 0.55) 0%, rgba(21, 24, 43, 0.22) 45%, rgba(21, 24, 43, 0.70) 100%),
    url("../img/origin-twin-swords.png");
  background-position: center, center 55%;
  background-size: cover, cover;
  background-repeat: no-repeat;
  border-top: 1px solid var(--line-soft);
}
.section--origin .section-header { border-bottom-color: rgba(232, 234, 246, 0.18); }

/* 三大支柱 — three shafts of light backdrop */
.section--pillars {
  background-color: var(--paper);
  background-image:
    linear-gradient(180deg, rgba(21, 24, 43, 0.62) 0%, rgba(21, 24, 43, 0.30) 42%, rgba(21, 24, 43, 0.72) 100%),
    url("../img/pillars-light.png");
  background-position: center, center 30%;
  background-size: cover, cover;
  background-repeat: no-repeat;
}
.section--pillars .card {
  background: rgba(24, 28, 50, 0.60);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.section--pillars .card:hover { background: rgba(31, 36, 62, 0.78); }

/* services · 韌性網格 — mesh of light across dark terrain */
.section--mesh {
  background-color: var(--paper-soft);
  background-image:
    linear-gradient(180deg, rgba(21, 24, 43, 0.60) 0%, rgba(21, 24, 43, 0.42) 48%, rgba(21, 24, 43, 0.74) 100%),
    url("../img/svc-mesh.png");
  background-position: center, center;
  background-size: cover, cover;
  background-repeat: no-repeat;
}

/* contact · 歡迎來信 — a signal sent skyward */
.section--signal {
  background-color: var(--paper);
  background-image:
    linear-gradient(92deg, rgba(21, 24, 43, 0.66) 0%, rgba(21, 24, 43, 0.40) 46%, rgba(21, 24, 43, 0.10) 78%, rgba(21, 24, 43, 0.20) 100%),
    url("../img/contact-signal.png");
  background-position: center, 25% 100%;
  background-size: cover, cover;
  background-repeat: no-repeat;
}
.section--signal .form {
  background: rgba(24, 28, 50, 0.14);
  backdrop-filter: blur(10px) saturate(1.15);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
  border: 1px solid rgba(232, 234, 246, 0.10);
  padding: 40px 44px;
  max-width: 648px;
}
@media (max-width: 720px) {
  .section--signal .form { padding: 32px 24px; }
}

/* contact · 怎麼找到我們 — night city grid, one bright intersection */
.section--locate {
  background-color: var(--paper-soft);
  background-image:
    linear-gradient(180deg, rgba(21, 24, 43, 0.55) 0%, rgba(21, 24, 43, 0.36) 48%, rgba(21, 24, 43, 0.72) 100%),
    url("../img/contact-locate.png");
  background-position: center, center 58%;
  background-size: cover, cover;
  background-repeat: no-repeat;
}

/* contact · page header — two light trails converging */
.page-header--converge {
  background-color: var(--paper);
  background-image:
    linear-gradient(92deg, rgba(21, 24, 43, 0.80) 0%, rgba(21, 24, 43, 0.50) 36%, rgba(21, 24, 43, 0.12) 66%, rgba(21, 24, 43, 0.22) 100%),
    linear-gradient(180deg, rgba(21, 24, 43, 0) 70%, rgba(21, 24, 43, 0.85) 100%),
    url("../img/contact-converge.png");
  background-position: center, center, center 46%;
  background-size: cover, cover, cover;
  background-repeat: no-repeat;
}

/* services · page header — one sharp blade among blurred mediocrity */
.page-header--edge {
  background-color: var(--paper);
  background-image:
    linear-gradient(92deg, rgba(21, 24, 43, 0.82) 0%, rgba(21, 24, 43, 0.52) 38%, rgba(21, 24, 43, 0.16) 68%, rgba(21, 24, 43, 0.30) 100%),
    linear-gradient(180deg, rgba(21, 24, 43, 0) 70%, rgba(21, 24, 43, 0.85) 100%),
    url("../img/svc-edge.png");
  background-position: center, center, center 30%;
  background-size: cover, cover, cover;
  background-repeat: no-repeat;
}

/* services · frosted-glass body panels over photographic sections */
.section--defense .prose__body,
.section--mesh .prose__body,
.section--energy .prose__body {
  background: rgba(24, 28, 50, 0.14);
  backdrop-filter: blur(10px) saturate(1.15);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
  border: 1px solid rgba(232, 234, 246, 0.10);
  padding: 44px 48px;
}
@media (max-width: 720px) {
  .section--defense .prose__body,
  .section--mesh .prose__body,
  .section--energy .prose__body {
    padding: 32px 28px;
  }
}

/* services · 能源續航 — horizon light trail, endurance */
.section--energy {
  background-color: var(--paper);
  background-image:
    linear-gradient(180deg, rgba(21, 24, 43, 0.58) 0%, rgba(21, 24, 43, 0.40) 48%, rgba(21, 24, 43, 0.74) 100%),
    url("../img/svc-energy.png");
  background-position: center, center 42%;
  background-size: cover, cover;
  background-repeat: no-repeat;
}

/* services · 主動防衛 — radar sweep + intercept trail */
.section--defense {
  background-color: var(--paper);
  background-image:
    linear-gradient(180deg, rgba(21, 24, 43, 0.58) 0%, rgba(21, 24, 43, 0.40) 48%, rgba(21, 24, 43, 0.74) 100%),
    url("../img/svc-defense.png");
  background-position: center, center;
  background-size: cover, cover;
  background-repeat: no-repeat;
}
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: clamp(56px, 8vw, 88px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero__meta span { font-family: var(--mono); font-size: 14px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-45); }

/* Page header (for non-home pages) */
.page-header {
  padding-block: clamp(80px, 12vw, 140px) clamp(56px, 8vw, 96px);
  border-bottom: 1px solid var(--line);
}
.page-header .kicker { margin-bottom: 22px; display: inline-block; }
.page-header__title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.6vw, 4.2rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.04em;
  max-width: 18ch;
  text-wrap: balance;
}
.page-header .lead { margin-top: 32px; max-width: 56ch; }

/* ── 9. Cards: services, principles, value props ─────────────────────────── */

.card {
  background: var(--paper);
  padding: 44px 36px 48px;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  transition: background-color .35s var(--easing), color .35s var(--easing);
}
.card:hover { background: var(--paper-soft); }
.card:hover .card__num, .card:hover .card__en { color: var(--accent); }

.card__num   { font-family: var(--mono); font-size: 14px; letter-spacing: 0.22em; color: var(--accent); }
.card__zh    {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  letter-spacing: 0.08em;
  margin-top: 28px;
  margin-bottom: 6px;
}
.card__en    {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-45);
}
.card__desc {
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink-90);
  margin-top: 26px;
  text-wrap: pretty;
}
.card__expand {
  margin-top: auto;
  padding-top: 28px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-75);
}

/* Principle: small static card, no hover invert */
.principle {
  padding: 36px 32px 40px;
  background: var(--paper);
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.principle__num {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.22em;
  color: var(--ink-45);
}
.principle__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.06em;
}
.principle__desc {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink-90);
  text-wrap: pretty;
}

/* Stat / fact */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
  margin-block: 64px;
}
.fact {
  background: var(--paper);
  padding: 36px 28px;
  text-align: left;
}
.fact__num {
  font-family: var(--serif-en);
  font-size: clamp(2.4rem, 4.4vw, 3.4rem);
  letter-spacing: 0.04em;
  line-height: 1;
}
.fact__label {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-45);
  margin-top: 14px;
}

/* ── 10. Highlighted (panel) bands ───────────────────────────────────────────
   Indigo theme: ".inverted" no longer flips dark/light, but uses the panel
   color (slightly lighter than the base bg) to create rhythmic emphasis.
   Section-internal colors inherit from the global tokens — overrides removed. */

.inverted {
  background: var(--paper-2);
  color: var(--ink);
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
}

.inverted__watermark {
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.10;
  pointer-events: none;
  width: 620px;
  max-width: none;
}
.inverted__watermark img { width: 100%; height: auto; }

.inverted__quote {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.35;
  letter-spacing: 0.04em;
  max-width: 22ch;
  margin-top: 32px;
  text-wrap: balance;
}
.inverted__body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  line-height: 1.85;
  max-width: 54ch;
  margin-top: 36px;
  color: var(--ink-90);
  text-wrap: pretty;
}

/* CTA band — panel-tone, centered, with accent border */
.cta-band {
  background-color: var(--paper-2);
  background-image:
    linear-gradient(92deg, rgba(21, 24, 43, 0.78) 0%, rgba(21, 24, 43, 0.50) 34%, rgba(21, 24, 43, 0.10) 62%, rgba(21, 24, 43, 0.18) 100%),
    url("../img/cta-spark.png");
  background-position: center, center 62%;
  background-size: cover, cover;
  background-repeat: no-repeat;
  color: var(--ink);
  padding-block: clamp(72px, 11vw, 120px);
  text-align: left;
  border-block: 1px solid var(--line);
}
.cta-band .container { max-width: 1080px; }
.cta-band h2 br { display: none; }
.cta-band h2 {
  font-family: var(--serif);
  text-shadow: 0 2px 28px rgba(11, 13, 24, 0.85), 0 1px 6px rgba(11, 13, 24, 0.55);
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  max-width: 22ch;
  margin: 0;
  text-wrap: balance;
}
.cta-band p {
  font-family: var(--sans);
  font-weight: 400;
  text-shadow: 0 1px 18px rgba(11, 13, 24, 0.85), 0 1px 4px rgba(11, 13, 24, 0.6);
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  line-height: 1.8;
  color: var(--ink-90);
  max-width: 44ch;
  margin: 28px 0 0;
}
.cta-band .cta-row {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 44px;
}

/* ── 11. Forms ───────────────────────────────────────────────────────────── */

.form { display: grid; gap: 28px; max-width: 560px; }
.form__field { display: flex; flex-direction: column; gap: 8px; }
.form__label {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.form__input, .form__textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink-30);
  padding: 10px 0 14px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  transition: border-color .2s var(--easing);
}
.form__textarea { resize: vertical; min-height: 120px; }
.form__input:focus, .form__textarea:focus {
  outline: 0;
  border-bottom-color: var(--ink);
}
.form__submit { margin-top: 16px; justify-self: start; }

/* ── 12. Definition list / contact rows ──────────────────────────────────── */

.contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 48px;
  padding-block: 48px 0;
}
.contact-list dt {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-45);
  margin-bottom: 14px;
}
.contact-list dd {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
}
.contact-list dd a { border-bottom: 1px solid var(--line); transition: border-color .2s var(--easing); }
.contact-list dd a:hover { border-bottom-color: var(--ink); }

/* Timeline (about page) */
.timeline { border-top: 1px solid var(--line); }
.timeline__row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line-soft);
}
.timeline__year {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--ink-60);
  padding-top: 4px;
}
.timeline__content h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.timeline__content p {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-90);
  text-wrap: pretty;
}

/* Two-column long form (about, philosophy long-read) */
.prose {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.prose__body p {
  font-family: var(--sans);
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  font-weight: 400;
  line-height: 1.85;
  color: var(--ink-90);
  margin-bottom: 24px;
  text-wrap: pretty;
}
.prose__body p:last-child { margin-bottom: 0; }
.prose__aside {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}
.prose__aside .kicker { display: block; margin-bottom: 18px; }
.prose__aside p {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink-90);
  text-wrap: pretty;
}

/* Pull-quote */
blockquote.pull {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--ink);
  padding: 8px 0 8px 24px;
  border-left: 2px solid var(--ink);
  margin-block: 32px;
  text-wrap: balance;
}

/* ── 13. Sectors strip ───────────────────────────────────────────────────── */

.sectors {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.sector {
  background: var(--paper);
  padding: 36px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sector__num {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.22em;
  color: var(--ink-45);
}
.sector__zh {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.06em;
}
.sector__en {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.sector__note {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink-90);
  margin-top: 8px;
  text-wrap: pretty;
}

/* ── 14. News cards ──────────────────────────────────────────────────────── */

.news {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.news-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  padding: 36px 32px 36px;
  min-height: 280px;
  transition: background-color .25s var(--easing);
}
.news-card:hover { background: var(--paper-soft); }
.news-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-45);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}
.news-card__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.45;
  letter-spacing: 0.04em;
  margin-top: 22px;
  text-wrap: balance;
}
.news-card__excerpt {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink-90);
  margin-top: 14px;
  text-wrap: pretty;
}
.news-card__link {
  margin-top: auto;
  padding-top: 24px;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid transparent;
  align-self: flex-start;
}
.news-card__link .arrow { transition: transform .25s var(--easing); }
.news-card__link:hover .arrow { transform: translateX(4px); }
.news-card--placeholder .news-card__title,
.news-card--placeholder .news-card__excerpt { color: var(--ink-45); }
.news-card--placeholder .news-card__link { color: var(--ink-45); }

/* ── 15. Email channel cards (contact page) ──────────────────────────────── */

.channels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-block: 56px;
}
.channel {
  background: var(--paper);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background-color .25s var(--easing);
}
.channel:hover { background: var(--paper-soft); }
.channel__label {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-45);
}
.channel__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.06em;
}
.channel__desc {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink-90);
  text-wrap: pretty;
}
.channel__email {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  align-self: flex-start;
  transition: border-color .2s var(--easing);
}
.channel__email:hover { border-bottom-color: var(--ink); }

/* ── 16. Footer social row ───────────────────────────────────────────────── */

.social-row {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 20px;
}
.social-row a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-75);
  transition: color .2s var(--easing), border-color .2s var(--easing), background-color .2s var(--easing);
}
.social-row a:hover { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.social-row svg { width: 16px; height: 16px; }

/* ── 17. Utility & responsive ────────────────────────────────────────────── */

.text-center { text-align: center; }
.muted       { color: var(--ink-60); }
.mt-0  { margin-top: 0;  }
.mt-8  { margin-top: 8px;  }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }

/* Subtle reveal on first paint */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s var(--easing), transform .8s var(--easing);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Tablet */
@media (max-width: 960px) {
  .grid--3 { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--2 { grid-template-columns: 1fr; }
  .sectors { grid-template-columns: repeat(2, 1fr); }
  .news    { grid-template-columns: 1fr; }
  .channels { grid-template-columns: 1fr; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__mark { order: -1; }
  .hero__mark img { width: clamp(180px, 40vw, 260px); }
  .prose { grid-template-columns: 1fr; }
  .prose__aside { position: static; }
  .site-footer__top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .site-footer__brand { grid-column: 1 / -1; }
  .section-header { grid-template-columns: 1fr; }
  .section-header .note { grid-column: 1; text-align: left; max-width: 100%; }
}

/* Mobile */
@media (max-width: 640px) {
  :root { --gutter: var(--gutter-sm); --nav-h: 64px; }
  .lockup__en { display: none; }
  .lockup__zh { font-size: 18px; letter-spacing: 0.14em; }
  .lockup__mark { width: 30px; height: 30px; }
  .nav-primary { gap: 18px; }
  .nav-link { font-size: 12.5px; letter-spacing: 0.18em; }
  .site-footer__top { grid-template-columns: 1fr; }
  .timeline__row { grid-template-columns: 1fr; gap: 8px; }
  .hero__cta { gap: 18px; }
  .btn { padding: 14px 22px; font-size: 12.5px; }
  .contact-list { gap: 32px; }
  .sectors { grid-template-columns: 1fr; }
}

/* Print */
@media print {
  .site-header, .site-footer, .cta-band { display: none; }
  body { color: #000; background: #fff; }
}
