/* Peak Attack Studios — shared styles */
:root {
  color-scheme: dark;
  --bg: #000;
  --ink: #edebe6;
  --muted: #8e8b85;
  --faint: #5a5854;
  --line: #262523;
  --field: #141413;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* Labels / eyebrow type */
.label {
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: rgba(0,0,0,.88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom-color: var(--line); }
.site-header .wrap { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: none; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 36px); }
.nav a, .nav button {
  background: none; border: 0; padding: 6px 0; cursor: pointer; color: var(--ink);
  text-decoration: none; font: inherit;
}
.nav .label { font-size: 11px; }
.nav a:not(.ig)::after, .nav button::after {
  content: ""; display: block; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.nav a:hover::after, .nav button:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .ig { display: inline-flex; padding: 4px; opacity: .9; transition: opacity .2s; }
.nav .ig:hover { opacity: 1; }
.nav .ig svg { width: 18px; height: 18px; }

@media (max-width: 480px) {
  :root { --header-h: 60px; }
  .brand img { height: 28px; }
  .nav { gap: 14px; }
  .nav .label { font-size: 10px; letter-spacing: .16em; }
}

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--header-h) + clamp(40px, 8vw, 96px)); text-align: center; }
.hero-logo { width: min(560px, 78vw); margin-inline: auto; height: auto; }
.hero-tag { margin-top: clamp(20px, 3vw, 32px); color: var(--muted); }
.hero-photo {
  margin-top: clamp(40px, 6vw, 72px); position: relative;
}
.hero-photo img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-photo::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 30%;
  background: linear-gradient(to bottom, rgba(0,0,0,0), #000);
  pointer-events: none;
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 10vw, 128px); }
.section-head { text-align: center; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { margin: 0; font-weight: 500; }
.section-head .rule { width: 36px; height: 1px; background: var(--faint); margin: 18px auto 0; }
[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

/* ---------- Discography grid ---------- */
.disco { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3.4vw, 44px) clamp(16px, 2.4vw, 32px); }
@media (max-width: 960px) { .disco { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .disco { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.release { text-decoration: none; display: flex; flex-direction: column; gap: 14px; }
.cover { position: relative; overflow: hidden; aspect-ratio: 1 / 1; background: var(--field); }
.cover img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1); transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.35) 28%, rgba(0,0,0,0) 55%);
  opacity: 0; transition: opacity .45s ease;
}
.cover .listen {
  position: absolute; left: 0; right: 0; bottom: 18px; z-index: 1; text-align: center;
  font-size: 12px; letter-spacing: .32em; color: #fff;
  opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .45s ease;
}
.release:hover .cover img, .release:focus-visible .cover img { transform: scale(1.07); }
.release:hover .cover::after, .release:focus-visible .cover::after,
.release:hover .listen, .release:focus-visible .listen { opacity: 1; transform: none; }
.release:focus-visible { outline: none; }
.release:focus-visible .cover { outline: 1px solid var(--ink); outline-offset: 4px; }

.meta { text-align: center; display: grid; gap: 2px; }
.meta .band { font-weight: 600; font-stretch: 108%; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.meta .album { color: var(--muted); font-size: 14px; line-height: 1.4; }

/* ---------- Clients ---------- */
.clients { max-width: 980px; margin-inline: auto; text-align: center; }
.clients + .clients { margin-top: clamp(48px, 6vw, 72px); }
.clients h3 { margin: 0 0 22px; color: var(--muted); font-weight: 500; }
.dotlist { margin: 0; padding: 0; list-style: none; font-size: 15px; line-height: 2.1; color: var(--ink); text-wrap: balance; }
.dotlist li { display: inline; }
@media (min-width: 641px) { .dotlist li { white-space: nowrap; } }
.dotlist li:not(:last-child)::after { content: "·"; color: var(--faint); margin-inline: .7em; }
.dotlist a { text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.dotlist a:hover { border-bottom-color: var(--muted); }
.dotlist small { color: var(--muted); font-size: .78em; letter-spacing: .06em; margin-left: .3em; }

/* ---------- Testimonials ---------- */
.quotes { max-width: 820px; margin-inline: auto; display: grid; text-align: center; }
.quote {
  grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden;
  transition: opacity 1.1s ease, visibility 0s linear 1.1s;
  display: flex; flex-direction: column; justify-content: center; gap: 24px;
}
.quote.is-active { opacity: 1; visibility: visible; transition: opacity 1.1s ease, visibility 0s; }
.quote p {
  margin: 0; font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(20px, 2.4vw, 28px); line-height: 1.45; text-wrap: balance;
}
.quote cite { font-style: normal; display: grid; gap: 4px; }
.quote cite .who { font-weight: 600; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.quote cite .where { color: var(--muted); font-size: 13px; }
.quote-nav { margin-top: 36px; display: flex; align-items: center; justify-content: center; gap: 20px; }
.quote-count { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 6.5em; text-align: center; }
.quote-arrow { width: 40px; height: 40px; display: inline-grid; place-items: center; background: none; border: 1px solid transparent; color: var(--muted); cursor: pointer; transition: color .2s, border-color .2s; }
.quote-arrow:hover { color: var(--ink); border-color: var(--line); }
.quote-arrow svg { width: 18px; height: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 200px; padding: 18px 40px; cursor: pointer;
  background: transparent; color: var(--ink); border: 1px solid var(--ink);
  font-family: var(--display); font-stretch: 112%; font-weight: 500; font-size: 12px;
  letter-spacing: .3em; text-transform: uppercase; text-decoration: none;
  transition: background-color .25s, color .25s;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn.solid { background: var(--ink); color: var(--bg); }
.btn.solid:hover { background: transparent; color: var(--ink); }
.btn.ghost { border-color: transparent; color: var(--muted); min-width: 0; }
.btn.ghost:hover { background: transparent; color: var(--ink); }
.btn[disabled] { opacity: .5; cursor: progress; }
.cta { text-align: center; padding-bottom: clamp(80px, 12vw, 140px); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
.site-footer .wrap { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; padding-block: 28px; }
.site-footer .label { color: var(--muted); }
.site-footer nav { display: flex; gap: 28px; }
.site-footer nav a { text-decoration: none; color: var(--ink); }
.site-footer nav a:hover { color: var(--muted); }

/* ---------- Contact dialog ---------- */
.contact-dialog {
  border: 0; padding: 0; margin: auto; background: transparent; color: var(--ink);
  width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow-y: auto; overscroll-behavior: contain;
}
.contact-dialog::backdrop { background: rgba(0,0,0,.4); backdrop-filter: blur(12px) saturate(.8); -webkit-backdrop-filter: blur(12px) saturate(.8); }
html.modal-open { overflow: hidden; }
.contact-dialog[open] { animation: dlg-in .35s ease both; }
.contact-dialog[open]::backdrop { animation: fade-in .35s ease both; }
.contact-dialog.is-closing { animation: dlg-out .25s ease both; }
.contact-dialog.is-closing::backdrop { animation: fade-out .25s ease both; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes dlg-out { to { opacity: 0; transform: translateY(12px); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .contact-dialog[open], .contact-dialog.is-closing, .contact-dialog[open]::backdrop, .contact-dialog.is-closing::backdrop { animation: none; }
  .quote, .quote.is-active { transition: none; }
  .cover img, .cover::after, .cover .listen { transition: none; }
}

.dialog-panel { background: rgba(10,10,9,.94); border: 1px solid #34332f; box-shadow: 0 30px 80px rgba(0,0,0,.6); padding: clamp(22px, 4vw, 36px); }
.dialog-panel .eyebrow { color: var(--muted); margin: 0 0 10px; }
.dialog-panel h2 { margin: 0; font-weight: 600; font-stretch: 90%; font-size: clamp(24px, 3.4vw, 30px); line-height: 1.1; letter-spacing: -.01em; }
.dialog-panel .intro { margin: 8px 0 20px; color: var(--muted); font-size: 13px; }
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 2px; }
.field label { font-size: 10px; color: var(--ink); }
.field label .req { color: var(--muted); }
.field input, .field textarea {
  width: 100%; background: transparent; color: var(--ink);
  border: 0; border-bottom: 1px solid var(--faint); border-radius: 0;
  padding: 6px 0 7px; font-family: var(--display); font-size: 15px; line-height: 1.5;
  transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 64px; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.field.has-error input, .field.has-error textarea { border-bottom-color: #d9786a; }
.field .err { color: #d9786a; font-size: 12px; min-height: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 6px; }
.form-actions .btn { padding-block: 14px; }
.form-status { font-size: 14px; color: var(--muted); margin: 0; }
.form-status.is-error { color: #d9786a; }
.sent { text-align: left; }
.sent h2 { margin-bottom: 12px; }
.sent p { color: var(--muted); margin: 0 0 32px; }

/* ---------- About page ---------- */
.about-hero { padding-top: calc(var(--header-h) + clamp(16px, 3vw, 40px)); }
.about-hero img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.about-grid {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  gap: 0; padding-block: clamp(56px, 8vw, 104px);
}
.about-main { padding-right: clamp(32px, 5vw, 72px); }
.about-main h1 { margin: 0 0 32px; color: var(--muted); font-weight: 500; }
.about-main .lead, .about-main p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.about-main .stats { text-align: left; hyphens: none; }
.about-main .lead { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.45; font-weight: 400; margin: 0; text-wrap: pretty; }
.about-main .stats { max-width: none; text-align: left; font-size: 11px; margin: 36px 0; padding-block: 20px; border-block: 1px solid var(--line); color: var(--ink); line-height: 2; }
.about-main .stats span { color: var(--faint); margin-inline: .6em; }
.about-main p { margin: 0 0 1.3em; color: #cfccc6; font-size: 17px; line-height: 1.7; }
.about-main .closer { color: var(--ink); font-weight: 500; font-size: 18px; margin-top: 2em; }
.about-aside { border-left: 1px solid var(--line); padding-left: clamp(24px, 3vw, 44px); }
.about-aside .sticky { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 16px; justify-items: start; }
.about-aside h2 { margin: 0; font-weight: 500; }
.about-aside p { margin: 0 0 8px; color: var(--muted); font-size: 15px; }
.about-aside .btn { min-width: 0; width: 100%; padding-inline: 20px; }
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-main { padding-right: 0; }
  .about-aside { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 40px; margin-top: 24px; }
  .about-aside .btn { width: auto; min-width: 200px; }
}

/* ---------- Post-production showreel strip ---------- */
.reel-wrap { margin-top: 4px; }
.reel {
  overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%);
}
.reel:active { cursor: grabbing; }
.reel-track { display: flex; gap: clamp(14px, 2vw, 24px); width: max-content; will-change: transform; }
.clip { flex: 0 0 clamp(240px, 27vw, 330px); text-decoration: none; display: grid; gap: 12px; align-content: start; }
.clip img { -webkit-user-drag: none; pointer-events: none; }
.thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--field); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.thumb::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35); transition: background-color .4s; }
.play {
  position: absolute; left: 50%; top: 50%; z-index: 1; width: 48px; height: 48px; margin: -24px 0 0 -24px;
  display: grid; place-items: center; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; color: #fff;
  transition: transform .4s ease, background-color .4s, color .4s;
}
.play svg { width: 18px; height: 18px; margin-left: 2px; }
.clip:hover .thumb img { transform: scale(1.06); }
.clip:hover .thumb::after { background: rgba(0,0,0,.15); }
.clip:hover .play { background: #fff; color: #000; transform: scale(1.06); }
.clip-title { font-size: 14px; line-height: 1.4; color: var(--muted); transition: color .2s; }
.clip:hover .clip-title { color: var(--ink); }
.post-list { margin-top: clamp(32px, 4vw, 48px); }
.reel-wrap .quote-nav { margin-top: 20px; }
@media (prefers-reduced-motion: reduce) { .thumb img, .play { transition: none; } }
