/* oneergy.com */

@font-face {
  font-family: 'General Sans';
  src: url('assets/fonts/general-sans-variable.woff2') format('woff2');
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #062029;
  --ink-raised: #0e3441;
  --paper: #f3f5f4;
  --white: #ffffff;
  --signal: #ffc61a;
  --signal-hover: #ffd75c;
  --text: #0a242d;
  --muted: #4a626b;
  --on-dark: #f3f7f7;
  --on-dark-muted: #a8bcc2;
  --line: #d6dedc;
  --line-dark: rgba(255, 255, 255, 0.14);

  --font: 'General Sans', 'Helvetica Neue', Arial, sans-serif;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: clamp(1.125rem, 1.02rem + 0.45vw, 1.3125rem);
  --text-h3: clamp(1.25rem, 1.12rem + 0.5vw, 1.5rem);
  --text-statement: clamp(1.625rem, 0.9rem + 2.7vw, 3.125rem);
  --text-h2: clamp(2rem, 1.1rem + 3.2vw, 3.5rem);
  --text-hero: clamp(2.625rem, 1rem + 5.4vw, 5.5rem);

  --gutter: clamp(1.25rem, 4.5vw, 3.5rem);
  --inset: clamp(0.5rem, 1vw, 0.875rem);
  --band: clamp(4.5rem, 10vw, 9rem);
  --radius-panel: clamp(1.25rem, 2.4vw, 2rem);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  min-height: 100dvh;
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.55;
  color: var(--text);
  background: var(--paper);
}

svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul[role='list'],
ol[role='list'] {
  list-style: none;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p,
li,
dd {
  text-wrap: pretty;
}

a {
  color: inherit;
}

address {
  font-style: normal;
}

::selection {
  background: var(--signal);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}
.panel-dark :focus-visible,
.nav :focus-visible {
  outline-color: var(--signal);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  background: var(--signal);
  color: var(--ink);
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
}
.skip:focus {
  top: 1rem;
}

.wrap {
  width: 100%;
  max-width: 82rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Floating navigation ---------- */

.nav {
  position: fixed;
  top: calc(var(--inset) + 0.75rem);
  left: 50%;
  z-index: 10;
  transform: translateX(-50%);
  width: min(calc(100% - 2 * var(--inset) - 1.5rem), 62rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.4375rem 0.4375rem 0.4375rem 1.5rem;
  color: var(--on-dark);
  background: rgba(6, 32, 41, 0.92);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
}
.wordmark {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  text-decoration: none;
  padding-block: 0.5rem;
}
.nav nav ul {
  display: flex;
  gap: clamp(0.25rem, 1.2vw, 1rem);
}
.nav nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 0.875rem;
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
  color: var(--on-dark-muted);
  text-decoration: none;
  border-radius: 999px;
  transition: color 0.18s ease, background-color 0.18s ease;
}
.nav nav a:hover {
  color: var(--on-dark);
  background: rgba(255, 255, 255, 0.08);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 1.25rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
  background: var(--signal);
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.18s ease;
}
.nav-cta:hover {
  background: var(--signal-hover);
}

/* ---------- Dark panels (hero, contact) ---------- */

.panel-dark {
  margin: var(--inset);
  color: var(--on-dark);
  background: var(--ink);
  border-radius: var(--radius-panel);
}
.panel-dark .lead {
  color: var(--on-dark-muted);
}

.lead {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--muted);
  max-width: 46ch;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: min(calc(100dvh - 2 * var(--inset)), 60rem);
  padding-top: clamp(6.5rem, 12vh, 9rem);
  background:
    radial-gradient(60rem 44rem at 82% 40%, #0f3d4c 0%, rgba(15, 61, 76, 0) 62%),
    var(--ink);
  overflow: hidden;
}
.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: 2rem clamp(2rem, 5vw, 5rem);
  padding-block: clamp(1rem, 3vh, 2.5rem) clamp(2rem, 5vh, 3.5rem);
}
.hero h1 {
  font-size: var(--text-hero);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 13ch;
  animation: rise 0.9s var(--ease-out) both;
}
.hero .lead {
  margin-top: clamp(1.5rem, 3vh, 2.25rem);
  animation: rise 0.9s var(--ease-out) 0.12s both;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: clamp(2rem, 4vh, 2.75rem);
  animation: rise 0.9s var(--ease-out) 0.22s both;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding-inline: 1.875rem;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--ink);
  background: var(--signal);
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 0.18s ease, transform 0.18s var(--ease-out);
}
.button:hover {
  background: var(--signal-hover);
}
.button:active {
  transform: scale(0.98);
}
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
  transition: text-decoration-color 0.18s ease;
}
.text-link:hover {
  text-decoration-color: var(--signal);
}

/* exploded drawing */
.hero-figure {
  display: flex;
  justify-content: flex-end;
}
.drawing {
  width: 100%;
  max-width: 30rem;
  max-height: min(66vh, 40rem);
}
.drawing .f {
  stroke: #d9e6e9;
  stroke-width: 1.25;
  stroke-linejoin: round;
}
.drawing .f-top {
  fill: #164655;
}
.drawing .f-left {
  fill: #0f3644;
}
.drawing .f-right {
  fill: #0a2a35;
}
.drawing .f-top.accent {
  fill: var(--signal);
}
.drawing .f-left.accent {
  fill: #d9a50f;
}
.drawing .f-right.accent {
  fill: #b98b08;
}
.drawing .f.accent {
  stroke: var(--ink);
  stroke-width: 0.9;
}
.drawing .d,
.drawing .d-shape {
  fill: none;
  stroke: #d9e6e9;
  stroke-width: 0.9;
  stroke-linecap: round;
  opacity: 0.55;
}
.drawing .lit {
  fill: var(--signal);
  stroke: var(--ink);
  stroke-width: 0.9;
  stroke-linejoin: round;
}
.drawing .floor {
  fill: #000;
  opacity: 0.22;
  filter: blur(18px);
}
.drawing .guide {
  stroke: var(--on-dark-muted);
  stroke-width: 0.9;
  stroke-dasharray: 3 4;
  opacity: 0.8;
}
.drawing .lead-line {
  stroke: var(--on-dark-muted);
  stroke-width: 0.9;
  opacity: 0.7;
}
.drawing .lead-dot {
  fill: var(--signal);
}
.drawing text {
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 500;
  fill: var(--on-dark);
}

/* one load sequence: the device opens up, then guides and labels appear */
.drawing .ly-module {
  animation: open-module 1.5s var(--ease-out) 0.35s both;
}
.drawing .ly-board {
  animation: open-board 1.5s var(--ease-out) 0.35s both;
}
.drawing .ly-housing {
  animation: open-housing 1.5s var(--ease-out) 0.35s both;
}
.drawing .late {
  animation: appear 0.7s ease-out 1.55s both;
}
@keyframes open-module {
  from {
    transform: translateY(56px);
  }
}
@keyframes open-board {
  from {
    transform: translateY(150px);
  }
}
@keyframes open-housing {
  from {
    transform: translateY(328px);
  }
}
@keyframes appear {
  from {
    opacity: 0;
  }
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
}
.facts div {
  padding: 1.375rem 1.5rem 1.625rem 0;
}
.facts div + div {
  padding-left: 1.5rem;
  border-left: 1px solid var(--line-dark);
}
.facts dt {
  font-size: var(--text-xs);
  color: var(--on-dark-muted);
}
.facts dd {
  margin-top: 0.25rem;
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.35;
}

/* ---------- Sections ---------- */

.band {
  padding-block: var(--band);
}
.band-white {
  background: var(--white);
}

h2 {
  font-size: var(--text-h2);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
h3 {
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 3rem clamp(2rem, 7vw, 7rem);
  align-items: start;
}
.split-head {
  position: sticky;
  top: 7.5rem;
}
.split-head .lead {
  margin-top: 1.75rem;
  max-width: 38ch;
}

.services div {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 0.5rem 2rem;
  padding-block: 1.875rem;
  border-top: 1px solid var(--line);
}
.services div:first-child {
  padding-top: 0.25rem;
  border-top: 0;
}
.services div:last-child {
  padding-bottom: 0;
}
.services dt {
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.services dd {
  color: var(--muted);
  max-width: 44ch;
}

.areas {
  margin-top: clamp(3.5rem, 8vw, 6.5rem);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--white);
  border-radius: var(--radius-panel);
}
.areas h3 {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}
.areas ul {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem clamp(1.25rem, 3vw, 2.5rem);
}
.areas li {
  display: grid;
  gap: 1.125rem;
  align-content: start;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.areas li span {
  max-width: 14ch;
}
.icon {
  width: 3.25rem;
  height: 3.25rem;
  padding: 0.8125rem;
  background: var(--paper);
  border-radius: 0.875rem;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 1.5rem clamp(2rem, 7vw, 7rem);
  align-items: end;
}
.section-head h2 {
  max-width: 16ch;
}

/* development partners: dark panel between services and process */
.partners {
  padding-block: clamp(3.5rem, 8vw, 7rem);
  background: radial-gradient(52rem 34rem at 88% 0%, var(--ink-raised) 0%, var(--ink) 68%);
}
.partner-grid {
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
}
.partner-grid li {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line-dark);
  border-radius: calc(var(--radius-panel) * 0.75);
}
.partner-grid .icon {
  background: rgba(255, 255, 255, 0.07);
  stroke: var(--signal);
}
.partner-grid h3 {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}
.partner-grid p {
  margin-top: 0.625rem;
  max-width: 38ch;
  color: var(--on-dark-muted);
}

/* process: one line from first inquiry to series production */
.chain {
  position: relative;
  margin-top: clamp(3rem, 7vw, 5.5rem);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.chain::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  height: 3px;
  background: var(--signal);
  transform-origin: left center;
}
.chain li {
  position: relative;
  padding: 2rem 1.5rem 0 0;
  border-top: 3px solid var(--line);
}
.chain li::before {
  content: '';
  position: absolute;
  top: -0.5rem;
  left: 0;
  z-index: 2;
  width: 0.8125rem;
  height: 0.8125rem;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 50%;
}
.chain .step {
  display: block;
  font-size: clamp(2rem, 1.4rem + 1.6vw, 2.75rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}
.chain h3 {
  margin-top: 1rem;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}
.chain p {
  margin-top: 0.5rem;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--muted);
}

@supports (animation-timeline: view()) {
  @media (min-width: 62.01rem) and (prefers-reduced-motion: no-preference) {
    .chain::before {
      animation: fill linear both;
      animation-timeline: view();
      animation-range: entry 35% cover 58%;
    }
  }
}
@keyframes fill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* confidentiality note */
.band-note {
  padding-block: 0;
  background: var(--white);
}
.band-note .wrap {
  padding-bottom: var(--band);
}
.note {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 1.5rem clamp(2rem, 5vw, 5rem);
  padding: clamp(2rem, 5.5vw, 5rem);
  background: var(--signal);
  color: var(--ink);
  border-radius: var(--radius-panel);
}
.note h2 {
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  max-width: 14ch;
}
.note p {
  font-size: var(--text-statement);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

/* manufacturers */
.pair {
  margin-top: clamp(3rem, 7vw, 5.5rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem clamp(2rem, 7vw, 7rem);
}
.pair ul {
  margin-top: 1.25rem;
}
.pair li {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding-block: 1.125rem;
  border-top: 1px solid var(--line);
  font-size: 1.125rem;
  line-height: 1.4;
}
.check {
  margin-top: 0.1875rem;
}
.check circle {
  fill: var(--ink);
}
.check path {
  fill: none;
  stroke: var(--signal);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* contact */
.contact {
  padding-block: clamp(4rem, 9vw, 8rem);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 3rem clamp(2rem, 6vw, 6rem);
  align-items: end;
}
.contact .lead {
  margin-top: 1.5rem;
}
.mail {
  display: inline-block;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  font-size: clamp(1.375rem, 0.6rem + 3.3vw, 3.25rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-decoration: underline;
  text-decoration-color: var(--signal);
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.16em;
  transition: color 0.18s ease;
}
.mail:hover {
  color: var(--signal);
}
.contact address {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-dark);
  color: var(--on-dark-muted);
  line-height: 1.6;
}
.contact address strong {
  font-weight: 600;
  color: var(--on-dark);
}

/* footer */
.site-foot {
  padding-block: 1.5rem 2rem;
  font-size: var(--text-sm);
  color: var(--muted);
}
.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}
.site-foot ul {
  display: flex;
  gap: 0.5rem 1.75rem;
}
.site-foot a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 0.3em;
}
.site-foot a:hover {
  color: var(--text);
  text-decoration-color: var(--text);
}

/* ---------- Legal pages ---------- */

.plain .nav-plain {
  position: static;
  transform: none;
  margin: calc(var(--inset) + 0.75rem) auto 0;
}
.legal {
  padding-block: clamp(3.5rem, 8vw, 6rem) clamp(4rem, 8vw, 7rem);
}
.legal .wrap {
  max-width: 50rem;
}
.legal h1 {
  font-size: var(--text-h2);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.legal .sub {
  margin-top: 1rem;
  font-size: var(--text-lg);
  color: var(--muted);
}
.legal section {
  margin-top: 2.75rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.legal h2 {
  margin-top: 2.25rem;
  font-size: var(--text-h3);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.legal section > h2:first-child {
  margin-top: 0;
}
.legal p,
.legal address {
  margin-top: 0.75rem;
  max-width: 68ch;
}
.legal address strong {
  font-weight: 600;
}
.legal a {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

/* ---------- Responsive ---------- */

@media (max-width: 62rem) {
  .hero {
    min-height: 0;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 2.5rem;
  }
  .hero h1 {
    max-width: 16ch;
  }
  .hero-figure {
    justify-content: center;
  }
  .drawing {
    max-width: 24rem;
    max-height: none;
  }
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .facts div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .facts div:nth-child(n + 3) {
    border-top: 1px solid var(--line-dark);
  }
  .split,
  .section-head {
    grid-template-columns: minmax(0, 1fr);
  }
  .split-head {
    position: static;
  }
  .areas ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .chain {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 3rem;
  }
  .chain::before {
    content: none;
  }
  .chain li {
    border-top-color: var(--signal);
  }
  .note,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .note h2 {
    max-width: none;
  }
  .contact address {
    max-width: 22rem;
  }
}

/* four links need room: below this width only wordmark and contact remain */
@media (max-width: 52rem) {
  .nav {
    padding-left: 1.25rem;
  }
  .nav nav {
    display: none;
  }
}

@media (max-width: 48rem) {
  .partner-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .services div {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 1.5rem;
  }
  .pair {
    grid-template-columns: minmax(0, 1fr);
  }
  .pair li {
    font-size: var(--text-base);
  }
  .button {
    width: 100%;
  }

  /* the process line turns vertical */
  .chain {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0;
    margin-left: 0.375rem;
  }
  .chain li {
    display: grid;
    grid-template-columns: 2.25rem minmax(0, 1fr);
    column-gap: 0.75rem;
    padding: 0 0 2.25rem 1.75rem;
    border-top: 0;
    border-left: 3px solid var(--signal);
  }
  .chain li:last-child {
    padding-bottom: 0;
    border-left-color: transparent;
  }
  .chain li::before {
    top: 0.25rem;
    left: -0.5rem;
  }
  .chain .step {
    grid-row: 1 / span 2;
    font-size: 2rem;
  }
  .chain h3 {
    margin-top: 0.25rem;
  }
  .chain p {
    grid-column: 2;
  }
}

@media (max-width: 30rem) {
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }
  .facts div,
  .facts div + div {
    padding: 0.875rem 0;
    border-left: 0;
  }
  .facts div + div {
    border-top: 1px solid var(--line-dark);
  }
  .facts div:last-child {
    padding-bottom: 1.5rem;
  }
  .areas ul {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }
  .areas li {
    grid-template-columns: 3.25rem minmax(0, 1fr);
    align-items: center;
  }
  .areas li span {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
