:root {
  --night: #081320;
  --night-2: #0e1e30;
  --night-3: #16293f;
  --line: rgba(255, 255, 255, .15);
  --text: #edf2f7;
  --muted: #aebccb;
  --gold: #f7c871;
  --gold-deep: #d9922c;
  --pool: #3ea2ff;
  --ice: #edf3f9;
  --error: #ffb9a8;
  --display: "Archivo", "Arial Black", Arial, sans-serif;
  --body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", Verdana, sans-serif;
  --gutter: clamp(16px, 5vw, 80px);
  --section: clamp(64px, 9vw, 136px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--night); }
body { margin: 0; background: var(--night); color: var(--text); font: 400 1.0625rem/1.6 var(--body); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-stretch: 125%; font-weight: 800; line-height: 1.02; letter-spacing: -.02em; text-wrap: balance; }
h2 { font-size: clamp(2.15rem, 5vw, 4.25rem); }
h3 { font-size: clamp(1.6rem, 2.6vw, 2.35rem); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 30; padding: 10px 16px; background: #fff; color: var(--night); }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.btn { display: inline-block; padding: 16px 28px; border: 1px solid #ffe0a3; border-radius: 4px; background: linear-gradient(180deg, #ffe0a3, var(--gold) 45%, #eaa840); color: #1a1205; font: 700 1rem/1.2 var(--display); font-stretch: 110%; text-align: center; text-decoration: none; cursor: pointer; box-shadow: 0 0 34px rgba(247, 200, 113, .3); transition: box-shadow .2s, transform .2s; }
.btn:hover { box-shadow: 0 0 52px rgba(247, 200, 113, .58); transform: translateY(-1px); }
.btn-line { border-color: rgba(255, 255, 255, .55); background: rgba(8, 19, 32, .35); color: #fff; box-shadow: none; backdrop-filter: blur(8px); }
.btn-line:hover { border-color: #fff; box-shadow: none; }
.btn-small { padding: 11px 18px; font-size: .92rem; }
.text-link { color: var(--gold); font-weight: 600; text-underline-offset: 4px; }

.top { position: fixed; inset: 0 0 auto; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 10px var(--gutter); background: rgba(8, 19, 32, .68); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px) saturate(1.4); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.mark { width: 50px; height: 48px; flex: none; filter: drop-shadow(0 0 10px rgba(247, 200, 113, .3)); }
.word { display: grid; font-family: var(--display); line-height: 1; }
.word b { font-size: 1.42rem; font-stretch: 125%; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.word small { margin-top: 4px; color: var(--gold); font-size: .68rem; font-stretch: 118%; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.top nav { display: flex; gap: 26px; font-size: .98rem; }
.top nav a { text-decoration: none; color: #dbe4ec; }
.top nav a:hover { color: var(--gold); }
.top-cta { display: flex; justify-self: end; align-items: center; gap: 18px; }
.tel { font: 700 1rem var(--display); font-stretch: 108%; text-decoration: none; white-space: nowrap; }

.hero { position: relative; display: flex; align-items: center; min-height: max(680px, 100svh); padding: 110px var(--gutter) 104px; overflow: hidden; isolation: isolate; background: #06101b; }
.shot { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
@media (min-width: 1081px) { .shot { width: 118%; max-width: none; object-position: right center; } }
.lit { z-index: -2; transition: opacity .35s; animation: power-on 1.7s ease-out both; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 16, 27, .78), rgba(6, 16, 27, .36) 42%, transparent 66%), linear-gradient(0deg, rgba(6, 16, 27, .82), transparent 26%); }
#master:not(:checked) ~ .lit { opacity: 0; animation: none; }
@keyframes power-on { 0%, 34% { opacity: 0; } 38% { opacity: .75; } 42% { opacity: .08; } 50% { opacity: .9; } 54% { opacity: .3; } 70%, 100% { opacity: 1; } }
.hero-copy { max-width: min(600px, 44vw); }
.hero h1 { font-size: clamp(3.3rem, 6.1vw, 6.6rem); line-height: .96; text-shadow: 0 4px 44px rgba(0, 0, 0, .45); }
.hero-copy p { max-width: 460px; margin: 26px 0 34px; color: #e8eef4; font-size: clamp(1.1rem, 1.6vw, 1.32rem); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.master { position: absolute; right: var(--gutter); top: 112px; display: grid; justify-items: center; gap: 8px; padding: 12px 14px 10px; border: 1px solid var(--line); border-radius: 6px; background: rgba(8, 19, 32, .62); backdrop-filter: blur(10px); font-size: .86rem; cursor: pointer; }
.master .off, #master:not(:checked) ~ .master .on { display: none; }
#master:not(:checked) ~ .master .off { display: inline; }
#master:focus-visible ~ .master { outline: 3px solid var(--gold); outline-offset: 3px; }
.proof { position: absolute; inset: auto var(--gutter) 28px; display: flex; flex-wrap: wrap; gap: 8px 44px; color: #e5ecf2; font-size: .98rem; }
.proof li::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); vertical-align: 2px; }
.proof a { text-underline-offset: 4px; }

.body { position: relative; display: block; width: 46px; height: 76px; border-radius: 4px; background: linear-gradient(180deg, #fff, #d9e0e6); box-shadow: 0 2px 8px rgba(0, 0, 0, .5), inset 0 -4px 0 #b9c3cc; }
.body::before { content: ""; position: absolute; left: 12px; top: 15px; width: 22px; height: 42px; border-radius: 3px; background: #142436; }
.toggle { position: absolute; left: 14px; top: 35px; width: 18px; height: 20px; border-radius: 2px; background: linear-gradient(180deg, #fff, #c9d2da); box-shadow: 0 1px 3px rgba(0, 0, 0, .6); transition: top .14s cubic-bezier(.3, 1.5, .6, 1), background .14s, box-shadow .14s; }
#master:checked ~ .master .toggle, .breaker input:checked + .body .toggle { top: 17px; background: linear-gradient(180deg, #ffe7b7, var(--gold-deep)); box-shadow: 0 0 16px var(--gold); }
/* Australian light switches are on when flicked down, so the hero switch is
   the reverse of the breakers (which, like real circuit breakers, are on up). */
.master .toggle { top: 17px; }
#master:checked ~ .master .toggle { top: 35px; }

.convert { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding: var(--section) var(--gutter); background: radial-gradient(circle at 80% 20%, rgba(62, 162, 255, .16), transparent 46%), var(--night); }
.convert-copy > p:first-of-type { margin: 22px 0; color: #d7e0e8; font-size: 1.13rem; }
.ticks li { position: relative; padding: 9px 0 9px 28px; border-top: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 3px; top: 15px; width: 9px; height: 14px; background: var(--gold); clip-path: polygon(62% 0, 0 58%, 42% 58%, 30% 100%, 100% 36%, 56% 36%); }
.convert .btn { margin-top: 24px; }
.note { margin-top: 14px !important; color: var(--muted); font-size: .92rem; }
.compare { --cut: 50%; position: relative; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 30px 90px rgba(0, 0, 0, .55), 0 0 70px rgba(62, 162, 255, .13); }
.compare img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.compare .after { position: absolute; inset: 0; height: 100%; clip-path: inset(0 0 0 var(--cut)); }
.seam { position: absolute; top: 0; bottom: 0; left: var(--cut); width: 2px; background: var(--gold); box-shadow: 0 0 18px var(--gold); pointer-events: none; }
.seam::after { content: ""; position: absolute; top: 50%; left: -21px; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; background: var(--gold) center / 22px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1205' stroke-width='2.5'%3E%3Cpath d='M9 6 3 12l6 6M15 6l6 6-6 6'/%3E%3C/svg%3E"); }
.compare figcaption { position: absolute; inset: 14px 14px auto; display: flex; justify-content: space-between; pointer-events: none; }
.compare figcaption span { padding: 4px 12px; border-radius: 3px; background: rgba(8, 19, 32, .78); font-weight: 600; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 3px; }

.services { padding: var(--section) var(--gutter); background: linear-gradient(180deg, var(--night-2), var(--night)); }
.services h2 { margin-bottom: clamp(32px, 5vw, 64px); }
.switch { display: grid; grid-template-columns: minmax(320px, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 60px); align-items: stretch; }
.board { min-width: 0; margin: 0; padding: 16px; border: 1px solid #5d6d7c; border-radius: 8px; background: linear-gradient(145deg, #4a5a69, #1d2d3e 45%, #33465a); box-shadow: 0 26px 70px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .25); }
.breakers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 6px; height: 100%; align-content: space-evenly; padding: 28px 10px; border-radius: 4px; background: #07111d; box-shadow: inset 0 0 26px #000; }
.breaker { display: grid; justify-items: center; align-content: start; gap: 10px; cursor: pointer; }
.breaker input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.name { color: var(--muted); font-size: .82rem; line-height: 1.2; text-align: center; hyphens: manual; }
.breaker:hover .name { color: #fff; }
.breaker input:checked ~ .name { color: var(--gold); font-weight: 600; }
.breaker .body { width: 54px; height: 92px; }
.breaker .body::before { left: 15px; top: 19px; width: 24px; height: 52px; }
.breaker .toggle { left: 17px; top: 44px; height: 24px; }
.breaker input:checked + .body .toggle { top: 21px; }
.breaker input:focus-visible + .body { outline: 3px solid var(--gold); outline-offset: 3px; }
.panels { position: relative; min-width: 0; }
.panel { display: none; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--night-3); animation: panel-in .28s ease-out; }
.panel img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.panel-copy { align-self: center; padding: clamp(22px, 3vw, 38px); }
.panel-copy p { margin: 14px 0 16px; color: #d7e0e8; }
.panel-copy .ticks { margin-bottom: 20px; }
@keyframes panel-in { from { opacity: 0; } }
.switch:has(#s-conversion:checked) .panel-conversion, .switch:has(#s-split:checked) .panel-split,
.switch:has(#s-switchboard:checked) .panel-switchboard, .switch:has(#s-lighting:checked) .panel-lighting,
.switch:has(#s-oven:checked) .panel-oven, .switch:has(#s-power:checked) .panel-power,
.switch:has(#s-fault:checked) .panel-fault, .switch:has(#s-safety:checked) .panel-safety { display: grid; }

.areas { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding: var(--section) var(--gutter); }
.areas p { margin: 20px 0 26px; color: #d7e0e8; font-size: 1.13rem; }
.area-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 16px; font-weight: 600; }
.area-map { width: 100%; height: auto; }
.wire { fill: none; stroke: var(--gold); stroke-width: 2.5; }
.wire-glow { fill: none; stroke: var(--gold); stroke-width: 11; opacity: .14; }
.halo { fill: var(--gold); opacity: .17; }
.node { fill: #fff3d7; stroke: var(--gold-deep); stroke-width: 2; }
.area-map text { fill: #fff; font: 600 19px var(--body); paint-order: stroke; stroke: var(--night); stroke-width: 6px; }

.review { padding: var(--section) var(--gutter); background: linear-gradient(120deg, #123a68, #0d2746 55%, #0a1c31); }
.review blockquote { max-width: 1040px; margin: 0 0 26px; }
.review blockquote p { font: 700 clamp(1.7rem, 3.7vw, 3.15rem)/1.14 var(--display); font-stretch: 112%; letter-spacing: -.012em; text-wrap: pretty; }
.review footer { margin-top: 20px; color: #d7e4f0; }

.process { padding: var(--section) var(--gutter); background: var(--ice); color: var(--night); }
.process ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 52px; counter-reset: step; }
.process li { position: relative; padding-top: 62px; color: #33465a; counter-increment: step; }
.process li::before { content: counter(step); position: absolute; left: 0; top: 0; z-index: 1; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--night); color: var(--gold); font: 700 1rem/1 var(--display); }
.process li::after { content: ""; position: absolute; left: 42px; right: -28px; top: 20px; height: 2px; background: #b9c7d4; }
.process li:last-child::after { display: none; }
.process strong { display: block; margin-bottom: 4px; color: var(--night); font: 700 1.14rem/1.2 var(--display); }

.quote { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); padding: var(--section) var(--gutter); overflow: hidden; isolation: isolate; }
.quote-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.quote::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 19, 32, .9), rgba(8, 19, 32, .62)); }
.quote-intro p { max-width: 28em; margin: 20px 0 30px; color: #e2e9f0; }
.big-tel { display: block; color: var(--gold); font: 800 clamp(2rem, 4vw, 3.3rem)/1.1 var(--display); font-stretch: 112%; text-decoration: none; }
.mail { display: inline-block; margin-top: 10px; overflow-wrap: anywhere; text-underline-offset: 4px; }
.form, .sent { align-self: start; padding: clamp(20px, 3vw, 36px); border: 1px solid var(--line); border-radius: 8px; background: rgba(8, 19, 32, .78); backdrop-filter: blur(16px); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { min-width: 0; }
.wide { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 12px; border: 1px solid #62758a; border-radius: 4px; background: #f8fafc; color: var(--night); font: inherit; }
.field [aria-invalid="true"] { border: 2px solid var(--error); }
.error, .form-error { margin-top: 6px; color: var(--error); font-size: .95rem; }
.form-error { grid-column: 1 / -1; margin: 0; }
.trap { position: absolute; left: -9999px; }
.sent p { margin: 12px 0 24px; }

.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; padding: 38px var(--gutter); border-top: 1px solid var(--line); background: #050d17; color: #d3dde6; font-size: .95rem; }
.foot .fine { color: var(--muted); }
.foot-links { display: flex; gap: 20px; margin-left: auto; }

@media (max-width: 1080px) {
  .hero-copy { max-width: 620px; }
  .top { grid-template-columns: 1fr auto; }
  .top nav { display: none; }
  .switch, .convert, .areas, .quote { grid-template-columns: 1fr; }
  .board { max-width: 560px; }
  .process ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process li:nth-child(2)::after { display: none; }
}
@media (max-width: 640px) {
  .top .tel { display: none; }
  .mark { width: 42px; height: 40px; }
  .word b { font-size: 1.15rem; }
  .word small { font-size: .56rem; }
  .hero { align-items: flex-end; padding-bottom: 150px; }
  .shot { object-position: 66% center; }
  .hero::after { background: linear-gradient(0deg, rgba(6, 16, 27, .97) 18%, rgba(6, 16, 27, .84) 52%, rgba(6, 16, 27, .18) 72%, transparent 82%); }
  .master { top: 84px; padding: 8px 10px; }
  .master .body { width: 38px; height: 62px; }
  .master .body::before { left: 9px; top: 11px; width: 20px; height: 38px; }
  .master .toggle { left: 11px; top: 13px; width: 16px; height: 18px; }
  #master:checked ~ .master .toggle { top: 28px; }
  .proof { display: grid; gap: 4px; bottom: 22px; font-size: .92rem; }
  .actions .btn { width: 100%; }
  .breakers { gap: 24px 2px; padding: 22px 4px; }
  .breaker .body { transform: scale(.88); transform-origin: top; margin-bottom: -9px; }
  .name { font-size: .76rem; }
  .panel, .form, .process ol { grid-template-columns: 1fr; }
  .panel img { min-height: 0; height: auto; aspect-ratio: 4 / 3; }
  .process li::after { display: none; }
  .area-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .area-map text { font-size: 25px; }
  .foot-links { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lit, .panel { animation: none; }
  .toggle, .lit, .btn { transition: none; }
}
