/* HOOKED website: the look of the application – lavender, white pixel type, periwinkle, a glitch. */
:root {
  --lav: #e2a9f0;
  --lav-soft: #efd0f6;
  --lav-deep: #c98fe0;
  --peri: #6f78f0;
  --ink: #1d1230;
  --white: #ffffff;
  --cyan: #2fd3d0;
  --red: #ff4b5c;
  --card: rgba(255, 255, 255, 0.55);
  --radius: 18px;
  --px: "Silkscreen", ui-monospace, monospace;
  --sans: "Space Grotesk", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--lav); color: var(--ink); font: 17px/1.6 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration-color: var(--peri); text-underline-offset: 3px; }
a:hover { color: var(--peri); }

.px { font-family: var(--px); font-weight: 700; letter-spacing: 0.02em; line-height: 1.05; }
h1.px { font-size: clamp(40px, 7vw, 72px); color: var(--white); margin: 0 0 16px; text-shadow: 3px 3px 0 var(--peri); }
h2.px { font-size: clamp(26px, 4vw, 36px); color: var(--peri); margin: 0 0 16px; }

.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 20px; padding: 14px 24px;
  background: rgba(226, 169, 240, 0.86); backdrop-filter: blur(8px); border-bottom: 2px dotted rgba(111, 120, 240, 0.45); }
.logo { font-family: var(--px); font-weight: 700; font-size: 24px; color: var(--white); text-decoration: none; text-shadow: 2px 2px 0 var(--peri); }
.top nav { display: flex; gap: 18px; flex-wrap: wrap; margin-right: auto; }
.top nav a { text-decoration: none; font-weight: 500; }
.top nav a[aria-current] { color: var(--peri); text-decoration: underline; text-decoration-thickness: 2px; }

.btn { display: inline-block; padding: 10px 20px; border-radius: 999px; background: var(--peri); color: var(--white); text-decoration: none;
  font-weight: 700; border: 2px solid var(--peri); transition: transform 0.15s; }
.btn:hover { color: var(--white); transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--peri); }
.btn.big { font-size: 19px; padding: 14px 28px; }
.soon { font-family: var(--px); color: var(--peri); align-self: center; }
.more { font-weight: 700; color: var(--peri); }

.hero { max-width: 1180px; margin: 0 auto; padding: 40px 24px 0; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 24px; align-items: center; }
.hero-text { padding-bottom: 24px; }
.kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-family: var(--px); color: var(--peri); font-size: 15px; }
.dots { flex: 1; border-top: 3px dotted var(--peri); min-width: 40px; }
.hero h1 { font-size: clamp(56px, 9.5vw, 136px); margin: 0; }
.tagline { font-size: clamp(20px, 3.4vw, 34px); color: var(--peri); margin: 8px 0 24px; }
.lead { font-size: 20px; max-width: 34em; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.portrait { width: 100%; height: auto; max-width: 480px; justify-self: center; filter: drop-shadow(0 20px 40px rgba(29, 18, 48, 0.25)); }

/* the glitch on the big title, calm when people ask for less motion */
.glitch { position: relative; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; text-shadow: none; }
.glitch::before { color: var(--cyan); clip-path: inset(0 0 62% 0); transform: translate(-4px, 0); mix-blend-mode: multiply; animation: g1 3.2s infinite steps(1); }
.glitch::after { color: var(--red); clip-path: inset(58% 0 0 0); transform: translate(4px, 0); mix-blend-mode: multiply; animation: g2 2.7s infinite steps(1); }
@keyframes g1 { 0%, 86%, 100% { opacity: 0; } 88% { opacity: 0.9; transform: translate(-6px, -2px); } 92% { opacity: 0.7; transform: translate(3px, 1px); } }
@keyframes g2 { 0%, 80%, 100% { opacity: 0; } 82% { opacity: 0.85; transform: translate(6px, 2px); } 85% { opacity: 0.6; transform: translate(-2px, 0); } }
@media (prefers-reduced-motion: reduce) { .glitch::before, .glitch::after { animation: none; opacity: 0; } .btn { transition: none; } }

.band { background: var(--ink); color: var(--lav-soft); padding: 28px 24px; text-align: center; font-size: 20px; }
.band p { margin: 0 auto; max-width: 900px; }
.band strong { color: var(--white); font-family: var(--px); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 64px 24px; }
.wrap.intro { padding-bottom: 8px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split img { border-radius: var(--radius); background: var(--white); padding: 8px; }
.split.flip img { order: 2; }

.grid { display: grid; gap: 22px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--card); border-radius: var(--radius); padding: 18px; border: 2px solid rgba(255, 255, 255, 0.7); }
.card.post { display: flex; flex-direction: column; gap: 12px; text-decoration: none; transition: transform 0.15s; }
.card.post:hover { transform: translateY(-3px); color: var(--ink); }
.card.post img, .noimg { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: 12px; background: var(--lav-soft); }
.noimg { display: grid; place-items: center; font-size: 42px; color: var(--peri); }
.card h3 { margin: 4px 0; font-size: 20px; }
.card time, .article time { font-family: var(--px); font-size: 13px; color: var(--peri); }
.person .avatar, .person img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: 12px; }
.person .avatar { display: grid; place-items: center; background: var(--peri); color: var(--white); font: 700 40px var(--px); }
.person .meta { margin: 0; color: var(--peri); font-size: 14px; }
.person .role { margin: 4px 0 8px; font-weight: 700; }

.article { max-width: 760px; }
.article h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.15; margin: 8px 0 20px; }
.article .cover { border-radius: var(--radius); margin-bottom: 24px; background: var(--lav-soft); }
.prose img { border-radius: 12px; margin: 16px 0; }
.prose h2 { color: var(--peri); }

.gallery { columns: 3 280px; column-gap: 18px; }
.gallery figure { break-inside: avoid; margin: 0 0 18px; background: var(--card); border-radius: var(--radius); padding: 10px; }
.gallery img, .gallery video { width: 100%; border-radius: 10px; background: var(--white); }
.gallery figcaption { font-size: 14px; padding: 8px 4px 2px; }
.gallery audio { width: 100%; }

footer { text-align: center; padding: 48px 24px 64px; border-top: 2px dotted rgba(111, 120, 240, 0.45); }
footer .links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.battery { display: inline-block; width: 46px; height: 22px; border: 3px solid var(--peri); border-radius: 5px; position: relative; padding: 3px; }
.battery::after { content: ""; position: absolute; right: -8px; top: 5px; width: 5px; height: 7px; background: var(--peri); border-radius: 0 2px 2px 0; }
.battery span { display: block; width: 22%; height: 100%; background: var(--peri); }
.battery.small { width: 34px; height: 18px; border-width: 2px; padding: 2px; }
.battery.small::after { top: 4px; right: -6px; width: 4px; height: 6px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 28px; }
  .hero-text { padding-bottom: 0; }
  .portrait { max-width: 340px; }
  .split, .grid.three { grid-template-columns: 1fr; }
  .split.flip img { order: 0; }
  .wrap { padding: 44px 16px; }
  .top { padding: 10px 16px; gap: 12px; flex-wrap: wrap; }
  .top nav { gap: 12px; font-size: 15px; order: 3; width: 100%; }
}

/* ---------- landing: the pixel word, alive ---------- */
body.landing { height: 100vh; height: 100dvh; overflow: hidden; cursor: crosshair; user-select: none;
  background: radial-gradient(circle at 50% 44%, #f0c6f8 0, var(--lav) 45%, #d596ea 100%); }
.landing .enter { position: fixed; inset: 0; display: block; color: inherit; text-decoration: none; }
.landing canvas { position: absolute; inset: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.landing .fallback { position: absolute; top: 34%; width: 100%; text-align: center; font-size: 18vw; color: var(--white); text-shadow: 6px 6px 0 var(--peri); }
.landing .below { position: absolute; left: 0; right: 0; top: calc(44% + min(9.5vw, 15vh)); display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 0 16px; }
.landing .tagline { font-size: clamp(18px, 3.2vw, 34px); color: var(--peri); margin: 0; text-shadow: 2px 2px 0 rgba(255,255,255,.6); }
.landing .tap { color: var(--white); background: var(--ink); padding: 8px 16px; border-radius: 999px; font-size: 15px; animation: blink 1.1s steps(2) infinite; }
.landing .date { font-family: var(--px); font-size: 13px; color: var(--ink); opacity: .7; }
@keyframes blink { 50% { opacity: .35; } }
.status { position: fixed; top: 0; left: 0; right: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 18px; font: 700 13px var(--px); color: var(--ink); pointer-events: none; }
.status .batt-wrap { display: flex; align-items: center; gap: 10px; }
.status .battery span { transition: width .6s steps(4); }
.scan { position: fixed; inset: 0; pointer-events: none; z-index: 4; mix-blend-mode: multiply; opacity: .18;
  background: repeating-linear-gradient(0deg, rgba(29,18,48,.35) 0 1px, transparent 1px 4px); animation: roll 7s linear infinite; }
@keyframes roll { to { background-position: 0 400px; } }
#notes { position: fixed; inset: 0; pointer-events: none; z-index: 2; }
#notes .note { pointer-events: auto; cursor: pointer; border: 0; font: inherit; text-align: left; }
.note { position: absolute; display: flex; gap: 10px; align-items: center; max-width: 290px; padding: 10px 14px 10px 10px; border-radius: 16px;
  background: rgba(255,255,255,.92); color: var(--ink); font-size: 14px; line-height: 1.3; box-shadow: 0 10px 30px rgba(29,18,48,.18);
  transform: rotate(var(--tilt)); animation: pop .35s cubic-bezier(.2,1.6,.4,1) both, jitter 2.4s steps(1) infinite .4s; }
.note b { font-family: var(--px); font-size: 12px; }
.note.out { animation: glitchout .5s steps(5) forwards; }
.note .ico { flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--peri); }
.note.iggy .ico { background: linear-gradient(135deg, #feda75, #d62976 50%, #4f5bd5); }
.note.tt .ico { background: #111; box-shadow: inset -3px 0 0 var(--red), inset 3px 0 0 var(--cyan); }
.note.pip .ico { background: #58a6ff; border-radius: 50%; }
.note.x .ico { background: #111; }
.note.lena .ico { background: #9be3b7; border-radius: 50%; }
.note.time .ico { background: var(--peri); }
.note.date .ico { background: #ff7a8a; }
.note.ai .ico { background: conic-gradient(var(--cyan), var(--peri), var(--red), var(--cyan)); border-radius: 50%; }
@keyframes pop { from { opacity: 0; transform: scale(.4) rotate(var(--tilt)); } }
@keyframes jitter { 0%, 92% { translate: 0 0; filter: none; } 94% { translate: -6px 0; filter: drop-shadow(4px 0 var(--red)) drop-shadow(-4px 0 var(--cyan)); } 97% { translate: 5px 1px; } }
@keyframes glitchout { 0% { opacity: 1; } 40% { clip-path: inset(30% 0 40% 0); translate: 12px 0; } 70% { clip-path: inset(0 0 70% 0); translate: -10px 0; } 100% { opacity: 0; clip-path: inset(50% 0 50% 0); } }
body.leaving .below, body.leaving #notes, body.leaving .status { transition: opacity .4s; opacity: 0; }
body.leaving { animation: flash .7s steps(6); }
@keyframes flash { 30% { filter: invert(1) hue-rotate(90deg); } 60% { filter: saturate(3) contrast(1.4); } }
@media (prefers-reduced-motion: reduce) { .note, .scan, .landing .tap { animation: none; } }

/* glitch on hover for headings */
.glitch-hover { position: relative; display: inline-block; }
.glitch-hover:hover { animation: shake .3s steps(3) infinite; text-shadow: -4px 0 var(--cyan), 4px 0 var(--red), 3px 3px 0 var(--peri); }
@keyframes shake { 33% { translate: -3px 1px; } 66% { translate: 3px -1px; } }

/* ---------- team tiles: everyone equal ---------- */
.tiles { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.tile { position: relative; background: var(--card); border: 2px solid rgba(255,255,255,.75); border-radius: var(--radius); overflow: hidden; outline: none; transition: transform .2s; }
.tile .face { aspect-ratio: 4 / 5; position: relative; display: grid; place-items: center; overflow: hidden;
  background: hsl(calc(260 + var(--n) * 22) 75% 78%); background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.18) 0 2px, transparent 2px 6px); }
.tile .face img { width: 100%; height: 100%; object-fit: cover; transition: filter .2s; }
.tile .initial { font: 700 clamp(80px, 12vw, 130px) var(--px); color: var(--white); text-shadow: 6px 6px 0 var(--peri); }
.tile .soon-photo { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font: 11px var(--px); color: var(--ink); opacity: .55; }
.tile .info { padding: 14px 16px 16px; }
.tile h3 { margin: 0; font-size: 19px; }
.tile .meta { margin: 0; font-size: 14px; color: var(--peri); }
.tile .role { margin: 6px 0 0; font-weight: 700; font-size: 15px; }
.tile .bio { position: absolute; inset: 0 0 auto 0; aspect-ratio: 4 / 5; padding: 18px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  background: linear-gradient(180deg, rgba(29,18,48,0) 20%, rgba(29,18,48,.88)); color: var(--white); opacity: 0; transition: opacity .25s; font-size: 15px; }
.tile .bio p { margin: 0; }
.tile .bio a { color: var(--lav); font-weight: 700; }
.tile:hover, .tile:focus-within { transform: translateY(-4px) rotate(-.6deg); }
.tile:hover .bio, .tile:focus-within .bio { opacity: 1; }
.tile:hover .initial, .tile:focus .initial { animation: shake .25s steps(3) infinite; text-shadow: -6px 0 var(--cyan), 6px 0 var(--red), 6px 6px 0 var(--peri); }
.tile:hover .face img { filter: drop-shadow(-5px 0 var(--cyan)) drop-shadow(5px 0 var(--red)) saturate(1.2); }
@media (hover: none) { .tile .bio { position: static; aspect-ratio: auto; opacity: 1; background: none; color: var(--ink); padding: 0 16px 16px; }
  .tile .bio a { color: var(--peri); } }
@media (max-width: 860px) { .tiles { grid-template-columns: repeat(2, 1fr); gap: 12px; } .tile .initial { font-size: 72px; } }

/* ---------- landing: louder ---------- */
.note small { font-size: 11px; opacity: .5; }
.note .ico { position: relative; }
.note .badge { position: absolute; top: -7px; right: -9px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #ff2d55; color: #fff;
  font: 700 11px/20px var(--sans); font-style: normal; text-align: center; box-shadow: 0 0 0 2px #fff; }
.note.urgent { background: #fff; outline: 3px solid #ff2d55; animation: pop .3s cubic-bezier(.2,1.6,.4,1) both, urgent .18s steps(2) infinite; }
@keyframes urgent { 50% { translate: 3px -2px; box-shadow: 0 0 0 6px rgba(255,45,85,.35), 0 10px 30px rgba(29,18,48,.25); } }
.note:hover { filter: drop-shadow(-4px 0 var(--cyan)) drop-shadow(4px 0 var(--red)); scale: 1.04; }
.note.block .ico { background: repeating-linear-gradient(45deg, #111 0 6px, #ffd400 6px 12px); }
.note.fb .ico { background: #1877f2; }
.note.duo .ico { background: #58cc02; border-radius: 50%; }
.plus { position: fixed; z-index: 6; pointer-events: none; font: 700 18px var(--px); color: #fff; text-shadow: -2px 0 var(--cyan), 2px 0 var(--red), 2px 2px 0 var(--ink);
  translate: -50% 0; animation: rise 1.3s ease-out forwards; white-space: nowrap; }
@keyframes rise { to { transform: translateY(-90px) scale(1.4); opacity: 0; } }
.depleted-box { position: fixed; inset: 0; z-index: 7; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  background: rgba(20, 20, 24, .78); border: 0; color: #fff; cursor: pointer; text-align: center; }
.depleted-box[hidden] { display: none; }
.depleted-box .big { font-size: clamp(42px, 9vw, 110px); color: #ff2d55; text-shadow: -5px 0 var(--cyan), 5px 0 #fff; animation: shake .2s steps(3) infinite; line-height: 1; }
.depleted-box .ad { font-size: 16px; background: #fff; color: #111; padding: 10px 18px; border-radius: 999px; animation: blink .8s steps(2) infinite; }
body.depleted .below, body.depleted .status { opacity: .3; }
@media (prefers-reduced-motion: reduce) { .note.urgent, .depleted-box .big, .depleted-box .ad, .plus { animation: none; } }

/* the sober layer: deepfakes, cloud lords, censorship */
.note.fake .ico { background: repeating-linear-gradient(0deg, #ff2d55 0 3px, #111 3px 6px); }
.note.fake b { color: #ff2d55; }
.note.lord { background: #1d1230; color: #f5e6ff; }
.note.lord .ico { background: linear-gradient(135deg, #ffd76a, #b8860b); clip-path: polygon(0 100%, 0 30%, 25% 55%, 50% 15%, 75% 55%, 100% 30%, 100% 100%); border-radius: 0; }
.note.lord small { color: #f5e6ff; }
.note.censor { background: #d9d9de; color: #444; filter: grayscale(1); }
.note.censor span:last-child { text-decoration: line-through; text-decoration-thickness: 3px; }
.note.censor .ico { background: #555; }
.note.hook { background: #fff; outline: 2px dashed var(--peri); }
.note.hook .ico { background: var(--ink); border-radius: 50%; }
.note.desperate { animation: pop .25s cubic-bezier(.2,1.6,.4,1) both, frantic .12s steps(2) infinite; }
@keyframes frantic { 50% { translate: -4px 2px; filter: drop-shadow(3px 0 var(--red)) drop-shadow(-3px 0 var(--cyan)); } }
@media (prefers-reduced-motion: reduce) { .note.desperate { animation: none; } }

/* combos, jackpots and the last-chance doomscroll */
.plus.combo { color: var(--yellow, #ffe14d); font-size: 24px; }
.plus.jackpot { color: #ff2d55; font-size: 30px; text-shadow: -3px 0 var(--cyan), 3px 0 #fff, 3px 3px 0 var(--ink); }
.plus.quick { font-size: 14px; color: var(--cyan); }
.doom, .lastchance { border: 0; cursor: pointer; font-size: 20px; padding: 14px 24px; border-radius: 999px; color: #fff;
  background: conic-gradient(from 0deg, #ff2d55, #ffe14d, #2fd3d0, #6f78f0, #ff5fd2, #ff2d55); box-shadow: 0 0 0 4px #fff, 0 0 40px rgba(255, 95, 210, .8);
  text-shadow: 2px 2px 0 var(--ink); animation: urgent .2s steps(2) infinite; }
.lastchance { position: fixed; z-index: 5; left: 50%; bottom: 9vh; translate: -50% 0; font-size: 16px; }
.lastchance[hidden] { display: none; }
.vortex { position: fixed; inset: 0; z-index: 9; width: 100%; height: 100%; background: #0a0414; }
.vortex[hidden] { display: none; }
.scrolled { position: fixed; z-index: 10; left: 0; right: 0; bottom: 6vh; text-align: center; color: #fff; font-size: 18px; text-shadow: -2px 0 var(--cyan), 2px 0 var(--red); }
.scrolled[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .doom, .lastchance { animation: none; } }

/* ---------- one-pager ---------- */
.top .meter { display: flex; align-items: center; gap: 8px; font: 700 12px var(--px); color: var(--ink); white-space: nowrap; }
.top .meter .battery span { transition: width .2s; }
.op-hero { min-height: calc(100vh - 70px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 16px; }
.op-hero .kicker { justify-content: center; width: min(900px, 100%); }
.op-title { font-size: clamp(72px, 17vw, 230px) !important; margin: 10px 0 0 !important; text-shadow: 6px 6px 0 var(--peri) !important; }
.op-title:hover { animation: shake .3s steps(3) infinite; }
.op-hero .tagline { margin: 10px 0 28px; }
.scroll-hint { margin-top: 48px; color: var(--ink); text-decoration: none; font-size: 13px; opacity: .7; animation: blink 1.4s steps(2) infinite; }
.op-tease { background: var(--ink); color: var(--white); padding: 18vh 16px; display: flex; flex-direction: column; gap: 14vh; align-items: center; text-align: center; }
.op-tease .line { position: relative; margin: 0; max-width: 18ch; font-size: clamp(30px, 6vw, 72px); line-height: 1.15; opacity: 0; transform: translateY(30px); }
.op-tease .line.in { opacity: 1; transform: none; transition: opacity .6s, transform .6s; animation: arrive .7s steps(6); }
.op-tease .line:hover { text-shadow: -4px 0 var(--cyan), 4px 0 var(--red); animation: shake .3s steps(3) infinite; }
@keyframes arrive { 0% { clip-path: inset(0 0 80% 0); translate: -14px 0; text-shadow: -6px 0 var(--cyan), 6px 0 var(--red); } 40% { clip-path: inset(40% 0 20% 0); translate: 10px 0; }
  70% { clip-path: inset(0 0 40% 0); translate: -4px 0; } 100% { clip-path: inset(0); translate: 0; text-shadow: none; } }
.op-tease .line:last-child { color: var(--lav); }
.follow { text-align: center; }
.follow .cta { justify-content: center; }
.follow .grid { text-align: left; margin: 28px 0; }
@media (max-width: 860px) { .top .meter { font-size: 10px; margin-left: auto; } }
@media (prefers-reduced-motion: reduce) { .op-tease .line { opacity: 1; transform: none; } .op-tease .line.in, .scroll-hint, .op-title:hover { animation: none; } }

a.tile, a.tile:hover { display: block; color: inherit; text-decoration: none; }
