/* ==========================================================================
   LOYER MUSIC — design tokens
   Palette: warm ivory paper, viola-varnish amber accent, deep ink teal.
   Display type: Fraunces (soft serif, editorial warmth).
   Body type: Inter. Labels: Inter uppercase, tracked.
   Signature element: the "score line" — a single hairline rule that draws
   itself in on load and reappears as a section divider, standing for the
   one melodic through-line of a score.
   ========================================================================== */

:root {
  /* warm, slightly dimmed paper — not stark white, closer to the deep
     amber/red glow of the profile photo than a generic bright cream */
  --ivory: #EFE6D8;
  --ivory-deep: #E4D5BD;
  --paper: #F8F1E5;
  --ink: #1E1712;
  --ink-soft: #6B5C4E;
  --ink-faint: #9C8C7A;
  --amber: #D9692C;
  --amber-deep: #A93D1B;
  --amber-pale: #F1C7A4;
  --rust: #7A2A14;
  --teal: #1E4B49;
  --rose: #A84A60;
  --forest: #46532F;
  --gold: #C2933C;
  --slate: #38454C;
  --maroon-dark: #200C09;
  --line: #D6C3A4;
  --line-strong: #C1A87E;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, monospace;

  --container: 1180px;
  --gutter: clamp(1.5rem, 5vw, 4rem);

  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ivory); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

::selection { background: var(--amber-pale); color: var(--amber-deep); }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-deep);
}

.lede {
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 38em;
}

/* ----- score line, the signature element ----- */
.score-line {
  --w: 100%;
  position: relative;
  height: 1px;
  background: var(--line-strong);
  width: var(--w);
  overflow: hidden;
}
.score-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--ease);
}
.score-line.is-drawn::after { transform: scaleX(1); }

.score-divider {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 0;
}

/* ----- skip link ----- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--ivory);
  padding: 0.6rem 1rem;
  z-index: 200;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ----- header / nav ----- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.4rem 0;
  transition: background-color .4s var(--ease), padding .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: var(--ivory);
  padding: 0.9rem 0;
  border-bottom-color: var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand span { color: var(--amber-deep); }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2vw, 2.4rem);
}
.nav a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding: 0.3rem 0;
}
.nav a:hover { color: var(--ink); }
.nav a.is-active { color: var(--ink); }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--amber);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle span { top: 19px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); top: 0; }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); top: 0; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    z-index: 90;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1.6rem;
    background: var(--ivory);
    padding: 0 var(--gutter);
    overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .nav a { font-size: 1.4rem; }
}

/* ----- header icon buttons (instagram / gmail) ----- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: none;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.icon-btn svg { width: 18px; height: 18px; fill: currentColor; }
.icon-btn:hover {
  background: var(--amber-deep);
  border-color: var(--amber-deep);
  color: var(--paper);
}

/* ----- main spacing ----- */
main { display: block; }
.section {
  padding: clamp(4rem, 9vw, 7rem) 0;
}
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--panel { background: var(--ivory-deep); }

/* ----- hero ----- */
.hero {
  padding-top: clamp(7.5rem, 14vw, 10rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 320px; }
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  margin: 0.6rem 0 1.3rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--amber-deep);
}

.hero-photo {
  position: relative;
  border-radius: 50%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--ivory-deep);
  border: 1px solid var(--line);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn--primary {
  background: var(--ink);
  color: var(--ivory);
}
.btn--primary:hover { background: var(--amber-deep); border-color: var(--amber-deep); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--amber-deep); color: var(--amber-deep); }

/* ----- stats strip ----- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 2.4rem 1.6rem; }
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.7rem);
  color: var(--amber-deep);
}
.stat-label {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  max-width: 16em;
}

/* ----- pull quote ----- */
.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.45;
  max-width: 34em;
  color: var(--ink);
}
.pull-quote::before { content: "\201C"; color: var(--amber); }
.pull-quote::after { content: "\201D"; color: var(--amber); }

/* ----- card grid (nav teaser cards) ----- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 980px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
}
.teaser-card {
  display: block;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.teaser-card:hover {
  border-color: var(--amber);
  transform: translateY(-3px);
}
.teaser-card .eyebrow { display: block; margin-bottom: 0.8rem; }
.teaser-card h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
.teaser-card p { color: var(--ink-soft); font-size: 0.95rem; }
.teaser-card .arrow { display: inline-block; margin-top: 1.2rem; color: var(--amber-deep); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; }

/* ----- bio page ----- */
.bio-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 880px) {
  .bio-grid { grid-template-columns: 1fr; }
}
.bio-photo {
  border-radius: 50%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  position: sticky;
  top: 7rem;
  max-width: 380px;
}
.bio-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 880px) { .bio-photo { position: static; max-width: 320px; } }
.bio-copy p {
  margin-bottom: 1.3rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 38em;
}
.bio-copy p strong { color: var(--ink); }

.bio-feature {
  margin: 2.2rem 0;
}
.bio-feature img {
  width: 100%;
  border-radius: 14px;
  display: block;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border: 1px solid var(--line);
}
.bio-feature figcaption {
  margin-top: 0.7rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.highlights {
  margin-top: 1rem;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}
.highlights li {
  display: flex;
  gap: 0.9rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.highlights li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 0.5em;
  border-radius: 50%;
  background: var(--amber);
}

/* ----- how i work — process steps ----- */
.process {
  display: grid;
  gap: 0;
}
.process-step {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1.5rem;
  padding: 2.4rem 0;
  border-top: 1px solid var(--line);
}
.process-step:first-child { border-top: 1px solid var(--line); }
@media (max-width: 700px) {
  .process-step { grid-template-columns: 1fr; gap: 0.6rem; }
}
.process-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--amber-pale);
  font-weight: 500;
}
.process-step h3 {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}
.process-step p {
  color: var(--ink-soft);
  max-width: 38em;
  font-size: 1rem;
}

/* ----- contact page ----- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info dt {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 1.8rem;
}
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd {
  margin: 0.3rem 0 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
}
.contact-info dd a:hover { color: var(--amber-deep); }

.form {
  display: grid;
  gap: 1.2rem;
}
.field { display: grid; gap: 0.5rem; }
.field label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--amber-deep);
  box-shadow: 0 0 0 3px var(--amber-pale);
}
.form .btn { justify-self: start; margin-top: 0.4rem; border: 0; cursor: pointer; }
.form .btn--primary { background: var(--amber-deep); border-color: var(--amber-deep); }
.form .btn--primary:hover { background: var(--ink); border-color: var(--ink); }
.form-note { font-size: 0.85rem; color: var(--ink-faint); }

/* ----- footer ----- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.6rem 0;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-footer p { font-size: 0.85rem; color: var(--ink-faint); }
.footer-social { display: flex; gap: 1.2rem; }
.footer-social a { font-size: 0.85rem; color: var(--ink-soft); font-weight: 600; }
.footer-social a:hover { color: var(--amber-deep); }

/* ----- reveal-on-scroll ----- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----- scroll cue pointing to the listen section ----- */
.scroll-cue {
  display: flex;
  justify-content: center;
  margin-top: 3.5rem;
}
.scroll-cue a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color .3s var(--ease);
}
.scroll-cue a:hover { color: var(--amber-deep); }
.scroll-cue svg { width: 18px; height: 18px; }

/* ----- track grid (listen section) ----- */
.track-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.8rem;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.track-card { flex: 0 0 calc((100% - 2 * 1.8rem) / 3); }
@media (max-width: 700px) {
  .track-card { flex-basis: calc((100% - 1.8rem) / 2); }
}
@media (max-width: 460px) {
  .track-grid { max-width: 280px; }
  .track-card { flex-basis: 100%; }
}

.track-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 0;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.track-card audio { display: none; }

.track-play {
  position: relative;
  z-index: 2;
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 50%;
  background: rgba(20, 14, 10, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.track-card:hover .track-play { background: rgba(20, 14, 10, 0.65); transform: scale(1.06); }
.track-play svg { width: 22px; height: 22px; fill: #FBF8F2; }
.track-play .icon-pause { display: none; }
.track-card.is-playing .track-play .icon-play { display: none; }
.track-card.is-playing .track-play .icon-pause { display: block; }

.track-title {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #FBF8F2;
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.track-progress {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 14%;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.18);
  z-index: 2;
}
.track-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: #FBF8F2;
}

/* moods — a minimal field of color and texture per genre */
.mood-orchestral { background: linear-gradient(150deg, var(--ink), var(--teal)); }
.mood-love-theme { background: linear-gradient(150deg, var(--rose), var(--amber-pale)); }
.mood-romantic-comedy { background: linear-gradient(150deg, var(--amber), var(--rose)); }
.mood-rock {
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 14px),
    linear-gradient(150deg, var(--ink), var(--rust));
}
.mood-ethnic {
  background:
    radial-gradient(circle, rgba(255,255,255,0.16) 1.5px, transparent 1.5px) 0 0 / 16px 16px,
    linear-gradient(150deg, var(--rust), var(--gold));
}
.mood-action-trailer {
  background:
    repeating-linear-gradient(115deg, rgba(0,0,0,0.18) 0 6px, transparent 6px 22px),
    linear-gradient(135deg, var(--ink), var(--rust));
}
.mood-kids-music {
  background:
    radial-gradient(circle, rgba(255,255,255,0.25) 2px, transparent 2px) 0 0 / 20px 20px,
    linear-gradient(150deg, var(--gold), var(--amber-pale));
}
.mood-string-quartet {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 11px),
    linear-gradient(180deg, #15100c, var(--ink));
}
.mood-uplifting-music { background: linear-gradient(0deg, var(--gold), var(--ivory-deep)); }
.mood-chill-videogame {
  background:
    radial-gradient(circle, rgba(255,255,255,0.18) 1.5px, transparent 1.5px) 0 0 / 14px 14px,
    linear-gradient(150deg, var(--slate), var(--teal));
}
.mood-folk {
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 18px),
    linear-gradient(150deg, var(--forest), var(--gold));
}
.mood-horror-music { background: radial-gradient(circle at 50% 30%, #2c0f0a, var(--maroon-dark)); }
.mood-medieval-music {
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,0.12) 0 1px, transparent 1px 12px),
    linear-gradient(150deg, var(--forest), var(--rust));
}
.mood-mystery-trailer { background: radial-gradient(circle at 30% 30%, var(--slate), var(--ink)); }

/* ----- music & projects grid ----- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
@media (max-width: 980px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .project-grid { grid-template-columns: 1fr; } }

.project-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.project-thumb {
  overflow: hidden;
}
.project-thumb img {
  width: 100%;
  height: auto;
  display: block;
}
.project-thumb--placeholder {
  aspect-ratio: 4 / 3;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.project-thumb-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.3;
  text-align: center;
  color: var(--amber-pale);
  margin: 0;
}
.project-body {
  padding: 1.3rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
.project-type {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-deep);
}
.project-card h3 {
  font-size: 1.25rem;
}
.project-role {
  font-size: 0.88rem;
  color: var(--ink-soft);
}
/* ----- page intro block shared across bio/how-i-work/contact ----- */
.page-intro h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0.6rem 0 1rem;
}
.page-intro { padding-top: clamp(7rem, 12vw, 9rem); padding-bottom: 1rem; }
