/* Célula Forte — bright, blood-cell-led design system */
:root {
  --ink: #2a0a0e;
  --paper: #fff3e6;
  --accent: #e8343a;
  --gold: #f7c948;
  --burgundy: #8c1d1d;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --brush: "Caveat Brush", "Marker Felt", cursive;
  --body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --line: color-mix(in srgb, var(--ink) 16%, transparent);
  --glass: color-mix(in srgb, var(--ink) 6%, transparent);
  --wrap: min(1180px, 92vw);
}
body.on-dark {
  --ink: #fff3e6;
  --paper: #2a0a0e;
  --accent: #ffd166;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  font-size: clamp(16px, 1.05vw + 12px, 19px);
  line-height: 1.6;
  color: var(--ink);
  background: #fff3e6;
  transition: color .45s ease;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--paper); }

#cells { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, footer { position: relative; z-index: 1; }

/* vessel progress bar */
#flow { position: fixed; top: 0; left: 0; height: 5px; width: 0; z-index: 60;
  background: linear-gradient(90deg, #ff8a7a, #e8343a 60%, #8c1d1d); border-radius: 0 5px 5px 0; }

/* ---------- nav ---------- */
.nav { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50;
  width: min(1240px, 95vw); display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 10px 8px 18px; border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1.5px solid var(--line); transition: background .45s, border-color .45s; }
.nav-logo { display: flex; align-items: center; height: 46px; }
.nav-logo img { height: 46px; width: auto; }
.nav-logo .l-light, body.on-dark .nav-logo .l-dark { display: none; }
body.on-dark .nav-logo .l-light { display: block; }
.nav-links { display: flex; gap: 4px; align-items: center; list-style: none; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: .92rem; padding: 9px 14px; border-radius: 999px; transition: background .25s; }
.nav-links a:hover, .nav-links a[aria-current] { background: var(--glass); }
.nav-toggle { display: none; background: none; border: 0; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; color: var(--ink); }
.nav-toggle span { display: block; width: 22px; height: 2.5px; background: currentColor; margin: 5px auto; border-radius: 2px; transition: transform .3s, opacity .3s; }
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column; align-items: stretch;
    padding: 14px; border-radius: 28px; background: var(--paper); border: 1.5px solid var(--line);
    opacity: 0; pointer-events: none; transform: translateY(-8px); transition: .3s; }
  .nav.open .nav-links { opacity: 1; pointer-events: auto; transform: none; }
  .nav-links a { display: block; font-size: 1.05rem; padding: 12px 16px; }
  .nav.open .nav-toggle span:first-child { transform: translateY(7.5px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:last-child { transform: translateY(-7.5px) rotate(-45deg); }
}

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.02; letter-spacing: -.025em; }
h1 { font-size: clamp(2.9rem, 8.6vw, 7.6rem); }
h2 { font-size: clamp(2.1rem, 5.4vw, 4.4rem); }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.5rem); line-height: 1.15; letter-spacing: -.01em; }
.brush { font-family: var(--brush); font-weight: 400; color: var(--accent); letter-spacing: 0; display: inline-block; transform: rotate(-3deg); transition: color .45s; }
.eyebrow { font-weight: 700; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: inset -4px -1px 0 color-mix(in srgb, var(--ink) 25%, transparent); transition: background .45s; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.4rem); line-height: 1.5; max-width: 40em; }
.muted { opacity: .78; }

/* ---------- layout ---------- */
section { padding: clamp(90px, 13vh, 170px) 0; position: relative; }
.wrap { width: var(--wrap); margin: 0 auto; }
.grid { display: grid; gap: clamp(14px, 2vw, 24px); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g5 { grid-template-columns: repeat(5, 1fr); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
@media (max-width: 1000px) { .g4, .g5 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .g2, .g3, .split { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .g4, .g5 { grid-template-columns: 1fr; } }
.head { max-width: 860px; margin-bottom: clamp(32px, 5vw, 60px); }
.head p { margin-top: 18px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center .eyebrow { justify-content: center; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 700 1rem var(--body); text-decoration: none; cursor: pointer;
  padding: 15px 26px; border-radius: 999px; border: 2px solid var(--ink); background: var(--ink); color: var(--paper);
  transition: transform .25s cubic-bezier(.3,1.6,.5,1), background .45s, color .45s, border-color .45s, box-shadow .25s; }
.btn:hover { transform: translateY(-3px) rotate(-1.5deg); box-shadow: 0 10px 0 -4px color-mix(in srgb, var(--ink) 30%, transparent); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.red { background: #e8343a; border-color: #e8343a; color: #fff; }
.btn.small { padding: 10px 18px; font-size: .9rem; }
.btn .arr { transition: transform .25s; }
.btn:hover .arr { transform: translateX(4px); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- cards ---------- */
.card { background: var(--glass); border: 1.5px solid var(--line); border-radius: 28px; padding: clamp(22px, 2.4vw, 32px);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .35s cubic-bezier(.3,1.4,.5,1), background .45s, border-color .45s; }
.card:hover { transform: translateY(-6px) rotate(-.6deg); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .98rem; opacity: .85; }
.card .ico { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 18px;
  background: var(--accent); color: var(--paper); box-shadow: inset -8px -3px 0 color-mix(in srgb, var(--ink) 18%, transparent); transition: background .45s; }
.card.solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.num { font: 800 clamp(2.6rem, 5vw, 4.2rem)/1 var(--display); letter-spacing: -.03em; }
.tag { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; border: 1.5px solid var(--line); margin-bottom: 14px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px) scale(.98); transition: opacity .8s ease, transform .9s cubic-bezier(.2,.9,.3,1); transition-delay: calc(var(--i, 0) * 80ms); }
.reveal.in { opacity: 1; transform: none; }
.words span { display: inline-block; opacity: 0; transform: translateY(.6em) rotate(4deg); transition: opacity .7s, transform .8s cubic-bezier(.2,1.3,.4,1); transition-delay: calc(var(--w) * 70ms + 150ms); }
.words.in span { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: grid; align-items: center; padding-top: 130px; padding-bottom: 80px; }
.hero h1 .brush { font-size: 1.18em; line-height: .8; margin-left: .05em; }
.hero-mascot { width: clamp(110px, 15vw, 190px); animation: bob 5s ease-in-out infinite; filter: drop-shadow(0 18px 24px rgba(140, 29, 29, .28)); }
@keyframes bob { 50% { transform: translateY(-16px) rotate(5deg); } }
.hero-top { display: flex; align-items: center; gap: 22px; margin-bottom: 26px; }
.means { font-family: var(--brush); font-size: clamp(1.3rem, 2.2vw, 1.9rem); line-height: 1.1; transform: rotate(-4deg); }
.means small { display: block; font: 600 .8rem var(--body); letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); font-size: .72rem; font-weight: 700; letter-spacing: .25em; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-cue i { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); animation: drip 1.8s ease-in infinite; }
@keyframes drip { 0% { transform: translateY(-6px) scale(.6); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(22px) scale(1); opacity: 0; } }
.star { display: inline-block; width: .55em; height: .55em; background: var(--gold); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); animation: twinkle 2.4s ease-in-out infinite; vertical-align: top; }
@keyframes twinkle { 50% { transform: scale(.55) rotate(45deg); opacity: .6; } }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; padding: 20px 0; border-block: 1.5px solid var(--line); white-space: nowrap; }
.marquee div { display: inline-block; animation: slide 30s linear infinite; font: 800 clamp(1.4rem, 3vw, 2.4rem) var(--display); letter-spacing: -.02em; }
.marquee b { font-family: var(--brush); font-weight: 400; color: var(--accent); margin: 0 .5em; transition: color .45s; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- journey (scrollytelling) ---------- */
.stage { min-height: 105vh; display: grid; align-items: center; padding: 60px 0; }
.stage-inner { max-width: 640px; }
.stage:nth-of-type(even) .stage-inner { margin-left: auto; }
.phase { font: 800 clamp(5rem, 15vw, 12rem)/.8 var(--display); letter-spacing: -.05em; opacity: .16; margin-bottom: -.22em; }
.stage h2 { margin-bottom: 18px; }
.stage blockquote { font-family: var(--brush); font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.15; margin-top: 22px; color: var(--accent); transition: color .45s; }

/* ---------- lab ---------- */
.lab-panel { border-radius: 36px; padding: clamp(24px, 4vw, 48px); background: color-mix(in srgb, var(--paper) 80%, transparent); border: 1.5px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lab-read { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 26px; }
.lab-read div span { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 18px; border-radius: 999px; margin-top: 26px; cursor: grab;
  background: linear-gradient(90deg, #ff8a7a, #e8343a 50%, #5e0f18); outline-offset: 6px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 44px; border-radius: 50%; background: #fff3e6; border: 4px solid #2a0a0e; box-shadow: inset -9px -3px 0 #f7c948; }
input[type=range]::-moz-range-thumb { width: 38px; height: 38px; border-radius: 50%; background: #fff3e6; border: 4px solid #2a0a0e; }

/* punnett */
.punnett { display: grid; gap: 22px; }
.punnett select { font: 600 1rem var(--body); padding: 12px 16px; border-radius: 16px; border: 1.5px solid var(--line); background: transparent; color: var(--ink); width: 100%; }
.punnett label { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; display: grid; gap: 8px; }
.bars { display: grid; gap: 12px; }
.bar { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-weight: 600; font-size: .95rem; }
.bar i { grid-column: 1 / -1; height: 14px; border-radius: 999px; background: var(--glass); overflow: hidden; }
.bar i::after { content: ""; display: block; height: 100%; width: var(--v, 0%); border-radius: 999px; background: var(--c, var(--accent)); transition: width .7s cubic-bezier(.2,.9,.3,1); }

/* accordions */
details { border: 1.5px solid var(--line); border-radius: 24px; padding: 0 24px; background: var(--glass); transition: background .45s, border-color .45s; }
details + details { margin-top: 12px; }
summary { list-style: none; cursor: pointer; font: 800 clamp(1.1rem, 1.7vw, 1.4rem) var(--display); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); box-shadow: inset -9px -2px 0 var(--paper); transition: transform .4s, background .45s; }
details[open] summary::after { transform: rotate(180deg); }
details > div { padding-bottom: 22px; font-size: .98rem; }
details ul { padding-left: 1.2em; margin-top: 8px; }
details li + li { margin-top: 6px; }

/* ---------- founder / article ---------- */
.portrait { aspect-ratio: 4/5; border-radius: 48% 52% 46% 54% / 50% 44% 56% 50%; background: radial-gradient(circle at 35% 30%, #ff8a7a, #e8343a 45%, #8c1d1d); display: grid; place-items: center; position: relative; overflow: hidden; animation: blob 14s ease-in-out infinite; border: 4px solid #2a0a0e; }
.portrait img { width: 62%; animation: bob 6s ease-in-out infinite; }
.portrait img.photo { width: 100%; height: 100%; object-fit: cover; animation: none; }
@keyframes blob { 50% { border-radius: 54% 46% 52% 48% / 44% 54% 46% 56%; } }
.timeline { list-style: none; padding: 0; margin-top: 30px; border-left: 3px solid var(--line); }
.timeline li { padding: 0 0 26px 28px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -10.5px; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); box-shadow: inset -5px -1px 0 color-mix(in srgb, var(--ink) 25%, transparent); transition: background .45s; }
.timeline b { font: 800 .82rem var(--body); letter-spacing: .14em; text-transform: uppercase; display: block; opacity: .75; }

.article { max-width: 760px; margin: 0 auto; }
.article p { margin-bottom: 1.35em; font-size: clamp(1.05rem, 1.25vw, 1.2rem); line-height: 1.75; }
.article h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); margin: .2em 0 .6em; }
.article .drop::first-letter { font: 800 4.6em/.78 var(--display); float: left; padding: .06em .1em 0 0; color: var(--accent); transition: color .45s; }
.pull { font-family: var(--brush); font-size: clamp(1.9rem, 4.6vw, 3.6rem); line-height: 1.05; margin: .5em 0; color: var(--accent); transform: rotate(-1.5deg); transition: color .45s; }
.pull cite { display: block; font: 600 .85rem var(--body); letter-spacing: .08em; margin-top: 14px; color: var(--ink); opacity: .75; font-style: normal; }
.byline { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .88rem; font-weight: 600; opacity: .8; margin-top: 26px; }
.sources { font-size: .9rem; }
.sources li { margin-bottom: 8px; }
.chapter { padding: clamp(70px, 10vh, 120px) 0; }

/* ---------- lanyard ---------- */
.dish { aspect-ratio: 1; border-radius: 50%; background: #fff; display: grid; place-items: center; position: relative;
  box-shadow: 0 0 0 14px rgba(255,255,255,.35), 0 40px 80px -20px rgba(140, 29, 29, .45); }
.dish img { width: 70%; mix-blend-mode: multiply; transform: rotate(calc(var(--tilt, 0) * 1deg)) translateY(calc(var(--lift, 0) * 1px)); transition: transform .2s ease-out; will-change: transform; }
.price { position: absolute; right: -2%; top: 4%; width: clamp(96px, 30%, 150px); aspect-ratio: 1; border-radius: 50%; background: #f7c948; color: #2a0a0e; display: grid; place-items: center; text-align: center;
  font: 800 clamp(1.3rem, 2.6vw, 2rem)/1 var(--display); transform: rotate(12deg); border: 4px solid #2a0a0e; animation: bob 4s ease-in-out infinite; }
.price small { display: block; font: 700 .62rem var(--body); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.pills span { padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; font-size: .95rem; background: var(--glass); }
.note { font-size: .88rem; border: 1.5px dashed var(--line); border-radius: 20px; padding: 18px 22px; max-width: 760px; }
.bigword { font: 800 clamp(3.4rem, 13vw, 12rem)/.86 var(--display); letter-spacing: -.045em; }
.bigword .ghosted { -webkit-text-stroke: 2px var(--ink); color: transparent; opacity: calc(1 - var(--vis, 0)); }
.sticky-buy { position: fixed; bottom: 18px; left: 50%; transform: translate(-50%, 140%); z-index: 40; transition: transform .5s cubic-bezier(.2,1.2,.4,1);
  display: flex; align-items: center; gap: 16px; padding: 8px 8px 8px 22px; border-radius: 999px; background: #2a0a0e; color: #fff3e6; font-weight: 700; white-space: nowrap; box-shadow: 0 18px 40px -12px rgba(0,0,0,.5); }
.sticky-buy.show { transform: translate(-50%, 0); }

/* ---------- forms / footer ---------- */
form.inline { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
input[type=email], input[type=text], textarea { font: 500 1rem var(--body); padding: 15px 20px; border-radius: 22px; border: 1.5px solid var(--line); background: var(--glass); color: var(--ink); flex: 1; min-width: 220px; width: 100%; }
textarea { min-height: 130px; resize: vertical; }
::placeholder { color: var(--ink); opacity: .55; }
form.stack { display: grid; gap: 12px; }
footer { padding: 70px 0 40px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 860px) { .foot { grid-template-columns: 1fr 1fr; } }
.foot img { height: 76px; width: auto; margin-bottom: 16px; }
.foot h4 { font: 800 .8rem var(--body); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; opacity: .7; }
.foot ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; } .foot a:hover { text-decoration: underline; }
.legal { margin-top: 46px; padding-top: 22px; border-top: 1.5px solid var(--line); font-size: .8rem; opacity: .75; display: grid; gap: 8px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .reveal, .words span { opacity: 1; transform: none; transition: none; }
}

/* ================= v2: glow, modals, rails, banners, press ================= */
.glow { animation: glowf 7s ease-in-out infinite, pulse 7s ease-in-out infinite; }
.hero-mascot { animation: bob 5s ease-in-out infinite, glowf 7s ease-in-out infinite; }
@keyframes glowf {
  0%, 74%, 100% { filter: drop-shadow(0 0 0 rgba(247, 201, 72, 0)); }
  84% { filter: drop-shadow(0 0 9px rgba(255, 214, 102, 1)) drop-shadow(0 0 26px rgba(232, 52, 58, .85)); }
  92% { filter: drop-shadow(0 0 4px rgba(255, 214, 102, .5)); }
}
@keyframes pulse { 0%, 74%, 100% { transform: scale(1); } 84% { transform: scale(1.06) rotate(-2deg); } }

/* modal */
dialog.modal { border: 0; padding: 0; background: transparent; width: min(700px, 94vw); max-width: none; max-height: none; overflow: visible; margin: auto;
  --ink: #2a0a0e; --paper: #fff3e6; --accent: #e8343a; --line: rgba(42,10,14,.16); --glass: rgba(42,10,14,.06); color: #2a0a0e; }
.modal::backdrop { background: rgba(58, 10, 18, .6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: fade .3s; }
.modal-body { background: #fff3e6; border-radius: 36px; padding: clamp(26px, 4vw, 46px); max-height: 86vh; overflow: auto; border: 3px solid #2a0a0e;
  box-shadow: 0 14px 0 -4px #e8343a, 0 40px 80px -20px rgba(0, 0, 0, .55); }
.modal[open] .modal-body { animation: pop .5s cubic-bezier(.2, 1.4, .4, 1); }
.modal.closing .modal-body { animation: popout .22s ease-in forwards; }
.modal.closing::backdrop { opacity: 0; transition: opacity .22s; }
.modal-x { position: absolute; top: -16px; right: -8px; width: 50px; height: 50px; border-radius: 50%; background: #e8343a; color: #fff; border: 3px solid #2a0a0e; font-size: 1.05rem; font-weight: 700; cursor: pointer; z-index: 2;
  box-shadow: inset -9px -3px 0 rgba(42, 10, 14, .22); transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.modal-x:hover { transform: rotate(90deg) scale(1.1); }
.modal-body h3 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: 14px; }
.modal-body p + p, .modal-body ul + p, .modal-body p + ul { margin-top: 12px; }
.modal-body ul { padding-left: 1.2em; } .modal-body li + li { margin-top: 6px; }
.modal-body img.wide { width: 100%; max-height: 46vh; object-fit: cover; border-radius: 22px; margin-bottom: 20px; border: 3px solid #2a0a0e; }
.modal-body img.tall { float: right; width: 42%; margin: 0 0 14px 20px; border-radius: 22px; border: 3px solid #2a0a0e; }
@media (max-width: 560px) { .modal-body img.tall { float: none; width: 100%; margin: 0 0 16px; max-height: 44vh; object-fit: cover; } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(40px) scale(.82) rotate(-3deg); } }
@keyframes popout { to { opacity: 0; transform: translateY(30px) scale(.9); } }

/* tiles = cards that open a modal */
button.tile, a.tile { font: inherit; color: inherit; text-align: left; cursor: pointer; text-decoration: none; display: block; position: relative; width: 100%; }
.tile::after { content: "+"; position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 800 1.2rem var(--display);
  background: var(--ink); color: var(--paper); transition: transform .35s cubic-bezier(.3,1.6,.5,1), background .45s, color .45s; }
a.tile::after { content: "→"; font-size: 1rem; }
.tile:hover::after { transform: rotate(90deg) scale(1.15); } a.tile:hover::after { transform: translateX(4px) scale(1.15); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: .82rem; letter-spacing: .02em;
  background: var(--ink); color: var(--paper); transition: background .45s, color .45s; }
.badge.out { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
a.badge { text-decoration: none; } a.badge:hover { transform: translateY(-2px); }

/* rails */
.rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px max(4vw, calc((100vw - 1180px) / 2)) 24px; scrollbar-width: none; cursor: grab; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: 0 0 clamp(240px, 26vw, 320px); scroll-snap-align: center; }
.rail.drag { scroll-snap-type: none; cursor: grabbing; } .rail.drag * { pointer-events: none; }
.rail-ctrl { display: flex; align-items: center; gap: 14px; width: var(--wrap); margin: 0 auto; }
.rail-ctrl button { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--ink); background: transparent; color: var(--ink); font-size: 1.1rem; cursor: pointer; transition: transform .25s, opacity .25s, background .3s, color .3s; }
.rail-ctrl button:hover:not(:disabled) { background: var(--ink); color: var(--paper); transform: scale(1.08); }
.rail-ctrl button:disabled { opacity: .3; cursor: default; }
.rail-ctrl i { flex: 1; height: 6px; border-radius: 6px; background: var(--glass); overflow: hidden; }
.rail-ctrl b { display: block; height: 100%; border-radius: 6px; background: var(--accent); transition: width .2s, background .45s; }
.go { min-height: 250px; display: flex !important; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.go .ico { margin-bottom: auto; }
.go.photo { color: #fff3e6; border-color: #2a0a0e; background: #2a0a0e; }
.go.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; z-index: -1; transition: transform .6s; }
.go.photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(42,10,14,.9)); z-index: -1; }
.go.photo:hover img { transform: scale(1.07); }
.go.photo { isolation: isolate; }

/* banner sections fit one screen */
.banner { min-height: 100svh; display: grid; align-items: center; padding: 110px 0 60px; }
.compact { padding: clamp(70px, 9vh, 110px) 0; }

/* inside-the-blood banner */
.phases { --p: 0; }
.ph-card { border-radius: 40px; padding: clamp(22px, 3.4vw, 44px); background: color-mix(in srgb, var(--paper) 82%, transparent); border: 1.5px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .45s, border-color .45s; }
.ph-track { position: relative; display: flex; justify-content: space-between; align-items: center; margin: 8px 0 30px; }
.ph-track::before, .ph-track::after { content: ""; position: absolute; left: 4%; top: 50%; height: 16px; margin-top: -8px; border-radius: 16px; }
.ph-track::before { right: 4%; background: var(--glass); border: 1.5px solid var(--line); }
.ph-track::after { width: calc(var(--p) * 92%); background: linear-gradient(90deg, #ff8a7a, #e8343a 60%, #8c1d1d); transition: width .7s cubic-bezier(.3,1,.4,1); }
.ph-btn { position: relative; z-index: 1; width: clamp(48px, 6.4vw, 74px); aspect-ratio: 1; border-radius: 50%; border: 3px solid #2a0a0e; background: #fff3e6; display: grid; place-items: center; cursor: pointer; padding: 0;
  transition: transform .4s cubic-bezier(.3,1.6,.5,1), background .3s, box-shadow .3s; }
.ph-btn svg { width: 58%; height: 58%; }
.ph-btn:hover { transform: scale(1.1) rotate(-6deg); }
.ph-btn.done { background: #ffd9cf; }
.ph-btn[aria-pressed=true] { transform: scale(1.28); background: #ffd166; box-shadow: 0 0 0 7px rgba(255, 209, 102, .35); }
.ph-btn[aria-pressed=true]::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 3px solid #ffd166; animation: ring 1.9s ease-out infinite; }
@keyframes ring { to { transform: scale(1.7); opacity: 0; } }
.ph-panel { display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; align-items: center; min-height: 128px; }
.ph-panel.swap > * { animation: swap .5s cubic-bezier(.2,1.2,.4,1) both; }
.ph-panel.swap > :nth-child(2) { animation-delay: .06s; }
@keyframes swap { from { opacity: 0; transform: translateY(18px); } }
.ph-n { font: 800 clamp(3.4rem, 7vw, 5.6rem)/.9 var(--display); letter-spacing: -.05em; color: var(--accent); transition: color .45s; }
.ph-t { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 6px; }

/* lanyard purchase banner */
.ribbon { position: absolute; top: 84px; left: -4%; right: -4%; transform: rotate(-2deg); background: #ffd166; color: #2a0a0e; padding: 10px 0; overflow: hidden; white-space: nowrap; border-block: 3px solid #2a0a0e; z-index: 2; }
.ribbon div { display: inline-block; animation: slide 26s linear infinite; font: 800 .95rem var(--display); letter-spacing: .08em; }
.buy-visual { position: relative; aspect-ratio: 1 / 1.02; perspective: 900px; max-width: 560px; width: 100%; margin: 0 auto; }
.buy-photo { position: absolute; left: 2%; top: 0; width: 60%; aspect-ratio: 9 / 14; border-radius: 32px; border: 4px solid #2a0a0e; overflow: hidden;
  transform: rotate(-5deg) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out; box-shadow: 14px 18px 0 -2px rgba(42, 10, 14, .55); }
.buy-photo img { width: 100%; height: 100%; object-fit: cover; }
.buy-visual .dish { position: absolute; right: 0; bottom: 2%; width: 56%; animation: bob 6s ease-in-out infinite; }
.sticker { position: absolute; left: -4%; bottom: 10%; background: #fff3e6; color: #2a0a0e; border: 3px solid #2a0a0e; border-radius: 18px; padding: 10px 14px; font-weight: 700; font-size: .82rem; line-height: 1.25; transform: rotate(-8deg); z-index: 3; box-shadow: 5px 6px 0 #e8343a; }
.sticker b { display: block; font: 800 1.3rem var(--display); }

/* photos */
.frame { border-radius: 36px; overflow: hidden; border: 4px solid #2a0a0e; box-shadow: 14px 16px 0 -2px color-mix(in srgb, var(--accent) 80%, transparent); transform: rotate(var(--r, -2deg)); transition: transform .5s cubic-bezier(.3,1.4,.5,1), box-shadow .45s; }
.frame:hover { transform: rotate(0) scale(1.02); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.portrait.has-photo { background: #2a0a0e; }
.credit { font-size: .76rem; opacity: .7; margin-top: 16px; }

/* press / noise wall */
.eq { display: inline-flex; gap: 5px; align-items: flex-end; height: .8em; margin-left: .25em; }
.eq span { width: .13em; background: var(--accent); border-radius: 4px; animation: eq 1s ease-in-out infinite; transition: background .45s; }
.eq span:nth-child(2) { animation-delay: -.3s; } .eq span:nth-child(3) { animation-delay: -.6s; } .eq span:nth-child(4) { animation-delay: -.15s; } .eq span:nth-child(5) { animation-delay: -.45s; }
@keyframes eq { 0%, 100% { height: 20%; } 50% { height: 100%; } }
.meter { display: flex; flex-wrap: wrap; gap: 14px 48px; margin-top: 28px; }
.meter span { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.deck { display: flex; justify-content: center; padding: 56px 0 30px; }
.shot { font: inherit; padding: 0; cursor: pointer; position: relative; flex: none; width: clamp(170px, 25vw, 310px); aspect-ratio: 4 / 5; border-radius: 26px; overflow: hidden; border: 4px solid #fff3e6; background: #2a0a0e; color: #fff3e6;
  margin: 0 clamp(-46px, -3vw, -18px); transform: rotate(var(--r)) translateY(var(--y)); transition: transform .5s cubic-bezier(.3,1.4,.5,1), margin .5s cubic-bezier(.3,1.2,.5,1); box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .6); text-align: left; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.shot::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(42, 10, 14, .92)); z-index: 1; }
.shot .cap { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; font-size: .82rem; line-height: 1.3; }
.shot .cap b { display: block; font: 800 1.05rem var(--display); }
.shot .likes { position: absolute; top: 12px; right: 12px; z-index: 2; background: #e8343a; color: #fff; font-weight: 800; font-size: .85rem; padding: 6px 12px; border-radius: 999px; animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.14); } 24% { transform: scale(1); } 36% { transform: scale(1.1); } }
@media (hover: hover) { .deck:hover .shot { margin: 0 10px; transform: rotate(0) translateY(0); } .deck .shot:hover { transform: translateY(-16px) scale(1.05); z-index: 3; } .shot:hover img { transform: scale(1.06); } }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; flex-direction: column; text-decoration: none; padding: 12px 18px; border-radius: 20px; border: 1.5px solid var(--line); background: var(--glass); font-size: .88rem; transition: transform .3s cubic-bezier(.3,1.6,.5,1), background .3s; }
.chip b { font: 800 1rem var(--display); }
a.chip:hover { transform: translateY(-4px) rotate(-1.5deg); background: var(--ink); color: var(--paper); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: s; }
.steps > div { border-top: 4px solid var(--accent); padding-top: 14px; font-size: .92rem; transition: border-color .45s; }
.steps b { display: block; font: 800 1.15rem var(--display); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr 1fr; } .ph-panel { grid-template-columns: 1fr; } .ribbon { top: 76px; } .buy-visual { max-width: 380px; } }

/* footer is a solid block so its text is always readable */
footer { background: #2a0a0e; color: #fff3e6; --ink: #fff3e6; --paper: #2a0a0e; --accent: #ffd166; --line: rgba(255, 243, 230, .18); border-radius: 44px 44px 0 0; margin-top: 40px; }
.go { min-height: 330px; }
.go.photo img { object-position: 50% 0; }
.go.photo::before { background: linear-gradient(transparent 50%, rgba(42, 10, 14, .95) 82%); }
.modal-body img.tall { float: none; width: auto; max-width: 100%; max-height: 40vh; margin: 0 auto 20px; }
