/* =========================================================================
   SETH SHANK — STYLES
   1. Tokens   2. Base   3. Layout & utilities   4. Buttons
   5. Header/nav   6. Hero   7. About   8. Music   9. Gallery
   10. Contact & form   11. Footer   12. Lightbox   13. Motion
   ========================================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand palette */
  --navy: #091540;
  --royal: #1B2CC1;
  --periwinkle: #7692FF;
  --light-blue: #ABD2FA;

  /* Supporting neutrals derived from the palette */
  --navy-2: #0F1D52;          /* raised surfaces on navy */
  --navy-3: #18286A;          /* borders on navy */
  --paper: #F4F7FD;           /* light section background */
  --white: #FFFFFF;
  --ink-soft: #3A4670;        /* secondary text on light */
  --mist: #C9D6F5;            /* secondary text on navy */
  --error: #B42318;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --header-h: 72px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-pad: clamp(72px, 10vw, 128px);
  --shadow: 0 18px 40px -18px rgba(9, 21, 64, 0.35);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

img, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0; }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--periwinkle);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--white); color: var(--navy);
  padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- 3. Layout & utilities ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-pad); }
.section-light { background: var(--paper); }
.section-dark  { background: var(--navy); color: var(--white); }
.section-accent { background: var(--light-blue); }

.section-head { margin-bottom: clamp(40px, 6vw, 64px); }

.section-kicker,
.eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--royal);
  margin-bottom: 14px;
}
.section-dark .section-kicker,
.hero .eyebrow { color: var(--periwinkle); }

.section-title { font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -0.01em; }

.text-link {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.text-link:hover { color: var(--light-blue); }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 26px;
  border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--royal); color: var(--white); border-color: var(--royal); }
.btn-primary:hover { background: #2537D6; border-color: #2537D6; }
.hero .btn-primary { border-color: var(--periwinkle); }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--light-blue); }
.btn-ghost:hover { background: var(--light-blue); color: var(--navy); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

.button-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- 5. Header / nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: transparent;
  transition: background-color .25s, box-shadow .25s;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(9, 21, 64, 0.96);
  box-shadow: 0 1px 0 var(--navy-3);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header.is-scrolled { background: rgba(9, 21, 64, 0.85); backdrop-filter: blur(10px); }
}

.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.wordmark {
  font-family: var(--font-body);
  font-weight: 700; font-size: 1.05rem; letter-spacing: 0.32em;
  color: var(--white); text-decoration: none; white-space: nowrap;
}

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: var(--mist); text-decoration: none; font-weight: 600; font-size: .95rem;
  transition: color .2s, background-color .2s;
}
.nav-links a:hover,
.nav-links a.is-active { color: var(--white); }
.nav-links a.is-active:not(.nav-cta) { box-shadow: inset 0 -2px 0 var(--periwinkle); border-radius: 0; }
.nav-links .nav-cta { background: var(--royal); color: var(--white); margin-left: 8px; padding-inline: 18px; }
.nav-links .nav-cta:hover { background: #2537D6; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; padding: 10px;
  background: transparent; border: 0; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle-bar { display: block; height: 2px; background: var(--white); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 800px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px;
    background: rgba(9, 21, 64, 0.98);
    border-bottom: 1px solid var(--navy-3);
    display: none;
  }
  .site-header.is-open .nav-links { display: flex; }
  .nav-links a { padding: 14px 4px; border-radius: 0; font-size: 1.05rem; border-bottom: 1px solid var(--navy-3); }
  .nav-links a.is-active:not(.nav-cta) { box-shadow: none; color: var(--periwinkle); }
  .nav-links .nav-cta { margin: 16px 0 0; text-align: center; border-radius: 999px; border: 0; }
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding: calc(var(--header-h) + clamp(40px, 7vw, 96px)) 0 clamp(64px, 9vw, 120px);
  overflow: hidden;
  isolation: isolate;
}

/* Five-line musical staff motif sweeping behind the hero */
.staff-lines {
  position: absolute; inset: auto -5% 18% -5%; height: 120px; z-index: -1;
  background: repeating-linear-gradient(
    to bottom,
    rgba(118, 146, 255, 0.22) 0 1px,
    transparent 1px 24px
  );
  background-size: 100% 97px;
  background-repeat: no-repeat;
  transform: rotate(-6deg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.hero-title {
  font-size: clamp(3.25rem, 9vw, 7rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 0.95;
  margin-bottom: 28px;
}
.hero-intro {
  font-size: clamp(1.075rem, 1.6vw, 1.25rem);
  color: var(--mist);
  max-width: 34ch;
  margin-bottom: 36px;
}

.hero-media { position: relative; }
.hero-media::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 2px solid var(--periwinkle); border-radius: var(--radius);
  z-index: -1;
}
.hero-media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius);
  background: var(--navy-2);
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 420px; margin-right: 18px; }
  .hero-media img { aspect-ratio: 4 / 3; }
}

/* ---------- 7. About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}
.about-portrait { position: sticky; top: calc(var(--header-h) + 32px); }
.about-portrait img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--light-blue);
}
.about-text .section-title { margin-bottom: 28px; }
.bio { display: grid; gap: 18px; color: var(--ink-soft); max-width: 62ch; }
.bio p:first-child { font-size: 1.2rem; color: var(--navy); font-weight: 500; }

.highlights {
  margin: 40px 0 0;
  display: grid; gap: 0;
  border-top: 1px solid rgba(9, 21, 64, 0.14);
}
.highlights > div {
  display: grid; grid-template-columns: 130px 1fr; gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(9, 21, 64, 0.14);
}
.highlights dt {
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--royal); padding-top: 3px;
}
.highlights dd { margin: 0; font-weight: 500; }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { max-width: 460px; position: static; }
}
@media (max-width: 480px) {
  .highlights > div { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- 8. Music ---------- */
.music-block + .music-block { margin-top: clamp(64px, 8vw, 96px); }

.music-block-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px;
  padding-bottom: 18px; margin-bottom: 32px;
  border-bottom: 1px solid var(--navy-3);
}
.music-subtitle { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 400; }
.music-block-head .text-link { color: var(--light-blue); font-size: .95rem; }
.music-block-head .text-link:hover { color: var(--white); }

/* Video cards */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 28px;
}
.video-card {
  background: var(--navy-2);
  border: 1px solid var(--navy-3);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .2s, transform .2s;
}
.video-card:hover { border-color: var(--periwinkle); }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #050D2B; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-body { padding: 22px 22px 26px; display: grid; gap: 10px; }
.card-index { font-family: var(--font-display); color: var(--periwinkle); font-size: .95rem; }
.video-body h4, .track-body h4 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; margin: 0; }
.video-body p { color: var(--mist); font-size: .98rem; }
.video-meta {
  font-size: .8rem !important; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--light-blue) !important;
}

/* Placeholder used for any unfilled embed */
.embed-placeholder {
  position: absolute; inset: 0;
  display: grid; place-content: center; gap: 10px; text-align: center; padding: 16px;
  color: var(--mist); font-size: .9rem;
  background:
    radial-gradient(circle at 50% 45%, rgba(118,146,255,.18), transparent 60%),
    #050D2B;
}
.embed-placeholder .ph-icon {
  width: 56px; height: 56px; margin-inline: auto; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--periwinkle); color: var(--periwinkle);
}
.embed-placeholder code {
  font-size: .78rem; color: var(--light-blue);
  background: rgba(171,210,250,.08); padding: 2px 8px; border-radius: 4px;
}

/* SoundCloud track list — reads like a programme / album listing */
.track-list { display: grid; gap: 0; counter-reset: track; }
.track {
  display: grid;
  grid-template-columns: 72px minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 28px; align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--navy-3);
}
.track:first-child { padding-top: 4px; }
.track-number {
  font-family: var(--font-display); font-size: 2.25rem; line-height: 1;
  color: var(--periwinkle);
}
.track-body { display: grid; gap: 8px; }
.track-body p { color: var(--mist); font-size: .98rem; }
.track-player { position: relative; height: 166px; border-radius: var(--radius-sm); overflow: hidden; background: #050D2B; }
.track-player iframe { width: 100%; height: 166px; border: 0; }

@media (max-width: 860px) {
  .track { grid-template-columns: 52px 1fr; gap: 16px 20px; }
  .track-number { font-size: 1.75rem; }
  .track-player { grid-column: 1 / -1; }
}

/* ---------- 9. Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2vw, 20px);
}
.gallery-item button {
  position: relative; display: block; width: 100%;
  padding: 0; border: 0; background: var(--light-blue);
  border-radius: var(--radius); overflow: hidden; cursor: zoom-in;
}
.gallery-item img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .5s ease, filter .3s;
}
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 16px 14px; text-align: left;
  color: var(--white); font-weight: 600; font-size: .95rem;
  background: linear-gradient(to top, rgba(9,21,64,.85), transparent);
  opacity: 0; transform: translateY(6px);
  transition: opacity .3s, transform .3s;
}
.gallery-item button:hover img,
.gallery-item button:focus-visible img { transform: scale(1.045); }
.gallery-item button:hover .gallery-caption,
.gallery-item button:focus-visible .gallery-caption { opacity: 1; transform: none; }

@media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery-grid { grid-template-columns: 1fr; } }
@media (hover: none) { .gallery-caption { opacity: 1; transform: none; } }

/* ---------- 10. Contact & form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}
.contact-text .section-title { margin-bottom: 22px; }
.contact-intro { font-size: 1.125rem; max-width: 42ch; margin-bottom: 36px; }

.contact-links { display: grid; gap: 14px; }
.contact-links li { display: grid; grid-template-columns: 100px 1fr; gap: 12px; align-items: baseline; }
.contact-label { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--royal); }
.contact-links a { font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 4px; overflow-wrap: anywhere; }
.contact-links a:hover { color: var(--royal); }
.muted { color: var(--ink-soft); font-style: italic; }

.contact-form {
  background: var(--white);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow);
  display: grid; gap: 20px;
}
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.req { color: var(--royal); }
.optional { font-weight: 400; color: var(--ink-soft); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  background: var(--paper);
  border: 1.5px solid #C3CEE8;
  border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none; background-color: var(--white);
  border-color: var(--royal);
  box-shadow: 0 0 0 4px rgba(27, 44, 193, .15);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: .875rem; font-weight: 600; min-height: 0; }
.field-error:empty { display: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { font-size: .95rem; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-info    { padding: 14px 16px; border-radius: var(--radius-sm); background: #EEF2FF; border-left: 4px solid var(--royal); }
.form-status.is-success { padding: 14px 16px; border-radius: var(--radius-sm); background: #E8F5EE; border-left: 4px solid #1E7B4B; }
.form-status.is-error   { padding: 14px 16px; border-radius: var(--radius-sm); background: #FDECEA; border-left: 4px solid var(--error); }

@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- 11. Footer ---------- */
.site-footer {
  background: var(--navy); color: var(--mist);
  padding: 56px 0 40px;
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center; gap: 24px 40px;
}
.footer-links, .footer-social { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links { justify-content: center; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.copyright {
  grid-column: 1 / -1;
  padding-top: 24px; margin-top: 8px;
  border-top: 1px solid var(--navy-3);
  font-size: .85rem;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

/* ---------- 12. Lightbox ---------- */
.lightbox {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%;
  margin: 0; padding: 56px 72px; border: 0;
  background: rgba(5, 13, 43, 0.95); color: var(--white);
}
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; }
.lightbox::backdrop { background: rgba(5, 13, 43, 0.6); }
.lb-figure { display: grid; justify-items: center; gap: 14px; min-width: 0; height: 100%; align-content: center; }
.lb-figure img { max-height: calc(100vh - 170px); width: auto; max-width: 100%; border-radius: var(--radius-sm); object-fit: contain; }
.lb-figure figcaption { color: var(--mist); text-align: center; }
.lb-btn {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid var(--navy-3); background: var(--navy-2); color: var(--white);
  font-size: 1.9rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  transition: border-color .2s, background-color .2s;
}
.lb-btn:hover { border-color: var(--periwinkle); background: var(--navy-3); }
.lb-close { position: absolute; top: 16px; right: 16px; }

@media (max-width: 640px) {
  .lightbox { padding: 72px 12px 24px; }
  .lightbox[open] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; }
  .lb-figure { grid-column: 1 / -1; grid-row: 1; }
  .lb-prev { grid-row: 2; justify-self: end; }
  .lb-next { grid-row: 2; justify-self: start; }
}

/* ---------- 13. Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
