/* ==========================================================================
   MISJ STUCO — CHAPTERS (part 2)
   05 Ideas → Action · 06 Projects · 08 Impact
   Student Voice · 09 The Future · Footer · Project sheet
   ========================================================================== */

/* ---------- 05 FROM IDEAS TO ACTION ---------- */
.ideas { height: 430vh; }
.ideas__head { position: absolute; left: var(--gutter); top: clamp(76.8px, 15vh, 128px); z-index: 3; max-width: min(64vw, 720px); will-change: opacity, transform; }
.ideas__words { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; }
.iw {
  grid-area: 1 / 1; white-space: nowrap; opacity: 0;
  font-family: var(--f-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.05;
  font-size: min(12vw, 27.2vh); margin-right: -.02em;
  will-change: transform, opacity, filter;
}
.iw--impact { color: var(--yellow); }
.ideas__rail { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(20.8px, 6vh, 48px); z-index: 3; display: flex; gap: clamp(11.2px, 3vw, 38.4px); color: rgba(255, 255, 255, .38); }
.ideas__rail li { position: relative; padding-top: 12.8px; transition: color .5s; }
.ideas__rail li::before { content: ""; position: absolute; left: 0; top: 0; width: 5.6px; height: 5.6px; border-radius: 50%; border: 1px solid currentColor; transition: background .5s, box-shadow .5s, border-color .5s; }
.ideas__rail li.on { color: var(--white); }
.ideas__rail li.on::before { background: var(--yellow); border-color: var(--yellow); box-shadow: 0 0 14px var(--yellow-glow); }
.ideas__flood { position: absolute; inset: 0; z-index: 4; background: var(--yellow); opacity: 0; pointer-events: none; will-change: transform, opacity; }

/* ---------- 06 WHAT WE CREATE ---------- */
.proj { padding-top: clamp(104px, 22vh, 192px); }
.proj__intro { display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 3vw; margin-bottom: clamp(24px, 5vh, 48px); }
.proj__intro > .label, .proj__intro > h2 { grid-column: 1; }
.proj__filters { grid-column: 2; grid-row: 1 / span 2; align-self: end; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 17.6px; max-width: 336px; padding-bottom: .6rem; }
.pf { position: relative; padding: .6em 0; font: 500 .72rem/1 var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--mist); transition: color .35s; }
.pf::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .55s var(--ease); }
.pf:hover, .pf[aria-pressed="true"] { color: var(--white); }
.pf[aria-pressed="true"]::after { transform: scaleX(1); }
.pf sup { color: var(--yellow); margin-left: .3em; font-size: .85em; }

.proj__pin { position: relative; }
.proj__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.proj__track { display: flex; align-items: center; gap: clamp(16px, 3vw, 41.6px); width: max-content; padding-inline: var(--gutter); will-change: transform; }
.pcard {
  position: relative; flex: none; width: clamp(256px, 56vw, 832px); height: min(70svh, 38vw);
  transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.pcard:nth-child(3n+2) { height: min(60svh, 33vw); }
.pcard.is-in { animation: cardIn .9s var(--ease) both; animation-delay: calc(var(--k, 0) * 70ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.pcard__btn { position: relative; display: block; width: 100%; height: 100%; text-align: left; }
.pcard .media { position: absolute; inset: 0; }
.pcard .media > img, .pcard .media > .ph { left: -8%; right: auto; width: 116%; will-change: transform; }
.pcard__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(3, 10, 34, .94) 0%, rgba(3, 10, 34, .3) 48%, rgba(3, 10, 34, 0) 75%); }
.pcard__num { position: absolute; left: clamp(14.4px, 2vw, 25.6px); top: clamp(12.8px, 2vw, 22.4px); font-family: var(--f-display); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; font-size: clamp(2.6rem, 4vw, 5.6rem); color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .55); }
.pcard__status { position: absolute; right: clamp(14.4px, 2vw, 25.6px); top: clamp(14.4px, 2vw, 24px); display: flex; align-items: center; gap: .6em; }
.status-dot { width: 5.6px; height: 5.6px; border-radius: 50%; background: var(--white); }
.status--ongoing .status-dot { background: var(--yellow); box-shadow: 0 0 12px var(--yellow-glow); animation: blink 1.8s infinite; }
.status--planned .status-dot { background: transparent; border: 1px solid var(--white); }
@keyframes blink { 50% { opacity: .3; } }
.pcard__body { position: absolute; left: clamp(16px, 2.4vw, 32px); right: clamp(16px, 2.4vw, 32px); bottom: clamp(16px, 2.4vw, 32px); display: grid; gap: .8rem; }
.pcard__meta { display: flex; flex-wrap: wrap; gap: .3em 1.4em; color: rgba(255, 255, 255, .7); }
.pcard__meta span:first-child { color: var(--yellow); }
.pcard__title { font-family: var(--f-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; font-size: clamp(2rem, 3.2vw, 4.8rem); transition: transform .8s var(--ease); }
.pcard__desc { max-width: 44ch; color: var(--mist); font-size: clamp(.95rem, .82vw, 1.1rem); }
.pcard__btn:hover .pcard__title { transform: translateX(.12em); }
.pcard--end { width: clamp(240px, 40vw, 544px); display: flex; flex-direction: column; justify-content: center; gap: 2rem; padding-inline: 2vw; }
.pcard--end p { font-family: var(--f-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; font-size: clamp(2rem, 2.88vw, 4.2rem); }
.pcard--end p em { font-style: normal; color: var(--yellow); }
.pcard--end .btn { align-self: flex-start; }
.pcard--empty { width: min(80vw, 560px); display: grid; place-items: center; color: var(--mist); }
.proj__count { white-space: nowrap; }
.proj__progress { display: flex; align-items: center; gap: 14.4px; padding: clamp(14.4px, 4vh, 35.2px) var(--gutter) 0; color: var(--mist); }
.proj__bar { position: relative; flex: 0 1 280px; height: 1px; background: var(--faint); }
.proj__bar i { position: absolute; inset: 0; background: var(--yellow); transform: scaleX(0); transform-origin: left; }

/* ---------- 08 IMPACT ---------- */
.impact { padding-block: clamp(104px, 22vh, 192px) clamp(88px, 18vh, 160px); overflow: hidden; }
.impact__ghost {
  position: absolute; left: 50%; top: 9%; z-index: -1; white-space: nowrap; pointer-events: none;
  font-family: var(--f-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.05;
  font-size: 26.4vw; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .08);
  transform: translate3d(-50%, 0, 0); will-change: transform;
}
.stats { margin-top: clamp(48px, 11vh, 104px); }
.stat { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 3vw; padding: clamp(11.2px, 2.6vh, 27.2px) var(--gutter); border-top: 1px solid rgba(255, 255, 255, .2); }
.stat:last-child { border-bottom: 1px solid rgba(255, 255, 255, .2); }
.stat:nth-child(even) { grid-template-columns: 1fr auto; }
.stat:nth-child(even) .stat__num { order: 2; }
.stat:nth-child(even) .stat__label { justify-content: flex-start; }
.stat__num { font-family: var(--f-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; font-size: clamp(4.4rem, 12.4vw, 19rem); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat__suffix { color: var(--yellow); }
.stat__label { display: flex; justify-content: flex-end; align-items: baseline; gap: 1rem; padding-bottom: 1.2vw; font-family: var(--f-display); font-weight: 700; letter-spacing: -.02em; font-size: clamp(1.1rem, 1.76vw, 2.5rem); }
.stat__idx { color: var(--yellow); }

/* ---------- STUDENT VOICE ---------- */
.voice { background: var(--paper); color: var(--ink); padding-block: clamp(112px, 22vh, 200px) clamp(80px, 16vh, 144px); }
.voice .label { color: var(--blue-600); }
.voice__title { max-width: 11ch; }
.voice__title mark { position: relative; white-space: nowrap; }
.voice__title mark::before {
  content: ""; position: absolute; z-index: -1; left: -.04em; right: -.06em; bottom: .02em; height: .42em;
  background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform 1.3s var(--ease) .7s;
}
.voice__title.in mark::before { transform: scaleX(1); }
.voice .lede { color: rgba(7, 21, 66, .72); margin-top: clamp(19.2px, 4vh, 35.2px); }
.voice__opts { margin-top: clamp(48px, 11vh, 104px); border-top: 1px solid rgba(7, 21, 66, .2); }
.vopt a { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 3vw; padding: clamp(19.2px, 4.4vh, 38.4px) var(--gutter); border-bottom: 1px solid rgba(7, 21, 66, .2); transition: color .5s; }
.vopt a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .8s var(--ease); }
.vopt a:hover, .vopt a:focus-visible { color: var(--paper); }
.vopt a:hover::before, .vopt a:focus-visible::before { transform: scaleY(1); }
.vopt__idx { color: var(--blue-600); transition: color .5s; }
.vopt__title { display: block; font-family: var(--f-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; font-size: clamp(2.3rem, 5.76vw, 9rem); transition: transform .9s var(--ease); }
.vopt__text { display: block; margin-top: .9rem; font-size: clamp(.95rem, .88vw, 1.2rem); color: rgba(7, 21, 66, .66); transition: color .5s; }
.vopt__arrow { font-size: clamp(2rem, 4vw, 5.4rem); line-height: 1; transition: transform .8s var(--ease), color .5s; }
.vopt a:hover .vopt__title, .vopt a:focus-visible .vopt__title { transform: translateX(1.2vw); }
.vopt a:hover .vopt__arrow, .vopt a:focus-visible .vopt__arrow { color: var(--yellow); transform: rotate(-45deg); }
.vopt a:hover .vopt__text, .vopt a:focus-visible .vopt__text { color: rgba(243, 241, 234, .72); }
.vopt a:hover .vopt__idx, .vopt a:focus-visible .vopt__idx { color: var(--yellow); }
.voice :focus-visible { outline-color: var(--blue-600); }

/* ---------- 09 THE FUTURE ---------- */
.future { height: 320vh; }
.future__head { position: absolute; left: var(--gutter); top: clamp(76.8px, 15vh, 128px); z-index: 2; max-width: min(72vw, 880px); transition: opacity .8s var(--ease), filter .8s; }
.future__line { position: absolute; inset: 0; z-index: 1; transition: opacity 1s var(--ease); }
.future__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.future__ghost { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 1; stroke-dasharray: 2 8; }
.future__path { fill: none; stroke: var(--yellow); stroke-width: 2; stroke-linecap: round; }
.future__marks { position: absolute; inset: 0; }
.fm { position: absolute; left: 0; top: 0; }
.fm__dot { position: absolute; left: -4.8px; top: -4.8px; width: 9.6px; height: 9.6px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); background: var(--navy-900); transition: background .5s, border-color .5s, box-shadow .5s, transform .6s var(--ease); }
.fm__label { position: absolute; left: 0; top: 16px; transform: translateX(-50%); white-space: nowrap; color: rgba(255, 255, 255, .4); transition: color .5s; }
.fm:nth-child(even) .fm__label { top: auto; bottom: 16px; }
.fm.lit .fm__dot { background: var(--yellow); border-color: var(--yellow); transform: scale(1.25); box-shadow: 0 0 0 6px rgba(255, 210, 31, .14), 0 0 24px var(--yellow-glow); }
.fm.lit .fm__label { color: var(--white); }
.future__dot { position: absolute; left: 0; top: 0; width: 8.8px; height: 8.8px; margin: -4.4px 0 0 -4.4px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 6px rgba(255, 210, 31, .15), 0 0 30px 8px var(--yellow-glow); opacity: 0; will-change: transform; }
.future__final { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(38.4px, 10vh, 88px); z-index: 3; display: grid; justify-items: start; gap: clamp(14.4px, 3vh, 24px); pointer-events: none; }
.future__yours { font-size: clamp(2.6rem, 6.08vw, 10rem); max-width: 12ch; }
.future__yours span { display: inline-block; opacity: 0; transform: translate3d(0, 40px, 0); filter: blur(12px); transition: opacity 1.1s var(--ease), transform 1.3s var(--ease), filter 1.1s var(--ease); }
.future__yours span:nth-child(2) { transition-delay: .12s; }
.future__yours span:nth-child(3) { transition-delay: .24s; color: var(--yellow); }
.future__sig, .future__final .btn { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease) .45s, transform 1s var(--ease) .45s, background .45s, border-color .45s; }
.future__final .btn { transition-delay: .6s, .6s, 0s, 0s; }
.future__stage.is-final .future__final { pointer-events: auto; }
.future__stage.is-final .future__yours span, .future__stage.is-final .future__sig, .future__stage.is-final .future__final .btn { opacity: 1; transform: none; filter: none; }
.future__stage.is-final .future__head { opacity: .12; filter: blur(2px); }
.future__stage.is-final .future__line { opacity: .3; transform: translate3d(0, -13vh, 0); }
.future__line { transition: opacity 1s var(--ease), transform 1.4s var(--ease); }

/* ---------- FOOTER ---------- */
.foot { background: var(--navy-950); padding: clamp(64px, 14vh, 120px) var(--gutter) 24px; border-top: 1px solid var(--hair); }
.foot__top { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14.4px 20.8px; }
.foot__logo img { height: clamp(38.4px, 4vw, 51.2px); width: auto; max-width: 192px; object-fit: contain; }
.foot__stuco { height: clamp(35.2px, 3.6vw, 46.4px); width: auto; }
.foot__name { font-family: var(--f-display); font-weight: 700; letter-spacing: -.02em; font-size: clamp(1.2rem, 1.6vw, 1.9rem); }
.foot__grid { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 5vw; margin-top: clamp(38.4px, 8vh, 72px); padding-top: 27.2px; border-top: 1px solid var(--hair); }
.foot__nav ul { columns: 2; column-gap: 3vw; }
.foot__nav a { display: inline-block; padding: .32em 0; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; color: var(--mist); transition: color .3s, transform .5s var(--ease); }
.foot__nav a:hover { color: var(--white); transform: translateX(4px); }
.foot__contact { display: grid; align-content: start; gap: .7rem; color: var(--mist); }
.foot__contact .micro { color: var(--yellow); }
.foot__contact a { color: var(--white); border-bottom: 1px solid var(--faint); transition: border-color .3s; justify-self: start; }
.foot__contact a:hover { border-color: var(--yellow); }
.foot__social { display: flex; gap: 9.6px; align-items: flex-start; }
.foot__social a { display: grid; place-items: center; width: 88px; height: 88px; border: 1px solid var(--faint); border-radius: 50%; transition: background .35s, color .35s, border-color .35s; }
.foot__social a:hover { background: var(--yellow); border-color: var(--yellow); color: var(--navy-950); }
.foot__social svg { width: 40px; height: 40px; fill: currentColor; }
.foot__statement { margin-top: clamp(56px, 13vh, 120px); font-family: var(--f-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; font-size: clamp(2.4rem, 5.76vw, 9.4rem); }
.foot__statement .y { color: var(--yellow); }
.foot__copy { margin-top: 35.2px; color: rgba(255, 255, 255, .42); }

/* ---------- PROJECT SHEET ---------- */
.sheet { position: fixed; inset: 0; z-index: 75; background: rgba(3, 10, 34, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .5s; }
.sheet.open { opacity: 1; }
.sheet__inner { position: absolute; inset: clamp(0px, 4vh, 38.4px) clamp(0px, 4vw, 57.6px); overflow-y: auto; background: var(--navy-900); clip-path: inset(100% 0 0 0); transition: clip-path .9s var(--ease-io); }
.sheet.open .sheet__inner { clip-path: inset(0 0 0 0); }
.sheet__close { position: absolute; right: 16px; top: 16px; z-index: 3; padding: 1em 1.3em; border: 1px solid var(--faint); border-radius: 999px; background: rgba(3, 10, 34, .55); transition: border-color .3s; }
.sheet__close:hover { border-color: var(--yellow); }
.sheet__media { height: min(60vh, 56vw); }
.sheet__body { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4vw; padding: clamp(22.4px, 5vw, 57.6px); }
.sheet__title { font-family: var(--f-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; font-size: clamp(2.4rem, 4.48vw, 6.6rem); margin-top: 1rem; }
.sheet__meta { display: grid; gap: 1rem; align-content: start; }
.sheet__meta div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--hair); }
.sheet__meta dt { color: var(--mist); }
.sheet__meta dd { margin: 0; text-align: right; }
.sheet__desc { font-size: clamp(1.1rem, 1.2vw, 1.5rem); line-height: 1.45; margin-top: 1.6rem; max-width: 36ch; }

/* ---------- responsive: part 2 ---------- */
@media (max-width: 900px), (hover: none) {
  .proj__pin { height: auto !important; }
  .proj__stage { position: relative; height: auto; }
  .proj__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; transform: none !important; padding-bottom: 11.2px; scrollbar-width: none; }
  .proj__track::-webkit-scrollbar { display: none; }
  .pcard, .pcard:nth-child(3n+2) { width: min(84vw, 448px); height: min(70svh, 118vw); scroll-snap-align: center; }
  .pcard--end { width: 78vw; }
  .proj__hint { display: none; }
}
@media (max-width: 900px) {
  .proj__intro { grid-template-columns: 1fr; }
  .proj__filters { grid-column: 1; grid-row: auto; justify-content: flex-start; margin-top: 19.2px; }
  .stat, .stat:nth-child(even) { grid-template-columns: 1fr; gap: 8px; }
  .stat:nth-child(even) .stat__num { order: 0; }
  .stat__label, .stat:nth-child(even) .stat__label { justify-content: flex-start; padding-bottom: 0; }
  .vopt a { grid-template-columns: 1fr auto; }
  .vopt__idx { grid-column: 1 / -1; }
  .foot__grid { grid-template-columns: 1fr; gap: 32px; }
  .sheet__body { grid-template-columns: 1fr; }
  .ideas__rail { gap: 8px; justify-content: space-between; }
  .ideas__rail li { font-size: .58rem; letter-spacing: .1em; }
  .fm__label { font-size: .54rem; letter-spacing: .08em; }
}

/* ---------- reduced motion: part 2 ---------- */
.reduce .ideas { height: auto; }
.reduce .ideas__stage { position: relative; height: auto; padding: 104px var(--gutter) 80px; }
.reduce .ideas__head { position: relative; left: 0; top: 0; margin-bottom: 32px; }
.reduce .ideas__words { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3.2px; }
.reduce .iw { opacity: 1; font-size: clamp(3rem, 9.6vw, 12rem); }
.reduce .ideas__rail, .reduce .ideas__flood { display: none; }
.reduce .future { height: auto; }
.reduce .future__stage { position: relative; height: auto; display: flex; flex-direction: column; gap: 32px; padding: 104px var(--gutter) 80px; }
.reduce .future__head, .reduce .future__final { position: relative; left: 0; right: 0; top: 0; bottom: 0; pointer-events: auto; }
.reduce .future__line { position: relative; height: 176px; margin-inline: calc(var(--gutter) * -1); }
.reduce .future__yours span, .reduce .future__sig, .reduce .future__final .btn { opacity: 1; transform: none; filter: none; transition: none; }
.reduce .future__stage.is-final .future__head, .reduce .future__stage.is-final .future__line { opacity: 1; filter: none; }
.reduce .pcard.is-in { animation: none; }
