/* Triskele Trove. Bright panels floating over the living woods (journey.js draws the canvas behind everything).
   Phones: no backdrop blur and nothing animates the page's own variables; panels are near-solid so text stays crisp. */
:root {
  --night: #1B1035; --deep: #120A2E; --violet: #7B3AF0; --magenta: #FF2E93; --gold: #FFC93C; --emerald: #19D97F; --teal: #14C8E0; --orange: #FF8A1F;
  --cream: #FFF6E6; --ink: #22183A; --mute: #CBB9F2;
  --panel: rgba(24, 11, 54, .9);
  --rainbow: linear-gradient(120deg, #FF2E93, #FF8A1F 22%, #FFC93C 40%, #19D97F 60%, #14C8E0 78%, #7B3AF0);
  --r: 28px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--deep); color: var(--cream); font-family: "Mulish", system-ui, sans-serif; font-size: 17px; line-height: 1.55; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--gold); }
button, input, textarea { font: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 12px; background: var(--gold); color: var(--ink); font-weight: 900; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

#journey { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; display: block; z-index: 0; }

/* ── header ── */
.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 8px 16px; padding-top: calc(8px + env(safe-area-inset-top)); background: rgba(18, 8, 42, .86); border-bottom: 2px solid transparent; border-image: var(--rainbow) 1; transition: opacity .5s; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand-mark { width: 46px; height: 46px; color: var(--gold); flex: none; }
.brand-mark svg { width: 100%; height: 100%; }
.brand b { font-family: "Amatic SC", sans-serif; font-size: 2rem; line-height: 1; letter-spacing: .02em; }
.bar nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.bar nav a { padding: 8px 12px; border-radius: 999px; color: #F1E6FF; font-weight: 800; font-size: .95rem; text-decoration: none; }
.bar nav a:hover { background: rgba(255, 255, 255, .1); }
.bar nav .nav-pill { background: var(--gold); color: var(--ink); }
.bar nav .nav-pill:hover { background: #FFD966; }
.banner { position: relative; z-index: 20; margin-top: calc(64px + env(safe-area-inset-top)); padding: 10px 16px; text-align: center; font-weight: 900; color: var(--ink); background: linear-gradient(90deg, var(--gold), #FF9F43, var(--gold)); }
.banner + main .hero { min-height: calc(100svh - 110px); }

/* ── shared pieces ── */
main { position: relative; z-index: 2; transition: opacity .6s; }
.panel { position: relative; width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: clamp(24px, 5vw, 56px); border-radius: var(--r); border: 2px solid transparent;
  background: linear-gradient(var(--panel), var(--panel)) padding-box, var(--rainbow) border-box;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .04), 0 20px 60px rgba(8, 2, 30, .55), 0 0 60px rgba(255, 46, 147, .18); }
.gap { height: 82vh; height: 82lvh; }
.gap.end { height: 90vh; height: 90lvh; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 28px; }
.sec-head p { color: #E9DDFF; margin: 10px 0 0; font-size: 1.05rem; }
.sec-mark { display: inline-block; width: 48px; height: 48px; color: var(--gold); margin-bottom: 6px; }
.sec-mark svg, .empty-trisk svg { width: 100%; height: 100%; }
h2 { font-family: "Uncial Antiqua", "Marcellus", serif; font-size: clamp(2rem, 6.4vw, 3.4rem); line-height: 1.1; background: linear-gradient(90deg, #FFE27A, #FF9F43 35%, #FF4FA8 70%, #C08BFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
h3 { font-family: "Marcellus", Georgia, serif; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 24px; border: 0; border-radius: 999px; font-weight: 900; font-size: 1.05rem; text-decoration: none; cursor: pointer; transition: transform .15s; }
.btn:active { transform: scale(.97); }
.btn.pri { color: #fff; background: linear-gradient(135deg, var(--magenta), var(--violet)); box-shadow: 0 8px 24px rgba(255, 46, 147, .45), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn.pri:hover { box-shadow: 0 10px 30px rgba(255, 46, 147, .65), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn.walk { color: var(--ink); background: linear-gradient(135deg, #7CFFB2, var(--teal)); box-shadow: 0 8px 24px rgba(20, 200, 224, .45); }
.btn.ghost { color: #fff; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25); }
.btn.big { width: 100%; min-height: 60px; font-size: 1.15rem; }
.btn[disabled] { opacity: .55; cursor: default; }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
.row.center { justify-content: center; }

/* ── hero ── */
.hero { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: calc(84px + env(safe-area-inset-top)) 16px 40px; text-align: center; }
.medallion { position: relative; width: min(74vw, 46vh, 380px); aspect-ratio: 1; }
.medallion-glow { position: absolute; inset: -18%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 201, 60, .55), rgba(255, 46, 147, .25) 55%, rgba(255, 46, 147, 0)); animation: pulse 4s ease-in-out infinite; }
.medallion::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #3B1C82, #1B0B45 60%, #10062B); box-shadow: 0 0 0 4px rgba(255, 201, 60, .9), 0 0 0 10px rgba(123, 58, 240, .55), 0 20px 50px rgba(0, 0, 0, .5); }
.medallion-orbit { position: absolute; inset: -9%; width: 118%; height: 118%; color: #FFE6A6; animation: spin 60s linear infinite; }
.medallion-logo { position: absolute; inset: 5%; color: var(--gold); }
.medallion-logo svg { width: 100%; height: 100%; overflow: visible; }
.medallion-logo .lg-ring { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: draw 2.4s .2s ease-out forwards; }
.medallion-logo .lg-bird { transform-box: fill-box; transform-origin: center; animation: glide 5s ease-in-out infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes glide { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(3px, -5px); } }
@keyframes pulse { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
.tagline { max-width: 640px; margin: 0; padding: 14px 22px; border-radius: 22px; background: rgba(24, 11, 54, .82); font-family: "Marcellus", Georgia, serif; font-size: clamp(1.1rem, 3.4vw, 1.4rem); line-height: 1.4; color: #FFF3DA; box-shadow: 0 10px 30px rgba(8, 2, 30, .4); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.scroll-hint { margin: 0; padding: 6px 14px; border-radius: 999px; background: rgba(24, 11, 54, .6); font-family: "Amatic SC", sans-serif; font-size: 1.6rem; color: #fff; }
.scroll-hint span { display: inline-block; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(6px); } }

/* ── the shop ── */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 26px; }
.chips button { padding: 9px 18px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #F3EAFF; font-weight: 800; cursor: pointer; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .18); }
.chips button[aria-pressed="true"] { background: var(--gold); color: var(--ink); box-shadow: 0 6px 18px rgba(255, 201, 60, .45); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.tile { position: relative; display: flex; flex-direction: column; border: 0; padding: 0; border-radius: 22px; background: var(--cream); color: var(--ink); text-align: left; cursor: pointer; overflow: hidden; box-shadow: 0 10px 26px rgba(0, 0, 0, .35); transition: transform .2s, box-shadow .2s; }
.tile:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 18px 40px rgba(255, 46, 147, .4), 0 0 0 3px var(--gold); }
.tile .ph { position: relative; aspect-ratio: 4 / 5; background: linear-gradient(135deg, #E9DCFF, #FFE3F1); }
.tile .ph img { width: 100%; height: 100%; object-fit: cover; }
.tile .meta { display: grid; gap: 2px; padding: 14px 16px 16px; }
.tile .nm { font-family: "Marcellus", Georgia, serif; font-size: 1.15rem; line-height: 1.25; }
.tile .ct { font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #8A4FE0; }
.tile .pr { position: absolute; right: 12px; top: 12px; padding: 6px 12px; border-radius: 999px; background: var(--gold); color: var(--ink); font-weight: 900; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.tile .tag { position: absolute; left: 12px; top: 12px; padding: 5px 11px; border-radius: 999px; font-weight: 900; font-size: .82rem; letter-spacing: .05em; color: #fff; background: var(--magenta); }
.tile.sold .ph img { filter: grayscale(.7) brightness(.85); }
.tile.sold .tag { background: #3A2A55; }
.tile.skel { min-height: 330px; cursor: default; background: linear-gradient(100deg, rgba(255, 255, 255, .08) 30%, rgba(255, 255, 255, .18) 50%, rgba(255, 255, 255, .08) 70%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; box-shadow: none; }
@keyframes shimmer { to { background-position: -150% 0; } }
.empty { text-align: center; max-width: 560px; margin: 0 auto; padding: 10px 0 6px; }
.empty-trisk { display: block; width: 120px; height: 120px; margin: 0 auto 16px; color: var(--teal); animation: spin 18s linear infinite; }
.empty h3 { font-size: 1.7rem; color: #fff; }
.empty p { color: #E9DDFF; }
.ship-note { margin: 26px 0 0; text-align: center; color: var(--mute); font-size: .95rem; }

/* ── land · sea · sky ── */
.realms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.realm { padding: 26px 22px; border-radius: 22px; color: #fff; }
.realm svg { width: 64px; height: 64px; }
.realm h3 { font-size: 1.7rem; margin: 10px 0 6px; }
.realm p { margin: 0; color: rgba(255, 255, 255, .92); }
.realm.land { background: linear-gradient(160deg, #0FA968, #0B6B4E); box-shadow: 0 12px 30px rgba(25, 217, 127, .3); color: #D9FFE9; }
.realm.sea { background: linear-gradient(160deg, #10B6D8, #1A4FC0); box-shadow: 0 12px 30px rgba(20, 200, 224, .3); color: #DFF8FF; }
.realm.sky { background: linear-gradient(160deg, #B044F0, #E8338F); box-shadow: 0 12px 30px rgba(232, 51, 143, .35); color: #FFE6F6; }
.realm h3, .realm p { color: #fff; }

/* ── the wheel of the year ── */
.wheel-wrap { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: 34px; align-items: center; }
.wheel-svg { width: 100%; height: auto; overflow: visible; }
.wheel-svg .lbl { font-family: "Amatic SC", sans-serif; font-weight: 700; font-size: 17px; fill: #fff; }
.wheel-svg .spin { transform-origin: 150px 150px; animation: spin 120s linear infinite; }
.wheel-now { font-family: "Marcellus", Georgia, serif; font-size: 1.5rem; line-height: 1.3; margin: 0 0 10px; color: #fff; }
.wheel-next { margin: 0 0 22px; color: #E9DDFF; font-size: 1.05rem; }
.wheel-next b { color: var(--gold); }
.moon { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 20px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .12); }
.moon svg { width: 70px; height: 70px; flex: none; }
.moon b { display: block; font-family: "Marcellus", Georgia, serif; font-weight: 400; font-size: 1.25rem; color: #fff; }
.moon span { color: var(--mute); font-size: .95rem; }

/* ── about ── */
.about-grid { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: center; }
.about-mark { color: var(--gold); padding: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #3B1C82, #1B0B45 65%); box-shadow: 0 0 0 4px rgba(255, 201, 60, .85), 0 0 50px rgba(255, 201, 60, .3); }
.about-mark svg { width: 100%; height: auto; }
.about-text p { margin: 14px 0 0; font-size: 1.08rem; color: #F3EAFF; }

/* ── contact ── */
.reach { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: -6px 0 26px; }
.reach a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; font-weight: 800; text-decoration: none; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .2); }
.reach a:hover { background: rgba(255, 255, 255, .18); }
.msg-form { max-width: 680px; margin: 0 auto; display: grid; gap: 14px; }
.msg-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.msg-form label { display: grid; gap: 6px; font-weight: 800; font-size: .95rem; color: #F3EAFF; }
.msg-form input, .msg-form textarea { width: 100%; padding: 14px 16px; border: 2px solid rgba(255, 255, 255, .2); border-radius: 16px; background: rgba(255, 255, 255, .96); color: var(--ink); font-size: 17px; }
.msg-form input:focus, .msg-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(255, 201, 60, .35); }
.msg-form input[readonly] { background: #EDE3FF; }
.msg-form textarea { resize: vertical; min-height: 130px; }
.hp { position: absolute; left: -9999px; }
.form-msg { margin: 0; padding: 12px 16px; border-radius: 14px; font-weight: 800; text-align: center; }
.form-msg.ok { background: rgba(25, 217, 127, .2); color: #B6FFD7; }
.form-msg.err { background: rgba(255, 46, 147, .2); color: #FFC4DF; }

/* ── footer ── */
.foot { position: relative; z-index: 2; padding: 40px 16px calc(80px + env(safe-area-inset-bottom)); text-align: center; background: linear-gradient(rgba(10, 4, 30, 0), rgba(10, 4, 30, .92) 30%); transition: opacity .6s; }
.foot-logo { width: 110px; margin: 0 auto 10px; color: var(--gold); }
.foot p { margin: 6px 0; }
.foot .small { font-size: .85rem; color: var(--mute); }
.foot a { color: #FFE39A; }
.foot-links a { margin: 0 8px; font-weight: 800; }

/* ── trail sign + walk mode ── */
.sign { position: fixed; left: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 25; pointer-events: none; opacity: 0; transition: opacity .4s; }
.sign.show, body.walking .sign { opacity: 1; }
.sign span { display: inline-block; padding: 6px 16px 4px; border-radius: 8px; background: linear-gradient(180deg, #A8693A, #7A4422); color: #FFF0D6; font-family: "Amatic SC", sans-serif; font-size: 1.45rem; line-height: 1.1; box-shadow: 0 6px 16px rgba(0, 0, 0, .4), inset 0 -3px 0 rgba(0, 0, 0, .2); transform: rotate(-2deg); }
.sign span::before { content: "⟡ "; color: #FFD58A; }
.walk-ui { position: fixed; left: 0; right: 0; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 40; display: flex; justify-content: center; gap: 10px; padding: 0 16px; }
body.walking main, body.walking .foot, body.walking .bar, body.walking .banner { opacity: 0; pointer-events: none; }
body.walking .sign { left: 50%; bottom: auto; top: calc(22px + env(safe-area-inset-top)); transform: translateX(-50%) scale(1.3); transform-origin: top center; }

/* ── a piece, up close ── */
.piece { width: min(1000px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 26px; background: var(--cream); color: var(--ink); overflow: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 3px var(--gold); }
.piece::backdrop { background: rgba(12, 4, 32, .78); }
.piece[open] { animation: pop .25s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.x { position: sticky; top: 10px; float: right; z-index: 3; width: 46px; height: 46px; margin: 10px 10px -56px 0; border: 0; border-radius: 50%; background: var(--night); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.pd { display: grid; grid-template-columns: 1.1fr 1fr; }
.gal { background: #1B1035; min-width: 0; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 4 / 5; }
.slides::-webkit-scrollbar { display: none; }
.slides img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; }
.thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.thumbs button { flex: none; width: 62px; height: 62px; padding: 0; border: 3px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; background: none; }
.thumbs button[aria-current="true"] { border-color: var(--gold); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.info { padding: 30px 28px; display: flex; flex-direction: column; gap: 12px; }
.pd-cat { margin: 0; font-size: .82rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #8A4FE0; }
.info h2 { font-family: "Marcellus", Georgia, serif; font-size: clamp(1.7rem, 4vw, 2.3rem); color: var(--ink); background: none; -webkit-background-clip: border-box; background-clip: border-box; padding-right: 40px; }
.pd-price { margin: 0; font-size: 1.7rem; font-weight: 900; color: #D4126E; }
.pd-desc p { margin: 0 0 10px; }
.how { border: 0; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.how legend { font-weight: 900; margin-bottom: 8px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 2px #E4D8F8; cursor: pointer; }
.opt:has(input:checked) { box-shadow: inset 0 0 0 3px var(--violet); background: #F6F0FF; }
.opt input { width: 22px; height: 22px; accent-color: var(--violet); }
.opt span { display: grid; }
.opt small { color: #6E6488; font-size: .9rem; }
.secure { display: flex; align-items: center; gap: 8px; margin: 2px 0 0; color: #6E6488; font-size: .88rem; }
.secure svg { width: 16px; height: 16px; flex: none; }
.info .btn.ghost { color: var(--violet); background: #F1E9FC; box-shadow: none; }
.pd-state { margin: 0; padding: 12px 16px; border-radius: 14px; background: #F1E9FC; font-weight: 800; color: #4A2B8A; }
.pd-err { margin: 0; padding: 12px 16px; border-radius: 14px; background: #FFE3EE; color: #A50F51; font-weight: 800; }

/* ── phones and tablets ── */
@media (max-width: 860px) {
  .bar nav .wide { display: none; }
  .realms { grid-template-columns: 1fr; }
  .wheel-wrap { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .wheel-svg { max-width: 340px; }
  .moon { text-align: left; }
  .about-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 22px; }
  .about-mark { width: 200px; }
  .pd { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .bar { padding-left: 12px; padding-right: 12px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand b { font-size: 1.7rem; }
  .bar nav a { padding: 8px 10px; }
  .panel { width: calc(100% - 20px); border-radius: 22px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tile { border-radius: 16px; }
  .tile .meta { padding: 10px 12px 12px; }
  .tile .nm { font-size: 1rem; }
  .tile .pr { right: 8px; top: 8px; padding: 4px 10px; font-size: .9rem; }
  .tile .tag { left: 8px; top: 8px; font-size: .72rem; }
  .tile.skel { min-height: 240px; }
  .msg-form .two { grid-template-columns: 1fr; }
  .piece { width: 100%; max-height: 100dvh; height: 100dvh; max-width: 100%; border-radius: 0; margin: 0; }
  .info { padding: 22px 18px 34px; }
  .sign span { font-size: 1.2rem; padding: 4px 12px 3px; }
}
@media (pointer: coarse) {
  .tile:hover { transform: none; box-shadow: 0 10px 26px rgba(0, 0, 0, .35); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .medallion-logo .lg-ring { stroke-dashoffset: 0; }
  #walkBtn { display: none; }
}
