/* ERA Canada · School Presentations — independent concept (Sonnet 5.5, max effort).
   Rooted in [data-section-design="school-presentation"]; the shared v2 sheet stops at that attribute, so this file carries
   its own reset, tokens and type. The approved header, footer and review controls are untouched.
   Geometry: the family's shallow "/" cut (slope .05, steeper on small screens) with paired blue + green stripes riding it.
   Flow: full-screen classroom photograph with the headline set in its empty ceiling space -> three big questions -> a numbered
   topic index on a pale plane -> presenter photograph beside the real form -> deep-blue community band -> FAQ.
   No icons, no cards, no artwork: only photography, type and the cut. */

/* ---------- Outside <main>: skip link and motion preference ---------- */
.school-skip{position:fixed;top:-80px;left:16px;z-index:300;padding:12px 18px;background:#0d1a22;color:#fff;font:650 15px/1.3 Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;text-decoration:none}
.school-skip:focus,.school-skip:focus-visible{top:12px;outline:3px solid #7cc242;outline-offset:2px}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

[data-section-design="school-presentation"]{
  --ink:#0d1a22;--text:#33434e;--line:#d3dde4;--paper:#f2f6f9;--tint:#e8f2f9;
  --blue:#0d5a92;--blue-deep:#0a3f69;--blue-bright:#198dd1;--green:#7cc242;--green-hover:#69ad2f;
  --scrim:5,27,46;                                               /* deep navy used for every photo wash (never black) */
  --gutter:clamp(20px,4.2vw,64px);
  --shell:1440px;
  --edge:max(var(--gutter),calc((100vw - var(--shell)) / 2));    /* viewport edge to shell edge */
  --rise:5vw;                                                    /* every diagonal gains this much across the full width: slope .05 */
  --tilt:177.14deg;                                              /* gradient angle that matches that slope */
  --s:clamp(6px,.8vw,12px);                                      /* stripe thickness */
  --g:clamp(3px,.42vw,6px);                                      /* gap between the paired stripes */
  --st:calc(var(--s) * 2 + var(--g));
  --x:clamp(60px,7.4vw,116px);                                   /* section padding */
  --col:clamp(28px,5vw,80px);
  --slash:clamp(26px,3.4vw,58px);                                /* sideways run of the slanted photo edge */
  --tab:linear-gradient(120deg,var(--green) 0 46%,transparent 46% 54%,var(--blue-bright) 54%);
  position:relative;display:block;overflow-x:clip;background:#fff;color:var(--text);
  font:400 17px/1.7 Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;

  /* ---------- Reset + type ---------- */
  & *,& *::before,& *::after{box-sizing:border-box}
  & h1,& h2,& h3,& p,& ul,& figure{margin:0}
  & ul{padding:0;list-style:none}
  & img{display:block;max-width:100%;height:auto}
  & a{color:inherit}
  & :focus-visible{outline:3px solid var(--blue);outline-offset:3px}
  & [id]{scroll-margin-top:calc(var(--header-h,76px) + 8px)}
  & h1,& h2,& h3{color:var(--ink);font-weight:800;letter-spacing:-.04em;line-height:1.06}
  & h2{font-size:clamp(32px,4.1vw,60px);line-height:1;letter-spacing:-.05em}
  & strong{font-weight:760}
  & .sp-wrap{width:min(var(--shell),calc(100% - var(--gutter) * 2));margin-inline:auto}

  /* The paired-stripe tab: marks every H2, the topics lead-in and every small label */
  & .sp-eyebrow,& .sp-kicker{display:flex;align-items:center;gap:12px;font-weight:760;text-transform:uppercase}
  & .sp-eyebrow::before,& .sp-kicker::before,& h2::before,& .sp-topics-label::before{content:"";display:block;flex:none;width:34px;height:14px;background:var(--tab);clip-path:polygon(8px 0,100% 0,calc(100% - 8px) 100%,0 100%)}
  & h2::before,& .sp-topics-label::before{margin-bottom:clamp(14px,1.6vw,22px)}

  /* Buttons: green = action, outline = secondary */
  & .sp-btn,& .sp-actions a{display:inline-flex;align-items:center;justify-content:space-between;gap:16px;max-width:100%;min-height:54px;padding:12px 22px;border:2px solid currentColor;border-radius:2px;background:transparent;color:var(--ink);font-size:15px;line-height:1.3;font-weight:720;letter-spacing:-.005em;text-decoration:none;transition:background-color .18s,border-color .18s,color .18s}
  & .sp-btn::after,& .sp-actions a::after{content:"→";content:"→" / "";flex:none;font-size:1.1em;font-weight:500;line-height:1;transition:transform .18s}
  & .sp-btn:hover::after,& .sp-actions a:hover::after{transform:translateX(3px)}
  & .sp-btn--go,& .sp-actions a:first-child{border-color:var(--green);background:var(--green);color:var(--ink)}
  & .sp-btn--go:hover,& .sp-actions a:first-child:hover{border-color:var(--green-hover);background:var(--green-hover)}
  & .sp-btn--line::after{content:"↓";content:"↓" / ""}
  & .sp-btn--line:hover::after{transform:translateY(3px)}

  /* ---------- Planes and ribbons: bands cut on the diagonal, paired stripes riding the upper cut ---------- */
  & .sp-plane{position:relative;isolation:isolate}
  & .sp-plane::before{content:"";position:absolute;inset:0;z-index:-1;background:var(--plane,var(--paper));clip-path:polygon(0 var(--rise),100% 0,100% 100%,0 100%)}
  & .sp-plane--both::before{clip-path:polygon(0 var(--rise),100% 0,100% calc(100% - var(--rise)),0 100%)}
  & .sp-ribbon::after{content:"";position:absolute;left:0;right:0;top:calc(var(--st) * -1);z-index:-1;height:calc(var(--rise) + var(--st));pointer-events:none;
    background:linear-gradient(var(--tilt),
      transparent var(--rise),
      var(--blue-bright) var(--rise) calc(var(--rise) + var(--s)),
      transparent calc(var(--rise) + var(--s)) calc(var(--rise) + var(--s) + var(--g)),
      var(--green) calc(var(--rise) + var(--s) + var(--g)) calc(var(--rise) + var(--st)),
      transparent calc(var(--rise) + var(--st)))}

  /* ---------- 1 · Hero: full-screen classroom photograph; the headline sits in the empty ceiling space ---------- */
  & .sp-hero{position:relative;isolation:isolate;display:flex;flex-direction:column;min-height:max(620px,calc(100vh - var(--header-h,76px)));min-height:max(620px,calc(100svh - var(--header-h,76px)));padding:clamp(40px,min(6vw,9vh),104px) 0 calc(var(--rise) + var(--st) + clamp(24px,3vw,48px));background:#0b2236;color:#fff;overflow:hidden}
  & .sp-hero-media{position:absolute;inset:0;z-index:-2}
  & .sp-hero-media img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;object-position:60% 36%}
  /* navy wash strongest top-left (over the ceiling), gone before the presenter, banners and students */
  & .sp-hero::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
    background:linear-gradient(180deg,rgba(var(--scrim),.93) 0,rgba(var(--scrim),.86) 30%,rgba(var(--scrim),.62) 44%,rgba(var(--scrim),.2) 60%,rgba(var(--scrim),0) 74%);
    -webkit-mask-image:linear-gradient(90deg,#000 0,#000 50%,rgba(0,0,0,.3) 100%);
    mask-image:linear-gradient(90deg,#000 0,#000 50%,rgba(0,0,0,.3) 100%)}
  /* shallow diagonal seam into the white page: blue stripe, green stripe, then the white floor */
  & .sp-hero::after{content:"";position:absolute;left:0;right:0;bottom:0;z-index:3;height:calc(var(--rise) + var(--st));pointer-events:none;
    background:linear-gradient(var(--tilt),
      transparent var(--rise),
      var(--blue-bright) var(--rise) calc(var(--rise) + var(--s)),
      #fff calc(var(--rise) + var(--s)) calc(var(--rise) + var(--s) + var(--g)),
      var(--green) calc(var(--rise) + var(--s) + var(--g)) calc(var(--rise) + var(--st)),
      #fff calc(var(--rise) + var(--st)))}
  & .sp-hero-inner{position:relative;z-index:2;flex:1;display:flex;flex-direction:column}
  & .sp-hero-copy{display:flex;flex-direction:column;align-items:flex-start}
  /* the original subtitle reads first as the eyebrow; the DOM keeps the original order (H1, then subtitle) */
  & .sp-eyebrow{order:-1;margin-bottom:clamp(14px,1.6vw,24px);color:#fff;font-size:clamp(12.5px,.95vw,15px);line-height:1.35;letter-spacing:.16em;text-shadow:0 1px 14px rgba(3,16,28,.5)}
  & .sp-hero h1{color:#fff;font-size:clamp(38px,min(5vw,8vh),84px);font-size:clamp(38px,min(5vw,8svh),84px);line-height:1.02;letter-spacing:-.045em;text-shadow:0 2px 30px rgba(3,16,28,.42);text-wrap:balance}
  & .sp-h1-line{display:block}
  & .sp-h1-key{color:var(--green);white-space:nowrap}
  & .sp-hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:clamp(22px,2.6vw,40px)}
  & .sp-hero .sp-btn--line{border-color:rgba(255,255,255,.82);background:rgba(var(--scrim),.28);color:#fff}
  & .sp-hero .sp-btn--line:hover{border-color:#fff;background:#fff;color:var(--ink)}
  & .sp-hero :focus-visible{outline-color:#fff}

  /* ---------- 2 · Intro: the H2, then the three questions side by side, then the answer in blue ---------- */
  & .sp-intro{padding:clamp(64px,8vw,136px) 0 clamp(72px,8vw,128px)}
  & .sp-intro h2{max-width:14em;font-size:clamp(34px,4.5vw,72px);line-height:.99;letter-spacing:-.052em;text-wrap:balance}
  & .sp-qs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:var(--col);margin-top:clamp(36px,4.6vw,72px)}
  & .sp-q{display:block;padding-top:clamp(16px,1.8vw,24px);border-top:2px solid var(--ink);font-size:clamp(19px,1.7vw,25px);line-height:1.42;font-weight:600;letter-spacing:-.018em;color:var(--ink)}
  & .sp-intro-close{max-width:21em;margin-top:clamp(40px,5vw,80px);font-size:clamp(26px,3.3vw,52px);line-height:1.04;font-weight:800;letter-spacing:-.045em;color:var(--blue);text-wrap:balance}

  /* ---------- 3 · Topics: the original lead-in line, then the 11 topics as a numbered index (numbers are CSS counters) ---------- */
  & .sp-topics{--plane:var(--tint);padding:calc(var(--rise) + var(--x)) 0}
  & .sp-topics-label{max-width:17em;font-size:clamp(28px,3.7vw,58px);line-height:1.02;letter-spacing:-.047em;color:var(--ink);text-wrap:balance}
  & .sp-topics-label strong{font-weight:inherit}
  & .sp-agenda{counter-reset:topic;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:var(--col);margin-top:clamp(32px,4.2vw,64px);border-top:2px solid var(--ink)}
  & .sp-agenda li{--num:clamp(58px,5.6vw,88px);counter-increment:topic;display:grid;grid-template-columns:var(--num) minmax(0,1fr);align-items:baseline;padding:clamp(18px,2vw,28px) 0;border-bottom:1px solid #b6cddc}
  & .sp-agenda li::before{content:counter(topic,decimal-leading-zero);content:counter(topic,decimal-leading-zero) / "";font-size:clamp(28px,3.1vw,46px);line-height:1;font-weight:800;letter-spacing:-.05em;font-variant-numeric:tabular-nums;color:var(--blue)}
  & .sp-topic-text{font-size:clamp(19px,1.75vw,26px);line-height:1.24;font-weight:650;letter-spacing:-.022em;color:var(--ink)}
  & .sp-topic-text a{color:var(--blue);font-weight:750;text-decoration:underline;text-decoration-color:var(--green);text-decoration-thickness:3px;text-underline-offset:5px;transition:color .15s}
  & .sp-topic-text a:hover{color:var(--blue-deep)}
  & .sp-agenda li:last-child{grid-column:1 / -1}
  & .sp-agenda li:last-child .sp-topic-text{font-size:clamp(21px,2vw,30px)}

  /* ---------- 4 · Booking: final paragraph + the presenter photograph on the left, the original form on the right ---------- */
  & .sp-book{padding:var(--x) 0 calc(var(--x) + 16px)}
  & .sp-book-grid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);grid-template-rows:auto 1fr;grid-template-areas:"lead form" "photo form";column-gap:var(--col);align-items:start}
  & .sp-lead{grid-area:lead}
  & .sp-photo{grid-area:photo}
  & .sp-form-wrap{grid-area:form;min-width:0}
  & .sp-lead p{max-width:30em;font-size:clamp(18px,1.55vw,23px);line-height:1.62;font-weight:450;letter-spacing:-.012em;color:var(--ink)}
  & .sp-ask{font-weight:700;color:var(--blue)}
  /* the one slanted photograph: bleeds off the left edge, "/" edge with the paired stripes (24px spare covers a scrollbar) */
  & .sp-photo{position:relative;isolation:isolate;aspect-ratio:3 / 2;width:calc(100% + var(--edge) + 24px);margin:clamp(32px,3.6vw,56px) 0 0 calc((var(--edge) + 24px) * -1)}
  & .sp-photo img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;object-position:50% 65%;clip-path:polygon(0 0,100% 0,calc(100% - var(--slash)) 100%,0 100%)}
  & .sp-photo::before,& .sp-photo::after{content:"";position:absolute;top:0;bottom:0;z-index:-1;width:calc(var(--slash) + var(--s));pointer-events:none;clip-path:polygon(var(--slash) 0,calc(var(--slash) + var(--s)) 0,var(--s) 100%,0 100%)}
  & .sp-photo::before{left:calc(100% - var(--slash) - 1px);background:var(--green)}
  & .sp-photo::after{left:calc(100% - var(--slash) + var(--s) + var(--g));background:var(--blue-bright)}
  /* utility label + direct link sit outside the white form sheet */
  & .sp-form-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 24px;margin-bottom:clamp(14px,1.6vw,22px)}
  & .sp-kicker{color:var(--blue);font-size:13px;line-height:1.3;letter-spacing:.16em}
  & .sp-direct{display:inline-flex;align-items:center;gap:8px;min-height:44px;color:var(--blue);font-size:14px;line-height:1.3;font-weight:700;text-decoration:underline;text-decoration-color:var(--green);text-decoration-thickness:2px;text-underline-offset:5px}
  & .sp-direct::after{content:"↗";content:"↗" / "";font-weight:500;transition:transform .18s}
  & .sp-direct:hover{color:var(--blue-deep)}
  & .sp-direct:hover::after{transform:translate(2px,-2px)}
  & .sp-form-frame{position:relative;padding:clamp(10px,1.8vw,26px);background:#fff;border:1px solid #bdd2e1;box-shadow:0 46px 70px -46px rgba(13,26,34,.5)}
  & .sp-form-frame::before{content:"";position:absolute;left:-1px;top:calc(var(--s) * -1.4);width:min(44%,300px);height:calc(var(--s) * 1.4);background:linear-gradient(105deg,var(--green) 0 46%,transparent 46% 52%,var(--blue-bright) 52%);clip-path:polygon(0 0,100% 0,calc(100% - 12px) 100%,0 100%)}
  & .sp-form-frame iframe{display:block;width:100%;max-width:100%;border:0;background:#fff}

  /* ---------- 5 · Community band: the deep-blue plane, one big H2, copy, four action links in a row ---------- */
  & .sp-contact{--plane:linear-gradient(100deg,#0a3f69 0,#0c4d7f 58%,#0d5a92 100%);padding:calc(var(--rise) + var(--x)) 0 calc(var(--rise) + var(--x) * .8);color:#e4eef5}
  & .sp-contact :focus-visible{outline-color:#fff}
  & .sp-contact-grid{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);column-gap:var(--col);row-gap:28px;align-items:end}
  & .sp-contact h2{max-width:12em;color:#fff;font-size:clamp(32px,4.4vw,70px);line-height:1;text-wrap:balance}
  & .sp-contact-text p{max-width:32em;font-size:clamp(17px,1.35vw,20px);line-height:1.7;color:rgba(255,255,255,.92)}
  & .sp-contact-text a{color:#fff;font-weight:650;text-decoration:underline;text-decoration-color:var(--green);text-decoration-thickness:2px;text-underline-offset:4px;transition:color .15s}
  & .sp-contact-text a:hover{color:var(--green)}
  & .sp-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:clamp(32px,4vw,56px)}
  & .sp-actions a{border-color:rgba(255,255,255,.7);color:#fff}
  & .sp-actions a:first-child{border-color:var(--green);color:var(--ink)}
  & .sp-actions a:not(:first-child):hover{border-color:#fff;background:#fff;color:var(--ink)}

  /* ---------- 6 · FAQ: sticky heading left, native disclosure list right ---------- */
  & .sp-faq{padding:var(--x) 0 calc(var(--x) + 24px)}
  & .sp-faq-grid{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);column-gap:var(--col);row-gap:32px;align-items:start}
  & .sp-faq-head{position:sticky;top:calc(var(--header-h,76px) + 32px)}
  & .sp-faq h2{font-size:clamp(32px,3.9vw,58px);text-wrap:balance}
  & .sp-faq-list{min-width:0;border-top:2px solid var(--ink)}
  & .sp-faq details{border-bottom:1px solid var(--line)}
  & .sp-faq summary{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 0;list-style:none;cursor:pointer}
  & .sp-faq summary::-webkit-details-marker{display:none}
  & .sp-faq summary h3{min-width:0;font-size:clamp(17px,1.4vw,20px);line-height:1.34;font-weight:700;letter-spacing:-.02em;text-wrap:pretty;transition:color .15s}
  /* the helper's "+" glyph is hidden; a slanted plus / minus mark is drawn from gradients instead */
  & .sp-faq summary span{flex:none;display:block;width:38px;height:34px;font-size:0;line-height:0;color:var(--ink);
    background:linear-gradient(currentColor,currentColor) center / 16px 2px no-repeat,linear-gradient(currentColor,currentColor) center / 2px 16px no-repeat,var(--mark,var(--paper));
    clip-path:polygon(7px 0,100% 0,calc(100% - 7px) 100%,0 100%);transition:color .18s}
  & .sp-faq summary:hover h3{color:var(--blue)}
  & .sp-faq summary:hover span{--mark:var(--tint);color:var(--blue)}
  & .sp-faq details[open] summary span{--mark:var(--green);color:var(--ink);background:linear-gradient(currentColor,currentColor) center / 16px 2px no-repeat,var(--mark)}
  & .sp-faq details>div{max-width:46em;padding:0 clamp(0px,4vw,56px) 30px 0}
  & .sp-faq details>div p{font-size:clamp(16.5px,1.2vw,18px);line-height:1.74}
}

/* ---------- Tablet and below: the form stacks under the paragraph and photograph; cuts get steeper ---------- */
@media (max-width:1100px){[data-section-design="school-presentation"]{
  --rise:7vw;
  --tilt:175.99deg;
  & .sp-book-grid{grid-template-columns:minmax(0,1fr);grid-template-rows:none;grid-template-areas:"lead" "photo" "form"}
  & .sp-lead p{max-width:38em}
  /* the photograph becomes a full-bleed block with a straight paired stripe on top instead of the slanted edge */
  & .sp-photo{aspect-ratio:16 / 9;width:auto;margin:var(--st) calc(var(--gutter) * -1) clamp(36px,5vw,56px)}
  & .sp-photo img{clip-path:none}
  & .sp-photo::before,& .sp-photo::after{top:auto;bottom:auto;left:0;right:0;width:auto;height:var(--s);clip-path:none}
  & .sp-photo::before{top:calc(var(--s) * -1)}
  & .sp-photo::after{top:calc(var(--st) * -1)}
}}

/* ---------- 900 and below: hero headline top, buttons bottom, photograph clear between; splits collapse ---------- */
@media (max-width:900px){[data-section-design="school-presentation"]{
  --col:28px;
  & .sp-hero{min-height:max(640px,calc(100vh - var(--header-h,64px)));min-height:max(640px,calc(100svh - var(--header-h,64px)));padding:32px 0 calc(var(--rise) + var(--st) + clamp(24px,5vw,44px))}
  & .sp-hero-media img{object-position:60% 50%}
  & .sp-hero::before{-webkit-mask-image:none;mask-image:none;background:
    linear-gradient(180deg,rgba(var(--scrim),.93) 0,rgba(var(--scrim),.86) 24%,rgba(var(--scrim),.55) 38%,rgba(var(--scrim),0) 52%,rgba(var(--scrim),0) 64%,rgba(var(--scrim),.5) 80%,rgba(var(--scrim),.8) 100%)}
  & .sp-hero-inner{justify-content:space-between}
  & .sp-hero-copy{max-width:640px}
  & .sp-hero h1{font-size:clamp(36px,7.4vw,60px)}
  & .sp-hero-actions{margin-top:24px}
  & .sp-qs{grid-template-columns:minmax(0,1fr);row-gap:clamp(22px,3vw,30px)}
  & .sp-contact-grid,& .sp-faq-grid{grid-template-columns:minmax(0,1fr)}
  & .sp-faq-head{position:static}
  & .sp-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
}}

/* ---------- Phones: one-column topics, form uses the full width ---------- */
@media (max-width:760px){[data-section-design="school-presentation"]{
  & .sp-agenda{grid-template-columns:minmax(0,1fr)}
  & .sp-agenda li:last-child{grid-column:auto}
  & .sp-agenda li:last-child .sp-topic-text{font-size:clamp(19px,1.75vw,26px)}
  & .sp-form-frame{margin-inline:calc(var(--gutter) * -1);padding:8px;border-left:0;border-right:0}
  & .sp-form-frame::before{left:var(--gutter)}
}}

@media (max-width:600px){[data-section-design="school-presentation"]{
  --rise:10vw;
  --tilt:174.29deg;
  & .sp-h1-line{display:inline}
  & .sp-hero h1{font-size:clamp(34px,9vw,45px)}
  & .sp-eyebrow{letter-spacing:.14em}
  & .sp-hero-actions{flex-direction:column;align-items:stretch}
  & .sp-agenda li{--num:54px}
}}

@media (max-width:480px){[data-section-design="school-presentation"]{
  & .sp-actions{grid-template-columns:minmax(0,1fr)}
}}

@media (max-width:359px){[data-section-design="school-presentation"]{
  & .sp-h1-key{white-space:normal}
}}

/* ---------- Reduced motion: no transitions anywhere in the page body ---------- */
@media (prefers-reduced-motion:reduce){
  [data-section-design="school-presentation"] *,[data-section-design="school-presentation"] *::before,[data-section-design="school-presentation"] *::after{transition:none!important;animation:none!important}
}
