/* ============================================================
   BRAINSPARK — Design tokens (v2 aesthetic pass)
   ============================================================ */
:root{
  --ink:#1C2B3A;
  --ink-soft:#2E4256;
  --paper:#FBF8F3;
  --paper-dim:#F3EEE4;
  --ember:#E8823A;
  --ember-deep:#B5542A;
  --sage:#7C9885;
  --sage-deep:#5E7868;
  --charcoal:#2B2B28;
  --charcoal-soft:#5B5850;
  --line:rgba(28,43,58,0.12);
  --line-soft:rgba(28,43,58,0.07);
  --white:#ffffff;

  --f-display:'Fraunces', Georgia, serif;
  --f-body:'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --f-mono:'IBM Plex Mono', 'SF Mono', monospace;

  --shadow-sm: 0 2px 8px rgba(28,43,58,0.06);
  --shadow-md: 0 8px 28px rgba(28,43,58,0.10);
  --shadow-lg: 0 22px 60px rgba(28,43,58,0.16);
  --radius: 18px;
  --radius-sm: 10px;
  --maxw: 1220px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ overflow-x:clip; scroll-behavior:auto; }
html,body{ overflow-x:hidden; }
body{
  margin:0;
  font-family:var(--f-body);
  background:var(--paper);
  color:var(--charcoal);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  min-width:320px;
}
img{ max-width:100%; display:block; }
.hidden{ display:none !important; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; border:none; background:none; }
h1,h2,h3,h4{ font-family:var(--f-display); margin:0; color:var(--ink); }
p{ margin:0; }
ul{ margin:0; padding:0; list-style:none; }
input,textarea,select{ font-family:inherit; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; scroll-behavior:auto !important; }
}
:focus-visible{ outline:2.5px solid var(--ember); outline-offset:3px; border-radius:4px; }

.container{ max-width:var(--maxw); margin:0 auto; padding:0 28px; }
@media (max-width:640px){ .container{ padding:0 18px; } }
@media (max-width:360px){ .container{ padding:0 14px; } }

.eyebrow{
  display:inline-flex; align-items:center; gap:9px;
  font-family:var(--f-mono); font-size:12.5px; font-weight:500;
  letter-spacing:0.08em; text-transform:uppercase; color:var(--ember-deep);
}
.eyebrow::before{
  content:''; width:6px; height:6px; border-radius:50%; background:var(--ember); flex-shrink:0;
  animation:eyebrowPulse 2.2s ease-in-out infinite;
}
@keyframes eyebrowPulse{
  0%,100%{ box-shadow:0 0 0 4px rgba(232,130,58,0.16); }
  50%{ box-shadow:0 0 0 7px rgba(232,130,58,0.08); }
}
@media (prefers-reduced-motion: reduce){ .eyebrow::before{ animation:none; } }

/* ============================================================
   Buttons
   ============================================================ */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:14px 26px; border-radius:100px;
  font-family:var(--f-body); font-weight:600; font-size:15px;
  border:1.5px solid transparent;
  transition:transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease, color .22s ease;
  white-space:nowrap;
  position:relative; overflow:hidden;
}
.btn-primary{ background:var(--ink); color:var(--paper); }
.btn-primary:hover{ background:var(--ember-deep); transform:translateY(-2px); box-shadow:var(--shadow-md); }
.btn-ghost{ background:transparent; border-color:var(--line); color:var(--ink); }
.btn-ghost:hover{ border-color:var(--ink); transform:translateY(-2px); box-shadow:var(--shadow-sm); }
.btn-ember{ background:var(--ember); color:var(--white); }
.btn-ember:hover{ background:var(--ember-deep); transform:translateY(-2px); box-shadow:var(--shadow-md); }
.btn-sm{ padding:11px 20px; font-size:14px; }
.btn svg{ width:16px; height:16px; flex-shrink:0; transition:transform .22s ease; }
.btn:hover svg.arrow{ transform:translateX(3px); }
.btn-primary::after, .btn-ember::after{
  content:''; position:absolute; top:50%; left:50%; width:0; height:0; border-radius:50%;
  background:rgba(251,248,243,0.18); transform:translate(-50%,-50%);
  transition:width .5s ease, height .5s ease; pointer-events:none;
}
.btn-primary:active::after, .btn-ember:active::after{ width:220px; height:220px; }
.btn-block{ width:100%; }

/* ============================================================
   Header / Nav
   ============================================================ */
#site-header{
  position:fixed; top:0; left:0; right:0; z-index:900;
  background:rgba(251,248,243,0.88);
  backdrop-filter:blur(14px) saturate(140%);
  -webkit-backdrop-filter:blur(14px) saturate(140%);
  border-bottom:1px solid var(--line-soft);
  transition:box-shadow .3s ease;
}
#site-header.scrolled{ box-shadow:0 4px 20px rgba(28,43,58,0.07); }
.header-inner{ display:flex; align-items:center; justify-content:space-between; height:78px; gap:20px; }
.brand{ display:flex; align-items:center; gap:11px; flex-shrink:0; }
.brand img{ height:38px; width:auto; object-fit:contain; }
.brand-text{ font-family:var(--f-display); font-size:19px; font-weight:600; color:var(--ink); letter-spacing:-0.01em; }
.brand-text b{ color:var(--ember-deep); font-weight:600; }
@media (max-width:400px){ .brand-text{ font-size:15.5px; } .brand img{ height:32px; } }

.main-nav{ display:flex; align-items:center; gap:4px; }
.main-nav a{
  font-size:14.5px; font-weight:500; color:var(--charcoal-soft);
  padding:10px 16px; border-radius:100px; position:relative;
  transition:background .2s ease, color .2s ease;
}
.main-nav a::before{
  content:''; position:absolute; left:16px; right:16px; bottom:5px; height:2px;
  background:var(--ember); transform:scaleX(0); transform-origin:left; transition:transform .25s ease; border-radius:2px;
}
.main-nav a:hover{ background:var(--paper-dim); color:var(--ink); }
.main-nav a:hover::before{ transform:scaleX(1); }
.main-nav a.current{ background:var(--ink); color:var(--paper); }
.main-nav a.current::before{ display:none; }

.header-actions{ display:flex; align-items:center; gap:10px; flex-shrink:0; }
.icon-link{
  width:40px; height:40px; display:flex; align-items:center; justify-content:center;
  border-radius:50%; border:1.5px solid var(--line); color:var(--ink-soft);
  transition:all .2s ease; flex-shrink:0;
}
.icon-link:hover{ border-color:var(--ember); color:var(--ember-deep); transform:translateY(-2px); }
.icon-link svg{ width:17px; height:17px; transition:transform .3s ease; }
.icon-link:hover svg{ transform:scale(1.15); }

.hamburger{
  display:none; width:44px; height:44px; flex-shrink:0; align-items:center; justify-content:center;
  background:var(--ink); border-radius:50%; border:none; flex-direction:column; gap:5px;
}
.hamburger span{
  display:block; width:20px; height:2px; background:var(--paper); border-radius:2px;
  transition:transform .3s cubic-bezier(.5,-0.3,.5,1.3), opacity .25s ease;
}
.hamburger.open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2){ opacity:0; }
.hamburger.open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }
@media (max-width:1024px){ .main-nav{ display:none; } .hamburger{ display:flex; } }

/* Mobile drawer */
#mobileDrawer-scrim{
  position:fixed; inset:0; z-index:940; background:rgba(28,43,58,0.5);
  opacity:0; pointer-events:none; transition:opacity .3s ease;
}
#mobileDrawer-scrim.open{ opacity:1; pointer-events:auto; }
#mobileDrawer{
  position:fixed; top:0; right:0; height:100%; width:min(86vw,360px); z-index:950;
  background:var(--paper); box-shadow:-16px 0 50px rgba(28,43,58,0.2);
  transform:translateX(100%); transition:transform .35s cubic-bezier(.22,.9,.3,1);
  display:flex; flex-direction:column; padding:24px 22px 30px; overflow-y:auto;
}
#mobileDrawer.open{ transform:translateX(0); }
.drawer-top{ display:flex; align-items:center; justify-content:space-between; margin-bottom:30px; }
.drawer-close{
  width:40px; height:40px; border-radius:50%; border:1.5px solid var(--line); background:transparent;
  display:flex; align-items:center; justify-content:center; color:var(--ink);
}
.drawer-nav{ display:flex; flex-direction:column; gap:2px; }
.drawer-nav a, .drawer-nav button{
  font-family:var(--f-display); font-size:22px; font-weight:500; color:var(--ink);
  padding:13px 4px; border-bottom:1px solid var(--line-soft);
  display:flex; align-items:baseline; justify-content:space-between; gap:12px; width:100%; text-align:left;
}
.drawer-nav a span.num, .drawer-nav button span.num{
  font-family:var(--f-mono); font-size:13px; color:var(--ember); font-weight:500;
}
.drawer-accordion-panel{ max-height:0; overflow:hidden; transition:max-height .3s ease; }
.drawer-accordion-panel.open{ max-height:480px; }
.drawer-accordion-panel a{ font-family:var(--f-body); font-size:14.5px; font-weight:500; color:var(--charcoal-soft); border-bottom:none; padding:10px 4px 10px 8px; }
.drawer-chevron{ transition:transform .25s ease; width:14px; height:14px; flex-shrink:0; }
.drawer-chevron.open{ transform:rotate(180deg); }
.drawer-foot{ margin-top:auto; padding-top:26px; display:flex; flex-direction:column; gap:14px; }
.drawer-foot .btn{ width:100%; }
.drawer-contact-row{ display:flex; gap:10px; justify-content:center; }

/* ============================================================
   Views + section rhythm
   ============================================================ */
.view{ display:none; }
.view.active{ display:block; animation:viewIn .45s ease both; }
@keyframes viewIn{ from{ opacity:0; transform:translateY(10px); } to{ opacity:1; transform:translateY(0); } }

section{ position:relative; }
.section-pad{ padding:96px 0; }
.section-pad-sm{ padding:72px 0; }
@media (max-width:760px){ .section-pad{ padding:68px 0; } .section-pad-sm{ padding:52px 0; } }
.section-head{ max-width:660px; margin-bottom:52px; }
.section-head h2{ font-size:clamp(30px,4vw,44px); font-weight:500; letter-spacing:-0.015em; line-height:1.14; margin-top:14px; }
.section-head p{ margin-top:16px; font-size:17px; color:var(--charcoal-soft); line-height:1.65; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

.spark-divider{ display:flex; align-items:center; justify-content:center; gap:10px; padding:8px 0; }
.spark-divider .sd-line{ width:60px; height:1px; background:var(--line); }
.spark-divider .sd-dot{ width:6px; height:6px; border-radius:50%; background:var(--ember); }

/* ============================================================
   HOME — HERO
   ============================================================ */
.hero{
  padding:150px 0 90px; position:relative; overflow:hidden;
  background:
    radial-gradient(ellipse 900px 500px at 82% -10%, rgba(232,130,58,0.13), transparent 60%),
    radial-gradient(ellipse 700px 500px at -10% 30%, rgba(124,152,133,0.10), transparent 60%);
}
@media (max-width:760px){ .hero{ padding:118px 0 60px; } }
.hero-grid{ display:grid; grid-template-columns:1.05fr 0.95fr; gap:56px; align-items:center; }
@media (max-width:980px){ .hero-grid{ grid-template-columns:1fr; gap:44px; } }
.hero-copy .eyebrow{ margin-bottom:20px; }
.hero-headline{ font-size:clamp(34px,5.4vw,60px); font-weight:500; line-height:1.08; letter-spacing:-0.02em; }
.hero-headline em{ color:var(--ember-deep); font-style:italic; font-weight:500; }
.hero-sub{ margin-top:24px; font-size:17.5px; color:var(--charcoal-soft); max-width:480px; line-height:1.65; }
.hero-ctas{ margin-top:34px; display:flex; gap:14px; flex-wrap:wrap; }
.hero-pathways{ margin-top:40px; display:flex; flex-wrap:wrap; gap:9px; }
.pathway-chip{
  font-family:var(--f-mono); font-size:12.5px; font-weight:500; padding:7px 14px; border-radius:100px;
  background:var(--white); border:1px solid var(--line); color:var(--ink-soft);
}
.hero-stats{
  margin-top:56px; display:grid; grid-template-columns:repeat(3,1fr); gap:1px;
  background:var(--line); border:1px solid var(--line); border-radius:16px; overflow:hidden;
}
.hero-stat{ background:var(--paper); padding:22px 20px; text-align:center; }
.hero-stat .stat-num{ font-family:var(--f-display); font-size:30px; font-weight:600; color:var(--ember-deep); display:inline-block; }
.hero-stat .stat-label{ font-size:12.5px; color:var(--charcoal-soft); margin-top:4px; line-height:1.35; }
@media (max-width:640px){ .hero-stat{ padding:16px 10px; } .hero-stat .stat-num{ font-size:23px; } .hero-stat .stat-label{ font-size:11px; } }

.hero-visual{ position:relative; }
.hero-img-frame{
  position:relative; border-radius:24px; overflow:hidden; box-shadow:var(--shadow-lg);
  aspect-ratio:4/3.1; background:linear-gradient(145deg, var(--ink), var(--ink-soft));
}
.hero-img-frame img{ width:100%; height:100%; object-fit:contain; background:#fff; }
.hero-float-card{
  position:absolute; background:var(--white); border-radius:16px; padding:16px 18px; box-shadow:var(--shadow-md);
  display:flex; align-items:center; gap:12px; max-width:220px;
  animation:floatCardBob 4.5s ease-in-out infinite;
}
.hero-float-card.hf-2{ animation-delay:1.2s; }
@keyframes floatCardBob{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-6px); } }
.hero-float-card svg{ width:22px; height:22px; color:var(--ember); flex-shrink:0; }
.hero-float-card .hf-title{ font-weight:600; font-size:13.5px; color:var(--ink); line-height:1.3; }
.hero-float-card .hf-sub{ font-size:12px; color:var(--charcoal-soft); margin-top:1px; }
.hero-float-card.hf-1{ top:-18px; left:-14px; }
.hero-float-card.hf-2{ bottom:-18px; right:-14px; }
@media (max-width:520px){
  .hero-float-card{ padding:12px 14px; max-width:170px; gap:9px; }
  .hero-float-card svg{ width:18px; height:18px; }
  .hero-float-card .hf-title{ font-size:12px; }
  .hero-float-card .hf-sub{ font-size:10.5px; }
  .hero-float-card.hf-1{ top:-12px; left:-8px; }
  .hero-float-card.hf-2{ bottom:-12px; right:-8px; }
}
@media (prefers-reduced-motion: reduce){ .hero-float-card{ animation:none; } }

/* ============================================================
   Cards — feature / service / pillar
   ============================================================ */
.grid-4{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.grid-2{ display:grid; grid-template-columns:repeat(2,1fr); gap:22px; }
@media (max-width:980px){ .grid-4{ grid-template-columns:repeat(2,1fr); } .grid-3{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:620px){ .grid-4, .grid-3, .grid-2{ grid-template-columns:1fr; } }

.feature-card{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:30px 26px;
  transition:transform .28s cubic-bezier(.22,.9,.3,1), box-shadow .28s ease, border-color .28s ease;
}
.feature-card:hover{ transform:translateY(-5px); box-shadow:var(--shadow-md); border-color:transparent; }
.feature-num{ font-family:var(--f-mono); font-size:13px; color:var(--ember); font-weight:600; letter-spacing:0.05em; }
.feature-icon{
  width:46px; height:46px; border-radius:13px; background:var(--paper-dim);
  display:flex; align-items:center; justify-content:center; margin-bottom:18px; color:var(--ember-deep);
  transition:transform .35s cubic-bezier(.34,1.56,.64,1), background .3s ease;
}
.feature-card:hover .feature-icon{ transform:rotate(-8deg) scale(1.08); }
.feature-icon svg{ width:23px; height:23px; }
.feature-card h3{ font-size:19px; font-weight:600; margin-top:16px; margin-bottom:10px; line-height:1.3; }
.feature-card p{ font-size:14.5px; color:var(--charcoal-soft); line-height:1.62; }

.service-card{
  background:var(--white); border-radius:var(--radius); overflow:hidden; border:1px solid var(--line);
  transition:transform .28s cubic-bezier(.22,.9,.3,1), box-shadow .28s ease; display:flex; flex-direction:column;
}
.service-card:hover{ transform:translateY(-5px); box-shadow:var(--shadow-md); }
.service-img{ aspect-ratio:16/10; overflow:hidden; position:relative; background:var(--paper-dim); }
.service-img img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.service-card:hover .service-img img{ transform:scale(1.06); }
.service-tag{
  position:absolute; top:14px; left:14px; background:rgba(28,43,58,0.85); backdrop-filter:blur(6px);
  color:var(--paper); font-family:var(--f-mono); font-size:11.5px; padding:6px 12px; border-radius:100px; letter-spacing:0.03em;
}
.service-body{ padding:24px 24px 26px; flex:1; display:flex; flex-direction:column; }
.service-body h3{ font-size:19px; font-weight:600; margin-bottom:10px; line-height:1.3; }
.service-body p{ font-size:14.5px; color:var(--charcoal-soft); line-height:1.62; flex:1; }

.pillar-card{
  background:var(--ink); border-radius:var(--radius); padding:32px 26px; color:var(--paper);
  position:relative; overflow:hidden;
}
.pillar-card::after{
  content:''; position:absolute; top:-40%; right:-30%; width:200px; height:200px; border-radius:50%;
  background:radial-gradient(circle, rgba(232,130,58,0.22), transparent 70%);
}
.pillar-card .feature-icon{ background:rgba(251,248,243,0.1); color:var(--ember); }
.pillar-card:hover .feature-icon{ transform:rotate(8deg) scale(1.08); background:rgba(232,130,58,0.22); }
.pillar-card h3{ color:var(--paper); font-size:19px; font-weight:600; margin-top:16px; margin-bottom:10px; }
.pillar-card p{ color:rgba(251,248,243,0.68); font-size:14.5px; line-height:1.62; }
.pillar-card .feature-num{ color:var(--ember); position:relative; z-index:1; }

/* ============================================================
   About — image collage split
   ============================================================ */
.collage-split{ display:grid; grid-template-columns:1fr 0.95fr; gap:56px; align-items:center; }
@media (max-width:900px){
  .collage-split{ grid-template-columns:1fr; gap:32px; }
  .collage-split .photo-collage{ order:1; }
  .collage-split .about-body{ order:2; }
}
.photo-collage{ position:relative; padding:20px 30px 30px 0; }
.collage-img{ border-radius:16px; overflow:hidden; box-shadow:var(--shadow-md); background:var(--paper-dim); }
.collage-img img{ width:100%; height:100%; object-fit:cover; }
.collage-main{ aspect-ratio:4/3.3; position:relative; z-index:1; }
.collage-sm{ position:absolute; width:46%; aspect-ratio:1/1; border:4px solid var(--paper); z-index:2; }
.collage-sm-1{ bottom:-24px; right:-14px; }
@media (max-width:520px){ .photo-collage{ padding:14px 20px 24px 0; } .collage-sm-1{ bottom:-14px; right:-8px; } }

.about-body p{ font-size:16px; color:var(--charcoal-soft); line-height:1.75; margin-bottom:18px; }
.about-body p:last-child{ margin-bottom:0; }
.standfor-list{ margin-top:28px; display:flex; flex-direction:column; gap:0; border-top:1px solid var(--line); }
.standfor-item{ display:grid; grid-template-columns:40px 1fr; gap:16px; padding:20px 0; border-bottom:1px solid var(--line); align-items:start; }
.standfor-item .sf-mark{ font-family:var(--f-mono); font-size:13px; color:var(--ember); font-weight:600; padding-top:2px; }
.standfor-item h4{ font-size:16.5px; font-weight:600; margin-bottom:4px; }
.standfor-item p{ font-size:14.5px; color:var(--charcoal-soft); line-height:1.55; margin-bottom:8px; }
.mini-bar{ height:5px; border-radius:99px; background:var(--line); overflow:hidden; max-width:220px; }
.mini-bar > span{ display:block; height:100%; background:var(--sage-deep); border-radius:99px; width:0%; transition:width 1.1s cubic-bezier(.2,.7,.2,1); }

/* ============================================================
   Testimonial carousel
   ============================================================ */
.testi-wrap{ position:relative; max-width:760px; margin:0 auto; }
.testi-track{ overflow:hidden; border-radius:var(--radius); }
.testi-slides{ display:flex; transition:transform .5s cubic-bezier(.65,.05,.36,1); }
.testi-slide{ min-width:100%; background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:44px 40px; text-align:center; animation:testiFade .5s ease; }
@keyframes testiFade{ from{ opacity:0.4; transform:translateY(6px); } to{ opacity:1; transform:translateY(0); } }
@media (max-width:600px){ .testi-slide{ padding:32px 22px; } }
.testi-quote-mark{ font-family:var(--f-display); font-size:52px; color:var(--ember); line-height:0.5; display:block; margin-bottom:18px; }
.testi-slide blockquote{ font-family:var(--f-display); font-size:clamp(17px,2.2vw,21px); font-weight:400; font-style:italic; color:var(--ink); line-height:1.55; margin:0 0 22px; }
.testi-name{ font-weight:700; font-size:14.5px; color:var(--ink); }
.testi-role{ font-family:var(--f-mono); font-size:12px; color:var(--charcoal-soft); margin-top:3px; }
.testi-controls{ display:flex; align-items:center; justify-content:center; gap:18px; margin-top:26px; }
.testi-arrow{
  width:42px; height:42px; border-radius:50%; border:1.5px solid var(--line); background:var(--white);
  display:flex; align-items:center; justify-content:center; color:var(--ink); transition:all .2s ease; flex-shrink:0;
}
.testi-arrow:hover{ border-color:var(--ember); color:var(--ember-deep); }
.testi-arrow svg{ width:16px; height:16px; }
.testi-dots{ display:flex; gap:8px; }
.testi-dot{ width:7px; height:7px; border-radius:50%; background:var(--line); border:none; padding:0; transition:all .25s ease; }
.testi-dot.active{ background:var(--ember); width:22px; border-radius:5px; }

/* ============================================================
   FAQ accordion
   ============================================================ */
.faq-list{ max-width:760px; margin:0 auto; display:flex; flex-direction:column; gap:12px; }
.faq-item{ background:var(--white); border:1px solid var(--line); border-radius:14px; overflow:hidden; }
.faq-q{
  width:100%; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:20px 22px;
  background:none; border:none; text-align:left; font-family:var(--f-body); font-weight:600; font-size:15.5px; color:var(--ink);
}
.faq-q .faq-plus{
  width:26px; height:26px; border-radius:50%; border:1.5px solid var(--line); display:flex; align-items:center; justify-content:center;
  flex-shrink:0; position:relative; transition:transform .3s ease, border-color .3s ease, background .3s ease;
}
.faq-q:hover .faq-plus{ border-color:var(--ember); transform:scale(1.08); }
.faq-q .faq-plus::before, .faq-q .faq-plus::after{ content:''; position:absolute; background:var(--ink); transition:transform .3s ease, opacity .3s ease; }
.faq-q .faq-plus::before{ width:10px; height:1.6px; }
.faq-q .faq-plus::after{ width:1.6px; height:10px; }
.faq-item.open .faq-q .faq-plus{ background:var(--ember); border-color:var(--ember); transform:rotate(180deg); }
.faq-item.open .faq-q:hover .faq-plus{ transform:rotate(180deg) scale(1.08); }
.faq-item.open .faq-q .faq-plus::before, .faq-item.open .faq-q .faq-plus::after{ background:var(--white); }
.faq-item.open .faq-q .faq-plus::after{ opacity:0; }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .35s ease; }
.faq-a-inner{ padding:0 22px 22px; font-size:14.5px; color:var(--charcoal-soft); line-height:1.65; }

/* ============================================================
   Contact / lead form
   ============================================================ */
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:start; }
@media (max-width:900px){ .contact-grid{ grid-template-columns:1fr; gap:32px; } }
.contact-card{ background:var(--ink); border-radius:var(--radius); padding:40px 34px; color:var(--paper); }
@media (max-width:600px){ .contact-card{ padding:30px 24px; } }
.contact-card h3{ color:var(--paper); font-size:22px; font-weight:500; margin-bottom:10px; }
.contact-card > p{ color:rgba(251,248,243,0.65); font-size:14.5px; line-height:1.6; margin-bottom:28px; }
.contact-row{ display:flex; align-items:flex-start; gap:14px; padding:16px 0; border-top:1px solid rgba(251,248,243,0.14); }
.contact-row:first-of-type{ border-top:none; }
.contact-row .cr-icon{ width:38px; height:38px; border-radius:11px; background:rgba(251,248,243,0.08); display:flex; align-items:center; justify-content:center; color:var(--ember); flex-shrink:0; }
.contact-row .cr-icon svg{ width:18px; height:18px; }
.contact-row .cr-label{ font-family:var(--f-mono); font-size:11px; text-transform:uppercase; letter-spacing:0.08em; color:rgba(251,248,243,0.5); }
.contact-row .cr-val{ font-size:15px; font-weight:500; margin-top:2px; word-break:break-word; }
.contact-row a:hover .cr-val{ color:var(--ember); }
.contact-map{ margin-top:26px; border-radius:14px; overflow:hidden; border:1px solid rgba(251,248,243,0.14); aspect-ratio:16/10; display:flex; align-items:center; justify-content:center; color:rgba(251,248,243,0.5); font-size:13px; background:rgba(251,248,243,0.04); }

.form-card{ background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:36px 32px; }
@media (max-width:600px){ .form-card{ padding:26px 22px; } }
.form-card h3{ font-size:22px; font-weight:500; margin-bottom:6px; }
.form-card > p{ font-size:14.5px; color:var(--charcoal-soft); margin-bottom:26px; }
.field{ margin-bottom:18px; }
.field label{ display:block; font-size:13px; font-weight:600; color:var(--ink); margin-bottom:7px; }
.field input, .field select, .field textarea{
  width:100%; padding:13px 15px; border:1.5px solid var(--line); border-radius:11px;
  font-family:var(--f-body); font-size:14.5px; background:var(--paper); color:var(--charcoal);
  transition:border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{ outline:none; border-color:var(--ember); box-shadow:0 0 0 4px rgba(232,130,58,0.12); }
.field textarea{ resize:vertical; min-height:100px; }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width:480px){ .field-row{ grid-template-columns:1fr; } }
.form-note{ font-size:12.5px; color:var(--charcoal-soft); margin-top:14px; text-align:center; line-height:1.5; }
.form-success{ display:none; align-items:center; gap:12px; background:rgba(124,152,133,0.13); border:1.5px solid var(--sage); color:var(--sage-deep); padding:14px 16px; border-radius:12px; font-size:14px; font-weight:600; margin-bottom:18px; }
.form-success.show{ display:flex; }
.form-success svg{ width:18px; height:18px; flex-shrink:0; }

/* ============================================================
   CTA band + page-hero (sub-view header)
   ============================================================ */
.cta-band{ background:var(--ink); border-radius:28px; padding:56px 48px; text-align:center; position:relative; overflow:hidden; }
.cta-band::before{
  content:''; position:absolute; inset:0;
  background:radial-gradient(ellipse 500px 300px at 20% 0%, rgba(232,130,58,0.18), transparent 60%),
             radial-gradient(ellipse 500px 300px at 85% 100%, rgba(124,152,133,0.14), transparent 60%);
}
.cta-band > *{ position:relative; z-index:1; }
.cta-band h2{ color:var(--paper); font-size:clamp(26px,3.6vw,38px); font-weight:500; line-height:1.18; }
.cta-band p{ color:rgba(251,248,243,0.65); margin-top:14px; font-size:15.5px; max-width:480px; margin-left:auto; margin-right:auto; }
.cta-band .hero-ctas{ justify-content:center; margin-top:30px; }
@media (max-width:640px){ .cta-band{ padding:40px 24px; border-radius:22px; } }

.page-hero{ padding:150px 0 60px; background:var(--paper-dim); border-bottom:1px solid var(--line); position:relative; overflow:hidden; }
.page-hero::before{
  content:''; position:absolute; top:-20%; right:-8%; width:340px; height:340px; border-radius:50%;
  background:radial-gradient(circle, rgba(232,130,58,0.14), transparent 70%);
}
.page-hero-inner{ position:relative; z-index:1; max-width:680px; }
.page-hero h1{ font-size:clamp(32px,5vw,48px); font-weight:500; letter-spacing:-0.015em; line-height:1.12; margin-top:16px; }
.page-hero p{ margin-top:16px; font-size:16.5px; color:var(--charcoal-soft); line-height:1.65; max-width:560px; }
.breadcrumb{ display:flex; align-items:center; gap:8px; font-family:var(--f-mono); font-size:12.5px; color:var(--charcoal-soft); margin-bottom:18px; background:none; border:none; padding:0; }
.breadcrumb:hover{ color:var(--ember-deep); }

/* ============================================================
   Footer
   ============================================================ */
footer{ background:var(--ink); color:rgba(251,248,243,0.75); padding:64px 0 28px; }
.footer-grid{ display:grid; grid-template-columns:1.3fr 1fr 1fr 1fr; gap:36px; padding-bottom:44px; border-bottom:1px solid rgba(251,248,243,0.12); }
@media (max-width:900px){ .footer-grid{ grid-template-columns:1fr 1fr; gap:34px; } }
@media (max-width:560px){ .footer-grid{ grid-template-columns:1fr; } }
.footer-brand{ display:flex; align-items:center; gap:10px; margin-bottom:16px; }
.footer-brand img{ height:34px; width:auto; object-fit:contain; }
.footer-brand span{ font-family:var(--f-display); font-size:18px; font-weight:600; color:var(--paper); }
.footer-desc{ font-size:14px; line-height:1.65; max-width:320px; color:rgba(251,248,243,0.55); }
.footer-social{ display:flex; gap:10px; margin-top:20px; }
.footer-social a{ width:38px; height:38px; border-radius:50%; border:1.5px solid rgba(251,248,243,0.18); display:flex; align-items:center; justify-content:center; transition:all .2s ease; }
.footer-social a:hover{ border-color:var(--ember); background:rgba(232,130,58,0.14); }
.footer-social svg{ width:16px; height:16px; transition:transform .3s ease; }
.footer-social a:hover svg{ transform:scale(1.15) rotate(-6deg); }
.footer-col h5{ font-family:var(--f-mono); font-size:12px; text-transform:uppercase; letter-spacing:0.1em; color:rgba(251,248,243,0.45); margin-bottom:18px; }
.footer-col ul{ display:flex; flex-direction:column; gap:12px; }
.footer-col a, .footer-col button{ font-size:14.5px; transition:color .2s ease; color:inherit; text-align:left; }
.footer-col a:hover, .footer-col button:hover{ color:var(--ember); }
.footer-bottom{ padding-top:26px; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; font-size:13px; color:rgba(251,248,243,0.45); }
.footer-bottom button{ color:inherit; }
.footer-bottom button:hover{ color:rgba(251,248,243,0.8); }
@media (max-width:600px){ .footer-bottom{ justify-content:center; text-align:center; } }

/* ============================================================
   Promo strip
   ============================================================ */
.promo-strip{ background:var(--ink); padding:20px 0; }
.promo-strip-inner{ display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.promo-icon{ width:42px; height:42px; border-radius:50%; background:rgba(232,130,58,0.18); color:var(--ember); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.promo-icon svg{ width:20px; height:20px; }
.promo-text{ flex:1; min-width:220px; color:rgba(251,248,243,0.85); font-size:14px; line-height:1.55; }
.promo-text strong{ color:var(--paper); display:block; margin-bottom:2px; font-weight:600; }
.promo-cta{ flex-shrink:0; }
@media (max-width:640px){ .promo-strip-inner{ flex-direction:column; align-items:flex-start; text-align:left; } .promo-cta{ width:100%; justify-content:center; } }

/* ============================================================
   Hero inline enquiry form card
   ============================================================ */
.hero-form-card{ background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:30px 28px; box-shadow:var(--shadow-md); }
@media (max-width:600px){ .hero-form-card{ padding:24px 20px; } }
.hero-form-card h3{ font-size:20px; font-weight:600; margin-bottom:6px; }
.hero-form-card > p{ font-size:14px; color:var(--charcoal-soft); margin-bottom:22px; }

/* ============================================================
   Deep-dive alternating sections
   ============================================================ */
.deepdive{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; }
.deepdive-reverse{ direction:rtl; }
.deepdive-reverse > *{ direction:ltr; }
@media (max-width:900px){
  .deepdive, .deepdive-reverse{ grid-template-columns:1fr; direction:ltr; gap:40px; }
  .deepdive-reverse{ display:flex; flex-direction:column-reverse; }
}
.deepdive-text h2{ font-size:clamp(24px,3vw,32px); font-weight:500; margin-top:12px; margin-bottom:16px; line-height:1.2; letter-spacing:-0.01em; }
.deepdive-text p{ font-size:15px; color:var(--charcoal-soft); line-height:1.7; margin-bottom:14px; }
.deepdive-text .btn{ margin-top:8px; }
.photo-collage-sm{ padding:14px 24px 24px 0; }
@media (max-width:520px){ .photo-collage-sm{ padding:14px 20px 24px 0; } }

/* ============================================================
   Team cards (categorical — no fabricated individuals)
   ============================================================ */
.team-intro{ display:flex; justify-content:space-between; align-items:flex-end; gap:40px; margin-bottom:44px; flex-wrap:wrap; }
.team-intro-text{ max-width:640px; }
.team-intro-text h2{ font-size:clamp(28px,3.4vw,36px); font-weight:500; margin-top:12px; margin-bottom:16px; }
.team-intro-text p{ font-size:15px; color:var(--charcoal-soft); line-height:1.7; margin-bottom:12px; }
.team-intro .btn{ flex-shrink:0; }
.team-card{ background:var(--white); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; text-align:center; transition:transform .28s ease, box-shadow .28s ease; }
.team-card:hover{ transform:translateY(-5px); box-shadow:var(--shadow-md); }
.team-photo{ aspect-ratio:1/1; background:linear-gradient(145deg, var(--paper-dim), var(--line)); display:flex; align-items:center; justify-content:center; color:var(--ink-soft); position:relative; }
.team-photo svg{ width:44%; height:44%; opacity:0.35; transition:transform .4s ease; }
.team-card:hover .team-photo svg{ transform:scale(1.08) translateY(-2px); }
.team-body{ padding:20px 18px 24px; }
.team-body h4{ font-size:16.5px; font-weight:600; line-height:1.3; min-height:2.6em; display:flex; align-items:center; justify-content:center; }
.team-body .role{ font-family:var(--f-mono); font-size:12px; color:var(--ember-deep); margin-top:5px; letter-spacing:0.02em; }

/* ============================================================
   Guide / topic cards
   ============================================================ */
.guide-card{ background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:26px 24px; transition:transform .28s ease, box-shadow .28s ease; }
.guide-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); }
.guide-card-tag{ font-family:var(--f-mono); font-size:11.5px; text-transform:uppercase; letter-spacing:0.06em; color:var(--ember-deep); margin-bottom:12px; font-weight:600; }
.guide-card h3{ font-size:17px; font-weight:600; line-height:1.35; margin-bottom:10px; }
.guide-card p{ font-size:14px; color:var(--charcoal-soft); line-height:1.6; }

/* ============================================================
   Closing lead-gen form (merged into home's final CTA)
   ============================================================ */
.closing-form-section{ background:var(--paper-dim); }
.closing-form-wrap{ max-width:720px; margin:0 auto; background:var(--white); border:1px solid var(--line); border-radius:24px; padding:48px 44px; box-shadow:var(--shadow-md); }
@media (max-width:600px){ .closing-form-wrap{ padding:32px 24px; border-radius:20px; } }
.closing-form-head{ text-align:center; margin-bottom:32px; }
.closing-form-head h2{ font-size:clamp(26px,3.4vw,34px); font-weight:500; margin-top:12px; margin-bottom:12px; }
.closing-form-head p{ font-size:15px; color:var(--charcoal-soft); }

/* ============================================================
   WhatsApp FAB + Chatbot
   ============================================================ */
#waFab{
  position:fixed; bottom:24px; left:24px; z-index:800; width:60px; height:60px; border-radius:50%;
  background:#25D366; display:flex; align-items:center; justify-content:center;
  box-shadow:0 8px 24px rgba(37,211,102,0.42);
  transition:transform .25s ease, box-shadow .25s ease, opacity .25s ease;
  animation:waPulse 2.6s ease-in-out infinite;
}
#waFab:hover{ transform:scale(1.08); box-shadow:0 10px 30px rgba(37,211,102,0.55); }
#waFab svg{ width:29px; height:29px; }
@keyframes waPulse{
  0%,100%{ box-shadow:0 8px 24px rgba(37,211,102,0.42), 0 0 0 0 rgba(37,211,102,0.35); }
  50%{ box-shadow:0 8px 24px rgba(37,211,102,0.42), 0 0 0 10px rgba(37,211,102,0); }
}
body.field-focused #waFab{ opacity:.35; transform:scale(.82); animation:none; pointer-events:none; }
@media (max-width:480px){ #waFab{ width:52px; height:52px; bottom:16px; left:16px; } #waFab svg{ width:25px; height:25px; } }
@media (prefers-reduced-motion: reduce){ #waFab{ animation:none; transition:opacity .25s ease; } .hero-float-card{ animation:none; } }

#chatToggle{
  position:fixed; bottom:24px; right:24px; z-index:800; width:60px; height:60px; border-radius:50%;
  background:var(--ink); box-shadow:var(--shadow-lg); display:flex; align-items:center; justify-content:center;
  transition:transform .25s ease;
}
#chatToggle:hover{ transform:scale(1.08); }
@media (max-width:480px){ #chatToggle{ width:52px; height:52px; bottom:16px; right:16px; } }

#chatPanel{
  position:fixed; bottom:96px; right:24px; z-index:800; width:min(92vw,380px); height:min(70vh,560px);
  background:var(--white); border-radius:24px; border:1px solid var(--line); box-shadow:var(--shadow-lg);
  display:flex; flex-direction:column; overflow:hidden;
  transform:translateY(16px) scale(.97); opacity:0; pointer-events:none;
  transition:all .25s cubic-bezier(.2,.7,.2,1); transform-origin:bottom right;
}
#chatPanel.open{ transform:none; opacity:1; pointer-events:auto; }
@media (max-width:480px){ #chatPanel{ right:16px; bottom:80px; } }
.chat-head{ background:var(--ink); color:var(--paper); padding:16px 20px; display:flex; align-items:center; justify-content:between; justify-content:space-between; flex-shrink:0; }
.chat-head p.title{ font-family:var(--f-display); font-weight:600; font-size:16px; }
.chat-head p.sub{ font-size:12px; color:rgba(251,248,243,0.6); }
.chat-close{ width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:var(--paper); }
.chat-close:hover{ background:rgba(251,248,243,0.12); }
#chatMessages{ flex:1; overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:12px; font-size:14px; }
.chat-row{ display:flex; }
.chat-row.user{ justify-content:flex-end; }
.chat-row.bot{ justify-content:flex-start; }
.chat-bubble{ max-width:80%; border-radius:16px; padding:10px 16px; line-height:1.5; }
.chat-bubble-bot{ background:var(--paper-dim); border:1px solid var(--line); color:var(--charcoal); }
.chat-bubble-user{ background:var(--ink); color:var(--paper); }
.chat-handoff-btn{ font-size:12.5px; font-weight:600; background:var(--ember); color:var(--white); padding:9px 16px; border-radius:100px; }
.chat-handoff-btn:hover{ background:var(--ember-deep); }
#chatQuickReplies{ padding:0 16px 8px; display:flex; flex-wrap:wrap; gap:8px; flex-shrink:0; }
.chat-quick-chip{ font-size:12.5px; font-weight:500; border:1px solid var(--line); border-radius:100px; padding:7px 13px; }
.chat-quick-chip:hover{ background:var(--paper-dim); }
.chat-input-row{ padding:12px; border-top:1px solid var(--line); display:flex; gap:8px; flex-shrink:0; }
.chat-input-row input{ flex:1; border:1.5px solid var(--line); border-radius:100px; padding:11px 16px; font-size:14px; background:var(--paper); }
.chat-input-row input:focus{ outline:none; border-color:var(--ember); }
.chat-send{ width:44px; height:44px; border-radius:50%; background:var(--ember); color:var(--white); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.chat-send:hover{ background:var(--ember-deep); }
.typing-dot{ width:6px; height:6px; border-radius:50%; background:var(--charcoal-soft); animation:typingBounce 1.1s infinite ease-in-out; }
.typing-dot:nth-child(2){ animation-delay:.15s; }
.typing-dot:nth-child(3){ animation-delay:.3s; }
@keyframes typingBounce{ 0%,60%,100%{ transform:translateY(0); opacity:.5; } 30%{ transform:translateY(-4px); opacity:1; } }

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal{ opacity:0; transform:translateY(22px); transition:opacity .7s ease, transform .7s ease; }
.reveal.in{ opacity:1; transform:translateY(0); }
.reveal-stagger > *{ opacity:0; transform:translateY(22px); transition:opacity .6s ease, transform .6s ease; }
.reveal-stagger.in > *{ opacity:1; transform:translateY(0); }
.reveal-stagger.in > *:nth-child(1){ transition-delay:.02s; }
.reveal-stagger.in > *:nth-child(2){ transition-delay:.09s; }
.reveal-stagger.in > *:nth-child(3){ transition-delay:.16s; }
.reveal-stagger.in > *:nth-child(4){ transition-delay:.23s; }
.reveal-stagger.in > *:nth-child(5){ transition-delay:.30s; }
.reveal-stagger.in > *:nth-child(6){ transition-delay:.37s; }
.reveal-stagger.in > *:nth-child(7){ transition-delay:.44s; }
.reveal-stagger.in > *:nth-child(8){ transition-delay:.51s; }

/* Curriculum board strip */
.board-strip-label{ text-align:center; font-family:var(--f-mono); font-size:12.5px; letter-spacing:0.08em; text-transform:uppercase; color:var(--charcoal-soft); margin-bottom:26px; }
.board-strip{ display:flex; flex-wrap:wrap; justify-content:center; gap:14px; }
.board-chip{
  font-family:var(--f-display); font-style:italic; font-size:15px; color:var(--ink-soft);
  padding:12px 22px; border:1px solid var(--line); border-radius:100px; background:var(--white);
  opacity:0.85; transition:opacity .2s ease, border-color .2s ease;
}
.board-chip:hover{ opacity:1; border-color:var(--ember); }

/* Admin dashboard (keeps functionality, matches new visual language) */
.admin-input{ width:100%; padding:11px 14px; border:1.5px solid var(--line); border-radius:11px; font-family:var(--f-body); font-size:14px; background:var(--paper); color:var(--charcoal); transition:border-color .2s ease, box-shadow .2s ease; }
.admin-input:focus{ outline:none; border-color:var(--ember); box-shadow:0 0 0 4px rgba(232,130,58,0.12); }
.admin-panel-card{ background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:28px 26px; margin-bottom:28px; }
.admin-panel-card h2{ font-size:20px; font-weight:600; margin-bottom:18px; }
.usage-bar-track{ width:100%; height:14px; background:var(--paper-dim); border-radius:100px; overflow:hidden; border:1px solid var(--line); }
.usage-bar-fill{ height:100%; width:0%; border-radius:100px; background:var(--sage); transition:width .6s ease, background .3s ease; }
.usage-bar-fill.warn{ background:#e0a640; }
.usage-bar-fill.danger{ background:#c0392b; }
.usage-stat{ background:var(--paper-dim); border-radius:12px; padding:16px; text-align:center; }
.usage-stat-num{ font-family:var(--f-display); font-size:22px; font-weight:600; color:var(--ink); }
.usage-stat-label{ font-size:12px; color:var(--charcoal-soft); margin-top:4px; }
.admin-badge{ background:rgba(232,130,58,0.12); border:1px solid rgba(232,130,58,0.35); border-radius:14px; padding:14px 16px; font-size:14px; color:var(--ink); }

/* ============================================================
   PRELOADER
   ============================================================ */
html.loading, html.loading body{ overflow:hidden !important; height:100%; }
#site-loader{ position:fixed; inset:0; z-index:4000; background:var(--paper); display:flex; align-items:center; justify-content:center; transition:opacity .45s ease; }
.loader-inner{ position:relative; z-index:2; display:flex; flex-direction:column; align-items:center; gap:18px; }
.spark-mark{ width:12px; height:12px; border-radius:50%; background:var(--ember); opacity:0; box-shadow:0 0 0 0 rgba(232,130,58,0.35); animation:coreAppear .4s ease .1s forwards, corePulse 1.5s ease-in-out .5s infinite; }
@keyframes coreAppear{ 0%{ opacity:0; transform:scale(0.4); } 100%{ opacity:1; transform:scale(1); } }
@keyframes corePulse{ 0%,100%{ box-shadow:0 0 0 0 rgba(232,130,58,0.28); } 50%{ box-shadow:0 0 0 9px rgba(232,130,58,0); } }
.loader-word{ font-family:var(--f-display); font-size:20px; font-weight:500; letter-spacing:0.01em; opacity:0; animation:loaderWordIn .5s ease .25s forwards; }
.loader-word .lw-brain{ color:var(--ink); }
.loader-word .lw-spark{ color:var(--ember); font-style:italic; }
@keyframes loaderWordIn{ from{ opacity:0; transform:translateY(6px); } to{ opacity:1; transform:translateY(0); } }
.loader-bar{ width:120px; height:2px; border-radius:2px; background:var(--line); overflow:hidden; opacity:0; animation:loaderWordIn .4s ease .4s forwards; }
.loader-bar-fill{ display:block; height:100%; width:0%; background:var(--ember); border-radius:2px; transition:width .3s ease; }
#site-loader.exiting{ opacity:0; }
#site-loader.exiting .loader-inner{ transition:opacity .3s ease, transform .35s ease; opacity:0; transform:scale(0.97); }
#site-loader.gone{ display:none; }
@media (max-width:480px){ .loader-word{ font-size:17px; } .loader-bar{ width:100px; } }
@media (prefers-reduced-motion: reduce){ .spark-mark{ animation:none !important; opacity:1; } .loader-word, .loader-bar{ animation:none !important; opacity:1; } #site-loader{ transition:none; } }

/* Hero entrance sequence — plays once loader wipes away */
.hero-copy .eyebrow, .hero-headline, .hero-sub, .hero-ctas, .hero-pathways, .hero-stats{ opacity:0; transform:translateY(18px); }
html.loading .hero-copy .eyebrow, html.loading .hero-headline, html.loading .hero-sub,
html.loading .hero-ctas, html.loading .hero-pathways, html.loading .hero-stats, html.loading .hero-visual{ transition:none !important; }
html:not(.loading) .hero-copy .eyebrow{ animation:heroEntrance .7s cubic-bezier(.22,.9,.3,1) .15s forwards; }
html:not(.loading) .hero-headline{ animation:heroEntrance .7s cubic-bezier(.22,.9,.3,1) .28s forwards; }
html:not(.loading) .hero-sub{ animation:heroEntrance .7s cubic-bezier(.22,.9,.3,1) .40s forwards; }
html:not(.loading) .hero-ctas{ animation:heroEntrance .7s cubic-bezier(.22,.9,.3,1) .52s forwards; }
html:not(.loading) .hero-pathways{ animation:heroEntrance .7s cubic-bezier(.22,.9,.3,1) .60s forwards; }
html:not(.loading) .hero-stats{ animation:heroEntrance .7s cubic-bezier(.22,.9,.3,1) .68s forwards; }
.hero-visual{ opacity:0; transform:translateY(18px) scale(0.98); }
html:not(.loading) .hero-visual{ animation:heroEntranceVisual .8s cubic-bezier(.22,.9,.3,1) .38s forwards; }
@keyframes heroEntrance{ to{ opacity:1; transform:translateY(0); } }
@keyframes heroEntranceVisual{ to{ opacity:1; transform:translateY(0) scale(1); } }
@media (prefers-reduced-motion: reduce){
  .hero-copy .eyebrow, .hero-headline, .hero-sub, .hero-ctas, .hero-pathways, .hero-stats, .hero-visual{ animation:none !important; opacity:1 !important; transform:none !important; }
}

.img-safe{ object-fit:contain; background:#fff; }

/* ============================================================
   Header mega-menu (dropdown nav)
   ============================================================ */
.main-nav{ position:relative; }
.nav-item{ position:relative; }
.nav-item > .nav-trigger{
  display:inline-flex; align-items:center; gap:5px;
  font-size:14.5px; font-weight:500; color:var(--charcoal-soft);
  padding:10px 15px; border-radius:100px; background:none; border:none; cursor:pointer;
  font-family:inherit; transition:background .2s ease, color .2s ease;
}
.nav-item > .nav-trigger svg{ width:11px; height:11px; transition:transform .2s ease; flex-shrink:0; }
.nav-item:hover > .nav-trigger, .nav-item.open > .nav-trigger{ background:var(--paper-dim); color:var(--ink); }
.nav-item:hover > .nav-trigger svg, .nav-item.open > .nav-trigger svg{ transform:rotate(180deg); }
.nav-dropdown{
  position:absolute; top:calc(100% + 10px); left:0; min-width:230px;
  background:var(--white); border:1px solid var(--line); border-radius:14px;
  box-shadow:var(--shadow-lg); padding:10px; opacity:0; visibility:hidden; transform:translateY(6px);
  transition:opacity .18s ease, transform .18s ease, visibility .18s ease; z-index:950;
}
.nav-item:hover .nav-dropdown, .nav-item.open .nav-dropdown{ opacity:1; visibility:visible; transform:translateY(0); }
.nav-dropdown a{
  display:block; padding:9px 12px; border-radius:8px; font-size:13.8px; font-weight:500;
  color:var(--charcoal-soft); transition:background .15s ease, color .15s ease;
}
.nav-dropdown a:hover{ background:var(--paper-dim); color:var(--ember-deep); }
.nav-dropdown-label{ font-family:var(--f-mono); font-size:10.5px; letter-spacing:.07em; text-transform:uppercase; color:var(--charcoal-soft); opacity:.6; padding:6px 12px 4px; }
.nav-dropdown-cols{ display:grid; grid-template-columns:1fr 1fr; gap:4px 10px; min-width:420px; }
.nav-flyout-item{ position:relative; }
.nav-flyout-item > a{ display:flex; align-items:center; justify-content:space-between; gap:8px; }
.nav-flyout-item > a svg{ flex-shrink:0; opacity:.55; }
.nav-flyout{
  position:absolute; top:-10px; left:calc(100% + 6px); min-width:250px;
  background:var(--white); border:1px solid var(--line); border-radius:14px;
  box-shadow:var(--shadow-lg); padding:10px; opacity:0; visibility:hidden; transform:translateX(6px);
  transition:opacity .18s ease, transform .18s ease, visibility .18s ease; z-index:960;
}
.nav-flyout-item:hover .nav-flyout{ opacity:1; visibility:visible; transform:translateX(0); }

/* ============================================================
   Language switcher
   ============================================================ */
.lang-switcher{ position:relative; }
.lang-btn{
  display:inline-flex; align-items:center; gap:6px; height:40px; padding:0 14px;
  border-radius:100px; border:1.5px solid var(--line); background:var(--white);
  font-size:13.5px; font-weight:600; color:var(--ink); font-family:inherit; cursor:pointer;
  transition:border-color .2s ease, transform .2s ease;
}
.lang-btn:hover{ border-color:var(--ember); transform:translateY(-1px); }
.lang-btn svg{ width:13px; height:13px; }
.lang-dropdown{
  position:absolute; top:calc(100% + 10px); right:0; min-width:180px;
  background:var(--white); border:1px solid var(--line); border-radius:14px;
  box-shadow:var(--shadow-lg); padding:8px; opacity:0; visibility:hidden; transform:translateY(6px);
  transition:opacity .18s ease, transform .18s ease, visibility .18s ease; z-index:950;
}
.lang-switcher.open .lang-dropdown{ opacity:1; visibility:visible; transform:translateY(0); }
.lang-option{
  display:flex; align-items:center; justify-content:space-between; width:100%;
  padding:10px 12px; border-radius:9px; border:none; background:none; cursor:pointer;
  font-family:inherit; font-size:14px; font-weight:500; color:var(--ink); text-align:left;
}
.lang-option:hover{ background:var(--paper-dim); }
.lang-option.active{ color:var(--ember-deep); font-weight:700; }
.lang-option .lo-check{ width:14px; height:14px; opacity:0; }
.lang-option.active .lo-check{ opacity:1; }
.lang-btn-mobile{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:12px 14px; border:1.5px solid var(--line); border-radius:12px; margin:14px 0;
}
.lang-btn-mobile select{
  border:none; background:none; font-family:inherit; font-weight:600; font-size:14px; color:var(--ink);
}
@media (max-width:1024px){ .lang-switcher{ display:none; } }

/* ============================================================
   Popup enquiry modal
   ============================================================ */
#popupOverlay{
  position:fixed; inset:0; z-index:3000; background:rgba(28,43,58,0.55);
  backdrop-filter:blur(3px); display:flex; align-items:center; justify-content:center; padding:20px;
  opacity:0; visibility:hidden; transition:opacity .25s ease, visibility .25s ease;
}
#popupOverlay.show{ opacity:1; visibility:visible; }
.popup-card{
  position:relative; width:100%; max-width:460px; background:var(--paper);
  border-radius:var(--radius); box-shadow:var(--shadow-lg); padding:34px 30px 28px;
  transform:translateY(24px) scale(.97); transition:transform .3s cubic-bezier(.22,.9,.3,1);
  max-height:88vh; overflow-y:auto;
}
#popupOverlay.show .popup-card{ transform:translateY(0) scale(1); }
.popup-close{
  position:absolute; top:14px; right:14px; width:34px; height:34px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; background:var(--paper-dim);
  color:var(--ink-soft); transition:background .2s ease, transform .2s ease;
}
.popup-close:hover{ background:var(--line); transform:rotate(90deg); }
.popup-card h3{ font-size:23px; font-weight:600; margin:6px 0 8px; padding-right:20px; }
.popup-card > p{ color:var(--charcoal-soft); font-size:14.5px; margin-bottom:20px; }
.popup-card .field{ margin-bottom:14px; }
.popup-card .form-success{ margin-top:10px; }
