:root {
  /* === PRIMARY COLOURS === */
  --color-black: #0b0b0b;
  --color-charcoal: #1a1a1a;
  --color-white: #ededed;
  --color-grey: #9a9a9a;

  /* === ACCENT === */
  --color-amber: #c89b3c;

  /* === SUPPORT (optional, use sparingly) === */
  --color-steel: #3a6ea5;

  /* === FONT === */
  --font-primary: "Inter", sans-serif;

  /* === TYPE SCALE === */
  --text-h1: clamp(48px, 5vw, 64px);
  --text-h2: clamp(28px, 3vw, 36px);
  --text-h3: clamp(20px, 2.5vw, 24px);
  --text-body: clamp(16px, 1.2vw, 18px);
  --text-small: clamp(12px, 1vw, 14px);

  /* === FONT WEIGHTS === */
  --weight-h1: 700;
  --weight-h2: 600;
  --weight-h3: 600;
  --weight-body: 400;
  --weight-small: 400;

  /* === LINE HEIGHTS === */
  --lh-tight: 1.1;
  --lh-snug: 1.3;
  --lh-body: 1.6;

  /* === LETTER SPACING === */
  --ls-heading: 0.02em;
  --ls-body: 0;

  /* === SPACING === */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 32px;
  --space-lg: 64px;
  --space-xl: 96px;
  --space-2xl: 128px;

  /* === LAYOUT === */
  --max-width: 1200px;
  --section-padding: var(--space-xl) var(--space-md);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-body);
  font-weight: var(--weight-body);
  line-height: var(--lh-body);
  color: var(--color-white);
  background-color: var(--color-black);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--max-width), 100% - (var(--space-md) * 2));
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 0;
  border: 1px solid transparent;
  font-size: var(--text-body);
  font-weight: var(--weight-h3);
  line-height: 1;
  transition: transform 0.3s ease, filter 0.3s ease, color 0.3s ease, border-color 0.3s ease,
    background-color 0.3s ease;
}

.btn-primary {
  background: var(--color-amber);
  color: var(--color-black);
}

.btn-primary:hover {
  filter: brightness(1.08);
  transform: scale(1.02);
}

.btn-secondary {
  background: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}

.btn-secondary:hover {
  border-color: var(--color-amber);
  color: var(--color-amber);
}

#hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--space-xl) var(--space-md);
  display: flex;
  align-items: flex-end;
  background-color: var(--color-black);
  background-image: image-set(
    url("../assets/images/hero-bg.webp") type("image/webp"),
    url("../assets/images/hero-bg.jpg") type("image/jpeg")
  );
  background-size: cover;
  background-position: center top;
  isolation: isolate;
}

#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-black);
  opacity: 0.55;
  z-index: 1;
}

.hero-topline {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  right: var(--space-md);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-grey);
  border-bottom: 1px solid var(--color-charcoal);
  padding-bottom: 10px;
}

.hero-top-mark {
  display: block;
  width: auto;
  height: 50px;
}

.hero-top-links {
  display: inline-flex;
  align-items: center;
  gap: 28px;
}

.hero-top-links a {
  color: var(--color-grey);
  transition: color 0.3s ease;
}

.hero-top-links a:hover {
  color: var(--color-amber);
}

.hero-bg-logo {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, calc(-50% - 180px));
  z-index: 2;
  width: clamp(420px, 78vw, 1120px);
  opacity: 1;
  /* Force hero logo to render as Soft White (#EDEDED) for strict palette compliance */
  filter: brightness(0) saturate(100%) invert(95%) sepia(5%) saturate(94%) hue-rotate(324deg) brightness(102%) contrast(93%);
  user-select: none;
  pointer-events: none;
}

.hero-bg-logo-ghost {
  position: absolute;
  left: 50%;
  width: clamp(420px, 78vw, 1120px);
  transform: translate(-50%, calc(-50% - 180px));
  z-index: 1;
  pointer-events: none;
  opacity: 1;
  mix-blend-mode: normal;
  clip-path: inset(var(--ghost-cut-top, 0px) 0 0 0);
}

.hero-bg-logo-ghost.ghost-1 {
  top: calc(44% + 98px);
  --ghost-cut-top: clamp(70px, 7vw, 110px);
  opacity: 0.28;
  filter: none;
}

.hero-bg-logo-ghost.ghost-2 {
  top: calc(44% + 142px);
  --ghost-cut-top: clamp(108px, 11vw, 156px);
  opacity: 0.14;
  filter: none;
}

.hero-cut-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background-image: image-set(
    url("../assets/images/hero-bg-cut.webp") type("image/webp"),
    url("../assets/images/hero-bg-cut.png") type("image/png")
  );
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.hero-content {
  position: relative;
  z-index: 5;
  width: min(560px, 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
}

.hero-subheadline {
  font-size: var(--text-h3);
  font-weight: var(--weight-h3);
  color: var(--color-white);
  letter-spacing: var(--ls-heading);
  line-height: var(--lh-snug);
  animation: heroFadeUp 0.8s ease-out 0.15s both;
}

.hero-optional-line {
  font-size: var(--text-small);
  color: var(--color-grey);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: heroFadeUp 0.8s ease-out 0.3s both;
}

.hero-cta-row {
  margin-top: var(--space-sm);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  animation: heroFadeUp 0.8s ease-out 0.45s both;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#music {
  background: var(--color-charcoal);
  padding: var(--section-padding);
}

.music-shell {
  max-width: 980px;
  --music-art-size: clamp(280px, 32vw, 420px);
}

.music-header {
  text-align: center;
  margin-bottom: var(--space-md);
}

.music-kicker {
  font-size: var(--text-small);
  color: var(--color-amber);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.music-header h2 {
  font-size: var(--text-h2);
  font-weight: var(--weight-h2);
  letter-spacing: var(--ls-heading);
  line-height: var(--lh-snug);
}

.music-support-copy {
  margin-top: 10px;
  color: var(--color-grey);
  font-size: var(--text-small);
}

.music-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: var(--space-md);
  align-items: start;
}

.music-artwork-wrap {
  width: var(--music-art-size);
  height: var(--music-art-size);
  background: var(--color-black);
}

.music-artwork-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.music-content {
  background: var(--color-charcoal);
  border: 1px solid var(--color-charcoal);
  padding: 0;
  height: var(--music-art-size);
}

.music-content iframe {
  width: 100%;
  height: 100%;
  display: block;
}

#about {
  position: relative;
  background-color: var(--color-black);
  padding: 0;
  isolation: isolate;
  overflow: hidden;
}

#about::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-black);
  opacity: 0.56;
  z-index: 1;
}

.about-bg-image {
  display: block;
  width: 100%;
  height: auto;
  transform: translateY(-200px);
  margin-bottom: -550px;
}

.about-container {
  position: absolute;
  left: 50%;
  bottom: var(--space-xl);
  transform: translate(-50%, -100px);
  z-index: 2;
  width: min(940px, calc(100% - (var(--space-md) * 2)));
  margin: 0;
}

.about-display {
  font-size: clamp(64px, 13vw, 188px);
  font-weight: var(--weight-h1);
  letter-spacing: -0.075em;
  line-height: 0.88;
  color: var(--color-white);
  opacity: 0.52;
  margin-bottom: 10px;
}

.about-panel {
  max-width: 760px;
  padding: 0;
  background: transparent;
  border: 0;
}

.about-label {
  font-size: var(--text-small);
  color: var(--color-grey);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-sm);
}

.about-intro {
  font-size: var(--text-h3);
  font-weight: var(--weight-h3);
  color: var(--color-white);
  line-height: var(--lh-snug);
}

.about-body {
  margin-top: var(--space-sm);
  font-size: var(--text-body);
  color: var(--color-grey);
  line-height: var(--lh-body);
  max-width: 680px;
}

.about-closer {
  color: var(--color-white);
}

#visuals {
  background: var(--color-charcoal);
  overflow: hidden;
  padding: var(--space-lg) 0;
}

.visuals-canvas {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  height: auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(7, 90px);
  gap: 30px;
  padding-bottom: 8px;
}

.visuals-sig {
  position: absolute;
  top: 56%;
  left: calc(53% + 160px);
  transform: translate(-50%, -50%);
  width: 30%;
  opacity: 0.07;
  filter: invert(1);
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.vcard {
  position: relative;
  overflow: hidden;
  background: transparent;
  z-index: 2;
}

.lightbox-trigger {
  cursor: zoom-in;
}

.vcard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  clip-path: none;
}

.vcard picture {
  display: block;
  width: 100%;
  height: 100%;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--color-black);
  z-index: 9999;
  padding: 24px;
}

.lightbox::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-black);
  opacity: 0.9;
}

.lightbox > * {
  position: relative;
  z-index: 1;
}

.lightbox.open {
  display: flex;
}

.lightbox-image {
  max-width: min(92vw, 1400px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 18px;
  border: 0;
  background: transparent;
  color: var(--color-white);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}

.v1 { grid-column: 1 / 2; grid-row: 1 / 3; transform: rotate(-2deg); z-index: 4; }
.v7 { grid-column: 1 / 2; grid-row: 3 / 5; height: 130%; align-self: start; transform: rotate(1.6deg); z-index: 3; }

.v2 { grid-column: 2 / 3; grid-row: 2 / 6; transform: rotate(1.2deg); z-index: 5; }
.v8 { grid-column: 2 / 3; grid-row: 6 / 8; position: relative; left: -30px; width: calc(100% + 30px); transform: rotate(-1.2deg); z-index: 3; }

.v3 { grid-column: 3 / 4; grid-row: 1 / 4; transform: rotate(-1.5deg); z-index: 4; }
.v9 { grid-column: 3 / 4; grid-row: 4 / 7; transform: rotate(1.8deg); z-index: 4; }

.v4 { grid-column: 4 / 5; grid-row: 2 / 4; transform: rotate(-0.8deg); z-index: 6; }
.v5 { grid-column: 5 / 6; grid-row: 1 / 4; position: relative; top: 20px; transform: rotate(0.9deg); z-index: 2; }
.v6 { grid-column: 6 / 7; grid-row: 1 / 4; position: relative; top: 100px; transform: rotate(-0.7deg); z-index: 3; }

#contact {
  background: var(--color-black);
  padding: var(--space-2xl) var(--space-md) 10px;
  position: relative;
}

#hero,
#music,
#about,
#visuals,
#contact {
  position: relative;
}

.contact-content {
  text-align: center;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-content h2 {
  font-size: var(--text-h2);
  font-weight: var(--weight-h2);
  letter-spacing: var(--ls-heading);
  line-height: var(--lh-snug);
}

.contact-content > p {
  margin-top: var(--space-sm);
  color: var(--color-grey);
}

.contact-email {
  display: inline-block;
  margin-top: var(--space-sm);
  font-size: var(--text-h3);
  color: var(--color-amber);
}

.contact-email:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.social-links {
  margin-top: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-small);
  color: var(--color-grey);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--color-white);
}

.social-links svg,
.social-links img {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
}

.social-links img {
  /* Normalize raster/logo files to muted neutral text tone */
  filter: grayscale(1) brightness(0) saturate(100%) invert(62%);
  transition: filter 0.3s ease;
}

.social-links a:hover img {
  /* Match hover state to Soft White */
  filter: grayscale(1) brightness(0) saturate(100%) invert(95%);
}

.footer-line {
  margin-top: auto;
  padding-top: var(--space-2xl);
  font-size: var(--text-small);
  color: var(--color-grey);
  opacity: 0.5;
}

.section-nav {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 8;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.section-nav-btn {
  border: 0;
  background: transparent;
  color: var(--color-white);
  cursor: pointer;
  padding: 0;
  transition: color 0.25s ease;
}

.section-nav-btn svg {
  width: 34px;
  height: 17px;
  display: block;
}

.section-nav-next svg {
  transform: rotate(180deg);
}

.section-nav-btn:hover {
  color: var(--color-amber);
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.from-left {
  transform: translateX(-30px);
}

.animate-on-scroll.from-left.visible {
  transform: translateX(0);
}

.animate-on-scroll.from-right {
  transform: translateX(30px);
}

.animate-on-scroll.from-right.visible {
  transform: translateX(0);
}

.animate-on-scroll.fade-only {
  transform: none;
}

#about .animate-on-scroll,
#visuals .animate-on-scroll,
#contact .animate-on-scroll {
  transition-delay: var(--stagger, 0s);
}

@media (max-width: 768px) {
  #hero {
    justify-content: center;
    padding-top: calc(var(--space-xl) + 36px);
  }

  .hero-content {
    align-items: center;
    text-align: center;
  }

  .hero-topline {
    font-size: 10px;
    letter-spacing: 0.11em;
    top: var(--space-sm);
    left: var(--space-sm);
    right: var(--space-sm);
  }

  .hero-top-links {
    gap: 16px;
  }

  .hero-bg-logo {
    top: 42%;
    width: clamp(300px, 86vw, 720px);
  }

  .hero-bg-logo-ghost {
    width: clamp(300px, 86vw, 720px);
  }

  .hero-bg-logo-ghost.ghost-1 {
    top: calc(42% + 74px);
    --ghost-cut-top: clamp(56px, 8vw, 84px);
  }

  .hero-bg-logo-ghost.ghost-2 {
    top: calc(42% + 108px);
    --ghost-cut-top: clamp(92px, 12vw, 132px);
  }

  .hero-cta-row {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-row .btn {
    width: 100%;
  }

  #music {
    padding: var(--space-lg) var(--space-sm);
  }

  .music-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .music-artwork-wrap {
    margin: 0 auto;
    width: min(100%, 360px);
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .music-content iframe {
    height: 352px;
  }

  .music-content {
    height: auto;
  }

  #about {
    min-height: 0;
  }

  .about-display {
    font-size: clamp(54px, 15vw, 120px);
  }

  .about-panel {
    padding: 0;
  }

  .about-container {
    width: min(940px, calc(100% - (var(--space-sm) * 2)));
    bottom: var(--space-lg);
  }

  .visuals-canvas {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 120px;
    gap: 30px;
  }

  .vcard {
    position: relative;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    transform: none !important;
  }

  .vcard img {
    height: 100%;
  }

  .v1 { grid-column: 1 / 2; grid-row: 1 / 3; }
  .v2 { grid-column: 2 / 4; grid-row: 1 / 4; }
  .v3 { grid-column: 1 / 2; grid-row: 3 / 4; }
  .v4 { grid-column: 1 / 2; grid-row: 4 / 5; }
  .v5 { grid-column: 2 / 3; grid-row: 4 / 6; }
  .v6 { grid-column: 3 / 4; grid-row: 4 / 6; }
  .v7 { grid-column: 1 / 2; grid-row: 5 / 6; }
  .v8 { grid-column: 2 / 3; grid-row: 6 / 8; }
  .v9 { grid-column: 3 / 4; grid-row: 6 / 7; }

  .visuals-sig {
    width: 34%;
    left: 50%;
    top: 50%;
  }

  .section-nav {
    right: 12px;
    gap: 24px;
  }

  .section-nav-btn svg {
    width: 30px;
    height: 15px;
  }
}

@media (max-width: 480px) {
  .visuals-canvas {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 120px;
    gap: 30px;
    padding: 0;
  }

  .v1 { grid-column: 1 / 2; grid-row: 1 / 3; }
  .v2 { grid-column: 2 / 3; grid-row: 1 / 4; }
  .v3 { grid-column: 1 / 2; grid-row: 3 / 4; }
  .v4 { grid-column: 1 / 2; grid-row: 4 / 5; }
  .v5 { grid-column: 2 / 3; grid-row: 4 / 6; }
  .v6 { grid-column: 1 / 2; grid-row: 5 / 7; }
  .v7 { grid-column: 2 / 3; grid-row: 6 / 7; }
  .v8 { grid-column: 1 / 2; grid-row: 7 / 9; }
  .v9 { grid-column: 2 / 3; grid-row: 7 / 8; }

  .visuals-sig {
    width: 46%;
    opacity: 0.05;
  }

  #hero {
    padding: var(--space-lg) var(--space-sm);
    padding-top: calc(var(--space-lg) + 28px);
  }

  .hero-content {
    gap: var(--space-xs);
  }

  .hero-cta-row {
    margin-top: var(--space-xs);
  }

  .hero-topline {
    padding-bottom: 8px;
  }

  .hero-top-links {
    gap: 12px;
  }

  .hero-bg-logo {
    top: 40%;
  }

  .hero-bg-logo-ghost.ghost-1 {
    top: calc(40% + 64px);
    --ghost-cut-top: clamp(52px, 10vw, 72px);
  }

  .hero-bg-logo-ghost.ghost-2 {
    top: calc(40% + 94px);
    --ghost-cut-top: clamp(84px, 14vw, 120px);
  }

  #music,
  #contact {
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
  }

  .section-nav {
    right: 8px;
  }

}
