/* =========================================================
   GONVERT RENEWABLE ENERGY — shared design system
   Header, footer, tokens and components used across every page.
   Shared GONVERT neutrals + a restrained sage accent.
   ========================================================= */
:root {
  --ink:        #14181b;
  --ink-2:      #333a3e;
  --muted:      #67707a;
  --faint:      #97a1a9;
  --paper:      #ffffff;
  --bg:         #f6f7f8;
  --bg-2:       #eef1f3;
  --line:       #e6e9eb;
  --line-2:     #ccd3d7;

  --dark:       #13181b;
  --dark-2:     #191f23;

  /* PRIMARY — Renewable Energy identity is blue-forward now. This is the dominant
     brand color: buttons, active nav, hover states, dots. Sampled/derived from the
     cool end of the Renewable Energy mark's gradient (blue, not green). */
  --accent:     #2b5b76;
  --accent-2:   #21485e;
  --accent-ink: #1e3f52;
  --accent-rgb: 43,91,118;
  --accent-soft:#eaf1f4;

  /* SECONDARY — teal / blue-green, the mid-point of the mark's gradient */
  --accent-teal:      #2f7d81;
  --accent-teal-2:    #256366;
  --accent-teal-ink:  #235c5f;
  --accent-teal-rgb:  47,125,129;
  --accent-teal-soft: #eaf4f4;

  /* alias — blue is now the primary accent, kept under both names so every
     component that reaches for "blue" explicitly resolves to the same primary */
  --accent-blue:      var(--accent);
  --accent-blue-2:    var(--accent-2);
  --accent-blue-ink:  var(--accent-ink);
  --accent-blue-rgb:  var(--accent-rgb);
  --accent-blue-soft: var(--accent-soft);

  /* MINOR — the old GONVERT sage green. Kept only as a rare, deliberate touch
     (a handful of small cycling accents) — never a button, nav, or dominant color. */
  --accent-green:      #5f7a63;
  --accent-green-ink:  #445a48;
  --accent-green-soft: #eef2ee;

  --accent-gradient: linear-gradient(90deg, var(--accent-teal) 0%, var(--accent) 100%);

  --maxw:       1560px;
  --gutter:     clamp(20px, 5vw, 64px);
  --header-h:   74px;

  --r-card:     16px;
  --r-btn:      8px;
  --r-sm:       6px;

  --f-display:  'Inter', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --f-label:    'Inter', system-ui, -apple-system, sans-serif;
  --f-body:     'Inter', system-ui, -apple-system, 'Helvetica Neue', sans-serif;

  --ease:       cubic-bezier(.22,.61,.24,1);
}

/* ================= RESET ================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--f-body); color: var(--ink-2); background: var(--paper);
  line-height: 1.7; font-weight: 400; letter-spacing: -0.006em;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1,h2,h3,h4 { font-family: var(--f-display); font-weight: 540; margin: 0; color: var(--ink); letter-spacing: -0.022em; line-height: 1.08; font-optical-sizing: auto; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: #fff; }

/* pinned to the true left edge of the viewport everywhere — never a centered block.
   This is the single source of the site's left grid: header, hero, page-heads and
   every section share this exact rule, so their left edges always line up. */
/* centered, responsive container — text inside stays left-aligned, but the
   container itself is balanced on the page and uses the available viewport
   width instead of pinning everything to one edge. */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.label { font-family: var(--f-label); font-weight: 500; font-size: .70rem; letter-spacing: .17em; text-transform: uppercase; color: var(--muted); }
.label.dot::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-teal); margin-right: .65em; vertical-align: middle; transform: translateY(-1px); }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

.index-bar { display: flex; align-items: center; gap: 1.1rem; margin-bottom: clamp(1.6rem, 3.4vw, 2.4rem); }
.index-bar .num { color: var(--accent-blue-ink); }
.index-bar .rule { flex: 1; height: 1px; background: var(--line-2); }

/* ================= BUTTONS ================= */
.btn {
  --bc: var(--ink);
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--f-body); font-weight: 500; font-size: .95rem;
  padding: .95rem 1.7rem; border: 1px solid var(--bc); border-radius: var(--r-btn);
  cursor: pointer; background: transparent; color: var(--ink);
  position: relative; overflow: hidden;
  transition: color .28s var(--ease), border-color .28s var(--ease);
}
.btn > * { position: relative; z-index: 1; }
.btn svg { transition: transform .28s var(--ease); }
.btn::before { content: ""; position: absolute; inset: -1px; z-index: 0; background: var(--bc); border-radius: inherit; transform: translateY(101%); transition: transform .32s var(--ease); }
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: #fff; }
.btn:hover svg { transform: translate(3px,-3px); }
.btn-primary { --bc: var(--accent); border-color: var(--accent); background: var(--accent); color: #fff; }
.btn-primary::before { background: var(--accent-2); }
.btn-primary:hover { color: #fff; }
.btn-ghost { --bc: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

.link-arrow { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--f-label); font-weight: 600; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
.link-arrow svg { transition: transform .35s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ================= BRAND / LOGOS ================= */
.brand-logo { display: block; width: auto; object-fit: contain; }
.brand-link { display: inline-flex; align-items: center; }
.header-logo { height: 30px; }
@media (max-width: 480px) { .header-logo { height: 26px; } }

/* ================= HEADER (shared across every page) ================= */
header.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246,247,248,.72); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
header.site-header.scrolled { background: rgba(246,247,248,.9); border-bottom-color: var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.header-brand { display: inline-flex; align-items: center; }

nav.primary ul { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
nav.primary .nav-link {
  font-family: var(--f-label); font-weight: 500; font-size: .72rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-2); position: relative; padding: .4rem 0; transition: color .25s var(--ease);
  background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: .55em;
}
nav.primary .nav-link::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent-gradient); transition: width .22s var(--ease); }
nav.primary .nav-link:hover { color: var(--ink); }
nav.primary .nav-link:hover::after { width: 100%; }
nav.primary .nav-link.active { color: var(--ink); }
nav.primary .nav-link.active::after { width: 100%; }
nav.primary .nav-cta {
  font-family: var(--f-label); font-weight: 600; font-size: .70rem; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; background: var(--accent); border: 1px solid var(--accent); border-radius: var(--r-btn);
  padding: .62rem 1.2rem; cursor: pointer; line-height: 1; transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
nav.primary .nav-cta:hover { background: var(--accent-2); border-color: var(--accent-2); }

.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line-2); background: transparent; border-radius: var(--r-sm); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content:""; display:block; width:18px; height:1.5px; background: var(--ink); transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle span::before { position: absolute; transform: translateY(-6px); }
.nav-toggle span::after  { position: absolute; transform: translateY(6px); }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: rotate(45deg); }
.nav-toggle.open span::after  { transform: rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  nav.primary { position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); box-shadow: 0 24px 40px -24px rgba(20,24,27,.4); }
  nav.primary.open { max-height: 420px; }
  nav.primary ul { flex-direction: column; align-items: stretch; gap: 0; padding: .4rem 0; }
  nav.primary li .nav-link, nav.primary li .nav-cta { display: flex; width: 100%; text-align: left; padding: 1rem var(--gutter); justify-content: flex-start; }
  nav.primary li { border-top: 1px solid var(--line); }
  nav.primary li:first-child { border-top: none; }
  nav.primary .nav-cta { border: 0; border-radius: 0; background: transparent; color: var(--accent); }
  nav.primary .nav-cta:hover { background: transparent; color: var(--accent-2); }
  nav.primary .nav-link::after { display: none; }
}

/* ================= SECTION SHELL ================= */
section.block { padding-block: clamp(3rem, 6vw, 4.6rem); position: relative; }
section.block.tight-top { padding-top: clamp(2rem, 3.6vw, 2.8rem); }

/* ================= PAGE HEAD (inner pages — deliberately NOT hero-scale, compact) ================= */
.page-head { background: var(--bg); border-bottom: 1px solid var(--line); padding-block: clamp(2.8rem, 6vw, 4.4rem); }
/* the intro is a centered, editorial "chapter title" — container AND type both sit on the
   center axis. This is deliberately different from every section below it, which stays
   left-aligned/grid-based — see section.block / .wrap for that system. */
.page-head .ph-inner { max-width: 720px; margin-inline: auto; text-align: center; }

/* hero-wrap: alias of .wrap, kept for semantic clarity on the homepage hero */
.hero-wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.page-head h1 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); letter-spacing: -0.03em; line-height: 1.1; margin-top: .8rem; }
.page-head p { color: var(--muted); font-size: 1.05rem; margin-top: 1rem; max-width: 52ch; margin-inline: auto; }
.page-head .ph-rule { display: block; width: 52px; height: 3px; background: var(--accent-gradient); margin: 0 auto 1.2rem; border-radius: 2px; }

/* ================= PAGE TRANSITIONS (soft fade + drift + a whisper of blur, no JS dependency for entrance) ================= */
body { opacity: 1; animation: pt-in .34s cubic-bezier(.16,.8,.24,1) both; }
body.pt-exit { opacity: 0; transform: translateY(8px); filter: blur(2px); transition: opacity .19s cubic-bezier(.4,0,.6,1), transform .19s cubic-bezier(.4,0,.6,1), filter .19s cubic-bezier(.4,0,.6,1); }
@keyframes pt-in { from { opacity: 0; transform: translateY(10px); filter: blur(2px); } to { opacity: 1; transform: none; filter: blur(0); } }
@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  body.pt-exit { transition: none; transform: none; filter: none; }
}

/* ================= SHARED: ARTICLE / DETAIL PAGE TEMPLATE ================= */
.article-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.article-body p { color: var(--ink-2); font-size: 1.04rem; margin-bottom: 1.3rem; line-height: 1.75; }
.article-body p:last-child { margin-bottom: 0; }
.article-media { aspect-ratio: 16/9; border-radius: var(--r-card); border: 1px solid var(--line); background: linear-gradient(135deg, var(--bg-2) 0%, var(--accent-soft) 100%); position: relative; overflow: hidden; margin-bottom: clamp(2rem, 4vw, 2.6rem); }
.article-media::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(20,24,27,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(20,24,27,.05) 1px, transparent 1px); background-size: 24px 24px; mask-image: radial-gradient(80% 90% at 25% 30%, #000 0%, transparent 75%); }
.article-media .am-label { position: absolute; left: 18px; bottom: 16px; font-family: var(--f-label); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-blue-ink); }
.article-list { display: grid; gap: .9rem; margin: 1.4rem 0 0; padding: 0; }
.article-list li { list-style: none; display: flex; align-items: flex-start; gap: .8rem; font-size: .96rem; color: var(--ink-2); }
.article-list li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: .5em; border: 1px solid var(--accent); }
.article-aside { border-top: 3px solid transparent; border-image: var(--accent-gradient) 1; background: var(--bg); border-radius: var(--r-card); padding: clamp(1.6rem, 3vw, 2rem); position: sticky; top: calc(var(--header-h) + 2rem); }
.article-aside h4 { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 1.1rem; }
.article-aside ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.article-aside li a { display: block; padding: .75rem 0; border-top: 1px solid var(--line-2); font-size: .93rem; color: var(--ink-2); transition: color .25s var(--ease), padding-left .3s var(--ease); }
.article-aside li:first-child a { border-top: 0; }
.article-aside li a:hover { color: var(--accent-ink); padding-left: 6px; }
.article-aside li a .a-tag { display: block; font-family: var(--f-label); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: .25rem; }
.back-link { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--f-label); font-weight: 600; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.6rem; transition: color .25s var(--ease); }
.back-link:hover { color: var(--ink); }
.back-link svg { transition: transform .3s var(--ease); }
.back-link:hover svg { transform: translateX(-3px); }
@media (max-width: 900px) { .article-grid { grid-template-columns: 1fr; } .article-aside { position: static; } }

/* ================= REVEAL ================= */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
  .reveal[data-d="1"]{ transition-delay: .06s; } .reveal[data-d="2"]{ transition-delay: .12s; }
  .reveal[data-d="3"]{ transition-delay: .18s; } .reveal[data-d="4"]{ transition-delay: .24s; } .reveal[data-d="5"]{ transition-delay: .30s; }
}

/* ================= SHARED: SERVICE CARDS ================= */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.4rem); }
.svc {
  position: relative; display: flex; flex-direction: column; min-height: 272px;
  background: linear-gradient(160deg, #fbfcfc 0%, var(--bg-2) 100%);
  border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(1.5rem, 2.2vw, 2rem);
  overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.svc:hover { transform: translateY(-3px); border-color: rgba(var(--accent-rgb),.3); box-shadow: 0 2px 8px rgba(20,24,27,.03), 0 24px 44px -30px rgba(20,24,27,.18); }
.svc::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--accent-gradient); transition: width .5s var(--ease); }
.svc:hover::after { width: 100%; }
.svc.is-link { cursor: pointer; text-decoration: none; }
/* 360° perimeter stroke — the shared GONVERT signature hover (see the main site's
   company-card interaction). One clean trace on hover-in, quiet fade on hover-out. */
@property --svc-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.svc::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: 2;
  background: conic-gradient(from var(--svc-angle), transparent 0deg, rgba(var(--accent-rgb),.9) 26deg, var(--accent) 36deg, rgba(var(--accent-rgb),.9) 46deg, transparent 70deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s var(--ease); pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) { .svc:hover::before { opacity: 1; animation: svc-trace .65s ease-out; } }
@media (prefers-reduced-motion: reduce) { .svc:hover::before { opacity: 1; } }
@keyframes svc-trace { from { --svc-angle: 0deg; } to { --svc-angle: 360deg; } }
.svc .svc-media { aspect-ratio: 16/10; border-radius: calc(var(--r-card) - 6px); margin-bottom: 1.3rem; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--bg-2) 0%, var(--accent-soft) 100%); border: 1px solid var(--line); }
.svc .svc-media::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(20,24,27,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(20,24,27,.05) 1px, transparent 1px); background-size: 18px 18px; mask-image: radial-gradient(90% 90% at 30% 30%, #000 0%, transparent 75%); transition: transform .6s var(--ease); }
.svc:hover .svc-media::before { transform: scale(1.08); }
.svc .svc-media .svc-media-ico { position: absolute; right: 14px; bottom: 12px; color: rgba(var(--accent-blue-rgb),.55); transition: transform .5s var(--ease), color .4s var(--ease); }
.svc:hover .svc-media .svc-media-ico { transform: scale(1.12); color: var(--accent-ink); }
.svc .svc-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 1.1rem; }
.svc .svc-read { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--f-label); font-weight: 600; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-blue-ink); flex: none; }
.svc .svc-read svg { transition: transform .35s var(--ease); }
.svc:hover .svc-read svg { transform: translateX(4px); }
.svc .svc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.svc .svc-no { font-family: var(--f-label); font-weight: 600; font-size: .72rem; letter-spacing: .12em; color: var(--accent); }
.svc .svc-ico { color: var(--accent-ink); opacity: .9; }
.svc h3 { font-size: 1.14rem; font-weight: 540; letter-spacing: -0.016em; margin: 1.5rem 0 .55rem; color: var(--ink); }
.svc p { color: var(--ink-2); opacity: .74; font-size: .93rem; line-height: 1.6; }
.svc-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.1rem; }
.svc-tags span { font-family: var(--f-label); font-size: .68rem; letter-spacing: .02em; color: var(--accent-ink); background: var(--accent-soft); border-radius: 100px; padding: .3rem .65rem; }
@media (max-width: 980px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .svc-grid { grid-template-columns: 1fr; } }

/* ================= SHARED: BALANCED 5-ITEM GRID (3 top, 2 centered below) ================= */
.grid-5 { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1rem, 2vw, 1.4rem); }
.grid-5 > * { flex: 0 1 calc((100% - 2 * clamp(1rem, 2vw, 1.4rem)) / 3); min-width: 260px; }
@media (max-width: 980px) { .grid-5 > * { flex: 0 1 calc((100% - clamp(1rem, 2vw, 1.4rem)) / 2); } }
@media (max-width: 560px) { .grid-5 > * { flex: 1 1 100%; } }

/* ================= SHARED: LEDGER (tools / standards / stats) ================= */
.ledger-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.ledger-cell { background: var(--paper); padding: 1.5rem 1.5rem 1.6rem; position: relative; transition: background-color .35s var(--ease); }
.ledger-cell:hover { background: var(--accent-soft); }
.ledger-cell .code { font-family: var(--f-label); font-weight: 600; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.ledger-cell .code.tool { color: var(--accent-teal-ink); }
.ledger-cell .code.standard { color: var(--accent-blue-ink); }
.ledger-cell h4 { font-family: var(--f-display); font-weight: 540; font-size: 1.0rem; letter-spacing: -0.01em; color: var(--ink); margin: .7rem 0 .4rem; }
.ledger-cell p { color: var(--muted); font-size: .87rem; line-height: 1.55; }
.ledger-cell .num { font-family: var(--f-display); font-weight: 560; font-size: clamp(1.9rem, 3vw, 2.4rem); letter-spacing: -0.03em; color: var(--ink); }
.ledger-cell .num .u { color: var(--accent-ink); }
@media (max-width: 980px) { .ledger-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .ledger-grid { grid-template-columns: 1fr; } }

/* ================= SHARED: ROW LIST (editorial index / teaser navigation) ================= */
.row-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.row-list a.proc, .row-list .proc { display: grid; grid-template-columns: 72px 1fr auto auto; align-items: center; gap: clamp(1rem,3vw,2rem); padding: clamp(1.3rem, 2.4vw, 1.7rem) 0; border-bottom: 1px solid var(--line); transition: padding-left .4s var(--ease); }
a.proc:hover { padding-left: 12px; }
.proc .p-no { font-family: var(--f-label); font-weight: 600; font-size: .8rem; letter-spacing: .1em; color: var(--accent); }
.proc .p-body { display: flex; flex-direction: column; gap: .3rem; }
.proc .p-name { font-family: var(--f-display); font-weight: 540; font-size: clamp(1.05rem, 1.8vw, 1.3rem); letter-spacing: -0.018em; color: var(--ink); }
.proc .p-desc { color: var(--muted); font-size: .93rem; }
.proc .p-arrow { color: var(--faint); transition: transform .35s var(--ease), color .35s var(--ease); }
a.proc:hover .p-arrow { transform: translateX(4px); color: var(--accent-ink); }
@media (max-width: 700px) { .row-list a.proc, .row-list .proc { grid-template-columns: 40px 1fr auto; } .p-desc { display: none; } }

/* ================= SHARED: FLOW DIAGRAM (integrated approach) ================= */
.flow { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.flow::before { content: ""; position: absolute; left: 6%; right: 6%; top: 22px; height: 1px; background: var(--line-2); z-index: 0; }
.flow-step { position: relative; z-index: 1; padding-inline: .9rem; text-align: left; }
.flow-step .fs-node { width: 44px; height: 44px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; font-family: var(--f-label); font-weight: 600; font-size: .78rem; color: var(--accent-ink); transition: border-color .4s var(--ease), background-color .4s var(--ease), color .4s var(--ease); margin-bottom: 1.4rem; }
.flow-step.in .fs-node { border-color: var(--accent); background: var(--accent); color: #fff; }
.flow-step .fs-verb { font-family: var(--f-display); font-weight: 560; font-size: 1.05rem; letter-spacing: -0.015em; color: var(--ink); margin-bottom: .45rem; }
.flow-step .fs-desc { font-size: .88rem; color: var(--muted); line-height: 1.55; }
.flow-arrow { position: absolute; top: 16px; right: -10px; width: 18px; height: 18px; color: var(--line-2); z-index: 1; }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; gap: 2.2rem; }
  .flow::before { left: 21px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .flow-step { padding-inline: 0; padding-left: 60px; }
  .flow-step .fs-node { position: absolute; left: 0; top: 0; margin-bottom: 0; }
  .flow-arrow { display: none; }
}

/* ================= SHARED: SPOTLIGHT (asymmetric editorial panel) ================= */
.spot-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.spot-copy h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -0.022em; margin-bottom: 1.1rem; }
.spot-copy p { color: var(--muted); font-size: 1.02rem; margin-bottom: 1.3rem; }
.spot-list { display: grid; gap: .8rem; margin: 0; padding: 0; }
.spot-list li { list-style: none; display: flex; align-items: flex-start; gap: .8rem; font-size: .95rem; color: var(--ink-2); }
.spot-list li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: .45em; border: 1px solid var(--accent); }
.spot-panel { position: relative; background: var(--dark-2); border-radius: var(--r-card); padding: clamp(2rem, 3.5vw, 2.8rem); color: rgba(255,255,255,.8); overflow: hidden; }
.spot-panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 34px 34px; mask-image: radial-gradient(120% 100% at 100% 0%, #000, transparent 70%);
}
.spot-panel-inner { position: relative; z-index: 1; }
.spot-panel .sp-label { color: rgba(255,255,255,.5); }
.spot-panel .sp-title { color: #fff; font-size: 1.25rem; margin: .9rem 0 1.3rem; letter-spacing: -0.015em; }
.spot-tech { display: grid; gap: .95rem; }
.spot-tech .st-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(255,255,255,.10); padding-top: .85rem; }
.spot-tech .st-row:first-child { border-top: 0; padding-top: 0; }
.spot-tech .st-name { font-size: .93rem; color: rgba(255,255,255,.86); }
.spot-tech .st-code { font-family: var(--f-label); font-size: .66rem; letter-spacing: .1em; color: #9fc7cf; text-transform: uppercase; }
@media (max-width: 900px) { .spot-grid { grid-template-columns: 1fr; } }

/* ================= SHARED: CTA BAND (modest — supporting content, not a second hero) ================= */
.cta-band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-band .wrap { padding-block: clamp(2.6rem, 5vw, 3.6rem); display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); letter-spacing: -0.02em; max-width: 34ch; }
.cta-band .cta-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ================= FOOTER (shared — logo only, no wordmark text beside it) ================= */
footer.site-footer { background: var(--dark-2); color: rgba(255,255,255,.64); padding-top: clamp(3.2rem, 6vw, 4.4rem); position: relative; overflow: hidden; box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; position: relative; z-index: 1; }
.footer-symbol { height: 40px; width: auto; opacity: .95; display: block; }
.footer-note { margin-top: 1.4rem; max-width: 34ch; color: rgba(255,255,255,.55); font-size: .95rem; }
footer h4 { font-family: var(--f-label); color: rgba(255,255,255,.5); font-size: .67rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; margin: 0 0 1.3rem; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
footer ul a { color: rgba(255,255,255,.72); font-size: .95rem; transition: color .25s var(--ease); display: inline-flex; align-items: center; gap: .4rem; }
footer ul a:hover { color: var(--accent); }
footer ul a .ext { opacity: .6; }
.contact-line { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .9rem; color: rgba(255,255,255,.72); font-size: .95rem; }
.location-list { display:grid; gap:.2rem; min-width:0; }
.contact-line svg, .contact-line > span[aria-hidden="true"] { flex:none; }
.contact-line svg { flex: none; margin-top: 3px; color: var(--accent); }
.footer-wordmark { position: absolute; right: -2%; bottom: -10%; font-family: var(--f-display); font-weight: 600; font-size: clamp(5rem, 18vw, 15rem); color: rgba(255,255,255,.028); letter-spacing: -0.045em; pointer-events: none; user-select: none; line-height: 1; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.10); padding-block: 1.5rem; display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.footer-bottom .label { color: rgba(255,255,255,.4); font-size: .66rem; }
.footer-bottom .fb-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-bottom .fb-links a { color: rgba(255,255,255,.55); }
.footer-bottom .fb-links a:hover { color: var(--accent); }

@media (max-width: 980px) {
  .footer-top { grid-template-columns: 1fr 1fr; } .footer-top > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* =========================================================
   PHOTO SLOTS  — see HOW-TO-ADD-IMAGES.md
   Every <img> below points at a file in assets/images/.
   Swap that file for a real photo using the SAME filename and
   it appears on the site automatically — no code change needed.
   If a file is ever missing, the <img> removes itself and the
   CSS panel underneath shows through (never a broken icon).
   ========================================================= */
.article-media .am-photo,
.hero-panel .hero-photo,
.ov-hero-panel .ov-hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.article-media .am-photo { border-radius: inherit; }

/* ================= REBUILT ENERGY PUBLIC SHELL =================
   Scoped so the retained legacy Overview and Global Reach pages stay intact. */
.rebuilt-shell nav.primary ul { gap: clamp(.9rem,1.45vw,1.55rem); }
.rebuilt-shell nav.primary .nav-link { font-size:.68rem; letter-spacing:.11em; }
.rebuilt-shell footer.site-footer { background:var(--dark-2); padding-top:clamp(3.4rem,6vw,4.8rem); }
.rebuilt-shell .footer-top { grid-template-columns:1.35fr .8fr 1.1fr; gap:clamp(2.2rem,6vw,6rem); padding-bottom:clamp(3rem,5vw,4.2rem); }
.rebuilt-shell .footer-note { margin-top:0; max-width:39ch; color:rgba(255,255,255,.58); }
.rebuilt-shell .footer-wordmark {
  right:max(var(--gutter),calc((100% - var(--maxw))/2 + var(--gutter)));
  bottom:-4%;
  font-size:clamp(4.5rem,13vw,11rem);
  color:rgba(255,255,255,.028);
}
.rebuilt-shell .footer-bottom { justify-content:flex-start; }
.rebuilt-shell .footer-contact-first { margin-top:1.6rem; }
.rebuilt-shell .contact-line a { color:rgba(255,255,255,.72); }

@media (max-width:1120px) {
  .rebuilt-shell .nav-toggle { display:inline-flex; }
  .rebuilt-shell nav.primary { position:absolute; top:var(--header-h); left:0; right:0; background:#fff; border-bottom:1px solid var(--line); max-height:0; overflow:hidden; transition:max-height .45s var(--ease); box-shadow:0 24px 40px -24px rgba(20,24,27,.4); }
  .rebuilt-shell nav.primary.open { max-height:min(520px,calc(100dvh - var(--header-h))); overflow-y:auto; }
  .rebuilt-shell nav.primary ul { flex-direction:column; align-items:stretch; gap:0; padding:.4rem 0; }
  .rebuilt-shell nav.primary li .nav-link,.rebuilt-shell nav.primary li .nav-cta { display:flex; width:100%; text-align:left; padding:1rem var(--gutter); justify-content:flex-start; }
  .rebuilt-shell nav.primary li { border-top:1px solid var(--line); }
  .rebuilt-shell nav.primary li:first-child { border-top:0; }
  .rebuilt-shell nav.primary .nav-cta { border:0; border-radius:0; background:transparent; color:var(--accent); }
  .rebuilt-shell nav.primary .nav-cta:hover { background:transparent; color:var(--accent-2); }
  .rebuilt-shell nav.primary .nav-link::after { display:none; }
}
@media (max-width:980px) {
  .rebuilt-shell .footer-top { grid-template-columns:1fr 1fr; }
  .rebuilt-shell .footer-top > div:first-child { grid-column:1/-1; }
}
@media (max-width:620px) {
  .rebuilt-shell .footer-top { grid-template-columns:1fr; }
  .rebuilt-shell .footer-top > div:first-child { grid-column:auto; }
  .rebuilt-shell .footer-wordmark { font-size:clamp(4rem,23vw,7rem); bottom:-1%; }
}
