:root {
  --black: #05080a;
  --charcoal: #0d1419;
  --charcoal-soft: #111d24;
  --petrol: #004e63;
  --petrol-dark: #003643;
  --petrol-deep: #022b35;
  --blue: #0587a8;
  --blue-bright: #12a6c8;
  --silver: #d8dee2;
  --silver-soft: #eef2f3;
  --off-white: #f4f1ea;
  --white: #ffffff;
  --text: #1e252b;
  --muted: #65727a;
  --shadow: 0 24px 70px rgba(5, 8, 10, .12);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--off-white);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 10% 15%, rgba(18,166,200,.11), transparent 34%), radial-gradient(circle at 90% 10%, rgba(216,222,226,.08), transparent 26%);
  z-index: -1;
}

h1, h2, h3, h4, h5 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  letter-spacing: -.03em;
}

p { line-height: 1.7; }
a { color: var(--blue); }
img { max-width: 100%; }

.site-header {
  background: rgba(5,8,10,.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(216,222,226,.09);
}

.navbar { padding: 1rem 0; }
.site-logo { width: 190px; max-height: 62px; object-fit: contain; }
.navbar .nav-link {
  color: rgba(255,255,255,.86);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 0 .35rem;
}
.navbar .nav-link:hover, .navbar .nav-link:focus { color: var(--blue-bright); }

.btn { border-radius: 0; text-transform: uppercase; letter-spacing: .04em; font-weight: 800; font-size: .85rem; padding: .85rem 1.35rem; }
.btn-primary-custom { background: var(--blue); color: var(--white); border: 2px solid var(--blue); }
.btn-primary-custom:hover { background: var(--blue-bright); color: var(--white); border-color: var(--blue-bright); }
.btn-outline-custom { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.58); }
.btn-outline-custom:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-dark-custom { background: var(--charcoal); color: var(--white); border: 2px solid var(--charcoal); }
.btn-dark-custom:hover { background: var(--petrol); color: var(--white); border-color: var(--petrol); }

/* Homepage hero with full background image and gradient overlay */
.hero-section.hero-home {
  min-height: 720px;
  display: flex;
  align-items: center;
  padding: 150px 0 90px;
  color: var(--white);
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5,8,10,.94) 0%, rgba(5,8,10,.86) 35%, rgba(5,8,10,.56) 62%, rgba(5,8,10,.20) 100%),
    linear-gradient(180deg, rgba(5,8,10,.22) 0%, rgba(5,8,10,.45) 100%),
    url('../img/dj-workshop-group.jpg') center center / cover no-repeat;
}
.hero-section.hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 38%, rgba(18,166,200,.22), transparent 22%),
    linear-gradient(to bottom, rgba(0,0,0,.10) 0%, rgba(0,0,0,.18) 100%);
  pointer-events: none;
}
.hero-section.hero-home::after {
  content: "";
  position: absolute;
  right: -9%;
  bottom: -11%;
  width: 57%;
  height: 58%;
  background: repeating-linear-gradient(90deg, rgba(216,222,226,.07) 0 3px, transparent 3px 20px);
  mask-image: radial-gradient(ellipse at center, black 0 42%, transparent 68%);
  opacity: .45;
  pointer-events: none;
}
.hero-section.hero-home .container {
  position: relative;
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}
.eyebrow {
  color: var(--blue-bright);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 900;
  font-size: .78rem;
  margin-bottom: .85rem;
}
.hero-title,
.hero-section h1 {
  font-size: clamp(2.8rem, 5vw, 4.65rem);
  line-height: .98;
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 22px rgba(0,0,0,.42);
}
.hero-section h1 .accent { color: var(--blue-bright); }
.hero-section .lead {
  color: rgba(255,255,255,.88);
  max-width: 560px;
  font-size: 1.08rem;
  line-height: 1.72;
  text-shadow: 0 2px 18px rgba(0,0,0,.34);
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0; }
.location-line {
  color: rgba(255,255,255,.78);
  font-size: .92rem;
  text-shadow: 0 2px 18px rgba(0,0,0,.34);
}

.deck-visual {
  position: relative;
  z-index: 2;
  min-height: 410px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 70% 20%, rgba(18,166,200,.38), transparent 9%),
    radial-gradient(circle at 45% 65%, rgba(216,222,226,.38), transparent 12%),
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: 0 34px 90px rgba(0,0,0,.34);
  overflow: hidden;
}
.deck-visual::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 16px solid rgba(216,222,226,.18);
  box-shadow: inset 0 0 0 16px rgba(5,8,10,.75), 0 0 0 60px rgba(0,0,0,.18);
  transform: translateX(16%);
}
.deck-visual::after {
  content: "";
  position: absolute;
  left: 11%; right: 10%; bottom: 12%; height: 46%;
  background: linear-gradient(180deg, rgba(216,222,226,.17), rgba(0,0,0,.2));
  border: 1px solid rgba(216,222,226,.14);
  clip-path: polygon(0 20%, 100% 0, 100% 80%, 0 100%);
}

.impact-section { background: linear-gradient(135deg, var(--petrol-dark), var(--petrol)); color: var(--white); padding: 55px 0 60px; position: relative; }
.impact-section::before { content:""; position:absolute; inset:0; background: radial-gradient(circle at 20% 20%, rgba(18,166,200,.22), transparent 32%); opacity:.8; }
.impact-section .container { position: relative; z-index: 1; }
.section-intro { max-width: 760px; margin: 0 auto 2.6rem; }
.section-intro h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
.impact-card { height: 100%; text-align: center; padding: 1.6rem 1rem; border-right: 1px solid rgba(216,222,226,.28); }
.row .col:last-child .impact-card { border-right: 0; }
.impact-icon { font-size: 2.2rem; line-height: 1; color: var(--silver); margin-bottom: .8rem; }
.counter, .status { display: block; font-family: Georgia, 'Times New Roman', serif; color: var(--silver); font-size: 3.2rem; line-height: 1; font-weight: 700; }
.status { font-size: 1.15rem; text-transform: uppercase; line-height: 1.25; letter-spacing: .04em; min-height: 3.2rem; display: flex; align-items: center; justify-content: center; }
.impact-card p { color: var(--white); font-size: .84rem; text-transform: uppercase; letter-spacing: .03em; font-weight: 900; line-height: 1.45; margin: .85rem 0 0; }
.underline { width: 34px; height: 3px; background: var(--blue-bright); margin: 1rem auto 0; }

.content-section { padding: 86px 0; }
.light-section { background: linear-gradient(180deg, #fff, var(--off-white)); }
.alt-section { background: var(--silver-soft); }
.feature-card, .project-card, .content-card {
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(5,8,10,.07);
  box-shadow: var(--shadow);
  padding: 2rem;
  height: 100%;
  border-radius: 4px;
}
.feature-icon { width: 66px; height: 66px; border-radius: 50%; background: var(--petrol); color: var(--silver); display:flex; align-items:center; justify-content:center; font-size:1.8rem; margin-bottom: 1.35rem; }
.feature-card h3, .project-card h3 { font-family: Arial, Helvetica, sans-serif; font-size: 1.05rem; letter-spacing: .01em; text-transform: uppercase; font-weight: 900; }
.feature-card p, .project-card p { color: var(--muted); font-size: .95rem; }
.arrow-link { text-decoration: none; font-weight: 900; font-size: .86rem; }
.arrow-link:hover { color: var(--petrol); }

.dj-section { color: var(--white); background: linear-gradient(90deg, #05080a 0%, #0d1419 52%, #003643 100%); position: relative; overflow: hidden; }
.dj-photo { min-height: 410px; background: radial-gradient(circle at 36% 35%, rgba(216,222,226,.16), transparent 25%), linear-gradient(135deg, #0c0f11, #111820); position: relative; }
.dj-photo::before { content: "Proper\A Sound"; white-space: pre; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.4rem, 6vw, 5.2rem); line-height: .85; color: rgba(216,222,226,.18); position: absolute; right: 12%; top: 22%; }
.dj-photo::after { content: ""; position:absolute; left: 12%; bottom: 14%; width: 42%; height: 42%; border: 14px solid rgba(18,166,200,.17); border-radius: 50%; box-shadow: 0 0 0 28px rgba(255,255,255,.03); }
.dj-copy { padding: 70px 8% 70px 5%; position: relative; }
.wave-mark { position:absolute; right: 5%; bottom: 12%; width: 200px; height: 100px; background: repeating-linear-gradient(90deg, rgba(18,166,200,.65) 0 7px, transparent 7px 19px); mask-image: radial-gradient(ellipse at center, black 0 52%, transparent 70%); opacity: .65; }
.host-strip { background: var(--petrol); color: rgba(255,255,255,.88); font-size: .9rem; padding: .7rem 0; }

.project-card { padding: 0; overflow: hidden; background: var(--black); color: var(--white); min-height: 340px; display:flex; flex-direction:column; justify-content:flex-end; position:relative; }
.project-card::before { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(18,166,200,.12), rgba(5,8,10,.96)), radial-gradient(circle at 35% 20%, rgba(216,222,226,.18), transparent 25%); }
.project-card .project-body { position: relative; z-index: 1; padding: 1.45rem; }
.badge-status { position:absolute; z-index:2; top: 0; left: 0; background: var(--blue); color: var(--white); padding: .45rem .75rem; font-weight: 900; font-size: .7rem; text-transform: uppercase; }
.project-card h3 { font-family: Georgia, 'Times New Roman', serif; font-size: 1.55rem; text-transform:none; color: var(--white); }
.project-card p { color: rgba(255,255,255,.78); }

.cta-section { background: linear-gradient(135deg, var(--petrol), var(--charcoal)); color: var(--white); padding: 55px 0; }
.cta-section p { color: rgba(255,255,255,.82); margin-bottom: 0; }
.cta-icon {
  width: 170px;
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 991.98px) {
  .cta-icon {
    width: 82px;
    margin-bottom: .75rem;
  }
}


.page-hero { padding: 170px 0 80px; color: var(--white); background: linear-gradient(135deg, #05080a, #003643); }
.page-hero h1 { font-size: clamp(2.8rem, 6vw, 5rem); }

.stat-box { background: var(--white); padding: 2rem; box-shadow: var(--shadow); text-align:center; height:100%; }
.stat-box strong { font-family: Georgia, 'Times New Roman', serif; font-size: 3rem; color: var(--petrol); display:block; }
.form-control, .form-select { border-radius: 0; padding: .85rem 1rem; border: 1px solid rgba(5,8,10,.16); }
.form-control:focus, .form-select:focus { border-color: var(--blue); box-shadow: 0 0 0 .25rem rgba(5,135,168,.18); }

.site-footer { background: var(--black); color: rgba(255,255,255,.72); padding: 64px 0 28px; }
.footer-logo { width: 190px; }
.site-footer h4, .site-footer h6 { color: var(--white); }
.site-footer h6 { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.footer-links { list-style:none; padding:0; margin:0; }
.footer-links a, .site-footer a { color: rgba(255,255,255,.78); text-decoration:none; }
.footer-links a:hover, .site-footer a:hover { color: var(--blue-bright); }
.social-links { display:flex; gap:.6rem; }
.social-links a { width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:rgba(255,255,255,.08); font-weight:900; }
.site-footer hr { border-color: rgba(255,255,255,.14); margin: 2rem 0; }

@media (max-width: 991px) {
  .site-logo { width: 160px; }
  .hero-section.hero-home {
    min-height: 640px;
    padding: 130px 0 70px;
    background:
      linear-gradient(180deg, rgba(5,8,10,.88) 0%, rgba(5,8,10,.76) 48%, rgba(5,8,10,.62) 100%),
      url('../img/dj-workshop-group.jpg') center center / cover no-repeat;
  }
  .hero-title,
  .hero-section h1 { font-size: clamp(2.45rem, 10vw, 4.1rem); }
  .deck-visual { min-height: 280px; }
  .impact-card { border-right: 0; border-bottom: 1px solid rgba(216,222,226,.24); }
  .dj-copy { padding: 50px 1rem; }
}

/* Real image / media additions */
.hero-image-card {
  position: relative;
  z-index: 2;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 34px 90px rgba(0,0,0,.38);
  border: 1px solid rgba(255,255,255,.14);
  background: var(--charcoal);
}
.hero-image-card img {
  width: 100%;
  height: 470px;
  object-fit: cover;
  display: block;
  filter: saturate(.9) contrast(1.05) brightness(.82);
}
.hero-image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(5,8,10,.82));
  pointer-events: none;
}
.hero-image-caption {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 2;
  color: var(--white);
  font-weight: 800;
  letter-spacing: .02em;
}

.dj-photo.image-bg {
  background-image:
    linear-gradient(90deg, rgba(5,8,10,.28), rgba(5,8,10,.72)),
    url('/assets/img/dj-workshop-student.jpg');
  background-size: cover;
  background-position: center;
}
.dj-photo.image-bg::before,
.dj-photo.image-bg::after { display: none; }

.media-section { padding: 86px 0; }
.video-placeholder {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  height: 100%;
  background: var(--black);
  box-shadow: var(--shadow);
}
.video-placeholder img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  display: block;
  filter: saturate(.9) contrast(1.05) brightness(.68);
}
.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  color: var(--white);
  background: radial-gradient(circle at center, rgba(18,166,200,.32), rgba(5,8,10,.56) 45%, rgba(5,8,10,.82));
}
.video-overlay h3 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin: .3rem 0 .6rem;
}
.video-overlay p:not(.eyebrow) {
  max-width: 440px;
  color: rgba(255,255,255,.82);
}
.play-button {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  padding-left: .25rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 16px 45px rgba(0,0,0,.32);
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  height: 100%;
}
.gallery-grid img {
  width: 100%;
  height: 252px;
  object-fit: cover;
  display: block;
  box-shadow: var(--shadow);
  filter: saturate(.95) contrast(1.02);
}
.gallery-grid img:first-child {
  grid-row: span 2;
  height: 520px;
}

@media (max-width: 991px) {
  .hero-image-card img { height: 340px; }
  .video-placeholder, .video-placeholder img { min-height: 420px; }
  .gallery-grid img, .gallery-grid img:first-child { height: 260px; grid-row: auto; }
}

@media (max-width: 575px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid img, .gallery-grid img:first-child { height: auto; max-height: none; }
}

.image-shadow {
  box-shadow: var(--shadow);
  border: 1px solid rgba(5,8,10,.08);
}

/* Improved session media layout */
.session-media-section {
  overflow: hidden;
}

.video-card {
  position: relative;
  overflow: hidden;
  background: var(--black);
  border-radius: 22px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(5,8,10,.08);
}

.compact-video-card {
  aspect-ratio: 16 / 10;
  min-height: 0;
}

.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.9) contrast(1.04) brightness(.62);
}

.video-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  color: var(--white);
  background: radial-gradient(circle at center, rgba(18,166,200,.24), rgba(5,8,10,.42) 44%, rgba(5,8,10,.72));
}

.video-card-overlay h3 {
  color: var(--white);
  font-size: clamp(1.9rem, 3vw, 3rem);
  margin: .3rem 0 .5rem;
}

.video-card-overlay p:not(.eyebrow) {
  max-width: 420px;
  color: rgba(255,255,255,.84);
  margin-bottom: 0;
}

.video-card .play-button {
  border: 0;
  cursor: default;
}

.session-gallery-compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  height: 100%;
}

.session-photo {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  margin: 0;
  background: var(--black);
  box-shadow: var(--shadow);
  min-height: 210px;
}

.session-photo img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.session-photo:hover img {
  transform: scale(1.035);
}

.session-photo figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.4rem 1rem 1rem;
  color: var(--white);
  font-weight: 800;
  font-size: .95rem;
  background: linear-gradient(180deg, rgba(5,8,10,0), rgba(5,8,10,.86));
}

.session-gallery-compact .large-photo {
  grid-row: span 2;
}

.card-photo {
  height: 280px;
}

.card-photo img {
  min-height: 280px;
}

.compact-benefits-card .session-photo {
  height: 220px;
}

.compact-benefits-card .session-photo img {
  min-height: 220px;
}

@media (max-width: 991px) {
  .compact-video-card { aspect-ratio: 16 / 9; }
  .session-gallery-compact { grid-template-columns: 1fr 1fr; }
  .session-gallery-compact .large-photo { grid-row: auto; }
  .session-photo, .session-photo img { min-height: 240px; }
}

@media (max-width: 575px) {
  .session-gallery-compact { grid-template-columns: 1fr; }
  .card-photo { height: 240px; }
  .card-photo img { min-height: 240px; }
  .video-card-overlay { padding: 1.25rem; }
  .video-card .play-button { width: 68px; height: 68px; font-size: 1.6rem; }
}

/* Refined media section: smaller video, text-led layout, four thumbnails */
.slim-session-media {
  padding-top: 90px;
  padding-bottom: 90px;
}

.session-copy-card {
  max-width: 540px;
}

.session-copy-card h2 {
  margin-bottom: 1.25rem;
}

.session-copy-card p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.text-link {
  display: inline-flex;
  margin-top: .5rem;
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover {
  color: var(--petrol);
}

.subtle-video-card {
  aspect-ratio: 16 / 9;
  max-height: 390px;
  border-radius: 20px;
}

.subtle-video-card img {
  filter: saturate(.95) contrast(1.02) brightness(.72);
}

.subtle-video-overlay {
  justify-content: flex-end;
  align-items: flex-start;
  text-align: left;
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(5,8,10,.08) 0%, rgba(5,8,10,.35) 45%, rgba(5,8,10,.88) 100%);
}

.subtle-video-overlay h3 {
  font-size: clamp(1.45rem, 2.2vw, 2.1rem);
  margin: .15rem 0 .25rem;
}

.subtle-video-overlay p:not(.eyebrow) {
  max-width: 520px;
  font-size: .98rem;
}

.small-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 74px;
  height: 74px;
  font-size: 1.8rem;
  box-shadow: 0 18px 50px rgba(0,0,0,.25);
}

.session-thumb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.thumb-photo {
  height: 220px;
  min-height: 0;
  border-radius: 16px;
}

.thumb-photo img {
  min-height: 0;
  height: 100%;
}

.thumb-photo figcaption {
  font-size: .9rem;
  padding: 2rem .9rem .85rem;
}

@media (max-width: 991px) {
  .slim-session-media {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .session-copy-card {
    max-width: 100%;
  }

  .session-thumb-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .thumb-photo {
    height: 230px;
  }
}

@media (max-width: 575px) {
  .session-thumb-grid {
    grid-template-columns: 1fr;
  }

  .thumb-photo {
    height: 240px;
  }

  .subtle-video-card {
    max-height: none;
  }
}


/* Self-hosted video replacement */
.real-video-card {
  background: var(--black);
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,.16);
}

.real-video-card video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 20px;
  background: var(--black);
}

@media (max-width: 575px) {
  .real-video-card video {
    height: auto;
    object-fit: contain;
  }
}

/* Project card background images */
.project-card {
  background-size: cover;
  background-position: center;
}
.project-card.project-funded-dj { background-image: url('../img/project-funded-dj-school.jpg'); }
.project-card.project-audio-tour { background-image: url('../img/project-audio-tour.jpg'); }
.project-card.project-wellbeing { background-image: url('../img/project-wellbeing-through-music.jpg'); }
.project-card.project-heritage { background-image: url('../img/project-community-heritage.jpg'); }
.project-card::before {
  background:
    linear-gradient(180deg, rgba(5,8,10,0.08) 0%, rgba(5,8,10,0.45) 48%, rgba(5,8,10,0.96) 100%),
    linear-gradient(90deg, rgba(0,78,99,0.25), rgba(0,0,0,0.05));
}
