/* =========================================================
   Root Variables
========================================================= */
:root {
  /* 🎨 Color palette */
  --background-dark: #0E0E0E;
  --text-light: #FAFAFA;           /* brighter for readability */
  --text-subtle: #D6D6D6;          /* secondary copy */
  --accent-primary: #bb0b0e;
  --accent-secondary: #683635;
  --text-dark: #111;
  --text-muted: #222;
  --section-bg: #151515;           /* deeper for contrast */
  --about-bg: #f9f9f9;
  --contact-bg: #1d2530;
  --social-bg: #333;
  --nav-blackboard: rgba(0, 0, 0, 0.9); 



  /* 📏 Spacing system */
  --spacing-unit: 1rem;
  --section-padding: clamp(3rem, 6vw, 6rem);
  --section-padding-horizontal: 1.5rem;
  --section-offset-top: 3.125rem;
  --grid-gap-row: 2.5rem;
  --grid-gap-col: 3rem;
  --element-padding: 0.75rem;
  --footer-spacing: 2.5rem;
  --nav-padding: 0.75rem 2rem;
  --mobile-nav-padding: 0.5rem 1rem;
  --button-padding: 0.75rem 2rem;
  --input-padding: 0.75rem 1rem;

  /* 📐 Sizes */
  --image-max-width: 420px;
  --border-radius: 16px;
  --icon-size: 24px;
  --social-link-size: 52px;      /* unified */
  --social-icon-size: 26px;      /* unified */
  --nav-height: 70px;

  /* 🔠 Type */
  --h1-size: clamp(2.75rem, 6.5vw, 5.25rem);
  --h2-size: 2.5rem;
  --h3-size: 1.4rem;
  --body-size: 1.05rem;

  /* ⚡ Transitions */
  --transition-timing: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* 🕶️ Shadows */
  --nav-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  --image-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
  --card-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  --card-shadow-light: 0 6px 32px rgba(0, 0, 0, 0.06),
                        inset 2px 2px 4px rgba(255, 255, 255, 0.8);
}

/* =========================================================
   Global Reset + Base Styles
========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  height: 100vh;
  overflow: hidden;                          /* sections own scroll */
  background-color: var(--background-dark);
  font-family: 'Manrope', sans-serif;
  color: var(--text-light);
  line-height: 1.6;
}
main {
  position: relative;
  height: 100vh;
  width: 100%;
}
.header-h {
  text-align: center;
  margin-bottom: calc(var(--spacing-unit) * 2);
}
p, li { color: var(--text-subtle); }
strong, h1, h2, h3 { color: var(--text-light); }

/* Viewport base */
.section, #welcome, .hero { height: 100dvh; min-height: 100vh; }

/* =========================================================
   Refined Sticky Navigation
========================================================= */
.sticky-nav {
  position: fixed;
  top: 1.25rem;
  right: 8%;
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0.65rem 1.4rem;
  border-radius: 18px;
  background: rgba(10,10,10,.58);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2),
              inset 1px 1px 2px rgba(255, 255, 255, 0.03);
  font-family: 'Playfair Display', serif;
  transition: all 0.4s ease;
  transform-origin: right center;
}
.sticky-nav.scrolled {
  top: 0.75rem;
  padding: 0.5rem 1.25rem;
  background: rgba(20, 13, 7, 0.98);
}

/* ====== Nav Content ====== */
.nav-content {
  display: flex;
  gap: 2rem;
  position: relative;
}
.nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}
.nav-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: var(--text-light);
  transition: all 0.3s ease;
}
.nav-links a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}
.nav-links a::after {
  content: '♫';
  position: absolute;
  top: -10px;
  left: 50%;
  font-size: 1rem;
  color: var(--accent-primary);
  transform: translateX(-50%);
  opacity: 0;
  transition: all 0.3s ease;
}
.nav-links a:hover {
  color: var(--accent-primary);
  transform: translateY(-1px);
}
.nav-links a:hover::before { width: 60%; }
.nav-links a:hover::after  { opacity: 1; top: -14px; }
.nav-links a.active {
  color: var(--accent-primary);
  font-weight: 600;
}
.nav-links a.active::before {
  width: 80%;
  background: var(--accent-primary);
}

/* Accessibility focus */
.nav-links a:focus-visible{
  outline: 3px solid rgba(187,11,14,.6);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ====== Hamburger Menu ====== */
.hamburger {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--text-light);
  margin: 6px 0;
  transition: all 0.3s ease;
  transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ====== Micro-Interactions ====== */
.sticky-nav:hover {
  transform: scale(1.015);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25),
              inset 1px 1px 4px rgba(255, 255, 255, 0.05);
}
.nav-links a:hover .nav-icon { animation: noteBounce 0.6s ease; }
@keyframes noteBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

/* =========================================================
   Social Sidebar (Enhanced)
========================================================= */
.social-sidebar {
  position: fixed;
  top: 50%;
  right: calc(1rem + 0.5vw);               /* nudged inward */
  transform: translateY(calc(-50% + 100px)); 
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-unit) * 1.5);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}
.social-link {
  background-color: #fff;
  border-radius: 50%;
  width: var(--social-link-size);
  height: var(--social-link-size);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all var(--transition-timing);
  position: relative;
  overflow: hidden;
}
.social-link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  opacity: 0;
  transition: opacity var(--transition-timing);
}
.social-link:hover { transform: translateX(-6px) scale(1.1); }
.social-link:hover::before { opacity: 1; }

/* Platform-specific styles */
.social-link.instagram { color: #E1306C; }
.social-link.instagram::before {
  background: radial-gradient(circle at 30% 110%, 
    #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.social-link.youtube { color: #FF0000; }
.social-link.youtube::before {
  background: linear-gradient(45deg, #FF0000 0%, #CC181E 100%);
}
.social-link.tiktok { color: #000000; }
.social-link.tiktok::before {
  background: linear-gradient(45deg, #000000 0%, #25F4EE 50%, #FE2C55 100%);
}

/* SVG styling */
.social-icon {
  width: var(--social-icon-size);
  height: var(--social-icon-size);
  position: relative;
  z-index: 2;
  transition: transform var(--transition-timing);
}
.social-link:hover .social-icon {
  transform: scale(0.9);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* =========================================================
   Hero Section
========================================================= */
#welcome {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;                           /* safer on mobile */
  min-height: 100vh;
  overflow: hidden;
  background: var(--background-dark);
  z-index: 1;
}
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;           /* split layout */
  height: 100dvh;
  min-height: 100vh;
  background: url('/Media/imgs/chalkboard-texture.jpg') no-repeat center center/cover;
  padding: 0 8vw;
  overflow: hidden;
}
/* Guitarist image */
.hero img.hero-background {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 95vh;
  max-width: min(42vw, 720px);
  object-fit: contain;
  z-index: 1;
}
/* Text block */
.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  margin-left: auto;
  text-align: left;
  max-width: 45%;
  z-index: 2;
}
/* Headline */
.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(4rem, 7vw, 7rem);
  line-height: 1.05;
  font-weight: 800;
  margin-bottom: 1.2rem;
  letter-spacing: 1px;
  color: var(--text-light);
  position: relative;
  display: inline-block;
  text-shadow: 0 6px 15px rgba(0, 0, 0, 0.75);
}
/* Cinematic Underline */
.hero-content h1::after {
  content: "";
  display: block;
  width: 0;
  height: 5px;
  background: var(--accent-primary);
  margin-top: 0.8rem;
  border-radius: 3px;
  animation: underlineGrow 1.2s ease-out forwards;
}
@keyframes underlineGrow { to { width: 100%; } }
/* Subtitle */
.hero-content p {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 300;
  letter-spacing: 0.8px;
  margin-top: 2rem;
  color: var(--text-light);
  opacity: 0.9;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
}

/* =========================================================
   Section Logic
========================================================= */
.section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  min-height: 100vh;
  overflow-y: auto;
  padding: var(--section-padding) var(--section-padding-horizontal);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  z-index: 0;
  background: var(--section-bg);
}
.section.active { opacity: 1; visibility: visible; z-index: 2; }
.section-content { padding: 0; margin-bottom: calc(var(--spacing-unit) * 4); }
.section-content > *:not(:last-child) { margin-bottom: calc(var(--spacing-unit) * 2); }

/* =========================================================
   About Section (dark, matched to hero)
========================================================= */
#about{
  position: relative;
  min-height: 100vh;
  overflow-y: auto;
  padding: var(--section-padding) var(--section-padding-horizontal);
  background: url('/Media/imgs/chalkboard-texture.jpg') no-repeat center/cover;
  background-attachment: fixed;
  color: var(--text-light);
}
#about::after{
  content:"";
  position:absolute; inset:0;
  background: rgba(0,0,0,.35);      /* overlay for legibility */
  pointer-events:none;
}
/* ====== About card with grid areas ====== */
.about-card{
  border-radius: 8px;
  padding: 3rem;
  max-width: 1200px;
  margin: 60px auto 2.5rem;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 2.25rem;
  grid-template-areas:
    "photo intro"
    "photo creds"
    "photo focus"
    "philo philo"
    "testi testi";
  align-items: start;
  color: var(--text-light);
  transition: transform .15s ease, box-shadow .15s ease;
  position: relative;
  z-index: 1;
}
.about-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0,0,0,.45);
}
/* map children into areas */
.about-img-wrapper    { grid-area: photo; }
.bio-section          { grid-area: intro;  }
.qualifications       { grid-area: creds;  }
.teaching-focus       { grid-area: focus;  }
.philosophy-section   { grid-area: philo;  }
.testimonials-wrapper { grid-area: testi;  }
/* remove red glow blob */
#about::before{ content:none; }

/* ====== Image block (sticky) ====== */
.about-img-wrapper{
  width:100%;
  max-width:360px;
  position: sticky;
  top: 90px;           /* adjust to navbar height */
  align-self: start;
  height: fit-content;
}
.about-img{
  width:80%;
  aspect-ratio:3/4;
  object-fit:cover;
  border-radius: 8px;
  border:1px solid #262626;
  box-shadow:0 10px 24px rgba(0,0,0,.35);
  transition: transform .15s ease, box-shadow .15s ease;
  display:block;
}
.about-img:hover{
  transform: translateY(-2px);
  box-shadow:0 14px 32px rgba(0,0,0,.45);
}

/* ====== Content ====== */
.about-content{
  padding-left:.75rem;
  display:flex;
  flex-direction:column;
  gap:1.25rem;
  position:relative;
  z-index:1;
}
/* Headings + underline */
#about h2{
  font-family:'Playfair Display', serif;
  font-size: clamp(1.9rem, 3.6vw, 2.4rem);
  margin:0 0 1.2rem;
  color: var(--text-light);
  position:relative;
  display:inline-block;
}
#about h2::after{
  content:"";
  position:absolute; left:0; bottom:-10px;
  width: clamp(120px, 22vw, 240px); height:3px;
  background: var(--accent-primary);
  border-radius:2px;
}
#about h3{
  font-family:'Playfair Display', serif;
  font-size: clamp(1.2rem, 2.3vw, 1.45rem);
  margin: 1.6rem 0 .8rem;
  color: var(--text-light);
  border-left: 4px solid var(--accent-primary);
  padding-left:.8rem;
  background: transparent;
  border-radius:0;
}
/* Text + lists */
#about p, #about ul li{
  font-size: calc(var(--body-size) * 1.02);
  line-height:1.75;
  margin-bottom: calc(var(--spacing-unit) * 1.2);
  color:#EDEDED;
}
#about ul{ list-style:none; padding-left:1.4rem; margin: .8rem 0; }
#about ul li{
  position:relative; padding-left:1.2rem; margin-bottom:.6rem;
  transition: transform .15s ease;
}
#about ul li:hover{ transform: translateX(3px); }
#about ul li::before{
  content:"♪"; position:absolute; left:0; top:.05em;
  color: var(--accent-primary);
  font-weight:700;
}

/* ====== Philosophy cards ====== */
.philosophy-grid{
  display:grid; grid-template-columns:repeat(3,1fr);
  gap: clamp(.75rem, 2vw, 1rem);
}
.approach-card{
  background:#131313;
  border:1px solid #262626;
  border-radius:12px;
  padding:1rem;
}
.approach-icon{ font-size:1.15rem; }

/* ====== Testimonials ====== */
.testimonials-wrapper{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-top: 1.5rem;
}
.testimonial-card{
  position:relative;
  background:#151515;
  border:1px solid #262626;
  border-radius:12px;
  padding: clamp(1rem, 2vw, 1.5rem);
  box-shadow:0 12px 28px rgba(0,0,0,.35);
  overflow:hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.testimonial-card:hover{
  transform: translateY(-2px);
  box-shadow:0 16px 36px rgba(0,0,0,.45);
}
.testimonial-card::before{
  content:"";
  position:absolute; left:0; top:0; bottom:0; width:6px;
  background: var(--accent-primary);
}
.testimonial-card blockquote{ margin:0; }
.testimonial-card .quote{
  margin:0 0 .9rem;
  line-height:1.75;
  font-size:1.15rem;
  font-style:italic;
  color:#EDEDED;
  position:relative;
}
.testimonial-card .quote::before{
  content:"“";
  position:absolute; left:12px; top:-22px;
  font-family:serif; font-size:5rem; line-height:1;
  color: rgba(255,255,255,.06);
  pointer-events:none;
}
.testimonial-card .author{
  display:block;
  text-align:right;
  font-weight:600;
  font-style:normal;
  font-size:.95rem;
  color:#BDBDBD;
}

/* =========================================================
                            LESSONS
========================================================= */
#lessons.section{
  background: url('/Media/imgs/chalkboard-texture.jpg') center/cover fixed;
  color:#F6F6F6;
}
/* Wrapper */
.lessons-shell, .lessons-grid{
  display:grid;
  grid-template-columns: 260px 1fr;        /* compact left column */
  column-gap: 2.5rem;
  align-items:start;
  max-width:1200px;
  margin:0 auto;
  padding: clamp(2rem,4vw,4rem) clamp(1rem,4vw,4rem);
  background:transparent;
  color:#F6F6F6;
}
/* LEFT: photo stack */
.lessons-photo-stack{
  position: sticky; top:110px;
  align-self:start;
  display:flex; flex-direction:column; gap:.9rem;
}
.stack-tile{
  position:relative;
  height:200px;
  border-radius:8px;
  overflow:hidden;
  border:1px solid #2a2a2a;
  background:#000;
  box-shadow:0 6px 16px rgba(0,0,0,.40);
  transition:transform .2s ease, box-shadow .2s ease;
}
.stack-tile::before, .stack-tile::after{ content:none !important; }
.stack-img{
  width:100%; height:100%; display:block;
  object-fit:cover;
  filter:contrast(1.3) brightness(1.05) saturate(1.1);
  transition:transform .2s ease, filter .2s ease;
}
.stack-tile:nth-child(1) .stack-img{ object-position: 18% 42%; }
.stack-tile:nth-child(2) .stack-img{ object-position: 44% 40%; }
.stack-tile:nth-child(3) .stack-img{ object-position: 35% 58%; }
.stack-tile:nth-child(2){ transform: translateX(4px); }
.stack-tile:nth-child(3){ transform: translateX(8px); }
.stack-tile:hover{
  transform: translateY(-3px) translateX(4px);
  box-shadow:0 10px 22px rgba(0,0,0,.5);
}
.stack-tile:hover .stack-img{
  transform: scale(1.02);
  filter: contrast(1.18) brightness(1);
}
/* RIGHT: text/panels */
.section-title{ margin:0 0 .5rem; font-family:serif; letter-spacing:.02em; }
.rule-red{ width:clamp(120px,22vw,240px); height:3px; background:var(--accent-primary,#bb0b0e); margin-bottom:1.25rem; }
.lesson-points{ list-style:none; padding-left:1.3rem; margin:0 0 1rem; }
.lesson-points li{ position:relative; padding-left:1rem; margin:.35rem 0; color:#EDEDED; }
.lesson-points li::before{
  content:"♪"; position:absolute; left:0; top:.05em;
  color:var(--accent-primary,#bb0b0e); font-weight:700;
}
/* Panels */
.panel{
  background:#151515; border:1px solid #262626; border-radius:12px;
  padding:clamp(1rem,2vw,1.4rem);
  box-shadow:0 12px 28px rgba(0,0,0,.35);
  color: var(--text-subtle);
}
.panel + .panel{ margin-top:.8rem; }
.panel h3{ margin:0 0 .5rem; font-family:serif; color: var(--text-light); }
/* Media block */
.media-block{
  background:#151515; border:1px solid #262626; border-radius:12px;
  box-shadow:0 12px 28px rgba(0,0,0,.35);
  padding:clamp(1rem,2vw,1.4rem);
  margin-top:.8rem; color:var(--text-subtle);
}
.media-block h3{ color: var(--text-light); }
.video-grid{ display:grid; gap:1rem; grid-template-columns:1fr; }
.video-card{
  background:#101010; border:1px solid #2b2b2b; border-radius:10px;
  padding:.6rem; box-shadow:0 10px 24px rgba(0,0,0,.35);
}
.video-card video{
  width:100%; aspect-ratio:16/9; display:block; border-radius:6px;
  border: 1px solid rgba(255,255,255,.06);
  background: #000;
}
.video-card iframe{
  width:100%; aspect-ratio:16/9; display:block; border-radius:6px;
  border: 1px solid rgba(255,255,255,.06);
  background: #000;
}
.video-card figcaption{ margin-top:.45rem; font-size:.95rem; color:#CFCFCF; }
.media-toggle{
  margin-top:.7rem; display:none; padding:.7rem 1rem;
  border-radius:10px; border:none; cursor:pointer;
  background:var(--accent-primary,#bb0b0e); color:#fff;
  box-shadow:0 10px 24px rgba(187,11,14,.35);
  transition:transform .15s ease, filter .15s ease;
}
.media-toggle:hover{ transform: translateY(-1px); filter: saturate(1.05); }

@media (max-width: 720px) {
  .media-toggle{ display:inline-block; }
  .video-grid:not(.is-expanded) .video-card:nth-child(n+4){ display:none; }
}

/* ===== Gallery ===== */
.gallery-block { 
  margin-top: calc(var(--spacing-unit, 8px) * 4);
}

/* Filters */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 0 1rem 0;
}
.gallery-filter {
  appearance: none;
  border: 1px solid rgba(255,255,255,.18);
  background: var(--panel-bg, #121212);
  color: #fff;
  padding: .5rem .9rem;
  border-radius: 999px;
  font-size: .95rem;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .05s ease;
}
.gallery-filter:hover { background: #0d0d0d; border-color: rgba(255,255,255,.28); }
.gallery-filter.is-active {
  border-color: var(--accent-primary, #bb0b0e);
  box-shadow: inset 0 0 0 2px var(--accent-primary, #bb0b0e);
}

/* Grid */
.gallery-grid {
  display: grid;
  gap: calc(var(--spacing-unit, 8px) * 2);
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.image-card {
  background: var(--panel-bg, #121212);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-md, 0 8px 24px rgba(0,0,0,.35));
  transition: transform .2s ease, box-shadow .2s ease;
}
.image-card:hover { 
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg, 0 12px 32px rgba(0,0,0,.45));
}
.image-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform .25s ease, filter .25s ease;
}
.image-card:hover img { transform: scale(1.02); filter: brightness(1.06); }
.image-card figcaption {
  padding: .75rem 1rem;
  font-size: .95rem;
  color: var(--muted, #cfcfcf);
  border-top: 1px solid rgba(255,255,255,.06);
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(2px);
  padding: clamp(8px, 2vw, 24px);
  z-index: 9999;
}
.lightbox.open { display: flex; }
.lightbox-chrome {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: 1fr auto;
  gap: .75rem;
  align-items: center;
  justify-items: center;
  width: min(96vw, 1280px);
}
.lightbox-img {
  grid-column: 1 / 4;
  grid-row: 1 / 2;
  max-width: 100%;
  max-height: 82vh;
  border-radius: .75rem;
  box-shadow: var(--shadow-lg, 0 10px 40px rgba(0,0,0,.6));
  background: #000; /* while loading */
}
.lightbox-caption {
  grid-column: 1 / 4;
  grid-row: 2 / 3;
  margin: .25rem 0 0;
  color: #eaeaea;
  text-align: center;
  font-size: .95rem;
}

/* LB Buttons */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: .5rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.28);
  background: #101010;
  color: #fff;
  display: grid; place-items: center;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background .2s ease, transform .05s ease, opacity .2s ease;
  opacity: .95;
}
.lightbox-close { right: .5rem; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); font-size: 1.8rem; }
.lightbox-prev { left: .5rem; }
.lightbox-next { right: .5rem; }
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: #000; opacity: 1; }

/* Hidden for filtering */
.image-card[hidden] { display: none !important; }

/* Small devices */
@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .lightbox-prev, .lightbox-next { display: none; } /* arrows off on tiny screens */
}


/* =========================================================
   CONTACT — charcoal theme, dark cards, red accents
========================================================= */
#contact{
  background: url('/Media/imgs/chalkboard-texture.jpg') center/cover fixed;
  min-height:100vh;
  width:100%;
  padding: clamp(2rem,4vw,4rem) clamp(1rem,4vw,4rem);
  display:flex;
  justify-content:center;
  align-items:flex-start;
  position:relative;
  z-index:2;
  color:#F6F6F6;
  overflow-y:auto;
}
.contact-box{
  width:100%;
  max-width:1200px;
  margin-top:50px;
  background:#151515;
  border:1px solid #262626;
  border-radius:8px;
  box-shadow:0 14px 32px rgba(0,0,0,.45);
  padding: clamp(1.5rem,3vw,2rem);
  position:relative;
  overflow:hidden;
}
.contact-box::before{
  content:"";
  position:absolute;
  right:-10%; top:-20%;
  width:420px; height:420px;
  background:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="420" height="420" viewBox="0 0 100 100" fill="none"><path d="M40 10v55c0 10-8 18-18 18" stroke="rgba(255,255,255,0.06)" stroke-width="4" stroke-linecap="round"/><circle cx="22" cy="83" r="8" stroke="rgba(255,255,255,0.06)" stroke-width="4"/></svg>') no-repeat center/contain;
  opacity:.25;
  pointer-events:none;
  z-index:0;
}
.contact-content{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:2rem 2.5rem;
  align-items:start;
  position:relative;
  z-index:1;
}
.contact-box h2{
  font-family:'Playfair Display', serif;
  margin:0 0 .8rem;
  position:relative;
}
.contact-box h2::after{
  content:"";
  position:absolute; left:0; bottom:-6px;
  width:200px; height:3px;
  background:var(--accent-primary,#bb0b0e);
  border-radius:2px;
}
/* Form */
.contact-form-block{ display:flex; flex-direction:column; gap:1rem; }
.styled-form{ width:100%; max-width:520px; }
.styled-form label{
  display:block; margin:0 0 .35rem;
  font-weight:600; color:#cfcfcf;
  display:flex; align-items:center; gap:.5rem;
}
.styled-form label::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--accent-primary, #bb0b0e);
}
.styled-form label[for="name"]::before { content: ""; }
.styled-form label[for="email"]::before { content: ""; }
.styled-form label[for="message"]::before { content: ""; }
.styled-form input,
.styled-form textarea {
  width: 100%;
  background: #0f0f0f;
  color: #f6f6f6;
  border: 1px solid #2b2b2b;
  border-radius: 10px;
  padding: 0.9rem 1rem;
  font-size: 1.05rem;
  margin-bottom: 1rem;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.styled-form input:focus,
.styled-form textarea:focus {
  border-color: var(--accent-primary, #bb0b0e);
  box-shadow: 0 0 0 3px rgba(187,11,14,.25);
  background: #151515;
}
/* Submit */
.styled-form button {
  display: block;                         
  margin: 1rem auto 0 auto;               
  background: var(--accent-primary, #bb0b0e);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.9rem 1.6rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(187,11,14,.35);
  transition: transform .15s ease, filter .15s ease;
  letter-spacing: .2px;
}

.styled-form button:hover {
  transform: translateY(-1px);
  filter: saturate(1.05);
}
.styled-form button:focus-visible{
  outline: 3px solid rgba(187,11,14,.6);
  outline-offset: 3px;
}
/* Right-hand details */
.contact-details {
  background: #121212;
  border: 1px solid #262626;
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
  color: #e0e0e0;
}
.contact-details h3 {
  font-family: 'Playfair Display', serif;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.5rem;
  color: #fff;
}
.contact-details h3::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--accent-primary, #bb0b0e);
}
.contact-details a {
  color: var(--accent-primary, #bb0b0e);
  text-decoration: none;
  font-weight: 600;
}
.contact-details a:hover { color: #e35f61; text-decoration: underline; }
/* Footer inside contact */
footer {
  grid-column: 1 / -1;
  margin-top: 2rem;
  text-align: center;
  font-size: .85rem;
  color: #9a9a9a;
}
footer .credits { font-size: .78rem; color: #8a8a8a; }
footer .credits a { color: var(--accent-primary, #bb0b0e); text-decoration: none; }
footer .credits a:hover { text-decoration: underline; }

/* =========================================================
   Media Queries (grouped)
========================================================= */

/* Tablets / small laptops */
@media (max-width: 1200px) {
  .hero-content { max-width: 52%; }
}

/* Stack hero on <=1024px */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    justify-content: center;
    padding: 6vh 5vw;
    text-align: center;
    height: auto;
    min-height: auto;
  }
  .hero img.hero-background {
    position: relative;
    max-width: 70%;
    height: auto;
    margin: 2rem auto 0;
    order: 2;
  }
  .hero-content {
    order: 1;
    max-width: 80%;
    margin: 0 auto;
    text-align: center;
  }
  .hero-content h1 { font-size: clamp(2.5rem, 6vw, 3.5rem); }
  .hero-content p  { font-size: clamp(1rem, 2.5vw, 1.2rem); }
  .hero-content h1::after { margin: 0.8rem auto 0; }
}

/* <=900px (about, lessons, contact tweaks) */
@media (max-width: 900px){
  /* About */
  #about { background-attachment: scroll; }
  .about-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "photo"
      "intro"
      "creds"
      "focus"
      "philo"
      "testi";
    gap: 1.5rem;
  }
  .about-img-wrapper { position: static; max-width:300px; margin:0 auto; }
  .philosophy-grid { grid-template-columns:1fr; }
  .testimonials-wrapper { grid-template-columns:1fr; }

  /* Lessons */
  #lessons.section { background-attachment: scroll; }
  .lessons-shell, .lessons-grid { grid-template-columns:1fr; }
  .lessons-photo-stack {
    position: static; flex-direction: row; overflow-x: auto; gap:.8rem; padding-bottom:.5rem;
  }
  .stack-tile { flex:0 0 220px; height:120px; transform:none !important; }
  .video-grid { grid-template-columns:1fr; }

  /* Contact */
  #contact { background-attachment: scroll; }
  .contact-content { grid-template-columns:1fr; }
  .styled-form { margin-left:auto; margin-right:auto; }
  .contact-details, .contact-box h2, .contact-details h3 { text-align:center; }
  .contact-details h3 {
    justify-content:center;
    border-left:none;
    background:linear-gradient(to right, rgba(235,208,181,.12) 20%, transparent 80%);
  }
}

/* <=768px (mobile nav, hero, sidebar, viewport fix) */
@media (max-width: 768px) {
  /* Mobile sticky nav + menu */
  .sticky-nav {
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 0;
    padding: 0.75rem 1.25rem;
  }
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    overflow: hidden;
    flex-direction: column;
    background: var(--nav-blackboard);
    backdrop-filter: blur(12px);
    transition: height 0.3s ease;
    padding-top: 4.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .nav-links.active { height: 100vh; }
  .nav-links a { font-size: 1.1rem; padding: 0.75rem 1.25rem; }
  .hamburger { display: block; }
  .nav-links a::after { content: none; }

  /* Hero mobile override */
  #welcome {
    position: relative;
    height: auto;
    min-height: auto;
    overflow: visible;
    padding: 2rem 1rem;
  }

.hero {
  flex-direction: column;
  justify-content: flex-start;   
  align-items: center;
  height: auto;
  /* min-height: 100vh; */
  padding: 6rem 1rem 10rem;       /* shorthand: top | sides | bottom */
  background: url('/Media/imgs/chalkboard-texture.jpg') no-repeat center center/cover;
  text-align: center;
}


.hero img.hero-background {
  position: static;
  display: block;
  width: 65%;          /* tighter width */
  max-width: 360px;    /* hard ceiling */
  height: auto;
  margin: 2rem auto 0;
  order: 2;
}

.hero-content {
  order: 1;
  max-width: 90%;
  margin: 0 auto;
  text-align: center;
  align-items: center;
}

}

/* iOS scroll trap fix */
html, body { height: auto; }

/* Social sidebar tighter */
@media (max-width: 768px) {
  :root {
    --social-link-size: 44px;
    --social-icon-size: 22px;
  }
  .social-sidebar {
    transform: translateY(calc(-50% + 100px));
    right: 0.5rem;
    gap: calc(var(--spacing-unit) * 0.8);
  }
  .social-link:hover { transform: translateX(-2px) scale(1.04); }
}

/* <=768px + landscape */
@media (max-width: 768px) and (orientation: landscape) {
  .social-sidebar { transform: translateY(calc(-50% + 70px)); }
}

/* <=600px (extra small adjustments) */
@media (max-width: 600px) {
  /* Lessons small cards */
  .stack-tile {
    flex: 0 0 180px;
    height: 140px;
  }
  .lesson-points li {
    font-size: 0.95rem;
    margin: 0.25rem 0;
  }

  /* Contact */
  .contact-box { padding:1.2rem 1rem; }
  .contact-box h2 { font-size:2rem; }
  .styled-form button { width:100%; }
  .contact-content { grid-template-columns: 1fr; text-align: center; }
  .contact-form-block, .contact-details { padding: 0; }
}

/* <=480px (tiny screens) */
@media (max-width: 480px) {
  .social-sidebar {
    transform: translateY(calc(-50% + 140px));
    right: 0.25rem;
    gap: calc(var(--spacing-unit) * 0.6);
  }
  .about-card { padding: 1.4rem 1rem; margin: 1.25rem auto; }
  .about-img-wrapper { max-width:240px; }
}

/* Reduced motion (accessibility) */
@media (prefers-reduced-motion: reduce){
  .sticky-nav, .nav-links a, .social-link, .hero-content h1::after {
    transition: none !important;
    animation: none !important;
  }
}
