/* Kirsten’s Nails — exhibit draft */
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  --ink: #08060a;
  --ink-2: #120d12;
  --bone: #f6eee9;
  --bone-dim: rgba(246, 238, 233, .72);
  --bone-faint: rgba(246, 238, 233, .46);
  --blush: #ffc2d8;
  --candy: #ff5aa0;
  --candy-deep: #e0307c;
  --line: rgba(255, 214, 230, .18);
  --serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(1.25rem, 4.2vw, 4.5rem);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); color: var(--bone); -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body { margin: 0; font-family: var(--sans); font-size: clamp(15px, 1.02vw + 9px, 18px); line-height: 1.55; font-weight: 420; letter-spacing: .005em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: rgba(255, 194, 216, .55); transition: color .25s, text-decoration-color .25s; }
a:hover { color: var(--blush); text-decoration-color: var(--blush); }
:focus-visible { outline: 2px solid var(--blush); outline-offset: 4px; border-radius: 4px; }
em { font-style: italic; }
::selection { background: var(--candy); color: #fff; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; padding: .7rem 1rem; background: var(--bone); color: var(--ink); border-radius: 999px; font-weight: 600; text-decoration: none; transition: top .2s; }
.skip:focus { top: 1rem; }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: clamp(.9rem, 2vw, 1.5rem) var(--pad); background: linear-gradient(to bottom, rgba(8, 6, 10, .72), rgba(8, 6, 10, 0)); }
.wordmark { font-family: var(--serif); font-size: clamp(1.3rem, 1.2vw + .9rem, 1.7rem); line-height: 1; text-decoration: none; letter-spacing: .005em; white-space: nowrap; }
.wordmark em { color: var(--blush); }
.site-header ul { display: flex; gap: clamp(.9rem, 2.2vw, 2.2rem); list-style: none; margin: 0; padding: 0; align-items: center; }
.site-header nav a { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--bone-dim); padding: .5rem 0; }
.site-header nav a:hover { color: var(--bone); }
.site-header nav li:nth-child(2) a { color: var(--bone); padding: .55rem 1.05rem; border: 1px solid rgba(255, 194, 216, .45); border-radius: 999px; background: rgba(255, 90, 160, .08); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.site-header nav li:nth-child(2) a:hover { background: rgba(255, 90, 160, .22); }

/* ---------- stage (WebGL) ---------- */
.stage { position: fixed; inset: 0; z-index: 0; pointer-events: none; height: 100lvh; height: 100vh; }
@supports (height: 100lvh) { .stage { height: 100lvh; } }
#hall { width: 100%; height: 100%; display: block; }
.stage__grade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 6, 10, .55) 0%, rgba(8, 6, 10, .18) 32%, rgba(8, 6, 10, 0) 52%); }
.veil { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; align-content: center; gap: 1.4rem; background: var(--ink); transition: opacity 1.4s var(--ease), visibility 0s linear 1.4s; }
.veil span { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.2rem); opacity: .9; }
.veil em { color: var(--blush); }
.veil__bar { display: block; width: 9rem; height: 1px; background: rgba(255, 255, 255, .12); position: relative; overflow: hidden; }
.veil__bar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--blush), transparent); transform: translateX(-100%); animation: veil 1.6s var(--ease) infinite; }
@keyframes veil { to { transform: translateX(100%); } }
.is-ready .veil, .is-static .veil, .no-js .veil { opacity: 0; visibility: hidden; }

.hud { position: fixed; right: var(--pad); bottom: clamp(1rem, 3vh, 2rem); z-index: 20; display: grid; grid-template-columns: auto auto; gap: .25rem 1rem; align-items: end; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--bone-faint); opacity: 0; transition: opacity .6s; }
.hud.is-on { opacity: 1; }
.hud__count { font-family: var(--serif); font-size: 1.6rem; letter-spacing: 0; text-transform: none; color: var(--bone); }
.hud__count span { color: var(--bone-faint); font-size: 1rem; }
.hud__rail { grid-column: 1 / -1; height: 1px; background: rgba(255, 255, 255, .14); width: 9rem; }
.hud__rail i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--blush), var(--candy)); }
.is-static .hud { display: none; }

/* ---------- story ---------- */
main { position: relative; z-index: 10; }
.beat { position: relative; }
.beat__pin { position: relative; }
.beat__copy { max-width: 31rem; }
.eyebrow, .placard__no { font-size: .72rem; font-weight: 650; letter-spacing: .26em; text-transform: uppercase; color: var(--blush); margin: 0 0 1.1rem; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: .95; letter-spacing: -.012em; margin: 0 0 1.25rem; text-wrap: balance; }
h1 { font-size: clamp(3.6rem, 8.4vw, 8.6rem); }
h2 { font-size: clamp(3rem, 6.4vw, 6.4rem); }
h3 { font-size: clamp(2.6rem, 4.9vw, 5rem); }
h1 em, h2 em { color: var(--blush); }
.beat p { margin: 0 0 1rem; color: var(--bone-dim); max-width: 27rem; }
.lede { font-size: 1.18em; color: var(--bone) !important; }
.actions { margin-top: 2rem !important; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; font: 650 .82rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; padding: 1.1rem 1.7rem; border-radius: 999px; border: 0; cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s var(--ease), filter .3s; }
.btn--gel { color: #2a0614; background: radial-gradient(120% 140% at 30% 0%, #fff 0%, #ffd3e4 18%, #ff8cbf 52%, #ff4f9a 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -6px 14px rgba(170, 20, 80, .35), 0 10px 40px -8px rgba(255, 80, 150, .55), 0 0 0 1px rgba(255, 210, 230, .4); }
.btn--gel:hover { color: #2a0614; transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -6px 14px rgba(170, 20, 80, .35), 0 16px 50px -8px rgba(255, 80, 150, .75), 0 0 0 1px rgba(255, 220, 236, .6); }
.btn--gel:active { transform: translateY(0); filter: brightness(.96); }

.scroll-cue { display: flex; align-items: center; gap: .9rem; margin-top: 2.6rem !important; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--bone-faint) !important; }
.scroll-cue__line { width: 3.2rem; height: 1px; background: rgba(255, 255, 255, .18); position: relative; overflow: hidden; }
.scroll-cue__line::after { content: ""; position: absolute; inset: 0; background: var(--blush); transform: translateX(-100%); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 60%, 100% { transform: translateX(100%); } }

.placard h3 { margin-bottom: .9rem; }
.placard__date { font-size: .82rem; letter-spacing: .08em; color: var(--bone-faint) !important; margin-bottom: 1.4rem !important; }
.placard__date span { letter-spacing: .2em; }
.placard__seen { position: relative; padding-left: 1.1rem; border-left: 1px solid var(--line); }
.placard__link { display: inline-block; margin-top: .9rem; font-size: .76rem; font-weight: 650; letter-spacing: .18em; text-transform: uppercase; color: var(--blush); text-decoration: none; border-bottom: 1px solid rgba(255, 194, 216, .4); padding-bottom: .3rem; }
.placard__link::after { content: " →"; }
.placard__link:hover { border-color: var(--blush); }

/* ---------- motion mode: pinned beats over the WebGL hall ---------- */
.is-motion .beat:not(.beat--book) { height: 165vh; }
.is-motion .beat--hero { height: 150vh; }
.is-motion .beat--threshold, .is-motion .beat--intro { height: 150vh; }
.is-motion .beat--salon { height: 175vh; }
.is-motion .beat:not(.beat--book) .beat__pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; padding: 0 var(--pad); }
.is-motion .beat__copy { opacity: var(--vis, 1); transform: translate3d(0, calc((1 - var(--vis, 1)) * var(--dir, 1) * 2.2rem), 0); will-change: opacity, transform; filter: blur(calc((1 - var(--vis, 1)) * 6px)); }
.is-motion .beat--piece .exhibit, .is-motion .salon { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.is-motion .beat__copy h1, .is-motion .beat__copy h2, .is-motion .beat__copy h3 { text-shadow: 0 2px 40px rgba(8, 6, 10, .6); }

/* booking bay */
.beat--book { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 7rem var(--pad) 4rem; }
.book { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 33rem); gap: clamp(2rem, 6vw, 7rem); align-items: center; }
.book__intro p { color: var(--bone-dim); max-width: 26rem; }
.book__form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; padding: clamp(1.4rem, 3vw, 2.4rem); border-radius: 26px; background: linear-gradient(160deg, rgba(40, 22, 32, .62), rgba(16, 10, 16, .72)); border: 1px solid rgba(255, 200, 225, .2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 40px 120px -30px rgba(255, 60, 140, .35); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); }
.preview-flag { grid-column: 1 / -1; margin: 0 0 .2rem; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blush); }
.preview-flag span { font-size: .6rem; vertical-align: .15em; margin-right: .35rem; }
.field { display: grid; gap: .45rem; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: .72rem; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-dim); }
.field small { font-size: .76rem; color: var(--bone-faint); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--bone); background: rgba(8, 6, 10, .55); border: 1px solid rgba(255, 214, 230, .2); border-radius: 12px; padding: .85rem 1rem; transition: border-color .25s, box-shadow .25s, background .25s; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--blush) 50%), linear-gradient(135deg, var(--blush) 50%, transparent 50%); background-position: calc(100% - 1.2rem) 55%, calc(100% - .9rem) 55%; background-size: .32rem .32rem; background-repeat: no-repeat; padding-right: 2.4rem; }
.field select option { background: #1a1016; }
.field textarea { resize: vertical; min-height: 6rem; }
.field input::placeholder, .field textarea::placeholder { color: rgba(246, 238, 233, .32); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blush); box-shadow: 0 0 0 3px rgba(255, 120, 180, .25); background: rgba(8, 6, 10, .75); }
.field input[aria-invalid="true"] { border-color: #ff8aa0; }
.book__submit { margin-top: .4rem; }
.book__submit .btn { width: 100%; }
.book__status { grid-column: 1 / -1; font-size: .92rem; color: var(--bone); }
.book__status:empty { display: none; }
.book__status { padding: 1rem 1.1rem; border-radius: 14px; background: rgba(255, 90, 160, .1); border: 1px solid rgba(255, 194, 216, .35); }
.book__status strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.4rem; margin-bottom: .25rem; }
.book__status:focus { outline: none; }

.site-footer { position: relative; z-index: 10; padding: 2.4rem var(--pad) 2.8rem; border-top: 1px solid rgba(255, 255, 255, .07); background: linear-gradient(to top, rgba(8, 6, 10, .95), rgba(8, 6, 10, .6)); font-size: .86rem; color: var(--bone-dim); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.site-footer p { margin: 0; }
.wordmark--sm { font-size: 1.15rem; color: var(--bone); }
.site-footer__small { color: var(--bone-faint); }

/* ---------- static exhibit (reduced motion / no WebGL) ---------- */
.is-static .beat { min-height: 0; overflow-x: hidden; overflow-x: clip; }
.is-static .beat__pin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); padding: clamp(5rem, 12vh, 9rem) var(--pad); }
.is-static .beat--hero .beat__pin { min-height: 92vh; padding-top: 8rem; }
.is-static .beat--threshold .beat__pin, .is-static .beat--intro .beat__pin { padding-block: 4rem; }
.is-static .scroll-cue { display: none; }
.is-static .beat--salon .beat__pin { grid-template-columns: 1fr; }
.is-static .beat--piece:nth-of-type(even) .beat__copy { order: 2; }

.exhibit { margin: 0; justify-self: center; position: relative; width: min(100%, 25rem); }
.exhibit::before { /* the light beam from above */ content: ""; position: absolute; left: 50%; bottom: 30%; width: 170%; height: 190%; transform: translateX(-50%); background: conic-gradient(from 180deg at 50% 0%, transparent 166deg, rgba(255, 228, 238, .13) 176deg, rgba(255, 240, 246, .2) 180deg, rgba(255, 228, 238, .13) 184deg, transparent 194deg); -webkit-mask: linear-gradient(to bottom, transparent, #000 40%); mask: linear-gradient(to bottom, transparent, #000 40%); pointer-events: none; z-index: -1; }
.exhibit::after { /* light pool on the floor */ content: ""; position: absolute; left: 50%; top: 100%; width: 150%; height: 5rem; transform: translate(-50%, -1rem); background: radial-gradient(50% 50% at 50% 50%, rgba(255, 190, 220, .22), transparent 70%); pointer-events: none; z-index: -1; }
.exhibit__frame { position: relative; padding: 9%; border-radius: 4px; background: linear-gradient(#f2dfdc, #e9d3cf); box-shadow: 0 0 0 3px #1a1216, 0 0 0 5px #c9b7c6, 0 0 0 6px #fff4fa, 0 0 0 16px #120d10, 0 0 0 17px rgba(255, 220, 236, .25), 0 50px 90px -30px rgba(0, 0, 0, .9), 0 0 120px -10px rgba(255, 120, 180, .25); }
.exhibit__frame::after { /* glass sheen */ content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .16) 46%, rgba(255, 230, 245, .05) 52%, transparent 60%); pointer-events: none; }
.exhibit img { width: 100%; height: auto; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2), 0 1px 0 rgba(255, 255, 255, .6), 0 -2px 6px rgba(0, 0, 0, .25); }
.exhibit figcaption { margin-top: 2.4rem; text-align: center; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--bone-faint); }
.salon { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(1.4rem, 3vw, 3rem); align-items: end; margin-top: 2rem; }
.exhibit--sm { width: 100%; }
.exhibit--sm .exhibit__frame { box-shadow: 0 0 0 2px #1a1216, 0 0 0 3px #c9b7c6, 0 0 0 10px #120d10, 0 30px 60px -20px rgba(0, 0, 0, .9); }
.exhibit--sm figcaption { margin-top: 1.4rem; font-size: .62rem; }

/* still mode keeps one rendered frame of the hall behind; no-gl paints the hall in CSS */
.is-still .stage__grade { background: linear-gradient(180deg, rgba(8, 6, 10, .2), rgba(8, 6, 10, .6) 60%, rgba(8, 6, 10, .78)); }
.is-still .beat--threshold, .is-still .beat--intro, .is-still .beat--piece, .is-still .beat--salon { background: linear-gradient(180deg, rgba(8, 6, 10, 0), rgba(8, 6, 10, .45) 20%, rgba(8, 6, 10, .45) 80%, rgba(8, 6, 10, 0)); }
.no-gl .stage { display: none; }
.no-gl body { background:
  radial-gradient(60% 40% at 50% 8%, rgba(255, 140, 190, .16), transparent 70%),
  repeating-linear-gradient(90deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 9vw),
  radial-gradient(120% 60% at 50% 100%, rgba(255, 90, 160, .08), transparent 60%),
  linear-gradient(180deg, #0d090d, #08060a 30%, #0b080b 70%, #140b11);
  background-attachment: fixed; }
.no-gl body::before { /* static glitter */ content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .55; background-image: radial-gradient(1.2px 1.2px at 12% 22%, #fff, transparent), radial-gradient(1px 1px at 72% 14%, #ffd1e4, transparent), radial-gradient(1.4px 1.4px at 38% 66%, #fff4c8, transparent), radial-gradient(1px 1px at 88% 52%, #c9f2ff, transparent), radial-gradient(1.2px 1.2px at 56% 34%, #ffe1ee, transparent), radial-gradient(1px 1px at 22% 84%, #fff, transparent), radial-gradient(1.3px 1.3px at 64% 88%, #ffc9de, transparent); background-size: 340px 340px, 420px 420px, 380px 380px, 460px 460px, 300px 300px, 520px 520px, 360px 360px; }

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  .site-header { padding-top: max(.9rem, env(safe-area-inset-top)); }
  .site-header nav li:first-child { display: none; }
  .site-header nav a { font-size: .68rem; letter-spacing: .12em; }
  .site-header nav li:nth-child(2) a { padding: .5rem .85rem; }
  .stage__grade { background: linear-gradient(0deg, rgba(8, 6, 10, .88) 0%, rgba(8, 6, 10, .5) 34%, rgba(8, 6, 10, 0) 58%); }
  .is-motion .beat:not(.beat--book) { height: 150vh; }
  .is-motion .beat:not(.beat--book) .beat__pin { align-items: flex-end; padding-bottom: max(2.2rem, calc(env(safe-area-inset-bottom) + 1.6rem)); }
  .is-motion .beat--hero .beat__pin { align-items: flex-end; }
  .beat__copy { max-width: 100%; }
  .placard__seen { display: none; }
  .is-motion .placard h3 { font-size: clamp(2.2rem, 10vw, 3rem); }
  .hud { display: none; }
  .book { grid-template-columns: 1fr; }
  .book__form { grid-template-columns: 1fr; }
  .is-static .beat__pin { grid-template-columns: 1fr; padding-block: 4rem; }
  .is-static .beat--piece:nth-of-type(even) .beat__copy { order: 0; }
  .salon { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .salon .exhibit:last-child { grid-column: 1 / -1; width: 50%; justify-self: center; }
  .exhibit { width: min(84%, 22rem); }
  .site-footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
