/* ═══════════════════════════════════════════════════════════
   BOREALTRACK: Space-Tech Minimalism
   ═══════════════════════════════════════════════════════════ */

:root {
  --navy-bg: #060B11;
  --navy-surface: #0A111A;

  --text-main: #FFFFFF;
  --text-muted: #8B949E;

  --card-bg: rgba(255, 255, 255, 0.02);
  --card-border: rgba(255, 255, 255, 0.06);

  --accent-blue: #38BDF8;
  --accent-green: #34D399;

  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --hero-overlay-bg: linear-gradient(180deg, rgba(2, 6, 9, 0.15) 0%, rgba(4, 10, 8, 0.3) 60%, rgba(3, 8, 6, 0.55) 100%);
  --nav-glass-bg: rgba(255, 255, 255, 0.02);
  --nav-active-bg: rgba(255, 255, 255, 0.1);
  --btn-primary-bg: linear-gradient(135deg, #FFFFFF 0%, #E0E5EA 100%);
  --btn-primary-text: #060B11;
  --pill-bg: rgba(10, 17, 26, 0.8);
  --scrollbar-thumb: rgba(255, 255, 255, 0.15);
  --scrollbar-thumb-hover: rgba(255, 255, 255, 0.3);
  --image-filter: grayscale(40%);

  --card-border-strong: rgba(255, 255, 255, 0.16);
  --header-bg: rgba(6, 11, 17, 0.92);
}

[data-theme="light"] {
  --navy-bg: #C8D6E5;
  --navy-surface: #D6E2EF;

  --text-main: #0F172A;
  --text-muted: #334155;

  --card-bg: rgba(210, 225, 240, 0.7);
  --card-border: rgba(100, 130, 165, 0.35);

  --accent-blue: #0369A1;
  --accent-green: #047857;

  --hero-overlay-bg: linear-gradient(180deg, rgba(200, 214, 229, 0.1) 0%, rgba(200, 214, 229, 0.45) 60%, rgba(200, 214, 229, 0.92) 100%);
  --nav-glass-bg: rgba(210, 225, 240, 0.8);
  --nav-active-bg: rgba(3, 105, 161, 0.18);
  --btn-primary-bg: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  --btn-primary-text: #FFFFFF;
  --pill-bg: rgba(210, 225, 240, 0.9);
  --scrollbar-thumb: rgba(15, 23, 42, 0.25);
  --scrollbar-thumb-hover: rgba(15, 23, 42, 0.45);
  --image-filter: grayscale(10%);

  --card-border-strong: rgba(15, 23, 42, 0.3);
  --header-bg: rgba(200, 214, 229, 0.94);
}

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

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--navy-bg);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s ease, color 0.4s ease;
}

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

/* ─── PREMIUM SCROLLBAR ─── */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--navy-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 10px;
  border: 2px solid var(--navy-bg);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

/* ─── SELECTION ─── */
::selection {
  background: rgba(56, 189, 248, 0.3);
  color: #fff;
}

/* ─── AGRITECH ANIMATED BACKGROUND ─── */
.hero-background {
  position: fixed;
  /* inset:0 pins this to the viewport itself rather than to a viewport unit, so
     it covers the screen edge to edge whatever the URL bar is doing. Every unit
     we tried (vh, svh, lvh) described only one of the URL bar states. */
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background-color: var(--navy-bg);
  transition: background-color 0.4s ease;
}

#agri-reindeer-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  /* Keep the canvas on its own compositor layer so scrolling the page never
     forces it to repaint. translateZ(0) alone gets flattened back to a 2D
     transform by some engines, so declare the intent directly as well. */
  will-change: transform;
  transform: translateZ(0);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay-bg);
  z-index: 2;
  pointer-events: none;
  transition: background 0.4s ease;
}

/* ─── HEADER ─── */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1.5rem 2rem;
  /* Clear the notch / Dynamic Island. env() is 0 on everything else, so this
     costs nothing on other devices. */
  padding-top: calc(1.5rem + env(safe-area-inset-top));
  padding-left: calc(2rem + env(safe-area-inset-left));
  padding-right: calc(2rem + env(safe-area-inset-right));
  /* Transparent over the hero, opaque once you scroll, so headings further down
     no longer run underneath it. */
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  background: var(--header-bg);
  border-bottom-color: var(--card-border);
}

.site-header.is-scrolled .nav-glass {
  background: transparent;
  border-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.brand {
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.nav-glass {
  display: flex;
  gap: 0.5rem;
  padding: 0.4rem;
  background: var(--nav-glass-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 100px;
  justify-self: center;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-glass a {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-radius: 100px;
  transition: 0.2s ease;
}

.nav-glass a:hover {
  color: var(--text-main);
}

.nav-glass a.active {
  background: var(--nav-active-bg);
  color: var(--text-main);
}

.header-action {
  justify-self: end;
  display: flex;
  align-items: center;
}

.theme-toggle-btn {
  background: var(--nav-glass-bg);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  margin-right: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  outline: none;
}

.theme-toggle-btn:hover {
  color: var(--text-main);
  transform: scale(1.08);
  border-color: var(--accent-blue);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.theme-toggle-btn .sun-icon {
  display: none;
}

.theme-toggle-btn .moon-icon {
  display: block;
}

[data-theme="light"] .theme-toggle-btn .sun-icon {
  display: block;
  color: #D97706;
}

[data-theme="light"] .theme-toggle-btn .moon-icon {
  display: none;
}

.nav-contact {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: 0.2s ease;
}

.nav-contact:hover {
  color: var(--text-main);
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  /* dvh tracks the visible viewport as the URL bar moves, so the section always
     ends exactly where the screen does and the next section never creeps up. */
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  padding-left: calc(2rem + env(safe-area-inset-left));
  padding-right: calc(2rem + env(safe-area-inset-right));
}

.hero-content {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

/* ─── JUMPING SCROLL ARROW ─── */
.hero-scroll {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  opacity: 0.65;
  transition: opacity 0.3s ease, color 0.3s ease;
  z-index: 5;
  padding: 0.75rem;
}

.hero-scroll:hover {
  opacity: 1;
  color: var(--accent-blue);
}

.hero-scroll-arrow {
  display: block;
  animation: hero-arrow-jump 1.8s infinite cubic-bezier(0.28, 0.84, 0.42, 1);
}

@keyframes hero-arrow-jump {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(10px);
  }
  60% {
    transform: translateY(5px);
  }
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 550px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.btn-primary {
  display: inline-block;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  padding: 0.9rem 1.8rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  opacity: 0.95;
}

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

.btn-secondary {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-main);
  background: var(--nav-glass-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  border-color: var(--card-border-strong);
}

.text-highlight {
  color: var(--text-main);
  transition: color 0.3s ease;
}

/* ─── PRODUCTS ─── */
.products-section {
  padding: 6rem 2rem 4rem;
  position: relative;
  z-index: 10;
  background: var(--navy-bg);
  padding-left: calc(2rem + env(safe-area-inset-left));
  padding-right: calc(2rem + env(safe-area-inset-right));
}

.section-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.7;
  max-width: 620px;
  margin: -2rem 0 3.5rem;
}

/* Equal columns so both photos render at the same size */
.product-plates {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.plate-deer {
  --plate-accent: var(--accent-blue);
  padding-right: 2.75rem;
  /* Matches the divider the sheep plate carries, so both columns are identical */
  border-left: 1px solid transparent;
}

.plate-sheep {
  --plate-accent: var(--accent-green);
  border-left: 1px solid var(--card-border);
  padding-left: 2.75rem;
}

/* Each plate opens on a keyline in its own colour */
.plate-head {
  border-top: 2px solid var(--plate-accent);
  padding-top: 1rem;
  margin-bottom: 1.5rem;
}

.plate-name {
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.plate-for {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.plate-photo {
  margin: 0 0 1.5rem;
}

.plate-photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--card-border);
  filter: var(--image-filter);
  transition: filter 0.5s ease;
}

.plate:hover .plate-photo img {
  filter: grayscale(0%);
}

.plate-photo img {
  aspect-ratio: 3 / 2;
}

.plate-lede {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 46ch;
}

/* ─── PLATFORM FEATURES ─── */
/* Same flat vocabulary as the product plates: square imagery, an accent
   keyline, hairline rules, no radius and no shadow. */
.platform-section {
  padding: 4rem 2rem 8rem;
  position: relative;
  z-index: 10;
  background: var(--navy-bg);
  padding-left: calc(2rem + env(safe-area-inset-left));
  padding-right: calc(2rem + env(safe-area-inset-right));
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-heading {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: -0.03em;
  margin-bottom: 3rem;
}

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

.feature {
  display: flex;
  flex-direction: column;
}

.feature-visual {
  position: relative;
  height: 210px;
  border: 1px solid var(--card-border);
  overflow: hidden;
}

.bg-map {
  background: url('images/nord-norge-sat.jpg') center/cover;
}

.bg-route {
  background: url('images/satelitt-rute.jpg') center/cover;
}

.bg-scan {
  background: linear-gradient(135deg, rgba(10, 17, 26, 0.6) 0%, rgba(10, 17, 26, 0.2) 100%),
    url('images/nvdi.png') center/cover;
}

.feature-body {
  border-top: 2px solid var(--accent-blue);
  margin-top: 1.5rem;
  padding-top: 1rem;
}

.feature:last-child .feature-body {
  border-top-color: var(--accent-green);
}

.feature-body h3 {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 0.6rem;
}

.feature-body p {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.65;
}

/* Scanning pass over the NDVI imagery */
.scan-gradient {
  position: absolute;
  inset: 0;
  opacity: 0.6;
  background: radial-gradient(circle at 30% 70%, rgba(52, 211, 153, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(56, 189, 248, 0.4) 0%, transparent 50%);
  filter: blur(20px);
}

.scan-laser {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--text-main), transparent);
  box-shadow: 0 0 10px var(--text-main);
  animation: scan-up-down 4s ease-in-out infinite alternate;
}

@keyframes scan-up-down {
  0% {
    top: 0;
  }

  100% {
    top: 100%;
  }
}

/* ─── TEXT & IMAGE SECTION (Mission) ─── */
.content-section {
  padding: 4rem 2rem 8rem;
  position: relative;
  z-index: 10;
  background: var(--navy-bg);
  padding-left: calc(2rem + env(safe-area-inset-left));
  padding-right: calc(2rem + env(safe-area-inset-right));
}

.content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.content-heading {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.content-right p {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.content-right p:last-child {
  margin-bottom: 0;
}

.content-visual {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--card-border);
  display: flex;
}

.mission-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: grayscale(40%);
  transition: 0.5s ease;
}

.content-visual:hover .mission-image {
  filter: grayscale(0%);
  transform: scale(1.02);
}

/* ─── CONTACT ─── */
.contact-section {
  padding: 4rem 2rem 6rem;
  position: relative;
  z-index: 10;
  background: var(--navy-bg);
  padding-left: calc(2rem + env(safe-area-inset-left));
  padding-right: calc(2rem + env(safe-area-inset-right));
}

.contact-split {
  border-top: 1px solid var(--card-border);
  padding-top: 3rem;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-heading {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.contact-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.7;
  max-width: 46ch;
  margin-bottom: 2rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.contact-or {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-muted);
}

.contact-facts {
  margin: 0;
}

.contact-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--card-border);
}

.contact-row:first-child {
  border-top: 1px solid var(--card-border);
}

.contact-facts dt {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
}

.contact-facts dd {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 300;
  text-align: right;
}

/* ─── TEAM SECTION ─── */
.team-section {
  padding: 4rem 2rem 8rem;
  position: relative;
  z-index: 10;
  background: var(--navy-bg);
  padding-left: calc(2rem + env(safe-area-inset-left));
  padding-right: calc(2rem + env(safe-area-inset-right));
}

.team-header {
  max-width: 600px;
  margin-bottom: 4rem;
}

.team-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.6;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.team-card {
  border-top: 1px solid var(--card-border);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.team-card:hover {
  background: var(--card-bg);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

[data-theme="light"] .team-card:hover {
  background-color: rgba(255, 255, 255, 0.85);
  border-color: rgba(15, 23, 42, 0.3);
}

.team-avatar-wrapper {
  width: 4.5rem;
  height: 4.5rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid var(--card-border);
}

.team-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.4s ease, transform 0.3s ease;
}

.team-card:hover .team-avatar {
  filter: grayscale(0%);
  transform: scale(1.02);
}

.team-name {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.team-role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-blue);
  margin-bottom: 1rem;
}

.team-bio {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.6;
  margin-top: auto;
}

.team-email {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-blue);
  text-decoration: none;
  margin-top: 0.75rem;
  display: inline-block;
  transition: color 0.2s ease, opacity 0.2s ease;
  opacity: 0.85;
}

.team-email:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ─── LOGO THEME SWITCHING ─── */
.logo-dark-theme {
  display: block !important;
}

.logo-light-theme {
  display: none !important;
}

[data-theme="light"] .logo-dark-theme {
  display: none !important;
}

[data-theme="light"] .logo-light-theme {
  display: block !important;
}

/* ─── INSTITUTIONAL BACKERS & CAPITAL ─── */
.backers-container {
  margin-top: 5rem;
  border-top: 1px solid var(--card-border);
  padding-top: 3.5rem;
}

.backers-header-row {
  margin-bottom: 2.25rem;
}

.backers-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-blue);
  display: inline-block;
  margin-bottom: 0.5rem;
}

.backers-title {
  font-size: 1.65rem;
  font-weight: 300;
  letter-spacing: -0.025em;
  color: var(--text-main);
}

.backers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.backer-card {
  border-top: 1px solid var(--card-border);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.backer-card:hover {
  background: var(--card-bg);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

[data-theme="light"] .backer-card:hover {
  background-color: rgba(255, 255, 255, 0.85);
  border-color: rgba(15, 23, 42, 0.3);
}

.backer-logo-wrap {
  height: 48px;
  display: flex;
  align-items: center;
  margin-bottom: 1.25rem;
}

.backer-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.backer-card:hover .backer-logo {
  transform: scale(1.02);
}

.backer-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.backer-name {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.backer-role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-blue);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.backer-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.6;
  margin-top: auto;
}

/* ─── CONTACT BACKERS ROW ─── */
.contact-row-backers {
  align-items: center;
}

.contact-backer-logos {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.contact-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.contact-logo-link:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.contact-logo {
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

/* ─── FOOTER ─── */
.site-footer {
  border-top: 1px solid var(--card-border);
  padding: 2.5rem 2rem;
  background: var(--navy-bg);
  position: relative;
  z-index: 10;
  padding-left: calc(2rem + env(safe-area-inset-left));
  padding-right: calc(2rem + env(safe-area-inset-right));
  padding-bottom: calc(2.5rem + env(safe-area-inset-bottom));
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-left a {
  color: var(--text-main);
  transition: 0.2s;
}

.footer-left a:hover {
  color: var(--accent-blue);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: 1fr 1fr;
  }

  .nav-glass {
    display: none;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .content-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .backers-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .contact-row-backers {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .contact-backer-logos {
    justify-content: flex-start;
  }

  .product-plates {
    grid-template-columns: 1fr;
  }

  .plate-deer {
    padding-right: 0;
    border-left: none;
  }

  .plate-sheep {
    border-left: none;
    padding-left: 0;
    margin-top: 3.5rem;
  }

  .section-lead {
    margin: -1.5rem 0 2.5rem;
  }

  /* backdrop-filter over the animated canvas forces the browser to re-blur
     what is behind it on every frame, which stutters badly while scrolling. */
  .nav-glass,
  .theme-toggle-btn,
  .btn-secondary {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .theme-toggle-btn,
  .btn-secondary {
    background: var(--pill-bg);
  }
}