/* ============================================================
   sections.css — section-level components: brand mark, video
   cards, social work, gallery mosaic, class venue cards and the
   student success tiers. Must load LAST.
   ============================================================ */

    /* results section sits on the dark globe stage (overrides globe-results.css) */
    .globe-results-section{ margin:0; }
    .results-content .rc-eyebrow{
      font-size:16px; font-weight:700; letter-spacing:.18em; text-transform:uppercase; color:#57e6ce; margin-bottom:12px;
    }

    /* ---- brand mark ----
       The supplied logo is a JPEG on a solid black field, so the circular mark is
       cropped out with a fixed-size window rather than shown whole. The tile
       background matches the artwork's black so the edges blend.
       Source art 1320x800; ring measured at cx 645, cy 308, diameter 404. */
    .brand-mark{
      width:46px; height:46px; border-radius:12px; overflow:hidden;
      background:#0b0b0d; display:block; position:relative; flex:0 0 auto;
      box-shadow:0 6px 16px rgba(42,34,21,.25);
    }
    .brand-mark img{
      position:absolute; width:111px; height:auto; max-width:none;
      left:-31px; top:-3px;
    }
    /* footer variant, same crop scaled to a 42px tile */
    .brand-mark--sm{ width:42px; height:42px; border-radius:11px; }
    .brand-mark--sm img{ width:101px; left:-29px; top:-3px; }

    /* ---- video cards ----
       The clips are 360x640 (9:16 vertical, shot for TikTok/Shorts), so the
       media box is portrait rather than the usual 16:9.

       Rebuilt as frosted glass 2026-10-09. The cards are now sized from their
       HEIGHT, with width following the 9:16 ratio — the opposite of the usual
       grid. Two half-width columns at 1366px give a 946px-tall media box, which
       is why this section used to run 1.75 screens deep. */
    .videos{
      position:relative; overflow:hidden; isolation:isolate;
      background:linear-gradient(168deg, #f7f4ec 0%, #eef4f2 50%, #f6f2e8 100%);
      padding:clamp(54px, 6vw, 86px) 0;
    }
    /* The glass needs something to frost. These blurred fields pass behind the
       cards and are what make it read as glass rather than a flat translucent
       panel. Remove them and the effect dies. */
    .videos-glow{ position:absolute; inset:0; z-index:0; pointer-events:none; }
    .videos-glow span{ position:absolute; display:block; border-radius:50%; filter:blur(72px); }
    .videos-glow span:nth-child(1){ width:min(38vw,420px); aspect-ratio:1; left:2%;  top:8%;     background:rgba(13,107,96,.40); }
    .videos-glow span:nth-child(2){ width:min(32vw,360px); aspect-ratio:1; right:3%; top:30%;    background:rgba(195,177,119,.52); }
    .videos-glow span:nth-child(3){ width:min(26vw,300px); aspect-ratio:1; left:44%; bottom:-8%; background:rgba(2,61,56,.26); }
    .videos-inner{ position:relative; z-index:1; }

    .videos-head{ text-align:center; max-width:640px; margin:0 auto; }
    .videos-title{ font-size:clamp(24px, 2.6vw, 32px); margin-top:12px; line-height:1.15; }
    .videos-sub{ margin-top:12px; color:var(--body); font-size:clamp(14px, 1.15vw, 15.5px); }

    /* align-items:stretch so a title that wraps to two lines cannot leave the
       two cards at different heights. */
    .vid-grid{
      display:flex; flex-wrap:wrap; justify-content:center; align-items:stretch;
      gap:clamp(18px, 2.6vw, 36px); margin-top:clamp(22px, 2.8vw, 34px);
    }
    .vid-card{
      /* Both dimensions derive from one number, so the two cards are identical
         whatever their titles do. Width is the media height x 9/16, plus the
         12px padding on each side. Without this the flex column stretches the
         media to the card's text width and the 9:16 ratio is lost. */
      --vid-h:clamp(320px, 56vh, 600px);
      width:calc(var(--vid-h) * 0.5625 + 24px);
      margin:0; display:flex; flex-direction:column; padding:12px;
      border-radius:26px;
      background:rgba(255,255,255,.46);
      -webkit-backdrop-filter:blur(18px) saturate(1.45);
              backdrop-filter:blur(18px) saturate(1.45);
      border:1px solid rgba(255,255,255,.72);
      box-shadow:0 22px 46px -24px rgba(22,38,35,.44), inset 0 1px 0 rgba(255,255,255,.85);
      transition:transform var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease),
                 border-color var(--t-hover) var(--ease);
    }
    /* Without backdrop-filter a translucent panel just looks washed out, so
       fall back to a near-opaque surface. */
    @supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))){
      .vid-card{ background:rgba(255,255,255,.9); }
    }
    .vid-card:hover{
      transform:translateY(-6px) scale(1.015);
      border-color:rgba(255,255,255,.92);
      box-shadow:0 32px 60px -26px rgba(22,38,35,.5),
                 0 0 40px -14px rgba(195,177,119,.5),
                 inset 0 1px 0 rgba(255,255,255,.9);
    }

    /* height-driven, so both cards are identical at every viewport.
       flex:none, or the column's stretch would override the computed width. */
    .vid-media{
      position:relative; flex:none;
      height:var(--vid-h); width:calc(var(--vid-h) * 0.5625);
      border-radius:17px; overflow:hidden; background:#0c1917;
    }
    .vid-media video{ width:100%; height:100%; object-fit:cover; display:block; background:#0c1917; }

    /* Glass play button — a shortcut, not a replacement. The native controls
       stay on the element, and this is removed for good once playback starts
       so it can never sit over them. */
    .vid-play{
      position:absolute; inset:0; margin:auto;
      width:68px; height:68px; border-radius:50%; padding:0; cursor:pointer;
      display:flex; align-items:center; justify-content:center;
      color:#fff; background:rgba(255,255,255,.2);
      border:1px solid rgba(255,255,255,.55);
      -webkit-backdrop-filter:blur(9px) saturate(1.3);
              backdrop-filter:blur(9px) saturate(1.3);
      box-shadow:0 12px 30px -10px rgba(0,0,0,.6);
      transition:transform var(--t-hover) var(--ease), background var(--t-hover) var(--ease);
    }
    .vid-play svg{ width:26px; height:26px; margin-left:3px; }
    .vid-play:hover{ background:rgba(255,255,255,.34); transform:scale(1.08); }
    .vid-play:focus-visible{ outline:2px solid #fff; outline-offset:3px; }
    .vid-card.is-playing .vid-play{ display:none; }

    .vid-body{ padding:13px 6px 3px; text-align:center; }
    .vid-title{ font-weight:700; font-size:14px; color:var(--ink); }
    .vid-sub{ font-size:12px; color:var(--muted-d); margin-top:3px; }

    /* Three cards from 2026-10-22 (v3 added), so the row needs more room than
       two did. Between 761 and 1100px the height-derived width made three
       cards 875px wide inside an 820px container and the third wrapped onto a
       line of its own; driving --vid-h from vw across that band keeps all
       three on one row. Measured: 658px of 688 at 768, 758 of 820 at 900,
       851 of 944 at 1024. */
    @media (min-width: 761px) and (max-width: 1100px){
      .vid-card{ --vid-h:clamp(290px, 42vw, 430px); }
    }
    /* Phones: ONE line, swiped, rather than three clips stacked down the page
       (which ran past 1300px of scrolling). Three 9:16 cards cannot all be on
       screen at 390px without being ~110px wide and unwatchable, so the line
       scrolls and the next card peeks in to show that it does — the same
       pattern as the trust strip.
       `proximity`, never `mandatory`: mandatory snapping fights momentum, the
       same reason HANDOVER 6.8 gives for the page-level scroll-snap. */
    @media (max-width: 760px){
      .vid-grid{
        flex-direction:row !important;
        flex-wrap:nowrap !important;
        justify-content:flex-start;
        align-items:stretch;
        overflow-x:auto;
        scroll-snap-type:x proximity;
        -webkit-overflow-scrolling:touch;
        scrollbar-width:none;
        padding-bottom:4px;
      }
      .vid-grid::-webkit-scrollbar{ display:none; }
      .vid-card{
        flex:0 0 auto;
        scroll-snap-align:center;
        --vid-h:clamp(300px, 46vh, 420px);
      }
    }
    @media (prefers-reduced-motion: reduce){
      .vid-card, .vid-play{ transition:none; }
      .vid-card:hover, .vid-play:hover{ transform:none; }
    }

    /* ============================================================
       SOCIAL WORK — tall image cards with a scroll-linked stacked reveal.
       Rebuilt 2026-10-09.

       The DEFAULT here is the finished, fully visible three-up row. The pinned
       stacking mode is opt-in via .sw-anim, which js/social-stack.js adds only
       on a wide viewport with motion allowed. Everything below .sw-anim is
       therefore pure enhancement — remove the JS and the section still reads
       correctly (HANDOVER 5.4).
       ============================================================ */
    .social{
      background:#fff;
      border-top:1px solid var(--line); border-bottom:1px solid var(--line);
      padding:clamp(60px, 7vw, 88px) 0 clamp(62px, 7.2vw, 90px);
    }
    .social-head{
      display:flex; align-items:flex-end; justify-content:space-between;
      gap:24px; flex-wrap:wrap;
    }
    .social-title{ font-size:clamp(25px, 3vw, 34px); margin-top:12px; line-height:1.14; }
    .social-sub{ margin-top:12px; max-width:54ch; font-size:clamp(14.5px, 1.1vw, 16px); line-height:1.65; color:var(--body); }

    .sw-stack{
      display:grid; grid-template-columns:repeat(3, minmax(0,1fr));
      gap:clamp(16px, 1.8vw, 24px); margin-top:clamp(26px, 3vw, 34px);
    }

    /* --- the card --- */
    .swc{
      position:relative; display:flex; flex-direction:column; justify-content:flex-end;
      aspect-ratio:3/4; border-radius:26px; overflow:hidden; isolation:isolate;
      background:var(--dt); color:#fff;
      box-shadow:0 22px 48px -28px rgba(10,30,26,.6);
      transition:transform var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease);
    }
    .swc-media{ position:absolute; inset:0; z-index:0; }
    .swc-media img{ width:100%; height:100%; object-fit:cover; display:block; }
    /* Readability wash. Tuned to clear the text block without flattening the
       photograph: fully transparent across the top 42% of the card. */
    .swc::after{
      content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
      background:linear-gradient(to top,
        rgba(2,28,25,.94) 0%, rgba(2,28,25,.78) 26%,
        rgba(2,28,25,.34) 48%, rgba(2,28,25,0) 70%);
    }
    .swc-body{ position:relative; z-index:2; padding:clamp(20px, 2vw, 26px); }
    .swc-title{ font-size:clamp(17px, 1.5vw, 20px); color:#fff; margin-top:9px; line-height:1.25; }
    .swc-text{ font-size:13.5px; line-height:1.6; color:#d6ddda; margin-top:7px; }
    .swc-note{ margin-top:12px; }
    /* on the dark card the tag needs the gold, not the emerald */
    .swc .sw-tag{ color:#d8c48a; }
    .swc:hover{ transform:translateY(-6px); box-shadow:0 30px 60px -26px rgba(10,30,26,.72); }
    .sw-tag{ display:flex; align-items:center; gap:8px; color:var(--dt); font-size:12.5px; font-weight:700; }

    /* --- pinned, scroll-linked mode (added by JS on wide viewports) ---
       The section becomes a tall scroll track; .social-pin sticks to the top
       for its duration. Card transforms are written inline by social-stack.js
       from scroll progress, so the reveal is scroll-LINKED — it follows the
       wheel in both directions rather than playing on a timer. */
    .social.sw-anim{
      height:260vh; padding:0;
      /* the wash sits behind the pinned content, not on the track */
      display:block;
    }
    .social.sw-anim .social-pin{
      position:sticky; top:0; height:100vh;
      display:flex; flex-direction:column; justify-content:center;
    }
    .social.sw-anim .sw-stack{ margin-top:clamp(22px, 2.4vw, 30px); }
    /* Cards are sized to the pinned viewport so the row never overflows it. */
    .social.sw-anim .swc{
      aspect-ratio:auto; height:min(58vh, 460px);
      will-change:transform, opacity;
    }
    /* No hover lift while a card is mid-flight — it fights the scroll transform. */
    .social.sw-anim .swc{ transition:box-shadow var(--t-hover) var(--ease); }
    .social.sw-anim .swc:hover{ transform:none; }

    @media (max-width: 900px){
      .sw-stack{ grid-template-columns:1fr 1fr; }
      /* the empty card trails on its own row; let it span so it isn't orphaned */
      .swc{ aspect-ratio:4/5; }
    }
    @media (max-width: 620px){
      .sw-stack{ grid-template-columns:1fr; gap:18px; }
      .swc{ aspect-ratio:4/5; border-radius:22px; }
      .social-head{ align-items:flex-start; }
    }
    @media (prefers-reduced-motion: reduce){
      .swc{ transition:none; }
      .swc:hover{ transform:none; }
    }

    /* ---- gallery mosaic ---- */
    .gal-grid{ display:grid; grid-template-columns:repeat(3,1fr); grid-auto-rows:240px; gap:12px; margin-top:22px; }
    .gal{ margin:0; border-radius:14px; overflow:hidden; background:var(--teal-t); border:1px solid var(--line); }
    /* Gallery photos read a touch flat straight off the camera, so lift them:
       brighter, more saturated and a little more contrast, with an extra pop on
       hover (2026-11-21, §6.30). */
    .gal img{ width:100%; height:100%; object-fit:cover; display:block;
      filter:saturate(1.22) contrast(1.07) brightness(1.05);
      transition:transform .55s ease, filter .45s ease; }
    .gal:hover img{ transform:scale(1.045);
      filter:saturate(1.38) contrast(1.11) brightness(1.085); }
    .gal-w{ grid-column:span 2; }
    @media (max-width: 900px){
      .gal-grid{ grid-template-columns:1fr 1fr; grid-auto-rows:150px; }
      .gal-w{ grid-column:span 1; }
    }
    @media (prefers-reduced-motion: reduce){ .gal img{ transition:none; } .gal:hover img{ transform:none; } }

    /* ============================================================
       SHARED TOKENS — About Me + Current Classes redesign.
       Emerald (--dt) stays the primary; gold stays a restrained accent.
       ============================================================ */
    :root{
      --r-card:20px;          /* venue + credential cards      */
      --r-media:24px;         /* framed imagery                */
      --r-row:12px;           /* schedule rows, small surfaces */
      --sh-card:0 18px 40px -28px rgba(32,26,16,.42);
      --sh-card-h:0 26px 54px -26px rgba(2,61,56,.34);
      --sh-media:0 36px 70px -34px rgba(32,26,16,.55);
      --ease:cubic-bezier(.22,.75,.28,1);
      --t-hover:210ms;        /* brief: 180-250ms              */
      --t-reveal:620ms;       /* brief: 450-650ms              */
      --ivory:#faf7f1;        /* warm ivory section ground     */
      /* darker secondaries: the global --muted (#8b877f) only reaches 3.4:1
         on these grounds, so small text here uses these instead (>=4.5:1) */
      --muted-d:#5f5a50;
      --gold-dd:#6b5e31;
    }

    /* ---- shared button refinements ---- */
    .btn{ transition:background var(--t-hover) var(--ease), border-color var(--t-hover) var(--ease), color var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease), transform var(--t-hover) var(--ease); }
    .btn-arrow svg{ width:16px; height:16px; transition:transform var(--t-hover) var(--ease); }
    .btn-arrow:hover svg, .btn-arrow:focus-visible svg{ transform:translateX(4px); }
    .btn-primary{ box-shadow:0 12px 26px -16px rgba(2,61,56,.8); }
    .btn-primary:hover{ box-shadow:0 18px 32px -16px rgba(2,61,56,.9); transform:translateY(-1px); }
    .btn-lg{ padding:16px 30px; font-size:15.5px; }
    .btn:focus-visible{ outline:2px solid var(--dt); outline-offset:3px; }
    .vcard-link:focus-visible{ outline:2px solid var(--dt); outline-offset:3px; border-radius:6px; }

    /* ============================================================
       ABOUT ME
       ============================================================ */
    .about{ padding:clamp(64px, 8vw, 110px) 0 clamp(70px, 8vw, 120px); background:#f8f7f3; }
    .about-grid{
      display:grid; grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);
      gap:clamp(40px, 6vw, 100px); align-items:center;
    }

    /* --- framed photograph with offset gold outline --- */
    .about-media{ position:relative; margin:0; padding:0 20px 24px 0; }
    .about-media::before{
      content:""; position:absolute; inset:20px 0 0 20px;
      border:1px solid #c5b88f; border-radius:22px; pointer-events:none;
    }
    .about-frame{
      position:relative; overflow:hidden; border-radius:22px;
      aspect-ratio:4/5; background:#d7d3c5;
      box-shadow:0 24px 60px rgba(21,43,36,.1);
    }
    .about-frame img{
      width:100%; height:100%; object-fit:cover; object-position:28% center; display:block;
      transition:transform 700ms cubic-bezier(.2,.7,.2,1);
    }
    .about-media:hover .about-frame img{ transform:scale(1.045); }

    /* --- floating emerald quote card --- */
    .about-quote{
      position:absolute; right:-14px; bottom:0; max-width:265px; margin:0;
      padding:24px 26px; background:var(--dt); color:#fff; border-radius:16px;
      box-shadow:0 14px 35px rgba(0,52,44,.17);
    }
    .about-quote p{ font-family:var(--serif); font-style:italic; font-weight:600; font-size:18px; line-height:1.5; color:#fff; margin:0; }

    /* --- editorial body column --- */
    .about-body > .eyebrow{ display:flex; align-items:center; gap:12px; margin:0 0 21px; letter-spacing:.22em; color:#927b45; }
    .about-body > .eyebrow::before{ content:""; width:28px; height:1px; background:#b8a36e; }
    .about-title{
      font-size:clamp(35px, 3.3vw, 52px); line-height:1.17; letter-spacing:-.035em;
      margin:0 0 25px; max-width:680px;
    }
    .about-lede{ margin:0 0 15px; font-size:16px; line-height:1.9; color:#555950; max-width:none; }

    .about-expand{
      display:inline-flex; align-items:center; gap:8px; padding:0; border:0; background:none;
      color:var(--dt); font:inherit; font-size:13px; font-weight:700; cursor:pointer; margin:4px 0 26px;
    }
    .about-expand svg{ width:15px; height:15px; transition:transform .25s; }
    .about-expand[aria-expanded="true"] svg{ transform:rotate(180deg); }
    .about-bio-extra{
      color:var(--muted-d); font-size:14px; line-height:1.8; margin:-12px 0 24px;
      padding-left:15px; border-left:2px solid #b9a26a;
    }

    /* --- credential cards --- */
    .about-cards{ display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:0 0 27px; }
    .about-card{
      background:#fff; border:1px solid var(--line); border-radius:17px; padding:23px; min-height:152px;
      transition:transform .3s, box-shadow .3s, border-color .3s;
    }
    .about-card:hover{ transform:translateY(-4px); box-shadow:0 14px 35px rgba(20,45,35,.07); border-color:#c9d9d0; }
    .about-card-icon{ width:30px; height:30px; display:grid; place-items:center; border-radius:9px; background:#edf4f0; color:var(--dt); margin-bottom:14px; }
    .about-card-icon svg{ width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.8; }
    .about-card h3{ font-size:19px; margin:0 0 9px; }
    .about-card p{ font-size:13px; line-height:1.7; color:#65665f; margin:0; }

    .about-cta-pill{
      display:inline-flex; align-items:center; justify-content:center; gap:18px; text-decoration:none;
      border-radius:100px; background:var(--dt); color:#fff; font-size:14px; font-weight:700; padding:17px 23px;
      transition:transform .25s, background .25s, box-shadow .25s;
    }
    .about-cta-pill:hover{ transform:translateY(-3px); background:#086457; box-shadow:0 12px 24px rgba(0,76,67,.18); color:#fff; }
    .about-cta-pill svg{ width:18px; height:18px; transition:transform .25s; }
    .about-cta-pill:hover svg{ transform:translateX(4px); }

    @media (max-width: 980px){
      .about-grid{ grid-template-columns:1fr; gap:42px; }
      .about-media{ width:100%; max-width:480px; margin:0 auto; padding-right:12px; }
      .about-frame{ aspect-ratio:4/5; }
      .about-title{ max-width:none; font-size:clamp(32px, 8vw, 42px); }
      .about-cards{ grid-template-columns:1fr; }
      .about-card{ min-height:0; }
      .about-quote{ right:0; max-width:220px; padding:16px 19px; }
      .about-quote p{ font-size:15px; }
    }
    @media (max-width: 520px){
      .about-cards{ gap:12px; }
      .about-cta-pill{ width:100%; }
    }
    @media (prefers-reduced-motion: reduce){
      .about-expand svg, .about-cta-pill, .about-cta-pill svg{ transition:none; }
    }

    /* ============================================================
       CURRENT CLASSES
       ============================================================ */
    .classes{
      position:relative; overflow:hidden; background:#fff;
      border-top:1px solid var(--line); border-bottom:1px solid var(--line);
      padding:clamp(60px, 7.5vw, 94px) 0;
    }
    .classes-inner{ position:relative; z-index:1; }

    .classes-head{
      display:flex; align-items:flex-end; justify-content:space-between;
      gap:28px; flex-wrap:wrap; margin-bottom:clamp(30px, 4vw, 46px);
    }
    .classes-head > div{ max-width:52ch; }
    .classes-head .eyebrow{ margin:0; }
    .classes-title{ font-size:clamp(27px, 3.2vw, 38px); line-height:1.12; letter-spacing:-.015em; margin-top:12px; }
    .classes-sub{ margin-top:12px; font-size:clamp(14.5px, 1.1vw, 16.5px); line-height:1.65; color:var(--body); }
    .classes-head-cta{ flex:none; }

    /* --- two cards side by side, stacking when space runs out --- */
    .vcards{
      display:grid; grid-template-columns:repeat(2, minmax(0,1fr));
      gap:clamp(18px, 2.2vw, 28px); align-items:stretch;
    }
    .vcard{
      display:flex; flex-direction:column;
      background:#fff; border:1px solid var(--line); border-radius:var(--r-card);
      padding:clamp(20px, 2vw, 26px); box-shadow:var(--sh-card);
      transition:transform var(--t-hover) var(--ease), border-color var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease);
    }
    .vcard:hover{ transform:translateY(-4px); border-color:var(--dt-t2); box-shadow:var(--sh-card-h); }

    /* --- logo band above a centred venue name ---
       The two logos have very different proportions (OMIN 982x625 = 1.57:1,
       iCS 717x275 = 2.61:1). A full-width band of FIXED HEIGHT with
       object-fit:contain is what makes them agree: each logo is shown whole,
       never cropped or stretched, and both occupy the same vertical space so
       the two cards stay dimensionally identical.

       The panel keeps its white ground and hairline border because both files
       are opaque PNGs on near-white rgb(252,254,254) (HANDOVER 9.5) — without
       the border their own background would read as a faint grey rectangle
       floating on the white card. Transparent artwork would let this go. */
    .vcard-head{ display:flex; flex-direction:column; align-items:center; gap:16px; }
    .vcard-logo{
      width:100%; height:clamp(84px, 8vw, 104px);
      padding:clamp(12px, 1.4vw, 18px); border-radius:16px;
      background:#fff; border:1px solid var(--line);
      display:flex; align-items:center; justify-content:center;
    }
    .vcard-logo img{ max-width:100%; max-height:100%; width:auto; height:auto; object-fit:contain; display:block; }
    .vcard-ident{ display:block; min-width:0; text-align:center; }
    .vcard-title{ font-size:clamp(18px, 1.55vw, 21px); line-height:1.22; }
    .vcard-place{
      display:inline-flex; align-items:center; gap:6px; margin-top:7px;
      font-size:13px; font-weight:600; color:var(--muted-d);
    }
    .vcard-place svg{ width:14px; height:14px; color:var(--dt-2); flex:none; }
    /* the chips read as part of the centred header block above the schedule */
    .vcard-years{ justify-content:center; }

    .vcard-years{ display:flex; flex-wrap:wrap; gap:8px; margin-top:18px; }
    .vchip{
      font-size:11px; font-weight:700; letter-spacing:.07em; text-transform:uppercase;
      padding:5px 11px; border-radius:999px;
      background:var(--dt-t); color:var(--dt); border:1px solid var(--dt-t2);
    }

    /* --- the schedule: the visual priority of the card --- */
    .vcard-rows{ list-style:none; margin:16px 0 0; padding:0; display:flex; flex-direction:column; gap:8px; }
    .vcard-rows li{
      position:relative; display:grid; grid-template-columns:auto 1fr auto;
      align-items:center; gap:12px; padding:12px 14px;
      border-radius:var(--r-row); background:var(--bg); border:1px solid var(--line);
      transition:transform var(--t-hover) var(--ease), background var(--t-hover) var(--ease), border-color var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease);
    }
    .vcard-rows li:hover{
      transform:translateY(-2px); z-index:2;
      background:#fff; border-color:var(--dt-t2);
      box-shadow:0 14px 24px -14px rgba(2,61,56,.4);
    }
    /* type pill — the two class types the schedule is built around */
    .vr-type{
      flex:none; font-size:10px; font-weight:800; letter-spacing:.07em; text-transform:uppercase;
      padding:4px 9px; border-radius:7px; white-space:nowrap;
    }
    .vr-type--th{ background:var(--dt-t); color:var(--dt); border:1px solid var(--dt-t2); }
    .vr-type--rev{ background:var(--gold-t); color:var(--gold-dd); border:1px solid #ddd0a8; }
    /* revision rows carry a quiet gold wash so the full-day intensive stands apart */
    .vrow-rev{ background:linear-gradient(90deg, var(--gold-t), var(--bg) 62%); border-color:#e7ddc0; }
    .vrow-rev:hover{ border-color:#d9c88f; }
    /* schedule grouped by exam year — the year sits on the LEFT of its classes */
    .vcard-sched{ margin:18px 0 0; display:flex; flex-direction:column; gap:14px; }
    .vsched-group{ display:grid; grid-template-columns:clamp(52px, 6vw, 64px) 1fr; gap:14px; align-items:start; }
    .vsched-group + .vsched-group{ border-top:1px solid var(--line); padding-top:14px; }
    .vsched-year{
      align-self:start; display:flex; flex-direction:column; gap:1px; padding-top:9px;
      font-family:var(--serif); font-weight:600; color:var(--dt);
      font-size:clamp(17px, 1.5vw, 20px); line-height:1; font-variant-numeric:tabular-nums;
    }
    .vsched-year > span{
      font-family:var(--sans); font-size:10px; font-weight:800;
      letter-spacing:.1em; color:var(--muted-d);
    }
    .vsched-group .vcard-rows{ margin:0; }
    .vr-day{ font-size:14.5px; font-weight:700; color:var(--ink); min-width:0; }
    .vr-time{
      font-size:13px; font-weight:700; color:var(--dt); white-space:nowrap;
      font-variant-numeric:tabular-nums;
    }
    .vcard-rows li:hover .vr-time{ color:var(--dt-d); }

    .vcard-link{
      display:inline-flex; align-items:center; gap:10px; align-self:flex-start;
      margin-top:10px; padding:9px 2px; min-height:44px; box-sizing:border-box;
      font-size:14px; font-weight:600; color:var(--ink);
      transition:color var(--t-hover) var(--ease);
    }
    .vcard-link:hover{ color:var(--dt); }
    .vcard-dot{
      width:26px; height:26px; border-radius:50%; border:1px solid var(--line);
      display:inline-flex; align-items:center; justify-content:center;
      transition:background var(--t-hover) var(--ease), border-color var(--t-hover) var(--ease), color var(--t-hover) var(--ease), transform var(--t-hover) var(--ease);
    }
    .vcard-dot svg{ width:13px; height:13px; }
    .vcard-link:hover .vcard-dot{ background:var(--dt); border-color:var(--dt); color:#fff; transform:translateX(3px); }

    /* per-institute contact CTA — pinned to the card foot (margin-top:auto) so
       both cards' buttons align at the same height despite different schedules */
    /* symmetric padding so the label sits on the button's vertical centre — the
       old padding-top:0 left the text ~7px high */
    .vcard-cta{ margin-top:auto; width:100%; justify-content:center; }
    /* All Classes-section CTAs show a clean, centred label with no trailing arrow
       (client choice 2026-11-19) — the arrow kept pulling the text visually
       off-centre. Scoped to #classes, so the hero's arrow button is untouched. */
    .classes .btn-arrow svg{ display:none; }
    .classes .btn-arrow{ justify-content:center; gap:0; }
    .vcard-sched{ margin-bottom:18px; }

    /* --- statistics, pinned to the card foot --- */
    .vcard-stats{
      display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:12px;
      margin-top:auto; padding-top:18px; border-top:1px solid var(--line);
    }
    .vcard-stats .vstat{ padding-top:4px; }
    .vcard-stats strong{
      display:block; font-family:var(--serif); font-weight:500; color:var(--ink);
      font-size:clamp(19px, 1.7vw, 23px); line-height:1.08;
    }
    .vcard-stats span{ display:block; margin-top:5px; font-size:11.5px; line-height:1.35; color:var(--muted-d); }

    .classes-cta{ display:flex; justify-content:center; margin-top:clamp(30px, 4vw, 44px); }

    /* --- decorative portrait: a quiet edge element, never a half-section --- */
    .classes-bg{
      position:absolute; top:0; right:0; z-index:0; pointer-events:none;
      width:min(34%, 420px); height:min(66%, 520px);
      background:url("../assets/images/gallery/current%20classes%20background.png") no-repeat 64% 22%;
      background-size:cover;
      opacity:.16;
      -webkit-mask-image:linear-gradient(200deg, #000 0%, rgba(0,0,0,.5) 42%, rgba(0,0,0,0) 78%);
              mask-image:linear-gradient(200deg, #000 0%, rgba(0,0,0,.5) 42%, rgba(0,0,0,0) 78%);
    }

    @media (max-width: 900px){
      .vcards{ grid-template-columns:1fr; }
      .vcard{ max-width:620px; width:100%; margin-inline:auto; }
    }
    @media (max-width: 760px){
      .classes-head{ align-items:flex-start; }
      .classes-head-cta{ width:100%; justify-content:center; }
      .classes-bg{ display:none; }
    }
    @media (max-width: 420px){
      .vcard-logo{ height:72px; padding:10px; border-radius:13px; }
      .vcard-head{ gap:13px; }
      .vcard-rows li{ grid-template-columns:auto 1fr; row-gap:6px; padding:11px 12px; }
      .vr-time{ grid-column:1 / -1; }
      .vsched-group{ grid-template-columns:46px 1fr; gap:10px; }
      .vcard-stats{ gap:8px; }
      .vcard-stats span{ font-size:10.5px; }
      .classes-cta .btn{ width:100%; justify-content:center; }
    }

    /* reduced motion: strip every transform, keep every state legible */
    @media (prefers-reduced-motion: reduce){
      .about-frame img, .about-card, .vcard, .vcard-rows li, .vcard-dot, .btn, .btn-arrow svg{ transition:none; }
      .about-media:hover .about-frame img, .about-card:hover, .vcard:hover,
      .vcard-rows li:hover, .btn-primary:hover, .btn-arrow:hover svg,
      .vcard-link:hover .vcard-dot{ transform:none; }
    }

    /* ---- student success stories: rank-01 tier, then the rest ---- */
    .ss-h2{ font-size:42px; line-height:1.1; }
    .ss-tier{
      margin-top:46px; border:1px solid rgba(195,177,119,.34); border-radius:24px; padding:28px 30px;
      background:linear-gradient(180deg, rgba(195,177,119,.10), rgba(195,177,119,.03));
    }
    .ss-tier-head{ display:flex; align-items:center; gap:16px; }
    .ss-tier-head--plain{ margin-top:48px; margin-bottom:6px; }
    .ss-crown{
      width:46px; height:46px; flex:none; border-radius:13px; color:#d8c48a;
      background:rgba(195,177,119,.16); border:1px solid rgba(195,177,119,.36);
      display:flex; align-items:center; justify-content:center;
    }
    .ss-crown svg{ width:24px; height:24px; }
    .ss-tier-title{ font-size:24px; color:#fff; }
    .ss-tier-sub{ font-size:14px; color:#b8b1a6; margin-top:4px; }
    .ss-pending{ display:flex; align-items:flex-start; gap:14px; margin-top:20px; padding-top:18px; border-top:1px solid rgba(195,177,119,.2); }
    .ss-pending p{ font-size:14px; color:#b8b1a6; line-height:1.6; }
    .ss-source{
      margin-top:clamp(34px, 4vw, 48px); text-align:center;
      font-size:12.5px; letter-spacing:.04em; color:var(--muted-d);
    }

    /* ---- more of my students: the district first-place hall of fame ----
       The highlight of this section: eight students who placed first in their
       district over the last ten years. It sits on a DARK emerald band so the
       client's supplied white+gold Sinhala headline (headline for results.png)
       reads. The eight supplied photos have mismatched backgrounds (white, blue,
       green, grey) and different aspect ratios, so they are cropped to CIRCLES
       over a common brand gradient — that is what makes eight unrelated snapshots
       read as one set — and gold-ringed, each captioned with the student's name
       and A/L year. object-position is biased upward because ID-style photos put
       the face above centre. */
    /* Redesigned 2026-11-19: the faces are no longer wrapped in a heavy gold-
       bordered "band inside the band". The group sits openly on the section
       ground under a clean typographic header — the raster Sinhala headline
       (headline for results.png) was retired for crisp type that matches the
       rest of the site. The eight tiles carry their own surfaces, so they read
       fine on the open emerald ground. */
    .ss-faces{ margin-top:clamp(52px, 6.5vw, 80px); }

    /* --- shared, premium group header used by all three sub-sections
       (district first-place holders, top performers, more achievements) so the
       section reads as one clear, consistent sequence --- */
    .ss-group-head{ text-align:center; max-width:720px; margin-left:auto; margin-right:auto; }
    .ss-kicker{
      display:inline-block; margin:0 0 13px;
      font-family:var(--sans); font-size:11.5px; font-weight:800;
      letter-spacing:.22em; text-transform:uppercase; color:#d8c48a;
    }
    .ss-group-title{
      margin:0; font-family:var(--serif); font-weight:500; color:#fff;
      font-size:clamp(26px, 3vw, 38px); line-height:1.12; letter-spacing:-.01em;
    }
    .ss-group-sub{
      margin:14px auto 0; max-width:60ch;
      color:rgba(255,255,255,.80); font-size:15px; line-height:1.6;
    }

    .ss-faces-head{ text-align:center; margin-bottom:clamp(30px, 4vw, 46px); }
    .ss-faces-title{ margin:0; }
    .ss-faces-sub{ margin:14px auto 0; max-width:62ch; }
    /* Headline (and subtitle) fall in from above as the section scrolls in —
       the headline drops furthest for emphasis, settling with a soft landing.
       Reuses the [data-reveal] on .ss-faces-head; the generic reveal rises from
       below, so here we only flip the direction to a drop. */
    .ss-faces-head.reveal > .ss-faces-title{
      translate:0 -60px;
      transition-timing-function:cubic-bezier(.22, .78, .26, 1.12);
    }
    .ss-faces-head.reveal > .ss-faces-sub{
      translate:0 -26px;
    }
    /* ---- the achiever cards ------------------------------------------
       Each district first-place holder sits in a raised glass tile: a
       gold-ringed circular portrait with a 1st-place medal, a credential
       kicker, the name and a gold A/L-year pill. The circular crop plus the
       inner emerald ring normalise the eight source photos (mixed backgrounds
       and crops) into one set; object-position is biased upward because
       ID-style photos put the face above centre. */
    .ss-face-row{
      list-style:none; margin:0; padding:0;
      display:grid; grid-template-columns:repeat(4, 1fr);
      gap:clamp(16px, 1.8vw, 26px);
    }
    .ss-face{
      position:relative; margin:0;
      padding:clamp(22px, 2.2vw, 30px) 16px clamp(18px, 2vw, 24px);
      text-align:center; border-radius:20px;
      background:linear-gradient(170deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,.02) 42%, rgba(0,0,0,.16) 100%);
      border:1px solid rgba(214,196,136,.22);
      box-shadow:0 18px 40px -28px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.05);
      transition:transform .42s var(--ease), border-color .42s var(--ease), box-shadow .42s var(--ease);
    }
    .ss-face:hover{
      transform:translateY(-6px);
      border-color:rgba(214,196,136,.58);
      box-shadow:0 30px 56px -26px rgba(0,0,0,.9), 0 0 42px -18px rgba(214,196,136,.34), inset 0 1px 0 rgba(255,255,255,.09);
    }
    .ss-face-fig{ margin:0; }
    /* gold metallic ring around the portrait */
    .ss-face-portrait{
      position:relative; display:block; margin:0 auto 16px;
      width:clamp(100px, 10.5vw, 128px); aspect-ratio:1;
      border-radius:50%; padding:4px;
      background:conic-gradient(from 135deg, #e9d7a2, #a5965f 30%, #7a6a37 52%, #e9d7a2 80%, #c9b473 100%);
      box-shadow:0 12px 26px -14px rgba(0,0,0,.8);
    }
    .ss-face-photo{
      display:block; width:100%; height:100%; border-radius:50%;
      overflow:hidden; border:3px solid rgba(2,61,56,.92); background:#0b3b36;
    }
    .ss-face-photo img{
      width:100%; height:100%; display:block;
      object-fit:cover; object-position:50% 22%;
      transition:transform .55s var(--ease);
    }
    .ss-face:hover .ss-face-photo img{ transform:scale(1.07); }
    /* 1st-place medal, pinned to the portrait */
    .ss-face-medal{
      position:absolute; right:3px; bottom:3px;
      width:clamp(28px, 2.6vw, 34px); aspect-ratio:1;
      display:grid; place-items:center; border-radius:50%;
      color:#4a3c15; border:2px solid rgba(2,61,56,.95);
      background:radial-gradient(circle at 35% 28%, #f6e8b4 0%, #d9bd68 55%, #b2923f 100%);
      box-shadow:0 4px 10px -4px rgba(0,0,0,.65);
      transition:transform .42s var(--ease);
    }
    .ss-face:hover .ss-face-medal{ transform:scale(1.12) rotate(-6deg); }
    .ss-face-medal svg{ width:58%; height:58%; }
    .ss-face-cap{ display:block; }
    .ss-face-rank{
      display:inline-block; margin:0 0 9px;
      font-family:var(--sans); font-size:10px; font-weight:700;
      letter-spacing:.15em; text-transform:uppercase; color:#e6d9a8;
      padding:4px 11px; border-radius:999px;
      border:1px solid rgba(214,196,136,.34); background:rgba(214,196,136,.09);
    }
    .ss-face-name{
      display:block; margin:0;
      font-family:var(--serif); color:#fff; font-weight:600;
      font-size:clamp(15px, 1.25vw, 17.5px); line-height:1.25; letter-spacing:.005em;
    }
    .ss-face-year{
      display:inline-block; margin-top:10px;
      font-family:var(--sans); color:#f0e6c2; font-size:12px; font-weight:700;
      letter-spacing:.08em; text-transform:uppercase;
      padding:4px 12px; border-radius:999px;
      background:linear-gradient(180deg, rgba(214,196,136,.22), rgba(214,196,136,.10));
      border:1px solid rgba(214,196,136,.30);
    }
    /* Entrance: the cards rise and fade in, line by line in reading order — a
       short lift with a micro scale-up, not a dull plain fade. .ss-face-row is a
       [data-reveal] group (hidden state + .in-view + 5s safety net); resting
       state is visible. Uses the independent `translate`/`scale` properties,
       never `transform`, so it composes with the hover lift. */
    .ss-face-row.reveal > .ss-face{
      opacity:0; translate:0 42px; scale:.92;
      transition:opacity .55s ease,
                 translate .66s cubic-bezier(.2, .72, .24, 1),
                 scale .66s cubic-bezier(.2, .72, .24, 1);
    }
    .ss-face-row.reveal.in-view > .ss-face{ opacity:1; translate:none; scale:none; }
    .ss-face-row.reveal.in-view > .ss-face:nth-child(1){ transition-delay:0s; }
    .ss-face-row.reveal.in-view > .ss-face:nth-child(2){ transition-delay:.10s; }
    .ss-face-row.reveal.in-view > .ss-face:nth-child(3){ transition-delay:.20s; }
    .ss-face-row.reveal.in-view > .ss-face:nth-child(4){ transition-delay:.30s; }
    .ss-face-row.reveal.in-view > .ss-face:nth-child(5){ transition-delay:.40s; }
    .ss-face-row.reveal.in-view > .ss-face:nth-child(6){ transition-delay:.50s; }
    .ss-face-row.reveal.in-view > .ss-face:nth-child(7){ transition-delay:.60s; }
    .ss-face-row.reveal.in-view > .ss-face:nth-child(8){ transition-delay:.70s; }
    @media (max-width: 980px){
      .ss-face-row{ grid-template-columns:repeat(2, 1fr); }
    }
    @media (max-width: 700px){
      .ss-faces{ margin-top:40px; }
    }
    @media (max-width: 460px){
      .ss-face-row{ gap:14px; }
      .ss-face{ padding:20px 10px 18px; }
      .ss-face-rank{ letter-spacing:.1em; padding:3px 9px; }
    }
    @media (prefers-reduced-motion: reduce){
      .ss-face, .ss-face-photo img, .ss-face-medal{ transition:none; }
      .ss-face:hover{ transform:none; }
      .ss-face:hover .ss-face-photo img{ transform:none; }
      .ss-face:hover .ss-face-medal{ transform:none; }
    }
    @media (max-width: 700px){
      .ss-h2{ font-size:30px; }
      .ss-tier{ padding:22px 20px; }
      .ss-tier-title{ font-size:20px; }
      .ss-pending{ flex-direction:column; gap:10px; }
    }

    /* ---- site-wide scroll reveal -------------------------------
       The resting state is VISIBLE. main.js adds .reveal (the hidden
       state) only once it runs, then .in-view when the group reaches
       the viewport; a safety timer reveals everything regardless. So
       with JS off, or if the observer never fires, nothing is lost.

       Uses the independent `translate` property rather than `transform`
       so it composes with the hover transforms on cards instead of
       out-specifying them. */
    [data-reveal].reveal > *{
      opacity:0; translate:0 18px; scale:.99;
      transition:opacity var(--t-reveal) var(--ease),
                 translate var(--t-reveal) var(--ease),
                 scale var(--t-reveal) var(--ease);
    }
    [data-reveal].reveal.in-view > *{ opacity:1; translate:none; scale:none; }
    [data-reveal].reveal.in-view > *:nth-child(2){ transition-delay:.08s; }
    [data-reveal].reveal.in-view > *:nth-child(3){ transition-delay:.16s; }
    [data-reveal].reveal.in-view > *:nth-child(4){ transition-delay:.24s; }
    [data-reveal].reveal.in-view > *:nth-child(5){ transition-delay:.32s; }
    [data-reveal].reveal.in-view > *:nth-child(6){ transition-delay:.40s; }
    [data-reveal].reveal.in-view > *:nth-child(7){ transition-delay:.48s; }
    [data-reveal].reveal.in-view > *:nth-child(n+8){ transition-delay:.56s; }
    /* smooth anchor scrolling, honouring reduced-motion */
    @media (prefers-reduced-motion: no-preference){
      html{ scroll-behavior:smooth; }
    }
    @media (prefers-reduced-motion: reduce){
      [data-reveal].reveal > *,
      [data-reveal].reveal.in-view > *{ opacity:1; translate:none; scale:none; transition:none; }
    }

    /* ============================================================
       STUDENT ACHIEVEMENTS — single-row looping carousel
       Sits on the dark emerald success section, so everything here
       is tuned for a dark ground.
       ============================================================ */
    .sc{ position:relative; margin-top:34px; }

    .sc-viewport{
      position:relative; overflow:hidden;
      /* fade the cards out at both edges instead of cutting them */
      -webkit-mask-image:linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
              mask-image:linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
      /* Vertical padding must clear the centre card's scale(1.20) hover, or
         overflow:hidden clips the top of the spotlight. */
      padding:36px 0 40px;
    }

    .sc-track{
      display:flex; column-gap:22px; list-style:none; margin:0; padding:0;
      will-change:transform;
    }

    /* --- the card --- */
    .sc-card{ flex:0 0 232px; }
    .sc-card-btn{
      display:flex; flex-direction:column; width:100%; padding:0;
      font:inherit; text-align:left; color:inherit; cursor:pointer;
      background:#07312d; border:1px solid rgba(195,177,119,.2); border-radius:18px; overflow:hidden;
      box-shadow:0 18px 40px -22px rgba(0,0,0,.8);
      transition:transform 420ms var(--ease), box-shadow 420ms var(--ease), border-color 420ms var(--ease);
    }

    /* portrait stage: a brand gradient behind the photo, so portraits of
       different dimensions still read as one consistent set. contain, so
       faces and clothing are never cropped. */
    .sc-stage{
      position:relative; display:flex; align-items:flex-end; justify-content:center;
      aspect-ratio:1/1; overflow:hidden;
      background:
        radial-gradient(78% 62% at 50% 108%, rgba(195,177,119,.30), rgba(195,177,119,0) 70%),
        linear-gradient(168deg, #0d6b60 0%, #023d38 54%, #01201d 100%);
    }
    .sc-stage img{
      width:100%; height:100%; object-fit:contain; object-position:center bottom; display:block;
    }
    /* Clean studio headshots (the 2025 pair) fill the square instead of
       letterboxing, cropped to head-and-shoulders with the face kept high. */
    .sc-stage img.sc-headshot{ object-fit:cover; object-position:center 22%; }

    .sc-monogram{
      display:flex; align-items:center; justify-content:center;
      width:100%; height:100%;
      font-family:var(--serif); font-size:40px; color:rgba(234,230,223,.5);
      letter-spacing:.02em;
    }
    .sc-monogram span{
      display:flex; align-items:center; justify-content:center;
      width:84px; height:84px; border-radius:50%;
      border:1px dashed rgba(195,177,119,.5); background:rgba(0,0,0,.18);
    }

    .sc-meta{ display:flex; flex-direction:column; gap:3px; padding:15px 17px 17px; }
    .sc-name{ font-family:var(--serif); font-size:17px; color:#fff; line-height:1.25; }
    .sc-ach{ font-size:12.5px; font-weight:700; color:#d8c48a; letter-spacing:.02em; }
    .sc-year{ font-size:11.5px; color:#a59d8f; }

    /* --- the centred focal card: 17% larger, neighbours stepped back ---
       The spotlight BLOOM is gated on .sc-lit, added by the entrance sequence
       once it finishes (and by its safety timer regardless). Scale and dimming
       are unconditional, so if that class never arrives the carousel still
       reads correctly — it just doesn't glow. Resting state is usable.

       The centre card scales past its own flex box by design, so it carries a
       z-index and overlaps its neighbours slightly. That overlap is the
       spotlight; don't "fix" it by shrinking the scale. */
    .sc-card.is-centre{ z-index:2; }
    .sc-card.is-centre .sc-card-btn{
      transform:scale(1.17);
      border-color:rgba(195,177,119,.72);
      box-shadow:0 26px 54px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(195,177,119,.3);
    }
    /* While the strip is gliding, scale and opacity are written inline every
       frame from each card's distance to the centre line. The 420ms transition
       on those properties would lag a frame behind and smear the spotlight, so
       it is narrowed to the properties JS does NOT drive. The rules above stay
       as the resting state for when the glide never runs. */
    .sc-glide .sc-card-btn{
      transition:box-shadow 420ms var(--ease), border-color 420ms var(--ease);
    }
    .sc-lit .sc-card.is-centre .sc-card-btn{
      box-shadow:0 30px 60px -20px rgba(0,0,0,.92), 0 0 0 1px rgba(195,177,119,.44),
                 0 0 46px -8px rgba(195,177,119,.46), 0 0 94px -26px rgba(195,177,119,.32);
    }
    .sc-card:not(.is-centre) .sc-card-btn{ transform:scale(.94); opacity:.62; }
    .sc-card-btn:hover, .sc-card-btn:focus-visible{ opacity:1; border-color:rgba(195,177,119,.72); }
    .sc-card.is-centre .sc-card-btn:hover{ transform:scale(1.20); }
    .sc-card:not(.is-centre) .sc-card-btn:hover,
    .sc-card:not(.is-centre) .sc-card-btn:focus-visible{ transform:scale(.99); }
    .sc-card-btn:focus-visible{ outline:2px solid #d8c48a; outline-offset:3px; }

    /* --- prev / next --- */
    .sc-nav{
      position:absolute; top:50%; translate:0 -50%; z-index:3;
      width:44px; height:44px; border-radius:50%; cursor:pointer;
      display:flex; align-items:center; justify-content:center;
      background:rgba(255,255,255,.07); border:1px solid rgba(195,177,119,.34); color:#eae6df;
      transition:background var(--t-hover) var(--ease), border-color var(--t-hover) var(--ease);
    }
    .sc-nav:hover{ background:rgba(195,177,119,.2); border-color:rgba(195,177,119,.6); }
    .sc-nav:focus-visible{ outline:2px solid #d8c48a; outline-offset:3px; }
    .sc-nav svg{ width:19px; height:19px; }
    .sc-nav--prev{ left:-6px; }
    .sc-nav--next{ right:-6px; }

    /* --- hover preview --- */
    .sc-peek{
      position:absolute; z-index:4; width:min(282px, 76vw); padding:15px 17px;
      display:none; flex-direction:column; gap:5px;
      background:#07312d; border:1px solid rgba(195,177,119,.34); border-radius:14px;
      box-shadow:0 26px 50px -20px rgba(0,0,0,.95);
      pointer-events:none;
    }
    .sc-peek.is-open{ display:flex; }
    .sc-peek.is-open.is-entering{ animation:scPeek 180ms var(--ease); }
    @keyframes scPeek{ from{ opacity:0; translate:0 -6px; } to{ opacity:1; translate:0 0; } }
    .sc-peek-name{ font-family:var(--serif); font-size:16px; color:#fff; }
    .sc-peek-ach{ font-size:12px; font-weight:700; color:#d8c48a; }
    .sc-peek-desc{ font-size:12.5px; line-height:1.55; color:#b8b1a6; }
    .sc-peek-hint{ font-size:11px; color:#8d8678; margin-top:3px; }

    /* --- detail dialog --- */
    .sc-dialog{
      width:min(620px, calc(100vw - 32px)); padding:0; border:none; color:#e7e3db;
      background:#07312d; border-radius:22px; overflow:hidden;
      box-shadow:0 50px 90px -30px rgba(0,0,0,.92);
    }
    .sc-dialog::backdrop{ background:rgba(2,24,22,.72); backdrop-filter:blur(3px); }
    /* The resting state is VISIBLE. The entrance animation only runs while
       .is-entering is present, and students-carousel.js removes that class on
       a timer (§ the project animation-safety pattern). A running animation
       whose timeline never advances holds its from-state forever  14 without
       this, a throttled tab would show an invisible modal. */
    .sc-dialog.is-entering{ animation:scIn 240ms var(--ease); }
    .sc-dialog.is-entering::backdrop{ animation:scFade 240ms ease; }
    @keyframes scIn{ from{ opacity:0; scale:.94; } to{ opacity:1; scale:1; } }
    @keyframes scFade{ from{ opacity:0; } to{ opacity:1; } }

    .sc-dialog-close{
      position:absolute; top:12px; right:12px; z-index:2;
      width:44px; height:44px; border-radius:50%; cursor:pointer;
      display:flex; align-items:center; justify-content:center;
      background:rgba(0,0,0,.42); border:1px solid rgba(255,255,255,.18); color:#eae6df;
      transition:background var(--t-hover) var(--ease);
    }
    .sc-dialog-close:hover{ background:rgba(0,0,0,.66); }
    .sc-dialog-close:focus-visible{ outline:2px solid #d8c48a; outline-offset:2px; }
    .sc-dialog-close svg{ width:18px; height:18px; }

    .sc-dialog-body{ display:grid; grid-template-columns:232px 1fr; gap:0; }
    .sc-dialog-stage{
      aspect-ratio:1/1.04; display:flex; align-items:flex-end; justify-content:center; overflow:hidden;
      background:
        radial-gradient(78% 62% at 50% 108%, rgba(195,177,119,.30), rgba(195,177,119,0) 70%),
        linear-gradient(168deg, #0d6b60 0%, #023d38 54%, #01201d 100%);
    }
    .sc-dialog-stage img{ width:100%; height:100%; object-fit:contain; object-position:center bottom; }
    .sc-dialog-stage img.sc-headshot{ object-fit:cover; object-position:center 22%; }
    .sc-dialog-stage .sc-monogram{ font-size:46px; }
    .sc-dialog-text{ padding:30px 30px 32px; align-self:center; }
    .sc-dialog-year{ font-size:11.5px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:#c3b177; }
    .sc-dialog-name{ font-family:var(--serif); font-size:26px; color:#fff; margin-top:8px; line-height:1.2; }
    .sc-dialog-ach{ font-size:14px; font-weight:700; color:#d8c48a; margin-top:7px; }
    .sc-dialog-desc{ font-size:14px; line-height:1.66; color:#b8b1a6; margin-top:14px; }

    /* --- responsive --- */
    @media (max-width: 1100px){ .sc-card{ flex:0 0 212px; } }
    @media (max-width: 860px){
      .sc-card{ flex:0 0 196px; }
      .sc-track{ column-gap:18px; }
      .sc-nav--prev{ left:-2px; } .sc-nav--next{ right:-2px; }
      .sc-dialog-body{ grid-template-columns:1fr; }
      .sc-dialog-stage{ aspect-ratio:16/10; }
      .sc-dialog-text{ padding:22px 22px 26px; }
      .sc-dialog-name{ font-size:22px; }
    }
    @media (max-width: 560px){
      /* THREE cards on screen at once (was one centre card at 62vw with the
         neighbours peeking in). The width is derived from the track rather
         than from vw: `100%` here is the flex container, which is exactly the
         viewport the cards travel through, so three cards plus two gaps come
         to precisely its width at any screen size — no vw arithmetic to drift
         out of step with the page gutters.
         students-carousel.js measures cardW and the column-gap from the DOM,
         so the glide, the spotlight and the loop all follow automatically. */
      .sc-track{ column-gap:8px; }
      .sc-card{ flex:0 0 calc((100% - 16px) / 3); }

      /* The meta has to come down with the card — at ~106px wide the desktop
         17px name wrapped to three lines and pushed the cards out of square. */
      .sc-meta{ gap:2px; padding:8px 9px 10px; }
      .sc-name{ font-size:12px; line-height:1.2; }
      .sc-ach{ font-size:10px; letter-spacing:0; }
      .sc-year{ font-size:9.5px; }
      .sc-monogram{ font-size:22px; }
      .sc-monogram span{ width:48px; height:48px; }

      .sc-viewport{
        padding:18px 0 22px;
        /* Narrower fade than before. At three-up the outer cards sit right at
           the edges, and a 12% fade washed most of the first and last card
           out; 4% just softens the cut. */
        -webkit-mask-image:linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
                mask-image:linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
      }
      .sc-nav{ width:36px; height:36px; }
      .sc-nav--prev{ left:-6px; } .sc-nav--next{ right:-6px; }

      /* Gentler still now that neighbours are immediate: a big bloom would
         simply cover them. */
      .sc-card.is-centre .sc-card-btn{ transform:scale(1.08); }
      .sc-card.is-centre .sc-card-btn:hover{ transform:scale(1.08); }
      .sc-card:not(.is-centre) .sc-card-btn{ transform:scale(.97); }
      .sc-card:not(.is-centre) .sc-card-btn:hover,
      .sc-card:not(.is-centre) .sc-card-btn:focus-visible{ transform:scale(.97); }
    }

    /* --- reduced motion: no autoplay, no scaling, still fully usable --- */
    @media (prefers-reduced-motion: reduce){
      .sc-card-btn{ transition:none; }
      .sc-card.is-centre .sc-card-btn,
      .sc-card.is-centre .sc-card-btn:hover,
      .sc-card:not(.is-centre) .sc-card-btn,
      .sc-card:not(.is-centre) .sc-card-btn:hover,
      .sc-card:not(.is-centre) .sc-card-btn:focus-visible{ transform:none; }
      .sc-card:not(.is-centre) .sc-card-btn{ opacity:1; }
      .sc-peek.is-entering, .sc-dialog.is-entering, .sc-dialog.is-entering::backdrop{ animation:none; }
    }

    /* ============================================================
       STUDENT SUCCESS SECTION — ground, featured cards, pagination
       and the choreographed entrance.
       Added 2026-10-09 for the Student Achievements redesign.
       ============================================================ */

    /* --- the section ground (was inline on #results) --- */
    .ss{
      position:relative; overflow:hidden; isolation:isolate;
      background:var(--ivory); color:var(--body);
      padding-top:clamp(64px, 8vw, 104px); padding-bottom:clamp(64px, 8vw, 104px);
    }
    /* a faint warm wash at the top, in place of the old dark emerald glow */
    .ss::before{
      content:''; position:absolute; left:0; right:0; top:0; height:58%;
      z-index:0; pointer-events:none;
      background:radial-gradient(60% 72% at 50% 0%, rgba(165,150,95,.12), rgba(165,150,95,0) 70%);
    }
    /* Decorative wash, and the only thing that parallaxes. Sits behind
       .ss-inner, never catches pointer events, and is purely additive —
       if the parallax JS never runs it is simply a static glow. */
    .ss-glow{
      position:absolute; left:-6%; right:-6%; top:-12%; height:78%;
      z-index:0; pointer-events:none; will-change:transform;
      background:
        radial-gradient(50% 56% at 50% 0%, rgba(195,177,119,.17), rgba(195,177,119,0) 70%),
        radial-gradient(40% 48% at 84% 16%, rgba(13,107,96,.36), rgba(13,107,96,0) 72%);
    }
    .ss-inner{ position:relative; z-index:1; }

    .ss-head{ text-align:center; max-width:720px; margin:0 auto; }
    .ss-eyebrow{ color:var(--gold-dd); }
    .ss-head .ss-h2{ margin-top:12px; color:var(--ink); }
    .ss-head-sub{ margin-top:16px; color:var(--muted-d); font-size:16px; }

    /* ============================================================
       STUDENT ACHIEVEMENTS GALLERY — redesigned 2026-11-19.
       Light, year-organised, explorable. Replaces the dark hall-of-fame
       band, the 2025 featured pair and the auto-glide carousel. Cards are
       static HTML; js/achievements.js adds the year filter + detail dialog.
       ============================================================ */
    .ach{ position:relative; z-index:1; margin-top:clamp(34px, 4.5vw, 54px); }
    .ach-intro{
      max-width:60ch; margin:0 auto; text-align:center;
      font-size:clamp(14.5px, 1.1vw, 16.5px); line-height:1.6; color:var(--body);
    }

    /* --- year filter (built by JS) --- */
    .ach-filter{
      display:flex; flex-wrap:wrap; justify-content:center; gap:8px;
      margin:clamp(22px, 3vw, 32px) auto 0;
    }
    .ach-tab{
      font-family:var(--sans); font-size:13px; font-weight:700;
      padding:9px 16px; min-height:40px; border-radius:999px; cursor:pointer;
      color:var(--dt); background:#fff; border:1px solid var(--line);
      transition:background var(--t-hover) var(--ease), border-color var(--t-hover) var(--ease), color var(--t-hover) var(--ease), transform var(--t-hover) var(--ease);
    }
    .ach-tab:hover{ border-color:var(--dt-t2); transform:translateY(-1px); }
    .ach-tab[aria-pressed="true"]{ background:var(--dt); color:#fff; border-color:var(--dt); }
    .ach-tab:focus-visible{ outline:2px solid var(--dt); outline-offset:2px; }

    /* --- year groups + filtering --- */
    .ach-groups{ margin-top:clamp(26px, 3.4vw, 38px); }
    .ach-group{ margin-top:clamp(32px, 4vw, 52px); }
    .ach-group:first-child{ margin-top:0; }
    .ach-groups[data-filter="2025"] .ach-group:not([data-group="2025"]),
    .ach-groups[data-filter="2023"] .ach-group:not([data-group="2023"]),
    .ach-groups[data-filter="firsts"] .ach-group:not([data-group="firsts"]){ display:none; }

    .ach-group-head{
      display:flex; align-items:baseline; gap:14px; flex-wrap:wrap;
      margin-bottom:clamp(16px, 2vw, 22px); padding-bottom:12px;
      border-bottom:1px solid var(--line);
    }
    .ach-group-year{
      font-family:var(--serif); font-weight:600; color:var(--ink);
      font-size:clamp(20px, 2.2vw, 27px); line-height:1;
    }
    .ach-group-note{
      font-size:12px; font-weight:700; letter-spacing:.1em; text-transform:uppercase;
      color:var(--gold-dd);
    }

    /* --- grid --- */
    .ach-grid{ display:grid; gap:clamp(14px, 1.6vw, 20px); grid-template-columns:repeat(auto-fill, minmax(180px, 1fr)); }
    .ach-grid--lead{ grid-template-columns:repeat(2, minmax(0, 210px)); justify-content:center; gap:clamp(16px, 2vw, 24px); }

    /* --- card --- */
    .ach-card{ margin:0; }
    .ach-open{
      display:flex; flex-direction:column; width:100%; padding:0; cursor:pointer; text-align:left;
      background:var(--card); border:1px solid var(--line); border-radius:var(--r-card);
      overflow:hidden; box-shadow:var(--sh-card);
      transition:transform var(--t-hover) var(--ease), border-color var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease);
    }
    .ach-open:hover, .ach-open:focus-visible{
      transform:translateY(-5px); border-color:var(--dt-t2); box-shadow:var(--sh-card-h); outline:none;
    }
    .ach-open:focus-visible{ outline:2px solid var(--dt); outline-offset:2px; }

    .ach-media{
      position:relative; display:block; aspect-ratio:1 / 1; overflow:hidden;
      background:
        radial-gradient(78% 60% at 50% 108%, rgba(195,177,119,.26), rgba(195,177,119,0) 70%),
        linear-gradient(168deg, #0d6b60 0%, #023d38 60%, #01231f 100%);
    }
    .ach-media img{ width:100%; height:100%; display:block; transition:transform .5s var(--ease); }
    .ach-media--cover img{ object-fit:cover; object-position:center 20%; }
    .ach-media--contain img{ object-fit:contain; padding:10px; }
    .ach-open:hover .ach-media--cover img{ transform:scale(1.05); }

    .ach-badge{
      position:absolute; top:10px; left:10px; z-index:1;
      font-family:var(--sans); font-size:10.5px; font-weight:800; letter-spacing:.04em;
      padding:5px 10px; border-radius:999px; white-space:nowrap;
    }
    .ach-badge--gold{ color:#4a3c15; background:linear-gradient(180deg, #f3e6b8, #d9bd68); box-shadow:0 4px 10px -5px rgba(0,0,0,.5); }
    .ach-badge--emerald{ color:#eafaf4; background:rgba(2,61,56,.82); border:1px solid rgba(255,255,255,.18); }

    .ach-body{ display:flex; flex-direction:column; gap:3px; padding:14px 15px 16px; }
    .ach-name{ font-family:var(--serif); font-weight:600; font-size:clamp(15px, 1.2vw, 17px); color:var(--ink); line-height:1.25; }
    .ach-ach{ font-size:13px; font-weight:700; color:var(--dt); }
    .ach-meta{ font-size:12px; color:var(--muted-d); }

    /* 2025 lead cards: a modest, centred pair, kept small per the client */
    .ach-grid--lead .ach-name{ font-size:clamp(16px, 1.4vw, 18px); }
    .ach-grid--lead .ach-body{ padding:14px 16px 16px; }

    /* District-firsts heading: crisp Sinhala text in the site's Noto Sans Sinhala,
       emerald on the light ground, with a short gold underline accent — native to
       the site's look (replaces the raster Sinhala banner, which read as off). */
    .ach-firsts-head{ text-align:center; margin-bottom:clamp(6px, 1vw, 14px); }
    .ach-firsts-headline{ display:block; margin:0 auto; width:min(720px, 90%); height:auto; }
    .ach-firsts-head::after{
      content:''; display:block; width:48px; height:3px; margin:12px auto 0;
      border-radius:3px; background:linear-gradient(90deg, var(--gold), var(--gold-d));
    }

    /* District firsts + 2023 are shown as a single scrolling LINE (one row) */
    .ach-grid--row{
      display:flex; gap:clamp(14px, 1.6vw, 20px);
      overflow-x:auto; scroll-snap-type:x proximity;
      /* full-bleed: break out of the 1200px .wrap and span the screen so more
         district-firsts are visible at once. --sbw (set in main.js) keeps the
         page from ever scrolling sideways. The side padding keeps the first and
         last cards clear of the screen edge; scroll-padding keeps snap aligned. */
      width:auto;
      margin-left:calc(50% - 50vw + var(--sbw, 0px) / 2);
      margin-right:calc(50% - 50vw + var(--sbw, 0px) / 2);
      padding:8px clamp(24px, 5vw, 72px) 20px;
      scroll-padding-inline:clamp(24px, 5vw, 72px);
      scrollbar-width:none; -ms-overflow-style:none;
      -webkit-mask-image:linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
              mask-image:linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    }
    .ach-grid--row::-webkit-scrollbar{ display:none; }
    .ach-grid--row .ach-card{ flex:0 0 clamp(168px, 20vw, 208px); scroll-snap-align:start; }

    /* Per-card cascade. The group's [data-reveal] would move the whole grid in
       as one block; instead neutralise it on the grid and let each card rise in
       turn, so the row assembles itself. Resting state (no .reveal, i.e. JS off
       or reduced-motion) stays fully visible — HANDOVER §5.4. */
    .ach-group.reveal > .ach-grid{ opacity:1; translate:none; scale:none; }
    .ach-group.reveal .ach-card{
      opacity:0; translate:0 18px;
      transition:opacity var(--t-reveal) var(--ease), translate var(--t-reveal) var(--ease);
    }
    /* row cards sit in a horizontal scroller whose cross-axis is clipped — keep
       the rise small so a card is never cut off mid-reveal */
    .ach-group.reveal .ach-grid--row .ach-card{ translate:0 10px; }
    .ach-group.reveal.in-view .ach-card{ opacity:1; translate:none; }
    .ach-group.reveal.in-view .ach-card:nth-child(1){ transition-delay:.04s; }
    .ach-group.reveal.in-view .ach-card:nth-child(2){ transition-delay:.10s; }
    .ach-group.reveal.in-view .ach-card:nth-child(3){ transition-delay:.16s; }
    .ach-group.reveal.in-view .ach-card:nth-child(4){ transition-delay:.22s; }
    .ach-group.reveal.in-view .ach-card:nth-child(5){ transition-delay:.28s; }
    .ach-group.reveal.in-view .ach-card:nth-child(6){ transition-delay:.34s; }
    .ach-group.reveal.in-view .ach-card:nth-child(7){ transition-delay:.40s; }
    .ach-group.reveal.in-view .ach-card:nth-child(n+8){ transition-delay:.46s; }

    /* --- detail dialog --- */
    .ach-dialog{
      width:min(660px, calc(100vw - 32px)); padding:0; border:0;
      border-radius:var(--r-media); overflow:hidden; background:var(--card); color:var(--ink);
      box-shadow:0 40px 90px -30px rgba(0,0,0,.5);
    }
    .ach-dialog::backdrop{ background:rgba(2,24,21,.6); -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px); }
    .ach-dialog-body{ display:grid; grid-template-columns:280px 1fr; }
    .ach-dialog-media{
      display:flex; align-items:center; justify-content:center; min-height:340px;
      background:
        radial-gradient(78% 60% at 50% 108%, rgba(195,177,119,.26), rgba(195,177,119,0) 70%),
        linear-gradient(168deg, #0d6b60 0%, #023d38 60%, #01231f 100%);
    }
    .ach-dialog-img{ display:block; }
    .ach-dialog-media--cover .ach-dialog-img{ width:100%; height:100%; object-fit:cover; object-position:center 18%; }
    .ach-dialog-media--contain{ padding:20px; }
    .ach-dialog-media--contain .ach-dialog-img{ max-width:100%; max-height:300px; object-fit:contain; }
    .ach-dialog-text{ padding:clamp(22px, 3vw, 32px); display:flex; flex-direction:column; gap:8px; }
    .ach-dialog-badge{ position:static; align-self:flex-start; margin-bottom:4px; }
    .ach-dialog-name{ font-family:var(--serif); font-weight:500; font-size:clamp(22px, 2.4vw, 28px); color:var(--ink); line-height:1.15; margin:0; }
    .ach-dialog-ach{ font-size:15px; font-weight:700; color:var(--dt); margin:0; }
    .ach-dialog-meta{ font-size:13px; color:var(--muted-d); margin:0; }
    .ach-dialog-desc{ font-size:14.5px; line-height:1.6; color:var(--body); margin:6px 0 0; }
    .ach-dialog-close{
      position:absolute; top:12px; right:12px; z-index:2; width:38px; height:38px; border-radius:50%;
      display:flex; align-items:center; justify-content:center; cursor:pointer;
      color:#fff; background:rgba(2,24,21,.5); border:1px solid rgba(255,255,255,.28);
    }
    .ach-dialog-close svg{ width:18px; height:18px; }
    .ach-dialog-close:focus-visible{ outline:2px solid #fff; outline-offset:2px; }

    /* --- responsive --- */
    @media (max-width: 680px){
      .ach-dialog-body{ grid-template-columns:1fr; }
      .ach-dialog-media{ min-height:0; aspect-ratio:16 / 10; }
      .ach-dialog-media--contain{ aspect-ratio:auto; }
    }
    @media (max-width: 560px){
      .ach-grid, .ach-grid--lead{ grid-template-columns:repeat(2, minmax(0,1fr)); gap:12px; }
      .ach-name{ font-size:14px; }
      .ach-ach{ font-size:12px; }
      .ach-body{ padding:12px 12px 14px; }
    }
    @media (prefers-reduced-motion: reduce){
      .ach-open, .ach-media img, .ach-tab{ transition:none; }
      .ach-open:hover, .ach-open:focus-visible{ transform:none; }
      .ach-open:hover .ach-media--cover img{ transform:none; }
    }

    /* --- featured top performers --- */
    .ss-feat-head{ margin-top:clamp(56px, 7vw, 84px); margin-bottom:clamp(20px, 2.6vw, 28px); }
    .ss-carousel-head{ margin-top:clamp(48px, 6vw, 70px); margin-bottom:clamp(16px, 2.2vw, 24px); }
    .ss-feat{
      display:grid; grid-template-columns:repeat(2, minmax(0,1fr));
      gap:26px; margin-top:24px;
    }
    .ftcard{
      display:flex; align-items:center; gap:22px;
      padding:22px; border-radius:24px;
      border:1px solid rgba(195,177,119,.34);
      background:linear-gradient(168deg, rgba(195,177,119,.13), rgba(195,177,119,.035));
      transition:transform var(--t-hover) var(--ease),
                 border-color var(--t-hover) var(--ease),
                 box-shadow var(--t-hover) var(--ease);
    }
    .ftcard:hover{
      transform:translateY(-6px);
      border-color:rgba(195,177,119,.62);
      box-shadow:0 28px 56px -26px rgba(0,0,0,.72), 0 0 42px -16px rgba(195,177,119,.32);
    }
    /* Portrait stage, matched to the carousel's treatment so a transparent
       PNG lands identically in both: contained, bottom-anchored, on the
       same brand gradient. */
    .ftcard-stage{
      flex:0 0 152px; aspect-ratio:4/5; border-radius:18px; overflow:hidden;
      display:flex; align-items:flex-end; justify-content:center;
      background:
        radial-gradient(78% 60% at 50% 108%, rgba(195,177,119,.3), rgba(195,177,119,0) 70%),
        linear-gradient(168deg, #0d6b60 0%, #023d38 54%, #01201d 100%);
    }
    .ftcard-stage img{
      width:100%; height:100%; object-fit:contain; object-position:center bottom; display:block;
    }
    /* Studio headshots fill the frame (no letterbox), face kept high. */
    .ftcard-stage img.ft-headshot{ object-fit:cover; object-position:center 20%; }
    /* empty state: a dashed slot, same language as .ph */
    .ftcard-slot{
      display:flex; align-items:center; justify-content:center;
      width:72px; height:72px; margin-bottom:18%; border-radius:50%;
      color:rgba(216,196,138,.62);
      border:1px dashed rgba(195,177,119,.5); background:rgba(0,0,0,.18);
    }
    .ftcard-slot svg{ width:30px; height:30px; }
    .ftcard-body{ display:flex; flex-direction:column; gap:9px; min-width:0; }
    .ftcard-name{ font-family:var(--serif); font-size:21px; color:#fff; line-height:1.2; }
    .ftcard-ach{ font-size:14px; font-weight:700; color:#d8c48a; }
    .ftcard-year{ font-size:12.5px; color:#a59d8f; }
    .ss-feat-note{ margin-top:22px; }

    /* --- pagination indicators ---
       Secondary to the 44px arrows: with 20 students, 44px targets are not
       geometrically possible. Each button is 24px tall (WCAG 2.5.8 AA) and
       relies on the spacing exception for width. The arrows and swipe remain
       the primary controls. */
    .sc-dots{
      display:flex; flex-wrap:wrap; justify-content:center; align-items:center;
      gap:2px; margin-top:6px;
    }
    .sc-dot{
      display:flex; align-items:center; justify-content:center;
      width:14px; height:24px; padding:0; border:0; background:none; cursor:pointer;
      -webkit-appearance:none; appearance:none;
    }
    .sc-dot::before{
      content:""; display:block; width:7px; height:7px; border-radius:50%;
      background:rgba(195,177,119,.3);
      transition:background var(--t-hover) var(--ease),
                 transform var(--t-hover) var(--ease),
                 box-shadow var(--t-hover) var(--ease);
    }
    .sc-dot:hover::before{ background:rgba(195,177,119,.6); transform:scale(1.2); }
    .sc-dot[aria-current="true"]::before{
      background:#d8c48a; transform:scale(1.34);
      box-shadow:0 0 12px -1px rgba(216,196,138,.8);
    }
    .sc-dot:focus-visible{ outline:2px solid #d8c48a; outline-offset:1px; border-radius:6px; }

    /* ------------------------------------------------------------
       ENTRANCE SEQUENCE — spotlight reveal + fade up.

       Follows the project pattern (HANDOVER 5.4): the resting state is
       VISIBLE. .ss-enter is what applies the hidden state and is added by
       JS; .is-in plays the sequence; a safety timer removes .ss-enter
       outright. With JS off, a frozen timeline or a throttled tab, the whole
       section simply renders as normal.

       Animates `translate`, never `transform` — .ftcard:hover and the
       carousel's spotlight both own `transform`, and a (0,3,0) entrance
       rule setting transform would silently out-specify them.

       Budget: last step starts at 700ms + 560ms travel = ~1.26s total.
       ------------------------------------------------------------ */
    .ss-enter .ss-head,
    .ss-enter .ss-feat-head,
    .ss-enter .ftcard,
    .ss-enter .ss-feat-note,
    .ss-enter .ss-carousel-head,
    .ss-enter .sc{
      opacity:0; translate:0 24px;
      transition:opacity 520ms var(--ease), translate 560ms var(--ease);
    }
    .ss-enter .ss-glow{ opacity:0; transition:opacity 680ms ease; }

    .ss-enter.is-in .ss-glow{ opacity:1; }
    .ss-enter.is-in .ss-head,
    .ss-enter.is-in .ss-feat-head,
    .ss-enter.is-in .ftcard,
    .ss-enter.is-in .ss-feat-note,
    .ss-enter.is-in .ss-carousel-head,
    .ss-enter.is-in .sc{ opacity:1; translate:none; }

    .ss-enter.is-in .ss-head{ transition-delay:120ms; }
    .ss-enter.is-in .ss-feat-head{ transition-delay:270ms; }
    .ss-enter.is-in .ftcard:nth-child(1){ transition-delay:370ms; }
    .ss-enter.is-in .ftcard:nth-child(2){ transition-delay:480ms; }
    .ss-enter.is-in .ss-feat-note{ transition-delay:560ms; }
    .ss-enter.is-in .ss-carousel-head{ transition-delay:620ms; }
    .ss-enter.is-in .sc{ transition-delay:700ms; }

    /* --- responsive --- */
    @media (max-width: 1024px){
      .ftcard-stage{ flex-basis:116px; }
      .ftcard-name{ font-size:19px; }
    }
    @media (max-width: 820px){
      /* brief: side by side on desktop, stacked on mobile */
      .ss-feat{ grid-template-columns:1fr; gap:18px; }
      .ss-feat-head{ margin-top:46px; }
      .ftcard-stage{ flex-basis:124px; }
    }
    @media (max-width: 700px){
      .ss{ padding-top:76px; padding-bottom:80px; }
      .ss-head-sub{ font-size:15px; }
    }
    @media (max-width: 420px){
      .ftcard{ gap:16px; padding:18px; border-radius:20px; }
      .ftcard-stage{ flex-basis:100px; border-radius:15px; }
      .ftcard-slot{ width:58px; height:58px; }
      .ftcard-slot svg{ width:24px; height:24px; }
      .ftcard-name{ font-size:18px; }
      .sc-dot{ width:11px; }
      .sc-dot::before{ width:6px; height:6px; }
    }

    /* --- reduced motion: no entrance, no lift, no parallax --- */
    @media (prefers-reduced-motion: reduce){
      .ss-enter .ss-head,
      .ss-enter .ss-feat-head,
      .ss-enter .ftcard,
      .ss-enter .ss-feat-note,
      .ss-enter .ss-carousel-head,
      .ss-enter .sc,
      .ss-enter .ss-glow{ opacity:1; translate:none; transition:none; }
      .ftcard{ transition:none; }
      .ftcard:hover{ transform:none; }
      .sc-dot::before{ transition:none; }
      .sc-dot:hover::before{ transform:none; }
    }

    /* ============================================================
       FULL-SCREEN SECTION LAYOUT + GENTLE SNAP
       Added 2026-10-09. Desktop only. See HANDOVER 6.8.

       Measured at 1366x768 before this: seven of ten sections ran taller
       than one screen. So this does NOT force every section to 100vh —
       that would mean cutting content the client asked for. Instead:

         - sections that comfortably fit are filled to the screen and
           their content centred, which is what produces the aligned,
           one-screen-at-a-time feel;
         - sections that are genuinely taller are left to their natural
           height and simply act as landing points;
         - the two sections that own their own scroll choreography are
           excluded from snapping altogether.

       `proximity`, never `mandatory`: mandatory snapping fights trackpad
       momentum, breaks find-in-page and traps keyboard users. Proximity
       assists the scroll without ever taking it over.

       The nav is position:absolute (main.css), so it scrolls away with the
       hero rather than overlaying later sections — no scroll-padding-top
       is needed, and adding one would open a gap above every snap point.
       ============================================================ */
    @media (min-width: 1025px) and (min-height: 640px) and (prefers-reduced-motion: no-preference){
      html{ scroll-snap-type:y proximity; }

      /* fit one screen: fill it and centre the content */
      #about, #register{
        min-height:100dvh;
        display:flex; flex-direction:column; justify-content:center;
        scroll-snap-align:start;
      }

      /* taller than one screen by nature — never forced, still a landing point.
         #videos joined this list on 2026-10-22: it absorbed the photo collage
         from the old #gallery section, so it no longer fits one screen and
         forcing min-height:100dvh on it would only add dead space. #secure and
         #gallery are gone from here because those sections no longer exist. */
      #results, #classes, #videos{ scroll-snap-align:start; }

      /* #social (a 260vh pinned card reveal) and the globe (135vh, scroll-driven)
         deliberately have NO snap point: one inside them would pull the reader
         back to the start part-way through the animation. */
    }

    /* Gallery rows scale with the viewport so the section fits a 768px-tall
       screen instead of overshooting it by ~20px. */
    /* The collage moved inside #videos on 2026-10-22, so it shares that
       section's .wrap (1200px) and the old .wrap-wide override is gone —
       two different container widths inside one section read as a mistake. */
    .vid-gallery{ margin-top:clamp(46px, 5vw, 72px); }
    .vid-gallery-head{ text-align:center; max-width:620px; margin:0 auto 22px; }
    .vid-gallery-title{
      font-family:var(--serif); font-weight:400;
      font-size:clamp(22px, 2.2vw, 28px); line-height:1.2; color:var(--ink);
    }
    .gal-grid{ gap:16px; }
    @media (min-width: 901px){
      .gal-grid{ grid-auto-rows:clamp(260px, 38vh, 420px); }
    }
    @media (max-width: 900px){
      .gal-grid{ grid-auto-rows:220px; }
    }
    /* Phones get a real collage, not a stack. One column turned this into
       "one photo after another" over 1008px of scrolling; this is a two-column
       mosaic of 648px that keeps every photo in a slot matching its shape.

       The spans key off .gal-w, which already marks the landscape photos, so
       a new photo only needs the right class — there is no nth-child
       arithmetic to re-do. `dense` is what makes it interlock: the third
       (wide) tile cannot fit beside the second, so it starts a new band, and
       dense packing then backfills the fourth tile into the gap left in
       column two. Resulting bands: [1 wide] / [2][4] / [3 wide]. */
    @media (max-width: 560px){
      .gal-grid{
        grid-template-columns:1fr 1fr;
        grid-auto-rows:84px;
        grid-auto-flow:row dense;
        gap:10px;
      }
      .gal{ grid-row:span 3; }                        /* portrait: tall, one column */
      .gal-w{ grid-column:1 / -1; grid-row:span 2; }  /* landscape: wide band */
      /* With an odd number of single-column tiles the last one would sit alone
         and leave a hole beside it. Running the final tile full width closes
         the mosaic off instead — and it reads as a deliberate closing band. */
      .gal-grid > :last-child{ grid-column:1 / -1; grid-row:span 2; }
    }


    /* ============================================================
       STUDENT TESTIMONIALS — "What Our Students Say"
       The photo is pinned to the viewport (position:fixed inside a
       clip-path box, which also works on iOS where background-attachment
       :fixed does not), so it stays still while the cards reveal over it.
       ============================================================ */
    .tm{
      position:relative; isolation:isolate; clip-path:inset(0);
      padding:clamp(70px, 8vw, 110px) 0;
      background:#0b1d1a;
    }
    .tm-bg{
      position:fixed; inset:0; z-index:-1; pointer-events:none;
      background:url("../assets/images/testimonials-bg.jpg") center/cover no-repeat;
    }
    .tm-bg::after{
      content:''; position:absolute; inset:0;
      background:linear-gradient(180deg, rgba(1,28,25,.86), rgba(2,45,40,.80));
    }
    .tm-inner{ position:relative; z-index:1; }
    .tm-head{ text-align:center; max-width:640px; margin:0 auto clamp(30px, 4vw, 48px); }
    .tm-head .eyebrow{ color:#d8c48a; }
    .tm-head h2{ color:#fff; font-size:clamp(30px, 4vw, 44px); margin-top:12px; }
    .tm-sub{ margin:14px auto 0; max-width:58ch; color:#cbc3b4; font-size:clamp(14.5px,1.1vw,16px); line-height:1.6; }

    /* Real appreciation letters — a compact wall of scanned handwriting, each
       opening full-size in a lightbox. Held to two rows so the section stays short. */
    /* --- auto-rotating letters marquee (desktop) ---
       The track holds the six letters plus a cloned set (added by the script);
       it scrolls from 0 to -50% so the clone lands exactly where the original
       began — a seamless loop. Gap is a right-margin on each card (not flex gap)
       so the two halves are identical and -50% is exactly one set wide. */
    .tm-marquee{
      position:relative; overflow:hidden;
      /* full-bleed so more letters show at once (see .ach-grid--row) */
      width:auto;
      margin-left:calc(50% - 50vw + var(--sbw, 0px) / 2);
      margin-right:calc(50% - 50vw + var(--sbw, 0px) / 2);
      -webkit-mask-image:linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
              mask-image:linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    }
    .tm-track{
      list-style:none; margin:0; padding:24px 0; display:flex; width:max-content;
      animation:tm-scroll 60s linear infinite;
    }
    .tm-marquee:hover .tm-track, .tm-track:focus-within{ animation-play-state:paused; }
    @keyframes tm-scroll{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }
    .tm-letter{ margin:0 clamp(16px, 1.6vw, 24px) 0 0; flex:0 0 clamp(236px, 23vw, 312px); }
    /* the cards are moving, so hover lifts the glow rather than translating
       (a translate would be clipped by the band's overflow) */
    .tm-marquee .tm-letter-btn:hover, .tm-marquee .tm-letter-btn:focus-visible{
      transform:none;
      box-shadow:0 24px 48px -28px rgba(0,0,0,.8), 0 0 36px -16px rgba(216,196,138,.55);
    }
    .tm-letter-btn{
      position:relative; display:block; width:100%; padding:0; cursor:pointer;
      border:1px solid rgba(255,255,255,.16); border-radius:18px; overflow:hidden;
      background:#efe9da; aspect-ratio:4 / 5;
      box-shadow:0 24px 48px -28px rgba(0,0,0,.8);
      transition:transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
    }
    .tm-letter-btn img{
      width:100%; height:100%; object-fit:cover; object-position:top center; display:block;
    }
    .tm-letter-btn:hover, .tm-letter-btn:focus-visible{
      transform:translateY(-6px);
      border-color:rgba(216,196,138,.6);
      box-shadow:0 36px 60px -28px rgba(0,0,0,.85), 0 0 36px -18px rgba(216,196,138,.5);
    }
    .tm-letter-btn:focus-visible{ outline:2px solid #e6d9a8; outline-offset:3px; }
    /* "Read" chip, top-right */
    .tm-letter-btn::after{
      content:'Read'; position:absolute; top:11px; right:11px; z-index:1;
      font-size:10.5px; font-weight:800; letter-spacing:.09em; text-transform:uppercase;
      color:#2a2415; padding:5px 10px; border-radius:999px;
      background:linear-gradient(180deg, #f3e6b8, #d9bd68);
      box-shadow:0 6px 14px -6px rgba(0,0,0,.5);
      opacity:0; transform:translateY(-4px);
      transition:opacity .35s var(--ease), transform .35s var(--ease);
    }
    .tm-letter-btn:hover::after, .tm-letter-btn:focus-visible::after{ opacity:1; transform:none; }
    .tm-letter-meta{
      position:absolute; left:0; right:0; bottom:0; z-index:1;
      display:flex; flex-direction:column; gap:2px; text-align:left;
      padding:30px 15px 13px;
      background:linear-gradient(0deg, rgba(3,26,23,.94) 6%, rgba(3,26,23,.62) 55%, rgba(3,26,23,0) 100%);
    }
    .tm-letter-name{ font-family:var(--serif); font-size:15px; font-weight:600; color:#fff; line-height:1.25; }
    .tm-letter-year{ font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:#e7dcb6; }

    /* Lightbox — full letter in a top-layer <dialog> so the section's clip-path
       can't crop it. */
    .tm-lightbox{
      border:0; padding:0; background:transparent; overflow:visible;
      max-width:92vw; max-height:90vh;
    }
    .tm-lightbox::backdrop{ background:rgba(3,15,13,.85); -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px); }
    .tm-lightbox-img{
      display:block; max-width:min(92vw, 640px); max-height:88vh; width:auto; height:auto;
      border-radius:14px; box-shadow:0 40px 90px -30px rgba(0,0,0,.9);
    }
    .tm-lightbox-close{
      position:absolute; top:-14px; right:-14px; z-index:2;
      width:40px; height:40px; border-radius:50%; cursor:pointer;
      display:flex; align-items:center; justify-content:center;
      color:#1a1a1a; background:#f4efe3; border:1px solid rgba(0,0,0,.1);
      box-shadow:0 10px 24px -8px rgba(0,0,0,.6);
    }
    .tm-lightbox-close svg{ width:20px; height:20px; }
    .tm-lightbox-close:focus-visible{ outline:2px solid #e6d9a8; outline-offset:2px; }

    /* phones: keep the auto-scroll marquee (client, 2026-11-19) — it no longer
       becomes a manual scroller. Smaller letters so two or three show at once,
       and a slightly quicker glide so the shorter cards travel at the same feel.
       The cloned set stays (it is what makes the -50% loop seamless). */
    @media (max-width: 760px){
      .tm-track{ padding:16px 0; animation-duration:34s; }
      .tm-letter{ flex-basis:clamp(150px, 52vw, 196px); margin-right:14px; }
      .tm-letter-name{ font-size:13px; }
      .tm-letter-year{ font-size:10px; }
      .tm-letter-btn::after{ opacity:1; transform:none; }
      .tm-marquee .tm-letter-btn:hover{ transform:none; }
    }
    /* reduced motion: never auto-scroll; a scrollbar-free manual scroller */
    @media (prefers-reduced-motion: reduce){
      .tm-marquee{ overflow-x:auto; overflow-y:hidden; scrollbar-width:none; -ms-overflow-style:none; }
      .tm-marquee::-webkit-scrollbar{ display:none; }
      .tm-track{ animation:none; }
      .tm-letter--dupe{ display:none; }
      .tm-letter-btn{ transition:none; }
      .tm-letter-btn:hover, .tm-letter-btn:focus-visible{ transform:none; }
    }

    /* ============================================================
       District-first HALL OF FAME — gold-rail timeline (2026-11-19)
       Circular portrait medallions threaded on a gold rail, newest
       (2021) to oldest (2012). Full-bleed horizontal scroller.
       ============================================================ */
    /* A centred, non-scrolling row that fits all eight firsts at once, wrapping
       to a second row only on narrow screens. Full-bleed so it has room to
       spread. The gold rail runs behind the medallions; a soft edge mask hides
       the per-node line stubs at the two ends. */
    .hof-rail{
      position:relative; display:flex; flex-wrap:wrap; justify-content:center; align-items:flex-start;
      gap:clamp(8px,1.4vw,20px) clamp(2px,0.5vw,10px);
      width:auto;
      margin-left:calc(50% - 50vw + var(--sbw, 0px) / 2);
      margin-right:calc(50% - 50vw + var(--sbw, 0px) / 2);
      padding:clamp(6px,1vw,14px) clamp(16px,3vw,56px) clamp(12px,1.6vw,22px);
      -webkit-mask-image:linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
              mask-image:linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
    }
    .hof-item{ margin:0; }
    .hof-node{
      --ring:clamp(76px, 7.3vw, 112px);
      position:relative; display:flex; flex-direction:column; align-items:center;
      width:clamp(96px, 9.4vw, 150px);
      padding:0; border:0; background:none; cursor:pointer; text-align:center; color:inherit;
      /* strip the .ach-open card chrome these buttons also carry, so each
         medallion floats on the section rather than sitting in a shadowed tile */
      box-shadow:none; border-radius:0; overflow:visible;
    }
    .hof-node:hover, .hof-node:focus-visible{ box-shadow:none; transform:none; border-color:transparent; }
    /* the gold rail — each node draws the segment behind its medallion so the
       line stays continuous across the row */
    .hof-node::before{
      content:''; position:absolute; z-index:0;
      left:-10px; right:-10px; top:calc(1.8em + var(--ring) / 2); height:2px;
      background:linear-gradient(90deg, rgba(195,177,119,.9), rgba(176,150,78,.9));
    }
    .hof-year{
      position:relative; z-index:1; height:1.8em; line-height:1.8em;
      font-family:var(--serif); font-weight:600; font-size:clamp(15px,1.3vw,18px);
      color:var(--dt); letter-spacing:.01em;
    }
    .hof-ring{
      position:relative; z-index:1;
      width:var(--ring); height:var(--ring); border-radius:50%;
      display:grid; place-items:center; padding:4px;
      background:conic-gradient(from 210deg, #e9d79a, #c9a84e 25%, #f3e7b0 50%, #b9922f 75%, #e9d79a);
      box-shadow:0 12px 26px -12px rgba(2,61,56,.55), 0 2px 5px rgba(0,0,0,.12);
      transition:transform var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease);
    }
    .hof-photo{
      width:100%; height:100%; border-radius:50%; overflow:hidden;
      background:#eef1ee; box-shadow:inset 0 0 0 3px #fff;
    }
    .hof-photo img{
      width:100%; height:100%; object-fit:cover; object-position:center 20%;
      display:block; transition:transform .6s var(--ease);
    }
    .hof-medal{
      position:absolute; right:2px; bottom:0; z-index:2;
      width:clamp(22px,2.3vw,28px); height:clamp(22px,2.3vw,28px); border-radius:50%; border:2px solid #fff;
      background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%235a4a16' d='M12 2l2.9 6.26L22 9.27l-5 4.87L18.18 22 12 18.56 5.82 22 7 14.14 2 9.27l7.1-1.01z'/%3E%3C/svg%3E") center / 15px no-repeat,
        linear-gradient(145deg, #f3e6b8, #d9bd68 55%, #b8922f);
      box-shadow:0 4px 10px -4px rgba(0,0,0,.5);
    }
    .hof-name{
      position:relative; z-index:1; margin-top:11px;
      font-family:var(--serif); font-weight:600; font-size:clamp(12.5px,0.95vw,15px);
      color:var(--ink); line-height:1.22;
    }
    .hof-rank{
      position:relative; z-index:1; margin-top:3px;
      font-size:clamp(9.5px,0.72vw,10.5px); font-weight:700; letter-spacing:.06em; text-transform:uppercase;
      color:var(--gold-dd);
    }
    .hof-node:hover .hof-ring, .hof-node:focus-visible .hof-ring{
      transform:translateY(-7px) scale(1.05);
      box-shadow:0 22px 42px -16px rgba(2,61,56,.6), 0 0 30px -8px rgba(201,168,78,.65);
    }
    .hof-node:hover .hof-photo img{ transform:scale(1.09); }
    .hof-node:focus-visible{ outline:none; }
    .hof-node:focus-visible .hof-ring{ outline:3px solid var(--dt); outline-offset:3px; }

    /* ============================================================
       2023 ranks — EMERALD SPOTLIGHT CAROUSEL
       Posters auto-glide through a lit centre, dim at the edges.
       Track cloned once by main.js for a seamless loop.
       ============================================================ */
    /* Held to the content width (not full-bleed) with smaller posters, so a few
       sit on the lit centre stage and glide continuously. */
    .spot{ position:relative; margin-top:4px; }
    .spot-viewport{
      position:relative; overflow:hidden; padding:24px 0;
      -webkit-mask-image:linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
              mask-image:linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    }
    .spot-track{
      display:flex; width:max-content; gap:clamp(16px,1.8vw,26px);
      padding:0 clamp(16px,3vw,40px);
      animation:spot-scroll 40s linear infinite;
    }
    .spot:hover .spot-track, .spot-track:focus-within{ animation-play-state:paused; }
    @keyframes spot-scroll{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }
    .spot .ach-card{ margin:0; flex:0 0 clamp(188px, 21vw, 248px); }
    .spot .ach-open{ box-shadow:0 22px 46px -28px rgba(0,0,0,.55); }
    .spot .ach-media{ aspect-ratio:1 / 1; }
    .spot .ach-open:hover, .spot .ach-open:focus-visible{
      transform:translateY(-6px);
      box-shadow:0 30px 54px -26px rgba(0,0,0,.65), 0 0 30px -14px rgba(201,168,78,.5);
    }
    /* The side-dimming overlays were removed (client, 2026-11-19): they greyed
       out the edge posters, which read as a weird gradient. The viewport's mask
       already fades the ends softly, and a faint warm centre glow stays. */
    .spot-edge{ display:none; }
    .spot-beam{ position:absolute; top:0; bottom:0; left:0; right:0; z-index:1; pointer-events:none;
      background:radial-gradient(40% 84% at 50% 46%, rgba(201,168,78,.14), rgba(201,168,78,0) 70%); }

    /* phones: keep the auto-glide (client, 2026-11-19) and make the posters
       smaller so several share the lit stage. The cloned set stays so the
       -50% loop is seamless; a quicker duration suits the smaller cards. */
    @media (max-width: 760px){
      .spot-track{ gap:14px; padding:0 clamp(12px, 4vw, 24px); animation-duration:26s; }
      .spot .ach-card{ flex-basis:clamp(130px, 40vw, 168px); }
      .spot .ach-body{ padding-top:8px; }
      .spot .ach-name{ font-size:13px; }
    }
    @media (prefers-reduced-motion: reduce){
      .spot-viewport{ overflow-x:auto; overflow-y:hidden; scrollbar-width:none; -ms-overflow-style:none; }
      .spot-viewport::-webkit-scrollbar{ display:none; }
      .spot-track{ animation:none; }
      .spot .ach-card[aria-hidden="true"]{ display:none; }
      .spot .ach-open{ transition:none; }
      .spot .ach-open:hover, .spot .ach-open:focus-visible{ transform:none; }
    }

    /* ---- reveal wiring for the new components ----
       Let the hall-of-fame medallions cascade individually (don't fade the rail
       as one block); keep the spotlight block revealing as a unit but hold its
       cards steady so the auto-glide isn't disturbed. */
    .ach-group.reveal > .hof-rail{ opacity:1; translate:none; scale:none; }
    .ach-group.reveal .hof-rail .ach-card{ translate:0 12px; }
    .ach-group.reveal .spot .ach-card{ opacity:1; translate:none; transition:none; }

    /* ============================================================
       Handwriting headline reveal — each section headline "writes
       itself" word by word (ink un-blurs and rises). main.js splits
       the words and triggers it on scroll; resting state is the
       finished heading (JS off / reduced-motion). HANDOVER §5.4.
       ============================================================ */
    .hw{ position:relative; }
    .hw-w{
      display:inline-block; white-space:pre; opacity:0; translate:0 .42em;
      filter:blur(6px);
      transition:opacity .5s ease, translate .6s var(--ease), filter .5s ease;
    }
    .hw.is-written .hw-w{ opacity:1; translate:none; filter:none; }
    /* the headline box stays present so only the words animate (no double fade
       from the section's own [data-reveal]); the words carry the motion */
    [data-reveal].reveal > .hw{ opacity:1; translate:none; scale:none; }
    @media (prefers-reduced-motion: reduce){
      .hw-w{ opacity:1; translate:none; filter:none; transition:none; }
    }

    /* ============================================================
       Contact inquiry form (#register) — real fields that submit to
       WhatsApp, plus a staggered entrance for the form's main text.
       ============================================================ */
    .cf-label{
      display:block; font-size:12px; font-weight:600; color:var(--body); margin-bottom:5px;
    }
    .cf-input{
      width:100%; height:42px; padding:0 12px;
      border:1px solid var(--line); border-radius:10px; background:var(--bg);
      font-family:inherit; font-size:14px; color:var(--ink);
      transition:border-color .2s var(--ease), box-shadow .2s var(--ease);
      -webkit-appearance:none; appearance:none;
    }
    .cf-input::placeholder{ color:var(--muted); }
    .cf-input:focus{
      outline:none; border-color:var(--dt-2, #0a5a51);
      box-shadow:0 0 0 3px rgba(10,90,81,.14);
    }
    .cf-textarea{ height:auto; min-height:74px; padding:10px 12px; resize:vertical; line-height:1.5; }
    .cf-select{
      cursor:pointer;
      background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b877f' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
      background-repeat:no-repeat; background-position:right 12px center; padding-right:34px;
    }
    .cf-submit{ align-items:center; }
    .cf-note{ margin-top:2px; font-size:11.5px; color:var(--muted-d, #5f5a50); text-align:center; }

    /* Entrance for the form's main text + fields, driven by the section's
       [data-reveal] (.cta-grid). Resting state is VISIBLE — the hidden state
       lives only under .reveal, which main.js adds, so with JS off the form
       simply shows (HANDOVER §5.4). */
    .cta-grid.reveal .cf-head,
    .cta-grid.reveal .cf-row,
    .cta-grid.reveal .cf-submit,
    .cta-grid.reveal .cf-note,
    .cta-grid.reveal .contact-social{
      opacity:0; translate:0 14px;
      transition:opacity .55s var(--ease), translate .6s var(--ease);
    }
    .cta-grid.reveal.in-view .cf-head,
    .cta-grid.reveal.in-view .cf-row,
    .cta-grid.reveal.in-view .cf-submit,
    .cta-grid.reveal.in-view .cf-note,
    .cta-grid.reveal.in-view .contact-social{ opacity:1; translate:none; }
    .cta-grid.reveal.in-view .cf-head{ transition-delay:.14s; }
    .cta-grid.reveal.in-view .cf-row:nth-of-type(1){ transition-delay:.22s; }
    .cta-grid.reveal.in-view .cf-row:nth-of-type(2){ transition-delay:.30s; }
    .cta-grid.reveal.in-view .cf-row:nth-of-type(3){ transition-delay:.38s; }
    .cta-grid.reveal.in-view .cf-submit{ transition-delay:.46s; }
    .cta-grid.reveal.in-view .cf-note{ transition-delay:.52s; }
    .cta-grid.reveal.in-view .contact-social{ transition-delay:.30s; }
    @media (prefers-reduced-motion: reduce){
      .cta-grid.reveal .cf-head,
      .cta-grid.reveal .cf-row,
      .cta-grid.reveal .cf-submit,
      .cta-grid.reveal .cf-note,
      .cta-grid.reveal .contact-social{ opacity:1; translate:none; transition:none; }
    }

    /* ============================================================
       OUR SYSTEM / වැඩපිළිවෙල — interactive stepped pathway (v2, 2026-11-21).
       Client "විශිෂ්ටයන් තනන අපේ වැඩපිළිවෙල" infographic. Rebuilt as a HOVER-
       to-expand stepper whose numbered nodes sit on a gold rail in a LEFT GUTTER
       (the rail no longer crosses the tile faces), with subtle per-tile tints.
       Resting state is VISIBLE: panels are open until .method-steps gains
       .is-enhanced (added by the inline script) — HANDOVER §5.4 / §6.29.
       Heading is now the client wordmark PNG (assets/images/method-heading.png).
       ============================================================ */
    .method{ position:relative; background:#f4f1e9; padding:clamp(60px,8vw,104px) 0; overflow:hidden; }
    .method-glow{ position:absolute; inset:0; pointer-events:none;
      background:radial-gradient(58% 52% at 86% 4%, rgba(13,107,96,.10), transparent 60%),
                 radial-gradient(52% 46% at 4% 98%, rgba(165,150,95,.14), transparent 60%); }
    .method-inner{ position:relative; }
    .method-head{ text-align:center; max-width:920px; margin:0 auto clamp(32px,5vw,54px); }
    .method-sub{ max-width:700px; margin-left:auto; margin-right:auto; }
    .method-eyebrow{ color:var(--dt-2); }
    .method-title{ margin:18px 0 0; line-height:0; }
    .method-title-img{ display:inline-block; width:min(900px,94%); height:auto;
      filter:drop-shadow(0 6px 16px rgba(60,42,16,.14)); }
    /* Entrance: the wordmark "prints" in left-to-right as the header scrolls in
       (rides the site-wide [data-reveal] .in-view state, so it needs no JS of its
       own and the resting state is the finished wordmark — HANDOVER §5.4). */
    @keyframes methodWordmarkIn{
      0%  { clip-path:inset(0 100% 0 0); opacity:0; transform:translateY(10px) scale(.985); }
      55% { opacity:1; }
      100%{ clip-path:inset(0 0 0 0);   opacity:1; transform:none; }
    }
    .method-head.reveal.in-view .method-title-img{
      animation:methodWordmarkIn 1.15s cubic-bezier(.22,.78,.26,1) .12s both; }
    @media (prefers-reduced-motion: reduce){
      .method-head.reveal.in-view .method-title-img{ animation:none; }
    }
    .method-sub{ margin-top:20px; color:var(--body);
      font-size:clamp(14.5px,1.6vw,16.5px); line-height:1.72; }

    /* Stepper. The rail lives in a left gutter (the tiles carry margin-left), so
       it threads the nodes without crossing any tile. */
    .method-steps{ list-style:none; margin:0 auto; padding:0; max-width:760px;
      position:relative; display:flex; flex-direction:column; gap:15px; }
    .method-steps::before{ content:""; position:absolute; left:41px; top:28px; bottom:28px;
      width:2px; border-radius:2px; background:linear-gradient(var(--gold), rgba(165,150,95,.18)); }

    /* Per-tile tone — subtle, on-brand tints keyed off data-tone. */
    .mstep{ --tone-bg:#eef4f1; --tone-bd:#d9e6e1; --tone-ac:#0a5349; --tone-ac2:#0d6b60; }
    .mstep[data-tone="gold"]{ --tone-bg:#f7f2e5; --tone-bd:#ebe0c3; --tone-ac:#7c6c34; --tone-ac2:#a5965f; }
    .mstep[data-tone="sage"]{ --tone-bg:#eef2ea; --tone-bd:#dde6d9; --tone-ac:#3e5c47; --tone-ac2:#507a5c; }
    .mstep[data-tone="sand"]{ --tone-bg:#f4eee1; --tone-bd:#e8dcc1; --tone-ac:#6b5a2c; --tone-ac2:#8a753c; }

    .mstep{ position:relative; margin-left:58px; background:var(--tone-bg);
      border:1px solid var(--tone-bd); border-radius:16px;
      box-shadow:0 1px 2px rgba(20,30,28,.045);
      transition:box-shadow .5s var(--ease), border-color .5s var(--ease),
                 transform .5s cubic-bezier(.22,1.02,.36,1); }
    .mstep--free{ --tone-bd:#e1d2a4; }

    .mstep-head{ position:relative; display:flex; align-items:center; gap:13px;
      width:100%; background:none; border:0; cursor:pointer; text-align:left;
      padding:15px 20px; font-family:var(--sans); color:var(--ink); }
    .mstep-head:focus-visible{ outline:2px solid var(--tone-ac2); outline-offset:3px; border-radius:16px; }

    /* Node — absolutely placed so it drops into the gutter and stays centred on
       the header row whatever the panel does. */
    .mstep-num{ position:absolute; left:-40px; top:50%; transform:translateY(-50%);
      width:46px; height:46px; z-index:2; display:flex; align-items:center;
      justify-content:center; border-radius:50%; font-family:var(--sans);
      font-weight:800; font-size:15px; color:var(--tone-ac);
      background:rgba(255,255,255,.82); border:2px solid #fff;
      box-shadow:0 0 0 1px var(--tone-bd), 0 2px 5px rgba(20,30,28,.08);
      transition:transform .5s cubic-bezier(.22,1.3,.4,1), background .5s var(--ease),
                 color .5s var(--ease), box-shadow .5s var(--ease); }

    .mstep-icon{ flex:none; width:26px; height:26px; color:var(--tone-ac2);
      transition:transform .5s cubic-bezier(.22,1.3,.4,1); }
    .mstep-icon svg{ width:100%; height:100%; }
    .mstep-titles{ flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:3px; }
    .mstep-tag{ font-size:11.5px; font-weight:700; letter-spacing:.11em;
      text-transform:uppercase; color:var(--tone-ac); }
    .mstep-title{ font-size:clamp(15px,1.9vw,17.5px); font-weight:700;
      color:var(--ink); line-height:1.35; }
    .mstep-plus{ color:var(--tone-ac2); font-weight:800; }
    .mstep-free{ display:inline-block; font-size:10px; font-weight:800; letter-spacing:.07em;
      color:#fff; background:var(--gold-d); padding:1px 6px; border-radius:5px;
      margin-left:5px; vertical-align:middle; }

    .mstep-chev{ flex:none; width:22px; height:22px; color:var(--muted);
      transition:transform .5s cubic-bezier(.22,1.02,.36,1), color .5s var(--ease); }
    .mstep-chev svg{ width:100%; height:100%; }

    /* Panel — grid-rows 0fr -> 1fr auto-height animation (buttery, no JS measuring).
       Resting state OPEN; .is-enhanced opts into the collapse + reveal-on-hover. */
    .mstep-panel{ display:grid; grid-template-rows:1fr; }
    .method-steps.is-enhanced .mstep-panel{ grid-template-rows:0fr;
      transition:grid-template-rows .5s cubic-bezier(.22,.9,.3,1); }
    .mstep-panel-in{ overflow:hidden; min-height:0; }
    .mstep-desc{ padding:0 22px 17px 20px; color:var(--body);
      font-size:clamp(14px,1.6vw,15.5px); line-height:1.72;
      opacity:0; translate:0 6px;
      transition:opacity .4s var(--ease) .06s, translate .45s var(--ease) .06s; }
    .mstep-desc strong{ color:var(--tone-ac); font-weight:700; }

    /* The satisfying bit — hover / keyboard-focus / sticky-tap expands. */
    .method-steps.is-enhanced .mstep:hover,
    .method-steps.is-enhanced .mstep:focus-within,
    .method-steps.is-enhanced .mstep.is-open{
      transform:translateY(-3px); border-color:var(--tone-ac2);
      box-shadow:0 18px 38px rgba(2,61,56,.14); }
    .method-steps.is-enhanced .mstep:hover .mstep-panel,
    .method-steps.is-enhanced .mstep:focus-within .mstep-panel,
    .method-steps.is-enhanced .mstep.is-open .mstep-panel{ grid-template-rows:1fr; }
    .method-steps.is-enhanced .mstep:hover .mstep-desc,
    .method-steps.is-enhanced .mstep:focus-within .mstep-desc,
    .method-steps.is-enhanced .mstep.is-open .mstep-desc{ opacity:1; translate:none; }
    .mstep:hover .mstep-num,
    .mstep:focus-within .mstep-num,
    .mstep.is-open .mstep-num{ color:#fff;
      background:linear-gradient(140deg,var(--tone-ac2),var(--tone-ac));
      box-shadow:0 0 0 1px var(--tone-ac), 0 8px 18px rgba(2,61,56,.26);
      transform:translateY(-50%) scale(1.08); }
    .mstep:hover .mstep-icon,
    .mstep:focus-within .mstep-icon,
    .mstep.is-open .mstep-icon{ transform:scale(1.12); }
    .mstep:hover .mstep-chev,
    .mstep:focus-within .mstep-chev,
    .mstep.is-open .mstep-chev{ transform:rotate(180deg); color:var(--tone-ac2); }

    .method-cta{ text-align:center; margin-top:clamp(28px,4vw,44px); }

    @media (max-width:640px){
      .method-steps::before{ left:34px; }
      .mstep{ margin-left:46px; }
      .mstep-head{ gap:11px; padding:14px 15px; }
      .mstep-icon{ display:none; }
      .mstep-num{ left:-32px; width:40px; height:40px; font-size:14px; }
      .mstep-desc{ padding:0 16px 15px 16px; }
    }
    @media (prefers-reduced-motion: reduce){
      .mstep, .mstep-num, .mstep-icon, .mstep-chev, .mstep-desc,
      .method-steps.is-enhanced .mstep-panel{ transition:none; }
      .mstep-desc{ opacity:1; translate:none; }
    }
