/* ==========================================================================
   IONIC — tokens, base typography, browser surfaces
   Workshop Monograph: white ground, hairline rules, oversized display type,
   red used as a signature only.
   ========================================================================== */

@font-face {
  font-family: "Panchang";
  src: url("/fonts/panchang-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cabinet Grotesk";
  src: url("/fonts/cabinet-grotesk-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cabinet Grotesk";
  src: url("/fonts/cabinet-grotesk-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("/assets/archivo-variable-latin-E0tuGl4L.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/inter-variable-latin-C2S99t-D.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bespoke Serif";
  src: url("/fonts/bespoke-serif-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Switzer";
  src: url("/fonts/switzer-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Switzer";
  src: url("/fonts/switzer-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Switzer";
  src: url("/fonts/switzer-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ---- Ground ---------------------------------------------------------- */
  --paper: #0B0B0C;
  --bone: #131315;
  --ink: #F2EFEA;
  --ink-2: #B6B1A9;
  --ink-3: #85807A;
  --line: rgba(255, 255, 255, 0.14);

  /* ---- Signature colour ------------------------------------------------ */
  /* Allowed in four places only: the full-bleed Bandung block, the primary
     button, the top progress line, the focus ring. */
  /* ---- Material accents --------------------------------------------- */
  /* Brass and plaster are what this workshop processes; they carry colour
     without competing with the signal red. */
  --bronze: #BC9764;
  --bronze-soft: rgba(188, 151, 100, 0.38);
  --bronze-ghost: rgba(188, 151, 100, 0.22);

  --red: #C80810;
  --red-deep: #9C060C;

  /* ---- Type ------------------------------------------------------------ */
  --font-mark: "Panchang", "Cabinet Grotesk", system-ui, sans-serif;
  --font-display: "Cabinet Grotesk", "Space Grotesk", system-ui, sans-serif;
  --font-body: "Cabinet Grotesk", "Space Grotesk", system-ui, sans-serif;

  --fs-display: clamp(2.75rem, 5.4vw, 6rem);
  --fs-h1: clamp(2.4rem, 4.2vw, 4.5rem);
  --fs-h2: clamp(1.9rem, 3.1vw, 3.4rem);
  --fs-h3: clamp(1.05rem, 1.15vw, 1.2rem);
  --fs-lead: clamp(1.0625rem, 1.15vw, 1.3125rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-micro: 0.8125rem;

  --lh-display: 0.96;
  --lh-heading: 1.08;
  --lh-body: 1.65;

  --ls-display: -0.02em;
  --ls-heading: -0.015em;

  --measure: 68ch;

  /* ---- Space & grid ---------------------------------------------------- */
  --shell: 2200px;
  --pad: clamp(20px, 2.2vw, 40px);
  --gap: 24px;
  --media-max: 1359px;
  --sect: clamp(72px, 8vw, 160px);
  --head: 76px;


  /* ---- Monument hero (taste-skill direction: name-as-monument) ---------- */
  --monument: "Bespoke Serif", Georgia, serif;
  --monument-bleed: clamp(16px, 1.6vw, 24px);
  --signal: #C80810;
  --signal-ink: #FFFFFF;
  --ink-solid: #000000;
  --surface-flat: #F2F2F2;

  --ease-deck: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  text-wrap: balance;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

button {
  font: inherit;
  color: inherit;
}

/* ---- Browser surfaces -------------------------------------------------- */

::selection {
  background: var(--ink);
  color: var(--paper);
}

body {
  caret-color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* ---- Display & text scale ---------------------------------------------- */

.display {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
}

.h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: var(--ls-display);
}

.h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: var(--ls-display);
}

.h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: -0.005em;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 46ch;
}

.prose {
  max-width: var(--measure);
  color: var(--ink-2);
}

.small {
  font-size: var(--fs-small);
  line-height: 1.55;
}

.micro {
  font-size: var(--fs-micro);
  line-height: 1.5;
}

.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.stack > * + * {
  margin-top: 1em;
}

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

.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  font-size: var(--fs-small);
  transform: translateY(-200%);
}

.skip:focus-visible {
  transform: none;
}
/* Two lockups live in the header so each palette can use its own; only one is
   ever visible. The ink skin uses the inverted file. */
.brand .brand__logo--paper {
  display: none;
}
/* Switzer 300/400 were bundled but never declared; the reference-style variant
   needs real weights rather than browser-synthesised ones. */
@font-face {
  font-family: "Switzer";
  src: url("/fonts/switzer-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Switzer";
  src: url("/fonts/switzer-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* ==========================================================================
   IONIC — shell, grid, chrome, screen deck
   ========================================================================== */

.shell {
  width: 100%;
  max-width: 1700px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---- Grid ---------------------------------------------------------------
   Root-cause rule for this site: every direct child of a .grid declares its
   own grid-column at all three tiers — desktop ≥1025px (the base rules),
   tablet 768–1024px and phone ≤767px. Automatic placement is never relied on.

   scripts/verify-grid.mjs reads the built CSS and the prerendered HTML and
   fails if any .grid child is missing a placement at any of the three tiers.
   Adding a .grid child without a placement class is therefore a build error,
   not a rendering surprise.
   ---------------------------------------------------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}

.grid > * {
  min-width: 0;
}

/* Desktop: twelve columns. */
.c1 { grid-column: span 1; }
.c2 { grid-column: span 2; }
.c3 { grid-column: span 3; }
.c4 { grid-column: span 4; }
.c5 { grid-column: span 5; }
.c6 { grid-column: span 6; }
.c7 { grid-column: span 7; }
.c8 { grid-column: span 8; }
.c9 { grid-column: span 9; }
.c10 { grid-column: span 10; }
.c11 { grid-column: span 11; }
.c12 { grid-column: span 12; }

.push-1 { margin-top: clamp(48px, 6vw, 96px); }
.push-2 { margin-top: clamp(72px, 9vw, 144px); }

/* ---- Chrome: progress line --------------------------------------------- */

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 1px;
  z-index: 80;
  pointer-events: none;
}

.progress__bar {
  height: 100%;
  width: 100%;
  background: var(--red);
  transform: scaleX(var(--p, 0));
  transform-origin: 0 50%;
}

/* ---- Chrome: header ----------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 70;
  height: var(--head);
  display: flex;
  align-items: center;
  background: transparent;
}

.site-header[data-scrolled="true"] {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
}

/* Nav, language switch and the mobile menu toggle share one flex row: the
   language switch has to stay reachable at every width, outside the
   collapsible nav. */
.head-end {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 24px);
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.brand__mark {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand:hover {
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.6vw, 28px);
}

/* Seven columns, five of them with a submenu. The row is a flat flex list so
   the submenu, which is out of flow, can never move it. */
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.5vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav__item[data-active="true"] > .nav__link {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* Closed: invisible *and* untabbable, so the row holds no hidden tab stops.
   The disclosure button opens it on focus, on hover and on tap. */
.nav__sub {
  position: absolute;
  left: -14px;
  top: calc(100% + 12px);
  z-index: 5;
  min-width: 216px;
  margin: 0;
  padding: 10px 0;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 180ms ease-out, transform 180ms ease-out, visibility 180ms;
  pointer-events: none;
}

.nav__item[data-open="true"] > .nav__sub {
  visibility: visible;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* The 12px between the link and the panel used to be a dead zone: moving the
   pointer down into the submenu left the <li>, the panel closed, and the items
   could not be clicked. This invisible bridge keeps the pointer inside.
   Desktop only — the mobile menu lays the panel out in flow, no gap to bridge. */
@media (min-width: 1025px) {
  .nav__sub::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -14px;
    height: 14px;
  }
}

.nav__sub-link {
  display: block;
  padding: 8px 18px;
  font-size: var(--fs-small);
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease-out, background 160ms ease-out;
}

.nav__sub-link:hover,
.nav__sub-link:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

.nav__sub-link[aria-current="page"] {
  color: var(--bronze);
}

/* Desktop opens the submenu from the link itself; the button is the phone
   affordance only. */
.nav__more {
  display: none;
}

.nav__scrim {
  display: none;
}

.nav__link {
  font-size: var(--fs-small);
  color: var(--ink-2);
  text-decoration: none;
  padding-block: 4px;
  border-bottom: 1px solid transparent;
}

.nav__link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.nav__link[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.nav__cta {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

.nav__toggle {
  display: none;
}

/* ---- Chrome: rail ------------------------------------------------------- */

.rail {
  position: fixed;
  right: clamp(12px, 1.4vw, 24px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-end;
}

.rail__link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 12px;
  padding-inline: 6px;
  /* a bare <button> keeps the UA chrome — that was the row of grey boxes */
  background: none;
  border: 0;
  border-radius: 0;
  appearance: none;
  cursor: pointer;
}

.rail__bar {
  display: block;
  width: 11px;
  height: 1px;
  background: rgba(255, 255, 255, 0.20);
  transition: width 420ms var(--ease-deck), background-color 420ms var(--ease-deck);
}

.rail__link:hover .rail__bar {
  width: 17px;
  background: rgba(255, 255, 255, 0.5);
}

.rail__link[aria-current="true"] .rail__bar {
  width: 24px;
  background: var(--ink);
}

/* ---- Screen deck -------------------------------------------------------- */

.deck {
  position: relative;
}

/* Outside deck mode the track must never be displaced: a hash such as
   #bandung would otherwise push the whole page up by N * 100svh and render
   a blank screen for reduced-motion and small-viewport users. */
.deck__track {
  transform: none;
}

.deck__track[data-motion="gsap"] {
  transition: none;
}

.panel {
  position: relative;
  display: grid;
  align-content: center;
  padding-block: clamp(72px, 9vw, 120px);
  scroll-margin-top: var(--head);
}

.panel--bone {
  background: var(--bone);
}

.panel--paper {
  background: var(--paper);
}

.panel--red {
  /* The direction permits exactly one full black band; signal red survives
     inside it as the accent, which reads louder than a red field. */
  background: var(--ink-solid);
  color: var(--ink);
}

.panel__inner {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.panel__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* ---- Drawing frame: one hairline per screen ----------------------------- */

.frame {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 9px;
  margin-bottom: clamp(16px, 2.2vw, 30px);
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.frame__label,
.frame__count {
  white-space: nowrap;
}

.panel--red .frame {
  border-top-color: rgba(255, 255, 255, 0.42);
  color: rgba(255, 255, 255, 0.8);
}

/* ---- Twelve column hairlines behind the content ------------------------- */

.shell-rules {
  display: none;
  position: absolute;
  inset: 0 var(--pad);
  z-index: 0;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  pointer-events: none;
}

.shell-rules span {
  border-left: 1px solid rgba(255, 255, 255, 0.055);
}

.shell-rules span:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.055);
}

@media (min-width: 1025px) {
  .shell-rules { display: none; }
}

/* Deck mode: one screen per panel, transform-driven flip. */
@media (min-width: 1025px) and (min-height: 680px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .deck {
    height: 100svh;
    overflow: hidden;
  }

  .deck__track {
    height: 100svh;
    transform: translate3d(0, calc(-1 * var(--i, 0) * var(--ph, 100svh)), 0);
    transition: transform 1000ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
  }

  .panel {
    height: 100svh;
    overflow: hidden;
    padding-block: clamp(84px, 9vh, 120px) clamp(24px, 4vh, 48px);
  }

  /* The single grid row must fill the viewport, otherwise a grid with
     align-content:center sizes its row to content and every absolutely
     positioned hero child collapses. */
  .panel {
    align-content: stretch;
    grid-template-rows: minmax(0, 1fr);
  }

  .panel__inner {
    height: 100%;
    min-height: 0;
  }

  .panel__body {
    flex: 1;
    justify-content: center;
  }

  .panel__inner--split {
    justify-content: space-between;
  }
}

/* ---- Section rhythm ----------------------------------------------------- */

.section {
  padding-block: clamp(72px, 8vw, 160px);
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

.rule--ink {
  background: var(--ink);
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding-top: clamp(20px, 2.4vw, 32px);
  margin-top: clamp(32px, 4vw, 64px);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap) clamp(20px, 2.4vw, 40px);
  align-items: start;
}

.foot__h {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.foot__body {
  margin-top: 8px;
  font-size: var(--fs-micro);
  line-height: 1.45;
  color: var(--ink-2);
}

.foot__list {
  margin-top: 8px;
  font-size: var(--fs-micro);
  line-height: 1.45;
  color: var(--ink-2);
}

.foot__list li + li {
  margin-top: 3px;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- Motion pre-hide (removed if GSAP never boots) ---------------------- */

html[data-anim="1"] [data-anim="words"] .w-in {
  opacity: 0;
  transform: translateY(24px);
}

html[data-anim="1"] [data-anim="blur"] {
  opacity: 0;
  filter: blur(8px);
}

html[data-anim="1"] [data-anim="rule"] .head__rule {
  transform: scaleX(0);
  transform-origin: 0 50%;
}

html[data-anim="1"] [data-anim="plate"] .plate__frame {
  clip-path: inset(0 0 100% 0);
}

/* The structure map fades in level by level; nothing else on the site does. */
html[data-anim="1"] .tree__node {
  opacity: 0;
}

/* ---- Responsive --------------------------------------------------------- */

@media (max-width: 1180px) {
  .rail {
    display: none;
  }
}

@media (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .c1,
  .c2 {
    grid-column: span 3;
  }

  .c3,
  .c4,
  .c5,
  .c6,
  .c7,
  .c8,
  .c9,
  .c10,
  .c11,
  .c12 {
    grid-column: span 6;
  }

  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shell-rules {
    display: none;
  }
}

@media (max-width: 767px) {
  :root {
    --head: 64px;
  }

  .grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Belt and braces: every child still carries its own placement class. */
  .grid > * {
    grid-column: span 1;
  }

  .c1,
  .c2,
  .c3,
  .c4,
  .c5,
  .c6,
  .c7,
  .c8,
  .c9,
  .c10,
  .c11,
  .c12 {
    grid-column: span 1;
  }

  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-header__inner {
    gap: 16px;
  }

  .head-end {
    gap: 10px;
  }

  .lang__btn {
    padding: 4px 6px;
  }

  .panel {
    min-height: auto;
  }
}

/* ---- Navigation, collapsed ---------------------------------------------
   Seven columns with submenus do not fit below the desktop row, so the whole
   navigation folds behind Menu from 1024px down. The panel is fixed and the
   page underneath is covered by a scrim, so nothing under it takes a tap.
   The header band itself keeps its 76px height at every width. */
@media (max-width: 1024px) {
  .nav {
    display: none;
  }

  .nav[data-open="true"] {
    position: fixed;
    inset: var(--head) 0 auto 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100dvh - var(--head));
    overflow-y: auto;
    padding: 4px var(--pad) 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__item {
    flex-wrap: wrap;
    border-bottom: 1px solid var(--line);
  }

  .nav__item[data-active="true"] > .nav__link {
    border-bottom-color: transparent;
  }

  .nav[data-open="true"] .nav__link {
    flex: 1;
    display: flex;
    align-items: center;
    min-height: 48px;
    padding-block: 6px;
    font-size: 1.125rem;
    border-bottom: 0;
  }

  .nav__link::after {
    display: none;
  }

  /* A tap target, not a hover target: 44px square, chevron drawn in CSS. */
  .nav__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-height: 44px;
    padding: 0;
    background: none;
    border: 0;
    color: var(--ink-2);
    cursor: pointer;
  }

  .nav__chev {
    width: 8px;
    height: 8px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform 180ms ease-out;
  }

  .nav__item[data-open="true"] .nav__chev {
    transform: rotate(225deg) translate(-2px, -2px);
  }

  /* In flow inside the panel: the panel grows, the page underneath does not. */
  .nav__sub {
    position: static;
    width: 100%;
    min-width: 0;
    padding: 0 0 8px;
    background: none;
    border: 0;
    display: none;
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition: none;
  }

  .nav__item[data-open="true"] > .nav__sub {
    display: block;
  }

  .nav__sub-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 4px 0 4px 16px;
    font-size: 1rem;
    white-space: normal;
  }

  .nav[data-open="true"] .nav__cta {
    align-self: flex-start;
    margin-top: 20px;
  }

  /* Only while the panel is open: everything under it stops answering taps. */
  .nav__scrim[data-open="true"] {
    display: block;
    position: fixed;
    inset: var(--head) 0 0 0;
    z-index: 1;
    background: rgba(6, 6, 7, 0.74);
  }

  .nav__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    background: none;
    border: 0;
    padding: 8px 0;
    font-size: var(--fs-small);
  }
}

/* ---- Small spacing utilities -------------------------------------------- */

.mt-1 { margin-top: clamp(8px, 1vw, 12px); }
.mt-2 { margin-top: clamp(14px, 1.6vw, 20px); }
.mt-3 { margin-top: clamp(20px, 2.6vw, 32px); }
.mt-4 { margin-top: clamp(28px, 3.6vw, 48px); }

/* If the app never boots, nothing may stay hidden by a motion library. */
html.anim-failed .split-parent,
html.anim-failed .split-word,
html.anim-failed .split-char,
html.anim-failed .split-line,
html.anim-failed .reveal,
html.anim-failed [data-anim],
html.anim-failed .tree__node {
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
  clip-path: none !important;
  filter: none !important;
}

/* Deck mode owns the viewport: no native document scroll may compete with the
   track transform. */
html.deck-lock,
html.deck-lock body {
  overflow: hidden;
  height: 100%;
  overscroll-behavior: none;
}

/* ---- Header follows the panel below it ---------------------------------- */
/* The band is black; a dark header on it is unreadable. */
html[data-tone="red"] .site-header,
html[data-tone="red"] .brand,
html[data-tone="red"] .nav__link,
html[data-tone="red"] .nav__cta {
  color: var(--ink);
}
html[data-tone="red"] .nav__cta {
  border-color: rgba(255, 255, 255, 0.7);
}

html[data-tone="red"] .site-header {
  border-bottom-color: rgba(255, 255, 255, 0.18);
}

/* ---- Drawing-sheet watermark ------------------------------------------- */
/* An outlined numeral of the sheet sits behind the content. It gives the page
   texture without adding colour, and ties back to the 03 / 08 counter. */
.panel {
  isolation: isolate;
}

.panel__ghost {
  position: absolute;
  right: clamp(8px, 1.6vw, 32px);
  bottom: clamp(-0.12em, -1vw, 0px);
  z-index: -1;
  font-family: var(--monument);
  font-size: clamp(200px, 30vw, 470px);
  line-height: 0.72;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px var(--bronze-ghost);
  pointer-events: none;
  user-select: none;
}

html[data-tone="red"] .panel__ghost {
  -webkit-text-stroke-color: rgba(255, 255, 255, 0.16);
}

/* On a dark site the band is pure black; the watermark carries its identity. */
.panel--red {
  background: #000000;
}

/* ---- Faint brand watermark --------------------------------------------- */
/* Sits behind the black band only, at 7% stroke — present, never competing. */
.panel__brand {
  position: absolute;
  left: 4%;
  bottom: -0.14em;
  z-index: -1;
  font-family: var(--monument);
  font-size: clamp(180px, 24vw, 420px);
  line-height: 0.8;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
/* Client lockup in the header: 2.37:1 artwork, height drives the width. */
.brand__logo {
  display: block;
  height: clamp(34px, 3vw, 42px);
  width: auto;
}

@media (max-width: 767px) {
  .brand__logo {
    height: 30px;
  }
}

}/* ==========================================================================
   IONIC — plates, lists, controls, editorial parts
   ========================================================================== */

/* ---- Section heading with an expanding hairline ------------------------ */

.head {
  position: relative;
  padding-bottom: 20px;
}

.head__rule {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform-origin: 0 50%;
}

/* ---- Split words (React Bits style, GSAP driven) ----------------------- */

.words {
  display: block;
}

.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}

.w-in {
  display: inline-block;
  will-change: transform, opacity;
}

/* ---- Plate: capped at 1359px, cropped, never upscaled ------------------ */

.plate {
  margin: 0;
  width: 100%;
  max-width: var(--media-max);
}

.plate__frame {
  position: relative;
  width: 100%;
  max-width: var(--media-max);
  aspect-ratio: var(--ratio, 16 / 9);
  overflow: hidden;
  background: var(--bone);
  clip-path: inset(0 0 0% 0);
}

.plate__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ---- Plate without a photograph: a white frame, a drawing number, a mark -- */

.plate__frame--blank {
  background: var(--paper);
  border: 1px solid var(--line);
}

.plate__no {
  position: absolute;
  left: 10px;
  top: 9px;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.plate__mark {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 8px;
  height: 8px;
}

.plate__mark::before,
.plate__mark::after {
  content: "";
  position: absolute;
  background: var(--line);
}

.plate__mark::before {
  left: 0;
  top: 3.5px;
  width: 8px;
  height: 1px;
}

.plate__mark::after {
  top: 0;
  left: 3.5px;
  width: 1px;
  height: 8px;
}

.plate__cap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-micro);
  line-height: 1.4;
}

.plate--stacked .plate__cap {
  flex-direction: column;
  gap: 3px;
}

.cap__name {
  color: var(--ink);
  font-weight: 600;
}

.cap__cat {
  color: var(--ink-2);
  text-align: right;
}

.plate--stacked .cap__cat {
  text-align: left;
}

/* ---- Controls ----------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease;
}

.btn:hover {
  background: var(--ink);
  color: var(--ink);
}

.btn--primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--ink);
}

.btn--primary:hover {
  background: var(--red-deep);
  border-color: var(--red-deep);
  color: var(--ink);
}

.btn__arrow {
  font-size: 0.95em;
  transform: translateX(0);
  transition: transform 220ms var(--ease-deck);
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.link-arrow {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

.link-arrow:hover {
  text-decoration: none;
}

.link-arrow .btn__arrow {
  display: inline-block;
  margin-left: 8px;
}

.link-arrow:hover .btn__arrow {
  transform: translateX(3px);
}

/* ---- Ledger: hairline rows --------------------------------------------- */

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

.ledger__row {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: var(--gap);
  align-items: start;
  padding-block: clamp(12px, 1.45vw, 20px);
  border-bottom: 1px solid var(--line);
}

.ledger__row h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: -0.005em;
}

.ledger__row p {
  color: var(--ink-2);
  max-width: 62ch;
}

.ledger--tight .ledger__row {
  padding-block: 12px;
}

/* ---- Plain list with hairlines ---------------------------------------- */

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

.plist__item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-small);
}

.plist__item span:last-child {
  color: var(--ink-2);
  text-align: right;
}

/* ---- Facts (about) ----------------------------------------------------- */

.facts {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 4vw, 72px);
}

.fact {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 4fr);
  gap: 16px;
  align-items: baseline;
  padding-block: clamp(14px, 1.6vw, 20px);
  border-bottom: 1px solid var(--line);
}

.fact__n {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.2vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.fact__l {
  color: var(--ink-2);
  font-size: var(--fs-small);
}

/* ---- Stat row (red block) --------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  border-top: 1px solid rgba(255, 255, 255, 0.34);
  padding-top: clamp(20px, 2vw, 32px);
}

.stat__n {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 2.8vw, 3.1rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}

.stat__l {
  margin-top: 8px;
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.82);
}

/* ---- Structure map: nested lists with 1px right-angle connectors ------- */

.tree {
  --tree-indent: clamp(20px, 2vw, 34px);
  /* 45% of --ink-3, the only hairline colour a connector may use. */
  --tree-line: rgba(255, 255, 255, 0.26);
  list-style: none;
  margin: 0;
  padding: 0;
}

.tree__kids {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tree__node {
  position: relative;
}

.tree__row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 20px;
  font-size: 15px;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
}

.tree__dot {
  flex: none;
  width: 6px;
  height: 6px;
  background: var(--ink);
}

.tree__node[data-root="true"] > .tree__row .tree__dot {
  background: var(--red);
}

.tree__label { flex: 0 1 auto; min-width: 0; }

.tree__link:hover .tree__label {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tree__meta { flex: none; margin-left: auto; padding-left: 12px; font-size: 13px; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }

.tree__kids > .tree__node {
  padding-left: var(--tree-indent);
}

/* The vertical rule runs from the parent's marker down through the group. */
.tree__kids > .tree__node::before {
  content: "";
  position: absolute;
  left: 0;
  top: -10px;
  bottom: 0;
  width: 1px;
  background: var(--tree-line);
}

/* Last child: the rule stops at its own row, making the corner. */
.tree__kids > .tree__node:last-child::before {
  bottom: auto;
  height: 20px;
}

/* The short horizontal rule that meets the 6px marker. */
.tree__kids > .tree__node::after {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: var(--tree-indent);
  height: 1px;
  background: var(--tree-line);
}

/* ---- Capability matrix -------------------------------------------------- */

.matrix {
  border-top: 1px solid var(--ink);
}

.matrix__table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.matrix__table th,
.matrix__table td {
  height: 44px;
  padding: 0 10px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}

.matrix__table thead th {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
  border-bottom: 1px solid var(--ink);
}

.matrix__table tbody th {
  font-weight: 400;
  font-size: var(--fs-micro);
  color: var(--ink);
}

.matrix__table td {
  width: 66px;
  text-align: center;
  font-size: 12px;
  color: var(--ink);
}

.matrix__row--line th,
.matrix__row--line td {
  border-top: 1px solid var(--ink);
}

/* ---- Project index ------------------------------------------------------ */

.idx {
  border-top: 1px solid var(--ink);
}

.idx__row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto auto;
  align-items: baseline;
  gap: 12px;
  padding-block: 8px;
  border-bottom: 1px solid var(--line);
}

.idx__row:hover {
  background: var(--bone);
}

.idx__n {
  font-size: 11px;
  color: var(--ink-3);
}

.idx__name {
  font-size: var(--fs-micro);
  color: var(--ink);
}

.idx__cat {
  font-size: 11px;
  color: var(--ink-2);
  text-align: right;
  white-space: nowrap;
}

.idx__line {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}

/* ---- Cards (404) ------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}

.card {
  border-top: 1px solid var(--ink);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
}

.card p {
  color: var(--ink-2);
  font-size: var(--fs-small);
  flex: 1;
}

/* ---- Form -------------------------------------------------------------- */

.form {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.form__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gap);
}

.field {
  display: grid;
  gap: 6px;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
}

.field > label,
.field > legend {
  font-size: var(--fs-micro);
  color: var(--ink-2);
  padding: 0;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.4;
  padding: 2px 0;
  border-radius: 0;
  appearance: none;
}

.field textarea {
  resize: vertical;
  min-height: 88px;
}

.field--full {
  grid-column: 1 / -1;
}

.form__note {
  color: var(--ink-2);
  font-size: var(--fs-small);
  padding-top: 14px;
}

/* ---- Two line block ---------------------------------------------------- */

.twoline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 72px);
}

.twoline + .twoline {
  margin-top: clamp(18px, 2vw, 28px);
}

.typelist {
  border-top: 1px solid var(--line);
  margin-top: 18px;
}

.typelist li {
  padding-block: 9px;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-small);
  color: var(--ink-2);
}

/* ---- Meta line --------------------------------------------------------- */

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  color: var(--ink-2);
  font-size: var(--fs-micro);
}

@media (max-width: 1024px) {
  /* The matrix keeps its eleven rows and scrolls sideways instead of wrapping. */
  .matrix {
    overflow-x: auto;
  }

  .matrix__table {
    min-width: 520px;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 24px;
  }

  .ledger__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
}

@media (max-width: 767px) {
  .facts,
  .twoline,
  .form__row {
    grid-template-columns: minmax(0, 1fr);
  }

  .cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .fact {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  }
}
/* FadeContent wrapper used by the no-deck (touch / reduced motion) fallback. */
.reveal {
  width: 100%;
}


/* ---- Blank plate frames must read as drawing plates, not missing images --- */
/* A rgba(255, 255, 255, 0.04) fill with a rgba(255, 255, 255, 0.16) hairline is invisible on white; the frames
   then look like unloaded images. Give them a real edge, corner crop marks and
   legible drawing numbers so a blank frame reads as intentional. */

.plate__frame--blank {
  background: var(--bone);
  border: 1px solid rgba(255, 255, 255, 0.30);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10);
}

.plate__frame--blank::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  width: 12px;
  height: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.50);
  border-top: 1px solid rgba(255, 255, 255, 0.50);
  pointer-events: none;
}

.plate__mark {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 12px;
  height: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.50);
  border-bottom: 1px solid rgba(255, 255, 255, 0.50);
  background: none;
}

.plate__frame--blank .plate__no {
  left: 26px;
  top: 22px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-transform: uppercase;
}


/* ---- Rail: numeric page indicator (borrowed from the old site) --------- */
.rail__now {
  margin-bottom: 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

.rail__sep {
  opacity: 0.5;
}

html[data-tone="red"] .rail__now {
  color: rgba(255, 255, 255, 0.6);
}


/* ---- Plate crosshair ---------------------------------------------------- */
/* Hovering a blank plate lays a drafting crosshair on it, the way a rule and
   a pencil would. Position comes from --mx/--my set on the frame. */
.plate__x,
.plate__y {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  background: var(--bronze);
  transition: opacity 180ms ease-out;
}

.plate__x {
  left: 0;
  right: 0;
  top: var(--my, 50%);
  height: 1px;
}

.plate__y {
  top: 0;
  bottom: 0;
  left: var(--mx, 50%);
  width: 1px;
}

.plate__frame--blank:hover .plate__x,
.plate__frame--blank:hover .plate__y,
.plate__frame--blank:focus-within .plate__x,
.plate__frame--blank:focus-within .plate__y {
  opacity: 0.55;
}

.plate__frame--blank .plate__no {
  transition: color 180ms ease-out;
}

.plate__frame--blank:hover .plate__no {
  color: var(--bronze);
}

@media (hover: none) {
  .plate__x,
  .plate__y {
    display: none;
  }
}

/* ---- Nav underline draws in -------------------------------------------- */
.nav__link {
  position: relative;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nav__link:hover::after,
.nav__link:focus-visible::after {
  transform: scaleX(1);
}

/* ---- Door rows answer the pointer --------------------------------------- */
.door__list li {
  transition: color 160ms ease-out, border-color 160ms ease-out, padding-left 200ms ease-out;
}

.door__list li:hover {
  color: var(--ink);
  border-top-color: var(--bronze);
  padding-left: 6px;
}


/* ---- Language switch ---------------------------------------------------- */
.lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: none;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 0;
}

.lang__btn {
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: none;
  border: 0;
  padding: 4px 7px;
  cursor: pointer;
  transition: color 160ms ease-out, background 160ms ease-out;
}

.lang__btn:hover {
  color: var(--ink);
}

.lang__btn[aria-pressed="true"] {
  color: var(--paper);
  background: var(--ink);
}


/* the swap itself: a 120ms dip, then the new language fades back in */
html[data-locale-switch="1"] .deck,
html[data-locale-switch="1"] .site-header,
html[data-locale-switch="1"] main {
  opacity: 0.55;
  transition: opacity 120ms ease-out;
}

.deck,
.site-header,
main {
  transition: opacity 200ms ease-out;
}


/* ---- Brand lockup ------------------------------------------------------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.brand__cube {
  flex: none;
  color: var(--ink);
  transition: color 200ms ease-out;
}

.brand:hover .brand__cube {
  color: var(--bronze);
}


/* the mark uses the display face; the pages use Cabinet Grotesk */
.brand__mark {
  font-family: var(--font-mark);
  font-weight: 500;
  letter-spacing: -0.01em;
}
/* ==========================================================================
   IONIC — page compositions
   Every .grid child declares its own grid-column at the three tiers
   (desktop base, 768–1024px, ≤767px). scripts/verify-grid.mjs enforces it.
   ========================================================================== */

/* ---- Opening screen (home) --------------------------------------------- */

.hero__title {
  grid-column: 1 / span 7;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.8vw, 24px);
}

.hero__title .display {
  font-size: clamp(2.6rem, 4.6vw, 5rem);
}

.hero__rule {
  margin: 0;
}

.hero__lead {
  color: var(--ink-2);
  max-width: 42ch;
}

/* The collapsed structure map is the opening screen's main image. */
.hero__tree {
  grid-column: 8 / span 5;
  align-self: center;
}

.hero__index {
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

/* ---- Structure map, full width of a screen ----------------------------- */

.map__title {
  grid-column: 1 / span 6;
}

.map__lead {
  grid-column: 7 / span 6;
  margin-top: clamp(10px, 1.4vw, 18px);
}

.map__body {
  margin-top: clamp(18px, 2.4vw, 32px);
}

.map__a {
  grid-column: 1 / span 6;
}

.map__b {
  grid-column: 7 / span 6;
}

/* ---- Work sheet: white plates mixed across the columns ----------------- */

.sheet-aside {
  grid-column: 1 / span 4;
}

.sheet-aside__title {
  margin-bottom: clamp(10px, 1.4vw, 18px);
}

.sheet-aside__note + .sheet-aside__note {
  margin-top: 12px;
}

.sheet-aside__note {
  color: var(--ink-2);
  max-width: 40ch;
}

.sheet {
  grid-column: 5 / span 8;
  align-content: start;
  row-gap: clamp(16px, 1.8vw, 24px);
}

/* ---- Capability screen -------------------------------------------------- */

.cap__lead {
  grid-column: 1 / span 4;
}

.cap__note {
  margin-top: clamp(12px, 1.6vw, 20px);
  font-size: var(--fs-small);
}

.cap__table {
  grid-column: 5 / span 8;
}

/* ---- Project index ------------------------------------------------------ */

.idx-head__title {
  grid-column: 1 / span 6;
}

.idx-head__note {
  grid-column: 7 / span 6;
  color: var(--ink-2);
  margin-top: clamp(10px, 1.4vw, 18px);
}

.idx-body {
  margin-top: clamp(16px, 2.2vw, 28px);
  row-gap: 0;
}

.idx-body__a {
  grid-column: 1 / span 6;
}

.idx-body__b {
  grid-column: 7 / span 6;
}

/* ---- Inner page opening ------------------------------------------------ */

.open {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  align-items: end;
}

.open__main {
  grid-column: 1 / span 8;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 26px);
}

.open__lead {
  color: var(--ink-2);
  max-width: 50ch;
}

.open__aside {
  grid-column: 10 / span 3;
  color: var(--ink-2);
  font-size: var(--fs-small);
  border-top: 1px solid var(--ink);
  padding-top: 12px;
}

/* ---- Two business lines ------------------------------------------------ */

.lines {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 72px);
  margin-top: clamp(24px, 3vw, 48px);
}

.lines__col + .lines__col {
  border-left: 1px solid var(--line);
  padding-left: clamp(28px, 4vw, 72px);
}

.lines__col h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 2.25rem);
  font-weight: 600;
  letter-spacing: var(--ls-display);
  line-height: 1.06;
}

.lines__col .typelist {
  margin-block: clamp(14px, 1.8vw, 22px);
}

/* ---- Plate pairs: measured so a screen always fits --------------------- */

.pair {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: clamp(20px, 2.6vw, 40px);
}

.pair__wide {
  grid-column: 1 / span 6;
}

.pair__small {
  grid-column: 10 / span 3;
  margin-top: clamp(48px, 6vw, 96px);
}

.pair__mid {
  grid-column: 8 / span 5;
  margin-top: clamp(24px, 3vw, 48px);
}

.pair__left {
  grid-column: 1 / span 5;
}

.trio {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: clamp(20px, 2.6vw, 40px);
}

.trio__a { grid-column: 1 / span 4; }
.trio__b { grid-column: 6 / span 4; margin-top: clamp(24px, 3vw, 56px); }
.trio__c { grid-column: 11 / span 2; margin-top: clamp(48px, 6vw, 88px); }

/* ---- Red block (Bandung) ----------------------------------------------- */

.red-block__title {
  grid-column: 1 / span 8;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.4vw, 5rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: var(--ls-display);
  text-wrap: balance;
  max-width: 18ch;
}

.red-block__note {
  grid-column: 9 / span 4;
  align-self: end;
  margin-top: 0;
  color: rgba(255, 255, 255, 0.88);
  max-width: 52ch;
}

.red-block__stats {
  grid-column: 1 / -1;
  margin-top: clamp(32px, 4vw, 64px);
}

/* ---- Last screen: call to action + footer ------------------------------ */

.closing {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.6vw, 34px);
  /* Centre only when there is room: Chinese and Japanese closing copy is longer
     than the English, and a centred column that overflows lifts its first line
     up under the fixed header. */
  justify-content: flex-start;
}

@media (min-height: 1000px) {
  .closing {
    justify-content: center;
  }
}

.closing__body {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2vw, 26px);
  max-width: 54ch;
}

.panel__inner--split > .site-footer,
.closing .site-footer {
  margin-top: 0;
}

/* ---- About ------------------------------------------------------------- */

.story {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(28px, 5vw, 96px);
  margin-top: clamp(20px, 2.6vw, 40px);
}

.story p + p {
  margin-top: 1em;
}

.story__aside p {
  color: var(--ink-2);
}

.buyers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 36px) clamp(24px, 4vw, 72px);
  margin-top: clamp(20px, 2.6vw, 40px);
}

.buyer {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.buyer h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
}

.buyer p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: var(--fs-small);
}

/* ---- Contact ----------------------------------------------------------- */

.contact__form {
  grid-column: 1 / span 7;
}

.contact__side {
  grid-column: 9 / span 4;
}

.detail {
  border-top: 1px solid var(--line);
  padding-block: 14px;
}

.detail h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
}

.detail p,
.detail a {
  color: var(--ink-2);
  font-size: var(--fs-small);
}

/* ---- Privacy ----------------------------------------------------------- */

.privacy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 72px);
  align-items: start;
  margin-top: clamp(20px, 2.6vw, 40px);
}

.privacy h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 600;
}

.privacy p,
.privacy li {
  margin-top: 10px;
  color: var(--ink-2);
  max-width: 64ch;
}

.privacy li {
  padding-left: 18px;
  position: relative;
}

.privacy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 8px;
  height: 1px;
  background: var(--ink-3);
}

/* ---- 404 --------------------------------------------------------------- */

.notfound__cards {
  margin-top: clamp(32px, 4vw, 64px);
}

/* ---- Two-column ledgers stack their label above the body copy ---------- */

.c6 .ledger__row {
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
}

/* ---- Tablet: 768–1024px ------------------------------------------------- */

@media (max-width: 1024px) {
  .red-block__title,
  .red-block__note,
  .red-block__stats {
    grid-column: 1 / -1;
    align-self: auto;
  }

  .red-block__note {
    margin-top: clamp(16px, 2vw, 26px);
  }

  .hero__title,
  .hero__tree,
  .hero__lead,
  .map__title,
  .map__lead,
  .idx-head__title,
  .idx-head__note,
  .sheet-aside,
  .sheet,
  .open__main {
    grid-column: 1 / -1;
  }

  /* The map keeps its two columns so the tree stays inside one screen. */
  .map__a,
  .map__b {
    grid-column: span 3;
  }

  .idx-body__a,
  .idx-body__b {
    grid-column: span 3;
  }

  .cap__lead {
    grid-column: span 2;
  }

  .cap__table {
    grid-column: span 4;
  }

  .open__aside {
    grid-column: 1 / -1;
  }

  .open {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: start;
  }

  .pair,
  .trio {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .pair__wide,
  .pair__small,
  .pair__mid,
  .pair__left,
  .trio__a,
  .trio__b,
  .trio__c,
  .contact__form,
  .contact__side {
    grid-column: span 6;
    margin-top: 0;
  }

  .lines,
  .story,
  .privacy,
  .buyers {
    grid-template-columns: minmax(0, 1fr);
  }

  .lines__col + .lines__col {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: clamp(24px, 4vw, 40px);
  }
}

/* ---- Phone: ≤767px ------------------------------------------------------ */

@media (max-width: 767px) {
  .open__aside {
    display: none;
  }

  .hero__title,
  .hero__lead,
  .hero__tree,
  .map__title,
  .map__lead,
  .map__a,
  .map__b,
  .idx-head__title,
  .idx-head__note,
  .idx-body__a,
  .idx-body__b,
  .sheet-aside,
  .sheet,
  .cap__lead,
  .cap__table {
    grid-column: 1 / -1;
  }

  .sheet {
    row-gap: 20px;
  }

  .pair,
  .trio {
    grid-template-columns: minmax(0, 1fr);
  }

  .pair__wide,
  .pair__small,
  .pair__mid,
  .pair__left,
  .trio__a,
  .trio__b,
  .trio__c {
    grid-column: span 1;
  }
}


/* ---- Monument hero ------------------------------------------------------ */
/* Direction: the name as architecture. Bleeds past the shell to a 24px
   margin; the wordmark sits on the bottom edge and inverts over the plate via
   difference blending, so it reads on white and on the photograph alike. */

.hero-monument {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  row-gap: clamp(8px, 1.2vw, 20px);
  /* isolation+background are both required: mix-blend-mode:difference needs
     an opaque backdrop inside the isolated group, or white-on-nothing stays white. */
  isolation: isolate;
  background: var(--paper);
  height: 100%;
  min-height: min(84svh, 780px);
  margin-inline: calc(var(--pad) * -1);
  padding-inline: var(--monument-bleed);
  padding-top: clamp(4px, 0.8vw, 12px);
  overflow: hidden;
}

.hero-monument__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.hero-monument__top p {
  margin: 0;
}

.hero-monument__meta {
  color: var(--ink-3);
}

.hero-monument__stage {
  position: relative;
  z-index: 1;
  align-self: start;
  margin-top: clamp(28px, 7vh, 96px);
  display: flex;
  flex-direction: column;
  /* reference: spacing.xl = 24px, on DJI's 4/8 rhythm */
  gap: 24px;
  width: min(34ch, 32%);
}

.hero-monument__sentence {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(2rem, 3.4vw, 3.6rem);
  font-weight: 600;
  line-height: 1.08;
  /* reference: DJI display-xl sets -0.03em at heading sizes */
  letter-spacing: -0.03em;
  max-width: 18ch;
  color: var(--ink);
}

.hero-monument__lead {
  margin: 0;
  font-size: clamp(0.9375rem, 0.95vw, 1.0625rem);
  line-height: 1.55;
  max-width: 34ch;
  color: var(--ink-2);
}

.hero-monument__action {
  width: fit-content;
  font-size: 0.9375rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.hero-monument__action:hover {
  color: var(--signal);
  border-color: currentColor;
}

.hero-monument__plate {
  position: absolute;
  top: clamp(34px, 3vw, 46px);
  right: calc(var(--monument-bleed) + 48px);
  height: 62%;
  width: min(38%, 660px);
  margin: 0;
  overflow: hidden;
}

.hero-monument__plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-monument__word {
  font-family: var(--monument);
  font-weight: 400;
  /* six glyphs now (five letters plus the full stop), so the cap comes down */
  font-size: clamp(96px, 28.6vw, 520px);
  line-height: 0.9;
  letter-spacing: -0.012em;
  margin: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  max-width: 100%;
}


/* ---- BLACK BAND ACCENTS ------------------------------------------------- */
/* One black band carries the whole site's colour memory: the rule above the
   statistics turns signal red, and the note's rule stays hairline white. */
.panel--red .red-block__title {
  color: var(--ink);
}

.panel--red .red-block__stats {
  border-top: 1px solid var(--red);
}

.panel--red .stat__n {
  color: var(--ink);
}

.panel--red .stat__l {
  color: rgba(255, 255, 255, 0.62);
}


/* ---- HEADING VOICE ------------------------------------------------------ */
/* Headings use the same family and weight band as the monument wordmark, so
   the page reads as one system rather than two. */
h2,
.h2,
.head__title {
  font-weight: 300;
  letter-spacing: -0.03em;
}


/* ---- Monument word: masks + a restrained hover ------------------------- */
.mw__mask {
  display: inline-block;
  overflow: hidden;
  /* clip at the baseline only; the letters never carry descenders */
  padding-bottom: 0.02em;
  margin-bottom: -0.02em;
}

.mw__letter {
  display: inline-block;
  will-change: transform;
}

.hero-monument__word {
  transition: letter-spacing 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-monument__word:hover {
  letter-spacing: -0.02em;
}

@media (prefers-reduced-motion: reduce) {
  .hero-monument__word {
    transition: none;
  }
}


/* ---- Signal rule: the one place red appears on the opening screen ------ */
.hero-monument__rule {
  display: block;
  width: 60%;
  height: 1px;
  background: var(--signal);
  transform-origin: 0 50%;
  transform: scaleX(0);
  margin-top: clamp(6px, 0.8vw, 12px);
}

@media (prefers-reduced-motion: reduce) {
  .hero-monument__rule {
    transform: none;
  }
}


/* ---- Rail clearance ----------------------------------------------------- */
/* The section rail is fixed on the right; blocks that reach the right margin
   must stop short of it or they sit under the controls. */
.sheet,
.idx-body__b,
.map__b,
.cap__table {
  padding-right: 44px;
}

@media (max-width: 1180px) {
  .sheet,
  .idx-body__b,
  .map__b,
  .cap__table {
    padding-right: 0;
  }
}


/* ---- rail clearance for the black band ---------------------------------- */
.red-block__note {
  padding-right: 44px;
}


/* ---- 02 · Two doors, one floor ----------------------------------------- */
/* Two lists in equal columns read as the same thing twice. This screen gives
   each line its own door — a serif numeral, the line name, its types — and
   then lets one band carry the shared workshop across both. */

.lines-screen {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vw, 28px);
  height: 100%;
  min-height: 0;
}

.lines-screen__head {
  row-gap: clamp(10px, 1.4vw, 20px);
}

.lines-screen__title {
  grid-column: 1 / span 6;
}

.lines-screen__lead {
  grid-column: 7 / span 6;
  align-self: end;
  max-width: 44ch;
}

.lines-screen__doors {
  display: grid;
  flex: 1;
  min-height: 0;
  align-content: start;
  padding-bottom: clamp(8px, 1.2vw, 18px);
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 96px);
  border-top: 1px solid var(--line);
  padding-top: clamp(18px, 2vw, 30px);
}

.door {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: clamp(14px, 1.6vw, 26px);
  align-content: start;
}

.door__n {
  font-family: var(--monument);
  font-size: clamp(2.4rem, 3.4vw, 3.6rem);
  line-height: 0.8;
  color: var(--ink);
  grid-row: 1 / span 2;
}

.door__name {
  font-size: clamp(1.6rem, 2.2vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.door__meta {
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 4px;
}

.door__list {
  grid-column: 2;
  list-style: none;
  margin: clamp(14px, 1.6vw, 22px) 0 0;
  padding: 0;
}

.door__list li {
  border-top: 1px solid var(--line);
  padding: clamp(6px, 0.75vw, 10px) 0;
  font-size: var(--fs-small);
  color: var(--ink-2);
}

.floor-band {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: clamp(16px, 2vw, 32px);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  padding: clamp(12px, 1.4vw, 18px) 0;
}

.floor-band__label {
  flex: none;
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.floor-band__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px clamp(14px, 1.6vw, 26px);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--fs-small);
  color: var(--ink-2);
}

.floor-band__list li::after {
  content: "·";
  margin-left: clamp(14px, 1.6vw, 26px);
  color: var(--ink-3);
}

.floor-band__list li:last-child::after {
  content: "";
}

@media (max-width: 1024px) {
  .lines-screen__title,
  .lines-screen__lead {
    grid-column: 1 / -1;
  }

  .lines-screen__doors {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}


/* ---- 07 · The process as a timeline, not a table ----------------------- */
/* Five identical rows read as a table. Numbering them, tying them to one
   vertical rule and dotting each step turns the same copy into a route. */

.steps {
  list-style: none;
  margin: clamp(18px, 2.2vw, 34px) 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: clamp(16px, 2vw, 34px);
  align-items: start;
  border-top: 1px solid var(--line);
  padding: clamp(12px, 1.4vw, 20px) 0;
}

.step__n {
  grid-row: 1 / span 2;
  font-family: var(--monument);
  font-size: clamp(1.6rem, 2.2vw, 2.6rem);
  line-height: 0.82;
  color: var(--ink);
  position: relative;
  padding-right: clamp(6px, 0.8vw, 12px);
}

/* the dot that turns the numerals into a route */
.step__n::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0.34em;
  width: 5px;
  height: 5px;
  background: var(--ink);
}

.step__title {
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}

.step__body {
  grid-column: 2;
  margin: 6px 0 0;
  color: var(--ink-2);
  font-size: var(--fs-small);
  max-width: 62ch;
}

@media (max-width: 767px) {
  .step__body {
    grid-column: 1 / -1;
  }
}


/* ---- 03 · Fill the sheet height ---------------------------------------- */
/* Two rows of plates used to sit in the top two thirds and leave a dead band
   at the bottom. Distributing the rows over the available height turns the
   leftover into measured space between the rows. */
@media (min-width: 1025px) {
  /* Deck wraps every panel's children in an anonymous div. Only the work panel
     is matched here, so the other seven screens keep their own height model. */
  .panel__body > div:has(> .sheet-wrap) {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .sheet-wrap {
    flex: 1;
    min-height: 0;
    align-content: stretch;
  }

  .sheet {
    height: 100%;
    align-content: space-evenly;
    row-gap: clamp(18px, 2.2vw, 34px);
  }
}


/* ---- 08 · The contact register ----------------------------------------- */
/* Contact details set as large typographic rows, not a paragraph: on the last
   screen the details are the content, and they are what a buyer copies. */

.closing {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: clamp(14px, 1.8vw, 26px);
}

.closing__lead {
  max-width: 56ch;
}

.reach {
  margin: clamp(6px, 1vw, 14px) 0 0;
  border-top: 1px solid var(--ink);
  padding-right: 44px;
}

.reach__row {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: baseline;
  gap: clamp(12px, 2vw, 32px);
  border-bottom: 1px solid var(--line);
  padding: clamp(8px, 1vw, 13px) 0;
}

.reach__row dt {
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.reach__row dd {
  margin: 0;
  font-size: clamp(1.05rem, 1.5vw, 1.6rem);
  letter-spacing: -0.015em;
  color: var(--ink);
}

.reach__row dd a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--ink-3);
  padding-bottom: 1px;
}

.reach__row dd a:hover {
  border-color: var(--signal);
  color: var(--signal);
}

.closing__actions {
  margin-top: auto;
}

@media (max-width: 767px) {
  .reach__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}


/* ---- 02 · Material strip ----------------------------------------------- */
/* The one photographic moment between the two lines and the shared floor:
   real craft materials, no claim about a project. */
.lines-screen__texture {
  margin: clamp(10px, 1.4vw, 20px) 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.lines-screen__texture img {
  width: 100%;
  height: clamp(84px, 9vw, 132px);
  object-fit: cover;
  display: block;
}


/* ---- bronze details ---------------------------------------------------- */
/* Brass marks the drawing apparatus — rules, dots, numerals — never the copy. */
.step__n::after {
  background: var(--bronze);
}

.step:last-child .step__n::after {
  background: var(--signal);
}

.door__n,
.step__n {
  color: var(--ink);
}

.reach__row dt,
.frame__label,
.frame__count {
  color: var(--bronze);
}

.lines-screen__doors,
.reach,
.floor-band {
  border-top-color: var(--bronze-soft);
}


/* ---- SERIF HEADINGS ----------------------------------------------------- */
/* Headings and the monument share one face, so the page reads as a printed
   sheet rather than a web template. Body copy stays on the grotesque. */
h1,
h2,
.h2,
.head__title,
.closing__title,
.sheet-aside__title {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

h3,
.h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.025em;
}


/* ---- 02 · Where to go --------------------------------------------------- */
/* The home page is an index, not an essay. Four lines, each one a door. */

.entries {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: clamp(18px, 2.4vw, 34px);
}

.entries__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: clamp(10px, 1.2vw, 16px);
}

.entries__title {
  font-family: var(--monument);
  font-weight: 400;
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
}

.entries__note {
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bronze);
  margin: 0;
}

.entries__list {
  list-style: none;
  margin: 0;
  padding: 0 44px 0 0;
  display: grid;
  align-content: stretch;
  grid-auto-rows: minmax(0, 1fr);
  flex: 1;
  min-height: 0;
}

.entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.1fr) auto;
  align-items: baseline;
  gap: clamp(16px, 2.4vw, 44px);
  border-top: 1px solid var(--line);
  padding: clamp(14px, 1.8vw, 26px) 0;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 200ms ease-out, padding-left 240ms ease-out, background 240ms ease-out;
}

.entries__list li:last-child .entry {
  border-bottom: 1px solid var(--line);
}

.entry:hover,
.entry:focus-visible {
  border-top-color: var(--bronze);
  padding-left: 10px;
}

.entry__n {
  font-family: var(--monument);
  font-size: clamp(1.1rem, 1.5vw, 1.5rem);
  color: var(--bronze);
  line-height: 1;
}

.entry__name {
  font-family: var(--monument);
  font-size: clamp(1.5rem, 2.4vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1;
}

.entry__meta {
  font-size: var(--fs-small);
  color: var(--ink-2);
  line-height: 1.45;
}

.entry__arrow {
  font-size: clamp(1rem, 1.3vw, 1.35rem);
  color: var(--ink-3);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), color 200ms ease-out;
}

.entry:hover .entry__arrow {
  color: var(--signal);
  transform: translate(3px, -3px);
}

@media (max-width: 1024px) {
  .entry {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .entry__meta {
    grid-column: 2 / -1;
  }
}


/* ---- Japanese typesetting ---------------------------------------------- */
/* CJK glyphs are not in the Latin webfont, so a Japanese stack takes over.
   Kanji need more leading and slightly looser tracking than the Latin settings
   the rest of the sheet uses. */
:lang(ja) body,
:lang(ja) .lead,
:lang(ja) .prose,
:lang(ja) p,
:lang(ja) li {
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", "Meiryo", system-ui, sans-serif;
  line-height: 1.9;
  letter-spacing: 0.01em;
}

:lang(ja) h1,
:lang(ja) h2,
:lang(ja) h3,
:lang(ja) .h2,
:lang(ja) .head__title,
:lang(ja) .entries__title,
:lang(ja) .entry__name,
:lang(ja) .closing__title,
:lang(ja) .hero-monument__sentence,
:lang(ja) .door__name,
:lang(ja) .step__title {
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", "Meiryo", system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

:lang(ja) .hero-monument__sentence {
  line-height: 1.28;
  max-width: 22ch;
}

:lang(ja) .hero-monument__lead {
  line-height: 1.95;
}

/* the wordmark is Latin only; keep it on the display face in every locale */
:lang(ja) .hero-monument__word {
  font-family: var(--font-display);
  font-weight: 500;
}


/* ---- Simplified Chinese typesetting ------------------------------------ */
/* A Chinese-only stack: the Japanese faces above render different glyph forms
   for the same code points, so none of them may stay reachable here. Chinese
   needs a little positive tracking at text sizes, and no negative tracking at
   display sizes, where full-width glyphs would collide. */
:lang(zh) body,
:lang(zh) .lead,
:lang(zh) .prose,
:lang(zh) p,
:lang(zh) li {
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", "Source Han Sans SC", system-ui, sans-serif;
  line-height: 1.9;
  letter-spacing: 0.02em;
  word-break: normal;
  overflow-wrap: break-word;
  line-break: strict;
}

:lang(zh) h1,
:lang(zh) h2,
:lang(zh) h3,
:lang(zh) .h2,
:lang(zh) .head__title,
:lang(zh) .entries__title,
:lang(zh) .entry__name,
:lang(zh) .closing__title,
:lang(zh) .hero-monument__sentence,
:lang(zh) .door__name,
:lang(zh) .step__title {
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", "Source Han Sans SC", system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.34;
  letter-spacing: 0.01em;
  word-break: normal;
  overflow-wrap: break-word;
  line-break: strict;
}

/* 中文大标题不许在词中间断开：默认 word-break: normal 时浏览器可以在任意两个
   汉字之间换行，首屏那句会被切成「专业建筑模 / 型，出自北京」。keep-all 之后只在
   标点处断行，hero 再降一档字号，让「专业建筑模型，」七个字能落在同一行。 */
:lang(zh) h1,
:lang(zh) .hero-monument__sentence,
:lang(zh) .closing__title,
:lang(zh) .entries__title,
:lang(zh) .head__title {
  word-break: keep-all;
}

:lang(zh) .hero-monument__sentence {
  /* 两行断在逗号上：「专业建筑模型，」/「出自北京同一座工坊。」
     字号压到 2.35vw（1440 下约 34px），9 个汉字刚好落在 321px 的栏宽里。 */
  line-height: 1.34;
  max-width: 100%;
  /* 2.1vw ≈ 30px @1440：逗号后那 10 个字（含句号）刚好落在 321px 栏内，
     不会出现句号被挤到第三行的孤字。 */
  font-size: clamp(1.4rem, 2.1vw, 2rem);
}

:lang(zh) .hero-monument__lead {
  line-height: 1.9;
}

:lang(zh) .hero-monument__word {
  font-family: var(--font-display);
  font-weight: 500;
}


/* ---- Showcase: one plate at a time -------------------------------------- */
/* A case archive is read by stepping through it, so the plate is large and the
   arrows sit on the frame. */

.show {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.6vw, 22px);
  height: 100%;
  min-height: 0;
  outline: none;
}

.show__stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.show__frame {
  position: relative;
  width: 100%;
  max-height: 100%;
  aspect-ratio: var(--ratio, 16 / 9);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.025);
  display: flex;
  align-items: flex-start;
  padding: clamp(10px, 1.2vw, 18px);
}

.show__no {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--bronze);
}

.show__mark {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 12px;
  height: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.show__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font: inherit;
  font-size: 18px;
  color: var(--ink);
  background: rgba(11, 11, 12, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 0;
  appearance: none;
  cursor: pointer;
  /* visible at rest so the arrows are discoverable; they firm up on hover */
  opacity: 0.38;
  transition: opacity 200ms ease-out, background 200ms ease-out, border-color 200ms ease-out,
    transform 200ms ease-out;
}

.show:hover .show__arrow,
.show:focus-within .show__arrow {
  opacity: 1;
}

.show__arrow:hover {
  transform: translateY(-50%) scale(1.06);
}

.show__arrow:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.show__arrow--prev {
  left: 10px;
}

.show__arrow--next {
  right: 10px;
}

.show__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: clamp(8px, 1vw, 14px);
}

.show__cap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.show__name {
  font-family: var(--monument);
  font-size: clamp(1.05rem, 1.5vw, 1.5rem);
  letter-spacing: -0.01em;
}

.show__cat {
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bronze);
}

.show__nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  padding-right: 44px;
}

.show__count {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}

.show__sep {
  opacity: 0.5;
}

.show__dots {
  display: flex;
  gap: 6px;
}

.show__dot {
  width: 16px;
  height: 1px;
  padding: 0;
  background: rgba(255, 255, 255, 0.22);
  border: 0;
  appearance: none;
  cursor: pointer;
  transition: background 200ms ease-out, width 200ms ease-out;
}

.show__dot[aria-selected="true"] {
  width: 26px;
  background: var(--ink);
}

.show__link {
  font-size: var(--fs-small);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--bronze);
  padding-bottom: 1px;
  white-space: nowrap;
}

.show__link:hover {
  color: var(--signal);
  border-color: var(--signal);
}

/* the panel body must let the showcase own the height, without changing how
   the wrapper lays its own children out */
.panel__body > div:has(> .show) {
  flex: 1;
  min-height: 0;
}

.sheet-aside {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.2vw, 18px);
}


/* ---- 03 · Work panel shell --------------------------------------------- */
/* The showcase needs the full remaining width, so it gets its own two-column
   grid instead of inheriting the old plate sheet's twelve-column one. */
.grid.work-wrap {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 8fr);
  gap: clamp(24px, 3vw, 56px);
  height: 100%;
  min-height: 0;
  align-items: stretch;
}

.grid.work-wrap > .sheet-aside {
  grid-column: 1;
  align-content: start;
}

.grid.work-wrap > .show {
  grid-column: 2;
}

.work-wrap .show {
  min-width: 0;
}

/* Below the desktop breakpoint the aside sits above the showcase at full width.
   This has to be written as .grid.work-wrap: the two-column rule above carries
   that specificity, and a bare .work-wrap never won against it — which is why
   the copy stayed jammed into a 110px strip on phones. */
@media (max-width: 1024px) {
  .grid.work-wrap {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    gap: clamp(18px, 3vw, 32px);
  }

  .grid.work-wrap > .sheet-aside,
  .grid.work-wrap > .show {
    grid-column: 1;
  }
}

/* the caption line should not be squeezed by the nav block */
.show__cap {
  flex: 1;
}

.show__name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Tablet: the dot rail carries one dot per work — eight on the opening screen,
   eighteen on /work — and .show__nav cannot shrink below it because every dot is
   a fixed 16px box. Left on one row that min-content pushed .show__cap (flex:1,
   basis 0) down to 49px on /work and 57px on /, so the ellipsis above ate 170px
   of a project name. Stack the caption over the controls instead of squeezing
   the one line of text that says what the drawing is. */
@media (min-width: 768px) and (max-width: 1024px) {
  .show__foot {
    flex-wrap: wrap;
    row-gap: 14px;
  }

  .show__cap {
    flex: 1 1 100%;
  }
}

/* Phone: the same starvation one breakpoint lower, and worse — the foot is only
   350px wide at 390, the eighteen-dot rail alone is 400px, so .show__cap ended
   up 0px wide and the project name was not rendered at all. Stack the caption,
   let the controls wrap, and bring the dots down to 10px so the counter and the
   whole rail share one line instead of pushing the link off the page. */
@media (max-width: 767px) {
  .show__foot {
    flex-wrap: wrap;
    row-gap: 12px;
  }

  .show__cap {
    flex: 1 1 100%;
  }

  .show__nav {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .show__dots {
    gap: 3px;
    flex-wrap: wrap;
    max-width: 100%;
  }

  .show__dot {
    width: 10px;
  }

  .show__dot[aria-selected="true"] {
    width: 14px;
  }
}


/* ---- /work ------------------------------------------------------------- */
.route--work {
  padding-top: calc(var(--head) + clamp(24px, 3vw, 52px));
  padding-bottom: clamp(40px, 6vw, 96px);
}

.route--work .route__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 56px);
  align-items: end;
  border-bottom: 1px solid var(--ink);
  padding-bottom: clamp(12px, 1.6vw, 22px);
  margin-bottom: clamp(20px, 3vw, 44px);
}

.route--work .route__lead {
  max-width: 46ch;
}

/* the plate must not own the whole viewport on a scrolling page */
.route--work .show {
  height: auto;
}

.route--work .show__stage {
  max-height: 56vh;
}

.route--work .route__foot {
  margin-top: clamp(48px, 7vw, 110px);
  border-top: 1px solid var(--line);
  padding-top: clamp(24px, 3vw, 44px);
}

@media (max-width: 1024px) {
  .route--work .route__head {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* /work draws its own rule under the head grid — the SectionHead's animated one
   would cross the words because the grid aligns children to the baseline. */
.route--work .route__head .head__rule {
  display: none;
}

.route--work .route__head .head__title,
.route--work .route__head .h2 {
  margin: 0;
  line-height: 0.98;
}






/* material band on the case page */
.work-band {
  margin: 0 0 clamp(20px, 3vw, 44px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.work-band img {
  width: 100%;
  height: clamp(120px, 15vw, 220px);
  object-fit: cover;
  object-position: center 42%;
  display: block;
}


/* ---- Wordmark: one face, engineered ------------------------------------ */
/* Tight tracking on a medium grotesque reads as a set mark rather than a line
   of type. No decoration: the size and the tracking are the design. */
.hero-monument__word {
  font-family: var(--font-mark);
  font-weight: 500;
  letter-spacing: -0.018em;
  text-transform: uppercase;
}


/* ---- the drawn wordmark ------------------------------------------------ */
/* It is an SVG now, so it scales from the column width rather than from a
   font size: full measure, capped by its own aspect ratio. */
.hero-monument__word {
  display: block;
  /* full width made it a wall of letters; a little over half keeps the
     presence without crushing the copy above it */
  width: min(100%, clamp(320px, 52vw, 760px));
  height: auto;
  color: var(--ink);
  fill: none;
  stroke: currentColor;
}

.brand__mark {
  font-family: var(--font-mark);
  font-weight: 500;
  letter-spacing: -0.01em;
}


/* ---- MOBILE · hero ------------------------------------------------------ */
/* The desktop hero lays the copy in a 32% column and floats the photograph on
   the right. On a phone that leaves a 125px measure and overlapping blocks, so
   the hero becomes a single stack: copy, then photograph, then the wordmark. */
@media (max-width: 767px) {
  .hero-monument {
    height: auto;
    min-height: 0;
    margin-inline: calc(var(--pad) * -1);
    padding-inline: var(--pad);
    padding-block: 16px 24px;
    row-gap: 16px;
  }

  .hero-monument__top {
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
  }

  .hero-monument__stage {
    width: 100%;
    max-width: none;
    gap: 14px;
  }

  .hero-monument__sentence {
    max-width: none;
    font-size: clamp(1.6rem, 7.2vw, 2.1rem);
    line-height: 1.15;
  }

  .hero-monument__lead {
    max-width: none;
    font-size: 0.9375rem;
  }

  .hero-monument__plate {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    margin-top: 8px;
  }

  .hero-monument__plate img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* watermarks are texture for a wide screen; on a phone they only crowd it */
  .panel__ghost,
  .panel__brand {
    display: none;
  }
}

/* nothing on this site may scroll sideways */
html,
body {
  overflow-x: clip;
}


/* ---- Hero title block --------------------------------------------------- */
/* Every drawing carries a title block in the corner. Putting one in the hero
   fills the lower right with information rather than decoration. */
.titleblock {
  position: absolute;
  right: calc(var(--monument-bleed) + 48px);
  top: 68%;
  z-index: 2;
  margin: 0;
  display: grid;
  grid-template-columns: auto auto;
  gap: 2px clamp(16px, 1.6vw, 26px);
  border-top: 1px solid var(--ink);
  padding-top: 10px;
  pointer-events: none;
}

.titleblock > div {
  display: contents;
}

.titleblock dt {
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze);
}

.titleblock dd {
  margin: 0;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .titleblock {
    display: none;
  }
}


/* ---- DESIGN PASS · reference-driven ------------------------------------ */
/* From design-md/brands/oura: full-bleed imagery carries the emotional weight,
   hairline rules do the structure, and long vertical silences separate blocks.
   From brands/dji: one family, three weights, negative tracking at heading size. */

/* the photograph bleeds off the right edge instead of sitting in a box */
.hero-monument__plate {
  right: calc(var(--monument-bleed) * -1);
  width: min(44%, 760px);
  /* stops above the title block: 58% + 68% leaves a clear gutter */
  height: 58%;
}

/* a hairline rule above the title block, so it reads as a drawing's corner */
.titleblock {
  border-top-width: 1px;
  padding-top: 12px;
  gap: 3px clamp(20px, 1.8vw, 30px);
}

.titleblock dt {
  font-size: 9px;
  letter-spacing: 0.2em;
}

.titleblock dd {
  font-size: 11px;
}

/* the section label at the top-left gains a rule above it, tying it to the
   sheet rather than floating */
.hero-monument__top {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

/* the lead sits at a narrower measure so the headline keeps the width */
.hero-monument__lead {
  max-width: 30ch;
}

/* CTA becomes a rule-underlined mark rather than a paragraph link */
.hero-monument__action {
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
}


/* ---- Headline: per-glyph rise ------------------------------------------ */
/* Each character sits in an overflow box and rises past the baseline on load.
   Works for Japanese (no word breaks) and Latin alike. */
.glyph {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  /* the box must not clip descenders or the full-stop */
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.glyph__in {
  display: inline-block;
  will-change: transform;
}


/* ---- the copy block answers the pointer --------------------------------- */
.hero-monument__lead {
  transition: color 240ms ease-out;
}

.hero-monument__stage:hover .hero-monument__lead {
  color: var(--ink);
}

.hero-monument__action span {
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-monument__action:hover span {
  transform: translateX(4px);
}

.hero-monument__action {
  transition: color 200ms ease-out, border-color 200ms ease-out;
}


/* ---- HERO VARIANTS ------------------------------------------------------ */
/* Every composition ever approved is still reachable: ?v=2 ?v=3 ?v=4
   the parameters are all that differ, so going back is one line. */

/* v2 — full-width wordmark, photograph inside the measure, no title block */
.hero-monument[data-hero="2"] .hero-monument__word {
  width: 100%;
}

.hero-monument[data-hero="2"] .hero-monument__plate {
  right: calc(var(--monument-bleed) + 48px);
  width: min(33%, 600px);
  height: 50%;
}

.hero-monument[data-hero="2"] .titleblock {
  display: none;
}

/* v3 — 52vw wordmark, photograph in its box, title block back */
.hero-monument[data-hero="3"] .hero-monument__plate {
  right: calc(var(--monument-bleed) + 48px);
  width: min(38%, 660px);
  height: 58%;
}

/* v4 (default) — the photograph bleeds off the right edge */
.hero-monument[data-hero="4"] .hero-monument__plate {
  right: calc(var(--monument-bleed) * -1);
  width: min(44%, 760px);
  height: 58%;
}


/* ---- the gutter between copy and photograph ---------------------------- */
/* A drawing has a binding edge: a vertical rule with a rotated label. It gives
   the empty band between the text column and the image a reason to be empty. */
.hero-monument__spine {
  position: absolute;
  left: 46%;
  top: 22%;
  bottom: 26%;
  width: 1px;
  background: var(--line);
  z-index: 1;
}

.hero-monument__sidelabel {
  position: absolute;
  left: calc(46% + 14px);
  bottom: 26%;
  margin: 0;
  z-index: 1;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bronze);
  pointer-events: none;
}

@media (max-width: 1024px) {
  .hero-monument__spine,
  .hero-monument__sidelabel {
    display: none;
  }
}

/* ==========================================================================
   Section pages — one template for every column page (components/SectionPage)
   ========================================================================== */

.spage {
  min-height: 100svh;
  padding-top: var(--head);
}

.spage__inner {
  padding-block: clamp(20px, 3vw, 48px) clamp(56px, 7vw, 120px);
}

.crumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-micro);
  color: var(--ink-3);
}

.crumb__item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.crumb__item + .crumb__item::before {
  content: "/";
  opacity: 0.55;
}

.crumb__link {
  color: var(--ink-3);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease-out, border-color 160ms ease-out;
}

.crumb__link:hover,
.crumb__link:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--bronze);
}

.crumb__here {
  color: var(--ink);
}

.spage__head {
  margin-top: clamp(18px, 2.6vw, 36px);
}

.spage__h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.spage__head .rule {
  margin: clamp(14px, 1.8vw, 26px) 0;
}

.spage__lead {
  max-width: 64ch;
  color: var(--ink-2);
}

.spage__blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(18px, 2.2vw, 32px) clamp(24px, 3vw, 56px);
  margin-top: clamp(28px, 3.6vw, 56px);
}

.sblock {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.sblock__h {
  margin: 0 0 8px;
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.sblock__body {
  margin: 0;
  max-width: 62ch;
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--ink-2);
}

/* ---- Section index: every row is a link -------------------------------- */

.slist {
  margin: clamp(26px, 3.2vw, 52px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.slist__item {
  border-bottom: 1px solid var(--line);
}

.slist__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  min-height: 56px;
  padding: 14px 4px;
  color: var(--ink);
  text-decoration: none;
  transition: color 160ms ease-out, padding-left 200ms ease-out;
}

a.slist__row:hover,
a.slist__row:focus-visible {
  color: var(--bronze);
  padding-left: 12px;
}

.slist__label {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.5vw, 1.45rem);
  letter-spacing: -0.01em;
}

.slist__note {
  font-size: var(--fs-small);
  color: var(--ink-3);
  text-align: right;
}

a.slist__row:hover .slist__note,
a.slist__row:focus-visible .slist__note {
  color: var(--bronze);
}

/* ---- Gallery: nothing renders when the plate list is empty -------------- */

.plate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(16px, 2vw, 32px);
  margin: clamp(26px, 3.2vw, 52px) 0 0;
  padding: 0;
  list-style: none;
}

.plate-grid__cell {
  min-width: 0;
}

.spage__pending {
  margin: clamp(26px, 3.2vw, 52px) 0 0;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-small);
  letter-spacing: 0.1em;
  color: var(--ink-3);
}

.spage__next {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: clamp(30px, 4vw, 64px);
  padding-top: 14px;
  border-top: 1px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
}

.spage__next-k {
  font-size: var(--fs-micro);
  letter-spacing: 0.14em;
  color: var(--ink-3);
}

.spage__next-v {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
}

.spage__next:hover .spage__next-v,
.spage__next:focus-visible .spage__next-v {
  color: var(--bronze);
}

/* ---- The /about column index, inside the opening screen ----------------- */

.about-index {
  max-width: 620px;
  margin-top: clamp(18px, 2.2vw, 28px);
}

.about-index__lead {
  margin: 0;
  font-size: var(--fs-small);
  line-height: 1.7;
  color: var(--ink-3);
}

.about-index .slist {
  margin-top: 10px;
}

.about-index .slist__row {
  min-height: 44px;
  padding: 8px 2px;
}

.about-index .slist__label {
  font-size: var(--fs-small);
}

@media (max-width: 600px) {
  .slist__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-height: 44px;
    padding-block: 12px;
  }

  .slist__note {
    text-align: left;
  }
}


/* ---- Case gallery: the frame carries a drawing number and a ratio ------- */

.plate-grid .plate {
  max-width: none;
}

/* The whole frame is the control: a button so the keyboard reaches it, with
   the plate's own drawing language left untouched inside. */
.plate-grid .plate__open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: zoom-in;
}

.plate-grid .plate__frame {
  display: block;
}

.plate-grid .plate__frame img {
  transform: scale(1);
  transition: transform 420ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.plate-grid .plate__open:hover .plate__frame img,
.plate-grid .plate__open:focus-visible .plate__frame img {
  transform: scale(1.025);
}

.plate-grid .plate__open:focus-visible {
  outline: 1px solid var(--bronze);
  outline-offset: 4px;
}

.plate-grid .plate__cap {
  flex-wrap: wrap;
  gap: 2px 14px;
}

.plate-grid .cap__cat {
  color: var(--ink-3);
  white-space: nowrap;
}

/* ---- The enlarged view: a fixed layer, the page does not move ----------- */

.lb {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(10px, 1.6vw, 18px);
  padding: clamp(12px, 2vw, 26px);
  background: rgba(6, 6, 7, 0.95);
  overscroll-behavior: contain;
}

.lb__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.lb__no {
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

.lb__count {
  margin-left: auto;
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

.lb__close,
.lb__step {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-small);
  cursor: pointer;
  transition: border-color 160ms ease-out, color 160ms ease-out;
}

.lb__close:hover,
.lb__close:focus-visible,
.lb__step:hover,
.lb__step:focus-visible {
  border-color: var(--bronze);
  color: var(--bronze);
}

.lb__figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  gap: 10px;
  margin: 0;
  min-height: 0;
}

.lb__img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lb__cap {
  max-width: 72ch;
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--ink-2);
  text-align: center;
}

.lb__nav {
  display: flex;
  justify-content: center;
  gap: 10px;
}

@media (max-width: 600px) {
  .lb {
    padding: 10px;
  }

  .lb__count {
    margin-left: 0;
  }

  .lb__close {
    margin-left: auto;
  }

  .lb__nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .lb__cap {
    text-align: left;
  }
}


/* 真实照片进 Showcase：图填满图纸框，编号与角标浮在照片上。
   placeholder 的图版仍然渲染空白框（地产那五个品类没有照片）。 */
.show__frame--photo {
  overflow: hidden;
}

.show__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* Company film window. Empty and invisible until a src exists in data/video.ts;
   the poster is a real photograph so the block never looks like a placeholder. */
.vblock {
  margin: clamp(40px, 6vw, 88px) 0 0;
}

.vblock__poster {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  background: none;
  cursor: pointer;
  overflow: hidden;
}

.vblock__poster img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: brightness(0.72);
  transition: transform 700ms var(--ease, ease), filter 400ms ease;
}

.vblock__poster:hover img,
.vblock__poster:focus-visible img {
  transform: scale(1.02);
  filter: brightness(0.86);
}

.vblock__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.vblock__play::after {
  content: "";
  position: absolute;
  left: 30px;
  top: 26px;
  border-left: 18px solid var(--ink);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}

.vblock__label {
  position: absolute;
  left: 18px;
  bottom: 16px;
  font-size: var(--fs-small);
  color: var(--ink);
  letter-spacing: var(--ls-small, 0.04em);
}

.vblock__layer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 6, 6, 0.94);
}

.vblock__video {
  width: min(92vw, 1280px);
  max-height: 82vh;
  background: #000;
}

.vblock__close {
  position: absolute;
  top: 22px;
  right: 24px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  background: none;
  color: var(--ink);
  cursor: pointer;
}
/* Progress rail for long archives (see Showcase.tsx). Replaces the dot strip
   once there are more plates than can fit on one line. */
.show__bar {
  position: relative;
  flex: 1 1 120px;
  min-width: 80px;
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.show__bar-fill {
  position: absolute;
  left: 0;
  top: -1px;
  height: 3px;
  background: var(--ink);
  transition: width 320ms ease-out;
}
/* ---- Film strip layout ------------------------------------------------- */
/* Two 16:9 tiles side by side, capped so the closing panel always fits one
   screen. Without the grid the <ul> stacked full-width tiles and the panel grew
   to 1550px inside a 900px screen — the second film was cut off. */
.vblock {
  margin: clamp(18px, 2.6vw, 34px) 0 0;
}

.vblock__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 18px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.vblock__item {
  margin: 0;
  min-width: 0;
}

.vblock__poster {
  aspect-ratio: 16 / 9;
  max-height: 32svh;
}

.vblock__poster img {
  height: 100%;
}

@media (max-width: 767px) {
  .vblock__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .vblock__poster {
    max-height: 26svh;
  }
}

/* ---- Cursor flow over photographs -------------------------------------- */
/* The frame tracks the pointer: the photograph drifts a few pixels toward the
   cursor and a soft light follows it, so the surface feels like it is settling
   under the hand rather than being a flat print. */
.show__frame,
.plate {
  position: relative;
  --flow-x: 0px;
  --flow-y: 0px;
  --mx: 50%;
  --my: 50%;
}

.show__frame .show__photo,
.plate img {
  transition: transform 380ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.show__frame[data-flow="on"] .show__photo,
.plate[data-flow="on"] img {
  transform: translate3d(var(--flow-x), var(--flow-y), 0) scale(1.015);
  transition: transform 90ms linear;
}

.show__frame::after,
.plate::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 400ms ease;
  background: radial-gradient(
    220px circle at var(--mx) var(--my),
    rgba(255, 255, 255, 0.09),
    rgba(255, 255, 255, 0) 62%
  );
}

.show__frame[data-flow="on"]::after,
.plate[data-flow="on"]::after {
  opacity: 1;
}
/* The closing panel carries the most content of any screen. Keep the stack
   inside one screen in every language. */
.closing .vblock__poster {
  max-height: 26svh;
}

.closing .reach {
  padding-right: 0;
}

.closing .closing__lead {
  margin: 0;
}

/* ==== Reference imitation (?style=zha) ================================= */
/* Opt-in only — the default deck is untouched, so dropping the parameter is the
   rollback. Every number here was measured on the reference in a real browser
   (E:\ionic\reports\zha-study.md): body 16/24, paragraph 18/24 in #D0D0D0,
   nav 14px at -0.02em, section headings 36/40 at -0.025em, hero 120/120 at
   -3px, 64px bar, 40px left edge, Lenis-style inertial scrolling. */

html[data-style="zha"] {
  --paper: #000000;
  --bone: #060606;
  --ink: #FFFFFF;
  --ink-2: #B4B4B4;
  --ink-3: #7A7A7A;
  --line: rgba(255, 255, 255, 0.22);
  --red: #EDEDED;
  --red-deep: #D8D8D8;
  --signal: #EDEDED;
  --bronze: #CFCFCF;
  --pad: 12px;
  --font-display: "Switzer", system-ui, sans-serif;
  --font-body: "Switzer", system-ui, sans-serif;
  --font-mark: "Switzer", system-ui, sans-serif;
  --fs-h2: 36px;
  --fs-body: 16px;
}

html[data-style="zha"] body {
  background: #000;
  color: var(--ink);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- chrome ----------------------------------------------------------- */
html[data-style="zha"] .site-header {
  height: 64px;
  background: #000;
  transition: opacity 900ms cubic-bezier(0.16, 1, 0.3, 1), transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-style="zha"][data-intro="run"] .site-header {
  opacity: 0;
  transform: translateY(-10px);
}

html[data-style="zha"] .nav__list {
  gap: 26px;
}

html[data-style="zha"] .nav__link,
html[data-style="zha"] .nav__more,
html[data-style="zha"] .nav__cta {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  border-bottom: 0;
}

html[data-style="zha"] .nav__link {
  position: relative;
}

html[data-style="zha"] .nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 520ms cubic-bezier(0.19, 1, 0.22, 1);
}

html[data-style="zha"] .nav__link:hover::after,
html[data-style="zha"] .nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

html[data-style="zha"] .brand__logo {
  height: 26px;
}

html[data-style="zha"] .rail,
html[data-style="zha"] .shell-rules,
html[data-style="zha"] .panel__ghost,
html[data-style="zha"] .frame {
  display: none;
}

/* ---- ground: one long scroll ------------------------------------------ */
html[data-style="zha"] .deck,
html[data-style="zha"] .deck__track,
html[data-style="zha"] .panel__inner,
html[data-style="zha"] .panel__body {
  height: auto;
}

html[data-style="zha"] .deck {
  overflow: visible;
}

html[data-style="zha"] .deck__track,
html[data-style="zha"] .panel__body {
  transform: none !important;
  display: block;
}

html[data-style="zha"] .panel {
  height: auto;
  min-height: auto;
  padding-block: clamp(96px, 13vh, 180px);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

html[data-style="zha"] .panel:first-child {
  padding-top: 17vh;
  padding-bottom: 140px;
}

/* ---- type ------------------------------------------------------------- */
html[data-style="zha"] h1,
html[data-style="zha"] h2,
html[data-style="zha"] .sheet-head__title,
html[data-style="zha"] .closing__title {
  font-size: 36px;
  line-height: 40px;
  letter-spacing: -0.025em;
  font-weight: 500;
}

html[data-style="zha"] .hero-monument__sentence {
  font-size: clamp(2.6rem, 8.3vw, 7.5rem);
  line-height: 1;
  letter-spacing: -0.025em;
  font-weight: 500;
  mix-blend-mode: normal;
  color: #fff;
  clip-path: inset(0 0 0 0);
}

html[data-style="zha"] .hero-monument__lead,
html[data-style="zha"] .lead {
  font-size: 18px;
  line-height: 24px;
  color: #D0D0D0;
  max-width: 46ch;
}

html[data-style="zha"] .hero-monument__word,
html[data-style="zha"] .hero-monument__title,
html[data-style="zha"] .hero-monument {
  mix-blend-mode: normal;
  color: #fff;
}

html[data-style="zha"] .show__cap,
html[data-style="zha"] .reach dt,
html[data-style="zha"] .entry__n,
html[data-style="zha"] .idx__n {
  font-size: 13px;
  line-height: 20px;
  letter-spacing: -0.01em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

html[data-style="zha"] .reach,
html[data-style="zha"] .entry,
html[data-style="zha"] .idx__row {
  border-color: rgba(255, 255, 255, 0.16);
}

html[data-style="zha"] .entry {
  padding-block: 26px;
}

html[data-style="zha"] .entry__arrow {
  opacity: 0.6;
  transition: transform 420ms cubic-bezier(0.19, 1, 0.22, 1), opacity 420ms ease;
}

html[data-style="zha"] .entry:hover .entry__arrow {
  transform: translate3d(4px, -4px, 0);
  opacity: 1;
}

/* ---- hero measure ----------------------------------------------------- */
html[data-style="zha"] .hero-monument__stage {
  width: 58%;
  max-width: 58%;
  margin-top: clamp(20px, 5vh, 64px);
  gap: 20px;
}

html[data-style="zha"] .hero-monument__plate {
  margin-right: -12px;
}

/* CJK cannot take the Latin display scale: a 19-character sentence at 120px
   stacks into a vertical column, so it is sized against the column instead. */
html[data-style="zha"] :lang(zh) .hero-monument__sentence,
html[data-style="zha"] :lang(ja) .hero-monument__sentence {
  font-size: clamp(1.75rem, 3.15vw, 3.1rem);
  line-height: 1.22;
  letter-spacing: -0.005em;
  word-break: keep-all;
  overflow-wrap: normal;
}

/* ---- photographs ------------------------------------------------------ */
html[data-style="zha"] .show,
html[data-style="zha"] .show__frame,
html[data-style="zha"] .plate {
  margin-inline: -12px;
}

html[data-style="zha"] .show__frame {
  height: auto;
  aspect-ratio: 16 / 9;
}

html[data-style="zha"] .show__frame img,
html[data-style="zha"] .plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  transform: translate3d(0, var(--par, 0px), 0) scale(1.06);
  transition: transform 700ms cubic-bezier(0.19, 1, 0.22, 1);
}

html[data-style="zha"] .hero-monument__plate img {
  transform: translate3d(0, var(--par, 0px), 0) scale(1.04);
  transition: transform 900ms cubic-bezier(0.19, 1, 0.22, 1);
}

html[data-style="zha"] .show__frame:hover img,
html[data-style="zha"] .plate:hover img {
  transform: translate3d(0, var(--par, 0px), 0) scale(1.1);
}

html[data-style="zha"] .plate {
  border: 0;
}

html[data-style="zha"] .grid {
  gap: 24px 12px;
}

/* ---- entrance --------------------------------------------------------- */
html[data-style="zha"] [data-zha] {
  opacity: 0;
  transform: translateY(56px);
  transition:
    opacity 1200ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 1200ms cubic-bezier(0.16, 1, 0.3, 1),
    clip-path 1300ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--zha-delay, 0ms);
}

html[data-style="zha"] [data-zha].zha-in {
  opacity: 1;
  transform: none;
}

html[data-style="zha"] .panel h1[data-zha],
html[data-style="zha"] .panel h2[data-zha],
html[data-style="zha"] .panel .sheet-head__title[data-zha] {
  transform: translateY(44px);
  clip-path: inset(0 0 100% 0);
}

html[data-style="zha"] .panel h1[data-zha].zha-in,
html[data-style="zha"] .panel h2[data-zha].zha-in,
html[data-style="zha"] .panel .sheet-head__title[data-zha].zha-in {
  clip-path: inset(0 0 -10% 0);
}

html[data-style="zha"] .panel:first-child [data-zha] {
  transition-delay: calc(var(--zha-delay, 0ms) + 260ms);
}

/* ---- phone ------------------------------------------------------------ */
@media (max-width: 767px) {
  html[data-style="zha"] .panel {
    padding-block: 56px;
  }

  html[data-style="zha"] .panel:first-child {
    padding-top: 96px;
  }

  html[data-style="zha"] .hero-monument__stage {
    width: 100%;
    max-width: none;
    margin-top: 8px;
  }

  html[data-style="zha"] .hero-monument__sentence,
  html[data-style="zha"] :lang(zh) .hero-monument__sentence,
  html[data-style="zha"] :lang(ja) .hero-monument__sentence {
    font-size: 1.55rem;
    line-height: 1.3;
    letter-spacing: 0;
    word-break: normal;
  }

  html[data-style="zha"] .hero-monument__lead {
    font-size: 15px;
    line-height: 1.7;
  }

  html[data-style="zha"] .hero-monument__plate {
    position: static;
    width: 100%;
    margin: 20px 0 0;
  }

  html[data-style="zha"] .hero-monument__plate img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-style="zha"] [data-zha] {
    opacity: 1;
    transform: none;
    transition: none;
    clip-path: none;
  }
}
/* ---- Plate grid: five large plates, two to a row ----------------------- */
/* Client instruction (2026-10-27): five photographs per case, 4–5 of the best,
   shown large — the earlier four-across wall of small tiles looked thin and
   loaded slowly. Two columns on desktop, one on phones. */
.plate-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 52px) clamp(20px, 2.4vw, 40px);
}

.plate-grid .plate__frame {
  aspect-ratio: var(--ratio, 4 / 3);
  max-height: 62vh;
}

.plate-grid .plate__cap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-top: 12px;
  font-size: var(--fs-small);
}

@media (max-width: 900px) {
  .plate-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* ---- Variant · section pages ------------------------------------------ */
/* The reference puts a small label in the left third and the copy in the right
   two-thirds, with a wide river between them. The breadcrumb becomes that label;
   everything below the head runs full width again. */
@media (min-width: 900px) {
  html[data-style="zha"] .spage__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    column-gap: clamp(24px, 4vw, 72px);
    align-items: start;
  }

  html[data-style="zha"] .crumb {
    grid-column: 1;
    grid-row: 1;
    padding-top: 10px;
  }

  html[data-style="zha"] .spage__head {
    grid-column: 2;
    grid-row: 1;
  }

  html[data-style="zha"] .spage__blocks,
  html[data-style="zha"] .spage__list,
  html[data-style="zha"] .plate-grid,
  html[data-style="zha"] .spage__pending,
  html[data-style="zha"] .spage__next {
    grid-column: 1 / -1;
  }
}

html[data-style="zha"] .crumb__list {
  flex-wrap: wrap;
  gap: 0;
}

html[data-style="zha"] .crumb__link,
html[data-style="zha"] .crumb__here {
  font-size: 13px;
  line-height: 20px;
  letter-spacing: -0.01em;
  color: var(--ink-2);
}

html[data-style="zha"] .crumb__here {
  color: var(--ink);
}

html[data-style="zha"] .spage__head .rule {
  display: none;
}

html[data-style="zha"] .spage__lead {
  margin-top: 24px;
}

html[data-style="zha"] .sblock {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  column-gap: clamp(24px, 4vw, 72px);
  padding-block: clamp(28px, 4vw, 56px);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

html[data-style="zha"] .sblock__h {
  font-size: 18px;
  line-height: 24px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
}

html[data-style="zha"] .sblock__body {
  color: #D0D0D0;
  font-size: 18px;
  line-height: 28px;
  max-width: 68ch;
}

@media (max-width: 899px) {
  html[data-style="zha"] .sblock {
    display: block;
  }

  html[data-style="zha"] .sblock__h {
    margin-bottom: 12px;
  }
}
/* The ink skin lays the blocks out as parallel columns; the reference stacks
   them, one label per row against its paragraph. */
html[data-style="zha"] .spage__blocks {
  display: block;
  margin-top: clamp(32px, 4vw, 64px);
}
/* Photographs wait at opacity 0, not clipped: an element clipped to nothing is
   invisible to IntersectionObserver as well, so the observer that should start
   the wipe never fired and the pictures stayed hidden. The animation's first
   keyframe restores opacity and applies the clip for the reveal. */
html[data-style="zha"] .show__frame[data-zha],
html[data-style="zha"] .plate[data-zha],
html[data-style="zha"] .hero-monument__plate[data-zha],
html[data-style="zha"] .vblock__item[data-zha] {
  opacity: 0;
  transform: none;
}

/* ---- Variant · featured screen as a full-width plate ------------------- */
/* The deck keeps copy and picture side by side; the reference lets the picture
   take the whole width with its caption underneath. */
html[data-style="zha"] .grid.work-wrap {
  display: block;
}

html[data-style="zha"] .grid.work-wrap > .sheet-aside {
  margin-bottom: clamp(24px, 3vw, 40px);
}

html[data-style="zha"] .grid.work-wrap > .show,
html[data-style="zha"] .work-wrap .show {
  width: 100%;
  height: auto;
  min-height: 0;
}

html[data-style="zha"] .work-wrap .show__frame {
  aspect-ratio: 21 / 9;
  max-height: 68vh;
}

html[data-style="zha"] .work-wrap .show__cap {
  margin-top: 16px;
}

html[data-style="zha"] .work-wrap .show__nav {
  margin-top: 14px;
}

@media (max-width: 767px) {
  html[data-style="zha"] .work-wrap .show__frame {
    aspect-ratio: 4 / 3;
    max-height: none;
  }
}
/* ---- Variant · ground -------------------------------------------------- */
/* Pure #000 reads flat on a large screen: every photograph sits on the same
   value and the page loses depth. The variant lifts the top of the page a touch
   and sinks the bottom, so the deck has a horizon without adding a colour or a
   gradient band you can point at. A 2.5% grain keeps the flat areas from
   banding on 8-bit panels. */
html[data-style="zha"] body {
  background:
    radial-gradient(140% 100% at 50% -20%, #141414 0%, #0A0A0A 38%, #000000 78%)
      fixed,
    #000000;
}

html[data-style="zha"] .panel {
  background: transparent;
  border-top-color: rgba(255, 255, 255, 0.14);
}

html[data-style="zha"] .site-header {
  background: rgba(6, 6, 6, 0.82);
  backdrop-filter: saturate(120%) blur(14px);
  -webkit-backdrop-filter: saturate(120%) blur(14px);
}

html[data-style="zha"] .site-header[data-scrolled="true"] {
  background: rgba(6, 6, 6, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* grain: one inline SVG, fixed, under the pointer */
html[data-style="zha"]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (max-width: 767px) {
  html[data-style="zha"] body {
    background: radial-gradient(120% 70% at 50% 0%, #101010 0%, #050505 55%, #000 100%) fixed, #000;
  }
}
/* ---- Variant · button theatre ------------------------------------------ */
/* Three moves on the primary button: a colour wipe that rises from the bottom
   edge, a highlight that sweeps across once, and a ripple that starts where the
   pointer actually landed. All of it is paint-only — no layout is touched, so a
   hover cannot reflow the paragraph next to it. */
html[data-style="zha"] .btn,
html[data-style="zha"] .nav__cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--ink);
  transition:
    color 420ms cubic-bezier(0.19, 1, 0.22, 1),
    border-color 420ms cubic-bezier(0.19, 1, 0.22, 1),
    transform 420ms cubic-bezier(0.19, 1, 0.22, 1);
}

html[data-style="zha"] .btn::before,
html[data-style="zha"] .nav__cta::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  background: #ffffff;
  transform: translateY(101%);
  transition: transform 560ms cubic-bezier(0.19, 1, 0.22, 1);
}

html[data-style="zha"] .btn::after,
html[data-style="zha"] .nav__cta::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 42%;
  left: -60%;
  z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg);
  opacity: 0;
  transition: none;
}

html[data-style="zha"] .btn:hover,
html[data-style="zha"] .nav__cta:hover,
html[data-style="zha"] .btn:focus-visible,
html[data-style="zha"] .nav__cta:focus-visible {
  color: #000000;
  border-color: #ffffff;
}

html[data-style="zha"] .btn:hover::before,
html[data-style="zha"] .nav__cta:hover::before,
html[data-style="zha"] .btn:focus-visible::before,
html[data-style="zha"] .nav__cta:focus-visible::before {
  transform: translateY(0);
}

html[data-style="zha"] .btn:hover::after,
html[data-style="zha"] .nav__cta:hover::after {
  animation: zha-sweep 720ms cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes zha-sweep {
  0% {
    left: -60%;
    opacity: 0;
  }
  35% {
    opacity: 0.9;
  }
  100% {
    left: 110%;
    opacity: 0;
  }
}

/* click ripple, positioned by script */
html[data-style="zha"] .btn .ripple,
html[data-style="zha"] .nav__cta .ripple {
  position: absolute;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.16);
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  animation: zha-ripple 620ms cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes zha-ripple {
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

/* ---- Variant · drifting glow behind the page --------------------------- */
/* Two soft lights that breathe on a 26s loop; they sit under the content and
   move slowly enough that you notice the page is alive, not the animation. */
html[data-style="zha"] .deck::before {
  content: "";
  position: fixed;
  inset: -20vh -10vw;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38vw 38vw at 18% 12%, rgba(255, 255, 255, 0.05), transparent 70%),
    radial-gradient(44vw 44vw at 82% 68%, rgba(255, 255, 255, 0.035), transparent 72%);
  animation: zha-drift 26s ease-in-out infinite alternate;
}

@keyframes zha-drift {
  from {
    transform: translate3d(-1.5%, -1%, 0) scale(1);
  }
  to {
    transform: translate3d(1.5%, 1.5%, 0) scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-style="zha"] .deck::before {
    animation: none;
  }

  html[data-style="zha"] .btn:hover::after,
  html[data-style="zha"] .nav__cta:hover::after {
    animation: none;
  }
}
/* The frame was free to grow past its own box: aspect-ratio alone does not clamp
   an image whose intrinsic ratio is taller. Fixed by locking the frame to 16/9
   and clipping the overflow, on the archive and the featured screen alike. */
html[data-style="zha"] .show__frame,
html[data-style="zha"] .work-wrap .show__frame {
  aspect-ratio: 16 / 9;
  max-height: 72vh;
  overflow: hidden;
}

html[data-style="zha"] .show__frame img,
html[data-style="zha"] .work-wrap .show__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

html[data-style="zha"] .show,
html[data-style="zha"] .work-wrap .show {
  height: auto;
}
/* .show keeps a deck-era fixed height; in the long-scroll variant it must size to
   its own frame, otherwise the picture overlaps the caption row underneath. */
html[data-style="zha"] .show,
html[data-style="zha"] .work-wrap .show {
  height: auto !important;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

html[data-style="zha"] .show__frame,
html[data-style="zha"] .work-wrap .show__frame {
  max-height: 68vh;
}
/* Flex children were being squeezed: the frame kept its 68vh height while the
   flex container stayed shorter, so the picture bled over the caption. Nothing
   in this column may shrink. */
html[data-style="zha"] .show {
  height: max-content !important;
}

html[data-style="zha"] .show__frame {
  flex: 0 0 auto;
  min-height: 0;
}

html[data-style="zha"] .show__cap,
html[data-style="zha"] .show__nav {
  flex: 0 0 auto;
}
/* Grid instead of flex: two auto rows cannot shrink a child, so the frame and the
   caption always sum to the column's own height. */
html[data-style="zha"] .show,
html[data-style="zha"] .work-wrap .show {
  display: grid !important;
  grid-template-rows: auto auto;
  grid-auto-flow: row;
  height: auto !important;
  max-height: none;
  align-content: start;
}

html[data-style="zha"] .show__frame {
  grid-row: 1;
  min-height: 0;
  max-height: 68vh;
  height: auto;
}
/* Measured reality: the column settles at ~639px whatever the flex/grid rules ask
   for, so the frame is capped below that instead of fighting the layout. */
html[data-style="zha"] .show__frame,
html[data-style="zha"] .work-wrap .show__frame {
  max-height: 56vh;
}
/* The archive aside carries a materials strip. In the long-scroll variant the
   aside runs full width, so that strip rendered as a 1401px photo banner above
   the exhibit — capped here so it reads as a detail, not a hero. */
html[data-style="zha"] .sheet-aside img {
  display: block;
  width: min(360px, 40%);
  height: auto;
}

html[data-style="zha"] .sheet-aside {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  column-gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

html[data-style="zha"] .sheet-aside > *:not(img) {
  grid-column: 1;
}

html[data-style="zha"] .sheet-aside img {
  grid-column: 2;
  grid-row: 1 / span 3;
}

@media (max-width: 767px) {
  html[data-style="zha"] .sheet-aside {
    display: block;
  }

  html[data-style="zha"] .sheet-aside img {
    width: 100%;
    margin-top: 16px;
  }
}
/* The archive opens with a materials band. In the long-scroll variant it was
   rendering 216px tall, right above the exhibit, and read as a second hero photo.
   Slimmed to a strip so it stays a texture, not a competitor. */
html[data-style="zha"] .work-band {
  max-height: 108px;
  overflow: hidden;
  margin: 0 0 28px;
}

html[data-style="zha"] .work-band img {
  width: 100%;
  height: 108px;
  object-fit: cover;
  filter: none;
}
/* ---- Variant · show the whole picture ---------------------------------- */
/* A 16/9 window onto 4:3 photography crops the top and bottom off the model.
   The frame keeps a fixed height for layout, and the picture is contained in it
   instead of covering it, so nothing is ever cut. */
html[data-style="zha"] .show__frame,
html[data-style="zha"] .work-wrap .show__frame {
  height: min(62vh, 760px);
  aspect-ratio: auto;
  max-height: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
}

html[data-style="zha"] .show__frame img,
html[data-style="zha"] .work-wrap .show__frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 767px) {
  html[data-style="zha"] .show__frame,
  html[data-style="zha"] .work-wrap .show__frame {
    height: auto;
    min-height: 240px;
  }
}

/* ---- Variant · cooler ground ------------------------------------------- */
/* Three lights instead of two, a cool tint on one of them, a vignette that pulls
   the eye to the middle, and a slow sheen that crosses the page every 38s. */
html[data-style="zha"] body {
  background:
    radial-gradient(120% 90% at 50% -10%, #16181c 0%, #0b0c0e 40%, #000000 80%) fixed,
    #000000;
}

html[data-style="zha"] .deck::before {
  background:
    radial-gradient(42vw 42vw at 14% 8%, rgba(110, 155, 224, 0.10), transparent 68%),
    radial-gradient(38vw 38vw at 86% 22%, rgba(255, 255, 255, 0.06), transparent 70%),
    radial-gradient(50vw 50vw at 62% 82%, rgba(188, 151, 100, 0.07), transparent 72%);
  animation: zha-drift 26s ease-in-out infinite alternate;
}

html[data-style="zha"] .deck::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(120% 85% at 50% 42%, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, 0.55) 100%);
}

html[data-style="zha"]::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.035) 50%, transparent 65%);
  background-size: 260% 260%;
  animation: zha-sheen 38s linear infinite;
}

@keyframes zha-sheen {
  from {
    background-position: 130% 0%;
  }
  to {
    background-position: -30% 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-style="zha"]::after {
    animation: none;
    opacity: 0.25;
  }
}
/* With the picture contained, the frame's hairline drew a box around the black
   letterbox bars and made them look like empty space. On a black page the bars
   should simply disappear. */
html[data-style="zha"] .show__frame,
html[data-style="zha"] .work-wrap .show__frame {
  border: 0;
  outline: 0;
  max-width: 100%;
  margin-inline: auto;
}
/* ---- Variant · smoothness pass ----------------------------------------- */
/* Two things were costing frames on every scroll: a backdrop-filtered header
   (the blur is recomputed on each paint) and a fixed 260% background animating
   behind the whole page. Both are replaced with static paint, which is what the
   ink skin does — and the ink skin always felt smoother. */
html[data-style="zha"] .site-header,
html[data-style="zha"] .site-header[data-scrolled="true"] {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: rgba(8, 9, 11, 0.94);
}

html[data-style="zha"]::after {
  display: none;
}

html[data-style="zha"] .deck::before {
  position: absolute;
  inset: 0;
  animation: none;
  opacity: 0.9;
}

/* The ink skin's drawing frame is the detail that made the original feel like a
   drawing set; the variant had switched it off. It comes back, small and grey. */
html[data-style="zha"] .frame {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
/* Brass hairline instead of neutral white: the ink skin's warmth is one of the
   things that made the original feel authored rather than templated. */
html[data-style="zha"] .panel {
  border-top: 1px solid rgba(188, 151, 100, 0.22);
}

html[data-style="zha"] .sblock {
  border-top-color: rgba(188, 151, 100, 0.18);
}

html[data-style="zha"] .frame {
  border-bottom-color: rgba(188, 151, 100, 0.3);
  color: rgba(188, 151, 100, 0.85);
}
/* ---- Variant · logo scale --------------------------------------------- */
/* Scoped to the variant on purpose: the shipped ink skin keeps the logo size the
   client has already seen. The client lockup carries Chinese glyphs beside the
   wordmark, so inside the variant it needs more height than a Latin wordmark. */
html[data-style="zha"] .brand__logo {
  height: 40px;
}

@media (max-width: 767px) {
  html[data-style="zha"] .brand__logo {
    height: 30px;
  }
}
/* ---- Variant · third measurement pass ---------------------------------- */
/* Read off zha.com again, this time the copy columns rather than the headings:
     h2        36px / 40px / -0.9px / 400      column 886px at x=499
     paragraph 24px / 28px / -0.6px / 400      same column, white
     label      312px wide at x=40, gutter 147px to the copy
     images    full-bleed, 8px gutter, up to 800px tall, object-fit cover
   The variant had 18/24 body copy — the biggest single miss. */

html[data-style="zha"] .lead,
html[data-style="zha"] .hero-monument__lead,
html[data-style="zha"] .sblock__body {
  font-size: 24px;
  line-height: 28px;
  letter-spacing: -0.025em;
  color: #ffffff;
  max-width: 62ch;
}

html[data-style="zha"] .sheet-head__label,
html[data-style="zha"] .crumb__list {
  font-size: 15px;
  line-height: 22px;
  letter-spacing: -0.01em;
  color: var(--ink-2);
}

@media (min-width: 900px) {
  /* label 22% · river 10% · copy 62%, gutters 40px */
  html[data-style="zha"] .spage__inner {
    grid-template-columns: minmax(0, 22fr) minmax(0, 78fr);
    column-gap: clamp(40px, 10vw, 147px);
    padding-inline: 40px;
  }

  html[data-style="zha"] .sblock {
    grid-template-columns: minmax(0, 22fr) minmax(0, 78fr);
    column-gap: clamp(40px, 10vw, 147px);
  }
}

/* Photographs run the full measure and stand tall, like their 1409×800 plates. */
html[data-style="zha"] .show__frame,
html[data-style="zha"] .work-wrap .show__frame {
  height: min(800px, 88vh);
}

html[data-style="zha"] .plate-grid .plate__frame {
  max-height: 78vh;
}

@media (max-width: 767px) {
  html[data-style="zha"] .lead,
  html[data-style="zha"] .hero-monument__lead,
  html[data-style="zha"] .sblock__body {
    font-size: 18px;
    line-height: 26px;
  }

  html[data-style="zha"] .show__frame,
  html[data-style="zha"] .work-wrap .show__frame {
    height: min(64vh, 520px);
  }
}
/* ---- Variant · the index list ------------------------------------------ */
/* Each row was its own grid, so every row computed its own column widths: the
   meta line started at a different x on every line, which is exactly the
   "not tidy" the client sees. The tracks move to the list and the rows adopt
   them with subgrid, so one set of columns rules them all. */
html[data-style="zha"] .entries__list {
  display: grid;
  grid-template-columns: 64px minmax(0, 1.15fr) minmax(0, 1fr) 40px;
  column-gap: clamp(20px, 3vw, 56px);
  padding-right: 0;
}

html[data-style="zha"] .entry {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / -1;
  align-items: baseline;
  gap: 0;
  padding-block: clamp(18px, 2vw, 26px);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  transition: border-color 220ms ease-out, background 220ms ease-out;
}

html[data-style="zha"] .entry:hover,
html[data-style="zha"] .entry:focus-visible {
  border-top-color: rgba(255, 255, 255, 0.5);
  padding-left: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.035), transparent 60%);
}

html[data-style="zha"] .entry__n {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

html[data-style="zha"] .entry__name {
  font-size: clamp(1.35rem, 2vw, 2rem);
  letter-spacing: -0.022em;
  line-height: 1.1;
  font-weight: 400;
}

html[data-style="zha"] .entry__meta {
  font-size: 18px;
  line-height: 26px;
  letter-spacing: -0.01em;
  color: var(--ink-2);
}

html[data-style="zha"] .entry__arrow {
  justify-self: end;
  font-size: 16px;
  color: var(--ink-3);
  opacity: 0.55;
  transition: transform 420ms cubic-bezier(0.19, 1, 0.22, 1), opacity 420ms ease, color 420ms ease;
}

html[data-style="zha"] .entry:hover .entry__arrow {
  transform: translate3d(4px, -4px, 0);
  opacity: 1;
  color: var(--ink);
}

@media (max-width: 767px) {
  html[data-style="zha"] .entries__list {
    grid-template-columns: 44px minmax(0, 1fr) 28px;
  }

  html[data-style="zha"] .entry__meta {
    grid-column: 2 / 3;
    margin-top: 6px;
    font-size: 15px;
    line-height: 22px;
  }

  html[data-style="zha"] .entry__arrow {
    grid-row: 1;
    grid-column: 3;
  }
}

/* ---- Variant 路 scroll-driven choreography (no JS) ---------------------- */
/* Chromium can drive keyframes from the scroll position itself: animation-range
   in the view timeline replaces the observer + requestAnimationFrame pair, so
   pictures and headings are composited on the scroll thread and cannot lag the
   wheel. The JS observer stays as the fallback for engines without it. */
@supports (animation-timeline: view()) {
  @keyframes zha-view-rise {
    from { opacity: 0; transform: translateY(56px); }
    to { opacity: 1; transform: none; }
  }

  @keyframes zha-view-wipe {
    from { clip-path: inset(0 0 100% 0); }
    to { clip-path: inset(0 0 0% 0); }
  }

  @keyframes zha-view-drift {
    from { transform: translate3d(0, 4%, 0) scale(1.08); }
    to { transform: translate3d(0, -4%, 0) scale(1.08); }
  }

  html[data-style="zha"] .sblock,
  html[data-style="zha"] .entry,
  html[data-style="zha"] .reach__row,
  html[data-style="zha"] .lead {
    animation: zha-view-rise linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 26%;
  }

  html[data-style="zha"] .plate,
  html[data-style="zha"] .vblock__item {
    animation: zha-view-wipe linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
  }

  html[data-style="zha"] .show__frame img,
  html[data-style="zha"] .plate img,
  html[data-style="zha"] .hero-monument__plate img {
    animation: zha-view-drift linear both;
    animation-timeline: view();
    animation-range: cover 0% cover 100%;
  }

  /* where the timeline drives the reveal, the JS observer must not also hide it */
  html[data-style="zha"] [data-zha] {
    opacity: 1;
    transform: none;
    clip-path: none;
  }
}


/* The rows live inside <li> wrappers, so the anchor was never a grid item of the
   list and subgrid had nothing to inherit from 鈥?every row fell back to one
   stacked column. display:contents on the wrapper promotes the row into the list
   grid, and one set of tracks then rules every line. */
html[data-style="zha"] .entries__list > li {
  display: contents;
}

html[data-style="zha"] .entry {
  grid-column: 1 / -1;
}



.zha-intro[data-stage="open"] {
  clip-path: inset(0 0 100% 0);
}

.zha-intro__media {
  position: absolute;
  inset: -6% 0;
  background-image: url("/img/cases/missile-engine-01.webp");
  background-size: cover;
  background-position: center;
  filter: brightness(0.55) saturate(0.9);
  animation: zha-intro-drift 6s ease-out both;
}

@keyframes zha-intro-drift {
  from {
    transform: scale(1.14) translate3d(0, 2%, 0);
  }
  to {
    transform: scale(1.02) translate3d(0, -1%, 0);
  }
}

.zha-intro__line {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: clamp(48px, 12vh, 140px);
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 4.2rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: #fff;
  max-width: 22ch;
  clip-path: inset(0 0 100% 0);
  animation: zha-intro-line 1150ms cubic-bezier(0.16, 1, 0.3, 1) 120ms both;
}

.zha-intro[data-stage="lift"] .zha-intro__line,
.zha-intro[data-stage="open"] .zha-intro__line {
  animation: none;
  clip-path: inset(0 0 0 0);
  opacity: 1;
  transform: translateY(0);
  transition: transform 760ms cubic-bezier(0.76, 0, 0.24, 1), opacity 760ms ease;
}

.zha-intro[data-stage="lift"] .zha-intro__line {
  transform: translateY(-18px);
}

.zha-intro[data-stage="open"] .zha-intro__line {
  transform: translateY(-64px);
  opacity: 0;
}

@keyframes zha-intro-line {
  from {
    clip-path: inset(0 0 100% 0);
    transform: translateY(28px);
  }
  to {
    clip-path: inset(0 0 -6% 0);
    transform: translateY(0);
  }
}

@media (max-width: 767px) {
  .zha-intro__line {
    left: 20px;
    right: 20px;
    font-size: 1.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zha-intro {
    display: none;
  }
}

@keyframes zha-gate-letter {
  from {
    clip-path: inset(0 0 100% 0);
    transform: translateY(6%);
  }
  to {
    clip-path: inset(-10% 0 -10% 0);
    transform: translateY(0);
  }
}

@keyframes zha-gate-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 767px) {
  .zha-gate__logo {
    top: 18px;
    left: 18px;
    height: 26px;
  }

  .zha-gate__hint {
    bottom: 84px;
    font-size: 11px;
  }

  .zha-gate__hint-en {
    bottom: 36px;
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zha-gate {
    display: none;
  }
}

@media (max-width: 767px) {
  html[data-style="zha"] .panel:first-child .hero-monument {
    height: 78vh;
  }

  html[data-style="zha"] .panel:first-child .hero-monument__stage {
    left: 20px;
    right: 20px;
    bottom: 40px;
    max-width: none;
  }
}

@media (max-width: 767px) {
  html[data-style="zha"] .panel:first-child .hero-monument__stage {
    max-width: none;
  }

  html[data-style="zha"] .panel:first-child .hero-monument__plate::after {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.1) 35%, rgba(0, 0, 0, 0.85) 100%);
  }
}


/* ---- Variant 路 gradual reveal ------------------------------------------ */
/* The client's note: blocks arrive instantly instead of brightening in. The
   previous pass removed the reveal entirely; this one brings it back tied to the
   scroll position with a long range, so a block spends roughly 34% of the
   viewport easing up rather than snapping on at the moment it crosses the fold.
   Animation is driven by the view timeline, so the fade is already partly done by
   the time the block is comfortably in view. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    @keyframes zha-soft-in {
      from {
        opacity: 0;
        transform: translateY(26px);
      }
      to {
        opacity: 1;
        transform: none;
      }
    }

    html[data-style="zha"] .panel h1,
    html[data-style="zha"] .panel h2,
    html[data-style="zha"] .panel .lead,
    html[data-style="zha"] .panel .sblock,
    html[data-style="zha"] .panel .entry,
    html[data-style="zha"] .panel .reach__row,
    html[data-style="zha"] .panel .show__cap,
    html[data-style="zha"] .panel .red-block__title,
    html[data-style="zha"] .panel .red-block__note,
    html[data-style="zha"] .panel .red-block__stats,
    html[data-style="zha"] .panel .vblock__item,
    html[data-style="zha"] .panel .spage__next {
      animation: zha-soft-in linear both;
      animation-timeline: view();
      animation-range: entry 8% cover 42%;
    }

    /* the opening screen is on screen at load: no scroll-linked fade there */
    html[data-style="zha"] .panel:first-child h1,
    html[data-style="zha"] .panel:first-child .lead,
    html[data-style="zha"] .panel:first-child .hero-monument__sentence,
    html[data-style="zha"] .panel:first-child .hero-monument__lead {
      animation: none;
      opacity: 1;
      transform: none;
    }
  }
}

@keyframes zha-gate-breathe {
  from {
    transform: scale(1) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.14) translate3d(2%, -2%, 0);
  }
}

@keyframes zha-gate-rule {
  to {
    transform: scaleX(1);
  }
}

@keyframes zha-gate-letter {
  from {
    clip-path: inset(0 0 100% 0);
    transform: translateY(14%) rotate(var(--tilt)) scale(1.06);
    opacity: 0;
  }
  60% {
    opacity: 1;
  }
  to {
    clip-path: inset(-12% 0 -12% 0);
    transform: none;
    opacity: 1;
  }
}

@keyframes zha-gate-letter-out {
  from {
    clip-path: inset(-12% 0 -12% 0);
    transform: none;
    opacity: 1;
  }
  to {
    clip-path: inset(-12% 0 -12% 0);
    transform: translateY(-42%) scale(0.96);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zha-gate::before,
  .zha-gate::after,
  .zha-gate__word::after {
    animation: none;
  }
}

@keyframes zha-caret {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .zha-gate__hint::after { animation: none; }
}

@media (max-width: 767px) {
  html[data-style="zha"] .panel--red .red-block__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 28px;
  }
}

/* ---- Variant 路 enter gate ---------------------------------------------- */
/* Black, one word, one hint. The letters rise out of their own masks in
   sequence; a click lifts the whole layer away to uncover the page underneath. */
.zha-gate {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: grid;
  place-items: center;
  background: #000;
  cursor: pointer;
  clip-path: inset(0 0 0 0);
  transition: clip-path 900ms cubic-bezier(0.76, 0, 0.24, 1);
}

.zha-gate[data-stage="exit"] {
  clip-path: inset(0 0 100% 0);
}

.zha-gate__logo {
  position: absolute;
  top: 28px;
  left: 32px;
  height: 34px;
  width: auto;
  opacity: 0;
  animation: zha-gate-fade 700ms ease-out 120ms both;
}

.zha-gate__word {
  display: flex;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4rem, 21vw, 19rem);
  line-height: 0.86;
  letter-spacing: 0.01em;
  font-weight: 500;
  color: #fff;
}

.zha-gate__letter {
  display: block;
  overflow: hidden;
  clip-path: inset(0 0 100% 0);
  transform: translateY(6%);
  animation: zha-gate-letter 1100ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(160ms + var(--i) * 80ms);
}

.zha-gate__hint {
  position: absolute;
  bottom: 96px;
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  opacity: 0;
  animation: zha-gate-fade 800ms ease-out 1200ms both;
}

.zha-gate__hint-en {
  position: absolute;
  bottom: 40px;
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.38);
  opacity: 0;
  animation: zha-gate-fade 800ms ease-out 1400ms both;
}

.zha-gate[data-stage="exit"] .zha-gate__word {
  transition: transform 720ms cubic-bezier(0.76, 0, 0.24, 1), opacity 720ms ease;
  transform: scale(1.06);
  opacity: 0;
}

.zha-gate[data-stage="exit"] .zha-gate__hint,
.zha-gate[data-stage="exit"] .zha-gate__hint-en,
.zha-gate[data-stage="exit"] .zha-gate__logo {
  transition: opacity 260ms ease;
  opacity: 0;
}

@keyframes zha-gate-letter {
  from {
    clip-path: inset(0 0 100% 0);
    transform: translateY(6%);
  }
  to {
    clip-path: inset(-10% 0 -10% 0);
    transform: translateY(0);
  }
}

@keyframes zha-gate-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 767px) {
  .zha-gate__logo {
    top: 18px;
    left: 18px;
    height: 26px;
  }

  .zha-gate__hint {
    bottom: 84px;
    font-size: 11px;
  }

  .zha-gate__hint-en {
    bottom: 36px;
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zha-gate {
    display: none;
  }
}


/* ---- Variant 路 calmer scroll ------------------------------------------- */
/* Frame-by-frame reading of their scrolling recording: nothing pops in as you
   scroll 鈥?the sections are simply there, and the movement itself is the motion.
   The per-block rise was making every paragraph "arrive", which is what read as
   stiff. Text is now static; only photographs still drift and wipe. */
html[data-style="zha"] .sblock,
html[data-style="zha"] .entry,
html[data-style="zha"] .reach__row,
html[data-style="zha"] .lead {
  animation: none;
  opacity: 1;
  transform: none;
}


/* Without the blur a 94% header lets the row underneath read as ghost text. The
   variant's bar is opaque; the page scrolls behind it and disappears cleanly. */
html[data-style="zha"] .site-header,
html[data-style="zha"] .site-header[data-scrolled="true"] {
  background: #08090b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}


/* ---- Variant 路 full-bleed opening screen ------------------------------- */
/* The client's recording opens on imagery with the line sitting on it, not on a
   copy column beside a picture. The plate becomes the ground and the headline
   moves onto it, with a scrim underneath so the type never fights the model. */
html[data-style="zha"] .panel:first-child .hero-monument {
  position: relative;
  display: block;
  height: min(88vh, 820px);
  min-height: 520px;
  margin-inline: 0;
  padding: 0;
  overflow: hidden;
  background: #000;
}

html[data-style="zha"] .panel:first-child .hero-monument__plate {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}

html[data-style="zha"] .panel:first-child .hero-monument__plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

html[data-style="zha"] .panel:first-child .hero-monument__plate::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 34%, rgba(0, 0, 0, 0.78) 100%);
  pointer-events: none;
}

html[data-style="zha"] .panel:first-child .hero-monument__stage {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: clamp(48px, 9vh, 110px);
  width: auto;
  max-width: min(24ch, 62%);
  margin: 0;
  gap: 18px;
  z-index: 2;
}

html[data-style="zha"] .panel:first-child .hero-monument__sentence {
  color: #fff;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.55);
}

html[data-style="zha"] .panel:first-child :lang(zh) .hero-monument__sentence,
html[data-style="zha"] .panel:first-child :lang(ja) .hero-monument__sentence {
  font-size: clamp(1.9rem, 3.6vw, 3.4rem);
  line-height: 1.18;
}

html[data-style="zha"] .panel:first-child .hero-monument__lead {
  color: rgba(255, 255, 255, 0.86);
  max-width: 46ch;
}

html[data-style="zha"] .panel:first-child .hero-monument__spine,
html[data-style="zha"] .panel:first-child .hero-monument__sidelabel,
html[data-style="zha"] .panel:first-child .hero-monument__top {
  display: none;
}

@media (max-width: 767px) {
  html[data-style="zha"] .panel:first-child .hero-monument {
    height: 78vh;
  }

  html[data-style="zha"] .panel:first-child .hero-monument__stage {
    left: 20px;
    right: 20px;
    bottom: 40px;
    max-width: none;
  }
}


/* The opening line needs a wider measure and a darker left edge: on a bright
   studio photograph the scrim has to be lateral as well as bottom-up, otherwise
   white type sits on near-white model surfaces. */
html[data-style="zha"] .panel:first-child .hero-monument__stage {
  max-width: min(34ch, 46%);
}

html[data-style="zha"] .panel:first-child .hero-monument__plate::after {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.35) 42%, rgba(0, 0, 0, 0) 62%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.72) 100%);
}

@media (max-width: 767px) {
  html[data-style="zha"] .panel:first-child .hero-monument__stage {
    max-width: none;
  }

  html[data-style="zha"] .panel:first-child .hero-monument__plate::after {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.1) 35%, rgba(0, 0, 0, 0.85) 100%);
  }
}


/* keep-all plus a fixed line box made the opening line overflow its column and
   get clipped by the full-bleed container. Chinese and Japanese break safely
   between characters, so the variant lets them wrap normally. */
html[data-style="zha"] .panel:first-child .hero-monument__sentence {
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
  max-width: 100%;
}


/* min(34ch, 46%) measured ch against the stage's 18px body font (~300px), not
   against the 52px headline 鈥?so the line was squeezed into a quarter width.
   A plain length and a percentage are what the intent was. */
html[data-style="zha"] .panel:first-child .hero-monument__stage {
  max-width: min(760px, 54%);
}


/* Japanese can break by phrase instead of by character in current Chromium;
   without it the opening line splits "銇欍倠" across two lines. */
html[data-style="zha"] .panel:first-child :lang(ja) .hero-monument__sentence {
  word-break: auto-phrase;
  line-break: strict;
}


/* ---- Variant 路 gradual reveal ------------------------------------------ */
/* The client's note: blocks arrive instantly instead of brightening in. The
   previous pass removed the reveal entirely; this one brings it back tied to the
   scroll position with a long range, so a block spends roughly 34% of the
   viewport easing up rather than snapping on at the moment it crosses the fold.
   Animation is driven by the view timeline, so the fade is already partly done by
   the time the block is comfortably in view. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    @keyframes zha-soft-in {
      from {
        opacity: 0;
        transform: translateY(26px);
      }
      to {
        opacity: 1;
        transform: none;
      }
    }

    html[data-style="zha"] .panel h1,
    html[data-style="zha"] .panel h2,
    html[data-style="zha"] .panel .lead,
    html[data-style="zha"] .panel .sblock,
    html[data-style="zha"] .panel .entry,
    html[data-style="zha"] .panel .reach__row,
    html[data-style="zha"] .panel .show__cap,
    html[data-style="zha"] .panel .red-block__title,
    html[data-style="zha"] .panel .red-block__note,
    html[data-style="zha"] .panel .red-block__stats,
    html[data-style="zha"] .panel .vblock__item,
    html[data-style="zha"] .panel .spage__next {
      animation: zha-soft-in linear both;
      animation-timeline: view();
      animation-range: entry 8% cover 42%;
    }

    /* the opening screen is on screen at load: no scroll-linked fade there */
    html[data-style="zha"] .panel:first-child h1,
    html[data-style="zha"] .panel:first-child .lead,
    html[data-style="zha"] .panel:first-child .hero-monument__sentence,
    html[data-style="zha"] .panel:first-child .hero-monument__lead {
      animation: none;
      opacity: 1;
      transform: none;
    }
  }
}


/* ---- Variant 路 a louder opening ---------------------------------------- */
/* Same idea, more theatre: each letter settles out of its mask with a trace of
   rotation, a hairline draws itself under the word, two lights breathe behind it,
   and the exit throws the letters outward before the whole layer wipes up. */

.zha-gate::before,
.zha-gate::after {
  content: "";
  position: absolute;
  width: 62vw;
  height: 62vw;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
  opacity: 0.5;
  animation: zha-gate-breathe 9s ease-in-out infinite alternate;
}

.zha-gate::before {
  left: -12vw;
  top: -18vw;
  background: radial-gradient(circle, rgba(110, 155, 224, 0.16), transparent 62%);
}

.zha-gate::after {
  right: -14vw;
  bottom: -22vw;
  background: radial-gradient(circle, rgba(188, 151, 100, 0.14), transparent 62%);
  animation-delay: -4.5s;
}

@keyframes zha-gate-breathe {
  from {
    transform: scale(1) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.14) translate3d(2%, -2%, 0);
  }
}

.zha-gate__word {
  position: relative;
}

.zha-gate__word::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.14em;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.15));
  transform: scaleX(0);
  transform-origin: left;
  animation: zha-gate-rule 1100ms cubic-bezier(0.16, 1, 0.3, 1) 700ms both;
}

@keyframes zha-gate-rule {
  to {
    transform: scaleX(1);
  }
}

.zha-gate__letter {
  --tilt: 0deg;
  animation: zha-gate-letter 1250ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(160ms + var(--i) * 90ms);
}

.zha-gate__letter:nth-child(2n) {
  --tilt: 1.5deg;
}

.zha-gate__letter:nth-child(2n + 1) {
  --tilt: -1.5deg;
}

@keyframes zha-gate-letter {
  from {
    clip-path: inset(0 0 100% 0);
    transform: translateY(14%) rotate(var(--tilt)) scale(1.06);
    opacity: 0;
  }
  60% {
    opacity: 1;
  }
  to {
    clip-path: inset(-12% 0 -12% 0);
    transform: none;
    opacity: 1;
  }
}

/* exit: letters leave in opposite directions, then the layer lifts */
.zha-gate[data-stage="exit"] .zha-gate__letter {
  animation: zha-gate-letter-out 620ms cubic-bezier(0.7, 0, 0.84, 0) both;
  animation-delay: calc(var(--i) * 45ms);
}

@keyframes zha-gate-letter-out {
  from {
    clip-path: inset(-12% 0 -12% 0);
    transform: none;
    opacity: 1;
  }
  to {
    clip-path: inset(-12% 0 -12% 0);
    transform: translateY(-42%) scale(0.96);
    opacity: 0;
  }
}

.zha-gate[data-stage="exit"] .zha-gate__word::after {
  animation: none;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 420ms cubic-bezier(0.7, 0, 0.84, 0);
}

.zha-gate[data-stage="exit"]::before,
.zha-gate[data-stage="exit"]::after {
  animation: none;
  opacity: 0;
  transition: opacity 500ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .zha-gate::before,
  .zha-gate::after,
  .zha-gate__word::after {
    animation: none;
  }
}


/* The rule hung 200px below the word because the grid centred the flex row but
   stretched its box; the word must size to its own text. */
.zha-gate__word {
  align-self: center;
  height: auto;
  line-height: 0.84;
}

.zha-gate__word::after {
  bottom: -0.1em;
}

.zha-gate__hint {
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.42em;
  padding-left: 0.42em;
}

.zha-gate__hint::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.9em;
  margin-left: 0.6em;
  background: currentColor;
  vertical-align: -0.1em;
  animation: zha-caret 1.1s steps(1, end) infinite;
}

@keyframes zha-caret {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .zha-gate__hint::after { animation: none; }
}


/* ---- Variant 路 the statement panel ------------------------------------- */
/* The reference never shows a decorative ghost: its stat rows sit on plain black
   with hairlines. This panel carried a giant watermark and ring ornaments at a few
   percent opacity, which on a long-scroll page reads as a rendering fault. They
   are removed and the numbers are promoted to the typographic anchor. */
html[data-style="zha"] .panel--red .stat > *:not(.stat__n):not(.stat__l) {
  display: none;
}

html[data-style="zha"] .panel--red .red-block__title {
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.022em;
  color: #ffffff;
  max-width: 18ch;
}

html[data-style="zha"] .panel--red .red-block__note {
  max-width: 46ch;
  font-size: 20px;
  line-height: 30px;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.72);
}

html[data-style="zha"] .panel--red .red-block__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: clamp(16px, 3vw, 48px);
  margin-top: clamp(40px, 6vh, 80px);
  padding-top: clamp(20px, 3vh, 32px);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

html[data-style="zha"] .panel--red .stat {
  border: 0;
  padding: 0;
}

html[data-style="zha"] .panel--red .stat__n {
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
}

html[data-style="zha"] .panel--red .stat__l {
  margin-top: 10px;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 767px) {
  html[data-style="zha"] .panel--red .red-block__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 28px;
  }
}


/* Correction: the blanket "hide every child but three" rule also hid the .grid
   that wraps the title, note and stats, so the panel went blank and only its
   watermark survived. Scope the removal to the two decorative layers by name 鈥?   they are the oversized 04 ghost and the IONIC watermark, which at 3% opacity
   read as a rendering fault on a long-scroll page. */
html[data-style="zha"] .panel--red .red-block > .grid {
  display: grid;
}

html[data-style="zha"] .panel--red .panel__brand,
html[data-style="zha"] .panel--red .panel__ghost {
  display: none;
}

/* the ink skin fades .reveal in from script; the variant drives its own reveals */
html[data-style="zha"] .panel--red .reveal,
html[data-style="zha"] .panel .reveal {
  opacity: 1;
}


/* ---- Variant 路 the section bar ----------------------------------------- */
/* The bar was a full-bleed hairline above and below, with the label sitting on
   the rule 鈥?it read as a table border left over from a different design. The
   reference marks a section with a short dash and a lot of air, no rules at all. */
html[data-style="zha"] .frame {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  border: 0 !important;
  padding: clamp(22px, 3.4vh, 40px) 0 clamp(8px, 1.4vh, 14px);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

html[data-style="zha"] .frame::before {
  content: "";
  flex: 0 0 auto;
  align-self: center;
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.75;
}

html[data-style="zha"] .frame > *:first-child {
  margin-right: auto;
  color: rgba(255, 255, 255, 0.62);
}

html[data-style="zha"] .frame > *:last-child {
  color: rgba(255, 255, 255, 0.42);
  font-variant-numeric: tabular-nums;
}

/* the same bleed rule under the page heading, and the one above each block */
html[data-style="zha"] .spage__head .rule,
html[data-style="zha"] .hero-monument__rule {
  display: none;
}

@media (max-width: 767px) {
  html[data-style="zha"] .frame {
    letter-spacing: 0.14em;
  }

  html[data-style="zha"] .frame::before {
    width: 16px;
  }
}


/* align the bar with the content grid instead of the viewport edge */
html[data-style="zha"] .frame {
  padding-inline: 40px;
}

@media (max-width: 767px) {
  html[data-style="zha"] .frame {
    padding-inline: 20px;
  }
}


/* ---- Variant 路 the caption under a plate ------------------------------- */
/* It was inheriting a dimmed colour and was also part of the scroll fade, so it
   sat at roughly a quarter opacity even when fully in view 鈥?the client read it as
   "too faint". The caption is now outside the fade and carries its own contrast. */
html[data-style="zha"] .panel .show__cap {
  animation: none;
  opacity: 1;
  transform: none;
}

html[data-style="zha"] .show__name {
  color: #ffffff;
  font-size: clamp(1.3rem, 1.9vw, 1.85rem);
  letter-spacing: -0.022em;
  line-height: 1.15;
}

html[data-style="zha"] .show__cat {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.16em;
}

html[data-style="zha"] .show__count,
html[data-style="zha"] .show__sep {
  color: rgba(255, 255, 255, 0.55);
}

html[data-style="zha"] .show__link,
html[data-style="zha"] .show__open {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

html[data-style="zha"] .show__dots span {
  background: rgba(255, 255, 255, 0.32);
}

html[data-style="zha"] .show__dots span[data-on="true"] {
  background: #ffffff;
}


/* The fade used to finish at "cover 42%", i.e. only after the block had travelled
   well up the viewport 鈥?so anything sitting in the lower half of the screen was
   still partly transparent, which reads as "content not shown". The fade now ends
   while the block is still entering (entry 85%): the moment a row is in view it is
   fully opaque, and the movement is what carries the reveal. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    html[data-style="zha"] .panel h1,
    html[data-style="zha"] .panel h2,
    html[data-style="zha"] .panel .lead,
    html[data-style="zha"] .panel .sblock,
    html[data-style="zha"] .panel .entry,
    html[data-style="zha"] .panel .reach__row,
    html[data-style="zha"] .panel .red-block__title,
    html[data-style="zha"] .panel .red-block__note,
    html[data-style="zha"] .panel .red-block__stats,
    html[data-style="zha"] .panel .vblock__item,
    html[data-style="zha"] .panel .spage__next {
      animation-range: entry 0% entry 85%;
    }
  }
}


/* ---- Variant 路 pointer summons a plate --------------------------------- */
/* Hovering an index row fades in a large photograph under the cursor and drops
   the other rows back. Only `filter` is used for the dimming, because the rows'
   opacity belongs to the scroll timeline. */
.entries__preview {
  position: fixed;
  top: 0;
  left: 0;
  width: clamp(260px, 30vw, 460px);
  aspect-ratio: 4 / 3;
  margin: calc(clamp(260px, 30vw, 460px) * -0.375) 0 0 calc(clamp(260px, 30vw, 460px) * -0.5);
  z-index: 140;
  pointer-events: none;
  opacity: 0;
  transition: opacity 260ms ease-out;
  will-change: transform;
}

.entries__preview[data-on="true"] {
  opacity: 1;
}

.entries__preview-plate {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 440ms cubic-bezier(0.19, 1, 0.22, 1);
}

.entries__preview[data-on="true"] .entries__preview-plate {
  clip-path: inset(0 0 0% 0);
}

html[data-style="zha"] .entries__list[data-hovering] .entry {
  filter: brightness(0.45);
  transition: filter 300ms ease-out;
}

html[data-style="zha"] .entries__list[data-hovering] .entry:hover {
  filter: none;
}

/* the pointer effect is a desktop idea only */
@media (pointer: coarse), (max-width: 767px) {
  .entries__preview {
    display: none;
  }

  html[data-style="zha"] .entries__list[data-hovering] .entry {
    filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .entries__preview {
    display: none;
  }
}


/* The plate was centred on the pointer, so it covered the very row being hovered.
   It now hangs just to the right of the cursor: the name stays readable while the
   picture follows the hand. */
.entries__preview {
  width: clamp(240px, 26vw, 420px);
  margin: calc(clamp(240px, 26vw, 420px) * -0.375) 0 0 36px;
}


/* A hairline keeps the plate from floating as a raw rectangle on black. */
.entries__preview-plate {
  outline: 1px solid rgba(255, 255, 255, 0.14);
  outline-offset: 0;
}


/* ---- Variant 路 two signatures from the award galleries ------------------ */

/* 1. Reading rule. One hairline pinned to the very top edge, filling as the page
   is read; it turns white when the reader reaches the end. */
.zha-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 200;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.06);
}

.zha-progress i {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: rgba(255, 255, 255, 0.55);
  transition: background-color 400ms ease-out;
}

.zha-progress[data-done="true"] i {
  background: #ffffff;
}

/* 2. Headings uncover line by line instead of fading as a block: the mask slides
   down over the element's own height while it enters, which is the single most
   common motion in this genre. Body copy keeps the plain fade. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    @keyframes zha-head-mask {
      from {
        clip-path: inset(0 0 100% 0);
        transform: translateY(18px);
      }
      to {
        clip-path: inset(-10% 0 -10% 0);
        transform: none;
      }
    }

    html[data-style="zha"] .panel h1,
    html[data-style="zha"] .panel h2,
    html[data-style="zha"] .panel .entries__title,
    html[data-style="zha"] .panel .sheet-head__title,
    html[data-style="zha"] .panel .red-block__title {
      animation: zha-head-mask linear both !important;
      animation-timeline: view() !important;
      animation-range: entry 0% entry 80% !important;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .zha-progress {
    display: none;
  }
}


/* The mask solved itself too fast to be seen: "entry 0% 鈫?entry 80%" is only 0.8 脳
   the element's own height of scroll (72px for a heading), so it snapped on within
   a flick and had nothing left to rewind. Ranges now span a fixed slice of the
   element's whole traversal ("cover"), which is ~200px of scroll whatever the
   element's height 鈥?long enough to see, long enough to run backwards. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    html[data-style="zha"] .panel h1,
    html[data-style="zha"] .panel h2,
    html[data-style="zha"] .panel .entries__title,
    html[data-style="zha"] .panel .sheet-head__title,
    html[data-style="zha"] .panel .red-block__title {
      animation-range: entry 0% cover 18% !important;
    }

    html[data-style="zha"] .panel .lead,
    html[data-style="zha"] .panel .sblock,
    html[data-style="zha"] .panel .entry,
    html[data-style="zha"] .panel .reach__row,
    html[data-style="zha"] .panel .red-block__note,
    html[data-style="zha"] .panel .red-block__stats,
    html[data-style="zha"] .panel .vblock__item,
    html[data-style="zha"] .panel .spage__next {
      animation-range: entry 0% cover 22% !important;
    }
  }
}


/* ---- Variant 路 the JS reveal owns these, CSS must stand down ------------- */
/* The scroll-timeline version could not resolve a scrolling ancestor here, so the
   blocks sat at the end of their range. reveal.ts now drives the same properties
   from real scroll positions, which also means they rewind on the way back up. */
html[data-style="zha"] .panel h1,
html[data-style="zha"] .panel h2,
html[data-style="zha"] .panel .entries__title,
html[data-style="zha"] .panel .sheet-head__title,
html[data-style="zha"] .panel .red-block__title,
html[data-style="zha"] .panel .lead,
html[data-style="zha"] .panel .sblock,
html[data-style="zha"] .panel .entry,
html[data-style="zha"] .panel .reach__row,
html[data-style="zha"] .panel .red-block__note,
html[data-style="zha"] .panel .red-block__stats,
html[data-style="zha"] .panel .vblock__item,
html[data-style="zha"] .panel .spage__next {
  animation: none !important;
  will-change: opacity, transform;
}


/* ---- Variant 路 label + note rows share one set of columns --------------- */
/* Every one of these lists was laid out per row, so the note column landed
   wherever that row's label happened to end. Same fix as the home index: the
   tracks live on the list, the rows adopt them with subgrid, and every note in a
   list starts on the same vertical line whatever the label's length. */
html[data-style="zha"] .slist {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  column-gap: clamp(24px, 6vw, 96px);
}

html[data-style="zha"] .slist__item {
  display: contents;
}

html[data-style="zha"] .slist__row {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / -1;
  align-items: baseline;
}

html[data-style="zha"] .plist {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  column-gap: clamp(16px, 3vw, 40px);
}

html[data-style="zha"] .plist__item {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / -1;
  align-items: baseline;
}

@media (max-width: 767px) {
  html[data-style="zha"] .slist,
  html[data-style="zha"] .plist {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 2px;
  }

  html[data-style="zha"] .slist__note,
  html[data-style="zha"] .plist__item span:last-child {
    grid-column: 1 / -1;
  }
}


/* ---- Variant 路 the opening screen at reference scale -------------------- */
/* Their hero is one moving image with a headline set huge enough to be the
   composition 鈥?roughly 8.5vw, two lines, tight leading. Ours was 52px, which read
   as a caption. CJK keeps a smaller step: characters at 8vw would break every two
   characters and stop reading as a line. */
html[data-style="zha"] .panel:first-child .hero-monument__sentence {
  font-size: clamp(2.4rem, 8.2vw, 8.4rem);
  line-height: 0.95;
  letter-spacing: -0.032em;
  font-weight: 400;
  text-wrap: balance;
}

html[data-style="zha"] .panel:first-child :lang(zh) .hero-monument__sentence,
html[data-style="zha"] .panel:first-child :lang(ja) .hero-monument__sentence {
  font-size: clamp(1.8rem, 3.4vw, 3.4rem);
  line-height: 1.16;
  letter-spacing: -0.022em;
}

html[data-style="zha"] .panel:first-child .hero-monument__stage {
  max-width: min(1100px, 78%);
  gap: 22px;
}

html[data-style="zha"] .panel:first-child .hero-monument__lead {
  font-size: clamp(1rem, 1.15vw, 1.25rem);
  line-height: 1.5;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.82);
}

/* the moving image sits over the still, which doubles as its poster */
.hero-monument__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 700ms ease-out;
}

.hero-monument__video[data-ready="true"] {
  opacity: 1;
}

html[data-style="zha"] .panel:first-child .hero-monument__plate[data-video="on"] img {
  opacity: 0;
  transition: opacity 500ms ease-out;
}

/* the header sits on the image, so it starts transparent and turns solid on scroll */
html[data-style="zha"] .site-header[data-scrolled="false"] {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
  border-bottom-color: transparent;
}

@media (max-width: 767px) {
  html[data-style="zha"] .panel:first-child .hero-monument__stage {
    max-width: none;
  }

  html[data-style="zha"] .panel:first-child .hero-monument__sentence {
    font-size: clamp(2rem, 9vw, 3rem);
  }
}


/* The reference opens full-bleed from the very top edge: no section bar above the
   image, no gap under the header. The first panel's frame label is dropped in the
   variant and the opening screen takes the whole viewport. */
html[data-style="zha"] .panel:first-child .frame {
  display: none;
}

html[data-style="zha"] .panel:first-child {
  padding-top: 0;
  border-top: 0;
}

html[data-style="zha"] .panel:first-child .hero-monument {
  height: 100vh;
  min-height: 560px;
}

html[data-style="zha"] .panel:first-child .shell.panel__inner {
  padding: 0;
}


/* The reference scale was right, the measure was not: at 8.2vw the English line ran
   to three full-width rows and ate the whole screen. 5.6vw keeps the same voice at
   a size the photograph can still breathe under, and the two-line break is set by
   the measure rather than by chance. */
html[data-style="zha"] .panel:first-child .hero-monument__sentence {
  font-size: clamp(2rem, 5.6vw, 5.8rem);
  line-height: 1.02;
  max-width: 22ch;
}

html[data-style="zha"] .panel:first-child .hero-monument__stage {
  max-width: min(860px, 62%);
}

/* Background motion, part 1: a slow diagonal sheen that crosses the opening image
   every 26 seconds. Painted on a pseudo layer so it never touches the video's own
   compositing. */
html[data-style="zha"] .panel:first-child .hero-monument__plate::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.35;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.10) 50%, transparent 58%);
  background-size: 240% 240%;
  animation: zha-hero-sheen 26s linear infinite;
  mix-blend-mode: screen;
}

@keyframes zha-hero-sheen {
  from {
    background-position: 120% 0%;
  }
  to {
    background-position: -40% 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-style="zha"] .panel:first-child .hero-monument__plate::before {
    animation: none;
    opacity: 0.15;
  }
}

@media (max-width: 767px) {
  html[data-style="zha"] .panel:first-child .hero-monument__sentence {
    font-size: clamp(1.7rem, 7.4vw, 2.6rem);
    max-width: none;
  }

  html[data-style="zha"] .panel:first-child .hero-monument__stage {
    max-width: none;
  }
}


/* Two lines is the composition the reference uses: wide enough that the sentence
   breaks once, not twice, and the photograph still reads behind it. */
html[data-style="zha"] .panel:first-child .hero-monument__stage {
  max-width: min(1240px, 86%);
}

html[data-style="zha"] .panel:first-child .hero-monument__sentence {
  max-width: none;
}


/* The parallax scales the moving image to 1.06, so the container has to clip it:
   without that the video bleeds ~12px past the viewport on every width. */
html[data-style="zha"] .panel:first-child .hero-monument__plate {
  overflow: hidden;
}


/* ---- Timeline ------------------------------------------------------------
   One rail for the whole list, filled by scroll; the years ride sticky beside it.
   Rows are text, not cards: this site's voice is type on black, and grey boxes
   were the reference's habit, not ours. */
.timeline {
  position: relative;
  margin: clamp(28px, 4vw, 64px) 0 0;
  padding-left: 0;
}

.timeline__rail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--tl-year, 132px) + 22px);
  width: 1px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
  pointer-events: none;
}

.timeline__fill {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: top center;
  transform: scaleY(0);
  background: linear-gradient(180deg, #c80810, rgba(200, 8, 16, 0.35));
}

.timeline {
  --tl-year: 132px;
}

.timeline__year {
  position: relative;
  display: grid;
  grid-template-columns: var(--tl-year) 44px minmax(0, 1fr);
  column-gap: 0;
  padding-bottom: clamp(18px, 2.4vw, 34px);
}

.timeline__label {
  position: sticky;
  top: 92px;
  align-self: start;
  margin: 0;
  padding-right: 22px;
  text-align: right;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 400;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.timeline__suffix {
  font-size: 0.42em;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  margin-left: 4px;
}

.timeline__badge {
  position: relative;
  align-self: start;
  justify-self: center;
  width: 11px;
  height: 11px;
  margin-top: 6px;
  border-radius: 50%;
  background: #c80810;
  box-shadow: 0 0 0 5px rgba(200, 8, 16, 0.14);
}

.timeline__events {
  list-style: none;
  margin: 0;
  padding: 2px 0 0 0;
}

.timeline__event {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  column-gap: clamp(12px, 1.6vw, 24px);
  align-items: baseline;
  padding: clamp(10px, 1.2vw, 16px) 0 clamp(10px, 1.2vw, 16px) clamp(14px, 1.6vw, 22px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  transition: padding-left 320ms cubic-bezier(0.19, 1, 0.22, 1), border-color 320ms ease;
}

.timeline__event:first-child {
  border-top-color: transparent;
}

.timeline__event:hover {
  padding-left: clamp(22px, 2.6vw, 38px);
  border-top-color: rgba(200, 8, 16, 0.55);
}

.timeline__date {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  font-variant-numeric: tabular-nums;
}

.timeline__text {
  margin: 0;
  max-width: 62ch;
  font-size: clamp(0.95rem, 1.15vw, 1.1rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 900px) {
  .timeline {
    --tl-year: 92px;
  }

  .timeline__label {
    font-size: 1.4rem;
    top: 76px;
  }

  .timeline__event {
    grid-template-columns: 60px minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .timeline {
    --tl-year: 0px;
  }

  .timeline__rail {
    left: 5px;
  }

  .timeline__year {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 26px;
  }

  .timeline__label {
    position: static;
    text-align: left;
    padding: 0 0 8px 0;
    font-size: 1.5rem;
  }

  .timeline__badge {
    position: absolute;
    left: 0;
    top: 6px;
  }

  .timeline__event {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .timeline__fill {
    transform: scaleY(1);
  }

  .timeline__event {
    transition: none;
  }
}


/* The section body is a two-column grid in the long-scroll skin, so a timeline
   dropped into it landed in the narrow label column and set one character per
   line. It spans the full measure in both skins. */
.timeline {
  grid-column: 1 / -1;
  width: 100%;
}

html[data-style="zha"] .timeline {
  grid-column: 1 / -1;
}

/* ---- Search -------------------------------------------------------------
   The panel is mounted at all times and transitions between two states, so the
   opening reads as one movement rather than a swap: scrim fades, panel rises 10px
   and settles from 98.5%, results follow with a 24ms stagger. Soft depth instead of
   a hard outlined box: gradient ground, one hairline, a deep shadow. */
.search {
  position: fixed;
  inset: 0;
  z-index: 260;
  pointer-events: none;
}

.search[data-open="true"] {
  pointer-events: auto;
}

.search__scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: rgba(4, 4, 5, 0.74);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 280ms ease;
  cursor: pointer;
}

.search[data-open="true"] .search__scrim {
  opacity: 1;
}

.search__panel {
  position: relative;
  margin: clamp(56px, 11vh, 132px) auto 0;
  width: min(780px, calc(100% - 40px));
  max-height: min(74vh, 660px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 6px;
  background: linear-gradient(180deg, #101012 0%, #0a0a0b 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 32px 120px rgba(0, 0, 0, 0.65), 0 2px 0 rgba(255, 255, 255, 0.03) inset;
  opacity: 0;
  transform: translateY(-10px) scale(0.985);
  transition:
    opacity 300ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.search[data-open="true"] .search__panel {
  opacity: 1;
  transform: none;
}

.search__field {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 22px 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.search__glyph {
  display: inline-flex;
  color: rgba(255, 255, 255, 0.45);
  transition: color 240ms ease;
}

.search__panel:focus-within .search__glyph {
  color: rgba(255, 255, 255, 0.9);
}

.search__input {
  width: 100%;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-family: inherit;
  font-size: clamp(1.1rem, 1.9vw, 1.5rem);
  letter-spacing: -0.015em;
  outline: none;
}

.search__input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.search__results {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.search__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 24px;
  padding: 13px 26px 13px 24px;
  text-decoration: none;
  color: var(--ink);
  border-left: 2px solid transparent;
  border-radius: 3px;
  transition:
    background-color 240ms ease,
    border-color 240ms ease,
    padding-left 280ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 320ms ease;
  opacity: 0;
  transform: translateY(4px);
}

.search[data-open="true"] .search__row {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i) * 24ms);
}

.search__row[data-active="true"] {
  background: rgba(255, 255, 255, 0.055);
  border-left-color: #c80810;
  padding-left: 30px;
}

.search__name {
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  letter-spacing: -0.01em;
}

.search__path {
  font-size: 11px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.32);
  white-space: nowrap;
}

.search__empty {
  padding: 20px 26px 24px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
}

.search__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
}

.search__key {
  padding: 2px 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 3px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.search__legend + .search__key {
  margin-left: 14px;
}

@media (max-width: 767px) {
  .search__panel {
    margin-top: 16px;
    width: calc(100% - 20px);
    max-height: 78vh;
    border-radius: 4px;
  }

  .search__field {
    padding: 18px 18px;
  }

  .search__row {
    padding: 12px 18px;
  }

  .search__row[data-active="true"] {
    padding-left: 22px;
  }

  .search__path {
    display: none;
  }

  .search__footer {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .search__panel,
  .search__row,
  .search__scrim {
    transition-duration: 1ms;
  }
}


/* ---- Header controls, iOS-glass -----------------------------------------
   Three controls in one material: a translucent pane, a hairline of light on the
   top edge, a soft drop shadow, and a pill silhouette. The language switch becomes
   a glass capsule with a solid pill riding on top of the active option, which is
   the one place a solid white surface still makes sense. */
.search-btn,
.nav__cta,
.lang {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.055));
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    0 6px 22px rgba(0, 0, 0, 0.35);
  color: #ffffff;
}

.search-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 999px;
  margin-left: 10px;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 260ms ease, background-color 260ms ease;
}

.search-btn:hover,
.search-btn:focus-visible {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.1));
  border-color: rgba(255, 255, 255, 0.34);
  transform: translateY(-1px);
}

.nav__cta {
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), background-color 260ms ease;
}

.nav__cta:hover,
.nav__cta:focus-visible {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.12));
  transform: translateY(-1px);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.34);
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
}

.lang__btn {
  min-width: 34px;
  padding: 6px 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 200ms ease, background-color 240ms ease, box-shadow 240ms ease;
}

.lang__btn:hover:not([aria-pressed="true"]) {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.lang__btn[aria-pressed="true"] {
  background: #ffffff;
  color: #0b0b0c;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

/* ---- Search suggestions + a springier entrance -------------------------- */
.search__suggest {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px 26px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.search__suggest-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
  white-space: nowrap;
}

.search__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search__chip {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.82);
  font-family: inherit;
  font-size: 12.5px;
  letter-spacing: 0.01em;
  cursor: pointer;
  opacity: 0;
  transform: translateY(6px) scale(0.97);
  transition:
    opacity 300ms ease,
    transform 380ms cubic-bezier(0.16, 1, 0.3, 1),
    background-color 220ms ease,
    border-color 220ms ease;
}

.search[data-open="true"] .search__chip {
  opacity: 1;
  transform: none;
  transition-delay: calc(120ms + var(--i) * 45ms);
}

.search__chip:hover,
.search__chip:focus-visible {
  border-color: rgba(255, 255, 255, 0.36);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.1));
  color: #ffffff;
}

/* the panel arrives with a trace of blur, the way an iOS sheet does */
.search__panel {
  filter: blur(6px);
  transition:
    opacity 320ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 460ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 380ms cubic-bezier(0.16, 1, 0.3, 1);
}

.search[data-open="true"] .search__panel {
  filter: blur(0);
}

@media (max-width: 767px) {
  .search__suggest {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 12px 18px 4px;
  }

  .search-btn {
    width: 34px;
    height: 34px;
  }

  .nav__cta {
    padding: 7px 13px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .search__panel,
  .search__chip {
    filter: none;
    transition-duration: 1ms;
  }
}


/* The glass pass dropped the flex centring the button used to have, so the glyph
   sat against its left edge (measured 9px off centre). Restated here with a
   zero line-height, which is what a 17px icon inside a 38px circle needs. */
.search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.search-btn svg {
  display: block;
}


/* ---- Section blocks, three layouts in rotation --------------------------
   Every block used to be the same two-column row, which read as a spreadsheet.
   The rhythm now alternates: a labelled row, a full-width statement set larger,
   and a numbered row whose ordinal is drawn by a CSS counter rather than typed. */
.spage__blocks {
  counter-reset: block;
}

html[data-style="zha"] .spage__blocks {
  display: block;
  margin-top: clamp(24px, 3vw, 48px);
}

html[data-style="zha"] .sblock {
  counter-increment: block;
  display: grid;
  grid-template-columns: minmax(0, 22fr) minmax(0, 78fr);
  column-gap: clamp(24px, 8vw, 120px);
  align-items: start;
  padding: clamp(24px, 3.2vw, 42px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

html[data-style="zha"] .sblock__h {
  margin: 0;
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
}

html[data-style="zha"] .sblock__body {
  margin: 0;
  max-width: 66ch;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.86);
}

/* B 路 statement: the label steps above the copy and the copy carries the page */



/* C 路 numbered: an ordinal in the margin, drawn by the counter */
@media (max-width: 900px) {
  html[data-style="zha"] .sblock {
    grid-template-columns: 44px minmax(0, 1fr);
    row-gap: 8px;
  }

  html[data-style="zha"] .sblock__h,
  html[data-style="zha"] .sblock__body {
    grid-column: 2;
  }

  html[data-style="zha"] .sblock__body {
    grid-row: 2;
  }
}

/* Only the home opening screen is allowed to run underneath the header. Every
   other first panel needs to clear it: /about and /contact put their h1 at y=0 and
   the transparent header printed the logo on top of the headline. */
html[data-style="zha"] .panel:first-child {
  padding-top: clamp(84px, 11vh, 132px);
}

html[data-style="zha"] .panel:first-child:has(.hero-monument) {
  padding-top: 0;
}

html[data-style="zha"] .open {
  padding-top: clamp(84px, 11vh, 132px);
}

@media (max-width: 767px) {
  html[data-style="zha"] .panel:first-child,
  html[data-style="zha"] .open {
    padding-top: 76px;
  }

  html[data-style="zha"] .panel:first-child:has(.hero-monument) {
    padding-top: 0;
  }
}


/* ---- Section blocks: one grid, three languages -------------------------
   The rotating layouts made a three-block page look accidental 鈥?the client read
   it as broken alignment. Every block now sits on the same two columns (label /
   copy) whatever the language, with the ordinal in the margin as the only device.
   The variants are kept in the file for pages that ask for them by attribute, but
   nothing sets that attribute any more. */
html[data-style="zha"] .sblock,

html[data-style="zha"] .sblock::before {
  content: counter(block, decimal-leading-zero);
  grid-column: 1;
  grid-row: 1;
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: rgba(200, 8, 16, 0.75);
  font-variant-numeric: tabular-nums;
}


html[data-style="zha"] .sblock__h {
  grid-column: 2;
  grid-row: 1;
  padding-top: 1px;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

html[data-style="zha"] .sblock__body {
  grid-column: 3;
  grid-row: 1;
  max-width: 64ch;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.65;
}

/* statement and numbered variants collapse into the same columns */



@media (max-width: 900px) {
  html[data-style="zha"] .sblock {
    grid-template-columns: 44px minmax(0, 1fr);
    row-gap: 8px;
  }

  html[data-style="zha"] .sblock__h {
    grid-column: 2;
  }

  html[data-style="zha"] .sblock__body {
    grid-column: 2;
    grid-row: 2;
  }
}

/* The films now sit inside 绮鹃€変綔鍝? full width under the showcase: two posters on
   one row, stacked on a phone. */
html[data-style="zha"] .work-wrap + .vblock {
  margin-top: clamp(24px, 3.4vw, 52px);
}

html[data-style="zha"] .vblock {
  padding-inline: 40px;
}

html[data-style="zha"] .vblock__list {
  gap: clamp(12px, 1.6vw, 24px);
}

@media (max-width: 767px) {
  html[data-style="zha"] .vblock {
    padding-inline: 20px;
  }
}

html[data-style="zha"] .hubmethod {
  margin: clamp(36px, 5vw, 72px) 0 0;
  padding-top: clamp(20px, 2.6vw, 32px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

html[data-style="zha"] .hubmethod__h {
  margin: 0 0 clamp(16px, 2vw, 26px);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

html[data-style="zha"] .hubmethod__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 28px) clamp(24px, 3vw, 56px);
  margin: 0;
  padding: 0;
  list-style: none;
}

html[data-style="zha"] .hubmethod__item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 4px;
}

html[data-style="zha"] .hubmethod__n {
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 1.9;
  color: rgba(200, 8, 16, 0.85);
  font-variant-numeric: tabular-nums;
}

html[data-style="zha"] .hubmethod__text {
  margin: 0;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 767px) {
  html[data-style="zha"] .hubstats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  html[data-style="zha"] .hubmethod__list {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* The section page is a 22/78 grid, so these two blocks have to claim the whole
   measure instead of inheriting a column and squeezing into it. */
html[data-style="zha"] .spage__inner > .hubstats,
html[data-style="zha"] .spage__inner > .hubmethod {
  grid-column: 1 / -1;
}

html[data-style="zha"] .spage__inner > .hubmethod .hubmethod__list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 900px) {
  html[data-style="zha"] .spage__inner > .hubstats,
  html[data-style="zha"] .spage__inner > .hubmethod {
    grid-column: 1 / -1;
  }

  html[data-style="zha"] .spage__inner > .hubmethod .hubmethod__list {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* Deterministic placement on the section page: the breadcrumb keeps the narrow
   left rail, everything else owns the wide column. Without this, adding blocks
   shuffles auto-placement and squeezes the index into the rail. */
html[data-style="zha"] .spage__inner > :not(.crumb) {
  grid-column: 2;
  min-width: 0;
}

html[data-style="zha"] .spage__inner > .crumb {
  grid-column: 1;
}

@media (max-width: 900px) {
  html[data-style="zha"] .spage__inner > :not(.crumb),
  html[data-style="zha"] .spage__inner > .crumb {
    grid-column: 1 / -1;
  }
}


/* ---- Contact: details first --------------------------------------------
   The quote button used to live in the header. It lives here now, under the
   phone number, because that is the context it needs. */
html[data-style="zha"] .contactcard {
  margin: clamp(60px, 8vh, 96px) 0 clamp(24px, 3vw, 40px);
  padding: clamp(20px, 2.6vw, 32px) clamp(20px, 2.6vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px) saturate(180%);
}

html[data-style="zha"] .contactcard__h {
  margin: 0 0 6px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

html[data-style="zha"] .contactcard__note {
  margin: 0 0 clamp(18px, 2vw, 26px);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

html[data-style="zha"] .contactcard__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 24px) clamp(20px, 3vw, 48px);
  margin: 0 0 clamp(20px, 2.4vw, 30px);
}

html[data-style="zha"] .contactcard__row dt {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 4px;
}

html[data-style="zha"] .contactcard__row dd {
  margin: 0;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  color: #fff;
}

html[data-style="zha"] .contactcard__row dd a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

html[data-style="zha"] .contactcard__row dd a:hover {
  border-color: var(--signal, #c80810);
}

html[data-style="zha"] .contactcard__quote {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  background: #fff;
  color: #0b0b0c;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

html[data-style="zha"] .contactcard__quote:hover {
  transform: translateY(-1px);
  background: #f0ece4;
}

html[data-style="zha"] .contactcard__quote-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 767px) {
  html[data-style="zha"] .contactcard__list {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* ---- Portfolio index, matching the reference layout ---------------------
   A full-width black bar of product types (the sub-division the client asked
   for), then three columns of project cards: place/type above, photograph,
   name, and the type again as a caption under it. */
html[data-style="zha"] .gallery {
  margin-top: clamp(26px, 3.4vw, 46px);
}

html[data-style="zha"] .gallery__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0;
  width: 100%;
  padding: 0;
  border-radius: 0;
  background: #0e0f11;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

html[data-style="zha"] .gallery__tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 16px 22px;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: color 180ms ease;
}

html[data-style="zha"] .gallery__tab + .gallery__tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.16);
}

html[data-style="zha"] .gallery__tab:hover {
  color: #fff;
}

html[data-style="zha"] .gallery__tab.is-on {
  background: transparent;
  color: #fff;
  font-weight: 600;
}

html[data-style="zha"] .gallery__tab.is-on::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 10px;
  height: 2px;
  background: var(--signal, #c80810);
}

html[data-style="zha"] .gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(34px, 4vw, 64px) clamp(18px, 2.4vw, 38px);
  margin: clamp(28px, 3.6vw, 52px) 0 0;
  padding: 0;
  list-style: none;
}

html[data-style="zha"] .gallery__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

html[data-style="zha"] .gallery__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 10px;
}

html[data-style="zha"] .gallery__year {
  color: rgba(255, 255, 255, 0.32);
}

html[data-style="zha"] .gallery__frame {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #17181a;
}

html[data-style="zha"] .gallery__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 720ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

html[data-style="zha"] .gallery__link:hover .gallery__frame img {
  transform: scale(1.05);
}

html[data-style="zha"] .gallery__name {
  display: block;
  margin-top: 14px;
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  line-height: 1.4;
  color: #fff;
}

html[data-style="zha"] .gallery__tag {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.42);
}

@media (max-width: 1023px) {
  html[data-style="zha"] .gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  html[data-style="zha"] .gallery__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  html[data-style="zha"] .gallery__bar {
    justify-content: flex-start;
  }

  html[data-style="zha"] .gallery__tab {
    padding: 12px 14px;
    font-size: 12px;
  }
}


/* One row, scrolling sideways when the list is longer than the screen, so the
   bar reads as a single strip the way the reference does. */
html[data-style="zha"] .gallery__bar {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

html[data-style="zha"] .gallery__bar::-webkit-scrollbar {
  display: none;
}

html[data-style="zha"] .gallery__tab {
  flex: 0 0 auto;
}


/* ---- Second-level pages open on the photographs -------------------------
   The intro used to run five lines before the first plate, which pushed every
   photograph below the fold. The lead is written wider and set smaller, the
   head loses some air, and the plates now sit directly under it. */
html[data-style="zha"] .spage__head {
  padding-top: clamp(56px, 7vh, 84px);
}

html[data-style="zha"] .spage__lead {
  max-width: 104ch;
  font-size: clamp(0.98rem, 1.05vw, 1.06rem);
  line-height: 1.6;
}

html[data-style="zha"] .plate-grid {
  margin-top: clamp(18px, 2.2vw, 30px);
}


/* The tab strip is longer than most screens: left-aligned so the first tab is
   never scrolled out of reach, and it still scrolls sideways when needed. */
html[data-style="zha"] .gallery__bar {
  justify-content: flex-start;
}


/* The mechanical column gets the same paper-and-white-model overture as the home
   hero, at the hero's own 3:2 frame. */
html[data-style="zha"] .spage__kicker {
  margin: clamp(20px, 2.6vw, 34px) 0 clamp(18px, 2.4vw, 30px);
  overflow: hidden;
  border-radius: 4px;
  background: #f4efe6;
}

html[data-style="zha"] .spage__kicker img {
  display: block;
  width: 100%;
  height: auto;
}


/* Let the mechanical overture run the full measure, the way the home hero does,
   instead of sitting inside the narrow content column. */
html[data-style="zha"] .spage__inner > .spage__kicker {
  grid-column: 1 / -1;
  margin-inline: 0;
}


/* Keep the overture to a band rather than a second screen: the category bar has
   to be visible under it without scrolling. */
html[data-style="zha"] .spage__inner > .spage__kicker {
  max-height: min(520px, 54vh);
}

html[data-style="zha"] .spage__kicker img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* The overture shows the whole photograph: the band is the image's own 16:9
   frame, never a crop of it. */
html[data-style="zha"] .spage__inner > .spage__kicker {
  max-height: none;
}

html[data-style="zha"] .spage__kicker img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}


/* ---- Section blocks: the statement gets the full measure -----------------
   鐢叉柟锛氥€岃繖閲屽皬鏂囧瓧娌℃湁蹇呰鎹㈣锛岀洿鎺ヤ竴琛岃繃鍘讳竴鍙ュ氨琛屻€嶃€傛爣棰樺師鏉ュ崰绐勬爮锛?   涓€鍙ヨ瘽琚媶鎴愪袱琛岋紱鐜板湪搴忓彿鐣欏湪宸︼紝鏍囬涓庢鏂囬兘璧板彸渚ф暣鏍忥紝鏍囬涓€琛屽埌搴曘€?*/
html[data-style="zha"] .sblock {
  grid-template-columns: clamp(56px, 6vw, 88px) minmax(0, 1fr);
  column-gap: clamp(12px, 2.4vw, 32px);
}

html[data-style="zha"] .sblock__h {
  grid-column: 2;
  grid-row: 1;
  font-size: clamp(1.02rem, 1.2vw, 1.12rem);
  letter-spacing: 0.01em;
  line-height: 1.5;
  color: #fff;
  text-transform: none;
  white-space: nowrap;
}

html[data-style="zha"] .sblock__body {
  grid-column: 2;
  grid-row: 2;
  margin-top: 8px;
  max-width: 82ch;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 767px) {
  html[data-style="zha"] .sblock__h {
    white-space: normal;
  }
}


/* ---- Why IONIC -----------------------------------------------------------
   鐢叉柟瑕佹眰鍦ㄩ椤靛崟寮€涓€鍧楄浼樺娍锛屼袱鍙ヨ瘽璇村畬銆傚乏渚ф爣棰樸€佸彸渚т袱琛岋紝鍜屽叏绔欑殑
   22/78 鏍呮牸涓€鑷达紝涓嶆姠棣栧睆銆佷笉鎵撴柇闃呰銆?*/
html[data-style="zha"] .why {
  padding-block: clamp(56px, 9vh, 120px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

html[data-style="zha"] .why__grid {
  display: grid;
  grid-template-columns: minmax(0, 22fr) minmax(0, 78fr);
  column-gap: clamp(28px, 6vw, 96px);
  align-items: start;
}

html[data-style="zha"] .why__title {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin: 6px 0 0;
}

html[data-style="zha"] .why__lines {
  display: grid;
  gap: clamp(14px, 1.6vw, 22px);
}

html[data-style="zha"] .why__line {
  margin: 0;
  font-size: clamp(1.15rem, 1.75vw, 1.6rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
  max-width: 46ch;
}

@media (max-width: 900px) {
  html[data-style="zha"] .why__grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 18px;
  }

  html[data-style="zha"] .why__title {
    margin-bottom: 4px;
  }
}


/* The panel is a full screen; centre the two lines in it so the block reads as a
   deliberate statement rather than a heading stranded at the top. */
html[data-style="zha"] .why {
  display: flex;
  align-items: center;
  min-height: min(100vh, 760px);
}


/* ---- Hub pages use the full measure -------------------------------------
   鐢叉柟锛氥€屾帓鐗堟湁鐐归棶棰橈紝杩欓噷鏁翠釜涓嶅崗璋冿紝鐣欑殑绌虹櫧澶浜嗐€嶃€傜敾寤婁笌鍥剧増鍘熸潵琚?   22/78 鏍呮牸鍏冲湪鍙虫爮锛屽乏杈圭┖鍑轰竴澶х墖锛涚幇鍦ㄥ畠浠崰婊℃暣鏍忥紝鏍囬浠嶇缉杩涘榻愩€?*/
html[data-style="zha"] .spage__inner > .gallery,
html[data-style="zha"] .spage__inner > .plate-grid,
html[data-style="zha"] .spage__inner > .hubmethod {
  grid-column: 1 / -1;
}

html[data-style="zha"] .gallery__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}


/* ---- 涓轰粈涔堟槸鐖卞ゥ灏硷細鍏潯锛屾帓鎴?3 脳 2 鐨勭増闈?---------------------------
   鐢叉柟瑕佹眰銆屽仛寰楀ソ鐪嬩竴鐐广€佷笉閭ｄ箞鍗曡皟銆嶏紝鍙傜収棣栭〉鏁板瓧鏉★細缁嗙嚎鍒嗛殧銆佸ぇ鍙峰簭鍙枫€?   鏍囬涓€琛屻€佽鏄庝袱琛屻€傜獎灞忎袱鍒楋紝鎵嬫満涓€鍒椼€?*/
html[data-style="zha"] .why {
  display: block;
  padding-block: clamp(64px, 10vh, 132px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

html[data-style="zha"] .why__head {
  display: grid;
  grid-template-columns: minmax(0, 22fr) minmax(0, 78fr);
  column-gap: clamp(28px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(28px, 4vw, 52px);
}

html[data-style="zha"] .why__title {
  margin: 0;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  letter-spacing: 0.01em;
}

html[data-style="zha"] .why__lead {
  margin: 0;
  font-size: clamp(0.95rem, 1.15vw, 1.05rem);
  color: rgba(255, 255, 255, 0.55);
  max-width: 62ch;
}

html[data-style="zha"] .why__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

html[data-style="zha"] .why__item {
  padding: clamp(22px, 2.6vw, 36px) clamp(18px, 2.4vw, 34px) clamp(26px, 3vw, 44px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

html[data-style="zha"] .why__item + .why__item {
  padding-left: clamp(18px, 2.4vw, 34px);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-style="zha"] .why__n {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: rgba(200, 8, 16, 0.9);
  margin-bottom: clamp(14px, 1.6vw, 22px);
}

html[data-style="zha"] .why__h {
  margin: 0 0 10px;
  font-size: clamp(1.1rem, 1.45vw, 1.32rem);
  line-height: 1.35;
  color: #fff;
  font-weight: 600;
}

html[data-style="zha"] .why__b {
  margin: 0;
  font-size: clamp(0.92rem, 1.02vw, 1rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.6);
  max-width: 34ch;
}

@media (max-width: 1023px) {
  html[data-style="zha"] .why__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-style="zha"] .why__item:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  html[data-style="zha"] .why__head {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 12px;
  }
}

@media (max-width: 639px) {
  html[data-style="zha"] .why__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  html[data-style="zha"] .why__item,
  html[data-style="zha"] .why__item + .why__item {
    border-left: 0;
    padding-left: 0;
  }
}


/* Centre the six-item screen in its panel instead of leaving the bottom third
   empty. */
html[data-style="zha"] .why {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(100vh, 860px);
}


/* ---- Opening plate: two photographs, one frame -------------------------
   鐧芥ā锛堣埅绌哄彂鍔ㄦ満鍓栧垏锛変笌娌欑洏锛堢櫧鑹蹭綋閲忔ā鍨嬶級浜ゆ浛鍑虹幇锛屽悓涓虹背鐧藉崱绾镐笌宸︿笂
   鏌斿厜锛屾墍浠ユ崲鍥惧彧鏄崲涓讳綋锛屼笉鎹㈤鏍笺€?*/
html[data-style="zha"] .hero-plate {
  position: relative;
}

html[data-style="zha"] .hero-plate .hero-plate__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1200ms ease;
}

html[data-style="zha"] .hero-plate .hero-plate__frame--a {
  opacity: 1;
}

html[data-style="zha"] .hero-plate .hero-plate__frame--b {
  opacity: 0;
}

html[data-style="zha"] .hero-plate[data-alt="1"] .hero-plate__frame--a {
  opacity: 0;
}

html[data-style="zha"] .hero-plate[data-alt="1"] .hero-plate__frame--b {
  opacity: 1;
}


/* Slower hold, longer fade, and a whisper of scale so the swap does not read as
   a cut. */
html[data-style="zha"] .hero-plate .hero-plate__frame {
  transition: opacity 1500ms cubic-bezier(0.4, 0, 0.2, 1), transform 9000ms linear;
}

html[data-style="zha"] .hero-plate .hero-plate__frame--b {
  transform: scale(1.04);
}

html[data-style="zha"] .hero-plate[data-alt="1"] .hero-plate__frame--b {
  transform: scale(1);
}


/* ---- 鏉垮潡澧欙細涓€鏍忎竴寮犲浘锛屾寜 ZHA 閭ｇ鎺掓硶 ---------------------------------
   鐢叉柟锛氥€屾瘡涓澘鍧楅兘閫変竴涓ソ鐪嬬殑澶ф皵鐗涢€肩殑鍥剧墖浣滀负鍏镐緥锛屾垜鐐硅繘鍘昏兘鐪嬪埌閲岄潰鐨勩€嶃€?   涓夊垪銆佸浘鐗囨拺婊°€佹枃瀛楀湪涓嬫柟銆佸彸绠ご锛岄紶鏍囩Щ涓婂幓杞诲井鎺ㄨ繎銆?*/
html[data-style="zha"] .entries__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 34px);
  margin: clamp(22px, 3vw, 40px) 0 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 1023px) {
  html[data-style="zha"] .entries__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  html[data-style="zha"] .entries__cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 1023px) {
  html[data-style="zha"] .catwall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  html[data-style="zha"] .catwall {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 绐勫睆锛氭敼鎴愮珫鍚戝爢鍙?*/
@media (max-width: 900px) {
  html[data-style="zha"] .hero-monument--cover {
    min-height: auto;
    padding: 96px 22px 40px;
  }

  html[data-style="zha"] .hero-monument--cover .hero-monument__word {
    position: static;
    opacity: 0.1;
    margin-bottom: -8px;
  }

  html[data-style="zha"] .hero-monument--cover .hero-monument__word svg,
  html[data-style="zha"] .hero-monument--cover .hero-monument__word img {
    width: 62vw !important;
  }

  html[data-style="zha"] .hero-monument--cover .hero-monument__stage {
    position: static;
    width: auto;
    margin-top: 18px;
  }

  html[data-style="zha"] .hero-monument--cover .hero-monument__plate {
    position: static;
    width: 100%;
    height: 56vw;
    margin-top: 26px;
    -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  }

  html[data-style="zha"] .hero-cover__stats {
    margin-top: 26px;
  }

  html[data-style="zha"] .hero-cover__stats li {
    padding: 0 16px;
  }

  html[data-style="zha"] .hero-cover__quote {
    position: static;
    width: auto;
    margin-top: 28px;
  }
}

@media (max-width: 900px) {
  html[data-style="zha"] .hero-monument--cover::before {
    display: none;
  }
}


/* ---- Bandung 閭ｄ竴灞忥細鏍囬琚尋鎴愩€屾柊/鍩庛€嶄袱琛?--------------------------
   鐢叉柟锛氥€岃繖鍧楁病鏀广€嶃€傚師鍥犳槸鏍囬闄愬 18ch锛屼腑鑻辨贩鎺掓椂涓枃鍦ㄤ换鎰忓瓧闂存柇琛屻€?   鐜板湪鏍囬鐙崰涓€鏁磋銆佸厑璁稿钩琛℃崲琛屼笖涓枃涓嶆媶璇嶏紝璇存槑鏂囧瓧璺熷湪涓嬮潰銆?*/
html[data-style="zha"] .panel--red .grid {
  display: block;
}

html[data-style="zha"] .panel--red .red-block__title {
  max-width: 30ch;
  font-size: clamp(1.9rem, 4.2vw, 3.9rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  word-break: keep-all;
  text-wrap: balance;
}

html[data-style="zha"] .panel--red .red-block__note {
  margin: 24px 0 0;
  max-width: 56ch;
  font-size: clamp(15px, 1.25vw, 19px);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.7);
}

html[data-style="zha"] .panel--red .red-block__stats {
  margin-top: clamp(32px, 5vh, 64px);
}

@media (max-width: 900px) {
  html[data-style="zha"] .panel--red .red-block__title {
    font-size: clamp(1.6rem, 7vw, 2.4rem);
    max-width: none;
  }

  html[data-style="zha"] .panel--red .red-block__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 24px;
  }
}


/* ---- 浜岀骇椤垫枃瀛椾竴寰嬮《鍒板乏杈?-------------------------------------------
   鐢叉柟锛氥€岃鏂囧瓧椤舵鍒板乏杈广€嶃€屾暣涓叧浜庢垜浠兘鏄繖鏍风殑銆嶃€?   22/78 涓ゆ爮鏀规垚涓€鏍忥紝闈㈠寘灞戙€佹爣棰樸€佸璇€佹潯鐩兘浠庡悓涓€鏍瑰乏绾垮紑濮嬨€?*/
html[data-style="zha"] .spage__inner {
  grid-template-columns: minmax(0, 1fr);
  column-gap: 0;
}

html[data-style="zha"] .spage__inner > .crumb,
html[data-style="zha"] .spage__inner > :not(.crumb) {
  grid-column: 1;
}


/* ---- 鏂伴椈鍒楄〃涓庤鎯呴〉 ---------------------------------------------------
   鐢叉柟瑕併€屾缁忔柊闂婚偅绉嶆劅瑙夈€嶏細鍒楄〃鍙湁 鏃ユ湡 / 鏍囬 / 鎽樿锛岀偣杩涘幓鎵嶆槸姝ｆ枃銆?*/
html[data-style="zha"] .newslist {
  margin: clamp(20px, 3vw, 34px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

html[data-style="zha"] .newslist__item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

html[data-style="zha"] .newslist__link {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) 28px;
  gap: clamp(14px, 2vw, 34px);
  align-items: start;
  padding: clamp(20px, 2.6vw, 30px) 0;
  text-decoration: none;
  color: inherit;
  transition: background 200ms ease;
}

html[data-style="zha"] .newslist__link:hover {
  background: rgba(255, 255, 255, 0.03);
}

html[data-style="zha"] .newslist__date {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
  padding-top: 6px;
}

html[data-style="zha"] .newslist__title {
  display: block;
  font-size: clamp(1.05rem, 1.55vw, 1.35rem);
  line-height: 1.45;
  color: #fff;
}

html[data-style="zha"] .newslist__summary {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  max-width: 74ch;
}

html[data-style="zha"] .newslist__arrow {
  color: rgba(255, 255, 255, 0.4);
  padding-top: 6px;
  transition: transform 220ms ease, color 220ms ease;
}

html[data-style="zha"] .newslist__link:hover .newslist__arrow {
  transform: translateX(4px);
  color: #fff;
}

/* 璇︽儏椤?*/
html[data-style="zha"] .article__date {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--signal, #c80810);
}

html[data-style="zha"] .article__plates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 24px);
  margin: clamp(18px, 2.4vw, 30px) 0 clamp(26px, 3.4vw, 44px);
}

html[data-style="zha"] .article__figure {
  margin: 0;
}

html[data-style="zha"] .article__figure img {
  width: 100%;
  height: auto;
  display: block;
}

html[data-style="zha"] .article__caption {
  margin-top: 8px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.42);
}

html[data-style="zha"] .article__body .sblock__h {
  white-space: normal;
}

html[data-style="zha"] .article__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(30px, 4vw, 52px);
  padding-top: clamp(18px, 2vw, 26px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

html[data-style="zha"] .article__back {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  padding-bottom: 4px;
}

@media (max-width: 767px) {
  html[data-style="zha"] .newslist__link {
    grid-template-columns: minmax(0, 1fr) 20px;
  }

  html[data-style="zha"] .newslist__date {
    grid-column: 1 / -1;
    padding-top: 0;
    margin-bottom: 6px;
  }

  html[data-style="zha"] .article__plates {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* 鏂伴椈鍒楄〃锛氭寚閽堝垝杩囨椂璺熷嚭涓€寮犻瑙堝浘锛堟闈㈢锛涜Е灞忔病鏈?hover 灏变笉鍑虹幇锛夈€?*/
html[data-style="zha"] .newslist__preview {
  position: fixed;
  left: 0;
  top: 0;
  width: 300px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  pointer-events: none;
  z-index: 60;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  animation: news-preview-in 180ms ease both;
}

@keyframes news-preview-in {
  from { opacity: 0; transform-origin: center; }
  to { opacity: 1; }
}


/* ---- 鍏ㄧ悆浜や粯锛氬彲鎷栨嫿鐨勭嚎妗嗗湴鐞?---------------------------------------
   鐢叉柟瑕佲€滆兘杞殑鍦扮悆浠紝姣忎釜椤圭洰鏍囧湪涓婇潰鈥濄€備笉鐢?three.js锛?600 KB 浼氱垎棣栧睆锛夛紝
   杩欓噷 canvas 2D 鐢荤粡绾嚎锛屾浜ゆ姇褰憋紝鎷栨嫿鏀圭粡绾害銆佹澗鎵嬪洖姝ｃ€?*/
html[data-style="zha"] .globe-panel {
  padding-block: clamp(56px, 9vh, 110px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

html[data-style="zha"] .globe-panel__head {
  display: grid;
  grid-template-columns: minmax(0, 22fr) minmax(0, 78fr);
  column-gap: clamp(24px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(24px, 3.4vw, 44px);
}

html[data-style="zha"] .globe-panel__title {
  margin: 0;
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  line-height: 1.15;
}

html[data-style="zha"] .globe-panel__lead {
  margin: 0;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.5);
  max-width: 62ch;
}

html[data-style="zha"] .globe {
  display: grid;
  grid-template-columns: minmax(0, 56fr) minmax(0, 44fr);
  gap: clamp(20px, 4vw, 64px);
  align-items: center;
}

html[data-style="zha"] .globe__stage {
  position: relative;
  justify-self: center;
  width: min(520px, 100%);
}

html[data-style="zha"] .globe__canvas {
  display: block;
  width: 100%;
  height: auto;
  cursor: grab;
  touch-action: pan-y;
}

html[data-style="zha"] .globe__canvas:active {
  cursor: grabbing;
}

html[data-style="zha"] .globe__side {
  display: grid;
  gap: clamp(16px, 2vw, 26px);
}

html[data-style="zha"] .globe__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

html[data-style="zha"] .globe__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: baseline;
  gap: 10px;
  width: 100%;
  padding: 12px 0;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 180ms ease;
}

html[data-style="zha"] .globe__item:hover,
html[data-style="zha"] .globe__item.is-on {
  color: #fff;
}

html[data-style="zha"] .globe__item.is-on .globe__city::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--signal, #c80810);
  margin-right: 8px;
  vertical-align: middle;
}

html[data-style="zha"] .globe__city {
  font-size: 14px;
}

html[data-style="zha"] .globe__country {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

html[data-style="zha"] .globe__coord {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.28);
  text-align: right;
}

html[data-style="zha"] .globe__card {
  display: grid;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

html[data-style="zha"] .globe__cover {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

html[data-style="zha"] .globe__title {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  color: #fff;
}

html[data-style="zha"] .globe__note {
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 900px) {
  html[data-style="zha"] .globe-panel__head,
  html[data-style="zha"] .globe {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 22px;
  }

  html[data-style="zha"] .globe__stage {
    width: min(420px, 100%);
  }

  html[data-style="zha"] .globe__item {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  html[data-style="zha"] .globe__coord {
    grid-column: 1 / -1;
    text-align: left;
  }
}


/* 鏍囬鍘熸潵琚?22/78 鏍呮牸鎸ゅ湪宸︽爮锛屾柇鎴愨€滀粠鍖椾含宸?/ 鍘傗€濄€傛暣灞忔敼鎴愬崟鏍忥紝
   鏍囬涓€琛屽埌搴曪紝瀵艰璺熷湪涓嬮潰銆?*/
html[data-style="zha"] .globe-panel__head {
  grid-template-columns: minmax(0, 1fr);
  row-gap: 14px;
  align-items: start;
}

html[data-style="zha"] .globe-panel__title {
  max-width: 30ch;
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  white-space: nowrap;
}

@media (max-width: 900px) {
  html[data-style="zha"] .globe-panel__title {
    white-space: normal;
  }
}


/* 3D 鍦扮悆锛歝anvas 涓婂彔 DOM 閽堣剼锛屾枃瀛楁案杩滄竻鏅板彲鐐广€?*/
html[data-style="zha"] .globe__stage {
  position: relative;
  aspect-ratio: 1 / 1;
}

html[data-style="zha"] .globe__canvas,
html[data-style="zha"] .globe__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: pan-y;
}

html[data-style="zha"] .globe__canvas {
  cursor: grab;
}

html[data-style="zha"] .globe__canvas:active {
  cursor: grabbing;
}

html[data-style="zha"] .globe__poster {
  border-radius: 50%;
  object-fit: cover;
  opacity: 0.9;
}

html[data-style="zha"] .globe__pin {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 9px 4px 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(11, 11, 12, 0.55);
  backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

html[data-style="zha"] .globe__pin i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal, #c80810);
  box-shadow: 0 0 0 3px rgba(200, 8, 16, 0.22);
}

html[data-style="zha"] .globe__pin:hover,
html[data-style="zha"] .globe__pin.is-on {
  background: rgba(200, 8, 16, 0.9);
  color: #fff;
  transform: translate(-50%, -50%) scale(1.04);
}

html[data-style="zha"] .globe__pin.is-on i {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}


/* 鍦扮悆浠帴鎵嬩簡鍘熸潵 Bandung 閭ｄ竴灞忥細鏍囬銆佽鏄庛€佹暟瀛楅兘鎼繘鏉ワ紝鏁板瓧鎺掑湪鏈€涓嬮潰銆?*/
html[data-style="zha"] .globe-panel__note {
  margin: 0;
  max-width: 62ch;
  font-size: clamp(0.95rem, 1.15vw, 1.05rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.72);
}

html[data-style="zha"] .globe-panel__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: clamp(16px, 3vw, 48px);
  margin-top: clamp(34px, 5vh, 64px);
  padding-top: clamp(18px, 3vh, 28px);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

html[data-style="zha"] .globe-panel__stats .stat__n {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.05;
}

html[data-style="zha"] .globe-panel__stats .stat__l {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 900px) {
  html[data-style="zha"] .globe-panel__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 22px;
  }
}

/* =========================================================================
   2026-10-29 · 基于线上版本 6ae2427c 的两处定点改动（DOM 一行未动）
   ① 地球仪提亮变浅：只作用于 .globe__canvas
   ② 「为什么是爱奥尼」换成新版式：小标签在左、大字在右、3×2 细线分格
   ========================================================================= */

/* ① 地球仪 */
.globe__canvas {
  filter: brightness(1.28) saturate(1.06) contrast(0.96);
}

/* ② 为什么是爱奥尼 —— 换装 */
html[data-style="zha"] .why .why__head,
.why .why__head {
  display: grid;
  grid-template-columns: minmax(0, 22fr) minmax(0, 78fr);
  column-gap: clamp(24px, 5vw, 80px);
  align-items: start;
  margin-bottom: clamp(30px, 4.4vw, 60px);
}

.why .why__title {
  margin: 6px 0 0;
  font-size: 17px;
  line-height: 20px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.8);
  display: block;
}

.why .why__title .head__rule {
  display: none;
}

.why .why__lead {
  margin: 0;
  max-width: 24ch;
  font-size: clamp(2.1rem, 3.9vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 400;
  text-wrap: balance;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 62%, rgba(255, 255, 255, 0.72) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.why .why__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  list-style: none;
  margin: clamp(30px, 4.4vw, 64px) 0 0;
  padding: 0;
  border: 0;
}

.why .why__grid::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.14) 46%, transparent 100%);
}

.why .why__item {
  position: relative;
  margin: 0;
  padding: clamp(26px, 3vw, 46px) clamp(18px, 2vw, 36px) clamp(30px, 3.4vw, 50px) 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background: none;
  overflow: hidden;
  isolation: isolate;
}

.why .why__item:nth-child(3n) {
  border-right: 0;
  padding-right: 0;
}

.why .why__item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(200, 8, 16, 0.16) 0%, rgba(200, 8, 16, 0.05) 34%, transparent 62%);
  opacity: 0;
  transition: opacity 420ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
}

.why .why__item:hover::before {
  opacity: 1;
}

.why .why__n {
  display: block;
  font-size: 14px;
  letter-spacing: 0.16em;
  margin-bottom: clamp(16px, 2vw, 26px);
  background: linear-gradient(180deg, #ff3b40 0%, rgba(255, 90, 90, 0.55) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.why .why__h {
  margin: 0 0 10px;
  font-size: clamp(1.15rem, 1.55vw, 1.4rem);
  line-height: 1.28;
  letter-spacing: -0.015em;
  font-weight: 500;
  color: #fff;
}

.why .why__b {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.56);
  max-width: 32ch;
}

.why .why__item:hover .why__b {
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 900px) {
  .why .why__head {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 12px;
  }

  .why .why__lead {
    font-size: clamp(1.7rem, 7vw, 2.3rem);
  }

  .why .why__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .why .why__item {
    border-right: 0;
    padding-right: 0;
  }
}

/* 加强：线上那版对 .why__lead / .why__n 有更具体的选择器，这里提高优先级 */
html[data-style="zha"] .why .why__lead,
html[data-style="zha"] .panel .why__lead {
  font-size: clamp(2.1rem, 3.9vw, 3.5rem) !important;
  line-height: 1.06 !important;
  letter-spacing: -0.03em !important;
  font-weight: 400 !important;
  max-width: 24ch !important;
  margin: 0 !important;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 62%, rgba(255, 255, 255, 0.72) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

html[data-style="zha"] .why .why__title,
html[data-style="zha"] .panel .why__title {
  font-size: 17px !important;
  line-height: 20px !important;
  font-weight: 400 !important;
  letter-spacing: -0.01em !important;
  color: rgba(255, 255, 255, 0.8) !important;
  margin: 6px 0 0 !important;
}

html[data-style="zha"] .why .why__n {
  font-size: 14px !important;
  letter-spacing: 0.16em !important;
  background: linear-gradient(180deg, #ff3b40 0%, rgba(255, 90, 90, 0.55) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

@media (max-width: 900px) {
  html[data-style="zha"] .why .why__lead {
    font-size: clamp(1.7rem, 7vw, 2.3rem) !important;
  }
}



/* =========================================================================
   2026-10-29 · 第二批定点改动（仍为纯 CSS，DOM 不改）
   T1 首屏：背景图铺满整屏（宽屏也顶到两边）+ 文字往左靠但留边距
   T2 左上角 logo：换成纯文字 IONIC，字号略大
   ========================================================================= */

/* T1-a 让首屏跳出内容栏的左右留白，图片贴到视口两边 */
.panel:first-child .hero-monument {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  min-height: 100svh !important;
}

/* T1-b 图片铺满，裁切居中 */
.panel:first-child .hero-plate,
.panel:first-child .hero-plate__frame {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: 50% 50% !important;
}

/* T1-c 文字往左靠，但仍与屏幕边缘保持距离 */
.panel:first-child .hero-monument__stage {
  left: clamp(24px, 2.2vw, 48px) !important;
  bottom: clamp(40px, 7vh, 92px) !important;
  width: min(52ch, 54%) !important;
}

.panel:first-child .hero-monument__sentence {
  font-size: clamp(1.9rem, 3vw, 3.1rem) !important;
  line-height: 1.14 !important;
}

@media (max-width: 900px) {
  .panel:first-child .hero-monument__stage {
    left: 20px !important;
    width: auto !important;
    right: 20px;
    bottom: 28px !important;
  }
}

/* T2 左上角 logo：隐藏图片，换成文字 IONIC（链接、跳转不变） */
.brand {
  display: inline-flex !important;
  align-items: center;
  gap: 0;
}

.brand .brand__logo {
  display: none !important;
}

.brand::after {
  content: "IONIC";
  display: block;
  font-family: var(--font-display, "Cabinet Grotesk", system-ui, sans-serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  color: #ffffff;
}

@media (max-width: 900px) {
  .brand::after {
    font-size: 22px;
  }
}


/* =========================================================================
   2026-10-29 · 第三批（纯 CSS）
   T3 删掉每屏顶部的小字（02 — 去哪里 / 5 个入口 那一行）
   T4 屏与屏之间太松：收紧上下内边距，并加一条分隔细线做设计
   ========================================================================= */

/* T3 */
.panel > .frame {
  display: none !important;
}

/* T4 收紧面板上下留白 */
.panel {
  padding-top: clamp(56px, 6vh, 84px) !important;
  padding-bottom: clamp(56px, 6vh, 84px) !important;
}

/* 面板之间加一条从透明到白的细线，收紧后仍有节奏 */
.panel + .panel::before {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16) 18%, rgba(255, 255, 255, 0.16) 82%, transparent);
}

/* 首屏不要这条线 */
.panel:first-child::before {
  display: none !important;
}

/* 段落内部的间距也稍微收一点，避免收紧后显得挤 */
.panel .panel__body > *:first-child {
  margin-top: 0;
}

@media (max-width: 900px) {
  .panel {
    padding-top: 44px !important;
    padding-bottom: 44px !important;
  }
}


/* T3 修正：小字那一行在 .panel__inner 里（不是 .panel 的直接子元素） */
.panel__inner > .frame,
.panel .frame__label,
.panel .frame__count {
  display: none !important;
}


/* =========================================================================
   T5 删掉「五个入口」那一屏（导航已经覆盖同样的功能，重复）
   纯 CSS：把含 .entries 的面板整块从布局里去掉，不留空隙
   ========================================================================= */
.panel:has(.entries) {
  display: none !important;
}


/* T6：贴图换成白天影像后，滤镜相应减轻 */
.globe__canvas {
  filter: brightness(1.08) saturate(1.05) contrast(1.02) !important;
}

/* T8：北京原点脉冲光圈（构图固定使北京在画面正中）+ 球体柔光 */
.globe__stage {
  position: relative;
}

.globe__stage::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 120, 90, 0.95) 0%, rgba(255, 90, 60, 0.55) 45%, rgba(255, 90, 60, 0) 70%);
  box-shadow: 0 0 0 2px rgba(255, 120, 90, 0.55), 0 0 22px 6px rgba(255, 70, 40, 0.35);
  animation: bj-pulse 2.6s ease-out infinite;
  pointer-events: none;
  z-index: 3;
}

@keyframes bj-pulse {
  0%   { transform: scale(0.7); opacity: 0.95; }
  60%  { transform: scale(1.9); opacity: 0.25; }
  100% { transform: scale(2.4); opacity: 0; }
}

.globe__stage::before {
  content: "";
  position: absolute;
  inset: -6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 140, 210, 0.18), transparent 68%);
  pointer-events: none;
  z-index: 0;
}


/* T8-b 第一步：点位放大、加描边，方便核对位置（线已隐藏） */
.globe__pin {
  background: rgba(8, 10, 14, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.32) !important;
  font-size: 12px !important;
  padding: 5px 11px !important;
}
.globe__pin i {
  width: 7px !important;
  height: 7px !important;
  box-shadow: 0 0 0 3px rgba(200, 8, 16, 0.28);
}
@keyframes t8b-pins { from { opacity: 1; } to { opacity: 1; } }
.globe__pin { animation: t8b-pins 1ms; }

/* T9 关于我们：三级页面内容并入本页后的排版 */
.about-inline {
  margin-top: clamp(48px, 7vw, 96px);
  display: block;
}

.about-part {
  padding-top: clamp(48px, 6vw, 84px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: clamp(48px, 6vw, 84px);
}

.about-part:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.about-part .spage__inner {
  padding: 0 !important;
}

/* 关掉三级页面入口：关于我们下的四个导航子项 */
.nav__sub a[href="/about/profile"],
.nav__sub a[href="/about/advantages"],
.nav__sub a[href="/about/culture"],
.nav__sub a[href="/about/history"] {
  display: none !important;
}


/* T10 联系我们：搬过来的客户群组 */
.contact-clients {
  margin-top: clamp(48px, 6vw, 88px);
  padding-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-clients__title {
  margin-bottom: clamp(20px, 3vw, 32px);
}

.contact-clients .sblock {
  margin-top: clamp(18px, 2.4vw, 28px);
}


/* T10-b 联系我们：内容整体顶上来（原来上面空了 ~230px） */
.panel:has(.contactcard) {
  padding-top: 24px !important;
}

.panel .contactcard {
  margin-top: 8px !important;
}

@media (max-width: 900px) {
  .panel:has(.contactcard) {
    padding-top: 16px !important;
  }
}


/* T11 新闻列表悬停预览 */
.news-hover-preview {
  position: fixed;
  left: 0;
  top: 0;
  width: 300px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  pointer-events: none;
  z-index: 90;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 160ms ease;
}

.news-hover-preview.is-on {
  opacity: 1;
}


/* 修正 T2：IONIC 文字只替换**顶部** logo，页脚保持原来的 brand__mark 不动 */
.brand::after {
  content: none !important;
}

.brand .brand__logo {
  display: block !important;
}

header .brand::after {
  content: "IONIC" !important;
  display: block;
  font-family: var(--font-display, "Cabinet Grotesk", system-ui, sans-serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  color: #ffffff;
}

header .brand .brand__logo {
  display: none !important;
}

@media (max-width: 900px) {
  header .brand::after {
    font-size: 22px;
  }
}


/* 顶部 IONIC 顶到最左边，只留一点距离（宽屏时原来被 1700px 居中框推到很右） */
header .site-header__inner {
  max-width: none !important;
  width: 100% !important;
  padding-left: clamp(16px, 1.1vw, 28px) !important;
  padding-right: clamp(16px, 1.1vw, 28px) !important;
}


/* T15「为什么是爱奥尼」：白模照片做半透明背景 + 六格全部有线 */
.panel:has(.why) {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.panel:has(.why)::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/img/why-bg-v2.webp");
  background-size: cover;
  background-position: center 40%;
  opacity: 0.26;
  filter: contrast(1.05);
  pointer-events: none;
  z-index: 0;
}

/* 让文字压在照片上面，并加一层薄暗保证可读 */
.panel:has(.why) .panel__body {
  position: relative;
  z-index: 1;
}

.panel:has(.why) .why::before {
  background: linear-gradient(180deg, rgba(8, 9, 11, 0.55) 0%, rgba(8, 9, 11, 0.25) 45%, rgba(8, 9, 11, 0.6) 100%);
  border-radius: 0;
}

/* 六格：每格都有线（上/左），容器补右/下 → 整张网完整，不留缺口 */
.why .why__grid {
  border-top: 0 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.14) !important;
}

.why .why__grid::before {
  display: none !important;
}

.why .why__item {
  border: 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.14) !important;
  margin: -1px 0 0 -1px !important;
  padding: clamp(24px, 2.6vw, 40px) clamp(16px, 1.8vw, 30px) !important;
  background: rgba(10, 11, 13, 0.42);
  backdrop-filter: blur(2px);
}

.why .why__item::before {
  inset: -1px 0 0 -1px;
}

.why .why__item:nth-child(3n) {
  border-right: 0 !important;
  padding-right: clamp(16px, 1.8vw, 30px) !important;
}

@media (max-width: 900px) {
  .why .why__grid {
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
  }
  .why .why__item {
    border-left: 0 !important;
    margin: 0 !important;
  }
}


/* T16 精选作品轮播（中间大图 + 两侧露出） */
.wk-carousel {
  position: relative;
  width: 100%;
  margin-top: clamp(20px, 3vw, 42px);
}

.wk-stage {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.wk-track {
  display: flex;
  align-items: center;
  will-change: transform;
  transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.wk-slide {
  flex: 0 0 auto;
  margin: 0;
  opacity: 0.25;
  transition: opacity 520ms ease, transform 520ms ease;
  transform: scale(0.94);
}

.wk-slide.is-on {
  transform: scale(1);
}

.wk-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.wk-arrow {
  position: absolute;
  top: 42%;
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(240, 240, 240, 0.9);
  color: #111;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
}

.wk-arrow:hover {
  background: #fff;
  transform: scale(1.06);
}

.wk-prev { left: 1.6%; }
.wk-next { right: 1.6%; }

.wk-cap {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

.wk-cap__n {
  color: #ff3b40;
  letter-spacing: 0.12em;
}

@media (max-width: 900px) {
  .wk-arrow { width: 38px; height: 38px; font-size: 15px; }
}


/* T16 修正：轮播按整幅宽度排，别溢出到视口外 */
.wk-carousel {
  width: 100% !important;
  max-width: 100% !important;
  margin-top: clamp(18px, 2.4vw, 36px);
}

.wk-stage {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}


/* T16 修正二：轮播宽度按视口算，避免被 panel__body 的 1676px 撑出屏幕 */
.wk-carousel {
  width: min(100%, calc(100vw - 96px)) !important;
  max-width: calc(100vw - 96px) !important;
  margin-left: 0 !important;
}

.wk-stage {
  width: 100% !important;
  max-width: 100% !important;
}

@media (max-width: 900px) {
  .wk-carousel {
    width: calc(100vw - 40px) !important;
    max-width: calc(100vw - 40px) !important;
  }
}


/* ===== T17 精选作品中置轮播（精致版） ===== */
.wk-carousel {
  position: relative;
  width: min(100%, calc(100vw - 96px));
  max-width: calc(100vw - 96px);
  margin: clamp(18px, 2.4vw, 36px) 0 0;
}

.wk-stage { position: relative; width: 100%; overflow: hidden; }

.wk-track {
  display: flex;
  align-items: center;
  will-change: transform;
  transition: transform 680ms cubic-bezier(0.22, 1, 0.36, 1);
}

.wk-slide {
  flex: 0 0 auto;
  margin: 0;
  opacity: calc(1 - var(--dd, 1) * 0.38);
  transform: scale(calc(1 - var(--dd, 1) * 0.045));
  transition: opacity 520ms ease, transform 680ms cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
}

.wk-slide.is-on { cursor: default; }

.wk-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 1.9 / 1;
  object-fit: cover;
  background: #111;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.wk-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 46px;
  height: 46px;
  margin-top: -46px;
  border: 0;
  border-radius: 50%;
  background: rgba(236, 236, 236, 0.92);
  cursor: pointer;
  transition: transform 220ms ease, background 220ms ease;
}

.wk-arrow span { position: absolute; inset: 0; }

.wk-arrow span::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  border-left: 1.6px solid #14161a;
  border-bottom: 1.6px solid #14161a;
  transform: translate(-40%, -50%) rotate(45deg);
}

.wk-next span::before { transform: translate(-60%, -50%) rotate(-135deg); }

.wk-arrow:hover { background: #fff; transform: scale(1.07); }

.wk-prev { left: 1.4%; }
.wk-next { right: 1.4%; }

.wk-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 2vw, 34px);
  margin-top: clamp(16px, 1.8vw, 26px);
}

.wk-meta {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: #ff3b40;
  font-size: 12.5px;
  letter-spacing: 0.1em;
}

.wk-sep { width: 16px; height: 1px; background: rgba(255, 255, 255, 0.28); transform: translateY(-3px); }
.wk-total { color: rgba(255, 255, 255, 0.4); }

.wk-text h3 {
  margin: 0;
  font-size: clamp(15px, 1.15vw, 19px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #f3efe6;
}

.wk-text p {
  margin: 4px 0 0;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.42);
}

.wk-title.is-in, .wk-cat.is-in { animation: wk-fade 420ms cubic-bezier(0.22, 1, 0.36, 1) both; }

@keyframes wk-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.wk-dots { display: flex; gap: 7px; align-items: center; }

.wk-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: background 240ms ease, transform 240ms ease;
}

.wk-dot.is-on { background: #ff3b40; transform: scale(1.35); }

@media (max-width: 900px) {
  .wk-carousel { width: calc(100vw - 40px); max-width: calc(100vw - 40px); }
  .wk-arrow { width: 38px; height: 38px; margin-top: -38px; }
  .wk-bar { grid-template-columns: auto minmax(0, 1fr); row-gap: 10px; }
  .wk-dots { grid-column: 1 / -1; }
}


/* ===== T18 精选作品：丝路视觉 DIGITAL 版式 ===== */
.wk-sec {
  width: 100%;
  margin-top: clamp(10px, 1.6vw, 24px);
}

.wk-head {
  text-align: center;
  padding: clamp(8px, 1.4vw, 20px) 0 clamp(16px, 2.2vw, 34px);
}

.wk-kicker {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: clamp(8px, 1.2vw, 18px);
}

.wk-big {
  margin: 0;
  font-size: clamp(38px, 5.6vw, 76px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #fff;
}

.wk-stage-wrap {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.wk-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.wk-track {
  display: flex;
  align-items: center;
  will-change: transform;
  transition: transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

.wk-slide {
  flex: 0 0 auto;
  margin: 0;
  opacity: calc(1 - var(--dd, 1) * 0.34);
  transition: opacity 560ms ease;
  cursor: pointer;
}

.wk-slide.is-on { cursor: default; }

.wk-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 1.72 / 1;
  object-fit: cover;
  background: #14171a;
}

.wk-arrow {
  position: absolute;
  top: 50%;
  z-index: 6;
  width: 42px;
  height: 42px;
  margin-top: -21px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(20, 22, 25, 0.25);
  cursor: pointer;
  transition: background 220ms ease, border-color 220ms ease;
}

.wk-arrow span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-left: 1.4px solid #fff;
  border-bottom: 1.4px solid #fff;
  transform: translate(-40%, -50%) rotate(45deg);
}

.wk-next span { transform: translate(-60%, -50%) rotate(-135deg); }

.wk-arrow:hover { background: rgba(255, 255, 255, 0.16); border-color: #fff; }

.wk-prev { left: clamp(10px, 4vw, 64px); }
.wk-next { right: clamp(10px, 4vw, 64px); }

.wk-more {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 3vw, 46px);
  transform: translateX(-50%);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 26px;
  border-radius: 999px;
  background: #d8232a;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 200ms ease, transform 200ms ease;
}

.wk-more:hover { background: #ef2c33; transform: translateX(-50%) scale(1.04); }

.wk-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(20px, 4vw, 60px);
  margin-top: clamp(22px, 2.6vw, 40px);
}

.wk-title {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}

.wk-title.is-in { animation: wk-fade 420ms cubic-bezier(0.22, 1, 0.36, 1) both; }

@keyframes wk-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.wk-lead {
  margin: 0 0 8px;
  max-width: 62ch;
  font-size: 12.5px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.55);
}

.wk-note {
  margin: 0;
  max-width: 62ch;
  font-size: 12.5px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.35);
}

.wk-foot__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
}

.wk-slash {
  width: 44px;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
}

.wk-total { color: rgba(255, 255, 255, 0.45); }

@media (max-width: 900px) {
  .wk-foot { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .wk-arrow { width: 34px; height: 34px; margin-top: -17px; }
  .wk-more { height: 32px; padding: 0 18px; font-size: 12px; }
}



/* T18-b 精选作品：整屏按图二排布（小标签→大字→满幅轮播→大标题说明），一屏正好放下 */
.panel:has(.wk-sec) {
  min-height: 100svh !important;
  display: flex !important;
  align-items: center !important;
  padding-top: clamp(78px, 8.5vh, 104px) !important;
  padding-bottom: clamp(26px, 3.5vh, 48px) !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

.panel:has(.wk-sec) .panel__ghost,
.panel:has(.wk-sec) .shell-rules,
.panel:has(.wk-sec) .frame {
  display: none !important;
}

.panel:has(.wk-sec) .panel__inner,
.panel:has(.wk-sec) .panel__body {
  width: 100% !important;
  max-width: none !important;
  overflow: visible !important;
}

.wk-sec { margin: 0 !important; }

.wk-head { padding: clamp(4px, 1vw, 14px) 0 clamp(14px, 2vw, 26px) !important; }

.wk-stage-wrap { margin-top: 0 !important; }

.wk-slide img {
  height: clamp(260px, 46vh, 520px) !important;
  aspect-ratio: auto !important;
}

.wk-foot { margin-top: clamp(16px, 2vw, 30px) !important; }

@media (max-height: 720px) {
  .wk-slide img { height: clamp(220px, 40vh, 380px) !important; }
  .wk-big { font-size: clamp(30px, 4.4vw, 54px) !important; }
}


/* T18-c 把这一屏收干净：只留 小标签+大字+满幅轮播+标题说明，一屏正好 100vh
   原来那套图版网格和两段视频一起收起（视频按甲方"先不动"另行安排） */
.panel:has(.wk-sec) .work-wrap {
  display: none !important;
}

.panel:has(.wk-sec) {
  height: 100svh !important;
  min-height: 100svh !important;
  max-height: 100svh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding-top: clamp(70px, 8vh, 96px) !important;
  padding-bottom: clamp(22px, 3vh, 40px) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.panel:has(.wk-sec) .panel__inner {
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
}

.panel:has(.wk-sec) .panel__body {
  width: 100% !important;
}

.wk-sec {
  width: 100% !important;
}

.wk-kicker {
  display: block !important;
}

.wk-slide img {
  height: min(46vh, 470px) !important;
}


/* T18-d 收掉原 .reveal 容器占位，让整屏内容真正居中 */
.panel:has(.wk-sec) .reveal {
  display: none !important;
}

.panel:has(.wk-sec) .panel__body {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
}


/* T20 why 屏：彩色高清背景铺满整屏 */
.panel:has(.why) {
  height: 100svh !important;
  min-height: 100svh !important;
  max-height: 100svh !important;
  display: flex !important;
  align-items: center !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  overflow: hidden !important;
}

.panel:has(.why) .panel__inner,
.panel:has(.why) .panel__body {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  display: flex !important;
  align-items: center !important;
}

.panel:has(.why) .reveal {
  width: 100% !important;
}

.panel:has(.why)::after {
  inset: 0 !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  opacity: 0.62 !important;
  filter: none !important;
}

.panel:has(.why) .why::before {
  background: linear-gradient(180deg, rgba(6, 7, 9, 0.72) 0%, rgba(6, 7, 9, 0.42) 40%, rgba(6, 7, 9, 0.78) 100%) !important;
}


/* T21 精选作品轮播：画面按 16:9，不拉伸不裁切（等比缩放） */
.wk-slide img {
  height: auto !important;
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: contain !important;
  background: #0b0c0e !important;
}


/* T22 轮播画面统一 16:9，全部裁好铺满，不留黑边 */
.wk-slide img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: cover !important;
  background: none !important;
}

/* 两侧邻居宽度一致，视觉对称 */
.wk-track { align-items: center !important; }


/* T23 箭头用 SVG 画，干净对称，不再用边框拼角 */
.wk-arrow span { display: none !important; }

.wk-arrow {
  background-color: rgba(20, 22, 25, 0.28) !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: 15px 15px !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
}

.wk-arrow.wk-next {
  background-image: url("data:image/svg+xml;charset=utf-8,<svg xmlns=''http://www.w3.org/2000/svg'' width=''16'' height=''16'' viewBox=''0 0 16 16''><path d=''M6 3l5 5-5 5'' fill=''none'' stroke=''%23fff'' stroke-width=''1.4'' stroke-linecap=''round'' stroke-linejoin=''round''/></svg>") !important;
}

.wk-arrow.wk-prev {
  background-image: url("data:image/svg+xml;charset=utf-8,<svg xmlns=''http://www.w3.org/2000/svg'' width=''16'' height=''16'' viewBox=''0 0 16 16''><path d=''M10 3L5 8l5 5'' fill=''none'' stroke=''%23fff'' stroke-width=''1.4'' stroke-linecap=''round'' stroke-linejoin=''round''/></svg>") !important;
}

.wk-arrow:hover {
  background-color: rgba(255, 255, 255, 0.16) !important;
  border-color: #fff !important;
}


/* T25 箭头：SVG 背景图（用 encodeURIComponent 生成，避免引号被转义弄坏） */
.wk-arrow span { display: none !important; }
.wk-arrow {
  background-color: rgba(20, 22, 25, 0.32) !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: 15px 15px !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
}
.wk-arrow.wk-next { background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'16'%20height%3D'16'%20viewBox%3D'0%200%2016%2016'%3E%3Cpath%20d%3D'M6%203l5%205-5%205'%20fill%3D'none'%20stroke%3D'%23ffffff'%20stroke-width%3D'1.5'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%2F%3E%3C%2Fsvg%3E") !important; }
.wk-arrow.wk-prev { background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'16'%20height%3D'16'%20viewBox%3D'0%200%2016%2016'%3E%3Cpath%20d%3D'M10%203L5%208l5%205'%20fill%3D'none'%20stroke%3D'%23ffffff'%20stroke-width%3D'1.5'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%2F%3E%3C%2Fsvg%3E") !important; }
.wk-arrow:hover { background-color: rgba(255, 255, 255, 0.18) !important; border-color: #fff !important; }

/* T25 页脚标题：取消可能存在的裁切，行高放宽，颜色提亮 */
.site-footer .foot__h {
  line-height: 1.35 !important;
  overflow: visible !important;
  clip-path: none !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  color: rgba(255, 255, 255, 0.42) !important;
}
.site-footer .foot__h > * { transform: none !important; }


/* ===== T26 机械工业模型页：按丝路视觉 chanye_cn 的排版 + WOW 动效 ===== */
.ind-page {
  padding-bottom: clamp(60px, 8vw, 120px);
}

.ind-head {
  padding: clamp(18px, 3vw, 48px) 0 clamp(26px, 4vw, 64px);
}

.ind-kicker {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: clamp(10px, 1.6vw, 20px);
}

.ind-title {
  margin: 0 0 clamp(14px, 2vw, 26px);
  font-size: clamp(34px, 4.4vw, 62px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #fff;
}

.ind-lead {
  margin: 0 0 clamp(18px, 2.4vw, 32px);
  max-width: 62ch;
  font-size: 13.5px;
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.55);
}

.ind-rule {
  display: block;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
}

.ind-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: clamp(16px, 2vw, 28px) 0 clamp(28px, 4vw, 56px);
}

.ind-chip {
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 220ms ease, color 220ms ease, background 220ms ease;
}

.ind-chip:hover { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.ind-chip.is-on { border-color: #d8232a; background: rgba(216, 35, 42, 0.14); color: #fff; }

.ind-row {
  display: grid;
  grid-template-columns: minmax(0, 62fr) minmax(0, 38fr);
  gap: clamp(20px, 4vw, 72px);
  align-items: center;
  padding: clamp(28px, 4.4vw, 72px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ind-row.is-right {
  grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
}

.ind-row.is-right .ind-row__media { order: 2; }

.ind-row__media {
  position: relative;
  overflow: hidden;
  background: #101215;
}

.ind-row__media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.ind-row__body {
  padding-left: clamp(0px, 1vw, 16px);
}

.ind-row__n {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  color: #d8232a;
  margin-bottom: clamp(10px, 1.4vw, 18px);
}

.ind-row__t {
  margin: 0 0 12px;
  font-size: clamp(20px, 2.1vw, 30px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: #fff;
}

.ind-row__c {
  margin: 0 0 clamp(14px, 1.8vw, 22px);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
}

.ind-row__rule {
  display: block;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
  margin-bottom: clamp(14px, 1.8vw, 22px);
}

.ind-row__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 3px;
  transition: color 200ms ease, border-color 200ms ease;
}

.ind-row__more:hover { color: #fff; border-color: #d8232a; }
.ind-row__more i { font-style: normal; color: #d8232a; }

/* —— WOW 复刻：三个关键帧照抄源站 —— */
.wow { opacity: 0; }

.wow.is-in { animation-duration: 1s; animation-fill-mode: both; animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }

.wow.is-in.fadeInUpSmall { animation-name: fadeInUpSmall; }
.wow.is-in.fadeInWidth { animation-name: fadeInWidth; }
.wow.is-in.fadeInHeight { animation-name: fadeInHeight; }

@keyframes fadeInUpSmall {
  0% { opacity: 0; transform: translate3d(0, 40px, 0); }
  100% { opacity: 1; transform: translateZ(0); }
}

@keyframes fadeInWidth {
  0% { width: 0; }
  100% { width: 100%; }
}

@keyframes fadeInHeight {
  0% { height: 0; }
  100% { height: 100%; }
}

.wow.is-in.fadeInWidth { width: 100%; }
.wow.is-in.fadeInHeight { height: 100%; }

@media (max-width: 900px) {
  .ind-row, .ind-row.is-right { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .ind-row.is-right .ind-row__media { order: 0; }
}


/* T26-b 修正：fadeInHeight 在"高度自适应"的元素上无效（0→100% 无从动画），
   改成同参数、同时长的 clip-path 擦除，视觉等价于源站的高度展开 */
.ind-row__media.wow { opacity: 1; height: 100%; }

.ind-row__media.fadeInHeight { clip-path: inset(0 0 100% 0); }

.ind-row__media.fadeInHeight.is-in {
  animation-name: wipeDown;
  animation-duration: 1s;
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  clip-path: inset(0);
}


}

/* 文字块按 fadeInUpSmall 的节奏；media 不受 .wow 的 opacity 影响 */
.ind-row__body .wow { opacity: 0; }
.ind-row__body .wow.is-in { opacity: 1; }


/* T26-c 修正：clip-path 会让元素被判为"不可见"，IntersectionObserver 永远不触发。
   改用 transform: scaleY(0) → 1（视觉上同样是自上而下展开），不影响可见性判定 */
.ind-row__media.fadeInHeight {
  clip-path: none !important;
  transform-origin: top center;
  transform: scaleY(0);
  opacity: 1 !important;
}

.ind-row__media.fadeInHeight.is-in {
  animation-name: wipeDown !important;
  animation-duration: 1s;
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes wipeDown {
  0% { transform: scaleY(0); }
  100% { transform: scaleY(1); }
}


/* T26-d 工业页：隐藏旧标题和"下一页"，避免与新页头重复（React 重渲染也不受影响） */
body:has(.ind-page) .spage__head,
body:has(.ind-page) .spage__next,
body:has(.ind-page) .gallery,
body:has(.ind-page) .crumb {
  display: none !important;
}

/* T26-e 顶部收齐：新页头贴着导航，四步说明归到页头里 */
body:has(.ind-page) .spage__inner { padding-top: 0 !important; }
.ind-page { padding-top: clamp(18px, 2.4vw, 36px); }
.ind-head .hubmethod { border-top: 1px solid rgba(255,255,255,.1); padding-top: clamp(16px,2vw,28px); }



/* ===== T27 工业页：一大四小 + 悬停变灰 ===== */
.ind-list { display: block; }

.ind-block {
  display: block;
  padding: clamp(26px, 3.6vw, 58px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ind-big {
  position: relative;
  display: block;
  overflow: hidden;
  background: #101215;
  text-decoration: none;
  transform-origin: top center;
}

.ind-big img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: filter 520ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* 悬停变灰（甲方要的第一个设计） */
.ind-big:hover img,
.ind-small:hover img {
  filter: grayscale(1) brightness(0.86);
  transform: scale(1.03);
}

.ind-big__cap {
  position: absolute;
  left: clamp(14px, 2.4vw, 40px);
  bottom: clamp(14px, 2.4vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.ind-big__cat {
  font-style: normal;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.72);
}

.ind-big__t {
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}

.ind-smalls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 20px);
  margin-top: clamp(10px, 1.2vw, 20px);
}

.ind-small {
  display: block;
  text-decoration: none;
}

.ind-small__pic {
  display: block;
  overflow: hidden;
  background: #101215;
}

.ind-small__pic img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: filter 520ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ind-small__t {
  display: block;
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
  transition: color 240ms ease;
}

.ind-small:hover .ind-small__t { color: #fff; }

@media (max-width: 900px) {
  .ind-smalls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* T27-b 大图用 scaleY 展开（白起始态改成 transform，不是 opacity），文字小图仍走 fadeInUpSmall */
.ind-big.wow {
  opacity: 1 !important;
  transform: scaleY(0);
  transform-origin: top center;
}

.ind-big.wow.is-in {
  animation-name: wipeDown !important;
  animation-duration: 1s;
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.ind-big .wow { opacity: 0; }
.ind-big .wow.is-in { opacity: 1; }


/* T28 悬停变灰：提高对比度，别压得太暗（甲方反馈"对比度太低"） */
.ind-big:hover img,
.ind-small:hover img {
  filter: grayscale(1) contrast(1.22) brightness(1.04) !important;
}

/* 未悬停时也带一点点对比，避免灰片发闷 */
.ind-big img,
.ind-small__pic img {
  filter: contrast(1.04);
}


/* T29 悬停效果改成"压暗"（照丝路视觉那一手）：保留颜色，整体变深，不再转灰度 */
.ind-big:hover img,
.ind-small:hover img {
  filter: grayscale(0) brightness(0.62) contrast(1.02) !important;
  transform: scale(1.02);
}

.ind-big img,
.ind-small__pic img {
  filter: brightness(1) contrast(1.02) !important;
  transition: filter 420ms cubic-bezier(0.22, 1, 0.36, 1), transform 620ms cubic-bezier(0.22, 1, 0.36, 1) !important;
}


/* ===== T30 地产建筑模型：只借版式，不抄气质 =====
   工业页 = 工业感：冷黑、红点、直角、16:9 通栏、等宽数字
   地产页 = 建筑感：暖黑、铜金、微圆角、3:2 大图、衬线标题、更轻的压暗 */

.ind-page.is-arch {
  --arch-accent: #c8a96e;
  --arch-ink: rgba(255, 255, 255, 0.92);
}

/* 页头：暖一点、衬线大标题、铜金细线 */
.ind-page.is-arch .ind-kicker {
  color: var(--arch-accent);
  letter-spacing: 0.22em;
  font-size: 11px;
}

.ind-page.is-arch .ind-title {
  font-family: "Songti SC", "Noto Serif SC", Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0.01em;
  font-size: clamp(38px, 5vw, 68px);
}

.ind-page.is-arch .ind-lead {
  color: rgba(255, 255, 255, 0.5);
  max-width: 54ch;
}

.ind-page.is-arch .ind-rule {
  background: linear-gradient(90deg, var(--arch-accent), rgba(200, 169, 110, 0.08));
  height: 1px;
}

/* 筛选：下划线式，不用方框 */
.ind-page.is-arch .ind-filter {
  gap: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 14px;
}

.ind-page.is-arch .ind-chip {
  border: 0;
  padding: 6px 0;
  background: none;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.08em;
  position: relative;
}

.ind-page.is-arch .ind-chip:hover { color: #fff; }

.ind-page.is-arch .ind-chip.is-on {
  border: 0;
  background: none;
  color: #fff;
}

.ind-page.is-arch .ind-chip.is-on::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -15px;
  height: 1px;
  background: var(--arch-accent);
}

/* 区块：留白更大，分隔线更细 */
.ind-page.is-arch .ind-block {
  padding: clamp(34px, 4.6vw, 78px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* 大图：3:2、微圆角、柔和投影 —— 建筑的画幅感 */
.ind-page.is-arch .ind-big {
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.ind-page.is-arch .ind-big img {
  aspect-ratio: 3 / 2;
}

/* 大图标题：衬线 + 铜金分类 + 自下而上的柔和渐变 */
.ind-page.is-arch .ind-big__cap {
  left: clamp(18px, 2.6vw, 46px);
  bottom: clamp(18px, 2.6vw, 42px);
  gap: 8px;
}

.ind-page.is-arch .ind-big::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0.62) 100%);
  pointer-events: none;
}

.ind-page.is-arch .ind-big__cat {
  color: var(--arch-accent);
  letter-spacing: 0.2em;
  font-size: 11px;
}

.ind-page.is-arch .ind-big__t {
  font-family: "Songti SC", "Noto Serif SC", Georgia, serif;
  font-weight: 500;
  letter-spacing: 0.01em;
  font-size: clamp(20px, 1.9vw, 30px);
}

/* 小图：4 列不变，但圆角 + 更淡的文字层级 */
.ind-page.is-arch .ind-smalls {
  gap: clamp(12px, 1.4vw, 24px);
  margin-top: clamp(12px, 1.4vw, 24px);
}

.ind-page.is-arch .ind-small__pic {
  border-radius: 2px;
  overflow: hidden;
}

.ind-page.is-arch .ind-small__t {
  font-family: "Songti SC", "Noto Serif SC", Georgia, serif;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.78);
}

.ind-page.is-arch .ind-small__c {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--arch-accent);
  opacity: 0.85;
}

/* 地产页的悬停更含蓄：压暗轻一些，靠一点点放大和铜金细边说话 */
.ind-page.is-arch .ind-big:hover img,
.ind-page.is-arch .ind-small:hover img {
  filter: grayscale(0) brightness(0.78) contrast(1.02) !important;
  transform: scale(1.025);
}

.ind-page.is-arch .ind-big:hover,
.ind-page.is-arch .ind-small:hover .ind-small__pic {
  box-shadow: inset 0 0 0 1px rgba(200, 169, 110, 0.55);
}

/* 工业页保持原样（红点/直角/16:9/.62 压暗），这里只补一句数字色 */
.ind-page.is-ind .ind-big__cat { color: rgba(255, 255, 255, 0.72); }

/* 修：关于我们下拉四个入口恢复显示（链接被运行时改成本页锚点） */
.nav__sub a[href^="/about/"] {
  display: flex !important;
}


/* 修：下拉里的链接 visibility 被基础样式设成 hidden，补回来 */
.nav__sub a,
.nav__sub-link {
  visibility: visible !important;
  color: rgba(255, 255, 255, 0.72) !important;
}

.nav__item[data-open="true"] .nav__sub a:hover,
.nav__sub a:hover {
  color: #fff !important;
}

.nav__item[data-open="true"] .nav__sub {
  visibility: visible !important;
}


/* 修：关于我们下拉改成纯链接（四个子页已并入本页，下拉留着只会出空框）
   —— 只隐藏"关于我们"这一项的下拉与其展开按钮，其它下拉不受影响 */
.nav__item:has(.nav__sub a[href^="/about/"]) .nav__sub,
.nav__item:has(.nav__sub a[href^="/about/"]) .nav__more,
.nav__item:has(.nav__sub a[href^="/about/"]) .nav__chev {
  display: none !important;
}



/* ===== 首帧遮旧（由脚本控制，脚本失败会自动解除，绝不会黑屏） ===== */
html.fp-home .panel .work-wrap,
html.fp-home .panel .sheet-aside { opacity: 0 !important; pointer-events: none !important; }

html.fp-cat .gallery,
html.fp-cat .spage__head,
html.fp-cat .spage__next,
html.fp-cat .hubmethod,
html.fp-cat .crumb { opacity: 0 !important; pointer-events: none !important; }


/* ===== T31 五大板块 + 悬停二级筛选 ===== */
.ind-subrow {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: -6px 0 clamp(20px, 2.6vw, 34px);
  padding: 10px 0 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
}

.ind-subrow[hidden] { display: none !important; }

.ind-subchip {
  border: 0;
  background: none;
  padding: 4px 0;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color 200ms ease, border-color 200ms ease;
}

.ind-subchip:hover { color: #fff; }

.ind-subchip.is-on {
  color: #fff;
  border-bottom-color: #d8232a;
}

.ind-empty {
  padding: 40px 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
}


/* ===== 首屏图片升级后补一层压暗，保证白字可读（左重右轻，不破坏画面） ===== */
.panel:first-child .hero-plate::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 7, 9, 0.78) 0%, rgba(6, 7, 9, 0.52) 30%, rgba(6, 7, 9, 0.16) 58%, rgba(6, 7, 9, 0.04) 100%),
    linear-gradient(180deg, rgba(6, 7, 9, 0.42) 0%, rgba(6, 7, 9, 0.05) 34%, rgba(6, 7, 9, 0.30) 100%);
}


/* 压暗层只压图片；文字保持原来的绝对定位，只把层级提上去 */
.panel:first-child .hero-monument__stage {
  z-index: 6 !important;
}



/* ===== 地球点位更清楚：字号加大、底色加深、加描边和投影 ===== */
.globe__pin {
  font-size: 13px !important;
  line-height: 1.2 !important;
  padding: 6px 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.38) !important;
  background: rgba(8, 10, 14, 0.86) !important;
  color: #fff !important;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  white-space: nowrap;
}

.globe__pin.is-on {
  border-color: #d8232a !important;
  background: rgba(24, 6, 8, 0.92) !important;
}

.globe__pin i {
  width: 8px !important;
  height: 8px !important;
  box-shadow: 0 0 0 3px rgba(216, 35, 42, 0.35) !important;
}

/* 右侧列表也放大一档，8 个城市读起来不挤 */
.globe__city {
  font-size: 14px !important;
}

.globe__country {
  font-size: 12px !important;
  opacity: 0.72;
}

@media (max-width: 900px) {
  .globe__pin { font-size: 12px !important; padding: 5px 9px !important; }
}


/* ===== 城市列表：八个城市放不下，改成"往下滑看更多" ===== */
.globe__list {
  max-height: clamp(200px, 32vh, 320px) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  padding-right: 10px !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.24) transparent;
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 26px), transparent 100%);
  mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 26px), transparent 100%);
}

.globe__list::-webkit-scrollbar { width: 4px; }
.globe__list::-webkit-scrollbar-track { background: transparent; }
.globe__list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.24);
  border-radius: 3px;
}
.globe__list::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.4); }

/* 每行稍微收一点高度，让首屏能看到 5 条 */
.globe__item {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

@media (max-width: 900px) {
  .globe__list { max-height: 38vh !important; }
}


/* 地球兜底图：WebGL 出问题时用静态地球顶上 */
.globe__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  clip-path: circle(50% at 50% 50%);
  z-index: 2;
}


/* 新闻动态：悬停出一级菜单（两个分类），父级不可点 */
.nav__item:hover > .nav__sub,
.nav__item[data-open="true"] > .nav__sub {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.nav__item > .nav__link[aria-haspopup="true"] { cursor: default; }


/* 每个案例一张照片：三列网格，点进去看详情 */
.ind-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 34px) clamp(16px, 1.8vw, 28px);
  margin-top: clamp(18px, 2.4vw, 32px);
}

.ind-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.ind-card__pic {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #101114;
}

.ind-card__pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 700ms cubic-bezier(.2,.6,.2,1), filter 400ms ease;
  filter: brightness(.94);
}

.ind-card:hover .ind-card__pic img {
  transform: scale(1.045);
  filter: brightness(.72);
}

.ind-card__cat {
  display: block;
  margin: 12px 0 4px;
  font-size: 11.5px;
  letter-spacing: .12em;
  color: rgba(255,255,255,.42);
  text-transform: uppercase;
}

.ind-card__t {
  display: block;
  font-size: 15px;
  line-height: 1.45;
  color: #f2f0ea;
}

.ind-card__more {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255,255,255,.5);
  border-bottom: 1px solid transparent;
  transition: color 250ms ease, border-color 250ms ease;
}

.ind-card:hover .ind-card__more {
  color: #fff;
  border-bottom-color: #d8232a;
}

@media (max-width: 1080px) { .ind-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ind-cards { grid-template-columns: 1fr; } }


/* 画质不动，只优化渲染：屏外不渲染、去掉会重绘的滤镜过渡 */
.ind-cards {
  content-visibility: auto;
}

.ind-card {
  content-visibility: auto;
  contain-intrinsic-size: 340px 460px;
  contain: layout style;
}

.ind-card__pic img {
  transition: transform 600ms cubic-bezier(.2,.6,.2,1);
  filter: none;
  backface-visibility: hidden;
}

.ind-card:hover .ind-card__pic img {
  transform: scale(1.035);
  filter: none;
}

.ind-card__more {
  transition: color 200ms ease;
}
.ind-card:hover .ind-card__more {
  border-bottom-color: transparent;
}


/* 目录页头部：交付航线抽象插画，让黑色区域有内容 */
.ind-head {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin: 0 0 clamp(26px, 3.2vw, 48px);
  padding: clamp(34px, 4.6vw, 74px) clamp(20px, 3.4vw, 56px) clamp(30px, 4vw, 62px);
  background: #08090b url(/assets/cat-hero.svg) right center / cover no-repeat;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.ind-head::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(6,7,9,.94) 0%, rgba(6,7,9,.72) 38%, rgba(6,7,9,.18) 74%, rgba(6,7,9,.05) 100%);
}

.ind-head .ind-kicker { color: rgba(255,255,255,.6); }
.ind-head .ind-title { font-size: clamp(30px, 3.6vw, 52px); letter-spacing: .01em; margin: 10px 0 14px; }
.ind-head .ind-lead { max-width: 46ch; color: rgba(255,255,255,.72); }
.ind-head .ind-rule { background: rgba(255,255,255,.28); }
.ind-head .hubmethod { margin-top: clamp(20px, 2.6vw, 34px) !important; }

@media (max-width: 720px) {
  .ind-head { background-position: 70% center; padding-top: 30px; }
  .ind-head::after { background: linear-gradient(180deg, rgba(6,7,9,.92) 0%, rgba(6,7,9,.72) 60%, rgba(6,7,9,.9) 100%); }
}

/* 地产建筑页用青铜金版本，和工业页的红色区分 */
.ind-page.is-arch .ind-head {
  background-image: url(/assets/cat-hero-arch.svg);
}

.ind-page.is-arch .ind-head .ind-kicker { color: rgba(200, 169, 110, 0.85); }
.ind-page.is-arch .ind-head .ind-title { font-family: "Songti SC", "SimSun", serif; letter-spacing: 0.06em; }
.ind-page.is-arch .ind-head .ind-rule { background: rgba(200, 169, 110, 0.5); }

/* 头部英文大字 */
.ind-head__word {
  display: block;
  font-size: clamp(38px, 6.4vw, 92px);
  line-height: 0.92;
  letter-spacing: 0.02em;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.14);
  margin: 0 0 6px;
  text-transform: uppercase;
  pointer-events: none;
}

.ind-page.is-arch .ind-head__word { color: rgba(200, 169, 110, 0.22); }

/* 插画只占标题区，别压到"一个模型怎么做出来"那块 */
.ind-head {
  background: #08090b !important;
}

.ind-head::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 74%;
  z-index: -2;
  background: #08090b url(/assets/cat-hero.svg) right center / cover no-repeat;
}

.ind-page.is-arch .ind-head::before {
  background-image: url(/assets/cat-hero-arch.svg);
}

.ind-head::after {
  height: 74% !important;
  z-index: -1;
}

.ind-head .hubmethod {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, rgba(8, 9, 11, 0) 0%, rgba(8, 9, 11, 0.92) 22%, #08090b 100%);
}

/* 数据可视化地球：隐藏原贴图球与 HTML 点位，改画布 */
.globe__stage.viz-on .globe__canvas,
.globe__stage.viz-on .globe__poster,
.globe__stage.viz-on .globe__pin {
  display: none !important;
}

.globe-viz {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.globe__stage {
  position: relative;
}

/* 旧版北京脉冲点（stage::after）——新版地球自带枢纽点，这里关掉 */
.globe__stage.viz-on::after {
  display: none !important;
}

.globe__stage.viz-on::before {
  opacity: 0.55;
}

/* 头部插画：底部渐隐，避免在没有"制作流程"块时被硬切一刀 */
.ind-head::after {
  background:
    linear-gradient(90deg, rgba(6, 7, 9, 0.94) 0%, rgba(6, 7, 9, 0.72) 34%, rgba(6, 7, 9, 0.16) 72%, rgba(6, 7, 9, 0.04) 100%),
    linear-gradient(180deg, rgba(8, 9, 11, 0) 0%, rgba(8, 9, 11, 0) 58%, rgba(8, 9, 11, 0.85) 88%, #08090b 100%);
}

/* 两页头部高度对齐，插画显示面积一致 */
.ind-head {
  min-height: clamp(360px, 34vw, 470px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* 插画带固定高度：两页显示面积完全一致 */
.ind-head::before {
  height: min(520px, 74%) !important;
}

.ind-head::after {
  height: min(520px, 74%) !important;
}

/* 精选作品：标题放大、项目名居中、底部小字删除 */
.wk-big {
  font-size: clamp(40px, 5.2vw, 76px) !important;
  line-height: 1.05 !important;
  letter-spacing: 0.01em;
}

.wk-foot {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 10px;
}

.wk-foot__main {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 10px;
  max-width: none !important;
}

.wk-title {
  text-align: center !important;
  font-size: clamp(26px, 3vw, 44px) !important;
  line-height: 1.2 !important;
  letter-spacing: 0.02em;
}

.wk-lead {
  text-align: center !important;
  margin: 0 auto !important;
}

/* 底部说明小字：删除 */
.wk-note {
  display: none !important;
}

.wk-foot {
  height: auto !important;
  padding-top: clamp(18px, 2vw, 28px) !important;
}

/* 项目名下面的说明小字也一并去掉，只留名字和序号 */
.wk-lead {
  display: none !important;
}

.wk-foot {
  gap: 6px;
}

.wk-foot__meta {
  margin-top: 6px;
}

/* 精选作品下方：两段视频并排，占半屏高 */
.wk-video {
  padding: 0 0 clamp(40px, 5vw, 80px);
  background: #08090b;
}

.wk-video__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.wk-video__item {
  position: relative;
  margin: 0;
  height: clamp(260px, 46vh, 520px);
  overflow: hidden;
  background: #0c0e11;
}

.wk-video__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.001);
  transition: transform 700ms cubic-bezier(.2, .6, .2, 1);
}

.wk-video__item:hover .wk-video__media {
  transform: scale(1.035);
}

@media (max-width: 900px) {
  .wk-video__grid { grid-template-columns: 1fr; gap: 8px; }
  .wk-video__item { height: clamp(200px, 32vh, 320px); }
}

/* 视频带超出页面容器，铺满整屏宽度 */
.wk-video {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  position: relative;
}

.wk-video__grid {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
}

html, body {
  overflow-x: hidden;
}

/* 视频按 16:9 完整显示，不再被裁切；两块并排正好占半屏高 */
.wk-video__item {
  height: auto !important;
  aspect-ratio: 16 / 9;
}

.wk-video__media {
  object-fit: cover;
  object-position: center;
}

@media (max-width: 900px) {
  .wk-video__item {
    height: auto !important;
    aspect-ratio: 16 / 9;
  }
}

/* 两个视频单独占一屏：满屏高、垂直居中 */
.wk-video {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: clamp(24px, 5vh, 64px) !important;
  padding-bottom: clamp(24px, 5vh, 64px) !important;
  box-sizing: border-box;
}

.wk-video__grid {
  width: 96vw !important;
  max-width: 96vw !important;
  gap: clamp(8px, 0.8vw, 16px) !important;
}

.wk-video__item {
  aspect-ratio: 16 / 9;
  height: auto;
}

@media (max-width: 900px) {
  .wk-video {
    min-height: auto;
    padding-top: 30px !important;
    padding-bottom: 30px !important;
  }
  .wk-video__grid { width: 100vw !important; max-width: 100vw !important; }
}
