/* ============================================================
   About Us — warm cream / deep navy / azure blue
   Fraunces (display) + Hanken Grotesk (body)
   ============================================================ */

:root {
  --cream: #faf6ea;
  --cream-2: #f2ecdb;
  --ink: #1c2a3a;
  --navy: #1f4568;
  --azure: #2d6ea3;
  --sky: #c3dcef;
  --sky-soft: #e2eef8;
  --teal: #3d7f92;
  --apricot: #e9a97e;
  --card: #fffdf6;
  --shadow: 0 10px 30px rgba(28, 42, 58, 0.1);
  --shadow-lg: 0 24px 60px rgba(28, 42, 58, 0.16);
  --radius: 20px;
  --font-display: "Fraunces", serif;
  --font-body: "Hanken Grotesk", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  overflow-x: clip;
  line-height: 1.6;
}

/* grain overlay for warmth */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.025 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection {
  background: var(--sky);
  color: var(--navy);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

em.accent {
  font-style: italic;
  font-weight: 500;
  color: var(--azure);
}
em.accent-light {
  font-style: italic;
  font-weight: 500;
  color: var(--sky);
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}

.section {
  padding: 7rem 6vw;
  max-width: 1300px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 4rem;
}
.section-head h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
}

/* ============ buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  text-decoration: none;
  transition:
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s ease,
    background 0.25s ease;
}
.btn .arrow {
  transition: transform 0.25s ease;
  display: inline-block;
}
.btn:hover .arrow {
  transform: translateX(4px);
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-dark {
  background: var(--navy);
  color: var(--cream);
  box-shadow: 0 4px 0 rgba(28, 42, 58, 0.35);
}
.btn-dark:hover {
  background: var(--ink);
  box-shadow:
    0 6px 0 rgba(28, 42, 58, 0.35),
    var(--shadow);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid rgba(31, 69, 104, 0.35);
}
.btn-ghost:hover {
  border-color: var(--navy);
  background: rgba(195, 220, 239, 0.25);
}

.btn-cream {
  background: var(--cream);
  color: var(--navy);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25);
}
.btn-cream:hover {
  background: #fff;
}

.btn-sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.92rem;
}

/* ============ nav ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 4vw;
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease,
    padding 0.35s ease;
}
.nav.scrolled {
  background: rgba(250, 246, 234, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(28, 42, 58, 0.08);
  padding: 0.6rem 4vw;
}
.nav-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--azure), var(--navy) 70%);
  box-shadow: inset -3px -3px 6px rgba(0, 0, 0, 0.25);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  gap: 1.8rem;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.2rem 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--azure);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}
.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ============ hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 6vw 5rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: blob-drift 18s ease-in-out infinite alternate;
}
.blob-a {
  width: 520px;
  height: 520px;
  background: var(--sky);
  top: -140px;
  right: -100px;
}
.blob-b {
  width: 420px;
  height: 420px;
  background: #cfe6ea;
  bottom: -160px;
  left: -120px;
  animation-delay: -9s;
}
@keyframes blob-drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(60px, 40px) scale(1.12);
  }
}

.hero-inner {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}
/* frame on the left, copy on the right — nudged apart for balance */
.frame-stage {
  order: 1;
  transform: translateX(-26px);
}
.hero-copy {
  order: 2;
  transform: translateX(26px);
}
.hero-copy h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  margin-bottom: 1.4rem;
}
.lede {
  font-size: 1.15rem;
  color: rgba(28, 42, 58, 0.72);
  max-width: 46ch;
  margin-bottom: 2.2rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.4rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hero-meta p {
  font-size: 0.9rem;
  color: rgba(28, 42, 58, 0.6);
}
.avatar-stack {
  display: flex;
}
.avatar-stack span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2.5px solid var(--cream);
  background: var(--sky);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-left: -10px;
}
.avatar-stack span:first-child {
  margin-left: 0;
}
.avatar-stack span:nth-child(2) {
  background: #cfe6ea;
  color: var(--teal);
}
.avatar-stack span:nth-child(3) {
  background: #f6ddc9;
  color: #a4622f;
}
.avatar-stack span:nth-child(4) {
  background: var(--navy);
  color: var(--cream);
}
.avatar-stack span:nth-child(5) {
  background: #f3e6b8;
  color: #7c6612;
}
/* five sets of initials need a touch less room than four single letters */
.avatar-stack span {
  font-size: 0.66rem;
}

/* ============ the frame ============ */
.frame-stage {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 2rem 0;
}
.arch-frame {
  position: relative;
  width: min(460px, 82vw);
  aspect-ratio: 1 / 1.08;
  border-radius: 999px 999px 36px 36px;
  border: 3px solid var(--navy);
  background: var(--card);
  padding: 14px;
  box-shadow: var(--shadow-lg);
}
/* dashed outer halo ring */
.arch-frame::before {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 999px 999px 48px 48px;
  border: 2px dashed rgba(45, 110, 163, 0.5);
  animation: halo-breathe 5s ease-in-out infinite;
}
@keyframes halo-breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.015);
    opacity: 1;
  }
}
/* the inside — holds the scene, masked to the arch */
.arch-inner {
  width: 100%;
  height: 100%;
  border-radius: 999px 999px 26px 26px;
  overflow: hidden;
  background:
    radial-gradient(circle, rgba(31, 69, 104, 0.13) 1.3px, transparent 1.3px) 0
      0 / 22px 22px,
    linear-gradient(170deg, var(--sky-soft), var(--cream-2));
}
.arch-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%; /* favour the path & people over the sky */
  display: block;
  transform: scale(1.01); /* hides any hairline at the mask edge */
}
.arch-keystone {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cream);
  font-size: 0.9rem;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(28, 42, 58, 0.3);
  animation: keystone-spin 9s linear infinite;
}
@keyframes keystone-spin {
  from {
    transform: translateX(-50%) rotate(0deg);
  }
  to {
    transform: translateX(-50%) rotate(360deg);
  }
}
/* rotating conic orbit behind the arch */
.arch-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0 70%,
    rgba(195, 220, 239, 0.55) 85%,
    transparent 100%
  );
  animation: orbit-spin 14s linear infinite;
  z-index: -1;
}
@keyframes orbit-spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* floating cards */
.float-card {
  position: absolute;
  background: var(--card);
  border-radius: 16px;
  padding: 0.95rem 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(28, 42, 58, 0.06);
  min-width: 140px;
  z-index: 2;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.float-card:hover {
  box-shadow: var(--shadow-lg);
}
.fc-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--azure);
  margin-bottom: 0.15rem;
}
.fc-value {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.1;
}
.fc-value.alt {
  color: var(--teal);
}
.fc-caption {
  font-size: 0.8rem;
  color: rgba(28, 42, 58, 0.55);
}

.fc-1 {
  top: 5%;
  left: -10%;
}
.fc-2 {
  top: 22%;
  right: -8%;
}
.fc-3 {
  bottom: 26%;
  left: -7%;
}
.fc-4 {
  bottom: 3%;
  right: -7%;
}

/* gentle bob, staggered — applied to an inner wrapper via animation on the card itself */
.fc-1 {
  animation: bob 5.2s ease-in-out infinite;
}
.fc-2 {
  animation: bob 6.1s ease-in-out 0.8s infinite;
}
.fc-3 {
  animation: bob 5.6s ease-in-out 1.4s infinite;
}
.fc-4 {
  animation: bob 6.6s ease-in-out 0.4s infinite;
}
@keyframes bob {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -12px;
  }
}

.sparkle {
  position: absolute;
  color: var(--azure);
  animation: twinkle 3s ease-in-out infinite;
  z-index: 1;
}
.sp-1 {
  top: 2%;
  right: 16%;
  font-size: 1.3rem;
}
.sp-2 {
  bottom: 12%;
  left: 4%;
  font-size: 1rem;
  animation-delay: 1s;
}
.sp-3 {
  top: 46%;
  right: -2%;
  font-size: 0.85rem;
  animation-delay: 2s;
}
@keyframes twinkle {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.8) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.15) rotate(25deg);
  }
}

/* ============ marquee ============ */
.marquee {
  background: var(--navy);
  color: var(--cream);
  overflow: hidden;
  padding: 1.1rem 0;
  transform: rotate(-1.2deg) scale(1.02);
  box-shadow: var(--shadow);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  white-space: nowrap;
}
.marquee-track span em {
  font-style: italic;
  color: var(--sky);
}
.marquee-track i {
  font-style: normal;
  color: var(--apricot);
  font-size: 0.8rem;
}
@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ============ story ============ */
.story-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: start;
}
.story-left {
  position: sticky;
  top: 7rem;
}
.story-left h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}
.squiggle {
  display: block;
  width: 120px;
  margin-top: 1.2rem;
  color: var(--apricot);
}
.story-right p {
  font-size: 1.1rem;
  color: rgba(28, 42, 58, 0.75);
  margin-bottom: 1.6rem;
}

.pull-quote {
  background: var(--card);
  border-left: 4px solid var(--azure);
  border-radius: 14px;
  padding: 1.6rem 1.8rem;
  box-shadow: var(--shadow);
  transform: rotate(-1deg);
  transition: transform 0.3s ease;
  margin-top: 2rem;
}
.pull-quote:hover {
  transform: rotate(0deg) translateY(-3px);
}
.pull-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem !important;
  color: var(--navy) !important;
  margin-bottom: 0.6rem !important;
}
.pull-quote footer {
  font-size: 0.85rem;
  color: rgba(28, 42, 58, 0.55);
}

/* ============ stats ============ */
.stats {
  padding-top: 2rem;
}
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: var(--navy);
  border-radius: 28px;
  padding: 3.2rem 2.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.stats-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 12% 20%,
      rgba(195, 220, 239, 0.18),
      transparent 40%
    ),
    radial-gradient(
      circle at 88% 80%,
      rgba(233, 169, 126, 0.12),
      transparent 40%
    );
}
.stat {
  text-align: center;
  position: relative;
}
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 600;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 0.5rem;
}
/* real metrics are sentences, not two-word placeholders — drop the wide
   letter-spacing and all-caps so they stay legible when they wrap */
.stat-label {
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--sky);
  max-width: 22ch;
  margin: 0 auto;
  text-wrap: balance;
}

.stats-sources {
  margin: 1.1rem auto 0;
  max-width: 900px;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.6;
  color: rgba(28, 42, 58, 0.55);
}
.stats-sources a {
  color: var(--azure);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.stats-sources a:hover {
  color: var(--navy);
}

/* ============ team ============ */
/* Flex rather than a 3-column grid: with five people the final row would
   sit hard left under a gap. Wrapping flex items lets the last row centre. */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.6rem;
}
.team-card {
  flex: 0 1 calc((100% - 3.2rem) / 3);
  min-width: 220px;
  background: var(--card);
  border: 1.5px solid rgba(28, 42, 58, 0.07);
  border-radius: var(--radius);
  padding: 2.2rem 1.6rem;
  text-align: center;
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease;
}
.team-card:hover {
  transform: translateY(-8px) rotate(-0.5deg);
  box-shadow: var(--shadow-lg);
}
.team-card:hover .team-avatar {
  transform: scale(1.08);
  box-shadow:
    0 0 0 5px var(--cream),
    0 0 0 7px var(--azure);
}
.team-avatar {
  width: 84px;
  height: 84px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease;
  box-shadow:
    0 0 0 5px var(--cream),
    0 0 0 6.5px rgba(28, 42, 58, 0.15);
}
.av-1 {
  background: linear-gradient(135deg, var(--sky), #92bcd9);
  color: var(--navy);
}
.av-2 {
  background: linear-gradient(135deg, #cfe6ea, #9fc9d3);
  color: var(--teal);
}
.av-3 {
  background: linear-gradient(135deg, #f6ddc9, #eab486);
  color: #94551f;
}
.av-4 {
  background: linear-gradient(135deg, var(--navy), var(--azure));
  color: var(--cream);
}
.av-5 {
  background: linear-gradient(135deg, #f3e6b8, #e3cd83);
  color: #7c6612;
}
.av-6 {
  background: linear-gradient(135deg, #dbe2e9, #9aabbd);
  color: #37485c;
}
.team-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}
.team-role {
  font-size: 0.88rem;
  color: rgba(28, 42, 58, 0.55);
}
/* plain text, not a link: the card is already a <button>, and an anchor
   nested inside one is invalid and unreachable by keyboard */
.team-email {
  font-size: 0.82rem;
  color: var(--azure);
  margin-top: 0.15rem;
  overflow-wrap: anywhere;
}

/* ============ CTA ============ */
.cta-panel {
  position: relative;
  background: var(--ink);
  border-radius: 32px;
  padding: 5rem 3rem;
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 110%,
      rgba(45, 110, 163, 0.35),
      transparent 55%
    ),
    radial-gradient(
      circle at 85% -10%,
      rgba(195, 220, 239, 0.2),
      transparent 45%
    );
  /* purely decorative: without this the inset layer sits on top of the panel's
     contents and swallows clicks on the button below it */
  pointer-events: none;
}
/* the h2 and p below lift themselves above the glow with position: relative;
   the button needs the same or it paints under it */
.cta-panel .btn {
  position: relative;
}
.cta-panel h2 {
  position: relative;
  color: var(--cream);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  margin-bottom: 1rem;
}
.cta-panel p {
  position: relative;
  color: rgba(250, 246, 234, 0.7);
  margin-bottom: 2.2rem;
  font-size: 1.1rem;
}
.cta-star {
  position: absolute;
  color: var(--apricot);
  animation: twinkle 3.4s ease-in-out infinite;
  pointer-events: none;
}
.st-1 {
  top: 18%;
  left: 12%;
  font-size: 1.4rem;
}
.st-2 {
  top: 30%;
  right: 14%;
  font-size: 1rem;
  animation-delay: 1.2s;
}
.st-3 {
  bottom: 20%;
  left: 22%;
  font-size: 0.9rem;
  animation-delay: 2.1s;
}

/* ============ footer ============ */
.footer {
  padding: 3rem 6vw;
}
.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1.5px solid rgba(28, 42, 58, 0.1);
  padding-top: 2rem;
}
.footer p {
  font-size: 0.88rem;
  color: rgba(28, 42, 58, 0.55);
}

/* ============ entrance animations ============ */
/* hero load-in */
.rise {
  opacity: 0;
  transform: translateY(26px);
  animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* float cards keep bobbing after entrance: entrance uses opacity only there */
.float-card.rise {
  animation-name: rise-in-soft;
}
@keyframes rise-in-soft {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* scroll reveals */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .rise,
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============ responsive ============ */
/* keep the left-hand cards off the viewport edge as the window narrows */
@media (max-width: 1500px) {
  .fc-1 {
    left: -7%;
  }
  .fc-3 {
    left: -5%;
  }
}
@media (max-width: 1200px) {
  .fc-1 {
    left: -3%;
  }
  .fc-3 {
    left: -1%;
  }
  /* the full initiative name is long — step it down before it crowds the links */
  .brand-name {
    font-size: 1.05rem;
  }
}

@media (max-width: 1024px) {
  .brand-name {
    font-size: 0.92rem;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 5rem;
  }
  /* stacked: lead with the copy again, drop the horizontal nudge */
  .hero-copy {
    order: 1;
    transform: none;
  }
  .frame-stage {
    order: 2;
    margin-top: 1rem;
    transform: none;
  }
  .fc-1 {
    left: 0;
  }
  .fc-3 {
    left: -2%;
  }
  .stats-band {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2.4rem;
  }
  .story-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .story-left {
    position: static;
  }
}
@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .section {
    padding: 5rem 6vw;
  }
  .hero {
    padding-top: 7rem;
  }
  .team-card {
    flex-basis: 100%;
  }
  .fc-1,
  .fc-2,
  .fc-3,
  .fc-4 {
    min-width: 116px;
    padding: 0.7rem 0.9rem;
  }
  .fc-value {
    font-size: 1.3rem;
  }
  .fc-2 {
    right: -2%;
  }
  .fc-4 {
    right: 0;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ============ page transition into the atlas ============ */
/* Matches the atlas loader exactly, so the screen stays put across the
   page swap and only fades out once the brain has rendered. */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background: var(--navy);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.45s ease,
    visibility 0.45s;
}
.page-transition.active {
  opacity: 1;
  visibility: visible;
}
.pt-ring {
  display: block;
  width: 50px;
  height: 50px;
  margin: 0 auto 1rem;
  border: 2px solid rgba(250, 246, 234, 0.25);
  border-top-color: var(--cream);
  border-radius: 50%;
  animation: pt-spin 1s linear infinite;
}
@keyframes pt-spin {
  to {
    transform: rotate(360deg);
  }
}
.pt-core p {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250, 246, 234, 0.72);
  text-align: center;
}

/* ============ "See Impact" chooser ============ */
.impact-menu {
  position: relative;
}
.impact-options {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  width: 288px;
  background: var(--card);
  border: 1.5px solid rgba(28, 42, 58, 0.08);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 0.45rem;
  display: grid;
  gap: 0.15rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  transition:
    opacity 0.22s ease,
    transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
    visibility 0.22s;
  z-index: 120;
}
.impact-menu.open .impact-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.impact-option {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 0.8rem;
  border-radius: 13px;
  text-decoration: none;
  color: var(--ink);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.impact-option:hover {
  background: var(--sky-soft);
  transform: translateX(2px);
}
.io-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--sky-soft);
  color: var(--navy);
}
.impact-option:hover .io-icon {
  background: var(--sky);
  color: var(--azure);
}
.io-icon svg {
  width: 21px;
  height: 21px;
}
.io-text {
  display: grid;
  line-height: 1.25;
}
.io-text strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}
.io-text em {
  font-style: normal;
  font-size: 0.8rem;
  color: rgba(28, 42, 58, 0.55);
}
.io-arrow {
  margin-left: auto;
  color: var(--azure);
  opacity: 0;
  transform: translateX(-4px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.impact-option:hover .io-arrow {
  opacity: 1;
  transform: translateX(0);
}
@media (max-width: 640px) {
  .impact-options {
    width: min(288px, calc(100vw - 2rem));
  }
}

/* ============ team member modal ============ */
.tm-overlay {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(20, 32, 46, 0.55);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.tm-overlay[hidden] {
  display: none;
}
.tm-overlay.open {
  opacity: 1;
}

.tm-dialog {
  position: relative;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: center;
  width: min(760px, 100%);
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  padding: 2.2rem;
  background: var(--card);
  border: 1.5px solid rgba(28, 42, 58, 0.08);
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
  transform: translateY(14px) scale(0.97);
  transition:
    transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.28s ease;
  opacity: 0;
}
.tm-overlay.open .tm-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.tm-close {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  line-height: 1;
  color: rgba(28, 42, 58, 0.5);
  background: var(--cream-2);
  cursor: pointer;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}
.tm-close:hover {
  color: var(--ink);
  transform: rotate(90deg);
}

/* left: photo, or the initials tile until a real photo is supplied */
.tm-photo {
  position: relative;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 1.5px rgba(28, 42, 58, 0.08);
}
.tm-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tm-initials {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 3.4rem;
  letter-spacing: 0.02em;
}

.tm-body {
  min-width: 0;
}
.tm-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
}
.tm-dialog h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.1;
  margin-bottom: 0.3rem;
}
.tm-role {
  font-size: 0.95rem;
  color: var(--azure);
  font-weight: 600;
  margin-bottom: 1rem;
}
.tm-bio {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(28, 42, 58, 0.75);
}

/* the cards are buttons now — strip the UA styling */
.team-card {
  font: inherit;
  color: inherit;
  cursor: pointer;
  appearance: none;
}

@media (max-width: 640px) {
  .tm-dialog {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    padding: 1.8rem 1.4rem;
    text-align: center;
  }
  .tm-photo {
    width: 180px;
    margin: 0 auto;
  }
}

/* ============ myth vs fact ============ */
.myth-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.myth-card {
  /* the button is just a hit target; the flip happens on .myth-inner */
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  perspective: 1400px;
  min-height: 250px;
}

.myth-inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.myth-card[aria-pressed="true"] .myth-inner {
  transform: rotateY(180deg);
}

.myth-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.9rem 1.7rem;
  border-radius: var(--radius);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  text-align: left;
}

.myth-front {
  background: var(--card);
  border: 1.5px solid rgba(28, 42, 58, 0.07);
  box-shadow: var(--shadow);
  justify-content: space-between;
}
.myth-card:hover .myth-front {
  box-shadow: var(--shadow-lg);
}

.myth-back {
  background: var(--navy);
  border: 1.5px solid var(--navy);
  box-shadow: var(--shadow-lg);
  transform: rotateY(180deg);
  color: var(--cream);
  justify-content: center;
}

.myth-tag {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--apricot);
}
.myth-tag.alt {
  color: var(--sky);
}

.myth-claim {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--ink);
}

.myth-cue {
  font-size: 0.82rem;
  color: rgba(28, 42, 58, 0.5);
}
.myth-card:hover .myth-cue {
  color: var(--azure);
}

.myth-figure {
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1.1;
  color: var(--sky);
}
.myth-detail {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(250, 246, 234, 0.82);
}
.myth-source {
  margin-top: 0.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(250, 246, 234, 0.5);
}

@media (max-width: 720px) {
  .myth-grid {
    grid-template-columns: 1fr;
  }
  .myth-card {
    min-height: 230px;
  }
}

/* flipping in 3D is the point, but honour a reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .myth-inner {
    transition: none;
  }
}

/* ============ shine sweep on the CTA words ============ */
/* A bright band travels across the glyphs, then rests, so it reads as an
   occasional catch of light rather than a constant animation.
   Selector is em.shine to outrank em.accent-light's colour. */
em.shine {
  /* the base sits a shade below --sky so the white core actually reads as a
     highlight travelling over it rather than blending into it */
  background-image: linear-gradient(
    100deg,
    #9dbdd8 0%,
    #9dbdd8 36%,
    #d5e8f7 44%,
    #ffffff 50%,
    #d5e8f7 56%,
    #9dbdd8 64%,
    #9dbdd8 100%
  );
  background-size: 250% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* the glyph shape still casts a shadow even with a transparent fill,
     which gives the letters a soft glow behind the gloss */
  text-shadow: 0 0 22px rgba(195, 220, 239, 0.3);
  animation: shine-sweep 5s ease-in-out infinite;
}

/* With a 250% background and no-repeat, positions outside 0-100% leave part
   of the text uncovered (and therefore invisible, since the fill is
   transparent). 100% parks the highlight just off the left edge, 0% just off
   the right, so the band sweeps across and the glyphs stay covered throughout. */
@keyframes shine-sweep {
  0% {
    background-position: 100% 0;
  }
  /* the sweep itself takes about 1.4s of the 5s cycle, then it rests */
  28% {
    background-position: 0% 0;
  }
  100% {
    background-position: 0% 0;
  }
}

/* Same sweep, retuned for dark text on a light card: a white core would vanish
   into the cream, so the travelling band is a lighter azure instead. */
.shine-ink {
  background-image: linear-gradient(
    100deg,
    var(--navy) 0%,
    var(--navy) 36%,
    #3f7cae 44%,
    #7db6df 50%,
    #3f7cae 56%,
    var(--navy) 64%,
    var(--navy) 100%
  );
  background-size: 250% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine-sweep 5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  em.shine,
  .shine-ink {
    animation: none;
    background-position: 50% 0;
  }
}

/* a place name needs to fit the card, so it runs smaller than a numeral */
.fc-value.sm {
  font-size: 1.15rem;
  line-height: 1.2;
}
