:root {
      --orange: #e8590c;
      --orange-bright: #ff6a1a;
      --ink: #1a1a1a;
      --ink-soft: #222321;
      --cream: #fff7ed;
      --muted: #b8b2aa;
      --line: rgba(255,247,237,.16);
      --nav-height: 78px;
      --footer-height: 58px;
      --radius: 4px;
      --content-width: 1160px;
    }

    *, *::before, *::after { box-sizing: border-box; }
    html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 16px); }
    body {
      margin: 0;
      padding-top: var(--nav-height);
      padding-bottom: var(--footer-height);
      background: var(--ink);
      color: var(--cream);
      font-family: "DM Sans", sans-serif;
      line-height: 1.65;
      overflow-x: hidden;
    }
    body.modal-open { padding-right: 0 !important; }
    img { max-width: 100%; display: block; }
    a { color: inherit; text-decoration: none; }
    a:hover { color: var(--orange-bright); }
    button, input { font: inherit; }
    ::selection { color: var(--cream); background: var(--orange); }
    .container-wide { width: min(var(--content-width), calc(100% - 3rem)); margin-inline: auto; }
    .eyebrow {
      margin: 0 0 .35rem; color: var(--orange-bright); font-size: .76rem;
      font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    }
    h1, h2, h3, .brand { font-family: "Oswald", sans-serif; text-transform: uppercase; line-height: 1.05; }
    h2 { font-size: clamp(2rem, 4vw, 3.3rem); letter-spacing: -.025em; margin-bottom: 1rem; }
    h3 { font-size: 1.25rem; letter-spacing: .01em; }
    p { color: inherit; }
    .section-pad { padding: clamp(4rem, 8vw, 7rem) 0; }
    .section-light { background: var(--cream); color: var(--ink); }
    .section-light .muted { color: #5e5a55; }
    .muted { color: var(--muted); }
    .btn-dap {
      display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
      min-height: 46px; padding: .72rem 1.25rem; border: 1px solid var(--orange);
      border-radius: 100px; background: var(--orange); color: white;
      font-size: .86rem; font-weight: 700; letter-spacing: .015em;
      transition: transform .2s ease, background .2s ease, border-color .2s ease;
    }
    .btn-dap:hover, .btn-dap:focus-visible { color: white; background: #c94b08; border-color: #c94b08; transform: translateY(-2px); }
    .btn-outline-dap {
      background: transparent; color: var(--cream); border-color: rgba(255,247,237,.65);
    }
    .btn-outline-dap:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
    .section-light .btn-outline-dap { color: var(--ink); border-color: rgba(26,26,26,.45); }
    .section-light .btn-outline-dap:hover { background: var(--ink); color: var(--cream); }

    /* Fixed navigation */
    .site-nav {
      height: var(--nav-height); background: rgba(26,26,26,.94); backdrop-filter: blur(16px);
      border-bottom: 1px solid rgba(255,255,255,.08); z-index: 1030;
    }
    .site-nav .container-wide { height: 100%; display: flex; align-items: center; }
    .brand { color: var(--orange-bright); font-size: 1.35rem; font-weight: 700; line-height: .94; letter-spacing: -.02em; }
    .brand span { display: block; }
    .navbar-nav { gap: clamp(.4rem, 1.2vw, 1.35rem); }
    .navbar-nav .nav-link { color: #f6f0e9; font-size: .82rem; font-weight: 600; padding: .5rem .2rem !important; position: relative; }
    .navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--orange-bright) !important; }
    .navbar-nav .nav-link::after { content: ""; position: absolute; left: 0; right: 100%; bottom: .1rem; height: 2px; background: var(--orange); transition: right .2s ease; }
    .navbar-nav .nav-link:hover::after, .navbar-nav .nav-link.active::after { right: 0; }
    .navbar-toggler { color: var(--cream); border-color: var(--line); box-shadow: none !important; }
    .navbar-toggler-icon { filter: invert(1); }

/* Hero section responsive styling */
.hero {
  min-height: min(780px, calc(100svh - var(--nav-height)));
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--ink-soft);
  
  /* Test Image 1: The Trail Walk */
  background-image: url("../assets/img/hero-banner-2015-DAP-trail-walk_3584-1184.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;

  /* Performance / Anti-Lag Optimizations */
  transform: translateZ(0);          /* Promotes to its own GPU composite layer */
  will-change: transform;            /* Keeps repaints off the main thread */
  contain: paint;                    /* Isolates hero repaints from the rest of the page */
}

/* Color grading overlay matching DAP theme tokens */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;              /* Prevents mouse event bottlenecks while scrolling */
  transform: translateZ(0);          /* Keeps gradient on the GPU compositor */

  /* Dual gradient */
  background: 
    linear-gradient(90deg, rgba(26, 26, 26, 0.88) 0%, rgba(26, 26, 26, 0.55) 45%, rgba(26, 26, 26, 0.2) 100%),
    linear-gradient(0deg, rgba(26, 26, 26, 0.75) 0%, transparent 50%);
}

/* Mobile adjustments */
@media (max-width: 575.98px) {
  .hero {
    min-height: 580px;
    /* Adjust background position if your centered subjects need framing */
    background-position: center 30%; 
  }

  .hero::before {
    /* Slightly stronger darkening on mobile so text is sharp over faces/highlights */
    background: linear-gradient(0deg, rgba(26, 26, 26, 0.92) 15%, rgba(26, 26, 26, 0.55) 100%);
  }
}

    /* Streaming Bar (Immediately after Hero) */
    .streaming-bar {
      background: #141514;
      border-bottom: 1px solid var(--line);
      padding: 1.3rem 0;
    }
    .streaming-bar-content {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 1.2rem;
    }
    .streaming-bar-title {
      font-size: .88rem;
      font-weight: 700;
      letter-spacing: .08em;
      text-transform: uppercase;
      color: var(--muted);
      margin: 0;
    }
    .stream-links { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
    .stream-links a { font-size: .95rem; font-weight: 700; display: inline-flex; align-items: center; gap: .5rem; }
    .stream-links i { font-size: 1.35rem; color: var(--orange-bright); }
    .stream-links .streaming-icon { width: 1.35rem; height: 1.35rem; object-fit: contain; }

    /* TEDx Video Section */
    .video-container {
      max-width: 900px;
      margin: 0 auto;
      border: 0px solid var(--line);
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: 0 20px 40px rgba(0,0,0,.45);
    }

    /* Story / about */
    .about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 7vw, 6rem); align-items: center; }
    .about-image-wrap { position: relative; }
    .about-image-wrap::after { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--orange); z-index: -1; }
    .editorial-image { width: 100%; aspect-ratio: 5/4; object-fit: cover; filter: saturate(.8); }
    .timeline { margin-top: 2rem; border-left: 1px solid rgba(232,89,12,.7); padding-left: 1.2rem; }
    .timeline-item { position: relative; padding: 0 0 1.2rem; }
    .timeline-item::before { content: ""; position: absolute; width: 9px; height: 9px; left: calc(-1.2rem - 4px); top: .48rem; background: var(--orange); border-radius: 50%; }
    .timeline-item strong { color: var(--orange-bright); margin-right: .5rem; }

    /* Gallery (Instagram feed section) */
    .gallery-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .75rem; }
    .gallery-item { padding: 0; border: 0; background: none; overflow: hidden; cursor: zoom-in; }
    .gallery-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .4s ease, filter .4s ease; }
    .gallery-item:hover img { transform: scale(1.06); filter: contrast(1.1); }
    .modal-content { background: var(--ink); border: 1px solid var(--line); color: var(--cream); }
    .modal-header { border-bottom-color: var(--line); }
    .lightbox-image { max-height: 78vh; width: 100%; object-fit: contain; }

    /* Events (formerly Tour) */
    .tour-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
    .tour-list { border-top: 1px solid var(--line); }
    .tour-row { display: grid; grid-template-columns: 105px 1fr auto; gap: 1rem; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
    .tour-date { color: var(--orange-bright); font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
    .tour-place strong { display: block; }
    .tour-place span { color: var(--muted); font-size: .85rem; }
    .tour-row .tour-link { color: var(--cream); font-size: 1.1rem; transition: transform .2s; }
    .tour-row:hover .tour-link { color: var(--orange-bright); transform: translateX(4px); }

    /* Support */
    .support-section {
      background: linear-gradient(90deg, rgba(17,20,17,.96) 0%, rgba(17,20,17,.78) 48%, rgba(17,20,17,.15) 100%),
      url("https://images.unsplash.com/photo-1416879595882-3373a0480b5b?auto=format&fit=crop&w=2000&q=80") center 58% / cover no-repeat;
    }
    .support-copy { max-width: 570px; }

    /* Feature / lyrics */
    .feature-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
    .feature-grid img { width: 100%; aspect-ratio: 5/3; object-fit: cover; }
    .lyric-card { max-width: 580px; border-left: 3px solid var(--orange); padding-left: 1.5rem; margin: 1.5rem 0; }
    .lyric-card blockquote { font-family: "Oswald", sans-serif; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.3; margin: 0; }
    .lyric-card cite { display: block; margin-top: .7rem; font-size: .82rem; font-style: normal; color: var(--muted); }

/* Contact Section (Atmospheric Full-Bleed) */
    .contact-atmospheric {
      position: relative;
      isolation: isolate;
      border: none;
      background-color: var(--ink-soft);
      background-image: url("../assets/img/contact-bg-trail.jpeg");
      background-position: center center;
      background-size: cover;
      background-repeat: no-repeat;
      overflow: hidden;
    }

    /* Darkened scrim overlay for accessibility & contrast */
    .contact-atmospheric::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -1;
      pointer-events: none;
      /* Deeper left-to-right scrim (96% down to 45%) plus a subtle bottom lift */
      background:linear-gradient(90deg, rgba(26, 26, 26, 0.88) 0%, rgba(26, 26, 26, 0.55) 45%, rgba(26, 26, 26, 0.2) 100%),
    linear-gradient(0deg, rgba(26, 26, 26, 0.75) 0%, transparent 50%);
    }

    .contact-atmospheric-content {
      max-width: 640px;
    }

    .contact-atmospheric-content h2 {
      font-size: clamp(2.2rem, 4.2vw, 3.4rem);
      margin-bottom: 1rem;
      /* Ensures heading stays crisp */
      text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
    }

    .contact-atmospheric-lead {
      font-size: 1.05rem;
      color: var(--cream);
      opacity: 0.95;
      line-height: 1.7;
      margin-bottom: 2rem;
      text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
    }

    .contact-action-bar {
      display: flex;
      flex-direction: column;
      gap: 1.25rem;
    }

    .email-display {
      display: inline-flex;
      align-items: center;
      font-size: clamp(1.25rem, 2.8vw, 1.85rem);
      font-weight: 700;
      font-family: "Oswald", sans-serif;
      letter-spacing: .02em;
      color: var(--orange-bright);
      transition: transform .2s ease, color .2s ease;
      word-break: break-all;
      text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    }

    .email-display:hover {
      color: white;
      transform: translateX(4px);
    }

    @media (max-width: 575.98px) {
      .contact-atmospheric {
        background-position: center 30%;
      }
      .contact-atmospheric::before {
        /* Extra darkening on mobile viewports so text doesn't clash with trail highlights */
        background: linear-gradient(0deg, rgba(18, 19, 18, 0.96) 25%, rgba(18, 19, 18, 0.72) 100%);
      }
    }

    /* Footer */
    .site-footer { padding: 2.3rem 0 1.2rem; background: #141514; }
    .footer-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
    .footer-links, .social-links { display: flex; align-items: center; flex-wrap: wrap; gap: 1.2rem; }
    .footer-links a, .social-links a { color: #e6ded5; font-size: .83rem; }
    .social-links a { font-size: 1.15rem; }
    .footer-social-icon { display: inline-block; width: 1.15rem; height: 1.15rem; object-fit: contain; vertical-align: middle; }
    .copyright { font-size: .75rem; color: #fff7ed; margin: 1.8rem 0 0; }
    .sticky-cta {
      position: fixed; bottom: 0; left: 0; right: 0; z-index: 1020; min-height: var(--footer-height);
      display: flex; align-items: center; justify-content: center; gap: 1.2rem; padding: .45rem 1rem;
      background: rgba(20,21,20,.96); border-top: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(12px);
    }
    .sticky-cta span { font-size: .82rem; color: #e4ddd5; }
    .sticky-cta .btn-dap { min-height: 36px; padding: .45rem 1rem; font-size: .78rem; }
    .back-top {
      position: fixed; right: 1.25rem; bottom: calc(var(--footer-height) + 1rem); z-index: 1010;
      width: 43px; height: 43px; display: grid; place-items: center; border: 1px solid var(--line);
      border-radius: 50%; background: rgba(26,26,26,.88); color: var(--cream); opacity: 0; visibility: hidden;
      transform: translateY(8px); transition: .25s;
    }
    .back-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
    .back-top:hover { color: white; background: var(--orange); border-color: var(--orange); }

    /* Motion preferences */
    .fade-in { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
    .fade-in.is-visible { opacity: 1; transform: translateY(0); }
    .reduced-motion * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
      .fade-in { opacity: 1; transform: none; }
    }

    @media (max-width: 991.98px) {
      :root { --nav-height: 72px; }
      .navbar-collapse { position: absolute; top: var(--nav-height); left: 0; right: 0; background: #1a1a1a; padding: .75rem 1.5rem 1.25rem; border-bottom: 1px solid var(--line); }
      .navbar-nav { gap: .2rem; }
      .navbar-nav .nav-link { padding: .7rem 0 !important; }
      .about-grid, .feature-grid, .tour-layout { grid-template-columns: 1fr; }
      .about-image-wrap { max-width: 680px; }
      .music-grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 575.98px) {
      :root { --nav-height: 66px; --footer-height: 56px; }
      .container-wide { width: min(100% - 2rem, var(--content-width)); }
      .brand { font-size: 1.15rem; }
      .hero { min-height: 650px; background-position: 58% center; }
      .hero::before { background: linear-gradient(90deg, rgba(12,17,18,.8), rgba(12,17,18,.35)), linear-gradient(0deg, rgba(12,17,18,.65), transparent); }
      .hero-inner { padding-block: 4rem 6rem; }
      .hero h1 { font-size: clamp(3.4rem, 16vw, 5.4rem); }
      .streaming-bar-content { flex-direction: column; align-items: flex-start; gap: .75rem; }
      .section-heading { align-items: start; flex-direction: column; }
      .music-grid { gap: 1.2rem .8rem; }
      .tour-row { grid-template-columns: 75px 1fr auto; gap: .65rem; }
      .tour-date { font-size: .7rem; }
      .tour-place strong { font-size: .9rem; }
      .tour-place span { font-size: .78rem; }
      .gallery-grid { grid-template-columns: repeat(2, 1fr); }
      .gallery-item:last-child { display: none; }
      .sticky-cta { justify-content: space-between; gap: .5rem; }
      .sticky-cta span { font-size: .73rem; max-width: 58%; line-height: 1.25; }
      .sticky-cta .btn-dap { white-space: nowrap; }
      .footer-grid { align-items: flex-start; }
    }

