:root {
  --ink: #071419;
  --deep: #0a1d24;
  --paper: #e8f0ef;
  --ice: #91e0e6;
  --ice-bright: #c4fbfb;
  --line: rgba(213, 237, 237, .22);
  --muted: #8ea6a7;
  --ember: #d67545;
  --gutter: clamp(20px, 4.8vw, 76px);
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --sans: "Arial Narrow", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  overflow-x: hidden;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
::selection { background: var(--ice); color: var(--ink); }

.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; transform: translateY(-150%); background: var(--paper); color: var(--ink); padding: 10px 14px; }
.skip-link:focus { transform: none; }

.weather { position: fixed; inset: 0; z-index: 20; pointer-events: none; overflow: hidden; opacity: .42; }
.weather__snow { position: absolute; inset: -30%; background-repeat: repeat; transform: skewX(-9deg); }
.weather__snow--far { background-image: radial-gradient(ellipse at center, rgba(255,255,255,.42) 0 1px, transparent 1.8px); background-size: 43px 37px; animation: snow-far 23s linear infinite; }
.weather__snow--near { background-image: linear-gradient(112deg, transparent 49%, rgba(228,247,247,.5) 50%, transparent 52%); background-size: 97px 83px; animation: snow-near 12s linear infinite; opacity: .5; }
@keyframes snow-far { to { translate: 44px 74px; } }
@keyframes snow-near { to { translate: 98px 166px; } }

.topbar {
  position: absolute; z-index: 30; top: 0; left: 0; width: 100%; height: 76px;
  padding: 0 var(--gutter); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  border-bottom: 1px solid rgba(225,246,246,.24); font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
}
.brand { display: inline-flex; width: max-content; gap: 12px; align-items: center; text-decoration: none; font-weight: 500; }
.brand__mark { border: 1px solid rgba(235,251,251,.55); padding: 6px 7px; color: var(--ice); }
.topbar__state { display: flex; align-items: center; gap: 9px; color: #b9d0d1; }
.state-lamp { width: 6px; height: 6px; background: var(--ember); box-shadow: 0 0 15px var(--ember); }
body.is-isolated .state-lamp { background: var(--ice); box-shadow: 0 0 15px var(--ice); }
.topbar nav { display: flex; justify-content: flex-end; gap: 26px; }
.topbar nav a { text-decoration: none; color: #c3d2d1; }
.topbar nav a:hover { color: white; }

.hero { min-height: 100svh; position: relative; isolation: isolate; display: flex; align-items: flex-end; padding: 140px var(--gutter) 8vh; overflow: hidden; }
.hero__landscape, .hero__image, .hero__ice, .hero__mist, .hero__grid { position: absolute; inset: 0; }
.hero__landscape { z-index: -3; background: #07151a; }
.hero__image {
  inset: -3%; background: url("assets/winter-source.png") center 46% / cover no-repeat;
  filter: saturate(.34) hue-rotate(112deg) brightness(.56) contrast(1.25); transform: scale(1.05);
  transition: filter 1.4s ease, transform 4s ease;
}
.hero__ice { background: linear-gradient(90deg, rgba(5,17,22,.92) 0%, rgba(5,17,22,.54) 42%, rgba(5,17,22,.18) 70%, rgba(4,16,21,.62) 100%), linear-gradient(180deg, rgba(12,34,41,.18), rgba(4,13,17,.9)); mix-blend-mode: multiply; }
.hero__mist { background: linear-gradient(180deg, transparent 38%, rgba(155,220,222,.12) 61%, rgba(5,16,21,.9) 100%), radial-gradient(ellipse at 70% 62%, rgba(185,239,238,.22), transparent 35%); }
.hero__grid { z-index: -1; opacity: .14; background-image: linear-gradient(rgba(210,243,243,.3) 1px, transparent 1px), linear-gradient(90deg, rgba(210,243,243,.18) 1px, transparent 1px); background-size: 100% 13vh, 12.5vw 100%; mask-image: linear-gradient(to bottom, transparent, #000 42%, #000); }
body.is-isolated .hero__image { filter: saturate(.14) hue-rotate(130deg) brightness(.48) contrast(1.38); transform: scale(1.08); }

.hero__content { width: min(900px, 74vw); position: relative; z-index: 2; }
.eyebrow { margin: 0 0 22px; display: flex; gap: 30px; font: 500 11px/1.4 var(--mono); letter-spacing: .14em; color: var(--ice); }
.hero h1 { margin: 0; font-size: clamp(54px, 7.25vw, 118px); line-height: .82; letter-spacing: -.075em; font-weight: 900; text-transform: uppercase; }
.hero h1 em { color: transparent; -webkit-text-stroke: 1.3px rgba(225,246,246,.8); font-style: normal; }
.hero__lede { width: min(560px, 90%); margin: 30px 0 0; color: #c3d1d1; font-size: clamp(15px, 1.25vw, 19px); line-height: 1.55; }
.hero__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 31px; }
.button { min-height: 52px; display: inline-flex; justify-content: space-between; align-items: center; gap: 32px; padding: 0 20px; border: 1px solid transparent; text-decoration: none; font: 500 11px/1 var(--mono); letter-spacing: .07em; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.button:hover:not([aria-disabled="true"]) { transform: translateY(-2px); }
.button--primary { background: var(--ice-bright); color: #051317; }
.button--ghost { border-color: rgba(225,244,244,.42); background: rgba(6,18,23,.34); backdrop-filter: blur(12px); }
.button[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.hero__stamp { position: absolute; right: var(--gutter); bottom: 8vh; width: 190px; border-top: 2px solid var(--ice); padding-top: 11px; display: flex; justify-content: space-between; align-items: flex-start; }
.hero__stamp b { font-size: 25px; letter-spacing: -.04em; }
.hero__stamp span { text-align: right; font: 9px/1.5 var(--mono); color: #adc4c5; }
.hero__coordinates { position: absolute; right: var(--gutter); top: 99px; writing-mode: vertical-rl; font: 9px/1 var(--mono); letter-spacing: .15em; color: rgba(224,242,242,.65); }

.section-index { flex: 0 0 215px; color: #81999a; font: 10px/1.4 var(--mono); letter-spacing: .12em; }
.statement { padding: clamp(90px, 11vw, 180px) var(--gutter); display: flex; border-top: 1px solid var(--line); background: #08161b; }
.statement__copy { flex: 1; }
.statement h2 { margin: 0; font-size: clamp(33px, 4.9vw, 76px); line-height: 1; letter-spacing: -.055em; }
.statement h2 span { color: #799192; }
.statement__columns { margin-top: 76px; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 70px); }
.statement__columns p { margin: 0; color: #afc0c0; font-size: 15px; line-height: 1.75; }
.statement__columns p::before { content: "—"; display: block; margin-bottom: 18px; color: var(--ice); font-family: var(--mono); }

.severance { padding: clamp(80px, 9vw, 140px) var(--gutter); background: #dfe9e7; color: var(--ink); }
.severance__header { display: grid; grid-template-columns: 215px 1fr minmax(230px, 32%); gap: 0; align-items: end; margin-bottom: 60px; }
.severance__header .section-index { color: #526b6c; }
.severance h2 { margin: 0; font-size: clamp(42px, 5vw, 78px); letter-spacing: -.06em; line-height: .95; }
.severance__header > p { margin: 0; max-width: 420px; color: #486163; font-size: 14px; line-height: 1.6; }
.breaker-panel { border: 1px solid #728788; background: rgba(255,255,255,.22); box-shadow: 10px 10px 0 #b8cac8; }
.breaker-panel__status { min-height: 48px; padding: 0 18px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid #728788; font: 10px/1.3 var(--mono); letter-spacing: .06em; }
.breakers { padding: 11px; }
.breaker { width: 100%; min-height: 116px; display: grid; grid-template-columns: 80px 1fr 170px; align-items: stretch; padding: 0; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid #8ba0a0; text-align: left; cursor: pointer; }
.breaker:last-child { border-bottom: 0; }
.breaker:hover { background: rgba(255,255,255,.33); }
.breaker__number { display: grid; place-items: center; border-right: 1px solid #8ba0a0; font: 12px var(--mono); }
.breaker__body { display: flex; flex-direction: column; justify-content: center; padding: 20px 30px; }
.breaker__body b { font-size: clamp(22px, 2.6vw, 40px); letter-spacing: -.045em; }
.breaker__body small { margin-top: 7px; color: #587071; font: 9px/1.4 var(--mono); letter-spacing: .06em; }
.breaker__switch { display: flex; gap: 14px; align-items: center; justify-content: center; border-left: 1px solid #8ba0a0; color: #53696a; font: 9px var(--mono); }
.breaker__switch i { position: relative; display: block; width: 48px; height: 24px; border: 1px solid #5f7475; background: #c3d0cf; }
.breaker__switch i::after { content: ""; position: absolute; width: 20px; inset: 2px auto 2px 2px; background: var(--ember); transition: transform .3s cubic-bezier(.2,.8,.2,1), background .3s; }
.breaker[aria-pressed="true"] { background: #12282c; color: #dce9e7; }
.breaker[aria-pressed="true"] .breaker__number, .breaker[aria-pressed="true"] .breaker__switch { border-color: #395052; }
.breaker[aria-pressed="true"] .breaker__body small, .breaker[aria-pressed="true"] .breaker__switch { color: #8ea6a7; }
.breaker[aria-pressed="true"] .breaker__switch i::after { transform: translateX(22px); background: var(--ice); }
.severance__reveal { max-height: 0; overflow: hidden; padding: 0 28px; background: var(--ice); transition: max-height .65s ease, padding .65s ease; }
.severance__reveal.is-visible { max-height: 280px; padding: 34px 28px 40px; }
.severance__reveal p { margin: 0 0 14px; font: 10px var(--mono); letter-spacing: .1em; }
.severance__reveal h3 { max-width: 900px; margin: 0; font-size: clamp(28px, 4vw, 58px); line-height: 1; letter-spacing: -.05em; }
.severance__reveal > span { display: block; margin-top: 18px; color: #365154; }

.field-notes { min-height: 780px; display: grid; grid-template-columns: 1.08fr .92fr; background: #061217; border-top: 1px solid var(--line); }
.field-notes__image { min-height: 600px; background: linear-gradient(180deg, rgba(8,22,27,.15), rgba(6,18,23,.8)), url("assets/winter-source.png") 20% center / cover no-repeat; filter: saturate(.2) hue-rotate(112deg) brightness(.62) contrast(1.34); }
.field-notes__content { padding: clamp(70px, 8vw, 130px) var(--gutter); border-left: 1px solid var(--line); }
.field-notes h2 { margin: 34px 0 62px; font-size: clamp(35px, 4vw, 62px); line-height: 1; letter-spacing: -.055em; }
.field-notes dl { margin: 0; border-top: 1px solid var(--line); }
.field-notes dl div { display: flex; justify-content: space-between; gap: 30px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.field-notes dt { color: #779092; font: 9px var(--mono); letter-spacing: .12em; }
.field-notes dd { margin: 0; text-align: right; font-size: 13px; }
.field-notes blockquote { margin: 68px 0 0; padding-left: 20px; border-left: 2px solid var(--ice); color: #bbcccd; font-size: 16px; line-height: 1.6; }

.access { padding: clamp(90px, 11vw, 170px) var(--gutter) 70px; background: #0a1e25; }
.access__layout { margin-top: 34px; display: grid; grid-template-columns: .92fr 1.08fr; gap: 8vw; align-items: end; }
.access h2 { margin: 0; font-size: clamp(52px, 7vw, 112px); line-height: .85; letter-spacing: -.075em; }
.contract { align-self: end; }
.contract__label { display: block; margin-bottom: 11px; color: #8fa7a8; font: 9px var(--mono); letter-spacing: .12em; }
.contract__copy { width: 100%; min-height: 66px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border: 1px solid #526b6d; background: #07161b; color: #dcebea; padding: 0 18px; cursor: pointer; }
.contract__copy:not(:disabled):hover { border-color: var(--ice); }
.contract__copy:disabled { cursor: not-allowed; opacity: .58; }
.contract__copy code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 11px var(--mono); }
.contract__copy span { color: var(--ice); font: 9px var(--mono); }
.contract p { color: #728b8c; font-size: 11px; line-height: 1.55; }
.contract p code { color: #abc1c1; }
.access__actions { margin-top: 58px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.button--ice { background: var(--ice); color: var(--ink); min-height: 72px; }
.button--outline { border-color: #526b6d; min-height: 72px; }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 24px var(--gutter); border-top: 1px solid var(--line); color: #6f898a; background: #061217; font: 9px/1.4 var(--mono); letter-spacing: .08em; }

@media (max-width: 900px) {
  .topbar { grid-template-columns: 1fr auto; }
  .topbar nav { display: none; }
  .hero__content { width: 100%; }
  .hero__stamp { display: none; }
  .statement { display: block; }
  .statement__copy { margin-top: 34px; }
  .statement__columns { grid-template-columns: 1fr; gap: 34px; margin-top: 52px; }
  .severance__header { grid-template-columns: 1fr; gap: 24px; }
  .breaker { grid-template-columns: 60px 1fr 115px; }
  .field-notes { grid-template-columns: 42% 58%; }
  .access__layout { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .topbar { height: 64px; padding: 0 17px; }
  .brand { font-size: 9px; gap: 8px; }
  .topbar__state { font-size: 8px; }
  .hero { min-height: 820px; padding: 112px 20px 54px; align-items: center; }
  .hero__image { background-position: 51% center; }
  .hero h1 { font-size: clamp(50px, 15.3vw, 78px); line-height: .85; }
  .hero__lede { margin-top: 25px; font-size: 14px; }
  .hero__actions { display: grid; }
  .button { width: 100%; }
  .hero__coordinates { right: 9px; top: 86px; }
  .statement, .severance, .access { padding-left: 20px; padding-right: 20px; }
  .statement h2 { font-size: 37px; }
  .breaker-panel__status { display: grid; padding: 14px; }
  .breaker-panel__status span:last-child { color: #5a7475; }
  .breakers { padding: 6px; }
  .breaker { min-height: 148px; grid-template-columns: 42px 1fr; grid-template-rows: 1fr 43px; }
  .breaker__number { grid-row: 1 / 3; }
  .breaker__body { padding: 20px 16px 12px; }
  .breaker__body b { font-size: 27px; }
  .breaker__switch { grid-column: 2; border-left: 0; border-top: 1px solid #8ba0a0; justify-content: flex-start; padding-left: 16px; }
  .field-notes { display: block; }
  .field-notes__image { min-height: 420px; background-position: center; }
  .field-notes__content { padding: 70px 20px; border-left: 0; border-top: 1px solid var(--line); }
  .access__actions { grid-template-columns: 1fr; }
  footer { flex-direction: column; padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
