/* Strategic Growth Ventures — site styles
   Palette and type are taken from the official SGV mark:
   forest green + warm cream, slanted at 60°. */

:root {
  --green-950: #0a1f1a;
  --green-900: #0f2a24;
  --green-800: #15372f; /* brand */
  --green-700: #1d4a3f;
  --green-500: #3e6d60;
  --sage: #a9c7b6;
  --cream: #eeeae0; /* brand */
  --cream-50: #f6f3ec;
  --cream-200: #e3ddcf;

  --on-dark: var(--cream);
  --on-dark-muted: rgba(238, 234, 224, 0.66);
  --on-dark-faint: rgba(238, 234, 224, 0.14);
  --on-light: var(--green-800);
  --on-light-muted: rgba(21, 55, 47, 0.72);
  --on-light-faint: rgba(21, 55, 47, 0.16);

  --font-display: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

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

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

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

body {
  margin: 0;
  background: var(--green-900);
  color: var(--on-dark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--cream);
  color: var(--green-800);
}

:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--cream);
  color: var(--green-800);
  font-weight: 600;
  text-decoration: none;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  /* Slanted leading edge echoes the 60° cuts in the mark. */
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 17px);
  transition:
    background-color 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.btn-sm {
  height: 40px;
  padding: 0 16px;
  font-size: 15px;
}

.btn-cream {
  background: var(--cream);
  color: var(--green-800);
}

.btn-cream:hover {
  background: #fff;
}

.btn-ghost {
  border-color: var(--on-dark-faint);
  color: var(--on-dark);
  clip-path: none;
}

.btn-ghost:hover {
  border-color: var(--on-dark-muted);
  background: rgba(238, 234, 224, 0.05);
}

.icon-arrow {
  width: 16px;
  height: 16px;
  flex: none;
  transition: transform 0.3s var(--ease);
}

.btn:hover .icon-arrow,
.desk-email:hover .icon-arrow {
  transform: translateX(4px);
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(15, 42, 36, 0.86);
  border-bottom-color: var(--on-dark-faint);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--cream);
  text-decoration: none;
}

.lockup-mark {
  width: 74px;
  height: auto;
  display: block;
}

.lockup-word {
  display: flex;
  flex-direction: column;
  padding-left: 14px;
  border-left: 1px solid var(--on-dark-faint);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.05;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lockup-word span:last-child {
  letter-spacing: 0.3em;
}

.site-nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
}

.site-nav a {
  position: relative;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--on-dark-muted);
  transition: color 0.2s var(--ease);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--cream);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

@media (max-width: 760px) {
  .site-nav {
    display: none;
  }
  .header-inner > .btn {
    margin-left: auto;
  }
  .lockup-mark {
    width: 60px;
  }
  .lockup-word {
    font-size: 12px;
  }
}

@media (max-width: 400px) {
  .lockup {
    gap: 10px;
  }
  .lockup-mark {
    width: 52px;
  }
  .lockup-word {
    padding-left: 10px;
    font-size: 11px;
  }
}

@media (max-width: 340px) {
  .lockup-word {
    display: none;
  }
}

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(100svh, 960px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 56px) 0 40px;
  background:
    radial-gradient(120% 90% at 85% 40%, var(--green-800) 0%, var(--green-900) 55%, var(--green-950) 100%);
  isolation: isolate;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  flex: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.status-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--sage);
  opacity: 0;
  animation: pulse 2.6s var(--ease) infinite;
}

.status-dot-off {
  background: var(--on-dark-muted);
}

.status-dot-off::after {
  display: none;
}

@keyframes pulse {
  0% {
    transform: scale(0.6);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(56px, 8.4vw, 124px);
  line-height: 0.9;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}

.hero h1 span {
  display: block;
}

.hero h1 span:last-child {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--cream);
}

.lede {
  max-width: 540px;
  margin-top: 28px;
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.65;
  color: var(--on-dark-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.hero-figure {
  position: relative;
  padding: clamp(20px, 3vw, 40px);
}

/* Registration marks at the figure corners — a technical-drawing frame. */
.hero-figure::before,
.hero-figure::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--on-dark-muted);
  border-style: solid;
}

.hero-figure::before {
  top: 0;
  left: 0;
  border-width: 1px 0 0 1px;
}

.hero-figure::after {
  right: 0;
  bottom: 0;
  border-width: 0 1px 1px 0;
}

.hero-mark {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.hero-mark-fill {
  fill: var(--cream);
  opacity: 0.1;
  transition: opacity 0.6s var(--ease);
}

.hero-mark-outline {
  fill: none;
  stroke: var(--cream);
  stroke-width: 3.5;
  opacity: 0.85;
}

/* With canvas hatching active, the flat fill is replaced by drawn lines. */
.hero.has-canvas .hero-mark-fill {
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .js .hero-mark-outline {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 2.4s 0.2s var(--ease) forwards;
  }
}

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

.figure-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(48px, 7vh, 88px);
  border-top: 1px solid var(--on-dark-faint);
}

.hero-facts > div {
  padding: 20px 24px 0 0;
}

.hero-facts > div + div {
  padding-left: 24px;
  border-left: 1px solid var(--on-dark-faint);
}

.hero-facts dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.hero-facts dd {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hero-compact {
  min-height: 80svh;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-figure {
    max-width: 520px;
    width: 100%;
  }
  .hero-facts {
    grid-template-columns: 1fr;
  }
  .hero-facts > div,
  .hero-facts > div + div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 14px 0;
    border-left: 0;
    border-bottom: 1px solid var(--on-dark-faint);
  }
  .hero-facts dd {
    margin: 0;
    font-size: 17px;
    text-align: right;
  }
}

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

.section {
  position: relative;
  padding: clamp(88px, 12vw, 160px) 0;
}

.section-light {
  background: var(--cream);
  color: var(--on-light);
}

.section-dark {
  background: var(--green-900);
  color: var(--on-dark);
}

/* Slanted seam between sections, cut at the mark's angle. */
.section::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: min(38vw, 460px);
  height: 14px;
  background: inherit;
  transform: translateY(-100%);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 100%, 0 100%);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(32px, 6vw, 96px);
  row-gap: 20px;
  align-items: end;
  margin-bottom: clamp(56px, 7vw, 96px);
}

.section-index {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.72;
}

.section-index span {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 22px;
  padding: 0 6px;
  border: 1px solid currentColor;
  font-size: 11px;
}

.section-index::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.25;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}

.section-intro {
  max-width: 520px;
  font-size: 17px;
  line-height: 1.65;
  opacity: 0.78;
}

@media (max-width: 900px) {
  .section-head {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

/* ---------- Mandate ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--on-light-faint);
}

.pillar {
  position: relative;
  padding: 28px 28px 8px 0;
}

.pillar + .pillar {
  padding-left: 28px;
  border-left: 1px solid var(--on-light-faint);
}

.pillar::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--green-800);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.pillar:hover::before {
  transform: scaleX(1);
}

.pillar-index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--on-light-muted);
}

.pillar h3 {
  margin-top: 48px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.pillar p {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--on-light-muted);
}

@media (max-width: 1000px) {
  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }
  .pillar:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .pillar:nth-child(n + 3) {
    border-top: 1px solid var(--on-light-faint);
  }
}

@media (max-width: 600px) {
  .pillars {
    grid-template-columns: 1fr;
  }
  .pillar,
  .pillar + .pillar {
    padding: 24px 0 28px;
    border-left: 0;
  }
  .pillar + .pillar {
    border-top: 1px solid var(--on-light-faint);
  }
  .pillar h3 {
    margin-top: 20px;
  }
}

/* ---------- Operating model ---------- */

.model {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.model-diagram {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin: 0 auto;
  overflow: visible;
}

.plate {
  cursor: pointer;
  transition: transform 0.5s var(--ease);
}

.plate-top {
  fill: rgba(15, 42, 36, 0.92);
  stroke: rgba(238, 234, 224, 0.4);
  stroke-width: 1;
  transition:
    fill 0.4s var(--ease),
    stroke 0.4s var(--ease);
}

.plate-side {
  fill: var(--green-950);
  stroke: rgba(238, 234, 224, 0.25);
  stroke-width: 1;
}

.plate-side-r {
  fill: #0c2520;
}

.plate-line {
  fill: none;
  stroke: rgba(238, 234, 224, 0.18);
  stroke-width: 1;
  transition: stroke 0.4s var(--ease);
}

.plate-core,
.plate-cell {
  fill: rgba(238, 234, 224, 0.16);
  stroke: rgba(238, 234, 224, 0.4);
  stroke-width: 1;
  transition:
    fill 0.4s var(--ease),
    stroke 0.4s var(--ease);
}

.plate-cell-open {
  fill: none;
  stroke-dasharray: 3 3;
}

.plate-code {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  fill: var(--on-dark-muted);
  transition: fill 0.4s var(--ease);
}

.connector {
  stroke: rgba(238, 234, 224, 0.35);
  stroke-width: 1;
  stroke-dasharray: 2 4;
}

.model[data-active="holding"] .plate[data-layer="holding"],
.model[data-active="platform"] .plate[data-layer="platform"],
.model[data-active="companies"] .plate[data-layer="companies"] {
  transform: translateY(-8px);
}

.model[data-active="holding"] .plate[data-layer="holding"] .plate-top,
.model[data-active="platform"] .plate[data-layer="platform"] .plate-top,
.model[data-active="companies"] .plate[data-layer="companies"] .plate-top {
  fill: var(--green-700);
  stroke: var(--cream);
}

.model[data-active="holding"] .plate[data-layer="holding"] .plate-line,
.model[data-active="platform"] .plate[data-layer="platform"] .plate-line {
  stroke: rgba(238, 234, 224, 0.5);
}

.model[data-active="holding"] .plate[data-layer="holding"] .plate-core,
.model[data-active="companies"] .plate[data-layer="companies"] .plate-cell:not(.plate-cell-open) {
  fill: var(--cream);
  stroke: var(--cream);
}

.model[data-active="companies"] .plate[data-layer="companies"] .plate-cell-open {
  stroke: var(--cream);
}

.model[data-active="holding"] .plate[data-layer="holding"] .plate-code,
.model[data-active="platform"] .plate[data-layer="platform"] .plate-code,
.model[data-active="companies"] .plate[data-layer="companies"] .plate-code {
  fill: var(--cream);
}

.model-tabs {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--on-dark-faint);
}

.model-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 20px 0;
  border: 0;
  border-bottom: 1px solid var(--on-dark-faint);
  background: none;
  text-align: left;
  cursor: pointer;
  color: var(--on-dark-muted);
  transition: color 0.3s var(--ease);
}

.model-tab::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 100%;
  background: var(--cream);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.model-tab:hover,
.model-tab[aria-selected="true"] {
  color: var(--cream);
}

.model-tab[aria-selected="true"]::after {
  transform: scaleX(1);
}

.model-tab-code {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 24px;
  border: 1px solid currentColor;
  font-family: var(--font-mono);
  font-size: 12px;
}

.model-tab-name {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.model-detail {
  padding-top: 28px;
  min-height: 190px;
}

.model-summary {
  font-size: 17px;
  line-height: 1.65;
  color: var(--on-dark);
}

.model-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.model-points li {
  padding: 6px 12px;
  border: 1px solid var(--on-dark-faint);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--on-dark-muted);
}

@media (prefers-reduced-motion: no-preference) {
  .model-detail:not([hidden]) {
    animation: fade-up 0.5s var(--ease);
  }
}

/* Without JavaScript every layer description is shown. */
.no-js .model-detail[hidden] {
  display: block;
}

.no-js .model-tab {
  cursor: default;
}

@media (max-width: 900px) {
  .model {
    grid-template-columns: 1fr;
  }
  .model-diagram {
    max-width: 420px;
  }
}

/* ---------- Contact desks ---------- */

.desks {
  border-top: 1px solid var(--on-light-faint);
}

.desk {
  position: relative;
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--on-light-faint);
  transition: background-color 0.3s var(--ease);
}

.desk::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--gutter) * -0.5);
  background: rgba(21, 55, 47, 0.045);
  opacity: 0;
  z-index: 0;
  transition: opacity 0.3s var(--ease);
}

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

.desk > * {
  position: relative;
  z-index: 1;
}

.desk-index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--on-light-muted);
}

.desk h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.desk-body p {
  margin-top: 6px;
  font-size: 15px;
  color: var(--on-light-muted);
}

.desk-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.desk-email {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  min-width: 320px;
  justify-content: space-between;
  padding: 0 20px;
  background: var(--green-800);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 14px;
  text-decoration: none;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 17px);
  transition: background-color 0.25s var(--ease);
}

.desk-email:hover {
  background: var(--green-700);
}

.copy-btn {
  display: none;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--on-light-faint);
  background: transparent;
  color: var(--on-light);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    border-color 0.25s var(--ease),
    background-color 0.25s var(--ease);
}

.js .copy-btn {
  display: inline-block;
}

.copy-btn:hover {
  border-color: var(--green-800);
}

.copy-btn.is-copied {
  background: var(--green-800);
  border-color: var(--green-800);
  color: var(--cream);
}

@media (max-width: 800px) {
  .desk {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 28px 0;
  }
  .desk-actions {
    flex-wrap: wrap;
  }
  .desk-email {
    flex: 1 1 100%;
    min-width: 0;
    font-size: 13px;
  }
  .desk-email span {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .copy-btn {
    height: 36px;
  }
}

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

.site-footer {
  background: var(--green-950);
  color: var(--on-dark);
  padding: 72px 0 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  padding-bottom: 56px;
}

.footer-tag {
  margin-top: 20px;
  font-size: 14px;
  color: var(--on-dark-muted);
}

.footer-contacts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 16px 48px;
}

.footer-contacts li {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-contacts a {
  font-size: 14px;
  text-decoration: none;
  color: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
  justify-self: start;
  width: fit-content;
}

.footer-contacts a:hover {
  border-bottom-color: currentColor;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--on-dark-faint);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--on-dark-muted);
}

.to-top {
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.to-top:hover {
  color: var(--cream);
}

@media (max-width: 900px) {
  .footer-contacts {
    grid-template-columns: 1fr;
  }
}

/* ---------- Reveal on scroll (only when JS is running) ---------- */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity 0.9s var(--ease),
      transform 0.9s var(--ease);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
  .js .hero-copy > * {
    animation: fade-up 1s var(--ease) both;
  }
  .js .hero-copy > :nth-child(2) {
    animation-delay: 0.08s;
  }
  .js .hero-copy > :nth-child(3) {
    animation-delay: 0.16s;
  }
  .js .hero-copy > :nth-child(4) {
    animation-delay: 0.24s;
  }
}
