@font-face { font-family: "Lilita One"; src: url("/assets/fonts/lilita-one.ttf") format("truetype"); font-display: swap; }

:root {
  --cheese: #FFC93C; --rind: #F29E38; --deep: #B85E0A; --ink: #2B2118; --amber: #FFB627;
  --bg: #000; --bg2: #0B0806; --text: #EFE6D6; --dim: #9A8E7E;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); scrollbar-gutter: stable both-edges; scrollbar-color: #3A2C1E #000; }
body { margin: 0; color: var(--text); background: var(--bg); font: 400 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h2, h3 { font-family: "Lilita One", system-ui, sans-serif; font-weight: 400; letter-spacing: .01em; margin: 0; }
a { color: inherit; }
.cue svg path, .cta svg path, .btn svg path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- hero ---------------------------------------------------------------------------------------------- */
html.intro, html.intro body { overflow: hidden; height: 100%; overscroll-behavior: none; }
html.intro main, html.intro footer { visibility: hidden; }
.shot .hero { min-height: 760px; }
.shot .reveal { transition: none !important; }
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; background: #000; overflow: hidden; }
.cat { width: min(74vmin, 620px); aspect-ratio: 1; position: relative; -webkit-tap-highlight-color: transparent; }
.cat svg.alive .head, .cat svg.alive .ear-l, .cat svg.alive .ear-r, .cat svg.alive .eye { cursor: pointer; }
.cat svg { width: 100%; height: 100%; display: block; overflow: visible; }
.skip { position: absolute; bottom: 28px; left: 0; right: 0; text-align: center; margin: 0; font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
        color: #4a4036; opacity: 0; transition: opacity .6s; pointer-events: none; }
.skip.show { opacity: 1; }
.cue { position: absolute; bottom: 26px; left: 50%; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none;
       color: var(--dim); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; opacity: 0; transition: opacity 1s .4s, color .2s; pointer-events: none; }
.cue svg { width: 26px; height: 26px; animation: bob 2.2s ease-in-out infinite; }
.alive-page .cue { opacity: 1; pointer-events: auto; }
.cue:hover { color: var(--cheese); }
@keyframes bob { 50% { transform: translateY(5px); } }

/* live-cat overrides: JS drives these once the intro is over */
.cat svg.alive .look, .cat svg.alive .dil, .cat svg.alive .lid, .cat svg.alive .ear-r, .cat svg.alive .ear-l, .cat svg.alive .squash { animation: none !important; }
.cat svg.alive .look { transform: translate(var(--lx, 0px), var(--ly, 0px)); }
.cat svg.alive .dil { transform: scaleX(var(--dil, 1)); }
.cat svg.alive .lid { transform: scaleY(0); }
.cat svg.alive .ear-l { transform-box: fill-box; transform-origin: 70% 100%; }
.cat svg.alive .ear-r { transform-box: fill-box; transform-origin: 30% 100%; }
.heart { position: absolute; pointer-events: none; font-size: 26px; line-height: 1; translate: -50% -50%; animation: float 1.4s cubic-bezier(.2,.7,.3,1) forwards;
         text-shadow: 0 0 12px rgba(255, 182, 39, .5); }
@keyframes float { 0% { opacity: 0; transform: translateY(0) scale(.4); } 15% { opacity: 1; transform: translateY(-14px) scale(1.1); }
                   100% { opacity: 0; transform: translateY(-120px) translateX(var(--dx, 0)) scale(.9) rotate(var(--rot, 0deg)); } }

/* ---- sections -------------------------------------------------------------------------------------------- */
main { background:
  radial-gradient(circle at 12% 18%, rgba(255,201,60,.05) 0 34px, transparent 35px),
  radial-gradient(circle at 86% 9%, rgba(255,201,60,.04) 0 22px, transparent 23px),
  radial-gradient(circle at 78% 62%, rgba(255,201,60,.035) 0 46px, transparent 47px),
  radial-gradient(circle at 20% 82%, rgba(255,201,60,.04) 0 28px, transparent 29px),
  radial-gradient(ellipse at 50% 0%, #1E1408 0%, var(--bg2) 55%, #050302 100%); }
section { padding: clamp(80px, 12vw, 150px) 24px; max-width: 1100px; margin: 0 auto; text-align: center; }
section h2 { font-size: clamp(40px, 7vw, 72px); margin-bottom: clamp(36px, 6vw, 64px);
             background: linear-gradient(#FFF0B0, var(--cheese) 55%, #E8961A); -webkit-background-clip: text; background-clip: text; color: transparent;
             filter: drop-shadow(0 4px 18px rgba(255, 182, 39, .18)); }

/* ---- holo trading cards ----------------------------------------------------------------------------------- */
.cards { display: flex; gap: clamp(28px, 6vw, 72px); justify-content: center; flex-wrap: wrap; }
.card { width: min(340px, 82vw); text-decoration: none; display: block; outline: none; perspective: 1100px; }
.tilt { transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.2,.8,.2,1); will-change: transform; }
.card.active .tilt { transition: transform .08s linear; }
.face { position: relative; aspect-ratio: 2 / 3; border-radius: 18px; overflow: hidden; background: #111;
        box-shadow: 0 30px 60px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(255, 214, 120, .18), 0 0 40px -10px rgba(255, 182, 39, .25); transform: translateZ(0); }
.face img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.04); transition: transform .6s; }
.card:hover .face img, .card:focus-visible .face img { transform: scale(1.08); }
.glare { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay; opacity: 0; transition: opacity .4s;
         background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.75), rgba(255,255,255,.12) 28%, transparent 60%); }
.holo { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color-dodge; opacity: 0; transition: opacity .4s;
        background: linear-gradient(115deg, transparent 20%, rgba(255,90,170,.35) 36%, rgba(90,200,255,.35) 46%, rgba(120,255,170,.32) 56%, rgba(255,230,90,.34) 66%, transparent 80%);
        background-size: 250% 250%; background-position: var(--hx, 50%) var(--hy, 50%); }
.card.active .glare, .card:focus-visible .glare { opacity: 1; }
.card.active .holo { opacity: .55; }
.tensile .holo { display: none; }
.meta { margin-top: 26px; }
.meta h3 { font-size: 34px; color: var(--text); }
.tag { color: var(--cheese); font-weight: 600; margin: 4px 0 6px; }
.desc { color: var(--dim); margin: 0 auto 14px; max-width: 30ch; }
.cta { display: inline-flex; align-items: center; gap: 6px; color: var(--rind); font-weight: 600; font-size: 15px; }
.cta svg { width: 16px; height: 16px; transition: transform .2s; }
.card:hover .cta svg { transform: translate(2px, -2px); }

/* Tensile: powered down until you hover, then the power flickers on */
.tensile .face img { filter: brightness(.38) saturate(.5) contrast(1.05); transition: filter .7s ease, transform .6s; }
.tensile.active .face img, .tensile:focus-visible .face img { filter: brightness(1) saturate(1) contrast(1); animation: power-on .75s linear both; transition: transform .6s; }
.zap { position: absolute; inset: 0; pointer-events: none; opacity: 0; mix-blend-mode: screen;
       background: radial-gradient(ellipse at 62% 38%, rgba(90, 190, 255, .55), rgba(58, 168, 255, .12) 45%, transparent 70%); }
.tensile.active .zap, .tensile:focus-visible .zap { animation: zap .75s linear both; }
.tensile.active .face, .tensile:focus-visible .face { box-shadow: 0 30px 60px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(120, 200, 255, .45), 0 0 46px -6px rgba(58, 168, 255, .55); }
.tensile .glare { mix-blend-mode: soft-light; }
@keyframes power-on {
  0%   { filter: brightness(.38) saturate(.5); }
  7%   { filter: brightness(1.15) saturate(1.1); }
  11%  { filter: brightness(.4) saturate(.6); }
  19%  { filter: brightness(1.05) saturate(1); }
  24%  { filter: brightness(.55) saturate(.7); }
  30%  { filter: brightness(1.2) saturate(1.15); }
  36%  { filter: brightness(.85) saturate(.9); }
  48%, 100% { filter: brightness(1) saturate(1); }
}
@keyframes zap { 0%, 100% { opacity: 0; } 7% { opacity: .9; } 11% { opacity: 0; } 19% { opacity: .6; } 24% { opacity: 0; } 30% { opacity: 1; } 55% { opacity: .15; } }
@media (hover: none) { .tensile .face img { filter: none; } }

/* Huekeeper mystery card */
.mystery { cursor: default; }
.hues { position: absolute; inset: -40%; background: conic-gradient(from 0deg, #FF4D6D, #FFB627, #F4FF6A, #3DDC97, #3AA8FF, #8A5BFF, #FF4D6D);
        filter: blur(40px) saturate(1.1); opacity: .75; animation: spin 14s linear infinite; }
.mystery .face::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, rgba(0,0,0,.15), rgba(0,0,0,.72) 75%); }
.qq { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; font: 400 clamp(64px, 18vw, 110px) "Lilita One", sans-serif; color: #fff;
      text-shadow: 0 6px 30px rgba(0,0,0,.45); letter-spacing: .04em; animation: breathe 4s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { opacity: .78; transform: scale(.97); } }

/* ---- contact --------------------------------------------------------------------------------------------------- */
.links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px; text-decoration: none; font-weight: 600;
       border: 1px solid rgba(255, 214, 120, .28); color: var(--text); background: rgba(255,255,255,.03); transition: transform .2s, background .2s, border-color .2s, box-shadow .2s; }
.btn svg { width: 18px; height: 18px; }
.btn:hover, .btn:focus-visible { transform: translateY(-2px); border-color: var(--cheese); box-shadow: 0 10px 30px -12px rgba(255,182,39,.5); outline: none; }
.btn.primary, .btn.primary:visited { background: linear-gradient(#FFDA6A, #FFC93C); color: #120B06; font-weight: 800; letter-spacing: .01em;
               text-shadow: 0 1px 0 rgba(255,255,255,.35); border-color: transparent; }
footer { text-align: center; color: #5d5347; font-size: 14px; padding: 40px 20px 50px; background: #050302; }

/* ---- scroll reveal ---------------------------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.cards .reveal:nth-child(2) { transition-delay: .12s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hues, .qq, .cue svg, .tensile.active .face img, .tensile.active .zap { animation: none; }
}
