/* ============================================================
   PNSmart — Pacific Nature Smart
   Design system + all page styles. Dark, cinematic, coastal.
   ============================================================ */

:root {
  --navy: #081A11;
  --pacific: #0F2C1D;
  --teal: #2E7D4F;
  --forest-teal: #4E9B63;
  --aqua: #9ECFA4;
  --mist: #DFEDDF;
  --cloud: #F6FAF5;
  --cyan: #A7E86D;
  --forest: #2C6B4F;
  --gold: #D9A441;

  --bg: var(--navy);
  --surface: #0C2416;
  --surface-2: #113020;
  --line: rgba(158, 207, 164, 0.16);
  --text: var(--cloud);
  --text-dim: #ADC9B2;
  --text-faint: #84A38B;

  --font-head: "Sora", "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", "Manrope", system-ui, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --container: 1180px;
  --nav-h: 76px;

  --glow-cyan: 0 0 18px rgba(167, 232, 109, 0.45);
  --shadow-card: 0 18px 50px rgba(3, 12, 8, 0.55);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--cloud);
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }

p { max-width: 62ch; }

a { color: var(--aqua); text-decoration: none; }
a:hover { color: var(--cyan); }

::selection { background: rgba(167, 232, 109, 0.3); color: var(--cloud); }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(var(--container), calc(100% - 3rem));
  margin-inline: auto;
}

.kicker {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--aqua);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.kicker::before {
  content: "";
  width: 26px; height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.lead { font-size: 1.18rem; color: var(--text-dim); }

.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head h2 { margin: 0.9rem 0 1rem; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 300;
  background: var(--cyan);
  color: var(--navy);
  font-weight: 600;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 1rem; color: var(--navy); }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px; width: 100%;
  z-index: 250;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--teal), var(--cyan), var(--gold));
  pointer-events: none;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease),
              backdrop-filter 0.35s var(--ease);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--nav-h);
}
.site-header.scrolled {
  background: rgba(8, 26, 17, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 12px 40px rgba(3, 12, 8, 0.4);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--cloud);
}
.brand:hover { color: var(--cloud); }
.brand img, .brand svg { height: 58px; width: auto; }
.site-footer .brand img { height: 50px; }
.brand .brand-name {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand .brand-sub {
  display: block;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--aqua);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
}
.nav-links a {
  color: var(--mist);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.nav-actions { display: flex; align-items: center; gap: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s, color 0.25s, border-color 0.25s;
}
.btn-primary {
  background: linear-gradient(120deg, var(--teal), var(--forest-teal));
  color: var(--cloud);
  box-shadow: 0 8px 26px rgba(46, 125, 79, 0.45);
}
.btn-primary:hover {
  transform: translateY(-2px);
  color: var(--cloud);
  box-shadow: 0 12px 34px rgba(46, 125, 79, 0.6), var(--glow-cyan);
}
.btn-ghost {
  background: transparent;
  color: var(--mist);
  border-color: rgba(158, 207, 164, 0.4);
}
.btn-ghost:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  transform: translateY(-2px);
}
.btn-gold {
  background: linear-gradient(120deg, #E4B75B, var(--gold));
  color: #241A05;
}
.btn-gold:hover { transform: translateY(-2px); color: #241A05; box-shadow: 0 10px 30px rgba(217, 164, 65, 0.45); }
.btn-sm { padding: 0.55rem 1.15rem; font-size: 0.85rem; }

/* ---------- Menu toggle + overlay ---------- */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: none;
  border: 1px solid rgba(158, 207, 164, 0.35);
  border-radius: 999px;
  color: var(--mist);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1.05rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.menu-toggle:hover { border-color: var(--cyan); color: var(--cyan); }
.menu-toggle .bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}
.menu-toggle .bars span {
  width: 18px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.menu-toggle[aria-expanded="true"] .bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(8, 26, 17, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.menu-overlay.open { opacity: 1; visibility: visible; }
.menu-overlay nav { text-align: center; }
.menu-overlay ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem 3.4rem;
}
.menu-overlay a {
  display: inline-block;
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 3.2vw, 1.9rem);
  font-weight: 600;
  color: var(--mist);
  padding: 0.45rem 0.2rem;
  transform: translateY(14px);
  opacity: 0;
  transition: color 0.2s, transform 0.5s var(--ease), opacity 0.5s var(--ease);
}
.menu-overlay.open a { transform: translateY(0); opacity: 1; }
.menu-overlay a:hover, .menu-overlay a[aria-current="page"] { color: var(--cyan); }
.menu-overlay .menu-cta { margin-top: 2.2rem; }
.menu-overlay .menu-meta {
  margin-top: 2.4rem;
  color: var(--text-faint);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

/* ---------- Hero (homepage) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero-art {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-art svg {
  width: 100%;
  height: 100%;
}
.hero-content {
  width: min(var(--container), calc(100% - 3rem));
  margin-inline: auto;
  padding: 9rem 0 clamp(4rem, 10vh, 7rem);
}
.hero-content .kicker { color: var(--cyan); }
.hero-content h1 { margin: 1.1rem 0 0.4rem; }
.hero-tag {
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-weight: 500;
  color: var(--aqua);
  margin-bottom: 1.2rem;
}
.hero-content .lead { max-width: 56ch; }
.hero-support {
  margin-top: 1rem;
  color: var(--text-faint);
  font-size: 0.98rem;
  max-width: 60ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.1rem; }

.hero-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2.6rem;
}
.hero-labels li {
  list-style: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--mist);
  padding: 0.42rem 0.95rem;
  border: 1px solid rgba(158, 207, 164, 0.28);
  border-radius: 999px;
  background: rgba(12, 36, 22, 0.55);
  backdrop-filter: blur(6px);
  animation: floatChip 7s ease-in-out infinite;
}
.hero-labels li:nth-child(2n) { animation-delay: -2.2s; }
.hero-labels li:nth-child(3n) { animation-delay: -4.4s; }
@keyframes floatChip {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.scroll-hint {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-faint);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.scroll-hint::after {
  content: "";
  width: 1px; height: 42px;
  background: linear-gradient(180deg, var(--cyan), transparent);
  animation: hintDrop 2.2s ease-in-out infinite;
}
@keyframes hintDrop {
  0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
  70% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ---------- Story + circuit trace ---------- */
.story {
  position: relative;
}
.trace-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}
.trace-path {
  fill: none;
  stroke: rgba(158, 207, 164, 0.14);
  stroke-width: 2;
}
.trace-path-lit {
  fill: none;
  stroke: url(#traceGrad);
  stroke-width: 2.4;
  filter: drop-shadow(0 0 6px rgba(167, 232, 109, 0.8));
}
.trace-pulse {
  fill: var(--cyan);
  filter: drop-shadow(0 0 10px rgba(167, 232, 109, 1));
}

.scene {
  position: relative;
  z-index: 2;
  padding: clamp(4.5rem, 10vh, 8rem) 0;
}
.scene-inner {
  width: min(var(--container), calc(100% - 3rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2.4rem, 5vw, 5rem);
  align-items: center;
}
.scene.alt .scene-inner { direction: rtl; }
.scene.alt .scene-inner > * { direction: ltr; }

.scene-node {
  position: absolute;
  width: 14px; height: 14px;
  margin-top: 6px;
  margin-left: -34px;
  border-radius: 50%;
  border: 2px solid rgba(158, 207, 164, 0.4);
  background: var(--navy);
  transition: border-color 0.5s, box-shadow 0.5s, background 0.5s;
}
.scene.active .scene-node {
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(167, 232, 109, 0.9);
}

.scene-copy > * { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.scene.active .scene-copy > * { opacity: 1; transform: none; }
.scene.active .scene-copy > *:nth-child(2) { transition-delay: 0.08s; }
.scene.active .scene-copy > *:nth-child(3) { transition-delay: 0.16s; }
.scene.active .scene-copy > *:nth-child(4) { transition-delay: 0.24s; }
.scene.active .scene-copy > *:nth-child(5) { transition-delay: 0.32s; }
.scene.active .scene-copy > *:nth-child(6) { transition-delay: 0.4s; }

.scene-copy h2 { margin: 0.9rem 0 1rem; }
.scene-copy .lead { margin-bottom: 0.6rem; }
.scene-copy p + p { margin-top: 0.8rem; }

.scene-visual {
  position: relative;
  opacity: 0.35;
  filter: saturate(0.55);
  transform: translateY(20px) scale(0.98);
  transition: opacity 0.8s var(--ease), filter 0.8s var(--ease), transform 0.8s var(--ease);
}
.scene.active .scene-visual {
  opacity: 1;
  filter: saturate(1);
  transform: none;
}
.scene-visual svg { width: 100%; height: auto; }

/* flash when a scene powers on */
.scene-visual::after {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 232, 109, 0.35), transparent 65%);
  opacity: 0;
  pointer-events: none;
}
.scene.active .scene-visual::after { animation: powerFlash 1s var(--ease) 1; }
@keyframes powerFlash {
  0% { opacity: 0; }
  25% { opacity: 1; }
  100% { opacity: 0; }
}

/* ---------- Data panels / stat chips ---------- */
.data-panel {
  background: rgba(12, 36, 22, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-card);
}
.data-panel h4 {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--aqua);
  margin-bottom: 0.75rem;
}
.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 0.7rem;
}
.stat {
  background: rgba(17, 48, 32, 0.6);
  border: 1px solid rgba(158, 207, 164, 0.12);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
}
.stat .stat-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.stat .stat-value {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--cloud);
}
.stat .stat-value .unit { font-size: 0.72rem; color: var(--aqua); margin-left: 2px; }
.stat.good .stat-value { color: var(--cyan); }
.stat.warn .stat-value { color: var(--gold); }

.status-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  padding: 0.32rem 0;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.status-line.on { opacity: 1; transform: none; }
.status-line::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(167, 232, 109, 0.8);
  flex: none;
}
.status-line.alert::before { background: #FF7B6B; box-shadow: 0 0 8px rgba(255, 123, 107, 0.8); }
.status-line.gold::before { background: var(--gold); box-shadow: 0 0 8px rgba(217, 164, 65, 0.8); }

/* ---------- Hotspots / chips ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.1rem; }
.chip {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--mist);
  background: rgba(17, 48, 32, 0.7);
  border: 1px solid rgba(158, 207, 164, 0.25);
  border-radius: 999px;
  padding: 0.42rem 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
}
.chip:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-1px); }
.chip[aria-pressed="true"], .chip.active {
  background: linear-gradient(120deg, rgba(46, 125, 79, 0.85), rgba(78, 155, 99, 0.85));
  border-color: var(--aqua);
  color: var(--cloud);
}
.chip-static { cursor: default; }
.chip-static:hover { transform: none; }

.flow-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.2rem;
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: var(--mist);
}
.flow-steps .arrow { color: var(--cyan); }

/* ---------- Sim badges ---------- */
.sim-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 10px;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(255, 123, 107, 0.5);
  color: #FFB4A8;
  background: rgba(90, 24, 16, 0.3);
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.sim-badge.ok {
  border-color: rgba(167, 232, 109, 0.5);
  color: var(--cyan);
  background: rgba(46, 125, 79, 0.25);
}
.sim-badge.show { opacity: 1; transform: none; }

/* ---------- SVG scene helpers ---------- */
.svg-glow { filter: drop-shadow(0 0 8px rgba(167, 232, 109, 0.75)); }
.spin { transform-origin: center; transform-box: fill-box; animation: spin 2.6s linear infinite paused; }
.scene.active .spin { animation-play-state: running; }
@keyframes spin { to { transform: rotate(360deg); } }

.dash-flow { stroke-dasharray: 6 8; animation: dashFlow 1.4s linear infinite paused; }
.scene.active .dash-flow { animation-play-state: running; }
@keyframes dashFlow { to { stroke-dashoffset: -28; } }

.drift { animation: drift 9s ease-in-out infinite; }
.drift.slow { animation-duration: 14s; }
@keyframes drift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(26px); }
}

.blink { animation: blink 2.4s ease-in-out infinite paused; }
.scene.active .blink { animation-play-state: running; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.4rem;
}
.card {
  background: linear-gradient(160deg, rgba(17, 48, 32, 0.85), rgba(12, 36, 22, 0.9));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.7rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(158, 207, 164, 0.45);
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(167, 232, 109, 0.12), 0 0 34px rgba(46, 125, 79, 0.35);
}
.card h3 { margin-bottom: 0.7rem; }
.card p { color: var(--text-dim); font-size: 0.97rem; }
.card ul {
  margin-top: 0.9rem;
  padding-left: 0;
  list-style: none;
  color: var(--text-dim);
  font-size: 0.94rem;
  display: grid;
  gap: 0.35rem;
}
.card ul li {
  padding-left: 1.3rem;
  position: relative;
}
.card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: linear-gradient(120deg, var(--cyan), var(--forest-teal));
}
.card .card-icon {
  width: 48px; height: 48px;
  margin-bottom: 1.1rem;
  color: var(--cyan);
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.1rem;
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--aqua);
}
.card-link::after { content: "→"; transition: transform 0.25s var(--ease); }
.card:hover .card-link::after { transform: translateX(4px); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

/* ---------- Why list ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.9rem;
}
.why-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: rgba(12, 36, 22, 0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  color: var(--mist);
  font-size: 0.97rem;
}
.why-item svg { width: 22px; height: 22px; flex: none; color: var(--cyan); margin-top: 2px; }

/* ---------- Process ---------- */
.process-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}
.process-track::before {
  content: "";
  position: absolute;
  top: 26px; left: 6%; right: 6%;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--cyan), var(--gold));
  box-shadow: 0 0 12px rgba(167, 232, 109, 0.5);
}
.process-step { text-align: center; padding: 0 0.4rem; }
.process-step .step-dot {
  position: relative;
  z-index: 1;
  width: 52px; height: 52px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--aqua);
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--cyan);
  box-shadow: 0 0 18px rgba(46, 125, 79, 0.55);
}
.process-step h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.process-step p { font-size: 0.88rem; color: var(--text-faint); margin-inline: auto; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 380px at 80% 120%, rgba(46, 125, 79, 0.5), transparent),
    radial-gradient(700px 320px at 10% -30%, rgba(217, 164, 65, 0.16), transparent),
    linear-gradient(160deg, var(--pacific), var(--navy));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.cta-band .container { max-width: 780px; }
.cta-band h2 { margin-bottom: 1rem; }
.cta-band p { margin-inline: auto; color: var(--text-dim); }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--navy), #06150D);
  padding: 4.5rem 0 2rem;
  font-size: 0.93rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 2.4rem;
  margin-bottom: 3rem;
}
.footer-brand p { color: var(--text-faint); margin-top: 1rem; font-size: 0.9rem; }
.footer-brand .brand { margin-bottom: 0.4rem; }
.footer-grid h4 {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--aqua);
  margin-bottom: 1rem;
}
.footer-grid ul { list-style: none; display: grid; gap: 0.45rem; }
.footer-grid ul a { color: var(--text-dim); }
.footer-grid ul a:hover { color: var(--cyan); }

.newsletter { display: flex; gap: 0.5rem; margin-top: 1.2rem; max-width: 340px; }
.newsletter input {
  flex: 1;
  min-width: 0;
  background: rgba(17, 48, 32, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--cloud);
  padding: 0.6rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.newsletter input::placeholder { color: var(--text-faint); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 0.83rem;
}
.footer-tagline { color: var(--aqua); font-family: var(--font-head); font-weight: 600; }
.social-links { display: flex; gap: 0.9rem; }
.social-links a { color: var(--text-dim); display: inline-flex; }
.social-links a:hover { color: var(--cyan); }
.social-links svg { width: 20px; height: 20px; }

/* ---------- Interior page hero ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(4rem, 9vw, 7rem)) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(1000px 420px at 85% -10%, rgba(46, 125, 79, 0.4), transparent),
    radial-gradient(700px 300px at 0% 110%, rgba(44, 107, 79, 0.28), transparent),
    linear-gradient(180deg, #0B2318, var(--navy));
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167, 232, 109, 0.5), transparent);
}
.page-hero h1 { margin: 1rem 0; max-width: 18ch; }
.page-hero .lead { max-width: 58ch; }

/* ---------- Tabs ---------- */
.tabs { margin-top: 2rem; }
.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
  margin-bottom: 2.2rem;
}
.tab-btn {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(17, 48, 32, 0.5);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.tab-btn:hover { color: var(--cyan); }
.tab-btn[aria-selected="true"] {
  color: var(--cloud);
  background: linear-gradient(120deg, rgba(46, 125, 79, 0.9), rgba(78, 155, 99, 0.9));
  border-color: var(--aqua);
}
.tab-panel[hidden] { display: none; }
.tab-panel h2 { margin-bottom: 0.6rem; }
.tab-panel .lead { margin-bottom: 1.6rem; }

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}
.pill-list li {
  font-size: 0.88rem;
  color: var(--mist);
  background: rgba(17, 48, 32, 0.65);
  border: 1px solid rgba(158, 207, 164, 0.2);
  border-radius: 999px;
  padding: 0.45rem 1rem;
}

/* ---------- Timeline (How It Works) ---------- */
.timeline { position: relative; margin-top: 3rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 25px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--teal), var(--cyan) 55%, var(--gold));
  box-shadow: 0 0 12px rgba(167, 232, 109, 0.4);
}
.timeline-step {
  position: relative;
  padding: 0 0 2.8rem 4.6rem;
}
.timeline-step:last-child { padding-bottom: 0; }
.timeline-step .t-dot {
  position: absolute;
  left: 0; top: 0;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--aqua);
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--cyan);
}
.timeline-step h3 { margin-bottom: 0.5rem; }
.timeline-step p { color: var(--text-dim); }

/* ---------- Projects ---------- */
.filter-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.6rem 0 2.2rem; }
.project-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.project-cover {
  height: 180px;
  position: relative;
  background: linear-gradient(150deg, var(--teal), var(--pacific));
  display: grid;
  place-items: center;
}
.project-cover svg { width: 96px; height: 96px; opacity: 0.9; }
.project-body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.project-status {
  position: absolute;
  top: 0.9rem; left: 0.9rem;
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
}
.project-status.demo { background: var(--cyan); }
.project-meta { font-size: 0.8rem; color: var(--text-faint); margin-bottom: 0.5rem; }
.project-body h3 { margin-bottom: 0.55rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; padding-top: 1.1rem; }
.project-tags span {
  font-size: 0.72rem;
  color: var(--aqua);
  border: 1px solid rgba(158, 207, 164, 0.25);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
}
.project-card.hidden { display: none; }

/* ---------- Tech grid / diagram ---------- */
.proto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.9rem;
}
.proto {
  text-align: center;
  background: rgba(12, 36, 22, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 0.8rem;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.proto:hover { border-color: var(--cyan); transform: translateY(-3px); }
.proto .proto-name { font-family: var(--font-head); font-weight: 700; color: var(--cloud); font-size: 1rem; }
.proto .proto-role { font-size: 0.76rem; color: var(--text-faint); margin-top: 0.25rem; }

.brand-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.4rem;
}
.brand-cloud span {
  font-family: var(--font-head);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--mist);
  background: rgba(17, 48, 32, 0.6);
  border: 1px solid rgba(158, 207, 164, 0.18);
  border-radius: 10px;
  padding: 0.5rem 0.95rem;
}

/* ---------- FAQ accordion ---------- */
.faq-list { display: grid; gap: 0.8rem; margin-top: 2rem; }
.faq-item {
  background: rgba(12, 36, 22, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  background: none;
  border: none;
  color: var(--cloud);
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 600;
  padding: 1.15rem 1.4rem;
  cursor: pointer;
}
.faq-q:hover { color: var(--cyan); }
.faq-q .faq-icon {
  flex: none;
  width: 22px; height: 22px;
  color: var(--aqua);
  transition: transform 0.35s var(--ease);
}
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-a { padding: 0 1.4rem 1.3rem; color: var(--text-dim); font-size: 0.97rem; }
.faq-a[hidden] { display: none; }

/* ---------- Forms ---------- */
.form-card {
  background: linear-gradient(160deg, rgba(17, 48, 32, 0.8), rgba(12, 36, 22, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  box-shadow: var(--shadow-card);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1.3rem;
}
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--mist);
}
.form-field label .req { color: var(--gold); }
.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(8, 26, 17, 0.8);
  border: 1px solid rgba(158, 207, 164, 0.25);
  border-radius: 10px;
  color: var(--cloud);
  font-family: var(--font-body);
  font-size: 0.96rem;
  padding: 0.75rem 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(167, 232, 109, 0.15);
}
.form-field input.invalid,
.form-field select.invalid,
.form-field textarea.invalid { border-color: #FF7B6B; }
.field-error { font-size: 0.78rem; color: #FFB4A8; display: none; }
.form-field.show-error .field-error { display: block; }

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 0.55rem;
}
.check-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  background: rgba(8, 26, 17, 0.6);
  border: 1px solid rgba(158, 207, 164, 0.15);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  transition: border-color 0.2s;
}
.check-item:hover { border-color: var(--aqua); }
.check-item input { accent-color: var(--teal); width: 16px; height: 16px; flex: none; }
.consent-row { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.88rem; color: var(--text-dim); }
.consent-row input { margin-top: 4px; accent-color: var(--teal); }

.form-success {
  text-align: center;
  padding: 2.5rem 1rem;
}
.form-success svg { width: 64px; height: 64px; margin: 0 auto 1.2rem; color: var(--cyan); }
.form-success h3 { margin-bottom: 0.7rem; }
.form-success p { margin-inline: auto; color: var(--text-dim); }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% + 2rem));
  z-index: 280;
  width: min(640px, calc(100% - 2rem));
  background: rgba(12, 36, 22, 0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  padding: 1.3rem 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.5s var(--ease);
}
.cookie-banner.show { transform: translateX(-50%) translateY(0); }
.cookie-banner p { font-size: 0.88rem; color: var(--text-dim); margin-bottom: 0.9rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.cookie-prefs { margin: 0.4rem 0 0.9rem; display: none; gap: 0.5rem; flex-wrap: wrap; }
.cookie-prefs.open { display: flex; }

/* ---------- Insights ---------- */
.article-card .article-cover {
  height: 150px;
  border-radius: 12px;
  margin-bottom: 1.1rem;
  background: linear-gradient(140deg, var(--forest-teal), var(--pacific));
  display: grid;
  place-items: center;
}
.article-card .article-cover svg { width: 60px; height: 60px; opacity: 0.85; }
.article-meta { display: flex; gap: 0.9rem; font-size: 0.76rem; color: var(--text-faint); margin-bottom: 0.5rem; }
.badge-soon {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--aqua);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  margin-bottom: 0.8rem;
}

/* ---------- Legal ---------- */
.legal-toc { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 3rem; align-items: start; }
.legal-toc ul { list-style: none; display: grid; gap: 0.5rem; font-size: 0.9rem; }
.legal-section { margin-bottom: 3.4rem; scroll-margin-top: calc(var(--nav-h) + 1.5rem); }
.legal-section h2 { font-size: 1.5rem; margin-bottom: 0.9rem; }
.legal-section h3 { font-size: 1.05rem; margin: 1.4rem 0 0.5rem; }
.legal-section p, .legal-section li { color: var(--text-dim); font-size: 0.96rem; }
.legal-section ul { padding-left: 1.3rem; margin-top: 0.5rem; }
.legal-note {
  border: 1px dashed rgba(217, 164, 65, 0.5);
  border-radius: var(--radius);
  background: rgba(217, 164, 65, 0.07);
  color: var(--gold);
  font-size: 0.9rem;
  padding: 1rem 1.2rem;
  margin-bottom: 2.5rem;
}

/* ---------- Twin layers ---------- */
.layer-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.4rem;
}
.layer-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(17, 48, 32, 0.6);
  border: 1px solid rgba(158, 207, 164, 0.2);
  border-radius: 999px;
  padding: 0.42rem 0.9rem;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.layer-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.layer-toggle .dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; opacity: 0.5; }
.layer-toggle.on { color: var(--cloud); border-color: var(--aqua); background: rgba(46, 125, 79, 0.5); }
.layer-toggle.on .dot { background: var(--cyan); opacity: 1; box-shadow: 0 0 8px rgba(167, 232, 109, 0.9); }
.twin-layer { transition: opacity 0.5s var(--ease); }
.twin-layer.off { opacity: 0.06; }

/* ---------- Finale ---------- */
.finale {
  text-align: center;
  padding-bottom: clamp(5rem, 10vw, 8rem);
}
.finale .scene-inner { display: block; }
.finale-art { max-width: 860px; margin: 0 auto 2.5rem; }
.finale h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); margin-bottom: 1rem; }
.finale .lead { margin-inline: auto; }
.finale .hero-actions { justify-content: center; }

/* ---------- 404 / thanks ---------- */
.center-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 6rem 1.5rem;
}
.center-page h1 { margin-bottom: 1rem; }
.center-page p { margin: 0 auto 2rem; color: var(--text-dim); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .process-track { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .process-track::before { display: none; }
}

@media (max-width: 860px) {
  .scene-inner { grid-template-columns: 1fr; gap: 2rem; }
  .scene.alt .scene-inner { direction: ltr; }
  .scene-node { margin-left: -26px; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-content { padding-top: 8rem; }
  .trace-svg { display: none; }
  .scene-node { display: none; }
}

@media (max-width: 760px) {
  .scroll-hint { display: none; }
}

@media (max-width: 620px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .menu-overlay ul { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero-actions .btn, .cookie-actions .btn { width: auto; }
  .nav-actions .btn-primary { display: none; }
  body { font-size: 1rem; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .scene-copy > *, .scene-visual, .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
  .hero-labels li { animation: none; }
}

/* ---------- Photo cards (real photography) ---------- */
.photo-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  background: var(--surface);
}
.photo-card img {
  width: 100%; height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.photo-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,26,17,0.08), rgba(8,26,17,0) 40%, rgba(8,26,17,0.55) 100%);
  pointer-events: none;
}
.photo-chip {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 1;
  margin: 0;
  font-family: var(--font-head);
  font-size: 0.78rem; font-weight: 600;
  color: var(--cloud);
  background: rgba(12,36,22,0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.finale-art .photo-card img { aspect-ratio: 16 / 9; }

.project-cover > img,
.article-cover > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.article-cover { position: relative; overflow: hidden; }
.project-cover::after,
.article-cover::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,26,17,0.3), rgba(8,26,17,0.05));
  pointer-events: none;
}
.project-status { z-index: 1; }

/* lighting scene: photo + mode-driven tint */
.room-wrap { position: relative; }
.room-wrap img { transition: filter 1s var(--ease); filter: brightness(var(--ph-b, 1)); }
.room-tint {
  position: absolute; inset: 0; z-index: 1;
  background: var(--ph-t, transparent);
  transition: background 1s var(--ease);
  pointer-events: none;
}
