/* assets/nbsx/sections/students.css — section.nbsx-students (blueprint v2 §2.8)
   Tokens + shared classes come from core.css; every rule here starts with
   .nbsx-students. Motion: the shared .nbsx-rise stagger, the .nbsx-media
   scale-in on the two posters (core), the play ring scale (core), and the
   ambassador portrait scale + indigo ring on hover/focus-within (transform /
   opacity only). The ambassador block reveals on its own (data-nbsx-reveal). */

/* ── wall: 1.2fr 1fr 1fr, areas "a b c" / "a d e" ────────────────────────── */
.nbsx-students__wall{display:grid;grid-template-columns:1.2fr 1fr 1fr;grid-template-areas:"a b c" "a d e";gap:40px 32px;align-items:start}
.nbsx-students__review--a{grid-area:a}
.nbsx-students__review--b{grid-area:b}
.nbsx-students__review--c{grid-area:c}
.nbsx-students__review--d{grid-area:d}
.nbsx-students__review--e{grid-area:e}

/* ── one review ──────────────────────────────────────────────────────────── */
.nbsx-students__review{display:flex;flex-direction:column;margin:0;padding:0;min-width:0}
.nbsx-students__quote{margin:0;padding:0;border:0}
.nbsx-students__text{margin:0;font-size:16px;line-height:1.55;text-wrap:pretty}
.nbsx-students__who{display:flex;align-items:center;gap:12px;min-width:0}
.nbsx-students__name{font-size:14px;font-weight:500;line-height:1.3}

/* video card: poster 16:10 (play ring + time badge from core), text, name */
.nbsx-students__poster{aspect-ratio:16/10;width:100%}
.nbsx-students__poster img{width:100%;height:100%}
.nbsx-students__review--video .nbsx-students__quote{margin-top:20px}
.nbsx-students__review--video .nbsx-students__who{margin-top:12px}

/* text card: 56px round portrait + name on one line first, quote beneath, muted */
.nbsx-students__review--text .nbsx-students__who{order:-1;margin-bottom:16px}
.nbsx-students__review--text .nbsx-students__name{font-size:15px}
.nbsx-students__review--text .nbsx-students__text{font-size:15px;color:var(--muted)}
.nbsx-students__face{flex:0 0 56px;width:56px;height:56px;aspect-ratio:1/1}
.nbsx-students__face img{width:100%;height:100%;transform:none}

/* ── ambassadors: hairline, H3, six across ───────────────────────────────── */
.nbsx-students__amb{margin-top:64px;padding-top:48px;border-top:1px solid var(--hair)}
.nbsx-students__amb-title{margin-bottom:32px;max-width:24ch}
.nbsx-students__grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:32px var(--gutter)}
.nbsx-students__card{display:flex;flex-direction:column;gap:3px;min-width:0;margin:0;padding:0}
.nbsx-students__portrait{width:64px;height:64px;aspect-ratio:1/1;margin-bottom:12px}
.nbsx-students__portrait img{width:100%;height:100%}
.nbsx-students__card .nbsx-students__name{font-size:16px;line-height:1.3}
.nbsx-students__degree{font-size:14px;line-height:1.4;color:var(--muted)}
.nbsx-students__country{font-size:14px;line-height:1.4}
.nbsx-students__lang{font-size:13px;line-height:1.4;color:var(--muted)}
.nbsx-students__links{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin-top:8px}
.nbsx-students__contact{font-size:13px;line-height:1.4}

/* hover / focus-within on the card → portrait scale 1.04 + 2px indigo ring (core's --ring ::after) */
.nbsx-students__card:hover .nbsx-students__portrait img,.nbsx-students__card:focus-within .nbsx-students__portrait img{transform:scale(1.04)}
.nbsx-students__card:hover .nbsx-students__portrait::after,.nbsx-students__card:focus-within .nbsx-students__portrait::after{opacity:1}

/* the ambassador rows hold until the block itself is in view (own reveal) */
.nbsx-students__amb:not(.is-in) .nbsx-students__arise{opacity:0;transform:translateY(24px)}

/* ── "all stories" link ──────────────────────────────────────────────────── */
.nbsx-students__more{margin:40px 0 0}
.nbsx-students__all{font-size:15px}

/* ── tablet ≤1024: wall 2 columns (videos first), ambassadors 3×2 ────────── */
@media (max-width:1024px){
  .nbsx-students__wall{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:none;gap:40px var(--gutter)}
  .nbsx-students__review--a,.nbsx-students__review--b,.nbsx-students__review--c,.nbsx-students__review--d,.nbsx-students__review--e{grid-area:auto}
  .nbsx-students__review--video{order:-1}
  .nbsx-students__grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* ── mobile ≤700: single column (videos first), ambassadors 2×3, no scroller ─ */
@media (max-width:700px){
  .nbsx-students__wall{grid-template-columns:1fr;gap:32px}
  .nbsx-students__amb{margin-top:56px;padding-top:40px}
  .nbsx-students__amb-title{margin-bottom:24px}
  .nbsx-students__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px var(--gutter)}
  .nbsx-students__more{margin-top:32px}
}

/* ── hover-less devices: no hover state to reach, focus-within still works ── */
@media (hover:none){
  .nbsx-students__card:hover .nbsx-students__portrait img{transform:none}
  .nbsx-students__card:hover .nbsx-students__portrait::after{opacity:0}
  .nbsx-students__card:focus-within .nbsx-students__portrait img{transform:scale(1.04)}
  .nbsx-students__card:focus-within .nbsx-students__portrait::after{opacity:1}
}

/* ── reduced motion: final state on load, nothing scales ─────────────────── */
@media (prefers-reduced-motion:reduce){
  .nbsx-students__amb:not(.is-in) .nbsx-students__arise{opacity:1;transform:none}
  .nbsx-students__card:hover .nbsx-students__portrait img,.nbsx-students__card:focus-within .nbsx-students__portrait img{transform:none}
  .nbsx-students__poster img{transform:none}
}
