:root {
  color-scheme: dark;
  --bg: #160c15;
  --bg-soft: #1d1320;
  --surface: rgba(24, 15, 26, 0.84);
  --surface-soft: rgba(34, 22, 34, 0.78);
  --text: #f7ead6;
  --text-soft: #d6c0a6;
  --muted: #ab9780;
  --line: rgba(255, 232, 204, 0.2);
  --gold: #debd7c;
  --brass: #f0c26e;
  --red: #8a2e4c;
  --blue: #2d4766;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Trebuchet MS", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, rgba(130, 78, 47, 0.2), transparent 38%),
    radial-gradient(circle at 85% 0%, rgba(64, 29, 40, 0.26), transparent 32%),
    linear-gradient(135deg, var(--bg) 0%, #140c14 48%, #0f0a10 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 233, 208, 0.05) 0 1px, transparent 1px 38px),
    repeating-linear-gradient(0deg, rgba(255, 233, 208, 0.04) 0 1px, transparent 1px 44px);
  opacity: 0.66;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    repeating-radial-gradient(circle at 24px 24px, rgba(255, 224, 180, 0.08) 0 1px, transparent 1px 40px),
    linear-gradient(120deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0));
}

body.is-locked {
  overflow: hidden;
}

body.is-locked main,
body.is-locked .site-header {
  filter: blur(5px) saturate(0.75);
  pointer-events: none;
  user-select: none;
}

body a,
body button {
  font: inherit;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 14px;
  left: 50%;
  width: min(1200px, calc(100% - 34px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid rgba(249, 210, 146, 0.34);
  background: linear-gradient(180deg, rgba(28, 17, 27, 0.9), rgba(15, 11, 15, 0.9));
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand__mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 14px;
  border: 1px solid rgba(248, 211, 126, 0.5);
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 800;
  background: linear-gradient(145deg, rgba(244, 194, 122, 0.25), rgba(112, 47, 64, 0.35));
}

.brand strong {
  margin: 0;
  font-size: 18px;
  line-height: 1;
}

.brand small {
  color: var(--muted);
  display: block;
  margin-top: 3px;
  letter-spacing: 0.04em;
  font-size: 11px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.nav a {
  text-decoration: none;
  padding: 10px 10px;
  border: 1px solid rgba(248, 211, 126, 0.2);
  border-radius: 2px;
  color: #f8ead9;
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.nav a:hover {
  color: #241114;
  background: var(--gold);
}

.token-app-launch {
  position: fixed;
  z-index: 45;
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(248, 211, 126, 0.5);
  border-radius: 50%;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(240, 194, 110, 0.96), rgba(222, 189, 124, 0.96));
  color: #231019;
  font-size: 24px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
}

.token-app-launch:hover {
  transform: translateY(-2px);
}

.hero {
  position: relative;
  min-height: 102svh;
  display: grid;
  grid-template-columns: minmax(18px, 1fr) minmax(0, 1160px) minmax(18px, 1fr);
  align-items: end;
  overflow: hidden;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 8%;
  filter: saturate(0.68) contrast(1.14) brightness(0.6);
  transform: scale(1.03);
  z-index: -3;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(9, 7, 11, 0.85), rgba(9, 7, 11, 0.45) 35%, rgba(9, 7, 11, 0.05)),
    linear-gradient(180deg, rgba(8, 6, 12, 0.6), rgba(8, 6, 12, 0.15));
}

.hero__grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 28% 18%, rgba(248, 211, 126, 0.3), transparent 36%),
    repeating-linear-gradient(90deg, rgba(255, 250, 238, 0.03) 0 1px, transparent 1px 58px),
    repeating-linear-gradient(0deg, rgba(255, 250, 238, 0.02) 0 1px, transparent 1px 64px);
  mix-blend-mode: soft-light;
}

.hero__content {
  grid-column: 2;
  padding: clamp(150px, 20svh, 220px) 0 86px;
  max-width: 820px;
}

.kicker,
.section-kicker {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: var(--gold);
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(44px, 8vw, 86px);
  line-height: 0.98;
  max-width: 18ch;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4.6vw, 58px);
  line-height: 1.02;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.08;
}

.lead {
  color: var(--text-soft);
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.56;
  max-width: 640px;
}

.hero__actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-badge {
  position: absolute;
  right: min(5vw, 50px);
  bottom: 40px;
  width: min(390px, calc(100% - 40px));
  padding: 22px;
  border: 1px solid rgba(250, 226, 176, 0.45);
  background: linear-gradient(145deg, rgba(28, 16, 26, 0.85), rgba(28, 16, 26, 0.58));
  box-shadow: var(--shadow);
}

.hero-badge span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-badge strong {
  font-size: 34px;
  margin-top: 10px;
  margin-bottom: 10px;
  display: block;
}

.hero-badge p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.4;
}

.button,
.filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid rgba(248, 211, 126, 0.45);
  padding: 0 18px;
  text-decoration: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 800;
}

.button--primary,
.filter.is-active {
  color: #231019;
  background: linear-gradient(180deg, var(--brass), var(--gold));
}

.button--ghost,
.filter {
  color: var(--text);
  background: rgba(255, 245, 235, 0.05);
}

.button:hover,
.filter:hover {
  transform: translateY(-2px);
}

.page-section {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  position: relative;
}

.page-section::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(250, 226, 176, 0.18), transparent);
}

.story,
.music,
.timeline,
.contact,
.heritage,
.archive,
.feature {
  margin-top: 58px;
}

.story {
  margin-top: 62px;
}

.story__grid,
.music__grid,
.heritage__grid,
.lineage-strip {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.archive-tools {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  margin: 24px 0 18px;
}

.story-card,
.lyrics-card,
.media-index,
.heritage-card,
.cv-entry,
.lineage-strip article {
  border: 1px solid var(--line);
  padding: 22px;
  background: linear-gradient(165deg, rgba(255, 242, 226, 0.05), rgba(255, 242, 226, 0.01));
}

.story-card h3,
.lyrics-card h3,
.media-index h3,
.heritage-card h3,
.lineage-strip h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: clamp(24px, 3vw, 32px);
}

.story-card p,
.lyrics-card p,
.media-index p,
.heritage-card p,
.lineage-strip p,
.cv-entry p {
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.55;
}

.cv-entry {
  border-left: 4px solid rgba(248, 211, 126, 0.62);
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(53, 28, 56, 0.58), rgba(16, 11, 16, 0.85));
}

.cv-entry::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, rgba(248, 211, 126, 0.95), rgba(248, 211, 126, 0.05));
}

.cv-entries {
  display: grid;
  gap: 14px;
}

.timeline-year {
  margin: 0 0 8px;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 11px;
}

.cv-entry h3,
.cv-entry p {
  position: relative;
  z-index: 1;
}

.cv-entry h3 {
  margin: 0 0 8px;
  font-size: clamp(24px, 2.7vw, 32px);
}

.section-heading {
  margin-bottom: 20px;
}

.section-heading p {
  margin-bottom: 8px;
}

.filters {
  margin: 16px 0 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.interview-grid {
  margin-top: 12px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.interview-card,
.lineage-strip article {
  position: relative;
  padding: 22px;
}

.interview-photo-wrap {
  position: relative;
  margin: 0 0 18px;
  width: 92px;
  height: 92px;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(255, 229, 167, 0.35);
  border-radius: 50%;
  padding: 4px;
  background: rgba(255, 235, 188, 0.08);
  display: inline-grid;
  place-items: center;
  overflow: hidden;
}

.interview-photo,
.interview-photo__fallback {
  position: absolute;
  inset: 4px;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  box-sizing: border-box;
}

.interview-photo {
  display: block;
  border: 1px solid rgba(255, 235, 188, 0.25);
  object-fit: cover;
  object-position: center;
  max-width: none;
}

.interview-photo.is-hidden-photo {
  display: none;
}

.interview-photo__fallback {
  margin-top: 0;
  background: linear-gradient(160deg, rgba(255, 222, 155, 0.26), rgba(255, 247, 225, 0.16));
  border: 1px solid rgba(255, 222, 155, 0.55);
  display: grid;
  place-items: center;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 20px;
}

.interview-photo.has-photo + .interview-photo__fallback {
  display: none;
}

.interview-card {
  min-height: 280px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 223, 154, 0.08), rgba(255, 242, 226, 0.03));
}

.tag,
.lineage-strip span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
}

.interview-card h3 {
  font-size: clamp(24px, 2.9vw, 32px);
}

.interview-card p {
  color: var(--text-soft);
  line-height: 1.54;
}

.card-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.text-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.chip-link {
  display: inline-block;
  text-transform: none;
  letter-spacing: 0;
}

.pdf-link {
  color: var(--text);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.interview-card.is-hidden {
  display: none;
}

.chip-list,
.link-list,
.fact-grid {
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.chip-list li,
.heritage-card .chip-list li {
  border: 1px solid rgba(248, 211, 126, 0.35);
  padding: 10px 12px;
  color: #f4dfc3;
  background: rgba(248, 211, 126, 0.1);
}

.media-index ul {
  margin: 14px 0 0;
}

.media-index li {
  border: 1px solid rgba(248, 211, 126, 0.2);
  padding: 16px;
  margin: 0 0 12px;
  background: var(--surface-soft);
}

.media-index h3 {
  margin-bottom: 6px;
  font-size: 21px;
}

.media-index p {
  margin-bottom: 10px;
}

.media-index audio {
  width: 100%;
  margin-top: 10px;
}

.heritage__grid {
  margin-bottom: 16px;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.fact-grid div {
  border: 1px solid rgba(248, 211, 126, 0.25);
  background: rgba(255, 245, 224, 0.03);
  padding: 14px;
}

.fact-grid dt {
  font-size: 11px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  font-weight: 700;
}

.fact-grid dd {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.45;
}

.lineage-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lineage-strip article {
  background: linear-gradient(165deg, rgba(53, 28, 56, 0.55), rgba(16, 11, 16, 0.68));
  border-left-width: 4px;
  border-left-color: rgba(248, 211, 126, 0.6);
}

.lineage-strip h3 {
  margin-bottom: 10px;
}

.contact {
  margin-top: 68px;
  margin-bottom: 64px;
  padding: 28px;
  border: 1px solid rgba(248, 211, 126, 0.28);
  display: flex;
  gap: 30px;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, rgba(248, 211, 126, 0.09), rgba(255, 255, 255, 0));
}

.contact p {
  color: var(--text-soft);
  max-width: 780px;
  font-size: 18px;
}

.detail-dialog {
  width: min(640px, calc(100vw - 28px));
  border: 1px solid rgba(248, 211, 126, 0.5);
  background: transparent;
}

.detail-dialog::backdrop {
  background: rgba(7, 4, 8, 0.84);
}

.detail-dialog__panel {
  margin: 0;
  position: relative;
  padding: 28px;
  border: 1px solid rgba(248, 211, 126, 0.35);
  background:
    linear-gradient(170deg, rgba(31, 18, 31, 0.96), rgba(17, 12, 18, 0.97));
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 30px;
  color: var(--text);
  cursor: pointer;
}

#dialogTag {
  margin-bottom: 8px;
  display: inline-block;
}

#dialogBody {
  color: var(--text-soft);
  line-height: 1.6;
}

.back-to-top {
  position: fixed;
  z-index: 30;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(250, 226, 176, 0.3);
  border-radius: 50%;
  font-size: 28px;
  font-weight: 900;
  color: #200f1a;
  background: var(--gold);
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.access-gate {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background:
    radial-gradient(circle at 50% 20%, rgba(232, 182, 111, 0.25), transparent 36%),
    linear-gradient(180deg, rgba(12, 10, 14, 0.15), rgba(9, 7, 11, 0.8));
}

body:not(.is-locked) .access-gate {
  display: none;
}

.access-gate__panel {
  width: min(540px, 100%);
  padding: 30px;
  background: linear-gradient(165deg, rgba(25, 17, 25, 0.94), rgba(17, 11, 17, 0.94));
  border: 1px solid rgba(248, 211, 126, 0.45);
  box-shadow: var(--shadow);
}

.access-gate__panel h2 {
  margin: 0 0 10px;
  font-size: clamp(36px, 5vw, 56px);
}

.access-gate__panel p {
  color: var(--text-soft);
  line-height: 1.56;
  margin-bottom: 20px;
}

.access-form {
  display: grid;
  gap: 12px;
}

.access-form label {
  display: grid;
  gap: 7px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 800;
}

.access-form input {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(248, 211, 126, 0.35);
  background: rgba(255, 245, 225, 0.09);
  color: var(--text);
  font-size: 18px;
  padding: 0 12px;
}

.access-form input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(248, 211, 126, 0.18);
}

.access-toggle-manager {
  margin-top: 12px;
  width: 100%;
}

.access-manager {
  margin-top: 12px;
  border: 1px solid rgba(248, 211, 126, 0.4);
  background: rgba(17, 9, 16, 0.66);
  padding: 0 12px 12px;
}

.access-manager summary {
  cursor: pointer;
  padding: 12px 2px;
  color: var(--gold);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.1em;
  font-weight: 800;
}

.access-manager__form {
  margin-top: 14px;
}

.admin-entry {
  width: min(1200px, calc(100% - 44px));
  margin: 64px auto 0;
  display: flex;
  justify-content: flex-end;
}

.admin-entry .access-manager {
  width: min(440px, 100%);
  padding: 10px;
  background: rgba(20, 12, 20, 0.7);
  backdrop-filter: blur(8px);
}

.access-manager--admin summary {
  font-size: 10px;
}

.access-success,
.access-token-list-empty {
  margin: 12px 0 0;
  color: #d8ecb3;
  line-height: 1.4;
  font-size: 14px;
}

.access-token-list {
  margin-top: 12px;
  max-height: 340px;
  overflow-y: auto;
  display: grid;
  gap: 10px;
}

.access-token-list-item {
  border: 1px solid rgba(248, 211, 126, 0.22);
  background: rgba(255, 245, 224, 0.04);
  padding: 10px 10px 12px;
}

.token-value {
  display: inline-block;
  margin: 0 0 6px;
  padding: 6px 8px;
  background: rgba(248, 211, 126, 0.15);
  color: #f9e3bd;
  word-break: break-all;
  font-size: 13px;
  font-family: "Consolas", "Monaco", monospace;
}

.token-meta-top,
.token-meta {
  margin: 0 0 8px;
  color: var(--text-soft);
  font-size: 12px;
}

.token-meta-top {
  color: var(--gold);
  font-weight: 700;
}

.token-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.button--small {
  min-height: 34px;
  padding-inline: 12px;
  font-size: 11px;
}

.token-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.token-card {
  width: min(680px, 100%);
  border: 1px solid rgba(248, 211, 126, 0.45);
  background: linear-gradient(165deg, rgba(25, 17, 25, 0.94), rgba(17, 11, 17, 0.94));
  padding: 28px 24px;
  display: grid;
  gap: 10px;
}

.token-card h1 {
  margin-top: 0;
  font-size: clamp(34px, 6vw, 56px);
}

.token-card p {
  margin: 0 0 10px;
  color: var(--text-soft);
}

.token-card__key {
  width: 54px;
  height: 54px;
  margin: 2px 0 4px;
  border-radius: 50%;
  border: 1px solid rgba(248, 211, 126, 0.45);
  display: grid;
  place-items: center;
  font-size: 26px;
  background: rgba(248, 211, 126, 0.12);
}

.token-admin-form {
  border-top: 1px solid rgba(248, 211, 126, 0.2);
  padding-top: 14px;
  margin-top: 4px;
}

.token-admin-state {
  min-height: 22px;
  margin-top: 4px;
  color: #d8ecb3;
  font-size: 14px;
  line-height: 1.4;
}

.token-back-link {
  margin-top: 4px;
  justify-self: start;
}

.access-error {
  margin: 0;
  height: 20px;
  color: #ffc6c6;
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 1120px) {
  .hero__content {
    padding-right: 10px;
  }

  .story__grid,
  .music__grid,
  .heritage__grid,
  .lineage-strip,
  .interview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-badge {
    width: min(360px, calc(100% - 28px));
  }
}

@media (max-width: 860px) {
  .site-header {
    width: calc(100% - 24px);
    left: 12px;
    transform: none;
    top: 10px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    max-height: calc(100svh - 20px);
    overflow-y: auto;
  }

  .nav {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .hero {
    grid-template-columns: 14px minmax(0, 1fr) 14px;
  }

  .hero__content {
    padding-top: 250px;
    padding-bottom: 48px;
  }

  .hero-badge {
    position: relative;
    bottom: auto;
    right: auto;
    grid-column: 2;
    margin: 0 0 20px;
  }

  .hero__content,
  .hero-badge {
    grid-column: 2;
  }

  .story__grid,
  .music__grid,
  .heritage__grid,
  .lineage-strip,
  .interview-grid {
    grid-template-columns: 1fr;
  }

  .contact {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .page-section,
  .contact {
    width: calc(100% - 30px);
  }

  .access-gate {
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  }

  .access-gate__panel {
    width: 100%;
    max-height: calc(100svh - 24px);
    overflow-y: auto;
  }

  .hero__content h1 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .button,
  .filter,
  .back-to-top {
    min-height: 48px;
  }

  .back-to-top {
    width: 50px;
    height: 50px;
    font-size: 26px;
  }
}
