/* The Church Audio — local review polish. Keep movement on artwork, never copy or controls. */
:root {
  --polish-ivory: #f2eee4;
  --polish-brass: #b69a69;
  --polish-line: color-mix(in srgb, currentColor 16%, transparent);
}

html { scroll-padding-top: 24px; }

/* Home: centered, unmistakable church mark and gothic title. */
body:not(.profile-page) .welcome {
  position: relative;
  isolation: isolate;
}
body:not(.profile-page) .welcome::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 7% -4%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 18% 48%, #957b4a24, transparent 35%),
    radial-gradient(ellipse at 78% 48%, #8f39251c, transparent 38%);
  filter: blur(12px);
}
body:not(.profile-page) .welcome-copy {
  text-align: center;
}
body:not(.profile-page) .welcome-logo {
  width: clamp(300px, 34vw, 420px);
  margin: 0 auto 26px;
}
body:not(.profile-page) .worship-title {
  width: 100%;
  justify-content: center;
  text-align: center;
  font-size: clamp(24px, 2.65vw, 38px) !important;
  text-shadow: 0 2px 24px #d8c49b20;
}
body:not(.profile-page) .contact {
  justify-content: center;
}
body:not(.profile-page) .section-nav {
  justify-content: center;
}
body:not(.profile-page) .section-nav a {
  transition: color .22s ease, transform .22s ease;
}
body:not(.profile-page) .section-nav a:hover {
  transform: translateY(-2px);
}
body:not(.profile-page) .artist-art--banner {
  border: 1px solid #eee5d31c;
  background-color: #161513;
  box-shadow: inset 0 0 42px #0007;
}
body:not(.profile-page) .artist-art--banner .artist-photo {
  transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .8s ease;
  will-change: transform;
}
body:not(.profile-page) .artist-art--banner:hover .artist-photo,
body:not(.profile-page) .artist-art--banner:focus-visible .artist-photo {
  transform: scale(1.045);
}
body:not(.profile-page) .artist-art--banner:focus-visible {
  outline: 2px solid var(--polish-brass);
  outline-offset: 5px;
}

/* Editorial/software canvases: quiet contrast, tactile frames, gentle lift. */
body:not(.profile-page) .product-card,
body:not(.profile-page) .card,
body:not(.profile-page) .metric,
body:not(.profile-page) .entry,
body:not(.profile-page) .feature,
body:not(.profile-page) .summary-card,
body:not(.profile-page) .roadmap-item,
body:not(.profile-page) .notice,
body:not(.profile-page) .callout,
body:not(.profile-page) .availability,
body:not(.profile-page) .shot,
body:not(.profile-page) .product-shot {
  box-shadow: 0 12px 34px #0003, inset 0 1px #ffffff08;
  transition: border-color .3s ease, box-shadow .35s ease, transform .35s ease;
}
body:not(.profile-page) .product-shot,
body:not(.profile-page) .product-visual,
body:not(.profile-page) .shot {
  position: relative;
  isolation: isolate;
}
body:not(.profile-page) .product-shot img,
body:not(.profile-page) .product-visual img,
body:not(.profile-page) .shot img {
  scale: 1.035;
  transform-origin: center;
  transition: scale .8s cubic-bezier(.2,.7,.2,1), filter .8s ease;
  will-change: translate, scale;
}
body:not(.profile-page) .product-card:hover,
body:not(.profile-page) .product-card:focus-within {
  transform: translateY(-4px);
  border-color: #71c49d88;
  box-shadow: 0 20px 48px #0006, 0 0 0 1px #71c49d18;
}
body:not(.profile-page) .product-card:hover .product-visual img,
body:not(.profile-page) .product-card:focus-within .product-visual img,
body:not(.profile-page) .product-shot:hover img,
body:not(.profile-page) .shot:hover img {
  scale: 1.065;
}
body:not(.profile-page) .card:hover,
body:not(.profile-page) .feature:hover,
body:not(.profile-page) .metric:hover,
body:not(.profile-page) .entry:hover,
body:not(.profile-page) .summary-card:hover,
body:not(.profile-page) .roadmap-item:hover {
  border-color: color-mix(in srgb, var(--green, var(--accent, #b69a69)) 42%, var(--line, #454037));
  box-shadow: 0 14px 38px #0004, inset 0 1px #ffffff0a;
}
body:not(.profile-page) .wrap > .topbar a {
  transition: color .2s ease, transform .2s ease;
}
body:not(.profile-page) .wrap > .topbar a:hover {
  transform: translateY(-1px);
}
body:not(.profile-page) :where(.journal-link, .product-cta, .button, .links a) {
  text-decoration-thickness: 1px;
  text-underline-offset: .24em;
}

/* The three identity scenes retain their own palettes; only their art gets depth. */
.profile-page .portrait img[data-depth],
body:not(.profile-page) [data-parallax-scene] img[data-depth] {
  will-change: translate;
  backface-visibility: hidden;
}
[data-parallax-scene] {
  perspective: 1000px;
}
[data-parallax-scene] [data-depth] {
  transform-style: preserve-3d;
}

@media (max-width: 700px) {
  body:not(.profile-page) .welcome-logo {
    width: min(78vw, 340px);
  }
  body:not(.profile-page) .worship-title {
    justify-content: center;
    font-size: clamp(22px, 7vw, 31px) !important;
  }
  body:not(.profile-page) .welcome::before {
    inset: 2% -8%;
  }
}

@media (hover: none) {
  body:not(.profile-page) .product-card,
  body:not(.profile-page) .card,
  body:not(.profile-page) .metric,
  body:not(.profile-page) .entry,
  body:not(.profile-page) .feature,
  body:not(.profile-page) .summary-card,
  body:not(.profile-page) .roadmap-item {
    transition: border-color .25s ease, box-shadow .25s ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body:not(.profile-page) .section-nav a,
  body:not(.profile-page) .artist-art--banner .artist-photo,
  body:not(.profile-page) .product-shot img,
  body:not(.profile-page) .product-visual img,
  body:not(.profile-page) .shot img,
  body:not(.profile-page) .product-card,
  body:not(.profile-page) .card,
  body:not(.profile-page) .metric,
  body:not(.profile-page) .entry,
  body:not(.profile-page) .feature,
  body:not(.profile-page) .summary-card,
  body:not(.profile-page) .roadmap-item,
  body:not(.profile-page) .wrap > .topbar a {
    transition: none !important;
  }
  [data-depth] {
    translate: none !important;
    will-change: auto !important;
  }
}

/* Keep the ambient hero glow from expanding the document’s scroll width. */
body:not(.profile-page) .welcome::before {
  inset-inline: 0;
  clip-path: inset(0);
}

/* On short phones, leave room to scroll the Hallways pad above the fixed player. */
@media (max-width: 700px) {
  body.profile-page #hallways-game .hw-controls {
    padding-bottom: calc(136px + env(safe-area-inset-bottom));
  }
  body.profile-page #hallways-game .hw-pad button {
    scroll-margin-bottom: calc(136px + env(safe-area-inset-bottom));
    scroll-margin-block-end: calc(136px + env(safe-area-inset-bottom));
  }
}


/* 2026 motion pass: short, composed reveals; no perpetual loops, layout shifts or media autoplay. */
:root {
  --motion-settle: cubic-bezier(.16, 1, .3, 1);
}

@keyframes church-content-reveal {
  from {
    opacity: 0;
    translate: var(--motion-from-x, 0px) var(--motion-from-y, 18px);
    scale: var(--motion-from-scale, .992);
    rotate: var(--motion-from-rotate, 0deg);
  }
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
    rotate: 0deg;
  }
}

[data-motion-reveal="pending"] {
  opacity: 0;
  translate: var(--motion-from-x, 0px) var(--motion-from-y, 18px);
  scale: var(--motion-from-scale, .992);
  rotate: var(--motion-from-rotate, 0deg);
}

[data-motion-reveal="pending"]:focus-within {
  opacity: 1;
  translate: 0 0;
  scale: 1;
  rotate: 0deg;
}

[data-motion-reveal="visible"] {
  animation: church-content-reveal var(--motion-duration, .78s) var(--motion-ease, var(--motion-settle)) var(--motion-delay, 0ms) both;
}

/* Homepage: the logo, wordmark and navigation arrive like a calm studio downbeat. */
body:not(.profile-page) .welcome-logo { --motion-from-y: 12px; --motion-from-scale: .975; --motion-duration: 1s; }
body:not(.profile-page) .worship-title > span:first-child { --motion-delay: 90ms; --motion-from-y: 12px; --motion-duration: .8s; }
body:not(.profile-page) .worship-title > span:last-child { --motion-delay: 170ms; --motion-from-y: 18px; --motion-from-scale: .985; --motion-duration: .95s; }
body:not(.profile-page) .contact { --motion-delay: 230ms; --motion-from-y: 8px; }
body:not(.profile-page) .section-nav { --motion-delay: 300ms; --motion-from-y: 8px; }
body:not(.profile-page) #music .artist:nth-child(2) { --motion-delay: 70ms; }
body:not(.profile-page) #music .artist:nth-child(3) { --motion-delay: 130ms; }
body:not(.profile-page) #music .artist:nth-child(4) { --motion-delay: 190ms; }

/* Bassgawd: grounded, warm-red studio panels, with a confident but compact rise. */
.profile-page--bassgawd { --motion-duration: .76s; --motion-from-x: -10px; --motion-from-y: 12px; --motion-from-scale: .99; }
.profile-page--bassgawd .profile > .copy { --motion-delay: 110ms; }
.profile-page--bassgawd .detail-grid > *:nth-child(2) { --motion-delay: 70ms; }
.profile-page--bassgawd .detail-grid > *:nth-child(3) { --motion-delay: 140ms; }

/* reed.: a tiny sideways paper-settle, like a collage panel finding its place. */
.profile-page--reed { --motion-duration: .72s; --motion-from-x: 12px; --motion-from-y: 7px; --motion-from-scale: .995; --motion-from-rotate: .18deg; }
.profile-page--reed .profile > .copy { --motion-delay: 100ms; }
.profile-page--reed .appearance-card:nth-child(2) { --motion-delay: 70ms; }
.profile-page--reed .appearance-card:nth-child(3) { --motion-delay: 140ms; }
.profile-page--reed .photo-card:nth-child(2) { --motion-delay: 60ms; }
.profile-page--reed .photo-card:nth-child(3) { --motion-delay: 120ms; }

/* Hallways: a slower, quieter fade from the threshold; the playable scene is untouched. */
.profile-page--hallways { --motion-duration: .96s; --motion-from-x: 0px; --motion-from-y: 11px; --motion-from-scale: 1; --motion-ease: cubic-bezier(.2, .7, .2, 1); }
.profile-page--hallways .profile > .copy { --motion-delay: 150ms; }
.profile-page--hallways .release-card:nth-child(2) { --motion-delay: 110ms; }

/* GWALA YUNG: compact neon poster motion, without a looping glow. */
.profile-page--gwala { --motion-duration: .68s; --motion-from-x: 0px; --motion-from-y: 13px; --motion-from-scale: .985; }
.profile-page--gwala .profile > .copy { --motion-delay: 120ms; }

/* The intro auto-reveals as before; this is visual motion only and never starts media. */
@keyframes church-intro-mark {
  from { opacity: 0; transform: translate3d(0, 12px, 0) scale(.965); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes church-intro-border {
  from { opacity: 0; transform: scale(.985); }
  to { opacity: 1; transform: scale(1); }
}
#intro::before {
  animation: church-intro-border .9s var(--motion-settle) both;
}
.intro-image {
  animation: church-intro-mark 1s var(--motion-settle) both;
}
#intro.opening { transition: opacity .95s var(--motion-settle), transform .95s var(--motion-settle); }
body.intro-opening main { transition: opacity .95s var(--motion-settle); }

@media (prefers-reduced-motion: reduce) {
  [data-motion-reveal="pending"] {
    opacity: 1;
    translate: none;
    scale: none;
    rotate: none;
  }
  [data-motion-reveal="visible"],
  #intro::before,
  .intro-image {
    animation: none !important;
  }
}
