/* =========================================================================
   Tuner Entertainment — design system
   Tuner's own identity: modernist, graphic, broadcast/tuner motif.
   Luxury Problems is a quarantined aesthetic pocket inside the Work section.
   ========================================================================= */

:root {
  /* palette — clean cream for Tuner; warm cream + gold reserved for LP pocket */
  --cream: #FAF7F0;
  --cream-soft: #F4EFE3;
  --cream-deep: #EEE7D3;          /* LP pocket background */
  --ink: #1C1A16;
  --ink-mid: #3A3229;
  --ink-muted: #5C5347;
  --red: #D32F2F;
  --red-deep: #B71C1C;
  --gold: #C5A960;
  --gold-deep: #B8963E;
  --gold-pale: #E8D48B;
  --rule: rgba(28, 26, 22, 0.12);      /* ink-based hairline for Tuner surfaces */
  --rule-gold: rgba(197, 169, 96, 0.4); /* gold hairline for LP pocket */

  /* typography */
  --font-display: "Cormorant Garamond", ui-serif, Georgia, serif;
  --font-serif: "Libre Baskerville", ui-serif, Georgia, "Times New Roman", serif;
  --font-sans: "Josefin Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* rhythm */
  --container: 1100px;
  --measure: 42rem;
  --section-y: clamp(4rem, 7.5vw, 7rem);
  --nav-h: 60px;
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

em { font-style: italic; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ---------- Tuner logomark ---------- */
.tuner-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  line-height: 1;
  position: relative;
  color: var(--ink);
  white-space: nowrap;
  padding-right: 0.1em;
}

/* horizontal line connecting text → dot, struck through the wordmark */
.tuner-mark::before {
  content: "";
  position: absolute;
  top: 57%;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transform: translateY(-50%);
  z-index: 2;
  pointer-events: none;
}

.tuner-mark__word {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  letter-spacing: -0.015em;
}

.tuner-mark__tuner {
  font-weight: 700;
  font-style: normal;
}

.tuner-mark__ent {
  font-weight: 500;
  font-style: italic;
  margin-left: -0.02em;
}

.tuner-mark__dot {
  display: inline-block;
  width: 0.42em;
  height: 0.42em;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
  position: relative;
  z-index: 3;
}

.tuner-mark--lg {
  font-size: clamp(2.5rem, 7vw, 6rem);
}

.tuner-mark--sm {
  font-size: 1.1875rem;
}

.tuner-mark--sm.tuner-mark { gap: 0.4em; }
.tuner-mark--sm.tuner-mark::before { height: 1px; }

/* ---------- logomark intro animation (hero only) ----------
   Design philosophy: calibrated imperfection.
   The line sweeps in like a tuner dial, the word rises to meet it,
   and the dot unfurls at the terminus — the line's pigment pooling
   into a circle, not a ball rolling to a stop. Slow, deliberate,
   hand-made.
*/

/* line: sweep in left → right like a tuner scale */
.tuner-mark--lg::before {
  transform-origin: left center;
  animation: tuner-line-sweep 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

/* word: fade up as the line arrives */
.tuner-mark--lg .tuner-mark__word {
  animation: tuner-word-rise 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}

/* dot: rolls out from the line's end, traveling a short distance to rest */
.tuner-mark--lg .tuner-mark__dot {
  animation: tuner-dot-roll-out 1s cubic-bezier(0.22, 1, 0.36, 1) 1.4s both;
}

@keyframes tuner-line-sweep {
  0%   { transform: translateY(-50%) scaleX(0); opacity: 0.25; }
  40%  { opacity: 0.8; }
  70%  { opacity: 1; }
  100% { transform: translateY(-50%) scaleX(1); opacity: 1; }
}

@keyframes tuner-word-rise {
  0%   { opacity: 0; transform: translateY(0.18em); filter: blur(1px); }
  40%  { filter: blur(0.4px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes tuner-dot-roll-out {
  0%   { opacity: 0; transform: translateX(-0.55em) rotate(-270deg); }
  20%  { opacity: 1; }
  100% { opacity: 1; transform: translateX(0) rotate(0); }
}

@media (prefers-reduced-motion: reduce) {
  .tuner-mark--lg::before,
  .tuner-mark--lg .tuner-mark__word,
  .tuner-mark--lg .tuner-mark__dot {
    animation: none;
  }
}

/* ---------- navigation ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(250, 247, 240, 0.9);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--rule);
}

.site-nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.75rem;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-nav__brand { display: inline-flex; }
.site-nav__brand:hover .tuner-mark__dot { background: var(--red-deep); }

.site-nav__list {
  list-style: none;
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  margin: 0;
  padding: 0;
}

.site-nav__list a {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
}

.site-nav__list a:hover {
  color: var(--ink);
  border-bottom-color: var(--red);
}

/* ---------- shared section ---------- */
.section {
  padding: var(--section-y) 1.75rem;
  position: relative;
}

.section + .section:not(.section--work)::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(48rem, calc(100% - 3rem));
  height: 1px;
  background: var(--rule);
}

.section__inner {
  max-width: var(--measure);
  margin: 0 auto;
  position: relative;
}

/* eyebrow label */
.eyebrow {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 1.5rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--ink);
}

/* section titles (About, Music, Contact) */
.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 2rem;
}

.section p { color: var(--ink-mid); }
.section p em { color: var(--ink); }

/* ---------- hero ---------- */
.section--hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: calc(var(--nav-h) + var(--section-y));
  padding-bottom: var(--section-y);
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--cream);
}

/* concentric rings — intentionally off-register.
   Each ring's center is nudged slightly from the next so the set
   reads as balanced-but-off: drawn, not drafted. */
.hero__rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
  /* whole system shifted a hair off the geometric middle */
  transform: translate(1.4%, -0.8%);
}

.hero__rings span {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(28, 26, 22, 0.06);
  aspect-ratio: 1 / 1;
}

.hero__rings span:nth-child(1) {
  width: min(95vmin, 1100px);
  transform: translate(0%, 0%);
}
.hero__rings span:nth-child(2) {
  width: min(75vmin, 900px);
  border-color: rgba(28, 26, 22, 0.08);
  transform: translate(0.6%, -0.9%);
}
.hero__rings span:nth-child(3) {
  width: min(55vmin, 700px);
  border-color: rgba(28, 26, 22, 0.08);
  transform: translate(-0.7%, 0.7%);
}
.hero__rings span:nth-child(4) {
  width: min(35vmin, 500px);
  border-color: rgba(28, 26, 22, 0.10);
  transform: translate(1.1%, -0.5%);
}

.section--hero .section__inner {
  max-width: 62rem;
  position: relative;
  z-index: 1;
}

.hero__title {
  margin: 0 0 2rem;
  display: flex;
  justify-content: center;
}

.hero__subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.0625rem, 1.75vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 36rem;
  margin: 0 auto 1.75rem;
}

.hero__meta {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.8125rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0;
}

/* ---------- work / Luxury Problems pocket ---------- */
.section--work {
  background: var(--cream-deep);
  padding-top: calc(var(--section-y) + 1rem);
  padding-bottom: calc(var(--section-y) + 1rem);
  position: relative;
  overflow: hidden;
}

/* subtle gold chair-rail top & bottom to frame the LP pocket */
.section--work::before,
.section--work::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--gold) 20%,
    var(--gold-pale) 50%,
    var(--gold) 80%,
    transparent 100%
  );
}

.section--work::before { top: 0; }
.section--work::after { bottom: 0; }

.section--work .eyebrow {
  color: var(--gold-deep);
}

.section--work .eyebrow::before {
  background: var(--gold-deep);
}

.section--work p { color: var(--ink-mid); }

.work__title {
  margin: 0 0 2.25rem;
  line-height: 1;
}

.work__logo-link {
  display: inline-block;
  transition: transform 240ms ease, filter 240ms ease;
  cursor: pointer;
}

.work__logo-link:hover,
.work__logo-link:focus-visible {
  transform: translateY(-2px);
  filter: drop-shadow(0 6px 16px rgba(28, 26, 22, 0.18));
}

.work__logo-link:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 6px;
}

.work__logo {
  display: block;
  width: clamp(16rem, 34vw, 24rem);
  height: auto;
  max-width: 100%;
}

.work__logline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.125rem, 1.85vw, 1.3125rem);
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 2.5rem;
  max-width: 38rem;
}

.work__credits {
  margin: 0 0 2.5rem;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--rule-gold);
}

.work__credit {
  display: grid;
  grid-template-columns: minmax(10rem, 14rem) 1fr;
  gap: 1.5rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--rule-gold);
  align-items: baseline;
}

.work__credit dt {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0;
}

.work__credit dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.35;
  color: var(--ink);
}

.work__status {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-mid);
  margin: 0 0 2rem;
  max-width: 40rem;
}

.work__link {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.8125rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0;
}

.work__link a {
  color: var(--gold-deep);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}

.work__link a:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* ---------- about / music ---------- */
.section--about .section__inner,
.section--music .section__inner {
  max-width: var(--measure);
}

.section--about p,
.section--music p {
  font-size: 1.0625rem;
  line-height: 1.75;
}

.music__reel {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.8125rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 1.75rem;
}

.music__reel a {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

.music__reel a:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* ---------- contact ---------- */
.contact {
  font-style: normal;
  padding: 0;
  max-width: 38rem;
}

.contact__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.875rem;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 0.4rem;
}

.contact__role {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 1.75rem;
}

.contact__line {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-mid);
  margin: 0 0 0.35rem;
}

.contact__line:last-child { margin-bottom: 0; }

.contact__line a {
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
}

.contact__line a:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2.5rem 1.75rem 3rem;
  background: var(--cream);
}

.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
}

.site-footer p {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0;
}

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .site-nav { padding: 0 1.25rem; gap: 0.75rem; }
  .tuner-mark--sm { font-size: 0.9375rem; }
  .site-nav__list { gap: 1rem; }
  .site-nav__list a { font-size: 0.6875rem; letter-spacing: 0.18em; }

  .section { padding-left: 1.25rem; padding-right: 1.25rem; }

  .work__credit {
    grid-template-columns: 1fr;
    gap: 0.15rem;
    padding: 0.9rem 0;
  }
  .work__credit dd { font-size: 1.125rem; }
}

@media (max-width: 420px) {
  .site-nav__list { gap: 0.65rem; }
  .site-nav__list a { font-size: 0.625rem; letter-spacing: 0.14em; }
}

::selection {
  background: rgba(211, 47, 47, 0.18);
  color: var(--ink);
}
