:root {
  --ink: #171425;
  --paper: #f7f2e8;
  --paper-2: #fffaf2;
  --purple: #6f48e8;
  --pink: #ff5da2;
  --coral: #ff705d;
  --yellow: #f7d64a;
  --mint: #8ee3c1;
  --blue: #55a7ff;
  --line: rgba(23, 20, 37, 0.18);
  --shadow: 0 24px 80px rgba(32, 22, 54, 0.14);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--yellow); color: var(--ink); }

.noise {
  position: fixed; inset: 0; z-index: 999; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.4'/%3E%3C/svg%3E");
}
.cursor-glow {
  position: fixed; width: 360px; height: 360px; border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, rgba(255,93,162,.19), transparent 66%); transform: translate(-50%,-50%);
}

.truth-strip {
  min-height: 34px; display: flex; align-items: center; justify-content: center; gap: 18px;
  padding: 7px 24px; background: var(--ink); color: #fff; font-size: 11px; letter-spacing: .06em;
}
.truth-strip span { color: var(--yellow); font-weight: 900; }
.truth-strip p { margin: 0; opacity: .78; }
.truth-strip button { border: 0; background: none; color: #fff; padding: 0; text-decoration: underline; cursor: pointer; }

.site-header {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between;
  height: 78px; padding: 0 4vw; background: rgba(247,242,232,.9); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; }
.site-header nav { display: flex; gap: clamp(16px, 3vw, 42px); font-size: 13px; font-weight: 700; }
.site-header nav a { position: relative; }
.site-header nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px; background: var(--pink); transition: right .25s ease; }
.site-header nav a:hover::after { right: 0; }
.icon-button { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; transition: .2s ease; }
.icon-button:hover { background: var(--yellow); transform: rotate(18deg); }

.section-shell { width: min(1180px, 92vw); margin-inline: auto; }
.hero { min-height: calc(100svh - 112px); display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 7vw; padding-block: 70px 90px; position: relative; }
.eyebrow { margin: 0 0 18px; font-size: 11px; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(74px, 12vw, 170px); line-height: .76; letter-spacing: -.075em; font-weight: 950; }
.hero h1 span { color: var(--purple); -webkit-text-stroke: 2px var(--ink); text-shadow: 7px 7px 0 var(--yellow); }
.hero-title-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px; align-items: center; gap: 30px; margin-top: 42px; }
.hero-deck { max-width: 610px; margin: 0; font-family: Georgia, serif; font-size: clamp(22px, 2.7vw, 39px); line-height: 1.16; }
.hero-deck em { color: var(--pink); }
.seal {
  aspect-ratio: 1; border: 2px dashed var(--ink); border-radius: 50%; background: var(--yellow); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(7deg); transition: .25s ease;
}
.seal:hover { transform: rotate(-5deg) scale(1.06); }
.seal span { font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.seal strong { font-size: 18px; margin: 5px 0; }
.hero-actions { display: flex; gap: 12px; margin-top: 38px; }
.button { border: 0; border-radius: 999px; padding: 15px 23px; font-weight: 850; font-size: 13px; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-3px); }
.button-primary { background: var(--pink); color: #fff; box-shadow: 0 9px 0 #c92971; }
.button-primary:active { transform: translateY(5px); box-shadow: 0 4px 0 #c92971; }
.button-ghost { background: transparent; border: 1px solid var(--ink); }
.button-ghost:hover { background: var(--ink); color: #fff; }
.button-dark { background: var(--ink); color: #fff; }

.hero-art { position: relative; }
.portrait-frame { width: min(390px, 80vw); aspect-ratio: .78; margin: auto; position: relative; transform: rotate(2deg); }
.portrait-placeholder {
  height: 100%; overflow: hidden; border: 3px solid var(--ink); border-radius: 190px 190px 24px 24px;
  display: grid; place-items: center; background:
    linear-gradient(155deg, transparent 49%, rgba(23,20,37,.12) 50%, transparent 51%),
    repeating-linear-gradient(90deg, var(--mint) 0 34px, var(--blue) 34px 68px, var(--pink) 68px 102px, var(--yellow) 102px 136px);
  box-shadow: 18px 18px 0 var(--ink);
}
.portrait-monogram { font-size: clamp(92px, 15vw, 170px); font-weight: 950; color: var(--paper); -webkit-text-stroke: 3px var(--ink); text-shadow: 8px 8px 0 var(--purple); }
.portrait-note { position: absolute; bottom: 28px; background: var(--paper-2); border: 1px solid var(--ink); padding: 9px 14px; font-size: 10px; font-weight: 900; text-align: center; letter-spacing: .12em; transform: rotate(-3deg); }
.orbit { position: absolute; padding: 8px 12px; background: var(--paper); border: 2px solid var(--ink); border-radius: 99px; font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.orbit-one { top: 10%; left: -12%; transform: rotate(-12deg); }
.orbit-two { bottom: 14%; right: -18%; transform: rotate(8deg); }
.spark { position: absolute; font-size: 45px; color: var(--pink); animation: twinkle 2.4s infinite alternate ease-in-out; }
.spark-one { right: -5%; top: -6%; }
.spark-two { left: -7%; bottom: 5%; color: var(--purple); animation-delay: -.8s; }
.caption { text-align: center; font-size: 11px; opacity: .62; margin-top: 32px; }
.scroll-note { position: absolute; bottom: 25px; left: 0; display: flex; gap: 10px; align-items: center; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.scroll-note span { width: 42px; height: 1px; background: var(--ink); }

.ticker { background: var(--ink); color: #fff; overflow: hidden; transform: rotate(-1.5deg) scale(1.02); }
.ticker-track { width: max-content; display: flex; align-items: center; gap: 28px; padding: 17px 0; animation: ticker 22s linear infinite; font-size: 15px; font-weight: 950; letter-spacing: .13em; }
.ticker-track b { color: var(--yellow); }

.intro, .receipts, .timeline-section, .fine-print { padding-block: 130px; position: relative; }
.section-number { position: absolute; top: 130px; left: 0; width: 48px; height: 48px; border: 1px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 900; }
.intro-heading, .section-heading { margin-left: 13%; max-width: 760px; }
.intro h2, .section-heading h2, .meter-card h2, .award h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(42px, 6.8vw, 86px); line-height: .96; font-weight: 500; letter-spacing: -.045em; }
.intro-body { margin: 56px 0 0 40%; max-width: 650px; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; font-size: 16px; line-height: 1.65; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 75px; }
.stats-grid article { border-top: 2px solid var(--ink); padding-top: 20px; }
.stats-grid strong { display: block; font-size: clamp(50px, 8vw, 96px); letter-spacing: -.07em; }
.stats-grid span { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }

.meter-section { padding-bottom: 110px; }
.meter-card { display: grid; grid-template-columns: .9fr 1.1fr; gap: 7vw; align-items: center; padding: clamp(30px, 5vw, 70px); border-radius: var(--radius); background: var(--yellow); border: 2px solid var(--ink); box-shadow: 14px 14px 0 var(--ink); }
.meter-card h2 { font-size: clamp(38px, 5.8vw, 70px); }
.meter-card p:not(.eyebrow) { max-width: 470px; line-height: 1.6; }
.meter-control output { display: block; text-align: center; font-size: clamp(27px, 5vw, 57px); font-weight: 950; letter-spacing: -.04em; margin-bottom: 24px; }
#gay-meter { width: 100%; accent-color: var(--pink); cursor: grab; }
.meter-labels { display: flex; justify-content: space-between; margin-top: 12px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }

.section-heading > p:last-child { font-size: 16px; line-height: 1.6; max-width: 570px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 9px; margin: 60px 0 24px 13%; }
.filter-chip { border: 1px solid var(--ink); background: transparent; border-radius: 99px; padding: 10px 15px; cursor: pointer; font-size: 12px; font-weight: 800; }
.filter-chip.is-active, .filter-chip:hover { background: var(--ink); color: #fff; }
.receipt-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.receipt-card { grid-column: span 4; min-height: 260px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper-2); padding: 24px; display: flex; flex-direction: column; transition: .25s ease; }
.receipt-card:nth-child(2n) { transform: translateY(25px); }
.receipt-card:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: var(--shadow); border-color: var(--ink); }
.receipt-card.is-hidden { display: none; }
.receipt-top { display: flex; justify-content: space-between; gap: 12px; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .09em; }
.receipt-tag { color: var(--purple); }
.receipt-card blockquote { margin: auto 0; font-family: Georgia, serif; font-size: clamp(24px, 2.5vw, 35px); line-height: 1.12; }
.receipt-card footer { padding: 0; border: 0; display: block; background: transparent; font-size: 11px; opacity: .6; }
.roulette { margin: 90px 0 0 13%; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); padding: 40px 0; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.roulette blockquote { margin: 0; font-family: Georgia, serif; font-size: clamp(28px, 4vw, 52px); }
.roulette #roulette-meta { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.round-button { flex: 0 0 auto; width: 76px; height: 76px; border-radius: 50%; border: 0; background: var(--purple); color: #fff; font-size: 35px; cursor: pointer; transition: .4s ease; }
.round-button:hover { transform: rotate(180deg) scale(1.08); }

.timeline { margin: 75px 0 0 13%; border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: 110px 24px 1fr; gap: 30px; padding: 32px 0; border-bottom: 1px solid var(--line); align-items: start; }
.timeline-item time { font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.timeline-dot { width: 14px; height: 14px; background: var(--pink); border: 2px solid var(--ink); border-radius: 50%; box-shadow: 0 0 0 7px var(--paper); }
.timeline-item strong { font-family: Georgia, serif; font-size: 28px; font-weight: 500; }
.timeline-item p { margin-bottom: 0; line-height: 1.6; opacity: .7; }

.gallery-section { background: var(--ink); color: #fff; padding-block: 130px; }
.gallery-section .section-number { border-color: #fff; }
.section-heading.light h2 { color: var(--yellow); }
.section-heading.light > p:last-child { color: rgba(255,255,255,.65); }
.gallery-grid { margin-top: 68px; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 13px; }
.photo-slot { position: relative; overflow: hidden; border: 1px dashed rgba(255,255,255,.38); border-radius: 20px; background: rgba(255,255,255,.05); color: #fff; cursor: pointer; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 20px; transition: .25s ease; }
.photo-slot:hover, .photo-slot.is-dragging { border-color: var(--yellow); background: rgba(247,214,74,.12); transform: scale(.985); }
.photo-slot span { position: absolute; top: 18px; right: 18px; font-size: 11px; opacity: .5; }
.photo-slot strong { font-family: Georgia, serif; font-size: 25px; }
.photo-slot small { opacity: .55; margin-top: 3px; }
.photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-slot.has-image::after { content: "CHANGE"; position: absolute; right: 12px; bottom: 12px; background: var(--paper); color: var(--ink); padding: 6px 9px; border-radius: 99px; font-size: 9px; font-weight: 900; }
.photo-slot-tall { grid-row: span 2; }
.photo-slot-wide { grid-column: span 2; }

.award { padding-block: 150px; }
.award-card { position: relative; overflow: hidden; max-width: 980px; margin: auto; padding: clamp(46px, 8vw, 100px); text-align: center; background: var(--purple); color: #fff; border: 3px solid var(--ink); box-shadow: 18px 18px 0 var(--pink); }
.award-card::before, .award-card::after { content: "✦"; position: absolute; font-size: 180px; color: rgba(255,255,255,.08); }
.award-card::before { left: -35px; top: -50px; }
.award-card::after { right: -30px; bottom: -65px; }
.crown { border: 0; background: none; color: var(--yellow); font-size: 74px; cursor: pointer; transition: .25s ease; }
.crown:hover { transform: scale(1.14) rotate(-6deg); }
.award-name { margin: 24px 0 4px; font-size: clamp(36px, 7vw, 78px); font-weight: 950; letter-spacing: -.055em; }
.award-copy { max-width: 590px; margin: 0 auto 28px; line-height: 1.6; }
.award-card small { display: block; margin-top: 22px; opacity: .66; }

.fine-print { border-top: 1px solid var(--line); }
.fine-print-grid { margin: 50px 0 0 40%; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; line-height: 1.65; }
footer { border-top: 1px solid var(--line); padding: 25px 4vw; display: flex; justify-content: space-between; gap: 20px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
footer button { border: 0; background: none; cursor: pointer; font-weight: inherit; }

dialog { width: min(800px, 92vw); max-height: 92vh; border: 0; padding: 20px; background: var(--ink); color: #fff; box-shadow: 0 30px 140px rgba(0,0,0,.5); }
dialog::backdrop { background: rgba(23,20,37,.72); backdrop-filter: blur(8px); }
.dialog-close { position: absolute; right: 10px; top: 4px; border: 0; background: none; color: #fff; font-size: 34px; cursor: pointer; }
.certificate { padding: clamp(30px, 7vw, 70px); background: var(--paper); color: var(--ink); text-align: center; border: 7px double var(--purple); }
.certificate-stars { color: var(--pink); letter-spacing: .8em; }
.certificate > p:first-of-type { font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.certificate h2 { font-family: Georgia, serif; font-size: clamp(35px, 6vw, 68px); margin: 30px 0; font-weight: 500; }
.certificate > strong { display: block; font-size: clamp(36px, 7vw, 78px); margin: 10px 0; letter-spacing: -.05em; color: var(--purple); }
.certificate h3 { font-size: clamp(24px, 4vw, 45px); margin: 10px 0; }
.certificate small { opacity: .62; }
.signature-row { display: flex; justify-content: space-around; gap: 30px; margin-top: 55px; font-family: Georgia, serif; }
.signature-row span { border-top: 1px solid var(--ink); padding-top: 8px; }
.signature-row b { font-family: Inter, sans-serif; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.print-button { display: block; margin: 18px auto 0; }

.toast { position: fixed; z-index: 120; bottom: 28px; left: 50%; transform: translate(-50%, 20px); padding: 12px 20px; background: var(--ink); color: #fff; border-radius: 99px; font-size: 12px; font-weight: 800; opacity: 0; pointer-events: none; transition: .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 110; pointer-events: none; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

body.after-hours { --paper: #151222; --paper-2: #211c32; --ink: #fbf4e8; --line: rgba(255,255,255,.16); }
body.after-hours .site-header { background: rgba(21,18,34,.9); }
body.after-hours .truth-strip,
body.after-hours .ticker,
body.after-hours .gallery-section { background: #0b0912; color: #fff; }
body.after-hours .brand-mark { background: var(--yellow); color: #171425; }
body.after-hours .portrait-placeholder { border-color: #fbf4e8; }
body.after-hours .portrait-note { background: #fffaf2; color: #171425; }
body.after-hours .meter-card, body.after-hours .award-card { color: #171425; }
body.after-hours .button-dark { background: #fff; color: #171425; }
body.after-hours dialog { background: #0b0912; }
body.after-hours .certificate { background: #f7f2e8; color: #171425; }
body.after-hours .certificate .signature-row span { border-color: #171425; }
body.disco { animation: disco-bg 1.2s steps(1) infinite; }

@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes twinkle { to { transform: rotate(20deg) scale(1.3); } }
@keyframes disco-bg { 0%{--paper:#f7f2e8} 25%{--paper:#ffe1ef} 50%{--paper:#e8e0ff} 75%{--paper:#d9fff1} }

@media (max-width: 820px) {
  .truth-strip p { display: none; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 55px; }
  .hero-art { order: -1; }
  .portrait-frame { width: min(320px, 74vw); }
  .hero-title-row { grid-template-columns: 1fr 105px; }
  .scroll-note { display: none; }
  .section-number { position: static; margin-bottom: 28px; }
  .intro-heading, .section-heading, .filter-row, .roulette, .timeline { margin-left: 0; }
  .intro-body, .fine-print-grid { margin-left: 0; grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .meter-card { grid-template-columns: 1fr; }
  .receipt-card { grid-column: span 6; }
  .receipt-card:nth-child(2n) { transform: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  footer { flex-direction: column; text-align: center; }
}

@media (max-width: 520px) {
  .hero h1 { font-size: 21vw; }
  .hero-title-row { grid-template-columns: 1fr; }
  .seal { width: 105px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .intro, .receipts, .timeline-section, .fine-print, .gallery-section, .award { padding-block: 90px; }
  .receipt-card { grid-column: span 12; min-height: 235px; }
  .timeline-item { grid-template-columns: 72px 16px 1fr; gap: 15px; }
  .timeline-item strong { font-size: 22px; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .photo-slot-tall, .photo-slot-wide { grid-row: auto; grid-column: auto; }
  .signature-row { flex-direction: column; }
}

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

@media print {
  body > *:not(dialog[open]) { display: none !important; }
  dialog[open] { position: static; width: 100%; max-height: none; display: block; padding: 0; background: #fff; }
  dialog::backdrop, .dialog-close, .print-button { display: none; }
  .certificate { min-height: 95vh; display: flex; flex-direction: column; justify-content: center; }
}
