/* =============================================================
   EnerForge — shared stylesheet
   Plain CSS. No frameworks, no build step, no external fonts.
   Edit freely — sections are labelled to match index.html.

   Palette:
     bg        warm off-white
     ink       deep navy (main text)
     teal      muted teal/green (accent)
     amber     soft amber (caution / shortfall)
   ============================================================= */

:root {
  /* --- colour ------------------------------------------------ */
  --bg:        #f6f3ec;          /* page background (warm off-white) */
  --surface:   #fffdf9;          /* cards */
  --surface-2: #f0ece2;          /* tinted blocks */
  --ink:       #16293a;          /* deep navy — primary text */
  --ink-soft:  #4c5b68;          /* secondary text */
  --ink-faint: #7d8a93;          /* captions / mono labels */
  --navy:      #122132;          /* dark sections */
  --navy-soft: #1d3043;
  --teal:      #2f7d6b;          /* accent */
  --teal-deep: #265f53;
  --teal-tint: #e7efea;
  --amber:     #b9712b;          /* caution */
  --amber-tint:#f6ece0;
  --line:      #e4ddcf;          /* warm hairline */
  --line-soft: #ece6da;

  /* --- type -------------------------------------------------- */
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* --- layout ------------------------------------------------ */
  --maxw: 1080px;
  --pad: 24px;
  --radius: 12px;
}

/* --- reset / base -------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; font-weight: 650; line-height: 1.15; letter-spacing: -0.015em; }
p { margin: 0; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

/* container */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* shared section rhythm */
.section { padding: 92px 0; }          /* a little more breathing room between sections */
.section--tint { background: var(--surface-2); }
.section--navy { background: var(--navy); color: #eef2f4; }

/* small mono eyebrow above headings */
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 20px; height: 1px; background: var(--teal); }
.section--navy .eyebrow { color: #6fb6a4; }
.section--navy .eyebrow::before { background: #6fb6a4; }

.section-title { font-size: clamp(26px, 3.4vw, 38px); }
.section-intro { margin-top: 18px; font-size: 18px; color: var(--ink-soft); max-width: 640px; }
.section--navy .section-intro { color: #b7c4cd; }

/* shared text utilities ----------------------------------------
   .insight    — a highlighted explanatory paragraph (case insight
                 or a point worth slowing down on). Use as:
                 <p class="insight">A project can be useful and still
                 not bankable.</p>
   .small-note — quiet disclaimer / footnote text under a block. Use:
                 <p class="small-note">Figures are illustrative …</p>
   ----------------------------------------------------------------- */
.insight {
  margin-top: 26px; max-width: 680px;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--teal); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px; font-size: 17px; line-height: 1.55; color: var(--ink);
}
.section--navy .insight { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.14); border-left-color: #6fb6a4; color: #eef2f4; }
.small-note { margin-top: 20px; font-size: 13px; color: var(--ink-faint); max-width: 640px; line-height: 1.6; }

/* project-note cards (homepage preview + notes.html) ------------
   .note-card  — card with a tag on top and a status pill at the
                 bottom. Use inside a .grid:
                 <article class="card note-card">
                   <span class="note-tag">BESS feasibility</span>
                   <h3>…</h3><p>…</p>
                   <span class="note-status">Coming soon</span>
                 </article>
   ----------------------------------------------------------------- */
.note-card { display: flex; flex-direction: column; }
a.note-card { text-decoration: none; color: inherit; }
a.note-card .note-status.is-drafting { color: var(--teal-deep); }
.note-card h3 { font-size: 18px; margin-top: 12px; line-height: 1.3; }
.note-card p { margin-top: 10px; }
.note-tag {
  align-self: flex-start; font-family: var(--mono); font-size: 11px;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--teal-deep); background: var(--teal-tint);
  padding: 4px 10px; border-radius: 100px;
}
.note-status {
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-faint);
  display: inline-flex; align-items: center; gap: 7px;
}
.note-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); flex: none; }
.note-status.is-drafting::before { background: var(--teal); }

/* upcoming-notes list (notes.html) — title · tag · status rows */
.notes-list { margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.notes-list__row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: center;
  padding: 18px 22px; border-bottom: 1px solid var(--line-soft);
}
.notes-list__row:last-child { border-bottom: 0; }
.notes-list__title { font-size: 16.5px; font-weight: 550; color: var(--ink); }
/* status sits inline in list rows — drop the card-style separator line */
.notes-list .note-status { margin-top: 0; padding-top: 0; border-top: 0; }
@media (max-width: 640px) {
  .notes-list__row { grid-template-columns: 1fr auto; gap: 8px 12px; }
  .notes-list__title { grid-column: 1 / -1; }
}

/* =============================================================
   ARTICLE / NOTE PAGES  (note-1.html etc.)
   A calm single-column reading layout.
   ============================================================= */
.article { max-width: 720px; margin: 0 auto; padding: 64px 0 24px; }
.article__meta { font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-deep); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.article__meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-faint); }
.article__meta .muted { color: var(--ink-faint); }
.article h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.16; margin-top: 18px; letter-spacing: -0.02em; }

.article__body { max-width: 720px; margin: 0 auto; padding-bottom: 24px; }
.article__body p { font-size: 18px; line-height: 1.7; color: var(--ink); margin-top: 22px; }
.article__body p:first-child { margin-top: 32px; }
.article__body h2 { font-size: 22px; margin-top: 44px; letter-spacing: -0.015em; }
.article__body ul { margin-top: 18px; display: flex; flex-direction: column; gap: 0; }
.article__body ul li { position: relative; padding: 9px 0 9px 22px; font-size: 17px; line-height: 1.55; color: var(--ink-soft); border-top: 1px solid var(--line-soft); }
.article__body ul li:first-child { border-top: 0; }
.article__body ul li::before { content: "\2013"; position: absolute; left: 2px; color: var(--teal); font-family: var(--mono); }
.article__body strong { font-weight: 650; color: var(--ink); }

/* the "Load → sizing → … → decision" chain */
.flow {
  margin: 30px 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
}
.flow span { font-family: var(--mono); font-size: 13px; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 7px; padding: 7px 11px; }
.flow span.is-end { background: var(--teal-tint); border-color: #cfe0d9; color: var(--teal-deep); }
.flow b { font-family: var(--mono); color: var(--teal); font-weight: 400; }

/* scenario block used in note 3 (S1 / S2 / S3) */
.scn { margin-top: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.scn__item { padding: 20px 22px; border-bottom: 1px solid var(--line-soft); }
.scn__item:last-child { border-bottom: 0; }
.scn__item.is-core { border-left: 3px solid var(--teal); }
.scn__tag { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--teal-deep); }
.scn__item h3 { font-size: 17px; margin-top: 8px; }
.scn__item p { font-size: 16px; line-height: 1.55; color: var(--ink-soft); margin-top: 8px; }

/* pull-quote / key takeaway line inside an article */
.pull {
  margin: 32px 0; padding: 24px 28px; background: var(--navy); color: #eef2f4;
  border-radius: var(--radius); font-size: clamp(19px, 2.2vw, 23px); line-height: 1.42; letter-spacing: -0.01em;
}
.pull .hl { color: #8fd0bf; }

/* next / prev note navigation at the foot of an article */
.article-nav { max-width: 720px; margin: 8px auto 0; padding: 28px 0 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* =============================================================
   FEATURE LONG-READ  (richer note layout, e.g. note-11.html)
   ============================================================= */
/* large lead paragraph under the title */
.standfirst { max-width: 720px; margin: 28px auto 0; font-size: clamp(20px, 2.4vw, 24px); line-height: 1.45; color: var(--ink-soft); letter-spacing: -0.01em; }
.article--feature h1 { font-size: clamp(32px, 5vw, 52px); }

/* market-segment block: number + heading + chip, then prose */
.seg { max-width: 720px; margin: 38px auto 0; padding-top: 30px; border-top: 1px solid var(--line); }
.seg:first-of-type { border-top: 0; padding-top: 0; }
.seg__head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.seg__n { font-family: var(--mono); font-size: 13px; color: var(--teal-deep); }
.seg__head h2 { font-size: clamp(21px, 2.6vw, 26px); margin: 0; letter-spacing: -0.015em; }
.seg__chip { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--teal-deep); background: var(--teal-tint); padding: 4px 10px; border-radius: 100px; }
.seg__chip.is-emerging { color: var(--amber); background: var(--amber-tint); }
.seg p { font-size: 17.5px; line-height: 1.65; color: var(--ink); margin-top: 16px; }

/* emerging-market chips row */
.chips { max-width: 720px; margin: 22px auto 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips .chip { font-size: 14px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 100px; padding: 9px 16px; }
.chips .chip b { color: var(--teal-deep); font-weight: 600; }

/* full-width matrix inside a feature article (breaks the reading column) */
.article-wide { max-width: 920px; margin: 40px auto 0; }
.article-wide .matrix th, .article-wide .matrix td { font-size: 14px; }
.article-wide .cap { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 14px; }
.matrix td.seg-name { font-weight: 600; color: var(--ink); }

/* compact KPI row (case-study second example) */
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 30px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.kpi b { display: block; font-family: var(--mono); font-size: 21px; color: var(--ink); letter-spacing: -0.02em; }
.kpi span { display: block; font-size: 13px; color: var(--ink-soft); margin-top: 6px; line-height: 1.45; }
/* winning column highlight in a comparison matrix */
.matrix th.win { background: rgba(47,125,107,0.12); color: var(--teal-deep); }
.matrix td.num.win, .matrix td.win { background: rgba(47,125,107,0.06); color: var(--ink); }
.matrix td.num.bad { color: var(--amber); }
@media (max-width: 640px) { .kpi-row { grid-template-columns: 1fr 1fr; } }

/* =============================================================
   CASE STUDIES INDEX HUB  (case-studies.html)
   Scalable grid of case tiles, each linking to a detail page.
   ============================================================= */
.case-index { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 44px; }
.case-tile {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.case-tile:hover { transform: translateY(-3px); box-shadow: 0 20px 44px -28px rgba(22,41,58,0.45); border-color: #d8d0c0; }
.case-tile__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.case-tile__num { font-family: var(--mono); font-size: 13px; letter-spacing: .04em; color: var(--ink-faint); }
.case-tile__tags { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 18px; }
.case-tile__tags .t {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--teal-deep); background: var(--teal-tint); padding: 4px 9px; border-radius: 100px;
}
.case-tile h3 { font-size: 22px; margin-top: 16px; line-height: 1.24; letter-spacing: -0.015em; }
.case-tile__sum { margin-top: 12px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.55; flex: 1; }
.case-tile__stats { display: flex; gap: 26px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.case-tile__stat b { display: block; font-family: var(--mono); font-size: 17px; color: var(--ink); letter-spacing: -0.01em; }
.case-tile__stat span { font-size: 12px; color: var(--ink-faint); }
.case-tile__cta { margin-top: 22px; font-family: var(--mono); font-size: 13px; color: var(--teal-deep); }
.case-tile:hover .case-tile__cta { text-decoration: underline; }
/* status pill on a tile sits top-right */
.case-tile .pill { font-size: 10.5px; }
/* "more coming" placeholder tile */
.case-soon {
  display: flex; align-items: center; justify-content: center; text-align: center;
  border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px; min-height: 120px;
  color: var(--ink-faint); font-size: 14.5px; line-height: 1.5; background: transparent;
}
@media (max-width: 760px) { .case-index { grid-template-columns: 1fr; } }

/* =============================================================
   PROJECT MAP  (case-studies.html) — bespoke SVG, no deps
   ============================================================= */
.map-wrap { margin-top: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 20px; }
.aus-map { width: 100%; height: auto; display: block; max-height: 560px; }
.aus-land { fill: #e6ece7; stroke: var(--navy); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.aus-tas { fill: #e6ece7; stroke: var(--navy); stroke-width: 1.6; stroke-linejoin: round; }

/* clickable pins */
.pin { cursor: pointer; transition: transform .16s ease; transform-origin: center; transform-box: fill-box; }
.pin-group { transition: transform .16s ease; }
.pin-group:hover { transform: translateY(-2px); }
.pin__halo { fill: var(--teal); opacity: 0.16; }
.pin__dot { fill: var(--teal); stroke: #fff; stroke-width: 2.5; }
.pin--hollow .pin__halo { fill: var(--ink-faint); opacity: 0.12; }
.pin--hollow .pin__dot { fill: var(--surface); stroke: var(--teal-deep); stroke-width: 2.5; stroke-dasharray: 3.4 2.6; }
.pin-group:hover .pin__halo { opacity: 0.28; }
.pin__chip { fill: var(--navy); }
.pin__chip-txt { fill: #fff; font-family: var(--mono); font-size: 12px; font-weight: 500; }
a.map-link { text-decoration: none; }
a.map-link:hover .pin__chip { fill: var(--teal-deep); }

.map-legend { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.map-legend span { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); }
.map-legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.map-legend i.solid { background: var(--teal); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--teal); }
.map-legend i.hollow { background: var(--surface); border: 2px dashed var(--teal-deep); }
@media (max-width: 560px) { .pin__chip-txt { font-size: 15px; } }

/* =============================================================
   DATA-DRIVEN CASE PAGES (case.html) — a few extra blocks
   ============================================================= */
/* industry / location / project-type meta strip */
.case-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 30px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.case-meta > div { background: var(--surface); padding: 18px 20px; }
.case-meta dt { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); margin: 0; }
.case-meta dd { margin: 6px 0 0; font-size: 15.5px; color: var(--ink); font-weight: 550; line-height: 1.35; }
@media (max-width: 640px) { .case-meta { grid-template-columns: 1fr; } }

/* data-sources list */
.src-list { margin-top: 18px; }
.src-list li { position: relative; padding: 11px 0 11px 22px; border-top: 1px solid var(--line-soft); font-size: 15.5px; color: var(--ink-soft); line-height: 1.55; }
.src-list li:first-child { border-top: 0; }
.src-list li::before { content: "\2014"; position: absolute; left: 0; color: var(--teal); font-family: var(--mono); }

/* download chips */
.dl-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.dl { display: inline-flex; flex-direction: column; gap: 3px; padding: 13px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-decoration: none; color: var(--ink); }
a.dl:hover { border-color: var(--ink); }
.dl b { font-size: 14.5px; font-weight: 600; }
.dl span { font-family: var(--mono); font-size: 11.5px; color: var(--ink-faint); }
.dl[aria-disabled="true"] { opacity: .75; cursor: default; border-style: dashed; }

/* featured long-read banner on the notes index */
.longread {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  margin-top: 36px; padding: 30px 34px; text-decoration: none; color: inherit;
  background: var(--navy); border-radius: var(--radius);
  transition: transform .18s ease, box-shadow .18s ease;
}
.longread:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -26px rgba(22,41,58,0.6); }
.longread__tag { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #6fb6a4; }
.longread h3 { color: #fff; font-size: clamp(20px, 2.6vw, 26px); margin-top: 10px; letter-spacing: -0.015em; }
.longread p { color: #b7c4cd; font-size: 15.5px; margin-top: 10px; max-width: 60ch; }
.longread__cta { font-family: var(--mono); font-size: 13px; color: #fff; white-space: nowrap; }
@media (max-width: 640px) {
  .longread { grid-template-columns: 1fr; gap: 16px; padding: 24px; }
}

/* =============================================================
   PODCAST / AUDIO-VERSION BLOCK  (note articles)
   Native <audio> when a file exists; styled "coming soon" until.
   ============================================================= */
.podcast {
  max-width: 720px; margin: 36px auto 0;
  display: flex; align-items: center; gap: 20px;
  background: var(--navy); border-radius: var(--radius); padding: 22px 26px; color: #eef2f4;
}
.podcast__btn {
  flex: none; width: 56px; height: 56px; border-radius: 50%;
  background: var(--teal); color: #fff; border: 0; cursor: pointer;
  display: grid; place-items: center; transition: background .18s ease, transform .12s ease;
}
.podcast__btn:hover { background: #3a9482; }
.podcast__btn:active { transform: scale(0.94); }
.podcast__btn svg { width: 20px; height: 20px; display: block; }
.podcast__main { flex: 1; min-width: 0; }
.podcast__label { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #6fb6a4; }
.podcast__title { font-size: 16px; font-weight: 600; color: #fff; margin-top: 4px; }
.podcast__meta { font-size: 13px; color: #9fb0bb; margin-top: 3px; }
/* faux waveform — decorative bars */
.podcast__wave { display: flex; align-items: center; gap: 3px; height: 26px; margin-top: 12px; }
.podcast__wave i { width: 3px; border-radius: 2px; background: rgba(111,182,164,0.45); }
.podcast audio { width: 100%; margin-top: 12px; }
@media (max-width: 560px) {
  .podcast { flex-wrap: wrap; gap: 14px; padding: 20px; }
  .podcast__btn { width: 48px; height: 48px; }
}
/* progress bar */
.podcast__bar { margin-top: 12px; height: 5px; border-radius: 3px; background: rgba(255,255,255,0.14); overflow: hidden; }
.podcast__bar i { display: block; height: 100%; width: 0%; background: var(--teal); border-radius: 3px; transition: width .25s linear; }
.podcast__btn:disabled { opacity: .55; cursor: default; }
/* animate the faux waveform while playing */
.podcast.is-playing .podcast__wave i { animation: pcwave 1s ease-in-out infinite; }
.podcast__wave i:nth-child(3n) { animation-delay: .15s; }
.podcast__wave i:nth-child(3n+1) { animation-delay: .35s; }
.podcast__wave i:nth-child(4n) { animation-delay: .5s; }
@keyframes pcwave { 0%,100% { transform: scaleY(0.5); } 50% { transform: scaleY(1.35); } }
@media (prefers-reduced-motion: reduce) { .podcast.is-playing .podcast__wave i { animation: none; } }

/* spoken transcript under the player */
.transcript { max-width: 720px; margin: 22px auto 0; }
.transcript summary { cursor: pointer; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-deep); list-style: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; }
.transcript summary::-webkit-details-marker { display: none; }
.transcript summary::before { content: "+"; font-size: 14px; }
.transcript[open] summary::before { content: "\2013"; }
.transcript__body p { font-size: 16.5px; line-height: 1.65; color: var(--ink-soft); margin-top: 16px; transition: color .2s ease; }
.transcript__body p.is-active { color: var(--ink); }
.transcript__body p.is-active::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); margin-right: 10px; vertical-align: middle; }

/* two-host dialogue transcript */
.dlg { margin-top: 10px; }
.dlg__line { display: flex; gap: 12px; padding: 10px 0; align-items: flex-start; cursor: pointer; }
.dlg__who {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--mono); font-size: 12px; font-weight: 600; color: #fff;
}
.dlg__line[data-speaker="A"] .dlg__who { background: var(--teal-deep); }
.dlg__line[data-speaker="B"] .dlg__who { background: #3a5d77; }
.dlg__bubble { flex: 1; }
.dlg__name { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); }
.dlg__line[data-speaker="A"] .dlg__name { color: var(--teal-deep); }
.dlg__text { font-size: 16.5px; line-height: 1.55; color: var(--ink-soft); margin-top: 3px; transition: color .2s ease; }
.dlg__line.is-active .dlg__text { color: var(--ink); font-weight: 500; }
.dlg__line.is-active .dlg__who { box-shadow: 0 0 0 3px rgba(47,125,107,0.25); }

/* =============================================================
   PHOTOGRAPHIC TREATMENT  (case-study.html)
   Real site photos via <image-slot> — the user drops their own
   solar / BESS / diesel images. Authoring + share/export only;
   on a plain static deploy, supply real <img> files instead.
   ============================================================= */
/* ghosted photo behind the case hero — warm scrim keeps dark text readable */
.case-hero { position: relative; overflow: hidden; }
/* the slot's <img> exposes part="image" — force cover so wide photos crop cleanly */
image-slot::part(image) { object-fit: cover !important; }

/* homepage featured-case photo banner */
.case-banner { display: block; position: relative; margin-top: 32px; border-radius: var(--radius); overflow: hidden; text-decoration: none; }
.case-banner img { display: block; width: 100%; height: 320px; object-fit: cover; transition: transform .4s ease; }
.case-banner:hover img { transform: scale(1.03); }
.case-banner__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 24px 18px;
  color: #fff; font-size: 14.5px; line-height: 1.5;
  background: linear-gradient(to top, rgba(14,24,38,0.78), rgba(14,24,38,0));
}
@media (max-width: 560px) { .case-banner img { height: 220px; } }.case-hero .hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
  --slot-bg: #e7e0d2;            /* muted empty-state, not stark white */
}
.case-hero .hero-photo__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg,
    rgba(246,243,236,0.96) 0%,
    rgba(246,243,236,0.90) 40%,
    rgba(246,243,236,0.55) 76%,
    rgba(246,243,236,0.34) 100%);
}
.case-hero > .container { position: relative; z-index: 2; }

/* "On site" three-up photo strip */
.site-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.site-shot { display: flex; flex-direction: column; }
.site-shot image-slot { width: 100%; height: 200px; --slot-bg: #e7e0d2; }
.site-shot__cap { margin-top: 12px; }
.site-shot__cap b { display: block; font-size: 15px; color: var(--ink); }
.site-shot__cap span { display: block; font-size: 13.5px; color: var(--ink-soft); margin-top: 3px; line-height: 1.5; }
@media (max-width: 760px) {
  .site-strip { grid-template-columns: 1fr; }
  .site-shot image-slot { height: 220px; }
}

/* =============================================================
   NAVIGATION (shared on both pages)
   ============================================================= */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246,243,236,0.88);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
  height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
.brand__logo { display: block; width: auto; height: 44px; max-height: 44px; max-width: 200px; object-fit: contain; }
.brand__logo--footer { height: 64px; max-height: 64px; max-width: 260px; }

.nav__links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav__links a {
  text-decoration: none; color: var(--ink-soft);
  font-size: 15px; padding: 8px 12px; border-radius: 7px;
  transition: color .15s ease, background .15s ease;
}
.nav__links a:hover { color: var(--ink); background: var(--surface); }
.nav__links a.is-current { color: var(--ink); font-weight: 550; }

/* =============================================================
   BUTTONS
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 15.5px; font-weight: 550;
  text-decoration: none; cursor: pointer;
  padding: 13px 22px; border-radius: 9px; border: 1px solid transparent;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-deep); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { border-color: var(--ink); background: var(--surface); }
.btn--ghost-light { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.22); }
.btn--ghost-light:hover { background: rgba(255,255,255,0.14); }
/* placeholder (non-functional) button, e.g. "download — coming soon" */
.btn--disabled { background: transparent; color: var(--ink-faint); border: 1px dashed var(--line); cursor: default; }
.btn--disabled:active { transform: none; }
.btn__arrow { font-family: var(--mono); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* =============================================================
   HERO (homepage)
   ============================================================= */
.hero { padding: 72px 0 60px; }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 {
  font-size: clamp(30px, 4.3vw, 46px);
  line-height: 1.12; letter-spacing: -0.025em;
}
.hero h1 .muted { color: var(--ink-soft); }
.hero__sub { margin-top: 22px; font-size: 18.5px; color: var(--ink-soft); max-width: 560px; }
.hero__tag { font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-deep); margin-bottom: 20px; }

/* decision card mockup */
.decision-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 18px 40px -28px rgba(22,41,58,0.35);
  overflow: hidden;
}
.decision-card__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.decision-card__head .label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.decision-card__head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.decision-card__body { padding: 6px 18px; }
.spec { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.spec:last-child { border-bottom: 0; }
.spec__k { color: var(--ink-soft); font-size: 14.5px; }
.spec__v { font-family: var(--mono); font-size: 14px; color: var(--ink); text-align: right; }
.decision-card__status {
  padding: 14px 18px; background: var(--amber-tint);
  border-top: 1px solid var(--line);
  font-size: 14px; color: var(--amber); display: flex; gap: 8px; align-items: baseline;
}
.decision-card__status b { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

/* =============================================================
   CARD GRIDS (questions, lens, reports, work)
   ============================================================= */
.grid { display: grid; gap: 18px; margin-top: 40px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 22px;
  /* subtle, considered hover — not a startup "pop" */
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -22px rgba(22,41,58,0.4); border-color: var(--line-strong, #d8d0c0); }
.section--tint .card { background: var(--surface); }
.card__tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; color: var(--teal-deep); }
.card__num { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); }
.card h3 { font-size: 19px; margin-top: 14px; }
.card p { margin-top: 10px; font-size: 14.5px; color: var(--ink-soft); }

/* "For …" reader line + focus list inside report cards */
.card__for { margin-top: 10px; font-size: 13.5px; color: var(--ink); font-weight: 550; }
.card__list { margin-top: 14px; display: flex; flex-direction: column; gap: 0; }
.card__list li {
  font-size: 14px; color: var(--ink-soft);
  padding: 7px 0 7px 18px; position: relative; border-top: 1px solid var(--line-soft);
}
.card__list li:first-child { border-top: 0; }
.card__list li::before { content: "·"; position: absolute; left: 4px; color: var(--teal); font-family: var(--mono); }
/* "does not cover" variant — amber × markers */
.card__list--no li::before { content: "\00d7"; color: var(--amber); left: 3px; }

/* question cards (Why I built) — slightly different */
.qcard h3 { font-size: 17.5px; line-height: 1.35; margin-top: 0; }
.qcard .card__num { margin-bottom: 14px; display: block; }

/* lens cards: numbered 01..05 */
.lens-card .card__num { color: var(--teal-deep); font-weight: 500; }

/* =============================================================
   FEATURED CASE (homepage) — two columns: summary + note
   ============================================================= */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-top: 40px; }
.feature__panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature__panel .decision-card__head { background: var(--navy); border-bottom: 0; }
.feature__panel .decision-card__head .label { color: #cdd7dd; }
.feature__note h3 { font-size: 22px; }
.feature__note p { margin-top: 16px; color: var(--ink-soft); font-size: 16.5px; }

/* highlight a single value as caution (e.g. DSCR) */
.spec__v.is-warn { color: var(--amber); }
.spec__v.is-good { color: var(--teal-deep); }

/* =============================================================
   POINT OF VIEW (navy section) — numbered statements
   ============================================================= */
.pov { margin-top: 40px; display: grid; gap: 0; }
.pov__item {
  display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: baseline;
  padding: 22px 0; border-top: 1px solid rgba(255,255,255,0.12);
}
.pov__item:last-child { border-bottom: 1px solid rgba(255,255,255,0.12); }
.pov__n { font-family: var(--mono); font-size: 13px; color: #6fb6a4; }
.pov__t { font-size: clamp(18px, 2vw, 22px); line-height: 1.4; color: #f1f4f5; letter-spacing: -0.01em; }

/* =============================================================
   ABOUT
   ============================================================= */
.about { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; margin-top: 36px; }
.about__lead { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.32; letter-spacing: -0.015em; }
.about__body p { color: var(--ink-soft); font-size: 16.5px; }
.about__body p + p { margin-top: 16px; }
.about__founder { margin-top: 24px; font-family: var(--mono); font-size: 13.5px; color: var(--ink-faint); border-top: 1px solid var(--line); padding-top: 18px; }

/* =============================================================
   CASE STUDY page specifics
   ============================================================= */
.case-hero { padding: 64px 0 40px; }
.case-hero h1 { font-size: clamp(28px, 4vw, 42px); max-width: 18ch; line-height: 1.12; }
.case-hero__sub { margin-top: 20px; font-size: 18.5px; color: var(--ink-soft); max-width: 640px; }
.status-chip {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 24px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em;
  background: var(--amber-tint); color: var(--amber);
  border: 1px solid #ecd9bf; border-radius: 100px; padding: 8px 16px;
}
.status-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
/* positive / resolved variant */
.status-chip.is-ok { background: var(--teal-tint); color: var(--teal-deep); border-color: #cfe0d9; }
.status-chip.is-ok::before { background: var(--teal); }

.prose { max-width: 680px; }
.prose p { color: var(--ink-soft); font-size: 16.5px; }
.prose p + p { margin-top: 16px; }

/* spec table block (case setup, customer value, financing) */
.table {
  margin-top: 32px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.table__row { display: flex; justify-content: space-between; gap: 16px; padding: 15px 22px; border-bottom: 1px solid var(--line-soft); }
.table__row:last-child { border-bottom: 0; }
.table__row .k { color: var(--ink-soft); font-size: 15.5px; }
.table__row .v { font-family: var(--mono); font-size: 15px; text-align: right; }
.table__row .v.is-warn { color: var(--amber); }
.table__row .v.is-good { color: var(--teal-deep); }
.table__row.is-emphasis { background: var(--surface-2); }

/* S1/S2/S3 scenario cards */
.scenarios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.scenario { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.scenario .tag { font-family: var(--mono); font-size: 12px; color: var(--teal-deep); letter-spacing: .04em; }
.scenario h4 { margin-top: 10px; font-size: 16px; }
.scenario.is-core { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.scenario.is-muted { opacity: 0.85; }

/* takeaway list with em-dash markers (text only, no icon lib) */
.points { margin-top: 28px; }
.points li {
  display: flex; gap: 14px; align-items: baseline;
  padding: 15px 0; border-top: 1px solid rgba(255,255,255,0.14); font-size: 16.5px;
}
.points li::before { content: "—"; color: #6fb6a4; font-family: var(--mono); flex: none; }

/* =============================================================
   FOOTER
   ============================================================= */
.footer { background: var(--navy); color: #9fb0bb; padding: 48px 0 40px; }
.footer__inner { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.footer .brand__logo { opacity: 0.95; }
.footer__note { font-size: 13px; color: #708391; max-width: 460px; margin-top: 14px; line-height: 1.6; }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__links a { color: #9fb0bb; text-decoration: none; font-size: 14.5px; }
.footer__links a:hover { color: #fff; }
.footer__legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 12.5px; color: #6a7d8a; }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .about { grid-template-columns: 1fr; gap: 24px; }
  .grid--5 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .scenarios { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .section { padding: 60px 0; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .nav__inner { height: auto; padding: 12px var(--pad); flex-direction: column; align-items: flex-start; gap: 8px; }
  .nav__links { gap: 2px; }
  .nav__links a { padding: 6px 10px; font-size: 14px; }
  .footer__inner { flex-direction: column; }
}

/* =============================================================
   CASE STUDY — "lesson" components
   (used on case-study.html: lesson callout, scenario matrix,
    DSCR strip, risk snapshot, action list, decision gate, note)
   ============================================================= */

/* lesson callout — a navy block that states the takeaway up front */
.callout {
  margin-top: 32px; background: var(--navy); color: #eef2f4;
  border-radius: var(--radius); padding: 30px 34px;
}
.callout .eyebrow { color: #6fb6a4; }
.callout .eyebrow::before { background: #6fb6a4; }
.callout p { font-size: clamp(18px, 2.1vw, 23px); line-height: 1.42; letter-spacing: -0.01em; }
.callout p .hl { color: #8fd0bf; }

/* status pills (Red / Amber / Green) */
.pill {
  display: inline-block; font-family: var(--mono); font-size: 11px;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 100px; white-space: nowrap;
}
.pill--red   { background: #f4e0db; color: #a5402c; }
.pill--amber { background: var(--amber-tint); color: var(--amber); }
.pill--green { background: var(--teal-tint); color: var(--teal-deep); }

/* scenario comparison matrix (S1 / S2 / S3) */
.matrix {
  width: 100%; border-collapse: collapse; margin-top: 28px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.matrix th, .matrix td { padding: 13px 18px; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; text-align: left; }
.matrix thead th {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-faint); background: var(--surface-2);
}
.matrix thead th.s1 { color: var(--teal-deep); }      /* flag the honest base case */
.matrix td.metric { color: var(--ink-soft); }
.matrix td.num { font-family: var(--mono); text-align: right; }
.matrix td.num.s1 { background: rgba(47,125,107,0.06); color: var(--ink); }
.matrix th.s1 { background: rgba(47,125,107,0.10); }
.matrix td.num.warn { color: var(--amber); }
.matrix tbody tr:last-child td { border-bottom: 0; }

/* DSCR profile strip — illustrative, no exact figures dumped */
.dscr-wrap { margin-top: 26px; }
.dscr-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; }
.dscr-legend span { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); display: inline-flex; align-items: center; gap: 6px; }
.dscr-legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.dscr-strip { display: flex; gap: 5px; }
.dscr-strip .cell {
  flex: 1; height: 46px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 10px;
  background: var(--teal-tint); border: 1px solid #cfe0d9; color: var(--teal-deep);
}
.dscr-strip .cell.low { background: var(--amber-tint); border-color: #e7cdab; color: var(--amber); font-weight: 600; }
.dscr-strip .cell.off { background: var(--surface-2); border-color: var(--line-soft); color: var(--ink-faint); }
.dscr-caption { margin-top: 14px; font-size: 14.5px; color: var(--ink-soft); }

/* risk snapshot */
.risk { margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.risk__row { display: grid; grid-template-columns: 160px 96px 1fr; gap: 16px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); }
.risk__row:last-child { border-bottom: 0; }
.risk__row.is-total { background: var(--surface-2); }
.risk__dim { font-weight: 600; font-size: 15px; }
.risk__reason { color: var(--ink-soft); font-size: 14.5px; }

/* numbered "what I'd fix" list (flex avoids grid text-node placement bugs) */
.actions { margin-top: 24px; counter-reset: act; }
.actions li {
  display: flex; gap: 14px; align-items: baseline;
  padding: 15px 0; border-top: 1px solid var(--line); font-size: 16.5px;
}
.actions li::before {
  counter-increment: act; content: counter(act, decimal-leading-zero);
  font-family: var(--mono); font-size: 13px; color: var(--teal-deep); flex: none;
}

/* decision-gate checklist (light background) */
.checklist { margin-top: 24px; }
.checklist li {
  display: flex; gap: 12px; align-items: baseline;
  padding: 13px 0; border-top: 1px solid var(--line); font-size: 16px;
}
.checklist li:last-child { border-bottom: 1px solid var(--line); }
.checklist li::before { content: "○"; color: var(--teal); font-family: var(--mono); flex: none; }

/* disclaimer note */
.note { margin-top: 32px; border: 1px dashed var(--line); border-radius: var(--radius); padding: 20px 22px; background: var(--surface-2); }
.note .cap { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.note p { margin-top: 8px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; }

@media (max-width: 640px) {
  .matrix thead th, .matrix td { padding: 11px 12px; font-size: 13px; }
  .risk__row { grid-template-columns: 1fr auto; gap: 8px 12px; }
  .risk__reason { grid-column: 1 / -1; }
  .dscr-strip .cell { font-size: 0; }   /* drop year labels on small screens */
}
