:root{--ink:#111820;--muted:#66717b;--paper:#fff;--soft:#f4f6f7;--accent:#ff641e;--dark:#12202a}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:var(--paper)}a{color:inherit;text-decoration:none}
header{height:72px;padding:0 max(24px,calc((100% - 1180px)/2));display:flex;align-items:center;gap:28px;background:var(--dark);color:#fff;position:sticky;top:0;z-index:20}
.brand{font-weight:800;white-space:nowrap}.main-header{gap:22px}.main-nav{display:flex;gap:20px;font-size:16px;align-items:center}.main-nav a:hover{opacity:.75}
.header-social{margin-left:auto;display:flex;align-items:center;gap:10px}.header-social a{width:34px;height:34px;display:flex;align-items:center;justify-content:center}.header-social img{width:32px;height:32px;object-fit:contain;display:block}
.write,.button{border-radius:999px;padding:12px 20px;background:var(--accent);color:#fff;font-weight:700}.back{font-size:14px}
.hero{max-width:1180px;margin:24px auto 0;background:var(--dark);color:#fff;border-radius:24px;overflow:hidden}.gallery{position:relative;background:#24333d;height:300px;overflow:hidden}.gallery img{width:100%;height:100%;object-fit:cover;display:block;opacity:1;transition:opacity 1.2s ease}.gallery img.is-fading{opacity:0}.gallery button{position:absolute;top:50%;transform:translateY(-50%);z-index:2;border:0;border-radius:50%;width:44px;height:44px;background:#0009;color:#fff;font-size:28px;cursor:pointer}.gallery button:first-child{left:16px}.gallery button:last-child{right:16px}.hero-copy{padding:34px 48px 38px}.hero h1{font-size:clamp(32px,4vw,50px);line-height:1.05;margin:0 0 14px;max-width:980px}.hero p{font-size:18px;line-height:1.55;color:#dbe3e8;margin:0}
.section-head,section:not(.hero){max-width:1180px;margin:56px auto 0}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.card{border:1px solid #e5e8ea;border-radius:18px;overflow:hidden;background:#fff;transition:.2s}.card:hover{transform:translateY(-3px);box-shadow:0 12px 32px #00000012}.card img{width:100%;aspect-ratio:16/10;object-fit:cover;background:#eef1f2}.card-body{padding:18px}.card h3{margin:0 0 8px}.card p{color:var(--muted);line-height:1.5}
.about-preview{background:var(--soft);padding:32px;border-radius:20px}.button.secondary{display:inline-block;background:var(--dark);margin-top:12px}.quote{padding:34px;text-align:center;font-size:22px;font-style:italic}.page{max-width:900px;margin:42px auto;padding:0 22px;min-height:70vh}.page-cover{width:100%;max-height:430px;object-fit:cover;border-radius:22px}.page h1{font-size:46px}.prose{font-size:18px;line-height:1.75}.prose img{max-width:100%;border-radius:16px}.quotes blockquote{margin:30px 0;padding:24px;background:var(--soft);border-radius:16px}.contact-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:30px}.contact-grid a{padding:18px;border:1px solid #e2e6e8;border-radius:16px;text-align:center;font-weight:700;background:#fff}
footer{margin-top:60px;padding:28px;text-align:center;background:var(--dark);color:#dce3e7;font-size:13px}.pdfbar{display:flex;justify-content:space-between;align-items:center;gap:20px}.pdf{width:100%;height:78vh;border:1px solid #ddd;border-radius:12px}
@media(max-width:900px){.main-nav{gap:12px;font-size:15px}.header-social{gap:5px}.header-social a{width:29px;height:29px}.header-social img{width:25px;height:25px}}
@media(max-width:760px){header{height:auto;min-height:62px;padding:12px 16px;gap:14px;flex-wrap:wrap}.main-nav{order:3;width:100%;overflow-x:auto;white-space:nowrap;padding-bottom:3px}.header-social{margin-left:auto}.hero{margin:0;border-radius:0}.gallery{height:190px}.hero-copy{padding:26px 22px 30px}.hero h1{font-size:34px}.section-head,section:not(.hero){margin:38px 16px 0}.grid{grid-template-columns:1fr}.contact-grid{grid-template-columns:1fr}.page h1{font-size:36px}}


/* Header layout update v6 */
.main-header{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  column-gap:24px;
}
.main-header .brand{
  justify-self:start;
  font-size:24px;
  line-height:1;
}
.main-header .main-nav{
  justify-self:center;
}
.main-header .header-social{
  justify-self:end;
  margin-left:0;
  gap:15px;
}
.main-header .header-social a{
  width:34px;
  height:34px;
}
.main-header .header-social img{
  width:32px;
  height:32px;
  object-fit:contain;
  display:block;
}
/* YouTube source artwork has more transparent space around the mark,
   so enlarge only the image canvas to make the visible logo match the others. */
.main-header .header-social a[title="YouTube"] img{
  width:38px;
  height:38px;
}

@media(max-width:900px){
  .main-header{
    grid-template-columns:auto 1fr;
  }
  .main-header .brand{font-size:22px}
  .main-header .header-social{justify-self:end}
  .main-header .main-nav{
    grid-column:1 / -1;
    justify-self:start;
  }
}


/* All inner pages: same header as home + Back button */
.main-header.inner-header{
  grid-template-columns:auto 1fr auto 1fr;
}
.main-header.inner-header .header-back{
  justify-self:start;
  white-space:nowrap;
  font-size:16px;
}
.main-header.inner-header .brand{
  justify-self:start;
}
.main-header.inner-header .main-nav{
  justify-self:center;
}
.main-header.inner-header .header-social{
  justify-self:end;
}
.contact-grid-three{grid-template-columns:repeat(3,1fr)}

@media(max-width:900px){
  .main-header.inner-header{
    grid-template-columns:auto auto 1fr;
  }
  .main-header.inner-header .header-social{justify-self:end}
  .main-header.inner-header .main-nav{
    grid-column:1 / -1;
    justify-self:start;
  }
}
@media(max-width:760px){
  .contact-grid-three{grid-template-columns:1fr}
}

/* v8 */
.main-header.inner-header{position:sticky;grid-template-columns:1fr auto 1fr}
.main-header.inner-header .header-left{justify-self:start;display:flex;align-items:center;position:relative}
.main-header.inner-header .header-left .brand{font-size:24px}
.main-header.inner-header .header-back{position:absolute;right:calc(100% + 16px);white-space:nowrap;font-size:14px;color:#fff}
.main-header.inner-header .main-nav{justify-self:center}
.main-header.inner-header .header-social{justify-self:end;margin-left:0}
.contact-grid-three .contact-button{background:#111;color:#fff;border-color:#111;display:flex;align-items:center;justify-content:center;gap:12px;min-height:62px}
.contact-grid-three .contact-button img{width:30px;height:30px;object-fit:contain;display:block}
.contact-grid-three .contact-button span{color:#fff}
@media(max-width:900px){.main-header.inner-header{grid-template-columns:auto 1fr}.main-header.inner-header .header-left{padding-left:72px}.main-header.inner-header .header-back{left:0;right:auto}.main-header.inner-header .main-nav{grid-column:1/-1;justify-self:start}}


/* v10 — courses/materials keep the homepage header */
.main-header.inner-v10{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  column-gap:24px;
}
.main-header.inner-v10 .inner-brand{
  justify-self:start;
  display:flex;
  align-items:center;
  position:relative;
}
.main-header.inner-v10 .inner-back{
  position:absolute;
  right:calc(100% + 16px);
  white-space:nowrap;
  font-size:14px;
  color:#fff;
}
.main-header.inner-v10 .brand{
  font-size:24px;
  line-height:1;
}
.main-header.inner-v10 .main-nav{justify-self:center}
.main-header.inner-v10 .header-social{justify-self:end;margin-left:0}

@media(max-width:900px){
  .main-header.inner-v10{grid-template-columns:auto 1fr}
  .main-header.inner-v10 .inner-brand{padding-left:72px}
  .main-header.inner-v10 .inner-back{left:0;right:auto}
  .main-header.inner-v10 .main-nav{grid-column:1/-1;justify-self:start}
  .main-header.inner-v10 .header-social{justify-self:end}
}
