/* UChicago Effective Altruism — static clone of uchicagoea.org
   Theme values measured from the live Squarespace site:
   accent hsl(189,82%,31%), light accent hsl(184,100%,80%), dark accent hsl(196,58%,25%)
   Headings: Raleway 400 · Body: Merriweather 400 · Buttons: Inter Tight 500 */

:root {
  --accent: hsl(189, 82%, 31%);
  --accent-light: hsl(184, 100%, 80%);
  --accent-dark: hsl(196, 58%, 25%);
  --white: #fff;
  --black: #000;
  --cream: hsl(39, 45%, 96%);
  --warm: hsl(21, 72%, 50%);
  --warm-soft: hsl(33, 85%, 91%);

  --font-heading: "Raleway", sans-serif;
  --font-body: "Merriweather", serif;
  --font-button: "Raleway", sans-serif;

  /* per-theme defaults (white theme) */
  --bg: var(--white);
  --heading: var(--black);
  --text: var(--black);
  --link: var(--black);
  --btn-bg: var(--accent);
  --btn-text: var(--white);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: var(--black);
  background: var(--white);
}

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

/* ---------- Section themes (match Squarespace data-section-theme) ---------- */

.theme-white        { --bg: var(--white); --heading: var(--black); --text: var(--black); --link: var(--black); --btn-bg: var(--accent); --btn-text: var(--white); }
.theme-cream        { --bg: var(--cream); --heading: var(--accent-dark); --text: hsl(200, 15%, 18%); --link: hsl(200, 15%, 18%); --btn-bg: var(--accent); --btn-text: var(--white); }
.theme-white-bold   { --bg: var(--white); --heading: var(--accent); --text: var(--black); --link: var(--black); --btn-bg: var(--accent); --btn-text: var(--white); }
.theme-bright       { --bg: var(--accent); --heading: var(--white); --text: var(--white); --link: var(--white); --btn-bg: var(--white); --btn-text: var(--accent); }
.theme-dark         { --bg: var(--accent-dark); --heading: var(--white); --text: var(--white); --link: var(--white); --btn-bg: var(--accent); --btn-text: var(--white); }
.theme-dark-bold    { --bg: var(--accent-dark); --heading: var(--white); --text: var(--white); --link: var(--white); --btn-bg: var(--accent); --btn-text: var(--white); }
.theme-black        { --bg: var(--black); --heading: var(--white); --text: var(--white); --link: var(--white); --btn-bg: var(--accent); --btn-text: var(--white); }
.theme-black-bold   { --bg: var(--black); --heading: var(--accent-light); --text: var(--white); --link: var(--white); --btn-bg: var(--accent-dark); --btn-text: var(--white); }

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.25;
  color: var(--heading);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); font-weight: 500; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.55rem, 2.7vw, 2.3rem); font-weight: 500; }
h4 { font-size: clamp(1.2rem, 1.7vw, 1.5rem); line-height: 1.4; }

p, li {
  color: var(--text);
  margin: 0 0 1em;
}

li { margin-bottom: 0.25em; }

p:last-child { margin-bottom: 0; }

.rich a, footer a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  transition: opacity 0.15s ease;
}

.rich a:hover, footer a:hover { opacity: 0.75; }

.sqsrte-large { font-size: 1.28em; line-height: 1.75; }
.sqsrte-small { font-size: 0.85em; }

ul, ol { padding-left: 1.5em; }

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

.btn {
  display: inline-block;
  font-family: var(--font-button);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  color: var(--btn-text);
  background: var(--btn-bg);
  padding: 1em 1.75em;
  border-radius: 999px;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.1);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.btn:hover { opacity: 0.92; transform: translateY(-2px); }

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

.btn--ghost {
  background: transparent;
  border: 2px solid currentColor;
  color: var(--heading);
  box-shadow: none;
}

/* ---------- Floating menu + slide-out sidebar ---------- */

.nav-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-button);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--white);
  background: rgba(20, 51, 64, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 0;
  border-radius: 999px;
  padding: 0.75em 1.4em;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, background 0.15s ease;
}

.nav-toggle:hover { transform: translateY(-1px); background: rgba(20, 51, 64, 0.97); }

.nav-toggle__bars { display: inline-flex; flex-direction: column; gap: 4px; }
.nav-toggle__bars span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 310;
  background: rgba(9, 27, 34, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

body.nav-open .nav-scrim { opacity: 1; pointer-events: auto; }

.sidebar {
  position: fixed;
  top: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 320;
  width: min(340px, 90vw);
  background: hsl(199, 55%, 17%);
  border-radius: 26px;
  padding: 2em 2.2em 2.4em;
  overflow-y: auto;
  box-shadow: -12px 0 44px rgba(0, 0, 0, 0.3);
  transform: translateX(calc(100% + 40px));
  transition: transform 0.3s ease;
}

body.nav-open .sidebar { transform: none; }

.sidebar__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  margin-bottom: 1.8em;
}

.sidebar__logo img { width: 170px; height: auto; filter: brightness(0) invert(1); opacity: 0.95; }

.sidebar__close {
  background: none;
  border: 0;
  color: var(--white);
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.1em 0.3em;
  opacity: 0.8;
}

.sidebar__close:hover { opacity: 1; }

.sidebar__nav a {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  padding: 0.42em 0;
}

.sidebar__nav a:hover, .sidebar__nav a.active { text-decoration: underline; text-underline-offset: 0.3em; }

.sidebar__label {
  display: block;
  font-family: var(--font-button);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin: 1.5em 0 0.3em;
}

.sidebar__group a { font-weight: 400; font-size: 1.08rem; padding-left: 0.9em; }

/* ---------- Photo gallery ---------- */

.gallery {
  columns: 3 280px;
  column-gap: 18px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery img {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 18px;
  break-inside: avoid;
  display: block;
}

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

.sec {
  position: relative;
  background: var(--bg);
  padding: clamp(3.2rem, 5.5vw, 5.5rem) 0;
  display: flex;
  align-items: center;
}

.sec--medium { min-height: 46vh; }
.sec--hero-home { min-height: 58vh; align-items: flex-end; padding-bottom: clamp(2.5rem, 4vw, 4rem); }

.hero-logo {
  position: absolute;
  top: 26px;
  left: 28px;
  z-index: 50;
  display: block;
}

.hero-logo img {
  width: clamp(170px, 18vw, 230px);
  height: auto;
  filter: brightness(0) invert(1) drop-shadow(0 2px 10px rgba(0, 0, 0, 0.55));
}

.sec__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

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

.sec__overlay { position: absolute; inset: 0; background: var(--black); }

.container {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3vw;
}

.container--medium { max-width: 980px; }
.container--narrow { max-width: 740px; }

.text-center { text-align: center; }
.text-center .row { justify-items: center; }

/* ---------- Rows / columns (12-col grid like Squarespace classic layout) ---------- */

.row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 34px;
  align-items: start;
}

.row > .col { grid-column: span 12; min-width: 0; }

.row--center, .sec--hero-home .row { align-items: center; }

.spacer { height: 28px; }

/* ---------- Card lists (Squarespace "user items list": simple grid) ---------- */

.list-title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--heading);
  margin: 0 0 1.1em;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3em 34px;
  max-width: 1100px;
  margin: 0 auto;
}

.cards--wide { max-width: 1400px; }

.card { text-align: center; }

.card__media {
  width: min(250px, 75%);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.6em;
}

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

.card__media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(189, 45%, 91%);
  color: var(--accent);
  font-family: "Fraunces", serif;
  font-size: 2.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--heading);
  margin: 0 0 0.9em;
}

.card__desc { font-size: 0.9rem; line-height: 1.8; text-align: left; }
.card__desc p { margin-bottom: 0.9em; }
.card--center-desc .card__desc { text-align: center; }

/* ---------- Carousel (alumni) ---------- */

.carousel { position: relative; max-width: 1100px; margin: 0 auto; }

.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 68px) / 3);
  column-gap: 34px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 8px;
}

.carousel__track::-webkit-scrollbar { display: none; }

.carousel__track .card { scroll-snap-align: start; }

.carousel__arrow {
  position: absolute;
  top: 40%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid currentColor;
  background: var(--bg);
  color: var(--heading);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel__arrow--prev { left: -60px; }
.carousel__arrow--next { right: -60px; }

/* ---------- Warm components ---------- */

.announce {
  background: var(--warm-soft);
  font-family: var(--font-button);
  font-size: 1rem;
  text-align: center;
  padding: 0.85em 3vw;
  color: hsl(21, 45%, 22%);
}

.announce a {
  color: hsl(21, 72%, 34%);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.eyebrow {
  font-family: var(--font-button);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.2em;
}

.card--panel {
  background: var(--white);
  border-radius: 22px;
  padding: 2.4em 1.9em 2.1em;
  box-shadow: 0 10px 34px rgba(24, 76, 90, 0.09);
}

.icon-circle {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: hsl(189, 55%, 94%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.4em;
}

.icon-circle svg {
  width: 42px;
  height: 42px;
  stroke: var(--accent);
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.photo-banner {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.22);
  max-width: 980px;
  margin: 0 auto;
}

.photo-banner img { width: 100%; height: auto; max-height: 520px; object-fit: cover; object-position: center 35%; }

.photo-banner--side { max-width: 400px; margin: 0 0 0 auto; }
.photo-banner--side img { max-height: none; object-fit: unset; }

@media (max-width: 799px) {
  .photo-banner--side { margin: 1.5em auto 0; }
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  justify-content: center;
  margin-top: 1.6em;
}

.callout {
  background: var(--white);
  border-radius: 22px;
  padding: 2.4em 2.2em;
  box-shadow: 0 10px 34px rgba(24, 76, 90, 0.09);
  text-align: center;
  max-width: 740px;
  margin: 0 auto;
}

.cal-embed {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 34px rgba(24, 76, 90, 0.09);
}

.cal-embed iframe { display: block; width: 100%; height: 620px; border: 0; }

.callout--teal { background: var(--accent); }
.callout--teal h3, .callout--teal p { color: var(--white); }
.callout--teal .eyebrow { color: var(--accent-light); }

/* ---------- Embeds ---------- */

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 800px;
  margin: 0 auto;
}

.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.form-embed { background: var(--white); border-radius: 4px; overflow: hidden; }

.form-embed iframe { display: block; width: 100%; height: 533px; border: 0; background: transparent; }

/* ---------- Footnote ---------- */

.footnote { font-size: 0.95rem; font-style: italic; }

/* ---------- Responsive ---------- */

@media (max-width: 799px) {
  .row { grid-template-columns: 1fr; row-gap: 1.5em; }
  .row > .col { grid-column: 1 / -1 !important; }
  .col--spacer-only { display: none; }

  .cards { grid-template-columns: 1fr; }
  .carousel__track { grid-template-columns: none; grid-auto-columns: 85%; }
  .cards { gap: 3em; }

  .carousel__arrow--prev { left: 4px; }
  .carousel__arrow--next { right: 4px; }

  .nav-toggle { top: 14px; right: 14px; padding: 0.65em 1.15em; }
}

@media (min-width: 800px) and (max-width: 1099px) {
  .carousel__arrow--prev { left: -8px; }
  .carousel__arrow--next { right: -8px; }
}

/* ==================================================================
   Editorial design system (body.ed)
   ================================================================== */

body.ed {
  --ink: hsl(200, 30%, 14%);
  --ink-soft: hsl(200, 15%, 32%);
  --paper: hsl(39, 45%, 96%);
  --serif: "Fraunces", serif;
  --sans: "Nunito Sans", sans-serif;
  --navy: hsl(199, 55%, 17%);
  font-family: var(--sans);
  font-size: 1.04rem;
  line-height: 1.75;
  letter-spacing: 0;
  color: var(--ink);
  background: var(--paper);
}

.ed h1, .ed h2, .ed h3, .ed h4, .ed .list-title {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.ed h1 em, .ed h2 em, .ed h3 em { font-style: normal; font-weight: 700; color: var(--accent); }

.ed .wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(1.2rem, 4vw, 3rem); }

/* light section themes flow into the paper background */
.ed .theme-white, .ed .theme-white-bold, .ed .theme-cream {
  --bg: var(--paper);
  --heading: var(--ink);
  --text: var(--ink-soft);
  --link: var(--ink);
}

.ed .rich a { text-underline-offset: 0.2em; text-decoration-color: hsla(189, 82%, 31%, 0.45); }
.ed .rich a:hover { color: var(--accent); opacity: 1; }
.ed .theme-bright .rich a, .ed .theme-dark .rich a, .ed .theme-dark-bold .rich a, .ed .theme-black .rich a { text-decoration-color: currentColor; }
.ed .theme-bright .rich a:hover, .ed .theme-dark .rich a:hover, .ed .theme-dark-bold .rich a:hover, .ed .theme-black .rich a:hover { color: inherit; opacity: 0.8; }

.ed .btn { font-family: var(--sans); font-weight: 600; }
.ed .eyebrow, .ed .ed-eyebrow { font-family: var(--sans); font-size: 0.88rem; font-weight: 700; letter-spacing: 0.09em; }
.ed .sidebar__nav a { font-family: var(--sans); font-weight: 500; }
.ed .sqsrte-text-color--white { color: inherit; }
.ed .card__title { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; }
.ed .card--panel, .ed .callout, .ed .cal-embed, .ed .form-embed { box-shadow: 0 8px 30px hsla(200, 30%, 14%, 0.08); }
.ed .form-embed { border-radius: 18px; }

/* --- top bar --- */
.ed-bar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: hsla(39, 45%, 96%, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid hsla(200, 30%, 14%, 0.08);
}

.ed-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem clamp(1.2rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}

.ed-bar .ed-nav { margin-left: auto; margin-right: clamp(0.6rem, 1.5vw, 1.4rem); }

.ed-bar__inner > .ed-bar__right { margin-left: 0; }

@media (max-width: 919px) {
  .ed-bar__inner > .ed-bar__right { margin-left: auto; }
}

.ed-bar__logo img { width: 200px; height: auto; display: block; }

.ed-bar__right { display: flex; align-items: center; gap: 0.9rem; }

.ed-apply {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--white);
  background: var(--navy);
  text-decoration: none;
  padding: 0.65em 1.3em;
  border-radius: 10px;
  white-space: nowrap;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.ed-apply:hover { transform: translateY(-1px); opacity: 0.93; }

.ed .ed-menu {
  position: static;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  border: 1.5px solid hsla(200, 30%, 14%, 0.25);
  border-radius: 999px;
  padding: 0.6em 1.2em;
  cursor: pointer;
}

.ed .ed-menu:hover { transform: none; background: none; border-color: var(--ink); }

/* --- header nav --- */
.ed-nav { display: flex; align-items: center; gap: clamp(0.9rem, 1.8vw, 1.7rem); }

.ed-nav > a,
.ed-nav__folder > button {
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0.2em 0;
  cursor: pointer;
  white-space: nowrap;
}

.ed-nav > a:hover, .ed-nav > a.active,
.ed-nav__folder > button:hover, .ed-nav__folder > button.active { color: var(--accent); }

.ed-nav__folder { position: relative; }

.ed-nav__folder > button::after {
  content: "\25BE";
  font-size: 0.72em;
  margin-left: 0.35em;
  opacity: 0.55;
}

.ed-nav__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 10px;
  display: none;
  flex-direction: column;
}

.ed-nav__folder:hover .ed-nav__dropdown,
.ed-nav__folder:focus-within .ed-nav__dropdown { display: flex; }

.ed-nav__dropdown a {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 0.5em 1.3em;
  white-space: nowrap;
  background: var(--white);
}

.ed-nav__dropdown a:first-child { border-radius: 14px 14px 0 0; padding-top: 0.8em; }
.ed-nav__dropdown a:last-child { border-radius: 0 0 14px 14px; padding-bottom: 0.8em; }
.ed-nav__dropdown a:only-child { border-radius: 14px; }

.ed-nav__dropdown a:hover, .ed-nav__dropdown a.active { color: var(--accent); background: hsl(39, 45%, 97%); }

.ed-nav__dropdown { filter: drop-shadow(0 10px 24px hsla(200, 30%, 14%, 0.16)); }

@media (min-width: 920px) {
  .ed .ed-menu { display: none; }
}

@media (max-width: 919px) {
  .ed-nav { display: none; }
}

/* --- heroes --- */
.ed-hero { padding: clamp(1.4rem, 2.8vw, 2.4rem) 0 clamp(2.5rem, 5vw, 4.5rem); }

.ed-hero__grid {
  display: grid;
  grid-template-columns: 6fr 6fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.ed-eyebrow {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.4rem;
}

.ed-hero h1 { font-size: clamp(2.6rem, 5.2vw, 4.4rem); line-height: 1.08; margin: 0 0 1.4rem; }

.ed-hero__lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 34em; margin: 0 0 2rem; }

.ed-page-hero { padding: clamp(2.8rem, 6vw, 5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }

.ed-page-hero h1 { font-size: clamp(2.3rem, 4.2vw, 3.6rem); line-height: 1.1; margin: 0 0 1.2rem; }

.ed-page-hero .ed-hero__lede { margin-bottom: 1.6rem; }

.ed-cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 1.6rem; }

.ed-btn {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  background: var(--navy);
  text-decoration: none;
  padding: 0.95em 1.8em;
  border-radius: 12px;
  box-shadow: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.ed-btn:hover { transform: translateY(-2px); opacity: 0.94; }

.ed-btn--teal { background: var(--accent); box-shadow: 0 4px 16px hsla(189, 82%, 25%, 0.28); }

.ed-link {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid hsla(189, 82%, 31%, 0.35);
  padding-bottom: 0.15em;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.ed-link:hover { color: var(--accent); border-color: var(--accent); }

/* photo mosaic (hero) */
.ed-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 12px;
  height: clamp(380px, 46vw, 560px);
}

.ed-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.ed-mosaic img:first-child { grid-row: span 2; }

/* page hero with side image */
.ed-page-hero__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.ed-page-hero__img img {
  width: 100%;
  max-width: 430px;
  border-radius: 18px;
  margin-left: auto;
  display: block;
}

/* photo pile */
.ed-pile { position: relative; height: clamp(360px, 44vw, 560px); }

.ed-pile figure {
  position: absolute;
  margin: 0;
  background: var(--white);
  padding: 10px 10px 14px;
  border-radius: 6px;
  box-shadow: 0 12px 34px hsla(200, 30%, 14%, 0.18);
}

.ed-pile img { display: block; border-radius: 2px; }

.ed-pile figure:nth-child(1) { top: 0; left: 4%; width: 62%; transform: rotate(-3.5deg); z-index: 1; }
.ed-pile figure:nth-child(2) { top: 22%; right: 0; width: 44%; transform: rotate(2.5deg); z-index: 2; }
.ed-pile figure:nth-child(3) { bottom: 0; left: 12%; width: 52%; transform: rotate(-1.5deg); z-index: 3; }

.ed-pile figure:hover { z-index: 5; }

/* --- proof strip --- */
.ed-proof {
  border-top: 1px solid hsla(200, 30%, 14%, 0.1);
  border-bottom: 1px solid hsla(200, 30%, 14%, 0.1);
  padding: 1.1rem 0;
}

.ed-proof p {
  margin: 0;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.ed-proof span { color: var(--accent); padding: 0 0.35em; }

/* --- editorial statement --- */
.ed-statement { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }

.ed-statement__grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.ed-statement h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.15; margin: 0; }

.ed-statement__body p { color: var(--ink-soft); margin: 0 0 1.1em; }

/* --- numbered list --- */
.ed-list { padding: 0 0 clamp(3rem, 6vw, 5rem); }

.ed-list__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
}

.ed-item { border-top: 2px solid var(--ink); padding-top: 1.2rem; }

.ed-item__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.6rem;
}

.ed-item h3 { font-size: 1.45rem; margin: 0 0 0.6rem; }

.ed-item p { font-size: 0.98rem; color: var(--ink-soft); margin: 0 0 1rem; }

.ed-item .ed-link { font-size: 0.92rem; }

/* --- pull quote --- */
.ed-quote { background: var(--accent-dark); padding: clamp(3.5rem, 7vw, 6rem) 0; }

.ed-quote blockquote {
  margin: 0 auto;
  max-width: 880px;
  text-align: center;
  padding: 0 clamp(1.2rem, 4vw, 3rem);
}

.ed-quote blockquote p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: 1.35;
  color: var(--white);
  margin: 0 0 1.4rem;
}

.ed-quote cite {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-light);
}

/* --- photo strip (manual, arrow-advanced) --- */
.ed-strip { position: relative; padding: clamp(3rem, 6vw, 5rem) 0 0; }

.ed-strip__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0 clamp(1.2rem, 4vw, 3rem);
}

.ed-strip__track::-webkit-scrollbar { display: none; }

.ed-strip__track img {
  height: 220px;
  width: auto;
  border-radius: 12px;
  display: block;
  scroll-snap-align: start;
  flex: none;
}

.ed-strip__arrow {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--white);
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px hsla(200, 30%, 14%, 0.22);
  transition: transform 0.15s ease;
}

.ed-strip__arrow:hover { transform: scale(1.06); }

.ed-strip__arrow--prev { left: 18px; }
.ed-strip__arrow--next { right: 18px; }

/* --- two-column editorial lists --- */
.ed-cols2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
  max-width: 900px;
}

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

.ed-dots li {
  position: relative;
  padding: 0.28em 0 0.28em 1.5em;
  margin: 0;
  color: var(--ink-soft);
}

.ed-dots li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* --- resource cards --- */
.ed-cards3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
}

.ed-rescard {
  display: block;
  background: var(--white);
  border-radius: 20px;
  padding: 2rem 1.8rem;
  box-shadow: 0 8px 30px hsla(200, 30%, 14%, 0.08);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ed-rescard:hover { transform: translateY(-4px); box-shadow: 0 14px 40px hsla(200, 30%, 14%, 0.13); }

.ed-rescard h3 { font-size: 1.35rem; margin: 0 0 0.5rem; }

.ed-rescard p { font-size: 0.95rem; color: var(--ink-soft); margin: 0 0 1.1rem; }

/* --- framed graphic banner --- */
.ed-graphic {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  height: clamp(220px, 30vw, 340px);
}

.ed-graphic svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.ed-graphic--text { height: auto; min-height: clamp(240px, 26vw, 330px); display: flex; align-items: center; }

.ed-graphic__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, hsla(200, 60%, 9%, 0.85) 0%, hsla(200, 60%, 9%, 0.6) 55%, hsla(200, 60%, 9%, 0.2) 100%);
}

.ed-graphic__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: clamp(1.4rem, 2.5vw, 2rem) clamp(2rem, 4.5vw, 3.5rem);
}

.ed-graphic__content p {
  color: var(--white);
  font-size: 1.18rem;
  line-height: 1.85;
  margin: 0;
}

/* editorial columns on a teal section */
.ed .theme-bright .ed-item { border-color: hsla(0, 0%, 100%, 0.9); }
.ed .theme-bright .ed-item__num { color: var(--accent-light); }
.ed .theme-bright .ed-item h3 { color: var(--white); }
.ed .theme-bright .ed-item p { color: hsla(0, 0%, 100%, 0.92); }
.ed .theme-bright .ed-dots li { color: hsla(0, 0%, 100%, 0.93); }
.ed .theme-bright .ed-dots li::before { background: var(--accent-light); }
.ed .theme-bright h2 { color: var(--white); }
.ed .theme-bright h2 em { color: var(--accent-light); }
.ed .theme-bright .ed-link { color: var(--white); border-color: hsla(0, 0%, 100%, 0.5); }
.ed .theme-bright .ed-link:hover { color: var(--accent-light); border-color: var(--accent-light); }

/* hairline divider */
.ed-rule { border: 0; border-top: 1px solid hsla(200, 30%, 14%, 0.14); margin: 0; }

/* --- get involved --- */
.ed-involved { padding: clamp(3.5rem, 7vw, 6rem) 0; text-align: center; }

.ed-involved h2 { font-size: clamp(2.1rem, 3.8vw, 3.2rem); margin: 0 0 1rem; }

.ed-involved > .wrap > p { color: var(--ink-soft); max-width: 40em; margin: 0 auto 2.2rem; }

.ed-involved .ed-cta-row { justify-content: center; }

/* --- mini footer --- */
.ed-foot { border-top: 1px solid hsla(200, 30%, 14%, 0.1); padding: 1.6rem 0 2rem; margin-top: clamp(2rem, 4vw, 3.5rem); }

.ed-foot__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.ed-foot__links { display: flex; flex-wrap: wrap; gap: 1.4rem; }

.ed-foot a {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
}

.ed-foot a:hover { color: var(--accent); }

.ed-foot__credit { font-size: 0.85rem; font-style: italic; color: var(--ink-soft); margin: 0; }

/* --- reveal on scroll --- */
.ed-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.ed-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .ed-reveal { opacity: 1; transform: none; transition: none; }
}

/* --- responsive --- */
@media (max-width: 820px) {
  .ed-hero__grid, .ed-statement__grid, .ed-cols2, .ed-cards3, .ed-page-hero__grid { grid-template-columns: 1fr; }
  .ed-mosaic { height: 120vw; max-height: 620px; }
  .ed-page-hero__img img { margin: 0 auto; }
  .ed-pile { height: 74vw; max-height: 420px; margin-top: 1rem; }
  .ed-list__row { grid-template-columns: 1fr; }
  .ed-bar__logo img { width: 150px; }
  .ed-proof p { letter-spacing: 0.08em; }
  .ed-apply { font-size: 0.85rem; padding: 0.6em 1.1em; }
}

/* --- signature wave ribbons --- */
.ed-hero, .ed-involved, .ed-page-hero { position: relative; overflow: hidden; }
.ed-hero .wrap, .ed-involved .wrap, .ed-page-hero .wrap { position: relative; z-index: 1; }
.ed-wave { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.ed-wave--mobile { display: none; inset: auto; top: 0; left: 0; height: 560px; }

@media (max-width: 819px) {
  .ed-wave--desktop { display: none; }
  .ed-wave--mobile { display: block; }
}
