/* =========================================================
   PULSE MOSAIC
   MASTER STYLESHEET
   Used by:
   pulseindex.html
   pulsemusic.html
   pulsevisuals.html
   pulseabout.html
   pulsecontact.html
========================================================= */


/* =========================================================
   01. COLOURS & FOUNDATIONS
========================================================= */

:root {
  color-scheme: dark;

  --background: #06051a;
  --panel: rgba(8, 8, 30, 0.9);

  --text: #f0efff;
  --muted: #bfbcda;

  --cyan: #56e9ff;
  --violet: #a169ff;
  --pink: #ff59d6;
  --amber: #ffc766;
  --green: #80ff80;

  --border: rgba(161, 105, 255, 0.4);
}


* {
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
}


body {
  margin: 0;
  min-width: 320px;

  background: var(--background);
  color: var(--text);

  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.7;

  isolation: isolate;
}


button,
input,
textarea {
  font: inherit;
}


button,
a {
  -webkit-tap-highlight-color: transparent;
}


button {
  cursor: pointer;
}


a {
  color: var(--cyan);
}


a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}


[hidden] {
  display: none !important;
}


/* =========================================================
   02. ACCESSIBILITY HELPERS
========================================================= */

.visually-hidden {
  position: absolute;

  width: 1px;
  height: 1px;

  padding: 0;
  margin: -1px;

  overflow: hidden;

  clip-path: inset(50%);

  white-space: nowrap;

  border: 0;
}


.skip-link {
  position: fixed;

  top: 12px;
  left: 12px;

  z-index: 100;

  padding: 10px 16px;

  background: var(--background);

  transform: translateY(-160%);
}


.skip-link:focus {
  transform: translateY(0);
}



/* =========================================================
   03. SHARED WALLPAPER
========================================================= */

.site-wallpaper,
.site-shade {
  position: fixed;

  inset: 0;

  pointer-events: none;
}


.site-wallpaper {
  z-index: -3;

  background:
    url("pulseimages/pulse-mosaic-wallpaper1.png")
    center bottom / cover no-repeat;
}


.site-shade {
  z-index: -2;

  background:
    linear-gradient(
      to bottom,
      rgba(6, 5, 26, 0.15),
      rgba(6, 5, 26, 0.1) 45%,
      rgba(6, 5, 26, 0.6)
    );
}


/*
   The Visuals page uses its own exhibition wallpaper.
   :has() allows us to detect that page without needing
   another stylesheet or changing the HTML again.
*/

body:has(.visuals-heading) .site-wallpaper {
  background-image:
    url("pulseimages/pulse-mosaic-visuals-wallpaper.png");

  background-position: center center;
}



/* =========================================================
   04. LIVE GREEN PULSE
========================================================= */

.pulse-horizon {
  position: fixed;

  top: 66%;
  left: 0;

  z-index: -1;

  width: 100%;
  height: clamp(80px, 16vh, 150px);

  overflow: hidden;

  pointer-events: none;

  opacity: 0.62;

  transform: translateY(-50%);
}


.pulse-horizon svg {
  display: block;

  width: 100%;
  height: 100%;

  overflow: visible;
}


.pulse-line {
  fill: none;

  stroke: var(--green);
  stroke-width: 2;

  stroke-linecap: round;
  stroke-linejoin: round;

  vector-effect: non-scaling-stroke;

  filter:
    drop-shadow(
      0 0 5px
      rgba(80, 255, 80, 0.8)
    );
}


.pulse-line-echo {
  stroke: var(--cyan);

  opacity: 0.16;

  stroke-width: 5;
}



/* =========================================================
   05. MOTION BUTTON
========================================================= */

.motion-toggle {
  position: fixed;

  top: 16px;
  right: 16px;

  z-index: 30;

  padding: 8px 13px;

  border: 1px solid var(--border);
  border-radius: 999px;

  background: rgba(6, 5, 26, 0.95);

  color: var(--muted);

  font-size: 0.8rem;

  cursor: pointer;
}


.motion-toggle:hover {
  color: var(--text);

  border-color: var(--cyan);
}



/* =========================================================
   06. SHARED TYPOGRAPHY
========================================================= */

.eyebrow {
  margin: 0 0 18px;

  color: var(--cyan);

  font-size: 0.76rem;
  font-weight: 700;

  letter-spacing: 0.2em;

  text-transform: uppercase;
}


.section-heading {
  margin-bottom: 24px;

  text-align: center;
}


.section-heading h2 {
  margin: 0;

  font-size: clamp(1.6rem, 3vw, 2.2rem);
}



/* =========================================================
   07. SHARED BUTTONS
========================================================= */

.pulse-button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 48px;

  padding: 11px 24px;

  border: 1px solid var(--cyan);
  border-radius: 7px;

  background: rgba(8, 8, 30, 0.9);

  color: var(--text);

  text-decoration: none;

  font-weight: 700;

  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}


.pulse-button:hover {
  background: rgba(43, 31, 89, 0.95);

  border-color: var(--amber);

  color: var(--amber);

  transform: translateY(-2px);
}


.pulse-button-secondary {
  border-color: var(--pink);
}



/* =========================================================
   08. HOME PAGE
========================================================= */

.site-main {
  padding-bottom: 45px;
}


.home-intro {
  min-height: 85svh;

  display: grid;

  place-items: center;

  padding: 80px 24px 60px;

  text-align: center;
}


.home-intro-inner {
  width: min(100%, 760px);
}


.brand-logo {
  display: block;

  width: min(72vw, 360px);
  height: auto;

  margin: 0 auto 24px;

  border-radius: 14px;

  box-shadow:
    0 18px 65px
    rgba(0, 0, 0, 0.35);
}


.home-tagline {
  margin: 0 0 12px;

  font-size: clamp(1.7rem, 4vw, 3rem);

  line-height: 1.2;

  letter-spacing: -0.025em;

  text-shadow:
    0 3px 18px
    #06051a;
}


.intro-description {
  max-width: 590px;

  margin: 0 auto;

  color: var(--muted);

  font-size: 1.05rem;

  text-shadow:
    0 2px 8px
    #06051a;
}


.intro-actions {
  display: flex;

  justify-content: center;

  flex-wrap: wrap;

  gap: 14px;

  margin-top: 28px;
}


.content-section {
  width:
    min(
      1100px,
      calc(100% - 40px)
    );

  margin: 0 auto 65px;
}


.feature-grid {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    );

  gap: 20px;
}


.feature-card {
  display: block;

  padding: 28px;

  border: 1px solid var(--border);
  border-radius: 14px;

  background: var(--panel);

  color: var(--text);

  text-decoration: none;

  box-shadow:
    0 16px 40px
    rgba(0, 0, 0, 0.2);

  transition:
    transform 180ms ease,
    border-color 180ms ease;
}


.feature-card:hover {
  transform: translateY(-4px);

  border-color: var(--cyan);
}


.feature-number {
  color: var(--pink);

  font-size: 0.8rem;

  letter-spacing: 0.16em;
}


.feature-card h3 {
  margin: 12px 0 10px;

  font-size: 1.25rem;
}


.feature-card p {
  margin: 0;

  color: var(--muted);
}



/* =========================================================
   09. MUSIC PAGE
========================================================= */

.music-page {
  width:
    min(
      1100px,
      calc(100% - 32px)
    );

  margin: 0 auto;

  padding: 85px 0 40px;
}


.music-heading {
  max-width: 700px;

  margin: 0 auto 30px;

  text-align: center;
}


.music-heading h1 {
  margin: 0 0 14px;

  font-size:
    clamp(
      2rem,
      5vw,
      3.4rem
    );

  line-height: 1.15;
}


.music-heading > p:last-child {
  color: var(--muted);
}



/* =========================================================
   10. BOOMBOX PLAYER
========================================================= */

.boombox-player {
  position: relative;

  width: min(100%, 1000px);

  margin: 0 auto;

  container-type: inline-size;
}


.boombox-artwork {
  position: relative;
}


.boombox-image {
  display: block;

  width: 100%;
  height: auto;
}


.boombox-display {
  position: absolute;

  top: 28.6%;
  left: 22.2%;

  width: 55.6%;
  height: 10.9%;

  display: flex;

  flex-direction: column;

  justify-content: center;

  padding: 0.5% 1.2%;

  overflow: hidden;

  background: #030e16;

  color: var(--cyan);

  border-radius: 3px;
}


.boombox-display-label {
  color: var(--amber);

  font-size:
    clamp(
      0.38rem,
      1cqw,
      0.63rem
    );

  line-height: 1.2;

  letter-spacing: 0.1em;
}


.boombox-display h2 {
  margin: 3px 0;

  overflow: hidden;

  font-size:
    clamp(
      0.65rem,
      1.8cqw,
      1.1rem
    );

  line-height: 1.2;

  text-overflow: ellipsis;

  white-space: nowrap;
}


.boombox-timeline {
  display: flex;

  align-items: center;

  gap: 8px;

  font-size:
    clamp(
      0.45rem,
      1.1cqw,
      0.7rem
    );

  line-height: 1;
}


.boombox-timeline input {
  flex: 1;

  min-width: 0;

  width: 100%;
  height: 14px;

  margin: 0;

  accent-color: var(--cyan);

  cursor: pointer;
}


.boombox-timeline input:disabled {
  opacity: 0.45;

  cursor: default;
}


.boombox-cover-window {
  position: absolute;

  top: 56.8%;
  left: 38.7%;

  width: 22.6%;
  height: 17.1%;

  display: grid;

  place-items: center;

  overflow: hidden;

  background: #030b11;
}


.boombox-cover-window img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;
}


.boombox-controls {
  position: absolute;

  top: 82.4%;
  left: 37%;

  width: 26%;
  height: 6.7%;

  display: flex;

  align-items: center;
  justify-content: center;

  gap: 5px;

  background: #030b11;

  border-radius: 4px;
}


.boombox-controls button {
  display: grid;

  place-items: center;

  width: 23%;
  height: 85%;

  padding: 0;

  border:
    1px solid
    rgba(86, 233, 255, 0.5);

  border-radius: 4px;

  background: #081c29;

  color: var(--cyan);

  font-size:
    clamp(
      0.7rem,
      1.7cqw,
      1.1rem
    );

  cursor: pointer;
}


.boombox-controls button:hover:not(:disabled) {
  background: #123b4d;

  border-color: var(--amber);

  color: var(--amber);
}


.boombox-controls button:disabled {
  opacity: 0.4;

  cursor: not-allowed;
}


.music-player-status {
  max-width: 650px;

  min-height: 2em;

  margin: 15px auto 50px;

  color: var(--muted);

  text-align: center;

  font-size: 0.9rem;
}



/* =========================================================
   11. MUSIC TRACK SELECTION
========================================================= */

.music-track-grid {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    );

  gap: 18px;
}


.music-track {
  display: flex;

  flex-direction: column;

  align-items: flex-start;

  padding: 25px;

  border:
    1px solid
    var(--border);

  border-radius: 12px;

  background: var(--panel);

  color: var(--text);

  text-align: left;

  cursor: pointer;

  transition:
    border-color 180ms ease,
    background-color 180ms ease;
}


.music-track:hover {
  border-color: var(--cyan);
}


.music-track.is-selected {
  border-color: var(--amber);

  background:
    rgba(
      35,
      19,
      30,
      0.95
    );
}


.music-track-number {
  margin-bottom: 14px;

  color: var(--amber);

  font-size: 0.85rem;

  letter-spacing: 0.16em;
}


.music-track-title {
  margin-bottom: 12px;

  font-size: 1.1rem;

  font-weight: 700;

  line-height: 1.4;
}


.music-track-description {
  flex: 1;

  color: var(--muted);

  font-size: 0.9rem;
}


.music-track-badge {
  margin-top: 20px;

  padding: 4px 10px;

  border:
    1px solid
    rgba(86, 233, 255, 0.3);

  border-radius: 999px;

  color: var(--cyan);

  font-size: 0.72rem;
}



/* =========================================================
   12. VISUALS PAGE HEADING
========================================================= */

.visuals-heading {
  width:
    min(
      760px,
      calc(100% - 40px)
    );

  margin: 0 auto;

  padding: 95px 0 35px;

  text-align: center;
}


.visuals-heading h1 {
  margin: 0 0 18px;

  font-size:
    clamp(
      2.2rem,
      6vw,
      4rem
    );

  line-height: 1.1;

  font-weight: 400;

  letter-spacing: 0.14em;

  text-transform: uppercase;
}


.visuals-heading p:last-child {
  color: var(--muted);
}


.trail-instructions {
  margin: 0 auto 25px;

  padding: 0 20px;

  color: var(--amber);

  font-size: 0.9rem;

  text-align: center;
}



/* =========================================================
   13. VISUAL EXHIBITION
========================================================= */

.exhibition {
  position: relative;

  width:
    min(
      1250px,
      calc(100% - 40px)
    );

  margin: 0 auto;
}


.trail-stage {
  position: relative;

  padding: 30px 0 90px;
}


/*
   The old SVG road still exists in the HTML,
   but the dedicated exhibition wallpaper
   now supplies the scene.
*/

.trail-road {
  display: none !important;
}


.exhibit {
  position: relative;

  width: min(46%, 510px);

  margin: 0 0 85px;

  padding: 0;

  border: 0;
}


.exhibit:nth-of-type(even) {
  margin-left: auto;
}


.exhibit-link {
  display: block;

  position: relative;

  padding: 10px;

  border: 1px solid #ffad4b;

  border-radius:
    16px 4px 16px 4px;

  background:
    linear-gradient(
      135deg,
      rgba(255, 145, 36, 0.17),
      rgba(6, 15, 31, 0.97) 24%,
      rgba(6, 15, 31, 0.97) 80%,
      rgba(86, 233, 255, 0.16)
    );

  box-shadow:
    0 0 0 3px
      rgba(255, 150, 45, 0.08),
    0 0 18px
      rgba(255, 138, 35, 0.18),
    0 20px 50px
      rgba(0, 0, 0, 0.35);

  color: var(--text);

  text-decoration: none;
}


.exhibit-link::before {
  content: "";

  position: absolute;

  top: 5px;
  right: 20px;

  width: 55px;
  height: 3px;

  background: var(--cyan);

  box-shadow:
    0 0 8px
    var(--cyan);
}


.exhibit-link:hover {
  border-color: var(--cyan);

  box-shadow:
    0 0 0 3px
      rgba(86, 233, 255, 0.08),
    0 0 25px
      rgba(86, 233, 255, 0.25),
    0 20px 50px
      rgba(0, 0, 0, 0.35);
}


.exhibit-image {
  display: block;

  width: 100%;
  height: auto;

  aspect-ratio: 16 / 9;

  object-fit: cover;

  border:
    1px solid
    rgba(86, 233, 255, 0.5);

  border-radius:
    9px 2px 9px 2px;

  background: #090c24;
}


.exhibit-caption {
  display: grid;

  grid-template-columns:
    1fr auto;

  align-items: center;

  gap: 12px;

  padding: 15px 5px 5px;
}


.exhibit-number {
  display: block;

  color: var(--cyan);

  font-size: 0.65rem;

  letter-spacing: 0.14em;

  text-transform: uppercase;
}


.exhibit-title {
  display: block;

  margin-top: 3px;

  font-size: 1.05rem;

  font-weight: 700;

  letter-spacing: 0.04em;
}


.exhibit-enlarge {
  padding: 5px 9px;

  border:
    1px solid
    rgba(255, 199, 102, 0.6);

  border-radius: 4px;

  color: var(--amber);

  font-size: 0.72rem;
}


.exhibit-stand {
  position: absolute;

  top: 100%;
  left: 17%;

  width: 66%;
  height: 35px;

  border-left:
    1px solid
    rgba(86, 233, 255, 0.75);

  border-right:
    1px solid
    rgba(86, 233, 255, 0.75);

  border-bottom:
    2px solid
    var(--cyan);

  background:
    linear-gradient(
      rgba(86, 233, 255, 0.07),
      rgba(86, 233, 255, 0.18)
    );

  box-shadow:
    0 8px 15px
    rgba(86, 233, 255, 0.12);

  pointer-events: none;
}



/* =========================================================
   14. IMMERSIVE VISUALS SCROLLING
========================================================= */

.exhibition.is-immersive {
  height: 650vh;
}


.is-immersive .trail-stage {
  position: sticky;

  top: 0;

  height: 100vh;

  overflow: hidden;

  padding: 0;

  isolation: isolate;
}


.is-immersive .exhibit {
  position: absolute;

  top: 0;
  left: 0;

  width:
    clamp(
      300px,
      38vw,
      490px
    );

  margin: 0;

  transform-origin:
    center center;

  will-change:
    transform,
    opacity;

  visibility: hidden;
}


.trail-position {
  display: none;
}


.is-immersive .trail-position {
  display: flex;

  position: absolute;

  top: 22px;
  left: 50%;

  align-items: center;

  gap: 15px;

  width: min(420px, 70%);

  padding: 10px 16px;

  border: 1px solid var(--border);

  border-radius: 999px;

  background:
    rgba(6, 5, 26, 0.9);

  color: var(--muted);

  font-size: 0.75rem;

  transform:
    translateX(-50%);
}


.trail-progress {
  flex: 1;

  height: 3px;

  overflow: hidden;

  border-radius: 3px;

  background:
    rgba(86, 233, 255, 0.2);
}


.trail-progress-fill {
  display: block;

  width: 0;
  height: 100%;

  background: var(--amber);
}


.trail-end {
  padding: 25px 20px 45px;

  text-align: center;
}


.trail-end p {
  color: var(--muted);
}



/* =========================================================
   15. VISUALS POP-OUT VIEWER
========================================================= */

.image-dialog {
  width:
    min(
      1200px,
      calc(100% - 24px)
    );

  max-height: 92vh;

  padding: 18px;

  overflow-y: auto;

  border:
    1px solid
    var(--cyan);

  border-radius: 12px;

  background: #080b1c;

  color: var(--text);

  box-shadow:
    0 0 45px
    rgba(86, 233, 255, 0.15);
}


.image-dialog::backdrop {
  background:
    rgba(
      2,
      3,
      12,
      0.94
    );
}


.dialog-toolbar {
  display: flex;

  justify-content:
    space-between;

  align-items: center;

  gap: 12px;

  margin-bottom: 14px;
}


.dialog-counter {
  color: var(--muted);

  font-size: 0.85rem;
}


.dialog-button {
  min-width: 44px;
  min-height: 44px;

  padding: 6px 14px;

  border: 1px solid var(--border);

  border-radius: 5px;

  background: #12152e;

  color: var(--text);
}


.dialog-button:hover {
  border-color: var(--amber);

  color: var(--amber);
}


.dialog-image {
  display: block;

  width: 100%;

  max-height: 65vh;

  object-fit: contain;

  background: #040613;
}


.dialog-caption h2 {
  margin: 18px 0 8px;

  color: var(--amber);

  font-size: 1.3rem;
}


.dialog-caption p {
  margin: 0;

  color: var(--muted);
}


.dialog-navigation {
  display: flex;

  justify-content:
    space-between;

  gap: 12px;

  margin-top: 20px;
}



/* =========================================================
   16. ABOUT PAGE
========================================================= */

.about-page {
  width:
    min(
      1000px,
      calc(100% - 40px)
    );

  margin: 0 auto;

  padding: 90px 0 55px;
}


.page-heading {
  max-width: 720px;

  margin: 0 auto 40px;

  text-align: center;
}


.page-heading h1 {
  margin: 0 0 18px;

  font-size:
    clamp(
      2rem,
      5vw,
      3.4rem
    );

  line-height: 1.15;
}


.page-heading > p:last-child {
  color: var(--muted);

  font-size: 1.05rem;
}


.about-panel {
  margin-bottom: 25px;

  padding:
    clamp(
      24px,
      4vw,
      42px
    );

  border: 1px solid var(--border);

  border-radius: 14px;

  background: var(--panel);

  box-shadow:
    0 16px 40px
    rgba(0, 0, 0, 0.2);
}


.about-intro {
  display: grid;

  grid-template-columns:
    minmax(0, 1.5fr)
    minmax(0, 1fr);

  align-items: center;

  gap: 35px;
}


.about-copy h2,
.about-panel > h2 {
  margin: 0 0 18px;

  font-size:
    clamp(
      1.4rem,
      3vw,
      1.9rem
    );

  line-height: 1.3;
}


.about-panel p {
  color: var(--muted);
}


.about-panel p:last-child {
  margin-bottom: 0;
}


.about-logo {
  display: block;

  width: 100%;
  max-width: 300px;

  height: auto;

  margin: 0 auto;

  border-radius: 10px;
}


.about-grid {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );

  gap: 25px;
}


.about-grid .about-panel {
  margin-bottom: 0;
}


.about-panel a {
  text-underline-offset: 4px;
}


.about-actions {
  display: flex;

  flex-wrap: wrap;

  justify-content: center;

  gap: 14px;

  margin-top: 35px;
}



/* =========================================================
   17. CONTACT PAGE
========================================================= */

.contact-page {
  width:
    min(
      1000px,
      calc(100% - 40px)
    );

  margin: 0 auto;

  padding: 95px 0 55px;
}


.contact-panel {
  position: relative;

  padding:
    clamp(
      24px,
      4vw,
      42px
    );

  border:
    1px solid
    var(--border);

  border-radius: 14px;

  background:
    rgba(
      8,
      8,
      30,
      0.93
    );

  box-shadow:
    0 16px 40px
      rgba(0, 0, 0, 0.25),
    0 0 25px
      rgba(86, 233, 255, 0.04);
}


.contact-panel::before {
  content: "";

  position: absolute;

  top: -1px;
  left: 30px;

  width: 90px;
  height: 2px;

  background: var(--cyan);

  box-shadow:
    0 0 10px
    rgba(86, 233, 255, 0.5);
}


.contact-panel h2 {
  margin: 0 0 8px;

  font-size: 1.5rem;
}


.contact-intro {
  margin: 0 0 28px;

  color: var(--muted);
}


.form-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1.3fr);

  gap: 28px;
}


.form-left,
.form-right {
  min-width: 0;
}


.form-right {
  display: flex;

  flex-direction: column;
}


.form-row {
  margin-bottom: 20px;
}


.form-row label {
  display: block;

  margin-bottom: 8px;

  color: var(--text);

  font-size: 0.9rem;

  font-weight: 700;
}


.form-row input,
.form-row textarea {
  display: block;

  width: 100%;

  padding: 12px 14px;

  border:
    1px solid
    rgba(86, 233, 255, 0.3);

  border-radius: 6px;

  background:
    rgba(
      3,
      7,
      22,
      0.95
    );

  color: var(--text);

  transition:
    border-color 180ms ease;
}


.form-row input {
  min-height: 49px;
}


.form-row textarea {
  min-height: 245px;

  resize: vertical;
}


.form-row input::placeholder,
.form-row textarea::placeholder {
  color: #9694b2;

  opacity: 1;
}


.form-row input:hover,
.form-row textarea:hover {
  border-color: var(--cyan);
}


.contact-button {
  align-self: flex-end;

  min-height: 48px;

  padding: 11px 25px;

  border:
    1px solid
    var(--amber);

  border-radius: 6px;

  background:
    rgba(
      255,
      167,
      71,
      0.1
    );

  color: var(--amber);

  font-weight: 700;

  cursor: pointer;

  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}


.contact-button:hover {
  border-color: var(--cyan);

  background:
    rgba(
      86,
      233,
      255,
      0.12
    );

  color: var(--cyan);
}


.form-note {
  margin: 26px 0 0;

  padding-top: 18px;

  border-top:
    1px solid
    var(--border);

  color: var(--muted);

  font-size: 0.8rem;
}


.form-note a {
  text-underline-offset: 4px;
}


.contact-extra {
  max-width: 700px;

  margin: 28px auto 0;

  text-align: center;
}


.contact-extra p {
  color: var(--muted);

  font-size: 0.9rem;
}



/* =========================================================
   18. FOOTER
========================================================= */

.site-footer {
  padding:
    10px 24px 150px;

  color: var(--muted);

  text-align: center;

  font-size: 0.85rem;
}


.site-footer p {
  margin: 5px 0;
}


.site-footer a {
  color: var(--amber);

  text-underline-offset: 4px;
}



/* =========================================================
   19. BOTTOM VU NAVIGATION
========================================================= */

.vu-dock {
  position: fixed;

  bottom: 0;
  left: 0;
  right: 0;

  z-index: 50;

  display: flex;

  flex-direction: column;

  align-items: center;

  padding-bottom:
    env(
      safe-area-inset-bottom,
      0px
    );

  background:
    linear-gradient(
      to top,
      rgba(4, 4, 17, 0.98),
      rgba(4, 4, 17, 0.93) 65%,
      transparent
    );
}


.vu-toggle {
  position: relative;

  z-index: 2;

  min-height: 40px;

  padding: 7px 22px;

  border:
    1px solid
    var(--border);

  border-bottom: 0;

  border-radius:
    10px 10px 0 0;

  background: #0c0b25;

  color: var(--text);

  cursor: pointer;

  font-size: 0.75rem;

  font-weight: 700;

  letter-spacing: 0.15em;

  text-transform: uppercase;
}


.vu-links {
  display: flex;

  justify-content: center;
  align-items: flex-end;

  gap:
    clamp(
      8px,
      3vw,
      32px
    );

  width: min(100%, 700px);

  height: 68px;

  padding:
    8px 12px 10px;

  transition:
    height 300ms ease;
}


.vu-dock.is-open .vu-links {
  height: 282px;
}


.vu-link {
  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: flex-end;

  width:
    clamp(
      48px,
      12vw,
      86px
    );

  height: 100%;

  color: var(--text);

  text-decoration: none;
}


.vu-label {
  margin-bottom: 8px;

  color: var(--muted);

  font-size: 0.68rem;

  font-weight: 700;

  letter-spacing: 0.04em;

  white-space: nowrap;
}


.vu-link[aria-current="page"] .vu-label {
  color: var(--amber);
}


.vu-stack {
  display: flex;

  flex-direction: column;

  justify-content: flex-end;

  gap: 4px;

  width: 100%;

  height: 22px;

  overflow: hidden;

  transition:
    height 300ms ease;
}


.vu-dock.is-open .vu-stack {
  height:
    calc(
      var(--letters) * 24px +
      (var(--letters) - 1) * 4px
    );
}


.vu-pip {
  display: grid;

  place-items: center;

  flex: 0 0 24px;

  border:
    1px solid
    rgba(255, 255, 255, 0.2);

  border-radius: 2px;

  background:
    var(--pip-colour);

  color: #080617;

  font-size: 0.82rem;

  font-weight: 800;

  line-height: 1;

  opacity: 0.65;

  transition:
    opacity 180ms ease,
    filter 180ms ease;
}


.vu-letter {
  opacity: 0;

  transition:
    opacity 150ms ease;
}


.vu-dock.is-open .vu-letter {
  opacity: 1;
}


.vu-link:hover .vu-pip,
.vu-link:focus-visible .vu-pip,
.vu-link[aria-current="page"] .vu-pip {
  opacity: 1;

  filter: brightness(1.15);
}


.vu-link[aria-current="page"] .vu-stack {
  filter:
    drop-shadow(
      0 0 5px
      rgba(86, 233, 255, 0.45)
    );
}



/* =========================================================
   20. TABLET / SMALLER SCREENS
========================================================= */

@media (max-width: 799px) {

  .exhibition {
    width:
      min(
        620px,
        calc(100% - 32px)
      );
  }


  .exhibit {
    width: 90%;

    margin-bottom: 80px;
  }


  .exhibit-title {
    font-size: 0.95rem;
  }

}



/* =========================================================
   21. MOBILE
========================================================= */

@media (max-width: 700px) {

  /* HOME */

  .feature-grid {
    grid-template-columns: 1fr;
  }


  .home-intro {
    min-height: auto;

    padding-top: 90px;
  }


  .content-section {
    margin-bottom: 40px;
  }


  .feature-card {
    padding: 23px;
  }



  /* ABOUT */

  .about-intro,
  .about-grid {
    grid-template-columns: 1fr;
  }


  .about-logo {
    max-width: 240px;
  }



  /* CONTACT */

  .form-grid {
    grid-template-columns: 1fr;

    gap: 0;
  }


  .form-row textarea {
    min-height: 200px;
  }


  .contact-button {
    width: 100%;
  }



  /* NAVIGATION */

  .vu-label {
    font-size: 0.62rem;
  }

}



/* =========================================================
   22. MUSIC PLAYER MOBILE
========================================================= */

@media (max-width: 650px) {

  .music-track-grid {
    grid-template-columns: 1fr;
  }


  .boombox-controls {
    position: static;

    width: min(100%, 340px);

    height: auto;

    margin: 16px auto 0;

    padding: 10px;

    gap: 10px;

    border:
      1px solid
      var(--border);
  }


  .boombox-controls button {
    min-height: 44px;

    font-size: 1rem;
  }


  .boombox-display-label {
    display: none;
  }


  .boombox-display h2 {
    margin: 0;

    font-size:
      clamp(
        0.55rem,
        2.3vw,
        0.85rem
      );
  }


  .boombox-timeline {
    gap: 4px;
  }


  .music-player-status {
    margin-bottom: 35px;
  }

}



/* =========================================================
   23. VERY SMALL SCREENS
========================================================= */

@media (max-width: 480px) {

  .visuals-heading {
    padding-top: 80px;
  }


  .about-page,
  .contact-page {
    width:
      calc(100% - 28px);
  }


  .about-panel,
  .contact-panel {
    padding: 22px 18px;
  }


  .dialog-navigation {
    flex-direction: column;
  }


  .dialog-button {
    width: 100%;
  }

}



/* =========================================================
   24. REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }


  *,
  *::before,
  *::after {
    transition: none !important;
  }

}