/* Power Hungry public site. Carbon (dark) theme only; tokens from the brand system
   (project/tokens.json, brand v6 "Incandescent"). */

@font-face { font-family: "Onest"; src: url("/fonts/onest.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/ibm-plex-mono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --field: #000000;
  --surface: #0f0e0c;
  --surface-raised: #1b1917;
  --ink: #f2f1ec;
  --ink-muted: #a8a39b;
  --line: #262320;
  --ember: #ff4a1f;
  --on-ember: #141210;
  --focus: #ff8a5c;
  --substation: #8fae9a;
  --steel: #9fb0c0;
  --heat: linear-gradient(165deg, #ffb224 0%, #ff6a1f 48%, #ff3d14 100%);
  --radius-full: 9999px;
  --glow: drop-shadow(0 0 24px rgba(255, 90, 31, .45)) drop-shadow(0 0 72px rgba(255, 74, 31, .22));
  --font-display: "Onest", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Onest", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-data: "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;
  --space-1: 4px; --space-2: 8px; --space-3: 16px; --space-4: 24px; --space-5: 40px; --space-6: 64px;
  --space-7: clamp(80px, 12vw, 120px);
  --radius-s: 3px;
  --hairline: 1px;
  --gutter: clamp(16px, 5vw, 64px);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--field); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--field); color: var(--ink);
  font: 400 16px/24px var(--font-text);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* clip, not hidden: a hidden box is still a scroll container, and focusing the
   email field would scroll it sideways towards the cropped supergraphic. */
.page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; overflow: clip; }
.page > main { flex: 1 0 auto; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Header: the wordmark (no mark, because the lit mark sits in the home hero) and two
   quiet links. The current page reads in ink, the rest in ink-muted. */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding-top: var(--space-5); }
.wordmark-link { display: inline-block; flex: none; }
.wordmark { display: block; height: 26px; width: auto; }
.site-nav { display: flex; gap: var(--space-4); font: 500 15px/24px var(--font-text); letter-spacing: -.01em; }
.site-nav a { display: block; padding: 10px 0; color: var(--ink-muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }

/* Type roles. Sentence case throughout; tracking tightens as size grows. */
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(44px, 8vw, 88px); line-height: .98; letter-spacing: -.045em; }
h2 { font-size: clamp(28px, 4vw, 32px); line-height: 1.12; letter-spacing: -.03em; }
h3 { font-size: 24px; line-height: 28px; letter-spacing: -.02em; }
.lead { font: 500 20px/28px var(--font-text); letter-spacing: -.015em; text-wrap: balance; }
.muted { color: var(--ink-muted); }
.caption { font: 400 13px/18px var(--font-text); color: var(--ink-muted); }
.data { font: 500 13px/18px var(--font-data); letter-spacing: .01em; font-variant-numeric: tabular-nums; }

/* Hero: one object, centred on field. The lit mark keeps clear space of half its height. */
.hero {
  --mark: clamp(112px, 18vw, 184px);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-top: clamp(56px, 10vh, 112px); padding-bottom: var(--space-7);
}
.hero-mark {
  display: block; width: var(--mark); height: var(--mark); margin: 0 0 calc(var(--mark) / 2); padding: 0;
  border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.hero .lead { margin-top: var(--space-4); max-width: 30rem; color: var(--ink-muted); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--space-3) var(--space-4); margin-top: var(--space-5); }

/* The power-on (marketing/brand/animation): the bar drops in like a switch, the ring
   charges clockwise, the glow lights once, a beat of stillness, then the bite lands
   last and the mark recoils. Clicking the mark replays it. The resting frame is the
   production path; under reduced motion it shows at once. */
.power {
  --ease-out: cubic-bezier(.22, 1, .36, 1); --ease-ring: cubic-bezier(.33, 1, .68, 1);
  --ease-fill: cubic-bezier(.5, 1, .89, 1); --ease-bite: cubic-bezier(.1, .9, .2, 1);
  display: block; width: 100%; height: 100%; overflow: visible; filter: var(--glow);
}
.power .ring, .power .bar, .power .final { fill: url(#ph-heat); }
.power .arc { fill: none; stroke: #fff; stroke-width: 18; stroke-dasharray: 182; stroke-dashoffset: 0; }
.power .bite { fill: #000; }
.power .build { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .power.play { animation: ph-glow 700ms var(--ease-ring) 1150ms both; }
  .power.play .build { opacity: 1; animation: ph-hide 1ms linear 2050ms both; }
  .power.play .final { animation: ph-show 1ms linear 2050ms both; }
  .power.play .bar { animation: ph-bar 600ms var(--ease-out) both; }
  .power.play .arc { animation: ph-draw 900ms var(--ease-fill) 300ms both; }
  .power.play .bite { animation: ph-bite 150ms var(--ease-bite) 1900ms both; }
  .power.play .root { animation: ph-recoil 230ms var(--ease-out) 1900ms both; }
}
@keyframes ph-glow {
  0% { filter: drop-shadow(0 0 24px rgba(255, 90, 31, 0)) drop-shadow(0 0 72px rgba(255, 74, 31, 0)); }
  26% { filter: drop-shadow(0 0 30px rgba(255, 126, 79, .7)) drop-shadow(0 0 90px rgba(255, 74, 31, .34)); }
  100% { filter: var(--glow); }
}
@keyframes ph-bar { 0% { transform: translateY(-14px); opacity: 0; } 22% { opacity: 1; } 100% { transform: translateY(0); opacity: 1; } }
@keyframes ph-draw { from { stroke-dashoffset: 182; } to { stroke-dashoffset: 0; } }
@keyframes ph-bite { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes ph-recoil { 0% { transform: translate(0, 0); } 30% { transform: translate(-1.5px, 0); } 100% { transform: translate(0, 0); } }
@keyframes ph-hide { from { opacity: 1; } to { opacity: 0; } }
@keyframes ph-show { from { opacity: 0; } to { opacity: 1; } }

/* Buttons. One primary per surface: the Subscribe button on the end card. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  height: 44px; padding: 0 var(--space-4); border: 0; border-radius: var(--radius-s);
  font: 600 16px/24px var(--font-text); white-space: nowrap; text-decoration: none; cursor: pointer;
  background: transparent; color: var(--ink); box-shadow: inset 0 0 0 var(--hairline) var(--ink);
}
.btn:hover { background: var(--surface-raised); }
.btn-primary { background: var(--ember); color: var(--on-ember); box-shadow: none; }
.btn-primary:hover { background: var(--on-ember); color: var(--ember); box-shadow: inset 0 0 0 var(--hairline) var(--ember); }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.ghost { font: 600 16px/24px var(--font-text); color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.ghost:hover { color: var(--ink-muted); }

/* Statements: one idea per screen, space-7 between them. */
.statement { padding-top: var(--space-7); }
.statement > h2 { text-align: center; }

.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* The number: display-xl in heat, counted up once when it scrolls into view. */
.figure-screen { display: flex; flex-direction: column; align-items: center; text-align: center; }
.figure { display: flex; align-items: baseline; justify-content: center; gap: var(--space-2); margin: 0; }
.figure-num {
  font: 700 clamp(84px, 15vw, 176px)/.9 var(--font-display); letter-spacing: -.05em; font-variant-numeric: tabular-nums;
  background: var(--heat); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding: 0 .04em; text-align: right;
}
.figure-unit { font: 600 clamp(24px, 3vw, 36px)/1 var(--font-display); letter-spacing: -.02em; color: var(--ink); }
.figure-screen .lead { margin-top: var(--space-4); max-width: 30rem; }
.source { margin-top: var(--space-4); max-width: 34rem; text-wrap: balance; }

/* The map: the grid in steel and substation, data centres as discs scaled by MW.
   Hover, focus or tap a disc to read it out. Every site is ember, the colour of
   data-centre load; how far along it is shows in the fill, never in the hue
   (ember is never a status colour): solid when operating, half lit under
   construction, a dashed outline in planning. */
.map-intro { margin-top: var(--space-3); text-align: center; }
.statement > .map-intro { margin-left: auto; margin-right: auto; }
.map-frame { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: var(--space-4); margin-top: var(--space-5); background: var(--surface); padding: var(--space-4); }
.map-scroll { min-width: 0; }
.map { position: relative; }
.map-grid, .map-sites { display: block; width: 100%; height: auto; }
.map-sites { position: absolute; inset: 0; overflow: visible; }
.place { font: 500 15px var(--font-data); fill: var(--ink-muted); letter-spacing: .01em; pointer-events: none; }
.site { cursor: pointer; outline: none; }
.site circle { transition: opacity 160ms ease-out; }
.site circle { fill: var(--ember); stroke: var(--ember); stroke-width: 0; vector-effect: non-scaling-stroke; }
.site.is-operating circle { fill-opacity: .9; }
.site.is-construction circle { fill-opacity: .4; stroke-width: 2; }
.site.is-planning circle { fill-opacity: .06; stroke-width: 1.5; stroke-dasharray: 4 3; }
.map.has-active .site:not(.is-active) circle { opacity: .45; }
.site.is-active circle { stroke: var(--ink); stroke-width: 2; stroke-dasharray: none; }
.site:focus-visible circle { stroke: var(--focus); stroke-width: 3; }

.map-side { display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-5); min-width: 0; }
.readout-name { font: 600 24px/28px var(--font-display); letter-spacing: -.02em; }
.readout-meta { margin-top: var(--space-1); font: 500 13px/18px var(--font-text); color: var(--ink-muted); }
.readout-figure { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin-top: var(--space-3); }
.readout-figure .data { font-size: 16px; line-height: 24px; color: var(--ink); }
.tag { display: inline-flex; align-items: center; gap: var(--space-2); height: 24px; font: 500 13px/16px var(--font-text); color: var(--ink); white-space: nowrap; }
.tag::before { content: ""; width: 12px; height: 12px; border-radius: var(--radius-full); flex: none; }

.map-key { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); font: 500 13px/18px var(--font-data); color: var(--ink-muted); }
.map-key li { display: flex; align-items: center; gap: var(--space-2); }
.key-disc { width: 12px; height: 12px; border-radius: var(--radius-full); flex: none; }
/* The key and the readout tag draw the same three discs as the map. */
.key-disc.is-operating, .tag.is-operating::before { background: rgba(255, 74, 31, .9); }
.key-disc.is-construction, .tag.is-construction::before { background: rgba(255, 74, 31, .4); box-shadow: inset 0 0 0 2px var(--ember); }
.key-disc.is-planning, .tag.is-planning::before { background: rgba(255, 74, 31, .06); border: 1.5px dashed var(--ember); }
.key-square { width: 9px; height: 9px; margin: 0 1.5px; background: var(--substation); flex: none; }
.key-line { width: 12px; height: 2px; background: var(--steel); opacity: .85; flex: none; }
.key-line.is-minor { height: 1px; opacity: .45; }
.map-frame + .source { margin-left: 0; }
.map-more { margin-top: var(--space-4); }

@media (max-width: 960px) {
  .map-frame { grid-template-columns: minmax(0, 1fr); padding: var(--space-3); }
  .map-side { flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
  .map-readout { flex: 1 1 220px; }
  .map-key { flex: 1 1 200px; grid-template-columns: repeat(2, minmax(0, max-content)); column-gap: var(--space-4); }
}
@media (max-width: 640px) {
  /* Phones pan the map sideways instead of shrinking the discs to specks. */
  .map-scroll { overflow-x: auto; overscroll-behavior-x: contain; margin: 0 calc(-1 * var(--space-3)); padding: 0 var(--space-3); scrollbar-width: none; }
  .map-scroll::-webkit-scrollbar { display: none; }
  .map { width: 640px; }
  .map-key { grid-template-columns: minmax(0, 1fr); }
}

/* Tracker: a data page, so left-aligned. The tallies are the headline numbers and the
   status filter in one. Status is words, never colour: ember is spent on Subscribe. */
.tracker-head { padding-top: clamp(48px, 8vh, 96px); }
.page-title { font-size: clamp(40px, 6vw, 64px); line-height: 1; letter-spacing: -.04em; }
.tracker-head .lead { margin-top: var(--space-4); max-width: 34rem; color: var(--ink-muted); }

.tally { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); margin-top: var(--space-6); }
.tally-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-1); min-width: 0;
  padding: var(--space-4); border: 0; border-radius: var(--radius-s); background: var(--surface);
  color: var(--ink); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.tally-item:hover { background: var(--surface-raised); }
.tally-item[aria-pressed="true"] { background: var(--surface-raised); box-shadow: inset 0 0 0 var(--hairline) var(--ink); }
.tally-label { font: 500 14px/20px var(--font-text); color: var(--ink-muted); }
.tally-item[aria-pressed="true"] .tally-label { color: var(--ink); }
.tally-mw { margin-top: var(--space-3); font: 600 clamp(28px, 3.4vw, 40px)/1.05 var(--font-display); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.tally-unit { margin-left: .18em; font-size: .5em; letter-spacing: -.01em; color: var(--ink-muted); }
.tally-count { font: 500 13px/18px var(--font-data); color: var(--ink-muted); font-variant-numeric: tabular-nums; }

.tracker-list { padding-top: var(--space-6); }
.tracker-note { font: 500 13px/18px var(--font-text); color: var(--ink-muted); }
/* Cells carry 12px of side padding so a hovered row reads as a band; the wrapper pulls
   the table back out by the same amount so the text lines up with the page. */
.table-wrap { margin: var(--space-3) -12px 0; }
.tracker { width: 100%; border-collapse: collapse; font: 400 15px/22px var(--font-text); }
.tracker th, .tracker td { padding: 14px 12px; text-align: left; vertical-align: baseline; border-bottom: var(--hairline) solid var(--line); }
.tracker .num { text-align: right; white-space: nowrap; }
.tracker thead th { padding-top: 0; padding-bottom: 10px; font: 500 13px/18px var(--font-text); color: var(--ink-muted); white-space: nowrap; }
.tracker thead button { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.tracker thead button:hover { color: var(--ink); }
.tracker th[aria-sort="ascending"] button, .tracker th[aria-sort="descending"] button { color: var(--ink); }
.tracker th[aria-sort="ascending"] button::after { content: " \2191"; }
.tracker th[aria-sort="descending"] button::after { content: " \2193"; }
.tracker tbody th { font: 600 16px/22px var(--font-text); letter-spacing: -.01em; }
.tracker tbody tr:hover > * { background: var(--surface); }
.tracker .t-sub { color: var(--ink-muted); }
.tracker .t-status { white-space: nowrap; }
.tracker td.data { font-size: 15px; line-height: 22px; }
.tracker td.is-quiet { font: 400 13px/22px var(--font-text); color: var(--ink-muted); }
.t-meta { display: none; }
.tracker-list .source { margin-top: var(--space-4); max-width: 44rem; text-wrap: pretty; }

@media (max-width: 760px) {
  .tally { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tally-item { padding: var(--space-3); }
}
@media (max-width: 640px) {
  /* Two columns on phones: the project with its operator, suburb and status under it, then MW. */
  .tracker .t-op, .tracker .t-sub, .tracker .t-status { display: none; }
  .t-meta { display: block; margin-top: 2px; font: 400 13px/18px var(--font-text); color: var(--ink-muted); letter-spacing: 0; }
}

/* Series: tiles on field, square, left-aligned. */
.series { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); margin: var(--space-5) 0 0; padding: 0; }
@media (max-width: 1040px) { .series { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .series { grid-template-columns: minmax(0, 1fr); } }
.tile { background: var(--surface); padding: var(--space-4); }
.tile p { margin-top: var(--space-2); color: var(--ink-muted); }

/* End card: surface on field, with the mark once as a supergraphic,
   surface-raised on surface, bleeding off the top and bottom with the bite in view. */
.end-card { position: relative; overflow: hidden; overflow: clip; background: var(--surface); padding: clamp(24px, 6vw, 64px); }
.end-card > :not(.super) { position: relative; z-index: 1; }
.super { position: absolute; z-index: 0; top: -24%; right: -2%; width: min(52%, 620px); height: auto; pointer-events: none; }
.super path { fill: var(--surface-raised); }
.end-card .muted { margin-top: var(--space-3); max-width: 28rem; }
.end-card .muted a { color: var(--ink); text-underline-offset: 3px; }

.form { margin-top: var(--space-5); max-width: 480px; }
.form label { display: block; font: 500 13px/18px var(--font-text); color: var(--ink-muted); margin-bottom: var(--space-2); }
.form-row { display: flex; gap: var(--space-2); }
.form input[type=email] {
  flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 var(--space-3);
  background: var(--surface-raised); color: var(--ink); border: 0; border-radius: var(--radius-s);
  box-shadow: inset 0 0 0 var(--hairline) var(--line); font: 400 16px/24px var(--font-text);
}
.form input[type=email]:hover { box-shadow: inset 0 0 0 var(--hairline) var(--ink-muted); }
.form .check { display: flex; align-items: flex-start; gap: var(--space-2); margin: var(--space-3) 0 0; font: 400 14px/20px var(--font-text); color: var(--ink-muted); cursor: pointer; }
.form .check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); }
.form .status { min-height: 24px; margin-top: var(--space-2); font: 500 14px/20px var(--font-text); color: var(--ink); }
.form .caption { margin-top: var(--space-2); max-width: 30rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer, then the sign-off: wordmark left, address right, nothing below it. */
.site-foot { margin-top: var(--space-6); padding-bottom: var(--space-5); }
.foot-links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); padding-top: var(--space-4); border-top: var(--hairline) solid var(--line); font: 400 13px/18px var(--font-text); color: var(--ink-muted); }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-5); }
.masthead-word { font: 700 24px/28px var(--font-display); letter-spacing: -.04em; text-decoration: none; }
.masthead .data { color: var(--ink-muted); }

@media (max-width: 760px) {
  .site-head { padding-top: var(--space-4); }
  .wordmark { height: 22px; }
  .lead { font-size: 18px; line-height: 26px; }
  .super { display: none; } /* too narrow to show the bite; the hero mark carries the page */
  .form-row { flex-wrap: wrap; }
  .form-row .btn { flex: 1 0 100%; }
}
