/* ==================================================================
   Magnus Falco — portal styles (gateway, agriculture, solar).
   Standalone: does NOT depend on style.css / overrides.css.
   Fonts are self-hosted (Google Fonts is blocked in mainland China).
   ================================================================== */

/* ---------------- Fonts ---------------- */
@font-face { font-family: "Assistant"; font-weight: 400; font-display: swap; src: url("fonts/assistant-hebrew-400.woff2") format("woff2"); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Assistant"; font-weight: 600; font-display: swap; src: url("fonts/assistant-hebrew-600.woff2") format("woff2"); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Assistant"; font-weight: 700; font-display: swap; src: url("fonts/assistant-hebrew-700.woff2") format("woff2"); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Assistant"; font-weight: 400; font-display: swap; src: url("fonts/assistant-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Assistant"; font-weight: 600; font-display: swap; src: url("fonts/assistant-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Assistant"; font-weight: 700; font-display: swap; src: url("fonts/assistant-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Frank Ruhl Libre"; font-weight: 400; font-display: swap; src: url("fonts/frank-hebrew-400.woff2") format("woff2"); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Frank Ruhl Libre"; font-weight: 500; font-display: swap; src: url("fonts/frank-hebrew-500.woff2") format("woff2"); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Frank Ruhl Libre"; font-weight: 400; font-display: swap; src: url("fonts/frank-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Frank Ruhl Libre"; font-weight: 500; font-display: swap; src: url("fonts/frank-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ==================================================================
   CONTENTS
   1. Tokens (palette, context variables)      9. Gateway (home)
   2. Base + typography                        10. Program pages: stops, route, ledger, offer, audience, rules
   3. Brand, language switch                   11. Agriculture: storage, spec strip, operations, FAQ
   4. Buttons (ONE system)                     12. Forms (inquiry) + thank-you
   5. Header (top bar)                         13. Split pages: next-steps, contact, empty gallery
   6. Sections, hero, band, film               14. Footer (ONE layout)
   7. Cards (nav card + info item)             15. Accessibility toolbar + settings
   8. Gallery + lightbox                       16. Accessibility statement
   Palette "Night & Ivory, brass as jewellery" (docs/review-design.md section 2.2).
   ================================================================== */

/* ---------------- 1. Tokens ---------------- */
:root {
  /* Surfaces */
  --night: #0F2130;     /* the one dark: hero veil, one dark section, footer, header, primary button on light */
  --night-2: #182E3F;   /* raised surface on dark only (hover, panels, form fields on dark) */
  --ivory: #F8F6F1;     /* page background (about 70% of every page) */
  --stone: #EEEAE2;     /* alternate light section, at most one per page */
  --white: #FFFFFF;     /* card / form surface */
  /* Text. All pairs are WCAG AA (ratio in brackets) */
  --text: #16232F;      /* on ivory 14.8, stone 13.3, white 16.0 */
  --muted: #505C66;     /* on ivory 6.4, stone 5.7 */
  --on-night: #F3F1EC;        /* on night 14.5, night-2 12.4 */
  --on-night-muted: #B3BDC4;  /* on night 8.6, night-2 7.3 */
  /* Brass: jewellery. NEVER as text on a light background */
  --brass: #C4A262;       /* on night 6.8, night-2 5.8; night on brass 6.8 */
  --brass-light: #E3CC97; /* large numbers and hovers on dark, 10.4 on night */
  --brass-ink: #7A5A1E;   /* brass for text/icons on light: ivory 5.9, stone 5.3, white 6.4 */
  --line: rgba(22, 35, 47, .12);
  --line-night: rgba(243, 241, 236, .16);
  --wa: #1f8f4e;

  /* Legacy names (pages still use them): same values, do not use in new code */
  --ink: var(--night); --navy: var(--night); --navy-2: var(--night-2);
  --gold: var(--brass); --gold-light: var(--brass-light); --gold-ink: var(--brass-ink);
  --cream: var(--stone); --paper: var(--ivory);
  --on-dark: var(--on-night); --on-dark-muted: var(--on-night-muted); --line-dark: var(--line-night);

  /* Image veils: darken only the text side, photos stay bright */
  --veil-strong: color-mix(in srgb, var(--night) 80%, transparent);
  --veil-mid: color-mix(in srgb, var(--night) 55%, transparent);
  --veil-soft: color-mix(in srgb, var(--night) 28%, transparent);

  --serif: "Frank Ruhl Libre", Georgia, "Times New Roman", serif;
  --sans: "Assistant", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --cjk: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --cjk-serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "Source Han Serif CN", "Noto Serif CJK SC", var(--cjk);

  --gutter: clamp(16px, 5vw, 72px);
  --section-y: clamp(56px, 8vw, 104px);
  --radius: 10px;       /* cards and images; buttons are pills */
  --max: 1200px;

  /* Context variables: components read these, so the same markup works on light and on dark.
     Light is the default; dark containers (below) and .on-light switch them. */
  --fg: var(--text);
  --fg-2: var(--muted);
  --accent: var(--brass-ink);     /* kicker, icons, links, step lines */
  --rule: var(--line);
  --num: var(--text);             /* big numbers */
  --btn-bg: var(--night);
  --btn-fg: var(--ivory);
  --btn-hover: var(--night-2);
  --focus: var(--brass-ink);
  --panel-bg: var(--white);
  --field-bg: var(--white);
  --field-line: color-mix(in srgb, var(--text) 55%, transparent);
  --scheme: light;
  --err: #A8321F;                 /* error text/border on light (7:1 on white) */
  --to-end: to right;             /* gradient direction towards the inline end (flips in RTL) */
}
[dir="rtl"] { --to-end: to left; }

/* Dark contexts. Add class "dark" to a section for the one dark band of a page; these are always dark. */
.dark, .hero, .band, .topbar, .site-footer, .gate-head, .gate-foot, .gateway, .lightbox, .a11y {
  --fg: var(--on-night);
  --fg-2: var(--on-night-muted);
  --accent: var(--brass);
  --rule: var(--line-night);
  --num: var(--brass-light);
  --btn-bg: var(--brass);
  --btn-fg: var(--night);
  --btn-hover: var(--brass-light);
  --focus: var(--brass);
  --panel-bg: color-mix(in srgb, var(--on-night) 5%, transparent);
  --field-bg: color-mix(in srgb, var(--on-night) 7%, transparent);
  --field-line: color-mix(in srgb, var(--on-night) 45%, transparent);
  --scheme: dark;
  --err: #F4B8AB;
}
/* A light block (white card, form) inside a dark section */
.on-light {
  --fg: var(--text); --fg-2: var(--muted); --accent: var(--brass-ink); --rule: var(--line); --num: var(--text);
  --btn-bg: var(--night); --btn-fg: var(--ivory); --btn-hover: var(--night-2); --focus: var(--brass-ink);
  --panel-bg: var(--white); --field-bg: var(--white); --field-line: color-mix(in srgb, var(--text) 55%, transparent);
  --scheme: light; --err: #A8321F;
  color: var(--text);
}

/* ---------------- 2. Base + typography ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ivory); color: var(--text);
  font-family: var(--sans); font-size: 18px; line-height: 1.7; -webkit-font-smoothing: antialiased;
}
:lang(zh) body, html:lang(zh) { font-family: var(--cjk); }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }

/* Display and section headings: Frank Ruhl. Everything under 24px (card/item titles): Assistant 700. */
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 500; line-height: 1.12; }
h1 { font-size: clamp(2.5rem, 4.6vw, 3.75rem); letter-spacing: -.01em; }
h3 { font-family: var(--sans); font-weight: 700; font-size: 1.25rem; line-height: 1.3; }
h3.h3-lg, .founder h3, .ag-spec-head h3, .ledger h3, .quote-title { font-family: var(--serif); font-weight: 500; font-size: 1.625rem; line-height: 1.2; }
html:lang(zh) h1, html:lang(zh) h2 { font-family: var(--cjk-serif); font-weight: 600; letter-spacing: .02em; }
html:lang(zh) h3 { font-family: var(--cjk); font-weight: 700; }
html:lang(zh) h3.h3-lg, html:lang(zh) .founder h3, html:lang(zh) .ag-spec-head h3, html:lang(zh) .ledger h3, html:lang(zh) .quote-title { font-family: var(--cjk-serif); font-weight: 600; }
/* Emphasis in a headline is a line break, never colour or italics */
h1 em, h2 em, h3 em, .dark em, .hero em, .band em, .page-head em, .gateway em { font-style: normal; font-weight: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--brass); color: var(--night); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[dir="rtl"] .icon.flip { transform: scaleX(-1); }
.ltr-value { direction: ltr; unicode-bidi: isolate; }
.note { margin-top: 18px; font-size: 14px; color: var(--fg-2); }

/* ---------------- 3. Brand, language switch ---------------- */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; direction: ltr; }
/* Falcon emblem + wordmark: SVG symbols in assets/logo.svg, coloured via currentColor */
.brand svg { display: block; flex: none; overflow: visible; }
.brand-mark { width: 52px; aspect-ratio: 64 / 56; color: var(--brass); }
.brand-type { height: 12px; aspect-ratio: 100.74 / 7; }
@media (max-width: 520px) {
  .brand { gap: 10px; }
  .brand-mark { width: 44px; }
  .brand-type { height: 10px; }
  .topbar .brand-type, .gate-head .brand-type { display: none; }
}
@media (max-width: 380px) { .brand-type { height: 9px; } }

/* Active language = bold with a brass underline (the brass is kept for the primary button) */
.lang-switch { display: inline-flex; border: 1px solid color-mix(in srgb, currentColor 45%, transparent); border-radius: 999px; padding: 2px; }
.lang-switch button {
  font: 600 13px/1 var(--sans); color: inherit; background: none; border: 0; cursor: pointer;
  padding: 7px 11px; border-radius: 999px; min-width: 40px;
}
.lang-switch button[lang="zh"] { font-family: var(--cjk); }
.lang-switch button[aria-pressed="true"] { color: var(--on-night); font-weight: 700; box-shadow: inset 0 -2px 0 var(--brass); border-radius: 0; }

/* ---------------- 4. Buttons: ONE system ----------------
   Primary: night on light, brass on dark (set by the context variables). Secondary: .btn-ghost, an outline.
   .btn-gold and .btn-wa are the primary button (kept so pages keep working); WhatsApp is a primary button + icon.
   One primary button per screen; at most two buttons side by side. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px;
  padding: 13px 24px; font: 600 16px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  border-radius: 999px; border: 1px solid var(--btn-bg); background: var(--btn-bg); color: var(--btn-fg);
  transition: background-color .2s, color .2s, border-color .2s;
}
html:lang(zh) .btn { font-family: var(--cjk); }
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn-ghost { background: transparent; color: var(--fg); border-color: currentColor; }
.btn-ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); border-color: currentColor; }
.btn-sm { min-height: 40px; padding: 9px 18px; font-size: 14px; }
.link-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent); text-decoration: none; }
.link-more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------------- 5. Header (top bar, same on every portal page) ---------------- */
.topbar, .gate-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter); color: var(--on-night); transition: padding .25s ease;
}
.topbar { position: fixed; inset: 0 0 auto; z-index: 20; }
/* The bar stays with the page. Its background sits on a pseudo-element so the bar itself has no backdrop-filter,
   which would turn it into the containing block of the fixed mobile menu. Transparent over a photo hero,
   solid once scrolled, or from the start when the page opens with a light section (site.js adds .solid). */
.topbar::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .25s ease;
  background: color-mix(in srgb, var(--night) 94%, transparent); border-bottom: 1px solid var(--line-night);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.topbar.scrolled, .topbar.solid { padding-block: 12px; }
.topbar.scrolled::before, .topbar.solid::before { opacity: 1; }
.gate-head { position: sticky; top: 0; z-index: 20; background: var(--night); border-bottom: 1px solid var(--line-night); }
/* Anchor jumps: land the target just below the (scrolled, ~70px) bar with a small breathing gap.
   Sections carry their own large top padding, so a negative scroll-margin of exactly that padding
   brings the section's first line (kicker / title) to the scroll-padding line. */
html { scroll-padding-top: 96px; }
@media (max-width: 960px) { html { scroll-padding-top: 86px; } }
.section[id] { scroll-margin-top: calc(-1 * var(--section-y)); }

.topbar nav, .gate-nav { display: flex; gap: 26px; align-items: center; }
.topbar nav a, .gate-nav a {
  text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; color: var(--on-night);
  padding-block: 4px; border-bottom: 2px solid transparent;
}
.topbar nav a:hover, .gate-nav a:hover { color: var(--brass-light); }
.topbar nav a[aria-current="page"], .gate-nav a[aria-current="page"] { border-bottom-color: var(--brass); }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.home-link { font-size: 14px; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.home-link:hover { color: var(--brass-light); }
/* WhatsApp in the bar: brass outline, filled once the bar is solid */
.topbar .btn-wa { background: transparent; color: var(--on-night); border-color: var(--brass); }
.topbar .btn-wa:hover { background: var(--brass); color: var(--night); }
.topbar.scrolled .btn-wa, .topbar.solid .btn-wa { background: var(--brass); color: var(--night); }
.topbar.scrolled .btn-wa:hover, .topbar.solid .btn-wa:hover { background: var(--brass-light); border-color: var(--brass-light); }
.menu-btn { display: none; background: none; border: 1px solid currentColor; color: inherit; border-radius: 10px; width: 44px; height: 44px; place-items: center; cursor: pointer; }

@media (max-width: 960px) {
  .topbar nav {
    position: fixed; inset: 0; z-index: 30; background: var(--night); flex-direction: column; justify-content: center;
    gap: 22px; transform: translateY(-100%); transition: transform .35s ease; visibility: hidden;
  }
  .topbar nav a { font-size: 22px; }
  .topbar nav.open { transform: none; visibility: visible; }
  .menu-btn { display: inline-grid; position: relative; z-index: 31; }
  .topbar .btn-wa .label, .home-link .label { display: none; }
  .topbar .btn-wa { padding: 9px; min-width: 40px; }
  .gate-nav { display: none; }
}
@media (max-width: 400px) {
  .topbar, .gate-head { gap: 8px; }
  .topbar-actions { gap: 8px; }
  .lang-switch button { min-width: 32px; padding: 6px 7px; }
}
/* the floating accessibility button steps aside while the full-screen menu is open */
body:has(.topbar nav.open) .a11y { display: none; }

/* ---------------- 6. Sections, hero, band, film ---------------- */
.section { padding: var(--section-y) var(--gutter); }
.wrap { max-width: var(--max); margin-inline: auto; }
.section-title { font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1.15; margin-bottom: 18px; }
.section-lead { font-size: 1.25rem; line-height: 1.6; color: var(--fg-2); max-width: 58ch; }
.dark { background: var(--night); color: var(--on-night); }
.dark .section-lead + p { color: var(--fg-2); }
.stone, .how, .next { background: var(--stone); }
.kicker { font-weight: 700; font-size: 14px; color: var(--accent); margin-bottom: 14px; letter-spacing: .02em; }
html:lang(en) .kicker { letter-spacing: .08em; }
.hero .kicker, .page-head .kicker { color: var(--on-night-muted); }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split.stack { grid-template-columns: 1fr; gap: 40px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Hero (agriculture / solar / program pages) */
.hero {
  position: relative; min-height: min(88svh, 820px); display: flex; align-items: flex-end;
  color: var(--on-night); background: var(--night); overflow: hidden;
  padding: 140px var(--gutter) clamp(48px, 7vw, 88px);
}
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* veils: a soft band behind the header, the text side (start) and the bottom edge; the rest of the photo stays bright */
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, var(--veil-mid) 0, transparent 22%),
    linear-gradient(var(--to-end), var(--veil-mid) 0, var(--veil-soft) 45%, transparent 75%),
    linear-gradient(to top, var(--veil-strong) 0, var(--veil-soft) 45%, transparent 80%);
}
@media (max-width: 700px) {
  .hero::after {
    background:
      linear-gradient(to bottom, var(--veil-mid) 0, transparent 22%),
      linear-gradient(to top, var(--veil-strong) 0, var(--veil-mid) 55%, var(--veil-soft) 100%);
  }
}
.hero-inner { position: relative; z-index: 1; max-width: var(--max); width: 100%; margin-inline: auto; }
.hero h1 { font-size: clamp(2.75rem, 5.2vw, 4.5rem); line-height: 1.08; max-width: 16ch; text-shadow: 0 2px 28px color-mix(in srgb, var(--night) 45%, transparent); }
.hero-intro { margin-top: 20px; font-size: 1.25rem; line-height: 1.6; max-width: 56ch; color: var(--on-night); text-shadow: 0 1px 16px color-mix(in srgb, var(--night) 45%, transparent); }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.facts { margin: 44px 0 0; padding: 22px 0 0; border-top: 1px solid color-mix(in srgb, var(--on-night) 28%, transparent); display: flex; flex-wrap: wrap; gap: 18px 56px; }
.facts div { display: flex; flex-direction: column; }
.facts dt { order: 2; font-size: 15px; color: var(--on-night); }
.facts dd { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 3vw, 2.5rem); color: var(--brass-light); line-height: 1; }
html:lang(zh) .facts dd { font-family: var(--cjk); }
@media (max-width: 600px) { .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; } }
.solar-hero .hero-media { object-position: 50% 35%; }
.door .door-sunset { object-position: 72% 50%; }
/* Agriculture hero: aerial photo; facts sit on a solid night strip along the bottom edge, aligned to the page grid */
.agri-hero { flex-direction: column; align-items: stretch; justify-content: flex-end; padding-bottom: 0; }
.agri-hero .hero-media { object-position: 50% 60%; }
.agri-hero .hero-inner { padding-bottom: clamp(40px, 6vw, 72px); }
.facts-strip { position: relative; z-index: 1; background: var(--night); border-top: 1px solid color-mix(in srgb, var(--brass) 40%, transparent); padding: 22px var(--gutter); margin-inline: calc(-1 * var(--gutter)); }
.facts-strip .facts { max-width: var(--max); margin: 0 auto; padding: 0; border: 0; }
/* Program pages (impact, partners) */
.sub-hero { min-height: min(80svh, 740px); }
.sub-hero .back-link { color: var(--on-night); margin-bottom: 26px; }
.impact-hero .hero-media { object-position: 50% 64%; }
.partners-hero .hero-media { object-position: 30% 50%; }
[dir="ltr"] .partners-hero .hero-media { object-position: 70% 50%; }

/* Film */
#film .wrap { text-align: center; }
#film .section-title { margin-inline: auto; }
.film-frame {
  margin: 40px auto 0; max-width: 1100px; border-radius: var(--radius); overflow: hidden; background: #000;
  aspect-ratio: 16 / 9; position: relative; box-shadow: 0 0 0 1px var(--line-night);
}
.film-frame video { width: 100%; height: 100%; object-fit: cover; }
/* Branded play cover: sits over the poster (the film's own title frame), below its burned-in title */
.film-play {
  position: absolute; inset: 0; border: 0; padding: 0 0 clamp(20px, 7%, 56px); cursor: pointer; color: var(--on-night);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 12px;
  background: linear-gradient(to top, var(--veil-strong) 0%, transparent 45%);
}
.film-play-ring {
  width: clamp(60px, 7vw, 84px); height: clamp(60px, 7vw, 84px); border-radius: 50%;
  display: grid; place-items: center; background: var(--brass); color: var(--night);
  transition: transform .25s ease;
}
.film-play-ring svg { width: 42%; height: 42%; fill: currentColor; margin-inline-start: 6%; }
[dir="rtl"] .film-play-ring svg { margin-inline-start: 0; margin-inline-end: 6%; }
.film-play:hover .film-play-ring, .film-play:focus-visible .film-play-ring { transform: scale(1.07); }
.film-play-meta { font-weight: 600; font-size: 14px; letter-spacing: .02em; }
.film-frame.playing .film-play { display: none; }
/* Film cover on phones: the poster's burned-in title sits mid-frame, so the play control becomes a compact row along the bottom edge */
@media (max-width: 600px) {
  .film-play { flex-direction: row; align-items: flex-end; justify-content: center; gap: 10px; padding: 0 0 12px; }
  .film-play-ring { width: 44px; height: 44px; }
  .film-play-meta { font-size: 13px; line-height: 1.4; margin-bottom: 12px; text-shadow: 0 1px 3px color-mix(in srgb, var(--night) 70%, transparent); }
}
.film-alt { max-width: 1100px; margin: 18px auto 0; text-align: start; color: var(--fg); border: 1px solid var(--rule); border-radius: var(--radius); }
.film-alt summary { cursor: pointer; padding: 16px 20px; font-weight: 700; }
.film-alt > :not(summary) { padding-inline: 20px; }
.film-alt p { color: var(--fg-2); margin-bottom: 8px; }
.film-alt ol { margin: 0; padding-block: 0 18px; padding-inline-start: 42px; display: grid; gap: 6px; color: var(--fg); }
.band-cta { margin-top: 28px; }

/* Image band: photo with the text on its start side */
.band { position: relative; color: var(--on-night); padding: clamp(80px, 12vw, 150px) var(--gutter); overflow: hidden; background: var(--night); }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--to-end), var(--veil-strong) 0%, var(--veil-mid) 40%, transparent 85%); }
@media (max-width: 700px) { .band::after { background: linear-gradient(to top, var(--veil-strong), var(--veil-mid)); } }
.band .wrap { position: relative; z-index: 1; }
.band h2 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); max-width: 14ch; }
.chips { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; max-width: 640px; }
.chips li { border: 1px solid color-mix(in srgb, var(--on-night) 45%, transparent); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 15px; background: var(--veil-soft); }
/* Founding offer band (no photo): flat night with one thin brass line */
.band.offer { padding-block: clamp(64px, 9vw, 112px); }
.band.offer::after { display: none; }
.band.offer .wrap { border-inline-start: 1px solid var(--brass); padding-inline-start: clamp(20px, 3vw, 40px); }
.offer h2 { max-width: 20ch; font-size: clamp(1.9rem, 3.6vw, 3rem); }
.offer .fine { margin-top: 20px; font-size: 14px; color: var(--fg-2); max-width: 60ch; }

/* ---------------- 7. Cards: exactly two types ----------------
   (a) NAV CARD (.card-nav, also .coop a): image on top (4:3) + title + one sentence + link. White, thin line, no shadow.
   (b) INFO ITEM (.info-item, also list items below): thin top rule, no box, no shadow, no gold border. */
.coop { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 44px; }
.card-nav, .coop a {
  display: flex; flex-direction: column; gap: 10px; text-decoration: none; overflow: hidden;
  background: var(--white); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s;
}
.card-nav:hover, .coop a:hover { border-color: var(--brass-ink); }
.card-nav > img, .coop a > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-nav > :not(img), .coop a > :not(img) { margin-inline: 26px; }
.card-nav > :first-child:not(img), .coop a > :first-child:not(img), .card-nav > img + *, .coop a > img + * { margin-top: 24px; }
.card-nav > :last-child, .coop a > :last-child { margin-bottom: 26px; }
.coop p, .card-nav p { color: var(--muted); }
.coop .more, .card-nav .more { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--brass-ink); display: inline-flex; gap: 8px; align-items: center; }

.info-item, .ledger, .ag-ops > div, .audience li, .ag-infra li { border-top: 1px solid var(--rule); padding-top: 26px; }
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.service-list li { display: grid; grid-template-columns: 44px 1fr; gap: 6px 18px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.service-list .icon { width: 28px; height: 28px; color: var(--accent); grid-row: span 2; margin-top: 2px; }
.service-list p { color: var(--fg-2); }
.audience { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(24px, 4vw, 56px); }
.audience li { display: flex; flex-direction: column; gap: 10px; }
.audience .icon { width: 28px; height: 28px; color: var(--accent); }
.audience h3 { font-size: 1.25rem; }
.audience p { color: var(--fg-2); }
.audience a { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent); text-decoration: none; }
.audience a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 860px) { .audience { grid-template-columns: 1fr; } }
.rules { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.rules li { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--rule); font-size: 1.1rem; }
.rules .icon { color: var(--accent); margin-top: 5px; }

/* About + emblem / founder */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(180px, 24vw, 300px); gap: clamp(24px, 5vw, 72px); align-items: center; }
.emblem { width: 100%; height: auto; border-radius: var(--radius); }
@media (max-width: 700px) { .about-grid { grid-template-columns: 1fr; } .emblem { max-width: 220px; } }
.founder { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--rule); }
.monogram { width: 108px; height: 108px; border-radius: 50%; border: 1px solid var(--accent); display: grid; place-items: center; font-family: var(--serif); font-size: 34px; color: var(--accent); direction: ltr; }
.founder .role { color: var(--accent); font-weight: 600; margin: 4px 0 12px; }
.founder p { max-width: 62ch; }
.founder .btn { margin-top: 18px; }
@media (max-width: 600px) { .founder { grid-template-columns: 1fr; } .monogram { width: 80px; height: 80px; font-size: 26px; } }

/* Contact list */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { border-bottom: 1px solid var(--rule); }
.contact-list a, .contact-list .row { display: flex; align-items: center; gap: 16px; padding: 18px 0; text-decoration: none; font-size: 1.1rem; }
.contact-list a:hover { color: var(--accent); }
.contact-list small { display: block; color: var(--fg-2); font-size: 14px; }
.contact-list .icon { color: var(--accent); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; transition: color .2s, border-color .2s; }
.socials a:hover { color: var(--accent); border-color: var(--accent); }
.follow { margin-top: 32px; }
.follow p { font-weight: 600; margin-bottom: 12px; }

/* ---------------- 8. Gallery + lightbox ---------------- */
.page-head { padding: 150px var(--gutter) clamp(40px, 6vw, 72px); }
.page-head h1 { margin: 18px 0 14px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--fg-2); }
.back-link:hover { color: var(--accent); }
[dir="ltr"] .back-link .icon { transform: scaleX(-1); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.filters button {
  font: 600 15px/1 var(--sans); color: var(--fg); background: transparent; cursor: pointer; min-height: 44px;
  border: 1px solid var(--rule); border-radius: 999px; padding: 10px 18px; transition: border-color .2s, background-color .2s;
}
html:lang(zh) .filters button { font-family: var(--cjk); }
.filters button:hover { border-color: var(--accent); }
.filters button[aria-pressed="true"] { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-fg); }
.gallery-page { padding-top: clamp(32px, 5vw, 56px); }
/* Justified rows: every row has the same height and fills the width; the last row keeps its natural size and is centred.
   site.js sets --ar (width / height) on each tile. Tiles show a stone placeholder while the photo loads. */
.photo-rows { --row-h: 250px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.photo-rows::after { content: ""; flex-grow: 1000000; }
.photo-rows button {
  all: unset; display: block; box-sizing: border-box; cursor: zoom-in; position: relative; overflow: hidden;
  border-radius: 6px; background: var(--stone);
  flex: calc(var(--ar, 1.3) * 100) 1 calc(var(--ar, 1.3) * var(--row-h)); min-width: 0;
}
.photo-rows button[hidden] { display: none; }
.photo-rows button:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.photo-rows img { display: block; width: 100%; height: auto; background: var(--stone); transition: transform .6s ease; }
.photo-rows button:hover img { transform: scale(1.03); }
@media (max-width: 700px) { .photo-rows { --row-h: 105px; gap: 6px; } }
.gallery-cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.gallery-cta .section-title { margin: 0; }
.gallery-cta .hero-actions { margin-top: 0; }
.gallery-cta .section-lead { margin-top: 12px; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; color: var(--on-night); }
.lightbox::backdrop { background: rgba(9, 18, 27, .94); } /* literal: ::backdrop does not reliably inherit custom properties */
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 56px 16px; }
.lightbox img { min-height: 0; max-height: 100%; max-width: min(1600px, 100%); object-fit: contain; border-radius: 6px; }
.lightbox figcaption { flex: none; min-height: 1.6em; color: var(--on-night-muted); font-size: 15px; text-align: center; max-width: 60ch; }
.lightbox figcaption bdi { color: var(--brass-light); font-weight: 700; margin: 0 10px; }
.lightbox button { position: absolute; background: color-mix(in srgb, var(--on-night) 14%, transparent); color: var(--on-night); border: 0; border-radius: 999px; width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer; }
.lightbox button:hover { background: color-mix(in srgb, var(--on-night) 26%, transparent); }
.lightbox .lb-close { top: 14px; inset-inline-end: 14px; }
.lightbox .lb-prev { top: 50%; translate: 0 -50%; inset-inline-start: 14px; }
.lightbox .lb-next { top: 50%; translate: 0 -50%; inset-inline-end: 14px; }
/* Base chevron points left: "previous" in LTR, "next" in RTL */
[dir="ltr"] .lightbox .lb-next .icon, [dir="rtl"] .lightbox .lb-prev .icon { transform: scaleX(-1); }
/* Fixed stage with two stacked layers; site.js decodes the next photo first, then cross-fades (no layout jump). */
.lightbox .lb-stage { position: relative; flex: 1 1 auto; align-self: stretch; min-height: 0; }
.lightbox .lb-img {
  position: absolute; inset: 0; margin: auto; width: auto; height: auto; max-width: min(1600px, 100%); max-height: 100%;
  opacity: 0; transition: opacity .35s ease; pointer-events: none;
}
.lightbox .lb-img.on { opacity: 1; pointer-events: auto; }
.lightbox .lb-stage.lb-instant .lb-img { transition: none; }
/* slow network only: a small ring appears if decoding takes longer than .25s */
.lightbox .lb-stage.loading::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid color-mix(in srgb, var(--on-night) 20%, transparent); border-top-color: var(--brass); opacity: 0;
  animation: lb-spin .8s linear .25s infinite;
}
@keyframes lb-spin { from { opacity: 1; transform: rotate(0); } to { opacity: 1; transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lightbox .lb-img { transition: none; } }
html.a11y-still .lightbox .lb-img { transition: none; }

/* ---------------- 9. Gateway (home) ---------------- */
.gateway { background: var(--night); color: var(--on-night); min-height: 100svh; display: flex; flex-direction: column; }
.gateway main { flex: 1; display: flex; flex-direction: column; }
.gate-intro { padding: 0 var(--gutter) 20px; }
.gate-intro h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); max-width: 22ch; }
.gate-intro p { margin-top: 10px; color: var(--fg-2); max-width: 60ch; }
/* Headline + lead, with the fields overview beside them */
.gate-hero { display: block; padding: clamp(24px, 4vw, 64px) var(--gutter) clamp(8px, 2vw, 24px); }
.gate-copy { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: clamp(32px, 6vw, 96px); align-items: center; padding: 0; }
.gate-copy h1, .gate-hero h1 { grid-column: 1; font-size: clamp(2.2rem, 4.4vw, 3.9rem); line-height: 1.1; max-width: 14ch; }
[dir="ltr"] .gate-hero h1 { max-width: 21ch; font-size: clamp(2.1rem, 3.9vw, 3.5rem); }
.gate-lead { margin-top: 18px; color: var(--fg-2); font-size: 1.2rem; max-width: 48ch; }
.gate-copy .gate-lead { grid-column: 1; }
.gate-fields { margin: 26px 0 0; max-width: 560px; }
.gate-copy .gate-fields { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin: 0; max-width: none; }
.gate-fields > div { display: grid; grid-template-columns: 11.5rem minmax(0, 1fr); gap: 4px 20px; align-items: baseline; padding: 13px 0; border-top: 1px solid var(--rule); }
.gate-fields > div:last-child { border-bottom: 1px solid var(--rule); }
.gate-fields dt { font-family: var(--sans); font-weight: 700; font-size: 1.15rem; color: var(--brass-light); }
html:lang(zh) .gate-fields dt { font-family: var(--cjk); }
.gate-fields dd { margin: 0; color: var(--on-night-muted); }

.gate-choose { display: flex; align-items: center; gap: 18px; padding: clamp(28px, 4vw, 52px) var(--gutter) 16px; }
.gate-choose h2 { flex: 1; display: flex; align-items: center; gap: 20px; font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
.gate-choose h2::after { content: ""; flex: 1; height: 1px; background: color-mix(in srgb, var(--brass) 45%, transparent); }
.gate-pause {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 16px; border-radius: 999px;
  border: 1px solid var(--rule); background: transparent; color: var(--fg-2); font: inherit; font-size: 14px; cursor: pointer;
}
.gate-pause:hover { color: var(--fg); border-color: var(--brass); }
.gate-pause[hidden], .gate-pause span[hidden] { display: none; }
.gate-pause .icon { width: 16px; height: 16px; }
.gate-pause .icon-play, .gate-pause.is-paused .icon-pause { display: none; }
.gate-pause.is-paused .icon-play { display: block; }

/* Door cards: image fills the card, only the bottom (text side) is veiled */
.doors { flex: 1; display: flex; gap: 12px; padding: 0 var(--gutter) var(--gutter); min-height: clamp(380px, 54vh, 540px); }
.door {
  position: relative; flex: 1 1 0; overflow: hidden; border-radius: var(--radius); isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 14px;
  padding: clamp(22px, 3vw, 40px) clamp(22px, 3vw, 40px) clamp(18px, 2.2vw, 30px); color: var(--on-night); text-decoration: none; background: var(--night-2);
  transition: flex-grow .55s cubic-bezier(.2, .7, .2, 1);
}
.door > img, .door .door-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s ease; }
.door::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, var(--veil-strong) 0%, var(--veil-soft) 50%, transparent 85%); }
a.door:hover, a.door:focus-visible { flex-grow: 1.55; }
a.door:hover > img, a.door:hover .door-art { transform: scale(1.04); }
.door h2, .door h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 3.2vw, 3rem); line-height: 1.1; }
html:lang(zh) .door h2, html:lang(zh) .door h3 { font-family: var(--cjk-serif); font-weight: 600; }
.door ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; color: var(--on-night); font-size: 1.05rem; }
.door .enter { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--brass-light); margin-top: 6px; }
.door.soon { cursor: default; color: var(--on-night-muted); }
.door.soon h2, .door.soon h3 { color: var(--on-night-muted); }
.badge { align-self: flex-start; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1px dashed color-mix(in srgb, var(--on-night) 55%, transparent); }
.door-slides { position: absolute; inset: 0; z-index: -2; transition: transform 1.2s ease; }
.door-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease-in-out; }
.door-slides img.is-active { opacity: 1; }
a.door:hover .door-slides { transform: scale(1.04); }
/* Illustrated door backgrounds (no photo yet) */
.solar-art {
  background:
    radial-gradient(circle at 78% 22%, color-mix(in srgb, var(--brass-light) 50%, transparent) 0, color-mix(in srgb, var(--brass) 22%, transparent) 16%, transparent 38%),
    repeating-linear-gradient(90deg, transparent 0 46px, color-mix(in srgb, var(--brass-light) 14%, transparent) 46px 48px),
    repeating-linear-gradient(0deg, transparent 0 30px, color-mix(in srgb, var(--brass-light) 14%, transparent) 30px 32px),
    linear-gradient(160deg, var(--night-2) 0%, var(--night) 70%);
  transform-origin: bottom;
}
.door .solar-art { transform: perspective(700px) rotateX(18deg) scale(1.6); }
a.door:hover .solar-art { transform: perspective(700px) rotateX(18deg) scale(1.66); }
.tech-art {
  background:
    radial-gradient(color-mix(in srgb, var(--on-night) 16%, transparent) 1px, transparent 1.5px) 0 0 / 22px 22px,
    linear-gradient(160deg, var(--night-2), var(--night));
}
@media (max-width: 860px) {
  .gate-copy { display: block; }
  .gate-fields, .gate-copy .gate-fields { margin-top: 26px; }
  .doors { flex-direction: column; min-height: 0; }
  .door { min-height: 270px; flex: none; }
  .door.soon { min-height: 150px; }
  a.door:hover, a.door:focus-visible { flex-grow: 0; }
}
@media (max-width: 520px) {
  .gate-fields > div { grid-template-columns: 1fr; }
  .gate-choose h2::after { display: none; }
}

/* ---------------- 10. Program pages: stops / route, ledger, steps ---------------- */
/* A process drawn as a thin line between numbered stops; the last stop is filled (the destination). .ag-route = 3 stops. */
.stops, .ag-route {
  --g: clamp(16px, 2.6vw, 36px); list-style: none; margin: 52px 0 0; padding: 0; counter-reset: stop;
  display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); column-gap: var(--g);
}
.ag-route { --n: 3; --g: clamp(24px, 4vw, 56px); }
.stops li, .ag-route li { position: relative; counter-increment: stop; }
.stops li::before, .ag-route li::before {
  content: counter(stop); display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 22px;
  border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); font: 500 1.2rem/1 var(--serif);
}
.stops li:last-child::before, .ag-route li:last-child::before { background: var(--brass); border-color: var(--brass); color: var(--night); }
.stops li:not(:last-child)::after, .ag-route li:not(:last-child)::after {
  content: ""; position: absolute; top: 24px; height: 1px; inset-inline-start: 60px; inset-inline-end: calc(12px - var(--g));
  background: linear-gradient(var(--to-end), var(--accent), color-mix(in srgb, var(--accent) 40%, transparent));
}
.stops h3, .ag-route h3 { margin-bottom: 8px; }
.stops p, .ag-route p { color: var(--fg-2); max-width: 34ch; }
@media (max-width: 860px) {
  .stops, .ag-route { grid-template-columns: 1fr; }
  .stops li, .ag-route li { display: grid; grid-template-columns: 48px 1fr; column-gap: 18px; padding-bottom: 30px; }
  .stops li:last-child, .ag-route li:last-child { padding-bottom: 0; }
  .stops li::before, .ag-route li::before { grid-row: span 2; margin: 0; }
  .stops li:not(:last-child)::after, .ag-route li:not(:last-child)::after { top: 60px; bottom: 10px; inset-inline-start: 24px; inset-inline-end: auto; width: 1px; height: auto; background: color-mix(in srgb, var(--accent) 55%, transparent); }
  .stops h3, .ag-route h3 { margin-top: 10px; }
}
.how-cta { margin-top: 48px; }

.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; border-top: 1px solid var(--rule); }
.steps li { padding: 26px 24px 0 0; counter-increment: step; }
[dir="rtl"] .steps li { padding: 26px 0 0 24px; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--serif); color: var(--accent); font-size: 1.6rem; margin-bottom: 8px; }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--fg-2); font-size: 16px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 24px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Ledger: the report a sponsor receives, set as a document (an info item) */
.ledger { padding-top: clamp(20px, 3vw, 32px); }
.ledger h3 { padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.ledger dl { margin: 0; }
.ledger dl div { display: grid; grid-template-columns: minmax(0, 9.5rem) 1fr; gap: 4px 24px; padding: 18px 0; border-bottom: 1px dashed var(--rule); }
.ledger dl div:last-child { border-bottom: 0; padding-bottom: 0; }
.ledger dt { font-weight: 700; color: var(--accent); }
.ledger dd { margin: 0; }
@media (max-width: 520px) { .ledger dl div { grid-template-columns: 1fr; } }

/* ---------------- 11. Agriculture: storage, spec strip, operations, FAQ ---------------- */
/* Storage is the one dark section of the page (class "dark ag-storage"): three info items, then the equipment spec strip */
.ag-infra { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(24px, 4vw, 56px); }
.ag-infra li { display: flex; flex-direction: column; gap: 10px; }
.ag-infra .icon { width: 28px; height: 28px; color: var(--accent); }
.ag-infra p { color: var(--fg-2); max-width: 36ch; }
.ag-spec { margin-top: 56px; padding-top: clamp(24px, 3.5vw, 40px); border-top: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 24px clamp(24px, 4vw, 56px); align-items: center; }
.ag-spec-head h3 { margin-bottom: 8px; }
.ag-spec-head p { color: var(--fg-2); }
.ag-spec-list { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ag-spec-list div { display: flex; flex-direction: column; gap: 4px; padding-inline-start: 20px; border-inline-start: 1px solid var(--rule); }
.ag-spec-list dt { order: 2; font-size: 15px; color: var(--fg-2); }
.ag-spec-list dd { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(2.25rem, 4vw, 3.5rem); line-height: 1.05; color: var(--num); }
.ag-spec-list dd small { font-family: var(--sans); font-size: .45em; font-weight: 600; color: var(--fg-2); margin-inline-end: 2px; }
/* Operations: two info items side by side */
.ag-ops { margin-top: 44px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px clamp(24px, 5vw, 72px); }
.ag-ops h3 { font-size: 1.25rem; margin-bottom: 8px; }
.ag-ops .rules { border-top: 0; }
.ag-ops .rules li { padding: 16px 0; font-size: 1.05rem; }
.ag-ops .rules li:last-child { border-bottom: 0; }
@media (max-width: 900px) { .ag-infra, .ag-spec, .ag-ops { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .ag-spec-list { gap: 10px; }
  .ag-spec-list div { padding-inline-start: 10px; }
  .ag-spec-list dt { font-size: 14px; }
}

.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 22px; gap: 16px; align-items: center; padding: 22px 0; font: 700 1.15rem/1.4 var(--sans); }
html:lang(zh) .faq summary { font-family: var(--cjk); }
.faq summary::-webkit-details-marker { display: none; }
/* plus that folds into a minus when open */
.faq summary::after {
  content: ""; width: 22px; height: 22px; transition: transform .25s ease, background-size .25s ease;
  background: linear-gradient(var(--accent), var(--accent)) center / 14px 1.5px no-repeat,
              linear-gradient(var(--accent), var(--accent)) center / 1.5px 14px no-repeat;
}
.faq details[open] summary::after { transform: rotate(180deg); background-size: 14px 1.5px, 1.5px 0; }
.faq summary:hover { color: var(--accent); }
.faq details > p { color: var(--fg-2); max-width: 62ch; padding-bottom: 24px; }
/* answers: paragraphs + real lists, each item on its own line */
.faq .faq-a { color: var(--fg-2); max-width: 62ch; padding-bottom: 26px; }
.faq .faq-a p { margin: 0; padding: 0; max-width: none; }
.faq .faq-a ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.faq .faq-a > :not(:first-child) { margin-top: 14px; }
.faq .faq-a li { position: relative; padding-inline-start: 22px; line-height: 1.6; }
.faq .faq-a li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
/* smooth open where supported (::details-content + calc-size); instant elsewhere */
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .3s ease, content-visibility .3s allow-discrete; }
.faq details[open]::details-content { block-size: auto; block-size: calc-size(auto, size); }
.faq-wrap { max-width: 860px; }
#faq .section-lead a { color: var(--accent); font-weight: 600; text-underline-offset: 4px; }

/* ---------------- 12. Forms (inquiry) + thank-you ----------------
   The panel follows its context: a white card on a light section, a glass panel on the dark one. */
.quote-panel {
  grid-column: 1 / -1; flex: 1 1 100%;
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 64px); align-items: start;
  margin-top: clamp(24px, 4vw, 48px); padding: clamp(22px, 4vw, 44px);
  border: 1px solid var(--rule); border-radius: var(--radius); background: var(--panel-bg);
  color: var(--fg); text-align: start;
}
.quote-title { margin-bottom: 10px; }
.quote-help { color: var(--fg-2); max-width: 34ch; }

.quote { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; color-scheme: var(--scheme); }
.quote .fld { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.quote .fld-wide, .quote-actions { grid-column: 1 / -1; }
.quote label { font-weight: 600; font-size: 15px; }
.quote input:not([type="hidden"]), .quote select, .quote textarea {
  width: 100%; min-height: 50px; padding: 13px 14px;
  font: 400 17px/1.4 var(--sans); color: var(--fg);
  background-color: var(--field-bg); border: 1px solid var(--field-line); border-radius: 8px;
  transition: border-color .2s, background-color .2s;
}
html:lang(zh) .quote input, html:lang(zh) .quote select, html:lang(zh) .quote textarea { font-family: var(--cjk); }
.quote textarea { min-height: 120px; resize: vertical; }
.quote ::placeholder { color: var(--fg-2); opacity: 1; }
.quote input:not([type="hidden"]):hover, .quote select:hover, .quote textarea:hover { border-color: var(--fg); }
.quote input:focus-visible, .quote select:focus-visible, .quote textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--focus); }
.quote select {
  appearance: none; -webkit-appearance: none; padding-inline-end: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A5A1E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 18px; background-position: right 14px center;
}
.dark .quote select, .quote-panel.is-dark .quote select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C4A262' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
.on-light .quote select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A5A1E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
[dir="rtl"] .quote select { background-position: left 14px center; }
.quote select option { background: var(--white); color: var(--text); }
.dark .quote select option { background: var(--night-2); color: var(--on-night); }
.quote [aria-invalid="true"] { border-color: var(--err); }
.fld-err { margin: 0; color: var(--err); font-size: 14px; font-weight: 600; }
.form-hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.quote-actions { display: flex; align-items: center; margin-top: 4px; }
.quote .btn { min-height: 52px; padding-inline: 32px; }
.quote.is-sending .btn { opacity: .8; cursor: progress; }
.quote.is-sending .btn::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%; flex: none;
  border: 2px solid color-mix(in srgb, var(--btn-fg) 30%, transparent); border-top-color: var(--btn-fg); animation: quote-spin .8s linear infinite;
}
@keyframes quote-spin { to { transform: rotate(360deg); } }
@media (max-width: 860px) { .quote-panel { grid-template-columns: 1fr; } .quote-help { max-width: none; } }
@media (max-width: 560px) { .quote { grid-template-columns: 1fr; } .quote .btn { width: 100%; } }

/* Thank-you page (/thanks/) */
.thanks { min-height: 100svh; display: flex; align-items: center; padding-top: clamp(140px, 18vw, 200px); }
.thanks .wrap { width: 100%; }
.thanks-mark { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--brass); color: var(--night); margin-bottom: 26px; }
.thanks-mark .icon { width: 32px; height: 32px; stroke-width: 2.4; }
.thanks h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); max-width: 18ch; margin-bottom: 18px; }
.thanks .hero-actions { margin-top: 28px; }
.thanks-links { list-style: none; margin: 56px 0 0; padding: 32px 0 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.thanks-links a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 20px 22px; border: 1px solid var(--rule); border-radius: var(--radius); text-decoration: none; transition: border-color .2s; }
.thanks-links a:hover { border-color: var(--accent); }
.thanks-links b { font: 700 1.2rem/1.3 var(--sans); }
html:lang(zh) .thanks-links b { font-family: var(--cjk); }
.thanks-links span { color: var(--fg-2); font-size: 15px; }

/* ---------------- 13. Split pages: contact page, empty gallery ---------------- */
.contact-page { padding-top: 150px; }
.contact-page .back-link { margin-bottom: 22px; }
.empty-state {
  max-width: 640px; margin-inline: auto; text-align: center; display: grid; justify-items: center; gap: 14px;
  padding: clamp(40px, 8vw, 88px) 24px; border: 1px dashed var(--rule); border-radius: var(--radius);
}
.empty-state .icon { width: 36px; height: 36px; color: var(--accent); }
.empty-state h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.empty-state p { color: var(--fg-2); max-width: 46ch; }
.empty-state .btn { margin-top: 10px; }

/* No language flash between pages: <html class="i18n-pending"> is removed by site.js once the saved language is
   applied. If JS never runs, the animation reveals the page after 1.5s so nothing stays hidden. */
html.i18n-pending body { visibility: hidden; animation: i18n-reveal 0s linear 1.5s forwards; }
@keyframes i18n-reveal { to { visibility: visible; } }

/* ---------------- 14. Footer: ONE layout on every page ----------------
   Row 1: brand | links | socials. Row 2 (<small>): (c) / accessibility statement / phone / e-mail.
   The block before the footer is always a light section. The home page's .gate-foot shares the look. */
.site-footer, .gate-foot { background: var(--night); color: var(--on-night-muted); font-size: 15px; border-top: 1px solid var(--line-night); }
.site-footer { padding: 48px var(--gutter) 32px; }
.site-footer .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px 40px; align-items: center; }
.site-footer .brand { color: var(--on-night); gap: 14px; }
.site-footer .brand-mark { width: 60px; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.site-footer a, .gate-foot a { text-decoration: none; }
.site-footer nav a { padding-block: 6px; }
.site-footer a:hover, .gate-foot a:hover { color: var(--on-night); text-decoration: underline; text-underline-offset: 4px; }
.site-footer nav a[aria-current="page"] { color: var(--on-night); }
.site-footer small { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid var(--line-night); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.gate-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 28px var(--gutter) 24px; font-size: 14px; }
@media (max-width: 860px) {
  .site-footer .wrap { grid-template-columns: 1fr; justify-items: start; }
  .site-footer nav { justify-content: flex-start; }
}
@media (max-width: 700px) { .site-footer, .gate-foot { padding-bottom: 76px; } } /* room for the floating accessibility button */

/* ---------------- 15. Accessibility toolbar (site.js: initA11y) ---------------- */
/* Position is physical (bottom-left) so it never overlaps the Netlify badge on the right. 44px, no glow. */
.a11y { position: fixed; left: 16px; bottom: 16px; z-index: 60; font-family: var(--sans); }
html:lang(zh) .a11y { font-family: var(--cjk); }
.a11y-open {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; padding: 0;
  background: var(--night); color: var(--on-night); border: 1px solid var(--brass);
  box-shadow: 0 2px 10px color-mix(in srgb, var(--night) 40%, transparent);
}
.a11y-open .icon { width: 24px; height: 24px; stroke-width: 2; }
.a11y .a11y-open:hover { background: var(--night-2); }
.a11y-open:focus-visible, .a11y button:focus-visible, .a11y a:focus-visible { outline: 3px solid var(--brass-light); outline-offset: 3px; }
.a11y-panel {
  position: absolute; left: 0; bottom: 54px; width: min(340px, calc(100vw - 32px)); max-width: calc(100vw - 20px);
  max-height: calc(100dvh - 90px); overflow-y: auto; box-sizing: border-box;
  background: var(--night); color: var(--on-night); border: 1px solid color-mix(in srgb, var(--brass) 60%, transparent); border-radius: 14px; padding: 18px;
  display: grid; gap: 14px; box-shadow: 0 12px 32px color-mix(in srgb, var(--night) 45%, transparent);
}
.a11y-panel[hidden] { display: none; }
.a11y-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.a11y-title { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; color: var(--on-night); }
.a11y button { font: 600 15px/1.2 var(--sans); cursor: pointer; color: var(--on-night); background: transparent; }
html:lang(zh) .a11y button { font-family: var(--cjk); }
.a11y-close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-night); display: grid; place-items: center; }
.a11y-size { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.a11y-size-btns { display: flex; gap: 8px; }
.a11y-size-btns button { min-width: 56px; min-height: 44px; border: 1px solid var(--brass); border-radius: 12px; font-size: 18px; background: color-mix(in srgb, var(--on-night) 4%, transparent); }
.a11y-toggles { display: grid; gap: 8px; }
.a11y-toggle, .a11y-reset { min-height: 44px; padding: 10px 14px; border: 1px solid var(--line-night); border-radius: 12px; text-align: start; background: color-mix(in srgb, var(--on-night) 4%, transparent); }
/* switch-style toggles: the thumb moves, the state is also in aria-pressed */
.a11y-toggle { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.a11y-toggle::after {
  content: ""; flex: none; width: 40px; height: 22px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--on-night) 55%, transparent);
  background: radial-gradient(circle at 11px 50%, var(--on-night) 7px, transparent 8px), transparent; transition: background-position .2s;
}
.a11y-toggle[aria-pressed="true"] { background: color-mix(in srgb, var(--brass) 16%, transparent); border-color: var(--brass); color: var(--on-night); }
.a11y-toggle[aria-pressed="true"]::after { border-color: var(--brass); background: radial-gradient(circle at 29px 50%, var(--night) 7px, transparent 8px), var(--brass); }
.a11y-reset { color: var(--brass-light); border-color: var(--brass); text-align: center; }
.a11y-statement { color: var(--on-night); text-decoration: underline; text-underline-offset: 3px; text-align: center; padding: 6px; }
@media (max-width: 700px) {
  .a11y { left: 10px; bottom: 10px; }
  .a11y-panel { bottom: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Settings, applied as classes on <html> */
html.a11y-z1 { zoom: 1.1; }
html.a11y-z2 { zoom: 1.25; }
html.a11y-z3 { zoom: 1.45; }
html.a11y-gray { filter: grayscale(1); }
html.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; }
html.a11y-font body, html.a11y-font body * { font-family: Arial, "Segoe UI", Helvetica, sans-serif !important; letter-spacing: normal !important; }
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
/* High contrast. The page-wide rules keep every selector after `html.a11y-contrast` inside :where() (zero specificity)
   and skip the toolbar (.a11y). A long :not() chain would add specificity per argument and out-rank the toolbar's
   own rules (the bug where a pressed toggle turned black-on-black). Do not move selectors out of :where(). */
html.a11y-contrast :where(body, body *):where(:not(img, video, .a11y, .a11y *)) { color: #fff !important; border-color: #fff !important; box-shadow: none !important; text-shadow: none !important; }
/* photos keep showing through: only the text blocks around them go black */
html.a11y-contrast :where(body, body *):where(:not(img, video, .a11y, .a11y *, .film-play, .film-play *, .hero-inner, .hero-inner *, .band .wrap, .band .wrap *, .door *)) { background-color: #000 !important; }
html.a11y-contrast :where(.hero-media, .band > img, .door > img) { filter: brightness(.35); }
html.a11y-contrast :where(a, a *):where(:not(.a11y *)) { color: #f0d9a0 !important; text-decoration: underline !important; }
html.a11y-contrast :where(button, input, select, textarea, .btn, summary):where(:not(.a11y *)) { border: 2px solid #fff !important; }
/* pressed page buttons (language switch, gallery filters) keep showing their state */
html.a11y-contrast :where([aria-pressed="true"], [aria-pressed="true"] *):where(:not(.a11y *)) { background-color: #f0d9a0 !important; color: #000 !important; border-color: #f0d9a0 !important; box-shadow: none !important; }
html.a11y-contrast :focus-visible { outline: 3px solid #f0d9a0 !important; outline-offset: 3px; }
html.a11y-contrast svg { color: inherit; }
/* the toolbar in high contrast: pure black / white / yellow; pressed = yellow tint, yellow switch */
html.a11y-contrast .a11y .a11y-open, html.a11y-contrast .a11y-panel { background: #000; color: #fff; border-color: #fff; box-shadow: none; }
html.a11y-contrast .a11y-title { color: #fff; }
html.a11y-contrast .a11y button { color: #fff; background: #000; border: 2px solid #fff; }
html.a11y-contrast .a11y .a11y-toggle[aria-pressed="true"] { background: rgba(240, 217, 160, .16); border-color: #f0d9a0; color: #fff; }
html.a11y-contrast .a11y .a11y-toggle::after { border-color: #fff; }
html.a11y-contrast .a11y .a11y-toggle[aria-pressed="true"]::after { border-color: #f0d9a0; background: radial-gradient(circle at 29px 50%, #000 7px, transparent 8px), #f0d9a0; }
html.a11y-contrast .a11y .a11y-reset, html.a11y-contrast .a11y-statement { color: #f0d9a0; }
@media (prefers-reduced-motion: reduce) { .a11y-toggle::after { transition: none; } }

/* ---------------- 16. Accessibility statement page ---------------- */
.statement { max-width: 820px; }
.statement h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 44px 0 14px; }
.statement h2:first-child { margin-top: 0; }
.statement p, .statement li { max-width: 68ch; }
.statement ul { padding-inline-start: 1.3em; display: grid; gap: 10px; }
.statement a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.statement-date { margin-top: 36px; color: var(--fg-2); font-size: 15px; }

/* === Page: home === */
.gate-copy { display: block; }
.gate-copy h1, .gate-hero h1 { max-width: 16ch; }
[dir="ltr"] .gate-hero h1 { max-width: 22ch; }
.gate-lead { max-width: 52ch; }
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr) auto; gap: 16px; padding: 0 var(--gutter) clamp(28px, 4vw, 48px); }
.door { min-height: clamp(360px, 50vh, 520px); transition: none; }
a.door:hover, a.door:focus-visible { flex-grow: 0; }
a.door:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
/* stronger veil: the text block always sits on a dark base, even over bright sky */
.door::before { background: linear-gradient(to top, color-mix(in srgb, var(--night) 94%, transparent) 0%, color-mix(in srgb, var(--night) 82%, transparent) 38%, color-mix(in srgb, var(--night) 35%, transparent) 70%, transparent 100%); }
.door h3 { text-shadow: 0 1px 12px color-mix(in srgb, var(--night) 70%, transparent); }
/* Technology: slim strip with the "soon" tag */
.door-strip { grid-column: 1 / -1; position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: 18px; padding: 16px clamp(20px, 3vw, 36px); border-radius: var(--radius); border: 1px solid var(--line-night); color: var(--on-night-muted); }
.door-strip .tech-art { position: absolute; inset: 0; z-index: -1; }
.door-strip h3 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; line-height: 1.2; color: var(--on-night); }
html:lang(zh) .door-strip h3 { font-family: var(--cjk-serif); font-weight: 600; }
.door-strip .badge { align-self: center; color: var(--on-night); }
@media (max-width: 860px) {
  .doors { grid-template-columns: 1fr; grid-template-rows: none; }
  .door { min-height: 280px; }
}
/* === Page: agriculture === */
/* Film: one image band (hall photo under a veil); text + gallery link at the start, the film at the end */
#film.ag-film .wrap { text-align: start; }
.ag-film { padding-block: clamp(56px, 8vw, 104px); }
.ag-film::after { background: linear-gradient(var(--to-end), var(--veil-strong), var(--veil-mid)); }
.ag-film-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px clamp(32px, 6vw, 96px); align-items: center; }
.ag-film-text { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.ag-film .film-frame { margin: 0; max-width: none; }
.ag-film .film-alt { margin: 28px 0 0; max-width: none; background: var(--veil-mid); }
@media (max-width: 860px) { .ag-film-grid { grid-template-columns: 1fr; } }

/* Partnerships: a small strip, two small nav cards beside the heading */
.ag-partners .section-title { font-size: clamp(1.75rem, 2.8vw, 2.25rem); }
.ag-partner-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ag-partner-cards .card-nav > img { aspect-ratio: 16 / 9; height: auto; }
.ag-partner-cards .card-nav > :not(img) { margin-inline: 20px; }
.ag-partner-cards .card-nav > img + * { margin-top: 18px; }
.ag-partner-cards .card-nav > :last-child { margin-bottom: 20px; }
@media (max-width: 600px) { .ag-partner-cards { grid-template-columns: 1fr; } }

/* About: the compound front instead of the emblem plaque */
.about-grid { grid-template-columns: minmax(0, 1fr) clamp(240px, 32vw, 400px); align-items: start; }
.about-photo { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius); background: var(--stone); }
@media (max-width: 700px) { .about-grid { grid-template-columns: 1fr; } .about-photo { aspect-ratio: 16 / 10; object-position: 50% 28%; } }

.agri-hero h1 { max-width: 20ch; }
/* === Page: faq-contact-gallery === (agriculture FAQ, contact, gallery: light heads, light CTA bands, white form card) */
.page-head:not(.dark) { padding-bottom: clamp(24px, 4vw, 40px); }
#faq { padding-top: clamp(8px, 2vw, 24px); }
.gallery-cta { text-align: center; padding-block: clamp(40px, 6vw, 72px); }
.gallery-cta .wrap { flex-direction: column; justify-content: center; gap: 22px; }
.gallery-cta .section-title { max-width: 22ch; margin-inline: auto; }
.gallery-cta .hero-actions { justify-content: center; margin-top: 0; }
/* Gallery: stone placeholder under each tile; lightbox layers stay hidden until a photo is shown */
.photo-rows button { background: var(--stone); }
.lightbox .lb-img[hidden] { display: none; }
/* Contact: intro, contact list, socials on one side; white form card on the other (socials stay last) */
.contact-page .contact-grid {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; column-gap: clamp(32px, 5vw, 80px); row-gap: 0;
  grid-template-areas: "intro card" "list card" "follow card" "rest card"; grid-template-rows: auto auto auto 1fr;
}
.contact-page .contact-intro { grid-area: intro; }
.contact-page .contact-list { grid-area: list; margin-top: 28px; border-top: 1px solid var(--rule); }
.contact-page .quote-panel { grid-area: card; grid-column: auto; grid-template-columns: 1fr; margin-top: 0; box-shadow: 0 1px 2px color-mix(in srgb, var(--text) 6%, transparent); }
.contact-page .follow { grid-area: follow; margin-top: 32px; }
.contact-page .quote-help { max-width: none; }
@media (max-width: 860px) {
  .contact-page .contact-grid { grid-template-columns: 1fr; grid-template-areas: "intro" "list" "card" "follow"; grid-template-rows: none; }
  .contact-page .contact-list { margin-top: 20px; }
  .contact-page .quote-panel { margin-top: 32px; }
}
/* Footer row 2 links */
/* === Page: impact-partners === (community procurement + partner network) */
/* Contact section: light, with a white form card (class .on-light on the panel) */
.contact-light { background: var(--ivory); color: var(--text); border-top: 1px solid var(--line); }
.contact-light .section-lead { color: var(--muted); }
/* Sponsor-report table: thin solid rules, no shadow, no gold edge */
.ledger { box-shadow: none; background: transparent; border-inline: 0; border-bottom: 0; }
.ledger dl div { border-bottom: 1px solid var(--rule); }
.ledger dl div:last-child { border-bottom: 0; }
/* Cost band: flat night, one thin brass line, text only */
.band.offer .fine { color: var(--on-night-muted); }
/* Footer row 2: (c) / accessibility / phone / e-mail */
.site-footer small a { color: inherit; }
/* === Page: solar === */
.solar-hero h1 { max-width: 20ch; }
.why-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.why-facts h3 { margin-bottom: 6px; }
.why-facts p { color: var(--fg-2); max-width: 52ch; }
/* About and next steps share one stone surface: no double section padding after the founder card */
.solar-home #about { padding-bottom: clamp(16px, 2vw, 28px); }
.solar-home #next { padding-top: clamp(16px, 2vw, 28px); }
.solar-home #next .coop { margin-top: 28px; }

/* === QA fixes (round 3) === */
.a11y .a11y-open { background: var(--night); color: var(--brass-light); box-shadow: none; border: 2px solid var(--brass); }
.a11y .a11y-open:hover { background: var(--night-2); }
.hero .kicker, .page-head .kicker { color: rgba(243, 241, 236, .92); }
html.a11y-contrast .btn-gold, html.a11y-contrast .btn:not(.btn-ghost) { background: #fff !important; color: #06121b !important; border-color: #fff !important; }
html.a11y-contrast .btn:not(.btn-ghost) * { color: #06121b !important; }

/* === Round4: home-agri === */
/* Home: "choose a field" heading truly centred; pause button stays at the row edge */
.gate-choose { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.gate-choose h2 { grid-column: 2; flex: none; justify-content: center; text-align: center; gap: 22px; }
.gate-choose h2::before, .gate-choose h2::after { content: ""; flex: none; width: clamp(28px, 5vw, 64px); height: 1px; background: color-mix(in srgb, var(--brass) 55%, transparent); }
.gate-choose .gate-pause { grid-column: 3; justify-self: end; }
@media (max-width: 700px) {
  .gate-choose { grid-template-columns: 1fr; justify-items: center; gap: 14px; }
  .gate-choose h2, .gate-choose .gate-pause { grid-column: 1; justify-self: center; }
}
@media (max-width: 520px) {
  .gate-choose h2::before, .gate-choose h2::after { display: block; width: 24px; }
}
/* Home carousel: faster crossfade (matches DELAY 4000) */
.door-slides img { transition: opacity 1s ease-in-out; }

/* Agriculture: services as a refined numbered grid */
#services .svc-head { max-width: 62ch; margin-bottom: clamp(36px, 5vw, 64px); }
#services .svc-head .section-title { margin-bottom: 14px; }
#services .svc-head::after { content: ""; display: block; width: 64px; height: 2px; margin-top: 26px; background: var(--brass); }
#services .service-list.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); border: 0; }
#services .svc-grid li {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: clamp(26px, 2.6vw, 38px) clamp(22px, 2.4vw, 34px) clamp(26px, 2.6vw, 34px);
  background: var(--white); border: 1px solid var(--line); border-top: 2px solid var(--brass); border-radius: var(--radius);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
#services .svc-grid li:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--night) 45%, transparent); border-color: color-mix(in srgb, var(--brass) 55%, var(--line)); }
#services .svc-grid .svc-n { font-family: var(--serif); font-weight: 500; font-size: clamp(3rem, 4.4vw, 4rem); line-height: 1; color: var(--brass-ink); opacity: .9; order: -1; letter-spacing: -.02em; }
#services .svc-grid .icon { position: absolute; top: clamp(26px, 2.6vw, 38px); inset-inline-end: clamp(22px, 2.4vw, 34px); width: 30px; height: 30px; margin: 0; grid-row: auto; color: var(--brass-ink); stroke-width: 1.5; }
#services .svc-grid h3 { margin-top: 14px; font-size: 1.3rem; padding-top: 18px; border-top: 1px solid var(--line); }
#services .svc-grid p { color: var(--muted); }
@media (max-width: 960px) { #services .service-list.svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { #services .service-list.svc-grid { grid-template-columns: 1fr; } #services .svc-grid li { transition: none; } #services .svc-grid li:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) { #services .svc-grid li, #services .svc-grid li:hover { transition: none; transform: none; } }

/* Agriculture film: its own framed block (centred heading + film frame), separate from the photographic band below */
#film.ag-film { padding-block: clamp(64px, 8vw, 112px); }
#film.ag-film .wrap { text-align: center; }
#film.ag-film .section-title { margin-inline: auto; }
#film.ag-film .film-frame { margin: clamp(28px, 4vw, 44px) auto 0; max-width: 1100px; box-shadow: 0 0 0 1px var(--brass), 0 30px 60px -30px #000; }
#film.ag-film .film-alt { margin: 22px auto 0; max-width: 1100px; background: transparent; }
.ag-photo-band { padding-block: clamp(72px, 10vw, 128px); text-align: center; }
.ag-photo-band::after { background: color-mix(in srgb, var(--night) 35%, transparent); }
.ag-photo-band .wrap { display: flex; justify-content: center; }
/* === Round4: contact-faq === (agriculture + solar contact and FAQ share these rules) */
/* Contact: methods as big tap-target cards */
.contact-page .contact-list { display: grid; gap: 12px; border-top: 0; margin-top: 30px; }
.contact-page .contact-list li { border: 0; }
.contact-page .contact-list a, .contact-page .contact-list .row {
  position: relative; display: flex; align-items: center; gap: 18px; min-height: 76px; padding: 14px 20px;
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); color: var(--fg);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.contact-page .contact-list a:hover { color: var(--fg); border-color: var(--brass); box-shadow: 0 6px 22px color-mix(in srgb, var(--text) 9%, transparent); transform: translateY(-1px); }
.contact-page .contact-list a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.contact-page .contact-list .icon {
  flex: none; box-sizing: content-box; width: 22px; height: 22px; padding: 11px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--brass) 70%, transparent); background: color-mix(in srgb, var(--brass) 10%, transparent); color: var(--brass-ink);
}
.contact-page .contact-list a > span:not(.ltr-value), .contact-page .contact-list .row > span { display: grid; gap: 2px; min-width: 0; }
.contact-page .contact-list small { font-size: 14px; font-weight: 600; color: var(--fg-2); }
.contact-page .contact-list span span { font: 600 1.15rem/1.35 var(--sans); overflow-wrap: anywhere; }
html:lang(zh) .contact-page .contact-list span span { font-family: var(--cjk); }
.contact-page .contact-list .row span span { font-weight: 400; font-size: 1.05rem; }
.contact-page .contact-list .go { flex: none; margin-inline-start: auto; width: 20px; height: 20px; fill: none; stroke: var(--brass-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
[dir="rtl"] .contact-page .contact-list a:hover .go { transform: translateX(-4px); }
[dir="ltr"] .contact-page .contact-list .go { transform: scaleX(-1); }
[dir="ltr"] .contact-page .contact-list a:hover .go { transform: scaleX(-1) translateX(4px); }
.contact-page .contact-list .ltr-value { direction: ltr; unicode-bidi: isolate; }
/* Form card */
.contact-page .quote-panel {
  position: relative; padding: clamp(28px, 4.5vw, 52px); border-color: color-mix(in srgb, var(--brass) 45%, var(--rule));
  box-shadow: 0 18px 50px -24px color-mix(in srgb, var(--text) 28%, transparent);
}
.contact-page .quote-panel::before { content: ""; position: absolute; top: -1px; inset-inline-start: clamp(28px, 4.5vw, 52px); width: 64px; height: 3px; background: var(--brass); }
.contact-page .quote-panel { row-gap: 22px; }
.contact-page .quote-intro { padding-bottom: 0; }
.contact-page .quote-title { font-size: clamp(1.75rem, 3vw, 2.15rem); }
.contact-page .quote { gap: 24px 20px; }
.contact-page .quote label { font-size: 16px; }
.contact-page .quote input:not([type="hidden"]), .contact-page .quote select, .contact-page .quote textarea { min-height: 54px; padding: 14px 16px; border-radius: 10px; border-color: color-mix(in srgb, var(--text) 30%, transparent); }
.contact-page .quote textarea { min-height: 140px; }
.contact-page .quote input:focus-visible, .contact-page .quote select:focus-visible, .contact-page .quote textarea:focus-visible {
  border-color: var(--brass-ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brass) 28%, transparent);
}
.contact-page .quote .btn { min-height: 56px; padding-inline: 44px; font-size: 17px; }
/* Socials: clear round links */
.contact-page .follow { margin-top: 36px; }
.contact-page .follow p { font-size: 15px; color: var(--fg-2); }
.contact-page .socials a { width: 48px; height: 48px; border: 1px solid color-mix(in srgb, var(--brass) 80%, transparent); color: var(--brass-ink); background: var(--white); }
.contact-page .socials a:hover { background: var(--night); border-color: var(--night); color: var(--brass-light); }
/* FAQ: refined accordion on stone, closing CTA card */
.page-head:not(.dark) { background: var(--ivory); }
#faq.section { padding-block: clamp(36px, 5vw, 64px) clamp(48px, 7vw, 88px); }
.faq-wrap { max-width: 900px; }
.faq { border-top: 1px solid var(--rule); }
.faq summary { grid-template-columns: 1fr 36px; gap: 24px; padding: 28px 0; font-size: clamp(1.15rem, 2.2vw, 1.35rem); font-weight: 600; }
.faq summary::after {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--brass); box-sizing: border-box;
  background: linear-gradient(var(--brass-ink), var(--brass-ink)) center / 14px 1.5px no-repeat,
              linear-gradient(var(--brass-ink), var(--brass-ink)) center / 1.5px 14px no-repeat;
  transition: transform .3s ease, background-size .3s ease, background-color .2s;
}
.faq details[open] summary::after { transform: none; background-color: color-mix(in srgb, var(--brass) 22%, transparent); background-size: 14px 1.5px, 1.5px 0; }
.faq summary:hover::after { background-color: color-mix(in srgb, var(--brass) 22%, transparent); }
.faq summary:hover { color: var(--fg); }
.faq summary:focus-visible { outline-offset: 4px; }
.faq .faq-a { font-size: 1.075rem; line-height: 1.75; padding-bottom: 32px; max-width: 64ch; }
.faq details::details-content { transition: block-size .35s ease, content-visibility .35s allow-discrete; }
.faq-cta-section { padding-block: clamp(40px, 6vw, 72px); }
.faq-cta {
  position: relative; text-align: center; display: grid; justify-items: center; gap: 24px;
  padding: clamp(36px, 6vw, 64px) clamp(24px, 5vw, 56px); max-width: 900px; margin-inline: auto;
  background: var(--white); border: 1px solid color-mix(in srgb, var(--brass) 45%, var(--rule)); border-radius: var(--radius);
  box-shadow: 0 18px 50px -26px color-mix(in srgb, var(--text) 28%, transparent);
}
.faq-cta::before { content: ""; position: absolute; top: -1px; left: 50%; width: 64px; height: 3px; margin-left: -32px; background: var(--brass); }
.faq-cta-title { font: 500 clamp(1.7rem, 3.4vw, 2.3rem)/1.2 var(--serif); margin: 0; }
html:lang(zh) .faq-cta-title { font-family: var(--cjk-serif); font-weight: 600; }
.faq-cta .btn { min-height: 56px; padding-inline: 44px; font-size: 17px; }
@media (prefers-reduced-motion: reduce) {
  .faq details::details-content, .faq summary::after, .contact-page .contact-list a, .contact-page .contact-list .go { transition: none; }
  .contact-page .contact-list a:hover { transform: none; }
}
@media (max-width: 560px) { .contact-page .contact-list a, .contact-page .contact-list .row { padding: 12px 14px; gap: 14px; } .faq summary { padding: 22px 0; gap: 16px; } }
/* === Round4: solar-home === */
/* Hero: warm veil (deep warm navy + a breath of brass), photo stays bright */
.solar-hero::after {
  background:
    linear-gradient(to bottom, rgba(34, 48, 64, .5) 0, transparent 24%),
    linear-gradient(var(--to-end), rgba(36, 50, 66, .58) 0, rgba(60, 62, 62, .2) 48%, transparent 76%),
    linear-gradient(to top, rgba(40, 46, 56, .74) 0, rgba(92, 72, 44, .16) 55%, transparent 85%);
}
@media (max-width: 700px) {
  .solar-hero::after {
    background:
      linear-gradient(to bottom, rgba(34, 48, 64, .5) 0, transparent 24%),
      linear-gradient(to top, rgba(40, 46, 56, .8) 0, rgba(44, 52, 62, .55) 55%, rgba(60, 60, 60, .2) 100%);
  }
}
/* From first assessment to first shipment: ivory, brass hairlines, large serif numerals */
.solar-home .ventures-lux { background: var(--ivory); padding-block: clamp(72px, 10vw, 128px); }
.solar-home .ventures-lux .section-title::after { content: ""; display: block; width: 56px; height: 1px; background: var(--brass); margin-top: 22px; }
.solar-home .ventures-lux .service-list { counter-reset: svc; border-top: 1px solid var(--brass); }
.solar-home .ventures-lux .service-list li {
  counter-increment: svc; grid-template-columns: clamp(64px, 7vw, 88px) 1fr; gap: 4px 20px;
  padding: clamp(28px, 3.4vw, 40px) 0; border-bottom: 1px solid color-mix(in srgb, var(--brass) 55%, transparent);
  transition: background-color .25s ease, padding-inline-start .25s ease;
}
.solar-home .ventures-lux .service-list li::before {
  content: counter(svc, decimal-leading-zero); grid-row: span 2; font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.6rem, 4.4vw, 3.5rem); line-height: .95; color: var(--brass-ink); direction: ltr; text-align: start;
}
.solar-home .ventures-lux .service-list .icon { display: none; }
.solar-home .ventures-lux .service-list h3 { font-size: 1.25rem; }
.solar-home .ventures-lux .service-list li:hover { background: color-mix(in srgb, var(--stone) 70%, transparent); padding-inline-start: 12px; }
@media (prefers-reduced-motion: reduce) { .solar-home .ventures-lux .service-list li { transition: none; } .solar-home .ventures-lux .service-list li:hover { padding-inline-start: 0; } }
/* Why a local partner: warm deep navy, brass details */
.solar-home .why-warm {
  background: linear-gradient(160deg, #213A50 0%, #1B3145 55%, #26394A 100%);
  border-top: 1px solid var(--brass);
}
.solar-home .why-warm .info-item { border-top-color: color-mix(in srgb, var(--brass) 55%, transparent); }
.solar-home .why-warm .kicker { color: var(--brass-light); }
.solar-home #process { background: var(--ivory); }
.solar-home #process .steps { border-top-color: var(--brass); }
/* Bottom: three distinct blocks (text on stone, founder card on ivory, CTA panel on stone) */
.solar-home .about-block { background: var(--stone); padding-block: clamp(64px, 9vw, 112px); }
.solar-home .about-block .section-title { max-width: 18ch; }
.solar-home .founder-block { background: var(--ivory); padding-block: clamp(56px, 8vw, 96px); }
.solar-home .founder-block .founder {
  margin: 0; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--brass);
  border-radius: var(--radius); padding: clamp(28px, 4vw, 52px);
}
.solar-home .cta-block { background: var(--stone); padding-block: clamp(64px, 9vw, 112px); }
.solar-home .cta-panel {
  background: linear-gradient(160deg, #213A50 0%, #1B3145 100%); border: 1px solid color-mix(in srgb, var(--brass) 60%, transparent);
  border-radius: calc(var(--radius) * 2); text-align: center; padding: clamp(40px, 6vw, 80px) clamp(24px, 6vw, 80px);
  max-width: 880px; margin-inline: auto;
}
.solar-home .cta-panel .section-title, .solar-home .cta-panel .section-lead { margin-inline: auto; }
.solar-home .cta-panel .hero-actions { justify-content: center; margin-top: 32px; }
.solar-home .cta-link { display: inline-flex; gap: 8px; align-items: center; margin-top: 26px; font-weight: 700; color: var(--brass-light); text-underline-offset: 5px; }
.solar-home .cta-link:hover { text-decoration: underline; }

/* === Round5: agri-page === */
.ag-roots { padding-block: clamp(72px, 10vw, 128px); }
.ag-roots .about-grid { gap: clamp(32px, 7vw, 104px); align-items: center; }
@media (min-width: 701px) { .ag-roots .about-grid { grid-template-columns: minmax(0, 1fr) clamp(260px, 36vw, 460px); } }
@media (max-width: 700px) { .ag-roots .about-grid { grid-template-columns: 1fr; } }
.ag-roots-text .section-title { max-width: 14ch; }
.ag-rule { display: block; width: 64px; height: 3px; background: var(--brass); border-radius: 2px; margin-block: 22px 24px; }
.ag-roots-text .section-lead { max-width: 46ch; }
.ag-frame { position: relative; margin: 0; isolation: isolate; }
.ag-frame::before { content: ""; position: absolute; inset: 0; transform: translate(-16px, 16px); border: 1.5px solid var(--brass); border-radius: calc(var(--radius) * 2); z-index: -1; }
.ag-frame .about-photo { display: block; border-radius: calc(var(--radius) * 2); aspect-ratio: 4 / 5; box-shadow: 0 18px 40px -22px rgba(0,0,0,.45); }
@media (max-width: 700px) { .ag-frame { margin-inline: 12px 0; } .ag-frame::before { transform: translate(-10px, 10px); } .ag-frame .about-photo { aspect-ratio: 4 / 3; } }
.ag-founder { padding-block: clamp(56px, 8vw, 96px); }
.ag-founder .founder { margin: 0 auto; padding: clamp(28px, 4vw, 52px); border: 1px solid color-mix(in srgb, var(--brass) 55%, transparent); border-top: 3px solid var(--brass); border-radius: calc(var(--radius) * 2); background: color-mix(in srgb, var(--ivory) 5%, transparent); align-items: center; max-width: 880px; }
.ag-founder .monogram { background: color-mix(in srgb, var(--brass) 14%, transparent); }
/* === Round5: faq === */
/* Warm head, soft cards on stone, sticky "ask us" card beside the list on desktop */
.page-head:not(.dark) h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); }
.page-head:not(.dark) .section-lead { font-size: 1.3rem; }
.page-head:not(.dark) .section-lead a { color: var(--accent); font-weight: 600; text-underline-offset: 5px; }
#faq.section { padding-block: clamp(40px, 5vw, 72px) clamp(56px, 8vw, 104px); }
.faq-wrap.faq-layout { max-width: var(--max); display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(28px, 4vw, 64px); align-items: start; }
.faq-layout .faq { border-top: 0; display: grid; gap: 14px; }
.faq-layout .faq details {
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
}
.faq-layout .faq details:hover { border-color: color-mix(in srgb, var(--brass) 60%, var(--rule)); }
.faq-layout .faq details[open] { border-color: color-mix(in srgb, var(--brass) 70%, var(--rule)); box-shadow: 0 16px 40px -24px color-mix(in srgb, var(--text) 30%, transparent); }
.faq-layout .faq summary { padding: 26px clamp(20px, 3vw, 32px); font: 500 clamp(1.2rem, 2vw, 1.45rem)/1.4 var(--serif); }
html:lang(zh) .faq-layout .faq summary { font-family: var(--cjk-serif); font-weight: 600; }
.faq-layout .faq summary:hover { color: var(--fg); }
.faq-layout .faq summary:focus-visible { outline-offset: -4px; }
.faq-layout .faq .faq-a { padding: 0 clamp(20px, 3vw, 32px) 30px; margin-inline-end: 0; max-width: none; font-size: 1.1rem; line-height: 1.8; }
.faq-layout .faq .faq-a > * { max-width: 62ch; }
.faq-layout .faq .faq-a ul { gap: 10px; }
.faq-layout .faq .faq-a li { padding-inline-start: 26px; }
.faq-layout .faq .faq-a li::before { top: .75em; background: var(--brass); width: 8px; height: 8px; }
.faq-aside { position: sticky; top: 104px; }
.faq-aside .faq-cta {
  max-width: none; margin: 0; text-align: start; justify-items: start; gap: 22px; padding: clamp(28px, 3vw, 40px);
  background: var(--night); color: var(--on-night); border: 0; border-radius: var(--radius);
  box-shadow: 0 24px 56px -28px color-mix(in srgb, var(--night) 70%, transparent);
}
.faq-aside .faq-cta::before { left: auto; margin: 0; top: 0; inset-inline-start: clamp(28px, 3vw, 40px); background: var(--brass); }
.faq-aside .faq-cta-title { color: var(--on-night); font-size: clamp(1.6rem, 2.4vw, 2rem); }
.faq-aside .faq-cta .btn { padding-inline: 32px; }
@media (max-width: 960px) {
  .faq-wrap.faq-layout { grid-template-columns: minmax(0, 1fr); }
  .faq-aside { position: static; }
}
@media (max-width: 560px) { .faq-layout .faq summary { padding: 20px 18px; } .faq-layout .faq .faq-a { padding: 0 18px 24px; } }
@media (prefers-reduced-motion: reduce) { .faq-layout .faq details { transition: none; } }
/* === Round5: solar-blocks === */
/* Contact: "where we are" map link reuses the contact-card look */
.contact-page .contact-list .map-link .map-hint {
  flex: none; font-style: normal; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--brass-ink);
  padding: 3px 12px; border: 1px solid color-mix(in srgb, var(--brass) 70%, transparent); border-radius: 999px;
  margin-inline-start: auto;
}
.contact-page .contact-list .map-link .map-hint + .go { margin-inline-start: 0; }
.contact-page .contact-list .map-link > span:not(.ltr-value) span { font-weight: 400; font-size: 1.05rem; }

/* Solar home: process */
.solar-home .process-luxe { background: linear-gradient(180deg, var(--ivory) 0%, color-mix(in srgb, var(--ivory) 88%, var(--stone)) 100%); padding-block: clamp(72px, 10vw, 128px); }
.solar-home .process-luxe .section-title { max-width: 16ch; }
.solar-home .process-luxe .section-lead { max-width: 56ch; }
.solar-home .process-luxe .steps { margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--brass); gap: 0; }
.solar-home .process-luxe .steps li {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(24px, 3vw, 36px) clamp(18px, 2.2vw, 32px) clamp(26px, 3vw, 40px) 0;
  border-inline-end: 1px solid color-mix(in srgb, var(--brass) 38%, transparent);
  margin-inline-end: clamp(18px, 2.2vw, 32px);
}
[dir="rtl"] .solar-home .process-luxe .steps li { padding: clamp(24px, 3vw, 36px) 0 clamp(26px, 3vw, 40px) clamp(18px, 2.2vw, 32px); }
.solar-home .process-luxe .steps li:last-child { border-inline-end: 0; margin-inline-end: 0; }
.solar-home .process-luxe .steps li::before {
  font-size: clamp(3.4rem, 5.4vw, 5rem); line-height: 1; font-weight: 400; margin-bottom: 18px;
  color: transparent; -webkit-text-stroke: 1px var(--brass); transition: color .3s ease;
}
.solar-home .process-luxe .steps li:hover::before { color: color-mix(in srgb, var(--brass) 30%, transparent); }
.solar-home .process-luxe .steps h3 { font-size: 1.35rem; margin-bottom: 10px; }
@media (max-width: 860px) {
  .solar-home .process-luxe .steps li { border-inline-end: 0; margin-inline-end: 0; padding-inline: 0; border-bottom: 1px solid color-mix(in srgb, var(--brass) 38%, transparent); }
  .solar-home .process-luxe .steps li:last-child { border-bottom: 0; }
}

/* Solar home: bridge to Israel (editorial, warm) */
.solar-home .about-luxe {
  background: linear-gradient(135deg, var(--stone) 0%, color-mix(in srgb, var(--stone) 80%, var(--ivory)) 100%);
  padding-block: clamp(80px, 11vw, 144px); border-top: 1px solid color-mix(in srgb, var(--brass) 45%, transparent);
}
.solar-home .about-luxe .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.solar-home .about-luxe .section-title { max-width: none; margin: 0; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.15; }
.solar-home .about-luxe .section-lead {
  margin: 0; max-width: none; position: relative; font-family: var(--serif); font-size: clamp(1.2rem, 1.8vw, 1.5rem); line-height: 1.6;
  padding-inline-start: clamp(22px, 3vw, 40px); border-inline-start: 1px solid var(--brass); color: var(--fg);
}
.solar-home .about-luxe .section-lead::before { content: ""; position: absolute; inset-block-start: 0; inset-inline-start: -1px; width: 3px; height: 56px; background: var(--brass); }
@media (max-width: 860px) { .solar-home .about-luxe .wrap { grid-template-columns: 1fr; gap: 28px; } }
