/* ==========================================================================
   Secu·mony — The Definition
   THESIS: the client's own black identity, built with real craft — not a
   reinterpretation. Ground is true near-black everywhere, no color-committed
   sections. Fraunces italic carries emotional copy (tagline, pull-quotes);
   the "secu·mony" dictionary entry is the signature device. Copper is
   reserved for interactive affordance only — link hover, focus rings,
   numerals — never a fill. No vinyl motif, no gradients, no stock imagery.
   ========================================================================== */

/* -- Fonts (self-hosted, variable) --------------------------------------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-variable.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic-variable.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Namdhinggo";
  src: url("../fonts/namdhinggo-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Namdhinggo";
  src: url("../fonts/namdhinggo-bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* -- Tokens --------------------------------------------------------------- */
:root {
  --bg: #000000;
  --surface: #000000;
  --surface-2: oklch(0.08 0 0);
  --ink: #ffffff;
  --ink-muted: oklch(0.74 0 0);
  --ink-faint: oklch(0.5 0 0);
  --accent: oklch(0.98 0 0);
  --accent-deep: oklch(0.8 0 0);
  --line: oklch(0.34 0 0);
  --line-soft: oklch(0.26 0 0);

  --serif: "Namdhinggo", "Fraunces", "Iowan Old Style", "Georgia", serif;
  --sans: "Namdhinggo", "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --container: 72rem;
  --container-narrow: 44rem;

  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  --z-header: 10;
  --z-skip: 100;
}

/* -- Reset ------------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
}
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}
main :where(section) {
  scroll-margin-top: 5rem;
}
.roster__item {
  scroll-margin-top: 5.5rem;
}

/* -- Layout helpers ---------------------------------------------------------- */
.wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}
.wrap-narrow {
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}
.section {
  padding-block: var(--space-3xl);
}
.section--tight {
  padding-block: var(--space-2xl);
}
.section-head {
  max-width: 40rem;
  margin-bottom: var(--space-xl);
}
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  z-index: var(--z-skip);
  background: var(--accent);
  color: var(--bg);
  padding: 0.75rem 1.25rem;
  font-family: var(--sans);
  font-weight: 600;
}
.skip-link:focus {
  left: var(--space-md);
  top: var(--space-md);
}

/* -- Type scale ---------------------------------------------------------- */
.h1 {
  font-size: clamp(2.25rem, 2.5vw + 1.5rem, 3.25rem);
}
.h2 {
  font-size: clamp(1.75rem, 1.5vw + 1.25rem, 2.25rem);
}
.lede {
  font-size: clamp(1.125rem, 0.5vw + 1rem, 1.375rem);
  color: var(--ink-muted);
  max-width: 38rem;
}
/* Rare, earned emphasis — one per page at most, never the default hero
   treatment. */
.pull {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 1.5vw + 1.1rem, 2.25rem);
  line-height: 1.3;
  color: var(--ink);
  max-width: 34rem;
  border-left: none;
}
/* -- Header / nav ---------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: color-mix(in oklch, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-md);
}
.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark span {
  color: var(--ink);
}
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.nav__list {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
  padding: 0;
  font-size: 0.9375rem;
}
.nav__list a {
  text-decoration: none;
  color: var(--ink-muted);
  position: relative;
  padding-block: 0.25rem;
  transition: color 0.2s var(--ease-out);
}
.nav__list a:hover,
.nav__list a:focus-visible {
  color: var(--ink);
}
.nav__list a[aria-current="page"] {
  color: var(--ink);
}
.nav__list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 1px;
  background: var(--accent);
}
.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 3px;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav__toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}
/* -- Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
  min-height: 44px;
}
.btn--primary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  color: var(--accent-deep);
  border-color: var(--accent-deep);
}
.btn--ghost {
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}
.btn:active {
  transform: translateY(1px);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* -- Hero: full black, centered wordmark + tagline -------------------------- */
.hero {
  padding-block: clamp(4rem, 10vw, var(--space-3xl)) clamp(3rem, 7vw, var(--space-2xl));
  text-align: center;
}
.hero__inner {
  max-width: 40rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__title {
  font-size: clamp(3rem, 6vw + 1rem, 6.5rem);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-2xs);
}
.hero__kicker,
.hero__statement {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}
.hero__kicker {
  font-size: clamp(1.375rem, 1.5vw + 1.1rem, 2rem);
  margin-bottom: var(--space-2xl);
}
.hero__statement {
  font-size: clamp(1.125rem, 1.1vw + 0.9rem, 1.625rem);
  margin-bottom: var(--space-3xl);
}
.hero__body {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-muted);
  font-size: clamp(1rem, 0.5vw + 0.9rem, 1.125rem);
  max-width: 28rem;
}
.hero__location {
  font-family: var(--sans);
  color: var(--ink-faint);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: var(--space-sm);
}

/* -- Hero: staggered entrance on load ---------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes hero-rise {
    from {
      opacity: 0;
      transform: translateX(var(--rise, -10px));
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  .hero__kicker,
  .hero__statement,
  .hero__body,
  .hero__location {
    opacity: 0;
  }
  .hero__kicker {
    --rise: -18px;
    animation: hero-rise 2.6s var(--ease-out) forwards;
    animation-delay: 0.5s;
  }
  .hero__statement {
    --rise: -18px;
    animation: hero-rise 3.4s var(--ease-out) forwards;
    animation-delay: 1.6s;
  }
  .hero__body {
    --rise: -12px;
    animation: hero-rise 3.2s var(--ease-out) forwards;
    animation-delay: 2.4s;
  }
  .hero__location {
    --rise: -12px;
    animation: hero-rise 3s var(--ease-out) forwards;
    animation-delay: 3s;
  }
  .is-home .site-header {
    opacity: 0;
    animation: hero-rise 5.6s linear forwards;
    --rise: 0px;
    animation-delay: 0s;
  }
}

/* -- Skip entrance animation when navigating within the site ---------------- */
html.no-entrance .hero__kicker,
html.no-entrance .hero__statement,
html.no-entrance .hero__body,
html.no-entrance .hero__location,
html.no-entrance .site-header {
  opacity: 1;
  animation: none;
  transform: none;
}

/* -- Split: plain two-column section layout --------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
.split p + p {
  margin-top: 1.25em;
}
@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

/* -- Definition block (liner-note glossary device) -------------------------- */
.definition {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: var(--space-xl);
}
.definition__word {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.definition__ipa {
  font-family: var(--sans);
  color: var(--ink-muted);
  margin-bottom: var(--space-md);
}
.definition__list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-sm);
  max-width: 40rem;
}
.definition__list li {
  display: flex;
  gap: 0.75rem;
}
.definition__list .num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  flex-shrink: 0;
}

/* -- Credits roster (Services) ----------------------------------------------- */
.roster {
  display: grid;
  gap: 0;
}
.roster__item {
  display: grid;
  grid-template-columns: minmax(10rem, 16rem) 1fr;
  gap: var(--space-lg);
  padding-block: var(--space-lg);
  border-top: 1px solid var(--line-soft);
}
.roster__item:last-child {
  border-bottom: 1px solid var(--line-soft);
}
.roster__role {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--ink);
}
.roster__desc {
  color: var(--ink-muted);
  max-width: 40ch;
}
.roster__desc p + p {
  margin-top: 0.75rem;
}

/* -- Track listing (Discography) --------------------------------------------- */
.tracklist {
  display: grid;
  gap: 0;
  list-style: none;
  padding: 0;
}
.track {
  display: grid;
  grid-template-columns: 3rem 3.5rem 1fr;
  align-items: center;
  gap: var(--space-md);
  padding-block: var(--space-md);
  border-top: 1px solid var(--line-soft);
  text-decoration: none;
  color: inherit;
}
.tracklist .track:last-child {
  border-bottom: 1px solid var(--line-soft);
}
.track__num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  font-size: 1.125rem;
}
.track__art {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 3px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.track__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.track__meta {
  min-width: 0;
}
.track__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--ink);
  transition: color 0.2s var(--ease-out);
}
/* Artist stays visible and legible at rest (accessible to touch/keyboard),
   and steps forward in emphasis on hover/focus — reproducing the reveal
   interaction from the live site without hiding content behind :hover. */
.track__artist {
  display: block;
  font-size: 0.875rem;
  color: var(--ink-faint);
  margin-top: 0.15rem;
  transition: color 0.2s var(--ease-out);
}
.track:hover .track__title,
.track:focus-visible .track__title {
  color: var(--accent);
}
.track:hover .track__artist,
.track:focus-visible .track__artist {
  color: var(--ink);
}

/* -- Chip list (Home services teaser — inline, not a card grid) ------------- */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0;
  font-family: var(--serif);
  font-size: 1.125rem;
  max-width: 42rem;
}
.chip-list li {
  display: flex;
  align-items: center;
}
.chip-list li:not(:last-child)::after {
  content: "\00b7";
  color: var(--accent);
  margin-inline: 0.75rem;
  font-weight: 700;
}
.chip-list--nav a {
  display: inline-flex;
  align-items: center;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color var(--ease-out);
}
.chip-list--nav a:not(:last-child)::after {
  content: "\00b7";
  color: var(--accent);
  margin-inline: 0.75rem;
  font-weight: 700;
}
.chip-list--nav a:hover,
.chip-list--nav a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
}

/* -- Art grid (Discography full artwork wall) -------------------------------- */
.art-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
}
.art-tile {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  background: var(--surface-2);
}
.art-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--ease-out);
}
.art-tile:hover img,
.art-tile:focus-visible img {
  transform: scale(1.08);
}
.art-tile__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-sm);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.15) 55%, transparent 100%);
  opacity: 0;
  transition: opacity 0.25s var(--ease-out);
}
.art-tile:hover .art-tile__overlay,
.art-tile:focus-visible .art-tile__overlay {
  opacity: 1;
}
.art-tile__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.25;
  color: var(--ink);
}
.art-tile__artist {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-top: 0.15rem;
}
@media (max-width: 860px) {
  .art-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 560px) {
  .art-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* -- Forms --------------------------------------------------------------- */
.form {
  display: grid;
  gap: var(--space-md);
  max-width: 34rem;
  margin-inline: auto;
}
.field {
  display: grid;
  gap: 0.4rem;
}
.field label {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}
.field label.field__label--roster {
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: normal;
  color: var(--ink);
}
.field input,
.field select,
.field textarea {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  min-height: 44px;
}
.field textarea {
  min-height: 8rem;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-faint);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

/* -- CTA band -------------------------------------------------------------- */
.cta-band {
  border-top: 1px solid var(--line-soft);
  padding-block: var(--space-2xl);
  text-align: center;
}
.cta-band .h2 {
  margin-bottom: var(--space-sm);
}
.cta-band p {
  color: var(--ink-muted);
  max-width: 32rem;
  margin-inline: auto;
  margin-bottom: var(--space-lg);
}
.cta-band .btn-row {
  justify-content: center;
}

/* -- Footer ------------------------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding-block: var(--space-xl);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-lg);
}
.site-footer__brand {
  max-width: 22rem;
}
.site-footer__brand .wordmark {
  display: inline-block;
  margin-bottom: 0.5rem;
}
.site-footer__brand p {
  color: var(--ink-faint);
  font-size: 0.875rem;
}
.site-footer__nav {
  display: flex;
  gap: var(--space-xl);
  flex-wrap: wrap;
}
.site-footer__nav h4 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: var(--space-sm);
}
.site-footer__nav ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.9375rem;
}
.site-footer__nav a {
  text-decoration: none;
  color: var(--ink-muted);
  transition: color 0.2s var(--ease-out);
}
.site-footer__nav a:hover,
.site-footer__nav a:focus-visible {
  color: var(--accent);
}
.site-footer__legal {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

/* -- Reveal-on-scroll (enhancement over an already-visible default) --------- */
[data-reveal] {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  }
  [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}

/* -- Responsive ---------------------------------------------------------- */
@media (max-width: 860px) {
  .roster__item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .track {
    grid-template-columns: 2.25rem 3rem 1fr;
  }
}

@media (max-width: 720px) {
  .nav__list {
    position: fixed;
    inset: 4.25rem var(--space-lg) auto var(--space-lg);
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: var(--space-md);
    gap: var(--space-sm);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
  }
  .nav.is-open .nav__list {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav__toggle {
    display: inline-flex;
  }
  .site-footer__inner {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .wrap,
  .wrap-narrow {
    padding-inline: var(--space-md);
  }
  .section {
    padding-block: var(--space-2xl);
  }
  .btn-row {
    flex-direction: column;
    align-items: stretch;
  }
}
