/* Yanga v6 · the opening stage: eight looks, louvre-slat changes, the stamped name,
   music notes from the mic down the page to the closing block. */

.stage { position: relative; min-height: 100svh; display: grid; align-items: center; padding: calc(var(--bar-h) + 1.5rem) clamp(1.1rem, 5vw, 5rem) 1.5rem; overflow: clip; }
.stage__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1rem, 3vw, 3rem); align-items: center; width: 100%; max-width: 86rem; margin: 0 auto; }

/* ---------------------------------------------------- the stamped name -- */
.stage__eyebrow { display: flex; align-items: center; gap: .8rem; margin: 0 0 1.2rem; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.stage__eyebrow i { width: 2.4rem; height: 1px; background: currentColor; opacity: .6; }
.stamped { margin: 0; display: grid; justify-items: start; gap: .1em; }
.stamped__name { display: flex; font-family: var(--sc-font-display); font-size: clamp(4.2rem, 2rem + 8vw, 9.5rem); line-height: .85; letter-spacing: -.01em; color: var(--ink); }
.stamped__name > span { display: inline-block; position: relative; }
.js .stamped__name > span { opacity: 0; transform: scale(1.9) rotate(var(--rot, -6deg)); filter: blur(2px); }
.stamped.go .stamped__name > span { animation: letterStamp 520ms cubic-bezier(.2, .9, .2, 1) forwards; }
.stamped.go .stamped__name > span:nth-child(1) { --rot: -8deg; animation-delay: 150ms; } .stamped.go .stamped__name > span:nth-child(2) { --rot: 6deg; animation-delay: 380ms; }
.stamped.go .stamped__name > span:nth-child(3) { --rot: -4deg; animation-delay: 610ms; } .stamped.go .stamped__name > span:nth-child(4) { --rot: 7deg; animation-delay: 840ms; }
.stamped.go .stamped__name > span:nth-child(5) { --rot: -5deg; animation-delay: 1070ms; }
@keyframes letterStamp { 0% { opacity: 0; transform: scale(1.9) rotate(var(--rot)); filter: blur(2px); } 55% { opacity: 1; transform: scale(.94) rotate(0deg); filter: blur(0); } 75% { transform: scale(1.03); } 100% { opacity: 1; transform: none; filter: none; } }
/* each stamp leaves a little ink burst */
.stamped__name > span::before { content: ""; position: absolute; inset: 18% 8%; border-radius: 50%; background: radial-gradient(circle, color-mix(in oklab, var(--orange) 45%, transparent), transparent 70%); opacity: 0; pointer-events: none; }
.stamped.go .stamped__name > span::before { animation: inkBurst 700ms ease-out forwards; animation-delay: inherit; }
@keyframes inkBurst { 0% { opacity: 0; transform: scale(.4); } 40% { opacity: .9; } 100% { opacity: 0; transform: scale(1.6); } }
.stamped .atri::after { bottom: .2em; }
.stamped__bar { display: block; width: 100%; max-width: 6.6em; font-size: clamp(4.2rem, 2rem + 8vw, 9.5rem); }
.stamped__bar span { display: block; background: var(--green); color: var(--bone); font-family: var(--sc-font-text); font-weight: 700; font-size: .19em; letter-spacing: .5em; text-indent: .5em; text-align: center; padding: .28em 0; }
.js .stamped__bar span { clip-path: inset(0 100% 0 0); }
.stamped.go .stamped__bar span { animation: barSweep 700ms cubic-bezier(.6, 0, .2, 1) 1.35s forwards; }
@keyframes barSweep { to { clip-path: inset(0 0 0 0); } }
.stamped__office { font-family: var(--sc-font-display); font-style: italic; color: var(--cognac); font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.6rem); line-height: 1.1; margin-top: .2em; }
.js .stamped__office { clip-path: inset(-10% 100% -10% 0); }
.stamped.go .stamped__office { animation: writeOn 1100ms cubic-bezier(.4, 0, .2, 1) 2s forwards; }
@keyframes writeOn { to { clip-path: inset(-10% 0 -10% 0); } }
.stage__role { margin: 1.3rem 0 0; min-height: 1.6em; font-family: var(--sc-font-display); font-size: clamp(1.3rem, 1.05rem + 1vw, 1.9rem); color: var(--green); }
.stage__role span { display: inline-block; }
.stage__role.swap span { animation: roleIn 520ms var(--sc-ease-out); }
@keyframes roleIn { from { opacity: 0; transform: translate3d(0, .5em, 0); } }
.stage__sub { margin: .8rem 0 1.4rem; max-width: 40ch; color: var(--ink-2); font-size: clamp(1.02rem, .98rem + .3vw, 1.2rem); line-height: 1.55; }
.stage__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.4rem; }

/* ----------------------------------------------- the figure and the disc -- */
.stage__fig { position: relative; height: min(84svh, 860px); width: 100%; }
.stage__disc { position: absolute; left: 50%; top: 40%; width: min(78%, 68svh); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: var(--disc, var(--orange)); transition: background-color 700ms var(--sc-ease-out); overflow: hidden; box-shadow: inset 0 -30px 60px rgb(0 0 0 / .12); }
.stage__disc img { position: absolute; inset: 6%; width: 88%; height: 88%; opacity: .14; filter: invert(1); animation: sealSpin 60s linear infinite; }
@keyframes sealSpin { to { rotate: 360deg; } }
.stage__img { position: absolute; left: 0; right: 0; bottom: 2.6rem; margin: 0 auto; height: calc(100% - 2.6rem); width: 100%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 18px 24px rgb(40 25 10 / .22)); }
.stage__slats { position: absolute; left: 0; right: 0; top: 0; bottom: 2.6rem; display: flex; pointer-events: none; perspective: 1200px; }
.stage__slats span { flex: 1; height: 100%; background-repeat: no-repeat; transform-origin: 50% 50%; transform: rotateY(90deg); opacity: 0; backface-visibility: hidden; }
.stage__slats.go span { animation: slat 640ms cubic-bezier(.3, .8, .25, 1) forwards; }
@keyframes slat { 0% { transform: rotateY(90deg); opacity: 0; } 30% { opacity: 1; } 100% { transform: rotateY(0deg); opacity: 1; } }
.stage__pips { position: absolute; left: 50%; bottom: .4rem; translate: -50% 0; display: flex; gap: .5rem; }
.pip { width: 34px; height: 34px; border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.pip::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--bone-3); transition: background 200ms, transform 200ms; }
.pip.is-on::before { background: var(--green); transform: scale(1.4); }
.pip:hover::before { background: var(--cognac); }
.stage__replay { position: absolute; right: 0; bottom: 3.2rem; min-height: 40px; padding: 0 .9rem; border-radius: 999px; border: 1px solid var(--hair-strong); background: #FBF7EF; font-weight: 700; font-size: .82rem; cursor: pointer; }

/* --------------------------------------------- notes leaving the mic -- */
.stage__notes { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.note { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; color: var(--c, var(--orange)); animation: noteFloat var(--dur, 3.2s) cubic-bezier(.25, .6, .3, 1) forwards; }
.note svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 3px rgb(0 0 0 / .2)); }
@keyframes noteFloat { 0% { opacity: 0; transform: translate(0, 0) scale(.4) rotate(0deg); } 12% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx, 80px), var(--dy, -160px)) scale(1.1) rotate(var(--r, 20deg)); } }

/* ------------------------------------ the trail of notes down the page -- */
main { position: relative; }
.trail { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 6; overflow: visible; }
.trail__line { fill: none; stroke: var(--orange); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1 9; opacity: .85; }
.trail__note { opacity: 0; transform-box: fill-box; transform-origin: center; transition: opacity 400ms; }
.trail__note.is-on { opacity: 1; animation: notePop 600ms cubic-bezier(.2, 1.4, .4, 1); }
@keyframes notePop { from { scale: .2; rotate: -30deg; } }
.trail__note path, .trail__note ellipse, .trail__note rect { stroke: var(--bone); stroke-width: 1.4; paint-order: stroke; }

@media (max-width: 900px) {
  .stage { padding-top: calc(var(--bar-h) + .6rem); min-height: auto; }
  .stage__grid { grid-template-columns: 1fr; }
  .stage__fig { order: -1; height: 56svh; }
  .stage__disc { width: min(86%, 46svh); }
  .stamped__name { font-size: clamp(3.6rem, 18vw, 5.2rem); }
  .stamped__bar { font-size: clamp(3.6rem, 18vw, 5.2rem); }
  .stage__replay { bottom: 2.8rem; }
  .trail__line { stroke-width: 1.6; }
}
@media (prefers-reduced-motion: reduce) {
  .js .stamped__name > span, .js .stamped__bar span, .js .stamped__office { opacity: 1; transform: none; filter: none; clip-path: none; animation: none !important; }
  .stage__disc img { animation: none; }
  .trail__note { opacity: 1; animation: none !important; }
}

/* the letters wear his suits (fabric cut from the studio photos) */
.stamped__name > span { background-size: 140px; background-position: center; -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 rgb(255 255 255 / .5)) drop-shadow(0 6px 10px rgb(40 25 10 / .18)); }
.stamped__name > span:nth-child(1) { background-image: url(assets/fabric/green.jpg); }
.stamped__name > span:nth-child(2) { background-image: url(assets/fabric/cognac.jpg); }
.stamped__name > span:nth-child(3) { background-image: url(assets/fabric/burgundy.jpg); }
.stamped__name > span:nth-child(4) { background-image: url(assets/fabric/mustard.jpg); }
.stamped__name > span:nth-child(5) { background-image: url(assets/fabric/navy.jpg); }
.stamped__name > span.is-worn { animation: worn 900ms var(--sc-ease-out); }
@keyframes worn { 30% { transform: translateY(-.08em) scale(1.06); } }
.stamped__bar span { background: linear-gradient(rgb(21 18 15 / .38), rgb(21 18 15 / .38)), var(--fab, url(assets/fabric/green.jpg)) center / 160px; transition: background 600ms; }
@keyframes letterStamp2 { 0% { opacity: 0; transform: scale(1.9) rotate(var(--rot)); } 55% { opacity: 1; transform: scale(.94) rotate(0deg); } 75% { transform: scale(1.03); } 100% { opacity: 1; transform: none; } }
.stamped.go .stamped__name > span { animation-name: letterStamp2; }
@media (prefers-reduced-motion: reduce) { .stamped__name > span { filter: none; } }

/* ------------------------------------------- the closing block, regrouped -- */
.cta2 { grid-template-columns: auto minmax(0, 1.15fr) minmax(0, 1fr); gap: 0; align-items: center; padding: clamp(1.6rem, 3vw, 2.6rem) clamp(1.2rem, 3vw, 2.6rem); }
.cta2 > * { padding-inline: clamp(1rem, 2.4vw, 2.4rem); }
.cta2 > * + * { border-left: 1px solid color-mix(in oklab, var(--bone) 16%, transparent); }
.cta2__seal { margin: 0; display: grid; justify-items: center; gap: .9rem; text-align: center; padding-left: 0 !important; }
.cta2 .seal3d--cta { width: clamp(130px, 11vw, 160px); margin: 0; }
.cta2__seal figcaption { display: grid; gap: .25rem; }
.cta2__seal figcaption b { font-family: var(--sc-font-display); font-weight: 400; font-size: 1.15rem; color: var(--bone); }
.cta2__seal figcaption span { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--on-green-2); }
.cta2__talk .d-md { margin: .5rem 0 1.2rem; }
.cta2__social { padding-right: 0 !important; }
.cta2__social .socials { grid-template-columns: 1fr 1fr; }
@media (max-width: 1150px) {
  .cta2 { grid-template-columns: auto minmax(0, 1fr); row-gap: 1.8rem; }
  .cta2__social { grid-column: 1 / -1; border-left: 0 !important; border-top: 1px solid color-mix(in oklab, var(--bone) 16%, transparent); padding: 1.6rem 0 0 !important; }
}
@media (max-width: 640px) {
  .cta2 { grid-template-columns: 1fr; text-align: left; }
  .cta2 > * { padding-inline: 0; }
  .cta2 > * + * { border-left: 0; border-top: 1px solid color-mix(in oklab, var(--bone) 16%, transparent); padding-top: 1.6rem; }
  .cta2__seal { justify-self: center; }
}

/* the footer nameplate stamps itself in (reversed colours on green) */
.stamped--foot { margin: 0; }
.stamped--foot .stamped__name { font-size: clamp(3rem, 2rem + 3vw, 4.6rem); }
.stamped--foot .stamped__name > span { background: none !important; color: var(--bone); -webkit-background-clip: border-box; background-clip: border-box; filter: none; }
.stamped--foot .stamped__bar { font-size: clamp(3rem, 2rem + 3vw, 4.6rem); }
.stamped--foot .stamped__bar span { background: var(--bone) !important; color: var(--green); }
.stamped--foot .stamped__office { color: var(--cognac-lit); font-size: clamp(1.2rem, 1rem + .8vw, 1.6rem); }
