/* Reflective surfaces extend the existing blue / orange / white palette. */
:root {
  --silver-light: #f6fcff;
  --silver-mid: #c1d8e3;
  --silver-dark: #6c8797;
  --chrome-surface: linear-gradient(145deg, #fff 0%, #e9f3f7 22%, #a9c4d3 42%, #f8fcff 49%, #7b9aad 51%, #d6e7ef 67%, #f8fcff 85%, #b9d0dc 100%);
}

.header-listen {
  background: var(--chrome-surface);
  justify-content: center;
  gap: 9px;
  white-space: nowrap;
  border-color: var(--silver-dark);
  box-shadow: inset 0 1px 1px #fff, inset 0 -2px 2px #7896a355, 0 3px 6px #173f5115;
}
.header-listen svg { width: 15px; height: 15px; flex: 0 0 auto; fill: currentColor; }
.header-listen:hover { color: var(--ink); background: var(--chrome-surface); box-shadow: inset 0 1px 2px #fff, 0 5px 12px #173f512b; }
.ticker {
  background: #fff;
  border: 0;
  box-shadow: none;
}
.dark-pill { border-color: var(--silver-mid); box-shadow: inset 0 1px 1px #ffffff55, 0 1px 0 var(--silver-dark); }
.story-window {
  border-color: var(--silver-mid);
  box-shadow: 1px 1px 0 var(--silver-light), 3px 4px 0 var(--silver-dark), 12px 16px 20px #173f5124;
}
.window-top { color: var(--ink); background: var(--chrome-surface); border-bottom-color: var(--silver-dark); }
.window-bottom { border-top: 1px solid var(--silver-mid); box-shadow: inset 0 1px #ffffff33; }
.window-bottom button { color: var(--ink); background: var(--chrome-surface); border-color: var(--silver-dark); box-shadow: inset 0 1px #fff; }
.release-open { background: #fff; border: 1px solid var(--silver-dark); box-shadow: inset 0 1px #fff, 0 2px 4px #173f5126; }
.featured-art>img { height: auto; }
.social-links>a>span:last-child {
  display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 50%; border: 1px solid var(--silver-dark);
  background: var(--chrome-surface); box-shadow: inset 0 1px #fff, 0 3px 5px #173f5112;
  font-size: 26px;
}
.chrome-sculpture { width: 170px; height: 170px; flex: 0 0 170px; pointer-events: none; }
.chrome-sculpture canvas { display: block; width: 100%; height: 100%; }
.chrome-sculpture[hidden] { display: none; }
.connect-top { position: relative; }
.connect-sculpture { position: absolute; right: 31%; top: -48px; width: 105px; height: 105px; }
.scroll-progress { position: fixed; top: 0; left: 0; z-index: 10; width: 100%; height: 3px; pointer-events: none; transform-origin: left; transform: scaleX(var(--page-progress, 0)); background: linear-gradient(90deg,var(--sky-deep),var(--pink),var(--orange)); box-shadow: 0 1px 3px #173f5130; }
.scroll-reveal { opacity: 0; translate: 0 26px; transition: opacity .65s var(--ease), translate .8s var(--ease); transition-delay: var(--reveal-delay, 0ms); }
.scroll-reveal.is-revealed { opacity: 1; translate: 0 0; }
.scroll-depth { translate: 0 var(--depth-y, 0px); rotate: var(--depth-angle, 0deg); }
.music-sculpture { align-self: center; margin: 0 15px -15px; }
.story-spark.chrome-sculpture { width: 145px; height: 145px; right: -30px; bottom: -20px; transform: none; filter: drop-shadow(0 10px 7px #173f5120); }

@media (min-width: 701px) and (max-width: 1050px) {
  .music-sculpture { width: 125px; height: 125px; flex-basis: 125px; margin: 0 -10px; }
}
@media (max-width: 700px) {
  .section-heading { position: relative; display: block; }
  .section-heading h2 { font-size: 56px; }
  .section-heading>p { max-width: 230px; padding-top: 20px; }
  .music-sculpture { position: absolute; right: 0; top: 2px; width: 76px; height: 76px; margin: 0; }
  .story-spark.chrome-sculpture { width: 110px; height: 110px; right: -12px; bottom: -13px; }
  .social-links>a>span:last-child { width: 40px; height: 40px; font-size: 23px; }
  .connect-sculpture { right: 0; top: -36px; width: 74px; height: 74px; }
}
@media (prefers-reduced-motion: reduce) {
  .chrome-sculpture { transform: none; }
  .scroll-reveal,.scroll-depth { opacity: 1; translate: none; rotate: none; transition: none; }
}

/* A wordmark-led opening: original grain, pastel pearl, and silver objects. */
:root {
  --pearl-lavender: #e0d8f0;
  --pearl-pink: #f1dcec;
  --pearl-blue: #d2e4f5;
}
.hero {
  display: block;
  min-height: 620px;
  height: 100svh;
  max-height: none;
  margin: -16px -16px 0;
  border-radius: 0;
  background: #ffd0b2;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: radial-gradient(ellipse at 22% 27%, #fda16f 0%, #fda16f00 48%), radial-gradient(ellipse at 76% 73%, #f9b8d9 0%, #f9b8d900 48%), linear-gradient(#abd1f9, #abd1f9), url('./assets/pearl-grain.webp') center / cover;
  background-blend-mode: color;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, #fff9 0%, #fff0 22%, #fff0 78%, #fff5 100%);
  box-shadow: none;
  border-radius: inherit;
  pointer-events: none;
}
.site-header { height: 92px; border-bottom-color: #173f512b; }
.hero .sr-only { margin: 0; }
.logo-stage {
  position: absolute;
  inset: 92px 0 40px;
  width: auto;
  margin: 0;
  padding: 0;
  min-height: 0;
  background: transparent;
  border: 0;
  border-radius: 22px;
  cursor: grab;
  overflow: hidden;
}
.logo-stage:active { cursor: grabbing; }
.logo-stage:focus-visible { outline-offset: -12px; }
.logo-shadow {
  top: calc(50% + 128px);
  bottom: auto;
  left: 34%;
  width: 32%;
  height: 28px;
  opacity: .16;
  background: #645a76;
  filter: blur(25px);
}
.logo-fallback { width: min(73%, 1150px); filter: drop-shadow(2px 3px 0 #9caebc) drop-shadow(5px 7px 0 #677f92); }
.hero-next {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: min(calc(50% + 190px), calc(100% - 118px));
  width: 72px;
  height: 72px;
  transform: translateX(-50%);
  border-radius: 24px;
  display: grid;
  place-items: center;
  transition: translate .25s var(--ease);
}
.hero-next:hover { translate: 0 4px; }
.hero-next:focus-visible { outline-color: var(--ink); outline-offset: 0; }
.hero-arrow.chrome-sculpture { position: relative; width: 100%; height: 100%; filter: drop-shadow(0 6px 5px #173f5124); }
.hero-arrow-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-arrow.is-ready .hero-arrow-fallback { opacity: 0; }
.story {
  position: relative;
  isolation: isolate;
  background: #eeebf7;
  border: 1px solid #d7cde2;
}
.story::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('./assets/pearl-grain.webp') center / cover;
  pointer-events: none;
}
.story::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, #fff9fb18, #fff9fba8);
  pointer-events: none;
}
.story-window { border-color: #e7e9ee; box-shadow: 1px 1px 0 #fff, 3px 4px 0 #8d94a5, 12px 16px 25px #51426c26; }
@media (max-width: 700px) {
  .hero { height: 100svh; min-height: 560px; max-height: none; margin: -8px -8px 0; border-radius: 0; }
  .header-listen { display: none; }
  .hero-next { top: min(calc(50% + 130px), calc(100% - 108px)); width: 64px; height: 64px; }
  .site-header { height: 82px; }
  .logo-stage { inset: 82px 0 40px; }
  .logo-fallback { width: 84%; }
  .logo-shadow { top: calc(50% + 85px); left: 19%; width: 62%; height: 18px; filter: blur(20px); }
  .hero::before { background-position: 45% center; }
  .story::after { background: linear-gradient(180deg, #fff9fb10, #fff9fba8); }
}
@media (max-width: 380px) {
  .site-header { margin: 0 16px; gap: 8px; }
  .brand img { width: 84px; }
  .site-header nav { gap: 10px; font-size: 10px; white-space: nowrap; }
}

/* The shader reshapes its color field in place; static texture is the fallback. */
.pearl-field {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
}
.pearl-field.is-ready { opacity: 1; }

/* Restore the original orange/pink release card against a clean white section. */
.music { background: #fff; padding-top: 48px; }
.art-sticker { text-align: left; transition: transform .2s var(--ease), box-shadow .2s; }
.art-sticker:hover { transform: rotate(5deg) translateY(-3px); box-shadow: 5px 6px 0 var(--ink); }
@media (max-width: 700px) {
  .music { padding-top: 32px; }
  .release.scroll-reveal { translate: none; }
  .music-sculpture { width: clamp(74px, 22vw, 108px); height: clamp(74px, 22vw, 108px); top: 4px; }
}
@media (max-width: 380px) {
  .music .section-heading h2 { font-size: 48px; }
}

/* Release metadata belongs with the section heading. */
.release-date { margin-top: 18px; font-size: 13px; color: var(--muted); }
.featured-info h3 { margin-top: 0; }
.art-sticker { padding-right: 30px; }

/* A quieter hierarchy and balanced release composition. */
.ticker { color: #000; border-top: 1px solid #000; border-bottom: 1px solid #000; }
.ticker-reference { opacity: 1; }
.music .section-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.music-sculpture { position: static; justify-self: center; margin: 0; }
.featured-info { position: relative; }
.featured-info .art-sticker { right: 19px; top: 16px; bottom: auto; }
.connect-main { padding-top: 25px; }
@media (max-width: 700px) {
  .featured-info .art-sticker { right: 21px; top: 14px; bottom: auto; }
  .music .section-heading { gap: 16px; }
  .music-sculpture { top: auto; right: auto; }
}

/* Let the wordmark occupy the full opening without navigation. */
.logo-stage { inset: 0; }

/* Keep the release title on one line with a left-aligned date. */
.music .section-heading { grid-template-columns: minmax(0, 1fr) clamp(64px, 18vw, 200px); }
.music .section-heading h2 { font-size: clamp(32px, 10vw, 100px); white-space: nowrap; }
.release-date { text-align: left; }

.music .music-sculpture { max-width: 100%; height: auto; aspect-ratio: 1; }

@media (max-width: 380px) { .music .section-heading { gap: 8px; } }

/* Chrome accents overlap the release without clipping the card. */
.music .section-heading { display: block; }
.release-frame { position: relative; isolation: isolate; }
.release-frame .music-sculpture { position: absolute; z-index: 3; right: 12px; top: -84px; width: 136px; height: 136px; max-width: none; }
.music-heart { position: absolute; z-index: 3; left: 12px; bottom: -68px; width: 120px; height: 120px; }
.music .catalog-heading { margin-top: 110px; }
.story { background: #abd1f9; }
.story::before { background: radial-gradient(ellipse at 22% 27%, #fda16f, transparent 48%), radial-gradient(ellipse at 76% 73%, #f9b8d9, transparent 48%), #abd1f9; }
.story::after { background: none; }
@media (max-width: 700px) {
  .release-frame .music-sculpture { right: 4px; top: -64px; width: 100px; height: 100px; }
  .music-heart { left: 4px; bottom: -52px; width: 92px; height: 92px; }
  .music .catalog-heading { margin-top: 90px; }
}

.about-photo { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 53%; }

/* Smaller greeting and social links using the existing pill-button language. */
.story-copy h2 .serif-word { display: inline-block; font-size: .62em; letter-spacing: -.045em; }
.connect-main { display: block; }
.social-links { display: flex; flex-wrap: wrap; gap: 16px; }
.social-links > .social-pill { display: inline-flex; align-items: center; gap: 32px; padding: 14px 23px; border: 1px solid var(--silver-dark); border-radius: 99px; background: var(--chrome-surface); box-shadow: inset 0 1px 1px #fff, 0 3px 6px #173f5115; font-size: 15px; font-weight: 600; letter-spacing: 0; }
.social-links > .social-pill > span:last-child { display: inline; width: auto; height: auto; border: 0; border-radius: 0; background: none; box-shadow: none; font-size: 24px; }
.social-links > .social-pill:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.social-links small { font-size: 10px; }
@media (max-width: 700px) {
  .social-links { flex-direction: column; align-items: stretch; }
  .social-links > .social-pill { justify-content: space-between; }
  .footer-bottom > span:last-child { grid-column: 1 / -1; text-align: left; }
}

/* Simple social buttons and a balanced three-part footer. */
.connect-main { padding-top: 55px; }
.social-links > .social-pill { background: #fff; border: 1px solid var(--ink); border-radius: 12px; box-shadow: none; padding: 18px 24px; min-width: 220px; transition: background .2s, transform .2s; }
.social-links > .social-pill:hover { background: var(--pearl-pink); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); transform: translate(-2px, -2px); }
.social-links > .social-pill > span:last-child { font-size: 22px; }
.social-links small { margin-top: 5px; color: var(--muted); }
.footer-bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 28px 0 8px; }
.footer-bottom > a:first-child { justify-self: start; }
.footer-bottom > a:last-of-type { justify-self: center; text-align: center; padding: 12px 0; }
.footer-bottom > span:last-child { justify-self: end; text-align: right; grid-column: auto; }
@media (max-width: 700px) {
  .social-links { gap: 12px; }
  .social-links > .social-pill { min-width: 0; }
  .footer-bottom { grid-template-columns: 1fr; justify-items: center; gap: 16px; padding-top: 28px; }
  .footer-bottom > a:first-child, .footer-bottom > a:last-of-type, .footer-bottom > span:last-child { justify-self: center; text-align: center; grid-column: 1; }
  .footer-bottom > a:last-of-type { grid-row: 1; font-size: 9px; }
  .footer-bottom > a:first-child { grid-row: 2; }
  .footer-bottom > span:last-child { grid-row: 3; font-size: 8px; }
}

/* Theme-colored social buttons and a compact footer signature. */
.connect { background: #fbe8ee; border-radius: 24px; margin-top: 24px; }
.social-links > .social-pill:first-child { background: #f3b6d0; }
.social-links > .social-pill:last-child { background: #abd1f9; }
.social-links > .social-pill:hover { background: #fda16f; }
.footer-bottom { border-top-color: #173f5140; }
@media (max-width: 700px) {
  .connect { border-radius: 20px; }
  .footer-bottom { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .footer-bottom > a:last-of-type { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
  .footer-bottom > a:first-child { grid-column: 1; grid-row: 2; justify-self: start; }
  .footer-bottom > span:last-child { grid-column: 2; grid-row: 2; justify-self: end; text-align: right; }
}

/* A white footer with the return link above its divider. */
.connect { background: #fff; }
.footer-top-link { display: flex; justify-content: center; padding: 0 0 24px; font-size: 9px; font-weight: 600; letter-spacing: .08em; }
.footer-top-link a { padding: 12px 8px; }
.footer-top-link span { display: inline-block; margin-left: 10px; font-size: 15px; transition: transform .2s; }
.footer-top-link a:hover span { transform: translateY(-3px); }
.footer-bottom { grid-template-columns: 1fr 1fr; }
.footer-bottom > a:first-child { justify-self: start; text-align: left; padding: 0; grid-column: 1; grid-row: 1; }
.footer-bottom > span:last-child { justify-self: end; text-align: right; grid-column: 2; grid-row: 1; }

/* Match the latest-release card to the about section's outer width. */
.music { padding-left: 0; padding-right: 0; }
.music > .section-heading, .music > .catalog-heading, .music > .release-grid { margin-left: var(--gutter); margin-right: var(--gutter); }
@media (max-width: 700px) {
  .music > .section-heading, .music > .catalog-heading, .music > .release-grid { margin-left: 20px; margin-right: 20px; }
}

/* Desktop release action and a balanced, centered social section. */
@media (min-width: 701px) {
  .featured-info { padding-bottom: 170px; }
  .featured-info .art-sticker { top: auto; bottom: 32px; right: 32px; font-size: 32px; padding: 20px 42px 20px 22px; }
  .featured-info .art-sticker > span { font-size: 26px; top: 12px; right: 12px; }
  .connect-top { display: flex; justify-content: center; align-items: center; height: 90px; }
  .connect-sculpture { position: static; width: 100px; height: 100px; flex: 0 0 100px; }
  .connect-main { padding: 30px 0 48px; }
  .social-links { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 740px; margin: 0 auto; }
  .social-links > .social-pill { justify-content: space-between; width: 100%; min-width: 0; }
}

/* Follow Safari's expanding viewport instead of its smallest toolbar state. */
@media (max-width: 700px) {
  html { background: #abd1f9; }
  .hero {
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
  }
}

/* The arrow joins the wordmark entrance after the loader releases the scene. */
html.is-loading .hero-next { opacity: 0; }
html.landing-entered .hero-next { animation: hero-arrow-enter .85s .4s cubic-bezier(.22,1,.36,1) both; }
@keyframes hero-arrow-enter {
  from { opacity: 0; transform: translateX(-50%) translateY(28px) rotateY(-65deg) scale(.72); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) rotateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  html.landing-entered .hero-next { animation: none; opacity: 1; }
}
