:root {
  --bg: #f4f3f0;
  --surface: #ffffff;
  --ink: #111616;
  --muted: #5a6464;
  --line: #d3d9d7;
  --accent: #0f3433;
  --accent-soft: #e4efeb;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 100% 0, #e2ece8 0%, transparent 30%), var(--bg);
  line-height: 1.6;
}

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  height: 72px;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  transition: background-color 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.site-header.scrolled {
  background: rgba(244, 243, 240, 0.92);
  backdrop-filter: blur(9px);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 26px rgba(12, 25, 24, 0.08);
}

.brand {
  color: #eaf7f4;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.site-nav {
  display: flex;
  gap: 1.25rem;
}

.site-nav a {
  position: relative;
  text-decoration: none;
  color: rgba(236, 245, 243, 0.92);
  font-size: 0.9rem;
  font-weight: 600;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  padding-bottom: 0.12rem;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.08rem;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.24s ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.site-nav a.is-active::after {
  transform: scaleX(1);
}


.site-header.scrolled .brand {
  color: var(--ink);
  text-shadow: none;
}

.site-header.scrolled .site-nav a {
  color: var(--muted);
  text-shadow: none;
}


.menu-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.44);
  background: rgba(0, 0, 0, 0.18);
  color: #eff8f6;
  border-radius: 999px;
  width: 44px;
  height: 44px;
  padding: 0;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  align-items: center;
  justify-content: center;
}

.menu-icon {
  position: relative;
  width: 18px;
  height: 14px;
  display: inline-block;
}

.menu-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.menu-icon span:nth-child(1) {
  top: 0;
}

.menu-icon span:nth-child(2) {
  top: 6px;
}

.menu-icon span:nth-child(3) {
  top: 12px;
}

.site-header.menu-open .menu-icon span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}

.site-header.menu-open .menu-icon span:nth-child(2) {
  opacity: 0;
}

.site-header.menu-open .menu-icon span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

.section {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  background: linear-gradient(135deg, #0c2a2b, #123f46);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 0.45s ease;
}

.hero.video-ready .hero-video {
  opacity: 1;
}

.hero.video-ready .hero-poster {
  opacity: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      100deg,
      rgba(7, 14, 19, 0.72) 10%,
      rgba(7, 14, 19, 0.5) 42%,
      rgba(7, 14, 19, 0.26) 78%
    ),
    radial-gradient(circle at 78% 24%, rgba(22, 198, 176, 0.26), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.section-next {
  position: absolute;
  left: 50%;
  bottom: 1.45rem;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(9, 32, 44, 0.3);
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(2px);
  animation: blink 1.5s ease-in-out infinite;
  z-index: 2;
}

.section-next.on-dark {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.16);
}

.scroll-down-icon {
  width: 12px;
  height: 12px;
  border-right: 2px solid #073048;
  border-bottom: 2px solid #073048;
  transform: rotate(45deg) translate(-1px, -1px);
}

.section-next.on-dark .scroll-down-icon {
  border-right-color: #ffffff;
  border-bottom-color: #ffffff;
}

.hero h1,
h2,
h3 {
  margin: 0;
  font-family: "Source Serif 4", serif;
}

.hero h1 {
  display: inline-block;
  font-size: clamp(2.2rem, 6.4vw, 5.4rem);
  line-height: 1.08;
  padding-bottom: 0.06em;
  max-width: none;
  width: 100%;
  background-image: linear-gradient(90deg, #ffffff 0%, #eef4fa 52%, #b9c9d8 100%);
  background-size: 100% 100%;
  background-position: 0% 50%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero p {
  margin-top: 1.3rem;
  max-width: 70ch;
  color: rgba(232, 243, 241, 0.92);
  font-size: clamp(1rem, 1.2vw, 1.2rem);
}

.feature {
  padding: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.8rem;
  align-items: stretch;
  min-height: 100vh;
  min-height: 100svh;
}

.feature-media {
  position: relative;
  min-height: auto;
  height: 100%;
  display: block;
  align-self: stretch;
  border-radius: 0;
  background: url("assets/section2-battery-yard.jpg") center / cover;
}

#projects .feature-media::after {
  content: none;
}

#projects.section::before {
  left: auto;
  right: 4vw;
  width: 1px;
  height: 56%;
  background: linear-gradient(to bottom, transparent, rgba(18, 34, 46, 0.24), transparent);
}

#projects.section {
  display: block;
  min-height: auto;
  margin: 0;
  padding: 0;
  margin-top: -1px;
  border-top: 0;
  background: radial-gradient(circle at 12% 18%, rgba(33, 148, 127, 0.2), transparent 36%),
    radial-gradient(circle at 88% 78%, rgba(27, 86, 143, 0.16), transparent 34%),
    linear-gradient(135deg, #eef5f2 0%, #e6efec 46%, #edf3f7 100%);
}

#projects.reveal,
#projects.reveal.show {
  opacity: 1;
  transform: none;
}

#projects .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.label {
  margin: 0 0 0.45rem;
  color: #3f4e5b;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: "Manrope", sans-serif;
}

h2 {
  font-size: clamp(1.9rem, 3.7vw, 3.35rem);
  line-height: 1.08;
  max-width: 20ch;
}

.feature-copy p {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 62ch;
}

#projects .feature-grid {
  width: 100%;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  min-height: 100svh;
  gap: 0;
  column-gap: 2.8rem;
  grid-template-columns: minmax(300px, 35%) minmax(0, 65%);
}

#projects .feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(920px, 100%);
  margin-inline: auto;
  padding: clamp(3rem, 8vh, 5.6rem) clamp(2rem, 5vw, 6rem);
}

#projects .label {
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
  padding-left: 0.45rem;
  text-transform: uppercase;
}

#projects .feature-copy h2 {
  display: inline-block;
  font-size: clamp(2.25rem, 4.5vw, 4.2rem);
  max-width: 18ch;
  background-image: linear-gradient(90deg, #12213a 0%, #183153 45%, #1f4f82 100%);
  background-size: 200% 100%;
  background-position: 0% 50%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

#projects .feature-copy p {
  margin-top: 1.35rem;
  font-size: clamp(1.02rem, 1.3vw, 1.26rem);
  line-height: 1.8;
  max-width: 56ch;
}

#projects .feature-copy h2 + p {
  margin-top: 2.9rem;
}

#projects .feature-copy p + p {
  margin-top: 1rem;
}

#projects .feature-copy .copy-box {
  position: relative;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 0.55rem 0.7rem;
  margin-left: -0.7rem;
  margin-right: -0.7rem;
}

#projects .feature-copy .headline-box {
  padding: 0.65rem 0.75rem;
}

.text-band {
  padding: 4rem 0;
}

.platform-scale {
  padding: 4rem 0;
  background: linear-gradient(140deg, #edf5f2, #f7f7f6 70%);
}

#platform .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 4vw;
}

.platform-showcase {
  position: relative;
  margin-bottom: 2rem;
  min-height: auto;
}

.platform-panel {
  width: 100%;
  min-height: auto;
  background: linear-gradient(145deg, #f3f7f5, #e8f0ec 70%);
  color: var(--ink);
  padding: clamp(1.15rem, 2.2vw, 1.9rem) clamp(1.4rem, 2.6vw, 2.2rem);
  border-radius: 0;
  position: relative;
  z-index: 1;
  border: 1px solid var(--line);
}

.platform-panel h2 {
  font-size: clamp(2rem, 4.1vw, 3.5rem);
  max-width: none;
  width: 100%;
  background-image: linear-gradient(90deg, #12213a 0%, #183153 45%, #1f4f82 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.platform-panel p {
  margin-top: 0.85rem;
  max-width: 60ch;
  color: var(--muted);
  font-size: clamp(0.96rem, 1.02vw, 1.06rem);
  line-height: 1.62;
}

.platform-body {
  margin-top: 0.65rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 42%);
  gap: clamp(1.6rem, 3.3vw, 3rem);
  align-items: stretch;
}

.platform-lead {
  margin: 0;
  max-width: 60ch;
  align-self: center;
}

.platform-kickers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.28rem;
  align-self: start;
}

.platform-kickers article {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.66);
  padding: 0.5rem 0.68rem;
}

.platform-kickers p {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5f6f7f;
}

.platform-kickers h3 {
  margin-top: 0.35rem;
  font-size: 0.98rem;
  line-height: 1.2;
}

.execution-pillars {
  position: relative;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.pillar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(230px, 320px) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}

.pillar h3 {
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  line-height: 1.2;
}

.pillar p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.text-band-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.text-band-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.3rem;
}

.text-band-grid h3 {
  font-size: 1.42rem;
  line-height: 1.15;
}

.text-band-grid p {
  margin-top: 0.8rem;
  color: var(--muted);
}

.stats {
  padding: 4rem 0;
}

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

.stat-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.2rem;
}

.stat-grid h2 {
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  color: var(--accent);
}

.stat-grid p {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.93rem;
}

.partners {
  padding: 4.2rem 0;
  background: linear-gradient(140deg, #edf5f2, #f7f7f6 70%);
}

.partners-wrap {
  width: 100%;
  max-width: none;
  min-height: calc(100svh - 10.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.9rem;
}

#partners.section {
  align-items: stretch;
}

#partners .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 1.4rem 4vw 2rem;
}

.partners-intro {
  margin-bottom: 0.45rem;
}

.partners-intro h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.7rem);
  max-width: none;
  width: 100%;
  background-image: linear-gradient(90deg, #12213a 0%, #183153 45%, #1f4f82 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.partners-intro p {
  margin-top: 0.9rem;
  max-width: none;
  width: 100%;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.05vw, 1.08rem);
  line-height: 1.68;
}

.partner-logos {
  position: relative;
  margin-bottom: 0.2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.58rem 0;
  overflow: hidden;
}

.partner-logos::before,
.partner-logos::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  pointer-events: none;
  z-index: 2;
}

.partner-logos::before {
  left: 0;
  background: linear-gradient(to right, #eef5f2 20%, rgba(238, 245, 242, 0));
}

.partner-logos::after {
  right: 0;
  background: linear-gradient(to left, #eef5f2 20%, rgba(238, 245, 242, 0));
}

.partner-logos-track {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  width: max-content;
  animation: logo-marquee 36s linear infinite;
}

.partner-logos:hover .partner-logos-track {
  animation-play-state: paused;
}

.partners.is-live .partner-logos-track {
  animation-duration: 24s;
}

.partner-logos img {
  width: 170px;
  height: 58px;
  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0;
}

.partner-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.partner-grid article:hover {
  transform: translateY(-4px);
  border-color: rgba(29, 73, 116, 0.35);
}

.partner-grid h3 {
  font-size: 1.32rem;
  line-height: 1.2;
  text-align: center;
}

.partner-grid p {
  margin-top: 0.72rem;
  color: var(--muted);
}

.news {
  min-height: auto;
  padding: 4.2rem 0;
}

.news .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 4vw;
}

.news h2 {
  margin-bottom: 1rem;
  max-width: none;
  width: 100%;
  background-image: linear-gradient(90deg, #12213a 0%, #183153 45%, #1f4f82 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.news-list {
  display: grid;
  gap: 0.95rem;
}

.news-list article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}

.news-list time {
  color: #667272;
  font-size: 0.84rem;
}

.news-list h3 {
  margin-top: 0.45rem;
  font-size: 1.24rem;
  line-height: 1.15;
}

.news-list p {
  margin-top: 0.55rem;
  color: var(--muted);
}

.news-excerpt {
  font-size: 0.94rem;
  line-height: 1.6;
  color: #627181;
}

.site-footer {
  background: #0f1f31;
  padding: 1.45rem 0 1.55rem;
}

.footer-grid {
  display: block;
}

.site-footer p {
  margin: 0;
  color: rgba(233, 242, 255, 0.88);
  font-size: 0.9rem;
}

.to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(16, 43, 63, 0.08);
  background: rgba(255, 255, 255, 0.28);
  color: #1a3247;
  border-radius: 999px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  box-shadow: 0 8px 18px rgba(15, 29, 43, 0.08);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, background-color 0.2s ease,
    border-color 0.2s ease;
}

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.to-top:hover {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(16, 43, 63, 0.22);
}

.to-top-icon {
  width: 10px;
  height: 10px;
  border-left: 2px solid #1a3247;
  border-top: 2px solid #1a3247;
  transform: rotate(45deg) translate(1px, 1px);
}

/* CIP-style filler language: oversized section index + subtle vertical rail */
.section::before {
  content: none;
}

.section::after {
  content: none;
  position: absolute;
  right: 3.2vw;
  bottom: 2.4vw;
  font-family: "Source Serif 4", serif;
  font-size: clamp(3.3rem, 9vw, 8.6rem);
  line-height: 1;
  font-weight: 700;
  color: rgba(17, 38, 52, 0.07);
  letter-spacing: 0.02em;
  pointer-events: none;
}

.hero::before,
.hero::after {
  display: none;
}


@keyframes blink {
  0%,
  100% {
    opacity: 0.35;
    transform: translateX(-50%) translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) translateY(3px);
  }
}


.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.show {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .site-header {
    height: 64px;
    padding: 0 4vw;
    align-items: center;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-header.scrolled .menu-toggle {
    color: var(--ink);
    border-color: var(--line);
    background: #fff;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 4vw;
    right: 4vw;
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    border-radius: 12px;
    padding: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(8, 14, 20, 0.82);
    backdrop-filter: blur(7px);
  }

  .site-header.menu-open .site-nav {
    display: flex;
  }

  .site-header.menu-open .site-nav a {
    display: block;
    padding: 0.6rem 0.7rem;
    border-radius: 8px;
  }


  .site-header.scrolled .site-nav {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.94);
  }

  .site-header.scrolled .site-nav a {
    color: var(--ink);
  }


  .hero {
    min-height: 100vh;
    min-height: 100svh;
    padding: 5.8rem 0 3.5rem;
  }

  .section-next {
    bottom: 1rem;
  }

  .section::before,
  .section::after {
    display: none;
  }

  .feature-grid,
  .stat-grid,
  .partner-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .partner-logos {
    padding: 0.6rem 0;
  }

  .partner-logos img {
    width: 150px;
    height: 54px;
  }

  .partners-wrap {
    min-height: auto;
    justify-content: flex-start;
  }

  .text-band-grid {
    grid-template-columns: 1fr;
  }

  .platform-showcase {
    min-height: auto;
    margin-bottom: 1.5rem;
  }

  .platform-panel {
    width: 100%;
    min-height: auto;
    padding: 1.7rem 1.25rem 1.4rem;
  }

  .platform-panel h2 {
    font-size: clamp(2rem, 8vw, 3.1rem);
    max-width: none;
  }

  .platform-panel p {
    max-width: none;
    font-size: 1rem;
    line-height: 1.7;
  }

  .platform-body {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .platform-kickers {
    width: 100%;
  }

  .feature-media {
    min-height: 38svh;
    border-radius: 14px;
  }

  #projects .feature-grid {
    min-height: 100svh;
    gap: 1.2rem;
  }

  #projects .feature-media {
    width: 100%;
    margin: 0;
    border-radius: 0;
    min-height: 42svh;
  }

  #projects .feature-media::after {
    display: none;
  }

  #projects .feature-copy {
    padding: 0.6rem 4vw 3.2rem;
  }

  #projects .feature-copy h2 {
    font-size: clamp(1.95rem, 8vw, 3rem);
  }

  #projects .feature-copy p {
    font-size: 1rem;
    line-height: 1.72;
  }

  .pillar {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .pillar p:last-child { grid-column: 1 / -1; }

}

@media (prefers-reduced-motion: reduce) {
  .partner-logos-track {
    animation: none;
  }
}

@keyframes logo-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (orientation: portrait) and (max-width: 1200px) {
  #projects.section {
    min-height: auto;
  }

  #projects .feature-grid {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 0;
  }

  #projects .feature-media {
    width: 100%;
    margin: 0;
    border-radius: 0;
    min-height: 44svh;
  }

  #projects .feature-copy {
    width: 100%;
    margin: 0;
    padding: 1.2rem 6vw 3.4rem;
  }

  #projects.section::before,
  #projects.section::after,
  #projects .feature-media::after {
    display: none;
  }
}
