/* Ampera Energy Ventures LLP
   Palette sampled from assets/logo.png, then tuned for WCAG AA contrast. */

:root {
  --green: #5CAC30;        /* wordmark green: icons, fills, rules */
  --green-dark: #3A7A25;   /* all green text on white or tint (5.2:1 / 4.8:1) */
  --green-light: #7CC653;  /* green text on navy (6.2:1) */
  --orange: #FCB018;       /* sun orange: one CTA, stat numbers on navy, markers */
  --orange-hover: #E99F09;
  --navy: #12334F;         /* panel outline navy, lifted for large areas */
  --navy-deep: #0B2638;
  --navy-dot: #4F7290;
  --on-navy: #C9D6E0;      /* secondary text on navy (8.8:1) */
  --ink: #1D2925;
  --muted: #5C6B64;
  --border: #E3E8E5;
  --field-border: #7D8A83;
  --tint: #EEF7EA;
  --white: #FFFFFF;
  --error: #B42318;
  --focus: #12334F;

  --font-head: "Poppins", "Poppins Fallback", sans-serif;
  --font-body: "Inter", "Inter Fallback", sans-serif;
  --radius: 12px;
  --header-h: 64px;
  --gutter: 16px;
}

@media (min-width: 900px) {
  :root { --header-h: 76px; --gutter: 32px; }
}

/* Fallbacks sized to match the web fonts, so text does not jump when they load */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("Helvetica"), local("Roboto");
  size-adjust: 107%;
  ascent-override: 90.5%;
  descent-override: 22.5%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Poppins Fallback";
  src: local("Arial"), local("Helvetica"), local("Roboto");
  size-adjust: 112%;
  ascent-override: 93.6%;
  descent-override: 31.2%;
  line-gap-override: 8.9%;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  text-wrap: balance;
}

h3 { font-weight: 600; font-size: 1.125rem; }

p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--green-dark); text-underline-offset: 3px; }

abbr[title] { text-decoration: none; }

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

.section-dark { --focus: var(--orange); }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--navy);
  color: var(--white);
  font-weight: 500;
  border-radius: 8px;
}

.skip-link:focus { top: 12px; }

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

/* Icons: line art that inherits colour */
.icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-lg {
  width: 52px;
  height: 52px;
  padding: 12px;
  border-radius: 12px;
  background: var(--white);
  color: var(--green-dark);
  stroke-width: 1.6;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.btn-accent { background: var(--orange); color: var(--ink); }
.btn-accent:hover { background: var(--orange-hover); }

.btn-outline { border-color: rgba(255, 255, 255, .7); color: var(--white); }
.btn-outline:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }

.btn-primary { background: var(--green-dark); color: var(--white); }
.btn-primary:hover { background: #2F6A1E; }
.btn-primary[disabled] { opacity: .7; cursor: progress; }

.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s ease;
}

.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(18, 51, 79, .08); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand { display: block; flex: none; padding: 4px 0; }
.brand img { width: auto; height: 42px; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  padding: 8px var(--gutter) 20px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 24px rgba(18, 51, 79, .1);
}

.site-nav.is-open { display: block; }

.nav-links a {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.nav-links a:hover,
.nav-links a[aria-current="true"] { color: var(--green-dark); }

.nav-cta { width: 100%; margin-top: 16px; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }

  .site-nav,
  .site-nav.is-open {
    position: static;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .nav-links { display: flex; gap: 2px; }

  .nav-links a {
    position: relative;
    min-height: 44px;
    padding: 0 9px;
    border: 0;
    font-size: .9375rem;
    white-space: nowrap;
  }

  .nav-links a[aria-current="true"]::after {
    content: "";
    position: absolute;
    left: 9px;
    right: 9px;
    bottom: 6px;
    height: 2px;
    border-radius: 2px;
    background: var(--green);
  }

  .nav-cta {
    width: auto;
    margin: 0;
    min-height: 44px;
    padding: 0 16px;
    font-size: .9375rem;
    white-space: nowrap;
  }
}

@media (min-width: 900px) and (max-width: 1099px) {
  .brand img { height: 36px; }
  .site-nav { gap: 12px; }
  .nav-links a { padding: 0 6px; font-size: .875rem; }
  .nav-links a[aria-current="true"]::after { left: 6px; right: 6px; }
  .nav-cta { padding: 0 12px; font-size: .875rem; }
}

/* Sections */
.section { padding: 64px 0; }
.section-tint { background: var(--tint); }

.section-dark {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}

@media (min-width: 900px) {
  .section { padding: 96px 0; }
}

.kicker,
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green-dark);
}

.kicker::before,
.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--orange);
}

.section-dark .eyebrow { color: var(--green-light); }

.section-title {
  max-width: 26ch;
  margin-bottom: 40px;
  font-size: clamp(1.625rem, 1.2rem + 1.7vw, 2.5rem);
  color: var(--ink);
}

.section-dark .section-title { color: var(--white); }

.lead {
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
  line-height: 1.65;
}

/* Hero */
.hero { padding: 56px 0 64px; }

.hero-grid {
  position: relative;
  display: grid;
  gap: 32px;
  align-items: center;
}

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

.hero h1 {
  max-width: 18ch;
  margin-bottom: 20px;
  font-size: clamp(2rem, 1.35rem + 3vw, 3.5rem);
  letter-spacing: -.01em;
}

.hero .lead { max-width: 60ch; color: var(--on-navy); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-stats {
  display: grid;
  gap: 16px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.hero-stats li { display: flex; flex-direction: column; gap: 2px; }

.hero-stats strong,
.stat-band strong {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--orange);
  line-height: 1.15;
}

.hero-stats strong { font-size: 1.5rem; }
.hero-stats span { color: var(--on-navy); font-size: .9375rem; }

.hero-art {
  position: absolute;
  top: -150px;
  right: -150px;
  width: 280px;
  opacity: .4;
  pointer-events: none;
}

@media (min-width: 600px) {
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 960px) {
  .hero { padding: 96px 0 104px; }
  .hero-grid { grid-template-columns: 1.25fr .75fr; gap: 48px; }
  .hero-art { position: static; width: 100%; max-width: 460px; opacity: 1; justify-self: end; }
}

.dot-field .net {
  fill: none;
  stroke: var(--orange);
  stroke-width: 1.2;
  stroke-opacity: .4;
}

.lit circle { fill: var(--orange); }

@media (prefers-reduced-motion: no-preference) {
  .lit circle { animation: glow 4.8s ease-in-out infinite; }
  .lit circle:nth-child(2n) { animation-delay: -1.6s; }
  .lit circle:nth-child(3n) { animation-delay: -3.2s; }
}

@keyframes glow {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}

/* Cards */
.card-grid { display: grid; gap: 20px; }

@media (min-width: 768px) {
  .card-grid.two { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (min-width: 960px) {
  .card-grid.three { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--tint);
}

.section-tint .card {
  background: var(--white);
  border: 1px solid var(--border);
}

.card h3 { font-size: 1.1875rem; }
.card p { color: var(--muted); }

/* What we do */
.split { display: grid; gap: 40px; }

@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
}

.prose p + p { margin-top: 18px; }
.prose p { font-size: 1.0625rem; }

.prose p:first-child {
  font-size: 1.1875rem;
  font-weight: 500;
  color: var(--ink);
}

.flow { counter-reset: step; }

.flow li {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  padding-bottom: 22px;
  counter-increment: step;
}

.flow li:last-child { padding-bottom: 0; }

.flow li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 52px;
  bottom: 0;
  left: 25px;
  width: 2px;
  background: linear-gradient(var(--green) 0 0) center / 2px 100% no-repeat;
  opacity: .45;
}

.flow-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: var(--white);
  color: var(--green-dark);
}

.flow h3 { padding-top: 4px; font-size: 1.0625rem; }

.flow h3::before {
  content: counter(step, decimal-leading-zero) "  ";
  color: var(--muted);
  font-family: var(--font-body);
  font-size: .8125rem;
  font-weight: 500;
  white-space: pre;
}

.flow p { color: var(--muted); font-size: .9375rem; }

/* Energy stack */
#stack { padding-bottom: 0; }

.bands { display: grid; gap: 16px; }

.band {
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--tint);
}

.band-num {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--navy);
}

.band-num::after {
  content: "";
  display: block;
  width: 24px;
  height: 3px;
  margin-top: 8px;
  border-radius: 2px;
  background: var(--orange);
}

.band-head {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-items: center;
}

.band-head .icon { color: var(--green-dark); }
.band-head h3 { font-size: 1.375rem; }
.band-role { grid-column: 1 / -1; margin-top: 2px; color: var(--green-dark); font-weight: 500; }
.band-body { color: var(--muted); }

.chip {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  justify-self: start;
  max-width: 100%;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.4;
}

.chip::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: currentColor;
}

.chip-live { background: #DDF0D2; color: #2B5F1C; }
.chip-soon { background: #FDEDC8; color: #6E4700; }
.chip-dev { background: #DDE9F3; color: var(--navy); }
.chip-design { background: #E6EBE8; color: #3B4842; }

@media (min-width: 1024px) {
  .bands { gap: 0; border-top: 1px solid var(--border); }

  .band {
    grid-template-columns: 72px 230px 1fr 210px;
    gap: 32px;
    align-items: center;
    padding: 30px 8px;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
    background: transparent;
  }

  .chip { justify-self: stretch; }
}

.footnote {
  max-width: 80ch;
  margin-top: 28px;
  color: var(--muted);
  font-size: .9375rem;
}

.dot-divider {
  width: 100%;
  height: 40px;
  margin-top: 64px;
}

@media (min-width: 900px) {
  .dot-divider { margin-top: 96px; }
}

/* Projects */
.project-art {
  width: 100%;
  height: auto;
  margin: -4px 0 4px;
  padding: 14px 12px 6px;
  border-radius: 8px;
  background: var(--tint);
}

.ill-line,
.ill-sun-ray {
  fill: none;
  stroke: var(--navy);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ill-sun-ray { stroke: var(--orange); }
.ill-sun { fill: var(--orange); }
.ill-panel { fill: #2C6FA8; stroke: var(--navy); stroke-width: 1.5; stroke-linejoin: round; }

.project-place {
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green-dark) !important;
}

.project h3 { font-size: 1.375rem; margin-top: -6px; }

.facts { display: grid; gap: 8px; }

.facts li {
  position: relative;
  padding-left: 20px;
  color: var(--ink);
}

.facts li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.stat-band {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 16px;
  margin-top: 24px;
  padding: 28px 24px;
  border-radius: 16px;
  background: var(--navy);
}

.stat-band li { display: flex; flex-direction: column; gap: 4px; }
.stat-band strong { font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2rem); }
.stat-band span { color: var(--on-navy); font-size: .9375rem; line-height: 1.4; }

@media (min-width: 900px) {
  .stat-band { grid-template-columns: repeat(4, 1fr); padding: 36px 40px; }
  .stat-band li + li { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .14); }
}

/* Sectors */
.sector-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 560px) {
  .sector-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .sector-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

.sector-grid li {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 500;
  line-height: 1.35;
}

.sector-grid .icon {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 10px;
  background: var(--tint);
  color: var(--green-dark);
}

.fit-note {
  max-width: 80ch;
  margin-top: 28px;
  padding: 16px 20px;
  border-left: 4px solid var(--orange);
  border-radius: 0 8px 8px 0;
  background: var(--tint);
}

/* About */
.intro {
  max-width: 72ch;
  margin: -12px 0 36px;
  font-size: 1.0625rem;
}

.person-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 4px;
}

.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: .04em;
  box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--green);
}

.team-art { flex: none; width: 64px; height: 64px; }
.team-links { fill: none; stroke: var(--green); stroke-width: 1.6; }
.team-node { fill: var(--white); stroke: var(--navy); stroke-width: 2; }
.team-core { fill: var(--orange); }

.role { color: var(--green-dark) !important; font-weight: 500; }
.person p:not(.role) { color: var(--ink); }

/* Contact */
.contact { padding-bottom: 72px; }

.contact-dots {
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, 70vw);
  height: auto;
  pointer-events: none;
}

.contact-grid {
  position: relative;
  display: grid;
  gap: 40px;
}

@media (min-width: 960px) {
  .contact-grid { grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
}

.contact-intro .section-title { margin-bottom: 16px; }
.contact-intro .lead { color: var(--on-navy); max-width: 46ch; }

.contact-card {
  display: grid;
  gap: 14px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-style: normal;
}

.contact-name { font-family: var(--font-head); font-weight: 600; font-size: 1.125rem; }

.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--on-navy);
  overflow-wrap: anywhere;
}

.contact-line .icon { margin-top: 1px; color: var(--green-light); }
.contact-line a { color: var(--white); }

.form-card {
  padding: 28px 20px;
  border-radius: 16px;
  background: var(--white);
  color: var(--ink);
  --focus: var(--navy);
}

@media (min-width: 600px) {
  .form-card { padding: 36px; }
}

.form-title { font-size: 1.25rem; }
.form-hint { margin: 6px 0 24px; color: var(--muted); font-size: .875rem; }

.field-grid { display: grid; gap: 18px; }

@media (min-width: 600px) {
  .field-grid { grid-template-columns: 1fr 1fr; gap: 18px 20px; }
  .field-wide { grid-column: 1 / -1; }
}

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.field label { font-weight: 500; font-size: .9375rem; }

.req { color: var(--error); }
.optional { color: var(--muted); font-weight: 400; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1.5px solid var(--field-border);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.field textarea { min-height: 112px; resize: vertical; }

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid rgba(58, 122, 37, .35);
  outline-offset: 0;
  border-color: var(--green-dark);
}

.field [aria-invalid="true"] { border-color: var(--error); }

.field-help { color: var(--muted); font-size: .8125rem; }

.field-error {
  color: var(--error);
  font-size: .8125rem;
  font-weight: 500;
}

.field-error:empty { display: none; }

.field-check {
  display: grid;
  grid-template-columns: 24px 1fr;
  column-gap: 12px;
  align-items: start;
}

.field-check input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--green-dark);
}

.field-check label { font-weight: 400; font-size: .9375rem; }
.field-check .field-error { grid-column: 2; }

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-card .btn-block { margin-top: 24px; }

.form-status:empty { display: none; }

.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  border-left: 4px solid;
  font-weight: 500;
}

.form-status.is-success { background: #E6F3DE; color: #24561A; border-color: var(--green); }
.form-status.is-error { background: #FDECEA; color: #8F1C13; border-color: var(--error); }
.form-status a { color: inherit; }

/* Footer */
.site-footer {
  padding: 56px 0 24px;
  background: var(--navy-deep);
  color: var(--on-navy);
  font-size: .9375rem;
  --focus: var(--orange);
}

.footer-grid { display: grid; gap: 32px; }

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
}

.footer-brand img { width: 210px; height: auto; margin-bottom: 16px; }
.footer-brand p { max-width: 40ch; }

.footer-nav ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}

.footer-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--white);
  text-decoration: none;
}

.footer-nav a:hover { text-decoration: underline; }

.footer-legal {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 20px;
  font-size: .875rem;
}

.footer-legal::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  border-top: 1px solid rgba(255, 255, 255, .12);
}

/* Simple pages: privacy, 404 */
.page { padding: 56px 0 80px; }

.page-body { max-width: 72ch; }
.page-body h1 { font-size: clamp(1.875rem, 1.4rem + 2vw, 2.75rem); margin-bottom: 12px; }
.page-body h2 { font-size: 1.375rem; margin: 40px 0 12px; }
.page-body p,
.page-body li { color: var(--ink); }
.page-body p + p { margin-top: 14px; }
.page-body ul { margin-top: 10px; }
.page-body ul li { position: relative; padding-left: 20px; margin-top: 8px; }

.page-body ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.page-meta { color: var(--muted); }
.page-body .btn-row { margin-top: 32px; }

/* Reveal on scroll (only when JS is running) */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}

.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { transition: none; }
}
