/* ============================================
   Mālama Energy — Design System
   Dark mode, green accent, premium finish
   ============================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&family=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --bg-primary: #1a1a1d;
  --bg-secondary: #151517;
  --bg-card: #242427;
  --bg-card-hover: #2e2e31;
  --bg-nav: rgba(22, 22, 25, 0.92);
  --bg-elevated: #2a2a2d;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.14);
  --border-hover: rgba(255, 255, 255, 0.24);
  --green: #00D47E;
  --green-dim: rgba(0, 212, 126, 0.20);
  --green-glow: rgba(0, 212, 126, 0.10);
  --green-strong-glow: rgba(0, 212, 126, 0.16);
  --green-border: rgba(0, 212, 126, 0.35);
  --text-primary: #f2f2f2;
  --text-secondary: rgba(255, 255, 255, 0.60);
  --text-tertiary: rgba(255, 255, 255, 0.52);
  --font-display: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --green-warm: #00EB8D;
  --max-width: 1200px;
  --section-pad: clamp(48px, 6vw, 80px);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --font-mono: var(--font-display); /* backwards compat alias */
}

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

button, input, textarea, select {
  font-family: inherit;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #1a1a1d;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

/* --- Global geometric lines background --- */
.geo-lines-global {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.geo-lines-global canvas {
  width: 100%;
  height: 100%;
}

/* --- Noise Overlay --- */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* --- Geometric Overlay --- */
.geo-overlay {
  display: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(3.2rem, 7.6vw, 6.5rem);
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
}

p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.section-header p,
.mission-lead {
  max-width: 680px;
}

.text-green {
  color: var(--green);
}

.mono {
  font-family: var(--font-display);
}

/* --- Utility Classes --- */
.pt-0 { padding-top: 0; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.justify-center { justify-content: center; }

/* --- Semantic Text Classes --- */
.text-body-lg {
  font-size: 1.05rem;
  line-height: 1.75;
}

.text-body-md {
  font-size: 0.95rem;
  line-height: 1.75;
}

.text-callout {
  font-size: 1.25rem;
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.65;
  border-left: 3px solid var(--green);
  padding: 24px;
  padding-left: 24px;
  background: var(--green-glow);
  border-radius: 8px;
}

.callout-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.callout-list li {
  padding-left: 20px;
  position: relative;
}

.callout-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.text-mono-green {
  font-family: var(--font-display);
  color: var(--green);
  font-size: 0.95rem;
}

.text-mono-green-lg {
  font-family: var(--font-display);
  color: var(--green);
  font-size: 1.1rem;
  margin: 0 auto;
}

.text-muted {
  color: var(--text-secondary);
}

.strong-green {
  color: var(--green);
}

/* --- Component Utilities --- */
.card-highlight {
  background: var(--green-glow);
  border-color: var(--green-border);
}

.card-highlight p {
  color: var(--text-primary);
}

.blog-icon-lg {
  margin: 0 auto 20px;
  width: 56px;
  height: 56px;
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: var(--section-pad) 0 0;
}

section:last-of-type,
section:has(+ .newsletter) {
  padding-bottom: var(--section-pad);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(22, 22, 25, 0.95);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition);
  font-weight: 400;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--green);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a.active::after {
  width: 100%;
}

.nav-links a.nav-cta {
  font-size: 0.82rem;
  padding: 7px 16px;
  background: var(--green);
  color: #161618;
  border-radius: 6px;
  font-weight: 600;
  transition: all var(--transition);
  letter-spacing: 0.01em;
}

.nav-links a.nav-cta:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 212, 126, 0.25);
}

.nav-links a.nav-cta::after {
  display: none;
}

/* Mobile Nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 11px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--green);
  color: #161618;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 126, 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-card);
}

.btn-secondary:hover {
  border-color: var(--green-border);
  background: var(--green-glow);
  transform: translateY(-2px);
}

.btn-arrow::after {
  content: '\2192';
  transition: transform var(--transition);
}

.btn-arrow:hover::after {
  transform: translateX(4px);
}

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(0, 212, 126, 0.06), transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--green-border);
  transform: translateY(-4px);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.25),
    0 4px 20px rgba(0, 212, 126, 0.06);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--green-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--green);
}

.card-icon svg {
  width: 20px;
  height: 20px;
}

.card h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.card p {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* --- Hero --- */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: 60px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  pointer-events: none;
  z-index: 1;
}

/* Animated gradient mesh */
.hero-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-mesh canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-mesh-extra {
  display: none;
}

.hero .container {
  width: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1700px;
  text-align: left;
}

.hero-label {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--green);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 2px;
  border-bottom: 1px solid #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero h1 {
  margin-bottom: 24px;
  margin-left: -0.04em;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--green), var(--green-warm));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 36px;
  max-width: 640px;
  line-height: 1.65;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

/* Grid pattern background — global, all pages */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Legacy per-section grid (kept for compatibility) */
.grid-bg {
  display: none;
}

/* --- Section Header --- */
.section-header {
  margin-bottom: 36px;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--green);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.05rem;
}

/* --- Grid Layouts --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: start;
}

/* --- Stats Section --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}

.stat-item {
  text-align: center;
  padding: 28px 16px;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border-card);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  font-weight: 400;
  line-height: 1.4;
}

/* --- Problem Section --- */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.problem-grid > .card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.problem-grid > .card h3 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.problem-grid > .card .text-body-md {
  font-size: 0.85rem;
  line-height: 1.55;
}

.problem-grid > .card .text-mono-green {
  font-size: 0.85rem;
}

.problem-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.problem-list .problem-item {
  flex: 1;
}

.problem-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.problem-item:hover {
  border-color: var(--green-border);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.problem-number {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green);
  background: var(--green-dim);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.problem-item p {
  font-size: 0.93rem;
  color: var(--text-secondary);
}

/* --- Solution Features --- */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feature-bullet {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}

.feature-item strong {
  color: var(--text-primary);
}

.feature-item p {
  font-size: 0.93rem;
}

.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* --- Advantage Grid --- */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 32px;
}

.advantage-item {
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition);
}

.advantage-item:hover {
  border-color: var(--green-border);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    0 2px 12px rgba(0, 212, 126, 0.05);
}

.advantage-check {
  color: var(--green);
  font-size: 1rem;
  flex-shrink: 0;
}

/* --- Team --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.team-card:hover {
  border-color: var(--green-border);
  transform: translateY(-4px);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.25),
    0 4px 20px rgba(0, 212, 126, 0.06);
}

.team-card:hover::before {
  opacity: 1;
}

.team-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-dim);
  border: 1px solid rgba(0, 212, 126, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green);
}

.team-card h3 {
  font-size: 1.02rem;
  margin-bottom: 4px;
}

.team-role {
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: var(--green);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  display: block;
}

.team-card p {
  font-size: 0.83rem;
  color: var(--text-tertiary);
  line-height: 1.55;
  max-width: none;
}

/* --- Mission --- */
.mission-hero {
  min-height: auto;
  padding: 100px 0 56px;
  display: flex;
  align-items: center;
  text-align: left;
  position: relative;
}

.mission-hero .container {
  width: 100%;
}

.mission-content {
  position: relative;
}

.mission-content h1 {
  margin-bottom: 24px;
}

.mission-lead {
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 48px;
}

.mission-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.mission-pillar {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: border-color var(--transition);
}

.mission-pillar:hover {
  border-color: var(--green);
}

.mp-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 8px;
  background: rgba(0, 212, 126, 0.06);
  border: 1px solid rgba(0, 212, 126, 0.12);
}

.mp-svg {
  color: var(--green);
}

/* Bolt draw-in */
.mp-bolt-path {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
}
.mission-pillar:hover .mp-bolt-path {
  animation: mp-draw 0.6s ease forwards;
}

/* Box assemble */
.mp-box-path {
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
}
.mp-box-line1, .mp-box-line2 {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
}
.mission-pillar:hover .mp-box-path {
  animation: mp-draw 0.7s ease forwards;
}
.mission-pillar:hover .mp-box-line1 {
  animation: mp-draw 0.4s ease 0.3s forwards;
}
.mission-pillar:hover .mp-box-line2 {
  animation: mp-draw 0.4s ease 0.5s forwards;
}

/* Trend line draw */
.mp-trend-line {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
}
.mp-trend-arrow {
  stroke-dasharray: 16;
  stroke-dashoffset: 16;
}
.mission-pillar:hover .mp-trend-line {
  animation: mp-draw 0.5s ease forwards;
}
.mission-pillar:hover .mp-trend-arrow {
  animation: mp-draw 0.3s ease 0.4s forwards;
}

/* On-load: draw icons once visible */
.fade-in.visible .mp-bolt-path {
  animation: mp-draw 0.6s ease 0.5s forwards;
}
.fade-in.visible .mp-box-path {
  animation: mp-draw 0.7s ease 0.6s forwards;
}
.fade-in.visible .mp-box-line1 {
  animation: mp-draw 0.4s ease 0.9s forwards;
}
.fade-in.visible .mp-box-line2 {
  animation: mp-draw 0.4s ease 1.1s forwards;
}
.fade-in.visible .mp-trend-line {
  animation: mp-draw 0.5s ease 0.7s forwards;
}
.fade-in.visible .mp-trend-arrow {
  animation: mp-draw 0.3s ease 1.0s forwards;
}

@keyframes mp-draw {
  to { stroke-dashoffset: 0; }
}

.mission-pillar h3 {
  font-family: var(--font-display);
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.mission-pillar p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-tertiary);
  margin: 0;
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 16px;
}

.contact-info p {
  margin-bottom: 24px;
}

.contact-email {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--green-dim);
  border: 1px solid rgba(0, 212, 126, 0.12);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.contact-email:hover {
  background: rgba(0, 212, 126, 0.2);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green-border);
  box-shadow: 0 0 0 3px var(--green-glow);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-tertiary);
}

.form-status {
  margin-top: 12px;
  font-size: 0.9rem;
  font-family: var(--font-display);
}

.form-status.success {
  color: var(--green);
}

.form-status.error {
  color: #ff6b6b;
}

/* --- Newsletter --- */
.newsletter {
  background: var(--bg-secondary);
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--border-card), var(--green-border), var(--border-card), transparent) 1;
}

.newsletter-inner {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.newsletter p {
  margin: 0 auto 20px;
  font-size: 0.9rem;
  text-align: center;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 420px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  outline: none;
  transition: all var(--transition);
}

.newsletter-form input:focus {
  border-color: var(--green-border);
  box-shadow: 0 0 0 3px var(--green-glow);
}

.newsletter-form input::placeholder {
  color: var(--text-tertiary);
}

.newsletter-form button {
  white-space: nowrap;
}

.newsletter-privacy {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-top: 15px !important;
}

/* --- Footer --- */
.footer {
  padding: 40px 0 20px;
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--border-card), var(--green-border), var(--border-card), transparent) 1;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 40px;
  margin-bottom: 28px;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 0.83rem;
  color: var(--text-tertiary);
}

.footer-links {
  display: flex;
  gap: 56px;
}

.footer-col h5 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-bottom: 8px;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--green);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--border-card), var(--green-border), var(--border-card), transparent) 1;
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

.footer-bottom a {
  color: var(--green);
}

/* --- Divider --- */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border-subtle);
}

/* --- Blog --- */
.blog-empty {
  text-align: center;
  padding: 60px 0;
}

.blog-empty p {
  margin: 12px auto 0;
}

/* --- Data Center Scroll Animation --- */
.dc-scene {
  max-width: 680px;
  margin: 64px auto;
  perspective: 1200px;
  overflow: visible;
  padding: 0 80px;
}

.dc-unit {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  transform-style: preserve-3d;
}

.dc-interior {
  position: absolute;
  inset: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-card);
  border-radius: 6px;
  display: flex;
  gap: 6px;
  padding: 12px;
  align-items: stretch;
}

.dc-rack {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg-primary);
  border-radius: 4px;
  padding: 6px;
  border: 1px solid var(--border-subtle);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.dc-scene.dc-active .dc-rack {
  opacity: 1;
  transform: translateY(0);
}

.dc-rack:nth-child(1) { transition-delay: 0.3s; }
.dc-rack:nth-child(2) { transition-delay: 0.4s; }
.dc-rack:nth-child(3) { transition-delay: 0.5s; }
.dc-rack:nth-child(4) { transition-delay: 0.6s; }

.dc-server {
  flex: 1;
  background: var(--bg-card);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  min-height: 18px;
}

.dc-led {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(0, 212, 126, 0);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.dc-scene.dc-active .dc-led {
  background: var(--green);
  box-shadow: 0 0 6px rgba(0, 212, 126, 0.5);
}

.dc-rack:nth-child(1) .dc-led { transition-delay: 0.8s; }
.dc-rack:nth-child(2) .dc-led { transition-delay: 0.9s; }
.dc-rack:nth-child(3) .dc-led { transition-delay: 1.0s; }
.dc-rack:nth-child(4) .dc-led { transition-delay: 1.1s; }

.dc-door {
  position: absolute;
  top: 0;
  width: 40%;
  height: 90%;
  top: 5%;
  background: repeating-linear-gradient(
    180deg,
    var(--bg-card) 0px,
    var(--bg-card) 14px,
    #1e1e22 14px,
    #1e1e22 16px
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  transition: transform 0.96s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

.dc-door-left {
  left: 0;
  transform-origin: left center;
  justify-content: flex-end;
  padding-right: 10px;
  border-radius: 6px 0 0 6px;
}

.dc-door-right {
  right: 0;
  transform-origin: right center;
  justify-content: flex-start;
  padding-left: 10px;
  border-radius: 0 6px 6px 0;
}

.dc-scene.dc-active .dc-door-left {
  transform: perspective(1200px) rotateY(-90deg);
}

.dc-scene.dc-active .dc-door-right {
  transform: perspective(1200px) rotateY(90deg);
}

.dc-handle {
  width: 6px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.dc-info {
  text-align: center;
  margin-top: 16px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease 1s, transform 0.5s ease 1s;
}

.dc-scene.dc-active .dc-info {
  opacity: 1;
  transform: translateY(0);
}

.dc-info-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: var(--green);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.dc-info-spec {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* --- Energy Flow Pipeline --- */
.energy-pipeline {
  overflow: hidden;
}

.pipeline {
  max-width: 900px;
  margin: 48px auto 0;
}

.pipeline-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.pipeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.pipeline-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.pipeline-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.pipeline-line {
  flex: 1;
  height: 2px;
  background: var(--green);
  margin: 0 -1px;
  margin-bottom: 28px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 60px;
}

/* Active state — triggered by JS */
.pipeline.pipeline-active .pipeline-node:nth-child(1) .pipeline-circle {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0s;
}
.pipeline.pipeline-active .pipeline-node:nth-child(1) .pipeline-label {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s;
}

.pipeline.pipeline-active .pipeline-line:nth-child(2) {
  transform: scaleX(1);
  transition-delay: 0.4s;
}

.pipeline.pipeline-active .pipeline-node:nth-child(3) .pipeline-circle {
  opacity: 1;
  transform: scale(1);
  transition-delay: 1.0s;
}
.pipeline.pipeline-active .pipeline-node:nth-child(3) .pipeline-label {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1.15s;
}

.pipeline.pipeline-active .pipeline-line:nth-child(4) {
  transform: scaleX(1);
  transition-delay: 1.4s;
}

.pipeline.pipeline-active .pipeline-node:nth-child(5) .pipeline-circle {
  opacity: 1;
  transform: scale(1);
  transition-delay: 2.0s;
}
.pipeline.pipeline-active .pipeline-node:nth-child(5) .pipeline-label {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 2.15s;
}

.pipeline.pipeline-active .pipeline-line:nth-child(6) {
  transform: scaleX(1);
  transition-delay: 2.4s;
}

.pipeline.pipeline-active .pipeline-node:nth-child(7) .pipeline-circle {
  opacity: 1;
  transform: scale(1);
  transition-delay: 3.0s;
}
.pipeline.pipeline-active .pipeline-node:nth-child(7) .pipeline-label {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 3.15s;
}

/* Final node green glow pulse */
@keyframes pipelineGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 212, 126, 0), 0 0 0 0 rgba(0, 212, 126, 0);
  }
  50% {
    box-shadow: 0 0 20px 4px rgba(0, 212, 126, 0.25), 0 0 40px 8px rgba(0, 212, 126, 0.1);
  }
}

.pipeline.pipeline-active .pipeline-node-final .pipeline-circle {
  animation: pipelineGlow 2s ease-in-out infinite;
  animation-delay: 3.3s;
  border-color: var(--green-border);
}

/* --- Landscape Site Scene --- */
.site-scene {
  max-width: 900px;
  margin: 40px auto 0;
}

.site-scene-card {
  position: relative;
  width: 100%;
  height: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Horizon line */
.ss-horizon {
  position: absolute;
  top: 60%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-card);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-scene.scene-active .ss-horizon {
  transform: scaleX(1);
  transition-delay: 0.2s;
}

/* Ground */
.ss-ground {
  position: absolute;
  top: 60%;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(30, 28, 24, 0.5), var(--bg-card) 80%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.site-scene.scene-active .ss-ground {
  opacity: 1;
  transition-delay: 0.4s;
}

/* Wind turbines */
.ss-turbine {
  position: absolute;
  bottom: 40%;
}

.ss-turbine-1 {
  left: 15%;
}

.ss-turbine-2 {
  left: 28%;
}

.ss-tower {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleY(0);
  transform-origin: bottom;
  width: 3px;
  height: 100px;
  background: linear-gradient(to top, var(--text-tertiary), rgba(255, 255, 255, 0.25));
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-scene.scene-active .ss-turbine-1 .ss-tower {
  transform: translateX(-50%) scaleY(1);
  transition-delay: 0.8s;
}

.site-scene.scene-active .ss-turbine-2 .ss-tower {
  transform: translateX(-50%) scaleY(1);
  transition-delay: 1.0s;
}

.ss-hub {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-tertiary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.site-scene.scene-active .ss-turbine-1 .ss-hub {
  opacity: 1;
  transition-delay: 1.4s;
}

.site-scene.scene-active .ss-turbine-2 .ss-hub {
  opacity: 1;
  transition-delay: 1.5s;
}

.ss-blades {
  position: absolute;
  bottom: 104px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.site-scene.scene-active .ss-turbine-1 .ss-blades {
  opacity: 1;
  transition-delay: 1.5s;
  animation: bladeSpin 4s linear infinite;
  animation-delay: 1.5s;
}

.site-scene.scene-active .ss-turbine-2 .ss-blades {
  opacity: 1;
  transition-delay: 1.5s;
  animation: bladeSpin 5s linear infinite;
  animation-delay: 1.6s;
}

.ss-blade {
  position: absolute;
  width: 2px;
  height: 36px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
  transform-origin: bottom center;
  bottom: 0;
  left: -1px;
  border-radius: 1px;
}

.ss-blade:nth-child(1) {
  transform: rotate(0deg);
}

.ss-blade:nth-child(2) {
  transform: rotate(120deg);
}

.ss-blade:nth-child(3) {
  transform: rotate(240deg);
}

@keyframes bladeSpin {
  from { transform: translateX(-50%) rotate(0deg); }
  to { transform: translateX(-50%) rotate(360deg); }
}

/* Solar panels */
.ss-solar {
  position: absolute;
  top: 62%;
  width: 40px;
  height: 20px;
  background: linear-gradient(135deg, #2a3a4a, #1a2a3a);
  border: 1px solid rgba(100, 140, 180, 0.3);
  border-radius: 2px;
  opacity: 0;
  transform: perspective(200px) rotateX(60deg);
  transform-origin: bottom;
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ss-solar-1 { left: 38%; }
.ss-solar-2 { left: 44%; }
.ss-solar-3 { left: 50%; }

.site-scene.scene-active .ss-solar-1 {
  opacity: 1;
  transform: perspective(200px) rotateX(20deg);
  transition-delay: 1.8s;
}

.site-scene.scene-active .ss-solar-2 {
  opacity: 1;
  transform: perspective(200px) rotateX(20deg);
  transition-delay: 1.95s;
}

.site-scene.scene-active .ss-solar-3 {
  opacity: 1;
  transform: perspective(200px) rotateX(20deg);
  transition-delay: 2.1s;
}

/* Power wires */
.ss-wires {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.ss-wire {
  stroke: var(--green);
  stroke-width: 1.5;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  opacity: 0.35;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.site-scene.scene-active .ss-wire {
  stroke-dashoffset: 0;
  opacity: 0.35;
}

.site-scene.scene-active .ss-wire-1 { transition-delay: 2.8s; }
.site-scene.scene-active .ss-wire-2 { transition-delay: 2.9s; }
.site-scene.scene-active .ss-wire-3 { transition-delay: 3.0s; }
.site-scene.scene-active .ss-wire-4 { transition-delay: 3.1s; }

/* Natural gas genset */
.ss-genset {
  position: absolute;
  left: 62%;
  bottom: 40%;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-scene.scene-active .ss-genset {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 2.3s;
}

.ss-genset-body {
  width: 70px;
  height: 36px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-card);
  border-radius: 3px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding-left: 18px;
}

.ss-genset-exhaust {
  position: absolute;
  top: -14px;
  right: 10px;
  width: 6px;
  height: 14px;
  background: var(--text-tertiary);
  border-radius: 1px 1px 0 0;
}

.ss-genset-exhaust::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 -4px 3px rgba(255, 255, 255, 0.04);
}

.ss-genset-vent {
  width: 8px;
  height: 2px;
  background: var(--text-tertiary);
  border-radius: 1px;
  opacity: 0.5;
}

.ss-genset-base {
  width: 76px;
  height: 6px;
  background: var(--text-tertiary);
  border-radius: 1px;
  margin-left: -3px;
  opacity: 0.4;
}

/* Container data center */
.ss-container {
  position: absolute;
  right: 8%;
  top: calc(60% - 44px);
  width: 80px;
  height: 44px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-card);
  border-radius: 3px;
  opacity: 0;
  transform: translateX(100px);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding-right: 8px;
}

.site-scene.scene-active .ss-container {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 2.6s;
}

.ss-container-led {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(0, 212, 126, 0);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.site-scene.scene-active .ss-container-led {
  background: var(--green);
  box-shadow: 0 0 6px rgba(0, 212, 126, 0.5);
  transition-delay: 3.2s;
}

/* Info label */
.ss-info {
  text-align: center;
  margin-top: 16px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.site-scene.scene-active .ss-info {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 3.5s;
}

.ss-info-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: var(--green);
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* --- Fade In Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* --- Page Transition --- */
.page-hero {
  padding-top: calc(60px + 52px);
  padding-bottom: 28px;
}
.page-hero h1,
.mission-hero h1 {
  font-size: clamp(2.24rem, 5.32vw, 4.55rem);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2)::after {
    display: none;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .advantage-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .problem-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .how-it-works-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

@media (max-width: 900px) {
  .pipeline-label {
    white-space: normal;
    max-width: 80px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(22, 22, 25, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: all;
  }

  .nav-links a {
    font-size: 1.1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .nav-toggle {
    display: flex;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }

  .team-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

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

  .mission-pillars {
    grid-template-columns: 1fr;
  }

  .mission-hero {
    padding: 88px 0 40px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

  .newsletter-form {
    flex-direction: column;
  }

  .footer-links {
    flex-direction: column;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  section {
    padding: 48px 0;
  }

  .dc-scene {
    max-width: 100%;
    padding: 0 20px;
  }

  .site-scene-card {
    height: 240px;
  }

  .site-scene {
    max-width: 100%;
  }

  .ss-tower {
    height: 70px;
  }

  .ss-hub {
    bottom: 70px;
  }

  .ss-blades {
    bottom: 74px;
  }

  .ss-blade {
    height: 26px;
  }

  .ss-genset-body {
    width: 50px;
    height: 26px;
    padding-left: 12px;
  }

  .ss-genset-exhaust {
    height: 10px;
    top: -10px;
  }

  .ss-genset-base {
    width: 56px;
  }

  .ss-container {
    top: calc(60% - 36px);
    width: 60px;
    height: 36px;
  }

  .ss-solar {
    width: 32px;
    height: 16px;
  }

  /* Pipeline — vertical layout on mobile */
  .pipeline-track {
    flex-direction: column;
    align-items: center;
  }

  .pipeline-line {
    width: 2px;
    height: 40px;
    min-width: unset;
    margin: -1px 0;
    margin-bottom: 0;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .pipeline.pipeline-active .pipeline-line:nth-child(2),
  .pipeline.pipeline-active .pipeline-line:nth-child(4),
  .pipeline.pipeline-active .pipeline-line:nth-child(6) {
    transform: scaleY(1);
  }

  .credibility-inner {
    flex-direction: column;
    gap: 20px;
  }

  .credibility-divider {
    width: 40px;
    height: 1px;
  }

  .map-dot {
    r: 1;
  }

  .globe-phase-text {
    font-size: 0.72rem;
  }

  .cost-compare-row {
    flex-direction: column;
    gap: 16px;
  }

  .cost-compare-arrow {
    transform: rotate(90deg);
  }

  .cost-cylinder {
    max-width: 100%;
    width: 100%;
  }

  .energy-sources {
    flex-wrap: wrap;
    gap: 16px;
  }

  .advantage-point {
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-scene-card {
    height: 200px;
  }

  .ss-turbine-2 {
    display: none;
  }

  .ss-tower {
    height: 54px;
  }

  .ss-hub {
    bottom: 54px;
  }

  .ss-blades {
    bottom: 58px;
  }

  .ss-blade {
    height: 20px;
  }

  .ss-genset-body {
    width: 40px;
    height: 22px;
    padding-left: 8px;
    gap: 2px;
  }

  .ss-genset-exhaust {
    height: 8px;
    top: -8px;
    width: 4px;
  }

  .ss-genset-base {
    width: 46px;
    height: 4px;
  }

  .ss-genset-vent {
    width: 6px;
  }

  .ss-container {
    top: calc(60% - 30px);
    width: 50px;
    height: 30px;
  }

  .ss-solar {
    width: 26px;
    height: 14px;
  }
}

/* --- Credibility Bar --- */
.credibility-bar {
  padding: 0;
  border-bottom: 1px solid var(--border-subtle);
}

.credibility-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 32px 0;
}

.credibility-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.credibility-value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: -0.01em;
}

.credibility-label {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  letter-spacing: 0.01em;
}

.credibility-divider {
  width: 1px;
  height: 36px;
  background: var(--border-subtle);
}

/* --- Focus Visible --- */
.btn:focus-visible,
.nav-links a:focus-visible,
.nav-logo:focus-visible,
.contact-email:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 0;
}

/* --- Globe Map Section --- */
.globe-scroll {
  position: relative;
  padding: 0;
}

.globe-viewport {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.globe-wrap {
  --globe-progress: 0;
  position: relative;
  width: 80vw;
  max-width: none;
  margin: 0;
  left: 50%;
  transform: translateX(-50%);
}

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

/* Dot map — neutral gray dots, sweep in left-to-right 0–30% */
.globe-dots {
  opacity: calc(clamp(0.05, var(--globe-progress) / 0.30, 1));
}

.map-dot {
  fill: rgba(255, 255, 255, 0.12);
  r: 1.5;
  opacity: calc(clamp(0, (var(--globe-progress) - var(--dot-i) * 0.25) / 0.08, 1));
}

/* Vignette overlay — hidden */
.globe-vignette {
  display: none;
}

/* Connection arcs — draw 55–85%, thin and subtle */
.globe-arc {
  stroke-dasharray: var(--arc-len);
  stroke-dashoffset: calc(var(--arc-len) * (1 - clamp(0, (var(--globe-progress) - 0.55) / 0.30, 1)));
  opacity: calc(clamp(0, (var(--globe-progress) - 0.53) / 0.05, 1) * 0.4);
  stroke-width: 1;
}

/* Data center nodes */
.globe-node {
  position: absolute;
  left: var(--node-x);
  top: var(--node-y);
  transform: translate(-50%, -50%);
  z-index: 2;
}

.globe-node-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow:
    0 0 6px rgba(0, 212, 126, 0.8),
    0 0 20px rgba(0, 212, 126, 0.4),
    0 0 40px rgba(0, 212, 126, 0.15);
  transform: scale(calc(clamp(0, (var(--globe-progress) - 0.35 - 0.015 * var(--node-i, 0)) / 0.06, 1)));
  opacity: calc(clamp(0, (var(--globe-progress) - 0.35 - 0.015 * var(--node-i, 0)) / 0.06, 1));
}

/* Set per-node stagger index */
.globe-node[data-node="0"] { --node-i: 0; }
.globe-node[data-node="1"] { --node-i: 1; }
.globe-node[data-node="2"] { --node-i: 2; }
.globe-node[data-node="3"] { --node-i: 3; }
.globe-node[data-node="4"] { --node-i: 4; }
.globe-node[data-node="5"] { --node-i: 5; }
.globe-node[data-node="6"] { --node-i: 6; }
.globe-node[data-node="7"] { --node-i: 7; }
.globe-node[data-node="8"] { --node-i: 8; }
.globe-node[data-node="9"] { --node-i: 9; }
.globe-node[data-node="10"] { --node-i: 10; }
.globe-node[data-node="11"] { --node-i: 11; }
.globe-node[data-node="12"] { --node-i: 12; }
.globe-node[data-node="13"] { --node-i: 13; }
.globe-node[data-node="14"] { --node-i: 14; }
.globe-node[data-node="15"] { --node-i: 15; }

/* Pulse rings on nodes — concentric ripples */
.globe-node-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 126, 0.6);
  transform: translate(-50%, -50%);
  opacity: calc(clamp(0, (var(--globe-progress) - 0.85) / 0.10, 1));
  animation: globe-pulse 2.5s ease-out infinite;
  pointer-events: none;
}

/* Second pulse ring (staggered) */
.globe-node-pulse::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 126, 0.4);
  transform: translate(-50%, -50%);
  animation: globe-pulse 2.5s ease-out 1.2s infinite;
}

@keyframes globe-pulse {
  0% { width: 8px; height: 8px; opacity: 0.8; }
  100% { width: 50px; height: 50px; opacity: 0; }
}

/* Globe node tooltips */
.globe-node-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 10px 14px;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  transform: translateX(-50%) translateY(4px);
  z-index: 10;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.globe-node-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--bg-card);
}

.globe-node:hover .globe-node-tooltip,
.globe-node.tooltip-active .globe-node-tooltip {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.globe-node-tooltip strong {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.tooltip-detail {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.tooltip-status {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.tooltip-status-active { color: var(--green); }
.tooltip-status-dev { color: #f5a623; }
.tooltip-status-planned { color: var(--text-tertiary); }

/* Tooltip flip for nodes near edges */
.globe-node[data-node="12"] .globe-node-tooltip,
.globe-node[data-node="6"] .globe-node-tooltip {
  bottom: auto;
  top: calc(100% + 10px);
}

.globe-node[data-node="12"] .globe-node-tooltip::after,
.globe-node[data-node="6"] .globe-node-tooltip::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: var(--bg-card);
}

/* --- Credibility Bar — Network variant --- */
.credibility-bar-network {
  border-bottom: none;
  border-top: 1px solid var(--border-subtle);
}

/* Phase text — appears 85%+ */
.globe-phase-text {
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--green);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: calc(clamp(0, (var(--globe-progress) - 0.85) / 0.10, 1));
  white-space: nowrap;
}

/* --- Cost Comparison Section --- */
.cost-compare {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.cost-compare-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
}

.cost-compare-arrow {
  flex-shrink: 0;
  opacity: 0.7;
}

.cost-cylinder {
  flex: 1;
  max-width: 180px;
  border-radius: var(--radius);
  padding: 28px 16px;
  text-align: center;
  border: 1px solid var(--border-subtle);
}

.cost-cylinder-grid {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.cost-cylinder-stranded {
  background: rgba(0, 212, 126, 0.06);
  border-color: var(--green-border);
}

.cost-cylinder-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}

.cost-cylinder-grid .cost-cylinder-value {
  color: var(--text-secondary);
}

.cost-cylinder-stranded .cost-cylinder-value {
  color: var(--green);
}

.cost-cylinder-value span {
  font-size: 0.85rem;
  font-weight: 400;
  opacity: 0.7;
}

.cost-cylinder-label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Energy source icons row */
.energy-sources {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 16px;
}

.energy-source {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.energy-sources-caption {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-tertiary);
  text-align: center;
  line-height: 1.5;
}

/* Advantage points */
.advantage-points {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.advantage-point {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.advantage-point-num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--green-border);
  border-radius: 6px;
  margin-top: 2px;
}

.advantage-point h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.advantage-point p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .globe-dots {
    opacity: 0.30;
  }

  .map-dot {
    opacity: 1;
  }

  .globe-arc {
    stroke-dashoffset: 0 !important;
    opacity: 1;
  }

  .globe-node-dot {
    transform: scale(1);
    opacity: 1;
  }

  .globe-node-pulse {
    opacity: 1;
    animation: none;
  }

  .globe-phase-text {
    opacity: 1;
  }

  .ss-blades,
  .pipeline-line::after {
    animation: none;
  }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
