/* JDD MCS · story site
   Tokens follow the Pen design variables (mn-*) */
:root {
  --ink: #111418;
  --body: #2a3138;
  --muted: #5b636b;
  --line: #e3e6e9;
  --soft: #f4f6f8;
  --accent: #14466b;
  --paper: #f6f2eb;
  --paper-line: #e2dcd1;
  --pending: #b8c0c6;
  --white: #ffffff;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 5.6vw, 80px);
  --max: 1440px;
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-snap-type: y proximity; }
/* One beat per screen. Mandatory on roomy screens; proximity where beats can outgrow the viewport. */
@media (min-width: 861px) and (min-height: 640px) { html { scroll-snap-type: y mandatory; } }
.beat { scroll-snap-align: start; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, blockquote, figure, dl, dd, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
address { font-style: normal; }

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

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 14px; border-radius: var(--radius);
  text-decoration: none; font-size: 14px;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.col { width: 100%; margin-inline: auto; padding-inline: var(--gutter); }
.col--story { max-width: calc(720px + 2 * var(--gutter)); }
.col--wide { max-width: calc(900px + 2 * var(--gutter)); }

/* ---------- Type ---------- */
.num {
  display: block;
  font: 500 13px/20px var(--sans);
  letter-spacing: 1.5px;
  color: var(--accent);
}
.num--light { color: rgba(255, 255, 255, .7); }

.chapter__head { display: flex; flex-direction: column; gap: 10px; padding-bottom: 12px; margin-bottom: 36px; }
.chapter__title { font: 400 30px/36px var(--serif); color: var(--ink); }
.chapter__title--lg { font-size: clamp(32px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -.5px; }
.chapter__title--light { color: var(--white); font-size: clamp(28px, 2.6vw, 34px); line-height: 1.2; }

.para { font: 400 clamp(19px, 1.6vw, 21px)/1.62 var(--serif); color: var(--body); }
.para + .para { margin-top: 28px; }
.para--statement {
  font-size: clamp(24px, 2.2vw, 30px); line-height: 1.4; letter-spacing: -.3px; color: var(--ink);
}
.para--after { margin-top: 36px; }
.para--sm { font-size: 19px; line-height: 29px; }

.statement { font-family: var(--serif); font-weight: 400; color: var(--ink); }
.statement--md { font-size: clamp(32px, 3.7vw, 52px); line-height: 1.16; letter-spacing: -.8px; }
.statement--lg { font-size: clamp(42px, 5.1vw, 72px); line-height: 1.12; letter-spacing: -1px; }
.statement--team { font-size: clamp(34px, 3.4vw, 48px); line-height: 1.12; letter-spacing: -.8px; }
.statement--photo { font-size: clamp(42px, 4.5vw, 64px); line-height: 1.05; letter-spacing: -1.5px; color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  border-radius: var(--radius); text-decoration: none; white-space: nowrap;
  font-family: var(--sans); font-weight: 500;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn--outline { padding: 9px 15px; border: 1px solid currentColor; font-size: 13px; line-height: 13px; }
.btn--outline:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--solid { padding: 14px 20px; background: var(--ink); color: var(--white); font-size: 15px; line-height: 15px; }
.btn--solid:hover { background: var(--accent); }
.btn--solid svg { transition: transform .2s var(--ease); }
.btn--solid:hover svg { transform: translateX(3px); }
.btn--lg { padding: 16px 24px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px var(--gutter);
  color: var(--ink);
  transition: color .3s, background-color .3s, padding .3s;
}
.nav.is-scrolled { background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding-block: 14px; }
.nav.is-paper { background: rgba(246, 242, 235, .9); }
.nav.is-dark { color: var(--white); background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav.is-dark .btn--outline:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.nav__logo img { width: 120px; height: 40px; object-fit: contain; }
.nav__right { display: flex; align-items: center; gap: 24px; }
.nav__phone { font-size: 14px; line-height: 14px; text-decoration: none; }
.nav__phone:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Views ---------- */
.view { min-height: 100vh; min-height: 100svh; position: relative; }
.view--center { display: flex; align-items: center; padding-block: 140px 100px; }

/* 01 · Hero */
.hero { display: flex; flex-direction: column; justify-content: space-between; padding-top: 140px; }
.hero__body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-block: 40px; }
.hero__kicker { font: italic 400 24px/31px var(--serif); color: var(--muted); margin-bottom: 20px; }
.hero__title {
  font: 400 clamp(44px, 5.1vw, 72px)/1.04 var(--serif);
  letter-spacing: -2.2px; color: var(--ink); max-width: 15.5em;
}
.hero__title .line { display: block; }
.hero__bridge { font: 400 22px/33px var(--serif); color: var(--body); max-width: 720px; margin-top: 44px; }

.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-bottom: 56px;
}
.bar::before { content: ""; display: block; width: 100%; height: 1px; background: var(--line); margin-bottom: 4px; }
.bar__question {
  display: inline-flex; align-items: center; gap: 14px;
  font: 400 24px/29px var(--serif); text-decoration: none;
}
.bar__question svg { animation: nudge 2.4s var(--ease) infinite; }
.bar__skip { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.bar__skip span { font-size: 15px; color: var(--muted); }
@keyframes nudge { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(4px); } }

/* Chapter rail: where you are in the story */
.rail {
  position: fixed; right: clamp(16px, 2vw, 32px); top: 50%; z-index: 40;
  display: flex; flex-direction: column; gap: 14px;
  transform: translateY(-50%); color: var(--ink);
  opacity: 0; pointer-events: none; transition: opacity .5s var(--ease), color .6s;
}
.rail.is-shown { opacity: 1; pointer-events: auto; }
.rail.is-dark { color: var(--white); }
.rail a {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  font: 500 11px/16px var(--sans); letter-spacing: 1.2px; text-decoration: none;
  opacity: .35; transition: opacity .4s var(--ease);
}
.rail a::before { content: ""; width: 8px; height: 1px; background: currentColor; transition: width .5s var(--ease); }
.rail a:hover { opacity: .7; }
.rail a.is-current { opacity: 1; }
.rail a.is-current::before { width: 22px; }

/* III · Pinned photo */
.pinned { position: relative; color: var(--white); }
/* The stage is fixed to the screen and crossfades in, rather than scrolling up with the page */
.pinned__stage {
  position: fixed; inset: 0; z-index: 1; overflow: hidden; background: #0b0c0e;
  opacity: 0; visibility: hidden;
  transition: opacity .9s var(--ease), visibility 0s linear .9s;
}
.pinned.is-on .pinned__stage { opacity: 1; visibility: visible; transition: opacity 1.1s var(--ease), visibility 0s; }
.pinned__photo {
  width: 100%; height: 100%; object-fit: cover; object-position: 62% center;
  transform: scale(1.06); transition: transform 3.2s cubic-bezier(.2, .6, .2, 1);
}
.pinned.is-on .pinned__photo { transform: scale(1); }
.pinned__shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.45) 35%, rgba(0,0,0,0) 55%);
}
.pinned__shade::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.8) 38%, rgba(0,0,0,0) 70%);
  opacity: var(--deep, 0); transition: opacity .35s linear;
}
.pinned__label {
  position: absolute; top: 33%; right: 26.6%;
  display: flex; flex-direction: column; align-items: flex-end;
  padding: 10px 14px; border-radius: var(--radius);
  background: rgba(17, 20, 24, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: 13px; line-height: 18px; text-align: right;
}
.pinned__label strong { font-weight: 600; }
.pinned__label span { color: rgba(255, 255, 255, .7); }
.pinned__content { position: relative; z-index: 2; transition: opacity .5s var(--ease); }
.js .pinned:not(.is-on) .pinned__content { opacity: 0; }
.pinned__step {
  min-height: 100vh; min-height: 100svh; max-width: calc(620px + var(--gutter));
  display: flex; flex-direction: column; justify-content: center; gap: 0;
  padding-block: 120px 80px;
}
.pinned__step--open .num { margin-bottom: 18px; }
.pinned__caption { font-size: 18px; line-height: 27px; color: rgba(255, 255, 255, .9); margin-top: 32px; max-width: 640px; }
.pinned__step .chapter__title { margin: 10px 0 44px; }
.moves { display: flex; flex-direction: column; gap: 40px; }
.moves h4 { font: 400 26px/33px var(--serif); margin-bottom: 10px; }
.moves p { font: 400 18px/28px var(--serif); color: rgba(255, 255, 255, .9); }

/* IV · Why me */
.years { display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.years__value { font: 400 clamp(56px, 5vw, 72px)/1 var(--serif); letter-spacing: -2px; white-space: nowrap; }
.years__text { font-size: 16px; line-height: 24px; color: var(--body); max-width: 610px; flex: 1 1 320px; padding-bottom: 4px; }
.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 36px; }
.figure { border-top: 1px solid var(--line); padding-top: 14px; }
.figure:first-child { border-top-color: var(--ink); }
.figure__value { font: 400 44px/44px var(--serif); margin-bottom: 18px; }
.figure--pending .figure__value { color: var(--pending); }
.figure dd { font-size: 13px; line-height: 20px; color: var(--muted); max-width: 240px; }
.admission { font: 400 clamp(26px, 2.4vw, 34px)/1.3 var(--serif); letter-spacing: -.4px; margin-top: 52px; }

/* Together */
.together { display: grid; grid-template-columns: minmax(0, 640px) minmax(0, 1fr); gap: clamp(40px, 6vw, 90px); align-items: center; }
.print {
  background: var(--white); padding: 14px 14px 46px; border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
  transform: rotate(-2deg);
}
.print img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.together__text { display: flex; flex-direction: column; gap: 24px; max-width: 560px; }
.together__names { font-size: 14px; line-height: 21px; color: var(--muted); }
.together__text .para { margin-top: 12px; }

/* Testimonials */
.testimonial {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: clamp(32px, 6vw, 100px); align-items: end;
  max-width: var(--max); margin-inline: auto; padding: 140px var(--gutter) 0;
}
.testimonial__text { display: flex; flex-direction: column; gap: 20px; padding-bottom: 120px; max-width: 760px; }
.testimonial__lead { font: 400 24px/34px var(--serif); color: var(--body); margin-bottom: 12px; }
.quote { font-family: var(--serif); font-weight: 400; letter-spacing: -.6px; }
.quote--40 { font-size: clamp(28px, 2.8vw, 40px); line-height: 1.25; }
.quote--36 { font-size: clamp(26px, 2.5vw, 36px); line-height: 1.25; }
.quote--44 { font-size: clamp(30px, 3.05vw, 44px); line-height: 1.25; }
.cite { display: flex; align-items: center; gap: 12px; font-size: 15px; line-height: 23px; margin-top: 8px; }
.cite::before { content: ""; width: 32px; height: 1px; background: var(--ink); flex: none; }
.testimonial__photo { width: 100%; height: min(670px, 74vh); object-fit: cover; object-position: center top; }
.testimonial__photo--contain { object-fit: contain; object-position: center bottom; }

/* V · How the work runs */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.step { border-top: 1px solid var(--ink); padding-top: 28px; display: flex; flex-direction: column; }
.step__num { font-size: 13px; line-height: 20px; font-weight: 500; color: var(--accent); margin-bottom: 12px; }
.step h3 { font: 400 24px/29px var(--serif); margin-bottom: 20px; }
.step__body { font-size: 14px; line-height: 21px; color: var(--muted); }
.step__out { font-size: 14px; line-height: 21px; margin-top: auto; padding-top: 22px; }
.step__out span, .programs__label {
  display: block; font-size: 11px; line-height: 17px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase;
  margin-bottom: 6px;
}
.programs { margin-top: 48px; background: var(--soft); border-radius: var(--radius); padding: 28px 32px 30px; }
.programs__label { margin-bottom: 16px; }
.programs ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.programs h3 { font: 400 19px/24px var(--serif); margin-bottom: 8px; }
.programs p { font-size: 13px; line-height: 20px; color: var(--muted); }

/* The ask */
.ask { background: var(--paper); display: flex; flex-direction: column; justify-content: space-between; padding-top: 140px; }
.ask__body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-block: 40px 80px; }
.ask__reassure { font: 400 21px/33px var(--serif); color: var(--body); max-width: 660px; margin-top: 40px; }
.ask__actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 40px; }
.ask__alt { font-size: 15px; line-height: 23px; text-decoration: none; }
.ask__alt:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-bottom: 72px;
}
.footer::before { content: ""; width: 100%; height: 1px; background: var(--paper-line); margin-bottom: 8px; }
.footer address { font-size: 14px; line-height: 27px; }
.footer address a { text-decoration: none; }
.footer address a:hover { text-decoration: underline; }
.footer__copy { font-size: 13px; line-height: 20px; color: var(--muted); }

/* ---------- Reveal motion ---------- */
.js .rise { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js .pinned .rise { transform: translateY(10px); }
.js .rise.is-in { opacity: 1; transform: none; }
.js .drop { opacity: 0; transform: translateY(-30px) rotate(-6deg) scale(1.04); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.js .drop.is-in { opacity: 1; transform: rotate(-2deg); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise, .js .drop { opacity: 1; transform: none; transition: none; }
  .js .drop { transform: rotate(-2deg); }
  .bar__question svg { animation: none; }
  .pinned__stage, .pinned__photo { transition: none; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .steps, .programs ul { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .pinned__label { right: 6%; top: auto; bottom: 8%; }
  .rail { display: none; }
}

@media (max-width: 860px) {
  .together { grid-template-columns: 1fr; }
  .print { max-width: 560px; }
  .testimonial { grid-template-columns: 1fr; padding-top: 120px; align-items: start; }
  .testimonial__text { padding-bottom: 0; }
  .testimonial__photo { height: min(520px, 62vh); max-width: 420px; justify-self: end; }
  .pinned__shade { background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.2) 100%); }
  .pinned__shade::after { background: rgba(0,0,0,.72); }
  .pinned__step { justify-content: flex-end; padding-bottom: 96px; }
  .pinned__label { display: none; }
  .pinned__photo { object-position: 80% center; }
}

@media (max-width: 640px) {
  .nav { padding-block: 16px; }
  .nav__phone { display: none; }
  .nav__logo img { width: 100px; height: 34px; }
  .hero { padding-top: 110px; }
  .hero__title { letter-spacing: -1.2px; }
  .hero__kicker { font-size: 20px; }
  .hero__bridge { font-size: 19px; line-height: 29px; margin-top: 28px; }
  .bar { padding-bottom: 32px; }
  .bar__question { font-size: 20px; }
  .bar__skip span { display: none; }
  .bar__skip, .bar__skip .btn { width: 100%; justify-content: space-between; }
  .view--center { padding-block: 110px 72px; }
  .figures { grid-template-columns: 1fr; gap: 24px; }
  .steps, .programs ul { grid-template-columns: 1fr; }
  .programs { padding: 24px 20px; }
  .testimonial__lead { font-size: 20px; line-height: 29px; }
  .testimonial__photo { max-width: 300px; }
  .ask { padding-top: 110px; }
  .ask__reassure { font-size: 19px; line-height: 29px; }
  .ask__actions .btn { width: 100%; justify-content: center; }
  .footer { padding-bottom: 40px; }
}

/* The design renders Newsreader at one optical size; pin it so headlines match.
   Kept last: the `font` shorthand above resets variation settings. */
.hero__kicker, .hero__title, .hero__bridge, .bar__question, .chapter__title, .para, .statement,
.moves h4, .moves p, .years__value, .figure__value, .admission, .testimonial__lead, .quote,
.step h3, .programs h3, .ask__reassure { font-variation-settings: "opsz" 24; }
