@font-face {
  font-family: "Norwester";
  src: url("../assets/fonts/norwester.woff") format("woff");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #070609;
  --panel: #110d18;
  --purple: #a181e1;
  --purple-bright: #c8adff;
  --purple-dark: #6549a1;
  --ink: #fbf9ff;
  --muted: #c8c0d7;
  --line: rgba(161,129,225,.25);
  --shell: min(1100px, calc(100% - 34px));
  --display: "Norwester", Impact, sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { min-width: 320px; margin: 0; overflow-x: hidden; background: var(--bg); color: var(--ink); font-family: var(--body); font-weight: 700; }
body::before, body::after { content: ""; position: fixed; z-index: 0; pointer-events: none; }
body::before { inset: -20%; background: radial-gradient(circle at 15% 20%, rgba(161,129,225,.2), transparent 25%), radial-gradient(circle at 82% 34%, rgba(103,72,165,.2), transparent 30%), linear-gradient(120deg, transparent 32%, rgba(161,129,225,.07) 47%, transparent 62%); filter: blur(22px); animation: haze-shift 15s ease-in-out infinite alternate; }
body::after { inset: 0; background: url("assets/flowers.png") center/900px 600px repeat; opacity: .055; animation: flower-drift 32s linear infinite; }
a { color: inherit; }
button { font: inherit; }
img { max-width: 100%; }
.shell { width: var(--shell); margin-inline: auto; }
.light-ribbons { position: fixed; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; }
.light-ribbons i { position: absolute; width: 55vw; height: 7px; border-radius: 50%; background: linear-gradient(90deg, transparent, rgba(200,173,255,.32), transparent); filter: blur(5px); transform: rotate(-18deg); animation: ribbon-float 12s ease-in-out infinite alternate; }
.light-ribbons i:nth-child(1) { top: 19%; left: -12%; }
.light-ribbons i:nth-child(2) { top: 52%; right: -15%; animation-delay: -4s; }
.light-ribbons i:nth-child(3) { bottom: 11%; left: 20%; animation-delay: -8s; }

.site-header, main, .site-footer { position: relative; z-index: 1; }
.site-header { display: flex; align-items: center; justify-content: space-between; width: var(--shell); min-height: 68px; margin-inline: auto; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 26px/1 var(--display); letter-spacing: .06em; text-decoration: none; }
.brand > span:last-child > span, .footer-brand span { color: var(--purple); }
.brand-mark, .verified-mark { position: relative; display: block; overflow: hidden; border-radius: 50%; background: #000; }
.brand-mark { width: 40px; height: 40px; border: 1px solid var(--line); transition: transform .3s ease, box-shadow .3s ease; }
.brand-mark img, .verified-mark img { position: absolute; width: 337.5%; max-width: none; left: -111.25%; top: -39.7%; }
.brand:hover .brand-mark { transform: rotate(8deg); box-shadow: 0 0 22px rgba(161,129,225,.35); }
.site-header nav { display: flex; align-items: center; gap: 22px; }
.site-header nav a { color: var(--muted); font: .96rem/1 var(--display); letter-spacing: .07em; text-decoration: none; text-transform: uppercase; }
.site-header nav a:hover { color: var(--purple-bright); }
.nav-contact { padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; }
.nav-contact:hover { background: var(--purple); color: #08060b !important; }

.hero { padding-block: 14px 18px; }
.video-wrap { position: relative; width: min(100%, 940px); aspect-ratio: 16 / 9; margin-inline: auto; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #000; box-shadow: 0 26px 75px rgba(0,0,0,.48), 0 0 65px rgba(161,129,225,.1); }
.video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.sound-toggle { position: absolute; z-index: 2; right: 12px; bottom: 12px; padding: 8px 11px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: rgba(0,0,0,.7); color: #fff; font: .78rem/1 var(--display); letter-spacing: .07em; text-transform: uppercase; cursor: pointer; backdrop-filter: blur(8px); }
.hero-copy { width: min(100%, 940px); margin: 10px auto 0; text-align: center; }
.eyebrow { margin: 0 0 7px; color: var(--purple); font-size: .7rem; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow span { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 15px var(--purple); animation: pulse 2s ease-in-out infinite; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; }
h1 { font-size: clamp(3.6rem, 7.8vw, 7rem); line-height: .86; }
h1 em { color: var(--purple-bright); font-style: normal; }

.story-section { display: grid; grid-template-columns: minmax(280px,.85fr) minmax(0,1.15fr); gap: 20px; align-items: center; padding-block: 27px; border-top: 1px solid var(--line); }
.story-heading h2, .section-heading h2, .verified h2 { font-size: clamp(2.5rem, 4.7vw, 4.65rem); line-height: .93; }
.story-carousel { min-width: 0; }
.story-copy { display: flex; gap: 9px; overflow: hidden; padding: 3px 2px; scroll-snap-type: x mandatory; }
.story-copy p { flex: 0 0 calc(100% - 4px); min-height: 116px; display: flex; align-items: center; margin: 0; padding: 13px 15px; border-left: 3px solid var(--purple); border-radius: 0 9px 9px 0; background: linear-gradient(100deg, rgba(161,129,225,.13), rgba(161,129,225,.025)); color: var(--muted); font-size: .98rem; line-height: 1.44; scroll-snap-align: start; }
.story-copy p:first-child { color: var(--ink); }
.story-controls { display: flex; align-items: center; justify-content: space-between; padding-top: 7px; color: var(--muted); font: .77rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.story-controls > div, .gallery-buttons { display: flex; gap: 6px; }
.story-controls button, .gallery-buttons button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: rgba(161,129,225,.07); color: var(--purple); font: 900 1rem/1 Arial, Helvetica, sans-serif; cursor: pointer; transition: background .2s ease, color .2s ease, opacity .2s ease, transform .2s ease; }
.story-controls button:hover:not(:disabled), .gallery-buttons button:hover { transform: scale(1.06); background: var(--purple); color: #08060b; }
.story-controls button:disabled { opacity: .28; cursor: default; }

.support-section, .gallery-section { padding-block: 27px; border-top: 1px solid var(--line); }
.section-heading { margin-bottom: 11px; }
.support-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.support-card { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; min-height: 100px; overflow: hidden; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(145deg, rgba(161,129,225,.1), rgba(12,8,17,.9)); color: var(--ink); text-align: left; text-decoration: none; cursor: pointer; }
.support-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(300px circle at var(--x,50%) var(--y,50%), rgba(161,129,225,.25), transparent 55%); opacity: 0; transition: opacity .25s ease; pointer-events: none; }
.support-card:hover::before { opacity: 1; }
.card-label { position: relative; z-index: 1; grid-column: 1/-1; color: var(--purple); font: .72rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; }
.support-card strong { position: relative; z-index: 1; align-self: end; font: 1.25rem/1.05 var(--display); text-transform: uppercase; }
.support-card i { position: relative; z-index: 1; align-self: end; color: var(--purple); font: 900 1rem/1 Arial, Helvetica, sans-serif; font-style: normal; }
.support-card:hover { border-color: var(--purple); }

.gallery-heading { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: end; }
.gallery-tools { display: flex; align-items: center; gap: 12px; }
.gallery-tools p { margin: 0; color: var(--muted); font-size: .83rem; }
.gallery { display: flex; gap: 12px; overflow-x: auto; padding: 12px 10px 16px; scroll-padding-inline: 10px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--purple-dark) transparent; }
.gallery::-webkit-scrollbar { height: 5px; }
.gallery::-webkit-scrollbar-thumb { border-radius: 999px; background: var(--purple-dark); }
.portrait { flex: 0 0 clamp(190px,24vw,270px); aspect-ratio: 1; margin: 0; scroll-snap-align: center; filter: drop-shadow(0 14px 24px rgba(0,0,0,.45)); animation: portrait-float 5s ease-in-out infinite; }
.portrait:nth-child(even) { animation-delay: -2.5s; }
.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, filter .4s ease; }
.portrait:hover img { transform: scale(1.035); filter: saturate(1.08); }

.verified { display: grid; grid-template-columns: 56px 1fr auto; gap: 13px; align-items: center; margin-block: 23px; padding: 11px; border: 1px solid var(--line); border-radius: 11px; background: linear-gradient(100deg, rgba(161,129,225,.16), rgba(15,10,20,.65)); }
.verified-mark { width: 56px; height: 56px; }
.verified .eyebrow { margin-bottom: 5px; }
.verified h2 { font-size: clamp(2rem,3.5vw,3.2rem); }
.verified h2 a { color: var(--purple-bright); text-underline-offset: 5px; }
.back-link { display: inline-flex; align-items: center; gap: 13px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 7px; font: .87rem/1 var(--display); letter-spacing: .05em; text-decoration: none; text-transform: uppercase; }
.back-link span, .site-footer a span { font: 900 1rem/1 Arial, Helvetica, sans-serif; }
.back-link:hover { background: var(--purple); color: #08060b; }

.site-footer { padding-block: 16px; border-top: 1px solid var(--line); background: rgba(0,0,0,.35); }
.footer-grid { display: grid; grid-template-columns: 1fr auto auto; gap: 34px; align-items: center; }
.footer-brand { font-size: 23px; }
.footer-grid p { margin: 6px 0 0; color: #7e748b; font-size: .76rem; }
.footer-grid > a { color: var(--muted); font: .87rem/1 var(--display); letter-spacing: .05em; text-decoration: none; text-transform: uppercase; }

.modal[hidden] { display: none; }
.modal { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.84); backdrop-filter: blur(8px); }
.modal-panel { position: relative; width: min(100%,580px); padding: 22px; border: 1px solid var(--purple); border-radius: 13px; background: #0d0912; box-shadow: 0 25px 80px rgba(0,0,0,.72), 0 0 40px rgba(161,129,225,.13); }
.modal-panel h2 { max-width: 90%; font-size: clamp(2rem,5vw,3.3rem); }
.modal-close { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--purple); font-size: 1.4rem; cursor: pointer; }
.wallet-label { margin: 17px 0 6px; color: var(--purple); font: .76rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.wallet-address { margin: 0; padding: 11px; border: 1px solid var(--line); border-radius: 7px; background: rgba(161,129,225,.08); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem; overflow-wrap: anywhere; }
.wallet-warning { margin: 10px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.4; }
.modal-actions { display: flex; gap: 8px; margin-top: 14px; }
.copy-button, .back-button { min-height: 40px; padding: 8px 13px; border: 1px solid var(--purple); border-radius: 7px; font: .87rem/1 var(--display); letter-spacing: .05em; text-transform: uppercase; cursor: pointer; }
.copy-button { background: var(--purple); color: #08060b; }
.back-button { background: transparent; color: var(--purple); }
.copy-status { min-height: 1.2em; margin: 8px 0 0; color: var(--purple-bright); font-size: .8rem; }

.reactive { isolation: isolate; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@keyframes pulse { 50% { transform: scale(1.25); opacity: .72; } }
@keyframes haze-shift { to { transform: translate3d(5%,3%,0) scale(1.05); } }
@keyframes flower-drift { to { background-position: 900px 600px; } }
@keyframes ribbon-float { to { transform: translate3d(18vw,8vh,0) rotate(-12deg); opacity: .35; } }
@keyframes portrait-float { 50% { transform: translateY(-5px); } }

@media (max-width: 820px) {
  .site-header nav a:not(.nav-contact) { display: none; }
  .story-section { grid-template-columns: 1fr; gap: 10px; }
  .support-grid { grid-template-columns: 1fr; }
  .support-card { min-height: 80px; }
  .verified { grid-template-columns: 52px 1fr; }
  .verified-mark { width: 52px; height: 52px; }
  .back-link { grid-column: 1/-1; justify-content: space-between; }
  .footer-grid { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 540px) {
  :root { --shell: min(100% - 20px,500px); }
  body { background: radial-gradient(circle at 12% 9%, rgba(161,129,225,.16), transparent 26%), radial-gradient(circle at 88% 58%, rgba(101,73,161,.12), transparent 30%), var(--bg); }
  body::before { position: absolute; inset: 0; background: linear-gradient(145deg, transparent 20%, rgba(161,129,225,.055) 48%, transparent 72%); filter: none; animation: none; }
  body::after, .light-ribbons { display: none; }
  .site-header { min-height: 61px; }
  .brand { font-size: 22px; }
  .brand-mark { width: 35px; height: 35px; }
  .nav-contact { padding: 7px 10px; }
  .hero { padding-block: 7px 11px; }
  .video-wrap { border-radius: 9px; }
  .sound-toggle { right: 7px; bottom: 7px; padding: 7px 9px; }
  .hero-copy { margin-top: 7px; }
  h1 { font-size: clamp(2.35rem,11.5vw,3.3rem); }
  .story-section, .support-section, .gallery-section { padding-block: 16px; }
  .story-heading h2, .section-heading h2 { font-size: 1.85rem; }
  .story-copy p { min-height: 102px; padding: 10px 11px; font-size: .9rem; line-height: 1.38; }
  .support-card { min-height: 70px; padding: 10px; }
  .support-card strong { font-size: 1.1rem; }
  .gallery-heading { grid-template-columns: 1fr; gap: 8px; }
  .gallery-tools { justify-content: space-between; }
  .gallery { gap: 8px; padding: 10px 8px 13px; }
  .portrait { flex-basis: 175px; }
  .verified { grid-template-columns: 44px 1fr; gap: 9px; margin-block: 13px; padding: 9px; }
  .verified-mark { width: 44px; height: 44px; }
  .verified h2 { font-size: 1.75rem; }
  .site-footer { padding-block: 13px; }
  .modal-panel { padding: 19px 15px 15px; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
