:root {
  color-scheme: dark;
  --ink: #0b0c0d;
  --carbon: #151719;
  --bone: #eeeae3;
  --fog: #aaa69f;
  --accent: #356dff;
  --line: rgba(238, 234, 227, 0.16);
  --panel: rgba(18, 22, 48, 0.1);
  --panel-strong: rgba(18, 22, 48, 0.1);
  --panel-line: rgba(239, 246, 255, 0.34);
  --header-height: 70px;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --max-width: 92rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.55;
  overflow-x: hidden;
}
.site-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--ink);
  pointer-events: none;
}
.site-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.site-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}
body > *:not(.site-background) { position: relative; z-index: 1; }
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.52'/%3E%3C/svg%3E");
}
button, input { font: inherit; }
strong { font-weight: 300; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
img { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--carbon); }

.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .75rem 1rem; background: var(--accent); color: var(--ink); }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--header-height);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.site-header.scrolled { background: var(--panel); border-color: transparent; backdrop-filter: blur(24px) saturate(1.28); }
.wordmark, .footer-wordmark { font-size: 1.25rem; font-weight: 300; letter-spacing: .08em; }
.header-actions { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.25rem); }
.site-header nav { display: flex; align-items: center; gap: clamp(1.35rem, 3vw, 2.75rem); font-size: 1.1rem; }
.site-header nav a, .nav-cta { transition: color .2s ease; }
.site-header nav a:hover, .nav-cta:hover { color: var(--accent); }
.nav-cta, .menu-button, .mobile-menu button, .footer-links button { padding: 0; border: 0; background: none; cursor: pointer; }
.nav-cta { border-bottom: 1px solid currentColor; padding-bottom: .2rem; }
.header-instagram { width: 1.35rem; height: 1.35rem; display: grid; place-items: center; color: var(--bone); transition: color .2s ease, transform .2s var(--ease); }
.header-instagram:hover { color: var(--accent); transform: translateY(-1px); }
.header-instagram svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; }
.header-instagram .instagram-dot { fill: currentColor; stroke: none; }
.menu-button { display: none; }

.hero {
  min-height: 100dvh;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--header-height) + 2rem) var(--gutter) 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: min(68rem, 88vw);
  padding: clamp(1.5rem, 4vw, 3.5rem);
  margin: 0;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .92);
}
.eyebrow { margin: 0 0 1.5rem; font-size: .78rem; font-weight: 300; letter-spacing: .16em; }
.hero h1 { max-width: none; margin: 0; font-size: clamp(4rem, 7.3vw, 8.2rem); font-weight: 300; letter-spacing: -.065em; line-height: .88; }
.hero h1 span { color: var(--bone); font-style: italic; font-weight: 600; letter-spacing: -.06em; padding-bottom: .08em; }
.hero-description { max-width: 44rem; margin: 2rem auto 0; color: var(--bone); font-size: clamp(1rem, 1.35vw, 1.2rem); }
.hero-description strong { color: #fff7fc; font-weight: 300; }
.hero-actions { margin-top: 2.25rem; display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; }
.button { min-height: 3.25rem; display: inline-flex; align-items: center; justify-content: center; padding: .85rem 1.35rem; border: 1px solid var(--bone); border-radius: 0; cursor: pointer; white-space: nowrap; transition: transform .2s var(--ease), background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(1px); }
.button-primary { background: var(--accent); border-color: var(--accent); color: var(--ink); font-weight: 300; }
.button-secondary { background: transparent; color: var(--bone); }

.image-slot { margin: 0; position: relative; }
.image-slot img { filter: saturate(.7) contrast(1.05); }
.image-slot::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.image-slot figcaption { margin-top: .65rem; color: var(--fog); font-size: .78rem; letter-spacing: .04em; }
.selected-work {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(6rem, 11vw, 10rem) var(--gutter);
}
.section-intro { width: fit-content; max-width: 42rem; margin: 0 auto clamp(3rem, 6vw, 5rem); padding: 0 0 1rem; text-align: center; }
.section-intro h2, .about h2 { margin: 0; font-size: clamp(3rem, 6vw, 6rem); line-height: .95; letter-spacing: -.05em; font-weight: 300; }
.section-intro h2, .process-kicker { position: relative; }
.section-intro h2::after, .process-kicker::after { content: ""; position: absolute; left: 2%; right: 2%; bottom: -.55rem; height: 2px; background: var(--bone); opacity: 0; transform: scaleX(0); transform-origin: left center; transition: transform .9s var(--ease), opacity .2s ease; }
.section-intro.underline-revealed h2::after, .process-kicker.underline-revealed::after { opacity: 1; transform: scaleX(1); }
.section-intro p { max-width: 30rem; margin: 1.25rem 0 0; color: var(--fog); font-size: 1.1rem; }
.work-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.track-list { counter-reset: tracks; aspect-ratio: 1 / 1; overflow-y: auto; overscroll-behavior: contain; padding: .5rem 1.5rem; background: var(--panel); box-shadow: 0 1.5rem 4rem rgba(5,2,11,.12); backdrop-filter: blur(26px) saturate(1.28); scrollbar-width: thin; scrollbar-color: rgba(238,234,227,.45) transparent; }
.track-row { position: relative; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) 4.25rem; gap: 1rem; align-items: center; min-height: 6rem; border-top: 1px solid rgba(255,255,255,.21); cursor: pointer; user-select: none; }
.track-row:last-child { border-bottom: 1px solid var(--line); }
.track-index { color: var(--fog); font-size: .8rem; }
.track-title { display: block; font-size: clamp(1.35rem, 2.2vw, 2.25rem); font-weight: 300; letter-spacing: -.025em; line-height: 1.05; }
.track-artist, .track-meta { display: block; color: var(--fog); font-size: .85rem; margin-top: .35rem; }
.track-play { width: 2.8rem; height: 2.8rem; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; background: rgba(14, 9, 23, .52); color: var(--bone); cursor: pointer; transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s var(--ease); }
.track-play::before { content: ""; width: 0; height: 0; margin-left: .18rem; border-top: .42rem solid transparent; border-bottom: .42rem solid transparent; border-left: .62rem solid currentColor; }
.track-row:hover .track-play, .track-row.active .track-play { border-color: var(--accent); background: var(--accent); color: var(--ink); }
.track-row:hover .track-play { transform: scale(1.06); }
.track-row.active .track-play::before { width: .62rem; height: .72rem; margin-left: 0; border: 0; background: linear-gradient(90deg, currentColor 0 34%, transparent 34% 66%, currentColor 66%); }
.track-row::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -1px; height: 2px; background: var(--accent); transition: right .35s var(--ease); }
.track-row:hover::after { right: 72%; }
.track-row.active::after { right: var(--track-progress, 100%); transition: none; }
.track-control { display: grid; justify-items: center; gap: .32rem; }
.track-time { min-width: max-content; color: var(--fog); font-size: .66rem; font-variant-numeric: tabular-nums; line-height: 1; }
.work-visual { position: sticky; top: calc(var(--header-height) + 2rem); }
.square-slot { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: rgba(18, 22, 48, .1); }
.work-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0; transition: opacity 1.15s var(--ease); }
.work-slide.is-active { opacity: 1; }

.process { height: 330vh; }
.process-sticky { position: sticky; top: 0; min-height: 100dvh; max-width: var(--max-width); margin: 0 auto; padding: calc(var(--header-height) + 2rem) var(--gutter) 2rem; display: grid; place-items: center; overflow: hidden; }
.process-kicker { position: absolute; top: calc(var(--header-height) + 2rem); left: 50%; width: fit-content; transform: translateX(-50%); padding: 0 0 1rem; color: var(--bone); font-size: clamp(3rem, 6vw, 6rem); font-weight: 300; letter-spacing: -.05em; line-height: .95; }
.process-stage { position: absolute; width: min(88rem, calc(100% - (var(--gutter) * 2))); padding: clamp(1.5rem, 4vw, 4rem); display: grid; grid-template-columns: minmax(0, .88fr) minmax(28rem, 1.12fr); gap: clamp(2rem, 6vw, 7rem); align-items: center; color: var(--bone); opacity: var(--stage-opacity, 0); pointer-events: none; transform: translateY(var(--stage-shift, 2rem)); }
.process-stage h2 { margin: 0; font-size: clamp(3.2rem, 7vw, 8rem); line-height: .9; letter-spacing: -.065em; font-weight: 300; opacity: var(--title-opacity, 0); transform: translateY(var(--title-shift, 2rem)); transition: opacity .08s linear, transform .08s linear; text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.process-stage p { margin: 0; padding: clamp(1.65rem, 3.25vw, 3rem); background: var(--panel-strong); box-shadow: 0 1.5rem 4rem rgba(5,2,11,.14); backdrop-filter: blur(28px) saturate(1.32); font-size: clamp(1.15rem, 1.7vw, 1.45rem); line-height: 1.6; text-shadow: 0 2px 14px rgba(0,0,0,.84); opacity: var(--copy-opacity, 0); transform: translateY(var(--copy-shift, 2rem)); transition: opacity .08s linear, transform .08s linear; }

.about {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(6rem, 9vw, 9rem) var(--gutter);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: stretch;
}
.portrait-slot { width: 100%; align-self: stretch; height: auto; overflow: hidden; }
.portrait-slot img { height: 100%; object-fit: cover; object-position: center; filter: saturate(.92) contrast(1.03); }
.about-copy { width: 100%; max-width: none; padding: clamp(1.5rem, 3vw, 3rem); background: var(--panel-strong); box-shadow: 0 1.5rem 4rem rgba(5,2,11,.14); backdrop-filter: blur(28px) saturate(1.32); text-shadow: 0 2px 14px rgba(0,0,0,.84); }
.about h2 { font-weight: 600; }
.about-copy > p { max-width: 42rem; color: #eee7ef; font-size: clamp(1rem, 1.4vw, 1.16rem); }
.about-copy > p:first-of-type { margin-top: 2.5rem; color: var(--bone); }
.capabilities { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; color: var(--fog); }
.capabilities span { text-align: center; }

.contact-cta { width: min(78rem, calc(100% - (var(--gutter) * 2))); min-height: 62dvh; margin: clamp(3rem, 7vw, 8rem) auto; padding: 6rem var(--gutter); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: var(--panel-strong); box-shadow: 0 1.5rem 4rem rgba(5,2,11,.14); backdrop-filter: blur(28px) saturate(1.32); text-shadow: 0 2px 22px rgba(0,0,0,.84); }
.contact-cta .contact-kicker { max-width: 18ch; margin: 0 0 1.3rem; color: var(--bone); font-size: clamp(2.1rem, 3.7vw, 4.25rem); line-height: .96; letter-spacing: -.052em; font-weight: 300; transform: translateY(-.55rem); }
.contact-cta h2 { max-width: 12ch; margin: 0; font-size: clamp(3.5rem, 7vw, 7.5rem); line-height: .94; letter-spacing: -.06em; font-weight: 500; }
.contact-cta .button { margin-top: 2.5rem; }

footer { max-width: var(--max-width); margin: 0 auto; padding: 3rem var(--gutter); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; background: var(--panel); color: var(--fog); font-size: .85rem; backdrop-filter: blur(26px) saturate(1.28); }
.footer-wordmark { color: var(--bone); }
.footer-links { justify-self: end; display: flex; gap: 1.5rem; }
.footer-links a:hover, .footer-links button:hover { color: var(--accent); }

.dialog-close { border: 0; background: transparent; color: var(--fog); cursor: pointer; }

.contact-dialog { width: min(62rem, calc(100% - 2rem)); height: min(90dvh, 48rem); padding: 0; border: 1px solid var(--line); border-radius: 0; background: var(--carbon); color: var(--bone); }
.contact-dialog::backdrop { background: rgba(4,5,6,.8); backdrop-filter: blur(8px); }
.dialog-close { position: absolute; right: 1.25rem; top: 1.25rem; }
.dialog-content { height: 100%; padding: 4rem 1rem 1rem; }
.typeform-embed, .typeform-embed > div { width: 100%; height: 100%; }
.dialog-content h2 { max-width: 9ch; margin: 0; font-size: clamp(3rem, 7vw, 5.5rem); letter-spacing: -.055em; line-height: .92; }
.dialog-content > p:not(.eyebrow) { max-width: 30rem; color: var(--fog); }
.form-placeholder { margin: 2rem 0 0; min-height: 10rem; padding: 1.5rem; display: flex; flex-direction: column; justify-content: center; gap: .4rem; border: 1px dashed rgba(238,234,227,.34); color: var(--fog); }
.form-placeholder strong { color: var(--bone); }

.mobile-menu { position: fixed; z-index: 39; inset: var(--header-height) 0 auto; padding: 1.5rem var(--gutter) 2rem; background: var(--panel-strong); backdrop-filter: blur(28px) saturate(1.32); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a, .mobile-menu button { display: block; width: 100%; padding: .85rem 0; text-align: left; font-size: 1.2rem; }

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

@media (max-width: 900px) {
  .site-header nav { display: none; }
  .menu-button { display: block; }
  .hero { padding-top: calc(var(--header-height) + 2.5rem); padding-bottom: 4rem; }
  .hero-copy { width: min(43rem, 92vw); margin-left: 0; }
  .hero h1 { font-size: clamp(3.5rem, 13vw, 6.2rem); }
  .work-layout { grid-template-columns: 1fr; }
  .work-visual { position: static; }
  .process-stage { grid-template-columns: 1fr; gap: 2rem; }
  .about { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; }
  footer { grid-template-columns: 1fr auto; }
  footer > p { display: none; }
}

@media (max-width: 680px) {
  :root { --header-height: 64px; --gutter: 1.1rem; }
  .site-background video { object-position: 58% center; }
  .site-background::after { background: transparent; }
  .hero { min-height: 100dvh; }
  .hero-copy { width: 100%; padding: 1.25rem; }
  .hero h1 { max-width: 9ch; }
  .hero-description { max-width: 25rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .section-intro { margin-bottom: 2rem; }
  .track-list { aspect-ratio: auto; height: min(68vh, 40rem); }
  .track-row { grid-template-columns: 1.8rem minmax(0,1fr) 4.25rem; min-height: 6rem; }
  .work-visual { grid-template-columns: 1fr; }
  .square-slot { width: 100%; }
  .process { height: 390vh; }
  .process-sticky { padding-top: calc(var(--header-height) + 3rem); }
  .process-kicker { top: calc(var(--header-height) + .9rem); font-size: clamp(2.5rem, 12vw, 3.65rem); }
  .process-stage { top: calc(var(--header-height) + 5.75rem); bottom: 1.5rem; width: calc(100% - (var(--gutter) * 2)); padding: 0; align-content: center; }
  .process-stage h2 { font-size: clamp(2.8rem, 11vw, 4.25rem); }
  .process-stage p { font-size: 1.1rem; }
  .about { grid-template-columns: 1fr; justify-items: center; }
  .portrait-slot, .about-copy { width: min(100%, 34rem); margin: 0; }
  .portrait-slot { aspect-ratio: 4 / 5; }
  .capabilities { grid-template-columns: 1fr 1fr; }
  .contact-cta { width: calc(100% - (var(--gutter) * 2)); min-height: 64dvh; margin: 3rem auto; align-items: flex-start; text-align: left; }
  .contact-cta .contact-kicker { max-width: 11ch; margin-bottom: 1.15rem; font-size: clamp(2.15rem, 11vw, 3.7rem); }
  .contact-cta h2 { max-width: 9ch; }
  .contact-cta .button { width: auto; }
  footer { display: flex; flex-direction: column; align-items: flex-start; }
  .footer-links { justify-self: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .process { height: auto; padding: 5rem var(--gutter); }
  .process-sticky { position: static; min-height: 0; display: block; padding: 0; overflow: visible; }
  .process-kicker { position: static; display: inline-block; margin-bottom: 2rem; }
  .process-stage { position: static; width: 100%; margin: 0 0 4rem; padding: 0; display: grid; grid-template-columns: 1fr; opacity: 1; transform: none; }
  .process-stage h2, .process-stage p { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { opacity: 0; transform: translateY(18px); animation: reveal .75s var(--ease) forwards; }
  .hero-copy > *:nth-child(2) { animation-delay: .08s; }
  .hero-copy > *:nth-child(3) { animation-delay: .16s; }
  .hero-copy > *:nth-child(4) { animation-delay: .24s; }
  .hero-media { opacity: 0; transform: translateY(20px); animation: reveal .9s .18s var(--ease) forwards; }
  @keyframes reveal { to { opacity: 1; transform: translateY(0); } }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
