/* ─── Tokens ─── */
:root {
  --paper: #f3ebdf;
  --ink: #1c1a18;
  --ink-mid: #4a4540;
  --ink-light: #857d75;
  --rule: #d9cfc3;
  --accent: #7c5c3a;
  --white: #fff;

  --font-serif: 'Newsreader', Georgia, serif;
  --font-sans: 'Instrument Sans', system-ui, sans-serif;

  --max: 1200px;
  --gap: clamp(1.5rem, 4vw, 3rem);
  --section-gap: clamp(5rem, 10vw, 9rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: clamp(1rem, 1.1vw, 1.125rem); line-height: 1.65; }
img, picture, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ─── Utilities ─── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: absolute; top: -100%; left: 1rem; background: var(--ink); color: var(--white); padding: .5rem 1rem; border-radius: 0 0 .5rem .5rem; font-size: .875rem; z-index: 999; }
.skip-link:focus { top: 0; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gap); }
section[id] { scroll-margin-top: 72px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--ink); color: var(--white);
  font-family: var(--font-sans); font-size: .9rem; font-weight: 500; letter-spacing: .02em;
  padding: .75rem 1.4rem; border-radius: 2rem;
  text-decoration: none; transition: background .2s, transform .15s;
}
.btn:hover { background: var(--accent); transform: translateY(-1px); }
.btn--small { padding: .55rem 1.1rem; font-size: .825rem; }
.btn__arrow { flex-shrink: 0; }

.link-arrow { display: inline-flex; align-items: center; gap: .3em; font-size: .9rem; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; color: var(--ink-mid); transition: color .2s; }
.link-arrow:hover { color: var(--ink); }
.link-arrow--light { color: rgba(255,255,255,.75); }
.link-arrow--light:hover { color: #fff; }

/* ─── Header ─── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(243,235,223,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.header__inner { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 400; }
.brand__role { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-light); }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 2rem; }
.nav a { font-size: .875rem; font-weight: 500; text-decoration: none; color: var(--ink-mid); transition: color .2s; }
.nav a:hover { color: var(--ink); }
.header__cta { margin-left: 1rem; }
.menu-toggle { display: none; }

/* ─── Mobile nav ─── */
.mobile-nav {
  position: fixed; inset: 0; background: var(--ink); color: var(--white);
  z-index: 200; display: flex; flex-direction: column; justify-content: center;
  padding: var(--gap);
  transform: translateX(100%); transition: transform .4s var(--ease-out);
}
.mobile-nav.is-open { transform: none; }
.mobile-nav nav ul { display: flex; flex-direction: column; gap: .5rem; }
.mobile-nav nav a { font-family: var(--font-serif); font-size: clamp(2rem, 7vw, 3.5rem); font-style: italic; text-decoration: none; opacity: 0; transform: translateX(2rem); transition: opacity .3s var(--ease-out) calc(var(--i)*.07s + .15s), transform .3s var(--ease-out) calc(var(--i)*.07s + .15s); }
.mobile-nav.is-open nav a { opacity: 1; transform: none; }
.mobile-nav__foot { margin-top: auto; display: flex; flex-direction: column; gap: 1rem; }
.social--plain { display: flex; gap: 1.5rem; }
.social--plain a { font-size: .875rem; color: rgba(255,255,255,.65); text-decoration: none; }
.social--plain a:hover { color: #fff; }

.menu-toggle__bars { display: flex; flex-direction: column; gap: 5px; }
.menu-toggle__bars i { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: transform .3s, opacity .3s; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ─── Hero ─── */
.hero { position: relative; padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero__grain {
  position: absolute; inset: -50%; width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
  opacity: .5; pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--gap) calc(var(--gap) * 2); align-items: center; }
.hero__title { font-family: var(--font-serif); font-size: clamp(3rem, 7vw, 8rem); font-weight: 300; line-height: 1.04; letter-spacing: -.02em; margin-bottom: 1.5rem; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line span { display: block; }
.hero__title em { font-style: italic; }
.hero__lede { max-width: 48ch; color: var(--ink-mid); margin-bottom: 2.5rem; }
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.hero__figure { position: relative; }
.hero__frame { border-radius: 1rem; overflow: hidden; aspect-ratio: 4/5; background: var(--rule); }
.hero__parallax { width: 100%; height: 110%; margin-top: -5%; }
.hero__parallax picture, .hero__parallax img { width: 100%; height: 100%; object-fit: cover; }
.hero__caption { display: flex; justify-content: flex-end; padding-top: .75rem; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-light); }
.hero__meta { display: flex; flex-wrap: wrap; gap: .75rem 2rem; margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--rule); font-size: .8rem; color: var(--ink-light); }
.hero__meta li::before { content: "—  "; }

/* ─── Intro animations ─── */
[data-intro] { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease-out) var(--d, 0ms), transform .6s var(--ease-out) var(--d, 0ms); }
.is-ready [data-intro] { opacity: 1; transform: none; }
.hero__title .line span { transform: translateY(100%); transition: transform .7s var(--ease-out) var(--d, 200ms); }
.is-ready .hero__title .line span { transform: none; }
.hero__title .line:nth-child(1) span { transition-delay: 180ms; }
.hero__title .line:nth-child(2) span { transition-delay: 260ms; }
.hero__title .line:nth-child(3) span { transition-delay: 340ms; }

/* ─── Scroll reveal ─── */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out) var(--d, 0ms), transform .7s var(--ease-out) var(--d, 0ms); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ─── Band ─── */
.band { overflow: hidden; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: .9rem 0; background: var(--white); }
.band__track { display: flex; gap: 2rem; white-space: nowrap; animation: scroll-band 30s linear infinite; }
.band__track span { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-light); }
.band__track i { display: inline-block; width: 4px; height: 4px; background: var(--rule); border-radius: 50%; vertical-align: middle; }
@keyframes scroll-band { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.band:hover .band__track { animation-play-state: paused; }

/* ─── Section shared ─── */
.sec-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head h2 { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 300; line-height: 1.1; }
.sec-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.sec-head__aside { max-width: 30ch; color: var(--ink-light); font-size: .9rem; }
.sec-lede { font-size: 1.1rem; color: var(--ink-mid); max-width: 52ch; margin-bottom: 2.5rem; }

/* ─── Frame ─── */
.frame { overflow: hidden; border-radius: .75rem; background: var(--rule); }
.frame--portrait { aspect-ratio: 4/5; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
figure figcaption { padding-top: .6rem; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-light); }

/* ─── About ─── */
.about { padding: var(--section-gap) 0; }
.about__grid { display: grid; grid-template-columns: 1fr 2fr; gap: calc(var(--gap) * 2); align-items: start; }
.prose p { max-width: 65ch; color: var(--ink-mid); margin-bottom: 1.25rem; }
.prose p:last-child { margin-bottom: 0; }
.pull { margin: 2.5rem 0; padding-left: 1.5rem; border-left: 1px solid var(--rule); }
.pull p { font-family: var(--font-serif); font-size: 1.2rem; font-style: italic; color: var(--ink); line-height: 1.4; margin-bottom: .5rem; }
.pull cite { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-light); font-style: normal; }
.cred { margin-top: 2.5rem; }
.cred__intro { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-light); margin-bottom: 1rem; }
.cred__list { display: flex; flex-direction: column; gap: .75rem; }
.cred__item { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1.5rem; padding: .75rem 0; border-top: 1px solid var(--rule); font-size: .875rem; }
.cred__item dt { font-weight: 500; }
.cred__item dd { color: var(--ink-mid); }

/* ─── Music ─── */
.music { padding: var(--section-gap) 0; background: var(--white); }
.music__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: calc(var(--gap) * 2); align-items: start; }
.video { position: relative; border-radius: .75rem; overflow: hidden; background: var(--ink); cursor: pointer; }
.video img { width: 100%; aspect-ratio: 16/9; object-fit: cover; opacity: .85; transition: opacity .2s; }
.video:hover img { opacity: .7; }
.video__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--white); }
.video__play::before { content: ''; position: absolute; width: 72px; height: 72px; background: rgba(28,26,24,.65); border-radius: 50%; backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.2); }
.video__play svg { position: relative; }
.video__meta { display: flex; align-items: center; justify-content: space-between; padding-top: .75rem; font-size: .8rem; color: var(--ink-light); }
.programme { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 2rem; }
.programme li { display: flex; gap: 1.25rem; padding: 1.25rem 0; border-top: 1px solid var(--rule); }
.programme h3 { font-size: .95rem; font-weight: 600; margin-bottom: .25rem; }
.programme p { font-size: .875rem; color: var(--ink-mid); }
.note { background: var(--paper); border-radius: .5rem; padding: 1.25rem 1.5rem; font-size: .875rem; color: var(--ink-mid); }
.note a { font-weight: 500; }

/* ─── Teaching ─── */
.teaching { padding: var(--section-gap) 0; }
.teaching__grid { display: grid; grid-template-columns: 1fr 2fr; gap: calc(var(--gap) * 2); align-items: start; }
.teaching__body h2 { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 300; line-height: 1.1; margin-bottom: 1.5rem; }
.offer { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2.5rem; }
.offer li { padding: 1.5rem 0; border-top: 1px solid var(--rule); }
.offer h3 { font-size: 1rem; font-weight: 600; margin-bottom: .4rem; }
.offer p { font-size: .9rem; color: var(--ink-mid); }
.teaching__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem; }

/* ─── Contact ─── */
.contact { padding: var(--section-gap) 0; background: var(--ink); color: var(--white); }
.contact__inner { max-width: 860px; }
.contact h2 { font-family: var(--font-serif); font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 300; line-height: 1.08; margin-bottom: 1.5rem; }
.contact__lede { max-width: 50ch; color: rgba(255,255,255,.65); margin-bottom: 3rem; }
.email { display: flex; align-items: center; gap: .5rem; font-family: var(--font-serif); font-size: clamp(1.4rem, 3vw, 2.2rem); font-style: italic; color: var(--white); text-decoration: none; margin-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.2); padding-bottom: 1.5rem; transition: color .2s; }
.email:hover { color: rgba(255,255,255,.75); }
.email__arrow { font-style: normal; font-size: 1.5em; }
.inquiries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.1); border-radius: .5rem; overflow: hidden; }
.inq { display: flex; flex-direction: column; gap: .4rem; padding: 1.5rem; background: rgba(255,255,255,.04); text-decoration: none; color: var(--white); transition: background .2s; }
.inq:hover { background: rgba(255,255,255,.1); }
.inq strong { font-size: .9rem; font-weight: 600; }
.inq em { font-size: .8rem; font-style: normal; color: rgba(255,255,255,.5); }

/* ─── Footer ─── */
.site-footer { padding: 3rem 0; border-top: 1px solid var(--rule); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--gap); align-items: start; margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px solid var(--rule); }
.footer__id { display: flex; align-items: center; gap: 1.25rem; }
.footer__id img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.footer__name { font-weight: 600; font-size: .95rem; }
.footer__tag { font-size: .8rem; color: var(--ink-light); }
.footer__nav ul, .footer__links ul { display: flex; flex-direction: column; gap: .6rem; }
.footer__nav a, .footer__links a { font-size: .875rem; color: var(--ink-mid); text-decoration: none; transition: color .2s; }
.footer__nav a:hover, .footer__links a:hover { color: var(--ink); }
.footer__bottom { display: flex; justify-content: space-between; font-size: .8rem; color: var(--ink-light); }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__figure { order: -1; max-width: 400px; }
  .about__grid, .teaching__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 360px; }
  .music__grid { grid-template-columns: 1fr; }
  .inquiries { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__id { grid-column: 1 / -1; }
  .sec-head--split { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .nav, .header__cta { display: none; }
  .menu-toggle { display: flex; align-items: center; margin-left: auto; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: .3rem; }
  .cred__item { grid-template-columns: 1fr; }
}
