/* ==========================================================================
   YSMnation — single shared stylesheet
   Type system: Fraunces (headings, editorial accents) + Outfit (everything else)
   Palette: official YSM colors only. --navy-deep is the one sanctioned dark
   variant, reserved for the footer background and primary-button hover.
   ========================================================================== */

:root {
  --navy: #0A2540;
  --navy-deep: #081E3A; /* darker navy: footer bg + .btn-primary hover only */
  --orange: #FF6B35;
  --gold: #C9A96E;
  --white: #FFFFFF;
  --cream: #FBF7F0;
  --border-light: #EAE1D2;
  --charcoal: #3D3D3D;
  --gray: #8A8A8A;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.65;
  min-height: 100vh;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

p a,
.link-accent,
.story-more a:not(.btn) {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

p a:hover,
.link-accent:hover,
.story-more a:not(.btn):hover {
  color: #e2582d;
}

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

ul {
  list-style: none;
}

button {
  border: none;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(10, 37, 64, 0.08);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: relative;
}

.nav-logo img {
  height: 56px;
  width: auto;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid rgba(10, 37, 64, 0.12);
  color: var(--navy);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links li {
  white-space: nowrap;
}

.nav-links a {
  color: var(--navy);
  font-weight: 600;
  font-size: 15px;
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--orange);
}

.nav-cta {
  background: var(--orange);
  color: var(--navy) !important;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700 !important;
  font-size: 14px !important;
}

.nav-cta:hover {
  background: #ff7d4d;
}

.nav-cta:focus-visible {
  outline-color: var(--navy);
}

/* --------------------------------------------------------------------------
   Sections & spacing scale
   Standard section: 80px · connected/compact (.tight): 56px · mobile: see MQs
   -------------------------------------------------------------------------- */

.section {
  padding: 80px 24px;
}

.section.tight {
  padding: 56px 24px;
}

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.section-inner.narrow {
  max-width: 860px;
}

.text-center {
  text-align: center;
}

.section.on-navy,
.section.on-navy-deep {
  color: rgba(255, 255, 255, 0.94);
}

.section.on-navy {
  background: var(--navy);
}

.section.on-navy-deep {
  background: var(--navy-deep);
}

.section.on-off-white {
  background: var(--cream);
}

.section.on-white {
  background: var(--white);
}

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

.eyebrow,
.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 24px;
}

.eyebrow::after,
.hero-eyebrow::after {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  background: var(--orange);
  margin-top: 8px;
}

.text-center .eyebrow::after {
  margin-left: auto;
  margin-right: auto;
}

.eyebrow.on-navy,
.hero-eyebrow.on-navy {
  color: var(--gold);
}

.eyebrow.on-navy::after,
.hero-eyebrow.on-navy::after {
  background: var(--gold);
}

h1,
h2,
h3 {
  font-family: "Fraunces", serif;
  color: var(--navy);
  line-height: 1.1;
  font-weight: 700;
}

h1 {
  font-size: clamp(34px, 4.6vw, 62px);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(28px, 3.2vw, 44px);
  margin-bottom: 20px;
}

h3 {
  font-size: clamp(19px, 1.8vw, 25px);
  margin-bottom: 12px;
}

.h1-modest {
  font-size: clamp(28px, 3.4vw, 46px);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.italic-accent {
  font-style: italic;
  color: var(--orange);
}

.section-inner p {
  margin-bottom: 18px;
}

.section-inner p:last-child {
  margin-bottom: 0;
}

/* Intro paragraph directly under a heading — one per section */
p.lede,
.section-intro {
  font-size: clamp(17px, 1.3vw, 20px);
  color: var(--navy);
  max-width: 760px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.section-inner .section-intro,
.section-inner:not(.text-center) p.lede {
  margin-left: 0;
  margin-right: 0;
}

.text-center p.lede,
.text-center .section-intro {
  margin-left: auto;
  margin-right: auto;
}

/* Ordinary body paragraphs */
.body-copy,
.section-copy,
.text-block {
  color: var(--charcoal);
  font-size: 16px;
  line-height: 1.8;
  max-width: 760px;
}

.section-copy.small {
  font-size: 14px;
}

.small-note {
  font-size: 14px;
  color: var(--gray);
}

.text-center .body-copy {
  margin-left: auto;
  margin-right: auto;
}

.feature-statement {
  font-family: "Fraunces", serif;
  font-size: clamp(22px, 2vw, 32px);
  color: var(--navy);
  max-width: 700px;
  margin: 0 auto 32px;
  line-height: 1.3;
}

p.stories-intro {
  font-size: clamp(17px, 1.3vw, 20px);
  color: var(--charcoal);
  max-width: 720px;
  margin: 0 0 40px;
  line-height: 1.7;
}

.text-center .stories-intro {
  margin-left: auto;
  margin-right: auto;
}

.story-more {
  margin-top: 40px;
  text-align: center;
}

.section-closer {
  margin-top: 40px;
  font-style: italic;
}

.meta-line {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 36px;
}

/* Dark-section text: headings and copy set their own colors, so they need
   explicit light values on navy backgrounds. Card interiors keep dark text. */
.section.on-navy > .section-inner > h1:not(.italic-accent),
.section.on-navy > .section-inner > h2:not(.italic-accent),
.section.on-navy > .section-inner > h3:not(.italic-accent),
.section.on-navy-deep > .section-inner > h1:not(.italic-accent),
.section.on-navy-deep > .section-inner > h2:not(.italic-accent),
.section.on-navy-deep > .section-inner > h3:not(.italic-accent) {
  color: var(--white);
}

.section.on-navy p.lede,
.section.on-navy-deep p.lede,
.section.on-navy .section-intro,
.section.on-navy-deep .section-intro {
  color: rgba(255, 255, 255, 0.92);
}

.section.on-navy .section-inner > p,
.section.on-navy-deep .section-inner > p,
.section.on-navy .section-inner > .body-copy,
.section.on-navy-deep .section-inner > .body-copy {
  color: rgba(255, 255, 255, 0.88);
}

.section.on-navy .meta-line,
.section.on-navy-deep .meta-line {
  color: rgba(255, 255, 255, 0.7);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  background:
    linear-gradient(180deg, rgba(7, 26, 46, 0.82), rgba(10, 37, 64, 0.88)),
    url('/images/market-day.jpeg') center / cover no-repeat;
  color: var(--white);
  padding: 88px 24px 100px;
  position: relative;
  overflow: hidden;
}

.hero.hero-lab {
  background:
    linear-gradient(180deg, rgba(7, 26, 46, 0.82), rgba(10, 37, 64, 0.88)),
    url('/images/gallery/founders-pitch-day.jpg') center / cover no-repeat;
}

.hero-inner {
  max-width: 1040px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--white);
}

.hero p.lede {
  color: rgba(255, 255, 255, 0.92);
}

.star-decoration {
  position: absolute;
  font-size: clamp(30px, 4vw, 52px);
  color: var(--gold);
  opacity: 0.45;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.star-decoration.left {
  top: 56px;
  left: 5%;
  transform: rotate(-12deg);
}

.star-decoration.right {
  bottom: 64px;
  right: 5%;
  transform: rotate(14deg);
}

/* --------------------------------------------------------------------------
   Buttons
   Primary: navy bg / white text · Accent: orange bg / navy text ·
   Secondary: transparent / navy border
   -------------------------------------------------------------------------- */

.hero-ctas,
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
  cursor: pointer;
}

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

.btn-full {
  width: 100%;
}

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

.btn-primary:hover {
  background: var(--navy-deep);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(10, 37, 64, 0.18);
}

.btn-accent {
  background: var(--orange);
  color: var(--navy);
}

.btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(255, 107, 53, 0.25);
}

.btn-accent:focus-visible {
  outline-color: var(--navy);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

.btn-secondary:hover {
  background: rgba(10, 37, 64, 0.06);
}

/* Dark sections: primary buttons switch to the accent treatment so they stay
   visible; secondary buttons go white-outline. */
.section.on-navy .btn-primary,
.section.on-navy-deep .btn-primary,
.hero .btn-primary {
  background: var(--orange);
  color: var(--navy);
}

.section.on-navy .btn-primary:hover,
.section.on-navy-deep .btn-primary:hover,
.hero .btn-primary:hover {
  background: var(--orange);
  box-shadow: 0 14px 28px rgba(255, 107, 53, 0.3);
}

.section.on-navy .btn-secondary,
.section.on-navy-deep .btn-secondary,
.hero .btn-secondary {
  color: var(--white);
  border-color: var(--white);
}

.section.on-navy .btn-secondary:hover,
.section.on-navy-deep .btn-secondary:hover,
.hero .btn-secondary:hover {
  background: var(--white);
  color: var(--navy);
}

/* --------------------------------------------------------------------------
   Shared grids
   -------------------------------------------------------------------------- */

.numbers-grid,
.learn-grid,
.founder-grid,
.programs-grid,
.program-facts,
.resp-grid,
.options-grid,
.proof-grid,
.value-split,
.model-grid,
.photo-gallery {
  display: grid;
  gap: 24px;
}

.model-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.photo-gallery {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.numbers-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: 52px 0 32px;
  text-align: center;
}

.number-block .num {
  font-family: "Fraunces", serif;
  font-size: clamp(44px, 4.6vw, 72px);
  color: var(--orange);
  line-height: 1;
  margin-bottom: 10px;
}

.number-block .label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.numbers-note {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 700px;
  margin: 0 auto;
  font-style: italic;
}

.learn-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 40px;
}

.founder-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.programs-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.program-facts,
.resp-grid,
.options-grid,
.proof-grid,
.value-split,
.model-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.options-grid,
.proof-grid,
.program-facts {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* --------------------------------------------------------------------------
   Cards (kept where genuinely useful)
   -------------------------------------------------------------------------- */

.learn-card,
.fact-card,
.process-step,
.resp-block,
.option-card,
.proof-card,
.program-card,
.value-block,
.model-card,
.form-wrap,
.founder-card,
.gallery-item {
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--border-light);
}

.learn-card,
.fact-card,
.process-step,
.resp-block,
.option-card,
.proof-card,
.program-card,
.value-block,
.model-card,
.form-wrap {
  padding: 28px;
}

/* Card interiors keep dark text even inside dark sections */
.learn-card p,
.fact-card,
.process-step,
.resp-block,
.option-card p,
.proof-card p,
.program-card p,
.value-block p,
.model-card p {
  color: var(--charcoal);
}

.model-card .num,
.learn-card .num {
  font-family: "Fraunces", serif;
  font-size: 34px;
  color: var(--orange);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 14px;
}

.program-card p,
.proof-card p {
  margin-bottom: 16px;
}

.program-card a,
.proof-card a {
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.program-card a:hover,
.proof-card a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Editorial components (timeline, principles, rows, splits)
   -------------------------------------------------------------------------- */

.timeline {
  max-width: 860px;
  margin-top: 48px;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 26px;
  padding-bottom: 44px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 60px;
  bottom: 4px;
  width: 2px;
  background: var(--border-light);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-marker {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--border-light);
  display: grid;
  place-items: center;
  font-family: "Fraunces", serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--orange);
}

.timeline-item h3 {
  font-family: "Outfit", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 8px 0 8px;
}

.timeline-item p {
  max-width: 640px;
}

.principles,
.timeline {
  text-align: left;
}

.principles {
  margin-top: 44px;
}

.section.on-navy .feature-statement,
.section.on-navy-deep .feature-statement {
  color: var(--white);
}

.section.on-navy .principle,
.section.on-navy-deep .principle {
  border-color: rgba(255, 255, 255, 0.18);
}

.section.on-navy .principle h3,
.section.on-navy-deep .principle h3 {
  color: var(--white);
}

.section.on-navy .principle p,
.section.on-navy-deep .principle p {
  color: rgba(255, 255, 255, 0.85);
}

.principle {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 28px;
  padding: 30px 0;
  border-top: 1px solid var(--border-light);
}

.principle:last-child {
  border-bottom: 1px solid var(--border-light);
}

.principle-num {
  font-family: "Fraunces", serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
}

.principle h3 {
  margin-bottom: 8px;
}

.principle p {
  max-width: 680px;
}

.faq-rows {
  margin-top: 40px;
}

.faq-row {
  padding: 26px 0;
  border-top: 1px solid var(--border-light);
}

.faq-row:last-child {
  border-bottom: 1px solid var(--border-light);
}

.faq-row h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.faq-row p {
  max-width: 720px;
}

.collab-rows {
  margin-top: 44px;
}

.collab-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 28px;
  align-items: start;
  padding: 34px 0;
  border-top: 1px solid var(--border-light);
}

.collab-row:last-child {
  border-bottom: 1px solid var(--border-light);
}

.collab-num {
  font-family: "Fraunces", serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1.2;
}

.collab-row h3 {
  font-size: 21px;
  margin-bottom: 10px;
}

.collab-row p {
  max-width: 640px;
  margin-bottom: 0;
}

.collab-cta {
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-top: 8px;
}

.collab-cta:hover {
  text-decoration: underline;
}

.editorial-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 40px;
}

.editorial-split > div {
  padding: 8px 48px 8px 0;
}

.editorial-split > div + div {
  border-left: 1px solid var(--border-light);
  padding-left: 48px;
  padding-right: 0;
}

.editorial-split h3 {
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

.editorial-split p {
  font-family: "Fraunces", serif;
  font-size: clamp(18px, 1.6vw, 23px);
  line-height: 1.45;
  color: var(--navy);
}

/* Plain (uncarded) 2-col grid for skills / observations */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 56px;
  margin-top: 48px;
}

.practice-grid h3 {
  font-family: "Outfit", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}

.practice-grid p {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Founder cards & carousel
   -------------------------------------------------------------------------- */

.founder-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.founder-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(10, 37, 64, 0.08);
}

.founder-photo {
  min-height: 240px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 24px;
}

.founder-photo img {
  width: 100%;
  height: 100%;
  max-height: 200px;
  object-fit: contain;
}

.founder-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.founder-brand {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--orange);
}

.founder-name {
  font-family: "Fraunces", serif;
  font-size: 26px;
  color: var(--navy);
  line-height: 1.1;
}

.founder-what {
  color: var(--charcoal);
}

.founder-quote {
  margin-top: auto;
  font-style: italic;
  line-height: 1.7;
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
  color: var(--charcoal);
}

.carousel {
  position: relative;
}

.carousel-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-viewport::-webkit-scrollbar {
  display: none;
}

.carousel-track {
  display: flex;
  gap: 24px;
}

.carousel-track .founder-card,
.carousel-track .voice-card {
  flex: 0 0 calc((100% - 48px) / 3);
  scroll-snap-align: start;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(10, 37, 64, 0.16);
  background: var(--white);
  color: var(--navy);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.carousel-btn.prev { left: -18px; }

.carousel-btn.next { right: -18px; }

.carousel-btn:hover {
  background: var(--orange);
  color: var(--navy);
  border-color: var(--orange);
}

.carousel-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--border-light);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.carousel-dot.active {
  background: var(--orange);
  transform: scale(1.2);
}

.voice-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.voice-quote {
  font-family: "Fraunces", serif;
  font-size: 19px;
  font-style: italic;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.94);
}

.voice-attribution {
  margin-top: auto;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   Galleries — .photo-tile (photography, cover) vs .logo-tile (logos, contain)
   -------------------------------------------------------------------------- */

.photo-gallery {
  grid-template-columns: repeat(3, minmax(240px, 1fr));
}

.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.gallery-item:hover,
.gallery-item:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(10, 37, 64, 0.1);
}

.gallery-item img,
.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Founder logos: never crop, never stretch, generous padding, cream ground */
.logo-tile {
  background: var(--cream);
}

.logo-tile img {
  object-fit: contain;
  padding: 28px;
}

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px;
  background: linear-gradient(180deg, transparent, rgba(10, 37, 64, 0.9));
  color: var(--white);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.gallery-item:hover .gallery-caption,
.gallery-item:focus-visible .gallery-caption {
  opacity: 1;
}

.logo-tile .gallery-caption {
  background: linear-gradient(180deg, transparent, rgba(10, 37, 64, 0.85));
}

.gallery-caption strong {
  display: block;
  font-family: "Fraunces", serif;
  font-size: 16px;
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.lightbox.open {
  visibility: visible;
  opacity: 1;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 37, 64, 0.88);
}

.lightbox-panel {
  position: relative;
  z-index: 2;
  background: var(--white);
  border-radius: 12px;
  width: min(100%, 960px);
  max-height: 90vh;
  overflow: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.lightbox-image {
  width: 100%;
  height: 100%;
  min-height: 300px;
  max-height: 90vh;
  object-fit: contain;
  background: var(--cream);
  padding: 20px;
}

.lightbox-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lightbox-brand {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--orange);
}

.lightbox-name {
  font-family: "Fraunces", serif;
  font-size: 28px;
  color: var(--navy);
  line-height: 1.1;
}

.lightbox-what,
.lightbox-quote {
  color: var(--charcoal);
  line-height: 1.7;
}

.lightbox-quote {
  border-top: 1px solid var(--border-light);
  padding-top: 18px;
  font-style: italic;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(10, 37, 64, 0.08);
  color: var(--navy);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.lightbox-close:hover {
  background: var(--orange);
  color: var(--navy);
}

.lightbox-panel.caption-only {
  grid-template-columns: 1fr;
}

.lightbox-panel.caption-only .lightbox-image {
  aspect-ratio: 4 / 3;
  min-height: 0;
  padding: 0;
}

.lightbox-panel.caption-only .lightbox-body {
  padding: 24px;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.form-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 36px;
}

.form-wrap.wide {
  max-width: 680px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy);
  margin-bottom: 10px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 15px 18px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: var(--cream);
  color: var(--charcoal);
  font-size: 15px;
  line-height: 1.6;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--orange);
  background: var(--white);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group .help {
  font-size: 13px;
  color: var(--gray);
  margin-top: 8px;
}

.form-status {
  margin-top: 24px;
  padding: 16px;
  border-radius: 8px;
  font-size: 15px;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(201, 169, 110, 0.16);
  border-left: 3px solid var(--gold);
  color: var(--navy);
}

.form-status.error {
  display: block;
  background: rgba(255, 107, 53, 0.12);
  border-left: 3px solid var(--orange);
  color: var(--navy);
}

/* --------------------------------------------------------------------------
   School-partnerships components
   -------------------------------------------------------------------------- */

.fact-card .fact-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 10px;
}

.fact-card .fact-value {
  font-family: "Fraunces", serif;
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 8px;
}

.fact-card .fact-detail {
  font-size: 14px;
  line-height: 1.6;
}

.outcomes-intro,
.options-intro {
  max-width: 760px;
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.7;
  margin-bottom: 16px;
}

.outcomes-grid,
.process-steps {
  display: grid;
  gap: 24px;
  margin-top: 44px;
}

.outcomes-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.outcome-item h3 {
  color: var(--white);
  font-size: 20px;
  margin-bottom: 10px;
}

.outcome-item p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
}

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

.process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: flex-start;
}

.process-num {
  font-family: "Fraunces", serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
}

.resp-block li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 15px;
}

.resp-block li:last-child {
  border-bottom: none;
}

.section-copy--muted {
  color: var(--gray);
  margin-top: 24px;
}

/* --------------------------------------------------------------------------
   CTA band & footer
   -------------------------------------------------------------------------- */

.cta-section {
  text-align: center;
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}

.cta-section.on-off-white {
  background: var(--cream);
}

.cta-inner {
  max-width: 840px;
  margin: 0 auto;
}

.cta-section p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 32px;
}

footer {
  background: var(--navy-deep);
  color: var(--white);
  padding: 64px 24px 28px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .footer-title,
.footer-col .footer-title {
  font-family: "Fraunces", serif;
  font-size: 24px;
  margin-bottom: 14px;
}

.footer-col .footer-title {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--gold);
    margin-bottom: 18px;
}

.footer-col a {
  display: inline-block;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.footer-col a:hover {
  color: var(--orange);
  opacity: 1;
}

.footer-bottom {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  opacity: 0.7;
  text-align: center;
}

.footer-bottom a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom a:hover {
  color: var(--orange);
}

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

@media (max-width: 1100px) {
  .learn-grid,
  .founder-grid,
  .programs-grid,
  .program-facts,
  .resp-grid,
  .options-grid,
  .proof-grid,
  .value-split,
  .model-grid,
  .photo-gallery,
  .outcomes-grid,
  .process-steps,
  .practice-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .collab-row {
    grid-template-columns: 56px 1fr;
  }

  .collab-cta {
    grid-column: 2;
    padding-top: 0;
  }
}

@media (max-width: 900px) {
  .nav {
    padding: 12px 20px;
  }

  .nav-logo img {
    height: 46px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 24px 48px rgba(10, 37, 64, 0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    width: 100%;
    display: block;
    padding: 10px 0;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
  }

  .section {
    padding: 64px 20px;
  }

  .section.tight {
    padding: 48px 20px;
  }

  .cta-section {
    padding: 64px 20px;
  }

  .hero {
    padding: 72px 20px 84px;
  }

  .editorial-split {
    grid-template-columns: 1fr;
  }

  .editorial-split > div {
    padding: 24px 0;
  }

  .editorial-split > div + div {
    border-left: none;
    border-top: 1px solid var(--border-light);
    padding-left: 0;
  }
}

@media (max-width: 700px) {
  .section {
    padding: 52px 20px;
  }

  .section.tight {
    padding: 44px 20px;
  }

  .cta-section {
    padding: 52px 20px;
  }

  .hero {
    padding: 60px 20px 72px;
  }

  .photo-gallery {
    grid-template-columns: 1fr;
  }

  .gallery-caption {
    opacity: 1;
  }

  .btn {
    width: 100%;
  }

  .hero-ctas,
  .cta-buttons {
    flex-direction: column;
  }

  .carousel-track .founder-card,
  .carousel-track .voice-card {
    flex: 0 0 100%;
  }

  .carousel-btn.prev { left: 8px; }

  .carousel-btn.next { right: 8px; }

  .lightbox-panel {
    grid-template-columns: 1fr;
  }

  .lightbox-image {
    aspect-ratio: 4 / 3;
    min-height: 0;
    height: auto;
  }

  .lightbox-body {
    padding: 24px;
  }

  .timeline-item {
    grid-template-columns: 44px 1fr;
    gap: 18px;
  }

  .timeline-marker {
    width: 44px;
    height: 44px;
    font-size: 15px;
  }

  .timeline-item::before {
    left: 21px;
    top: 48px;
  }

  .principle {
    grid-template-columns: 52px 1fr;
    gap: 18px;
  }

  .principle-num {
    font-size: 30px;
  }

  .collab-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .collab-cta {
    grid-column: 1;
  }

  .numbers-grid {
    gap: 20px;
  }
}
