:root[data-theme="studio"] {
  --studio-ink: #080f18;
  --studio-surface: #111e2c;
  --studio-panel: #172637;
  --studio-paper: #f3efe6;
  --studio-accent: #d2be95;
  --studio-copper: #9c8664;
  --studio-muted: #aab5c1;
  --studio-line: rgba(190, 207, 222, .14);
  --studio-ease: cubic-bezier(.2, .75, .25, 1);
  background: var(--studio-ink);
  color-scheme: dark;
}

body, #root > div { background: var(--studio-ink); }
::selection { color: #101722; background: var(--studio-accent); }

#root :is(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--studio-accent);
  outline-offset: 4px;
}

#root header {
  padding-block: 13px;
  background: rgba(8, 15, 24, .93);
  border-bottom: 1px solid var(--studio-line);
  box-shadow: 0 12px 44px #06070a55;
  backdrop-filter: blur(18px) saturate(135%);
}

#root header nav a {
  position: relative;
  padding-block: 9px;
}

#root header nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--studio-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--studio-ease);
}

#root header nav a:is(:hover, :focus-visible, [data-studio-current])::after {
  transform: scaleX(1);
}

#root header nav a[data-studio-current] { color: var(--studio-accent); }

@supports (animation-timeline: scroll()) {
  #root header::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 2px;
    content: "";
    pointer-events: none;
    background: linear-gradient(90deg, #8c795b, #d2be95);
    box-shadow: 0 0 12px #c9b78f44;
    transform: scaleX(0);
    transform-origin: left;
    animation: studio-progress linear both;
    animation-timeline: scroll(root block);
  }
}

@keyframes studio-progress { to { transform: scaleX(1); } }

#home {
  min-height: max(740px, 100svh);
  isolation: isolate;
  padding-block: clamp(112px, 15vh, 164px) 82px;
  background:
    radial-gradient(ellipse at 88% 31%, #37506464 0%, transparent 47%),
    radial-gradient(ellipse at 14% 68%, #253c554f 0%, transparent 58%),
    #0b1521;
}

#home::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(#c4d4e508 1px, transparent 1px),
    linear-gradient(90deg, #c4d4e508 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(black, black 55%, transparent 98%);
}

#home::after {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 56px;
  content: "";
  pointer-events: none;
  background: linear-gradient(transparent, var(--studio-ink));
}

#home > canvas {
  opacity: .6;
  mask-image: linear-gradient(transparent, black 22%, black 88%, transparent);
}

#home > div:last-child > div { gap: clamp(35px, 5vw, 94px); }
#home h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(3.05rem, 15.7vw, 11rem);
  letter-spacing: -.068em;
  margin-bottom: clamp(22px, 3vw, 42px);
  line-height: .88;
}

#home h1 > span {
  padding-right: .065em;
  background-image: linear-gradient(171deg, #faf7ef 18%, #eee7da 51%, #b9aa8f 100%);
  filter: drop-shadow(0 12px 44px #d5c4a214);
}

#home .studio-copy > :first-child { margin-bottom: clamp(24px, 4vw, 48px); }
#home .studio-copy > div:has(+ p) {
  color: var(--studio-paper);
  max-width: 100%;
}

#home .studio-copy > p {
  max-width: 37ch;
  color: #c6ced6;
  font-size: clamp(1.02rem, 1.6vw, 1.23rem);
  margin-bottom: clamp(26px, 4vw, 42px);
}

#home .studio-copy > div:has(> a[href="#work"]) {
  margin-bottom: 28px;
}

#home a:is([href="#work"], [href="#contact"]),
#contact a:is([href="#contact-form"], [href^="https://wa.me"]) {
  border-radius: 8px;
  transition: background-color .25s, border-color .25s, box-shadow .25s,
    translate .35s var(--studio-ease);
}

#home a[href="#work"], #contact a[href="#contact-form"] {
  color: #111924;
  background: linear-gradient(110deg, #e5d7ba, #c4ae82);
  border-color: #f2e7d2a0;
  box-shadow: 0 8px 28px #b4a17c1a, inset 0 1px 0 #fff5dfbf;
}

#home a[href="#contact"] {
  background: #142131;
  border-color: #bccbd533;
}

#home .studio-copy > div:has(> a[aria-label="Spotify"]) { margin-bottom: 30px; }
#home .studio-copy > div:last-child { border-top-color: var(--studio-line); }
#home .studio-portrait-shell { isolation: isolate; }

.studio-portrait {
  --light-x: 56%;
  --light-y: 23%;
  border-radius: 20px;
  border-color: #c9b78f4a;
  box-shadow: 0 30px 85px #07080bbb, 0 0 65px #c9b78f12;
}

.studio-portrait::after {
  position: absolute;
  z-index: 15;
  inset: 0;
  border-radius: inherit;
  content: "";
  pointer-events: none;
  background: radial-gradient(ellipse at var(--light-x) var(--light-y), #e8ddc320, transparent 56%);
  box-shadow: inset 0 0 0 1px #f6eddc16, inset 0 -70px 90px #0b192b52;
  mix-blend-mode: screen;
}

.studio-portrait img {
  filter: saturate(.70) contrast(1.06);
  transition: scale .8s var(--studio-ease);
}

#home .studio-portrait-shell > .vinyl-disc {
  width: min(65%, 298px);
  height: auto;
  aspect-ratio: 1;
  top: 8%;
  right: -12%;
  opacity: .66;
  background-image: repeating-radial-gradient(circle, #0e1926 0 5px, #7e715a 6px, #1c2938 7px 9px);
  box-shadow: 0 12px 35px #0008;
}

#root section[id]:not(#home) {
  padding-block: clamp(69px, 8vw, 120px);
  scroll-margin-top: 58px;
  border-top: 1px solid var(--studio-line);
}

#root :is(#about, #audio, #credits, #testimonials, #contact) {
  background: radial-gradient(ellipse at 84% 10%, #263d5140, transparent 55%), var(--studio-ink);
}

#root :is(#work, #services, #achievements) {
  background: radial-gradient(ellipse at 15% 0, #263e5550, transparent 49%), #0d1825;
}

#root section h2 {
  color: var(--studio-paper);
  font-size: clamp(2.08rem, 5.35vw, 5.35rem);
  letter-spacing: -.062em;
  line-height: .94;
  text-wrap: balance;
}

#root section h2 + p, #root section .studio-section-lead > p {
  color: var(--studio-muted);
  font-weight: 400;
}

#root section h2 span[class*="bg-clip-text"] {
  background-image: linear-gradient(110deg, #f1e5cb, #bca77e);
}

#root :is(#work, #services, #testimonials) article,
#root :is(#audio, #about, #contact) .glass-panel,
#root :is(#credits, #achievements) .studio-tile {
  border-radius: 16px;
  background: linear-gradient(145deg, var(--studio-panel), #0d1825 72%);
  border-color: var(--studio-line);
  box-shadow: 0 18px 48px #06070b42;
}

#root #services article:last-child {
  background: radial-gradient(ellipse at 90% 0, #57625440, transparent 65%), #142231;
  border-color: #c9b78f65;
  scale: 1;
}

#root #work article {
  transition: translate .45s var(--studio-ease), border-color .35s, box-shadow .35s;
  transform: none;
}

#root #work article img {
  transition: scale .65s var(--studio-ease), filter .55s;
  transform: none;
}

#root #work article a {
  transition: color .22s, background-color .22s, border-color .22s;
}

#root #work button {
  border-radius: 8px;
  transition: background-color .25s, box-shadow .25s, border-color .25s;
}

#root #work button[class*="from-gold"] {
  background-image: linear-gradient(115deg, #e5d7ba, #c4ae82);
  box-shadow: 0 5px 20px #c9b78f18;
}

#root #audio .glass-panel { border-color: #b8a47d54; }
#root footer { background: #070e17; border-top-color: var(--studio-line); }

@media (hover: hover) and (pointer: fine) {
  #home a:is([href="#work"], [href="#contact"]):hover,
  #contact a[href="#contact-form"]:hover {
    translate: 0 -3px;
    box-shadow: 0 12px 30px #c9b78f26;
  }

  .studio-portrait-shell:hover img { scale: 1.035; }
  #root #work article:hover {
    translate: 0 -7px;
    border-color: #c9b78f80;
    box-shadow: 0 22px 54px #07080ab3;
  }

  #root #work article:hover img { scale: 1.065; }
}

@media (min-width: 1024px) {
  #home > div:last-child > div {
    grid-template-columns: minmax(0, 1.13fr) minmax(0, .87fr);
  }

  #home > div:last-child > div > div { grid-column: auto; }
  #home h1 { font-size: clamp(5rem, 9.75vw, 10.75rem); }
  #home .studio-portrait-shell { width: 94%; }
}

@media (max-width: 640px) {
  #home { padding-block: 96px 59px; }
  #home .studio-copy > :first-child { margin-bottom: 22px; }
  #home .studio-copy > div:has(+ p) { margin-bottom: 17px; }
  #home .studio-copy > p { margin-bottom: 22px; }
  #home .studio-copy > div:has(> a[href="#work"]) { gap: 9px; }
  #home .studio-copy > div:has(> a[aria-label="Spotify"]) { margin-bottom: 20px; }
  #home .studio-copy > div:last-child { gap: 10px; padding-top: 18px; }
  #home .studio-copy > div:last-child > div { gap: 8px 12px; }
  #home .studio-portrait-shell { max-width: 100%; }
  #home .studio-portrait { border-radius: 16px; }
  #root header { padding-block: 11px; }
  #root section h2 { font-size: clamp(1.6rem, 8vw, 2.9rem); overflow-wrap: anywhere; }
  #root #work button { letter-spacing: .015em; }
  #root #services article { padding: 25px; }
  #root #services article h3 { font-size: clamp(1.125rem, 4.8vw, 1.5rem); overflow-wrap: anywhere; }
}

@media (max-width: 374px) {
  #home h1 { font-size: 14.7vw; }
}

@keyframes studio-rise {
  from { opacity: .1; translate: 0 22px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes studio-title {
  from { opacity: .2; translate: 0 24px; clip-path: inset(0 0 96% 0); }
  to { opacity: 1; translate: 0 0; clip-path: inset(-35% -20% -70% -20%); }
}

@media (prefers-reduced-motion: no-preference) {
  .studio-arrive {
    animation: studio-rise .7s var(--studio-ease) var(--studio-delay, 0ms) backwards;
  }

  #home .studio-title-arrive {
    animation: studio-title .92s var(--studio-ease) 100ms backwards;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-theme="studio"] { scroll-behavior: auto; }
  #home > canvas { display: none; }
  #root *, #root *::before, #root *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
