/* Marquee — an evening at a Lagos theatre. Stage black, velvet curtains and gold
   lamplight, with tall poster type (Big Shoulders Display) over plain Barlow text.
   The page runs like a show: curtain up, the artist, his story in chapters, the set
   list, the dates, the book, and a final zoom onto the stage to book him.

   Motion: html.motion is set in <head> only when JS runs and the visitor has not
   asked for reduced motion. Without it, every section shows its finished state. */
:root {
  --paper: #F3EFE6;
  --paper-deep: #EAE4D6;
  --ink: #16140F;
  --faint: #6F6A5E;
  --hairline: #CDC5B2;
  --gold: #957322;        /* gold on paper: large text only */
  --gold-lit: #D2AE5C;    /* gold on dark */
  --stage: #0D0B08;
  --on-dark: #D8D2C4;
  --display: "Big Shoulders Display", Impact, "Arial Narrow", sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --head-h: 64px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--head-h); }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 48px); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; line-height: 0.92; margin: 0; text-wrap: balance; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--faint); margin: 0; }
.on-dark .eyebrow { color: var(--gold-lit); }
:focus-visible { outline: 2px solid var(--gold-lit); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold-lit); color: var(--ink); padding: 10px 14px; font-weight: 600; }
.skip:focus { top: 12px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border: 1px solid currentColor; background: transparent; color: inherit;
  font: 600 13px/1 var(--body); letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.on-dark .btn:hover, .mast .btn:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn.gold { background: var(--gold-lit); border-color: var(--gold-lit); color: var(--ink); }
.btn.gold:hover { background: transparent; border-color: var(--gold-lit); color: var(--gold-lit); }

/* ---------- masthead ---------- */
.mast { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--head-h); color: var(--paper);
  background: rgba(13,11,8,.94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(210,174,92,.35); }
.mast .wrap { height: 100%; max-width: none; display: flex; align-items: center; gap: 28px; }
.brand { font: 800 28px/1 var(--display); text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none; margin-right: auto; }
.nav { display: flex; gap: 26px; }
.nav a { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; color: rgba(243,239,230,.75); }
.nav a:hover { color: var(--gold-lit); }
.mast .btn { min-height: 40px; padding: 0 18px; }
.menu-btn { display: none; min-height: 40px; padding: 0 14px; background: transparent; color: var(--paper); border: 1px solid rgba(243,239,230,.4);
  font: 600 12px/1 var(--body); letter-spacing: 0.18em; text-transform: uppercase; cursor: pointer; }
@media (max-width: 900px) {
  .mast .wrap { gap: 10px; }
  .js .menu-btn { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; top: var(--head-h); left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--stage); border-bottom: 1px solid rgba(210,174,92,.35); padding: 6px 0 12px; }
  .nav a { padding: 14px clamp(16px, 4vw, 48px); font-size: 13px; }
  .mast.open .nav { display: flex; }
}

/* ---------- pinned sections (shared) ---------- */
.pin { position: relative; --p: 1; }
.sticky { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; }
.motion .pin { --p: 0; }
.motion .pin > .sticky { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; }
.motion .hero { height: 260vh; }
.motion .artist { height: 240vh; }
.motion .finale { height: 250vh; }
.pin-end { position: absolute; left: 0; top: calc(100% - 100vh); width: 1px; height: 1px; }

/* ---------- curtain up (hero) ---------- */
.hero .sticky { background: var(--stage); color: var(--paper);
  --o: clamp(0, calc(var(--p) / .55), 1);           /* curtains open */
  --t: clamp(0, calc((var(--p) - .4) / .4), 1); }   /* name steps in */
/* The photo is tall and narrow, so instead of framing it, the whole stage becomes his room:
   a blurred, darkened copy fills the width, and the sharp photo stands full height in the
   middle with its sides and foot fading into it. Both brighten as the curtains part. */
/* backdrop shows the top of the photo (red curtains and stage lights, the room behind him),
   so the blur continues the sharp photo's edges instead of showing a giant out-of-focus figure */
.backdrop { position: absolute; inset: -80px; background: url("../img/teemac-hero-flute.jpg") 50% 6% / cover;
  filter: blur(48px) brightness(.5) saturate(1.2); opacity: var(--o); will-change: opacity; }
.backdrop::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 80% at 50% 45%, transparent 40%, rgba(13,11,8,.7)); }
.spot { position: absolute; inset: 0; background: radial-gradient(ellipse 46% 78% at 50% -6%, rgba(255,228,170,.32), rgba(255,228,170,.06) 56%, transparent 76%); opacity: calc(.2 + var(--o) * .8); }
.hero-stage { position: absolute; inset: 0; text-align: center; }
.portrait { position: absolute; left: 50%; top: calc(var(--head-h) + 3vh); height: calc(100% - var(--head-h) - 3vh); aspect-ratio: 950 / 1600; max-width: 100%;
  transform: translateX(-50%) scale(calc(1.06 - var(--o) * .06)); transform-origin: 50% 30%; filter: brightness(calc(.35 + var(--o) * .65));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent), linear-gradient(180deg, #000 52%, transparent 97%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent), linear-gradient(180deg, #000 52%, transparent 97%);
  mask-composite: intersect; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hero-text { position: absolute; left: 0; right: 0; bottom: clamp(24px, 6vh, 64px); padding-inline: calc(7vw + 8px); }   /* side padding clears the gathered curtains */
.hero .eyebrow { color: rgba(243,239,230,.8); margin-bottom: 6px; opacity: var(--t); }
.hero-text .eyebrow, .hero-text .role, .hero-sub { text-shadow: 0 1px 2px rgba(0,0,0,.6), 0 2px 16px rgba(0,0,0,.85); }
.hero-name { position: relative; font-size: clamp(76px, 11.5vw, 172px); color: var(--paper); text-shadow: 0 6px 40px rgba(0,0,0,.75);
  opacity: var(--t); transform: translateY(calc((1 - var(--t)) * 50px)); }
@media (max-width: 600px) {
  .portrait { -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent), linear-gradient(180deg, #000 52%, transparent 97%);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent), linear-gradient(180deg, #000 52%, transparent 97%); }
}
.role { font-weight: 500; font-size: clamp(13px, 1.4vw, 16px); letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-lit); margin: 14px 0 0; opacity: var(--t); }
.hero-sub { max-width: 46ch; margin: 10px auto 0; color: var(--on-dark); font-size: 16px; opacity: var(--t); }
.hero .cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; opacity: var(--t); }
.motion .hero:not(.revealed) .cta { visibility: hidden; }
.curtain, .valance, .hint { display: none; }
.motion .curtain { display: block; position: absolute; top: 0; bottom: 0; width: 50.5%; z-index: 10; will-change: transform;
  background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,0) 22%, rgba(0,0,0,0) 70%, rgba(0,0,0,.55)),
              repeating-linear-gradient(90deg, #2c0708 0, #5e1518 1.6%, #8b2a2d 2.6%, #651719 3.8%, #2c0708 5.2%);
  transform: scaleX(calc(1 - var(--o) * .88)); }
.curtain.l { left: 0; transform-origin: 0 50%; }
.curtain.r { right: 0; transform-origin: 100% 50%; }
.curtain::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: repeating-linear-gradient(90deg, var(--gold-lit) 0 2px, transparent 2px 5px); opacity: .85; }
.motion .valance { display: block; position: absolute; top: var(--head-h); left: 0; right: 0; height: 10vh; z-index: 11;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,0)), repeating-linear-gradient(90deg, #3b0a0c 0, #6e1b1e 2%, #3b0a0c 4%);
  border-bottom: 3px solid var(--gold); box-shadow: 0 10px 30px rgba(0,0,0,.5); transform: translateY(calc(var(--o) * -72%)); }
.motion .hint { display: block; position: absolute; z-index: 12; bottom: 30px; left: 0; right: 0; margin: 0; text-align: center;
  font-size: 12px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--paper); opacity: calc(1 - var(--o) * 3); }
.motion .hint::after { content: "↓"; display: block; margin-top: 8px; font-size: 16px; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(6px); } }
@media (max-height: 700px) { .hero-sub { display: none; } }

/* ---------- act headings ---------- */
.act-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: clamp(22px, 3vw, 40px); }
.act-head .n { font: 800 clamp(30px, 3.6vw, 46px)/1 var(--display); color: var(--gold); }
.act-head h2 { font-size: clamp(40px, 5.2vw, 72px); }
.act-head .fill { flex: 1; border-bottom: 1px solid var(--hairline); transform: translateY(-10px); }
.on-dark .act-head .n { color: var(--gold-lit); }
.on-dark .act-head .fill { border-color: rgba(243,239,230,.18); }

/* ---------- I. The Artist: words light up ---------- */
.artist .sticky { background: var(--paper-deep); display: flex; align-items: center;
  --s: clamp(0, calc((var(--p) - .82) / .12), 1); }   /* stats arrive once the paragraph is lit */
.artist-in { width: 100%; padding-block: calc(var(--head-h) + 32px) 40px; }
.artist-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 5vw, 72px); align-items: end; }
.lightup { font-family: var(--display); font-weight: 600; font-size: clamp(26px, min(4.6vw, 6.8vh), 72px); line-height: 1.08; letter-spacing: 0.005em; margin: 0; max-width: 30ch; }
.lightup .g { color: var(--gold); }
.motion .lightup .w { color: rgba(22,20,15,.14); transition: color .3s; }
.motion .lightup .w.on { color: var(--ink); }
.motion .lightup .g .w.on { color: var(--gold); }
/* wide screens: the stats stand in a column beside the paragraph; narrow: a row beneath it */
.stat-line { display: flex; flex-direction: column; gap: 26px; border-left: 1px solid var(--hairline); padding: 4px 0 6px 28px;
  opacity: var(--s); transform: translateY(calc((1 - var(--s)) * 14px)); }
.stat-line .s { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.stat-line b { display: block; font: 800 clamp(34px, 3.4vw, 52px)/1 var(--display); letter-spacing: 0.01em; color: var(--ink); margin-bottom: 6px; }
@media (max-width: 900px) {
  .artist-body { grid-template-columns: 1fr; gap: 0; }
  .stat-line { flex-direction: row; flex-wrap: wrap; gap: 14px 40px; border-left: 0; border-top: 1px solid var(--hairline); margin-top: clamp(22px, 4vh, 40px); padding: 18px 0 0; }
}
@media (max-width: 600px) { .stat-line { gap: 12px 26px; } .stat-line .s { font-size: 11px; } .stat-line b { font-size: 32px; } }

/* ---------- II. The Story: pinned chapters ---------- */
.story { padding-block: clamp(72px, 10vw, 120px) clamp(40px, 6vw, 80px); }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); }
.story-media { position: sticky; top: calc(var(--head-h) + 24px); height: min(calc(100vh - var(--head-h) - 48px), 720px); align-self: start;
  display: flex; flex-direction: column; gap: 12px; }
.story-frame { position: relative; flex: 1; margin: 0; overflow: hidden; background: var(--paper-deep); border: 1px solid var(--ink); }
.story-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(100% 0 0 0); transition: clip-path 1.1s cubic-bezier(.65,0,.35,1); }
.story-img.on { clip-path: inset(0 0 0 0); }
.story-count { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); }
.story-count b { color: var(--ink); }
.chapter { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; }
.js .chapter { opacity: .22; transition: opacity .6s; }
.js .chapter.on { opacity: 1; }
.chapter .n { font: 800 44px/1 var(--display); color: var(--gold); }
.chapter .eyebrow { margin: 14px 0 10px; }
.chapter h3 { font-size: clamp(40px, 5vw, 72px); }
.chapter p:last-child { max-width: 40ch; font-size: 19px; margin: 18px 0 0; }
@media (max-width: 760px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-media { top: var(--head-h); height: 44vh; z-index: 2; background: var(--paper); padding-block: 10px; }
  .chapter { min-height: 62vh; }
  .chapter .n { font-size: 36px; }
}

/* ---------- III. Selected Works ---------- */
.works-sec { background: var(--stage); color: var(--paper); padding-block: clamp(72px, 10vw, 120px); }
.works { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(243,239,230,.3); }
.work { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; align-items: baseline; gap: 8px 28px; padding: 20px 2px; border-bottom: 1px solid rgba(243,239,230,.12); }
.work .no { font: 800 24px/1 var(--display); color: var(--gold-lit); }
.work .t { font: 700 clamp(26px, 3vw, 38px)/1 var(--display); text-transform: uppercase; }
.work .d { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(243,239,230,.62); }
.work .len { font-size: 15px; font-variant-numeric: tabular-nums; color: rgba(243,239,230,.62); }
.works-note { margin: 20px 0 0; font-size: 14px; color: rgba(243,239,230,.62); }
@media (max-width: 640px) { .work { grid-template-columns: 44px minmax(0, 1fr); } .work .d, .work .len { grid-column: 2; } }

/* ---------- IV. Engagements ---------- */
.engage { padding-block: clamp(72px, 10vw, 120px); }
.gigs { border-top: 1px solid var(--ink); }
.gig { display: grid; grid-template-columns: 190px minmax(0, 1fr) auto; align-items: center; gap: 12px 28px; padding: 22px 2px; border-bottom: 1px solid var(--hairline); }
.gig .d { font: 800 30px/1 var(--display); text-transform: uppercase; color: var(--gold); }
.gig .n { display: block; font: 700 clamp(26px, 2.8vw, 36px)/1 var(--display); text-transform: uppercase; }
.gig .v { display: block; margin-top: 8px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
@media (max-width: 640px) { .gig { grid-template-columns: 1fr; } .gig .btn { justify-self: start; } }

/* ---------- V. Resonance ---------- */
.res { background: var(--ink); color: var(--paper); padding-block: clamp(72px, 10vw, 120px); }
.res-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.res h2 { font-size: clamp(68px, 10vw, 150px); margin: 12px 0 20px; }
.res p { color: var(--on-dark); max-width: 50ch; margin: 0 0 14px; }
.res .meta { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-lit); }
.res-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.res-photo { position: relative; margin: 0; isolation: isolate; }
.res-photo::before { content: ""; position: absolute; inset: 16px -16px 40px 16px; border: 1px solid rgba(210,174,92,.5); z-index: -1; }
.res-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 28%; border: 1px solid var(--gold-lit); }
.res-photo figcaption { margin-top: 14px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(243,239,230,.6); }
@media (max-width: 860px) { .res-grid { grid-template-columns: 1fr; } .res-photo { max-width: 420px; } }

/* ---------- VI. Booking: zoom into the stage ---------- */
.finale .sticky { background: var(--stage); color: var(--paper); --iy: 22%; --ix: 38%;
  --z: clamp(0, calc(var(--p) / .7), 1);             /* arch opens to full screen */
  --t: clamp(0, calc((var(--p) - .62) / .28), 1); }  /* booking call arrives */
.zoom { position: absolute; inset: 0; overflow: hidden;
  clip-path: inset(calc((1 - var(--z)) * var(--iy)) calc((1 - var(--z)) * var(--ix)) round calc((1 - var(--z)) * 999px) calc((1 - var(--z)) * 999px) 0 0); }
/* While the arch is small, zoom in around his face (--fx/--fy, where it sits in the full-screen
   crop) and shift it up into the arch; both ease back to zero as the arch opens to full screen. */
.zoom img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 26%;
  --fx: 44%; --fy: 16%; transform-origin: var(--fx) var(--fy);
  transform: translate(calc((1 - var(--z)) * (50% - var(--fx))), calc((1 - var(--z)) * (40% - var(--fy)))) scale(calc(1.3 - var(--z) * .3)); }
.shade { position: absolute; inset: 0; opacity: var(--t);
  background: linear-gradient(90deg, rgba(13,11,8,.85), rgba(13,11,8,.35) 60%, rgba(13,11,8,.1)), linear-gradient(0deg, rgba(13,11,8,.8), transparent 55%); }
.pre { display: none; }
.motion .pre { display: block; position: absolute; left: 0; right: 0; top: calc(100% - var(--iy) + 2%); text-align: center; opacity: calc(1 - var(--z) * 4); }
.pre-line { font: 800 clamp(28px, 3vw, 40px)/1 var(--display); text-transform: uppercase; margin: 10px 0 0; }
.post { position: absolute; left: 0; right: 0; bottom: clamp(40px, 10vh, 110px); opacity: var(--t); transform: translateY(calc((1 - var(--t)) * 30px)); }
.post h2 { font-size: clamp(52px, 8vw, 124px); max-width: 11ch; margin: 12px 0 18px; }
.post p { max-width: 42ch; color: var(--on-dark); margin: 0 0 26px; }
.motion .finale:not(.revealed) .post .btn { visibility: hidden; }
@media (max-width: 760px) { .finale .sticky { --iy: 22%; --ix: 20%; } .zoom img { object-position: 50% 30%; --fx: 39%; --fy: 21%; } }

/* ---------- footer ---------- */
footer { background: var(--stage); color: rgba(243,239,230,.7); padding: 40px 0 48px; border-top: 1px solid rgba(210,174,92,.3); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 32px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.foot-brand { font: 800 30px/1 var(--display); letter-spacing: 0.04em; color: var(--paper); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
