:root {
  /* Shared navy palette for every main-site page and the music player. */
  --bg: #15253B;
  --surface: #223650;
  --surface-2: #2C4461;
  --intro-background: #1C304B;
  --navigation-background: rgba(15, 27, 46, .94);
  --deep: #0F1B2E;
  --page-hero-background: linear-gradient(180deg, rgba(48, 76, 111, .30), transparent);
  --control-background: rgba(15, 27, 46, .50);
  --overlay-background: rgba(15, 27, 46, .85);
  --badge-background: rgba(15, 27, 46, .70);
  --player-backdrop: rgba(15, 27, 46, .78);
  --player-mini-background: rgba(34, 54, 80, .98);
  --hero-shade: rgba(21, 37, 59, .12);
  --hero-shade-subtle: rgba(21, 37, 59, .08);
  --hero-shade-mobile: rgba(21, 37, 59, .16);
  --text: #f5f1e8;
  --muted: #dedede;
  --gold: #e1b382;
  --gold-light: #efd2b3;
  --line: rgba(215, 173, 104, .24);
  --shadow: 0 24px 70px rgba(0, 0, 0, .34);
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Red Hat Text", system-ui, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 80% 5%, rgba(225, 179, 130, .10), transparent 32rem),
    var(--bg);
}
a { color: inherit; }
img, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea { font: inherit; }

.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 100; background: var(--gold); color: var(--deep); padding: .7rem 1rem; }
.skip-link:focus { top: 1rem; }
.container { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navigation-background);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
}
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.brand img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { flex-shrink: 0; white-space: nowrap; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .92rem; letter-spacing: .08em; text-transform: uppercase; transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--gold-light); }
.nav-toggle { display: none; color: var(--text); background: transparent; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: .55rem .7rem; }

.hero { height: 600px; display: grid; align-items: end; position: relative; overflow: hidden; isolation: isolate; }
.hero-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--hero-shade), transparent 35%); }
.hero:has(+ .hero-intro)::after { background: linear-gradient(0deg, var(--hero-shade-subtle), transparent 28%); }
.hero-content { padding: clamp(5rem, 13vh, 9rem) 0 7rem; max-width: 720px; }
.hero-content.no-title { padding-top: clamp(14rem, 37vh, 24rem); }
.hero-intro { background: var(--intro-background); border-block: 1px solid rgba(255,255,255,.12); }
.hero-intro-inner { min-height: 116px; padding-block: 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.hero-intro-inner .eyebrow { margin-bottom: .25rem; }
.hero-intro-inner p:last-child { margin: 0; color: #d8dde1; }
.hero-intro-actions { display: flex; align-items: center; gap: 1.2rem; flex: 0 0 auto; }
.eyebrow { margin: 0 0 1rem; color: var(--gold-light); font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
h1, h2, h3 { font-family: "Red Hat Text", "Segoe UI", system-ui, sans-serif; line-height: 1.12; font-weight: 500; margin-top: 0; }
h1 { margin-bottom: 1.3rem; font-size: clamp(3.1rem, 8vw, 6.8rem); letter-spacing: -.045em; }
h2 { margin-bottom: 1rem; font-size: clamp(2.1rem, 4.5vw, 4rem); letter-spacing: -.035em; }
h3 { font-size: 1.55rem; }
.lead { color: #d8dde1; font-size: clamp(1.08rem, 2vw, 1.32rem); max-width: 650px; }
.actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.2rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.25rem; border: 1px solid var(--gold); border-radius: 999px; background: var(--gold); color: var(--deep); text-decoration: none; font-weight: 700; cursor: pointer; transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-2px); background: var(--gold-light); }
.btn-secondary { background: var(--control-background); color: var(--text); border-color: rgba(255,255,255,.34); }
.btn-small { min-height: 38px; padding: .45rem .9rem; font-size: .88rem; }

.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section-soft { background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.012)); border-block: 1px solid rgba(255,255,255,.06); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.3rem; }
.section-head > div { max-width: 720px; }
.section-head p, .muted { color: var(--muted); }
.text-link { color: var(--gold-light); text-decoration-thickness: 1px; text-underline-offset: .35em; }

.feature { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); min-height: 520px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.feature-media { min-height: 440px; background: var(--bg); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 6vw, 5rem); }
.credits { color: var(--gold-light); font-size: .9rem; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.music-card { overflow: hidden; display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid rgba(255,255,255,.08); border-radius: 18px; transition: transform .25s, border-color .25s; }
.music-card:hover { transform: translateY(-5px); border-color: var(--line); }
[data-detail-href] { cursor: pointer; }
[data-detail-href]:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }
.card-image { aspect-ratio: 1.25; overflow: hidden; background: var(--bg); }
.card-image a { display: block; width: 100%; height: 100%; position: relative; }
.card-image a::after { content: "View song"; position: absolute; right: .85rem; bottom: .85rem; padding: .38rem .72rem; border-radius: 999px; color: var(--deep); background: rgba(240,211,155,.94); font-size: .75rem; font-weight: 700; opacity: 0; transform: translateY(5px); transition: opacity .2s, transform .2s; }
.music-card:hover .card-image a::after, .card-image a:focus-visible::after { opacity: 1; transform: none; }
.card-image img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s; }
.music-card:hover .card-image img { transform: scale(1.025); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 1.35rem; }
.card-meta { color: var(--gold-light); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.card-body h3 { margin: .45rem 0 .65rem; }
.card-body p { color: var(--muted); margin-top: 0; }
.card-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: auto; padding-top: .7rem; }
.tag { padding: .35rem .65rem; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; color: #d8dce0; font-size: .76rem; text-decoration: none; }
.tag:hover { border-color: var(--gold); color: var(--gold-light); }
details.story { margin-top: 1rem; border-top: 1px solid rgba(255,255,255,.09); padding-top: .9rem; }
details.story summary { color: var(--gold-light); cursor: pointer; font-size: .9rem; }

.filter-bar { display: flex; flex-wrap: wrap; gap: .65rem; margin: 0 0 2rem; }
.filter { border: 1px solid rgba(255,255,255,.16); background: transparent; color: var(--muted); border-radius: 999px; padding: .55rem 1rem; cursor: pointer; }
.filter:hover, .filter.active { color: var(--deep); background: var(--gold); border-color: var(--gold); }
.music-card[hidden] { display: none; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 8vw, 7rem); align-items: center; }
.portrait { min-height: 560px; border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow); }
.portrait-landscape { min-height: 420px; }
.split img[src$="ProjectEarthbridgeLogo1.jpg"], .split .project-logo { min-height: 0; max-height: 440px; width: 100%; object-fit: contain; background: var(--bg); }
.quote { padding-left: 1.5rem; border-left: 2px solid var(--gold); font: 1.35rem/1.5 Georgia, serif; color: #e9e2d6; }
.timeline { display: grid; gap: 0; margin-top: 3rem; }
.timeline-item { display: grid; grid-template-columns: 90px 1fr; gap: 1.5rem; padding: 0 0 2.4rem; }
.timeline-year { color: var(--gold-light); font-weight: 700; }
.timeline-copy { position: relative; padding-left: 2rem; border-left: 1px solid var(--line); }
.timeline-copy::before { content: ""; position: absolute; left: -5px; top: .35rem; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }

.page-hero { padding: clamp(6rem, 12vw, 10rem) 0 4rem; background: var(--page-hero-background); }
.page-hero h1 { font-size: clamp(3rem, 7vw, 5.8rem); }
.page-hero .lead { max-width: 760px; }

.song-page { min-height: 75vh; padding: clamp(3rem, 7vw, 6rem) 0; }
.song-back { display: inline-block; margin-bottom: 2rem; }
.song-detail { display: grid; grid-template-columns: minmax(300px,.8fr) minmax(0,1.2fr); gap: clamp(2.5rem,7vw,7rem); align-items: start; }
.song-art { position: sticky; top: 110px; background: var(--bg); }
.song-art img { width: 100%; height: auto; object-fit: contain; border-radius: var(--radius); }
.song-copy h1 { font-size: clamp(3rem,6vw,5.5rem); }
.song-credits { margin: 1.5rem 0 2.2rem; padding: 1.2rem 1.4rem; border-left: 2px solid var(--gold); background: var(--surface); }
.song-credits p { margin: .2rem 0; color: #d8dde1; }
.song-story { color: #d6d9dc; font-size: 1.04rem; }
.song-story p { margin: 0 0 1.35rem; }
.song-story a { color: var(--gold-light); }
.song-story blockquote { margin: 2rem 0; padding: 1.4rem 0 1.4rem 1.5rem; border-left: 2px solid var(--gold); color: var(--text); font: 1.2rem/1.7 Georgia,serif; }
.dedication { margin: 2rem 0; padding: 1.5rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.distribution { margin-top: 3rem; padding: 1.5rem; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; text-align: center; color: var(--muted); }
.song-not-found { padding: 5rem 0; }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 8vw, 7rem); align-items: start; }
.contact-card, .form-card { padding: clamp(1.5rem, 4vw, 2.7rem); background: var(--surface); border: 1px solid rgba(255,255,255,.09); border-radius: var(--radius); }
.contact-mail { color: var(--gold-light); font-size: clamp(1rem, 2.5vw, 1.25rem); overflow-wrap: anywhere; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; margin-bottom: .4rem; color: #d9dde0; font-size: .9rem; }
.field input, .field textarea { width: 100%; color: var(--text); background: var(--deep); border: 1px solid rgba(255,255,255,.15); border-radius: 10px; padding: .85rem 1rem; outline: none; }
.field input:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(215,173,104,.12); }
.field textarea { min-height: 170px; resize: vertical; }
.honeypot { position: absolute; left: -10000px; }
.form-status { min-height: 1.6em; margin-top: 1rem; color: var(--gold-light); }

.site-footer { padding: 3.5rem 0 2rem; border-top: 1px solid rgba(255,255,255,.12); background: var(--deep); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr .9fr; gap: 3rem; }
.footer-brand { max-width: 410px; }
.footer-title { color: var(--gold-light); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.footer-links { display: grid; gap: .55rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--gold-light); }
.copyright { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.07); color: #7f878e; font-size: .82rem; }

@media (max-width: 850px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 78px; left: 0; right: 0; padding: 1.2rem 1rem 1.5rem; background: var(--deep); border-bottom: 1px solid rgba(255,255,255,.1); flex-direction: column; align-items: flex-start; gap: 1rem; }
  .nav-links.open { display: flex; }
  .feature, .split, .contact-grid { grid-template-columns: 1fr; }
  .feature-media { min-height: 360px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .song-detail { grid-template-columns: 1fr; }
  .song-art { position: static; max-width: 620px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 580px) {
  .brand span { font-size: .78rem; }
  .hero { height: auto; aspect-ratio: 2 / 1; }
  .hero::after { background: linear-gradient(0deg, var(--hero-shade-mobile), transparent 38%); }
  .hero-content { padding-bottom: 4rem; }
  .hero-content.no-title { padding-top: 16rem; }
  .hero-intro-inner { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .section-head { display: block; }
  .card-grid, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .feature-media { min-height: 300px; }
  .timeline-item { grid-template-columns: 60px 1fr; gap: .6rem; }
  .actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Shared generated-page helpers; retain the established layout and colours. */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.feature-compact { min-height: 420px; }
.feature + .feature { margin-top: 2rem; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }
html { scroll-padding-top: 100px; }
@media (max-width: 850px) {
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .nav-wrap { flex-wrap: wrap; padding-block: 1rem; gap: 1rem; }
  html:not(.js) .nav-links { position: static; display: flex; flex-direction: row; flex-wrap: wrap; padding: 0; background: transparent; border: 0; }
}

/* The project story film uses its original 16:9 proportions. */
.story-film { max-width: 960px; margin: 0 auto; }
.story-film video { width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--deep); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.story-film figcaption { margin-top: 1rem; color: var(--muted); font-size: .9rem; }

/* Full lyrics share the song page and use the same typography as its story. */
.song-lyrics { margin-top: 2.5rem; padding-top: 1.8rem; border-top: 1px solid var(--line); scroll-margin-top: 1.25rem; }
.song-lyrics h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); margin-bottom: 1.4rem; }
.lyrics-text { color: var(--muted); overflow-wrap: anywhere; }
.lyrics-text p { margin: 0 0 1.4rem; line-height: 1.85; }
.lyrics-text p:last-child { margin-bottom: 0; }

/* SEO improvements retain the existing palette, cards and hero geometry. */
.audience-card { min-width: 0; padding: clamp(1.4rem, 3vw, 2rem); display: flex; flex-direction: column; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.audience-card h3 { margin-bottom: .6rem; }
.audience-card p { margin-top: 0; color: var(--muted); }
.audience-card .text-link { margin-top: auto; padding-block: .65rem; }
.audience-card:target, #contact-form { scroll-margin-top: 100px; }
.song-title-link { text-decoration: none; }
.song-title-link:hover { text-decoration: underline; text-underline-offset: .2em; }
.song-title-link:focus-visible, .audience-card a:focus-visible, .footer-links a:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 5px; }
.song-release, .field-hint { color: var(--muted); font-size: .95rem; }
.field-hint { margin-block: .3rem .6rem; }
@media (max-width: 850px) { .audience-grid { grid-template-columns: 1fr; } }

/* Intro overlays the desktop cover; mobile keeps the text below the image. */
.home-cover { display: grid; isolation: isolate; }
.home-cover > .hero, .home-cover > .hero-intro { grid-area: 1 / 1; }
.home-cover > .hero-intro { align-self: end; z-index: 1; background: var(--intro-background); border-block: 0; }
.home-cover .hero-intro-inner { padding-block: 1rem; }
.home-cover .hero-intro-inner > div { min-width: 0; max-width: 760px; }
.home-cover .hero-intro-inner p:last-child { color: #f5f1e8; }
.latest-release-section { padding-top: clamp(1rem, 2vw, 1.5rem); }
@media (max-width: 580px) {
  .home-cover { display: block; }
  .home-cover > .hero-intro { background: var(--intro-background); }
  .home-cover .hero-intro-inner { padding-block: 1.25rem; }
}

/* Promo gallery keeps every film in its original proportions. */
.promo-hero { padding-bottom: 2rem; }
.promo-hero .lead { max-width: 680px; }
.promo-section { padding-top: 1rem; }
.promo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.promo-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.promo-card video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: var(--bg); }
.promo-card video:focus-visible { outline: 3px solid var(--gold-light); outline-offset: -3px; }
.promo-copy { padding: 1.4rem 1.5rem 1.6rem; }
.promo-copy .eyebrow { margin-bottom: .55rem; }
.promo-copy h2 { font-size: 1.4rem; line-height: 1.25; margin: 0 0 .35rem; font-weight: 600; }
.promo-duration { margin: 0; color: var(--muted); font-size: .9rem; }
@media (max-width: 850px) { .promo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .promo-grid { grid-template-columns: 1fr; gap: 1rem; } }
.promo-media { position: relative; }
.promo-start { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 58px; height: 58px; display: grid; place-items: center; padding: 15px; border-radius: 50%; border: 1px solid rgba(255,255,255,.65); color: #fff; background: var(--overlay-background); box-shadow: 0 2px 16px rgba(0,0,0,.45); cursor: pointer; }
.promo-start[hidden] { display: none; }
.promo-start svg { width: 100%; height: 100%; fill: currentColor; }
.promo-start:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }

/* Songwriting answers remain visible and linkable without JavaScript. */
.questions-hero { padding-bottom: 3rem; }
.questions-hero h1 { max-width: 900px; }
.questions-subtitle { margin-bottom: .8rem; color: var(--gold-light); font-size: clamp(1.1rem, 2vw, 1.4rem); }
.questions-section { padding-top: 2rem; }
.questions-layout { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.8fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.questions-index { position: sticky; top: 110px; padding: 1.5rem; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.questions-index h2 { margin-bottom: 1rem; font: 700 .8rem/1.5 "Segoe UI", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); }
.questions-index ol { margin: 0; padding-left: 1.4rem; }
.questions-index li { color: var(--gold-light); }
.questions-index a { display: block; min-height: 44px; padding: .6rem 0 .6rem .35rem; color: var(--text); text-underline-offset: .25em; }
.questions-index a:hover { color: var(--gold-light); }
.questions-intro { margin-bottom: 3rem; color: var(--muted); }
.question-answer { padding-block: 2.6rem; border-top: 1px solid var(--line); scroll-margin-top: 1.5rem; }
.question-answer h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.2; }
.question-answer .eyebrow { margin-bottom: .9rem; }
.question-answer p { color: var(--muted); }
.question-answer p:last-child { margin-bottom: 0; }
.question-answer strong { color: var(--text); }
.questions-cta { padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.questions-cta h2 { font-size: clamp(2rem, 4vw, 3rem); }
.questions-cta p { color: var(--muted); }
.questions-cta .actions { margin-block: 1.7rem; }
@media (min-width: 851px) and (max-width: 1100px) {
  .nav-wrap { gap: 1rem; }
  .nav-links { gap: 1rem; }
  .nav-links a { letter-spacing: .04em; }
}
@media (max-width: 850px) {
  .questions-layout { grid-template-columns: 1fr; }
  .questions-index { position: static; }
}
