/* MyCorps Alumni: tokens and rules follow DESIGN.md.
   Mobile-first; breakpoints: 640 (sm), 768 (md), 1024 (lg), 1280 (xl). */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Dosis";
  src: url("/fonts/dosis-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Aileron";
  src: url("/fonts/aileron-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Aileron";
  src: url("/fonts/aileron-semibold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Aileron";
  src: url("/fonts/aileron-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
/* Metric-matched fallback so Inter swapping in doesn't shift the layout. */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  ascent-override: 90.49%;
  descent-override: 22.56%;
  line-gap-override: 0%;
  size-adjust: 107.06%;
}

/* ---------- Tokens ---------- */
:root {
  --navy-900: #032545;
  --blue-700: #00437f;
  --blue-800: #002868;
  --yellow-400: #ffdb00;
  --yellow-cta: #ffd800;
  --yellow-stripe: #fbdd0b;
  --yellow-glass: rgba(255, 217, 0, 0.75);
  --red-600: #e01e26;
  --sky-50: #e8f4ff;
  --sky-50-alt: #eaf3ff;
  --stone-100: #ece8e9;
  --ink-900: #2b2b2b;
  --ink-800: #3d3d3d;
  --line: #222;
  --on-dark-80: rgba(255, 255, 255, 0.8);
  --ink-80: rgba(43, 43, 43, 0.8);

  --font-display: "Dosis", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Inter Fallback", Arial, sans-serif;
  --font-nav: "Aileron", "Inter", "Inter Fallback", Arial, sans-serif;

  --gutter: 20px;
  --nav-h: 72px;
  --text-shadow: 1px 2px 0 rgba(0, 0, 0, 0.25);
  /* Spring (stiffness 400, damping 30) sampled over 0.6s. */
  --spring: linear(0, 0.097, 0.298, 0.514, 0.7, 0.839, 0.933, 0.989, 1.017, 1.027, 1.028, 1.023, 1.017, 1.011, 1.006, 1.003, 1.001, 1, 0.999, 0.999, 0.999, 0.999, 1, 1, 1);
}

@media (min-width: 640px) {
  :root { --gutter: 40px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--navy-900);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

[hidden] { display: none !important; }

section[id], footer[id], [id="contact"] { scroll-margin-top: var(--nav-h); }

a { color: inherit; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--yellow-400);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--navy-900);
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--blue-700);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

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

/* ---------- Type ---------- */
.heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}
.heading--light { color: #fff; }
.heading--brand { color: var(--blue-700); }

.subhead {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink-900);
}

@media (min-width: 768px) { .heading { font-size: 32px; } }
@media (min-width: 1024px) { .heading { font-size: 36px; } }
@media (min-width: 1280px) { .heading { font-size: 40px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn--primary {
  padding: 15px 23px;
  border: 1px solid var(--line);
  background: var(--blue-700);
  color: #fff;
}

.btn--small {
  padding: 7px 23px;
  border-color: rgba(217, 217, 217, 0.3);
}

.btn--light {
  padding: 16px 20px;
  background: #fff;
  color: var(--blue-700);
}

.btn--nav {
  padding: 12px 24px;
  background: var(--blue-700);
  color: #fff;
  font-family: var(--font-nav);
  font-size: 16px;
  font-weight: 600;
}

.btn--block { display: flex; width: 100%; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--sky-50);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  max-width: 1328px;
  margin-inline: auto;
  padding-inline: 20px;
}

.nav__logo img {
  width: 193px;
  height: 56px;
  object-fit: cover;
}

.nav__links { display: none; }

.nav__link,
.nav__menu-link {
  color: var(--ink-900);
  font-family: var(--font-nav);
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav__link:hover,
.nav__menu-link:hover { color: var(--blue-700); }

.nav__toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-900);
  cursor: pointer;
}

.nav__icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}
.nav__icon--close,
.nav__toggle[aria-expanded="true"] .nav__icon--open { display: none; }
.nav__toggle[aria-expanded="true"] .nav__icon--close { display: block; }

.nav__menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  padding-inline: 20px;
}

.nav__panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px 16px 16px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(1, 50, 48, 0.2);
}

.nav__menu-link {
  display: block;
  padding: 12px 0;
  text-align: center;
}

@media (min-width: 640px) {
  .nav__inner { padding-inline: 56px; }
  .nav__toggle { width: 48px; height: 48px; margin-right: -8px; }
  .nav__icon { width: 32px; height: 32px; }
  .nav__menu { padding-inline: 40px; }
}

@media (min-width: 1024px) {
  .nav__links {
    display: flex;
    align-items: center;
    gap: 48px;
  }
  .nav__toggle,
  .nav__menu { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 40px 20px 80px;
  background: linear-gradient(180deg, var(--blue-700) 0%, var(--navy-900) 100%);
  text-align: center;
}

.hero__bg {
  position: absolute;
  top: -69px;
  left: 0;
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  object-position: 52.5% 16.3%;
  border-radius: 8px;
  opacity: 0.7;
  filter: blur(2px);
  -webkit-mask-image: linear-gradient(#000 -13%, transparent 90%);
  mask-image: linear-gradient(#000 -13%, transparent 90%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  max-width: 1200px;
  margin-inline: auto;
}

.hero__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  width: 100%;
}

.announce {
  order: 3;
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
  padding: 8px;
  background: var(--yellow-glass);
  -webkit-backdrop-filter: blur(40px);
  backdrop-filter: blur(40px);
}

.announce__text {
  margin: 0;
  color: var(--ink-900);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}

.hero__title {
  max-width: 280px;
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: var(--text-shadow);
}

.hero__lead {
  margin: 0;
  color: var(--on-dark-80);
  font-size: 20px;
  line-height: 1.2;
  text-shadow: var(--text-shadow);
}

.hero__cta { align-self: stretch; }

.countries {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.countries__label {
  margin: 0;
  color: var(--on-dark-80);
  font-size: 14px;
  line-height: 1.2;
}

.countries__flags {
  display: grid;
  grid-template-columns: repeat(8, 32px);
  column-gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flag { width: 32px; height: 32px; }

@media (min-width: 640px) {
  .hero { padding: 80px 40px 40px; }
  .announce {
    order: 0;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    width: auto;
  }
  .announce__text { font-size: 20px; }
  .hero__title { max-width: none; }
  .hero__lead { width: 84%; }
  .hero__cta { align-self: center; }
  .countries__flags { grid-template-columns: repeat(8, 48px); }
  .flag { width: 48px; height: 48px; }
}

@media (min-width: 768px) {
  .hero { padding-bottom: 80px; }
  .hero__title { font-size: 48px; }
}

@media (min-width: 1024px) {
  .hero { padding: 120px 80px 80px; }
  .hero__content { width: min(68%, 816px); }
  .hero__title { font-size: 56px; }
}

@media (min-width: 1280px) {
  .hero { padding-top: 200px; }
  .hero__title { font-size: 64px; }
}

/* ---------- About ---------- */
.about { padding-bottom: 120px; }

.about__grid {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about__copy p {
  margin: 0 0 20px;
  color: var(--on-dark-80);
}
.about__copy p:last-child { margin-bottom: 0; }

.about__photo {
  position: relative;
  width: 100%;
  height: 320px;
  margin: 0;
  background: #826d6a;
  filter: drop-shadow(8px 8px 0 var(--yellow-400));
  transform: rotate(-3deg);
}

.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--navy-900);
  pointer-events: none;
}

@media (min-width: 640px) {
  .about__photo { width: min(90%, 576px); }
}

@media (min-width: 1024px) {
  .about__grid {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 3fr);
    align-items: stretch;
  }
  .about__photo {
    width: auto;
    height: auto;
    min-height: 320px;
  }
  .about__photo img {
    position: absolute;
    inset: 0;
  }
}

@media (min-width: 1280px) {
  .about { padding-top: 120px; }
}

/* ---------- Diagonal wedges ---------- */
.wedge {
  position: absolute;
  left: 0;
  width: 100%;
  height: 48px;
}
.wedge--top { top: 0; fill: var(--yellow-stripe); }
.wedge--bottom { bottom: 0; fill: var(--red-600); }

/* ---------- Team ---------- */
.team {
  position: relative;
  padding-block: 120px;
  background: #fff;
}

.team__layout {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.team__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.member {
  position: relative;
  display: flex;
  flex-direction: column;
}

.member__photo {
  width: 100%;
  aspect-ratio: 294 / 246;
  object-fit: cover;
  background: #203866;
}

.member__role {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid var(--line);
  background: var(--yellow-400);
  color: var(--ink-900);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.member__mission {
  position: absolute;
  top: 0;
  right: 0;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--stone-100);
  color: var(--ink-900);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
}

@media (min-width: 640px) {
  .team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .team__layout {
    max-width: 640px;
    margin-inline: auto;
  }
}

/* Desktop: the heading shares the first row of a 4-column pyramid. */
@media (min-width: 1024px) {
  .team__layout {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 8px;
    max-width: none;
  }
  .team__title {
    grid-area: 1 / 1 / 2 / 3;
    align-self: center;
  }
  .team__grid { display: contents; }
  .member:nth-child(1) { grid-area: 1 / 3; }
  .member:nth-child(2) { grid-area: 1 / 4; }
  .member:nth-child(3) { grid-area: 2 / 2; }
  .member:nth-child(4) { grid-area: 2 / 3; }
  .member:nth-child(5) { grid-area: 3 / 1; }
  .member:nth-child(6) { grid-area: 3 / 2; }
  .member:nth-child(7) { grid-area: 3 / 3; }
  .member:nth-child(8) { grid-area: 4 / 1; }
  .member:nth-child(9) { grid-area: 4 / 2; }
  .member:nth-child(10) { grid-area: 4 / 3; }
  .member:nth-child(11) { grid-area: 4 / 4; }
  .member:nth-child(12) { grid-area: 5 / 2; }
  .member:nth-child(13) { grid-area: 5 / 3; }
  .member:nth-child(14) { grid-area: 5 / 4; }
}

/* ---------- Achievements ---------- */
.stats { padding: 80px 0 160px; }

.stats .heading { margin-bottom: 16px; }

.stats__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin: 0;
}

.stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  padding: 24px;
}

.stat dt {
  color: #000;
  font-size: 18px;
  line-height: 1.2;
}

.stat dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}

.stat--light { background: var(--sky-50-alt); }
.stat--light dd { color: var(--blue-800); }
.stat--accent { background: var(--yellow-400); }
.stat--accent dd { color: var(--ink-900); }

/* One column alternates light and yellow. */
[data-stat="missions"] { order: 1; }
[data-stat="countries"] { order: 2; }
[data-stat="volunteers"] { order: 3; }
[data-stat="projects"] { order: 4; }
[data-stat="donation-alumni"] { order: 5; }
[data-stat="donation-missions"] { order: 6; }
[data-stat="ngos"] { order: 7; }
[data-stat="initiatives"] { order: 8; }

@media (min-width: 640px) {
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { min-height: 0; }
  /* Two columns form a checkerboard. */
  [data-stat="projects"] { order: 3; }
  [data-stat="volunteers"] { order: 4; }
  [data-stat="initiatives"] { order: 7; }
  [data-stat="ngos"] { order: 8; }
}

@media (min-width: 768px) {
  .stats { padding-top: 120px; }
}

@media (min-width: 1024px) {
  .stat { min-height: 180px; }
}

@media (min-width: 1280px) {
  .stats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat { order: 0 !important; }
}

/* ---------- Projects ---------- */
.projects {
  padding: 80px 0 160px;
  background: #fff;
}

.projects .heading { margin-bottom: 40px; }

.projects__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: var(--navy-900);
}

.project::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  pointer-events: none;
}

.project__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(#000 34%, transparent 100%);
  mask-image: linear-gradient(#000 34%, transparent 100%);
}

.project__mission {
  position: absolute;
  left: 0;
  bottom: 40px;
  margin: 0;
  padding: 16px;
  color: #fff;
  font-family: var(--font-nav);
  font-size: 18px;
  font-weight: 700;
  line-height: 0.8;
}

.project__place {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 7px 16px;
  border: 1px solid var(--line);
  background: var(--yellow-400);
  color: var(--ink-900);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .project__mission { bottom: 0; }
  .project__place {
    left: auto;
    padding: 7px 23px;
  }
}

@media (min-width: 1024px) {
  .projects { padding-top: 160px; }
  .projects__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Podcast ---------- */
.podcast {
  padding: 80px 0 160px;
  background: #fff;
}

.podcast__intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.podcast__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.podcast__text p { margin: 0; }

.podcast__cover {
  order: -1;
  width: 320px;
  height: 320px;
  border: 1px solid var(--blue-700);
  object-fit: cover;
}

.podcast__block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}
.podcast__intro + .podcast__block { margin-top: 40px; }

.embed {
  width: 100%;
  height: 80px;
  border: 0;
  border-radius: 12px;
}

.podcast__episodes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.podcast__spotify {
  align-self: center;
  width: 136px;
}

.podcast__spotify img {
  width: 100%;
  height: 56px;
  object-fit: contain;
}

@media (min-width: 640px) {
  .podcast__cover { width: 100%; height: auto; aspect-ratio: 1; }
  .embed { height: 152px; }
  .podcast__episodes { gap: 16px; }
  .podcast__spotify { width: 194px; }
  .podcast__spotify img { height: 80px; }
}

@media (min-width: 768px) {
  .podcast__cover { order: 0; width: 320px; height: 320px; }
  .embed--show { height: 232px; }
  .podcast__episodes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .podcast__intro {
    flex-direction: row;
    align-items: flex-start;
    gap: 64px;
  }
  .podcast__text { flex: 1; }
  .podcast__cover { flex: none; }
  .podcast__spotify { align-self: flex-end; }
}

@media (min-width: 1536px) {
  .podcast__episodes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Changing lives (ticker) ---------- */
.impacts {
  padding: 120px 0 160px;
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--blue-700) 44.62%, var(--navy-900) 100%);
}

.impacts .heading { margin-bottom: 40px; }

.ticker__track {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticker__item img {
  width: 100%;
  outline: 2px solid var(--navy-900);
  outline-offset: -2px;
  filter: drop-shadow(8px 8px 0 #ffda00);
}

@media (min-width: 640px) {
  .ticker {
    display: flex;
    align-items: center;
    height: 416px;
    padding-inline: 40px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 12.5%, #000 87.5%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 12.5%, #000 87.5%, transparent 100%);
  }
  .ticker__track {
    flex: none;
    flex-direction: row;
    gap: 0;
    width: max-content;
  }
  .ticker__item {
    flex: none;
    margin-right: 24px;
  }
  .ticker__item img {
    width: auto;
    height: 396px;
  }
  .ticker.is-running .ticker__track {
    animation: ticker var(--ticker-duration, 37s) linear infinite;
  }
}

@keyframes ticker {
  to { transform: translateX(calc(-1 * var(--ticker-distance, 50%))); }
}

/* ---------- CTA + footer ---------- */
.join {
  padding-block: 120px;
  background: var(--sky-50);
}

.join__panel { border: 1px solid var(--line); }

.cta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: var(--yellow-cta);
}

.cta__title { color: var(--ink-900); }

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: var(--sky-50);
}

.footer__logo {
  width: 100%;
  max-width: 442px;
  aspect-ratio: 442 / 167;
  object-fit: cover;
}

.footer__tagline {
  margin: 0;
  color: var(--ink-800);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  padding: 16px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer__nav a {
  color: var(--ink-900);
  font-family: var(--font-nav);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer__nav a:hover { color: var(--blue-700); }

.footer__bottom {
  display: flex;
  flex-direction: column-reverse;
  gap: 40px;
  padding: 16px;
  border-top: 1px solid var(--line);
  background: #fff;
  font-size: 16px;
  line-height: 1.2;
}

.footer__social {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer__follow {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__label {
  display: block;
  margin: 0;
  color: var(--ink-900);
  font-weight: 500;
}

.socials {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.socials a {
  display: block;
  width: 24px;
  height: 24px;
  color: var(--ink-900);
  transition: transform 0.2s ease;
}
.socials a:hover { transform: scale(1.1); }

.socials svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.footer__copyright {
  margin: 0;
  color: var(--ink-80);
}

.footer__address {
  color: var(--ink-80);
  font-style: normal;
}

@media (min-width: 640px) {
  .cta { padding: 16px 24px; }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand,
  .footer__nav { padding: 24px; }
  .footer__nav { border-top: 0; border-left: 1px solid var(--line); }
  .footer__bottom { gap: 24px; padding: 24px; }
}

@media (min-width: 768px) {
  .cta { align-items: center; text-align: center; }
  .cta__button { width: 50%; }
  .footer__bottom {
    flex-direction: row;
    gap: 48px;
  }
  .footer__social,
  .footer__address { flex: 1; }
}

@media (min-width: 1024px) {
  .cta {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  .cta__button { width: auto; }
}

/* ---------- 404 ---------- */
.not-found {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--nav-h));
  padding-block: 80px;
}

/* ---------- Scroll reveal ---------- */
.js .reveal {
  transition: opacity 0.6s var(--spring), transform 0.6s var(--spring);
}
.js .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(150px);
}
.js .reveal--pop {
  transition: opacity 0.5s ease-out, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.js .reveal--pop:not(.is-visible) {
  transform: rotate(-3deg) scale(0.5);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal,
  .js .reveal--pop { transition: none; }
  .js .reveal:not(.is-visible) { opacity: 1; transform: none; }
  .js .reveal--pop:not(.is-visible) { transform: rotate(-3deg); }
  .ticker { overflow-x: auto; }
  .nav__link,
  .socials a { transition: none; }
}
