/* ==========================================================================
   Cambridge Venture Connect — Korea Edition
   Design system: DESIGN.md (binding). Token-first; radii ONLY from tokens.
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --crimson: #DC143C;
  --crimson-deep: #A50F2D;
  --blush: #FBECEF;
  --canvas: #F3F0EE;
  --lifted: #FCFBFA;
  --ghost: #E8E2DA;
  --white: #FFFFFF;
  --ink: #141413;
  --charcoal: #262627;
  --slate: #696969;
  --taupe: #D1CDC7;

  --r-btn: 20px;
  --r-card: 24px;
  --r-media: 40px;
  --r-pill: 999px;

  --shadow-1: 0 4px 24px rgba(0, 0, 0, 0.04);
  --shadow-2: 0 24px 48px rgba(0, 0, 0, 0.08);

  --container: 1200px;
  --gutter: 48px;

  --ease-standard: ease;
  --dur-reveal: 0.8s;
  --dur-card: 1.5s;
  --dur-zoom: 2s;
  --delay-zoom: 0.4s;
}

/* 2. Reset & base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  color: var(--ink);
  font: 450 16px/1.4 "Sofia Sans", Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { flex: 1 0 auto; }

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

h1, h2, h3 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(40px, 6.5vw, 64px); line-height: 1.0; }
h2 {
  font-family: "Montserrat", "Sofia Sans", Arial, sans-serif;
  font-weight: 550;
  font-size: clamp(28px, 3.8vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h3 { font-size: 24px; line-height: 1.2; }

p { margin: 0; }

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

section { scroll-margin-top: 120px; }

/* 3. Utilities ------------------------------------------------------------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: 112px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--crimson);
  flex: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--r-btn);
  padding: 13px 28px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.btn--primary {
  background: var(--crimson);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--crimson-deep);
  transform: translateY(1px);
}

.btn--secondary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--ink);
  font-weight: 450;
}

.btn--secondary:hover {
  background-color: var(--crimson);
  border-color: var(--crimson);
  color: var(--white);
}

.btn--compact { min-height: 44px; padding: 10px 22px; font-size: 15px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--r-pill);
  padding: 10px 20px;
  background: var(--lifted);
  border: 1px solid var(--taupe);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}

.pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--crimson);
  flex: none;
}

.satellite-chip {
  display: inline-flex;
  align-items: center;
  border-radius: var(--r-pill);
  padding: 9px 18px;
  background: var(--white);
  box-shadow: var(--shadow-1);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.chip-tag {
  display: inline-flex;
  align-items: center;
  border-radius: var(--r-pill);
  padding: 7px 14px;
  background: var(--blush);
  color: var(--crimson-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.chip-note {
  display: inline-flex;
  align-items: center;
  border-radius: var(--r-pill);
  padding: 7px 14px;
  background: transparent;
  border: 1px solid var(--taupe);
  color: var(--slate);
  font-size: 13px;
  font-weight: 450;
  line-height: 1;
}

.plate {
  background: var(--white);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-1);
}

.media-stadium {
  margin: 0;
  position: relative;
  border-radius: var(--r-media);
  box-shadow: var(--shadow-2);
}

.media-stadium img,
.media-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* Inner clipping layer so images can zoom without escaping rounded corners,
   while satellite chips (outside the mask) still overhang the figure */
.media-mask {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
}

/* <picture> wrappers must pass the frame's radius down to the img,
   since img rounding relies on border-radius: inherit */
.media-stadium picture,
.media-circle picture {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.media-circle {
  margin: 0;
  position: relative;
  border-radius: 50%;
  aspect-ratio: 1;
  box-shadow: var(--shadow-2);
}

.media-chip {
  position: absolute;
  z-index: 2;
}

.watermark {
  position: absolute;
  z-index: 0;
  font-family: "Montserrat", "Sofia Sans", Arial, sans-serif;
  font-size: clamp(72px, 14vw, 160px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--ghost);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}

.section__head {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 56px;
}

/* 4. Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: clip;
  padding-top: 88px;
}

.watermark--hero {
  top: 30px;
  left: -1.5vw;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__title {
  margin-top: 34px;
  font-family: "Montserrat", "Sofia Sans", Arial, sans-serif;
  font-weight: 550;
  font-size: clamp(44px, 8.6vw, 108px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.hero__facts-line {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.hero__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--crimson);
  flex: none;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.arc {
  pointer-events: none;
}

.arc svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.arc__end {
  position: absolute;
}

/* Twin skyline panels — Seoul ↔ Cambridge */
.hero__cities {
  position: relative;
  width: 100%;
  margin-top: 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.arc--hero {
  position: absolute;
  left: 5%;
  right: 5%;
  top: -64px;
  height: 170px;
  z-index: 2;
}

.arc__end--l { left: -10px; top: 68%; transform: translateY(-50%); }
.arc__end--r { right: -10px; top: 68%; transform: translateY(-50%); }

.hero__city {
  aspect-ratio: 16 / 10;
  z-index: 1;
}

.hero__city-chip { display: none; }

@media (max-width: 767px) {
  .hero { padding-top: 56px; }
  .watermark--hero { top: 44px; }
  .hero__title { margin-top: 24px; }
  .hero__facts-line { margin-top: 30px; font-size: 15px; gap: 10px 12px; }
  /* Mobile: a single large Cambridge image — stacked twin panels read as
     two venues, so Seoul stays desktop-only (lazy img never loads here) */
  .hero__cities { grid-template-columns: 1fr; margin-top: 44px; }
  .arc--hero { display: none; }
  .hero__city--seoul { display: none; }
  .hero__city { aspect-ratio: 4 / 3; }
  .hero__city-chip {
    display: inline-flex;
    top: 14px;
    left: auto;
    right: 14px;
    padding: 7px 13px;
    font-size: 11px;
  }
}

/* Arc draw-in — begins after the title lands (motion-safe only; static = drawn) */
@media (prefers-reduced-motion: no-preference) {
  html.js .arc--hero .arc__path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
  }
  html.is-ready .arc--hero .arc__path {
    animation: arc-draw 1.2s 0.7s ease-out forwards;
  }
}

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

/* Hero load choreography — Mastercard text-mask pattern: each title line
   rises out of an overflow-hidden line box; eyebrow, facts, and actions
   follow with staggered delays once html.is-ready lands. */
.hero__line { display: block; overflow: hidden; }
.hero__line-inner { display: block; }

@media (prefers-reduced-motion: no-preference) {
  html.js .hero__line-inner {
    translate: 0 112%;
    transition: translate 0.8s var(--ease-standard);
  }
  html.js .hero .eyebrow,
  html.js .hero__facts-line,
  html.js .hero__actions {
    opacity: 0;
    translate: 0 24px;
    transition: opacity 0.8s var(--ease-standard), translate 0.8s var(--ease-standard);
  }
  html.js .hero__line:nth-child(1) .hero__line-inner { transition-delay: 0.1s; }
  html.js .hero__line:nth-child(2) .hero__line-inner { transition-delay: 0.22s; }
  html.js .hero__facts-line { transition-delay: 0.34s; }
  html.js .hero__actions { transition-delay: 0.46s; }

  html.is-ready .hero__line-inner { translate: 0 0; }
  html.is-ready .hero .eyebrow,
  html.is-ready .hero__facts-line,
  html.is-ready .hero__actions {
    opacity: 1;
    translate: 0 0;
  }
}

/* 5. About ----------------------------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  align-items: center;
}

.about__text h2 {
  margin-top: 22px;
  max-width: 18ch;
}

.about__lede {
  margin-top: 24px;
  max-width: 54ch;
  font-size: 17px;
  line-height: 1.55;
  color: var(--charcoal);
}

.about__note {
  margin-top: 20px;
}

.about__media {
  width: min(100%, 420px);
  justify-self: end;
}

/* Crop tuning: show the Google sign near the top of the About photo,
   and pull the Kendall street scene a touch leftward in its window */
.about__media img { object-position: 50% 10%; }
.venue-block__media--portrait img { object-position: 40% center; }

.about__media-chip {
  left: -10px;
  bottom: 15%;
}

@media (max-width: 1023px) {
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__media { order: -1; justify-self: start; width: min(70%, 320px); }
}

/* 6. Program timeline ------------------------------------------------------ */
.program__col {
  max-width: 720px;
  margin-inline: auto;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline__item {
  position: relative;
  padding-left: 56px;
  padding-bottom: 22px;
}

.timeline__item:last-child { padding-bottom: 0; }

.timeline__item::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 32px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--crimson);
}

.timeline__connector {
  position: absolute;
  left: 6px;
  top: 50px;
  bottom: -28px;
  width: 20px;
}

.timeline__connector svg {
  width: 100%;
  height: 100%;
  display: block;
}

.timeline__item:nth-child(even) .timeline__connector svg {
  transform: scaleX(-1);
}

.agenda-card {
  background: var(--lifted);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-1);
  padding: 26px 32px 28px;
}

.agenda-card h3 { margin-top: 16px; }

.agenda-card p {
  margin-top: 8px;
  color: var(--slate);
}

.pill--time { background: var(--white); }

@media (max-width: 767px) {
  .timeline { position: relative; }
  .timeline::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 32px;
    bottom: 48px;
    width: 1.5px;
    background: var(--crimson);
  }
  .timeline__connector { display: none; }
  .timeline__item { padding-left: 44px; }
  .timeline__item::before { left: 9.5px; }
  .agenda-card { padding: 22px 24px 24px; }
}

/* 7. Startups -------------------------------------------------------------- */
.startup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.startup-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px;
}

.startup-card__logo {
  height: 64px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
}

.startup-card__logo img {
  max-height: 56px;
  max-width: 70%;
  width: auto;
  object-fit: contain;
}

.startup-card__logo--iconic img { max-height: 48px; }

.startup-card__logotype {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.startup-card h3 { margin-top: 22px; }

.startup-card p {
  margin-top: 10px;
  margin-bottom: 20px;
  color: var(--slate);
}

.startup-card .chip-tag { margin-top: auto; }

.startup-card--tba {
  background: var(--blush);
  border: 1.5px dashed rgba(220, 20, 60, 0.4);
  border-radius: var(--r-card);
  box-shadow: none;
  justify-content: center;
}

.startup-card--tba h3 {
  margin-top: 0;
  color: var(--crimson-deep);
}

.startup-card--tba p { color: var(--slate); }

@media (max-width: 1023px) {
  .startup-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .startup-grid { grid-template-columns: 1fr; gap: 20px; }
  .startup-card { padding: 24px; }
}

/* 8. Venue ----------------------------------------------------------------- */
.venue { overflow: clip; }

.watermark--venue {
  top: 8px;
  right: -2vw;
}

.venue-block {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 72px;
  align-items: center;
}

.venue-block--flip {
  grid-template-columns: 0.85fr 1.15fr;
}

.venue-sub {
  position: relative;
  margin-top: 112px;
}

.watermark--cic {
  top: -70px;
  right: -1vw;
  font-size: clamp(90px, 15vw, 190px);
}

.venue-block__text h2 {
  margin-top: 22px;
  max-width: 20ch;
}

.prose {
  margin-top: 24px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--charcoal);
  max-width: 58ch;
}

.prose p + p { margin-top: 16px; }

.venue-block__media { width: 100%; }

.venue-block__media--portrait {
  aspect-ratio: 4 / 5;
  max-width: 440px;
  justify-self: end;
}

.venue-block--flip .venue-block__media {
  aspect-ratio: 4 / 3;
  align-self: start;
  margin-top: 24px;
}

.venue-chip--kendall { left: -12px; bottom: 48px; }
.venue-chip--cic { right: -12px; bottom: 32px; }

.venue-milestones {
  position: relative;
  z-index: 1;
  margin-top: 72px;
}

.arc--milestones {
  position: absolute;
  inset: 0;
  display: block;
}

.milestones {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 28px;
}

.milestones li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--canvas);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--charcoal);
  white-space: nowrap;
}

.milestones li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--crimson);
  flex: none;
}

@media (max-width: 1023px) {
  .venue-block,
  .venue-block--flip { grid-template-columns: 1fr; gap: 36px; }
  .venue-block__media--portrait { justify-self: start; max-width: 380px; }
  .venue-block--flip .venue-block__media { order: -1; max-width: 480px; margin-top: 0; }
  .venue-sub { margin-top: 64px; }
  .arc--milestones { display: none; }
  .milestones { justify-content: flex-start; }
}

/* 9. Navigation ------------------------------------------------------------ */
.nav {
  position: sticky;
  top: 24px;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding-inline: 20px;
}

.nav__pill {
  width: 100%;
  max-width: var(--container);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-1);
  padding: 10px 10px 10px 26px;
  transition: background-color 0.3s ease-in-out;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav__brand::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--crimson);
  flex: none;
}

.nav__brand-short { display: none; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__links a {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding-block: 14px;
  background-image: linear-gradient(var(--crimson-deep), var(--crimson-deep));
  background-size: 0 2px;
  background-repeat: no-repeat;
  background-position: 0 calc(100% - 8px);
  transition: color 0.15s ease, background-size 0.4s ease-in-out;
}

.nav__links a:hover,
.nav__links a:focus-visible,
.nav__links a.is-active {
  color: var(--crimson-deep);
  background-size: 100% 2px;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .nav__links a:nth-child(n + 4) { display: none; }
}

@media (max-width: 767px) {
  .nav__links { display: none; }
  .nav__brand-full { display: none; }
  .nav__brand-short { display: inline; }
}

/* 5. Footer shell ---------------------------------------------------------- */
.footer {
  background: var(--ink);
  color: var(--white);
  margin-top: 96px;
  padding-block: 96px 56px;
}

/* 10. Sponsors ------------------------------------------------------------- */
.sponsor-wall {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}

.sponsor-plate {
  width: 220px;
  height: 120px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--taupe);
  border-radius: var(--r-btn);
  padding: 20px;
  transition: box-shadow 0.18s ease;
}

.sponsor-plate:hover { box-shadow: var(--shadow-1); }

.sponsor-plate img {
  max-height: 64px;
  max-width: 75%;
  width: auto;
  object-fit: contain;
}

.sponsor-plate--wam {
  flex-direction: column;
  gap: 10px;
}

.sponsor-plate--wam .wam-mark { max-height: 42px; }

.wam-wordmark {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ink);
  padding-left: 0.35em;
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .sponsor-wall { gap: 14px; }
  .sponsor-plate { width: calc(50% - 7px); height: 104px; }
}

/* 10b. Hub edition cards ---------------------------------------------------- */
.hero--hub { padding-bottom: 8px; }

.edition-grid {
  position: relative;
  max-width: 960px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

/* Hub nav: links truly centered (like the edition pages); brand pinned left */
.nav__pill--hub {
  position: relative;
  justify-content: center;
}

.nav__pill--hub .nav__brand {
  position: absolute;
  left: 26px;
  top: 50%;
  translate: 0 -50%;
}

@media (max-width: 767px) {
  .nav__pill--hub { justify-content: flex-start; }
  .nav__pill--hub .nav__brand { position: static; translate: none; }
}

.edition-card { display: block; }

.edition-card__media {
  margin: 0;
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-2);
  transition: border-radius 0.3s ease-in-out;
}

.edition-card__media .media-mask {
  position: absolute;
  inset: 0;
  height: auto;
}

.edition-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.edition-card:first-of-type .edition-card__media img { object-position: 72% center; }

.edition-card__chip {
  top: 22px;
  left: 50%;
  translate: -50% 0;
}

.edition-card__go {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  font-size: 16px;
  padding: 12px 16px;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.edition-card .eyebrow { display: flex; margin-top: 26px; }

.edition-card__title {
  margin-top: 10px;
  display: inline-block;
  padding-bottom: 6px;
  background-image: linear-gradient(var(--crimson), var(--crimson));
  background-size: 0 3px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.5s ease-in-out;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .edition-card__media img { transition: scale 0.8s ease-out; }
}

@media (hover: hover) {
  .edition-card:hover .edition-card__media,
  .edition-card:focus-visible .edition-card__media { border-radius: var(--r-media); }
  .edition-card:hover .edition-card__media img,
  .edition-card:focus-visible .edition-card__media img { scale: 1.06; }
  .edition-card:hover .edition-card__title,
  .edition-card:focus-visible .edition-card__title { background-size: 100% 3px; }
  .edition-card:hover .edition-card__go,
  .edition-card:focus-visible .edition-card__go {
    background-color: var(--crimson);
    color: var(--white);
  }
}

@media (max-width: 767px) {
  .edition-grid { grid-template-columns: 1fr; gap: 40px; }
  .edition-card__media { aspect-ratio: 4 / 5; }
  .edition-card__chip { padding: 7px 13px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .edition-card__media,
  .edition-card__media img,
  .edition-card__title,
  .edition-card__go { transition: none; }
}

/* 11. Footer --------------------------------------------------------------- */
.footer__title {
  color: var(--canvas);
  max-width: 24ch;
}

.footer__facts {
  margin-top: 24px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-top: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer__nav a {
  font-size: 14px;
  font-weight: 450;
  color: rgba(255, 255, 255, 0.85);
  padding-block: 13px;
  background-image: linear-gradient(var(--crimson), var(--crimson));
  background-size: 0 2px;
  background-repeat: no-repeat;
  background-position: 0 calc(100% - 9px);
  transition: color 0.15s ease, background-size 0.4s ease-in-out;
}

.footer__nav a:hover,
.footer__nav a:focus-visible {
  color: var(--white);
  background-size: 100% 2px;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.footer__tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

/* 12. Credits page --------------------------------------------------------- */
.credits__title {
  margin-top: 22px;
  font-family: "Montserrat", "Sofia Sans", Arial, sans-serif;
  font-size: clamp(32px, 4.5vw, 44px);
  line-height: 1.1;
  font-weight: 550;
  letter-spacing: -0.02em;
}

.credits__block { margin-top: 48px; max-width: 62ch; }

.credits__block h2 {
  font-size: 20px;
  letter-spacing: -0.01em;
}

.credits__block p {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--charcoal);
}

.credits__block a {
  color: var(--crimson-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.credits__block a:hover { color: var(--crimson); }

.footer--credits { margin-top: 48px; padding-block: 40px; }

.footer__bottom--bare { margin-top: 0; }

/* 13. Motion system (JS-gated; no-JS and reduced-motion users see final states)
   One-shot reveals, Mastercard geometry: triggered ~12% before entry, 800ms. */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] {
    opacity: 0;
    translate: 0 48px;
    transition: opacity var(--dur-reveal) var(--ease-standard),
                translate var(--dur-reveal) var(--ease-standard);
  }
  html.js [data-reveal].is-visible {
    opacity: 1;
    translate: 0 0;
  }

  /* Scale variant — featured photography: figure settles from 0.6,
     then the image slow-zooms inside its mask and stays gently cropped in */
  html.js [data-reveal="scale"] {
    translate: 0 0;
    scale: 0.6;
    transition: opacity var(--dur-reveal) var(--ease-standard),
                scale var(--dur-card) var(--ease-standard);
  }
  html.js [data-reveal="scale"].is-visible { scale: 1; }
  html.js [data-reveal="scale"] img {
    scale: 1;
    transition: scale var(--dur-zoom) ease-out var(--delay-zoom);
  }
  html.js [data-reveal="scale"].is-visible img { scale: 1.12; }
  /* About portrait keeps its full field of view — no resting zoom */
  html.js .about__media[data-reveal="scale"].is-visible img { scale: 1; }

  /* Secondary CTA — crimson fill sweeps in from the left edge (desktop) */
  @media (hover: hover) {
    .btn--secondary {
      background-image: linear-gradient(var(--crimson), var(--crimson));
      background-size: 0% 100%;
      background-repeat: no-repeat;
      background-position: left center;
      transition: background-size 0.4s ease-in-out,
                  color 0.15s ease 0.12s,
                  border-color 0.4s ease;
    }
    .btn--secondary:hover {
      background-color: var(--white);
      background-size: 100% 100%;
    }
  }
}

/* Reduced motion: end states apply instantly (hover sweeps, frost, buttons) */
@media (prefers-reduced-motion: reduce) {
  .nav__links a,
  .footer__nav a,
  .btn,
  .nav__pill,
  .sponsor-plate {
    transition: none;
  }
}

/* Mobile base adjustments -------------------------------------------------- */
@media (max-width: 767px) {
  :root { --gutter: 20px; }
  .section { padding-block: 56px; }
  .section__head { margin-bottom: 36px; }
  h3 { font-size: 21px; }
}
