/* SINTRA website stylesheet
   Follows the SINTRA brand brief (Design/SINTRA-Brand-Brief.md):
   - Helvetica only (Arial where Helvetica is unavailable). Hierarchy from size and weight alone.
   - Six colours: Sintra Green, Sintra Red, Ink, Grey, Light, Rule grey (+ #CFE0D4 for secondary text on green).
   - Roughly 70% white, 25% green, 5% red. Red is an accent only: rules, numerals, single marks.
   - Green fields carry headings and short lines only, never body copy.
   - The rounded #F2F2F2 card is the repeated motif. Minimum text size 16 px. */

:root {
  --green: #195F32;
  --red: #BF2027;
  --ink: #1A1A1A;
  --grey: #5A5A5A;
  --light: #F2F2F2;
  --rule: #D6D6D6;
  --on-green: #CFE0D4;
  --white: #FFFFFF;
  --green-2: #3F8C5C;   /* chart palette step, used only in the map */

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 76px;
  --radius: 8px;

  --fs-body: 1.0625rem;
  --fs-small: 1rem;
  --fs-h3: clamp(1.35rem, 1.15rem + .8vw, 1.6rem);
  --fs-h2: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem);
  --fs-h1: clamp(2.6rem, 1.6rem + 4vw, 4.9rem);
  --font: Helvetica, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); scrollbar-color: var(--rule) var(--white); accent-color: var(--green); caret-color: var(--green); }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); letter-spacing: -0.03em; line-height: 1.02; color: var(--green); }
h2 { font-size: var(--fs-h2); letter-spacing: -0.02em; color: var(--green); }
h3 { font-size: var(--fs-h3); color: var(--ink); }
h4 { font-size: 1.15rem; color: var(--ink); }
table, .num { font-variant-numeric: tabular-nums; }
strong, b { font-weight: 700; }
::selection { background: var(--green); color: #fff; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--white); }
::-webkit-scrollbar-thumb { background: var(--rule); border: 3px solid var(--white); border-radius: 8px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--white { background: var(--white); }
.section--light { background: var(--light); }
.section--green { background: var(--green); color: #fff; }
.section--green h2, .section--green h3 { color: #fff; }
.section--green .lede { color: var(--on-green); }
.lede { font-size: clamp(1.15rem, 1.05rem + .35vw, 1.3rem); line-height: 1.55; color: var(--grey); max-width: 38em; }
.measure { max-width: 38em; }
.muted { color: var(--grey); }
.small { font-size: var(--fs-small); }
figcaption, .caption, .table-note, .map-note { font-style: italic; color: var(--grey); font-size: 1rem; }

/* Red rule above section headings: the brand's heading accent */
.head h2::before, .rule-top::before { content: ""; display: block; width: 56px; height: 4px; background: var(--red); margin-bottom: 22px; }
.head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 60px); max-width: 52rem; }
.head h2 { max-width: 20em; }

/* ---------- Buttons & links ---------- */
.btn {
  --bg: var(--green); --fg: #fff; --bd: var(--green);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; min-height: 50px;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd); border-radius: 4px;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--ghost { --bg: transparent; --fg: var(--green); --bd: var(--green); }
.btn--light { --bg: #fff; --fg: var(--green); --bd: #fff; }
.btn--line-light { --bg: transparent; --fg: #fff; --bd: rgba(255,255,255,.6); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { --bg: #134A27; --bd: #134A27; }
  .btn--ghost:hover { --bg: var(--green); --fg: #fff; }
  .btn--light:hover { --bg: var(--on-green); --bd: var(--on-green); }
  .btn--line-light:hover { --bg: rgba(255,255,255,.12); --bd: #fff; }
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link { color: var(--green); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: rgba(25,95,50,.35); transition: text-decoration-color 200ms ease; }
.link:hover { text-decoration-color: currentColor; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color 200ms ease; }
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand svg { height: 28px; width: auto; }
.logo .mk-r { fill: var(--red); }
.logo .mk-g, .logo .wm { fill: var(--green); }
.logo--light .mk-r, .logo--light .mk-g, .logo--light .wm { fill: #fff; }

.nav { display: none; }
@media (min-width: 1040px) { .nav { display: flex; align-items: center; gap: 4px; } }
.nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.nav li { position: relative; }
.nav a, .nav button.nav-top { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 4px; font: inherit; font-size: 1rem; color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; transition: background-color 150ms ease, color 150ms ease; }
.nav a[aria-current="page"], .nav .is-current > .nav-top { color: var(--green); font-weight: 700; }
@media (hover: hover) { .nav a:hover, .nav button.nav-top:hover { background: var(--light); } }
.nav-top svg { width: 10px; height: 10px; transition: transform 200ms var(--ease-out); }
.has-menu.is-open .nav-top svg { transform: rotate(180deg); }
.menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 300px; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 16px 36px -16px rgba(26,26,26,.28); padding: 8px; list-style: none; margin: 0; opacity: 0; transform: translateY(-4px) scale(.98); transform-origin: top left; visibility: hidden; transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out), visibility 0s linear 160ms; }
.has-menu.is-open .menu { opacity: 1; transform: none; visibility: visible; transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s; }
.menu a { display: flex; width: 100%; padding: 10px 12px; }
.menu .menu-split { border-top: 1px solid var(--rule); margin: 6px 4px; }
.nav-cta { margin-left: 10px; }
.nav .nav-cta .btn { min-height: 44px; padding: 10px 18px; color: #fff; background: var(--green); font-weight: 700; }
@media (hover: hover) { .nav .nav-cta .btn:hover { background: #134A27; } }

.burger { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-right: -10px; background: none; border: 0; cursor: pointer; color: var(--ink); }
.burger span { display: block; width: 22px; height: 2px; background: currentColor; position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: currentColor; transition: transform 220ms var(--ease-out), top 220ms var(--ease-out); }
.burger span::before { top: -7px; } .burger span::after { top: 7px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
@media (min-width: 1040px) { .burger { display: none; } }
.drawer { position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: #fff; overflow-y: auto; padding: 8px var(--gutter) 40px; opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity 200ms var(--ease-out), transform 240ms var(--ease-out), visibility 0s linear 240ms; }
.drawer.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity 200ms var(--ease-out), transform 240ms var(--ease-out), visibility 0s; }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer > ul > li { border-bottom: 1px solid var(--rule); }
.drawer a { display: block; padding: 14px 0; text-decoration: none; font-size: 1.15rem; font-weight: 700; color: var(--green); }
.drawer .sub a { padding: 8px 0 8px 14px; font-size: 1rem; font-weight: 400; color: var(--ink); }
.drawer .sub { padding-bottom: 10px; }
.drawer .btn { margin-top: 24px; width: 100%; justify-content: center; color: #fff; }
body.no-scroll { overflow: hidden; }

/* ---------- Spec card (the brand's #F2F2F2 card, used as a rating plate) ---------- */
.plate { background: var(--light); border-radius: var(--radius); padding: 26px 28px; color: var(--ink); }
.plate-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 2px solid var(--green); font-weight: 700; color: var(--green); font-size: 1.05rem; }
.plate-title svg { height: 16px; width: auto; }
.plate dl { margin: 0; display: grid; grid-template-columns: auto 1fr; }
.plate dt, .plate dd { padding: 11px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.plate dt { color: var(--grey); padding-right: 20px; }
.plate dd { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.plate dl > :nth-last-child(-n+2) { border-bottom: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--green); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,26,26,.25) 0%, rgba(26,26,26,.25) 35%, rgba(26,26,26,.82) 100%), linear-gradient(90deg, rgba(26,26,26,.55), rgba(26,26,26,0) 70%); }
.hero .wrap { min-height: min(86vh, 860px); display: grid; align-content: end; gap: 40px; padding-top: 120px; padding-bottom: clamp(40px, 6vw, 72px); }
@media (max-width: 699px) { .hero-media::after { background: linear-gradient(180deg, rgba(26,26,26,.5) 0%, rgba(26,26,26,.7) 40%, rgba(26,26,26,.92) 100%); } }
@media (min-width: 1000px) { .hero .wrap { grid-template-columns: minmax(0, 1fr) 420px; align-items: end; } }
.hero h1 { color: #fff; max-width: 11ch; }
.hero h1::before { content: ""; display: block; width: 72px; height: 5px; background: var(--red); margin-bottom: 28px; }
.hero .lede { color: #fff; opacity: .92; margin-top: 24px; max-width: 30em; }
.hero .btn-row { margin-top: 32px; }
.hero .plate { max-width: 420px; }
.hero-line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-line > span { display: block; }
.load .hero-line > span { transform: translateY(105%); }
.load .hero-fade { opacity: 0; transform: translateY(10px); }
.loaded .hero-line > span { transform: none; transition: transform 900ms var(--ease-out); }
.loaded .hero-line:nth-child(2) > span { transition-delay: 70ms; }
.loaded .hero-line:nth-child(3) > span { transition-delay: 140ms; }
.loaded .hero-fade { opacity: 1; transform: none; transition: opacity 700ms ease 320ms, transform 900ms var(--ease-out) 320ms; }
.loaded .hero-fade.d2 { transition-delay: 460ms; }

/* Page hero (inner pages): white page, green headline, pale logogram watermark */
.page-hero { position: relative; background: var(--white); border-bottom: 1px solid var(--rule); overflow: hidden; isolation: isolate; }
.page-hero::after { content: ""; position: absolute; z-index: -1; right: -6%; bottom: -30%; width: 46%; aspect-ratio: 1.3; background: url(../img/sintra-watermark.png) no-repeat center / contain; pointer-events: none; }
.page-hero .wrap { display: grid; gap: 20px; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(40px, 6vw, 80px); }
@media (min-width: 900px) { .page-hero:not(.page-hero--media) .wrap:has(.ph-visual) { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: end; gap: 48px; } }
.page-hero h1 { font-size: clamp(2.4rem, 1.5rem + 3.2vw, 4rem); max-width: 13ch; }
.page-hero .lede { max-width: 40em; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 20px; color: var(--grey); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--rule); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--green); }
.page-hero--media { background: var(--green); color: #fff; border: 0; }
.page-hero--media::after { display: none; }
.page-hero--media h1 { color: #fff; }
.page-hero--media .crumbs, .page-hero--media .crumbs a { color: var(--on-green); }
.page-hero--media .lede { color: #fff; opacity: .92; }
.page-hero--media .wrap { min-height: 460px; align-content: end; }
.page-hero--media .hero-media::after { background: linear-gradient(180deg, rgba(26,26,26,.2), rgba(26,26,26,.82)), linear-gradient(90deg, rgba(26,26,26,.5), rgba(26,26,26,0) 75%); }
.ph-visual { display: grid; }
.ph-cut { display: block; height: 300px; padding: 0 24px; margin-bottom: -28px; position: relative; z-index: 1; pointer-events: none; }
.ph-cut img { height: 100%; width: 100%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 20px 18px rgba(26,26,26,.2)); }
.ph-visual .plate { padding-top: 44px; }

/* ---------- Grids & figures ---------- */
.split { display: grid; gap: clamp(32px, 5vw, 72px); }
@media (min-width: 900px) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
  .split--wide-left { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .split--wide-right { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
  .split--top { align-items: start; }
}
.figure { margin: 0; }
.figure img { width: 100%; border-radius: var(--radius); background: var(--light); }
.figure figcaption { margin-top: 10px; }
.ratio-wide img { aspect-ratio: 16 / 10; object-fit: cover; }
.ratio-square img { aspect-ratio: 1; object-fit: cover; }
.ratio-tall img { aspect-ratio: 4 / 5; object-fit: cover; }
.stack > * + * { margin-top: 18px; }
.prose { max-width: 40em; }
.prose ul { padding-left: 1.2em; }

/* Key figures: large green numerals, grey explanations */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fact { padding: 22px 20px 22px 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 900px) { .fact { border-bottom: 0; } .fact + .fact { padding-left: 24px; border-left: 1px solid var(--rule); } }
.fact b { display: block; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1.05; color: var(--green); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.fact span { display: block; margin-top: 6px; color: var(--grey); }

/* Plants (home intro) */
.plants img { width: 100%; border-radius: var(--radius); aspect-ratio: 1800 / 759; object-fit: cover; }
.plant-tags { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 700px) { .plant-tags { grid-template-columns: 1fr 1fr; } }
.plant-tag { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; padding: 14px 0; border-top: 2px solid var(--green); }
.plant-tag b { color: var(--green); white-space: nowrap; }
.plant-tag span { color: var(--grey); }

/* ---------- Product index: #F2F2F2 cards ---------- */
.products { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .products { grid-template-columns: repeat(6, minmax(0, 1fr)); } .product--lg { grid-column: span 3; } .product--sm { grid-column: span 2; } }
.product { display: grid; grid-template-rows: auto 1fr; text-decoration: none; background: var(--light); border-radius: var(--radius); overflow: hidden; }
.product-media { display: grid; place-items: end center; padding: 28px 24px 0; height: 300px; }
.product--lg .product-media { height: 380px; }
.product-media img { max-height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 18px 16px rgba(26,26,26,.16)); transition: transform 400ms var(--ease-out); }
.product-media .duo { display: flex; align-items: flex-end; justify-content: center; gap: 4%; height: 100%; }
.product-media .duo img { max-width: 48%; max-height: 270px; height: auto; }
.product-media .duo.solo img { max-width: 92%; }
.product--lg .product-media .duo img { max-height: 340px; }
.product-media.is-photo { padding: 0; place-items: stretch; }
.product-media.is-photo img { width: 100%; height: 100%; object-fit: cover; filter: none; }
.product-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.product-body h3 { font-size: 1.35rem; color: var(--green); }
.product-body p { color: var(--grey); }
.product-spec { margin-top: auto; padding-top: 12px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) {
  .product { transition: box-shadow 250ms ease; }
  .product:hover { box-shadow: 0 0 0 2px var(--green) inset; }
  .product:hover .product-media img { transform: translateY(-6px); }
  .product-media.is-photo img { transition: transform 600ms var(--ease-out); }
  .product:hover .product-media.is-photo img { transform: scale(1.03); }
}

/* ---------- Voltage chain diagram (white ground) ---------- */
.chain { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 8px; color: var(--ink); }
.chain svg { min-width: 880px; width: 100%; height: auto; }
.chain .bus { stroke: var(--rule); stroke-width: 3; fill: none; }
.chain .bus-live { stroke: var(--green); stroke-width: 3; fill: none; stroke-dasharray: 6 10; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -32; } }
.chain .kv { font: 700 22px var(--font); fill: var(--ink); }
.chain .lbl { font: 400 16px var(--font); fill: var(--grey); }
.chain .lbl-strong { font: 700 16px var(--font); fill: var(--ink); }
.chain .node { fill: #fff; stroke: var(--green); stroke-width: 3; }
.chain .node-ext { fill: #fff; stroke: var(--rule); stroke-width: 3; }
.chain .ours { fill: var(--red); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 20px; color: var(--grey); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }

/* ---------- PLN map (white ground: green land, red points) ---------- */
.map-shell { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .map-shell { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.map-hud { display: flex; align-items: baseline; gap: 16px; margin-bottom: 16px; }
.map-hud b { display: block; font-size: clamp(2.8rem, 2rem + 3vw, 4.4rem); line-height: 1; color: var(--green); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.map-hud span { display: block; color: var(--grey); max-width: 26em; }
.map-stage { position: relative; background: var(--light); border-radius: var(--radius); overflow: hidden; }
.map-stage svg { width: 100%; height: auto; touch-action: manipulation; }
.map-stage .nb { fill: #E6E6E6; stroke: #fff; stroke-width: .6; }
.map-stage .rg { fill: var(--rule); stroke: #fff; stroke-width: .6; transition: fill 300ms ease, opacity 300ms ease; }
.map-stage .rg.on { fill: var(--green); }
.map-stage .rg.dim { opacity: .3; }
.map-stage .rl { font: 700 13px var(--font); fill: #fff; pointer-events: none; transition: opacity 300ms ease; }
.map-stage .rl.off { fill: var(--grey); }
.map-stage .u { cursor: pointer; transition: opacity 250ms ease; }
.map-stage .u .halo { fill: rgba(191,32,39,.22); transform-box: fill-box; transform-origin: center; transition: transform 300ms var(--ease-out); }
.map-stage .u .dot { fill: var(--red); stroke: #fff; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.map-stage .u.off { opacity: 0; pointer-events: none; }
.map-stage .u.fade { opacity: .15; }
.map-stage .u:focus { outline: none; }
.map-stage .u:focus-visible .dot, .map-stage .u.is-active .dot { stroke: var(--ink); stroke-width: 2.4; }
.map-stage .u.is-active .halo { transform: scale(1.6); }
.map-stage .u.pop .halo { animation: pop 900ms var(--ease-out); }
@keyframes pop { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(2.6); opacity: 0; } }
.map-tip { position: absolute; z-index: 3; pointer-events: none; min-width: 230px; max-width: 290px; padding: 12px 14px; background: #fff; color: var(--ink); border-radius: var(--radius); line-height: 1.4; box-shadow: 0 12px 28px -10px rgba(26,26,26,.35); opacity: 0; transform: translate(-50%, calc(-100% - 14px)) scale(.97); transform-origin: 50% 100%; transition: opacity 140ms var(--ease-out), transform 140ms var(--ease-out); }
.map-tip.is-on { opacity: 1; transform: translate(-50%, calc(-100% - 14px)); }
.map-tip b { display: block; color: var(--green); }
.map-tip .t-meta { color: var(--grey); }
.map-tip .t-rating { display: inline-block; margin-top: 6px; font-weight: 700; }
.map-reset { position: absolute; right: 14px; top: 14px; }
.map-reset .btn { min-height: 40px; padding: 8px 14px; }
.map-reset[hidden] { display: none; }
.map-time { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--rule); background: #fff; }
.map-time .play { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--green); color: #fff; display: grid; place-items: center; cursor: pointer; transition: transform 160ms var(--ease-out); }
.map-time .play:active { transform: scale(.94); }
.map-time .play svg { width: 14px; height: 14px; }
.map-time input[type=range] { flex: 1; accent-color: var(--green); min-width: 0; }
.map-time output { flex: none; min-width: 4.4em; text-align: right; font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; }
.map-panel { display: grid; gap: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 15px; border: 1px solid var(--rule); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 1rem; cursor: pointer; transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 140ms var(--ease-out); }
.chip:active { transform: scale(.97); }
.chip .c { font-variant-numeric: tabular-nums; color: var(--grey); }
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.chip[aria-pressed="true"] .c { color: var(--on-green); }
@media (hover: hover) { .chip:hover { border-color: var(--green); } }
.panel-label { font-weight: 700; margin-bottom: 10px; }
.unit-list { list-style: none; margin: 0; padding: 0; max-height: 380px; overflow-y: auto; border-top: 1px solid var(--rule); }
.unit-list li button { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; width: 100%; padding: 10px 4px; background: none; border: 0; border-bottom: 1px solid var(--rule); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.unit-list li button:hover, .unit-list li button.is-active { background: var(--light); }
.unit-list .n { font-weight: 700; }
.unit-list .m { color: var(--grey); }
.unit-list .r { grid-row: span 2; align-self: center; font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; }

/* ---------- Tables: green header row, alternating rows ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 1rem; }
th, td { padding: 11px 14px; text-align: right; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
thead th { background: var(--green); color: #fff; font-weight: 700; vertical-align: bottom; line-height: 1.3; white-space: normal; min-width: 80px; }
thead th small { display: block; font-weight: 400; color: var(--on-green); }
tbody tr { background: #fff; }
tbody tr:nth-child(even) { background: var(--light); }
.section--light tbody tr:nth-child(even) { background: #E9E9E9; }
tbody th { font-weight: 700; }
td.l, th.l { text-align: left; }
.t-text td, .t-text th { text-align: left; white-space: normal; }
.t-text th[scope=row] { width: 45%; }
.table-note { margin-top: 10px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
[data-tabpanel][hidden] { display: none; }

/* ---------- Product range ---------- */
.range { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .range { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .range { grid-template-columns: repeat(5, minmax(0, 1fr)); } .range--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.range figure { margin: 0; background: var(--light); border-radius: var(--radius); padding: 20px 16px 16px; display: grid; grid-template-rows: 200px auto; gap: 14px; }
.range img { max-height: 200px; width: auto; margin: 0 auto; align-self: end; object-fit: contain; filter: drop-shadow(0 12px 12px rgba(26,26,26,.14)); }
.range figcaption { border-top: 1px solid var(--rule); padding-top: 10px; font-style: normal; }
.range figcaption b { display: block; color: var(--green); font-variant-numeric: tabular-nums; }
.range figcaption span { color: var(--grey); }

/* Feature lists */
.features { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--rule); }
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; } }
@media (min-width: 1080px) { .features--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feature { padding: 22px 0; border-bottom: 1px solid var(--rule); }
.feature h4 { margin-bottom: 8px; }
.feature p { color: var(--grey); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; }
.ticks li { position: relative; padding: 10px 0 10px 28px; border-bottom: 1px solid var(--rule); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 11px; height: 6px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.ticks--cols { grid-template-columns: 1fr; column-gap: 40px; }
@media (min-width: 720px) { .ticks--cols { grid-template-columns: 1fr 1fr; } }

/* ---------- Process (a real sequence; red numerals as in the brand's agenda layout) ---------- */
.process { list-style: none; margin: 0; padding: 0; display: grid; gap: 56px; counter-reset: step; }
.process li { display: grid; gap: 24px; counter-increment: step; }
@media (min-width: 900px) { .process li { grid-template-columns: 100px minmax(0, 1fr) minmax(0, 1.25fr); gap: 40px; align-items: start; } }
.process li::before { content: counter(step, decimal-leading-zero); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--red); font-variant-numeric: tabular-nums; border-top: 2px solid var(--rule); padding-top: 14px; }
.process h3 { margin-bottom: 12px; border-top: 2px solid var(--rule); padding-top: 14px; color: var(--green); }
.process p { color: var(--grey); }
.process img { width: 100%; border-radius: var(--radius); aspect-ratio: 16/10; object-fit: cover; }

/* ---------- Timeline: green dots ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--rule); }
@media (min-width: 900px) { .timeline::before { left: 127px; } }
.tl-item { position: relative; display: grid; gap: 6px; padding: 0 0 34px 36px; }
@media (min-width: 900px) { .tl-item { grid-template-columns: 110px minmax(0, 1fr); gap: 52px; padding-left: 0; } }
.tl-item::before { content: ""; position: absolute; left: 1px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--green); }
@media (min-width: 900px) { .tl-item::before { left: 121px; } }
.tl-item.is-key::before { background: var(--green); }
.tl-year { font-weight: 700; font-size: 1.6rem; line-height: 1.1; color: var(--green); font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .tl-year { text-align: right; } }
.tl-body { max-width: 42em; }
.tl-body h4 { margin-bottom: 4px; }
.tl-body p { color: var(--grey); }
.tl-body img { margin-top: 14px; border-radius: var(--radius); max-width: 340px; width: 100%; }

/* ---------- Values (THRIVE), as in the Company Profile: big green letters on white ---------- */
.thrive { display: grid; grid-template-columns: 1fr; border-top: 2px solid var(--green); }
@media (min-width: 720px) { .thrive { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .thrive { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.value { display: grid; grid-template-columns: 76px 1fr; gap: 6px 16px; padding: 26px 24px 28px 0; border-bottom: 1px solid var(--rule); }
.value .ltr { grid-row: span 2; font-size: 4.4rem; line-height: .85; font-weight: 700; color: var(--green); }
.value h3 { font-size: 1.3rem; }
.value p { color: var(--grey); }

/* ---------- Org chart ---------- */
.org { display: grid; justify-items: center; }
.org-box { background: var(--light); border-radius: var(--radius); padding: 14px 22px; text-align: center; min-width: 240px; }
.org-box b { display: block; }
.org-box span { color: var(--grey); }
.org-box--top { background: var(--green); color: #fff; }
.org-box--top span { color: var(--on-green); }
.org-stem { width: 2px; height: 28px; background: var(--rule); }
.org-mid { display: grid; gap: 12px; width: 100%; justify-items: center; }
@media (min-width: 900px) { .org-mid { grid-template-columns: 1fr auto 1fr; align-items: center; } .org-side { justify-self: stretch; display: flex; } .org-side--l { justify-content: flex-end; } }
.org-side .org-box { background: #fff; border: 1px dashed var(--rule); min-width: 0; padding: 10px 16px; }
.org-divs { position: relative; width: 100%; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); padding-top: 28px; }
@media (min-width: 1100px) { .org-divs { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.org-divs::before { content: ""; position: absolute; top: 0; left: 6%; right: 6%; height: 2px; background: var(--rule); }
@media (max-width: 899px) { .org-divs::before { display: none; } .org-divs { padding-top: 0; } }
.org-div { background: var(--light); border-top: 3px solid var(--green); border-radius: 0 0 var(--radius) var(--radius); padding: 14px 14px 16px; }
.org-div b { display: block; line-height: 1.25; margin-bottom: 8px; color: var(--green); }
.org-div ul { list-style: none; padding: 0; margin: 0; color: var(--grey); line-height: 1.45; }
.org-div li + li { margin-top: 3px; }

/* ---------- People ---------- */
.people { display: grid; gap: 40px 28px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .people { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.person img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--light); }
.person h3 { font-size: 1.3rem; margin-top: 18px; }
.person .role { color: var(--green); font-weight: 700; margin: 4px 0 12px; }
.person p { color: var(--grey); }

/* ---------- Certifications ---------- */
.certs { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .certs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cert { display: grid; grid-template-columns: 76px 1fr; gap: 18px; align-items: start; background: var(--light); border-radius: var(--radius); padding: 22px; }
.cert img { width: 76px; height: 76px; object-fit: contain; }
.cert h3 { font-size: 1.2rem; margin-bottom: 6px; color: var(--green); }
.cert p { color: var(--grey); }
.cert > div { align-self: stretch; display: flex; flex-direction: column; }
.cert .since { display: block; margin-top: auto; padding-top: 14px; font-weight: 700; }

/* ---------- Logos ---------- */
.logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; }
@media (min-width: 640px) { .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .logos { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.logos li { list-style: none; background: var(--light); border-radius: var(--radius); display: grid; place-items: center; height: 110px; padding: 18px 22px; }
.logos img { max-height: 46px; max-width: 100%; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; mix-blend-mode: multiply; transition: filter 250ms ease, opacity 250ms ease; }
@media (hover: hover) { .logos li:hover img { filter: none; opacity: 1; } }
.sectors { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .sectors { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.sector h3 { font-size: 1.1rem; padding-top: 12px; border-top: 2px solid var(--green); margin-bottom: 10px; color: var(--green); }
.sector ul { list-style: none; padding: 0; margin: 0; color: var(--grey); line-height: 1.5; }
.sector li + li { margin-top: 4px; }

/* ---------- Standards & export ---------- */
.standards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .standards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.standard { background: var(--light); border-radius: var(--radius); padding: 20px; }
.standard b { display: block; font-size: 1.2rem; color: var(--green); }
.standard span { color: var(--grey); }
.markets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.markets span { padding: 6px 14px; border: 1px solid var(--rule); border-radius: 999px; }
.export-figure { background: var(--light); border-radius: var(--radius); padding: 32px 24px 0; display: grid; place-items: end center; min-height: 380px; }
.export-figure img { max-height: 360px; width: auto; filter: drop-shadow(0 24px 22px rgba(26,26,26,.2)); }

/* ---------- Green banner (heading and one line only) ---------- */
.banner { background: var(--green); color: #fff; border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); display: grid; gap: 28px; position: relative; overflow: hidden; isolation: isolate; }
.banner::after { content: ""; position: absolute; z-index: -1; right: -40px; bottom: -60px; width: 300px; aspect-ratio: 1.3; background: url(../img/sintra-mark-white.svg) no-repeat center / contain; opacity: .08; }
@media (min-width: 900px) { .banner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; } }
.banner h2 { color: #fff; }
.banner h2::before { content: ""; display: block; width: 56px; height: 4px; background: var(--red); margin-bottom: 20px; }
.banner p { color: var(--on-green); font-size: 1.15rem; }
.banner img { border-radius: var(--radius); width: 100%; aspect-ratio: 16/10; object-fit: cover; }

/* ---------- News ---------- */
.news { display: grid; border-top: 1px solid var(--rule); }
.news-item { display: grid; gap: 14px 32px; padding: 24px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
@media (min-width: 800px) { .news-item { grid-template-columns: 150px minmax(0, 1fr) 200px; align-items: center; } }
.news-item time { color: var(--grey); font-variant-numeric: tabular-nums; }
.news-item h3 { font-size: 1.3rem; color: var(--green); }
.news-item p { color: var(--grey); margin-top: 6px; }
.news-item .thumb { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); background: var(--light); }
.news-item .thumb.is-cut { object-fit: contain; padding: 10px; }
.thumb-empty { aspect-ratio: 4/3; border-radius: var(--radius); background: var(--light); display: grid; place-items: center; }
.thumb-empty svg { width: 44px; opacity: .5; }
@media (max-width: 799px) { .news-item .thumb, .news-item .thumb-empty { display: none; } }
@media (hover: hover) { .news-item:hover h3 { text-decoration: underline; text-underline-offset: 4px; } }
.news-cards { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .news-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.news-card { text-decoration: none; display: grid; gap: 12px; align-content: start; }
.news-card img, .news-card .thumb-empty { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius); background: var(--light); }
.news-card img.is-cut { object-fit: contain; padding: 16px; }
.news-card time { color: var(--grey); }
.news-card h3 { font-size: 1.25rem; color: var(--green); }
@media (hover: hover) { .news-card:hover h3 { text-decoration: underline; text-underline-offset: 4px; } }
.article { max-width: 760px; }
.article h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); }
.article .lede { margin-bottom: 28px; }
.article figure { margin: 32px 0; }
.article-meta { color: var(--grey); margin-bottom: 16px; }

/* ---------- Enquiry (light panel; body copy stays off green) ---------- */
.cta-band { background: var(--light); }
.cta-band .wrap { display: grid; gap: 40px; padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
@media (min-width: 960px) { .cta-band .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; } }
.cta-band h2::before { content: ""; display: block; width: 56px; height: 4px; background: var(--red); margin-bottom: 22px; }
.cta-band .lede { margin-top: 18px; }
.form { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; } .form .full { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid var(--rule); border-radius: 4px; transition: border-color 150ms ease, box-shadow 150ms ease; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(25,95,50,.18); }
.field input::placeholder, .field textarea::placeholder { color: var(--grey); }
.check { display: flex; flex-wrap: wrap; gap: 8px; }
.check label { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: #fff; border: 1px solid var(--rule); border-radius: 999px; font-weight: 400; cursor: pointer; }
.check input { accent-color: var(--green); width: 16px; height: 16px; min-height: 0; }
.form-note { color: var(--grey); font-style: italic; }
.form-status { font-weight: 700; color: var(--green); }

/* ---------- Contact ---------- */
.locations { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .locations { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.location { background: var(--light); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.location img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.location div { padding: 22px; display: grid; gap: 10px; align-content: start; }
.location h3 { font-size: 1.2rem; color: var(--green); }
.location address { font-style: normal; color: var(--grey); }

/* ---------- Footer: white, contact block, green bar closes the foot ---------- */
.site-footer { background: #fff; color: var(--grey); border-top: 1px solid var(--rule); border-bottom: 10px solid var(--green); }
.site-footer .wrap { padding-top: 64px; padding-bottom: 28px; }
.foot-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; } }
.site-footer h2 { font-size: 1rem; color: var(--ink); margin-bottom: 12px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: var(--ink); }
.site-footer a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.site-footer .web { color: var(--green); font-weight: 700; }
.site-footer address { font-style: normal; line-height: 1.55; }
.foot-brand svg { height: 30px; width: auto; margin-bottom: 18px; }
.foot-tag { font-size: 1.3rem; color: var(--green); font-weight: 700; line-height: 1.25; max-width: 14em; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 52px; padding-top: 20px; border-top: 1px solid var(--rule); }

/* ---------- Utilities ---------- */
.mt-s { margin-top: 16px; } .mt-m { margin-top: 32px; } .mt-l { margin-top: 56px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .load .hero-line > span, .load .hero-fade { transform: none; }
  .loaded .hero-line > span, .loaded .hero-fade { transition: opacity 300ms ease; }
  .chain .bus-live { animation: none; }
  .product-media img, .menu, .drawer { transition-property: opacity; transform: none !important; }
}
@media print { .site-header, .drawer, .cta-band, .map-time { display: none; } }

/* Track record page */
@media (min-width: 900px) { .facts--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.tr-jump { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 28px; }
.tr-jump a { color: var(--green); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--rule); transition: text-decoration-color 180ms ease; }
@media (hover: hover) { .tr-jump a:hover { text-decoration-color: var(--green); } }
.tr-h { font-size: 1.25rem; margin-bottom: 16px; }
.tr-more { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.tr-more > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font-weight: 700; color: var(--green); }
.tr-more > summary::-webkit-details-marker { display: none; }
.tr-more > summary::after { content: "+"; font-size: 1.5rem; line-height: 1; transition: transform 200ms var(--ease-out); }
.tr-more[open] > summary::after { transform: rotate(45deg); }
.tr-more[open] { padding-bottom: 24px; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 8px 14px; border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; }
.logos li.logo-text span { font-weight: 700; font-size: 1.15rem; line-height: 1.15; letter-spacing: -0.01em; color: #6b6b6b; text-align: center; transition: color 250ms ease; }
@media (hover: hover) { .logos li.logo-text:hover span { color: var(--ink); } }
.logo-group { font-size: 1.1rem; color: var(--grey); font-weight: 400; margin: 40px 0 14px; }
.logo-group:first-of-type { margin-top: 0; }
.cert-mark { width: 76px; height: 76px; display: grid; place-content: center; text-align: center; border: 2px solid var(--green); border-radius: 50%; color: var(--green); font-size: .7rem; font-weight: 700; line-height: 1.1; letter-spacing: .02em; }
.cert-mark b { display: block; font-size: 1.05rem; letter-spacing: -0.01em; }
/* Plant schematic (home) */
.plant-schematic { background: #fff; }
.plant-svg { display: block; width: 100%; max-width: 1040px; height: auto; margin: 0 auto;
  --sk-top: #fff; --sk-front: #F2F2F2; --sk-side: #E3E3E3; --sk-roof: #E4EEE7; --sk-roof2: #CFE0D4; --sk-win: #B9D6C3; --sk-ground: #F7F7F7; --sk-road: #fff; }
.plant-svg .b { stroke: var(--green); stroke-width: 1.1; stroke-linejoin: round; }
.plant-svg .gr, .plant-svg .rd { stroke: var(--rule); stroke-width: 1; }
.plant-svg .dash { stroke: var(--rule); stroke-width: 1.5; }
.plant-svg .tr circle { fill: #B9D6C3; stroke: #7FB496; stroke-width: 1; }
.plant-svg .trs { fill: #E6E6E6; }
.plant-svg .dot { fill: var(--red); }
.plant-svg .lead { fill: none; stroke: var(--ink); stroke-width: 1; }
.plant-svg .t1 { font-family: var(--font); font-size: 30px; font-weight: 700; fill: var(--green); }
@media (max-width: 699px) { .plant-svg .t1 { font-size: 44px; } }
/* Catalogue library */
.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1000px) { .docs { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.doc a { display: flex; flex-direction: column; height: 100%; padding: 16px 16px 18px; background: #fff; border-radius: var(--radius); color: inherit; text-decoration: none; border: 1px solid var(--rule); transition: border-color 180ms ease, transform 160ms var(--ease-out); }
.doc a:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .doc a:hover { border-color: var(--green); } .doc a:hover .doc-btn { background: var(--green-dark, #134A27); } }
.doc-cover { aspect-ratio: 595 / 842; overflow: hidden; border: 1px solid var(--rule); margin-bottom: 16px; background: #fff; }
.doc-cover img { width: 100%; height: 100%; object-fit: cover; }
.doc h3 { font-size: 1.15rem; color: var(--green); margin-bottom: 6px; }
.doc p { color: var(--grey); font-size: 1rem; line-height: 1.45; margin-bottom: 12px; }
.doc-meta { color: var(--grey); font-size: 1rem; font-style: italic; margin-top: auto; }
.doc-btn { margin-top: 14px; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; background: var(--green); color: #fff; font-weight: 700; border-radius: var(--radius); transition: background-color 180ms ease; }
.dl-meta { font-weight: 400; opacity: .8; margin-left: 4px; }

/* Sticky side column only when it sits beside the content and fits the window */

/* Voltage chain: horizontal diagram on wide screens, stacked list on narrow ones */
.chain-list { display: none; list-style: none; margin: 0; padding: 0; position: relative; }
@media (max-width: 899px) {
  .chain { display: none; }
  .chain-list { display: grid; gap: 0; }
  .chain-list::before { content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px; background: repeating-linear-gradient(to bottom, var(--green) 0 6px, transparent 6px 14px); }
  .chain-list li { position: relative; display: grid; grid-template-columns: 76px 1fr; column-gap: 12px; padding: 0 0 22px 36px; }
  .chain-list li::before { content: ""; position: absolute; left: 2px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--rule); }
  .chain-list li.is-ours::before { border-color: var(--green); background: radial-gradient(circle, var(--red) 0 4px, #fff 4.5px); }
  .chain-list .cl-kv { grid-row: span 2; font-size: 1.25rem; line-height: 1.2; }
  .chain-list .cl-t { font-weight: 700; }
  .chain-list .cl-s { color: var(--grey); }
}

/* Layouts that need real width before going side by side */
@media (min-width: 900px) and (max-width: 1199px) { .split--late { grid-template-columns: 1fr; } .split--late > .stack { max-width: 720px; } }
@media (min-width: 700px) and (max-width: 1099px) { .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .certs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 700px) and (max-width: 1199px) { .docs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .docs { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 700px) and (max-width: 1199px) { .facts--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .facts--5 .fact { border-bottom: 1px solid var(--rule); } .facts--5 .fact:nth-child(3n+1) { padding-left: 0; border-left: 0; } }
/* News article photo gallery */
.news-gallery { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 32px; }
@media (min-width: 900px) { .news-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.news-gallery figure { margin: 0; }
.news-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--light); }
/* Recent milestones (home) */
.ms-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .ms-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ms-card { background: var(--light); border-radius: var(--radius); padding: 24px 24px 26px; border-top: 3px solid var(--green); }
.ms-card:first-child { border-top-color: var(--red); }
.ms-year { display: block; font-size: 2.4rem; line-height: 1; font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; margin-bottom: 14px; }
.ms-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.ms-card p { color: var(--grey); }
/* Design engineering */
.standards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
@media (min-width: 560px) { .standards { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
#standards .standard { background: #fff; }
.dz-targets li { background: var(--light); border-color: transparent; font-weight: 700; color: var(--green); }
.sim-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .sim-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sim { margin: 0; }
.sim img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 10px; }
.sim figcaption { margin-top: 10px; font-style: normal; }
.sim figcaption b { display: block; color: var(--ink); font-style: normal; }
.dz-split { gap: clamp(32px, 5vw, 64px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .dz-split { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dz-steps { list-style: none; margin: 0; padding: 0; counter-reset: dz; display: grid; gap: 0; }
.dz-steps li { counter-increment: dz; display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule); }
.dz-steps li::before { content: counter(dz, decimal-leading-zero); grid-row: span 2; font-weight: 700; font-size: 1.3rem; color: var(--red); font-variant-numeric: tabular-nums; }
.dz-steps span { color: var(--grey); }
.dz-life { background: var(--light); border-radius: var(--radius); padding: 18px 20px; color: var(--grey); }
.dz-life b { color: var(--ink); }
/* Taiwan heritage (About) */
.heritage { max-width: 420px; }
.heritage p { color: var(--grey); }
.heritage b { color: var(--ink); }
.heritage-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.heritage-pics figure { margin: 0; background: #fff; border-radius: var(--radius); padding: 12px; display: grid; grid-template-rows: 150px auto; gap: 8px; }
.heritage-pics img { width: 100%; height: 150px; object-fit: contain; }
.heritage-pics figcaption { font-size: 1rem; }

/* ---------- Grid flow schematic (power plant to plug) ---------- */
.gf { --gf-dark: #4A4A4A; --gf-body: var(--green); --gf-mid: #3F8C5C; --gf-fin: #7FB496; --gf-line: #5A5A5A; }
.gf-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; }
.gf-step { position: relative; display: grid; grid-template-rows: 112px auto auto auto; justify-items: center; text-align: center; padding: 0 6px; }
.gf-icon { width: 100%; max-width: 120px; height: 100px; align-self: end; }
.gf-icon svg { width: 100%; height: 100%; display: block; overflow: visible; }
.gf .gf-dark { fill: var(--gf-dark); } .gf .gf-body { fill: var(--gf-body); } .gf .gf-mid { fill: var(--gf-mid); } .gf .gf-fin { fill: var(--gf-fin); }
.gf .gf-smoke circle { fill: #D6D6D6; }
.gf .gf-line path { fill: none; stroke: var(--gf-line); stroke-width: 2.2; stroke-linecap: round; }
.gf-step b { margin-top: 16px; font-size: 1rem; line-height: 1.25; }
.gf-kv { margin-top: 8px; color: var(--grey); font-variant-numeric: tabular-nums; }
.gf-step.is-tx .gf-kv { color: var(--red); font-weight: 700; }
.gf-badge { margin-top: 10px; display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--green); color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .01em; }
/* connectors: flowing dashes between icons */
.gf-step:not(:last-child)::after { content: ""; position: absolute; top: 72px; right: -18px; width: 36px; height: 2px; background: repeating-linear-gradient(90deg, var(--rule) 0 6px, transparent 6px 12px); background-size: 12px 2px; }
.gf.is-live .gf-step:not(:last-child)::after { background-image: repeating-linear-gradient(90deg, var(--green) 0 6px, transparent 6px 12px); animation: gf-flow 900ms linear infinite; }
.gf-step:not(:last-child)::before { content: ""; position: absolute; top: 68px; right: -21px; border: 5px solid transparent; border-left: 7px solid var(--rule); }
.gf.is-live .gf-step:not(:last-child)::before { border-left-color: var(--green); }
@keyframes gf-flow { to { background-position: 12px 0; } }
.gf-groups { display: grid; grid-template-columns: 3fr 4fr; gap: 24px; margin-top: 28px; }
.gf-groups span { padding-top: 14px; border-top: 2px solid var(--green); color: var(--grey); position: relative; }
.gf-groups span::before, .gf-groups span::after { content: ""; position: absolute; top: -10px; width: 2px; height: 10px; background: var(--green); left: 0; }
.gf-groups span::after { left: auto; right: 0; }
.gf-groups b { color: var(--green); margin-right: 6px; }
/* smoke drifts gently (decorative, constant) */
.gf.is-live .gf-smoke circle { animation: gf-smoke 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.gf.is-live .gf-smoke circle:nth-child(2) { animation-delay: -1.1s; } .gf.is-live .gf-smoke circle:nth-child(3) { animation-delay: -2.2s; }
@keyframes gf-smoke { 0%, 100% { transform: translateY(0) scale(1); opacity: 1; } 50% { transform: translateY(-4px) scale(1.08); opacity: .7; } }
/* SINTRA transformers hum: a soft green halo pulses once per flow cycle */
.gf-step.is-ours .gf-icon { position: relative; }
.gf-step.is-ours .gf-icon::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 70%; height: 14px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(25,95,50,.28), transparent); opacity: 0; }
.gf.is-live .gf-step.is-ours .gf-icon::after { animation: gf-hum 1.8s ease-in-out infinite; }
@keyframes gf-hum { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
/* entrance: steps arrive left to right, following the power */
.js .gf .gf-step { opacity: 0; transform: translateY(14px); }
.js .gf.is-in .gf-step { opacity: 1; transform: none; transition: opacity 500ms ease, transform 700ms var(--ease-out); transition-delay: calc(var(--i) * 90ms); }
.js .gf .gf-groups, .js .gf .caption { opacity: 0; }
.js .gf.is-in .gf-groups, .js .gf.is-in .caption { opacity: 1; transition: opacity 600ms ease 700ms; }
/* stacked on narrow screens: power flows down */
@media (max-width: 899px) {
  .gf-steps { grid-template-columns: 1fr; gap: 26px; }
  .gf-step { grid-template-columns: 88px 1fr; grid-template-rows: auto auto auto; justify-items: start; text-align: left; column-gap: 16px; padding: 0; }
  .gf-icon { grid-row: span 3; width: 88px; height: 74px; align-self: center; }
  .gf-step b { margin-top: 0; align-self: end; }
  .gf-kv { margin-top: 2px; }
  .gf-badge { margin-top: 6px; }
  .gf-step:not(:last-child)::after { top: auto; bottom: -22px; right: auto; left: 43px; width: 2px; height: 18px; background: repeating-linear-gradient(180deg, var(--rule) 0 5px, transparent 5px 10px); }
  .gf.is-live .gf-step:not(:last-child)::after { background-image: repeating-linear-gradient(180deg, var(--green) 0 5px, transparent 5px 10px); background-size: 2px 10px; animation-name: gf-flow-v; }
  .gf-step:not(:last-child)::before { display: none; }
  .gf-groups { grid-template-columns: 1fr; }
}
@keyframes gf-flow-v { to { background-position: 0 10px; } }

/* ---------- Site-wide motion (Emil Kowalski's rules: transform/opacity only, ease-out, once) ---------- */
/* Scroll reveal: content rises 16px and fades in as it enters; siblings stagger 60ms */
.js .rv { opacity: 0; transform: translateY(16px); }
.js .rv.is-in { opacity: 1; transform: none; transition: opacity 600ms ease, transform 800ms var(--ease-out); transition-delay: calc(var(--rv-i, 0) * 60ms); }
/* Section rule draws in from the left */
.js .head.rv h2::before, .js .rv .rule-top::before, .js .rule-top.rv::before { transform: scaleX(0); transform-origin: left; }
.js .head.rv.is-in h2::before, .js .rv.is-in .rule-top::before, .js .rule-top.rv.is-in::before { transform: none; transition: transform 700ms var(--ease-out) 150ms; }
/* Photos uncover from the bottom, like a shutter */
.js .figure.rv-img img, .js .process li.rv img { clip-path: inset(0 0 100% 0); }
.js .figure.rv-img.is-in img, .js .process li.rv.is-in img { clip-path: inset(0 0 0 0); transition: clip-path 1000ms var(--ease-in-out) 100ms; }
/* Plant schematic: leader lines draw, then labels land */
.js .plant-svg .lead { stroke-dasharray: 400; stroke-dashoffset: 400; }
.js .plant-svg .dot { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.4); }
.js .plant-svg .t1 { opacity: 0; }
.js .plant-schematic.is-in .plant-svg .lead { stroke-dashoffset: 0; transition: stroke-dashoffset 800ms var(--ease-out) 300ms; }
.js .plant-schematic.is-in .plant-svg .dot { opacity: 1; transform: none; transition: opacity 200ms ease 250ms, transform 400ms var(--ease-out) 250ms; }
.js .plant-schematic.is-in .plant-svg .t1 { opacity: 1; transition: opacity 500ms ease 800ms; }
/* Logos: lift a touch on hover (fine pointers only) */
@media (hover: hover) and (pointer: fine) {
  .logos li { transition: transform 200ms var(--ease-out); }
  .logos li:hover { transform: translateY(-2px); }
  .doc a:hover { transform: translateY(-3px); }
  .ms-card { transition: transform 200ms var(--ease-out); }
  .ms-card:hover { transform: translateY(-3px); }
}
/* Pressables */
.chip:active, .doc a:active, .logos li:active, .play:active { transform: scale(.97); }

@media (prefers-reduced-motion: reduce) {
  .js .rv, .js .gf .gf-step, .js .figure.rv-img img, .js .process li.rv img { transform: none !important; clip-path: none !important; }
  .js .rv.is-in, .js .gf.is-in .gf-step { transition: opacity 300ms ease !important; transition-delay: 0ms !important; }
  .js .head.rv h2::before, .js .rule-top.rv::before, .js .rv .rule-top::before { transform: none !important; }
  .gf.is-live .gf-step::after, .gf.is-live .gf-smoke circle, .gf.is-live .gf-step.is-ours .gf-icon::after { animation: none !important; }
  .js .plant-svg .lead { stroke-dashoffset: 0; } .js .plant-svg .dot, .js .plant-svg .t1 { opacity: 1; transform: none; }
}
@media (min-width: 900px) {
  .gf-step { grid-template-rows: 112px 3.9em 2.9em auto; }
  .gf-step b { align-self: start; }
  .gf-kv { font-size: .95rem; line-height: 1.35; }
}

/* ---------- 3D site model (home) ---------- */
.plant-schematic.is-3d > .plant-svg { display: none; }
.p3d-stage { position: relative; aspect-ratio: 16 / 9; max-height: 640px; width: 100%; overflow: hidden; cursor: grab; touch-action: pan-y; outline: none; border-radius: var(--radius);
  background: radial-gradient(120% 90% at 50% 40%, #fff 55%, #F4F6F4 100%); }
.p3d-stage.is-drag { cursor: grabbing; }
.p3d-stage:focus-visible { box-shadow: 0 0 0 2px var(--green); }
@media (max-width: 699px) { .p3d-stage { aspect-ratio: 4 / 3; } .p3d-label { font-size: .85rem; padding-bottom: 30px; } .p3d-label i { height: 24px; } }
.p3d-canvas { display: block; width: 100%; height: 100%; }
.js .plant-schematic .p3d-stage { opacity: 0; transform: scale(.98); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); }
.js .plant-schematic.is-3d .p3d-stage { opacity: 1; transform: none; }
.p3d-labels { position: absolute; inset: 0; pointer-events: none; }
.p3d-label { position: absolute; left: 0; top: 0; padding-bottom: 46px; font-size: clamp(.9rem, 1.4vw, 1.15rem); font-weight: 700; color: var(--green); white-space: nowrap; will-change: transform;
  text-shadow: 0 0 6px #fff, 0 0 2px #fff; }
.p3d-label i { position: absolute; left: 50%; bottom: 0; width: 1px; height: 40px; background: var(--ink); }
.p3d-label i::after { content: ""; position: absolute; left: -4.5px; bottom: -4.5px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.p3d-ui { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; font-size: .9rem; color: var(--grey); }
.p3d-hint { display: inline-flex; align-items: center; gap: 8px; transition: opacity 400ms ease; }
.plant-schematic.was-used .p3d-hint { opacity: 0; }
.p3d-btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 700; color: var(--green); background: #fff; border: 1px solid var(--rule); border-radius: 999px; padding: 6px 14px; cursor: pointer;
  transition: transform 160ms var(--ease-out), border-color 200ms ease; }
.p3d-btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .p3d-btn:hover { border-color: var(--green); } }
.p3d-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.p3d-ico { width: 10px; height: 12px; position: relative; }
.p3d-ico::before, .p3d-ico::after { content: ""; position: absolute; top: 0; width: 3px; height: 12px; background: currentColor; border-radius: 1px; }
.p3d-ico::before { left: 1px; } .p3d-ico::after { right: 1px; }
.p3d-btn.is-paused .p3d-ico::before { left: 1px; width: 0; height: 0; background: none; border-style: solid; border-width: 6px 0 6px 9px; border-color: transparent transparent transparent currentColor; border-radius: 0; }
.p3d-btn.is-paused .p3d-ico::after { display: none; }
@media (prefers-reduced-motion: reduce) { .js .plant-schematic .p3d-stage { transition: none; transform: none; } }
