/* ============================================================
   Elevated Visualz — dark luxury, sharp edges, cinematic motion
   Palette and type per research/03-build-brief.md
   ============================================================ */

:root {
  --canvas: #0a0a0c;
  --surface: #141417;
  --line: #2a2a2e;
  --gold: #d4ad6e;
  --ink: #f4f2ee;
  --muted: #8a8a93;
  --display: "Anton", sans-serif;
  --body: "Inter", sans-serif;
  --pad: clamp(20px, 5vw, 96px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--canvas); }

img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.01em;
}

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--canvas);
  display: grid;
  place-items: center;
}
.loader__logo { width: clamp(110px, 16vw, 180px); height: auto; }

/* ---------- Grain ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad);
  transition: background 0.35s ease, padding 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 10, 12, 0.88);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
  padding-top: 12px;
  padding-bottom: 12px;
}
.nav__brand img { width: 44px; height: 44px; }
.nav__links { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); }
.nav__links a {
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s ease;
  position: relative;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav__links a:not(.nav__cta):hover::after { transform: scaleX(1); }
.nav__cta {
  color: var(--canvas) !important;
  background: var(--gold);
  padding: 12px 26px;
  font-weight: 600;
  transition: background 0.25s ease;
}
.nav__cta:hover { background: var(--ink); }

/* ---------- Nav dropdown (Work) ---------- */
.nav__item--has-sub { position: relative; }
.nav__sublabel {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.25s ease;
}
.nav__item--has-sub:hover .nav__sublabel,
.nav__sublabel:hover,
.nav__sublabel:focus-visible { color: var(--ink); }
.nav__chevron { width: 10px; height: 6px; transition: transform 0.25s ease; }
.nav__item--has-sub:hover .nav__chevron,
.nav__item--has-sub.is-open .nav__chevron { transform: rotate(180deg); }
.nav__submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  display: flex;
  flex-direction: column;
  min-width: 180px;
  padding: 8px;
  background: rgba(10, 10, 12, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
}
.nav__item--has-sub:hover .nav__submenu,
.nav__item--has-sub.is-open .nav__submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.nav__submenu a {
  display: block;
  padding: 10px 16px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav__submenu a::after { display: none; }
.nav__submenu a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }

.nav__toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 17px 38px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn--gold { background: var(--gold); color: var(--canvas); }
.btn--gold:hover { background: var(--ink); }
.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Photo placeholders (swap for real images) ---------- */
.ph {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(212, 173, 110, 0.07) 0%, transparent 45%),
    repeating-linear-gradient(135deg, #121215 0 14px, #0e0e11 14px 28px);
  border: 1px solid var(--line);
  position: relative;
}
.ph::after {
  content: "Photo placeholder";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 0 var(--pad);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: -8% 0;
  background:
    radial-gradient(ellipse 70% 55% at 68% 42%, rgba(212, 173, 110, 0.12), transparent 60%),
    radial-gradient(ellipse 90% 80% at 30% 80%, rgba(40, 40, 48, 0.85), transparent 70%),
    #0c0c0f;
  will-change: transform;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,12,0.55) 0%, rgba(10,10,12,0.15) 45%, var(--canvas) 100%);
}
.hero__content { position: relative; width: 100%; max-width: 1100px; padding-top: 80px; }
.hero__kicker {
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 26px;
}
.hero__title {
  font-size: clamp(3.4rem, 12.5vw, 10.5rem);
  margin-bottom: 30px;
}
.hero__line { display: block; overflow: hidden; }
.hero__title em { font-style: normal; color: var(--gold); }
.hero__sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 42px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero__scroll-cue {
  position: absolute;
  bottom: 34px;
  right: var(--pad);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero__scroll-cue span {
  display: block;
  width: 1px;
  height: 52px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.hero__scroll-cue span::after {
  content: "";
  position: absolute;
  left: 0; top: -50%;
  width: 100%; height: 50%;
  background: var(--gold);
  animation: cue-drop 2s ease-in-out infinite;
}
@keyframes cue-drop {
  0% { top: -50%; }
  70%, 100% { top: 110%; }
}

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 22px 0;
  background: var(--canvas);
}
.marquee__track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  width: max-content;
  animation: marquee 110s linear infinite;
}
.marquee__track span,
.marquee__track i {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px var(--muted);
}
.marquee__track i {
  font-style: normal;
  -webkit-text-stroke-color: #46464e;
  padding: 0 clamp(28px, 3vw, 64px);
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Section headers ---------- */
.section-head { padding: clamp(70px, 10vw, 130px) var(--pad) clamp(34px, 5vw, 60px); }
.section-head__label {
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.section-head__title { font-size: clamp(2.6rem, 7vw, 5.5rem); }

/* ---------- Horizontal gallery (pinned on desktop via GSAP) ---------- */
.gallery { overflow: hidden; }
.gallery__track {
  display: flex;
  gap: clamp(16px, 2.5vw, 36px);
  padding: 0 var(--pad) 64px;
  width: max-content;
  will-change: transform;
}
.gallery__item {
  width: clamp(250px, 30vw, 430px);
  flex-shrink: 0;
}
.gallery__item .ph,
.gallery__img { aspect-ratio: 3 / 4; height: auto; transition: transform 0.5s ease; }
.gallery__img {
  width: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
}
.gallery__item:hover .ph,
.gallery__item:hover .gallery__img { transform: scale(0.98); }
.gallery__item figcaption {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Desktop: the section is pinned while the track scrubs horizontally, so it
   must fit exactly one viewport — items are height-capped to guarantee that. */
@media (min-width: 901px) {
  .work {
    height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .work .section-head { padding-top: 90px; padding-bottom: 40px; }
  .gallery__track { padding-bottom: 20px; }
  /* Card width is derived from the viewport height minus everything else in
     the pinned section (heading block + caption + paddings = 303px measured,
     +10px slack), so the 3:4 cards and their captions always fit. */
  .gallery__item { width: clamp(180px, calc((100svh - 313px) * 0.75), 430px); }
}

/* Mobile: native swipe instead of pin */
@media (max-width: 900px) {
  .gallery { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery__item { scroll-snap-align: start; }
}

/* ---------- Music videos ---------- */
.videos__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 36px);
  padding: 0 var(--pad) clamp(70px, 9vw, 120px);
}
.video-card {
  position: relative;
  text-decoration: none;
  display: block;
}
.ph--wide { aspect-ratio: 16 / 9; }
.video-card__poster {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  filter: saturate(0.85);
}
.video-card .ph,
.video-card__poster { transition: transform 0.5s ease, border-color 0.4s ease, filter 0.4s ease; }
.video-card:hover .ph,
.video-card:hover .video-card__poster { transform: scale(0.985); border-color: var(--gold); filter: saturate(1); }
.video-card__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -65%);
  width: 74px; height: 74px;
  border: 1px solid var(--gold);
  display: grid;
  place-items: center;
  transition: background 0.3s ease;
}
.video-card__play::after {
  content: "";
  border-left: 16px solid var(--gold);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 4px;
  transition: border-left-color 0.3s ease;
}
.video-card:hover .video-card__play { background: var(--gold); }
.video-card:hover .video-card__play::after { border-left-color: var(--canvas); }
.video-card__meta {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.video-card__meta strong { color: var(--ink); font-weight: 600; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats__item {
  padding: clamp(44px, 6vw, 80px) var(--pad);
  text-align: center;
}
.stats__item + .stats__item { border-left: 1px solid var(--line); }
.stats__num, .stats__plus {
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 6rem);
  color: var(--ink);
}
.stats__plus { color: var(--gold); }
.stats__item p {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding: clamp(80px, 11vw, 150px) var(--pad);
}
.ph--tall { aspect-ratio: 4 / 5; }
.about__img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  display: block;
}
.about__copy .section-head__title { margin-bottom: 26px; }
.about__copy p { color: var(--muted); margin-bottom: 20px; max-width: 54ch; }
.about__copy .btn { margin-top: 12px; }

/* ---------- Process ---------- */
.process { border-top: 1px solid var(--line); }
.process__steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.process__step {
  background: var(--canvas);
  padding: clamp(40px, 5vw, 70px) clamp(24px, 3vw, 48px) clamp(48px, 6vw, 80px);
  transition: background 0.4s ease;
}
.process__step:hover { background: var(--surface); }
.process__num {
  font-family: var(--display);
  font-size: clamp(2.6rem, 4.5vw, 4rem);
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
  display: block;
  margin-bottom: 22px;
}
.process__step h3 { font-size: 1.35rem; margin-bottom: 14px; }
.process__step p { color: var(--muted); font-size: 15px; }

/* ---------- Booking ---------- */
.book {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(40px, 6vw, 100px);
  padding: clamp(90px, 12vw, 160px) var(--pad);
}
.book__intro .section-head__title { margin-bottom: 22px; }
.book__intro p { color: var(--muted); max-width: 40ch; margin-bottom: 28px; }
.book__alt { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.book__alt a {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
}
.book__alt a:hover { color: var(--ink); border-color: var(--ink); }
.book__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.hidden-field { position: absolute; left: -9999px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  padding: 15px 16px;
  border-radius: 0;
  transition: border-color 0.25s ease;
  width: 100%;
}
.field select { appearance: none; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
  outline: none;
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
/* Dark-theme date picker icon */
.field input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.7); }
.btn--submit { grid-column: 1 / -1; justify-self: start; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(60px, 8vw, 100px) var(--pad) 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}
.footer__logo { width: clamp(90px, 10vw, 130px); height: auto; }
.footer__links { display: flex; gap: clamp(20px, 4vw, 44px); }
.footer__links a {
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s ease;
}
.footer__links a:hover { color: var(--gold); }
.footer__contact { font-size: 14px; color: var(--muted); }
.footer__contact a { color: var(--ink); text-decoration: none; }
.footer__contact a:hover { color: var(--gold); }
.footer__legal { font-size: 12px; color: var(--muted); }
.footer__legal a { color: var(--ink); text-decoration: none; }
.footer__legal a:hover { color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__links {
    position: fixed;
    inset: 0;
    height: 100vh;
    height: 100dvh;
    z-index: 70;
    background: rgba(10, 10, 12, 0.97);
    flex-direction: column;
    justify-content: center;
    gap: 38px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.4s ease, opacity 0.4s ease, visibility 0s linear 0.4s;
  }
  .nav.menu-open .nav__links {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.4s ease, opacity 0.4s ease;
  }
  .nav__links a { font-size: 18px; }

  /* Dropdown collapses to a centered accordion inside the full-screen menu */
  .nav__item--has-sub { width: 100%; }
  .nav__sublabel {
    width: 100%;
    justify-content: center;
    font-size: 18px;
  }
  .nav__submenu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    min-width: 0;
    padding: 0;
    background: none;
    border: none;
    backdrop-filter: none;
    align-items: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, margin 0.35s ease;
  }
  .nav__item--has-sub.is-open .nav__submenu {
    transform: none;
    max-height: 220px;
    margin-top: 22px;
  }
  .nav__submenu a { font-size: 14px; padding: 11px 16px; }

  .nav__toggle {
    display: block;
    position: relative;
    z-index: 90;
    background: none;
    border: none;
    width: 40px; height: 32px;
    cursor: pointer;
  }
  .nav__toggle span {
    display: block;
    width: 26px; height: 2px;
    background: var(--ink);
    margin: 7px auto;
    transition: transform 0.3s ease;
  }
  .nav.menu-open .nav__toggle span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .nav.menu-open .nav__toggle span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

  .videos__grid { grid-template-columns: minmax(0, 1fr); }
  .about { grid-template-columns: 1fr; }
  .about__media { max-width: 420px; }
  .process__steps { grid-template-columns: 1fr; }
  .book { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stats__item + .stats__item { border-left: none; border-top: 1px solid var(--line); }
}
@media (max-width: 540px) {
  .book__form { grid-template-columns: 1fr; }
  .hero__scroll-cue { display: none; }
}
