/* =====================================================================
   GEOBIO COMMUNITY — luxury geobiology brand
   Pixel-accurate rebuild from Canva reference
   ===================================================================== */

:root{
  --ivory:#f5f1e8;
  --ivory-2:#efe9db;
  --gold:#c8a86b;
  --gold-deep:#b1894b;
  --teal:#2faeb0;
  --teal-deep:#1f7e80;
  --dark:#16201f;          /* deep charcoal green for dark bands */
  --dark-2:#1d2a28;
  --ink:#2c2c2c;
  --ink-soft:#5a5a57;
  --muted:#8a877f;
  --line:#ddd5c4;
  --white:#ffffff;

  --serif:"Cormorant Garamond",Garamond,"Times New Roman",serif;
  --sans:"Inter","Helvetica Neue",Arial,sans-serif;

  --maxw:1180px;
  --gut:clamp(20px,5vw,64px);
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:var(--sans);
  background:var(--ivory);
  color:var(--ink);
  font-size:16px;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}

/* ---------- typographic helpers ---------- */
.serif{font-family:var(--serif)}
.eyebrow{
  font-family:var(--sans);
  text-transform:uppercase;
  letter-spacing:.32em;
  font-size:.72rem;
  font-weight:500;
  color:var(--gold);
}
.eyebrow--light{color:var(--gold)}
h1,h2,h3,h4{font-family:var(--serif);font-weight:500;line-height:1.12;letter-spacing:.005em}
.h-xl{font-size:clamp(2.4rem,5.4vw,4.2rem)}
.h-lg{font-size:clamp(2rem,4vw,3.1rem)}
.h-md{font-size:clamp(1.5rem,2.6vw,2.1rem)}
p{color:var(--ink-soft)}
.lead{font-size:1.06rem;color:var(--ink-soft)}

.wrap{width:70%;max-width:1680px;margin-inline:auto;padding-inline:0}
.section{padding-block:clamp(64px,9vw,128px)}
.section--tight{padding-block:clamp(48px,6vw,84px)}
.center{text-align:center}
.gold{color:var(--gold)}
.teal{color:var(--teal)}

.g-icon{width:34px;height:34px;display:block}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;align-items:center;gap:.6em;
  font-family:var(--sans);
  text-transform:uppercase;letter-spacing:.22em;font-size:.72rem;font-weight:600;
  padding:1.05em 2.2em;border:1px solid var(--gold);
  color:var(--gold);background:transparent;border-radius:2px;
  transition:.35s ease;cursor:pointer;
}
.btn:hover{background:var(--gold);color:#fff}
.btn--solid{background:var(--gold);color:#fff}
.btn--solid:hover{background:var(--gold-deep);border-color:var(--gold-deep)}
.btn--light{border-color:rgba(255,255,255,.7);color:#fff}
.btn--light:hover{background:#fff;color:var(--ink);border-color:#fff}

/* =====================================================================
   HEADER
   ===================================================================== */
.brand{display:inline-flex;align-items:center;gap:.7rem}
.brand__mark{width:72px;height:72px;object-fit:contain}
.brand__txt{display:flex;flex-direction:column;line-height:.95}
.brand__txt b{font-family:var(--serif);font-weight:500;font-size:1.62rem;letter-spacing:.16em;color:var(--gold);text-transform:uppercase}
.brand__txt span{font-family:var(--sans);font-size:.62rem;letter-spacing:.42em;color:var(--ink-soft);text-transform:uppercase;padding-left:.1em}

/* global sticky header (same on every page — matches Canva) */
.site-header{
  position:sticky;top:0;z-index:50;
  background:var(--ivory);
  transition:box-shadow .35s ease;
}
.site-header.scrolled{box-shadow:0 10px 30px -18px rgba(0,0,0,.45)}
.site-header .hdr-inner{display:flex;align-items:center;justify-content:space-between;padding-block:7px}
.hdr-nav{display:flex;align-items:center;gap:clamp(22px,3vw,48px)}
.lang-switch{display:inline-flex;align-items:center;gap:.45rem;font-family:var(--sans);font-size:.72rem;letter-spacing:.18em;text-transform:uppercase}
.lang-switch__link{color:var(--ink-soft);padding:.2em 0;transition:color .3s}
.lang-switch__link:hover,.lang-switch__link.is-active{color:var(--gold)}
.lang-switch__sep{color:var(--gold);opacity:.55;font-size:.85rem;line-height:1}
.hdr-ring{display:inline-flex;align-items:center}
.hdr-ring svg{display:block}
.nav{display:flex;align-items:center;gap:clamp(18px,2.4vw,40px)}
.nav a{
  font-family:var(--sans);text-transform:uppercase;letter-spacing:.2em;
  font-size:.74rem;font-weight:500;color:var(--ink);padding:.4em 0;position:relative;
  transition:color .3s;
}
.nav a:hover{color:var(--gold)}
.nav a.is-active{color:var(--gold)}
.nav a.is-active::after{content:"";position:absolute;left:0;right:0;bottom:-2px;height:1px;background:var(--gold)}

.nav-toggle{display:none;background:none;border:0;cursor:pointer;flex-direction:column;gap:5px;padding:6px;color:var(--ink)}
.nav-toggle span{width:24px;height:1.5px;background:currentColor;display:block}

/* =====================================================================
   HERO
   ===================================================================== */
.hero{position:relative;min-height:clamp(560px,82vh,860px);display:flex;align-items:center;color:#fff;overflow:hidden}
.hero__bg{position:absolute;inset:0;z-index:-2}
.hero__bg img{width:100%;height:100%;object-fit:cover}
.hero::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(8,12,12,.45),rgba(8,12,12,.25) 40%,rgba(8,12,12,.55))}
.hero .wrap{position:relative}
.hero--center{text-align:center}
.hero--center .hero__inner{max-width:880px;margin:0 auto}
.hero__title{font-size:clamp(2.6rem,5.6vw,4.6rem);color:#fff;margin:.2em 0 .35em}
.hero__eyebrow{color:#fff;letter-spacing:.4em;font-size:.78rem;text-transform:uppercase;font-weight:400}
.hero__sub{color:rgba(255,255,255,.85);font-size:1.05rem;max-width:560px;margin:0 0 2em}
.hero--center .hero__sub{margin-inline:auto}
.hero__cta{margin-top:1.4em}

/* =====================================================================
   MISSION / intro statement
   ===================================================================== */
.statement{position:relative;text-align:center;overflow:hidden}
.statement__deco{position:absolute;top:50%;right:-120px;transform:translateY(-50%);width:360px;opacity:.22;pointer-events:none}
.statement .eyebrow{font-size:18px;letter-spacing:.18em}

/* Home page section labels */
.page-home .eyebrow,
.page-institute .eyebrow,
.page-magrav .eyebrow,
.page-about .eyebrow{font-size:18px}
.page-institute .hero__eyebrow,
.page-magrav .hero__eyebrow{font-size:18px}
.page-home .detail__cols h3,
.page-institute .detail__cols h3,
.page-magrav .detail__cols h3,
.page-about .detail__cols h3{font-size:18px}
.statement .lead-quote{font-family:var(--serif);font-size:clamp(1.6rem,3vw,2.5rem);line-height:1.3;color:var(--ink);max-width:880px;margin:1.1rem auto 0}
.statement .lead-quote em{color:var(--gold);font-style:italic}
.statement .sub{margin-top:1.6rem;max-width:620px;margin-inline:auto}

/* =====================================================================
   GRID OF FEATURES (benefits / values / pillars)
   ===================================================================== */
.section-head{text-align:center;max-width:760px;margin:0 auto clamp(40px,5vw,68px)}
.section-head h2{margin-top:.5rem}
.section-head p{margin-top:1rem}

.feature-grid{display:grid;gap:clamp(28px,3.4vw,52px)}
.feature-grid--3{grid-template-columns:repeat(3,1fr)}
.feature-grid--4{grid-template-columns:repeat(4,1fr)}
.feature-grid--6{grid-template-columns:repeat(3,1fr)}
.feature{text-align:center}
.feature__ico{
  width:74px;height:74px;border-radius:50%;border:1px solid var(--line);
  display:flex;align-items:center;justify-content:center;margin:0 auto 1.3rem;color:var(--gold);
}
.feature h3{font-size:1.18rem;color:var(--ink);margin-bottom:.5rem;font-family:var(--serif)}
.feature h3.caps{font-family:var(--sans);font-weight:600;font-size:.92rem;letter-spacing:.12em;text-transform:uppercase}
.feature p{font-size:.93rem}

/* benefits: 6 across with image under each point */
.benefits{display:grid;grid-template-columns:repeat(6,1fr);gap:16px}
.benefits--full{width:100%;gap:0}
.benefits--full .benefit{padding:0}
.benefits--full .benefit h3.caps,.benefits--full .benefit>p{padding-inline:12px}
.benefits--full .benefit__img{padding-top:1.4rem}
.benefits--full .benefit__img img{border-radius:0;aspect-ratio:4/5}
.benefit{display:flex;flex-direction:column;text-align:center}
.benefit .feature__ico{width:62px;height:62px;margin-bottom:1rem}
.benefit .feature__ico .g-icon{width:28px;height:28px}
.benefit h3.caps{font-family:var(--sans);font-weight:600;font-size:.78rem;letter-spacing:.1em;text-transform:uppercase;color:var(--ink);margin-bottom:.45rem}
.benefit p{font-size:.82rem;line-height:1.55}
.benefit__img{margin-top:auto;padding-top:1.4rem;overflow:hidden}
.benefit__img img{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:2px;transition:transform .6s ease}
.benefit__img:hover img{transform:scale(1.05)}

/* =====================================================================
   GALLERY strip
   ===================================================================== */
.gallery{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}
.gallery figure{position:relative;aspect-ratio:3/4;overflow:hidden}
.gallery img{width:100%;height:100%;object-fit:cover;transition:transform .6s ease}
.gallery figure:hover img{transform:scale(1.05)}

/* =====================================================================
   SPLIT (approach / applications)
   ===================================================================== */
.split{display:grid;grid-template-columns:1fr 1fr;gap:clamp(40px,6vw,90px);align-items:center}
.split--text p{margin-top:1.1rem}
.split__list{display:flex;flex-direction:column;gap:1.7rem;margin-top:.5rem}
.split-item{display:grid;grid-template-columns:auto 1fr;gap:1.1rem;align-items:start}
.split-item__ico{color:var(--gold);width:40px;flex:none}
.split-item__ico .g-icon{width:40px;height:40px}
.split-item h4{font-family:var(--sans);text-transform:uppercase;letter-spacing:.13em;font-size:.86rem;font-weight:600;color:var(--ink);margin-bottom:.35rem}
.split-item p{font-size:.93rem;margin:0}
.split__media img{width:100%;border-radius:3px;box-shadow:0 30px 60px -30px rgba(0,0,0,.35)}

/* checklist (dark applications) */
.checklist{list-style:none;display:grid;gap:1.05rem;margin-top:1.6rem}
.checklist li{display:grid;grid-template-columns:auto 1fr;gap:.9rem;align-items:start}
.checklist .g-icon{width:22px;height:22px;color:var(--gold);margin-top:.25rem}

/* =====================================================================
   DARK BAND (confidentiality / philosophy / quotes)
   ===================================================================== */
.band-dark{background:var(--dark);color:#fff;text-align:center;position:relative}
.band-dark .eyebrow{color:var(--gold)}
.band-dark h2{color:#fff;margin-top:.6rem}
.band-dark p{color:rgba(255,255,255,.78)}
.band-dark .quote{font-family:var(--serif);font-size:clamp(1.5rem,2.8vw,2.3rem);line-height:1.35;max-width:900px;margin:1rem auto 0;color:#fff}
.band-dark .quote em{color:var(--gold);font-style:italic}

/* image quote band */
.band-img{position:relative;color:#fff;text-align:center;overflow:hidden}
.band-img__bg{position:absolute;inset:0;z-index:-2}
.band-img__bg img{width:100%;height:100%;object-fit:cover}
.band-img::after{content:"";position:absolute;inset:0;z-index:-1;background:rgba(10,16,18,.55)}
.band-img .quote{font-family:var(--serif);font-size:clamp(1.6rem,3vw,2.6rem);line-height:1.35;max-width:920px;margin:0 auto;color:#fff}
.band-img .quote em{color:var(--gold);font-style:italic}

/* =====================================================================
   PROGRAM CARDS (institute)
   ===================================================================== */
.cards{display:grid;grid-template-columns:repeat(2,1fr);gap:clamp(28px,3vw,44px)}
.card{background:#fff;border:1px solid var(--line);border-radius:4px;overflow:hidden;display:flex;flex-direction:column;transition:.4s ease}
.card:hover{transform:translateY(-6px);box-shadow:0 30px 50px -28px rgba(0,0,0,.3)}
.card__media{position:relative;aspect-ratio:16/10;overflow:hidden}
.card__media img{width:100%;height:100%;object-fit:cover}
.card__num{position:absolute;top:16px;left:16px;width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.92);color:var(--gold);font-family:var(--serif);font-size:1.2rem;display:flex;align-items:center;justify-content:center}
.card__body{padding:clamp(24px,2.4vw,36px);display:flex;flex-direction:column;flex:1}
.card__meta{display:flex;gap:1.4rem;font-size:.72rem;text-transform:uppercase;letter-spacing:.14em;color:var(--gold);margin-bottom:.9rem}
.card h3{font-size:1.45rem;color:var(--ink);margin-bottom:.7rem}
.card p{font-size:.93rem;margin-bottom:1.4rem}
.card .btn{margin-top:auto;align-self:flex-start}

/* =====================================================================
   DETAIL / SEO multi column
   ===================================================================== */
.detail{background:var(--ivory-2)}
.detail h2{color:var(--ink)}
.detail__intro{max-width:880px;margin:1.2rem auto 0;text-align:center}
.detail__cols{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(30px,4vw,56px);margin-top:clamp(40px,5vw,70px)}
.detail__cols h3{font-family:var(--sans);text-transform:uppercase;letter-spacing:.12em;font-size:.86rem;font-weight:600;color:var(--gold);margin-bottom:1rem}
.detail__cols ul{list-style:none}
.detail__cols li{position:relative;padding-left:1.2rem;font-size:.92rem;color:var(--ink-soft);margin-bottom:.55rem}
.detail__cols li::before{content:"";position:absolute;left:0;top:.7em;width:6px;height:6px;background:var(--gold);border-radius:50%}
.detail__cols p{font-size:.92rem}

/* =====================================================================
   FOUNDER (about)
   ===================================================================== */
.founder{display:grid;grid-template-columns:.85fr 1fr;gap:clamp(40px,6vw,88px);align-items:center}
.founder__img img{width:100%;border-radius:3px;box-shadow:0 30px 60px -30px rgba(0,0,0,.4)}
.founder__sig{font-family:var(--serif);font-style:italic;font-size:1.3rem;color:var(--gold);margin-top:1.4rem}

/* =====================================================================
   FAQ
   ===================================================================== */
.faq{max-width:860px;margin:0 auto}
.faq__item{border-bottom:1px solid var(--line)}
.faq__q{width:100%;text-align:left;background:none;border:0;cursor:pointer;
  display:flex;justify-content:space-between;align-items:center;gap:1.5rem;
  padding:1.5rem 0;font-family:var(--serif);font-size:1.25rem;color:var(--ink);}
.faq__q:hover{color:var(--gold)}
.faq__sign{flex:none;width:26px;height:26px;position:relative}
.faq__sign::before,.faq__sign::after{content:"";position:absolute;background:var(--gold);transition:.3s}
.faq__sign::before{top:50%;left:0;right:0;height:1.5px;transform:translateY(-50%)}
.faq__sign::after{left:50%;top:0;bottom:0;width:1.5px;transform:translateX(-50%)}
.faq__item.open .faq__sign::after{transform:translateX(-50%) scaleY(0)}
.faq__a{max-height:0;overflow:hidden;transition:max-height .45s ease}
.faq__a p{padding:0 0 1.6rem;font-size:.96rem}

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer{background:var(--dark);color:rgba(255,255,255,.72)}
.footer__cta{text-align:center;padding-block:clamp(48px,6vw,84px);border-bottom:1px solid rgba(255,255,255,.1)}
.footer__cta .eyebrow{font-size:18px}
.footer__cta h2{color:#fff;max-width:680px;margin:0 auto 1.6rem}
.footer__main{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:clamp(30px,4vw,60px);padding-block:clamp(48px,5vw,72px)}
.footer .brand__txt b{color:var(--gold)}
.footer .brand__txt span{color:rgba(255,255,255,.6)}
.footer__col h4{font-family:var(--sans);text-transform:uppercase;letter-spacing:.16em;font-size:.74rem;font-weight:600;color:var(--gold);margin-bottom:1.1rem}
.footer__main .footer__col:nth-child(2) h4{font-size:18px}
.footer__col p,.footer__col a{font-size:.92rem;color:rgba(255,255,255,.72);display:block;margin-bottom:.55rem}
.footer__col a:hover{color:var(--gold)}
.footer__blurb{font-size:.92rem;margin-top:1.2rem;max-width:300px}
.footer__bottom{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;
  padding-block:1.6rem;border-top:1px solid rgba(255,255,255,.1);font-size:.78rem;color:rgba(255,255,255,.55)}
.footer__bottom nav{display:flex;gap:1.6rem}
.footer__bottom a:hover{color:var(--gold)}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
/* ===== MAGRAV PAGE ===== */
/* full-bleed light hero (device on ivory, dark text) */
.hero--light{color:var(--ink)}
.hero--light::after{display:none}
.hero--light .hero__eyebrow{color:var(--gold);letter-spacing:.32em}
.hero--light .hero__title{color:var(--ink)}
.hero--light .hero__sub{color:var(--muted)}
.hero--light .btn{border-color:var(--gold);color:var(--gold-deep)}
.hero--light .btn:hover{background:var(--gold);color:#fff}
.hero--light .hero__bg::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(235,225,217,.92) 0%,rgba(235,225,217,.4) 38%,rgba(235,225,217,0) 58%)}
.hero__title--mega{font-size:clamp(3.4rem,9vw,7rem);letter-spacing:.05em;line-height:.95;margin:.18em 0 .28em}
.mg-hero__inner{max-width:560px}
.mg-hero__sub{font-family:var(--sans);text-transform:uppercase;letter-spacing:.07em;font-weight:600;font-size:clamp(.92rem,1.1vw,1.05rem);color:var(--ink);margin:0 0 1.3rem;line-height:1.5}

.feature-row5{display:grid;grid-template-columns:repeat(5,1fr);gap:clamp(18px,2.4vw,40px)}

/* full-bleed applications band (photo bleeds to right edge) */
.mg-apps{position:relative;overflow:hidden;text-align:left;padding-block:clamp(60px,8vw,120px)}
.mg-apps__media{position:absolute;top:0;right:0;bottom:0;width:50%;z-index:1}
.mg-apps__media::before{content:"";position:absolute;inset:0;z-index:2;background:linear-gradient(90deg,#16201f,rgba(22,32,31,0) 24%)}
.mg-apps__media img{width:100%;height:100%;object-fit:cover;object-position:center}
.mg-apps__inner{position:relative;z-index:3}
.mg-apps__text{max-width:46%}

.mg-quote{display:grid;grid-template-columns:1fr 1fr;gap:clamp(40px,6vw,92px);align-items:center}
.mg-quote__q{font-size:clamp(1.6rem,3vw,2.6rem);line-height:1.32;color:var(--ink)}
.mg-quote__features{display:flex;flex-direction:column;gap:1.9rem}
.mg-qf{display:grid;grid-template-columns:auto 1fr;gap:1.1rem;align-items:start}
.mg-qf__ico{color:var(--gold)}
.mg-qf__ico .g-icon{width:38px;height:38px;stroke-width:1.1}
.mg-qf h4{font-family:var(--sans);text-transform:uppercase;letter-spacing:.12em;font-size:.82rem;font-weight:600;margin-bottom:.4rem;color:var(--ink)}
.mg-qf p{font-size:.9rem;color:var(--muted)}

.detail__cols--4{grid-template-columns:repeat(4,1fr)}

/* ===== INSTITUTE PAGE ===== */
.hero__text{color:rgba(255,255,255,.82);font-size:.96rem;line-height:1.65;max-width:430px;margin:0 0 1.8em}
.btn--pill{border-radius:999px;padding:.85em 2em}

/* philosophy band */
.inst-philo{text-align:left;padding-block:clamp(40px,5vw,68px)}
.inst-philo__inner{display:grid;grid-template-columns:auto 1fr;gap:clamp(24px,3vw,48px);align-items:center}
.inst-philo__ico{width:88px;height:88px;border:1px solid rgba(200,168,107,.55);border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--gold);flex:none}
.inst-philo__ico .g-icon{width:40px;height:40px;stroke-width:1}
.inst-philo__text h2{color:#fff;font-size:clamp(1.5rem,2.6vw,2.1rem);margin-bottom:.5rem}
.inst-philo__text p{color:rgba(255,255,255,.72);max-width:620px;font-size:.96rem}

/* programs split header */
.inst-prog__head{display:grid;grid-template-columns:1fr 1fr;gap:clamp(24px,4vw,60px);align-items:end;margin-bottom:clamp(36px,4vw,56px)}
.inst-prog__sub{color:var(--muted);font-size:.98rem;max-width:380px;justify-self:end}

/* 4-up program cards */
.cards--4{grid-template-columns:repeat(4,1fr);gap:clamp(20px,1.8vw,28px)}
.card__media--prog{aspect-ratio:800/569}
.card__rule{display:block;width:38px;height:2px;background:var(--gold);margin:0 0 1rem}
.card__meta span{display:inline-flex;align-items:center;gap:.4rem}
.card__meta .g-icon{width:15px;height:15px;color:var(--gold)}

/* features trio bordered box */
.inst-feats{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(28px,3.5vw,56px);
  margin-top:clamp(40px,5vw,70px);padding:clamp(28px,3.5vw,48px);
  border:1px solid var(--line);border-radius:6px;background:var(--ivory-2)}
.inst-feat{display:grid;grid-template-columns:auto 1fr;gap:1.1rem;align-items:start}
.inst-feat__ico{width:54px;height:54px;border:1px solid rgba(200,168,107,.5);border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--gold);flex:none}
.inst-feat__ico .g-icon{width:26px;height:26px}
.inst-feat h4{font-family:var(--sans);text-transform:uppercase;letter-spacing:.12em;font-size:.82rem;font-weight:600;color:var(--ink);margin-bottom:.5rem}
.inst-feat p{font-size:.9rem;color:var(--muted)}

/* CTA band shorter than magrav apps */
.inst-cta{padding-block:clamp(46px,5vw,72px)}
.inst-cta__media{width:34%}
.inst-cta__text{max-width:60%}
.inst-cta__text .btn{margin-top:1.6rem}

@media(max-width:1280px){
  .wrap{width:80%}
}
@media(max-width:980px){
  .wrap{width:86%}
  .inst-prog__head{grid-template-columns:1fr;gap:14px}
  .inst-prog__sub{justify-self:start}
  .cards--4{grid-template-columns:repeat(2,1fr)}
  .inst-feats{grid-template-columns:1fr}
  .feature-grid--6,.feature-grid--3,.feature-grid--4{grid-template-columns:repeat(2,1fr)}
  .benefits{grid-template-columns:repeat(3,1fr);gap:24px}
  .feature-row5{grid-template-columns:repeat(3,1fr);gap:28px}
  .detail__cols.detail__cols--4{grid-template-columns:repeat(2,1fr)}
  .split,.founder{grid-template-columns:1fr}
  .founder__img{max-width:460px}
  .cards{grid-template-columns:1fr}
  .detail__cols{grid-template-columns:1fr;gap:34px}
  .footer__main{grid-template-columns:1fr 1fr}
  .gallery{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:760px){
  .wrap{width:88%}
  .nav{position:fixed;inset:0 0 0 auto;width:min(78vw,320px);background:var(--dark);
    flex-direction:column;align-items:flex-start;justify-content:center;padding:40px;
    transform:translateX(100%);transition:transform .4s ease;z-index:60;gap:1.4rem}
  .nav.open{transform:translateX(0)}
  .nav a{color:#fff !important;font-size:1rem}
  .nav-toggle{display:flex;color:inherit;z-index:61}
  .hdr-ring{display:none}
  .lang-switch{margin-left:auto;margin-right:.5rem}
  .brand__mark{width:60px;height:60px}
  .benefits{grid-template-columns:repeat(2,1fr)}
  .feature-row5{grid-template-columns:repeat(2,1fr)}
  .detail__cols--4{grid-template-columns:1fr}
  .mg-quote{grid-template-columns:1fr;gap:34px}
  .mg-apps__media{position:relative;width:100%;height:260px}
  .mg-apps__media::before{display:none}
  .mg-apps__text{max-width:100%}
  .mg-apps__inner{margin-top:30px}
  .inst-cta__media{width:100%}
  .inst-cta__text{max-width:100%}
  .inst-philo__inner{grid-template-columns:1fr;text-align:center;justify-items:center}
  .cards--4{grid-template-columns:1fr}
  .hero--light .hero__bg img{object-position:72% center}
  .hero--light .hero__bg::after{background:linear-gradient(180deg,rgba(235,225,217,.55),rgba(235,225,217,.82))}
  .footer__main{grid-template-columns:1fr}
  .gallery{grid-template-columns:repeat(2,1fr)}
  .footer__bottom{flex-direction:column;text-align:center}
}

/* ===== ACCOUNT / MEMBER AREA ===== */
.nav__login,.nav__account{color:inherit}
.nav__login:hover,.nav__account:hover{color:var(--gold-deep)}
.auth-wrap{min-height:68vh;display:flex;align-items:center;justify-content:center}
.auth-card{width:100%;max-width:460px;background:#fff;border:1px solid var(--line);border-radius:6px;padding:clamp(28px,4vw,48px);box-shadow:0 30px 60px -42px rgba(0,0,0,.28)}
.auth-card h1{font-size:clamp(1.7rem,3vw,2.3rem);margin:.2rem 0 .3rem}
.auth-sub{color:var(--muted);margin-bottom:1.6rem;font-size:.94rem}
.field{margin-bottom:1.05rem}
.field label{display:block;font-family:var(--sans);font-size:.74rem;letter-spacing:.08em;text-transform:uppercase;color:var(--ink);margin-bottom:.4rem}
.field input,.field select,.field textarea{width:100%;padding:.82em 1em;border:1px solid var(--line);border-radius:4px;font-family:var(--sans);font-size:.95rem;background:var(--ivory);color:var(--ink)}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--gold);background:#fff}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.auth-alert{background:#fbeaea;border:1px solid #e7b8b8;color:#8a2b2b;padding:.8em 1em;border-radius:4px;font-size:.86rem;margin-bottom:1.2rem}
.auth-note{background:#eef6f0;border:1px solid #bcd9c6;color:#2f6b45;padding:.8em 1em;border-radius:4px;font-size:.86rem;margin-bottom:1.2rem}
.auth-foot{margin-top:1.4rem;font-size:.9rem;color:var(--muted);text-align:center}
.auth-foot a{color:var(--gold-deep);text-decoration:underline}
.btn--full{width:100%;justify-content:center;text-align:center}

.acc-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;flex-wrap:wrap;margin-bottom:clamp(26px,4vw,44px)}
.acc-subhead{margin:clamp(40px,5vw,64px) 0 1.4rem}
.course-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(20px,2.4vw,30px)}
.course-card{background:#fff;border:1px solid var(--line);border-radius:6px;overflow:hidden;display:flex;flex-direction:column;transition:.35s ease}
.course-card:hover{transform:translateY(-5px);box-shadow:0 26px 46px -30px rgba(0,0,0,.3)}
.course-card__media{aspect-ratio:16/10;overflow:hidden;background:var(--ivory-2)}
.course-card__media img{width:100%;height:100%;object-fit:cover}
.course-card__body{padding:clamp(18px,2vw,26px);display:flex;flex-direction:column;flex:1}
.course-card__body h3{font-size:1.18rem;margin-bottom:.35rem}
.course-card__cat{font-family:var(--sans);font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;color:var(--gold-deep);margin-bottom:.5rem}
.course-card__desc{font-size:.88rem;color:var(--muted);margin-bottom:1rem}
.course-card__price{font-family:var(--serif);font-size:1.4rem;color:var(--gold-deep);margin:auto 0 1rem}
.course-card .btn{margin-top:auto}
.badge-enrolled{display:inline-block;background:#eef6f0;color:#2f6b45;border:1px solid #bcd9c6;font-family:var(--sans);font-size:.68rem;letter-spacing:.08em;text-transform:uppercase;padding:.32em .7em;border-radius:999px;margin-bottom:1rem}
.empty-state{background:var(--ivory-2);border:1px dashed var(--line);border-radius:6px;padding:clamp(28px,4vw,48px);text-align:center;color:var(--muted)}

.lesson-list{display:flex;flex-direction:column;gap:12px;margin-top:1.6rem}
.lesson{display:flex;gap:16px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:6px;padding:15px 18px}
.lesson__num{width:34px;height:34px;flex:none;border-radius:50%;background:var(--ivory-2);color:var(--gold-deep);display:flex;align-items:center;justify-content:center;font-family:var(--serif)}
.lesson__main{flex:1;min-width:0}
.lesson__main h4{font-size:1rem;margin-bottom:.12rem}
.lesson__main p{font-size:.84rem;color:var(--muted)}
.lesson__tag{font-family:var(--sans);font-size:.7rem;letter-spacing:.06em;text-transform:uppercase;color:var(--gold-deep)}
.lesson__lock{color:var(--muted)}
.video-frame{width:100%;aspect-ratio:16/9;background:#000;border-radius:6px;overflow:hidden;margin-bottom:1.2rem}
.video-frame video,.video-frame iframe{width:100%;height:100%;display:block;border:0}
.locked-box{background:var(--ivory-2);border:1px solid var(--line);border-radius:6px;padding:clamp(24px,3vw,40px);text-align:center}
.checkout-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:clamp(28px,4vw,56px);align-items:start}
.checkout-summary{background:#fff;border:1px solid var(--line);border-radius:6px;padding:clamp(22px,3vw,34px)}
.checkout-summary .line{display:flex;justify-content:space-between;padding:.6rem 0;border-bottom:1px solid var(--line)}
.checkout-summary .total{font-family:var(--serif);font-size:1.5rem;color:var(--gold-deep)}
#paypal-button-container{margin-top:1.4rem}

@media(max-width:980px){.course-grid{grid-template-columns:repeat(2,1fr)}.checkout-grid{grid-template-columns:1fr}}
@media(max-width:680px){.course-grid{grid-template-columns:1fr}.field-row{grid-template-columns:1fr}}

/* ===== BACK TO TOP ===== */
.back-top{
  position:fixed;right:clamp(16px,2.5vw,28px);bottom:clamp(16px,2.5vw,28px);z-index:45;
  width:48px;height:48px;border-radius:50%;
  border:1px solid var(--gold);background:var(--ivory);color:var(--gold-deep);
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;padding:0;
  box-shadow:0 12px 28px -12px rgba(0,0,0,.35);
  opacity:0;visibility:hidden;transform:translateY(12px);pointer-events:none;
  transition:opacity .35s ease,visibility .35s ease,transform .35s ease,background .3s ease,color .3s ease,border-color .3s ease;
}
.back-top svg{width:20px;height:20px}
.back-top.is-visible{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}
.back-top:hover{background:var(--gold);color:#fff;border-color:var(--gold)}
.back-top:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
