/* =========================================================
   HybridEL — Elkraft överallt
   ========================================================= */

:root {
  --bg: #05070b;
  --bg-2: #0a0e15;
  --surface: #0f141d;
  --surface-2: #151b27;
  --ink: 255, 255, 255;
  --base: 5, 7, 11;
  --base-2: 10, 14, 21;
  --surface-rgb: 21, 27, 39;
  --line: rgba(var(--ink), 0.08);
  --line-2: rgba(var(--ink), 0.14);
  --text: #f3f5f8;
  --muted: #9aa4b2;
  --dim: #5f6a79;
  --blue: #0072c3;
  --blue-2: #1a8cff;
  --glow: #3fa6ff;
  --volt: #c8f560;
  --radius: 20px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --font-display: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --hero-lead: #c7cfda;
  --hero-filter-from: saturate(0.8) brightness(0.7);
  --hero-filter-to: saturate(1.05) brightness(0.85);
  --map-filter: invert(0.92) hue-rotate(180deg) saturate(0.6) brightness(0.9) contrast(0.95);
  --canvas-blend: screen;
  --shadow-soft: rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}


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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--blue); color: #fff; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Grain overlay for depth */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Typography ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--glow);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0;
}

.display {
  font-size: clamp(48px, 9vw, 136px);
  letter-spacing: -0.05em;
  line-height: 0.92;
}

.h2 { font-size: clamp(36px, 5.5vw, 76px); }
.h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.02em; line-height: 1.15; }

.lead {
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--muted);
  line-height: 1.6;
  max-width: 60ch;
}

.text-gradient {
  background: linear-gradient(100deg, var(--text) 10%, var(--glow) 55%, var(--blue) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

/* ---------- Buttons ---------- */

.btn {
  --bx: 50%;
  --by: 50%;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--ease), border-color 0.3s, background 0.3s, box-shadow 0.4s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(26, 140, 255, 0), 0 10px 30px -10px rgba(0, 114, 195, 0.8);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(160px circle at var(--bx) var(--by), rgba(var(--ink), 0.35), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { box-shadow: 0 0 0 6px rgba(26, 140, 255, 0.15), 0 20px 50px -12px rgba(26, 140, 255, 0.9); }

.btn-ghost {
  border-color: var(--line-2);
  background: rgba(var(--ink), 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: rgba(var(--ink), 0.4); background: rgba(var(--ink), 0.07); }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 22px 0;
  transition: padding 0.5s var(--ease), background 0.5s, border-color 0.5s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding: 12px 0;
  background: rgba(var(--base), 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo img { height: 40px; width: auto; transition: height 0.5s var(--ease); }
.nav.is-scrolled .nav-logo img { height: 34px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(var(--ink), 0.025);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-links a {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s, background 0.25s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text); background: rgba(var(--ink), 0.08); }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 12px 20px; font-size: 14px; }
.nav-phone {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  transition: color 0.25s;
}
.nav-phone:hover { color: var(--text); }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(var(--ink), 0.04);
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 14px;
  right: 14px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.nav-toggle span:first-child { top: 19px; }
.nav-toggle span:last-child { top: 26px; }
.nav-open .nav-toggle span:first-child { top: 22px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(var(--base), 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px var(--gutter) 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.nav-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a.big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 11vw, 64px);
  letter-spacing: -0.04em;
  line-height: 1.15;
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease), color 0.3s;
}
.mobile-menu a.big:hover { color: var(--glow); }
.nav-open .mobile-menu a.big { transform: none; opacity: 1; }
.nav-open .mobile-menu a.big:nth-child(2) { transition-delay: 0.05s; }
.nav-open .mobile-menu a.big:nth-child(3) { transition-delay: 0.1s; }
.nav-open .mobile-menu a.big:nth-child(4) { transition-delay: 0.15s; }
.nav-open .mobile-menu a.big:nth-child(5) { transition-delay: 0.2s; }
.mobile-menu .meta {
  margin-top: 48px;
  display: grid;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
}

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

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 160px 0 56px;
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: -6%;
  z-index: -3;
  background: url("../img/power-room.webp") center 40% / cover no-repeat;
  animation: kenburns 30s ease-out forwards;
  will-change: transform;
}
@keyframes kenburns {
  from { transform: scale(1.08); filter: var(--hero-filter-from); }
  to { transform: scale(1.02); filter: var(--hero-filter-to); }
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(0, 114, 195, 0.25), transparent 60%),
    linear-gradient(180deg, rgba(var(--base), 0.55) 0%, rgba(var(--base), 0.2) 35%, rgba(var(--base), 0.85) 75%, var(--bg) 100%),
    linear-gradient(90deg, rgba(var(--base), 0.85) 0%, rgba(var(--base), 0.1) 70%);
}
.hero canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  mix-blend-mode: var(--canvas-blend);
  opacity: 0.8;
}
.hero-content { position: relative; min-width: 0; }
.hero .eyebrow { margin-bottom: 28px; }
.hero h1 { max-width: 12ch; }
.hero h1 .line { display: block; overflow: hidden; padding: 0.16em 0 0.06em; margin-top: -0.16em; }
.hero h1 .line > span {
  display: inline-block;
  transform: translateY(130%);
  animation: rise 1.2s var(--ease) forwards;
}
.hero h1 .line:nth-child(2) > span { animation-delay: 0.12s; }
@keyframes rise { to { transform: none; } }

.hero-bottom {
  margin-top: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) auto;
  gap: 40px;
  align-items: end;
}
.hero-bottom .lead { color: var(--hero-lead); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 1s var(--ease) forwards;
}
.d1 { animation-delay: 0.35s; }
.d2 { animation-delay: 0.5s; }
.d3 { animation-delay: 0.65s; }
.d4 { animation-delay: 0.8s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.hero-meta {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line-2);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 10px; }
.hero-meta i {
  width: 6px;
  height: 6px;
  background: var(--volt);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--volt);
}

.scroll-hint {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 16px;
}
.scroll-hint::after {
  content: "";
  width: 1px;
  height: 80px;
  background: linear-gradient(var(--glow), transparent);
  animation: drip 2.2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes drip {
  0% { transform: scaleY(0); opacity: 1; }
  70% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ---------- Marquee ---------- */

.marquee {
  position: relative;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 52px);
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(var(--ink), 0.28);
  white-space: nowrap;
}
.marquee-track span:nth-child(odd) { color: var(--text); -webkit-text-stroke: 0; }
.marquee-track span::after {
  content: "";
  width: 14px;
  height: 14px;
  background: var(--blue-2);
  clip-path: polygon(55% 0, 10% 58%, 45% 58%, 35% 100%, 90% 38%, 55% 38%);
}
@keyframes marquee { to { transform: translateX(-50%); } }

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

.section { position: relative; padding: clamp(96px, 14vw, 180px) 0; }
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 88px);
}
.section-head .eyebrow { margin-bottom: 24px; }

/* Intro statement */
.statement {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 60px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  max-width: 22ch;
  margin: 28px 0 0;
}
.statement .w { color: rgba(var(--ink), 0.14); transition: color 0.5s var(--ease); }
.statement .w.on { color: var(--text); }
.statement .w.on.hl { color: var(--glow); }

.about-grid {
  margin-top: clamp(64px, 9vw, 120px);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.about-copy p { color: var(--muted); margin: 0 0 20px; }
.about-copy p strong { color: var(--text); font-weight: 600; }
.about-copy .btn { margin-top: 12px; }

.media-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 1 / 1;
  background: var(--surface);
}
.media-frame img {
  width: 100%;
  height: 118%;
  object-fit: cover;
  object-position: 30% 0%;
  will-change: transform;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(5, 7, 11, 0.55));
  pointer-events: none;
}
.media-tag {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(var(--base), 0.6);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.media-tag i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--volt);
  box-shadow: 0 0 10px var(--volt);
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  margin-top: clamp(64px, 9vw, 120px);
}
.stat {
  padding: 40px 32px 8px 0;
  border-right: 1px solid var(--line);
}
.stat + .stat { padding-left: 32px; }
.stat:last-child { border-right: 0; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 7vw, 104px);
  letter-spacing: -0.05em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.stat-num small {
  font-size: 0.34em;
  letter-spacing: -0.02em;
  color: var(--glow);
}
.stat p { margin: 14px 0 0; color: var(--muted); font-size: 15px; max-width: 30ch; }

/* ---------- Solutions cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  padding: 36px 32px 40px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  transition: transform 0.6s var(--ease), border-color 0.4s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(26, 140, 255, 0.18), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(300px circle at var(--mx) var(--my), rgba(63, 166, 255, 0.8), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.card:hover::before,
.card:hover::after { opacity: 1; }
.card:hover { transform: translateY(-6px); }

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: auto;
  padding-bottom: 48px;
}
.card-num { font-family: var(--font-mono); font-size: 13px; color: var(--dim); }
.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(0, 114, 195, 0.12);
  border: 1px solid rgba(63, 166, 255, 0.25);
  color: var(--glow);
  transition: transform 0.6s var(--ease), background 0.4s;
}
.card:hover .card-icon { transform: rotate(-8deg) scale(1.06); background: rgba(0, 114, 195, 0.25); }
.card-icon svg { width: 30px; height: 30px; }
.card h3 { margin-bottom: 16px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.card-tags span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--muted);
}

/* ---------- Lantbruk feature ---------- */

.farm {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.farm::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, var(--bg-2) 0%, rgba(var(--base-2), 0.75) 30%, rgba(var(--base-2), 0.8) 70%, var(--bg-2) 100%),
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(200, 245, 96, 0.08), transparent 70%);
}
.farm .eyebrow { color: var(--volt); }

.farm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.farm h2 { margin: 24px 0 24px; }
.farm-grid .lead { margin-bottom: 32px; }

.grant {
  position: relative;
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 24px 28px;
  margin-bottom: 32px;
  border-radius: var(--radius);
  background: rgba(200, 245, 96, 0.06);
  border: 1px solid rgba(200, 245, 96, 0.22);
}
.grant-amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 44px;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--volt);
  white-space: nowrap;
}
.grant-amount small { font-size: 0.4em; margin-left: 4px; }
.grant p { margin: 0; font-size: 15px; color: #d7decf; line-height: 1.5; }

.checklist { list-style: none; margin: 0 0 40px; padding: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; color: var(--muted); font-size: 16px; }
.checklist li svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--volt); }
.checklist li strong { color: var(--text); font-weight: 600; }

/* Energy flow diagram */
.flow {
  position: relative;
  border-radius: 28px;
  padding: 28px;
  background: rgba(var(--base), 0.6);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 40px 100px -40px var(--shadow-soft);
}
.flow-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.flow-head .live { display: inline-flex; align-items: center; gap: 8px; color: var(--volt); }
.flow-head .live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--volt);
  animation: pulse 1.6s infinite;
}
.flow svg { width: 100%; height: auto; display: block; }
.flow .wire { fill: none; stroke: rgba(var(--ink), 0.1); stroke-width: 2; }
.flow .current {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 6 14;
  animation: flow 1.2s linear infinite;
}
.flow .current.sun { stroke: #ffd166; }
.flow .current.grid { stroke: var(--glow); }
.flow .current.gen { stroke: #ff8a5c; animation-duration: 2.4s; opacity: 0.6; }
.flow .current.out { stroke: var(--volt); }
@keyframes flow { to { stroke-dashoffset: -40; } }
.flow .node rect { fill: var(--surface); stroke: var(--line-2); }
.flow .node text { fill: var(--text); font-family: var(--font-body); font-size: 13px; font-weight: 600; }
.flow .node text.sub { fill: var(--muted); font-size: 10.5px; font-weight: 400; font-family: var(--font-mono); letter-spacing: 0.06em; }
.flow .hub rect { fill: rgba(0, 114, 195, 0.18); stroke: rgba(63, 166, 255, 0.6); }
.flow .battery-fill { fill: var(--volt); animation: charge 4s ease-in-out infinite alternate; transform-origin: left center; transform-box: fill-box; }
@keyframes charge { from { transform: scaleX(0.55); } to { transform: scaleX(0.92); } }

.flow-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}
.flow-stats div {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(var(--ink), 0.03);
  border: 1px solid var(--line);
}
.flow-stats b {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.03em;
}
.flow-stats span { font-size: 12px; color: var(--muted); }

/* ---------- Services list ---------- */

.services { border-top: 1px solid var(--line); }
.service {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr 1.2fr 56px;
  gap: 32px;
  align-items: start;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.6s var(--ease);
}
.service::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--gutter) * -1);
  z-index: -1;
  background: linear-gradient(90deg, rgba(0, 114, 195, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s;
}
.service:hover::before { opacity: 1; }
.service-num { font-family: var(--font-mono); font-size: 13px; color: var(--dim); padding-top: 10px; }
.service h3 { font-size: clamp(26px, 3vw, 40px); letter-spacing: -0.035em; transition: color 0.3s, transform 0.6s var(--ease); }
.service:hover h3 { color: var(--glow); transform: translateX(8px); }
.service p { margin: 0; color: var(--muted); }
.service-arrow {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  transition: background 0.4s, border-color 0.4s, transform 0.6s var(--ease);
}
.service-arrow svg { width: 20px; height: 20px; transform: rotate(-45deg); transition: transform 0.6s var(--ease); }
.service:hover .service-arrow { background: var(--blue); border-color: var(--blue); }
.service:hover .service-arrow svg { transform: rotate(0); }

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  padding: 0 var(--gutter);
  max-width: 1600px;
  margin: 0 auto;
}
.gallery figure {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 11;
  border: 1px solid var(--line);
}
.gallery figure:nth-child(2) { aspect-ratio: auto; }
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 1.6s var(--ease), filter 0.8s;
  filter: saturate(0.85);
}
.gallery figure:hover img { transform: scale(1.02); filter: saturate(1.1); }
.gallery figcaption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

/* ---------- CTA ---------- */

.cta {
  position: relative;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.cta-glow {
  position: absolute;
  left: 50%;
  top: 55%;
  width: min(1100px, 140vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  z-index: -1;
  background: radial-gradient(circle, rgba(0, 114, 195, 0.45) 0%, rgba(0, 114, 195, 0.12) 35%, transparent 65%);
  filter: blur(20px);
  animation: breathe 8s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.9; }
  50% { transform: translate(-50%, -50%) scale(1.12); opacity: 1; }
}
.cta-rings {
  position: absolute;
  left: 50%;
  top: 55%;
  z-index: -1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.cta-rings i {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(63, 166, 255, 0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cta-rings i:nth-child(1) { width: 420px; height: 420px; }
.cta-rings i:nth-child(2) { width: 680px; height: 680px; border-color: rgba(63, 166, 255, 0.1); }
.cta-rings i:nth-child(3) { width: 960px; height: 960px; border-color: rgba(63, 166, 255, 0.06); }
.cta h2 { font-size: clamp(48px, 9vw, 132px); letter-spacing: -0.055em; line-height: 1.06; margin: 28px auto 28px; max-width: 12ch; }
.cta .lead { margin: 0 auto 44px; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.cta-contacts {
  margin-top: 64px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 48px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
}
.cta-contacts a:hover { color: var(--text); }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 80px 0 36px;
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand img { height: 48px; width: auto; margin-bottom: 24px; }
.footer-brand p { color: var(--muted); font-size: 15px; max-width: 34ch; margin: 0; }
.footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 500;
  margin-bottom: 20px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.footer ul a { color: var(--muted); transition: color 0.25s; }
.footer ul a:hover { color: var(--text); }
.footer ul li { color: var(--muted); }
.footer-bottom {
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--dim);
}
.credit { margin-left: 16px; padding-left: 16px; border-left: 1px solid var(--line); }
.credit a { color: var(--muted); transition: color 0.25s; }
.credit a:hover { color: var(--text); }

.footer-word {
  margin-top: 56px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 16vw, 240px);
  letter-spacing: -0.06em;
  line-height: 0.8;
  text-align: center;
  background: linear-gradient(180deg, rgba(var(--ink), 0.1), rgba(var(--ink), 0));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  white-space: nowrap;
}
.footer-word span {
  background: linear-gradient(180deg, rgba(0, 114, 195, 0.45), rgba(0, 114, 195, 0));
  -webkit-background-clip: text;
  background-clip: text;
}

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

.reveal-img { clip-path: inset(12% 0 12% 0 round var(--radius)); transition: clip-path 1.4s var(--ease); }
.reveal-img.in { clip-path: inset(0 0 0 0 round var(--radius)); }

/* =========================================================
   Contact page
   ========================================================= */

.page-hero {
  position: relative;
  padding: 200px 0 80px;
  overflow: hidden;
  isolation: isolate;
}
.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../img/busbar.webp") center 45% / cover no-repeat;
  opacity: 0.4;
  animation: kenburns 24s ease-out forwards;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 60% at 80% 20%, rgba(0, 114, 195, 0.3), transparent 60%),
    linear-gradient(180deg, rgba(var(--base), 0.6), var(--bg) 92%),
    linear-gradient(90deg, var(--bg) 0%, transparent 80%);
}
.page-hero h1 { font-size: clamp(56px, 11vw, 160px); letter-spacing: -0.055em; line-height: 0.9; margin-top: 28px; }
.page-hero h1 .line { display: block; overflow: hidden; padding: 0.16em 0 0.06em; margin-top: -0.16em; }
.page-hero h1 .line > span { display: inline-block; transform: translateY(130%); animation: rise 1.2s var(--ease) forwards; }
.page-hero h1 .line:nth-child(2) > span { animation-delay: 0.12s; }
.page-hero .lead { margin-top: 32px; }

.contact-wrap { padding: 40px 0 clamp(96px, 12vw, 160px); }
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: stretch;
}

.contact-cards { display: grid; gap: 12px; }
.contact-grid > .map { margin-top: 0; aspect-ratio: auto; height: 100%; min-height: 420px; }
.contact-card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.3s, transform 0.5s var(--ease);
}
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(300px circle at var(--mx) var(--my), rgba(26, 140, 255, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
a.contact-card:hover { border-color: rgba(63, 166, 255, 0.4); transform: translateX(6px); }
a.contact-card:hover::before { opacity: 1; }
.contact-card .ico {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(0, 114, 195, 0.14);
  border: 1px solid rgba(63, 166, 255, 0.25);
  color: var(--glow);
}
.contact-card .ico svg { width: 22px; height: 22px; }
.contact-card small {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 2px;
}
.contact-card span { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.contact-card .go { margin-left: auto; color: var(--dim); transition: color 0.3s, transform 0.5s var(--ease); }
.contact-card .go svg { width: 20px; height: 20px; }
a.contact-card:hover .go { color: var(--glow); transform: translateX(4px); }

.hours {
  margin-top: 12px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px dashed var(--line-2);
  color: var(--muted);
  font-size: 15px;
}
.hours strong { color: var(--text); }

.form-card {
  position: relative;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(var(--surface-rgb), 0.9), rgba(var(--base-2), 0.9));
  border: 1px solid var(--line-2);
  box-shadow: 0 60px 120px -60px rgba(0, 114, 195, 0.5);
  overflow: hidden;
}
.form-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glow), transparent);
}
.form-card h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 8px; }
.form-card > p { color: var(--muted); margin: 0 0 32px; font-size: 15.5px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { position: relative; }
.field.full { grid-column: 1 / -1; }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 26px 18px 10px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: rgba(var(--ink), 0.03);
  outline: none;
  font-size: 16px;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 150px; resize: vertical; }
.field label {
  position: absolute;
  left: 19px;
  top: 18px;
  font-size: 15px;
  color: var(--muted);
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.3s var(--ease), color 0.3s;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--blue-2);
  background: rgba(0, 114, 195, 0.06);
  box-shadow: 0 0 0 4px rgba(26, 140, 255, 0.12);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field select + label {
  transform: translateY(-10px) scale(0.76);
  color: var(--glow);
}
.field select { cursor: pointer; }
.field.select::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.field select option { background: var(--surface); color: var(--text); }

.chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.chips label:hover { color: var(--text); border-color: rgba(var(--ink), 0.35); }
.chips input:checked + label { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 8px 24px -8px rgba(0, 114, 195, 0.9); }
.chips input:focus-visible + label { outline: 2px solid var(--glow); outline-offset: 2px; }

.form-foot {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.form-foot small { color: var(--dim); font-size: 13px; max-width: 36ch; }

.form-success {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  background: linear-gradient(180deg, var(--surface-2), var(--bg));
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.form-card.sent .form-success { opacity: 1; visibility: visible; }
.form-success .bolt {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 114, 195, 0.18);
  border: 1px solid rgba(63, 166, 255, 0.5);
  color: var(--glow);
  margin-bottom: 24px;
  box-shadow: 0 0 60px rgba(26, 140, 255, 0.5);
}
.form-success .bolt svg { width: 36px; height: 36px; }
.form-success h3 { font-size: 32px; margin-bottom: 12px; }
.form-success p { color: var(--muted); max-width: 36ch; margin: 0; }

.map {
  margin-top: 16px;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  background: var(--surface);
}
.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: var(--map-filter);
}
.map-pin {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(var(--base), 0.8);
  border: 1px solid var(--line-2);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}

.audiences {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: clamp(64px, 9vw, 120px);
}
.audience {
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.audience .card-num { display: block; margin-bottom: 40px; }
.audience h3 { font-size: 24px; margin-bottom: 12px; }
.audience p { margin: 0; color: var(--muted); font-size: 15px; }

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

@media (max-width: 1080px) {
  .nav-links, .nav-phone { display: none; }
  .nav-toggle { display: block; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card-top { padding-bottom: 40px; }
  .farm-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .service { grid-template-columns: 56px 1fr 56px; }
  .service p { grid-column: 2 / 3; }
  .service-arrow { grid-row: 1; grid-column: 3; }
  .scroll-hint { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-cta .btn { display: none; }
  .nav-logo img { height: 34px; }
  .hero { padding-top: 130px; padding-bottom: 32px; }
  .hero-bottom { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-bottom > * { min-width: 0; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero-meta { margin-top: 40px; justify-content: flex-start; }
  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 32px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .gallery { grid-template-columns: 1fr; }
  .gallery figure:nth-child(2) { aspect-ratio: 4 / 3; }
  .service { grid-template-columns: 1fr 48px; gap: 16px; padding: 32px 0; }
  .service-num { grid-column: 1 / -1; padding: 0; }
  .service h3 { grid-column: 1; }
  .service p { grid-column: 1 / -1; }
  .service-arrow { grid-row: 2; grid-column: 2; width: 48px; height: 48px; }
  .grant { flex-direction: column; align-items: flex-start; gap: 12px; }
  .flow { padding: 18px; }
  .flow-stats b { font-size: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .audiences { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 150px 0 48px; }
  .cta-rings { display: none; }
  .map, .contact-grid > .map { aspect-ratio: 4 / 3; height: auto; min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .reveal-img { clip-path: none; }
  .statement .w { color: var(--text); }
}
