:root{
  --ivory:#faf7f1;
  --ivory-2:#f3e7d0;
  --cream:#fffaf1;
  --paper:#ffffff;
  --ink:#231c1a;
  --ink-2:#4a3f3a;
  --muted:#71665c;
  --red:#a71427;
  --red-deep:#8b0f1f;
  --gold:#e2b044;
  --gold-2:#d49b2c;
  --gold-3:#f8df92;
  --gold-rich:#c89137;
  --charcoal:#171518;
  --charcoal-2:#1f1b22;
  --charcoal-3:#282329;
  --sand:#e7dccc;
  --sand-2:#e8dfd2;
  --sand-3:#bca274;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--ivory);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased;line-height:1.6}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
p{color:var(--muted);line-height:1.75}
button{font:inherit}

.serif{font-family:"Playfair Display",Georgia,"Times New Roman",serif;letter-spacing:-0.01em}

.goldline{height:5px;background:linear-gradient(90deg,var(--red),var(--gold-2) 50%,var(--gold-3))}

/* ============ Header ============ */
.site-header{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:18px max(5%,22px);background:var(--paper);border-bottom:1px solid var(--sand);flex-wrap:wrap}
.site-header.dark{background:var(--charcoal);border-bottom-color:#2d262f;color:#f3e7d0}
.brand{display:flex;align-items:center;gap:22px;min-width:0}
.brand .logo{height:66px;width:auto;object-fit:contain}
.site-header.dark .brand .logo{filter:drop-shadow(0 0 2px rgba(246,213,138,.9)) drop-shadow(0 0 1px rgba(255,255,255,.85))}
.brand .divider{width:2px;height:60px;background:linear-gradient(180deg,var(--gold-3),var(--gold-rich));border-radius:2px;flex:0 0 2px}
.brand .mark{font-family:"Playfair Display",Georgia,serif;font-weight:700;line-height:1;color:var(--ink)}
.site-header.dark .brand .mark{color:#f6ecd5}
.brand .mark .top{font-size:12px;letter-spacing:.32em;color:var(--gold-rich);font-family:Inter,sans-serif;font-weight:800;text-transform:uppercase;margin-bottom:4px}
.brand .mark .line{font-size:22px;letter-spacing:.06em}
.site-nav{display:flex;align-items:center;gap:30px;flex-wrap:wrap}
.site-nav a{font-size:14px;font-weight:600;color:var(--ink-2);padding:6px 2px;border-bottom:2px solid transparent;transition:border-color .2s,color .2s}
.site-header.dark .site-nav a{color:#d2c7b1}
.site-nav a:hover{color:var(--red)}
.site-header.dark .site-nav a:hover{color:var(--gold)}
.site-nav a.active{border-bottom-color:var(--red);color:var(--ink)}
.site-header.dark .site-nav a.active{border-bottom-color:var(--gold);color:#fff}
.menu-toggle{display:none;background:none;border:0;cursor:pointer;color:inherit;font-size:28px}

/* ============ Hero (home) ============ */
.hero{display:grid;grid-template-columns:1.1fr .9fr;gap:40px;align-items:center;padding:70px max(5%,22px);background:linear-gradient(130deg,var(--cream),var(--ivory-2))}
.hero-copy .eyebrow{font-size:12px;letter-spacing:.3em;color:var(--gold-rich);font-weight:800;text-transform:uppercase;margin-bottom:14px}
.hero-copy h1{font-family:"Playfair Display",serif;font-weight:700;font-size:clamp(44px,5.6vw,80px);line-height:1.02;margin:0 0 22px;letter-spacing:-0.02em}
.hero-copy h1 em{font-style:italic;color:var(--red);font-weight:700}
.hero-copy .lede{font-size:18px;color:var(--ink-2);max-width:560px;margin:0 0 28px}
.divider-gold{width:160px;height:3px;background:linear-gradient(90deg,var(--gold),var(--gold-rich));margin:22px 0;border-radius:3px}
.hero-ctas{display:flex;gap:14px;flex-wrap:wrap}

.btn{display:inline-flex;align-items:center;gap:10px;padding:14px 24px;border-radius:8px;font-weight:700;font-size:14px;border:0;cursor:pointer;transition:transform .15s,box-shadow .15s;letter-spacing:.02em}
.btn:hover{transform:translateY(-2px);box-shadow:0 10px 25px rgba(0,0,0,.14)}
.btn .arrow{transition:transform .2s}
.btn:hover .arrow{transform:translateX(3px)}
.btn-red{background:linear-gradient(180deg,var(--red),var(--red-deep));color:#fff}
.btn-gold{background:linear-gradient(180deg,var(--gold),var(--gold-rich));color:#241700}
.btn-outline{background:transparent;color:inherit;border:1px solid currentColor}
.btn-lock{background:linear-gradient(180deg,var(--red),var(--red-deep));color:#fff;padding:16px 28px;border-radius:12px;font-size:15px}

.hero-visual,.institute-visual{position:relative;min-height:460px;border-radius:24px;overflow:hidden;box-shadow:0 30px 60px rgba(60,32,10,.3)}
.hero-photo{width:100%;height:100%;object-fit:cover;object-position:center;position:absolute;inset:0;display:block}

/* ============ Pillars ============ */
.pillars{display:grid;grid-template-columns:repeat(4,1fr);gap:28px;padding:60px max(5%,22px);background:var(--paper)}
.pillar{text-align:center;padding:12px 10px}
.pillar .icon{width:52px;height:52px;margin:0 auto 14px;color:var(--gold-rich)}
.pillar h3{font-family:"Playfair Display",serif;font-size:19px;margin:0 0 8px;color:var(--ink);font-weight:700}
.pillar p{font-size:13.5px;color:var(--muted);margin:0;line-height:1.55;max-width:230px;margin-inline:auto}

/* ============ Programs ============ */
.section{padding:70px max(5%,22px);background:var(--paper)}
.section.alt{background:var(--ivory)}
.section-head{text-align:center;margin-bottom:42px}
.section-head h2{font-family:"Playfair Display",serif;font-size:clamp(32px,4vw,46px);margin:0;color:var(--ink);display:inline-flex;align-items:center;gap:22px}
.section-head .orn{width:80px;height:2px;background:linear-gradient(90deg,transparent,var(--gold-rich),transparent)}
.section-head .orn.right{background:linear-gradient(90deg,var(--gold-rich),var(--gold-3),transparent)}
.section-head .orn.left{background:linear-gradient(90deg,transparent,var(--gold-3),var(--gold-rich))}

.programs{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.program{background:var(--paper);border:1px solid var(--sand);border-radius:16px;overflow:hidden;box-shadow:0 8px 20px rgba(60,40,20,.06);transition:transform .2s,box-shadow .2s;color:inherit;display:flex;flex-direction:column}
.program:hover{transform:translateY(-4px);box-shadow:0 18px 40px rgba(60,40,20,.14)}
.program .tile{height:180px;position:relative;overflow:hidden;background:#2a1a10}
.program .tile img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}
.program .body{padding:22px 20px 24px}
.program h3{font-family:"Playfair Display",serif;font-size:20px;margin:0 0 8px;color:var(--ink);line-height:1.2}
.program p{font-size:13.5px;margin:0;color:var(--muted)}

/* ============ Institute page ============ */
body.dark{background:var(--charcoal);color:#f3e7d0}
body.dark p{color:#c9bca2}
.institute-hero{display:grid;grid-template-columns:1.1fr .9fr;gap:40px;align-items:center;padding:70px max(5%,22px);background:linear-gradient(135deg,#1a151d 0%,#0e0a11 100%)}
.institute-hero .eyebrow{font-size:12px;letter-spacing:.3em;color:var(--gold);text-transform:uppercase;font-weight:800;margin-bottom:14px}
.institute-hero h1{font-family:"Playfair Display",serif;margin:0;line-height:1.0;letter-spacing:-0.02em}
.institute-hero h1 .realign{display:block;color:var(--gold);font-size:clamp(38px,4.8vw,70px);font-weight:700}
.institute-hero h1 .inst{display:block;color:#f3e7d0;font-size:clamp(42px,5.2vw,78px);font-weight:700;margin-top:-6px}
.institute-hero .tagline{font-style:italic;color:var(--gold);font-size:clamp(18px,2vw,26px);margin:18px 0 0;font-family:"Playfair Display",serif;font-weight:500}
.institute-hero .divider-gold{background:linear-gradient(90deg,var(--gold),var(--gold-3));margin:22px 0}
.institute-hero .lede{font-size:17px;color:#c9bca2;max-width:560px;margin:0}

.institute-visual{background:#0e0a11;box-shadow:0 30px 60px rgba(0,0,0,.6)}

/* ============ Certificate card ============ */
.cert-wrap{padding:70px max(5%,22px) 40px;background:var(--charcoal);text-align:center}
.cert{max-width:900px;margin:0 auto;padding:36px 44px;border:3px solid var(--gold);border-radius:22px;background:linear-gradient(180deg,#f8edd3,#e5cb87 70%,#d2ad55);color:var(--ink);display:grid;grid-template-columns:120px 1fr;gap:28px;align-items:center;box-shadow:0 20px 50px rgba(0,0,0,.5),inset 0 0 0 2px rgba(255,255,255,.4)}
.cert .emblem{width:120px;height:120px;color:#6b3f0f}
.cert .body{text-align:left}
.cert .kicker{color:var(--red);font-size:13px;font-weight:800;letter-spacing:.3em;margin:0 0 6px}
.cert h2{font-family:"Playfair Display",serif;font-size:clamp(26px,3vw,40px);margin:0 0 14px;color:#2a1810;line-height:1.1}
.cert .stats{display:flex;flex-wrap:wrap;gap:16px;align-items:center;color:#6b3f0f;font-weight:700;font-size:14px}
.cert .stats span{position:relative;padding-right:16px}
.cert .stats span+span::before{content:"|";position:absolute;left:-10px;color:#b98320}
.cert-wrap .founder-cta{display:inline-flex;align-items:center;gap:10px;margin-top:32px}
.cert-wrap .founder-cta svg{width:20px;height:20px}

/* ============ Courses grid ============ */
.courses-wrap{padding:30px max(5%,22px) 80px;background:var(--charcoal);text-align:center}
.courses-wrap h2{font-family:"Playfair Display",serif;color:#fff;font-size:clamp(32px,4vw,46px);margin:0 0 10px}
.courses-wrap .sub{color:#c9bca2;max-width:680px;margin:0 auto 42px}
.courses{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;max-width:1300px;margin:0 auto}
.course{background:linear-gradient(180deg,#1a1519,#0e0b0f);border:1.5px solid rgba(234,176,68,.35);border-radius:16px;padding:26px 20px;color:#f3e7d0;display:flex;flex-direction:column;align-items:center;gap:12px;min-height:260px;position:relative;transition:border-color .2s,transform .2s}
.course:hover{border-color:var(--gold);transform:translateY(-3px)}
.course .ico{color:var(--gold);width:52px;height:52px}
.course .code{color:var(--gold);font-family:"Playfair Display",serif;font-size:26px;font-weight:700;margin-top:4px}
.course .title{font-family:Inter,sans-serif;font-weight:600;font-size:14px;color:#f3e7d0;text-align:center;line-height:1.35;flex:1}
.course .lock{display:inline-flex;align-items:center;gap:8px;background:linear-gradient(180deg,#8b0f1f,#5a0a15);color:#ffd9dc;border:1px solid #c4414f;border-radius:999px;padding:8px 18px;font-size:12px;font-weight:700;letter-spacing:.12em}
.course .lock svg{width:12px;height:12px}

/* ============ Founder preview ============ */
.founder-hero{padding:60px max(5%,22px) 30px;background:var(--charcoal);text-align:center;color:#f3e7d0}
.founder-hero .pill{display:inline-block;padding:7px 18px;border:1px solid var(--sand-3);border-radius:999px;font-size:11px;letter-spacing:.2em;color:var(--gold);margin-bottom:22px;font-weight:700}
.founder-hero h1{font-family:"Playfair Display",serif;font-size:clamp(34px,4.5vw,56px);margin:0 0 16px;color:#fff}
.founder-hero p{max-width:720px;margin:0 auto;color:#c9bca2;font-size:16px}
.notice{max-width:900px;margin:30px auto 0;padding:18px 22px;background:#2a1612;color:#ffe2b8;border-left:4px solid var(--gold-rich);border-radius:8px;text-align:left}

/* ============ Footer ============ */
.site-footer{background:#1b181a;color:#c7bdb5;padding:36px max(5%,22px);text-align:center;font-size:13px}
.site-footer strong{color:#f3e7d0;display:block;font-family:"Playfair Display",serif;font-size:16px;margin-bottom:6px;letter-spacing:.04em}
.site-footer small{display:block;margin-top:8px;color:#8e847b}

/* ============ Responsive ============ */
@media (max-width: 960px){
  .pillars{grid-template-columns:repeat(2,1fr);gap:30px}
  .programs{grid-template-columns:repeat(2,1fr)}
  .courses{grid-template-columns:repeat(2,1fr)}
  .cert{grid-template-columns:1fr;text-align:center}
  .cert .body{text-align:center}
  .cert .stats{justify-content:center}
  .cert .emblem{margin:0 auto}
}
@media (max-width: 720px){
  .site-header{padding:14px 20px}
  .brand .logo{height:52px}
  .brand .divider{height:46px}
  .brand .mark .line{font-size:18px}
  .brand .mark .top{font-size:10px}
  .menu-toggle{display:inline-flex}
  .site-nav{display:none;width:100%;flex-direction:column;align-items:flex-start;gap:16px;padding:16px 0 4px;order:3}
  .site-nav.open{display:flex}
  .hero,.institute-hero{grid-template-columns:1fr;padding:48px 22px;gap:28px}
  .hero-visual,.institute-visual{min-height:280px;order:2}
  .hero-copy,.institute-hero .hero-copy{order:1}
  .section{padding:52px 22px}
  .programs{grid-template-columns:1fr}
  .pillars{grid-template-columns:repeat(2,1fr);padding:40px 22px}
  .section-head h2{font-size:28px;gap:12px}
  .section-head .orn{width:40px}
  .cert{padding:26px 22px}
  .courses{grid-template-columns:1fr}
  .cert-wrap{padding:52px 22px 24px}
  .courses-wrap{padding:24px 22px 60px}
}
