/* ============================================================
   Slate Music Group
   Pure black, white type, one serif italic for accents.
   ============================================================ */

:root {
  --canvas:    #000000;
  --surface:   #0f0f0f;   /* cards, one step off the canvas */
  --surface-2: #141414;   /* hover fills */
  --border:    #333333;
  --hairline:  rgba(255, 255, 255, .10);
  --ash:       #888888;   /* muted copy */
  --text:      #ffffff;

  --font-body: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: "Playfair Display", Georgia, serif;

  --w-light: 300;
  --w-body:  400;
  --w-mid:   500;
  --w-bold:  600;

  --s-4: 4px;   --s-8: 8px;   --s-12: 12px; --s-16: 16px;
  --s-20: 20px; --s-24: 24px; --s-32: 32px; --s-40: 40px;
  --s-56: 56px; --s-72: 72px;

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(72px, 11vw, 144px);

  --r-card: 12px;
  --r-pill: 40px;

  --ease: cubic-bezier(.23, 1, .32, 1);
  --t-fast: .3s;
  --t-mid: .4s;
  --t-slow: .6s;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: var(--w-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: normal; }

::selection { background: var(--text); color: var(--canvas); }

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

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

.skip {
  position: fixed; top: -100px; left: var(--s-16); z-index: 999;
  background: var(--text); color: var(--canvas);
  padding: var(--s-12) var(--s-20); border-radius: var(--r-pill);
  transition: top var(--t-fast) var(--ease);
}
.skip:focus { top: var(--s-16); }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 700;
  display: flex; align-items: center; gap: var(--s-24);
  padding: var(--s-20) var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background var(--t-mid) var(--ease),
              border-color var(--t-mid) var(--ease),
              padding var(--t-mid) var(--ease);
}
.js .nav { opacity: 0; transform: translateY(-60px); }
.js .nav.is-in { animation: navSlideDown 1.2s var(--ease) .2s forwards; }
@keyframes navSlideDown {
  from { opacity: 0; transform: translateY(-60px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav.is-stuck {
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--hairline);
  padding-block: var(--s-12);
}

.nav__brand {
  display: flex; align-items: baseline; gap: var(--s-8);
  margin-right: auto;
}
.nav__logo {
  width: auto; height: 17px;
  transition: opacity var(--t-fast) var(--ease);
}
.nav__brand:hover .nav__logo { opacity: .7; }
/* Reads as one lockup with the mark. The mark itself is a traced SVG, so
   there is no font to match it with; Poppins 600 is the nearest thing and
   is sized by eye against the letterforms rather than by any shared metric. */
.nav__name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--text);
}

.nav__links { display: flex; align-items: center; gap: var(--s-4); }
.nav__links a {
  padding: var(--s-8) var(--s-20);
  border-radius: var(--r-pill);
  font-size: 15px;
  transition: background var(--t-fast) var(--ease);
}
.nav__links a:hover { background: var(--surface-2); }

.nav__burger { display: none; }

/* Small caps with open tracking. Poppins is a display face: its circular
   bowls read soft and bubbly at button size, and uppercase sidesteps them. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: var(--s-16) var(--s-32);
  border-radius: var(--r-pill);
  font-size: 12px; font-weight: var(--w-mid);
  text-transform: uppercase;
  letter-spacing: .14em;
  white-space: nowrap;
  transition: background var(--t-mid) var(--ease), color var(--t-mid) var(--ease);
}
.btn--solid { background: var(--text); color: var(--canvas); }
.btn--ghost { border: 1px solid var(--text); }
.btn--ghost:hover { background: var(--text); color: var(--canvas); }
.nav__cta { padding: var(--s-12) var(--s-20); font-size: 11px; }

/* ============================================================
   Shared type
   ============================================================ */
/* Block, not flex: once the label is split into words each word would become
   a flex item and inherit the gap, spacing "What we offer" like a title. */
.eyebrow, .label {
  display: block;
  font-size: clamp(10px, 2.5vw, 12px);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ash); font-weight: var(--w-body);
  margin: 0 0 var(--s-32);
}
.label .num { color: var(--text); margin-right: var(--s-8); }

.h-display, .statement, .contact__title {
  font-weight: var(--w-mid);
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0;
  text-wrap: balance;
}
.h-display { font-size: clamp(30px, 5vw, 48px); margin-bottom: var(--s-56); }
.h-display em, .statement em, .contact__title em {
  font-family: var(--font-accent);
  font-style: italic; font-weight: 400;
  letter-spacing: 0;
}

.section { padding-block: var(--section-y); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(110px, 15vh, 160px) var(--gutter) var(--s-40);
  max-width: var(--maxw); margin-inline: auto;
}
.hero__inner { position: relative; z-index: 1; width: 100%; }

.hero__title {
  margin: var(--s-16) 0 var(--s-40);
  line-height: 0;
}
.hero__logo {
  width: clamp(240px, 42vw, 500px);
  height: auto;
}
/* Wipes open from the left rather than rising, since an image can't be
   split into letters the way the headings are. */
.js [data-reveal] .hero__logo,
.js .hero__title[data-reveal] .hero__logo {
  clip-path: inset(0 100% 0 0);
}
.js .hero__title[data-reveal].is-in .hero__logo {
  animation: logoWipe 1.1s var(--ease) .15s forwards;
}
@keyframes logoWipe {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

.hero__lede {
  max-width: 58ch;
  font-size: clamp(17px, 1.9vw, 21px);
  line-height: 1.55;
  font-weight: var(--w-light);
  color: var(--ash);
  margin: 0 0 var(--s-40);
}
.hero__lede em { font-family: var(--font-accent); font-style: italic; color: var(--text); }

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-12); }

.hero__foot {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s-24); margin-top: auto; padding-top: var(--s-56);
}
.hero__meta {
  margin: 0; font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ash);
}

/* ============================================================
   Marquees — constant speed, never tied to scroll
   ============================================================ */
.band {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding-block: var(--s-24);
  overflow: hidden;
}
.marquee { overflow: hidden; width: 100%; }
.marquee__row {
  display: flex; align-items: center; gap: var(--s-32);
  width: max-content;
}
.band .marquee__row {
  font-size: clamp(14px, 1.6vw, 18px);
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--ash);
}
.band .marquee__row b { color: var(--text); font-weight: 400; }

/* ============================================================
   About
   ============================================================ */
.statement {
  font-size: clamp(26px, 4.2vw, 44px);
  max-width: 24ch;
  margin-bottom: var(--s-72);
}

.about__grid {
  display: grid; gap: var(--s-40);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  padding-top: var(--s-40);
  border-top: 1px solid var(--hairline);
}
.about__col h3 { font-weight: var(--w-mid); font-size: 20px; margin: 0 0 var(--s-12); }
.about__col p { margin: 0; color: var(--ash); font-weight: var(--w-light); max-width: 46ch; }

/* ============================================================
   Services accordion
   ============================================================ */
.acc { border-top: 1px solid var(--hairline); }
.acc__item { position: relative; }
.acc__item::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--hairline);
  transform-origin: left;
}
.js .acc__item[data-reveal]::after { transform: scaleX(0); }
.js .acc__item[data-reveal].is-in::after {
  animation: lineDraw .9s var(--ease) forwards;
  animation-delay: calc(var(--d, 0ms) + 150ms);
}

.acc__head {
  width: 100%;
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: var(--s-24);
  padding: var(--s-32) 0;
  text-align: left;
  position: relative;
  transition: padding var(--t-mid) var(--ease);
}
.acc__head::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -.5);
  background: var(--surface);
  border-radius: var(--r-card);
  opacity: 0; transform: scaleY(.82);
  transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease);
  z-index: -1;
}
.acc__head:hover::before { opacity: 1; transform: scaleY(1); }
.acc__head:hover { padding-inline: var(--s-24); }

.acc__n { font-size: 13px; color: var(--ash); letter-spacing: .08em; }
.acc__t {
  font-weight: var(--w-mid);
  font-size: clamp(21px, 3.2vw, 32px);
  letter-spacing: -.01em; line-height: 1.2;
}
.acc__ico { position: relative; width: 18px; height: 18px; flex: none; }
.acc__ico::before, .acc__ico::after {
  content: ""; position: absolute; top: 50%; left: 0;
  width: 100%; height: 1px; background: var(--text);
  transition: transform var(--t-mid) var(--ease);
}
.acc__ico::after { transform: rotate(90deg); }
.acc__item.is-open .acc__ico::after { transform: rotate(0deg); }

.acc__panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-slow) var(--ease);
}
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel > .acc__body { overflow: hidden; }
.acc__body { opacity: 0; transition: opacity var(--t-mid) var(--ease); }
.acc__item.is-open .acc__body { opacity: 1; }
.acc__body > p {
  margin: 0 0 var(--s-20);
  max-width: 62ch; color: var(--ash); font-weight: var(--w-light);
  padding-left: clamp(0px, 6vw, 68px);
}

.tags {
  list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-8);
  margin: 0 0 var(--s-32); padding: 0 0 0 clamp(0px, 6vw, 68px);
}
.tags li {
  padding: var(--s-8) var(--s-16);
  border: 1px solid var(--border); border-radius: var(--r-pill);
  font-size: 12px; letter-spacing: .04em; color: var(--ash);
}
/* Tags arrive one after another once the row is opened. */
.js .tags li { opacity: 0; transform: translateY(12px); }
.js .acc__item.is-open .tags li {
  animation: fadeUpIn .7s var(--ease) forwards;
  animation-delay: calc(220ms + var(--i, 0) * 70ms);
}

@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); } }


/* ============================================================
   Contact
   ============================================================ */
.contact { padding-bottom: var(--s-72); }
.contact__title {
  font-size: clamp(38px, 8vw, 88px);
  line-height: 1.05;
  margin-bottom: var(--s-24);
}
.contact__lede {
  max-width: 48ch; color: var(--ash); font-weight: var(--w-light);
  font-size: clamp(16px, 1.7vw, 19px);
  margin: 0 0 var(--s-56);
}

.mail-marquee {
  display: block;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding-block: clamp(var(--s-20), 3vw, var(--s-40));
  margin-bottom: var(--s-72);
  overflow: hidden;
  transition: background var(--t-mid) var(--ease), color var(--t-mid) var(--ease);
}
.mail-marquee .marquee__row {
  font-weight: var(--w-mid);
  font-size: clamp(30px, 6.4vw, 82px);
  letter-spacing: -.02em;
  /* Roomy enough for the descenders of g and p. At 1.1 the line box is
     shorter than they are and the marquee's overflow clips them off. */
  line-height: 1.32;
  gap: clamp(var(--s-24), 4vw, var(--s-56));
  white-space: nowrap;
}
.mail-marquee .marquee__row b { font-weight: 400; color: var(--ash); font-size: .5em; }
.mail-marquee:hover { background: var(--text); color: var(--canvas); }
.mail-marquee:hover .marquee__row b { color: var(--canvas); }

.contact__cards {
  display: grid; gap: var(--s-12);
  grid-template-columns: repeat(auto-fit, minmax(262px, 1fr));
  margin-bottom: var(--s-56);
}
.ccard {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: var(--s-32);
  display: flex; flex-direction: column; gap: var(--s-12);
  transition: background var(--t-mid) var(--ease);
}
.ccard:hover { background: var(--surface-2); }
.ccard__k {
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ash);
}
.ccard__d {
  margin: 0; font-size: 15px; font-weight: var(--w-light);
  color: var(--ash); max-width: 42ch;
}
/* Underline grows from nothing on hover. */
.ccard__v {
  font-size: clamp(14px, 1.5vw, 16px);
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size var(--t-mid) var(--ease);
  width: fit-content;
  word-break: break-all;
}
.ccard__v:hover { background-size: 100% 1px; }

/* Sits directly above the marquee, which answers it with the address. */
.hi {
  margin: 0 0 var(--s-32);
  font-size: clamp(17px, 2.4vw, 26px);
  font-weight: var(--w-light);
  color: var(--ash);
  line-height: 1.5;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--hairline);
  padding-block: var(--s-40);
}
.footer__inner {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--s-24); justify-content: space-between;
}
.footer__brand { font-weight: var(--w-mid); font-size: 15px; }
.follow {
  margin: var(--s-40) 0 0;
  padding-top: var(--s-40);
  border-top: 1px solid var(--hairline);
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: var(--w-light);
  color: var(--ash);
  text-align: center;
}
/* The serif italic marks it as the link. Playfair earns its place by
   flagging what is clickable, not by decorating fixed labels. */
.follow a {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.15em;
  color: var(--text);
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  transition: background-size var(--t-mid) var(--ease);
}
.follow a:hover { background-size: 0% 1px; }
.footer__note { margin: 0; font-size: 13px; color: var(--ash); }

/* ============================================================
   Reveal on scroll
   ============================================================ */
.js [data-reveal] { opacity: 0; transform: translateY(40px); }
.js [data-reveal].is-in {
  animation: fadeUpIn 1.2s var(--ease) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes fadeUpIn {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Variant: the block uncovers from its own bottom edge instead of sliding,
   so a grid of cards reads as being drawn rather than flown in. Declared
   after the base rule, which it overrides on equal specificity. */
/* Deliberately not clipped at rest: a zero-height clip makes the element's
   intersection ratio zero, so IntersectionObserver never crosses its
   threshold and the reveal never fires. Opacity does the hiding; the
   keyframes own the clip. */
.js [data-reveal="wipe"] {
  opacity: 0;
  transform: none;
}
.js [data-reveal="wipe"].is-in {
  animation: wipeUp 1s var(--ease) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes wipeUp {
  from { opacity: 0; clip-path: inset(0 0 100% 0); }
  to   { opacity: 1; clip-path: inset(0 0 0 0); }
}

/* The rules between accordion rows draw themselves left to right. */
@keyframes lineDraw {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Words and letters rise out of an overflow-hidden mask. Baseline alignment
   is kept (not `vertical-align: bottom`, which shifts mixed-font runs); the
   padding gives descenders room inside the clip box. */
.js .word {
  display: inline-block; overflow: hidden;
  vertical-align: baseline;
  padding-bottom: .16em; margin-bottom: -.16em;
}
.js .word__in, .js .char {
  display: inline-block;
  transform: translateY(105%);
  opacity: 0;
}
.js [data-split].is-in .word__in,
.js [data-split].is-in .char {
  transform: translateY(0);
  opacity: 1;
  transition: transform .9s var(--ease), opacity .7s var(--ease);
  transition-delay: var(--d, 0ms);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 880px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger {
    display: flex; flex-direction: column; justify-content: center;
    gap: 6px; width: 40px; height: 40px; align-items: flex-end;
  }
  .nav__burger i {
    display: block; height: 1px; background: var(--text); width: 24px;
    transition: transform var(--t-mid) var(--ease), width var(--t-mid) var(--ease);
  }
  .nav__burger i:last-child { width: 16px; }
  .nav.is-open .nav__burger i:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav.is-open .nav__burger i:last-child  { width: 24px; transform: translateY(-3.5px) rotate(-45deg); }

  .nav.is-open {
    flex-wrap: wrap;
    background: rgba(0, 0, 0, .94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; align-items: stretch;
    width: 100%; gap: 0; padding-block: var(--s-16);
    border-top: 1px solid var(--hairline); margin-top: var(--s-16);
  }
  .nav.is-open .nav__links a { padding: var(--s-16) 0; font-size: 21px; }
  .nav.is-open .nav__cta { display: inline-flex; width: 100%; margin-bottom: var(--s-16); }

  .hero__foot { flex-direction: column; align-items: flex-start; gap: var(--s-20); }
  .acc__head { gap: var(--s-16); padding-block: var(--s-24); }
  .acc__head:hover { padding-inline: var(--s-12); }
}

@media (max-width: 560px) {
  .ccard,   .acc__body > p, .tags { padding-left: 0; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js [data-reveal],
  .js .word__in, .js .char { opacity: 1 !important; transform: none !important; }
  .js .nav { opacity: 1; transform: none; }
}
