/* ==========================================================
   DESIGN TOKENS — change the palette/type here, it cascades
   everywhere. This is the one place to edit per-client brand.
   ========================================================== */
:root{
  /* Palette */
  --ink:        #424143;   /* dojo charcoal, dark section bg / body text */
  --ink-soft:   #555456;   /* dark section secondary surfaces */
  --paper:      #F7F5F1;   /* warm off-white, light section bg */
  --paper-dim:  #EFEBE3;   /* light section secondary surfaces */
  --vermilion:  #C6281C;   /* primary accent — torii red */
  --vermilion-deep:#8F1710;/* hover / pressed */
  --stone:      #6E6B64;   /* muted body text on light */
  --mist:       #D8D5CC;   /* hairlines / borders on light */
  --gold:       #B08D57;   /* rare honor accent */
  --on-dark:    #F2EFE8;   /* body text on dark sections */
  --on-dark-dim:#B9B6AE;

  /* Type */
  --font-display: 'Shippori Mincho', serif;
  --font-body: 'Zen Kaku Gothic New', sans-serif;

  /* Rhythm */
  --section-pad: clamp(40px, 6vw, 88px);
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;
  --ease: cubic-bezier(.4,0,.2,1);
}

/* ==========================================================
   RESET / BASE
   ========================================================== */
*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--paper);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
h1,h2,h3,h4{
  font-family:var(--font-display);
  font-weight:600;
  line-height:1.15;
  margin:0 0 .5em;
  letter-spacing:.01em;
  overflow-wrap:break-word;
}
h1{font-size:clamp(2.6rem,6vw,4.4rem);font-weight:800;}
h2{font-size:clamp(1.9rem,4vw,2.9rem);}
h3{font-size:clamp(1.2rem,2.4vw,1.5rem);font-weight:600;}
p{margin:0 0 1em;}
ul,ol{margin:0 0 1em;padding-left:1.2em;}
button{font-family:inherit;}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *{animation-duration:.001ms !important;animation-iteration-count:1 !important;transition-duration:.001ms !important;}
}

:focus-visible{outline:3px solid var(--vermilion);outline-offset:2px;}

.eyebrow{
  font-family:var(--font-body);
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:.78rem;
  color:var(--vermilion);
  margin:0 0 .6em;
}
.eyebrow-light{color:#E7A79E;}
.center{text-align:center;}
.section-lede{max-width:640px;margin:0 auto 3rem;color:var(--stone);}

.body-copy{color:var(--stone);max-width:52ch;}
.section-dark .body-copy, .section-dark p{color:var(--on-dark-dim);}
.section-dark, .section-dark h2, .section-dark h3{color:var(--on-dark);}

/* ==========================================================
   LAYOUT HELPERS
   ========================================================== */
.section{padding:var(--section-pad) var(--gutter);position:relative;overflow:hidden;}
.section-dark{background:var(--ink);}
.section-inner{max-width:1180px;margin:0 auto;position:relative;z-index:2;}
.two-col{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:clamp(32px,6vw,96px);
  align-items:center;
}
@media (max-width:860px){
  .two-col{grid-template-columns:1fr;}
  /* Same text-then-image consistency fix as the testimonials: these two
     sections have the photo first in the HTML (for the desktop layout),
     which made it appear before the text on mobile too. */
  .vision-emblem{order:2;}
  .benefits .photo-frame{order:2;}
}
/* Grid items default to min-width:auto, which sizes them to fit their
   widest unbreakable content (e.g. a single long word in a heading) —
   this can silently force a whole column wider than the viewport on
   mobile even though the visible text would otherwise wrap fine. This
   overrides that for every grid-based layout on the site. */
.two-col > *, .hero-inner > *, .cta-inner > *, .testimonial > *,
.testimonial-left > *, .footer-inner > *{min-width:0;}

.btn{
  display:inline-block;
  padding:.85em 1.9em;
  border-radius:999px;
  font-weight:700;
  font-size:.92rem;
  letter-spacing:.02em;
  border:1.5px solid transparent;
  transition:transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  cursor:pointer;
}
.btn-primary{background:var(--vermilion);color:#fff;}
.btn-primary:hover{background:var(--vermilion-deep);transform:translateY(-2px);}
.btn-ghost{border-color:var(--ink);color:var(--ink);}
.btn-ghost:hover{background:var(--ink);color:var(--paper);transform:translateY(-2px);}
.btn-outline-light{border-color:var(--on-dark-dim);color:var(--on-dark);}
.btn-outline-light:hover{background:var(--on-dark);color:var(--ink);transform:translateY(-2px);}
.btn-block{width:100%;text-align:center;border:none;}

.link-arrow{color:var(--vermilion);font-weight:700;font-size:.9rem;text-decoration:underline;}
.link-arrow:hover{color:var(--vermilion-deep);}

/* Temporary/placeholder photos — swap the src for real client photos later.
   Styled as real images now (object-fit:cover fills the frame). */
.photo-placeholder{
  width:100%;height:100%;min-height:220px;
  display:block;
  object-fit:cover;
}
.photo-frame{aspect-ratio:4/5;overflow:hidden;border-radius:var(--radius);width:100%;position:relative;}
.histoire-shape{
  position:absolute;top:50%;left:50%;
  width:135%;height:auto;z-index:0;
  transform:translate(-50%,-50%) translateY(70px);
  opacity:0;
  transition:opacity 1.3s var(--ease) .15s, transform 1.3s var(--ease) .15s;
}
.histoire-shape.in-view{opacity:1;transform:translate(-50%,-50%) translateY(0);}
.histoire-photo-stack .photo-placeholder{position:relative;z-index:1;}
.photo-placeholder.round{border-radius:50%;aspect-ratio:1/1;min-height:0;object-fit:cover;}

/* ==========================================================
   ENSŌ — signature motif. A hand-drawn circle that "draws"
   itself on load / on scroll via stroke-dashoffset.
   ========================================================== */
.enso{
  position:absolute;
  stroke:var(--vermilion);
  stroke-width:2.5;
  fill:none;
  stroke-linecap:round;
  pointer-events:none;
}
.enso circle{
  stroke-dasharray:280;
  stroke-dashoffset:280;
  transform-origin:50% 50%;
}
.enso.in-view circle{
  animation:draw-enso 1.8s var(--ease) forwards;
}
@keyframes draw-enso{
  to{stroke-dashoffset:14;}
}
.enso-brand circle{stroke-dashoffset:14 !important;animation:none !important;}
.enso-brand{width:34px;height:34px;position:static;stroke-width:6;}
/* .enso-cta removed: the CTA banner now shows a real photo instead of the
   decorative SVG ring — see .enso-cta-photo further down. */

/* Kanji watermark — one meaningful glyph per section, not decoration.
   Slides in from whichever side it's positioned on, delayed slightly
   so it appears just after the section's main content, not with it. */
.kanji-watermark{
  position:absolute;
  font-family:var(--font-display);
  font-weight:600;
  font-size:clamp(220px,32vw,460px);
  line-height:1;
  color:var(--ink);
  top:50%;left:-2%;
  z-index:0;
  pointer-events:none;
  user-select:none;
  opacity:0;
  transform:translateY(-50%) translateX(-80px);
  transition:opacity 1.1s var(--ease) .3s, transform 1.1s var(--ease) .3s;
}
.kanji-watermark.in-view{opacity:.045;transform:translateY(-50%) translateX(0);}
.kanji-watermark-right{left:auto;right:-2%;transform:translateY(-50%) translateX(80px);}
.kanji-watermark-right.in-view{transform:translateY(-50%) translateX(0);}
.section-dark .kanji-watermark.in-view{opacity:.05;}

/* ==========================================================
   HEADER / NAV
   ========================================================== */
.site-header{
  position:sticky;top:0;z-index:50;
  background:rgba(247,245,241,.9);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--mist);
}
.nav-inner{
  max-width:1280px;margin:0 auto;
  display:flex;align-items:center;justify-content:space-between;
  padding:14px var(--gutter);
}
.brand{display:flex;align-items:center;gap:12px;}
.brand-mark{color:var(--vermilion);display:flex;}
.brand-text{font-family:var(--font-display);font-weight:800;font-size:1.05rem;line-height:1.15;letter-spacing:.02em;}
.brand-text em{font-style:normal;color:var(--vermilion);display:block;font-size:.85em;}

.main-nav{display:flex;align-items:center;gap:28px;}
.main-nav a{
  font-size:.86rem;font-weight:700;letter-spacing:.03em;text-transform:uppercase;
  position:relative;padding:6px 0;
}
.main-nav a:not(.nav-cta)::after{
  content:"";position:absolute;left:0;bottom:0;width:0;height:2px;background:var(--vermilion);
  transition:width .25s var(--ease);
}
.main-nav a:not(.nav-cta):hover::after{width:100%;}
.nav-cta{
  background:var(--ink);color:var(--paper);padding:.6em 1.4em;border-radius:999px;
  transition:background .25s var(--ease), transform .25s var(--ease);
}
.nav-cta:hover{background:var(--vermilion);transform:translateY(-2px);}

.nav-toggle{display:none;flex-direction:column;gap:5px;background:none;border:none;padding:6px;}
.nav-toggle span{width:24px;height:2px;background:var(--ink);transition:transform .25s var(--ease), opacity .25s var(--ease);}

@media (max-width:860px){
  .nav-toggle{display:flex;}
  .main-nav{
    position:absolute;top:100%;left:0;right:0;
    background:var(--paper);border-bottom:1px solid var(--mist);
    flex-direction:column;align-items:flex-start;gap:0;
    max-height:0;overflow:hidden;transition:max-height .35s var(--ease);
  }
  .main-nav.open{max-height:420px;}
  .main-nav a{width:100%;padding:14px var(--gutter);border-top:1px solid var(--mist);}
  .nav-cta{border-radius:0;text-align:center;}
  .main-nav.open ~ .nav-toggle span:nth-child(1),
  .nav-toggle.open span:nth-child(1){transform:translateY(7px) rotate(45deg);}
  .nav-toggle.open span:nth-child(2){opacity:0;}
  .nav-toggle.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}
}

/* ==========================================================
   HERO
   ========================================================== */
.hero{padding-top:clamp(56px,8vw,96px);padding-left:var(--gutter);padding-right:var(--gutter);overflow:hidden;}
.hero-inner{
  max-width:1180px;margin:0 auto;
  display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(32px,6vw,80px);
  align-items:center;position:relative;z-index:2;
}
@media (max-width:920px){.hero-inner{grid-template-columns:1fr;}}
.hero h1{margin-bottom:.3em;}
.lede{font-size:1.15rem;color:var(--stone);max-width:52ch;}
.hero-actions{display:flex;gap:16px;flex-wrap:wrap;margin-top:1.6rem;}
@media (max-width:480px){
  .hero-actions{flex-wrap:nowrap;gap:10px;}
  .hero-actions .btn{
    flex:1 1 0;min-width:0;
    padding:.7em .6em;font-size:.72rem;
    white-space:normal;text-align:center;line-height:1.25;
  }
}
.hero-media{position:relative;width:100%;}
.hero-photo{position:relative;z-index:1;width:100%;}

/* ==========================================================
   VISION SECTION
   ========================================================== */
.vision-emblem{display:flex;justify-content:center;}
.vision-emblem .photo-frame{width:100%;max-width:420px;}

/* ==========================================================
   GALLERY
   ========================================================== */
.gallery-section{padding-top:var(--section-pad);padding-bottom:clamp(24px,3vw,48px);}
.gallery-heading{margin-bottom:clamp(28px,5vw,48px);}
.gallery{position:relative;max-width:1600px;margin:0 auto;padding:0;}
.gallery-track{
  display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;
  padding-bottom:0;scrollbar-width:none;
}
.gallery-track::-webkit-scrollbar{display:none;}
.gallery-slide{
  flex:0 0 calc((100% - 32px) / 3);aspect-ratio:4/3;scroll-snap-align:start;
  border-radius:var(--radius);overflow:hidden;
  min-width:280px;
}
.gallery-arrow{
  position:absolute;top:50%;transform:translateY(-50%);z-index:3;
  width:52px;height:52px;border-radius:50%;border:none;
  background:rgba(66,65,67,.55);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);
  color:#fff;cursor:pointer;font-size:1.1rem;
  box-shadow:0 8px 24px -8px rgba(0,0,0,.45);
  transition:background .25s var(--ease), transform .25s var(--ease);
}
.gallery-arrow:hover{background:var(--vermilion);transform:translateY(-50%) scale(1.08);}
.gallery-prev{left:20px;}
.gallery-next{right:20px;}
@media (max-width:700px){.gallery-arrow{display:none;}}
.gallery-dots{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:28px;}
.gallery-dots button{
  width:8px;height:8px;border-radius:999px;background:var(--mist);border:none;padding:0;cursor:pointer;
  transition:background .25s var(--ease), width .25s var(--ease);
}
.gallery-dots button.active{background:var(--vermilion);width:28px;}

/* ==========================================================
   PHILOSOPHY + CONTACT CARD
   ========================================================== */
/* Sits right after the gallery, same light background with no color
   break between them — full section-pad on both sides stacked back to
   back read as one big empty gap, so tighten the top here specifically. */
.philosophy{padding-top:clamp(16px,2vw,32px);}
.virtues-title{margin-top:1.4em;}
.virtues-list{color:var(--stone);}
.virtues-list li{margin-bottom:.35em;}
.contact-card{
  background:#fff;border:1px solid var(--mist);border-radius:var(--radius);
  padding:clamp(24px,4vw,40px);
}
.contact-card h3{color:var(--vermilion);font-size:1.05rem;margin-bottom:.3em;}
.contact-card p{color:var(--stone);margin-bottom:1.4em;}
.contact-card p:last-child{margin-bottom:0;}

.schedule-list{max-width:640px;margin:0 auto;}
.schedule-row{
  display:flex;justify-content:space-between;align-items:center;
  gap:12px;flex-wrap:nowrap;
  padding:.85em 0;border-bottom:1px solid var(--mist);
}
.schedule-row:last-child{border-bottom:none;}
.schedule-row .discipline{font-weight:700;color:var(--ink);min-width:0;flex-shrink:1;}
.schedule-row .heure{color:var(--vermilion);font-weight:700;min-width:0;flex-shrink:0;white-space:nowrap;}
@media (max-width:400px){
  .schedule-row{font-size:.92rem;gap:8px;}
}

/* ==========================================================
   CTA BANNER
   ========================================================== */
.cta-banner{text-align:center;padding-top:clamp(32px,4vw,56px);padding-bottom:clamp(32px,4vw,56px);}
.cta-inner{
  display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center;
  position:relative;text-align:left;
}
@media (max-width:860px){.cta-inner{grid-template-columns:1fr;text-align:center;}}
.cta-photo-stack{position:relative;width:100%;max-width:520px;justify-self:center;}
.cta-shape{
  position:absolute;top:50%;left:50%;
  width:112%;height:auto;z-index:0;
  transform:translate(-50%,-50%) translateY(70px);
  opacity:0;
  transition:opacity 1.3s var(--ease) .15s, transform 1.3s var(--ease) .15s;
}
.cta-shape.in-view{opacity:1;transform:translate(-50%,-50%) translateY(0);}
.cta-people{position:relative;z-index:1;width:100%;height:auto;display:block;transition:transform .6s var(--ease);}
.cta-photo-stack:hover .cta-people{transform:scale(1.05);}
@media (max-width:860px){.cta-photo-stack{max-width:340px;}}

/* ==========================================================
   PROGRAMS
   ========================================================== */
.programs-grid{
  display:grid;grid-template-columns:repeat(4,1fr);gap:24px;margin-top:2.5rem;
}
@media (max-width:980px){.programs-grid{grid-template-columns:repeat(2,1fr);}}
@media (max-width:560px){.programs-grid{grid-template-columns:1fr;}}
/* Événements uses 3 columns instead of 4 (was previously set via an
   inline style, which silently blocked these same mobile breakpoints
   from ever applying — inline styles always win over stylesheet rules,
   media queries included). */
.programs-grid-3{grid-template-columns:repeat(3,1fr);}
@media (max-width:980px){.programs-grid-3{grid-template-columns:repeat(2,1fr);}}
@media (max-width:560px){.programs-grid-3{grid-template-columns:1fr;}}
.program-card{
  background:#fff;border-radius:var(--radius);overflow:hidden;
  box-shadow:0 10px 30px -18px rgba(0,0,0,.25);
  transition:transform .3s var(--ease), box-shadow .3s var(--ease);
}
.program-card:hover{transform:translateY(-6px);box-shadow:0 18px 40px -20px rgba(0,0,0,.3);}
.program-card .photo-placeholder{aspect-ratio:5/4;height:auto;min-height:0;border:none;}
.program-card h3{padding:1.1em 1.1em 0;font-size:1.15rem;}
.program-card h3:last-child{padding-bottom:1.3em;}
.program-card .link-arrow{display:inline-block;padding:.6em 1.1em 1.3em;}

/* ==========================================================
   BENEFITS
   ========================================================== */
.benefits-list{color:var(--stone);list-style:none;padding:0;}
.benefits-list li{
  position:relative;padding-left:1.8em;margin-bottom:.6em;
}
.benefits-list li::before{
  content:"✓";position:absolute;left:0;color:var(--vermilion);font-weight:700;
}
.badge-row{display:flex;gap:28px;flex-wrap:wrap;margin-top:2rem;}
.badge{display:flex;flex-direction:column;align-items:center;gap:.5em;font-weight:700;font-size:.9rem;color:var(--ink);}
.badge-icon{color:var(--vermilion);display:inline-flex;align-items:center;justify-content:center;}

/* ==========================================================
   INSTRUCTOR TESTIMONIALS
   ========================================================== */
.instructors .section-inner > h2{margin-bottom:3rem;}
.testimonial{
  display:grid;grid-template-columns:1fr auto;gap:40px;align-items:center;
  margin-bottom:3.5rem;
}
.testimonial-left{grid-template-columns:auto 1fr;}
.testimonial:last-child{margin-bottom:0}
@media (max-width:760px){
  .testimonial, .testimonial-left{grid-template-columns:1fr;text-align:center;}
  /* Force text-then-image on every card, regardless of which alternating
     left/right class it has on desktop (was inconsistent before). */
  .testimonial-copy{order:1;}
  .testimonial-photo{order:2;}
}
.testimonial-copy h3{margin-bottom:.6em;}

/* Photo + red backdrop circle + vertical kanji (used when a plain headshot
   needs the decorative treatment added). */
.testimonial-photo{display:flex;align-items:center;gap:14px;}
.testimonial-left .testimonial-photo{flex-direction:row-reverse;}
.testimonial-photo .photo-circle-wrap{position:relative;width:150px;height:150px;flex-shrink:0;}
.testimonial-photo .photo-circle-wrap::before{
  content:"";position:absolute;z-index:0;
  width:135%;height:135%;top:-14%;right:-18%;
  background:var(--vermilion);border-radius:50%;
}
.testimonial-left .photo-circle-wrap::before{right:auto;left:-18%;}
.testimonial-photo .photo-circle-wrap .photo-placeholder{position:relative;z-index:1;width:150px;height:150px;}
.testimonial-kanji{
  writing-mode:vertical-rl;white-space:nowrap;
  font-family:var(--font-display);font-weight:600;
  font-size:1.7rem;line-height:1.15;letter-spacing:.12em;
  color:var(--on-dark);
}

/* Photos that already have their own red circle + kanji baked in (like the
   generated instructor portraits) — show the full square, no extra frame. */
.testimonial-photo-full{max-width:400px;margin:0 auto;}
.testimonial-photo-full .photo-placeholder{
  width:100%;aspect-ratio:1/1;border-radius:0;object-fit:contain;
}
@media (max-width:760px){
  .testimonial-photo{justify-content:center;}
  .testimonial-left .testimonial-photo{flex-direction:row;}
}

/* ==========================================================
   CONTACT FORM
   ========================================================== */
.contact-form{
  background:#fff;border:1px solid var(--mist);border-radius:var(--radius);
  padding:clamp(24px,4vw,40px);
}
.form-row{margin-bottom:1.2rem;}
.form-row-split{display:grid;grid-template-columns:1fr 1fr;gap:16px;}
@media (max-width:520px){.form-row-split{grid-template-columns:1fr;}}
.contact-form label{display:block;font-weight:700;font-size:.85rem;margin-bottom:.4em;}
.contact-form input, .contact-form select, .contact-form textarea{
  width:100%;padding:.75em .9em;border:1px solid var(--mist);border-radius:var(--radius);
  font-family:inherit;font-size:.95rem;background:var(--paper);
  transition:border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus{
  border-color:var(--vermilion);box-shadow:0 0 0 3px rgba(198,40,28,.12);outline:none;
}
.hp-field{position:absolute;left:-9999px;width:1px;height:1px;opacity:0;}
.form-status{margin-top:1em;font-size:.9rem;min-height:1.2em;}
.form-status.ok{color:#2E7D32;}
.form-status.err{color:var(--vermilion-deep);}

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer{background:var(--ink);color:var(--on-dark-dim);padding:var(--section-pad) var(--gutter) 2rem;}
.footer-inner{
  max-width:1180px;margin:0 auto;
  display:grid;grid-template-columns:1fr 1.4fr 1fr;gap:40px;
}
@media (max-width:760px){.footer-inner{grid-template-columns:1fr;text-align:left;}}
.footer-col h3{color:var(--on-dark);font-size:1rem;margin-bottom:.8em;}
.footer-col h4{color:var(--on-dark);font-size:.85rem;margin:1.4em 0 .6em;}
.footer-col a{display:block;padding:.25em 0;}
.footer-col a:hover{color:var(--on-dark);}
.social-row{display:flex;gap:12px;}
.social-row a{
  width:38px;height:38px;border-radius:50%;border:1px solid #615f61;
  display:flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:700;
  transition:background .2s var(--ease), border-color .2s var(--ease);
}
.social-row a:hover{background:var(--vermilion);border-color:var(--vermilion);color:#fff;}
.footer-copy{text-align:center;margin-top:3rem;padding-top:1.5rem;border-top:1px solid #58575a;font-size:.82rem;}

/* ==========================================================
   SCROLL REVEAL — block-level (unchanged) + staggered children
   ========================================================== */
.reveal{opacity:0;transform:translateY(28px);transition:opacity .8s var(--ease), transform .8s var(--ease);}
.reveal.in-view{opacity:1;transform:translateY(0);}

/* Staggered reveal: put .stagger-item on each direct child of a
   .reveal-stagger container. Children fade/rise in one after another
   instead of the whole block appearing at once. */
.reveal-stagger .stagger-item{
  opacity:0;transform:translateY(24px);
  transition:opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal-stagger.in-view .stagger-item{opacity:1;transform:translateY(0);}
.reveal-stagger.in-view .stagger-item:nth-child(1){transition-delay:.05s;}
.reveal-stagger.in-view .stagger-item:nth-child(2){transition-delay:.15s;}
.reveal-stagger.in-view .stagger-item:nth-child(3){transition-delay:.25s;}
.reveal-stagger.in-view .stagger-item:nth-child(4){transition-delay:.35s;}
.reveal-stagger.in-view .stagger-item:nth-child(5){transition-delay:.45s;}
.reveal-stagger.in-view .stagger-item:nth-child(6){transition-delay:.55s;}
.reveal-stagger.in-view .stagger-item:nth-child(7){transition-delay:.65s;}
.reveal-stagger.in-view .stagger-item:nth-child(8){transition-delay:.75s;}
.reveal-stagger.in-view .stagger-item:nth-child(9){transition-delay:.85s;}

/* Testimonials get directional entrances instead of a flat rise */
.testimonial.stagger-item{transform:translateY(0) translateX(-24px);}
.testimonial-left.stagger-item{transform:translateY(0) translateX(24px);}
.reveal-stagger.in-view .testimonial.stagger-item,
.reveal-stagger.in-view .testimonial-left.stagger-item{transform:translateX(0);}

/* Hero entrance — plays once on load since it's above the fold;
   not scroll-triggered like everything else below it. */
@keyframes hero-rise{
  from{opacity:0;transform:translateY(22px);}
  to{opacity:1;transform:translateY(0);}
}
.hero-copy > *{opacity:0;animation:hero-rise .7s var(--ease) forwards;}
.hero-copy > *:nth-child(1){animation-delay:.05s;}
.hero-copy > *:nth-child(2){animation-delay:.15s;}
.hero-copy > *:nth-child(3){animation-delay:.28s;}
.hero-copy > *:nth-child(4){animation-delay:.4s;}
.hero-copy > *:nth-child(5){animation-delay:.52s;}
.hero-media{opacity:0;animation:hero-rise .8s var(--ease) forwards;animation-delay:.35s;}

/* Image hover zoom — any framed photo gently scales on hover */
.photo-frame,.program-card .photo-placeholder,.testimonial-photo,.gallery-slide{overflow:hidden;}
.photo-frame img,.program-card img.photo-placeholder,.testimonial-photo img,.gallery-slide img{
  transition:transform .6s var(--ease);
}
.photo-frame:hover img,.program-card:hover img.photo-placeholder,
.testimonial-photo:hover img,.gallery-slide:hover img{transform:scale(1.07);}

@media (prefers-reduced-motion: reduce){
  .hero-copy > *,.hero-media{animation:none !important;opacity:1 !important;transform:none !important;}
  .reveal-stagger .stagger-item{transition:none !important;}
}
