:root {
  --bg: #fbf6f0;
  --bg-elevated: #fffdfb;
  --bg-card: #ffffff;
  --line: rgba(74, 52, 40, 0.1);
  --text: #3a2e28;
  --muted: #6f6158;
  --dim: #8d7d72;
  --coral: #e07a5f;
  --coral-deep: #c45c42;
  --sage: #5c8f78;
  --sky: #6a9ec4;
  --gold: #d4a054;
  --white: #ffffff;
  --font: "Nunito", sans-serif;
  --display: "Fraunces", serif;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 12px 32px rgba(90, 60, 40, 0.06);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse 80% 40% at 100% 0%, rgba(224, 122, 95, 0.08), transparent 50%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.08rem;
  line-height: 1.65;
  min-height: 100vh;
}

::selection {
  background: #f6d2c6;
  color: var(--text);
}

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

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: var(--coral);
  color: var(--white);
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

.label {
  margin: 0 0 0.7rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--coral-deep);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.75rem clamp(1.25rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

.logo {
  flex-shrink: 0;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.logo::after {
  content: "";
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  margin-left: 0.2rem;
  border-radius: 50%;
  background: var(--coral);
  transform: translateY(-0.55rem);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 0.4rem;
}

.nav a {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
  transition:
    color 0.25s var(--ease),
    background 0.25s var(--ease);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.8);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display: grid;
  align-content: center;
  padding: clamp(2.5rem, 8vh, 5.5rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 8vh, 5rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  right: -6rem;
  top: 8%;
  width: min(34rem, 52vw);
  height: min(34rem, 52vw);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 36%, rgba(255, 228, 216, 0.95) 0 26%, transparent 27%),
    radial-gradient(circle at 68% 40%, rgba(214, 232, 222, 0.95) 0 32%, transparent 33%),
    radial-gradient(circle at 48% 72%, rgba(248, 228, 196, 0.9) 0 20%, transparent 21%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--coral-deep);
  opacity: 0;
  transform: translateY(1rem);
  animation: rise 0.9s var(--ease) 0.05s forwards;
}

.hero h1 {
  margin: 0 0 1.1rem;
  max-width: 14ch;
  font-family: var(--display);
  font-size: clamp(2.7rem, 6.4vw, 4.7rem);
  font-weight: 560;
  line-height: 1.05;
  letter-spacing: -0.035em;
  opacity: 0;
  transform: translateY(1rem);
  animation: rise 0.9s var(--ease) 0.16s forwards;
}

.lede {
  margin: 0 0 1.8rem;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.12rem;
  opacity: 0;
  transform: translateY(1rem);
  animation: rise 0.9s var(--ease) 0.28s forwards;
}

.cta-row,
.hero-notes {
  opacity: 0;
  transform: translateY(1rem);
  animation: rise 0.9s var(--ease) 0.4s forwards;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  animation-delay: 0.5s;
}

.hero-notes li {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(74, 52, 40, 0.08);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 800;
  transition:
    background 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(224, 122, 95, 0.28);
}

.btn-primary:hover {
  background: var(--coral-deep);
}

.btn-ghost {
  border-color: rgba(74, 52, 40, 0.14);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--white);
  border-color: rgba(74, 52, 40, 0.22);
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vh, 6rem) clamp(1.25rem, 4vw, 3rem);
  scroll-margin-top: var(--header-h);
}

.mission,
.culture,
.sectors {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.section-body h2,
.network-intro h2,
.approach-intro h2,
.contact h2 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 18ch;
}

.section-copy {
  margin: 0;
  max-width: 38rem;
  color: var(--muted);
}

.sectors-lead {
  margin-bottom: 0.35rem;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.pillar-grid article {
  padding: 1.35rem 1.3rem 1.45rem;
  border-radius: 1.25rem;
  background: var(--bg-card);
  border: 1px solid rgba(74, 52, 40, 0.06);
  box-shadow: var(--shadow);
}

.pillar-grid h3 {
  margin: 0.35rem 0 0.45rem;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 560;
  letter-spacing: -0.02em;
}

.culture-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mission .section-copy {
  margin-top: 0.25rem;
}

.pillar-grid p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

/* Approach */
.approach {
  margin: 0 clamp(0.75rem, 2vw, 1.25rem) 0.5rem;
  padding: clamp(2.5rem, 6vh, 4rem) clamp(1.1rem, 3vw, 2rem);
  border-radius: 1.75rem;
  background: var(--bg-elevated);
  border: 1px solid rgba(74, 52, 40, 0.06);
  box-shadow: var(--shadow);
}

.approach-intro {
  max-width: 40rem;
  margin-bottom: 1.75rem;
}

.approach-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.approach-steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  padding: 1.25rem 1.2rem;
  border-radius: 1.15rem;
  background: #fff8f4;
  border: 1px solid rgba(224, 122, 95, 0.12);
}

.step-num {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fde8e1;
  color: var(--coral-deep);
  font-size: 0.95rem;
  font-weight: 800;
}

.approach-steps h3 {
  margin: 0.15rem 0 0.35rem;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 560;
  letter-spacing: -0.02em;
}

.approach-steps p {
  margin: 0;
  color: var(--muted);
}

/* Network map */
.network {
  background:
    radial-gradient(ellipse 50% 50% at 0% 100%, rgba(92, 143, 120, 0.1), transparent 55%),
    transparent;
}

.network-intro {
  margin-bottom: 1.6rem;
  max-width: 40rem;
}

.map-shell {
  position: relative;
  border: 1px solid rgba(74, 52, 40, 0.08);
  border-radius: 1.6rem;
  background:
    radial-gradient(ellipse 40% 60% at 80% 20%, rgba(106, 158, 196, 0.12), transparent 60%),
    linear-gradient(180deg, #fffaf6, #f6efe7);
  box-shadow: var(--shadow);
  overflow: hidden;
}

#network-map {
  width: 100%;
  height: auto;
  aspect-ratio: 2.2 / 1;
  min-height: 320px;
}

.map-hud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0 1.1rem 0.2rem;
}

.map-hud div {
  padding: 0.55rem 0.85rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(74, 52, 40, 0.06);
}

.hud-key {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--coral-deep);
}

.hud-val {
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
}

.map-legend {
  list-style: none;
  margin: 0;
  padding: 0.85rem 1.15rem 1.15rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.map-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
}

.dot-blue {
  background: var(--sky);
}

.dot-green {
  background: var(--sage);
}

.dot-violet {
  background: var(--coral);
}

.sector-rows {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.sector-rows li {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr);
  gap: 0.4rem 1.5rem;
  align-items: center;
  padding: 1rem 1.15rem;
  border-radius: 1rem;
  background: var(--bg-card);
  border: 1px solid rgba(74, 52, 40, 0.06);
  box-shadow: 0 8px 22px rgba(90, 60, 40, 0.04);
}

.sector-name {
  font-size: 1.05rem;
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

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

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

.contact {
  margin: 0.5rem clamp(0.75rem, 2vw, 1.25rem) 0;
  border-radius: 1.75rem;
  background:
    radial-gradient(ellipse 55% 80% at 100% 0%, rgba(224, 122, 95, 0.16), transparent 55%),
    radial-gradient(ellipse 40% 70% at 0% 100%, rgba(92, 143, 120, 0.12), transparent 50%),
    #fff8f4;
  border: 1px solid rgba(224, 122, 95, 0.12);
}

.contact .section-copy {
  margin-bottom: 1.5rem;
}

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

.contact-meta {
  margin: 0;
  font-weight: 800;
  color: var(--dim);
}

.site-footer {
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem) 2.25rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.75rem;
}

.footer-brand {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 560;
}

.footer-tagline {
  margin: 0;
  color: var(--muted);
  max-width: 22ch;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-links a,
.footer-mail {
  color: var(--muted);
  font-weight: 700;
  transition: color 0.2s var(--ease);
}

.footer-links a:hover,
.footer-mail:hover {
  color: var(--coral-deep);
}

.footer-meta,
.footer-copy {
  margin: 0;
  color: var(--dim);
  font-size: 0.92rem;
  font-weight: 700;
}

.footer-meta {
  margin-bottom: 0.35rem;
}

.footer-copy {
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 960px) {
  .hero h1 {
    font-size: clamp(2.4rem, 11vw, 3.6rem);
  }
}

@media (max-width: 860px) {
  .mission,
  .culture,
  .sectors,
  .pillar-grid,
  .approach-steps,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .sector-rows li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .hero::before {
    opacity: 0.7;
    right: -8rem;
    top: auto;
    bottom: -6rem;
  }
}

@media (max-width: 720px) {
  .section {
    scroll-margin-top: 9.5rem;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem 0;
    padding-top: 0.85rem;
    padding-bottom: 0.7rem;
  }

  .nav {
    justify-content: flex-start;
    gap: 0.15rem;
  }

  .nav a {
    padding: 0.3rem 0.6rem;
    font-size: 0.92rem;
  }

  .map-legend {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .eyebrow,
  .hero h1,
  .lede,
  .cta-row,
  .hero-notes,
  .reveal {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .btn:hover {
    transform: none;
  }
}
