/* Page refinements: existing palette, fonts, and unaffected sections stay in styles.css. */
.hero {
  height: auto; min-height: 100svh; max-height: none;
  padding: 136px 0 0; display: grid; place-items: initial; background-color: var(--paper);
  grid-template-rows: auto clamp(230px, 23vw, 440px) minmax(82px, auto) auto auto;
}
.hero-copy { padding: 0 4vw; pointer-events: auto; transform: translateY(6px); }
.hero-copy > .eyebrow { margin-bottom: 20px; text-transform: uppercase; }
.hero h1 { font-size: clamp(58px, 5.9vw, 114px); line-height: 1.05; letter-spacing: -.06em; }
.hero h1 .becomes { font-size: 1em; }
.photo-panorama { position: relative; overflow: hidden; min-width: 0; isolation: isolate; transform: translateY(6px); }
.photo-panel { position: absolute; left: 0; top: 0; object-fit: cover; max-width: none; border-radius: 7px; will-change: transform; }
.hero-meta { position: static; margin: 0 3vw 20px; font-size: 9px; align-items: center; justify-content: center; }
.hero-meta-copy { margin: 0; font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: 500; line-height: 1.55; letter-spacing: .1em; text-align: center; }
.hero .trust-strip { padding: 20px 3vw; gap: 32px; background: var(--paper); border-top: 0; border-bottom: 0; min-width: 0; }
.trust-strip > p { flex: 0 0 140px; min-width: 0; font-size: 12px; line-height: 1.5; }
.logo-window { min-width: 0; mask-image: linear-gradient(to right,transparent,#000 12px,#000 calc(100% - 12px),transparent); }
.logo-track { animation-duration: 20s; }
.logo-group { gap: 42px; padding-right: 42px; flex-shrink: 0; }
.uni-logo { width: 170px; height: 48px; flex: 0 0 170px; object-fit: contain; opacity: 1; filter: grayscale(1); }
.uni-logo[data-university="berkeley"] { width: 200px; flex-basis: 200px; }
.uni-logo[data-university="berkeley"],.uni-logo[data-university="davis"],.uni-logo[data-university="tufts"],.uni-logo[data-university="florida"] { filter: brightness(0); }
.uni-logo[data-university="brown"],.uni-logo[data-university="pomona"] { height: 55px; }

/* Content-sized grid, with viewport pinning enabled only when the entire composition fits. */
.pathways { height: auto; }
.pathways.is-pinned { height: 520svh; }
.pathway-sticky { position: relative; top: 0; height: auto; min-height: 0; overflow: visible; padding: 112px 4vw 32px; }
.is-pinned .pathway-sticky { position: sticky; }
.pathway-sticky > .section-heading { text-align: center; }
.pathway-sticky .section-heading .eyebrow { margin-bottom: 16px; }
.pathway-sticky h2 { font-size: clamp(38px, 3.5vw, 64px); }
.pathway-instruction { position: static; margin-top: 16px; font-size: 13px; }
.pathway-stage { position: relative; inset: auto; max-width: 1400px; margin: 34px auto 30px; display: grid; grid-template-columns: minmax(180px,1fr) minmax(0,580px) minmax(180px,1fr); grid-template-rows: 1fr 1fr; column-gap: clamp(28px,4vw,80px); row-gap: 28px; align-items: center; }
.pathway-center { position: relative; inset: auto; margin: 0; width: 100%; max-width: none; min-height: 470px; grid-column: 2; grid-row: 1 / 3; padding: 28px 32px; align-self: stretch; display: flex; flex-direction: column; }
.pathway-center h3 { font-size: 29px; line-height: 1.15; margin: 16px 0; }
.pathway-logo { width: 190px; height: 42px; max-width: 100%; max-height: none; object-fit: contain; object-position: left center; margin: 18px 0 0; }
.pathway-center > p,.who p { font-size: 14px; line-height: 1.5; }
.pathway-center .who { margin-top: 20px; padding-top: 18px; }
.pathway-center > a { margin-top: auto; padding-top: 24px; gap: 16px; font-size: 13px; }
.pathway-stage > .fact { display: block; position: relative; inset: auto; margin: 0; width: 100%; max-width: 240px; padding: 22px; z-index: 1; }
.fact-one { grid-column: 1; grid-row: 1; justify-self: end; transform: rotate(-5deg); }
.fact-two { grid-column: 3; grid-row: 1 / 3; justify-self: start; transform: rotate(4deg); }
.fact-three { grid-column: 1; grid-row: 2; justify-self: end; transform: rotate(3deg); }
.fact p { font-size: 14px; line-height: 1.5; overflow-wrap: break-word; }
.fact .eyebrow { font-size: 10px; }
.pathway-controls { position: relative; inset: auto; max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 6px; padding: 7px; }
.pathway-controls button { max-width: none; min-width: 0; min-height: 62px; padding: 10px 12px; border: 1px solid transparent; color: var(--ink); }
.pathway-controls button img { width: 145px; max-width: 100%; height: 38px; object-fit: contain; }
.pathway-controls button:hover { background: #f1e8fb; }
.pathway-controls button[aria-selected="true"] { background: #e2d0f6; color: var(--ink); border-color: #9a75c2; }
.pathway-controls button:focus-visible { outline: 3px solid #7560ae; outline-offset: 3px; }
.source-note { position: static; text-align: center; margin: 16px 0 0; padding: 0; font-size: 10px; }

.manifesto { text-align: center; padding: clamp(90px,8vw,150px) 5vw; }
.manifesto h2 { max-width: 1700px; margin: 45px auto 0; font-size: clamp(48px,6.9vw,132px); line-height: 1.06; }
.manifesto h2 > span { display: block; margin-top: .15em; }

.join-scene { height: clamp(760px,90svh,1050px); display: block; }
.join-scene-copy { position: relative; padding-top: 82px; }
.join-scene-copy > p { margin-bottom: 18px; }
.join-scene h2 { font-size: clamp(100px,13vw,225px); line-height: .95; }
.join-scene h2 a,
.join-scene .circle-link { transition: color .25s ease, background-color .25s ease; }
.join-scene h2 a:hover,
.join-scene h2 a:focus-visible { color: var(--plum); }
.join-scene .circle-link:hover,
.join-scene .circle-link:focus-visible { background-color: var(--plum); color: var(--ink); }
.join-scene-copy:has(h2 a:hover, .circle-link:hover) h2 a,
.join-scene-copy:has(h2 a:focus-visible, .circle-link:focus-visible) h2 a {
  color: var(--plum);
  background-color: transparent;
  text-shadow: none;
  box-shadow: none;
}
.join-scene-copy:has(h2 a:hover, .circle-link:hover) .circle-link,
.join-scene-copy:has(h2 a:focus-visible, .circle-link:focus-visible) .circle-link { color: var(--ink); }
.join-scene-copy:has(h2 a:hover, .circle-link:hover) .circle-link,
.join-scene-copy:has(h2 a:focus-visible, .circle-link:focus-visible) .circle-link {
  background-color: var(--plum);
  color: var(--ink);
}
.join-scene .circle-link { margin: 22px auto; }
.circle-link span { display: block; line-height: 1; font-size: 28px; font-weight: 300; }
.photo-arc { position: absolute; inset: 390px 0 0; overflow: hidden; isolation: isolate; }
.photo-arc .photo-panel { box-shadow: 0 8px 25px #0002; }

footer:not(.simple-footer) { padding-top: 26px; }
.footer-panel { margin-top: 0; }
.giant-brand { min-height: 0; padding: 50px 2vw 20px; font-size: clamp(45px,12vw,205px); }
.giant-brand img { filter: none; }
.giant-brand span { background: linear-gradient(110deg,var(--plum),var(--lavender),var(--blue),var(--cyan)); background-clip: text; color: transparent; }
.motion-paused .photo-panel { will-change: auto; }

@media(max-width:1099px) {
  .hero { min-height: 0; padding-top: 130px; grid-template-rows: auto clamp(230px, 23vw, 440px) minmax(82px, auto) auto auto; }
  .hero h1 { max-width: 800px; margin: auto; font-size: clamp(50px,7vw,74px); }
  .hero h1 em { white-space: nowrap; }
  .pathway-stage { grid-template-columns: 1fr 1fr 1fr; gap: 25px; max-width: 760px; }
  .pathway-center { grid-column: 1 / 4; grid-row: 1; min-height: 0; max-width: 600px; justify-self: center; padding: 32px; }
  .pathway-stage > .fact { grid-row: 2; max-width: none; padding: 18px; align-self: stretch; }
  .fact-one { grid-column: 1; }.fact-two { grid-column: 2; }.fact-three { grid-column: 3; }
  .fact p { font-size: 13px; }
  .pathway-controls { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .photo-arc { top: 355px; }
}
@media(max-width:720px) {
  .hero { min-height: 0; height: auto; padding-top: 108px; grid-template-rows: auto 220px minmax(116px, auto) auto auto; }
  .hero-copy { padding: 0 18px; }
  .hero-copy > .eyebrow { margin-bottom: 18px; font-size: 9px; }
  .hero h1 { font-size: clamp(41px,11.7vw,76px); line-height: 1.03; }
  .hero h1 .becomes { display: inline; font-size: .83em; margin: 0; }
  .hero-meta { margin: 0 20px 18px; font-size: 7px; gap: 20px; }
  .hero .trust-strip { padding: 16px 20px; gap: 18px; }
  .trust-strip > p { flex-basis: 92px; font-size: 10px; }
  .uni-logo { flex-basis: 135px; width: 135px; height: 42px; }
  .logo-group { gap: 30px; padding-right: 30px; }
  .pathway-sticky { padding: 100px 6vw 32px; min-height: 0; }
  .pathway-stage { margin-top: 32px; grid-template-columns: 1fr 1fr; gap: 22px 18px; }
  .pathway-center { grid-column: 1 / 3; padding: 26px 23px; }
  .pathway-center h3 { font-size: 27px; }
  .pathway-center > p,.who p { font-size: 14px; }
  .pathway-stage > .fact { padding: 16px; }
  .fact-one { grid-column: 1; }.fact-two { grid-column: 2; }
  .pathway-stage > .fact-three { grid-column: 1 / 3; grid-row: 3; max-width: 260px; justify-self: center; }
  .fact .eyebrow { font-size: 9px; letter-spacing: .08em; }
  .fact p { font-size: 13px; }
  .pathway-controls { gap: 5px; padding: 6px; }
  .pathway-controls button { min-height: 57px; padding: 9px 6px; }
  .pathway-controls button img { height: 32px; }
  .source-note { font-size: 9px; }
  .manifesto { padding: 90px 6vw; }
  .manifesto h2 { font-size: clamp(40px,10.5vw,64px); line-height: 1.12; }
  .manifesto h2 br { display: none; }
  .manifesto h2 > span { margin-top: 20px; }
  .join-scene { height: 740px; }
  .join-scene-copy { padding-top: 85px; }
  .join-scene h2 { font-size: 110px; }
  .photo-arc { top: 355px; }
  .giant-brand { font-size: 12vw; padding: 35px 0 12px; gap: 8px; }
  .giant-brand img { width: 25%; }
}
@media(prefers-reduced-motion:reduce) {
  .logo-track { animation: none; }
  .logo-window { overflow-x: auto; mask-image: none; }
  .logo-group[aria-hidden="true"] { display: none; }
  .photo-panel { will-change: auto; }
  .pathways.is-pinned { height: auto; }
  .is-pinned .pathway-sticky { position: relative; }
}

/* Penn’s supplied canvas includes transparent margins around the complete lockup. */
.uni-logo[data-university="penn"] { object-fit: cover; height: 60px; }

/* Final alignment pass: the reference keeps the nav attached to the viewport and
   gives the hero/pathways compositions a tighter first-screen rhythm. */
.nav { top: 0; left: 0; right: 0; border-radius: 0 0 8px 8px; padding: 8px 24px; min-height: 70px; }
.hero { padding-top: 108px; }
.photo-panel { aspect-ratio: 1; }
.uni-logo[data-university="brown"] { width: 210px; flex-basis: 210px; height: 64px; object-fit: contain; object-position: center; filter: grayscale(1) contrast(1.05); mix-blend-mode: multiply; }
.pathway-sticky { padding-top: 88px; padding-bottom: 22px; }
.pathway-stage { margin-top: 22px; margin-bottom: 20px; row-gap: 20px; }
.pathway-center { min-height: 420px; padding: 22px 28px; }
.pathway-center h3 { margin: 12px 0; }
.pathway-logo { height: 36px; margin-top: 12px; }
.pathway-center .who { margin-top: 16px; padding-top: 14px; }
.pathway-center > a { padding-top: 18px; }
.source-note { margin-top: 8px; }
footer:not(.simple-footer) { padding-top: 0; }
.giant-brand { min-height: 360px; padding: 30px 0 45px; }
.giant-brand img { width: 28%; mix-blend-mode: multiply; filter: none; }
.giant-brand { filter: grayscale(1); transition: filter 400ms ease; }
.giant-brand:hover,.giant-brand:focus-visible { filter: grayscale(0); }
.footer-panel { margin-top: 0; }

@media(max-width:720px) {
  .nav { top: 0; left: 0; right: 0; border-radius: 0 0 9px 9px; padding: 8px 14px; min-height: 62px; }
  .hero { padding-top: 86px; }
  .uni-logo[data-university="brown"] { width: 165px; flex-basis: 165px; height: 54px; filter: grayscale(1) contrast(1.05); }
  .pathway-sticky { padding-top: 72px; padding-bottom: 22px; }
  .pathway-stage { margin-top: 24px; margin-bottom: 18px; grid-template-rows: auto auto auto; align-items: start; }
  .pathway-stage > .fact { align-self: start; height: auto; }
  .pathway-center { min-height: 0; padding: 20px; }
  .pathway-logo { height: 32px; margin-top: 9px; }
  .pathway-center .who { margin-top: 12px; padding-top: 12px; }
  .pathway-center > a { padding-top: 14px; }
  .giant-brand { min-height: 190px; padding: 15px 0 20px; }
  .footer-panel { margin-top: 0; }
}
