:root {
  --black: #1b1b19;
  --graphite: #23231f;
  --graphite-2: #2d2c27;
  --white: #f2eee5;
  --muted: rgba(242, 238, 229, 0.66);
  --line: rgba(242, 238, 229, 0.14);
  --gold: #c8a45f;
  --max: 1180px;
  --header: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--white);
  background: var(--black);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header);
  border-bottom: 1px solid var(--line);
  background: rgba(27, 27, 25, 0.9);
  backdrop-filter: blur(18px);
}

.site-header.scrolled {
  background: rgba(27, 27, 25, 0.98);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(18px, 4vw, 56px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 190px;
  min-width: 170px;
}

.brand-logo {
  width: 100%;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.3vw, 34px);
  color: var(--muted);
  font-size: 13px;
}

.main-nav a {
  position: relative;
  padding: 10px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--gold);
  transition: transform 180ms ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-cta,
.lang-button,
.lang-dropdown button,
.nav-language button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--line);
  color: var(--white);
  background: transparent;
  cursor: pointer;
}

.header-cta {
  padding: 0 17px;
  color: var(--gold);
  border-color: rgba(215, 181, 109, 0.55);
  font-size: 13px;
}

.lang-switcher {
  position: relative;
}

.lang-button {
  min-width: 64px;
  gap: 7px;
  padding: 0 11px;
  color: var(--muted);
}

.flag-mark {
  display: block;
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(242, 238, 229, 0.34);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 150px;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  background: rgba(27, 27, 25, 0.98);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.lang-switcher.open .lang-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.lang-dropdown button {
  width: 100%;
  gap: 8px;
  padding: 0 10px;
  justify-content: flex-start;
  color: var(--muted);
}

.lang-dropdown button.active,
.nav-language button.active {
  color: var(--gold);
  border-color: rgba(215, 181, 109, 0.55);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 40px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: var(--white);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-language {
  display: none;
}

.hero,
.page-hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: center;
  padding: calc(var(--header) + 44px) clamp(18px, 5vw, 70px) 74px;
  overflow: hidden;
  isolation: isolate;
}

.page-hero {
  min-height: 58svh;
}

.hero-media,
.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.96) contrast(1.02) brightness(1);
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(27, 27, 25, 0.9) 0%, rgba(27, 27, 25, 0.68) 48%, rgba(27, 27, 25, 0.18) 100%),
    linear-gradient(0deg, rgba(27, 27, 25, 0.9) 0%, rgba(27, 27, 25, 0.08) 58%, rgba(27, 27, 25, 0.52) 100%);
}

.voltage-rig {
  position: absolute;
  right: clamp(-110px, 2vw, 60px);
  top: 12%;
  z-index: 2;
  width: min(52vw, 620px);
  aspect-ratio: 1;
  pointer-events: none;
  opacity: 0.42;
}

.rig-label {
  position: absolute;
  top: 16%;
  right: 10%;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  transform: rotate(90deg);
  text-transform: uppercase;
}

.arc-map {
  width: 100%;
  height: 100%;
}

.arc {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.arc-a,
.arc-b {
  stroke: rgba(242, 238, 229, 0.34);
  stroke-width: 2;
  animation: traceLine 1.4s 120ms ease forwards;
}

.arc-b {
  stroke: rgba(215, 181, 109, 0.46);
  animation-delay: 260ms;
}

.arc-c {
  fill: rgba(215, 181, 109, 0.03);
  stroke: rgba(215, 181, 109, 0.62);
  stroke-width: 5;
  animation: traceLine 1.3s 420ms ease forwards;
}

.node {
  fill: var(--gold);
}

.node-b,
.node-d {
  fill: var(--white);
  opacity: 0.42;
}

.power-rails {
  position: absolute;
  left: clamp(18px, 5vw, 70px);
  top: calc(var(--header) + 22px);
  bottom: 34px;
  z-index: 2;
  width: 58px;
  display: grid;
  grid-template-columns: repeat(4, 1px);
  justify-content: space-between;
  opacity: 0.16;
}

.power-rails span {
  display: block;
  background: var(--white);
}

.hero-content,
.page-hero-content {
  position: relative;
  z-index: 3;
  width: min(860px, 100%);
}

.hero-content {
  padding-left: clamp(0px, 4vw, 58px);
}

.page-hero-content {
  margin: 0 auto;
  text-align: center;
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

.hero-title,
.page-title,
.section-title {
  margin-bottom: 20px;
  color: var(--white);
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
}

.hero-title {
  max-width: 980px;
  font-size: 104px;
}

.page-title {
  font-size: 68px;
}

.section-title {
  max-width: 900px;
  font-size: 56px;
}

.hero-lede {
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 34px;
  line-height: 1.06;
}

.hero-desc,
.section-lead,
.section-copy p,
.page-subtitle,
.card-text,
.contact-copy p {
  color: var(--muted);
  font-size: 18px;
}

.hero-desc,
.section-lead,
.page-subtitle {
  max-width: 760px;
}

.page-subtitle {
  margin-inline: auto;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--line);
  color: var(--white);
  background: transparent;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #1b1b19;
  border-color: var(--gold);
  background: var(--gold);
}

.btn-secondary {
  color: var(--white);
}

.voltage-stack,
.stats-grid {
  width: min(720px, 100%);
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.voltage-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  min-height: 54px;
  border-bottom: 1px solid var(--line);
}

.voltage-row span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.voltage-row strong {
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat {
  min-height: 92px;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.stat strong {
  display: block;
  color: var(--gold);
  font-size: 25px;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section {
  padding: clamp(82px, 11vw, 150px) clamp(18px, 5vw, 70px);
  background: var(--black);
}

.section-dark {
  background: var(--graphite);
}

.section-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.split-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.74fr);
  gap: clamp(34px, 7vw, 86px);
  align-items: center;
}

.portrait-panel,
.image-panel {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--graphite-2);
}

.portrait-panel img,
.image-panel img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  filter: saturate(0.96) contrast(1.02);
}

.portrait-panel::before,
.image-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 5, 5, 0.68), transparent 54%);
}

.caption-band {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.caption-band strong {
  display: block;
  color: #f2eee5;
  font-size: 24px;
}

.caption-band span,
.caption-band p {
  color: rgba(242, 238, 229, 0.78);
}

.capability-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 40px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.capability-card,
.value-card,
.project-card {
  min-height: 300px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(245, 243, 238, 0.025);
  transition: background 180ms ease, transform 180ms ease;
}

.capability-card:hover,
.project-card:hover {
  transform: translateY(-3px);
  background: rgba(215, 181, 109, 0.07);
}

.card-index {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.card-index::after {
  content: "";
  width: 54px;
  height: 1px;
  background: linear-gradient(90deg, rgba(200, 164, 95, 0.86), transparent);
}

.capability-card::before,
.project-card::before,
.value-card::before {
  content: "";
  display: block;
  width: 72px;
  height: 2px;
  margin-bottom: 24px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0.72;
}

.capability-card h3,
.project-card h3,
.value-card h3 {
  margin-bottom: 12px;
  color: var(--white);
  font-size: 25px;
  line-height: 1.08;
}

.fleet-band {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: end;
  padding: clamp(88px, 12vw, 150px) clamp(18px, 5vw, 70px);
  isolation: isolate;
}

.fleet-band img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.96) contrast(1.02) brightness(1);
}

.fleet-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(27, 27, 25, 0.9) 0%, rgba(27, 27, 25, 0.46) 46%, rgba(27, 27, 25, 0.1) 100%),
    linear-gradient(0deg, rgba(27, 27, 25, 0.88) 0%, rgba(27, 27, 25, 0.08) 58%);
}

.fleet-content {
  position: relative;
  z-index: 2;
  width: min(690px, 100%);
}

.energy-section {
  overflow: hidden;
}

.energy-panel {
  position: relative;
  min-height: 430px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(242, 238, 229, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(242, 238, 229, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(200, 164, 95, 0.11), transparent 52%),
    rgba(245, 243, 238, 0.025);
  background-size: 54px 54px, 54px 54px, 100% 100%, 100% 100%;
  overflow: hidden;
}

.energy-panel::before,
.energy-panel::after {
  content: "";
  position: absolute;
  inset: 56px;
  border: 1px solid rgba(200, 164, 95, 0.34);
}

.energy-panel::after {
  inset: 118px;
  border-color: rgba(242, 238, 229, 0.18);
  transform: rotate(45deg);
}

.energy-line {
  position: absolute;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 164, 95, 0.8), transparent);
  transform-origin: center;
  animation: currentTrace 3.8s ease-in-out infinite;
}

.line-a {
  top: 30%;
}

.line-b {
  top: 54%;
  transform: rotate(-15deg);
  animation-delay: 500ms;
}

.line-c {
  top: 72%;
  transform: rotate(12deg);
  animation-delay: 950ms;
}

.energy-bolt {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 78px;
  height: 140px;
  background: var(--gold);
  clip-path: polygon(58% 0, 100% 0, 67% 41%, 96% 41%, 20% 100%, 42% 54%, 5% 54%);
  filter: drop-shadow(0 0 28px rgba(200, 164, 95, 0.28));
  opacity: 0.72;
  transform: translate(-50%, -50%);
  animation: boltPulse 2.6s ease-in-out infinite;
}

.motto-section {
  padding: clamp(70px, 10vw, 118px) clamp(18px, 5vw, 70px);
  color: var(--black);
  background: var(--white);
}

.motto-wrap {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 0.5fr) minmax(0, 1fr);
  gap: clamp(30px, 8vw, 100px);
  align-items: center;
}

.motto-wrap img {
  width: min(360px, 100%);
}

.motto-wrap p {
  margin-bottom: 10px;
  font-size: 50px;
  line-height: 0.98;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  background: rgba(245, 243, 238, 0.025);
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-label,
.contact-detail strong {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.form-input,
.form-textarea {
  width: 100%;
  border: 1px solid var(--line);
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  outline: 0;
  padding: 14px 15px;
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
}

.form-input:focus,
.form-textarea:focus {
  border-color: rgba(215, 181, 109, 0.72);
}

.notice {
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.notice.success,
.notice.error {
  border-color: rgba(215, 181, 109, 0.55);
  color: var(--white);
}

.contact-detail {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #151515;
  color: #f2eee5;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1fr;
  gap: 32px;
  padding: 48px clamp(18px, 5vw, 70px);
}

.footer-brand img {
  width: 190px;
  margin-bottom: 18px;
}

.footer-brand span,
.footer-contact span {
  color: var(--muted);
}

.footer-links,
.footer-contact {
  display: grid;
  align-content: start;
  gap: 12px;
}

.footer-links a,
.footer-contact a,
.footer-bottom a {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(18px, 5vw, 70px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-bottom p {
  margin: 0;
}

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes traceLine {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes boltPulse {
  0%,
  100% {
    opacity: 0.62;
  }

  50% {
    opacity: 1;
  }
}

@keyframes currentTrace {
  0%,
  100% {
    opacity: 0.18;
    transform: translateX(-22px);
  }

  50% {
    opacity: 0.85;
    transform: translateX(22px);
  }
}

@media (max-width: 1080px) {
  .hero-title {
    font-size: 74px;
  }

  .section-title,
  .page-title {
    font-size: 46px;
  }

  .capability-grid,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .voltage-rig {
    right: -130px;
    width: 560px;
  }
}

@media (max-width: 880px) {
  .nav-toggle {
    display: block;
    order: 3;
  }

  .header-tools {
    margin-left: auto;
  }

  .header-cta {
    display: none;
  }

  .main-nav {
    position: fixed;
    inset: var(--header) 0 auto;
    display: grid;
    align-content: start;
    gap: 0;
    min-height: calc(100svh - var(--header));
    padding: 26px 18px;
    background: rgba(27, 27, 25, 0.98);
    border-top: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform 220ms ease;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav a {
    padding: 18px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 18px;
  }

  .nav-language {
    display: flex;
    gap: 8px;
    margin-top: 24px;
  }

.nav-language button {
  gap: 7px;
  min-height: 42px;
  padding: 0 12px;
}

  .split-grid,
  .contact-grid,
  .motto-wrap,
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --header: 70px;
  }

  .header-inner {
    padding-inline: 14px;
  }

  .brand {
    width: 150px;
    min-width: 150px;
  }

  .lang-switcher {
    display: none;
  }

  .hero,
  .page-hero {
    min-height: 92svh;
    padding-inline: 16px;
  }

  .page-hero {
    min-height: 54svh;
  }

  .hero-title {
    font-size: 47px;
  }

  .hero-lede {
    font-size: 24px;
  }

  .section-title,
  .page-title {
    font-size: 35px;
  }

  .hero-desc,
  .section-lead,
  .section-copy p,
  .page-subtitle,
  .card-text,
  .contact-copy p {
    font-size: 16px;
  }

  .btn,
  .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
  }

  .voltage-rig {
    right: -210px;
    top: 13%;
    width: 500px;
    opacity: 0.24;
  }

  .power-rails {
    display: none;
  }

  .hero-content {
    padding-left: 0;
  }

  .voltage-row {
    grid-template-columns: 42px 1fr;
  }

  .stats-grid,
  .capability-grid,
  .project-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .capability-card,
  .project-card {
    min-height: 250px;
  }

  .fleet-band {
    min-height: 620px;
  }

  .portrait-panel,
  .portrait-panel img,
  .image-panel,
  .image-panel img {
    min-height: 470px;
  }

  .motto-wrap p {
    font-size: 32px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

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