/* That Is Annoying — thatisannoying.com */
:root {
  --bg: #FFE45C;
  --bg-deep: #FFC21A;
  --ink: #141210;
  --ink-soft: #3b352a;
  --cream: #FFF8D6;
  --muted: rgba(20, 18, 16, .55);
  --line: rgba(20, 18, 16, .18);
  --radius: 22px;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Space Mono", ui-monospace, Menlo, monospace;
  --dock-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
.hidden { display: none; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; }

.label {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: 13px;
  margin: 0 0 14px;
}
.label.center { text-align: center; margin-top: 64px; color: var(--muted); }
.big {
  font-weight: 900;
  font-size: clamp(44px, 8vw, 112px);
  line-height: .92;
  letter-spacing: -.055em;
  margin: 0 0 24px;
}
.hl { background: var(--ink); color: var(--bg); padding: 0 .12em; border-radius: .08em; }
.lede { font-size: clamp(18px, 2vw, 22px); line-height: 1.45; max-width: 640px; color: var(--ink-soft); margin: 0 0 32px; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg);
  display: grid; place-content: center; justify-items: center; gap: 14px;
  transition: opacity .45s ease, visibility .45s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-bar { width: min(320px, 70vw); height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 99px; transition: width .12s linear; }
.loader-pct { font-family: var(--mono); font-size: 14px; margin: 0; }
.loader-note { margin-left: 10px; color: var(--muted); }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 48px);
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.topbar { transition: background .25s, box-shadow .25s; }
.topbar.scrolled { background: var(--bg); box-shadow: 0 1.5px 0 var(--line); }
.wordmark {
  font-weight: 900; font-size: 22px; letter-spacing: -.03em; text-decoration: none;
  display: inline-block; transform: rotate(-4deg);
  background: var(--bg-deep); border: 3px solid var(--ink); border-radius: 8px; padding: 2px 10px;
  box-shadow: 3px 3px 0 var(--ink);
}
.wordmark.small { font-size: 18px; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.pill {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .2em; font-size: 12px;
  background: transparent; border: 1.5px solid var(--ink); border-radius: 99px; padding: 8px 16px;
}
.pill[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.live { font-family: var(--mono); text-transform: uppercase; letter-spacing: .2em; font-size: 12px; display: flex; align-items: center; gap: 8px; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .2; } }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center;
  padding: 92px 16px calc(var(--dock-h) + 96px);
  text-align: center;
  position: relative;
}
.headline {
  font-weight: 900;
  font-size: clamp(40px, 7.4vw, 104px);
  letter-spacing: -.06em; line-height: .95;
  margin: 0 0 22px;
}
.wiggle { display: inline-block; }
.wiggle.go { animation: wiggle .6s ease; }
@keyframes wiggle {
  15% { transform: rotate(-6deg) scale(1.04); }
  30% { transform: rotate(5deg); }
  45% { transform: rotate(-4deg) translateY(-3px); }
  60% { transform: rotate(3deg); }
  80% { transform: rotate(-1deg); }
}

.stage { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(12px, 4vw, 56px); width: 100%; max-width: 1100px; }
.phone {
  position: relative;
  height: min(54vh, 560px); aspect-ratio: 9 / 16;
  border-radius: 28px; overflow: hidden;
  background: var(--ink);
  border: 6px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  transform: rotate(-1.5deg);
  transition: transform .35s cubic-bezier(.3, 1.6, .5, 1);
}
.phone:hover { transform: rotate(0deg) scale(1.01); }
.phone.swap { animation: swap .45s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes swap { 0% { transform: rotate(-1.5deg) scale(1); } 40% { transform: rotate(3deg) scale(.94); } 100% { transform: rotate(-1.5deg) scale(1); } }
.phone video { width: 100%; height: 100%; object-fit: cover; }
.tap-sound {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  border: 0; border-radius: 99px; padding: 8px 14px;
  background: rgba(20, 18, 16, .72); color: var(--cream);
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; white-space: nowrap;
}
.tap-sound.off { display: none; }
.progress { position: absolute; left: 0; right: 0; top: 0; height: 4px; background: rgba(255,255,255,.15); }
.progress span { display: block; height: 100%; width: 0; background: var(--bg); }
.ep-side { font-family: var(--mono); }
.ep-side-left { text-align: right; }
.ep-side-left span { font-family: var(--display); font-weight: 900; font-size: clamp(64px, 11vw, 160px); letter-spacing: -.08em; opacity: .14; }
.ep-side-right { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.watch-link {
  text-decoration: none; font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .14em;
  border-bottom: 1.5px solid var(--ink); padding-bottom: 2px;
}
.watch-link:hover { background: var(--ink); color: var(--bg); }
.ep-meta { margin-top: 26px; }
.ep-title { font-family: var(--mono); font-weight: 700; letter-spacing: .32em; font-size: clamp(16px, 2.1vw, 22px); margin: 0 0 6px; }
.ep-sub { font-family: var(--mono); letter-spacing: .12em; font-size: 14px; margin: 0; color: var(--ink-soft); }

/* ---------- dock ---------- */
.dock {
  position: fixed; left: 50%; bottom: calc(46px + env(safe-area-inset-bottom)); z-index: 30;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  padding: 9px; height: var(--dock-h);
  background: var(--ink); border-radius: 99px;
  box-shadow: 0 18px 40px rgba(20, 18, 16, .28);
  transition: transform .4s cubic-bezier(.3, 1.4, .5, 1), opacity .3s;
  max-width: calc(100vw - 24px);
}
.dock.away { transform: translate(-50%, 140%); opacity: 0; }
.dock-arrow {
  width: 54px; height: 54px; flex: none; border-radius: 50%; border: 0;
  background: var(--cream); font-size: 28px; line-height: 1; font-weight: 800;
  display: grid; place-items: center;
}
.dock-arrow:active { transform: scale(.92); }
.dock-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.dock-thumbs::-webkit-scrollbar { display: none; }
.thumb {
  width: 50px; height: 50px; flex: none; border-radius: 50%; padding: 0; overflow: hidden;
  border: 3px solid transparent; background: #555; opacity: .55;
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), opacity .2s, width .25s, height .25s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: .9; transform: translateY(-3px); }
.thumb[aria-selected="true"] { width: 58px; height: 58px; opacity: 1; border-color: var(--bg); }
.dock-divider { width: 1px; height: 38px; background: rgba(255, 248, 214, .3); margin: 0 4px; flex: none; }
.drive {
  flex: none; height: 58px; border: 0; border-radius: 99px; padding: 0 24px;
  background: var(--bg); font-weight: 800; font-size: 17px; letter-spacing: -.01em; white-space: nowrap;
}
.drive[aria-pressed="true"] { background: var(--cream); }
.dock-hints {
  position: absolute; left: 0; right: 0; bottom: 14px;
  display: flex; justify-content: center; padding: 0 clamp(16px, 4vw, 48px);
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .2em; font-size: 11px;
}
.dock-hints a { text-decoration: none; border-bottom: 1.5px solid var(--ink); }
.kbd-hint { position: absolute; right: clamp(16px, 4vw, 48px); color: var(--muted); }

/* ---------- marquee ---------- */
.marquee { background: var(--ink); color: var(--bg); overflow: hidden; padding: 18px 0; transform: rotate(-1.2deg); margin: 10px -10px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-duration: 120s; }
.marquee span { font-weight: 900; font-size: clamp(22px, 3vw, 34px); letter-spacing: -.03em; white-space: nowrap; text-transform: uppercase; padding-right: .5em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section.about, section.cast, section.submit, section.follow { padding: clamp(80px, 12vw, 160px) clamp(16px, 6vw, 96px) 40px; max-width: 1280px; margin: 0 auto; }
.rotator { display: inline-block; min-width: 3ch; border-bottom: .08em solid var(--ink); }
.rotator.flip { animation: flip .4s ease; }
@keyframes flip { 0% { transform: translateY(0); opacity: 1; } 45% { transform: translateY(-40%); opacity: 0; } 55% { transform: translateY(40%); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
.buckets { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.buckets li { border-top: 3px solid var(--ink); padding-top: 14px; display: grid; gap: 8px; }
.buckets b { font-family: var(--mono); text-transform: uppercase; letter-spacing: .14em; font-size: 14px; }
.buckets span { font-size: 18px; line-height: 1.4; color: var(--ink-soft); }

/* cast passes */
.pass-deck { position: relative; height: 560px; max-width: 380px; margin: 40px auto 0; cursor: pointer; outline: none; }
.pass-deck:focus-visible .pass[data-pos="0"] { box-shadow: 0 0 0 4px var(--ink); }
.pass {
  position: absolute; inset: 0;
  background: var(--cream); border: 3px solid var(--ink); border-radius: var(--radius);
  padding: 16px 18px 20px;
  box-shadow: 8px 8px 0 var(--ink);
  transition: transform .5s cubic-bezier(.3, 1.3, .5, 1), opacity .4s;
  display: flex; flex-direction: column; gap: 8px;
}
.pass header { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; border-bottom: 1.5px dashed var(--ink); padding-bottom: 8px; }
.pass img { width: 100%; height: 250px; object-fit: cover; object-position: top; border-radius: 14px; background: var(--bg-deep); }
.pass h3 { font-weight: 900; font-size: 40px; letter-spacing: -.05em; margin: 4px 0 0; }
.pass-kind { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .16em; margin: 0; color: var(--ink-soft); }
.pass dl { display: grid; gap: 4px; margin: 6px 0 0; font-family: var(--mono); font-size: 13px; }
.pass dl div { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 3px 0; }
.pass dt { text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.pass dd { margin: 0; font-weight: 700; text-align: right; }
.pass-quote { margin: auto 0 0; font-weight: 800; font-size: 18px; }
.pass-silhouette { height: 250px; border-radius: 14px; background: var(--ink); display: grid; place-items: center; font-size: 110px; filter: grayscale(1) brightness(.4); }
.pass[data-pos="0"] { transform: rotate(-2deg); z-index: 3; }
.pass[data-pos="1"] { transform: translate(26px, 16px) rotate(4deg); z-index: 2; }
.pass[data-pos="2"] { transform: translate(-22px, 28px) rotate(-7deg); z-index: 1; }
.pass.toss { transform: translate(120%, -10%) rotate(24deg) !important; opacity: 0; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); margin: clamp(60px, 10vw, 120px) clamp(16px, 6vw, 96px) 0; }
.stats div { padding: 28px 20px; display: grid; gap: 6px; border-right: 1.5px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats b { font-weight: 900; font-size: clamp(48px, 6vw, 84px); letter-spacing: -.06em; line-height: 1; }
.stats span { font-family: var(--mono); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; }

/* form */
.annoy-form { display: grid; gap: 16px; max-width: 760px; }
.annoy-form label { display: grid; gap: 8px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; }
.annoy-form small { text-transform: none; letter-spacing: 0; color: var(--muted); }
.annoy-form input, .annoy-form textarea {
  font: 500 18px/1.4 var(--display); color: var(--ink);
  background: var(--cream); border: 2.5px solid var(--ink); border-radius: 14px; padding: 14px 16px; width: 100%;
  box-shadow: 4px 4px 0 var(--ink);
}
.annoy-form input:focus, .annoy-form textarea:focus { outline: none; box-shadow: 6px 6px 0 var(--ink); transform: translate(-1px, -1px); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.submit-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; min-height: 64px; position: relative; }
.btn {
  border: 3px solid var(--ink); background: var(--ink); color: var(--bg);
  font-weight: 800; font-size: 18px; border-radius: 99px; padding: 14px 26px;
  box-shadow: 4px 4px 0 var(--bg-deep);
  transition: transform .35s cubic-bezier(.3, 1.6, .5, 1);
}
.btn.small { font-size: 14px; padding: 8px 18px; box-shadow: none; }
.form-msg { font-family: var(--mono); font-size: 14px; }

/* follow doors */
.follow-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.door small { display: block; font-size: .72em; font-weight: 700; letter-spacing: 0; overflow-wrap: anywhere; }
.door {
  display: flex; align-items: center; gap: 18px; text-decoration: none;
  background: var(--cream); border: 3px solid var(--ink); border-radius: var(--radius); padding: 22px;
  font-weight: 800; font-size: clamp(18px, 2vw, 24px); letter-spacing: -.02em;
  box-shadow: 8px 8px 0 var(--ink); transition: transform .2s;
}
.door:hover { transform: translate(-2px, -2px); }
.door-sign { font-family: var(--mono); font-size: 13px; letter-spacing: .2em; background: var(--ink); color: var(--bg); padding: 6px 10px; border-radius: 6px; }
.door.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* footer */
.footer { padding: 80px clamp(16px, 6vw, 96px) calc(60px + env(safe-area-inset-bottom)); display: grid; gap: 10px; justify-items: start; border-top: 3px solid var(--ink); margin-top: clamp(80px, 12vw, 140px); }
.footer p { margin: 0; }
.footer a { font-weight: 800; }
.fine { font-family: var(--mono); font-size: 12px; color: var(--muted); max-width: 640px; line-height: 1.6; }

/* cookie */
.cookie {
  position: fixed; left: 20px; bottom: calc(var(--dock-h) + 70px); z-index: 50; width: min(340px, calc(100vw - 40px));
  background: var(--ink); color: var(--cream); border-radius: 18px; padding: 16px 18px;
  box-shadow: 0 18px 40px rgba(20, 18, 16, .3);
  animation: rise .5s cubic-bezier(.3, 1.4, .5, 1);
}
.cookie .label { color: var(--bg); font-size: 11px; margin-bottom: 8px; }
.cookie p { margin: 0 0 14px; line-height: 1.45; }
.cookie-actions { display: flex; justify-content: space-between; align-items: center; position: relative; }
.cookie .btn { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.link { background: none; border: 0; text-decoration: underline; color: var(--bg); font-family: var(--mono); font-size: 13px; }
@keyframes rise { from { transform: translateY(120%); } }

/* fly */
.fly {
  position: fixed; left: 0; top: 0; z-index: 60; width: 44px; height: 44px; padding: 5px;
  border: 0; background: transparent; will-change: transform; touch-action: manipulation;
}
.fly .body { fill: var(--ink); }
.fly .eye { fill: #c0392b; }
.fly .wing { fill: rgba(255, 255, 255, .7); stroke: var(--ink); stroke-width: .8; transform-box: fill-box; transform-origin: center bottom; animation: buzz .06s infinite alternate; }
@keyframes buzz { to { transform: scaleY(.55); } }
.splat { position: fixed; z-index: 61; font-size: 40px; pointer-events: none; transform: translate(-50%, -50%); animation: pop .6s ease forwards; }
@keyframes pop { from { transform: translate(-50%, -50%) scale(.4); } 60% { transform: translate(-50%, -50%) scale(1.3); } to { transform: translate(-50%, -50%) scale(1); opacity: 0; } }

/* the hair on your screen */
.hair {
  position: fixed; left: 56vw; top: 34vh; z-index: 65;
  width: 220px; height: 60px; touch-action: none; cursor: grab;
  transform-origin: 50% 50%; will-change: transform;
}
.hair:active { cursor: grabbing; }
.hair svg { overflow: visible; }
.hair path { fill: none; stroke-linecap: round; }
.hair-strand { stroke: url(#hairFade); stroke-width: .7; }
.hair-glint { stroke: rgba(255, 255, 255, .35); stroke-width: .5; transform: translate(.4px, -.4px); }
.hair.flick { transition: transform .55s cubic-bezier(.2, .7, .3, 1), opacity .55s; opacity: 0; }

/* toast */
.toast {
  position: fixed; top: 76px; left: 50%; z-index: 70; transform: translate(-50%, -260%); visibility: hidden;
  background: var(--ink); color: var(--cream); font-family: var(--mono); font-size: 13px;
  padding: 12px 18px; border-radius: 99px; max-width: calc(100vw - 32px); text-align: center;
  transition: transform .45s cubic-bezier(.3, 1.4, .5, 1);
}
.toast.show { transform: translate(-50%, 0); visibility: visible; }

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  :root { --dock-h: 66px; }
  .live { display: none; }
  .hero { padding-top: 84px; }
  .stage { grid-template-columns: 1fr; justify-items: center; }
  .ep-side { display: none; }
  .phone { height: min(56svh, 520px); box-shadow: 7px 7px 0 var(--ink); }
  .dock { gap: 6px; padding: 7px; bottom: calc(16px + env(safe-area-inset-bottom)); }
  .dock-hints { display: none; }
  .hero { padding-bottom: calc(var(--dock-h) + 56px); }
  .dock-arrow { display: none; }
  .thumb { width: 40px; height: 40px; }
  .thumb[aria-selected="true"] { width: 46px; height: 46px; }
  .drive { height: 48px; padding: 0 16px; font-size: 15px; }
  .dock-thumbs { padding-left: 2px; }
  .dock-divider { display: none; }
  .kbd-hint { display: none; }
  .buckets, .row, .follow-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(-n+2) { border-bottom: 1.5px solid var(--line); }
  .pass-deck { height: 540px; max-width: 320px; }
  .pass img, .pass-silhouette { height: 220px; }
  .hair { left: 40vw; top: 26vh; width: 170px; height: 46px; }
  .hair svg { width: 170px; height: 46px; }
  .cookie { left: 12px; right: 12px; bottom: calc(var(--dock-h) + 30px + env(safe-area-inset-bottom)); width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .marquee-track { transform: none; }
}
