/* ORIGIN ENERGY LIMITED / WEBSITE 055
   Australian Energy Grid × Domestic Systems Atlas
   HTML + CSS only
*/

:root {
  --paper: #f4f6f3;
  --teal: #0b2f32;
  --copper: #a9603d;
  --blue: #b8ced9;
  --sand: #d7c4a6;
  --eucalyptus: #7d9f8c;
  --lime: #c7ea49;
  --ink-muted: #5f7070;
  --line: rgba(11, 47, 50, 0.20);
  --white: #fbfcf9;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
  --condensed: "IBM Plex Sans Condensed", "Arial Narrow", Arial, sans-serif;
  --mono: "DM Mono", Consolas, monospace;
  --max: 1540px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--teal);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.58;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

a:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 1000;
  padding: 0.7rem 0.9rem;
  background: var(--paper);
  border: 1px solid var(--teal);
  transform: translateY(-170%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.atlas-shell {
  width: min(100% - 3rem, var(--max));
  margin-inline: auto;
}

.systems-masthead {
  display: grid;
  grid-template-columns: minmax(290px, 0.9fr) minmax(530px, 1.8fr) minmax(180px, 0.6fr);
  align-items: end;
  gap: 1.7rem;
  width: min(100% - 3rem, var(--max));
  margin: 0 auto;
  padding: 1.3rem 0 1.05rem;
  border-bottom: 1px solid var(--teal);
}

.brand-lockup {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
}

.brand {
  font-family: var(--condensed);
  font-size: clamp(2.2rem, 3.6vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.82;
  text-decoration: none;
}

.brand-lockup span,
.masthead-ref,
.kicker,
.system-sequence,
.hero-photo figcaption,
.hero-spec,
.service-no,
.service-code,
.availability-note,
.triad-copy > span,
.motion-stage > span,
.system-label span,
.company-marker,
.company-card > span,
.footer-brand p,
.footer-spec,
.legal-masthead p,
.legal-index {
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.brand-lockup span {
  white-space: nowrap;
  color: var(--ink-muted);
}

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
}

.primary-nav a {
  position: relative;
  padding-block: 0.15rem;
  font-family: var(--condensed);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-decoration: none;
  text-transform: uppercase;
}

.primary-nav a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -0.55rem;
  width: 0.22rem;
  height: 0.22rem;
  border-radius: 50%;
  background: var(--lime);
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 150ms ease;
}

.primary-nav a:hover::before,
.primary-nav a:focus-visible::before {
  opacity: 1;
}

.masthead-ref {
  display: grid;
  justify-items: end;
  line-height: 1.55;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  min-height: 760px;
  padding: clamp(3.4rem, 7vw, 7rem) 0 clamp(4.5rem, 8vw, 8rem);
}

.hero::after {
  content: "";
  position: absolute;
  top: 9%;
  left: 39%;
  width: 1px;
  height: 80%;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(11,47,50,.28) 0 3px,
      transparent 3px 8px
    );
}

.hero-copy {
  position: relative;
  z-index: 3;
  align-self: center;
  padding-right: clamp(1rem, 5vw, 5rem);
}

.kicker {
  margin: 0 0 1.15rem;
  color: var(--ink-muted);
}

.hero h1,
.section-head h2,
.triad-head h2,
.connected-copy h2,
.company-type h2,
.legal-hero h1,
.legal-copy h2 {
  margin: 0;
  font-family: var(--condensed);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.84;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(5rem, 8.8vw, 10rem);
}

.hero h1 em {
  color: var(--copper);
  font-family: var(--serif);
  font-weight: 500;
  text-transform: none;
}

.hero-intro {
  max-width: 38rem;
  margin: 2.2rem 0 0;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.7rem;
  margin-top: 2.2rem;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid currentColor;
  font-family: var(--condensed);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-decoration: none;
  text-transform: uppercase;
}

.arrow-link span {
  color: var(--copper);
  transition: transform 160ms ease;
}

.arrow-link:hover span {
  transform: translateX(0.25rem);
}

.system-sequence {
  color: var(--ink-muted);
}

.hero-system {
  position: relative;
  min-height: 640px;
}

.hero-photo {
  position: absolute;
  margin: 0;
}

.hero-photo--wide {
  top: 2%;
  right: 1%;
  width: 73%;
  height: 76%;
}

.hero-photo--detail {
  bottom: 1%;
  left: 3%;
  width: 39%;
  height: 47%;
  border: 0.65rem solid var(--paper);
}

.hero-photo figcaption {
  position: absolute;
  right: 0;
  bottom: -1.65rem;
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: -0.6rem;
  z-index: -1;
  border: 1px solid var(--line);
}

.flow-path {
  position: absolute;
  top: 16%;
  left: 4%;
  width: 68%;
  height: 53%;
  border-top: 1px solid var(--copper);
  border-left: 1px solid var(--copper);
  border-radius: 32% 0 0;
  pointer-events: none;
}

.flow-path::after {
  content: "";
  position: absolute;
  right: -26%;
  bottom: 0;
  width: 61%;
  border-top: 1px solid var(--copper);
}

.node {
  position: absolute;
  width: 0.7rem;
  height: 0.7rem;
  border: 2px solid var(--teal);
  border-radius: 50%;
  background: var(--lime);
}

.node-a { top: -0.35rem; left: -0.35rem; }
.node-b { top: -0.35rem; left: 52%; }
.node-c { bottom: -0.35rem; left: -0.35rem; }
.node-d { right: -26.35%; bottom: -0.35rem; }

.hero-spec {
  position: absolute;
  right: -0.2rem;
  bottom: 0;
  display: grid;
  justify-items: end;
  color: rgba(11,47,50,.18);
}

.hero-spec strong {
  font-family: var(--condensed);
  font-size: clamp(9rem, 16vw, 18rem);
  line-height: 0.72;
}

.service-section {
  padding: clamp(5rem, 9vw, 9rem) 0;
  border-top: 1px solid var(--teal);
}

.section-head {
  display: grid;
  grid-template-columns: 0.34fr 1.18fr 0.72fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: 3.5rem;
}

.section-head .kicker {
  margin: 0;
}

.section-head h2 {
  font-size: clamp(4rem, 7.6vw, 8rem);
}

.section-head > p:last-child {
  max-width: 34rem;
  margin: 0 0 0.35rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  border-top: 1px solid var(--teal);
  border-left: 1px solid var(--teal);
}

.service {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  align-content: space-between;
  min-height: 250px;
  padding: 1.25rem;
  border-right: 1px solid var(--teal);
  border-bottom: 1px solid var(--teal);
  overflow: hidden;
}

.service::before,
.service::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.service::before {
  right: 1rem;
  bottom: 1rem;
  width: 4.8rem;
  height: 4.8rem;
  border: 1px solid currentColor;
  opacity: 0.18;
}

.service::after {
  right: 3.2rem;
  bottom: 0;
  height: 7rem;
  border-left: 1px dashed currentColor;
  opacity: 0.23;
}

.service h3 {
  margin: 0.25rem 0 0.7rem;
  font-family: var(--condensed);
  font-size: clamp(2.7rem, 4.2vw, 4.8rem);
  line-height: 0.9;
}

.service p {
  max-width: 31rem;
  margin: 0;
}

.service-code {
  grid-column: 2;
  align-self: end;
}

.service--power {
  grid-column: span 7;
  background: var(--copper);
  color: var(--white);
}

.service--gas {
  grid-column: span 5;
  background: var(--sand);
}

.service--internet {
  grid-column: span 4;
  background: var(--blue);
}

.service--solar {
  grid-column: span 5;
  background: var(--eucalyptus);
}

.service--battery {
  grid-column: span 3;
  background: var(--teal);
  color: var(--white);
}

.service--ev {
  grid-column: span 6;
  background: var(--paper);
}

.availability-note {
  margin: 1.2rem 0 0;
  color: var(--ink-muted);
}

.triad-section {
  padding: clamp(5rem, 9vw, 9rem) 0;
  background: var(--teal);
  color: var(--paper);
}

.triad-head {
  display: grid;
  grid-template-columns: 0.35fr 1.65fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: 3rem;
}

.triad-head .kicker {
  color: rgba(244,246,243,.65);
}

.triad-head h2 {
  font-size: clamp(4.2rem, 8vw, 8.5rem);
}

.triad-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.92fr 0.72fr;
  gap: clamp(1rem, 2.6vw, 2.6rem);
  width: min(100% - 3rem, var(--max));
  margin-inline: auto;
}

.triad-card {
  position: relative;
  min-width: 0;
}

.triad-card figure {
  margin: 0;
  overflow: hidden;
}

.triad-copy {
  position: relative;
  z-index: 3;
}

.triad-copy h3 {
  margin: 0.35rem 0 0.85rem;
  font-family: var(--condensed);
  font-size: clamp(3.2rem, 4.7vw, 5.4rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
}

.triad-copy p {
  max-width: 29rem;
  margin: 0;
}

.triad-card--supply {
  padding-top: 3rem;
}

.triad-card--supply .triad-copy {
  margin-bottom: 1.1rem;
  padding: 1.2rem;
  border-left: 5px solid var(--copper);
}

.triad-card--supply figure {
  height: 430px;
}

.triad-card--generate {
  display: grid;
  align-content: start;
}

.triad-card--generate figure {
  height: 560px;
  border: 0.8rem solid var(--eucalyptus);
}

.triad-card--generate .triad-copy {
  width: 90%;
  margin: -3.2rem 0 0 auto;
  padding: 1.2rem;
  background: var(--sand);
  color: var(--teal);
}

.triad-card--store {
  align-self: end;
  min-height: 510px;
  padding: 1.4rem;
  background: var(--blue);
  color: var(--teal);
}

.battery-graphic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
  height: 280px;
  margin-bottom: 1.4rem;
  padding: 0.8rem;
  border: 1px solid var(--teal);
}

.battery-graphic span {
  border: 1px solid var(--teal);
  background:
    linear-gradient(
      to top,
      rgba(11,47,50,.18) 0 36%,
      transparent 36% 100%
    );
}

.motion-section {
  padding: clamp(5rem, 9vw, 9rem) 0;
}

.section-head--motion {
  grid-template-columns: 0.34fr 1.1fr 0.78fr;
}

.motion-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  min-height: 390px;
  padding-top: 4.5rem;
}

.motion-map::before {
  content: "";
  position: absolute;
  top: 2rem;
  right: 8%;
  left: 8%;
  border-top: 1px solid var(--copper);
}

.motion-stage {
  position: relative;
  min-height: 245px;
  padding: 1.25rem;
  border-left: 1px solid var(--line);
}

.motion-stage:last-child {
  border-right: 1px solid var(--line);
}

.motion-stage::before {
  content: "";
  position: absolute;
  top: -2.88rem;
  left: 1.05rem;
  width: 0.85rem;
  height: 0.85rem;
  border: 2px solid var(--teal);
  border-radius: 50%;
  background: var(--lime);
}

.motion-stage:nth-child(even) {
  margin-top: 3.2rem;
}

.motion-stage > span {
  color: var(--copper);
}

.motion-stage h3 {
  margin: 0.5rem 0 0.65rem;
  font-family: var(--condensed);
  font-size: clamp(2rem, 3vw, 3.4rem);
  line-height: 0.9;
}

.motion-stage p {
  max-width: 15rem;
  margin: 0;
}

.connected-section {
  padding: clamp(5rem, 9vw, 9rem) 0;
  background: var(--sand);
}

.connected-shell {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.connected-copy h2 {
  font-size: clamp(4.3rem, 7vw, 7.5rem);
}

.connected-copy > p:not(.kicker) {
  max-width: 38rem;
  margin: 1.7rem 0 2rem;
}

.house-atlas {
  position: relative;
  min-height: 610px;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 42px 42px;
  border: 1px solid var(--teal);
}

.house-plan {
  position: absolute;
  inset: 12% 12% 13%;
}

.plan-roof,
.plan-left,
.plan-right,
.plan-floor {
  position: absolute;
  display: block;
}

.plan-roof {
  top: 9%;
  left: 17%;
  width: 66%;
  height: 40%;
  border-top: 2px solid var(--teal);
  transform: skewY(-26deg);
}

.plan-left {
  top: 36%;
  bottom: 12%;
  left: 17%;
  border-left: 2px solid var(--teal);
}

.plan-right {
  top: 36%;
  right: 17%;
  bottom: 12%;
  border-right: 2px solid var(--teal);
}

.plan-floor {
  right: 17%;
  bottom: 12%;
  left: 17%;
  border-bottom: 2px solid var(--teal);
}

.plan-node {
  position: absolute;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--lime);
  border: 2px solid var(--teal);
}

.plan-node--1 { top: 14%; left: 47%; }
.plan-node--2 { top: 42%; left: 17%; }
.plan-node--3 { right: 17%; bottom: 28%; }
.plan-node--4 { bottom: 12%; left: 47%; }

.system-label {
  position: absolute;
  display: grid;
  gap: 0.15rem;
  padding: 0.65rem 0.75rem;
  background: var(--paper);
  border: 1px solid var(--teal);
}

.system-label strong {
  font-family: var(--condensed);
  font-size: 1rem;
}

.system-label--energy { top: 8%; right: 7%; }
.system-label--internet { top: 38%; left: 4%; background: var(--blue); }
.system-label--solar { top: 21%; left: 37%; background: var(--eucalyptus); }
.system-label--storage { right: 10%; bottom: 15%; background: var(--copper); color: var(--white); }
.system-label--ev { bottom: 7%; left: 20%; }

.arrow-link--light span {
  color: var(--teal);
}

.company-section {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  background: var(--teal);
  color: var(--paper);
}

.company-image {
  position: absolute;
  inset: 0 0 0 48%;
}

.company-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11,47,50,.92), rgba(11,47,50,.18));
}

.company-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.22;
}

.company-grid span {
  position: absolute;
  display: block;
}

.company-grid span:nth-child(1) { top: 21%; right: 0; left: 0; border-top: 1px solid var(--paper); }
.company-grid span:nth-child(2) { top: 61%; right: 0; left: 0; border-top: 1px dashed var(--paper); }
.company-grid span:nth-child(3) { top: 0; bottom: 0; left: 18%; border-left: 1px dashed var(--paper); }
.company-grid span:nth-child(4) { top: 0; bottom: 0; left: 47%; border-left: 1px solid var(--paper); }
.company-grid span:nth-child(5) { top: 0; right: 15%; bottom: 0; border-left: 1px dashed var(--paper); }

.company-marker,
.company-type,
.company-card {
  position: relative;
  z-index: 4;
}

.company-marker {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: min(100% - 3rem, var(--max));
  margin: 0 auto;
  padding-top: 4rem;
}

.company-marker span {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: var(--copper);
}

.company-marker p {
  margin: 0;
}

.company-type {
  width: min(100% - 3rem, var(--max));
  margin: 6rem auto 0;
}

.company-type > p {
  margin: 0 0 0.2rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 3.2rem);
  font-style: italic;
}

.company-type > strong {
  display: block;
  color: var(--lime);
  font-family: var(--condensed);
  font-size: clamp(8rem, 18vw, 19rem);
  line-height: 0.58;
}

.company-type h2 {
  max-width: 9ch;
  margin-top: 1.1rem;
  font-size: clamp(4rem, 8vw, 9rem);
}

.company-card {
  position: absolute;
  right: max(1.5rem, calc((100vw - var(--max)) / 2));
  bottom: 4rem;
  width: min(420px, calc(100% - 3rem));
  padding: 1.6rem;
  background: var(--paper);
  color: var(--teal);
  border-top: 5px solid var(--copper);
}

.company-card address,
.footer-address,
.legal-copy address {
  font-style: normal;
}

.company-card address {
  margin: 1.2rem 0 1.8rem;
  font-size: 1.08rem;
  line-height: 1.6;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.78fr;
  gap: 2rem;
  padding: 3.2rem max(1.5rem, calc((100vw - var(--max)) / 2)) 2rem;
  background: var(--teal);
  color: var(--paper);
  border-top: 1px solid rgba(169,96,61,.85);
}

.footer-brand {
  position: relative;
}

.voltage-node {
  position: absolute;
  top: -1rem;
  left: -1rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--lime);
}

.footer-brand h2 {
  margin: 0;
  font-family: var(--condensed);
  font-size: clamp(4.8rem, 8vw, 8.8rem);
  line-height: 0.76;
  letter-spacing: -0.045em;
}

.footer-brand p {
  margin: 1rem 0 0;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(125px, 1fr));
  gap: 0.5rem 1.2rem;
  align-content: start;
}

.footer-nav a,
.footer-spec a {
  width: fit-content;
  color: rgba(244,246,243,.82);
  font-family: var(--condensed);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.footer-address {
  color: rgba(244,246,243,.78);
}

.footer-spec {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px dashed rgba(244,246,243,.28);
  color: rgba(244,246,243,.62);
}

/* Legal */
.legal-masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 1.5rem;
  width: min(100% - 3rem, var(--max));
  margin: 0 auto;
  padding: 1.35rem 0 1.05rem;
  border-bottom: 1px solid var(--teal);
}

.legal-masthead p {
  margin: 0;
}

.legal-masthead nav {
  display: flex;
  justify-content: end;
  gap: 1rem;
}

.legal-masthead nav a {
  font-family: var(--condensed);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
}

.legal-main {
  width: min(100% - 3rem, var(--max));
  margin: 0 auto;
}

.legal-hero {
  display: grid;
  grid-template-columns: 0.3fr 1.25fr 0.72fr;
  gap: 2rem;
  align-items: end;
  padding: clamp(4.5rem, 8vw, 8rem) 0;
  border-bottom: 1px solid var(--teal);
}

.legal-hero .kicker {
  align-self: start;
}

.legal-hero h1 {
  font-size: clamp(4.7rem, 10vw, 11rem);
}

.legal-hero > p:last-child {
  max-width: 32rem;
}

.legal-section {
  display: grid;
  grid-template-columns: 0.3fr 1.7fr;
  gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(4.5rem, 8vw, 8rem) 0;
  border-bottom: 1px solid var(--teal);
}

.legal-index {
  position: sticky;
  top: 1rem;
  align-self: start;
}

.legal-index span {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--copper);
  font-size: 2rem;
}

.legal-index p {
  margin: 0;
}

.legal-copy {
  max-width: 830px;
}

.legal-copy h2 {
  margin-bottom: 2rem;
  font-size: clamp(3.8rem, 6.2vw, 7rem);
}

.legal-copy h3 {
  margin: 2.1rem 0 0.45rem;
  font-family: var(--condensed);
  font-size: 1.45rem;
  text-transform: uppercase;
}

.legal-copy p,
.legal-copy address {
  max-width: 720px;
}

.legal-back {
  display: inline-block;
  margin-top: 2.5rem;
  font-family: var(--condensed);
  font-weight: 700;
  text-transform: uppercase;
}

.site-footer--legal {
  grid-template-columns: 1fr 1fr;
}

.site-footer--legal .footer-spec {
  grid-column: 1 / -1;
}

/* Responsive */
@media (max-width: 1160px) {
  .systems-masthead {
    grid-template-columns: 1fr auto;
  }

  .primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    padding-top: 0.4rem;
  }

  .masthead-ref {
    grid-column: 2;
    grid-row: 1;
  }

  .section-head {
    grid-template-columns: 0.25fr 1.05fr 0.7fr;
  }

  .triad-grid {
    grid-template-columns: 1fr 1fr;
  }

  .triad-card--store {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    align-items: end;
    min-height: 0;
  }

  .battery-graphic {
    margin: 0;
  }

  .motion-map {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 2.5rem;
  }

  .motion-map::before {
    display: none;
  }

  .motion-stage {
    border-top: 1px solid var(--copper);
  }

  .motion-stage::before {
    top: -0.48rem;
  }

  .motion-stage:nth-child(even) {
    margin-top: 0;
  }

  .company-type {
    margin-top: 4rem;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    min-height: 0;
  }

  .hero::after {
    display: none;
  }

  .hero-copy {
    padding-right: 0;
  }

  .hero-system {
    min-height: 620px;
  }

  .section-head,
  .section-head--motion {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .section-head > p:last-child {
    margin: 0;
  }

  .service--power,
  .service--gas,
  .service--internet,
  .service--solar,
  .service--battery,
  .service--ev {
    grid-column: span 6;
  }

  .triad-head {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .connected-shell {
    grid-template-columns: 1fr;
  }

  .house-atlas {
    min-height: 540px;
  }

  .company-image {
    inset: 0 0 0 38%;
  }

  .company-type {
    margin-top: 5rem;
  }

  .company-card {
    bottom: 3rem;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .footer-address {
    grid-column: 2;
  }

  .legal-hero {
    grid-template-columns: 1fr;
  }

  .legal-section {
    grid-template-columns: 1fr;
  }

  .legal-index {
    position: static;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 15px;
  }

  .atlas-shell,
  .systems-masthead,
  .legal-main,
  .legal-masthead {
    width: min(100% - 2rem, var(--max));
  }

  .systems-masthead {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    padding-top: 1rem;
  }

  .brand-lockup {
    display: grid;
    gap: 0.35rem;
  }

  .brand-lockup span {
    white-space: normal;
  }

  .masthead-ref {
    grid-column: 1;
    grid-row: 2;
    justify-items: start;
  }

  .primary-nav {
    grid-column: 1;
    grid-row: 3;
    justify-content: flex-start;
    gap: 0.3rem 0.9rem;
    padding-top: 0.7rem;
    border-top: 1px dashed var(--line);
  }

  .primary-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 2.2rem;
  }

  .hero {
    padding: 3.6rem 0 4.7rem;
  }

  .hero h1 {
    font-size: clamp(4.2rem, 20vw, 6.6rem);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-system {
    min-height: 520px;
  }

  .hero-photo--wide {
    width: 79%;
  }

  .hero-photo--detail {
    width: 43%;
    border-width: 0.45rem;
  }

  .flow-path {
    width: 62%;
  }

  .hero-spec strong {
    font-size: 9rem;
  }

  .service-section,
  .motion-section {
    padding: 4.7rem 0;
  }

  .section-head {
    margin-bottom: 2.3rem;
  }

  .section-head h2,
  .triad-head h2,
  .connected-copy h2 {
    font-size: clamp(3.8rem, 17vw, 5.9rem);
  }

  .service--power,
  .service--gas,
  .service--internet,
  .service--solar,
  .service--battery,
  .service--ev {
    grid-column: span 12;
  }

  .service {
    min-height: 220px;
  }

  .triad-section {
    padding: 4.7rem 0;
  }

  .triad-grid {
    grid-template-columns: 1fr;
  }

  .triad-card--supply {
    padding-top: 0;
  }

  .triad-card--supply figure,
  .triad-card--generate figure {
    height: 430px;
  }

  .triad-card--generate .triad-copy {
    width: 93%;
  }

  .triad-card--store {
    grid-column: 1;
    grid-template-columns: 1fr;
  }

  .battery-graphic {
    height: 230px;
    margin-bottom: 1.4rem;
  }

  .motion-map {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 0;
  }

  .motion-stage {
    min-height: 0;
    padding: 1.3rem 1rem 1.7rem 2.2rem;
    border-top: 0;
    border-left: 1px solid var(--copper);
    border-right: 0;
  }

  .motion-stage:last-child {
    border-right: 0;
  }

  .motion-stage::before {
    top: 1.65rem;
    left: -0.48rem;
  }

  .house-atlas {
    min-height: 500px;
    background-size: 32px 32px;
  }

  .system-label {
    padding: 0.5rem 0.6rem;
  }

  .system-label--solar { left: 28%; }
  .system-label--storage { right: 4%; }
  .system-label--ev { left: 10%; }

  .company-section {
    min-height: 700px;
  }

  .company-image {
    inset: 0;
    opacity: 0.28;
  }

  .company-image::after {
    background: rgba(11,47,50,.55);
  }

  .company-marker {
    width: min(100% - 2rem, var(--max));
  }

  .company-type {
    width: min(100% - 2rem, var(--max));
    margin-top: 4rem;
  }

  .company-type > strong {
    font-size: clamp(8rem, 37vw, 12rem);
  }

  .company-type h2 {
    font-size: clamp(4.2rem, 18vw, 6.6rem);
  }

  .company-card {
    right: 1rem;
    bottom: 2rem;
    left: 1rem;
    width: auto;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 3.4rem;
  }

  .footer-address {
    grid-column: 1;
  }

  .footer-spec {
    flex-direction: column;
  }

  .legal-masthead {
    grid-template-columns: 1fr auto;
  }

  .legal-masthead p {
    display: none;
  }

  .legal-masthead nav {
    flex-wrap: wrap;
  }

  .legal-hero {
    padding: 4.2rem 0;
  }

  .legal-hero h1 {
    font-size: clamp(4.4rem, 19vw, 6.8rem);
  }

  .legal-section {
    padding: 4.2rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
