/* ============================================================
   CAAM 承德 168 — Multi-page Build
   Layout / type cadence adapted from therefineryatdomino.com.
   Palette per CAAM CIS brand book:
     · #C3CEDA Misty Blue / #0C4160 Midnight / #071330 Dark Blue
     · #EFEBE9 Cream paper / #152D2E Ebony text
   Type: Microsoft JhengHei (ZH) + Libre Franklin (EN)
   Visual rules: Sharp 0-radius rectangles, generous whitespace
   ============================================================ */

/* ---------- 1. Tokens — CAAM CIS palette (per CIS_HEX.pdf brand book) ---------- */
:root {
  /* === CIS brand color system === */
  --misty-blue:  #C3CEDA;    /* primary tint */
  --blue-gray:   #738FA7;    /* secondary */
  --blue-gray-2: #43616F;    /* deeper */
  --midnight:    #0C4160;    /* PRIMARY accent */
  --midnight-2:  #2B6488;    /* accent alt */
  --dark-blue:   #071330;    /* deepest */
  --ivory:       #E8DBCB;    /* warm paper */
  --cream:       #EFEBE9;    /* default paper */
  --ebony:       #152D2E;    /* deepest text */
  --cool-gray:   #4D5C60;
  --slate:       #8A9EA0;

  /* paper / surface */
  --paper:       #FFFFFF;
  --paper-soft:  var(--cream);          /* #EFEBE9 */
  --paper-deep:  var(--ivory);          /* #E8DBCB */
  --white:       #FFFFFF;

  /* ink */
  --ink:         var(--ebony);          /* #152D2E */
  --ink-deep:    var(--dark-blue);      /* #071330 */
  --gray-1:      var(--cool-gray);      /* #4D5C60 */
  --gray-3:      var(--slate);          /* #8A9EA0 */

  /* Neighborhood category colors — used by .spot-marker */
  --cat-bank:    #6c7e93;   /* 銀行 — 灰藍 */
  --cat-conv:    #c9a890;   /* 生活服務 — 暖膚色 */
  --cat-cafe:    #d99b5e;   /* 品飲散策 — 暖橘 */
  --cat-dine:    #c5694a;   /* 美味秘境 — 紅橘 */
  --cat-art:     #8b6f47;   /* 藝文聚點 — 棕色 */
  --cat-health:  #6fa86b;   /* 健康補給 — 草綠 */
  --cat-transit: #0C4160;   /* 捷運/機場 — CIS midnight */
  --cat-tech:    #4a7da6;   /* 科技園區 — 中藍 */
  --cat-park:    #87a55a;   /* 公園綠地 — 葉綠 */

  /* lines */
  --rule:        rgba(43, 43, 43, 0.14);

  /* === Type — CAAM CIS spec:
     · 中文: 微軟正黑體 Light/Bold
     · 英文: Libre Franklin Light/Regular
     · 字級 50 / 24 / 14 / 10 (主/副/內文/圖說) ===*/
  --font-sans:    "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --font-zh:      "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", "微軟正黑體", sans-serif;
  --font-display: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;

  /* Unified 6-step type scale: 56 / 38 / 28 / 20 / 16 / 14 px */
  --fs-display:  4rem;       /* 64px — hero h1 */
  --fs-h1:       2.75rem;    /* 44px — section title */
  --fs-h2:       2rem;       /* 32px — sub head */
  --fs-lede:     1.375rem;   /* 22px — lede / lead body */
  --fs-lead:     var(--fs-lede);
  --fs-body:     1rem;       /* 16px — body */
  --fs-caption:  0.875rem;   /* 14px — caption / button / eyebrow */

  /* Letter spacing — 4-step scale */
  --tracking-tight:    -0.01em;     /* display headings */
  --tracking-default:  0.02em;      /* body / paragraphs */
  --tracking-body:     var(--tracking-default);
  --tracking-eyebrow:  0.08em;      /* small uppercase: buttons, learn-more */
  --tracking-caption:  0.18em;      /* labels, captions, table headers */

  /* Line heights */
  --lh-tight:    1.1;          /* display */
  --lh-snug:     1.2;          /* h1 / h2 */
  --lh-h3:       1.25;
  --lh-caption:  1.4;
  --lh-body:     1.55;
  --lh-comfort:  1.65;         /* paragraph reading */
  --lh-loose:    1.7;          /* long-form ZH copy */

  /* Font weight — only the value actually consumed by rules */
  --fw-light:    500;          /* heading default (was 300, bumped for legibility) */

  /* === Spacing scale — only steps actually consumed by rules === */
  --space-2:  5px;
  --space-3:  8px;
  --space-5:  15px;
  --space-7:  22px;
  --space-9:  28px;
  --space-11: 40px;
  --space-12: 42px;
  --space-13: 50px;
  --space-15: 70px;

  /* layout — direct from Refinery saved HTML CSS:
     · main container max-width 1600px (used 6x)
     · most common container padding: 0 25px (used 9x — tightest)
     · larger sections use 0 50px (used 4x)
     · text content sometimes capped 768px (used 22x for body)
     · hero images are FULL-BLEED (escape shell) */
  --shell-max:    1600px;                          /* their actual */
  --shell-pad:    clamp(1rem, 1.75vw, 1.5625rem);  /* 16 → 25px — their most common */
  --content-indent: 0;                              /* no extra title indent */
  --text-max:     768px;                            /* their actual body text column */
  --section-pad:  clamp(5rem, 9vw, 9rem);          /* 80 → 144 px — generous breathing */
  --gap-xl:       clamp(2rem, 5vw, 4.375rem);      /* 32 → 70 px */
  --gap-lg:       clamp(1.25rem, 3vw, 2.625rem);   /* 20 → 42 px */

  /* button — extracted dimensions */
  --btn-pad-y:    8px;
  --btn-pad-x:    12px;
  --btn-border-w: 2px;

  /* Motion */
  --ease:        ease-in-out;
  --dur-fast:    180ms;                    /* quick hovers, fills */
  --dur:         250ms;                    /* default */
  --dur-slow:    320ms;                    /* polished CTAs, menu toggle */
  --dur-slide:   500ms;                    /* transform transitions */
}

/* ---------- 2. Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  font-family: var(--font-zh), var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; height: auto; }

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--dur) var(--ease);    /* 250ms ease-in-out — Refinery standard */
}
a:hover { color: var(--midnight-2); }

button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--midnight);
  outline-offset: 4px;
}

::selection { background: var(--misty-blue); color: var(--dark-blue); }

/* ---------- 3. Type Scale ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-zh), var(--font-display);
  font-weight: 500;
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
  color: var(--ink-deep);
}

/* Unified type scale — section 46px / 38px / 28px */
.h-jumbo {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(var(--fs-h2), 2.875vw, 2.875rem); /* 28 → 46px */
  line-height: var(--lh-tight);
  letter-spacing: 0;
}
/* Eyebrow + h-jumbo rhythm */
.eyebrow + .h-jumbo { margin-top: 1.4rem; }
.h-l {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h1);
  line-height: var(--lh-snug);
  letter-spacing: 0;
}
.h-m {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: var(--lh-h3);
  letter-spacing: 0;
}

.eyebrow {
  font-family: var(--font-sans);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  font-size: var(--fs-caption);
  color: var(--ink-deep);
  display: inline-block;
  margin-bottom: 0.6rem;
}
.eyebrow .dot { display: none; }
.eyebrow.light { color: var(--white); }
.eyebrow.gray  { color: var(--gray-1); }

.lede {
  font-size: var(--fs-lede);
  line-height: var(--lh-comfort);
  color: var(--ink);
  max-width: 56ch;
  font-weight: 400;
}

.body-sm { font-size: clamp(1rem, 1.05vw, 1.1rem); line-height: var(--lh-loose); color: var(--gray-1); }
.caption { font-size: var(--fs-caption); letter-spacing: var(--tracking-caption); text-transform: uppercase; color: var(--gray-1); font-family: var(--font-sans); font-weight: 500; }

/* ---------- 4. Layout ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding-left: var(--shell-pad);
  padding-right: var(--shell-pad);
}

.section { padding-top: var(--section-pad); padding-bottom: var(--section-pad); position: relative; }
.section-tight { padding-top: calc(var(--section-pad) * 0.8); padding-bottom: calc(var(--section-pad) * 0.8); }
.section-paper-soft { background: var(--paper-soft); }
.section-white      { background: var(--white); }

/* ---------- 5. Header — sticky, taller at top (110px), shrinks to 70px on scroll
   z-index high enough to overlay Leaflet map (default panes 400-700) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  height: 80px;                                   /* default — accommodates square logo */
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: all var(--dur) cubic-bezier(0.4, 0, 0.2, 1);
}
.site-header.is-scrolled {
  background: #fff;
  height: 58px;
  border-bottom: 1px solid var(--rule);
}
/* logo shrinks alongside header */
.site-header .brand-mark-image,
.site-header .brand-mark-image img { height: 33px; transition: all var(--dur) cubic-bezier(0.4, 0, 0.2, 1); }
.site-header.is-scrolled .brand-mark-image,
.site-header.is-scrolled .brand-mark-image img { height: 22px; }

/* Header bar: logo LEFT, nav RIGHT (one row) */
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 2vw, 2.4rem);
  height: 100%;
  width: 100%;
}

/* Brand mark — left aligned per CAAM brief */
.brand-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  color: var(--ink-deep);
  text-decoration: none;
  flex-shrink: 0;
}
/* Logo — CAAM CIS 方形 logo (CAAM 字標 + 承德 168 副標 + 裝飾線)
   Square aspect — sized to fit nav row */
.brand-mark-image {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand-mark-image img.brand-logo-cis {
  display: block;
  height: 28px;
  width: auto;
  object-fit: contain;
  transition: all var(--dur) cubic-bezier(0.4, 0, 0.2, 1);
}
.brand-mark-image img.brand-logo-horizontal { height: 22px; }
.site-header.is-scrolled .brand-mark-image img.brand-logo-cis { height: 22px; }
.site-header.is-scrolled .brand-mark-image img.brand-logo-horizontal { height: 18px; }
/* Contact CTA — CIS midnight blue background, white text */
.btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--midnight);
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  line-height: 1;
  min-height: 44px;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border: var(--btn-border-w) solid var(--midnight);
  text-decoration: none;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn-contact:hover {
  background: var(--dark-blue);
  color: #fff;
  border-color: var(--dark-blue);
}

/* Single nav row — pushed to right of header */
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2.4rem);
  flex-wrap: wrap;
}
.site-nav.nav-row {
  justify-content: flex-end;
  margin-left: auto;
}
/* Nav link — extracted Refinery spec:
   uppercase, color #000, border-bottom: 2px transparent
   becomes var(--midnight) on hover/active */
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-sans);
  font-weight: 400;                            /* Gotham-Medium maps to ~400 */
  font-size: var(--fs-body);                   /* 1rem = 16px */
  line-height: 1.125rem;                       /* extracted 18px */
  letter-spacing: var(--tracking-default);
  text-transform: uppercase;
  color: #000;
  min-height: 44px;                            /* WCAG 2.5.5 touch target */
  padding: 8px 5px;
  position: relative;
  white-space: nowrap;
  border-bottom: 2px solid rgba(0, 0, 0, 0);   /* extracted — transparent placeholder */
  transition: all var(--dur) var(--ease);
}
.nav-link:hover,
.nav-link[aria-current="page"] {
  border-bottom-color: var(--midnight);                /* extracted hover underline */
}
.nav-link .nav-zh { display: inline; }
.nav-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* Nav item with submenu (場地租借) ---------------------------------------- */
.nav-item.has-submenu {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-link-parent .nav-caret {
  display: inline-flex;
  margin-left: 0.25rem;
  opacity: 0.55;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-item.has-submenu:hover .nav-link-parent .nav-caret,
.nav-item.has-submenu:focus-within .nav-link-parent .nav-caret {
  opacity: 1;
  transform: rotate(180deg);
}
.nav-submenu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translate(-50%, -6px);
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.10), 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 0.4rem 0;
  display: grid;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
  z-index: 60;
}
/* invisible bridge so the cursor can travel from parent to submenu */
.nav-submenu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-item.has-submenu:hover .nav-submenu,
.nav-item.has-submenu:focus-within .nav-submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s;
}
.nav-sublink {
  display: block;
  padding: 0.6rem 1rem;
  font-family: var(--font-sans);
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-default);
  color: var(--ink-deep);
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-sublink:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--midnight);
}

.lang-toggle {
  font-family: var(--font-sans);
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-default);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gray-1);
}
.lang-toggle .lang-btn {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
  color: var(--gray-1);
  cursor: pointer;
  transition: color var(--dur-slow) var(--ease);
}
.lang-toggle .lang-btn:hover { color: var(--ink); }
.lang-toggle .lang-btn.is-active { color: var(--ink-deep); cursor: default; }

/* i18n visibility helpers — for pages that mix ZH+EN in the same view
   (e.g. building.html) so toggling hides the inactive language. */
.caam-lang-en { display: none; }
.caam-lang-zh { display: initial; }
.lang-en .caam-lang-en { display: initial; }
.lang-en .caam-lang-zh { display: none; }
.lang-toggle .is-active { color: var(--ink-deep); }
.lang-toggle .is-disabled { color: var(--gray-1); opacity: 0.5; cursor: not-allowed; }
.lang-toggle .lang-sep { opacity: 0.4; }

/* ---- Live AQI widget (環境部 OpenAPI 士林站) -------------------------------
   Minimal pill in top-right: leaf icon · AQI number · color dot
   Click toggles a tooltip card with station/狀態/PM2.5/PM10/更新時間 */
.aqi-widget {
  --aqi-color: var(--gray-1);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.32rem 0.7rem;
  font-family: var(--font-sans);
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-default);
  color: var(--ink-deep);
  cursor: pointer;
  line-height: 1;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.aqi-widget:hover,
.aqi-widget.is-open {
  border-color: var(--midnight);
  background: rgba(0, 0, 0, 0.02);
}
.aqi-widget[data-state="loading"] { opacity: 0.6; }
.aqi-widget .aqi-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  color: var(--ink-deep);
  opacity: 0.85;
}
.aqi-widget .aqi-value {
  font-feature-settings: "tnum" 1;
  font-weight: 500;
  min-width: 1.4em;
  text-align: center;
}
.aqi-widget .aqi-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--aqi-color);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
  transition: background var(--dur) var(--ease);
}

/* tooltip card — hidden by default; JS toggles [hidden] attribute */
.aqi-tooltip[hidden] { display: none !important; }
.aqi-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 0.85rem 0.95rem 0.75rem;
  display: grid;
  gap: 0.45rem;
  text-align: left;
  color: var(--ink-deep);
  font-family: var(--font-sans);
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-default);
  text-transform: none;
  z-index: 60;
  cursor: default;
}
.aqi-tooltip::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 18px;
  width: 10px;
  height: 10px;
  background: #fff;
  border-left: 1px solid var(--rule);
  border-top: 1px solid var(--rule);
  transform: rotate(45deg);
}
.aqi-tt-row { display: flex; align-items: baseline; gap: 0.5rem; }
.aqi-tt-head {
  justify-content: space-between;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--rule);
}
.aqi-tt-label { color: var(--gray-1); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; font-size: 0.72rem; }
.aqi-tt-station { font-weight: 500; }
.aqi-tt-main {
  align-items: baseline;
  gap: 0.6rem;
  padding-block: 0.2rem 0.1rem;
}
.aqi-tt-num {
  font-family: var(--font-serif, var(--font-sans));
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--aqi-color);
  font-feature-settings: "tnum" 1;
  line-height: 1;
}
.aqi-tt-status { font-size: var(--fs-body); color: var(--ink-deep); }
.aqi-tt-detail {
  justify-content: space-between;
  color: var(--gray-1);
}
.aqi-tt-detail > span:nth-child(2) {
  margin-left: auto;
  color: var(--ink-deep);
  font-feature-settings: "tnum" 1;
}
.aqi-tt-unit { color: var(--gray-1); }
.aqi-tt-foot {
  justify-content: space-between;
  padding-top: 0.4rem;
  border-top: 1px solid var(--rule);
  color: var(--gray-1);
  font-size: 0.74rem;
}
.aqi-tt-link {
  color: var(--midnight);
  text-decoration: none;
  font-weight: 500;
}
.aqi-tt-link:hover { text-decoration: underline; }
.aqi-tt-source {
  color: var(--gray-1);
  font-size: 0.68rem;
  opacity: 0.8;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  padding: 6px;
}
.menu-toggle span { width: 28px; height: 2px; background: var(--ink); display: block; transition: transform var(--dur-slow) var(--ease), opacity var(--dur-slow); }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 6. Buttons — CIS midnight blue with white text ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  min-height: 44px;                            /* WCAG 2.5.5 touch target */
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  font-size: var(--fs-caption);
  line-height: 1;
  color: #fff;
  background: var(--midnight);
  border: var(--btn-border-w) solid var(--midnight);
  border-radius: 0;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn:hover {
  background: var(--dark-blue);
  color: #fff;
  border-color: var(--dark-blue);
}
.btn:active { background: var(--blue-gray-2); }
.btn-outline {
  background: transparent;
  color: var(--midnight);
  border: var(--btn-border-w) solid var(--midnight);
}
.btn-outline:hover { background: var(--midnight); color: #fff; border-color: var(--midnight); }

.arrow-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
  font-size: var(--fs-caption);
  color: var(--ink-deep);
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--ink-deep);
  transition: color var(--dur-slow) var(--ease), border-color var(--dur-slow) var(--ease);
}
.arrow-cta::after {
  content: "→";
  display: inline-block;
  transition: transform var(--dur-slow) var(--ease);
}
.arrow-cta:hover { color: var(--ink-deep); border-bottom-color: var(--midnight); }
.arrow-cta:hover::after { transform: translateX(6px); }

.arrow-cta.light { color: var(--paper); border-bottom-color: var(--paper); }
.arrow-cta.light:hover { border-bottom-color: var(--midnight); color: var(--midnight); }

/* ---------- 7. Hero — Refinery style: image first, text after.
   No top padding; header is sticky so it flows naturally above hero. ---------- */
.hero {
  position: relative;
  background: var(--paper);
  padding-top: 0;
  margin-top: 0;
}
.hero-image {
  width: 100%;
  height: 56.25vw;                  /* extracted — 16:9 ratio */
  max-height: 900px;
  min-height: 360px;
  overflow: hidden;
  background: var(--ink-deep);
  position: relative;
}
.hero-image video,
.hero-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
/* Hero title row — h1 left, subtitle right, 2-col on desktop */
.hero-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 3rem);
  align-items: end;
  margin-bottom: var(--space-13);     /* 50px gap before body */
}
.hero-title-row h1 {
  font-family: var(--font-zh);
  font-weight: 600;
  font-size: clamp(2.6rem, 4.4vw, var(--fs-display));   /* up to 64px */
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--ink-deep);
  margin: 0;
  max-width: 18ch;
}
.hero-title-row .hero-sub {
  font-family: var(--font-zh);
  font-weight: 400;
  font-size: clamp(1.4rem, 2vw, var(--fs-h2));          /* up to 32px */
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-default);
  color: var(--ink-deep);
  margin: 0;
  max-width: 28ch;
  align-self: center;        /* vertical center against the h1 */
  justify-self: end;         /* push column content to right edge */
  text-align: right;
}
@media (max-width: 720px) {
  .hero-title-row { grid-template-columns: 1fr; gap: 0.8rem; }
}
/* EN home hero — stack h1 above sub, all left-aligned (no 2-col split) */
.lang-en .hero-title-row {
  grid-template-columns: 1fr;
  gap: 2rem;                         /* h1 ↔ sub — slightly more breathing room */
  align-items: start;
  margin-bottom: var(--space-8);     /* sub ↔ body — pulled tighter than ZH */
}
.lang-en .hero-title-row h1 {
  max-width: none;
}
.lang-en .hero-title-row .hero-sub {
  align-self: start;
  justify-self: start;
  text-align: left;
  max-width: none;
}
/* Title block follows Figma: 260px from viewport edge in 1920 design.
   Shell already gives 210px; add content-indent ≈ 50px for the 260px target. */
.hero-text {
  padding: var(--space-13) var(--content-indent) var(--space-15);   /* 50 / 50 / 70 */
  max-width: 100%;
}
/* When .hero-text is reused as a section-title wrapper inside .section,
   drop the hero-only top/bottom padding so the wrapper just provides max-width. */
.section .hero-text { padding-top: 0; padding-bottom: 0; }
/* Standard breathing room between section title block and following content */
.section .hero-text + * { margin-top: 2rem; }
/* Section title wrapper variant — eyebrow + jumbo with bottom space */
.section-head { margin-bottom: 3rem; }
.hero-text .hero-sub {
  font-family: var(--font-zh);
  font-weight: var(--fw-light);                       /* 500 */
  font-size: var(--fs-h2);                            /* 28px */
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-default);
  color: var(--ink-deep);
  max-width: 34ch;
  margin: 0 0 var(--space-12);                         /* 42px */
}
.hero-text .hero-body {
  font-family: var(--font-zh);
  font-weight: var(--fw-light);                        /* 500 */
  font-size: var(--fs-lede);                            /* 20px */
  line-height: var(--lh-body);
  letter-spacing: 0;
  color: var(--ink-deep);
  margin: 0 0 var(--space-5);                           /* 15px */
}
/* ---------- 8. Page-Hero — Refinery style: image first, text below.
   No top padding; header is sticky so it flows naturally above hero. ---------- */
.page-hero {
  position: relative;
  background: var(--paper);
  padding-top: 0;
  margin-top: 0;
}
.page-hero-image {
  position: relative;
  width: 100%;
  height: clamp(360px, 46.875vw, 900px);
  overflow: hidden;
  background: var(--ink-deep);
}
.page-hero-image img,
.page-hero-image video {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.page-hero-text {
  padding: var(--space-13) var(--content-indent) var(--space-15);
  max-width: none;
}
.page-hero-text .breadcrumb {
  font-family: var(--font-sans);
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-body);
  text-transform: uppercase;
  color: var(--gray-1);
  font-weight: 500;
  margin-bottom: var(--space-7);     /* 22px */
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);                /* 5px */
}
.page-hero-text .breadcrumb a { color: var(--gray-1); }
.page-hero-text .breadcrumb a:hover { color: var(--ink-deep); }
.page-hero-text .breadcrumb .sep { color: var(--gray-3); }
.page-hero-text h1 {
  font-family: var(--font-zh);
  font-weight: 600;                                    /* 500 → 600，呼應首頁標題 */
  font-size: clamp(2.4rem, 4vw, 3.5rem);               /* 38 → 56px — 緊跟首頁但較小，保留次階層 */
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--ink-deep);
  margin: 0 0 var(--space-3);
}
.page-hero-text h1 .h-zh {
  display: block;
  font-family: var(--font-zh);
  font-weight: 400;
  text-transform: none;
  font-size: 0.6em;
  letter-spacing: 0;
  margin-top: var(--space-3);                          /* 8px */
  color: var(--gray-1);
  line-height: var(--lh-snug);
}
.page-hero-text .lede {
  font-family: var(--font-zh);
  font-weight: 400;
  font-size: var(--fs-lede);                           /* 22px — matches home hero */
  line-height: var(--lh-body);
  letter-spacing: 0;                                    /* aligned with hero-body */
  text-transform: none;
  color: var(--ink-deep);
  margin: var(--space-9) 0 0;                          /* 30px — generous breathing */
}
.page-hero-text .lede-zh {
  font-family: var(--font-zh);
  font-weight: 400;
  font-size: clamp(1.4rem, 1.55vw, 1.55rem);            /* 22.4 → 24.8px */
  line-height: var(--lh-body);
  letter-spacing: 0;
  color: var(--gray-1);
  margin-top: var(--space-7);                          /* 22px */
}

/* ---------- 9. Stats / Specs ---------- */
.specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 4px solid var(--ink-deep);
  border-bottom: 4px solid var(--ink-deep);
}
.specs article {
  padding: 2.6rem 1.6rem;
  border-right: 1px solid var(--rule);
  display: grid;
  align-content: space-between;
  gap: 1.4rem;
  min-height: 240px;
  background: var(--paper);
  transition: background var(--dur-slow) var(--ease);
}
.specs article:last-child { border-right: 0; }
.specs article:hover { background: var(--paper-soft); }
.specs .spec-label {
  font-family: var(--font-sans);
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
  color: var(--gray-1);
  font-weight: 600;
}
.specs .spec-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  color: var(--ink-deep);
  line-height: 0.94;
  letter-spacing: 0;
}
.specs .spec-value .unit {
  font-weight: 500;
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
  color: var(--gray-1);
  margin-left: 0.4rem;
}
.specs .spec-foot {
  font-size: var(--fs-caption);
  color: var(--gray-1);
  line-height: var(--lh-body);
}


/* ---------- 9b. Feat Sticky — 4 橫式標籤 + 滾動換圖 ---------- */
.feat-sticky {
  position: relative;
  padding-top: clamp(1.6rem, 3vw, 3rem);
  background: var(--paper);
}
.feat-stage {
  position: relative;
  height: calc(4 * 90vh);     /* 4 trigger zones × 90vh = total scroll length */
}
.feat-stage-stick {
  position: sticky;
  top: 70px;                  /* directly under the scrolled-state nav */
  height: calc(100vh - 80px);
  z-index: 0;
}
.feat-stage-stick > .shell {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: clamp(1rem, 2vw, 2rem);
  padding-top: clamp(0.6rem, 1.2vw, 1.2rem);
  padding-bottom: clamp(0.6rem, 1.2vw, 1.2rem);
}
.feat-labels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.6rem, 1.4vw, 1.4rem);
}
.feat-label {
  appearance: none;
  background: transparent;
  border: 0;
  padding: clamp(0.6rem, 1vw, 1rem) clamp(0.4rem, 0.8vw, 0.8rem);
  display: grid;
  grid-template-rows: 32px auto auto;
  gap: 0.4rem;
  text-align: left;
  cursor: pointer;
  color: var(--ink-deep);
  opacity: 0.32;                          /* inactive — heavily faded */
  transition: opacity var(--dur) var(--ease);
  font-family: inherit;
}
.feat-label.is-active { opacity: 1; }
.feat-label:hover { opacity: 0.7; }
.feat-label.is-active:hover { opacity: 1; }
.feat-label .ico {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: flex-start;
}
.feat-label .ico img { width: 28px; height: 28px; object-fit: contain; }
.feat-label strong {
  font-family: var(--font-zh);
  font-weight: 600;
  font-size: clamp(1.4rem, 1.8vw, 1.75rem);   /* 22 → 28px */
  letter-spacing: 0.05em;
  line-height: var(--lh-snug);
  color: inherit;
}
.feat-label .feat-sub {
  font-family: var(--font-zh);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.15vw, 1.2rem);   /* 17 → 19.2px */
  line-height: var(--lh-body);
  color: var(--gray-1);
}
.feat-triggers {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  pointer-events: none;
  z-index: 1;
}
.feat-trigger { width: 100%; }
.feat-photo-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: var(--ink-deep);
}
.feat-photo {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 600ms var(--ease);
}
.feat-photo.is-active { opacity: 1; }
.feat-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .feat-labels { grid-template-columns: repeat(2, 1fr); }
  .feat-stage-stick { height: calc(100vh - 70px); }
  .feat-stage { height: calc(4 * 80vh); }
}
@media (max-width: 520px) {
  .feat-labels { grid-template-columns: 1fr; gap: 0.4rem; }
  .feat-label { grid-template-rows: auto auto; padding: 0.4rem 0; }
  .feat-label .ico { display: none; }
  .feat-label .feat-sub { display: none; }
}

/* ---------- 9b'. Floors Sticky — 樓層設施分布滾動高亮 ---------- */
.floors-sticky {
  position: relative;
  padding-top: clamp(2rem, 4vw, 4rem);
  background: var(--paper);
}
.floors-stage {
  position: relative;
  height: calc(4 * 90vh);
}
.floors-stage-stick {
  position: sticky;
  top: 70px;
  height: calc(100vh - 80px);
  z-index: 0;
}
.floors-stage-stick > .shell {
  height: 100%;
  display: grid;
  grid-template-rows: 1fr;
  padding-top: clamp(0.6rem, 1.2vw, 1.2rem);
  padding-bottom: clamp(0.6rem, 1.2vw, 1.2rem);
}
.floors-grid {
  display: grid;
  grid-template-columns: 1fr minmax(0, 0.45fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: stretch;
}
.floors-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1rem, 1.8vw, 1.8rem);
}
.floor-step {
  opacity: 0.32;
  border-left: 2px solid transparent;
  padding-left: clamp(0.8rem, 1.4vw, 1.4rem);
  transition: opacity var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.floor-step.is-active {
  opacity: 1;
  border-left-color: var(--midnight);
}
.floor-step .floor-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: clamp(0.98rem, 1.05vw, 1.1rem);   /* 15.7 → 17.6px */
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--midnight);
  margin-bottom: 0.5rem;
}
.floor-step h3 {
  font-family: var(--font-zh);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.2vw, 2.2rem);
  line-height: var(--lh-snug);
  margin: 0 0 0.6rem;
  color: var(--ink-deep);
}
.floor-step p {
  margin: 0;
  font-size: clamp(1.1rem, 1.2vw, 1.2rem);     /* 17.6 → 19.2px */
  line-height: var(--lh-body);
  color: var(--gray-1);
  max-width: 38ch;
}
.floors-image {
  position: relative;
  height: 100%;
  min-height: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  /* JS sets --img-top / --img-h (px) to the building image's actual rect
     within this column — overlays use those vars so they line up with the
     drawing, not the column. */
}
.floors-image img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  /* Left / right blur-fade — the section drawing has no full-width
     context, so trim the white margins softly. */
  -webkit-mask-image: linear-gradient(to right,
    transparent 0%, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(to right,
    transparent 0%, #000 12%, #000 88%, transparent 100%);
}
/* Overlays positioned via CSS variables that JS keeps in sync with the
   actual building-image rect (px), so they line up with the drawing
   regardless of how object-fit centered the image inside the column. */
.floors-dim {
  position: absolute;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.55);
  transition: top 700ms var(--ease), height 700ms var(--ease);
  pointer-events: none;
  z-index: 1;
}
.floors-dim--top {
  top: var(--img-top, 0);
  height: calc(var(--img-h, 100%) * var(--hi-start, 0.04));
}
.floors-dim--bottom {
  top: calc(var(--img-top, 0) + var(--img-h, 100%) * var(--hi-end, 0.13));
  height: calc(var(--img-h, 100%) * (1 - var(--hi-end, 0.13)));
}
.floors-frame {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--img-top, 0) + var(--img-h, 100%) * var(--hi-start, 0.04));
  height: calc(var(--img-h, 100%) * (var(--hi-end, 0.13) - var(--hi-start, 0.04)));
  border-top: 1.5px solid var(--midnight);
  border-bottom: 1.5px solid var(--midnight);
  background: rgba(12, 65, 96, 0.04);
  box-shadow: 0 0 0 3px rgba(12, 65, 96, 0.06);
  transition: top 700ms var(--ease), height 700ms var(--ease);
  pointer-events: none;
  z-index: 2;
}

.floors-triggers {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  pointer-events: none;
  z-index: 1;
}
.floor-trigger { width: 100%; }

@media (max-width: 900px) {
  .floors-stage { height: auto; }
  .floors-stage-stick { position: relative; top: 0; height: auto; }
  .floors-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .floors-image { height: 60vh; }
  .floor-step { opacity: 1; }
  .floors-dim { display: none; }
  .floors-triggers { display: none; }
}

/* ---------- 9c. Transit Sticky — 3 個交通項目 + sticky 地圖路線動畫 ---------- */
.transit-sticky {
  position: relative;
  padding: clamp(2.4rem, 4vw, 4rem) 0;
  background: var(--paper);
}
.transit-sticky .section-title { margin-bottom: clamp(1.4rem, 2.4vw, 2.4rem); }
.transit-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(1.2rem, 2.4vw, 2.4rem);
  /* must stretch so map-col grows to match text-col height; otherwise sticky has no room to stick */
  align-items: stretch;
  padding: 0 var(--shell-pad);
  max-width: 1500px;
  margin: 0 auto;
}
.transit-text { display: flex; flex-direction: column; gap: 0; }
.transit-step {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.4rem, 2vw, 2rem) 0;
  border-top: 1px solid var(--rule);
  opacity: 0.35;
  transition: opacity var(--dur) var(--ease);
}
.transit-step:last-child { border-bottom: 1px solid var(--rule); }
.transit-step.is-active { opacity: 1; }
.transit-step .ico {
  width: 36px; height: 36px;
  background: transparent;
  display: inline-flex; align-items: center; justify-content: flex-start;
  margin-bottom: 0.8rem;
}
.transit-step .ico img {
  width: 32px; height: 32px;
  object-fit: contain;
  opacity: 0.85;
}
.transit-step.is-active .ico img { opacity: 1; }
.transit-step h3 {
  font-family: var(--font-zh);
  font-weight: 600;
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);    /* 28 → 41px */
  line-height: var(--lh-snug);
  margin: 0 0 0.8rem;
  color: var(--ink-deep);
}
.transit-step p {
  margin: 0;
  font-size: var(--fs-lede);
  line-height: var(--lh-body);
  color: var(--gray-1);
}
.transit-step--wide {
  min-height: 80vh;       /* longer scroll → markers have time to populate */
}
.transit-step--wide h3 {
  font-size: clamp(1.5rem, 2vw, 2rem);
  max-width: 22ch;
}
.transit-step--wide p { max-width: 38ch; }
.transit-map-col { position: relative; }
.transit-map-stick {
  position: sticky;
  top: clamp(80px, 12vh, 120px);
  height: clamp(420px, 72vh, 760px);
  border: 1px solid var(--rule);
  background: var(--paper-soft);
}
.transit-map-stick .leaflet-map { width: 100%; height: 100%; }

@media (max-width: 900px) {
  .transit-grid { grid-template-columns: 1fr; }
  .transit-map-stick {
    position: relative;
    top: 0;
    height: 56vh;
    order: -1;
    margin-bottom: 1.4rem;
  }
  .transit-map-col { order: -1; }
  .transit-step { min-height: 0; opacity: 1; }
}

/* ---------- 9d. Awards Marquee — 獎項橫向跑馬燈 ---------- */
.awards-section { overflow: hidden; }
.awards-marquee {
  position: relative;
  width: 100%;
  margin-top: clamp(2rem, 3vw, 3rem);
  overflow: hidden;
  /* fade left/right edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.awards-track {
  display: flex;
  gap: clamp(1.2rem, 2vw, 2rem);
  width: max-content;
  animation: awardsScroll 56s linear infinite;
}
.awards-marquee:hover .awards-track { animation-play-state: paused; }
.award-card {
  flex: 0 0 clamp(260px, 24vw, 360px);
  padding: clamp(1.2rem, 1.6vw, 1.6rem);
  background: transparent;
  display: grid;
  grid-template-rows: 96px auto auto;
  gap: 0.8rem;
  align-content: start;
}
.award-card img {
  width: 96px; height: 96px;
  object-fit: contain;
  display: block;
}
.award-card h3 {
  font-family: var(--font-zh);
  font-weight: 600;
  font-size: clamp(1.4rem, 1.55vw, 1.65rem);   /* 22.4 → 26.4px */
  line-height: var(--lh-snug);
  margin: 0;
  color: var(--ink-deep);
}
.award-card p {
  margin: 0;
  font-size: clamp(1rem, 1.1vw, 1.15rem);      /* 16 → 18.4px */
  line-height: var(--lh-body);
  color: var(--gray-1);
}
@keyframes awardsScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .awards-track { animation: none; }
}

/* ---------- 10. Text Block — Refinery single-column flow ---------- */
.text-block {
  display: block;
  max-width: 920px;
}
.text-block .tb-label .eyebrow { margin-bottom: 1rem; }
.text-block h2 { margin: 0 0 1rem; }
.text-block .tb-body { margin-top: 1rem; }
.text-block .tb-body p { color: var(--ink); line-height: var(--lh-body); max-width: 70ch; font-size: var(--fs-body); }
.text-block .tb-body p + p { margin-top: 1rem; }

/* ---------- 11. Text + Icons — single column flow ---------- */
.text-icons {
  display: block;
  max-width: 920px;
}
.text-icons h2 { margin-bottom: 1rem; max-width: 16ch; }
.text-icons .icon-list { margin-top: 2rem; }

.icon-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.icon-list li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.6rem;
  align-items: center;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--rule);
}
.icon-list .ico {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
}
.icon-list .ico img { width: 32px; height: 32px; opacity: 0.85; object-fit: contain; }
.icon-list .ico--accent img { opacity: 1; }
/* When the whole li is wrapped in an anchor (404 quick links) */
.icon-list li:has(> a) {
  display: flex;
  align-items: center;
  grid-template-columns: none;
  gap: 1rem;
}
.icon-list li > a {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 1rem;
  color: inherit;
  text-decoration: none;
}
.icon-list li:has(> a):hover .ic-text strong { color: var(--midnight); }
.icon-list .ic-arrow {
  margin-left: auto;
  color: var(--gray-1);
  font-size: var(--fs-lede);
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}
.icon-list li:has(> a):hover .ic-arrow {
  color: var(--midnight);
  transform: translate(2px, -2px);
}

.icon-list .ic-text {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}
.icon-list .ic-text strong {
  font-family: var(--font-zh);
  font-weight: 600;
  font-size: clamp(1.1rem, 1.2vw, 1.25rem);    /* 17.6 → 20px */
  color: var(--ink-deep);
  overflow-wrap: anywhere;
  word-break: break-all;
  line-break: anywhere;
}
.icon-list .ic-text span {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(0.95rem, 1.05vw, 1.05rem);  /* 15.2 → 16.8px */
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
  color: var(--gray-1);
}

/* ---------- 12. Image Grid — Refinery: 1:1 square default, 1fr 1fr or 3-col,
   max-height 260/400/500 at breakpoints (extracted from home__three-per-row) ---------- */
.image-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}
.image-grid figure {
  margin: 0;
  overflow: hidden;
  background: var(--paper-deep);
  aspect-ratio: 1 / 1;                       /* extracted default */
}
/* Certification card — image badge + h3 + body */
.cert-card {
  background: var(--paper-soft);
  padding: 3rem 2rem;
  border-top: 4px solid var(--midnight);
}
.cert-card img { height: 120px; width: auto; margin-bottom: 2rem; }
.cert-card h3 { margin-top: 1rem; }
.cert-card p  { margin-top: 1.2rem; }

/* Anchor nav strip — section-anchor links centered with hairline border */
.anchor-nav-strip {
  border-bottom: 1px solid var(--rule);
  padding: 1rem 0;
}
.anchor-nav-strip nav {
  display: flex;
  gap: 2.4rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Mini cert card — used inside .cert-grid on the homepage */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 2px solid var(--ink-deep);
}
.cert-card--mini {
  background: var(--white);
  padding: 2.4rem 1.6rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.cert-grid > .cert-card--mini:nth-child(3n) { border-right: 0; }
.cert-grid > .cert-card--mini:nth-last-child(-n+3) { border-bottom: 0; }
.cert-card--mini img { height: 80px; width: auto; margin-bottom: 1.2rem; }
.cert-card--mini p  { margin-top: 0.6rem; }

/* Advantage card — 4-up grid, no gap, hairline grid borders */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.advantage-card {
  padding: 2.6rem 1.6rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--white);
}
.advantage-grid > .advantage-card:last-child { border-right: 0; }
.advantage-card h3 { margin-top: 1.2rem; }
.advantage-card p  { margin-top: 1rem; }
.advantage-card .trend { color: var(--midnight-2); }

/* Card pattern (article wraps figure + heading + description) — 4/3 photo */
.image-grid article > figure,
.venue-card-photo > figure {
  aspect-ratio: 4 / 3;
  margin: 0 0 1.2rem;
  overflow: hidden;
}
/* Aspect-ratio modifier for direct figure children of .image-grid */
.image-grid.image-grid--4-3 > figure { aspect-ratio: 4 / 3; }
/* Per-figure aspect overrides — used in mixed grids */
.image-grid figure.fig-4-3  { aspect-ratio: 4 / 3; }
.image-grid figure.fig-16-9 { aspect-ratio: 16 / 9; }
.image-grid article > h3 + .section-body-zh,
.image-grid article > .h-m + .section-body-zh {
  margin-top: 0.6rem;
}
.image-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: all var(--dur-slide) var(--ease);   /* 500ms ease-in-out — extracted */
}
.image-grid figure:hover img { transform: scale(1.04); }
.image-grid figcaption {
  margin-top: 0.6rem;
  font-family: var(--font-sans);
  font-weight: var(--fw-light);
  font-size: clamp(0.95rem, 1.05vw, 1.05rem);  /* 15.2 → 16.8px */
  letter-spacing: var(--tracking-default);
  text-transform: uppercase;
  color: var(--gray-1);
  transition: color var(--dur) var(--ease);
}
.image-grid figure:hover figcaption { color: var(--midnight); }

.pillars {
  display: grid;
  /* Auto-fit so 3-item pages don't leave an empty 4th column */
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.pillars article {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "icon title"
    "body  body";
  align-content: start;
  align-items: center;
  column-gap: 0.7rem;
  row-gap: 0.9rem;
  min-height: 250px;
  padding: clamp(1.2rem, 2.4vw, 2rem);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.pillars article > .ico {
  grid-area: icon;
  width: clamp(28px, 2.2vw, 36px);
  height: clamp(28px, 2.2vw, 36px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pillars article > .ico img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* `.ico--accent` keeps the icon's own dark linework — no midnight tile, no invert */
.pillars article > .ico.ico--accent { background: transparent; }
.pillars article > .ico.ico--accent img { filter: none; }

/* Venue features — 5 features in one row at desktop, wrap on tablet/mobile */
.venue-features { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { .venue-features { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .venue-features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .venue-features { grid-template-columns: 1fr; } }

/* Venue 特點 — 真實照片 (非 icon)，5 張一列 */
.feature-photos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(1.4rem, 2vw, 2rem);
}
@media (max-width: 1100px) { .feature-photos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .feature-photos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .feature-photos { grid-template-columns: 1fr; } }
.feature-photo-card {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.feature-photo-num {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--midnight);
  color: var(--paper-soft);
  font-family: var(--font-serif, var(--font-display));
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.feature-photo-img {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
  background: var(--paper-soft);
}
.feature-photo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.feature-photo-card:hover .feature-photo-img img { transform: scale(1.04); }
.feature-photo-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.feature-photo-card figcaption h3 {
  margin: 0;
  font-size: clamp(1.2rem, 1.4vw, 1.4rem);
  line-height: var(--lh-snug);
  color: var(--midnight);
}
.feature-photo-card figcaption p {
  margin: 0;
  font-size: clamp(0.92rem, 1vw, 1rem);
  line-height: var(--lh-relaxed);
  color: var(--ink-deep);
}

/* Venue hero — LEED Platinum 標章 旁置於說明段落左側 */
.lede-with-badge {
  display: flex;
  align-items: flex-start;
  gap: clamp(1.2rem, 2vw, 2rem);
  margin-top: clamp(1rem, 1.5vw, 1.5rem);
}
.lede-with-badge .leed-badge {
  flex: 0 0 auto;
  width: clamp(96px, 11vw, 140px);
  height: clamp(96px, 11vw, 140px);
  object-fit: contain;
  margin-top: 0.25rem;
}
.lede-with-badge .lede {
  margin: 0;
  flex: 1 1 auto;
}
@media (max-width: 600px) {
  .lede-with-badge { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .lede-with-badge .leed-badge { width: 96px; height: 96px; }
}

.pillars h3 {
  grid-area: title;
  margin: 0;
  font-size: clamp(1.55rem, 1.75vw, 1.75rem);  /* 24.8 → 28px */
  line-height: var(--lh-snug);
}
.pillars p {
  grid-area: body;
  margin: 0;
  font-size: clamp(1.05rem, 1.15vw, 1.2rem);   /* 17 → 19.2px */
  line-height: var(--lh-body);
  color: var(--gray-1);
}
/* 對角階梯排版 — 01 在右上、04 在左下 */
.pillars--stair {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, auto);
  gap: clamp(0.8rem, 1.6vw, 1.6rem);
  border: 0;
  margin-top: clamp(2rem, 4vw, 4rem);
}
.pillars--stair article {
  border: 0;
  min-height: 0;
  background: transparent;
  padding: 0;
}
.pillars--stair article:nth-child(1) { grid-column: 4; grid-row: 1; }
.pillars--stair article:nth-child(2) { grid-column: 3; grid-row: 2; }
.pillars--stair article:nth-child(3) { grid-column: 2; grid-row: 3; }
.pillars--stair article:nth-child(4) { grid-column: 1; grid-row: 4; }
@media (max-width: 900px) {
  .pillars--stair {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, auto);
  }
  .pillars--stair article:nth-child(1) { grid-column: 2; grid-row: 1; }
  .pillars--stair article:nth-child(2) { grid-column: 1; grid-row: 2; }
  .pillars--stair article:nth-child(3) { grid-column: 2; grid-row: 3; }
  .pillars--stair article:nth-child(4) { grid-column: 1; grid-row: 4; }
}
@media (max-width: 560px) {
  .pillars--stair {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .pillars--stair article:nth-child(n) { grid-column: 1; grid-row: auto; }
}

.pillar-num {
  font-family: var(--font-sans);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
  color: var(--ink-deep);
}

.ig-tall   { grid-column: span 5; aspect-ratio: 4/5; }
.ig-wide   { grid-column: span 7; aspect-ratio: 16/9; }
.ig-half   { grid-column: span 6; aspect-ratio: 4/3; }
.ig-third  { grid-column: span 4; aspect-ratio: 4/5; }
.ig-2-3    { grid-column: span 8; aspect-ratio: 16/9; }

/* ---------- 13. Text Overlay — simplified: full-width photo + text below ---------- */
.text-overlay {
  position: relative;
  background: var(--paper);
  padding: 0;
}
.text-overlay .to-bg {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink-deep);
}
.text-overlay .to-bg img,
.text-overlay .to-bg video {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 1;
}
.text-overlay .to-content {
  padding: clamp(2.5rem, 4vw, 3.5rem) 0;
  max-width: 100%;
}
.text-overlay h2 {
  color: var(--ink-deep);
  max-width: 30ch;
  margin: 0 0 1.4rem;
}
.text-overlay p {
  color: var(--ink-deep);
  max-width: 80ch;
  font-family: var(--font-sans);
  font-size: var(--fs-lede);
  line-height: var(--lh-h3);
  letter-spacing: 0.5px;
}

/* ---------- 14. Spec Sheet ---------- */
.spec-sheet {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.spec-sheet > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.4rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.spec-sheet dt {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(0.98rem, 1.05vw, 1.1rem);   /* 15.7 → 17.6px */
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
  color: var(--gray-1);
}
.spec-sheet dd {
  margin: 0;
  font-weight: 500;
  font-size: clamp(1.1rem, 1.2vw, 1.25rem);    /* 17.6 → 20px */
  color: var(--ink-deep);
  text-align: right;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.4rem;
  margin-top: 1.6rem;
}
.hero-actions .caption {
  flex-basis: 100%;
  letter-spacing: var(--tracking-eyebrow);
}

.venue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.venue-grid-three { grid-template-columns: repeat(3, 1fr); }
.venue-card {
  display: grid;
  align-content: start;
  gap: 1.4rem;
  min-height: 260px;
  padding: clamp(1.2rem, 2.4vw, 2rem);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.venue-card-photo { gap: 1rem; }
.venue-card-detail {
  gap: 1.1rem;
}
.venue-card figure {
  margin: 0;
  overflow: hidden;
  background: var(--paper-deep);
}
.venue-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.venue-media-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
.venue-media-strip figure {
  aspect-ratio: 4 / 3;
}

/* ---------- Venue Carousel — 一個畫面顯示一個場地，上方 tab 高亮 ---------- */
.venue-carousel {
  margin-top: clamp(1.6rem, 3vw, 3rem);
}
.venue-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 2.4vw, 2.4rem);
  align-items: baseline;
  padding-bottom: clamp(1rem, 1.6vw, 1.6rem);
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(1.6rem, 2.4vw, 2.4rem);
}
.venue-tab {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0.3rem 0;
  cursor: pointer;
  font-family: var(--font-zh);
  font-weight: 600;
  font-size: clamp(1.25rem, 1.6vw, 1.6rem);   /* 20 → 26px */
  letter-spacing: 0.04em;
  color: var(--ink-deep);
  opacity: 0.3;
  transition: opacity var(--dur) var(--ease);
  position: relative;
}
.venue-tab:hover { opacity: 0.6; }
.venue-tab.is-active { opacity: 1; }
.venue-tab.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--midnight);
}

.venue-stage {
  position: relative;
}
.venue-viewport {
  overflow: hidden;       /* clip the sliding slides */
}
.venue-track {
  display: flex;
  width: 100%;
  transition: transform 500ms var(--ease);
}
.venue-slide {
  flex: 0 0 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.6rem, 3vw, 3rem);
  padding: 0;
  background: transparent;
  align-items: start;
}
.venue-slide-photo {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-deep);
}
.venue-slide-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.venue-slide-body { display: flex; flex-direction: column; gap: 1.2rem; }
.venue-slide-title {
  font-family: var(--font-zh);
  font-weight: 600;
  font-size: clamp(2rem, 3vw, 3rem);            /* 32 → 48px — big single name */
  line-height: var(--lh-tight);
  letter-spacing: 0.08em;
  margin: 0;
  color: var(--ink-deep);
}
.venue-slide .mini-spec { margin: 0; }

.venue-arrow {
  position: absolute;
  top: 30%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--rule);
  color: var(--ink-deep);
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
  z-index: 2;
}
.venue-arrow:hover { background: var(--midnight); color: #fff; }
.venue-arrow:disabled { opacity: 0.3; cursor: not-allowed; }
.venue-arrow--prev { left: clamp(-1rem, -1vw, 0.4rem); }
.venue-arrow--next { right: clamp(-1rem, -1vw, 0.4rem); }

@media (max-width: 800px) {
  .venue-tabs { gap: 0.8rem 1.2rem; }
  .venue-slide { grid-template-columns: 1fr; }
  .venue-arrow { display: none; }
}
.mini-spec {
  display: grid;
  gap: clamp(1.2rem, 1.6vw, 1.6rem);   /* more breathing between rows */
  margin: 0;
}
.mini-spec div {
  display: grid;
  gap: 0.35rem;                          /* slight breathing between label and value */
}
.mini-spec dt {
  font-family: var(--font-zh);
  font-size: clamp(0.9rem, 0.95vw, 1rem);      /* 14 → 16px — smaller than dd */
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: none;
  color: var(--gray-3);                         /* light grey — recedes vs the dark value */
}
.mini-spec dd {
  margin: 0;
  color: var(--ink-deep);
  font-weight: 500;
  font-size: clamp(1.1rem, 1.2vw, 1.25rem);    /* 17.6 → 20px */
  line-height: var(--lh-body);
}
.equipment-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}
.mini-spec .equipment-tags {
  justify-content: flex-start;
}
/* Equipment chips — flat: icon + label, no background, no border */
.equipment-tags > span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.2rem 0.4rem 0.2rem 0;
  font-family: var(--font-zh);
  font-size: clamp(0.95rem, 1.05vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-deep);
}
.equipment-tags .equip-i > img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 0.85;
  flex-shrink: 0;
}
.equipment-tags .equip-i > span {
  display: inline;
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
}
.venue-note {
  display: grid;
  gap: 1rem;
  margin-top: 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-deep);
}
.venue-note p { margin: 0; }
.venue-note a:not(.btn) {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.split-editorial {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 0.66fr);
  gap: var(--gap-xl);
  align-items: start;
}
.split-editorial .section-title { max-width: 12ch; }

.resource-downloads {
  display: grid;
  border-top: 1px solid var(--rule);
}
.resource-downloads a {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--rule);
}
.resource-downloads strong {
  font-size: var(--fs-body);
  color: var(--ink-deep);
}
.resource-downloads span {
  font-family: var(--font-sans);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
  color: var(--gray-1);
}
.resource-downloads a::after {
  content: "↓";
  font-size: var(--fs-body);
  color: var(--ink-deep);
}

.team-section {
  align-items: start;
}
.team-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
}
.team-list > div {
  display: grid;
  grid-template-columns: minmax(120px, 0.34fr) minmax(0, 0.66fr);
  gap: clamp(1rem, 2.5vw, 2.4rem);
  align-items: baseline;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--rule);
}
/* 全寬版本 — 匹配 Figma：title 在上、dl 全寬 */
.team-list--wide { margin-top: clamp(2rem, 3vw, 3rem); }
.team-list--wide > div {
  grid-template-columns: minmax(140px, 0.25fr) minmax(0, 0.75fr);
}
.team-list dt {
  font-family: var(--font-sans);
  font-size: clamp(0.98rem, 1.05vw, 1.1rem);   /* 15.7 → 17.6px */
  font-weight: 600;
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
  color: var(--gray-1);
}
.team-list dd {
  margin: 0;
  min-width: 0;
  font-family: var(--font-zh);
  font-weight: 600;
  font-size: clamp(1.5rem, 1.65vw, 1.65rem);    /* 24 → 26.4px */
  line-height: var(--lh-h3);
  color: var(--ink-deep);
  overflow-wrap: anywhere;
}
.team-list dd span {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--gray-1);
}

/* ---------- 15. CTA Strip — CIS misty blue band with midnight CTA ---------- */
.cta-strip {
  background: var(--misty-blue);
  color: var(--dark-blue);
  min-height: 178px;
  padding: 2.5rem 0;
  display: flex;
  align-items: center;
}
.cta-strip .shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  text-align: center;
}
.cta-strip h2 {
  margin: 0;
  max-width: 56ch;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--fs-h2);
  letter-spacing: 0;
  line-height: var(--lh-snug);
  color: var(--dark-blue);
}
.cta-strip .arrow-cta {
  background: var(--midnight);
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  padding: 0.5rem 1.6rem;
  min-height: 44px;
  border: 0;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.cta-strip .arrow-cta::after { content: none; }
.cta-strip .arrow-cta:hover { background: var(--dark-blue); color: #fff; }

/* Newsletter band — CIS misty blue with midnight submit btn */
.newsletter-band {
  background: var(--misty-blue);
  color: var(--dark-blue);
  padding: 2.5rem 0;
  min-height: 178px;
  display: flex;
  align-items: center;
}
.newsletter-band .shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  text-align: center;
}
.newsletter-band .nb-headline {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--fs-h2);
  letter-spacing: 0;
  line-height: var(--lh-snug);
  margin: 0;
  color: var(--dark-blue);
}
.newsletter-band form {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: 480px;
}
.newsletter-band input[type="email"] {
  flex: 1;
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--midnight);
  padding: 0.6rem 0.4rem;
  color: var(--dark-blue);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  outline: none;
  text-transform: uppercase;
}
.newsletter-band input[type="email"]::placeholder { color: rgba(7, 19, 48, 0.55); text-transform: uppercase; }
.newsletter-band button {
  background: var(--midnight);
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  padding: 0 1.6rem;
  min-height: 44px;
  align-self: end;
}
.newsletter-band button:hover { background: var(--ink); }

/* Section title — extracted Refinery: 38px / 0.95 lh / uppercase / weight 350-400 */
.section-title {
  font-family: var(--font-zh);
  font-weight: 600;
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);            /* 28 → 41px (matches .transit-step h3) */
  letter-spacing: var(--tracking-default);
  line-height: var(--lh-snug);
  color: var(--ink-deep);
  margin: 0 0 var(--space-11);                        /* 40px */
}
.section-body {
  font-family: var(--font-sans);
  font-weight: var(--fw-light);                        /* 500 */
  font-size: clamp(1.4rem, 1.55vw, 1.55rem);           /* 22.4 → 24.8px */
  line-height: var(--lh-body);
  letter-spacing: var(--tracking-default);
  color: var(--ink-deep);
  max-width: var(--text-max);
  margin: 0;
}
.section-body-zh {
  font-family: var(--font-zh);
  font-weight: var(--fw-light);                         /* 500 */
  font-size: clamp(1.1rem, 1.2vw, 1.2rem);             /* 17.6 → 19.2px */
  line-height: var(--lh-body);
  color: var(--gray-1);
  max-width: var(--text-max);
  margin: var(--space-5) 0 0;
}
.learn-more {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--fs-caption);                        /* 14px */
  letter-spacing: var(--tracking-eyebrow);             /* 0.08em */
  text-transform: uppercase;
  color: var(--ink-deep);
  margin-top: var(--space-9);                          /* 28px */
  padding-bottom: var(--space-3);                      /* 8px */
  border-bottom: 1px solid var(--ink-deep);
  transition: border-color var(--dur) var(--ease);
}
.learn-more:hover { border-bottom-color: var(--midnight); }

/* Inline "了解更多 / read more" link inside body copy */
.inline-link {
  color: var(--midnight);
  text-decoration: underline;
  margin-left: 0.4rem;
}
.inline-link:hover { color: var(--dark-blue); }

/* Refinery overlay wordmark style — used over section image */
.feature-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink-deep);
  margin-bottom: 2.4rem;
}
.feature-image img,
.feature-image video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
/* ---------- 17. Footer — Figma: black bg, embedded contact form on right ---------- */
.site-footer {
  background: #000;
  color: var(--white);
  padding-top: 3.125rem;            /* 50px (Figma top) */
  padding-bottom: 1rem;
  min-height: 0;
}
.site-footer .footer-info-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) repeat(3, minmax(180px, 1fr));
  gap: clamp(1.4rem, 3vw, 3rem);
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}
.site-footer .footer-info-grid section {
  display: grid;
  gap: 0.7rem;
  min-width: 0;
}
.site-footer .footer-info-grid h5 {
  margin: 0 0 0.25rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
  color: var(--misty-blue);          /* readable on dark footer bg */
}
.site-footer .footer-info-grid a,
.site-footer .footer-info-grid p {
  margin: 0;
  color: var(--white);
  font-family: var(--font-zh);
  font-size: var(--fs-body);
  line-height: var(--lh-comfort);
}
.site-footer .footer-info-grid a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}
.site-footer .footer-info-grid a:hover {
  color: var(--misty-blue);
}
.site-footer .footer-contact h4 {
  font-family: var(--font-sans);
  font-weight: var(--fw-light);
  font-size: var(--fs-h2);               /* 28px */
  letter-spacing: 0;
  text-transform: none;
  color: var(--white);
  margin: 0 0 1.4rem;
}
.site-footer .footer-contact p {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--fs-lede);               /* 20px */
  letter-spacing: 0.5px;
  line-height: var(--lh-caption);
  color: var(--white);
  margin: 0 0 1.2rem;
}
.site-footer .footer-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.18);
  font-family: var(--font-sans);
  font-size: var(--fs-body);                  /* 16px */
  letter-spacing: 0.75px;
  text-transform: uppercase;
  color: var(--white);
  font-weight: 500;
}
.site-footer .footer-base nav { display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.site-footer .footer-base a { color: var(--white); }
.site-footer .footer-base a:hover { color: var(--misty-blue); }

/* ---------- 18. Mobile Nav (only on small screens) ---------- */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 90;
  transform: translateY(-100%);
  transition: transform var(--dur-slide) var(--ease);
  grid-template-rows: auto 1fr auto;
  padding: 7rem var(--shell-pad) 3rem;
  visibility: hidden;
  pointer-events: none;
}
@media (max-width: 720px) {
  .mobile-nav { display: grid; visibility: visible; pointer-events: auto; }
}
.mobile-nav.is-open { transform: translateY(0); display: grid; visibility: visible; pointer-events: auto; }
.mobile-nav nav {
  display: grid;
  gap: 1.2rem;
  align-content: center;
}
.mobile-nav a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: baseline;
  font-weight: 700;
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  color: var(--ink-deep);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.7rem;
}
.mobile-nav a .num {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-caption);
  color: var(--gray-1);
}
.mobile-nav a .en {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
  color: var(--gray-1);
  text-align: right;
}
.mobile-nav a:hover { color: #fff; background: var(--midnight); padding-left: 0.5rem; }

/* ---------- 19. Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1000ms var(--ease), transform 1000ms var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  /* Disable gratuitous transitions site-wide; keep essentials (focus rings, color) */
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .image-grid figure:hover img,
  .image-carousel .carousel-track > figure:hover img,
  .image-grid figure:hover figcaption { transform: none !important; }
}

/* ---------- 20. Skip link ---------- */
.skip-link {
  position: absolute;
  left: -1000px;
  top: 0.5rem;
  background: var(--ink-deep);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 200;
  font-weight: 600;
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
  text-decoration: none;
}
.skip-link:focus,
.skip-link:focus-visible {
  left: 1rem;
  outline: 2px solid var(--midnight);
  outline-offset: 2px;
}

/* ---------- 21. Floor Plans (interactive) ---------- */
.floors {
  display: grid;
  grid-template-columns: 0.45fr 0.55fr;
  gap: var(--gap-xl);
  align-items: start;
}

/* (removed: interactive floor-plans styles — spec wants static side-by-side images) */
.floors-graphic {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 4px solid var(--ink-deep);
  border-bottom: 4px solid var(--ink-deep);
  padding: 1rem 0;
}
.floor-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 1rem;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-default);
  background: var(--paper-soft);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.floor-row:hover { border-color: var(--ink-deep); }
.floor-row.is-active { background: var(--midnight); border-color: var(--midnight); color: #fff; }
.floor-row.is-active .floor-num,
.floor-row.is-active .floor-name,
.floor-row.is-active .floor-status { color: #fff; }
.floor-row .floor-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-body);
  color: var(--ink-deep);
}
.floor-row .floor-name { color: var(--ink); font-weight: 500; }
.floor-row .floor-status {
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
  color: var(--gray-1);
}

/* ---------- 22. Press list ---------- */
.press-list { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.press-list a {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2rem;
  align-items: baseline;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--rule);
  transition: background var(--dur) var(--ease), padding var(--dur) var(--ease);
}
.press-list a:hover {
  background: var(--paper-soft);
  padding-left: 1rem;
  padding-right: 1rem;
}
.press-list strong {
  font-family: var(--font-zh);
  font-weight: 600;
  font-size: clamp(1.1rem, 1.2vw, 1.25rem);   /* 17.6 → 20px */
  color: var(--ink-deep);
}
.press-list .press-source {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(0.95rem, 1.05vw, 1.05rem); /* 15.2 → 16.8px */
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
  color: var(--gray-1);
  white-space: nowrap;
}
.press-list .press-arrow {
  font-family: var(--font-display);
  font-size: var(--fs-lede);
  color: var(--ink-deep);
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}
.press-list a:hover .press-arrow { transform: translateX(8px); color: var(--ink-deep); }

/* ---------- Offices floor-plan cards — click to expand to lightbox ---------- */
.floor-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.6rem);
}
.floor-plan-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.floor-plan-thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--rule);
  cursor: zoom-in;
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.floor-plan-thumb:hover {
  border-color: var(--midnight);
  box-shadow: 0 6px 20px rgba(12, 65, 96, 0.10);
}
.floor-plan-thumb img {
  width: 100%;
  height: auto;
  display: block;
}
.floor-plan-zoom {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--midnight);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.floor-plan-thumb:hover .floor-plan-zoom,
.floor-plan-thumb:focus-visible .floor-plan-zoom {
  opacity: 1;
  transform: translateY(0);
}
.floor-plan-cap {
  display: grid;
  gap: 0.3rem;
}
.floor-plan-cap-title {
  font-family: var(--font-zh);
  font-weight: 600;
  font-size: var(--fs-lede);
  letter-spacing: 0.04em;
  line-height: var(--lh-snug);
  color: var(--ink-deep);
}
.floor-plan-cap-sub {
  font-family: var(--font-zh);
  font-weight: 400;
  font-size: var(--fs-body);
  color: var(--gray-1);
  line-height: var(--lh-body);
}
.floor-plan-lightbox {
  position: fixed; inset: 0;
  background: rgba(7, 19, 48, 0.92);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  cursor: zoom-out;
  animation: floorPlanFadeIn 200ms var(--ease);
}
.floor-plan-lightbox[hidden] { display: none !important; }
@keyframes floorPlanFadeIn { from { opacity: 0; } to { opacity: 1; } }
.floor-plan-lightbox-close {
  position: absolute; top: 1.4rem; right: 1.4rem;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--white); color: var(--ink-deep);
  font-size: 1.8rem; line-height: 1; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.floor-plan-lightbox-inner {
  margin: 0;
  max-width: min(100%, 1200px); max-height: 100%;
  display: flex; flex-direction: column; gap: 1.2rem;
  cursor: default;
}
.floor-plan-lightbox-inner img {
  width: 100%; max-height: 78vh; object-fit: contain;
  background: var(--white); display: block;
}
.floor-plan-lightbox-cap {
  color: var(--white); font-family: var(--font-zh); font-weight: 500;
  font-size: var(--fs-lede); text-align: center; letter-spacing: 0.04em;
}
@media (max-width: 720px) {
  .floor-plan-grid { grid-template-columns: 1fr; }
}

/* ---------- 23. Form ---------- */
/* Contact page — Refinery side-by-side: narrow info (~22%) + wide form (~70%) */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.28fr) minmax(0, 0.72fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  font-family: var(--font-zh);
  font-size: var(--fs-body);
  line-height: var(--lh-comfort);
  color: var(--ink-deep);
}
.contact-info-title {
  font-family: var(--font-zh);
  font-weight: 500;
  font-size: clamp(1.8rem, 2.4vw, 2.4rem);
  letter-spacing: 0;
  line-height: var(--lh-snug);
  color: var(--ink-deep);
  margin: 0 0 0.5rem;
}
.contact-info-line {
  margin: 0;
  /* no border, no divider */
}
.contact-info-line a { color: var(--ink-deep); }
.contact-info-line a:hover { color: var(--midnight-2); text-decoration: underline; text-underline-offset: 0.2em; }
.contact-info-tag {
  display: inline-block;
  font-size: var(--fs-caption);
  color: var(--gray-1);
  letter-spacing: var(--tracking-eyebrow);
  margin-top: 0.15rem;
}
.contact-info-link {
  margin-top: 0.8rem;
  font-family: var(--font-sans);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--midnight);
  border-bottom: 1px solid var(--midnight);
  padding-bottom: 0.2rem;
  align-self: flex-start;
}
.contact-info-link:hover { color: var(--midnight-2); border-bottom-color: var(--midnight-2); }
.contact-form { width: 100%; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.inquiry-form {
  display: grid;
  gap: 1.4rem;
}
.inquiry-form .row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
.inquiry-form .field { display: grid; gap: 0.4rem; }
.inquiry-form label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(0.98rem, 1.05vw, 1.1rem);   /* 15.7 → 17.6px */
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
  color: var(--gray-1);
}
.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  font-family: var(--font-zh);
  font-size: clamp(1.1rem, 1.2vw, 1.2rem);     /* 17.6 → 19.2px */
  padding: 0.95rem 0;
  border: 0;
  border-bottom: 2px solid var(--ink-deep);
  background: transparent;
  color: var(--ink-deep);
  border-radius: 0;
  resize: vertical;
  font-weight: 500;
  transition: box-shadow var(--dur) var(--ease);
}
.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
  outline: none;
  border-bottom-color: var(--midnight);
  box-shadow: inset 0 -2px 0 0 var(--midnight);
}
.inquiry-form textarea { min-height: 120px; }
.inquiry-form .interest-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.inquiry-form input[type="radio"] { display: none; }
.inquiry-form .interest-pill {
  border: 2px solid var(--midnight);
  padding: 0.6rem 1.2rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--midnight);
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.inquiry-form .interest-pill:hover {
  background: var(--misty-blue);
}
.inquiry-form input[type="radio"]:focus-visible + .interest-pill {
  outline: 2px solid var(--midnight);
  outline-offset: 4px;
}
.inquiry-form input[type="radio"]:checked + .interest-pill {
  background: var(--midnight);
  color: #fff;
}
.inquiry-form .submit-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}
.inquiry-form .submit-note { font-size: clamp(0.95rem, 1.05vw, 1.05rem); color: var(--gray-1); }
.form-thanks {
  display: grid;
  gap: 0.35rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--rule);
}
.form-thanks strong {
  font-family: var(--font-display);
  font-size: var(--fs-lede);
  font-weight: 600;
  text-transform: uppercase;
}
.form-thanks a {
  width: max-content;
  border-bottom: 1px solid var(--ink-deep);
}
.form-thanks[hidden] { display: none; }

/* ---------- 24. Two-column lists (neighborhood) ---------- */
.hood-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.hood-grid article {
  padding: 2rem 1.4rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "icon title"
    "body  body";
  align-items: center;
  column-gap: 0.6rem;
  row-gap: 0.4rem;
}
.hood-grid article:nth-child(3n) { border-right: 0; }
.hood-grid article > .ico {
  grid-area: icon;
  width: clamp(26px, 1.9vw, 32px);
  height: clamp(26px, 1.9vw, 32px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hood-grid article > .ico img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* `.ico--accent` keeps native icon linework — no midnight tile, no invert */
.hood-grid article > .ico.ico--accent { background: transparent; }
.hood-grid article > .ico.ico--accent img { filter: none; }
.hood-grid h3 { grid-area: title; margin: 0; font-size: clamp(1.5rem, 1.65vw, 1.65rem); font-weight: 600; }
.hood-grid p { grid-area: body; color: var(--gray-1); font-size: clamp(1.05rem, 1.15vw, 1.15rem); line-height: var(--lh-loose); margin: 0; }

/* ---------- 23b. Image Carousel — Refinery card-slider pattern, 3-per-row ---------- */
.image-carousel {
  position: relative;
  /* Slightly wider than its container — escapes shell-pad by ~50% on each side */
  width: calc(100% + var(--shell-pad));
  margin-left: calc(var(--shell-pad) * -0.5);
}
/* Full-bleed version — escapes shell padding entirely (legacy) */
/* Floor-plan variant — white card with contained PNG drawings */
.image-carousel--floorplans .carousel-track > figure {
  background: #fff;
}
.image-carousel--floorplans .carousel-track > figure img {
  object-fit: contain;
  padding: 1rem;
}
.image-carousel .carousel-viewport {
  overflow: hidden;
  width: 100%;
}
.image-carousel .carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * var(--carousel-gap, 1rem)) / 3);
  gap: var(--carousel-gap, 1rem);
  transition: transform var(--dur-slide) cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.image-carousel .carousel-track > figure {
  margin: 0;
  aspect-ratio: 1 / 1;            /* SQUARE */
  overflow: hidden;
  background: var(--paper-deep);
  position: relative;
}
.image-carousel .carousel-track > figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}
.image-carousel .carousel-track > figure:hover img { transform: scale(1.04); }
.image-carousel .carousel-track > figure figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.6rem 0.8rem;
  background: linear-gradient(transparent, rgba(7, 19, 48, 0.65));
  color: #fff;
  font-family: var(--font-zh);
  font-weight: var(--fw-light);
  font-size: var(--fs-caption);
  letter-spacing: var(--tracking-default);
}

/* Arrow buttons — Refinery style: 35×35 round, semi-transparent white,
   inside the carousel sitting on top of images */
.image-carousel .carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: 0;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 5;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--midnight);
  font-weight: 500;
  transition: all var(--dur) var(--ease);
}
.image-carousel .carousel-arrow svg { width: 35px; height: 35px; display: block; }
.image-carousel .carousel-arrow:hover { background: #fff; color: var(--dark-blue); }
.image-carousel .carousel-arrow:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}
.image-carousel .carousel-arrow.prev { left: 18px; }
.image-carousel .carousel-arrow.next { right: 18px; }

@media (max-width: 1100px) {
  .image-carousel .carousel-track {
    grid-auto-columns: calc((100% - var(--carousel-gap, 1rem)) / 2);
  }
}
@media (max-width: 720px) {
  .image-carousel .carousel-track {
    grid-auto-columns: 80%;
  }
  .image-carousel .carousel-arrow.prev { left: 8px; }
  .image-carousel .carousel-arrow.next { right: 8px; }
}

/* ---------- 24a. Real Map (Leaflet + OpenStreetMap) ---------- */
.info-map {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 560px;
  background: var(--paper-soft);
  border: 1px solid var(--rule);
  overflow: hidden;
}
.info-map .leaflet-map {
  width: 100%;
  height: 100%;
  background: var(--paper);
}

/* CAAM map marker — use square CIS logo on white circle */
.caam-marker {
  background: transparent;
  border: 0;
}
.caam-marker .pin {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--midnight);
  display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(7,19,48,0.28);
  position: relative;
  padding: 8px;
}
.caam-marker .pin img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
.caam-marker .pin::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: var(--midnight);
  opacity: 0.3;
  animation: pulse 2.4s var(--ease) infinite;
  z-index: -1;
}
@keyframes pulse {
  0%   { transform: scale(0.8);  opacity: 0.5; }
  100% { transform: scale(1.8);  opacity: 0; }
}

.spot-marker {
  background: transparent;
  border: 0;
  transition: opacity 600ms var(--ease);
}
/* Smooth route fade — Leaflet polylines use stroke-opacity */
.leaflet-overlay-pane path {
  transition: stroke-opacity 600ms var(--ease);
}
/* Solid colored dots — no letter label, colour conveys category */
.spot-marker .pin {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--ink-deep);
  border: 2px solid var(--white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
  display: block;
  font-size: 0;
  text-indent: -9999px;
  transition: transform var(--dur-fast) var(--ease);
}
.spot-marker:hover .pin { transform: scale(1.35); }

/* Category-specific fill colours */
.spot-marker .pin[data-cat="bank"]    { background: var(--cat-bank); }
.spot-marker .pin[data-cat="conv"]    { background: var(--cat-conv); }
.spot-marker .pin[data-cat="cafe"]    { background: var(--cat-cafe); }
.spot-marker .pin[data-cat="dine"]    { background: var(--cat-dine); }
.spot-marker .pin[data-cat="art"]     { background: var(--cat-art); }
.spot-marker .pin[data-cat="health"]  { background: var(--cat-health); }
.spot-marker .pin[data-cat="transit"] { background: var(--cat-transit); }
.spot-marker .pin[data-cat="tech"]    { background: var(--cat-tech); }
.spot-marker .pin[data-cat="park"]    { background: var(--cat-park); }

/* Hover tooltip — CAAM CIS midnight background, no close button (hover-driven) */
.leaflet-tooltip.caam-tooltip {
  background: var(--ink-deep);
  color: var(--white);
  border: 0;
  border-radius: 0;
  padding: 0.45rem 0.75rem;
  font-family: var(--font-zh);
  font-weight: 500;
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  transition: opacity 600ms var(--ease);
}
.leaflet-tooltip.caam-tooltip::before { border-top-color: var(--ink-deep); }
.leaflet-tooltip-top.caam-tooltip::before { border-top-color: var(--ink-deep); }
.leaflet-tooltip-bottom.caam-tooltip::before { border-bottom-color: var(--ink-deep); }
.leaflet-tooltip-left.caam-tooltip::before { border-left-color: var(--ink-deep); }
.leaflet-tooltip-right.caam-tooltip::before { border-right-color: var(--ink-deep); }

/* Leaflet popup style override */
.leaflet-popup-content-wrapper {
  border-radius: 0 !important;
  background: var(--ink-deep) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2) !important;
}
.leaflet-popup-content {
  margin: 0.6rem 0.9rem !important;
  font-family: var(--font-zh) !important;
  font-weight: 500 !important;
  font-size: var(--fs-caption) !important;
  line-height: var(--lh-caption) !important;
  color: var(--white);
}
.leaflet-popup-content .pop-en {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--fs-caption);
  font-weight: 400;
  letter-spacing: var(--tracking-default);
  color: rgba(255,255,255,0.7);
  margin-top: 0.2rem;
}
.leaflet-popup-tip {
  background: var(--ink-deep) !important;
}
.leaflet-popup-close-button {
  color: var(--white) !important;
  padding: 6px 8px 0 0 !important;
}

/* Hide leaflet's default attribution styling clutter, keep credit subtle */
.leaflet-control-attribution {
  background: rgba(255,255,255,0.7) !important;
  font-family: var(--font-sans) !important;
  font-size: 10px !important;
}

/* ---------- 24aa. Interactive Neighborhood Map ---------- */
.hood-map-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  border: 1px solid var(--rule);
  overflow: hidden;
}
.hood-map-filters {
  padding: 1.6rem 1.4rem;
  background: var(--paper-soft);
  border-right: 1px solid var(--rule);
}
.hood-map-filters h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-body);
  text-transform: uppercase;
  letter-spacing: 0;
  margin: 0 0 1rem;
  color: var(--ink-deep);
}
.hood-map-filters .filter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.hood-map-filters .filter-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  padding: 0.5rem 0.6rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--fs-caption);
  color: var(--ink-deep);
  border: 1px solid transparent;
  background: var(--white);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.hood-map-filters .filter-list li:hover { border-color: var(--ink-deep); }
.hood-map-filters .filter-list li.is-active {
  background: var(--midnight);
  border-color: var(--ink-deep);
}
.hood-map-filters .filter-list li .filter-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--ink-deep);
  border: 2px solid var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}
.hood-map-filters .filter-list li[data-cat="all"]    .filter-dot { background: var(--ink-deep); }
.hood-map-filters .filter-list li[data-cat="bank"]   .filter-dot { background: var(--cat-bank); }
.hood-map-filters .filter-list li[data-cat="conv"]   .filter-dot { background: var(--cat-conv); }
.hood-map-filters .filter-list li[data-cat="cafe"]   .filter-dot { background: var(--cat-cafe); }
.hood-map-filters .filter-list li[data-cat="dine"]   .filter-dot { background: var(--cat-dine); }
.hood-map-filters .filter-list li[data-cat="art"]    .filter-dot { background: var(--cat-art); }
.hood-map-filters .filter-list li[data-cat="health"] .filter-dot { background: var(--cat-health); }
.hood-map-filters .filter-list li .filter-count {
  margin-left: auto;
  font-size: var(--fs-caption);
  color: var(--gray-1);
  font-family: var(--font-sans);
}

.hood-map-canvas {
  position: relative;
  background: var(--paper);
  aspect-ratio: 16 / 9;
  min-height: 600px;
  overflow: hidden;
}
.hood-map-canvas .leaflet-map { width: 100%; height: 100%; }

@media (max-width: 1100px) {
  .hood-map-wrap { grid-template-columns: 1fr; }
  .hood-map-filters { border-right: 0; border-bottom: 1px solid var(--rule); }
  .hood-map-filters .filter-list { grid-template-columns: repeat(3, 1fr); }
}

/* CTA link under hero block */
.hero-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--fs-caption);
  text-transform: uppercase;
  color: var(--ink-deep);
  margin-top: 2.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--ink-deep);
  letter-spacing: 0;
}
.hero-link:hover { border-bottom-color: var(--midnight); }

/* ---------- 25b. Pull Quote ---------- */
.pull-quote {
  border-top: 4px solid var(--midnight);
  border-bottom: 4px solid var(--midnight);
  padding: clamp(4rem, 8vw, 7rem) 0;
  text-align: center;
  max-width: 1080px;
  margin: 0 auto;
}
.pull-quote q {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: var(--lh-h3);
  color: var(--ink-deep);
  letter-spacing: 0;
  quotes: "" "";
  display: block;
  margin: 0;
}
.pull-quote .quote-zh {
  display: block;
  margin-top: 1.4rem;
  font-family: var(--font-zh);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: var(--gray-1);
  line-height: var(--lh-comfort);
}

/* ---------- 26. Responsive ---------- */
@media (max-width: 1100px) {
  .specs { grid-template-columns: repeat(2, 1fr); }
  .specs article { border-right: 0; }
  .specs article:nth-child(odd) { border-right: 1px solid var(--rule); }
  .text-block, .text-icons, .floors {
    grid-template-columns: 1fr;
    gap: var(--gap-lg);
  }
  .hood-grid { grid-template-columns: repeat(2, 1fr); }
  .hood-grid article { border-right: 0; }
  .hood-grid article:nth-child(odd) { border-right: 1px solid var(--rule); }
  .site-footer .footer-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .venue-grid,
  .venue-grid-three { grid-template-columns: repeat(2, 1fr); }
  .split-editorial { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  :root { --section-pad: 5rem; }
  .shell { min-width: 0; }
  .header-bar { grid-template-columns: auto auto; }
  .site-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  /* keep AQI widget visible on mobile next to menu toggle */
  .aqi-widget {
    padding: 0.28rem 0.55rem;
    font-size: 0.78rem;
  }
  .brand-mark-image { width: 156px; }
  .page-hero-text,
  .hero-text {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
    box-sizing: border-box;
  }
  .page-hero-text h1,
  .page-hero-text .lede,
  .page-hero-text .lede-zh,
  .hero-text .hero-sub,
  .hero-text .hero-body {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: normal;
    white-space: normal;
    hyphens: none;
  }
  .page-hero-text h1 {
    font-size: clamp(2rem, 7vw, 2.6rem);
    line-height: 1.12;
    max-width: 100%;
  }
  .page-hero-text h1 .h-zh { font-size: 0.72em; }
  .page-hero-text .lede,
  .hero-text .hero-body,
  .page-hero-text .lede-zh {
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    max-width: 100%;
  }
  .hero-text .hero-sub {
    font-size: clamp(1.25rem, 5vw, 1.6rem);
    line-height: var(--lh-snug);
    max-width: 100%;
  }
  .hero-actions,
  .section-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .hero-actions .btn,
  .section-actions .btn,
  .hero-actions .arrow-cta,
  .section-actions .arrow-cta {
    width: 100%;
    justify-content: center;
  }
  .section-tight nav {
    display: grid !important;
    grid-template-columns: 1fr;
    justify-content: stretch !important;
    gap: 0.5rem !important;
  }
  .section-tight nav .nav-link {
    white-space: normal;
    overflow-wrap: anywhere;
  }


  .specs, .hood-grid { grid-template-columns: 1fr; }
  .specs article, .hood-grid article { border-right: 0; }
  .pillars { grid-template-columns: 1fr; }
  .venue-grid,
  .venue-grid-three { grid-template-columns: 1fr; }
  .spec-sheet > div {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
  .spec-sheet dd { text-align: left; }
  .team-list > div {
    grid-template-columns: 1fr;
    gap: 0.3rem;
    padding: 1rem 0;
  }

  .image-grid {
    grid-template-columns: 1fr !important;
  }
  .image-grid figure { grid-column: span 1 !important; aspect-ratio: 4/5 !important; }
  .icon-list { grid-template-columns: 1fr !important; }
  .icon-list li { grid-template-columns: 56px 1fr; gap: 1rem; padding: 1.2rem 0; }

  .site-footer .footer-info-grid { grid-template-columns: 1fr; }
  .site-footer .footer-base { flex-direction: column; align-items: flex-start; gap: 1rem; }

  .inquiry-form .row-2 { grid-template-columns: 1fr; }
  .inquiry-form .submit-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .cta-strip .shell { grid-template-columns: 1fr; gap: 1.4rem; }
}

/* ---------- 28. Print ---------- */
@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .mobile-nav,
  .menu-toggle,
  .cta-strip,
  .image-carousel .carousel-arrow,
  .reveal { opacity: 1 !important; transform: none !important; }

  .site-header,
  .site-footer,
  .skip-link,
  .mobile-nav,
  .menu-toggle,
  .cta-strip,
  .image-carousel .carousel-arrow,
  video { display: none !important; }

  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #666; }

  .section,
  .section-tight { padding: 1rem 0 !important; page-break-inside: avoid; }
  h1, h2, h3 { page-break-after: avoid; }

  .page-hero-image,
  .hero-image { max-height: 4cm; }
  img { max-width: 100%; }
}
