/* ==========================================================================
   BRUMA — Band Technical Services
   Structure:
   1. Tokens          5. Hero           9. Standard
   2. Base            6. Intro         10. For artists
   3. Layout helpers  7. Services      11. Contact / footer
   4. Header / nav    8. How it works  12. Motion + responsive
   ========================================================================== */


/* 1. TOKENS ---------------------------------------------------------------
   Change colors / type here and the whole site follows. */
:root {
  --black:     #060606;   /* near pure black: main background */
  --charcoal:  #111112;   /* alternate section background */
  --graphite:  #1c1c1d;   /* lines, table rules */
  --smoke:     #8a8781;   /* secondary text */
  --bone:      #e8e5df;   /* main text: off-white */
  --haze:      #a9b6bb;   /* the only accent: cold stage haze. Use sparingly. */

  --font: "Manrope", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Type scale (fluid) */
  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.875rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2:  clamp(1.6rem, 1.3rem + 1.4vw, 2.5rem);
  --step-3:  clamp(2.2rem, 1.6rem + 3vw, 4.25rem);
  --step-4:  clamp(3.2rem, 1.5rem + 9vw, 11rem);

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section-space: clamp(6rem, 14vw, 13rem);
  --max: 1440px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}


/* 2. BASE ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--black);
  color: var(--bone);
  font-family: var(--font);
  font-size: var(--step-0);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }

::selection { background: var(--bone); color: var(--black); }

:focus-visible { outline: 1px solid var(--haze); outline-offset: 4px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: .6rem 1rem; background: var(--bone); color: var(--black);
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}


/* 3. LAYOUT HELPERS ------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: var(--section-space); }

.section-head { margin-bottom: clamp(3rem, 7vw, 6rem); }

.section-title {
  font-size: var(--step-1);
  font-weight: 500;
  letter-spacing: .02em;
}

.section-sub { margin-top: .75rem; color: var(--smoke); max-width: 40ch; }

/* Large editorial headline */
.display {
  font-size: var(--step-3);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -.025em;
  max-width: 16ch;
}
.display__muted { display: block; color: var(--smoke); }

/* Text link used as call to action (hero) */
.link-cta {
  display: inline-block;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding-bottom: .4rem;
  border-bottom: 1px solid rgba(232, 229, 223, .35);
  transition: border-color .4s var(--ease), letter-spacing .6s var(--ease);
}
.link-cta:hover { border-color: var(--bone); letter-spacing: .26em; }

/* Solid button (contact only: the one real button on the page) */
.button {
  display: inline-block;
  padding: 1.1rem 2.4rem;
  background: var(--bone);
  color: var(--black);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  transition: background .4s var(--ease), color .4s var(--ease);
}
.button:hover { background: transparent; color: var(--bone); box-shadow: inset 0 0 0 1px var(--bone); }


/* 4. HEADER / NAV --------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem var(--gutter);
  transition: background .5s var(--ease), padding .5s var(--ease);
}
/* Added by JS once the user scrolls past the hero top */
.site-header.is-scrolled {
  background: rgba(6, 6, 6, .94);
  padding-block: 1rem;
}

.wordmark {
  font-weight: 400;
  font-size: .95rem;
  letter-spacing: .5em;
  margin-right: -.5em; /* compensates trailing tracking */
}
.wordmark--small { font-size: .8rem; }

.site-nav ul { display: flex; gap: clamp(1.25rem, 2.5vw, 2.5rem); }
.site-nav a {
  font-size: var(--step--1);
  color: var(--smoke);
  transition: color .3s var(--ease);
}
.site-nav a:hover, .site-nav a.is-active { color: var(--bone); }

/* Language switcher (last item of the nav list) */
.lang { display: flex; gap: .6rem; }
.lang a { font-size: var(--step--1); }
.lang a.is-current { color: var(--bone); }

.menu-toggle { display: none; }


/* 5. HERO ----------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

/* REPLACE IMAGE: hero photograph */
.hero__media {
  position: absolute; inset: -6% 0;
  z-index: -2;
  background: url("../images/placeholder-hero.jpg?v=2") center 20% / cover no-repeat;
  opacity: 0;
  transform: scale(1.06);
  animation: lightsUp 3.2s var(--ease) .2s forwards;
}

/* Strong black overlay + slow drifting haze (the "bruma") */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, var(--black) 0%, rgba(6,6,6,.58) 42%, rgba(6,6,6,.45) 100%),
    rgba(0, 0, 0, .22);
}
.hero__haze {
  position: absolute; inset: -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(45% 30% at 30% 55%, rgba(169,182,187,.06), transparent 75%),
    radial-gradient(40% 24% at 70% 45%, rgba(232,229,223,.04), transparent 75%);
  will-change: transform;
  animation: drift 40s ease-in-out infinite alternate;
}

.hero__content {
  width: 100%; max-width: var(--max); margin-inline: auto;
  padding: 0 var(--gutter) clamp(2.5rem, 6vw, 5rem);
}

.hero__title { display: block; font-weight: inherit; }

.hero__brand {
  display: block;
  font-size: var(--step-4);
  font-weight: 200;
  line-height: .9;
  letter-spacing: .28em;
  margin-right: -.28em;
  opacity: 0;
  animation: fadeIn 2.4s var(--ease) 1.4s forwards;
}

.hero__descriptor {
  display: block;
  margin-top: clamp(1rem, 2vw, 1.75rem);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--bone);
  opacity: 0;
  animation: fadeIn 2s var(--ease) 2.2s forwards;
}

.hero__foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem;
  margin-top: clamp(3rem, 9vh, 7rem);
  padding-top: 1.75rem;
  border-top: 1px solid rgba(232, 229, 223, .12);
  opacity: 0;
  animation: fadeIn 2s var(--ease) 2.8s forwards;
}
.hero__lede { color: var(--smoke); }
.hero__claim { color: var(--bone); }


/* 6. INTRO ---------------------------------------------------------------- */
.intro__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(3rem, 8vw, 9rem);
  align-items: start;
}
.intro__body { padding-top: .75rem; max-width: 34rem; }
.intro__body p + p { margin-top: 1.5rem; }
.lines { color: var(--smoke); }
.intro__turn { font-size: var(--step-1); font-weight: 400; color: var(--bone); }
.intro__sign { color: var(--bone); font-weight: 500; }

/* Full-bleed image band */
.band-image {
  margin-top: var(--section-space);
  height: clamp(320px, 60vw, 760px);
  overflow: hidden;
}
.band-image img {
  width: 100%; height: 118%;
  object-fit: cover;
  opacity: .8;
}


/* 7. SERVICES -------------------------------------------------------------
   Editorial rows, no cards: number / big title / text */
.services { background: var(--charcoal); }

.service {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  border-top: 1px solid var(--graphite);
}
.service:last-child { border-bottom: 1px solid var(--graphite); }

.service__num {
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--smoke);
  padding-top: .9rem;
  font-variant-numeric: tabular-nums;
}

.service__title {
  font-size: var(--step-3);
  font-weight: 300;
  line-height: .98;
  letter-spacing: -.02em;
  text-transform: uppercase;
  transition: color .5s var(--ease);
}

.service__body { padding-top: .6rem; max-width: 30rem; }
.service__line { font-size: var(--step-1); font-weight: 400; line-height: 1.35; }
.service__detail { margin-top: 1.25rem; color: var(--smoke); font-size: var(--step--1); line-height: 1.75; }

/* Discreet hover: the other rows dim */
@media (hover: hover) {
  .service-list:hover .service__title { color: #4a4845; }
  .service-list .service:hover .service__title { color: var(--bone); }
}

.equipment {
  margin-top: clamp(3rem, 6vw, 5rem);
  color: var(--smoke);
  max-width: 42rem;
}
.equipment__title { font-size: var(--step-1); font-weight: 400; color: var(--bone); }
.equipment p { margin-top: 1.25rem; }


/* 8. HOW IT WORKS ---------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  counter-reset: none;
}

.step {
  position: relative;
  padding: 2rem clamp(1rem, 2vw, 2rem) 0 0;
  border-top: 1px solid var(--graphite);
}
/* small haze marker on the line: shows the sequence */
.step::before {
  content: ""; position: absolute; top: -3px; left: 0;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--haze);
}
.step__num { display: block; font-size: var(--step--1); color: var(--smoke); font-variant-numeric: tabular-nums; }
.step__title {
  margin: 1.25rem 0 .75rem;
  font-size: var(--step-2);
  font-weight: 300;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.step p { color: var(--smoke); max-width: 22ch; }


/* 9. THE BRUMA STANDARD ---------------------------------------------------- */
.standard { background: var(--charcoal); }

.standard__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
}

.standard__text p { margin-top: 1.25rem; max-width: 34rem; color: var(--smoke); }
.standard__text .standard__lead {
  margin-top: 2rem;
  font-size: var(--step-2);
  font-weight: 300;
  line-height: 1.15;
  color: var(--bone);
  max-width: 18ch;
}
.standard__text .standard__close { color: var(--bone); font-weight: 500; }

.plain-list { margin-top: 1.25rem; }
.plain-list li {
  padding: .55rem 0;
  border-bottom: 1px solid var(--graphite);
  font-size: var(--step--1);
}

/* The profile sheet: reads like a real band document, not a UI card */
.profile {
  background: var(--black);
  padding: clamp(1.5rem, 3vw, 2.75rem);
  font-size: var(--step--1);
  border-left: 1px solid var(--graphite);
}
.profile__head { padding-bottom: 1.5rem; border-bottom: 1px solid var(--graphite); }
.profile__kind { color: var(--smoke); }
.profile__name { font-size: var(--step-2); font-weight: 300; line-height: 1.2; margin-top: .25rem; }
.profile__meta { margin-top: .5rem; color: var(--smoke); font-variant-numeric: tabular-nums; }

.profile__table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-variant-numeric: tabular-nums;
}
.profile__table th {
  text-align: left; font-weight: 500; color: var(--smoke);
  padding: .6rem .75rem .6rem 0;
}
.profile__table td {
  padding: .6rem .75rem .6rem 0;
  border-top: 1px solid var(--graphite);
  white-space: nowrap;
}
.profile__table td:first-child { color: var(--smoke); width: 2.5rem; }
.profile__table td:last-child { color: var(--smoke); white-space: normal; }

.profile__scenes { margin-top: 1.75rem; display: grid; gap: .75rem; }
.profile__scenes div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; }
.profile__scenes dt { color: var(--smoke); }

.profile__foot {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--graphite);
  color: var(--smoke);
}


/* 10. FOR ARTISTS ---------------------------------------------------------- */
.artists {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding-block: var(--section-space);
  overflow: hidden;
  isolation: isolate;
}

/* REPLACE IMAGE: backstage photograph */
.artists__media {
  position: absolute; inset: -10% 0; z-index: -2;
  background: url("../images/placeholder-backstage.jpg?v=2") center / cover no-repeat;
}
.artists::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(6,6,6,.92) 0%, rgba(6,6,6,.7) 55%, rgba(6,6,6,.5) 100%);
}

.artists__content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: end;
}

.artists__title {
  font-size: var(--step-4);
  font-weight: 200;
  line-height: .92;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

.artists__body { max-width: 28rem; }
.artists__body p { color: var(--smoke); }
.artists__body p + p { margin-top: .35rem; }
.artists__body .artists__turn {
  margin-top: 2rem;
  font-size: var(--step-1);
  line-height: 1.35;
  color: var(--bone);
  font-weight: 400;
}
.artists__body .artists__close { margin-top: 1.5rem; color: var(--bone); }


/* 10b. REACH / BASE -------------------------------------------------------- */
.reach__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 6vw, 7rem);
  margin-top: clamp(4rem, 9vw, 8rem);
  padding-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--graphite);
}
.reach__title { font-size: var(--step-1); font-weight: 400; margin-bottom: 1.25rem; }
.reach p { color: var(--smoke); max-width: 34rem; }


/* 11. CONTACT / FOOTER ----------------------------------------------------- */
.contact .display { max-width: none; }

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 42ch) auto;
  justify-content: start;
  align-items: end;
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.contact__text { color: var(--smoke); font-size: var(--step-1); line-height: 1.45; }

.contact__details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 24ch));
  justify-content: start;
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--graphite);
  font-size: var(--step--1);
}
.contact__details dt { color: var(--smoke); margin-bottom: .35rem; }
.contact__details a { border-bottom: 1px solid transparent; transition: border-color .3s var(--ease); }
.contact__details a:hover { border-color: var(--bone); }

.site-footer { padding-block: 2rem; border-top: 1px solid var(--graphite); }
.site-footer__inner {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .75rem; color: var(--smoke);
}
.site-footer .wordmark { color: var(--bone); }


/* Parallax layers live on their own GPU layer so scrolling stays cheap */
[data-parallax] { will-change: transform; backface-visibility: hidden; }


/* 12. MOTION ---------------------------------------------------------------- */
@keyframes lightsUp {
  0%   { opacity: 0; transform: scale(1.06); filter: brightness(.3); }
  100% { opacity: 1; transform: scale(1);    filter: brightness(1); }
}
@keyframes fadeIn { to { opacity: 1; } }
@keyframes drift {
  from { transform: translate3d(-3%, 0, 0); }
  to   { transform: translate3d(3%, -2%, 0); }
}

/* Viewport reveal: only active when JS is running (.js on <html>) */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .hero__media, .hero__brand, .hero__descriptor, .hero__foot { opacity: 1; }
  .hero__haze { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
}


/* RESPONSIVE ------------------------------------------------------------------ */

/* Tablet */
@media (max-width: 1024px) {
  .intro__grid,
  .standard__grid { grid-template-columns: 1fr; }

  .service { grid-template-columns: 3.5rem 1fr; }
  .service__body { grid-column: 2; padding-top: 0; }

  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 3.5rem; }

  .artists__content { grid-template-columns: 1fr; align-items: start; }
  .reach__grid { grid-template-columns: 1fr; }
  .profile { border-left: 0; }
}

/* Mobile */
@media (max-width: 720px) {
  /* Nav becomes a full-screen dark menu */
  .menu-toggle {
    display: block;
    background: none; border: 0; color: var(--bone);
    font: 500 var(--step--1)/1 var(--font);
    padding: .5rem 0;
    position: relative; z-index: 2;
  }
  .site-nav {
    position: fixed; inset: 0;
    background: var(--black);
    display: flex; align-items: flex-end;
    padding: var(--gutter) var(--gutter) 3rem;
    opacity: 0; visibility: hidden;
    transition: opacity .5s var(--ease), visibility .5s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; gap: .5rem; }
  .site-nav a { font-size: var(--step-2); font-weight: 300; color: var(--bone); }
  .site-nav .lang { margin-top: 1.5rem; gap: 1.25rem; }
  .site-nav .lang a { font-size: var(--step--1); color: var(--smoke); }
  .site-nav .lang a.is-current { color: var(--bone); }
  .wordmark { position: relative; z-index: 2; }

  /* Hero keeps its weight: BRUMA spans the width, stacked footer */
  .hero__brand { font-size: 17.5vw; letter-spacing: .16em; margin-right: -.16em; }
  .hero__descriptor { letter-spacing: .3em; }
  .hero__media { background-position: 62% 16%; }
  .hero__foot { flex-direction: column; align-items: flex-start; gap: 2rem; }

  .display { font-size: clamp(2.1rem, 10vw, 3rem); }

  /* Services: number sits above the title, editorial not stacked-cards */
  .service { grid-template-columns: 1fr; gap: 1rem; }
  .service__num { padding-top: 0; }
  .service__body { grid-column: auto; }
  .service__title { font-size: clamp(2.2rem, 11vw, 3rem); }

  /* Steps: vertical timeline on the left edge */
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .step { border-top: 0; border-left: 1px solid var(--graphite); padding: 0 0 3rem 1.5rem; }
  .step::before { top: 0; left: -3px; }
  .step__title { margin-top: .5rem; }
  .step:last-child { padding-bottom: 0; }

  .profile { margin-inline: calc(var(--gutter) * -1); }
  .profile__table th:nth-child(4),
  .profile__table td:nth-child(4) { display: none; }
  .profile__scenes div { grid-template-columns: 1fr; gap: .1rem; }

  .artists { min-height: auto; }
  .artists__title { font-size: clamp(2.8rem, 15vw, 4.5rem); }

  .contact__grid { grid-template-columns: 1fr; }
  .contact__details { grid-template-columns: 1fr; gap: 1.5rem; }
  .button { width: 100%; text-align: center; }
}
