/* ==========================================================================
   RSA — Architecture × Environmental Intelligence
   Site stylesheet · v9 "Drawing Set"
   Palette: ink / greys / paper + one orange used as a redline, never as fill-for-decoration.
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL OFL — see assets/fonts/OFL-*.txt) ----------
   Latin subsets. Archivo keeps both variable axes: wdth 62–125, wght 400–900.
   The two "Fallback" faces are local system fonts with adjusted metrics so text
   occupies about the same space before and after Archivo arrives (no layout jump). */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
/* Archivo at wdth 100 / wght 400, matched to Arial */
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 98.6%;
  ascent-override: 89%;
  descent-override: 21.3%;
  line-gap-override: 0%;
}
/* Condensed display type (wdth 62–70, heavy), matched to Arial Bold */
@font-face {
  font-family: "Archivo Condensed Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Helvetica-Bold"), local("Liberation Sans Bold");
  size-adjust: 69.2%;
  ascent-override: 126.8%;
  descent-override: 30.3%;
  line-gap-override: 0%;
}

:root {
  --ink: #111110;
  --ink-2: #1c1c1b;
  --paper: #f2f1ee;
  --paper-2: #e7e6e2;
  --white: #fbfbfa;
  --line: #111110;
  --line-soft: #cfcec9;
  --mute: #5e5d59;        /* 6.1:1 on paper */
  --mute-2: #8c8b86;      /* large text / rules only */
  --orange: #ff5a1f;      /* marks, fills under ink text */
  --orange-ink: #b8400f;  /* small orange text on paper, 4.9:1 */
  --dark-mute: #a3a29d;   /* muted text on ink, 7:1 */

  --font-sans: "Archivo", "Archivo Fallback", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --font-condensed: "Archivo", "Archivo Condensed Fallback", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --gap: clamp(16px, 2vw, 24px);
  --max: 1680px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

html { color-scheme: light; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.section { padding-block: clamp(72px, 10vw, 152px); }
.section--tight { padding-block: clamp(48px, 6vw, 96px); }
.rule { border-top: 1px solid var(--line); }
.rule-soft { border-top: 1px solid var(--line-soft); }

.span-12 { grid-column-end: span 12; } .span-8 { grid-column-end: span 8; } .span-7 { grid-column-end: span 7; }
.span-6 { grid-column-end: span 6; } .span-5 { grid-column-end: span 5; } .span-4 { grid-column-end: span 4; }
.span-3 { grid-column-end: span 3; } .span-9 { grid-column-end: span 9; } .span-10 { grid-column-end: span 10; } .span-2 { grid-column-end: span 2; }
.start-4 { grid-column-start: 4; } .start-5 { grid-column-start: 5; } .start-6 { grid-column-start: 6; } .start-7 { grid-column-start: 7; } .start-8 { grid-column-start: 8; }

@media (max-width: 900px) {
  .grid > [class*="span-"] { grid-column: 1 / -1 !important; }
  .grid > [class*="start-"] { grid-column-start: 1; }
}

/* ---------- Type ---------- */
.mono { font-family: var(--font-mono); font-size: 12px; line-height: 1.6; letter-spacing: .04em; text-transform: uppercase; }
.mono--sm { font-size: 11px; }
.muted { color: var(--mute); }
.orange { color: var(--orange-ink); }
.dark .orange { color: var(--orange); }

.display {
  font-variation-settings: "wdth" 62;
  font-weight: 800;
  text-transform: uppercase;
  line-height: .84;
  letter-spacing: -.015em;
}
/* Condensed headings get a narrow fallback so wrapping doesn't change when Archivo loads */
.display, .record__val, .letter__glyph, .contact__mail, .loop__en, .horizon__name, .rq__v,
.tech__name, .value h3, .pmark__name > span:first-child, .aiflow__t { font-family: var(--font-condensed); }
.rq__v span { font-family: var(--font-sans); }
.d-xxl { font-size: clamp(42px, 11.2vw, 196px); }
.d-xl  { font-size: clamp(38px, 7.6vw, 128px); }
.d-l   { font-size: clamp(40px, 5.4vw, 88px); }
.d-m   { font-size: clamp(32px, 3.6vw, 56px); line-height: .92; }

.h-statement { font-weight: 600; font-size: clamp(28px, 3.2vw, 48px); line-height: 1.08; letter-spacing: -.02em; }
.h-card { font-weight: 600; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.15; letter-spacing: -.01em; }
.lede { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.45; max-width: 36em; }
.body { max-width: 34em; }
.body p + p { margin-top: 1em; }
.zh { font-family: var(--font-sans); letter-spacing: .02em; }

/* ---------- Status bar & masthead ---------- */
.statusbar { border-bottom: 1px solid var(--line-soft); }
.statusbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-block: 10px; }
.statusbar .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); margin-right: 8px; vertical-align: 1px; }

.masthead { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(242, 241, 238, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand__mark { font-variation-settings: "wdth" 125; font-weight: 900; font-size: 28px; letter-spacing: -.03em; line-height: 1; }
.brand__mark i { font-style: normal; color: var(--orange); }
.brand__name { font-family: var(--font-mono); font-size: 10.5px; line-height: 1.25; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); border-left: 1px solid var(--line-soft); padding-left: 14px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 15px; font-weight: 500; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 10px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .nav__lang { font-family: var(--font-mono); font-size: 12px; border: 1px solid var(--line); margin-left: 8px; padding: 0 12px; min-height: 36px; }
.nav .nav__lang::after { display: none; }
.nav .nav__lang:hover { background: var(--ink); color: var(--paper); }
.menu-btn { display: none; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; }

@media (max-width: 960px) {
  .brand__name { display: none; }
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
  .nav.is-open { display: flex; }
  .nav a { min-height: 52px; border-bottom: 1px solid var(--line-soft); padding: 0; font-size: 20px; }
  .nav a::after { left: 0; right: auto; width: 32px; bottom: 12px; }
  .nav .nav__lang { margin: 16px 0 0; justify-content: center; border-bottom: 1px solid var(--line); }
}

/* ---------- Section head (sheet header) ---------- */
.sheet-head { display: flex; align-items: center; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: clamp(32px, 4vw, 56px); }
.sheet-head__no { font-family: var(--font-mono); font-size: 12px; font-weight: 500; min-width: 44px; height: 28px; display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: var(--paper); padding: 0 8px; }
.sheet-head__label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.sheet-head__aside { margin-left: auto; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); text-align: right; }
.dark .sheet-head { border-color: #3a3a38; }
.dark .sheet-head__no { background: var(--orange); color: var(--ink); }
.dark .sheet-head__aside { color: var(--dark-mute); }

/* ---------- Status stamps (the legend) ---------- */
.stamp { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; line-height: 1; padding: 6px 9px; white-space: nowrap; border: 1px solid currentColor; }
.stamp::before { content: ""; width: 7px; height: 7px; flex: none; }
.stamp--real    { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.stamp--real::before { background: var(--orange); border-radius: 50%; }
.stamp--explore::before { border: 1.5px solid currentColor; border-radius: 50%; }
.stamp--planned { border-style: dashed; }
.stamp--planned::before { border: 1.5px dashed currentColor; border-radius: 50%; }
.stamp--concept { border-style: dashed; color: var(--orange-ink); }
.stamp--concept::before { border: 1.5px solid currentColor; transform: rotate(45deg); width: 6px; height: 6px; }
.stamp--record  { border-style: double; border-width: 3px; padding: 4px 7px; }
.stamp--record::before { background: currentColor; width: 6px; height: 6px; }
.stamp--work::before { background: currentColor; }
.dark .stamp--real { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.dark .stamp--concept { color: var(--orange); }

.legend { background: var(--ink); color: var(--paper); }
.legend .wrap { display: grid; grid-template-columns: minmax(180px, 1fr) 4fr; gap: 16px 32px; padding-block: 22px; align-items: center; }
.legend__title { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dark-mute); }
.legend ul { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.legend li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--dark-mute); }
@media (max-width: 760px) { .legend .wrap { grid-template-columns: 1fr; } }

/* ---------- Buttons & links ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 24px; font-weight: 600; font-size: 15px; border: 1px solid var(--ink); transition: background .2s, color .2s; }
.btn--primary { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn--primary:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.dark .btn--ghost { border-color: var(--paper); }
.dark .btn--ghost:hover { background: var(--paper); color: var(--ink); }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; border-bottom: 1.5px solid currentColor; }
.link:hover { color: var(--orange-ink); }
.dark .link:hover { color: var(--orange); }

/* ---------- Figures ---------- */
.fig { position: relative; }
.fig__img { position: relative; overflow: hidden; background: var(--paper-2); }
.fig__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
a.fig:hover .fig__img img { transform: scale(1.035); }
.fig__cap { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 16px; flex-wrap: wrap; padding-top: 12px; }
.fig__cap .mono { color: var(--mute); }
.dark .fig__cap .mono { color: var(--dark-mute); }
.ratio-43 { aspect-ratio: 4 / 3; } .ratio-32 { aspect-ratio: 3 / 2; } .ratio-169 { aspect-ratio: 16 / 9; }
.ratio-34 { aspect-ratio: 3 / 4; } .ratio-11 { aspect-ratio: 1 / 1; } .ratio-21 { aspect-ratio: 2 / 1; }

/* title block — drawing-sheet info box */
.tblock { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); border: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.tblock > div { padding: 10px 12px; border-right: 1px solid var(--line); min-width: 0; }
.tblock > div:last-child { border-right: 0; }
.tblock dt, .tblock .k { color: var(--mute); }
.tblock dd, .tblock .v { color: var(--ink); font-size: 13px; margin-top: 4px; text-transform: none; letter-spacing: 0; font-family: var(--font-sans); font-weight: 500; }
.tblock .hi { background: var(--ink); }
.tblock .hi .k { color: var(--dark-mute); }
.tblock .hi .v { color: var(--orange); font-family: var(--font-mono); font-size: 18px; }
@media (max-width: 600px) {
  .tblock { grid-template-columns: 1fr 1fr; }
  .tblock > div { border-bottom: 1px solid var(--line); }
  .tblock > div:nth-child(2n) { border-right: 0; }
}

/* ---------- Cover (home) ---------- */
.cover { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.cover__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding-top: clamp(40px, 6vw, 88px); }
.cover__kicker { grid-column: span 12; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; margin-bottom: clamp(20px, 3vw, 36px); }
.cover__title { grid-column: span 12; position: relative; z-index: 2; }
.cover__title .ln { display: block; }
.cover__title .ln--2 { padding-left: clamp(0px, 16vw, 300px); }
.cover__title .g { color: var(--mute-2); }
.cover__title .o { color: var(--orange); }
.cover__sun { position: absolute; left: 0; right: 0; top: clamp(24px, 3vw, 48px); aspect-ratio: 1000 / 420; pointer-events: none; z-index: 1; }
.cover__sun svg { width: 100%; height: 100%; overflow: visible; }
.cover__sunread { position: absolute; right: var(--gutter); top: clamp(40px, 6vw, 88px); z-index: 3; text-align: right; }
.cover__intro { grid-column: 1 / span 5; margin-top: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 24px; }
.cover__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.cover__diptych { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); margin-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(32px, 4vw, 56px); align-items: end; }
.cover__diptych .fig--design { grid-column: 1 / span 7; }
.cover__diptych .fig--env { grid-column: 8 / span 5; margin-bottom: clamp(0px, 8vw, 140px); }
.cover__x { position: absolute; z-index: 3; left: calc((100% - 11 * var(--gap)) * 7 / 12 + 6.5 * var(--gap) - 28px); top: 30%; width: 56px; height: 56px; display: grid; place-items: center; background: var(--orange); color: var(--ink); font-family: var(--font-mono); font-size: 20px; font-weight: 500; }
@media (max-width: 900px) {
  .cover__intro { grid-column: 1 / -1; }
  .cover__diptych .fig--design, .cover__diptych .fig--env { grid-column: 1 / -1; margin-bottom: 0; }
  .cover__diptych .fig--env { margin-top: 28px; }
  .cover__x { display: none; }
  .cover__sunread { position: static; text-align: left; margin-top: 8px; }
  .cover__title .ln--2 { padding-left: 0; }
}

/* section cut line */
.cut { position: relative; height: 0; border-top: 2px dashed var(--orange); border-image: repeating-linear-gradient(90deg, var(--orange) 0 22px, transparent 22px 30px, var(--orange) 30px 34px, transparent 34px 42px) 2; }
.cut__tag { position: absolute; top: -13px; font-family: var(--font-mono); font-size: 11px; background: var(--paper); color: var(--orange-ink); padding: 2px 8px; border: 1.5px solid var(--orange); }
.cut__tag--l { left: var(--gutter); } .cut__tag--r { right: var(--gutter); }

/* ---------- Statement ---------- */
.statement__big { grid-column: 1 / span 7; }
.statement__body { grid-column: 8 / span 5; align-self: end; display: flex; flex-direction: column; gap: 24px; }
.chain { display: flex; flex-wrap: wrap; gap: 8px 0; align-items: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; }
.chain span { padding: 6px 10px; border: 1px solid var(--line); }
.chain span + span { border-left: 0; }
.chain span.on { background: var(--ink); color: var(--paper); }
@media (max-width: 900px) { .statement__big, .statement__body { grid-column: 1 / -1; } }

/* ---------- Work mosaic ---------- */
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: clamp(40px, 5vw, 72px); align-items: start; }
.mosaic .m1 { grid-column: 1 / span 7; }
.mosaic .m2 { grid-column: 9 / span 4; margin-top: clamp(0px, 14vw, 240px); }
.mosaic .m3 { grid-column: 2 / span 4; }
.mosaic .m4 { grid-column: 7 / span 6; margin-top: clamp(0px, 6vw, 96px); }
.mosaic .m5 { grid-column: 1 / span 5; }
.mosaic .m-note { grid-column: 7 / span 5; align-self: center; }
@media (max-width: 900px) { .mosaic > * { grid-column: 1 / -1 !important; margin-top: 0 !important; } }

.work-cap { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 14px; align-items: baseline; padding-top: 14px; }
.work-cap__no { font-family: var(--font-mono); font-size: 12px; color: var(--mute); }
.work-cap__title { font-weight: 600; font-size: clamp(20px, 1.9vw, 28px); letter-spacing: -.01em; line-height: 1.1; }
.work-cap__arrow { font-size: 22px; transition: transform .3s var(--ease); }
a.fig:hover .work-cap__arrow { transform: translate(3px, -3px); color: var(--orange-ink); }
.work-cap__meta { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; color: var(--mute); }

/* ---------- Dark interstitial ---------- */
.dark { background: var(--ink); color: var(--paper); }
.dark .muted { color: var(--dark-mute); }
.bridge__title { grid-column: 1 / span 9; }
.bridge__note { grid-column: 9 / span 4; margin-top: 40px; border: 1.5px solid var(--orange); padding: 18px; transform: rotate(-1deg); }
.bridge__note .mono { color: var(--orange); margin-bottom: 8px; display: block; }
@media (max-width: 900px) { .bridge__title, .bridge__note { grid-column: 1 / -1; } .bridge__note { transform: none; } }

/* ---------- Environment viewer (tabs) ---------- */
.viewer { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 24px; }
.viewer__tabs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; border: 1px solid #3a3a38; width: fit-content; max-width: 100%; }
.viewer__tab { min-height: 48px; padding: 0 18px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--dark-mute); border-right: 1px solid #3a3a38; }
.viewer__tab:last-child { border-right: 0; }
.viewer__tab[aria-selected="true"] { background: var(--paper); color: var(--ink); }
.viewer__tab:hover:not([aria-selected="true"]) { color: var(--paper); }
.viewer__stage { grid-column: 1 / span 9; }
.viewer__panel[hidden] { display: none; }
.viewer__frame { border: 1px solid #3a3a38; background: #fff; padding: clamp(6px, 1vw, 12px); }
.viewer__frame img { width: 100%; }
.viewer__side { grid-column: 10 / span 3; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 900px) { .viewer__stage, .viewer__side { grid-column: 1 / -1; } }

.modules { border-top: 1px solid #3a3a38; }
.modules li { display: grid; grid-template-columns: 40px 1fr auto; gap: 4px 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid #3a3a38; }
.modules .n { font-family: var(--font-mono); font-size: 11px; color: var(--dark-mute); }
.modules .t { font-weight: 600; }
.modules .d { grid-column: 2 / -1; font-size: 14px; color: var(--dark-mute); }

/* ---------- Method loop ---------- */
.loop { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.loop__step { position: relative; padding: 28px clamp(12px, 1.5vw, 24px) 32px; border-right: 1px solid var(--line); min-height: 280px; display: flex; flex-direction: column; gap: 12px; transition: background .3s; }
.loop__step:last-child { border-right: 0; }
.loop__step:hover { background: var(--white); }
.loop__n { font-family: var(--font-mono); font-size: 12px; color: var(--mute); }
.loop__en { font-variation-settings: "wdth" 70; font-weight: 800; font-size: clamp(26px, 2.6vw, 40px); text-transform: uppercase; line-height: .9; }
.loop__zh { font-weight: 600; font-size: 15px; }
.loop__d { font-size: 14.5px; color: var(--mute); margin-top: auto; }
.loop__step:nth-child(3) .loop__en { color: var(--orange-ink); }
.loop__return { position: relative; height: 72px; }
.loop__return svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
@media (max-width: 900px) {
  .loop { grid-template-columns: 1fr; }
  .loop__step { border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; }
  .loop__step:last-child { border-bottom: 0; }
  .loop__return { display: none; }
}

/* ---------- Records (historical validation) ---------- */
.records { border-top: 2px solid var(--ink); }
.record { display: grid; grid-template-columns: 120px minmax(0, 1.1fr) minmax(0, 2fr) auto; gap: 12px 32px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); }
.record__ver { font-family: var(--font-mono); font-size: 12px; }
.record__val { font-variation-settings: "wdth" 62; font-weight: 800; font-size: clamp(48px, 5.6vw, 88px); line-height: .85; letter-spacing: -.01em; }
.record__val small { font-size: .42em; font-weight: 700; margin-left: 4px; }
.record__label { font-weight: 600; margin-bottom: 6px; }
.record__note { font-size: 14.5px; color: var(--mute); max-width: 40em; }
@media (max-width: 900px) { .record { grid-template-columns: 1fr; } }

.limits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); }
.limits > div { padding: 22px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.limits > div:last-child { border-right: 0; }
.limits h3 { font-size: 18px; font-weight: 600; }
.limits p { font-size: 14.5px; color: var(--mute); }
@media (max-width: 900px) { .limits { grid-template-columns: 1fr 1fr; } .limits > div { border-bottom: 1px solid var(--line); } .limits > div:nth-child(2n) { border-right: 0; } }
@media (max-width: 600px) { .limits { grid-template-columns: 1fr; } .limits > div { border-right: 0; } }

.roadmap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.roadmap > div { border-top: 3px solid var(--ink); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.roadmap > div:nth-child(2) { border-top-style: dashed; }
.roadmap > div:nth-child(3) { border-top: 3px dotted var(--mute-2); }
.roadmap h3 { font-size: 22px; font-weight: 600; }
.roadmap p { color: var(--mute); font-size: 15px; }
@media (max-width: 760px) { .roadmap { grid-template-columns: 1fr; } }

/* ---------- Index rows ---------- */
.index { border-top: 2px solid var(--ink); }
.index__row { display: grid; grid-template-columns: 72px minmax(0, 1fr) 200px 160px 32px; gap: 16px; align-items: center; padding: 18px 8px; border-bottom: 1px solid var(--line); transition: background .2s, color .2s; }
.index__row:hover { background: var(--ink); color: var(--paper); }
.index__row:hover .muted { color: var(--dark-mute); }
.index__row:hover .index__no { color: var(--orange); }
.index__no { font-family: var(--font-mono); font-size: 13px; }
.index__title { font-weight: 600; font-size: clamp(20px, 2.2vw, 32px); letter-spacing: -.01em; line-height: 1.1; }
.index__thumb { width: 72px; height: 48px; object-fit: cover; }
@media (max-width: 900px) {
  .index__row { grid-template-columns: 48px 1fr 24px; }
  .index__row .hide-m { display: none; }
}

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); width: fit-content; max-width: 100%; }
.filters button { min-height: 44px; padding: 0 16px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; border-right: 1px solid var(--line); }
.filters button:last-child { border-right: 0; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.filters button .c { color: var(--orange-ink); margin-left: 6px; }
.filters button[aria-pressed="true"] .c { color: var(--orange); }
[data-kind].is-hidden { display: none; }

/* ---------- Case study ---------- */
.case-hero { padding-top: clamp(32px, 5vw, 72px); }
.case-hero__img { margin-top: clamp(28px, 4vw, 48px); }
.case-hero__img .fig__img { aspect-ratio: 2048 / 1298; }
.credit { border: 1.5px solid var(--ink); padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; background: var(--white); }
.credit .mono { color: var(--orange-ink); }
.spread { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: clamp(32px, 5vw, 72px); align-items: start; }
.spread .s1 { grid-column: 1 / span 8; }
.spread .s2 { grid-column: 9 / span 4; margin-top: clamp(0px, 10vw, 180px); }
.spread .s3 { grid-column: 3 / span 10; }
@media (max-width: 900px) { .spread > * { grid-column: 1 / -1 !important; margin-top: 0 !important; } }
.next { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding-block: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); }
.next:hover .next__t { color: var(--orange-ink); }

/* ---------- Platform horizons ---------- */
.horizons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); }
.horizon { padding: clamp(20px, 2.4vw, 32px); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; min-height: 420px; }
.horizon:last-child { border-right: 0; }
.horizon--core { background: var(--ink); color: var(--paper); }
.horizon--core .muted { color: var(--dark-mute); }
.horizon--concept { background-image: repeating-linear-gradient(135deg, transparent 0 10px, rgba(17,17,16,.05) 10px 11px); }
.horizon__name { font-variation-settings: "wdth" 70; font-weight: 800; font-size: clamp(32px, 3.4vw, 52px); line-height: .9; text-transform: uppercase; }
.horizon ul { margin-top: auto; border-top: 1px solid currentColor; }
.horizon li { padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; }
.horizon--core li { border-color: #3a3a38; }
@media (max-width: 900px) { .horizons { grid-template-columns: 1fr; } .horizon { border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; } .horizon:last-child { border-bottom: 0; } }

.stack { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.stack > div { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.stack h3 { font-size: 17px; font-weight: 600; }
.stack p { font-size: 14.5px; color: var(--mute); }
@media (max-width: 900px) { .stack { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .stack { grid-template-columns: 1fr; } }

/* ---------- Contact & footer ---------- */
.contact__mail { display: inline-block; font-variation-settings: "wdth" 62; font-weight: 800; font-size: clamp(34px, 6.4vw, 112px); line-height: .9; letter-spacing: -.01em; text-transform: lowercase; border-bottom: clamp(3px, .4vw, 6px) solid var(--orange); overflow-wrap: anywhere; transition: color .2s; }
.contact__mail:hover { color: var(--orange); }

.footer { background: var(--ink); color: var(--paper); padding-top: clamp(56px, 7vw, 96px); }
.footer__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 32px; padding-bottom: 48px; border-bottom: 1px solid #3a3a38; }
.footer__col { grid-column: span 2; display: flex; flex-direction: column; gap: 6px; }
.footer__col a { min-height: 32px; display: inline-flex; align-items: center; color: var(--paper); }
.footer__col a:hover { color: var(--orange); }
.footer__lead { grid-column: span 6; display: flex; flex-direction: column; gap: 16px; }
.footer__mark { font-variation-settings: "wdth" 125; font-weight: 900; font-size: clamp(88px, 22vw, 380px); line-height: .76; letter-spacing: -.05em; padding-top: 32px; overflow: hidden; white-space: nowrap; }
.footer__mark i { font-style: normal; color: var(--orange); }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-block: 20px 32px; color: var(--dark-mute); }
.footer__legal p { max-width: 64em; font-size: 13px; }
@media (max-width: 900px) { .footer__lead { grid-column: 1 / -1; } .footer__col { grid-column: span 6; } }

/* ---------- Reveal ---------- */
.js .reveal { transform: translateY(18px); transition: transform .9s var(--ease); }
.js .reveal.is-in { transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { transform: none; } }

/* ---------- Page head (inner pages) ---------- */
.pagehead { padding-top: clamp(40px, 6vw, 96px); padding-bottom: clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.pagehead .grid { row-gap: 24px; align-items: end; }
.crumb { display: flex; gap: 10px; color: var(--mute); margin-bottom: 20px; }
.crumb a:hover { color: var(--ink); }

/* Work bands: image/text alternate sides on desktop, image first on mobile */
@media (min-width: 901px) { .band > * { grid-row: 1; } }
.index__row--mod { grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.3fr) 150px; }
@media (max-width: 900px) { .index__row--mod { grid-template-columns: 48px 1fr auto; } }
.spread .s1 { grid-column: 1 / span 5; }
.spread .s2 { grid-column: 7 / span 6; margin-top: clamp(0px, 10vw, 180px); }
.spread .s3 { grid-column: 1 / span 12; margin-top: 0; }
.spread .s4 { grid-column: 2 / span 6; }
.spread .s5 { grid-column: 9 / span 4; margin-top: clamp(0px, 12vw, 200px); }

/* ---------- Research questions table ---------- */
.rq { border-top: 2px solid var(--ink); }
.rq__row { display: grid; grid-template-columns: 80px minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.6fr); gap: 12px 32px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--line); }
.rq__row--head { padding: 12px 0; }
.rq__no { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--orange-ink); }
.rq__q { font-weight: 600; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.2; letter-spacing: -.01em; }
.rq__v { font-variation-settings: "wdth" 70; font-weight: 800; text-transform: uppercase; font-size: 20px; line-height: 1.05; }
.rq__v span { font-size: 13px; font-weight: 500; text-transform: none; color: var(--mute); font-variation-settings: "wdth" 100; }
.rq__h { font-size: 15px; color: var(--mute); }
@media (max-width: 900px) { .rq__row { grid-template-columns: 56px 1fr; } .rq__row--head { display: none; } .rq__v, .rq__h { grid-column: 2; } }

/* ---------- Status board ---------- */
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); }
.board__col { padding: clamp(20px, 2.2vw, 28px); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.board__col:last-child { border-right: 0; }
.board__col:first-child { background: var(--white); }
.board__col:last-child { background-image: repeating-linear-gradient(135deg, transparent 0 10px, rgba(17,17,16,.045) 10px 11px); }
.board h3 { font-size: 21px; font-weight: 600; }
.board ul { width: 100%; border-top: 1px solid var(--line-soft); }
.board li { padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
@media (max-width: 900px) { .board { grid-template-columns: 1fr; } .board__col { border-right: 0; border-bottom: 1px solid var(--line); } .board__col:last-child { border-bottom: 0; } }

/* ==========================================================================
   v9.1 — RSA brand architecture components
   ========================================================================== */
.bridge__note--side { grid-column: 10 / span 3; margin-top: 0; align-self: end; }
@media (max-width: 900px) { .bridge__note--side { grid-column: 1 / -1; } }

/* R / S / A */
.letters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.letter { padding: clamp(16px, 2vw, 28px) clamp(12px, 2vw, 28px) clamp(24px, 3vw, 40px); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.letter:first-child { padding-left: 0; }
.letter:last-child { border-right: 0; }
.letter__glyph { font-variation-settings: "wdth" 62; font-weight: 800; font-size: clamp(120px, 20vw, 340px); line-height: .78; letter-spacing: -.03em; }
.letter:nth-child(3) .letter__glyph::after { content: "."; color: var(--orange); }
.letter__word { font-weight: 600; font-size: clamp(20px, 2vw, 28px); letter-spacing: -.01em; }
.letter p { color: var(--mute); max-width: 26em; }
.naming { border-left: 3px solid var(--orange); padding-left: 16px; font-size: 15px; align-self: end; }
@media (max-width: 760px) {
  .letters { grid-template-columns: 1fr; }
  .letter { border-right: 0; border-bottom: 1px solid var(--line-soft); padding-left: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-items: end; }
  .letter__glyph { grid-row: span 2; font-size: 120px; }
  .letter:last-child { border-bottom: 0; }
}

.why .g { color: var(--mute-2); }

/* Expertise chapters */
.chapter { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 32px; align-items: end; }
.chapter__fig { grid-column: 1 / span 7; }
.chapter__text { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 20px; }
.chapter__k { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }
.chapter__l { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1.5px solid currentColor; font-weight: 500; font-size: 14px; }
.dark .chapter__l { color: var(--orange); }
.ticks { border-top: 1px solid var(--line); }
.ticks li { padding: 9px 0 9px 22px; border-bottom: 1px solid var(--line-soft); position: relative; font-size: 15px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 1.5px; background: var(--orange); }
@media (max-width: 900px) { .chapter__fig, .chapter__text { grid-column: 1 / -1; } }

.techs { display: grid; grid-template-columns: 1.3fr 1fr 1fr; border: 1px solid var(--line); }
.tech { padding: clamp(20px, 2.4vw, 32px); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; min-width: 0; }
.tech:first-child { background: var(--ink); color: var(--paper); }
.tech:first-child p { color: var(--dark-mute); }
.tech:first-child .stamp--real { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.tech:not(:first-child) { background-image: repeating-linear-gradient(135deg, transparent 0 10px, rgba(17,17,16,.045) 10px 11px); }
.tech:last-child { border-right: 0; }
.tech__name { font-variation-settings: "wdth" 70; font-weight: 800; font-size: clamp(26px, 2.6vw, 40px); line-height: .95; text-transform: uppercase; }
.tech p { font-size: 15px; color: var(--mute); }
.ai-rule { font-size: 15px; border: 1.5px solid var(--orange); padding: 14px 16px; background: var(--white); }
@media (max-width: 900px) { .techs { grid-template-columns: 1fr; } .tech { border-right: 0; border-bottom: 1px solid var(--line); } .tech:last-child { border-bottom: 0; } }

.fig__img--shot { background: #fff; }
.fig__img--shot img { object-fit: contain; }

/* stacked info table on case pages */
.tblock--stack { grid-template-columns: 1fr; }
.tblock--stack > div { border-right: 0; border-bottom: 1px solid var(--line); }
.tblock--stack > div:last-child { border-bottom: 0; }
.tblock--stack > .tblock__pair { display: grid; grid-template-columns: 1fr 1fr; padding: 0; }
.tblock__pair > div { padding: 10px 12px; }
.tblock__pair > div:first-child { border-right: 1px solid var(--line); }
@media (max-width: 600px) { .tblock--stack > div:nth-child(2n) { border-right: 0; } }

/* footer brand line */
.footer__brandline { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 32px; padding-top: 28px; }
.footer__brandline strong { font-weight: 600; letter-spacing: .01em; }
.footer .link { color: var(--paper); }

/* Traditional Chinese typography */
:lang(zh-Hant) body, html:lang(zh-Hant) body { font-family: "Archivo", "Archivo Fallback", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif; letter-spacing: .02em; }
html:lang(zh-Hant) .display { font-weight: 900; line-height: 1.08; letter-spacing: .01em; text-transform: none; }
html:lang(zh-Hant) .d-xxl { font-size: clamp(48px, 10vw, 176px); line-height: 1.04; }
html:lang(zh-Hant) .d-xl { font-size: clamp(40px, 6.4vw, 108px); }
html:lang(zh-Hant) .d-l { font-size: clamp(32px, 4.4vw, 72px); }
html:lang(zh-Hant) .d-m { font-size: clamp(26px, 2.8vw, 44px); line-height: 1.15; }
html:lang(zh-Hant) .h-statement { line-height: 1.3; letter-spacing: .01em; }
html:lang(zh-Hant) .lede { line-height: 1.65; }
html:lang(zh-Hant) .loop__en, html:lang(zh-Hant) .rq__v { text-transform: none; font-weight: 900; }
html:lang(zh-Hant) .mono { letter-spacing: .06em; }
.cover__intro { position: relative; z-index: 2; }
.cover__intro .lede, .cover__intro p { background: linear-gradient(var(--paper), var(--paper)) no-repeat; background-size: 100% 100%; width: fit-content; max-width: 100%; }
html:lang(zh-Hant) .cover__sun { aspect-ratio: 1000 / 340; }
@media (max-width: 600px) { html:lang(zh-Hant) .h-statement { font-size: 24px; } }
.fig__img--logo { background: #fefefe; border: 1px solid var(--line-soft); display: grid; place-items: center; }
.fig__img--logo img { width: 86%; height: auto; object-fit: contain; }
a.fig:hover .fig__img--logo img { transform: none; }

/* ---------- v9.2: ledger, names table, mission/vision, values, conditions ---------- */
.ledger { border-top: 2px solid var(--ink); }
.ledger__row { display: grid; grid-template-columns: 140px minmax(0, 1fr) minmax(0, 1.6fr); gap: 8px 32px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); }
.ledger__row--head { padding: 12px 0; }
.ledger__no { font-family: var(--font-mono); font-size: 13px; color: var(--orange-ink); }
.ledger__t { font-weight: 600; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.2; }
.ledger__d { color: var(--mute); font-size: 16px; max-width: 46em; }
@media (max-width: 760px) { .ledger__row { grid-template-columns: 1fr; } }

.table-wrap { overflow-x: auto; border-top: 2px solid var(--ink); }
.names { width: 100%; border-collapse: collapse; min-width: 640px; }
.names th, .names td { text-align: left; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.names thead th { font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); padding-block: 12px; }
.names tbody th { font-family: var(--font-mono); font-size: 12px; font-weight: 400; color: var(--mute); width: 16%; }
.names td strong { font-size: clamp(17px, 1.5vw, 21px); font-weight: 600; }
.names tbody tr:first-child td strong { font-variation-settings: "wdth" 125; font-weight: 900; font-size: 28px; }
.names tbody tr:first-child td strong::after { content: "."; color: var(--orange); }

.mv { display: grid; grid-template-columns: 1fr 1fr; margin-top: clamp(56px, 7vw, 104px); border: 1px solid var(--line); }
.mv__item { padding: clamp(24px, 3vw, 44px); }
.mv__item--dark { background: var(--ink); color: var(--paper); }
@media (max-width: 760px) { .mv { grid-template-columns: 1fr; } }

.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.value { padding: 24px 24px 32px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.value:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.value:not(:nth-child(3n+1)) { padding-left: 24px; }
.value__n { font-family: var(--font-mono); font-size: 12px; color: var(--orange-ink); }
.value h3 { font-variation-settings: "wdth" 70; font-weight: 800; font-size: clamp(26px, 2.4vw, 36px); line-height: 1; text-transform: uppercase; }
.value p:last-child { color: var(--mute); }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } .value { border-right: 0 !important; padding-left: 0 !important; } }

.loop--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.loop--4 .loop__step { min-height: 220px; }
.loop--4 .loop__step:nth-child(3) .loop__en { color: var(--orange-ink); }
@media (max-width: 900px) { .loop--4 { grid-template-columns: 1fr; } }
.techs--2 { grid-template-columns: 1fr 1fr; }
.techs--2 .tech:first-child .mono { color: var(--dark-mute); }

.conds { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 4vw, 64px); }
.cond { border: 1px solid var(--line); padding: clamp(20px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 10px; background: var(--paper-2); }
.cond--b { background: var(--white); border-width: 2px; }
.cond .mono { color: var(--orange-ink); }
.cond h3 { font-size: clamp(22px, 2vw, 30px); font-weight: 600; }
.cond p:last-child { color: var(--mute); }
.conds__vs { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 14px; background: var(--paper); padding: 6px 8px; }
@media (max-width: 760px) { .conds { grid-template-columns: 1fr; } .conds__vs { position: static; transform: none; justify-self: center; } }
@media (max-width: 760px) { .stack[style*="repeat(3"] { grid-template-columns: 1fr !important; } }
html:lang(zh-Hant) .value h3 { text-transform: none; font-weight: 900; }
.display { overflow-wrap: break-word; }
.note-line { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; color: var(--mute); font-size: 15px; }

/* Tablet (601–900px): keep two columns for image mosaics instead of one tall stack */
@media (min-width: 601px) and (max-width: 900px) {
  .mosaic { grid-template-columns: 1fr 1fr; }
  .mosaic > * { grid-column: auto !important; }
  .mosaic .m1, .mosaic .m-note { grid-column: 1 / -1 !important; }
  .spread { grid-template-columns: 1fr 1fr; }
  .spread > * { grid-column: auto !important; }
  .spread .s3 { grid-column: 1 / -1 !important; }
  .cover__diptych .fig--design { grid-column: 1 / span 7; }
  .cover__diptych .fig--env { grid-column: 8 / span 5; margin-top: 0; align-self: end; }
}

/* Product mark (Residential Site Analyzer): icon + typeset name, no company wordmark */
.pmark { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); width: 88%; }
.pmark img { width: 42%; height: auto; flex: none; }
.pmark__name { display: flex; flex-direction: column; gap: 8px; color: var(--ink); }
.pmark__name > span:first-child { font-variation-settings: "wdth" 75; font-weight: 800; font-size: clamp(20px, 2.4vw, 38px); line-height: .95; letter-spacing: -.01em; text-transform: uppercase; }
.pmark__zh { font-size: clamp(12px, 1.1vw, 16px); letter-spacing: .3em; color: var(--mute); }
.pmark__by { font-size: 11px; color: var(--orange-ink); }

/* ---------- Expertise pillars ---------- */
.pillar__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 32px; align-items: start; }
.pillar__fig { grid-column: 1 / span 7; }
.pillar__text { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 18px; }
.pillar--flip .pillar__fig { grid-column: 6 / span 7; grid-row: 1; }
.pillar--flip .pillar__text { grid-column: 1 / span 4; grid-row: 1; }
.pillar__now { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 15px; }
.dark .pillar__now { border-color: #3a3a38; }
.dark .ticks { border-color: #3a3a38; }
.dark .ticks li { border-color: #2c2c2a; }
@media (max-width: 900px) { .pillar__fig, .pillar__text, .pillar--flip .pillar__fig, .pillar--flip .pillar__text { grid-column: 1 / -1; grid-row: auto; } }

/* ---------- Notes ---------- */
.notes { border-top: 2px solid var(--ink); }
.note { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 12px 40px; padding: 28px 0 32px; border-bottom: 1px solid var(--line); }
.note__meta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.note__t { font-weight: 600; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.15; letter-spacing: -.01em; margin-bottom: 12px; }
.note__b { color: var(--mute); max-width: 44em; margin-bottom: 14px; }
@media (max-width: 760px) { .note { grid-template-columns: 1fr; } .note__meta { flex-direction: row; align-items: center; } }

/* Cover product statement */
.product-line { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border: 1px solid var(--line); border-left: 4px solid var(--orange); background: var(--white); max-width: 34em; transition: background .2s; }
.product-line:hover { background: var(--paper-2); }
.product-line__k { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--mute); }
.product-line__t { font-size: 16px; line-height: 1.45; }
.product-line__go { color: var(--orange-ink); }
.cover__intro .product-line { background: var(--white); }

/* ---------- RSA Intelligence (planned) ---------- */
.aiflow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px dashed var(--line); background-image: repeating-linear-gradient(135deg, transparent 0 10px, rgba(17,17,16,.035) 10px 11px); }
.aiflow__step { padding: 22px clamp(14px, 1.6vw, 24px) 26px; border-right: 1px dashed var(--line); display: flex; flex-direction: column; gap: 10px; position: relative; }
.aiflow__step:last-child { border-right: 0; }
.aiflow__step:nth-child(2) { background: var(--ink); color: var(--paper); }
.aiflow__step:nth-child(2) p, .aiflow__step:nth-child(2) .loop__n { color: var(--dark-mute); }
.aiflow__t { font-variation-settings: "wdth" 70; font-weight: 800; font-size: clamp(24px, 2.4vw, 36px); line-height: .95; text-transform: uppercase; }
.aiflow__step:nth-child(2) .aiflow__t { color: var(--orange); }
.aiflow__step p { font-size: 15px; color: var(--mute); }
.aiflow__step:not(:last-child)::after { content: "→"; position: absolute; right: -11px; top: 22px; width: 22px; height: 22px; display: grid; place-items: center; background: var(--paper); font-size: 14px; z-index: 1; }
@media (max-width: 900px) { .aiflow { grid-template-columns: 1fr 1fr; } .aiflow__step:nth-child(2) { border-right: 0; } .aiflow__step:nth-child(-n+2) { border-bottom: 1px dashed var(--line); } .aiflow__step::after { display: none; } }
@media (max-width: 560px) { .aiflow { grid-template-columns: 1fr; } .aiflow__step { border-right: 0; border-bottom: 1px dashed var(--line); } .aiflow__step:last-child { border-bottom: 0; } }
.aiex { margin: clamp(48px, 6vw, 88px) 0 0; border: 1.5px dashed var(--orange); padding: clamp(20px, 2.6vw, 36px); background: var(--white); display: flex; flex-direction: column; gap: 14px; }
.aiex__cap { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.aiex__q { font-weight: 600; font-size: clamp(18px, 1.6vw, 22px); }
.aiex__q::before { content: "Q  "; font-family: var(--font-mono); color: var(--orange-ink); font-size: 14px; }
.aiex__a { font-size: 16px; line-height: 1.6; max-width: 52em; padding-left: 16px; border-left: 2px solid var(--line-soft); }
html:lang(zh-Hant) .aiflow__t { text-transform: none; font-weight: 900; }
.aiex__cap .stamp { white-space: normal; line-height: 1.3; }
