/* =========================================================
   DJ Lil Steve - site styles
   ========================================================= */

:root {
  /* Color */
  --black: #000000;
  --white: #ffffff;
  --beige: #e2c9a5;            /* sampled from the header video's paper edges */
  --text: #ffffff;
  --text-muted: #b8b8b8;       /* 10.6:1 on black */
  --text-subtle: #8c8c8c;      /* 6.2:1 on black */
  --hairline: rgba(255, 255, 255, 0.14);

  /* Type */
  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Layout */
  --nav-h: 104px;             /* tablets: two-row nav */
  --vh: 100vh;
  --gutter: clamp(20px, 5vw, 64px);
  --fade-top: clamp(24px, 4.5vh, 60px);      /* black nav -> beige video */
  --fade-bottom: clamp(40px, 6vh, 72px);     /* beige video -> pure black */
  /* Header zoom: enlarges name + character; the extra width trims empty
     paper off both sides. Set to 1 to show the full, un-zoomed frame. */
  --hero-zoom: 1.2;
  --sticky-gap: clamp(24px, 6vh, 72px);

  /* Eased transparent -> black ramp. Reaches solid #000 at 92% so the
     final pixels are always pure black (no sub-pixel seam). */
  --scrim:
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.013) 7.45%,
    rgba(0, 0, 0, 0.049) 14.26%,
    rgba(0, 0, 0, 0.104) 20.7%,
    rgba(0, 0, 0, 0.175) 26.68%,
    rgba(0, 0, 0, 0.259) 32.48%,
    rgba(0, 0, 0, 0.352) 37.9%,
    rgba(0, 0, 0, 0.45) 43.33%,
    rgba(0, 0, 0, 0.55) 48.67%,
    rgba(0, 0, 0, 0.648) 54.1%,
    rgba(0, 0, 0, 0.741) 59.52%,
    rgba(0, 0, 0, 0.825) 65.32%,
    rgba(0, 0, 0, 0.896) 71.3%,
    rgba(0, 0, 0, 0.951) 77.74%,
    rgba(0, 0, 0, 0.987) 84.55%,
    #000 92%,
    #000 100%;
}

@supports (height: 100svh) {
  :root { --vh: 100svh; }
}

@media (max-width: 599px) {
  :root { --nav-h: 96px; }   /* phones: compact two-row nav */
}

@media (min-width: 1120px) {
  :root { --nav-h: 80px; }
}

/* ---------- Base ---------- */

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

html {
  background: var(--black);
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-top: var(--nav-h);   /* content always starts below the fixed nav */
  background: var(--black);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
video { display: block; max-width: 100%; }

a { color: inherit; }

button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
  border-radius: 2px;
}

/* All page content lives in its own stacking context *below* the nav */
main {
  position: relative;
  z-index: 0;
  isolation: isolate;
}

/* Read by screen readers, not shown on screen */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1100;
  padding: 12px 18px;
  background: var(--white);
  color: var(--black);
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease-out);
}

.skip-link:focus-visible { transform: none; outline-color: var(--beige); }

/* =========================================================
   FIXED NAVIGATION
   ========================================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: var(--black);
}

/* Soft feather under the bar once the page scrolls, so content slides
   *under* the nav instead of meeting it at a hard edge. */
.site-header::after {
  content: "";
  position: absolute;
  top: calc(100% - 2px);   /* tuck under the bar's edge so no seam can show */
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(to top, var(--scrim));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}

html.is-scrolled .site-header::after { opacity: 1; }

.nav {
  height: 100%;
  padding-inline: clamp(12px, 3vw, 48px);
  /* Phones / small tablets: two rows, no dropdown.
     Row 1: logo (left) + text links (right). Row 2: social icons. */
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 60px 44px;
  grid-template-areas:
    "brand links"
    "social social";
  align-items: center;
  column-gap: 16px;
}

/* Branding - top-left corner */
.nav__brand {
  grid-area: brand;
  flex-shrink: 0;                 /* never squeeze the logo to fit links */
  display: flex;
  align-items: center;
  height: 100%;
  margin-left: -4px;              /* optically align the artwork with the gutter */
  text-decoration: none;
  transition: opacity 0.2s var(--ease-out);
}

.nav__brand:hover { opacity: 0.82; }

.nav__brand img {
  height: 44px;
  width: auto;
}

.nav__links,
.nav__social {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
}

/* Text links */
.nav__links {
  grid-area: links;
  justify-content: flex-end;
  gap: clamp(10px, 3.5vw, 20px);
}

.nav__link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.75rem;
  font-weight: 600;
  font-stretch: 108%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}

.nav__link:hover::after,
.nav__link:focus-visible::after,
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Social icons */
.nav__social {
  grid-area: social;
  justify-content: space-between;
  width: 100%;
  max-width: 22rem;
  justify-self: center;
}

.nav__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  transition: opacity 0.2s var(--ease-out), transform 0.25s var(--ease-out);
}

.nav__icon img {
  width: 28px;
  height: 28px;
}

.nav__icon:hover {
  opacity: 0.72;
  transform: translateY(-1px);
}

/* Phones: five links don't fit beside the logo, so swap the rows.
   Row 1: logo (left) + compact icons (right). Row 2: links, full width. */
@media (max-width: 599px) {
  .nav {
    grid-template-rows: 56px 40px;
    grid-template-areas:
      "brand social"
      "links links";
    column-gap: 12px;
  }

  .nav__brand img { height: 36px; }

  .nav__social {
    width: auto;
    max-width: none;
    justify-self: end;
    justify-content: flex-end;
  }

  .nav__icon { width: 30px; }
  .nav__icon img { width: 22px; height: 22px; }

  .nav__links { justify-content: space-between; }
  .nav__link { min-height: 40px; }
}

/* Very narrow phones */
@media (max-width: 359px) {
  .nav__brand img { height: 30px; }
  .nav__link { font-size: 0.6875rem; letter-spacing: 0.04em; }
  .nav__icon { width: 28px; }
  .nav__icon img { width: 20px; height: 20px; }
}

/* Tablets and up: one row, exactly like the reference -
   logo far left, text links then icons on the right. */
@media (min-width: 1120px) {
  .nav {
    display: flex;
    align-items: center;
    gap: 0;
  }

  .nav__brand img { height: 60px; }

  .nav__links {
    margin-left: auto;
    gap: clamp(24px, 2.6vw, 44px);
  }

  .nav__link {
    font-size: 0.8125rem;
    font-stretch: 112%;
  }

  .nav__link::after { bottom: 10px; }

  .nav__social {
    width: auto;
    max-width: none;
    margin-left: clamp(24px, 3vw, 56px);
    gap: clamp(0px, 1vw, 14px);
  }
}

@media (min-width: 1200px) {
  .nav__brand img { height: 66px; }
  .nav__link { font-size: 0.875rem; }
}

/* =========================================================
   ANIMATED HEADER
   ========================================================= */

.hero {
  position: relative;
  /* Tuck both (already solid-black) edges 2px under the nav and the bio,
     so fractional-pixel heights can never leave a sliver of beige showing. */
  margin-block: -2px;
  /* The video is framed by flat paper colour above and below. The fades
     live in that framing, so they never sit on the logo or the character. */
  padding-top: var(--fade-top);
  padding-bottom: var(--fade-bottom);
  /* Both fades are background layers of this one box (not overlays), so the
     edges against the nav and the bio are pure black at any pixel ratio. */
  background:
    linear-gradient(to top, var(--scrim)) top / 100% var(--fade-top) no-repeat,       /* black nav -> beige */
    linear-gradient(to bottom, var(--scrim)) bottom / 100% var(--fade-bottom) no-repeat, /* beige -> pure black */
    var(--beige);
  overflow: hidden;
  overflow: clip;
}

.hero__stage {
  position: relative;
  z-index: 1;
  /* Always at least edge to edge, so the character runs in from (and out
     past) the side of the page. Wider than the screen = zoomed, centred. */
  --stage-w: calc(100% * var(--hero-zoom));
  width: var(--stage-w);
  margin-inline: calc((100% - var(--stage-w)) / 2);
  aspect-ratio: 1920 / 400;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Feather only the top/bottom paper margin into the matching page colour,
     so those frame edges disappear. The sides are left sharp: they sit
     exactly on the browser edge, where the character runs in and out. */
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 1.5%, #000 99%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 1.5%, #000 99%, transparent);
}

/* Smaller screens: scale the frame up (sides overflow and are clipped) so the
   logo and character stay large. They sit in the centre ~26% of the frame,
   and he still runs in from the screen edge. */
@media (max-width: 1023px) {
  .hero__stage { --stage-w: calc(140% * var(--hero-zoom)); }
}

@media (max-width: 767px) {
  .hero__stage { --stage-w: calc(200% * var(--hero-zoom)); }
}

@media (max-width: 480px) {
  .hero__stage { --stage-w: calc(250% * var(--hero-zoom)); }
}

.hero__toggle {
  position: absolute;
  right: clamp(12px, 2vw, 28px);
  bottom: 8px;                 /* tucked into the black fade */
  z-index: 3;
}

/* Shared pause / play control: deliberately quiet until you look for it */
.video-toggle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--white);
  opacity: 0.4;
  cursor: pointer;
  transition: opacity 0.25s var(--ease-out), background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

/* Brighter while the pointer is over the video, so it's easy to find */
.hero:hover .video-toggle,
.bio__stage:hover .video-toggle { opacity: 0.75; }

/* Once paused, keep the play button easy to see */
.video-toggle.is-paused { opacity: 0.8; }

.video-toggle:hover,
.video-toggle:focus-visible {
  opacity: 1;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
}

.video-toggle:focus-visible { border-radius: 50%; }

.video-toggle svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.video-toggle .icon-play { display: none; fill: currentColor; stroke: none; }
.video-toggle.is-paused .icon-pause { display: none; }
.video-toggle.is-paused .icon-play { display: block; }

/* =========================================================
   BIOGRAPHY
   ========================================================= */

.bio {
  position: relative;   /* paints over the hero's bottom 2px */
  background: var(--black);
  padding-top: clamp(32px, 8vh, 120px);
  padding-bottom: clamp(96px, 16vh, 200px);
}

.bio__inner {
  --bio-gap: clamp(40px, 6vw, 96px);
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  gap: var(--bio-gap);
}

.bio__copy { max-width: 36rem; }

.eyebrow {
  margin: 0 0 20px;
  color: var(--beige);
  font-size: 0.8125rem;
  font-weight: 600;
  font-stretch: 118%;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.bio__copy p {
  margin: 0 0 1.4em;
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.75;
  text-wrap: pretty;
}

.bio__copy .bio__lead {
  color: var(--text);
  font-size: clamp(1.125rem, 1.4vw, 1.3125rem);
  line-height: 1.6;
  font-weight: 400;
}

.bio__copy p:last-child { margin-bottom: 0; }

/* Album titles */
.bio__copy cite { color: var(--text); }

/* Hoodie video: whole frame kept, softly dissolved into black */
.bio__media {
  position: relative;
  order: -1;                                   /* phones: video leads */
  margin-inline: calc(var(--gutter) * -1);     /* phones: edge to edge */
}

/* Video + its pause button, kept together */
.bio__stage { position: relative; }

.bio__frame {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  --mask-x: linear-gradient(to right,
    transparent 0%, rgba(0, 0, 0, 0.08) 3%, rgba(0, 0, 0, 0.25) 7%, rgba(0, 0, 0, 0.5) 11.5%,
    rgba(0, 0, 0, 0.75) 16%, rgba(0, 0, 0, 0.92) 20%, #000 24%,
    #000 84%, rgba(0, 0, 0, 0.85) 89%, rgba(0, 0, 0, 0.5) 94%, rgba(0, 0, 0, 0.18) 97.5%, transparent 100%);
  --mask-y: linear-gradient(to bottom,
    transparent 0%, rgba(0, 0, 0, 0.35) 3.5%, rgba(0, 0, 0, 0.75) 7%, #000 11%,
    #000 74%, rgba(0, 0, 0, 0.88) 80%, rgba(0, 0, 0, 0.6) 87%, rgba(0, 0, 0, 0.28) 93.5%, transparent 100%);
  -webkit-mask-image: var(--mask-x), var(--mask-y);
  -webkit-mask-composite: source-in;
  mask-image: var(--mask-x), var(--mask-y);
  mask-composite: intersect;
}

/* Subtle cinematic vignette, centred on Steve */
.bio__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 78% 82% at 60% 40%,
    rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0.22) 66%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}

.bio__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bio__toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
}

@media (min-width: 640px) {
  .bio__media { margin-inline: 0; }
}

@media (min-width: 960px) {
  .bio__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: start;
  }

  .bio__copy { padding-top: clamp(24px, 8vh, 96px); }

  .bio__media {
    order: 0;
    position: sticky;
    top: calc(var(--nav-h) + var(--sticky-gap));   /* fallback for older browsers */
    margin-top: clamp(24px, 8vh, 96px);              /* starts level with "BIOGRAPHY" */
  }

  /* Always fits in the visible area under the nav while it's stuck */
  .bio__stage {
    width: min(100%, calc((var(--vh) - var(--nav-h) - 2 * var(--sticky-gap)) * 4 / 3));
    margin-left: auto;
  }

  /* While pinned, sit centred in the space below the nav: equal room above
     and below. Works out the video's height from its column width. */
  @supports (top: 1cqw) {
    .bio__inner { container-type: inline-size; }

    .bio__media {
      --col-w: calc((100cqw - var(--bio-gap)) * 1.1 / 2.1);
      --frame-h: calc(min(var(--col-w), (var(--vh) - var(--nav-h) - 2 * var(--sticky-gap)) * 4 / 3) * 3 / 4);
      top: calc(var(--nav-h) + (var(--vh) - var(--nav-h) - var(--frame-h)) / 2);
    }
  }
}

/* =========================================================
   MEDIA
   ========================================================= */

.media {
  position: relative;
  background: var(--black);
  padding-block: clamp(32px, 6vh, 96px) clamp(48px, 10vh, 120px);
}

.media__inner {
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  justify-items: center;
  text-align: center;
}

.media__player {
  width: 100%;
  max-width: 46rem;               /* lines up with the Latest Releases pair above */
  border-radius: 14px;
  overflow: hidden;
  background: #121212;            /* shows while Spotify loads */
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9);
}

.media__player iframe {
  display: block;
  width: 100%;
  height: 352px;
  border: 0;
}

/* =========================================================
   LATEST RELEASES
   Two covers on glass, floating over a purple glow, with
   listening buttons. The covers lean toward the mouse (main.js).
   ========================================================= */

.releases {
  --release-glow: #8f4dff;          /* matches the purple of both covers */
  position: relative;
  background: var(--black);
  padding-block: clamp(32px, 6vh, 96px) clamp(48px, 10vh, 120px);
  isolation: isolate;
}

/* soft glow behind the covers, faded out at the edges so there's no visible border */
.releases::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 34% 40% at 30% 46%, color-mix(in srgb, var(--release-glow) 26%, transparent), transparent 70%),
    radial-gradient(ellipse 34% 40% at 70% 46%, color-mix(in srgb, var(--release-glow) 22%, transparent), transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  pointer-events: none;
}

.releases__inner {
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  justify-items: center;
  text-align: center;
}

.releases__grid {
  width: 100%;
  max-width: 46rem;
  display: grid;
  gap: clamp(44px, 6vh, 64px) clamp(28px, 4vw, 56px);
}

@media (min-width: 760px) {
  .releases__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.release {
  display: grid;
  justify-items: center;
  gap: clamp(16px, 2.4vh, 22px);
}

/* The cover on a glass slab; floats gently, offset between the two */
.release__art {
  position: relative;
  width: min(100%, 18rem);
  aspect-ratio: 1;
  padding: clamp(7px, 1.1vw, 10px);
  border-radius: clamp(14px, 1.6vw, 20px);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05) 38%, rgba(255, 255, 255, 0.02) 62%, rgba(255, 255, 255, 0.12)),
    rgba(14, 18, 22, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 40px 80px -30px rgba(0, 0, 0, 0.95),
    0 0 70px -10px color-mix(in srgb, var(--release-glow) 55%, transparent);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
  animation: release-float 7s ease-in-out infinite;
}

.release:nth-child(2) .release__art { animation-delay: -3.5s; }

/* Phones: a little smaller still, so each cover doesn't fill the whole screen */
@media (max-width: 599px) {
  .release__art { width: min(100%, 15rem); }
}

.release__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: clamp(9px, 1vw, 13px);
}

/* light catching the glass; follows the mouse a little */
.release__art::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgba(255, 255, 255, 0.22), transparent 45%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.release__art.is-tilting {
  transition: transform 0.15s linear;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 50px 90px -30px rgba(0, 0, 0, 0.95),
    0 0 90px -6px color-mix(in srgb, var(--release-glow) 70%, transparent);
}

@keyframes release-float {
  0%, 100% { translate: 0 -6px; }
  50%      { translate: 0 6px; }
}

.release__info {
  display: grid;
  justify-items: center;
  gap: 5px;
  max-width: 22rem;
}

.release__artist {
  margin: 0;
  color: var(--beige);
  font-size: 0.75rem;
  font-weight: 600;
  font-stretch: 118%;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.release__title {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 900;
  font-stretch: 115%;
  line-height: 1.05;
  text-transform: uppercase;
}

.release__tag {
  margin: 0;
  color: var(--text-subtle);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.release__note {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.release__links {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

/* a button stays hidden until it has a link */
.release__links li:has(> .release__link[href=""]),
.release__links li:has(> .release__link:not([href])) { display: none; }

.release__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.release__link:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-1px);
}

.release__link img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
  .release__art { animation: none; transform: none; }
}

/* =========================================================
   CONTACT
   ========================================================= */

.contact {
  position: relative;
  background: var(--black);
  padding-block: clamp(32px, 6vh, 96px) clamp(96px, 16vh, 180px);
}

.contact__inner {
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  justify-items: center;
  text-align: center;
}

/* "MEDIA" / "CONTACT" — the eyebrow style, a step larger, as each section's only heading */
.section-title {
  margin: 0 0 clamp(20px, 3.5vh, 32px);
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.2;
}

/* The card: dark glass with a warm glow picked up from the header's beige */
.contact-card {
  position: relative;
  width: 100%;
  max-width: 30rem;
  padding: clamp(16px, 3vw, 22px);
  display: grid;
  gap: 12px;
  text-align: left;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(120% 70% at 15% 0%, rgba(229, 204, 167, 0.16), rgba(229, 204, 167, 0) 60%),
    radial-gradient(90% 60% at 100% 0%, rgba(122, 84, 50, 0.22), rgba(122, 84, 50, 0) 65%),
    #121212;
  box-shadow:
    0 40px 90px -30px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.contact-card__honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.field { display: grid; gap: 6px; }

.field__label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

.field__req {
  font-weight: 400;
  color: var(--text-subtle);
}

.field__input {
  width: 100%;
  padding: 10px 14px;
  font: inherit;
  font-size: 1rem;               /* 16px+ stops iOS zooming on focus */
  line-height: 1.5;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  transition: border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.field__input::placeholder { color: #8a8a8a; opacity: 1; }

.field__input:hover { border-color: rgba(255, 255, 255, 0.3); }

.field__input:focus-visible,
.field__input:focus {
  outline: none;
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(229, 204, 167, 0.22);
}

.field__input--area {
  min-height: 5.5rem;
  resize: vertical;
}

.field__input[aria-invalid="true"] {
  border-color: #ff8f84;
  box-shadow: 0 0 0 4px rgba(255, 143, 132, 0.16);
}

.field__error {
  margin: 0;
  color: #ff9e94;               /* 8:1 on the card */
  font-size: 0.875rem;
}

.contact-card__submit {
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 14px;
  background: #4a4a4a;
  color: #f2f2f2;
  font-size: 1.0625rem;
  font-weight: 600;
  font-stretch: 108%;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 0.15s var(--ease-out);
}

.contact-card__submit-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease-out);
}

.contact-card__submit:hover,
.contact-card__submit:focus-visible {
  background: var(--beige);
  color: var(--black);
}

.contact-card__submit:hover .contact-card__submit-icon { transform: translateX(4px); }

.contact-card__submit:active { transform: scale(0.99); }

.contact-card__submit:focus-visible { outline-offset: 3px; border-radius: 14px; }

.contact-card__submit[disabled] {
  background: #3a3a3a;
  color: #bdbdbd;
  cursor: progress;
}

.contact-card__submit[disabled] .contact-card__submit-icon { display: none; }

.contact-card__status {
  margin: 0;
  min-height: 1.5em;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* No message yet: lift it out of the layout so it adds no space
   (it stays in the page, so screen readers still hear updates) */
.contact-card__status:empty { position: absolute; }

.contact-card__status.is-success { color: var(--beige); }
.contact-card__status.is-error { color: #ff9e94; }

.contact-card__status a { color: inherit; }

/* ---------- Reveal on scroll (enabled by main.js) ---------- */

.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out);
}

.reveal-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 32px var(--gutter) 36px;
  color: var(--text-subtle);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Centred at the very bottom: small logos, then the copyright line */
.site-footer__inner {
  max-width: 1360px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.site-footer__logos {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-footer__logos img {
  width: auto;
  height: 72px;
}

/* The shield file has wide transparent margins; size it up so the two
   logos read at the same visual size, without adding to the row height */
.site-footer__logos .site-footer__logo--chopstars {
  height: 92px;
  margin-block: -10px;
}

.site-footer p { margin: 0; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    animation-duration: 0.01ms !important;
  }

  .reveal-ready .reveal { opacity: 1; transform: none; }
}
