:root{
  --ink:#262624;
  --bg:#FFFFFF;
  --bg-panel:#FFFFFF;
  --pink:#EF616B;
  --blue:#7FBEEA;
  --line:#E4E3E0;
  --white:#FFFFFF;
}

*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}

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

body{
  background:var(--bg);
  color:var(--ink);
  font-family:'Inter', sans-serif;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

h1,h2,h3{
  font-family:'Fraunces', serif;
  font-weight:500;
  line-height:1.15;
  letter-spacing:-0.01em;
}

.label{
  font-family:'IBM Plex Mono', monospace;
  font-size:0.72rem;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:var(--ink);
}

a{color:inherit;}

/* Header */
header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,0.95);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.header-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 32px 14px;
  max-width:1140px;
  margin:0 auto;
  gap:20px;
}
.brand-logo{display:flex; align-items:center;}
.brand-logo img{height:32px; width:auto; display:block;}
.header-nav-links{display:flex; align-items:center; gap:34px; list-style:none;}
.header-nav-links a{
  text-decoration:none;
  color:var(--ink);
  font-weight:500;
  font-size:0.95rem;
  padding-bottom:3px;
  border-bottom:2px solid transparent;
  transition:border-color 0.2s, color 0.2s;
}
.header-nav-links a:hover, .header-nav-links a:focus-visible, .header-nav-links a.active{
  border-bottom-color:var(--pink);
}
.header-sub{border-top:1px solid var(--line);}
.header-sub-inner{
  max-width:1140px;
  margin:0 auto;
  padding:9px 32px;
  display:flex;
  justify-content:flex-end;
}
.header-contact-link{
  font-family:'IBM Plex Mono', monospace;
  font-size:0.74rem;
  letter-spacing:0.1em;
  text-transform:uppercase;
  text-decoration:none;
  color:var(--ink);
  font-weight:600;
  transition:color 0.2s;
}
.header-contact-link:hover, .header-contact-link:focus-visible, .header-contact-link.active{color:var(--pink);}

.hamburger-btn{
  background:none;
  border:none;
  cursor:pointer;
  display:none;
  flex-direction:column;
  gap:5px;
  padding:8px;
  flex-shrink:0;
}
.hamburger-btn span{
  display:block;
  width:22px;
  height:2px;
  background:var(--ink);
  border-radius:2px;
}
@media (max-width:760px){
  .header-nav-links{display:none;}
  .hamburger-btn{display:flex;}
}

/* Nav overlay */
.nav-overlay{
  position:fixed;
  inset:0;
  background:var(--ink);
  color:var(--white);
  z-index:100;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:60px 60px;
  opacity:0;
  visibility:hidden;
  transform:translateY(-10px);
  transition:opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.nav-overlay.open{opacity:1; visibility:visible; transform:translateY(0);}
.nav-close{
  position:absolute;
  top:26px;
  right:32px;
  background:none;
  border:none;
  color:var(--white);
  font-size:2rem;
  line-height:1;
  cursor:pointer;
}
.nav-overlay-links{list-style:none; display:flex; flex-direction:column; gap:18px;}
.nav-overlay-links a{
  font-family:'Fraunces', serif;
  font-size:clamp(2rem, 6vw, 3.2rem);
  color:var(--white);
  text-decoration:none;
  font-weight:500;
  opacity:0.88;
  transition:opacity 0.2s, color 0.2s;
}
.nav-overlay-links a:hover, .nav-overlay-links a:focus-visible{opacity:1; color:var(--pink);}
.nav-overlay-foot{
  margin-top:56px;
  font-family:'IBM Plex Mono', monospace;
  font-size:0.85rem;
  color:#B9B8B3;
}

/* Hero */
.hero{padding:90px 32px 80px;}
.hero-inner{
  max-width:1140px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1.1fr 0.9fr;
  gap:64px;
  align-items:center;
}
.hero h1{font-size:clamp(2.3rem, 4.2vw, 3.4rem); margin:18px 0 24px;}
.hero h1 em{font-style:normal; position:relative; white-space:nowrap;}
.hero h1 em::after{
  content:"";
  position:absolute;
  left:-2px; right:-2px; bottom:0.06em;
  height:0.32em;
  background:var(--pink);
  opacity:0.35;
  z-index:-1;
}
.hero p{font-size:1.08rem; max-width:46ch; color:#4A4946; margin-bottom:32px;}
.hero-ctas{display:flex; gap:16px; flex-wrap:wrap;}

.btn-primary{
  background:var(--pink);
  color:var(--ink);
  padding:14px 26px;
  border-radius:3px;
  text-decoration:none;
  font-weight:600;
  font-size:0.95rem;
  transition:background 0.2s, transform 0.2s;
  display:inline-block;
}
.btn-primary:hover, .btn-primary:focus-visible{background:var(--blue); transform:translateY(-1px);}
.btn-secondary{
  border:1px solid var(--ink);
  color:var(--ink);
  padding:14px 26px;
  border-radius:3px;
  text-decoration:none;
  font-weight:500;
  font-size:0.95rem;
  transition:background 0.2s;
  display:inline-block;
}
.btn-secondary:hover, .btn-secondary:focus-visible{background:var(--blue); border-color:var(--blue);}

/* Signature graphic */
.compound-graphic{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:6px;
  padding:28px 24px 20px;
}
.compound-graphic .cap{
  display:flex;
  justify-content:space-between;
  font-family:'IBM Plex Mono', monospace;
  font-size:0.7rem;
  color:#6E6D68;
  margin-bottom:6px;
}
.compound-graphic svg{width:100%; height:auto; display:block;}
.step-path{
  stroke:var(--ink);
  stroke-width:2.5;
  fill:none;
  stroke-dasharray:600;
  stroke-dashoffset:600;
  animation:draw 1.6s ease forwards 0.3s;
}
@keyframes draw{ to{stroke-dashoffset:0;} }
.step-dot{fill:var(--pink);}
.step-tag{font-family:'IBM Plex Mono', monospace; font-size:0.62rem; fill:#6E6D68;}

/* Full-bleed hero image + mission statement */
.hero-image{
  width:100%;
  height:min(60vh, 520px);
  object-fit:cover;
  display:block;
}
.hero-mission{padding:56px 32px 64px; text-align:center;}
.hero-mission-inner{max-width:760px; margin:0 auto;}
.hero-mission h1{
  font-size:clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight:400;
  line-height:1.4;
}
.hero-mission h1 em{font-style:normal; background:linear-gradient(to bottom, transparent 62%, rgba(239,97,107,0.35) 0) ; padding:0 2px;}
.hero-mission .hero-ctas{justify-content:center; margin-top:32px;}

/* Triptych */
.triptych{display:grid; grid-template-columns:repeat(3, 1fr); width:100%;}
.triptych img{width:100%; height:340px; object-fit:cover; display:block;}
@media (max-width:760px){
  .triptych{grid-template-columns:1fr;}
  .triptych img{height:260px;}
}

/* Page hero (About/Courses/Contact) */
.page-hero{padding:64px 32px 20px;}
.page-hero-inner{max-width:1140px; margin:0 auto;}
.page-hero h1{font-size:clamp(2rem, 4vw, 2.9rem); margin-top:14px; max-width:20ch;}
.page-hero p{color:#4A4946; margin-top:16px; max-width:56ch; font-size:1.03rem;}

/* Sections */
section{padding:80px 0;}
.section-inner{max-width:1140px; margin:0 auto; padding:0 32px;}
.eyebrow{margin-bottom:14px;}
.section-head{max-width:640px; margin-bottom:52px;}
.section-head h2{font-size:clamp(1.7rem, 3vw, 2.3rem);}
.section-head p{color:#4A4946; margin-top:14px; font-size:1.02rem;}

/* About */
.about{background:var(--bg-panel); border-top:1px solid var(--line); border-bottom:1px solid var(--line);}
.about-grid{display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:start;}
.about-grid p{color:#4A4946; margin-bottom:18px; font-size:1.02rem;}
.about-list{list-style:none;}
.about-list li{display:flex; gap:14px; padding:18px 0; border-top:1px solid var(--line); font-size:0.98rem;}
.about-list li:last-child{border-bottom:1px solid var(--line);}
.about-list .num{font-family:'IBM Plex Mono', monospace; color:var(--pink); font-weight:700; font-size:0.85rem; flex-shrink:0; padding-top:2px;}

/* Teaser cards (home page) */
.teaser-grid{display:grid; grid-template-columns:repeat(2, 1fr); gap:28px;}
.teaser-card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:6px;
  padding:32px 28px;
  text-decoration:none;
  color:var(--ink);
  transition:border-color 0.2s, transform 0.2s;
  display:block;
}
.teaser-card:hover, .teaser-card:focus-visible{border-color:var(--blue); transform:translateY(-2px);}
.teaser-card h3{font-size:1.25rem; margin-bottom:10px;}
.teaser-card p{color:#4A4946; font-size:0.96rem; margin-bottom:14px;}
.teaser-card .link-arrow{font-family:'IBM Plex Mono', monospace; font-size:0.8rem; color:var(--pink); font-weight:700;}

/* Programmes */
.programmes-grid{display:grid; grid-template-columns:1fr 1fr; gap:28px;}
.prog-card{background:var(--white); border:1px solid var(--line); border-radius:6px; padding:36px 32px;}
.prog-card .label{margin-bottom:10px;}
.prog-card h3{font-size:1.4rem; margin-bottom:14px;}
.prog-card p{color:#4A4946; margin-bottom:22px;}
.prog-card ul{list-style:none;}
.prog-card ul li{padding:9px 0; border-top:1px solid var(--line); font-size:0.94rem; display:flex; gap:10px;}
.prog-card ul li::before{content:"—"; color:var(--pink); font-weight:700; flex-shrink:0;}
.modules-note{margin-top:28px; padding:20px 24px; background:var(--bg-panel); border-radius:6px; font-size:0.94rem; color:#4A4946;}
.modules-note strong{color:var(--ink); font-weight:600;}

/* How it works */
.how{background:var(--bg-panel); border-top:1px solid var(--line); border-bottom:1px solid var(--line);}
.steps{display:grid; grid-template-columns:repeat(4, 1fr); gap:24px;}
.step{padding-top:20px; border-top:2px solid var(--blue);}
.step .num{font-family:'IBM Plex Mono', monospace; color:var(--pink); font-weight:700; font-size:0.85rem; display:block; margin-bottom:14px;}
.step h3{font-size:1.15rem; margin-bottom:10px; font-weight:500;}
.step p{font-size:0.92rem; color:#4A4946;}

/* Team */
.team-grid{display:grid; grid-template-columns:1fr 1fr; gap:28px;}
.team-card{background:var(--white); border:1px solid var(--line); border-radius:6px; overflow:hidden;}
.team-photo{width:100%; aspect-ratio:3/4; object-fit:cover; display:block; background:var(--bg-panel);}
.team-body{padding:28px 28px 32px;}
.team-body .label{margin-bottom:6px;}
.team-body h3{font-size:1.3rem; margin-bottom:2px;}
.team-role{font-size:0.92rem; color:var(--ink); font-weight:600; margin-bottom:16px;}
.team-body p.bio{font-size:0.94rem; color:#4A4946;}
.bio-placeholder{font-size:0.9rem; color:#8C8B86; font-style:italic;}

/* Partners / Working with the best */
.partners{background:var(--bg-panel); border-top:1px solid var(--line); text-align:center;}
.partners .section-head{margin:0 auto 40px; text-align:center; max-width:520px;}
.credentials-grid{display:flex; justify-content:center; align-items:flex-start; gap:0; flex-wrap:wrap;}
.credential-item{
  display:flex; flex-direction:column; align-items:center; gap:14px;
  width:230px;
  padding:0 40px;
  border-left:1px solid var(--line);
}
.credential-item:first-child{border-left:none;}
.credential-check{
  width:42px; height:42px;
  border-radius:50%;
  background:var(--white);
  border:1.5px solid var(--blue);
  color:var(--blue);
  display:flex; align-items:center; justify-content:center;
  font-size:1.1rem;
  font-weight:700;
  flex-shrink:0;
}
.credential-label{
  font-family:'IBM Plex Mono', monospace;
  font-size:0.76rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
  font-weight:600;
  color:var(--ink);
  margin-top:2px;
}
.credential-details{display:flex; flex-direction:column; gap:2px;}
.credential-details p{
  font-family:'Fraunces', serif;
  font-size:1.05rem;
  color:#4A4946;
  line-height:1.4;
  margin:0;
}
@media (max-width:760px){
  .credentials-grid{flex-direction:column; align-items:center; gap:36px;}
  .credential-item{border-left:none; padding:0;}
}

/* Contact */
.contact-inner{display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center;}
.contact h2{font-size:clamp(1.7rem, 3vw, 2.3rem); margin-bottom:18px;}
.contact p{color:#4A4946; margin-bottom:28px; max-width:44ch;}
.contact-card{background:var(--ink); color:var(--white); border-radius:6px; padding:40px;}
.contact-card .label{color:#B9B8B3; margin-bottom:8px;}
.contact-card a.email{
  font-family:'Fraunces', serif;
  font-size:1.5rem;
  text-decoration:none;
  color:var(--pink);
  border-bottom:1px solid rgba(239,97,107,0.45);
  padding-bottom:4px;
  display:inline-block;
  margin-bottom:28px;
  transition:border-color 0.2s;
}
.contact-card a.email:hover, .contact-card a.email:focus-visible{border-color:var(--pink);}
.contact-card .region-row{display:flex; justify-content:space-between; padding:14px 0; border-top:1px solid rgba(255,255,255,0.18); font-size:0.92rem;}
.contact-card .region-row:last-child{border-bottom:1px solid rgba(255,255,255,0.18);}

/* Footer */
footer{padding:36px 32px; border-top:1px solid var(--line);}
.footer-inner{
  max-width:1140px;
  margin:0 auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:0.85rem;
  color:#6E6D68;
  flex-wrap:wrap;
  gap:12px;
}

/* Placeholder page content block */
.placeholder-block{
  border:1px dashed var(--line);
  border-radius:6px;
  padding:40px;
  text-align:center;
  color:#6E6D68;
  font-size:0.95rem;
  background:var(--white);
}

/* Responsive */
@media (max-width:860px){
  .hero-inner{grid-template-columns:1fr;}
  .about-grid{grid-template-columns:1fr;}
  .teaser-grid{grid-template-columns:1fr;}
  .programmes-grid{grid-template-columns:1fr;}
  .steps{grid-template-columns:1fr 1fr;}
  .team-grid{grid-template-columns:1fr;}
  .contact-inner{grid-template-columns:1fr;}
  .nav-overlay{padding:60px 32px;}
}
@media (max-width:520px){
  .steps{grid-template-columns:1fr;}
  .hero{padding:60px 20px 50px;}
  .section-inner, .page-hero-inner{padding:0 20px;}
  .header-inner{padding:14px 20px;}
  .partner-logos{gap:16px;}
}
