:root {
      --forest: #1e3020;
      --forest-mid: #2a4030;
      --forest-light: #3a5540;
      --cream: #f0e8d0;
      --cream-light: #f7f2e6;
      --gold: #c8a84b;
      --gold-light: #e2c878;
      --gold-dark: #9a7a28;
      --rust: #8b4513;
      --slate: #4a5a4a;
      --ink: #1a1f1a;
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    html { scroll-behavior: smooth; }

    body {
      background-color: var(--forest);
      color: var(--cream);
      font-family: 'Crimson Text', Georgia, serif;
      font-size: 18px;
      line-height: 1.7;
      overflow-x: hidden;
    }

    /* ─── NOISE TEXTURE OVERLAY ─── */
    body::before {
      content: '';
      position: fixed;
      inset: 0;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
      pointer-events: none;
      z-index: 1000;
      opacity: 0.4;
    }

    /* ─── TYPOGRAPHY ─── */
    h1, h2, h3, h4 {
      font-family: 'Playfair Display', Georgia, serif;
      line-height: 1.15;
    }

    .label {
      font-family: 'Libre Baskerville', Georgia, serif;
      font-size: 0.7rem;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      color: var(--gold);
    }

    /* ─── GOLD RULE ─── */
    .gold-rule {
      display: flex;
      align-items: center;
      gap: 1rem;
      margin: 2rem 0;
    }
    .gold-rule::before, .gold-rule::after {
      content: '';
      flex: 1;
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--gold-dark), var(--gold), var(--gold-dark), transparent);
    }
    .gold-rule span {
      font-size: 1.2rem;
      color: var(--gold);
    }

    /* ─── NAV ─── */
    nav {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      background: linear-gradient(180deg, rgba(18,26,20,0.97) 0%, rgba(18,26,20,0.85) 100%);
      backdrop-filter: blur(8px);
      border-bottom: 1px solid rgba(200, 168, 75, 0.25);
      padding: 0.85rem 2rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .nav-logo {
      font-family: 'Playfair Display', serif;
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--gold);
      letter-spacing: 0.05em;
      text-decoration: none;
    }

    .nav-links {
      display: flex;
      gap: 2.2rem;
      list-style: none;
    }

    .nav-links a {
      font-family: 'Libre Baskerville', serif;
      font-size: 0.7rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--cream);
      text-decoration: none;
      opacity: 0.8;
      transition: opacity 0.2s, color 0.2s;
    }

    .nav-links a:hover { opacity: 1; color: var(--gold); }

    .nav-register {
      background: var(--gold);
      color: var(--forest) !important;
      padding: 0.45rem 1.1rem;
      opacity: 1 !important;
      font-weight: 700;
      border-radius: 2px;
      transition: background 0.2s !important;
    }
    .nav-register:hover { background: var(--gold-light) !important; }

    /* ─── HERO ─── */
    .hero {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 8rem 2rem 5rem;
      position: relative;
      background:
        radial-gradient(ellipse 80% 50% at 50% 100%, rgba(26,48,28,0.95) 0%, transparent 70%),
        linear-gradient(180deg, rgba(18,26,20,0.6) 0%, rgba(30,48,32,0.4) 50%, rgba(18,26,20,0.9) 100%),
        url('../img/background.jpg') center/cover no-repeat;
    }

    .hero-eyebrow {
      display: flex;
      align-items: center;
      gap: 1rem;
      margin-bottom: 2rem;
      animation: fadeUp 0.8s ease both;
    }

    .hero-eyebrow::before, .hero-eyebrow::after {
      content: '◆';
      font-size: 0.5rem;
      color: var(--gold);
    }

    .hero-logo {
      width: min(260px, 55vw);
      margin-bottom: 2.5rem;
      filter: drop-shadow(0 8px 40px rgba(0,0,0,0.6));
      animation: fadeUp 0.8s 0.15s ease both;
    }

    .hero h1 {
      font-size: clamp(2.8rem, 8vw, 6.5rem);
      font-weight: 900;
      color: var(--cream-light);
      letter-spacing: -0.01em;
      animation: fadeUp 0.8s 0.25s ease both;
      text-shadow: 0 4px 30px rgba(0,0,0,0.5);
    }

    .hero h1 em {
      font-style: italic;
      color: var(--gold-light);
    }

    .hero-subtitle {
      font-size: clamp(1.1rem, 3vw, 1.5rem);
      color: var(--cream);
      opacity: 0.85;
      margin: 1rem 0 2.5rem;
      animation: fadeUp 0.8s 0.35s ease both;
      letter-spacing: 0.03em;
    }

    .hero-meta {
      display: flex;
      gap: 2rem;
      justify-content: center;
      flex-wrap: wrap;
      margin-bottom: 3rem;
      animation: fadeUp 0.8s 0.45s ease both;
    }

    .meta-chip {
      background: rgba(200, 168, 75, 0.12);
      border: 1px solid rgba(200, 168, 75, 0.35);
      padding: 0.5rem 1.3rem;
      border-radius: 2px;
      font-family: 'Libre Baskerville', serif;
      font-size: 0.72rem;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--gold-light);
    }

    .hero-cta {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
      justify-content: center;
      animation: fadeUp 0.8s 0.55s ease both;
    }

    .btn-primary {
      display: inline-block;
      background: var(--gold);
      color: var(--forest);
      font-family: 'Libre Baskerville', serif;
      font-size: 0.75rem;
      font-weight: 700;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      padding: 1rem 2.5rem;
      text-decoration: none;
      border-radius: 2px;
      transition: background 0.25s, transform 0.2s;
      box-shadow: 0 4px 20px rgba(200,168,75,0.3);
    }
    .btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }

    .btn-secondary {
      display: inline-block;
      border: 1px solid rgba(200, 168, 75, 0.5);
      color: var(--cream);
      font-family: 'Libre Baskerville', serif;
      font-size: 0.75rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      padding: 1rem 2.5rem;
      text-decoration: none;
      border-radius: 2px;
      transition: background 0.25s, border-color 0.25s, transform 0.2s;
    }
    .btn-secondary:hover {
      background: rgba(200,168,75,0.1);
      border-color: var(--gold);
      transform: translateY(-2px);
    }

    /* ─── SCROLL INDICATOR ─── */
    .scroll-hint {
      position: absolute;
      bottom: 2.5rem;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.5rem;
      animation: fadeIn 1s 1.2s ease both;
    }
    .scroll-hint span { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); opacity: 0.7; }
    .scroll-arrow {
      width: 1px;
      height: 40px;
      background: linear-gradient(180deg, var(--gold), transparent);
      animation: scrollPulse 1.8s ease-in-out infinite;
    }

    /* ─── SECTIONS ─── */
    section {
      padding: 5rem 2rem;
    }

    .container {
      max-width: 900px;
      margin: 0 auto;
    }

    .container-wide {
      max-width: 1100px;
      margin: 0 auto;
    }

    .section-header {
      text-align: center;
      margin-bottom: 3.5rem;
    }

    .section-header h2 {
      font-size: clamp(2rem, 5vw, 3.2rem);
      font-weight: 700;
      color: var(--cream-light);
      margin-top: 0.6rem;
    }

    /* ─── CAUSE BAND ─── */
    .cause-band {
      background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-dark) 100%);
      color: var(--forest);
      text-align: center;
      padding: 3rem 2rem;
    }
    .cause-band h2 {
      font-size: clamp(1.4rem, 4vw, 2.2rem);
      font-weight: 900;
      color: var(--forest);
      margin-bottom: 0.7rem;
    }
    .cause-band p {
      font-size: 1.1rem;
      color: var(--forest-mid);
      max-width: 600px;
      margin: 0 auto;
      font-weight: 600;
    }
    .cause-logo {
      font-family: 'Playfair Display', serif;
      font-size: 2.5rem;
      font-weight: 900;
      display: block;
      margin-bottom: 0.5rem;
    }

    /* ─── ABOUT ─── */
    .about {
      background: var(--forest-mid);
    }

    .about p {
      font-size: 1.15rem;
      color: var(--cream);
      opacity: 0.9;
      max-width: 700px;
      margin: 0 auto;
      text-align: center;
    }

    .about p + p { margin-top: 1.3rem; }

    /* ─── DISTANCES ─── */
    .distances {
      background: var(--forest);
    }

    .distance-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 2px;
      margin-top: 1rem;
    }

    .distance-card {
      background: var(--forest-mid);
      padding: 3rem 2.5rem;
      position: relative;
      overflow: hidden;
      border: 1px solid rgba(200, 168, 75, 0.15);
      transition: border-color 0.3s, transform 0.3s;
    }
    .distance-card:hover {
      border-color: rgba(200, 168, 75, 0.5);
      transform: translateY(-4px);
    }

    .distance-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 3px;
      background: linear-gradient(90deg, transparent, var(--gold), transparent);
      opacity: 0;
      transition: opacity 0.3s;
    }
    .distance-card:hover::before { opacity: 1; }

    .distance-number {
      font-family: 'Playfair Display', serif;
      font-size: 5rem;
      font-weight: 900;
      color: var(--gold);
      line-height: 1;
      margin-bottom: 0.5rem;
      opacity: 0.9;
    }

    .distance-unit {
      font-size: 1.5rem;
      color: var(--gold-dark);
    }

    .distance-card h3 {
      font-size: 1.3rem;
      color: var(--cream);
      margin-bottom: 1.5rem;
    }

    .distance-stats {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 0.7rem;
      margin-bottom: 2rem;
    }

    .distance-stats li {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.9rem;
      color: var(--cream);
      opacity: 0.85;
      padding-bottom: 0.7rem;
      border-bottom: 1px solid rgba(255,255,255,0.07);
    }
    .distance-stats li:last-child { border-bottom: none; }

    .distance-stats .stat-label {
      font-family: 'Libre Baskerville', serif;
      font-size: 0.62rem;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      opacity: 0.6;
    }
    .distance-stats .stat-val {
      font-size: 1rem;
      font-weight: 600;
      color: var(--cream-light);
    }

    .price-tag {
      font-family: 'Playfair Display', serif;
      font-size: 2rem;
      color: var(--gold);
      font-weight: 700;
    }
    .price-note {
      font-size: 0.8rem;
      opacity: 0.6;
      display: block;
    }

    /* ─── SCHEDULE ─── */
    .schedule {
      background: var(--forest-mid);
    }

    .schedule-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 3rem;
    }

    .schedule-col h3 {
      font-size: 1.4rem;
      color: var(--gold);
      margin-bottom: 1.5rem;
      font-style: italic;
    }

    .timeline {
      list-style: none;
      position: relative;
      padding-left: 1.5rem;
    }

    .timeline::before {
      content: '';
      position: absolute;
      left: 0;
      top: 0.5rem;
      bottom: 0.5rem;
      width: 1px;
      background: linear-gradient(180deg, var(--gold-dark), transparent);
    }

    .timeline li {
      position: relative;
      padding-bottom: 1.2rem;
      color: var(--cream);
      opacity: 0.85;
      font-size: 0.95rem;
    }

    .timeline li::before {
      content: '';
      position: absolute;
      left: -1.65rem;
      top: 0.55rem;
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--gold);
      border: 2px solid var(--forest-mid);
    }

    .timeline .time {
      font-family: 'Libre Baskerville', serif;
      font-size: 0.65rem;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--gold);
      display: block;
      margin-bottom: 0.15rem;
    }

    /* ─── COURSE ─── */
    .course {
      background: var(--forest);
    }

    .course-description {
      font-size: 1.1rem;
      color: var(--cream);
      opacity: 0.9;
      max-width: 680px;
      margin: 0 auto 2.5rem;
      text-align: center;
    }

    .course-map-img {
      width: 100%;
      max-width: 700px;
      display: block;
      margin: 0 auto 2rem;
      border: 1px solid rgba(200, 168, 75, 0.2);
      border-radius: 4px;
    }

    .alltrails-links {
      display: flex;
      gap: 1rem;
      justify-content: center;
      flex-wrap: wrap;
      margin-top: 2rem;
    }

    .trail-link {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      background: rgba(200, 168, 75, 0.1);
      border: 1px solid rgba(200, 168, 75, 0.3);
      padding: 0.8rem 1.5rem;
      text-decoration: none;
      color: var(--gold-light);
      font-family: 'Libre Baskerville', serif;
      font-size: 0.72rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      border-radius: 2px;
      transition: background 0.2s, border-color 0.2s;
    }
    .trail-link:hover { background: rgba(200, 168, 75, 0.2); border-color: var(--gold); }
    .trail-link svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }

    .trail-names {
      text-align: center;
      font-size: 0.88rem;
      color: var(--cream);
      opacity: 0.6;
      max-width: 600px;
      margin: 1.5rem auto 0;
      font-style: italic;
    }

    /* ─── AID STATIONS ─── */
    .aid-stations {
      background: var(--forest-mid);
    }

    .aid-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1.5rem;
      margin-top: 1rem;
    }

    .aid-card {
      background: rgba(18, 26, 20, 0.5);
      border: 1px solid rgba(200, 168, 75, 0.15);
      padding: 2rem;
      border-radius: 2px;
    }

    .aid-card h3 {
      font-size: 1.2rem;
      color: var(--gold);
      margin-bottom: 0.3rem;
    }

    .aid-card .aid-dist {
      font-family: 'Libre Baskerville', serif;
      font-size: 0.65rem;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--gold-dark);
      margin-bottom: 1rem;
    }

    .aid-card p {
      font-size: 0.95rem;
      opacity: 0.85;
    }

    .food-list {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin-top: 1rem;
    }

    .food-chip {
      background: rgba(200, 168, 75, 0.1);
      border: 1px solid rgba(200, 168, 75, 0.2);
      padding: 0.25rem 0.7rem;
      font-size: 0.78rem;
      color: var(--cream);
      opacity: 0.8;
      border-radius: 20px;
    }

    /* ─── GEAR ─── */
    .gear {
      background: var(--forest);
    }

    .gear-cols {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 3rem;
    }

    .gear-group h3 {
      font-size: 1.1rem;
      color: var(--gold);
      font-style: italic;
      margin-bottom: 1rem;
    }

    .gear-group ul {
      list-style: none;
    }

    .gear-group ul li {
      padding: 0.5rem 0;
      border-bottom: 1px solid rgba(255,255,255,0.06);
      font-size: 0.98rem;
      opacity: 0.85;
    }

    .gear-group ul li::before {
      content: '— ';
      color: var(--gold-dark);
    }

    /* ─── RULES ─── */
    .rules {
      background: var(--forest-mid);
    }

    .rules ol {
      list-style: none;
      counter-reset: rule-counter;
      max-width: 680px;
      margin: 0 auto;
    }

    .rules ol li {
      counter-increment: rule-counter;
      display: grid;
      grid-template-columns: 2.5rem 1fr;
      gap: 1rem;
      padding: 1rem 0;
      border-bottom: 1px solid rgba(255,255,255,0.06);
      font-size: 0.98rem;
      opacity: 0.9;
    }

    .rules ol li::before {
      content: counter(rule-counter, upper-roman);
      font-family: 'Playfair Display', serif;
      font-size: 0.85rem;
      color: var(--gold-dark);
      padding-top: 0.15rem;
      text-align: right;
    }

    /* ─── PARKING / LOGISTICS ─── */
    .logistics {
      background: var(--forest);
    }

    .logistics-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
    }

    .logistics-card {
      border: 1px solid rgba(200, 168, 75, 0.15);
      padding: 1.8rem;
      border-radius: 2px;
      background: rgba(255,255,255,0.02);
    }

    .logistics-card h3 {
      font-size: 1.1rem;
      color: var(--gold);
      margin-bottom: 0.8rem;
    }

    .logistics-card p {
      font-size: 0.9rem;
      opacity: 0.8;
      line-height: 1.65;
    }

    /* ─── VOLUNTEER ─── */
    .volunteer {
      background: linear-gradient(135deg, var(--forest-mid), var(--forest));
      text-align: center;
    }

    .volunteer p {
      max-width: 580px;
      margin: 0 auto 1.5rem;
      opacity: 0.85;
      font-size: 1.05rem;
    }

    .volunteer-roles {
      display: flex;
      flex-wrap: wrap;
      gap: 0.7rem;
      justify-content: center;
      margin: 2rem 0;
    }

    .role-badge {
      background: rgba(200, 168, 75, 0.1);
      border: 1px solid rgba(200, 168, 75, 0.25);
      padding: 0.4rem 1rem;
      font-size: 0.8rem;
      font-family: 'Libre Baskerville', serif;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--cream);
      border-radius: 20px;
    }

    /* ─── POLICIES ─── */
    .policies {
      background: var(--forest-mid);
    }

    .policy-grid {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 2rem;
    }

    .policy-card {
      padding: 0;
    }

    .policy-card h3 {
      font-size: 1rem;
      color: var(--gold);
      font-style: italic;
      margin-bottom: 0.8rem;
    }

    .policy-card p {
      font-size: 0.88rem;
      opacity: 0.8;
      line-height: 1.7;
    }

    /* ─── SPONSORS ─── */
    .sponsors {
      background: var(--forest);
      text-align: center;
    }

    .sponsor-grid {
      display: flex;
      background-color: rgba(200, 245, 200, 0.5); 
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
      gap: 2rem;
      margin-top: 2rem;
      padding:3rem;
      border-radius: 25px; 
    }

    .sponsor-item {
      opacity: 0.6;
      filter: brightness(1.2) grayscale(0.3);
      transition: opacity 0.6s, filter 0.3s;
      max-width: 150px;
    }
    .sponsor-item:hover { opacity: 1; filter: brightness(1.3) grayscale(0); }

    .sponsor-note {
      font-size: 0.9rem;
      opacity: 0.5;
      font-style: italic;
      margin-top: 2rem;
    }

    /* ─── REGISTER CTA ─── */
    .register-cta {
      background: linear-gradient(135deg, var(--forest) 0%, var(--forest-mid) 50%, var(--forest) 100%);
      text-align: center;
      padding: 7rem 2rem;
      position: relative;
      overflow: hidden;
    }

    .register-cta::before {
      content: 'TBM';
      position: absolute;
      font-family: 'Playfair Display', serif;
      font-size: 25vw;
      font-weight: 900;
      color: rgba(200, 168, 75, 0.04);
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      pointer-events: none;
      white-space: nowrap;
    }

    .register-cta h2 {
      font-size: clamp(2rem, 6vw, 4rem);
      color: var(--cream-light);
      margin-bottom: 0.5rem;
    }

    .register-cta .subtitle {
      font-size: 1.15rem;
      opacity: 0.7;
      margin-bottom: 2.5rem;
    }

    .register-cta .spots {
      display: inline-block;
      background: rgba(200, 168, 75, 0.1);
      border: 1px solid rgba(200, 168, 75, 0.3);
      padding: 0.4rem 1.2rem;
      font-family: 'Libre Baskerville', serif;
      font-size: 0.68rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 2.5rem;
      border-radius: 2px;
    }

    .register-buttons {
      display: flex;
      gap: 1.5rem;
      justify-content: center;
      flex-wrap: wrap;
    }

    /* ─── FOOTER ─── */
    footer {
      background: rgba(0,0,0,0.4);
      border-top: 1px solid rgba(200, 168, 75, 0.15);
      padding: 3rem 2rem;
      text-align: center;
    }

    footer .footer-logo {
      font-family: 'Playfair Display', serif;
      font-size: 1.5rem;
      color: var(--gold);
      margin-bottom: 1rem;
      font-style: italic;
    }

    footer p {
      font-size: 0.85rem;
      opacity: 0.5;
      margin-bottom: 0.4rem;
    }

    footer a {
      color: var(--gold);
      text-decoration: none;
      opacity: 0.8;
      transition: opacity 0.2s;
    }
    footer a:hover { opacity: 1; }

    /* ─── ANIMATIONS ─── */
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(24px); }
      to { opacity: 1; transform: translateY(0); }
    }

    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    @keyframes scrollPulse {
      0%, 100% { opacity: 0.3; transform: scaleY(1); }
      50% { opacity: 1; transform: scaleY(1.15); }
    }

    /* ─── RESPONSIVE ─── */
    @media (max-width: 768px) {
      nav { display: none; }
      .distance-grid,
      .schedule-grid,
      .gear-cols,
      .aid-grid,
      .policy-grid,
      .logistics-grid { grid-template-columns: 1fr; }
      .hero { padding: 5rem 1.5rem 4rem; }
      section { padding: 3.5rem 1.5rem; }
    }
