/* site.css - Neil Anthony Edwards brand layer on top of the starter (style.css).
   Default = calm stacked layout. html.fx (set by site.js when motion is allowed) turns on the 3D sections. */

:root {
  --ink: #f3eee4;
  --paper: #0e0c0a;
  --paper-alt: #16130f;
  --accent: #c9a45c;
  --accent-hi: #ddbb76;
  --muted: rgba(243, 238, 228, 0.7);
  --line: rgba(201, 164, 92, 0.28);
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-ui: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
body { background: var(--paper); }
.btn { background: var(--accent); color: #15110a; letter-spacing: .02em; }
.btn:hover { background: var(--accent-hi); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { background: rgba(201,164,92,.12); }
.site-head__brand { font-size: 22px; letter-spacing: .04em; text-transform: uppercase; font-size: 15px; font-family: var(--font-ui); font-weight: 600; }
.sf-card__head { font-weight: 400; letter-spacing: -.005em; }
.sf-card__kicker { color: var(--accent); }
.sf-card h1.sf-card__head { font-size: clamp(44px, 8vw, 112px); }

.block { position: relative; z-index: 2; background: var(--paper); padding: clamp(80px, 12vw, 160px) 0; }
.block--alt { background: var(--paper-alt); }
.eyebrow { margin: 0 0 14px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.display { margin: 0 0 24px; font-family: var(--font-display); font-weight: 400; font-size: clamp(40px, 6.4vw, 92px); line-height: 1; letter-spacing: -.01em; }
.display em { font-style: italic; color: var(--accent-hi); font-size: .62em; }
.lede { font-size: clamp(18px, 1.6vw, 22px); color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.tag { display: inline-block; margin-left: 6px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); vertical-align: middle; }
figure { margin: 0; }
img { height: auto; }
.wrap p { max-width: 42rem; }

/* press bar */
.press-bar { position: relative; z-index: 2; background: #0a0907; border-block: 1px solid var(--line); padding: 22px 0; overflow: hidden; }
.press-bar__label { margin: 0 0 10px; text-align: center; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.press-bar__track { display: flex; width: max-content; }
.press-bar__list { display: flex; gap: 56px; margin: 0; padding: 0 28px; list-style: none; font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 28px); font-style: italic; white-space: nowrap; color: var(--ink); }
html.fx .press-bar__track { animation: marquee 38s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* now showing */
.now__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.now__art img { width: 100%; box-shadow: 0 40px 80px rgba(0,0,0,.6); outline: 10px solid #1d1913; outline-offset: -1px; }

/* story */
.story__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(20px, 3vw, 40px); margin-top: 48px; align-items: start; }
.story__photo img { width: 100%; filter: grayscale(.15) contrast(1.05); }
.story__photo--b { margin-top: 18vh; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding: 0 0 32px 28px; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.timeline__when { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.timeline p { margin: 6px 0 0; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 72px 0 0; border-top: 1px solid var(--line); padding-top: 40px; }
.stats dt { font-family: var(--font-display); font-size: clamp(56px, 7vw, 96px); line-height: 1; color: var(--accent-hi); }
.stats dd { margin: 8px 0 0; color: var(--muted); max-width: 16rem; }

/* 3D carousel: default is a scrollable row */
.carousel3d { position: relative; z-index: 2; background: radial-gradient(120% 80% at 50% 20%, #1c1712 0%, var(--paper) 60%); padding: clamp(80px, 10vw, 140px) 0; }
.carousel3d__track { display: flex; gap: 28px; margin: 40px 0 0; padding: 0 var(--gutter) 24px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; }
.art-card { flex: 0 0 min(320px, 72vw); scroll-snap-align: center; }
.art-card__btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.art-card__btn img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; box-shadow: 0 30px 60px rgba(0,0,0,.55); outline: 8px solid #1d1913; outline-offset: -1px; }
.art-card__title { margin: 16px 0 0; font-family: var(--font-display); font-size: 22px; }
html.fx .carousel3d { height: 420vh; padding: 0; }
html.fx .carousel3d__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; perspective: 1400px; }
html.fx .carousel3d__head { padding-top: 64px; }
html.fx .carousel3d__track { overflow: visible; padding: 0; margin-top: 2vh; transform-style: preserve-3d; will-change: transform; }
html.fx .art-card { flex-basis: min(30vw, 46vh); transform-style: preserve-3d; will-change: transform; transition: filter .3s; }
html.fx .carousel3d .art-card__btn img { aspect-ratio: auto; height: min(56vh, 40vw); width: auto; max-width: 100%; margin: 0 auto; object-fit: contain; }
html.fx .art-card__title { text-align: center; }

/* after hours */
.after__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); margin-top: 40px; }
.after__wide { grid-column: 1 / span 8; }
.after__tall { grid-column: 9 / span 4; margin-top: 22vh; }
.after__mid { grid-column: 3 / span 7; margin-top: -6vh; }
.after__grid img { width: 100%; box-shadow: 0 30px 70px rgba(0,0,0,.6); }
.after__grid figcaption { margin-top: 12px; font-family: var(--font-display); font-size: 20px; color: var(--muted); }

/* rooms: sticky stack */
.rooms { position: relative; z-index: 2; background: var(--paper-alt); padding: clamp(80px, 10vw, 140px) 0; }
.rooms__stack { list-style: none; margin: 40px auto 0; padding: 0 var(--gutter); max-width: 760px; }
.room { position: relative; margin-bottom: 6vh; }
.room img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.room__label { position: absolute; left: 20px; bottom: 16px; margin: 0; padding: 6px 12px; background: rgba(14,12,10,.75); font-family: var(--font-display); font-size: 20px; }
html.fx .room { position: sticky; top: calc(9vh + var(--i, 0) * 14px); transform-origin: 50% 0; transform: scale(var(--s, 1)); filter: brightness(var(--b, 1)); will-change: transform; }
html.fx .room img { max-height: 80vh; }
.rooms__credit { margin-top: 24px; }

/* press */
.press__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; margin-top: 32px; }
.press__photo img { width: 100%; box-shadow: 0 30px 70px rgba(0,0,0,.6); }
.press__photo figcaption { margin-top: 10px; }
.press__list { list-style: none; margin: 0; padding: 0; }
.press__list a { display: block; padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding-left .3s ease; }
.press__list a:hover { padding-left: 12px; }
.press__outlet { display: block; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.press__head { display: block; margin-top: 8px; font-family: var(--font-display); font-size: clamp(22px, 2.3vw, 30px); line-height: 1.15; }
.press__quote { display: block; margin-top: 10px; color: var(--muted); font-style: italic; }

/* shows */
.shows__list { list-style: none; margin: 32px 0 0; padding: 0; }
.shows__list li { display: grid; grid-template-columns: 220px 1fr auto; gap: 20px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--line); }
.shows__date { color: var(--accent); font-size: 14px; letter-spacing: .06em; }
.shows__name { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 34px); }
.shows__place { color: var(--muted); }

/* merch */
.merch__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); margin: 32px 0 24px; padding: 0; list-style: none; perspective: 900px; }
.merch__item a { display: block; text-decoration: none; background: #f5f2ec; color: #15110a; border-radius: 6px; overflow: hidden; }
.merch__item img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.merch__name, .merch__price { display: block; padding: 0 18px; }
.merch__name { padding-top: 14px; font-weight: 600; }
.merch__price { padding-bottom: 16px; color: #6b5a3a; }

/* inquire */
.inquire { position: relative; z-index: 2; min-height: 92vh; display: flex; align-items: center; overflow: hidden; background: #000; }
.inquire__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; transform: scale(1.1); }
.inquire__copy { position: relative; }

/* tilt + reveal + parallax (motion only) */
html.fx .tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out; transform-style: preserve-3d; }
html.fx .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
html.fx .reveal.is-in { opacity: 1; transform: none; }
html.fx .parallax { transform: translateY(var(--py, 0px)); will-change: transform; }

/* lightbox */
.lightbox { max-width: min(92vw, 1100px); max-height: 92vh; padding: 0; border: 0; background: #0b0a08; color: var(--ink); }
.lightbox::backdrop { background: rgba(0,0,0,.85); }
.lightbox__img { max-height: 78vh; width: auto; margin: 0 auto; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; }
.lightbox__title { margin: 0; font-family: var(--font-display); font-size: 24px; }
.lightbox__close { position: absolute; right: 8px; top: 4px; z-index: 1; border: 0; background: none; color: var(--ink); font-size: 34px; cursor: pointer; }

@media (max-width: 860px) {
  .now__grid, .press__grid { grid-template-columns: 1fr; }
  .story__grid { grid-template-columns: 1fr 1fr; }
  .timeline { grid-column: 1 / -1; }
  .story__photo--b { margin-top: 8vh; }
  .stats { grid-template-columns: 1fr; }
  .after__wide, .after__tall, .after__mid { grid-column: 1 / -1; margin-top: 0; }
  .shows__list li { grid-template-columns: 1fr; gap: 4px; }
  .merch__grid { grid-template-columns: 1fr 1fr; }
  html.fx .art-card { flex-basis: 64vw; }
  html.fx .carousel3d .art-card__btn img { height: 52vh; width: auto; }
}
@media (max-width: 700px) {
  .sf-card h1.sf-card__head { font-size: clamp(40px, 12vw, 64px); }
}

/* Stronger scrim: the gallery walk always has a distant piece on the copy side. */
.sf-live .sf-card::before { background: radial-gradient(58% 62% at 20% 50%, rgba(8,7,6,.78), rgba(8,7,6,0) 72%); }
.sf-live .sf-card[data-place="end"]::before { background: radial-gradient(58% 62% at 80% 50%, rgba(8,7,6,.78), rgba(8,7,6,0) 72%); }
@media (max-width: 700px) {
  .sf-live .sf-card::before, .sf-live .sf-card[data-place="end"]::before { background: linear-gradient(0deg, rgba(8,7,6,.85) 0%, rgba(8,7,6,.5) 30%, rgba(8,7,6,0) 55%); }
}

/* Header turns solid once the gallery walk is behind the reader. */
.site-head { transition: color .3s ease, background-color .3s ease; }
.site-head.is-solid { background: rgba(14, 12, 10, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
html:not(.fx) .site-head { background: rgba(14, 12, 10, .9); }

/* ---------- v2: ideas from the demo study (structure only) ---------- */

/* Motion switch in the header */
.motion-switch { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }

/* Chapter rail beside the gallery walk */
.chapters { position: fixed; right: clamp(12px, 2vw, 28px); top: 50%; z-index: 15; transform: translateY(-50%); transition: opacity .4s ease; }
.chapters[hidden] { display: block; opacity: 0; pointer-events: none; }
.chapters ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.chapters button { display: flex; align-items: center; justify-content: flex-end; gap: 10px; width: 100%; padding: 4px 0; border: 0; background: none; color: rgba(243,238,228,.45); font: 500 13px/1 var(--font-display); letter-spacing: .08em; cursor: pointer; }
.chapters button span { font: 500 11px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; opacity: 0; transform: translateX(6px); transition: opacity .3s, transform .3s; }
.chapters button::after { content: ""; width: 18px; height: 1px; background: currentColor; transition: width .3s; }
.chapters button:hover span, .chapters button:focus-visible span { opacity: 1; transform: none; }
.chapters button.is-on { color: var(--accent-hi); }
.chapters button.is-on::after { width: 34px; }
@media (max-width: 700px) { .chapters { display: none; } }

/* Giant outlined words behind sections */
.ghost { position: absolute; z-index: 0; left: 0; top: clamp(20px, 6vw, 80px); white-space: nowrap; pointer-events: none; user-select: none;
  font: 500 clamp(120px, 22vw, 360px)/0.8 var(--font-display); letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1px rgba(201,164,92,.22); transform: translateX(var(--dx, 0px)); will-change: transform; }
.ghost--after { top: auto; bottom: 6vh; }
.carousel3d__pin, .after, .archive { position: relative; }
.carousel3d__head, .after .wrap, .archive .wrap, .archive__stage { position: relative; z-index: 1; }
html.fx .carousel3d__pin .ghost { top: 8vh; }

/* Word-by-word heading reveal */
.display .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.display .w > span { display: inline-block; }
html.fx .display.split .w > span { transform: translateY(105%); transition: transform 1s cubic-bezier(.2,.7,.1,1); transition-delay: calc(var(--i, 0) * 70ms); }
html.fx .display.split.is-in .w > span { transform: none; }
html.fx .display.split.reveal { opacity: 1; transform: none; }

/* Gold strip reveal (Now showing) */
.strip-reveal { position: relative; }
html.fx .strip-reveal img { clip-path: inset(0 calc((1 - var(--rv, 1)) * 47%) 0 calc((1 - var(--rv, 1)) * 47%)); }
html.fx .strip-reveal::before, html.fx .strip-reveal::after { content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, transparent, var(--accent-hi), transparent); opacity: calc(1 - var(--rv, 1)); pointer-events: none; }
html.fx .strip-reveal::before { left: calc((1 - var(--rv, 1)) * 47%); }
html.fx .strip-reveal::after { right: calc((1 - var(--rv, 1)) * 47%); }

/* Stats count-up keeps width steady */
.stats dt { font-variant-numeric: tabular-nums; }

/* Archive */
.archive { overflow: hidden; }
.archive__filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 500 13px/1 var(--font-ui); cursor: pointer; transition: background-color .2s, color .2s; }
.chip span { opacity: .6; margin-left: 4px; }
.chip:hover { background: rgba(201,164,92,.12); }
.chip.is-on { background: var(--accent); color: #15110a; border-color: var(--accent); }
.archive__stage { perspective: 1400px; padding: 40px var(--gutter) 0; }
.archive__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: clamp(16px, 2vw, 28px); max-width: 1240px; margin: 0 auto; padding: 0; list-style: none; transform-origin: 50% 0; }
.archive__item { transition: opacity .35s ease, transform .35s ease; }
.archive__item.is-out { display: none; }
.archive__item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 0 18px 40px rgba(0,0,0,.5); transition: transform .5s cubic-bezier(.2,.7,.1,1); }
.archive__item:hover img { transform: translateY(-6px) scale(1.02); }
.archive__meta { display: grid; gap: 2px; margin: 12px 0 0; }
.archive__no { font: 500 11px/1 var(--font-ui); letter-spacing: .16em; color: var(--accent); }
.archive__title { font-family: var(--font-display); font-size: 20px; line-height: 1.15; }
.archive__series { font-size: 12px; color: var(--muted); }
.archive__meta .tag { justify-self: start; margin: 6px 0 0; }
.tag--inquire, .tag--showing { background: var(--accent); color: #15110a; border-color: var(--accent); }
html.fx .archive__grid { transform: rotateX(calc((1 - var(--in, 1)) * 30deg)) translateZ(calc((1 - var(--in, 1)) * -180px)); will-change: transform; }

/* Commission builder */
.commission .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.commission .eyebrow, .commission .display, .commission .wrap > .muted { grid-column: 1 / -1; }
.commission .display { margin-bottom: 8px; }
.cb { display: grid; gap: 28px; }
.cb__step { margin: 0; padding: 0; border: 0; }
.cb__step legend { margin-bottom: 14px; font: 400 26px/1 var(--font-display); }
.cb__step legend span { margin-right: 10px; font: 500 12px/1 var(--font-ui); letter-spacing: .16em; color: var(--accent); vertical-align: middle; }
.cb__options { display: flex; flex-wrap: wrap; gap: 10px; }
.cb__options--art { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cb input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.cb__card { position: relative; display: grid; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; transition: border-color .2s, transform .3s; }
.cb__card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.cb__card span { font-family: var(--font-display); font-size: 20px; }
.cb__card small { color: var(--muted); font-size: 12px; }
.cb__card:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); transform: translateY(-3px); }
.cb__pill span { display: inline-block; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; cursor: pointer; transition: background-color .2s, color .2s; }
.cb__pill input:checked + span { background: var(--accent); color: #15110a; border-color: var(--accent); }
.cb input:focus-visible + span, .cb__card:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.cb__field { display: grid; gap: 6px; margin-bottom: 14px; }
.cb__field span { font-size: 13px; color: var(--muted); }
.cb textarea, .cb select { width: 100%; padding: 12px; border-radius: 8px; border: 1px solid rgba(243,238,228,.2); background: #0e0c0a; color: var(--ink); font: inherit; }
.cb__summary { position: sticky; top: 90px; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: rgba(14,12,10,.7); }
.cb__note { margin: 0; white-space: pre-wrap; font: 15px/1.6 var(--font-ui); color: var(--ink); }
.cb__summary .actions { margin-top: 18px; }

@media (max-width: 860px) {
  .commission .wrap { grid-template-columns: 1fr; }
  .cb__summary { position: static; }
  .cb__options--art { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .cb__card span { font-size: 16px; }
  .cb__card small { display: none; }
  .archive__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Ghost words must never widen the page. */
.after, .archive { overflow-x: clip; }

/* Keep right-hand copy clear of the chapter rail. */
@media (min-width: 701px) { .sf-live .sf-card[data-place="end"] { padding-right: calc(var(--gutter) + 130px); } }
/* Archive thumbnails: plain cover crop, no carousel frame. */
.archive__item .art-card__btn img { outline: 0; }
/* Phones: no ghost words, flat archive. */
@media (max-width: 700px) {
  .ghost { display: none; }
  html.fx .archive__grid { transform: none; }
}
