/* ==========================================================================
   STUDENT WINS (/student-wins). Loaded after site.css.
   Built from "Student Wins Directions.dc.html" 2a (1440px design values).
   ========================================================================== */

.sw-kicker { font-size: clamp(34px, 3.06vw, 44px); color: var(--honey); }
.sw-wrap { max-width: 1000px; margin: 0 auto; }
.sw-list { margin-top: 60px; border-bottom: 1.5px solid var(--line-on-dark); }

/* ---------- Hero ---------- */
.sw-hero { position: relative; padding-bottom: clamp(90px, 9vw, 130px); z-index: 2; }
.sw-hero__copy { text-align: center; padding: clamp(50px, 6.9vw, 100px) clamp(20px, 9.7vw, 140px) 0; }
.sw-hero__copy .script { font-size: clamp(36px, 3.6vw, 52px); color: var(--honey); }
.sw-hero h1 { font-size: clamp(54px, 7.5vw, 108px); line-height: 0.96; color: var(--cream); margin-top: 14px; text-wrap: balance; }

/* ---------- Case studies ---------- */
.sw-cases { padding: clamp(100px, 9.7vw, 140px) var(--gutter) 60px; position: relative; z-index: 1; }
.sw-case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 5.6vw, 80px); align-items: center; max-width: 1200px; margin: 0 auto; padding: 60px 0; }
.sw-case:first-child { padding-top: 40px; }
.sw-case--flip .sw-case__media { order: 2; }
.sw-case__who { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--terracotta); }
.sw-case h2 { font-size: clamp(36px, 3.9vw, 56px); line-height: 1; color: var(--espresso); margin-top: 16px; text-wrap: pretty; }
.sw-case__story { font-size: 16.5px; line-height: 1.7; color: var(--bark); margin-top: 22px; }
.sw-case__quote { font-family: var(--font-display); font-size: clamp(21px, 1.8vw, 26px); line-height: 1.2; color: var(--espresso); margin-top: 26px; }
.sw-case__proof { width: 78%; margin-top: 26px; padding: 8px; }
.sw-by { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--espresso); }
.sw-by img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.sw-by .avatar { width: 40px; height: 40px; font-size: 13px; }
/* linked name + photo: yellow on hover, underline draws in from the left */
.sw-by--link { width: fit-content; text-decoration: none; }
.sw-by--link img, .sw-by--link .avatar { transition: box-shadow 0.25s; }
.sw-by--link span:last-child { background: linear-gradient(var(--sunny), var(--sunny)) left bottom / 0 2px no-repeat; padding-bottom: 3px; transition: color 0.25s, background-size 0.35s var(--ease-out); }
.sw-by--link:hover span:last-child, .sw-by--link:focus-visible span:last-child { color: var(--ochre); background-size: 100% 2px; }
.sw-by--link:hover img, .sw-by--link:hover .avatar, .sw-by--link:focus-visible img { box-shadow: 0 0 0 2.5px var(--sunny); }

/* screenshots in white mounts; captioned ones get a script line in the bottom margin */
.sw-shot { background: #fff; padding: 10px; box-shadow: var(--shadow-photo); transform: rotate(var(--r, 0deg)) translateY(var(--y, 0)); position: relative; }
.sw-shot img { width: 100%; }
.sw-shot--cap { padding-bottom: 32px; }
.sw-shot figcaption { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font-family: var(--font-script); font-size: 20px; line-height: 1; color: var(--olive); }
.sw-case__media--pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; }
.sw-case__media--pair .sw-shot { padding: 8px 8px 30px; }
.sw-case__media--stack { display: grid; gap: 28px; width: 82%; justify-self: center; }
.sw-case__media--single { display: flex; justify-content: center; }
.sw-case__media--single .sw-shot { width: 60%; padding: 8px 8px 30px; }

/* ---------- Short wins ---------- */
.sw-short { padding: clamp(100px, 9.7vw, 140px) var(--gutter) clamp(90px, 8.3vw, 120px); position: relative; z-index: 2; }
.sw-short h2, .sw-beliefs h2 { font-size: clamp(46px, 5.3vw, 76px); line-height: 0.98; color: var(--cream); margin-top: 12px; max-width: 760px; text-wrap: balance; }
.sw-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) 260px; gap: 44px; align-items: center; padding: 40px 0; border-top: 1.5px solid var(--line-on-dark); }
.sw-row__photo { background: #fff; padding: 6px; box-shadow: var(--shadow-xl); transform: rotate(var(--r, 0deg)); }
.sw-row__photo img, .sw-row__photo span { width: 100%; aspect-ratio: 1; object-fit: cover; }
.sw-row__photo span { display: flex; align-items: center; justify-content: center; background: var(--sunny); font-family: var(--font-display); font-size: 48px; color: var(--espresso); }
.sw-row__who { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--honey); }
.sw-row__win { font-family: var(--font-display); font-size: clamp(28px, 2.8vw, 40px); line-height: 1.02; color: var(--cream); margin-top: 8px; text-wrap: pretty; }
.sw-row__quote { font-size: 15.5px; line-height: 1.65; color: var(--cream-body); margin-top: 10px; }
.sw-row__stat { text-align: right; }
.sw-row__num { font-family: var(--font-display); font-size: clamp(46px, 4.45vw, 64px); line-height: 0.9; color: var(--cream); }
.sw-row__stat .script { font-size: 24px; color: var(--honey); margin-top: 8px; }

/* ---------- Long quotes ---------- */
.sw-words { padding: clamp(110px, 10.4vw, 150px) var(--gutter) 60px; position: relative; z-index: 1; }
.sw-words__head { text-align: center; max-width: 820px; margin: 0 auto 60px; }
.sw-words__head .sw-kicker { color: var(--olive); }
.sw-words__head h2 { font-size: clamp(48px, 5.8vw, 84px); line-height: 0.98; color: var(--espresso); margin-top: 12px; text-wrap: balance; }
.sw-word { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(40px, 5.6vw, 80px); align-items: center; max-width: 1060px; margin: 0 auto; padding: 50px 0; }
.sw-word--flip { grid-template-columns: 300px minmax(0, 1fr); }
.sw-word--flip .sw-word__photo { order: -1; }
.sw-word__quote { font-family: var(--font-display); font-size: clamp(28px, 2.5vw, 36px); line-height: 1.22; color: var(--espresso); text-wrap: pretty; }
.sw-word__more { font-size: 16px; line-height: 1.7; color: var(--bark); margin-top: 18px; }
.sw-word__by { display: flex; align-items: center; gap: 16px; margin-top: 26px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.sw-scribble { display: block; width: 90px; height: 26px; background: var(--sunny); -webkit-mask: url("/assets/marks/scribble-2.webp") center / 100% 100% no-repeat; mask: url("/assets/marks/scribble-2.webp") center / 100% 100% no-repeat; }
.sw-word__photo { padding: 10px 10px 0; box-shadow: var(--shadow-photo); transform: rotate(var(--r, 0deg)); }
.sw-word__photo figcaption { font-size: 22px; }

/* ---------- Beliefs ---------- */
.sw-beliefs { padding: clamp(110px, 10.4vw, 150px) var(--gutter) clamp(90px, 8.3vw, 120px); position: relative; z-index: 2; }
.sw-beliefs h2 { font-size: clamp(48px, 5.8vw, 84px); line-height: 0.96; max-width: 860px; }
.sw-belief { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 40px; align-items: start; padding: 48px 0; border-top: 1.5px solid var(--line-on-dark); }
.sw-belief__n { font-family: var(--font-display); font-size: clamp(64px, 6.7vw, 96px); line-height: 0.85; color: var(--honey); }
.sw-belief h3 { font-size: clamp(32px, 3.2vw, 46px); line-height: 1.02; color: var(--cream); text-wrap: pretty; }
.sw-belief p { font-size: 16.5px; line-height: 1.7; color: var(--cream-body); margin-top: 16px; max-width: 620px; }

/* ---------- Fit + CTA ---------- */
.sw-fit { padding: clamp(110px, 11.1vw, 160px) var(--gutter) clamp(100px, 10.4vw, 150px); position: relative; }
.sw-fit__inner { max-width: 760px; margin: 0 auto; }
.sw-fit .sw-kicker { font-size: clamp(36px, 3.3vw, 48px); }
.sw-fit h2 { font-size: clamp(48px, 6.1vw, 88px); line-height: 0.96; color: var(--cream); margin-top: 14px; text-wrap: balance; }
.sw-checks { margin-top: 50px; border-bottom: 1.5px solid var(--line-on-dark); }
.sw-check { display: flex; gap: 18px; align-items: flex-start; padding: 20px 0; border-top: 1.5px solid var(--line-on-dark); font-family: var(--font-display); font-size: clamp(24px, 2.2vw, 32px); line-height: 1.08; color: var(--cream); }
.sw-check__box { flex: none; width: 34px; height: 34px; border: 2px solid var(--cream); display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.sw-check path { fill: none; stroke: var(--sunny); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 26; stroke-dashoffset: 26; transition: stroke-dashoffset 0.45s cubic-bezier(.4, 0, .2, 1); }
.sw-checks.is-on path { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) { .sw-check path { transition: none; stroke-dashoffset: 0; } }
.sw-fit__cta { display: flex; justify-content: center; margin-top: 50px; }
.sw-fit__cta .btn { height: 56px; padding: 0 36px; font-size: 15px; }
.sw-fit__sign { font-size: 34px; color: var(--honey); margin-top: 50px; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .sw-case, .sw-case--flip { grid-template-columns: 1fr; gap: 40px; }
  .sw-case--flip .sw-case__media { order: 0; }
  .sw-case__media--stack { width: 90%; }
  .sw-row { grid-template-columns: 90px minmax(0, 1fr); gap: 20px 28px; }
  .sw-row__stat { grid-column: 2; text-align: left; }
  .sw-word, .sw-word--flip { grid-template-columns: 1fr; }
  .sw-word--flip .sw-word__photo { order: 0; }
  .sw-word__photo { width: min(300px, 80%); justify-self: center; }
  .sw-belief { grid-template-columns: 80px minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 560px) {
  .sw-case__media--pair { gap: 14px; }
  .sw-case__media--single .sw-shot { width: 80%; }
  .sw-row { grid-template-columns: 64px minmax(0, 1fr); padding: 30px 0; }
  .sw-belief { grid-template-columns: 1fr; gap: 10px; }
}
