/* Last Light: ukiyo-e gold-leaf lacquer on a sunset waterfront. */

@font-face { font-family: "Fraunces"; src: url("vendor/fonts/fraunces/400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("vendor/fonts/fraunces/700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("vendor/fonts/fraunces/400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("vendor/fonts/fraunces/700-italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("vendor/fonts/inter/400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("vendor/fonts/inter/700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --dusk: #f27a3e;
  --coral: #ef6a8a;
  --orchid: #b4448f;
  --violet: #6b3f9e;
  --indigo: #2c2f6e;
  --lacquer: #2a1b4f;
  --lacquer-2: #3d2363;
  --gold: #eebf5a;
  --gold-hi: #fbe2a0;
  --gold-lo: #b9822d;
  --ink: #fff3e4;
  --ink-soft: #f1dcd6;
  --seal: #d8452d;
  --display: "Fraunces", Georgia, serif;
  --body: "Inter", "Segoe UI", Roboto, sans-serif;
  --glide: cubic-bezier(.65, 0, .35, 1);
  --gutter: clamp(1.1rem, 4.5vw, 5.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: clamp(.95rem, .9rem + .2vw, 1.06rem);
  line-height: 1.6;
  color: var(--ink);
  background: var(--violet);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 4px; border-radius: 2px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 50; padding: .8rem 1.1rem; background: var(--lacquer); color: var(--ink); border: 1px solid var(--gold); text-decoration: none; transition: top .4s var(--glide); }
.skip:focus { top: 1rem; }

/* ------------------------------------------------ the world layer */
.world, .sky-fallback { position: fixed; inset: 0; width: 100%; height: 100%; }
.world { z-index: 0; display: block; opacity: 0; transition: opacity 2.4s var(--glide); }
.world.is-live { opacity: 1; }
.sky-fallback {
  z-index: -1;
  /* woodblock bokashi: banded sunset over a contour-line sea */
  background:
    radial-gradient(circle at 40% 58%, rgba(255, 214, 128, .95) 0 5.5vmin, rgba(255, 170, 90, .35) 6vmin, transparent 22vmin),
    repeating-linear-gradient(180deg, transparent 0 14px, rgba(255, 220, 200, .14) 14px 15px) 0 62% / 100% 38% no-repeat,
    linear-gradient(180deg, #26387a 0%, #3c3a8a 14%, #6b3f9e 28%, #a1489e 40%, #e0628c 50%, #f58a4e 58%, #f6a95a 62%, #4b3a8c 62.2%, #33306f 80%, #2b2a62 100%);
}
.no-webgl .world { display: none; }

/* ------------------------------------------------ static (default, reduced motion, no JS) */
.pan { position: relative; z-index: 1; }
.strip { position: relative; display: flex; flex-direction: column; gap: clamp(3rem, 8vh, 6rem); padding: clamp(3rem, 8vh, 6rem) 0; }
.panel { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: clamp(1.4rem, 3vw, 3.2rem); padding: 0 var(--gutter); }
.breath { display: none; }

/* ------------------------------------------------ horizontal pan (JS + motion allowed) */
.is-pan .pan__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.is-pan .strip { flex-direction: row; flex-wrap: nowrap; align-items: stretch; width: max-content; height: 100%; padding: 0; gap: 0; will-change: transform; }
.is-pan .panel { position: relative; z-index: 1; flex: 0 0 auto; flex-wrap: nowrap; align-items: safe center; height: 100%; padding: clamp(4.2rem, 11vh, 7rem) var(--gutter); }
.is-pan .breath { display: block; flex: 0 0 auto; width: 38vw; }
.is-pan .breath--wide { width: 58vw; }
.is-pan .strip::before, .is-pan .strip::after {
  content: ""; position: absolute; left: 0; right: 0; height: clamp(46px, 7vh, 72px);
  background: url("kumo.svg") repeat-x 0 0 / auto 100%; opacity: .5; pointer-events: none; z-index: 0;
}
.is-pan .strip::before { top: 1.2vh; }
.is-pan .strip::after { bottom: 1.2vh; transform: scaleY(-1); }

/* ------------------------------------------------ shared ornament */
.lacquer {
  position: relative;
  background:
    url("seigaiha.svg") repeat 0 0 / 48px 24px,
    linear-gradient(165deg, rgba(42, 27, 79, .9), rgba(61, 35, 99, .84) 60%, rgba(78, 34, 98, .86));
  border: 1px solid rgba(238, 191, 90, .8);
  outline: 1px solid rgba(238, 191, 90, .32);
  outline-offset: 7px;
  padding: clamp(1.4rem, 3vw, 2.6rem);
  box-shadow: 0 30px 80px -30px rgba(25, 10, 50, .7);
}
.lacquer::before { /* gold-leaf corner keylines */
  content: ""; position: absolute; inset: 10px; pointer-events: none;
  background:
    linear-gradient(var(--gold), var(--gold)) 0 0 / 22px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 0 0 / 1px 22px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 100% 100% / 22px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 100% 100% / 1px 22px no-repeat;
  opacity: .9;
}
.gold {
  background: linear-gradient(100deg, var(--gold-lo) 0%, var(--gold-hi) 28%, var(--gold) 46%, #fff0c4 58%, var(--gold) 72%, var(--gold-lo) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: leaf 9s var(--glide) infinite alternate;
}
@keyframes leaf { to { background-position: 100% 0; } }

.kicker { display: flex; align-items: center; gap: .7rem; margin: 0 0 .9rem; font-size: .78rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-hi); }
.kicker__rule { width: 2.2rem; height: 1px; background: var(--gold); }
.display { margin: 0 0 1rem; font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 1.2rem + 3vw, 4rem); line-height: 1.02; letter-spacing: -.015em; }
.display em { display: block; font-weight: 400; font-style: italic; color: var(--gold-hi); }
.lede { margin: 0 0 .8rem; max-width: 34ch; color: var(--ink); }
.fine { display: block; margin: 0; font-size: .82rem; color: var(--ink-soft); letter-spacing: .01em; }

.seal {
  display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem;
  font-family: var(--display); font-weight: 700; font-size: .78rem; line-height: .95; text-align: center; color: #fff6ea;
  background: var(--seal); border-radius: 3px;
  box-shadow: inset 0 0 0 2px rgba(255, 235, 215, .35), inset 0 0 0 4px var(--seal), inset 0 0 0 5px rgba(255, 235, 215, .5);
  transform: rotate(-4deg);
}
.cartouche {
  margin: 0; font-family: var(--display); font-weight: 400; font-style: italic; font-size: 1rem; letter-spacing: .06em; color: var(--lacquer);
  background: linear-gradient(180deg, #fff1d6, #f6dba6);
  border: 1px solid var(--gold-lo); outline: 1px solid rgba(255, 241, 214, .7); outline-offset: 2px;
  padding: .9rem .45rem;
}
.cartouche--v { writing-mode: vertical-rl; text-orientation: mixed; }

/* ------------------------------------------------ CTA + preview tag */
.cta {
  display: inline-flex; align-items: center; gap: .75rem; min-height: 48px; padding: .75rem 1.5rem .75rem 1rem;
  font-family: var(--display); font-weight: 700; font-size: 1.12rem; letter-spacing: .01em; text-decoration: none; color: var(--lacquer);
  background: linear-gradient(100deg, #f7d27a, var(--gold-hi) 40%, var(--gold) 70%, #f2b955);
  border: 1px solid #fff1c8; box-shadow: 0 0 0 4px rgba(42, 27, 79, .55), 0 0 0 5px rgba(238, 191, 90, .6), 0 18px 40px -16px rgba(242, 122, 62, .8);
  transition: transform .7s var(--glide), box-shadow .7s var(--glide);
}
.cta:hover { transform: translateY(-3px); box-shadow: 0 0 0 4px rgba(42, 27, 79, .55), 0 0 0 5px rgba(251, 226, 160, .95), 0 26px 50px -16px rgba(242, 122, 62, .95); }
.cta__seal { width: 1.6rem; height: 1.6rem; background: var(--seal); border-radius: 2px; box-shadow: inset 0 0 0 2px rgba(255, 235, 215, .45); transform: rotate(-6deg); }
.cta.is-pending, .mlink.is-pending, .xbtn.is-pending { cursor: not-allowed; }
.cta.is-pending { filter: saturate(.75); }
.cta.is-pending::after { content: "soon"; margin-left: .35rem; font-family: var(--body); font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; opacity: .75; }

.preview-tag { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1.1rem; padding: .32rem .8rem; font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-hi); border: 1px solid rgba(238, 191, 90, .6); border-radius: 999px; }
.preview-tag__dot { width: .45rem; height: .45rem; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 3px rgba(239, 106, 138, .25); }

/* ------------------------------------------------ I · hero */
.panel--hero { width: 100%; justify-content: space-between; }
.is-pan .panel--hero { width: 100vw; }
.hero__copy { max-width: 36rem; flex: 0 1 36rem; }
.hero__title { margin: 0 0 .6rem; font-family: var(--display); font-weight: 700; font-size: clamp(3.4rem, 1.5rem + 8.5vw, 9.6rem); line-height: .86; letter-spacing: -.03em; }
.hero__title em { font-weight: 400; font-style: italic; }
.hero__slogan { margin: 0; font-family: var(--display); font-style: italic; font-size: clamp(1.25rem, 1rem + 1.2vw, 2rem); line-height: 1.2; }
.hero__tagline { margin: .35rem 0 1.4rem; color: var(--ink-soft); letter-spacing: .04em; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem; }
.hero__unofficial { margin: 0; font-size: .8rem; color: var(--ink-soft); }
.hero__hint { display: flex; align-items: center; gap: .8rem; margin: 1.6rem 0 0; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-hi); }
.hint-line { position: relative; width: 4.5rem; height: 1px; background: rgba(238, 191, 90, .45); overflow: hidden; }
.hint-line::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--gold-hi); animation: hint 3.6s var(--glide) infinite; }
@keyframes hint { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.static .hero__hint, .is-static .hero__hint { display: none; }

.print { position: relative; margin: 0; }
.print__frame { position: relative; padding: 10px; background: linear-gradient(140deg, var(--gold-hi), var(--gold-lo) 45%, var(--gold) 70%, #7d4e1c); box-shadow: 0 40px 90px -30px rgba(20, 8, 40, .8); }
.print__frame::after { content: ""; position: absolute; inset: 10px; box-shadow: inset 0 0 0 1px rgba(42, 27, 79, .9), inset 0 0 0 5px rgba(255, 241, 214, .25); pointer-events: none; }
.print--hero { flex: 0 0 auto; width: min(46vh, 28vw); align-self: flex-end; margin-bottom: 1vh; }
.print--hero .cartouche { position: absolute; top: -1.4rem; left: -1.3rem; }
.seal--print { position: absolute; right: -.9rem; bottom: 4.3rem; }
.print figcaption { margin-top: .8rem; padding: .55rem .8rem; font-family: var(--display); font-style: italic; font-size: 1.02rem; line-height: 1.35; color: var(--ink); background: rgba(42, 27, 79, .86); border-left: 2px solid var(--gold); }
.print figcaption .fine { margin-top: .25rem; font-family: var(--body); font-style: normal; }

/* ------------------------------------------------ flip cards (signature interaction) */
.cards { display: flex; flex-wrap: wrap; gap: clamp(1rem, 2vw, 1.8rem); margin: 0; padding: 0; list-style: none; }
.is-pan .cards { flex-wrap: nowrap; }
.flip { position: relative; display: block; padding: 0; border: 0; background: none; cursor: pointer; perspective: 1600px; text-align: left; -webkit-tap-highlight-color: transparent; }
.flip__inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 1.25s var(--glide); }
.flip[aria-pressed="true"] .flip__inner { transform: rotateY(180deg); }
.flip:hover .flip__inner { transform: rotateY(-7deg); }
.flip[aria-pressed="true"]:hover .flip__inner { transform: rotateY(187deg); }
.flip__face {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: .7rem;
  padding: 1.4rem; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border: 1px solid rgba(238, 191, 90, .85); outline: 1px solid rgba(238, 191, 90, .3); outline-offset: 6px;
}
.flip__front { background: url("seigaiha.svg") repeat 0 0 / 40px 20px, linear-gradient(170deg, rgba(42, 27, 79, .92), rgba(78, 34, 98, .88)); }
.flip__back {
  transform: rotateY(180deg); justify-content: center;
  background: linear-gradient(160deg, #fff1d6, #f4d39a 70%, #eebf5a); color: var(--lacquer);
  border-color: var(--gold-lo);
}
.flip__back::before { content: ""; position: absolute; inset: 9px; border: 1px solid rgba(42, 27, 79, .35); pointer-events: none; }
.flip__title { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.2rem); line-height: 1.05; }
.flip__cue { font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-hi); }
.flip__cue::before { content: "↻ "; letter-spacing: 0; }
.flip__name { font-family: var(--display); font-weight: 700; font-style: italic; font-size: 2.4rem; line-height: 1; color: #5a2a6e; }
.flip__text { font-family: var(--display); font-size: clamp(1.08rem, 1rem + .4vw, 1.35rem); line-height: 1.38; }
.flip__text--big { font-size: clamp(1.4rem, 1.1rem + 1vw, 2.1rem); line-height: 1.2; font-style: italic; }
.flip__front--img { padding: 0; }
.flip__front--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cartouche--on-img { position: absolute; top: 1rem; right: 1rem; font-size: .9rem; box-shadow: 0 8px 24px -10px rgba(20, 8, 40, .8); }

.flip--tall { width: min(19rem, 76vw); height: min(27rem, 62vh); height: min(27rem, 62svh); }
.flip--lead { width: min(22rem, 78vw); height: min(30rem, 64vh); height: min(30rem, 64svh); }
.lead-img--left { object-position: 18% 30%; }
.lead-img--right { object-position: 78% 30%; }
.flip--print { width: min(22rem, 78vw); height: min(26rem, 50vh); }
/* prints hang staggered with open water between them, so the sculpture reads through */
.is-pan .cards--prints { gap: clamp(3rem, 9vw, 11rem); align-self: stretch; align-items: flex-start; }
.is-pan .cards--prints > li:nth-child(even) { align-self: flex-end; }
.flip--regroup { width: min(24rem, 80vw); height: min(24rem, 56vh); }

.motif { width: 5.5rem; height: 5.5rem; margin-bottom: auto; background: center / contain no-repeat; opacity: .95; }
.motif--sun { background-image: url("motif-sun.svg"); }
.motif--wave { background-image: url("motif-wave.svg"); }
.motif--cloud { background-image: url("kumo.svg"); background-size: cover; width: 8rem; height: 3.4rem; }
.motif--hearts { background-image: url("motif-hearts.svg"); width: 7rem; height: 5.5rem; }

/* ------------------------------------------------ II-VI panel heads */
.story__head, .leads__head, .prints__head { flex: 0 0 auto; width: min(26rem, 84vw); }
.plate__copy { flex: 0 0 auto; width: min(24rem, 84vw); }
.regroup__copy { flex: 0 0 auto; width: min(26rem, 84vw); }

/* ------------------------------------------------ IV · engraved plate */
.plate { position: relative; flex: 0 0 auto; margin: 0; width: min(74vh, 86vw); }
.plate__frame { position: relative; aspect-ratio: 1 / 1; padding: 12px; background: linear-gradient(140deg, var(--gold-hi), var(--gold-lo) 40%, var(--gold) 66%, #7d4e1c); box-shadow: 0 50px 120px -40px rgba(20, 8, 40, .85); }
.plate__canvas, .plate__poster { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); }
.plate__canvas { z-index: 1; display: block; background: #33235f; cursor: crosshair; touch-action: pan-y; }
.plate__poster { z-index: 0; object-fit: cover; }
.no-plate .plate__canvas { display: none; }
.seal--plate { position: absolute; left: -1rem; bottom: 2rem; width: 3.2rem; height: 3.2rem; font-size: .95rem; z-index: 2; }

/* ------------------------------------------------ VII · lanyard ID badge (token panel) */
.panel--badge { gap: clamp(1.6rem, 4vw, 4.5rem); outline: none; }
.badge-intro { flex: 0 0 auto; width: min(24rem, 84vw); }
.badge-unofficial { flex: 0 0 auto; width: min(15rem, 84vw); margin: 0; font-size: .82rem; line-height: 1.5; color: var(--ink); background: rgba(42, 27, 79, .82); border-left: 2px solid var(--gold); padding: .9rem 1rem; align-self: flex-end; }
.lanyard { position: relative; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; transform-origin: 50% 0; width: min(23rem, 88vw); align-self: flex-start; touch-action: pan-y; }
.is-pan .lanyard { margin-top: calc(-1 * clamp(4.2rem, 11vh, 7rem)); }
.lanyard__cord { width: 22px; height: clamp(2rem, 9vh, 8rem); background: repeating-linear-gradient(180deg, var(--seal) 0 10px, #a8301f 10px 12px, var(--gold) 12px 14px); box-shadow: inset 3px 0 0 rgba(255, 255, 255, .18), inset -3px 0 0 rgba(0, 0, 0, .2); }
.badge {
  position: relative; width: 100%; color: var(--ink); cursor: grab;
  background: url("seigaiha.svg") repeat 0 0 / 36px 18px, linear-gradient(170deg, #34205e, #452566 55%, #5a2a6e);
  border: 1px solid var(--gold); outline: 1px solid rgba(238, 191, 90, .4); outline-offset: 5px;
  border-radius: 14px; padding-top: 1.5rem;
  box-shadow: 0 40px 80px -30px rgba(20, 8, 40, .9), inset 0 1px 0 rgba(255, 241, 214, .25);
}
.badge.is-dragging { cursor: grabbing; }
.badge__clip { position: absolute; top: -1.1rem; left: 50%; width: 4.2rem; height: 2.1rem; transform: translateX(-50%); border-radius: 8px; background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo)); box-shadow: inset 0 0 0 1px #7d4e1c; }
.badge__clip::after { content: ""; position: absolute; left: 50%; top: 55%; width: 1.8rem; height: .45rem; transform: translate(-50%, -50%); border-radius: 99px; background: #2a1b4f; }
.badge__band { display: flex; justify-content: space-between; align-items: baseline; padding: .7rem 1.2rem; margin: .4rem 0 0; background: linear-gradient(90deg, var(--dusk), #f59a6a 50%, var(--coral)); color: #2a1036; }
.badge__house { font-family: var(--display); font-weight: 700; font-style: italic; font-size: 1.3rem; }
.badge__pass { font-size: .68rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.badge__body { padding: 1.2rem 1.2rem .4rem; display: grid; gap: 1rem; }
.badge__id { position: relative; display: grid; gap: .1rem; }
.badge__holder-label { font-size: .7rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-hi); }
.badge__ticker { font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem, 2rem + 1.5vw, 3.2rem); line-height: 1; }
.seal--badge { position: absolute; right: 0; top: .2rem; }

.badge__ca {
  display: grid; gap: .3rem; width: 100%; min-height: 44px; padding: .85rem 1rem; text-align: left; cursor: copy;
  background: linear-gradient(160deg, #fff1d6, #f4d39a); color: var(--lacquer);
  border: 1px solid var(--gold-lo); border-radius: 6px; box-shadow: inset 0 0 0 3px rgba(255, 241, 214, .6);
  transition: transform .6s var(--glide), box-shadow .6s var(--glide);
}
.badge__ca:hover:not(:disabled) { transform: translateY(-2px); box-shadow: inset 0 0 0 3px rgba(255, 241, 214, .6), 0 12px 30px -14px rgba(242, 122, 62, .9); }
.badge__ca:disabled { cursor: default; }
.badge__ca-label { font-size: .68rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #6a2e5a; }
.badge__ca code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .86rem; overflow-wrap: anywhere; }
.badge__ca-soon { font-family: var(--display); font-style: italic; font-size: 1.08rem; }
.badge__ca-hint { font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #6a2e5a; }
.badge__ca-hint.is-copied { color: #17553a; }
.badge__ca code { user-select: all; }
.is-static .badge { cursor: auto; }
.flip:focus-visible { outline-color: #fff; outline-offset: 10px; }

.badge__links { display: grid; grid-template-columns: repeat(auto-fit, minmax(6.4rem, 1fr)); gap: .5rem; margin: 0; padding: 0; list-style: none; }
.mlink { display: flex; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem .7rem; font-size: .82rem; font-weight: 700; text-decoration: none; border: 1px solid rgba(238, 191, 90, .55); border-radius: 6px; background: rgba(42, 27, 79, .55); transition: background .6s var(--glide), border-color .6s var(--glide); }
.mlink:hover { background: rgba(238, 191, 90, .18); border-color: var(--gold-hi); }
.mlink svg, .xbtn svg { width: 1.15rem; height: 1.15rem; flex: none; fill: none; stroke: var(--gold-hi); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mlink.is-pending { opacity: .72; }
.badge__actions { display: flex; align-items: center; gap: .8rem; }
.cta--badge { flex: 1; justify-content: center; }
.xbtn { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border: 1px solid var(--gold); border-radius: 50%; background: rgba(42, 27, 79, .6); }
.xbtn svg { width: 1.2rem; height: 1.2rem; }
.xbtn.is-pending { opacity: .72; }
.badge__foot { margin: .6rem 0 0; padding: .7rem 1.2rem .9rem; font-size: .76rem; color: var(--ink-soft); border-top: 1px dashed rgba(238, 191, 90, .45); }

/* ------------------------------------------------ VIII · colophon */
.panel--colophon { justify-content: center; }
.is-pan .panel--colophon { width: 100vw; }
.colophon { width: min(36rem, 88vw); }
.colophon .cta { margin: .4rem 0 1.4rem; }
.disclosure { margin: 0 0 .55rem; font-size: .9rem; color: var(--ink); }
.colophon .fine { margin: .4rem 0 1rem; }
.preview-tag--foot { margin: .4rem 0 1rem; }
.back { display: inline-flex; align-items: center; min-height: 44px; font-size: .84rem; font-weight: 700; letter-spacing: .1em; color: var(--gold-hi); text-underline-offset: 4px; }

/* ------------------------------------------------ narrow screens */
@media (max-width: 760px) {
  .is-pan .panel { padding-top: 3.6rem; padding-bottom: 3.6rem; }
  .panel--hero { flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: center; gap: 1rem; }
  .is-pan .panel--hero { padding-top: 1.6rem; padding-bottom: 1.6rem; }
  /* phones: the copy floats on a lighter veil so the wave shows above the fold */
  .hero__copy { flex: 0 0 auto; padding: 1rem 1.15rem; background: linear-gradient(180deg, rgba(42, 27, 79, .66), rgba(42, 27, 79, .84)); box-shadow: none; }
  .panel--hero { justify-content: space-between; }
  .preview-tag { margin-bottom: .7rem; }
  .hero__title { font-size: clamp(2.8rem, 13.5vw, 4rem); margin-bottom: .35rem; }
  .hero__slogan { font-size: 1.15rem; }
  .hero__tagline { margin: .2rem 0 .8rem; font-size: .9rem; }
  .hero__unofficial { display: none; }
  .hero__hint { margin-top: .7rem; }
  .print--hero { width: min(31svh, 64vw); align-self: center; margin: 0; }
  .print--hero .cartouche { top: -.8rem; left: -.8rem; font-size: .8rem; padding: .6rem .35rem; }
  .print figcaption { font-size: .88rem; }
  .print figcaption .fine { display: none; }
  .lacquer { outline-offset: 4px; }
  .is-pan .lanyard { margin-top: -3.6rem; }
  .badge-unofficial { align-self: center; }
  .plate { width: min(62svh, 84vw); }
}
@media (max-height: 640px) and (max-width: 760px) {
  .hero__hint, .hero__unofficial { display: none; }
  .print--hero { width: min(32svh, 60vw); }
}

/* ------------------------------------------------ calm static version */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .flip:hover .flip__inner { transform: none; }
  .flip[aria-pressed="true"] .flip__inner { transform: none; }
  .flip__back { transform: none; opacity: 0; }
  .flip[aria-pressed="true"] .flip__back { opacity: 1; }
  .flip[aria-pressed="true"] .flip__front { opacity: 0; }
  .world { transition: none; }
}

/* ------------------------------------------------ full pictures (operator request: never crop the art) */
/* Each card takes its picture's own proportions (3:2 or 1:1), so nothing is cut; the label sits on a lacquer
   strip under the image instead of over it. object-fit: contain guarantees no crop even after rounding. */
.flip--wide, .flip--square { --strip: 2.6rem; width: var(--w); height: calc(var(--w) / var(--ar) + var(--strip)); }
.flip--wide { --ar: 1.5; --w: min(30rem, 84vw, calc((60vh - var(--strip)) * 1.5)); }
.flip--square { --ar: 1; --w: min(24rem, 80vw, calc(60vh - var(--strip))); }
.flip--wide .flip__front--img img, .flip--square .flip__front--img img { top: 0; right: 0; bottom: auto; left: 0; width: 100%; height: calc(100% - var(--strip)); object-fit: contain; object-position: 50% 50%; }
.flip--wide .cartouche--on-img, .flip--square .cartouche--on-img { top: auto; right: auto; bottom: .55rem; left: .9rem; writing-mode: horizontal-tb; padding: .25rem .7rem; font-size: .82rem; box-shadow: none; }
.print--hero .cartouche { top: 0; left: -3.3rem; }
@media (max-width: 760px) {
  .flip--wide { --w: min(30rem, 86vw, calc((52svh - var(--strip)) * 1.5)); }
  .flip--square { --w: min(24rem, 80vw, calc(52svh - var(--strip))); }
  .print--hero .cartouche { top: 0; left: -2.6rem; }
}

/* User-requested OFFICIALGTA artwork; original scene and interactions retained. */
.hero__title { font-size: clamp(2.5rem, 5.7vw, 6rem); line-height: .94; }
.print__frame picture, .print__frame picture img { display: block; width: 100%; height: auto; }
.flip--brand-banner { width: min(46rem, 84vw); height: auto; aspect-ratio: 3 / 1; }
.flip--brand-banner .flip__front { padding: 0; }
.flip--brand-banner picture { display: block; width: 100%; height: 100%; }
.flip--brand-banner picture img { display: block; width: 100%; height: 100%; object-fit: contain; }
.flip--brand-banner .cartouche { display: none; }
.flip--brand-banner .flip__back { padding: clamp(.8rem, 2vw, 1.4rem); gap: .3rem; }
.flip--brand-banner .flip__name { font-size: clamp(1rem, 2.2vw, 1.7rem); }
.flip--brand-banner .flip__text { font-size: clamp(.75rem, 1.4vw, 1rem); }
.brand-downloads { display: flex; flex-wrap: wrap; gap: .6rem 1rem; margin-top: 1rem; font-size: .8rem; }
.brand-downloads a { color: var(--gold-hi); text-decoration: underline; text-underline-offset: .2em; }
.badge__house { display: inline-flex; align-items: center; gap: .5rem; }
.badge-brand { display: block; width: 28px; height: 28px; border-radius: 3px; object-fit: cover; }
@media (max-width: 700px) { .hero__title { font-size: clamp(2.2rem, 10vw, 3.6rem); } }

/* Client-supplied video artwork: preserve full frames, pause outside the viewport. */
.motion-media { position: relative; display: block; width: 100%; overflow: hidden; isolation: isolate; }
.motion-media--logo { aspect-ratio: 1; }
.motion-media--banner { aspect-ratio: 3 / 1; }
.motion-media--action { aspect-ratio: 35 / 26; }
.motion-media .motion-poster, .motion-media .motion-video { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.motion-media .motion-poster { z-index: 1; }
.motion-media.video-ready .motion-poster { visibility: hidden; }
.flip--brand-banner .motion-media, .flip--video-action .motion-media { height: 100%; }
.flip--video-action { width: min(30rem, 84vw); height: auto; aspect-ratio: 35 / 26; }
.video-toggle { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 20; min-height: 44px; padding: .65rem 1rem; border: 1px solid var(--gold); border-radius: 30px; background: #251438; color: var(--gold-hi); font: 600 .8rem var(--body); cursor: pointer; box-shadow: 0 4px 20px #13072355; }
.video-toggle[hidden] { display: none; }
.video-toggle:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; }
