/* ═══════════════════════════════════════════════════════════════════
   MARBLE · Student Corner
   Section-scoped components. Colours, type and spacing come from the
   global tokens in ../styles.css — nothing new is invented here.
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Shared section shell ─────────────────────────────── */
.st-sec { padding: clamp(72px, 9vw, 128px) 0; background: var(--ink-0); }
.st-sec-alt { background: var(--ink-1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.st-lede { max-width: 68ch; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--bone-dim); }
.st-loading { padding: 56px 0; text-align: center; color: var(--bone-soft); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.st-empty { padding: 48px 16px; text-align: center; color: var(--bone-dim); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Enter animation — same easing family as the global reveal in app.js */
.st { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1); transition-delay: var(--st-d, 0ms); }
.st.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .st { opacity: 1 !important; transform: none !important; } }

/* ─── Hub: pathway cards ──────────────────────────────── */
.st-paths { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 1.6vw, 24px); margin-top: clamp(36px, 4vw, 56px); }
.st-path {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 12px;
  padding: clamp(28px, 3vw, 44px);
  background: var(--ink-1); border: 1px solid var(--line); border-radius: 10px;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), border-color .25s, background .25s;
}
.st-path::after {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 220px;
  background: radial-gradient(60% 100% at 50% 0%, color-mix(in oklab, var(--accent) 18%, transparent), transparent 70%);
  opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
.st-path:hover { transform: translateY(-4px); border-color: color-mix(in oklab, var(--accent) 45%, var(--line)); background: var(--ink-2); }
.st-path:hover::after { opacity: 1; }
.st-path-num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.st-path-title { font-size: clamp(24px, 2.4vw, 34px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.08; }
.st-path-desc { font-size: 15.5px; line-height: 1.6; color: var(--bone-dim); }
.st-path-cta { margin-top: auto; padding-top: 18px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone); display: inline-flex; gap: 10px; align-items: center; }
.st-path-cta span { transition: transform .25s; }
.st-path:hover .st-path-cta { color: var(--accent); }
.st-path:hover .st-path-cta span { transform: translateX(4px); }

/* ─── Hub: steps ──────────────────────────────────────── */
.st-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 32px); margin-top: clamp(36px, 4vw, 56px); }
.st-step { padding-top: 20px; border-top: 1px solid var(--line); }
.st-step-n { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--accent); text-transform: uppercase; }
.st-step-t { margin-top: 12px; font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
.st-step-d { margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: var(--bone-dim); }

/* ─── Mentors ─────────────────────────────────────────── */
.st-group { padding: clamp(40px, 5vw, 72px) 0 0; }
.st-group-title { font-size: clamp(26px, 3vw, 44px); font-weight: 500; letter-spacing: -0.028em; line-height: 1; }
.st-mentors { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 1.8vw, 28px); margin-top: clamp(24px, 2.6vw, 40px); }
.st-mentor { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--ink-1); transition: transform .25s cubic-bezier(.2,.7,.3,1), border-color .25s; }
.st-mentor:hover { transform: translateY(-4px); border-color: color-mix(in oklab, var(--accent) 45%, var(--line)); }
.st-mentor-photo { position: relative; aspect-ratio: 4 / 5; background: var(--ink-2); overflow: hidden; }
.st-mentor-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.st-mentor:hover .st-mentor-photo img { transform: scale(1.04); }
.st-mentor-ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-mono); font-size: 22px; letter-spacing: 0.1em; color: var(--bone-soft); background: linear-gradient(140deg, var(--ink-2), var(--ink-1)); }
.st-mentor-body { padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.st-mentor-name { font-size: 19px; font-weight: 500; letter-spacing: -0.012em; }
.st-mentor-role { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bone-soft); }
.st-mentor-bio { margin-top: 6px; font-size: 14.5px; line-height: 1.6; color: var(--bone-dim); }
.st-mentor-foot { margin-top: 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bone); display: flex; gap: 8px; align-items: center; }
.st-mentor:hover .st-mentor-foot { color: var(--accent); }

/* ─── Rows (topics, stories) ──────────────────────────── */
.st-rows { margin-top: clamp(28px, 3vw, 48px); border-top: 1px solid var(--line); }
.st-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px 112px; gap: clamp(20px, 2.4vw, 40px); align-items: center; padding: 28px 16px; border-bottom: 1px solid var(--line); color: var(--bone); transition: padding .2s, background .2s; }
.st-row:hover { padding-left: 28px; background: linear-gradient(90deg, color-mix(in oklab, var(--accent) 6%, transparent), transparent 70%); }
.st-row-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.st-row-title { font-size: clamp(20px, 1.9vw, 26px); font-weight: 500; letter-spacing: -0.018em; line-height: 1.15; transition: color .2s; }
.st-row:hover .st-row-title { color: var(--accent); }
.st-row-desc { font-size: 15px; line-height: 1.6; color: var(--bone-dim); max-width: 78ch; }

.st-row-meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bone-soft); line-height: 1.7; }
.st-row-cta { justify-self: end; }
.st-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.st-tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bone-soft); border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; }
.st-tag-open { color: var(--teal-lift); border-color: color-mix(in oklab, var(--teal-lift) 45%, transparent); }
.st-tag-closed { color: var(--bone-soft); }

/* Filter chips */
.st-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.st-chip { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bone-soft); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; transition: color .2s, border-color .2s, background .2s; }
.st-chip:hover { color: var(--bone); border-color: var(--bone-soft); }
.st-chip.is-on { color: var(--ink-0); background: var(--bone); border-color: var(--bone); }

/* ─── Detail pages ────────────────────────────────────── */
.st-detail { max-width: 960px; margin: 0 auto; padding: 0 var(--gutter); display: flex; flex-direction: column; gap: 28px; }
.st-detail h2 { font-size: clamp(22px, 2.3vw, 30px); font-weight: 500; letter-spacing: -0.018em; line-height: 1.15; margin-top: 12px; }
.st-detail p { font-size: 17px; line-height: 1.65; color: var(--bone-dim); }
.st-detail p strong { color: var(--bone); font-weight: 500; }
.st-detail blockquote { border-left: 2px solid var(--accent); padding-left: 20px; font-size: 19px; line-height: 1.5; color: var(--bone); }
.st-detail ul { display: flex; flex-direction: column; gap: 10px; }
.st-detail ul li { position: relative; padding-left: 20px; font-size: 16.5px; line-height: 1.6; color: var(--bone-dim); }
.st-detail ul li::before { content: ""; position: absolute; left: 0; top: 11px; width: 7px; height: 1px; background: var(--accent); }
.st-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 32px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.st-fact-k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bone-soft); }
.st-fact-v { margin-top: 6px; font-size: 15.5px; line-height: 1.5; color: var(--bone); }
.st-mentor-strip { display: flex; gap: 16px; align-items: center; padding: 20px 0; border-top: 1px solid var(--line); }
.st-mentor-strip img, .st-mentor-strip .st-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--ink-2); flex: none; }
.st-portrait { width: 100%; max-width: 360px; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--ink-2); }
.st-portrait img { width: 100%; height: 100%; object-fit: cover; }

/* ─── Apply form ──────────────────────────────────────── */
.st-form { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: clamp(32px, 3.4vw, 48px); }
.st-fieldset { display: flex; flex-direction: column; gap: 18px; border: 0; margin: 0; padding: 0; min-width: 0; }
.st-fieldset legend { display: block; padding: 0; margin-bottom: 4px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }

.st-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.st-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.st-field > label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bone-soft); }
.st-field input, .st-field select, .st-field textarea {
  background: var(--ink-1); border: 1px solid var(--line); border-radius: 7px; color: var(--bone);
  font-family: var(--font-display); font-size: 15.5px; padding: 13px 14px; outline: 0;
  transition: border-color .2s, background .2s;
  width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box;
}
.st-field select { text-overflow: ellipsis; }

.st-field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.st-field input:focus, .st-field select:focus, .st-field textarea:focus { border-color: var(--accent); background: var(--ink-2); }
.st-field input::placeholder, .st-field textarea::placeholder { color: var(--bone-soft); }
.st-field select option { background: var(--ink-1); color: var(--bone); }
.st-hint { font-size: 13px; line-height: 1.55; color: var(--bone-soft); }
.st-check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.55; color: var(--bone-dim); }
.st-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.st-file { border: 1px dashed var(--line); border-radius: 7px; padding: 16px; background: var(--ink-1); }
.st-file input { font-family: var(--font-mono); font-size: 12px; color: var(--bone-dim); background: transparent; border: 0; padding: 0; }
.st-error { color: #ff8a7a; font-size: 13.5px; }
.st-form-foot { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; padding-top: 8px; }
.st-status { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bone-soft); }
.st-success { padding: clamp(32px, 4vw, 56px); border: 1px solid color-mix(in oklab, var(--teal-lift) 40%, var(--line)); border-radius: 10px; background: var(--ink-1); display: flex; flex-direction: column; gap: 14px; }
.st-success-title { font-size: clamp(26px, 2.6vw, 38px); font-weight: 500; letter-spacing: -0.02em; }

/* ─── Responsive ──────────────────────────────────────── */
@media (max-width: 1080px) {
  .st-mentors { grid-template-columns: repeat(2, 1fr); }
  .st-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .st-paths { grid-template-columns: 1fr; }
  .st-row { grid-template-columns: 1fr; gap: 14px; }
  .st-row-cta { justify-self: start; }
  .st-grid2 { grid-template-columns: 1fr; }
  .st-facts { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .st-mentors { grid-template-columns: 1fr; }
  .st-steps { grid-template-columns: 1fr; }
}

/* ─── Featured voices: pull quote + field video ─────────── */
.st-voices { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(20px, 2.4vw, 40px); align-items: stretch; margin-top: clamp(32px, 4vw, 52px); }
.st-quote {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: clamp(24px, 3vw, 40px);
  padding: clamp(28px, 3.2vw, 52px);
  background: var(--ink-1); border: 1px solid var(--line); border-radius: 12px;
}
.st-quote::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--accent), transparent 85%);
}
.st-quote::after {
  content: ""; position: absolute; inset: -30% -20% auto auto; width: 380px; height: 380px;
  background: radial-gradient(50% 50% at 50% 50%, color-mix(in oklab, var(--accent) 14%, transparent), transparent 70%);
  pointer-events: none;
}
.st-quote-mark { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.st-quote-text { font-size: clamp(21px, 2.05vw, 30px); font-weight: 400; line-height: 1.38; letter-spacing: -0.018em; }
.st-quote-text p + p { margin-top: 0.7em; }
.st-quote-text em { font-style: normal; color: var(--accent); }
.st-quote-by { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding-top: clamp(18px, 2vw, 26px); border-top: 1px solid var(--line); }
.st-quote-name { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.st-quote-role { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bone-soft); }

.st-clip { position: relative; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: var(--ink-2); min-height: 320px; }
.st-clip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.02); transition: transform 1.2s cubic-bezier(.2,.7,.3,1); }
.st-clip:hover video { transform: scale(1.05); }
.st-clip-veil { position: absolute; inset: 0; background: linear-gradient(190deg, transparent 30%, color-mix(in oklab, #0b1118 72%, transparent) 100%); pointer-events: none; }
.st-clip-meta { position: absolute; left: clamp(18px, 2vw, 28px); right: clamp(18px, 2vw, 28px); bottom: clamp(18px, 2vw, 28px); display: flex; flex-direction: column; gap: 7px; color: #f4f1ea; }
.st-clip-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.78; }
.st-clip-title { font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; letter-spacing: -0.015em; }
.st-clip-live { position: absolute; top: clamp(16px, 1.8vw, 24px); left: clamp(16px, 1.8vw, 24px); display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border-radius: 999px; background: color-mix(in oklab, #0b1118 55%, transparent); backdrop-filter: blur(6px); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: #f4f1ea; }
.st-clip-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: stPulse 2s ease-in-out infinite; }
@keyframes stPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
.st-clip-sound { position: absolute; top: clamp(16px, 1.8vw, 24px); right: clamp(16px, 1.8vw, 24px); width: 38px; height: 38px; border-radius: 50%; border: 1px solid color-mix(in oklab, #f4f1ea 35%, transparent); background: color-mix(in oklab, #0b1118 55%, transparent); backdrop-filter: blur(6px); color: #f4f1ea; display: grid; place-items: center; cursor: pointer; transition: transform .2s, background .2s; }
.st-clip-sound:hover { transform: scale(1.08); }

@media (max-width: 900px) {
  .st-voices { grid-template-columns: 1fr; }
  .st-clip { min-height: 62vw; }
  @media (prefers-reduced-motion: reduce) { .st-clip-live i { animation: none; } }
}


/* ─── Hub: life here gallery ──────────────────────────── */
.st-gal { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(14px, 1.6vw, 24px); margin-top: clamp(36px, 4vw, 56px); }
.st-gal-cell { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--ink-1); overflow: hidden; }
.st-gal-media { position: relative; display: block; width: 100%; flex: 1; min-height: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-1); }
.st-gal-media img, .st-gal-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-gal-video .st-gal-media { aspect-ratio: 16 / 9; }
.st-gal > .st-gal-cell:not(.st-gal-quote) > .st-gal-media { aspect-ratio: auto; }
.st-gal-cap { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 18px 16px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bone-soft); border-top: 1px solid var(--line); }
.st-gal-cap b { font-weight: 400; color: var(--accent); }
.st-gal-play { position: absolute; inset: auto auto 16px 16px; display: inline-flex; align-items: center; gap: 9px; padding: 10px 15px; background: var(--ink-0); border: 1px solid var(--line); color: var(--bone); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
.st-gal-play:hover { border-color: var(--accent); color: var(--accent); }
.st-gal-quote { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: clamp(24px, 2.4vw, 36px); }
.st-gal-quote blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(19px, 1.7vw, 25px); line-height: 1.34; letter-spacing: -0.015em; color: var(--bone); text-wrap: pretty; }
.st-gal-quote blockquote::before { content: "“"; color: var(--accent); }
.st-gal-quote blockquote::after { content: "”"; color: var(--accent); }
.st-gal-attr { display: grid; gap: 4px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bone-soft); }
.st-gal-attr strong { font-weight: 400; color: var(--bone-dim); }
@media (max-width: 860px) {
  .st-gal { grid-template-columns: 1fr; }
  .st-gal > .st-gal-cell:not(.st-gal-quote) > .st-gal-media { aspect-ratio: 16 / 10; }
}

/* Student stories — evidence photo panel */
.st-proof { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(20px, 2.4vw, 40px); align-items: center; margin-top: clamp(28px, 3.2vw, 48px); }
.st-proof-media { position: relative; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: var(--ink-2); aspect-ratio: 4 / 3; }
.st-proof-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; display: block; transform: scale(1.02); transition: transform 1.2s cubic-bezier(.2,.7,.3,1); }
.st-proof:hover .st-proof-media img { transform: scale(1.05); }
.st-proof-text { display: flex; flex-direction: column; gap: 12px; }
.st-proof-line { font-size: clamp(20px, 1.85vw, 27px); font-weight: 500; line-height: 1.28; letter-spacing: -0.018em; }
.st-proof-note { font-size: 15.5px; line-height: 1.62; color: var(--bone-soft); max-width: 46ch; }
@media (max-width: 860px) {
  .st-proof { grid-template-columns: 1fr; }
  .st-proof-media { aspect-ratio: 3 / 2; }
}
.st-voices-alt { grid-template-columns: 1.2fr 0.8fr; }
.st-clip-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; display: block; }
.st-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.4vw, 40px); margin-top: clamp(28px, 3.2vw, 48px); }
.st-gallery figure { margin: 0; aspect-ratio: 16 / 9; }
@media (max-width: 900px) { .st-voices-alt, .st-gallery { grid-template-columns: 1fr; } }
