/* ==========================================================================
   Super Arthur — $SUPERARTHUR
   Vanilla CSS. Warm paper base, Super blue, cape red, gold accents.
   ========================================================================== */

:root {
  --cream: #FBF6EA;
  --cream-2: #F3ECDC;
  --paper: #FFFCF5;
  --ink: #16140F;
  --ink-2: #4B463D;
  --ink-3: #8A8375;
  --blue: #1846D6;
  --blue-deep: #0E2F9A;
  --sky: #D9E6FF;
  --red: #E3242B;
  --red-deep: #B3141B;
  --yellow: #FFC72C;
  --green: #12A150;

  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-hand: "Caveat", "Comic Sans MS", cursive;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --maxw: 1240px;
  --header-h: 68px;
  --stroke: 2.5px;
  --shadow: 4px 4px 0 var(--ink);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
ul { padding: 0; list-style: none; }
code { font-family: var(--font-mono); }
mark { background: none; color: inherit; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 200;
  padding: .7rem 1rem;
  background: var(--ink);
  color: var(--cream);
  font-weight: 800;
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform .2s var(--ease-out);
}
.skip-link:focus { transform: none; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}
.closer :focus-visible,
.about .state-after :focus-visible { outline-color: var(--yellow); }

.container {
  width: min(var(--maxw), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.section { padding-block: clamp(4.5rem, 10vw, 8.5rem); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before {
  content: "";
  width: .7rem; height: .7rem;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 2px var(--cream), 0 0 0 4px var(--ink);
}

.c-red { color: var(--red); }
.c-blue { color: var(--blue); }
.c-green { color: var(--green); }
.muted { color: var(--ink-3); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--paper);
  --btn-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 48px;
  padding: .8em 1.35em;
  font-family: var(--font);
  font-weight: 800;
  font-stretch: 108%;
  font-size: .95rem;
  letter-spacing: .03em;
  line-height: 1.1;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: var(--stroke) solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), background-color .18s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn:focus-visible { border-radius: 999px; }

.btn-red { --btn-bg: var(--red); --btn-fg: #fff; }
.btn-red:hover { --btn-bg: #EF2F36; }
.btn-blue { --btn-bg: var(--blue); --btn-fg: #fff; }
.btn-paper { --btn-bg: var(--paper); }
.btn-yellow { --btn-bg: var(--yellow); }
.btn-sm { min-height: 42px; padding: .55em 1.15em; font-size: .85rem; box-shadow: 3px 3px 0 var(--ink); }
.btn-sm:hover { box-shadow: 5px 5px 0 var(--ink); }
.btn-lg { font-size: 1rem; padding: .95em 1.5em; }

/* ---------- Chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: .38em .85em;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
}
.chip-ink { background: var(--ink); color: var(--cream); }
.chip-status { background: var(--yellow); }
.chip-sm { font-size: .7rem; padding: .3em .7em; }
.status-dot {
  width: .55em; height: .55em;
  border-radius: 50%;
  background: var(--red);
  animation: blink 1.6s ease-in-out infinite;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 246, 234, .88);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: var(--stroke) solid transparent;
  transition: border-color .25s, background-color .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--ink); background: rgba(251, 246, 234, .96); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  font-weight: 900;
  font-stretch: 112%;
  font-size: 1.1rem;
  letter-spacing: -.01em;
  margin-right: auto;
  border-radius: 999px;
}
.brand-avatar {
  width: 44px; height: 44px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  border: var(--stroke) solid var(--ink);
  background: var(--sky);
  transition: transform .35s var(--ease-pop);
}
.brand-avatar img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.3) translate(-2%, 6%); }
.brand:hover .brand-avatar { transform: rotate(-10deg) scale(1.06); }

.nav-list { display: flex; align-items: center; gap: .25rem; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 .9rem;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  border-radius: 999px;
  transition: background-color .2s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: .9rem; right: .9rem; bottom: 8px;
  height: 3px;
  border-radius: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease-out);
}
.nav-link:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: .6rem; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: var(--stroke) solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  position: relative;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute;
  left: 50%;
  width: 18px; height: 2.5px;
  margin-left: -9px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s var(--ease-out), opacity .2s;
}
.nav-toggle-bar { top: 50%; margin-top: -1.25px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; left: 0; margin-left: 0; }
.nav-toggle-bar::before { transform: translateY(-6px); }
.nav-toggle-bar::after { transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(1.5rem, 4vw, 3.5rem) clamp(3rem, 6vw, 5rem);
}

/* Notebook paper — homework energy */
.hero-paper {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent calc(var(--gutter) + 2.2rem), rgba(227, 36, 43, .22) calc(var(--gutter) + 2.2rem), rgba(227, 36, 43, .22) calc(var(--gutter) + 2.2rem + 2px), transparent calc(var(--gutter) + 2.2rem + 2px)),
    repeating-linear-gradient(180deg, transparent 0 35px, rgba(24, 70, 214, .075) 35px 36px);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
  mask-image: linear-gradient(180deg, #000 55%, transparent);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
}

.hero-copy { position: relative; z-index: 3; }

.hero-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: clamp(1rem, 2.2vw, 1.6rem); }

.hero-title {
  position: relative;
  display: flex;
  flex-direction: column;
  width: fit-content;
  max-width: 100%;
  font-weight: 900;
  font-stretch: 112%;
  font-size: clamp(3.6rem, 8.4vw, 8.6rem);
  line-height: .84;
  letter-spacing: -.035em;
  text-transform: uppercase;
}
.hero-title-line { display: block; }
.hero-title-super {
  position: relative;
  width: fit-content;
  color: var(--ink);
}
.hero-title-super::after {
  content: "";
  position: absolute;
  left: -.04em; right: -.06em;
  bottom: .08em;
  height: .2em;
  z-index: -1;
  background: var(--yellow);
  border-radius: .1em;
  transform: skewX(-12deg) scaleX(0);
  transform-origin: left;
  animation: swipe .7s .75s var(--ease-out) forwards;
}
.hero-title-arthur {
  color: var(--blue);
  text-shadow: .045em .045em 0 var(--red);
}

.hero-annot {
  font-family: var(--font-hand);
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
  pointer-events: none;
}
.hero-annot-title {
  position: absolute;
  top: -.5em;
  right: -.2em;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  transform: rotate(-6deg);
  opacity: 0;
  animation: fade-in .6s 1.1s forwards;
}
.hero-annot-title em { font-style: normal; text-decoration: underline wavy; text-underline-offset: 3px; }

.hero-lead {
  display: flex;
  flex-direction: column;
  margin-top: clamp(1.2rem, 2.6vw, 2rem);
  font-size: clamp(1.25rem, 2.1vw, 1.75rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.01em;
}
.hero-lead-hl { color: var(--red); }

.hero-tagline {
  margin-top: .9rem;
  font-family: var(--font-hand);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--ink-2);
  transform: rotate(-1.5deg);
  transform-origin: left;
}
.hero-tagline strong { color: var(--blue); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: clamp(1.4rem, 2.8vw, 2rem);
}

/* ---------- CA box ---------- */
.ca {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 640px;
  margin-top: 1.4rem;
  background: var(--paper);
  border: var(--stroke) solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.ca-label {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  background: var(--ink);
  color: var(--cream);
  font-weight: 900;
  font-size: .8rem;
  letter-spacing: .14em;
}
.ca-value {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: .8rem 1rem;
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.3;
  word-break: break-all;
  user-select: all;
}
.ca-copy {
  flex: none;
  min-width: 124px;
  min-height: 50px;
  padding: 0 1.2rem;
  border: 0;
  border-left: var(--stroke) solid var(--ink);
  background: var(--yellow);
  font-weight: 900;
  font-stretch: 108%;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background-color .2s, color .2s;
}
.ca-copy:hover { background: #FFD457; }
.ca-copy:focus-visible { outline-offset: -5px; border-radius: 999px; }
.ca-copy.is-copied { background: var(--blue); color: #fff; }
.ca-copy.is-copied .ca-copy-text { animation: pop .35s var(--ease-pop); }

.ca-note {
  margin-top: .85rem;
  max-width: 640px;
  font-size: .85rem;
  color: var(--ink-2);
}
.ca-note code { font-weight: 700; color: var(--ink); }

/* ---------- Hero art ---------- */
.hero-art {
  --px: 0;
  --py: 0;
  position: relative;
  z-index: 2;
  height: clamp(460px, 76vh, 780px);
  container-type: size;
}

.hero-sun,
.hero-ring {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
}
.hero-sun {
  width: min(86cqw, 90cqh);
  height: min(86cqw, 90cqh);
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, .7), transparent 42%),
    var(--sky);
  border: var(--stroke) solid var(--ink);
  translate: calc(var(--px) * -10px) calc(var(--py) * -8px);
  transition: translate .6s var(--ease-out);
  animation: scale-in 1s .1s var(--ease-out) both;
}
.hero-sun::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(24, 70, 214, .16) 1.4px, transparent 1.8px) 0 0 / 14px 14px;
  -webkit-mask-image: linear-gradient(200deg, transparent 35%, #000 90%);
  mask-image: linear-gradient(200deg, transparent 35%, #000 90%);
}

.hero-ring {
  width: min(100cqw, 104cqh);
  height: min(100cqw, 104cqh);
  border: 2px dashed rgba(22, 20, 15, .35);
  animation: spin 60s linear infinite;
  translate: calc(var(--px) * -4px) calc(var(--py) * -4px);
  transition: translate .6s var(--ease-out);
}

/* Billowing cape shadow */
.hero-cape {
  position: absolute;
  top: 6%; left: 2%;
  width: 58%;
  height: 40%;
  background: var(--red);
  opacity: .14;
  border-radius: 60% 40% 55% 45% / 55% 45% 60% 40%;
  transform-origin: 90% 80%;
  animation: billow 7s ease-in-out infinite;
  translate: calc(var(--px) * -14px) calc(var(--py) * -10px);
  transition: translate .6s var(--ease-out);
}

/* Speed lines trailing the flight */
.hero-speed {
  position: absolute;
  right: -2%;
  top: 30%;
  width: 34%;
  height: 46%;
  pointer-events: none;
}
.hero-speed i {
  position: absolute;
  right: 0;
  height: 4px;
  border-radius: 4px;
  background: var(--ink);
  opacity: 0;
  animation: speed 2.6s linear infinite;
}
.hero-speed i:nth-child(1) { top: 8%;  width: 60%; animation-delay: 0s; }
.hero-speed i:nth-child(2) { top: 30%; width: 85%; animation-delay: .5s; background: var(--blue); }
.hero-speed i:nth-child(3) { top: 52%; width: 50%; animation-delay: 1.1s; }
.hero-speed i:nth-child(4) { top: 72%; width: 75%; animation-delay: 1.6s; background: var(--red); }
.hero-speed i:nth-child(5) { top: 92%; width: 40%; animation-delay: 2.1s; }

/* Circle snapshots orbiting — the banner language */
.orbit {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  border: var(--stroke) solid var(--ink);
  overflow: hidden;
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--ink);
  animation: bob 6s ease-in-out infinite;
  translate: calc(var(--px) * -18px) calc(var(--py) * -14px);
  transition: translate .5s var(--ease-out);
}
.orbit img { width: 100%; height: 100%; object-fit: cover; }
.orbit-1 { width: clamp(58px, 7vw, 92px); aspect-ratio: 1; top: 4%; right: 6%; animation-delay: -1s; }
.orbit-2 { width: clamp(52px, 6vw, 80px); aspect-ratio: 1; bottom: 12%; right: 0; animation-delay: -3s; }
.orbit-3 {
  width: clamp(22px, 2.4vw, 32px); aspect-ratio: 1;
  top: 20%; left: 4%;
  background: var(--red);
  animation-delay: -2s;
}

/* A CSS crop of a single circle from banner.png */
.orbit-rerun,
.tv-photo {
  background-image: url("assets/banner.png");
  background-repeat: no-repeat;
  background-size: 1872.4% auto;
}
.orbit-rerun { background-position: 14.154% 1.645%; }

.hero-char {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  translate: calc(var(--px) * 22px) calc(var(--py) * 16px);
  transition: translate .45s var(--ease-out);
  animation: fly-in 1.2s .15s var(--ease-out) both;
}
.hero-char-float {
  height: 96%;
  animation: float 6s ease-in-out infinite;
}
.hero-img {
  height: 100%;
  width: auto;
  max-width: none;
  filter: drop-shadow(10px 18px 0 rgba(22, 20, 15, .08));
  transition: scale .45s var(--ease-pop), rotate .45s var(--ease-pop);
  cursor: grab;
}
.hero-char:hover .hero-img { scale: 1.035; rotate: -2deg; }

.sticker {
  position: absolute;
  z-index: 3;
  left: 2%;
  bottom: 9%;
  width: clamp(104px, 11vw, 138px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  border-radius: 50%;
  background: var(--yellow);
  border: var(--stroke) solid var(--ink);
  box-shadow: var(--shadow);
  font-weight: 900;
  font-stretch: 105%;
  font-size: clamp(.72rem, .9vw, .88rem);
  line-height: 1.05;
  letter-spacing: .02em;
  text-transform: uppercase;
  rotate: -12deg;
  transition: rotate .5s var(--ease-pop);
  animation: stamp .6s 1.2s var(--ease-pop) both;
}
.sticker:hover { rotate: 8deg; }
.hero-art:hover .sticker { rotate: -4deg; }

.hero-annot-art {
  position: absolute;
  z-index: 3;
  top: 13%;
  right: 12%;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  transform: rotate(8deg);
  opacity: 0;
  animation: fade-in .6s 1.4s forwards;
}

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee {
  overflow: hidden;
  background: var(--blue);
  color: #fff;
  border-block: var(--stroke) solid var(--ink);
  rotate: -1.2deg;
  margin-inline: -2%;
  position: relative;
  z-index: 4;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  width: max-content;
  padding-block: .95rem;
  font-weight: 900;
  font-stretch: 115%;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
}
.marquee-track b { color: var(--yellow); font-size: .6em; }

/* ==========================================================================
   About / Transformation
   ========================================================================== */
.about { background: var(--cream); }

.about-title {
  display: flex;
  flex-direction: column;
  gap: .1em;
  max-width: 20ch;
  margin-top: 1.2rem;
  font-weight: 900;
  font-stretch: 108%;
  font-size: clamp(2rem, 5vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -.03em;
}
.about-title span:nth-child(2) { color: var(--ink-3); }
.hl-red, .hl-blue {
  position: relative;
  display: inline-block;
  padding: 0 .12em;
  color: #fff;
  z-index: 0;
}
.hl-red::before, .hl-blue::before {
  content: "";
  position: absolute;
  inset: .06em -.02em .02em;
  z-index: -1;
  border-radius: .12em;
  transform: rotate(-2deg);
}
.hl-red::before { background: var(--red); }
.hl-blue::before { background: var(--blue); transform: rotate(1.5deg); }

.transform {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  margin-top: clamp(3rem, 7vw, 5.5rem);
}

.state {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border: var(--stroke) solid var(--ink);
  border-radius: 28px;
  transition: rotate .5s var(--ease-pop), translate .8s var(--ease-out), opacity .8s var(--ease-out);
}
.state-before {
  background:
    repeating-linear-gradient(180deg, transparent 0 31px, rgba(24, 70, 214, .09) 31px 32px),
    var(--cream-2);
  box-shadow: 8px 8px 0 var(--ink);
  rotate: -2deg;
}
.state-after {
  background: var(--blue);
  color: #fff;
  box-shadow: 8px 8px 0 var(--red);
  rotate: 1.5deg;
}
.state-before:hover { rotate: -3deg; }
.state-after:hover { rotate: 0deg; }

.state-media {
  position: relative;
  display: grid;
  place-items: center;
  margin-bottom: 1.4rem;
}

.tv {
  position: relative;
  width: min(250px, 76%);
  aspect-ratio: 1;
}
.tv-screen {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 10px solid var(--ink);
  background: #999;
}
.tv-photo {
  position: absolute;
  inset: 0;
  background-position: 20.914% 1.645%;
  filter: saturate(.3) sepia(.35) contrast(1.08) brightness(.98);
  animation: flicker 5s steps(1) infinite;
}
.tv-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(180deg, rgba(0, 0, 0, .16) 0 2px, transparent 2px 4px),
    radial-gradient(circle, transparent 55%, rgba(0, 0, 0, .35));
  pointer-events: none;
}
.tv-tag {
  position: absolute;
  left: 50%;
  bottom: -.6rem;
  translate: -50% 0;
  padding: .3em .8em;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 999px;
}

.after-frame {
  position: relative;
  width: min(250px, 76%);
  aspect-ratio: 1;
}
.after-cape {
  position: absolute;
  inset: -8% -14% 8% -8%;
  background: var(--red);
  border-radius: 60% 40% 55% 45% / 55% 45% 60% 40%;
  animation: billow 6s ease-in-out infinite;
  transform-origin: 80% 70%;
}
.after-photo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--paper);
  box-shadow: 0 0 0 var(--stroke) var(--ink);
  background: var(--paper);
  transition: translate .45s var(--ease-pop), scale .45s var(--ease-pop);
}
.after-photo img { width: 100%; height: 100%; object-fit: cover; }
.state-after:hover .after-photo { translate: -4px -8px; scale: 1.04; }

.grade {
  position: absolute;
  top: -6%;
  right: 4%;
  display: grid;
  place-items: center;
  width: 84px;
  aspect-ratio: 1;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: .8;
  text-align: center;
  border-radius: 50%;
}
.grade small { display: block; font-size: 1.05rem; }
.grade-before {
  color: var(--red);
  border: 3px solid var(--red);
  border-radius: 48% 52% 45% 55% / 55% 45% 55% 45%;
  rotate: 10deg;
}
.grade-after {
  color: var(--ink);
  background: var(--yellow);
  border: var(--stroke) solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  rotate: -10deg;
}

.state-kicker {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.state-after .state-kicker { color: var(--yellow); }
.state-name {
  margin-top: .2rem;
  font-weight: 900;
  font-stretch: 112%;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: .95;
  letter-spacing: -.03em;
  text-transform: uppercase;
}
.state-list {
  display: grid;
  gap: .35rem;
  margin-top: 1rem;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 700;
}
.state-list li { display: flex; align-items: center; gap: .6rem; }
.state-list li::before {
  content: "";
  flex: none;
  width: .6em; height: .6em;
  border-radius: 50%;
  border: 2px solid currentColor;
}
.state-after .state-list li::before { background: var(--red); border-color: #fff; }

.transform-arrow {
  display: grid;
  justify-items: center;
  gap: .5rem;
  transition: opacity .6s, translate .6s var(--ease-out);
}
.transform-arrow-circle {
  display: grid;
  place-items: center;
  width: clamp(72px, 8vw, 100px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--yellow);
  border: var(--stroke) solid var(--ink);
  box-shadow: var(--shadow);
  color: var(--ink);
}
.transform-arrow-circle svg { width: 52%; height: auto; }
.transform-arrow-label {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--red);
  rotate: -4deg;
  white-space: nowrap;
}

/* Transformation choreography once visible */
.js .transform .state-before.is-visible { animation: frustrate .6s .5s ease-in-out; }
.js .transform .transform-arrow.is-visible .transform-arrow-circle { animation: whoosh 1s .6s var(--ease-pop) both; }
.js .transform .state-after.is-visible .after-photo { animation: suit-up .9s .9s var(--ease-pop) both; }

/* ==========================================================================
   Narrative
   ========================================================================== */
.story {
  background: var(--paper);
  border-block: var(--stroke) solid var(--ink);
  overflow: hidden;
}

.story-beat {
  position: relative;
  margin-block: clamp(2.5rem, 7vw, 6rem);
  letter-spacing: -.025em;
}
.story-beat:first-child { margin-top: 0; }
.story-beat:last-child { margin-bottom: 0; }
.story-beat p { position: relative; }

.story-beat-sm p {
  max-width: 30ch;
  font-size: clamp(1.25rem, 2.3vw, 1.8rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.story-beat-md p {
  font-weight: 900;
  font-stretch: 108%;
  font-size: clamp(2rem, 5vw, 4.3rem);
  line-height: 1;
}
.story-beat-lg p {
  max-width: 19ch;
  font-weight: 900;
  font-stretch: 105%;
  font-size: clamp(2.1rem, 5.4vw, 4.6rem);
  line-height: 1;
}
.story-beat-xl p {
  font-weight: 900;
  font-stretch: 112%;
  font-size: clamp(2.3rem, 7.2vw, 7rem);
  line-height: .96;
  letter-spacing: -.04em;
}

.story-right { text-align: right; margin-left: auto; }
.story-right p { margin-left: auto; }
.story-indent { padding-left: clamp(0rem, 18vw, 16rem); }

.ep {
  display: inline-grid;
  place-items: center;
  width: 3.2rem;
  aspect-ratio: 1;
  margin-bottom: 1rem;
  border-radius: 50%;
  border: var(--stroke) solid var(--ink);
  background: var(--red);
  color: #fff;
  font-weight: 900;
  font-size: .95rem;
  letter-spacing: 0;
  box-shadow: 3px 3px 0 var(--ink);
}
.ep-blue { background: var(--blue); }
.ep-yellow { background: var(--yellow); color: var(--ink); }

/* Red-pen strike through the frustration */
.strike {
  color: var(--ink-3);
  text-decoration: line-through;
  text-decoration-thickness: .08em;
  text-decoration-color: transparent;
  transition: text-decoration-color .6s .5s;
}
.is-visible .strike, .no-js .strike { text-decoration-color: var(--red); }

/* Hand-drawn circle around the pop quiz */
.scribble { position: relative; white-space: nowrap; }
.scribble::after {
  content: "";
  position: absolute;
  inset: -.12em -.22em -.08em;
  border: .07em solid var(--red);
  border-radius: 50% 45% 55% 48% / 60% 50% 55% 45%;
  rotate: -3deg;
  opacity: 0;
  scale: .7;
  transition: opacity .4s .6s, scale .6s .6s var(--ease-pop);
}
.is-visible .scribble::after, .no-js .scribble::after { opacity: 1; scale: 1; }

.story-beat-stack p {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.stack-line {
  display: block;
  font-weight: 900;
  font-stretch: 115%;
  font-size: clamp(3rem, 10.5vw, 10rem);
  line-height: .86;
  letter-spacing: -.045em;
  text-transform: uppercase;
}
.stack-line.c-red { text-shadow: .035em .035em 0 var(--ink); }
.stack-sm {
  margin-top: .5rem;
  font-size: clamp(1.4rem, 3vw, 2.6rem);
  font-stretch: 105%;
  line-height: 1.05;
  letter-spacing: -.02em;
}
.stack-sm + .stack-sm { margin-top: .1rem; }

/* ==========================================================================
   Banner wall
   ========================================================================== */
.wall {
  padding-block: clamp(4rem, 9vw, 7rem) clamp(2.5rem, 5vw, 4rem);
  background: var(--cream);
}
.wall-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: .6rem 2rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.wall-title {
  font-weight: 900;
  font-stretch: 110%;
  font-size: clamp(2rem, 4.6vw, 3.8rem);
  line-height: 1;
  letter-spacing: -.03em;
}
.wall-sub { font-size: 1.05rem; font-weight: 600; color: var(--ink-2); max-width: 34ch; }

.wall-frame {
  position: relative;
  border-block: var(--stroke) solid var(--ink);
  background: #FAFBFA;
}
.wall-scroller { overflow: hidden; }
.wall-scroller:focus-visible { outline-offset: -4px; border-radius: 0; }
.wall-stage { position: relative; }
.wall-img { width: 100%; height: auto; }
.wall-img-past {
  position: absolute;
  inset: 0;
  filter: grayscale(1) sepia(.3) contrast(.95);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 18%, transparent 60%);
  mask-image: linear-gradient(90deg, #000 0%, #000 18%, transparent 60%);
}
.wall-chip {
  position: absolute;
  bottom: clamp(.6rem, 1.5vw, 1.2rem);
  padding: .45em 1em;
  font-size: clamp(.7rem, 1vw, .85rem);
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  pointer-events: none;
}
.wall-chip-left { left: var(--gutter); background: var(--paper); }
.wall-chip-right { right: var(--gutter); background: var(--red); color: #fff; }

/* ==========================================================================
   The Tape
   ========================================================================== */
.tape { background: var(--cream); padding-top: clamp(2.5rem, 5vw, 4rem); }

.tape-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.tape-title {
  margin-top: .8rem;
  font-weight: 900;
  font-stretch: 118%;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: .86;
  letter-spacing: -.045em;
  text-transform: uppercase;
}
.tape-sub { margin-top: .8rem; font-size: 1.1rem; font-weight: 600; color: var(--ink-2); }

.tape-frame {
  border: var(--stroke) solid var(--ink);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--ink);
  overflow: hidden;
}
.tape-bar {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .7rem 1rem;
  border-bottom: var(--stroke) solid var(--ink);
  background: var(--cream-2);
}
.tape-dots { display: flex; gap: .4rem; }
.tape-dots i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); background: var(--red); }
.tape-dots i:nth-child(2) { background: var(--yellow); }
.tape-dots i:nth-child(3) { background: var(--blue); }
.tape-url {
  flex: 1;
  min-width: 0;
  padding: .35rem .9rem;
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--ink-2);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 999px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tape-body {
  position: relative;
  aspect-ratio: 16 / 6.5;
  min-height: 420px;
}
.tape-embed, .tape-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.tape-embed[hidden], .tape-placeholder[hidden] { display: none; }

.tape-placeholder {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.tape-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(22, 20, 15, .06) 1px, transparent 1px) 0 0 / 100% 56px,
    linear-gradient(90deg, rgba(22, 20, 15, .06) 1px, transparent 1px) 0 0 / 80px 100%;
}
.tape-flatline {
  position: absolute;
  left: 0; right: 0;
  top: 62%;
  border-top: 3px dashed rgba(22, 20, 15, .35);
}
.tape-flyer {
  position: absolute;
  top: 0;
  width: clamp(70px, 9vw, 120px);
  translate: 0 -78%;
  animation: patrol 14s linear infinite;
}
.tape-flyer img { width: 100%; }

.tape-msg {
  position: absolute;
  left: clamp(1.25rem, 4vw, 3rem);
  top: clamp(1.25rem, 4vw, 3rem);
  max-width: 34rem;
}
.tape-msg-kicker {
  display: inline-block;
  padding: .3em .8em;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
}
.tape-msg-title {
  margin-top: .8rem;
  font-weight: 900;
  font-stretch: 108%;
  font-size: clamp(1.7rem, 3.6vw, 3rem);
  line-height: 1;
  letter-spacing: -.03em;
}
.tape-msg-body {
  margin-top: .8rem;
  max-width: 44ch;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-2);
}

/* ==========================================================================
   Closer
   ========================================================================== */
.closer {
  position: relative;
  overflow: hidden;
  background: var(--blue);
  color: #fff;
  border-top: var(--stroke) solid var(--ink);
  padding-block: clamp(4.5rem, 10vw, 8rem);
}
.closer-dots {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, .13) 22%, transparent 24%) 0 0 / 46px 46px;
  -webkit-mask-image: linear-gradient(110deg, transparent 20%, #000 80%);
  mask-image: linear-gradient(110deg, transparent 20%, #000 80%);
  pointer-events: none;
}
.closer-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  align-items: center;
  gap: 2rem;
}
.closer-title {
  display: flex;
  flex-direction: column;
  font-weight: 900;
  font-stretch: 112%;
  font-size: clamp(2.8rem, 6.2vw, 6rem);
  line-height: .86;
  letter-spacing: -.045em;
  text-transform: uppercase;
  text-shadow: .04em .04em 0 var(--ink);
}
.closer-title span:nth-child(2) { color: var(--yellow); }

.closer-ticker {
  display: inline-block;
  margin-top: 1.4rem;
  padding: .35em .9em;
  font-weight: 900;
  font-stretch: 110%;
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  letter-spacing: .01em;
  background: var(--red);
  border: var(--stroke) solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow);
  rotate: -2deg;
}

.ca-dark { color: var(--ink); margin-top: 1.8rem; }

.closer-art {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.closer-circle {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: var(--red);
  border: var(--stroke) solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
}
.closer-art img {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 112%;
  width: auto;
  max-width: none;
  translate: -50% -50%;
  animation: float 6s ease-in-out infinite;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--cream);
  border-top: var(--stroke) solid var(--ink);
  padding-block: 2rem 1.5rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}
.brand-footer { margin-right: 0; }
.footer-meta {
  display: flex;
  gap: .6rem;
  font-weight: 800;
  font-size: .95rem;
  color: var(--ink-2);
}
.footer-x {
  margin-left: auto;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: var(--red);
  border-radius: 4px;
}
.footer-x:hover { color: var(--blue); }
.footer-fine {
  margin-top: 1.2rem;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--ink-3);
}

/* ==========================================================================
   Scroll reveal (only when JS is running)
   ========================================================================== */
.js [data-reveal] {
  opacity: 0;
  translate: 0 28px;
  transition: opacity .8s var(--ease-out), translate .8s var(--ease-out), rotate .5s var(--ease-pop);
}
.js [data-reveal].is-visible { opacity: 1; translate: 0 0; }

.reveal-up { animation: rise .8s var(--d, 0ms) var(--ease-out) both; }

/* ==========================================================================
   Keyframes
   ========================================================================== */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes swipe { to { transform: skewX(-12deg) scaleX(1); } }
@keyframes blink { 50% { opacity: .25; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes scale-in { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.6); } 100% { transform: scale(1); } }

@keyframes fly-in {
  from { opacity: 0; transform: translate(26%, 14%) rotate(8deg) scale(.86); }
  to   { opacity: 1; transform: none; }
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-16px) rotate(-1.5deg); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes billow {
  0%, 100% { border-radius: 60% 40% 55% 45% / 55% 45% 60% 40%; transform: rotate(0deg) scaleX(1); }
  33%      { border-radius: 45% 55% 40% 60% / 60% 40% 50% 50%; transform: rotate(-4deg) scaleX(1.04); }
  66%      { border-radius: 55% 45% 60% 40% / 45% 55% 45% 55%; transform: rotate(3deg) scaleX(.97); }
}
@keyframes speed {
  0%   { opacity: 0; transform: translateX(-40%) scaleX(.4); }
  20%  { opacity: .85; }
  70%  { opacity: 0; transform: translateX(30%) scaleX(1); }
  100% { opacity: 0; transform: translateX(30%) scaleX(1); }
}
@keyframes stamp {
  from { opacity: 0; transform: scale(1.8); }
  to   { opacity: 1; transform: none; }
}
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes flicker {
  0%, 100% { opacity: 1; }
  47%      { opacity: .86; }
  48%      { opacity: 1; }
  82%      { opacity: .92; }
  83%      { opacity: 1; }
}
@keyframes frustrate {
  0%, 100% { transform: none; }
  20% { transform: translateX(-6px) rotate(-1deg); }
  40% { transform: translateX(6px) rotate(1deg); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}
@keyframes whoosh {
  from { transform: rotate(-200deg) scale(.4); }
  to   { transform: none; }
}
@keyframes suit-up {
  0%   { transform: scale(.6) rotate(-14deg); filter: saturate(0); }
  60%  { filter: saturate(1); }
  100% { transform: none; filter: none; }
}
@keyframes patrol {
  from { left: 104%; }
  to   { left: -14%; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); }
  .hero-art { height: clamp(440px, 66vh, 640px); }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }

  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-art {
    order: -1;
    height: min(92vw, 560px);
    margin-bottom: .5rem;
  }
  .hero-copy { text-align: left; }
  .hero-title { font-size: clamp(3.4rem, 15.5vw, 7.5rem); }
  .hero-annot-title { left: auto; right: 0; top: -.4em; }

  .transform { grid-template-columns: 1fr; gap: 1.5rem; }
  .transform-arrow { margin-block: .25rem; }
  .transform-arrow-circle svg { rotate: 90deg; }
  .state { max-width: 520px; width: 100%; margin-inline: auto; }

  .closer-inner { grid-template-columns: 1fr; }
  .closer-art { width: min(360px, 80%); margin: 1rem auto 0; order: -1; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    padding: .75rem var(--gutter) 1.25rem;
    background: var(--cream);
    border-bottom: var(--stroke) solid var(--ink);
    visibility: hidden;
    opacity: 0;
    translate: 0 -10px;
    transition: opacity .2s, translate .25s var(--ease-out), visibility 0s .25s;
  }
  .nav.is-open {
    visibility: visible;
    opacity: 1;
    translate: 0 0;
    transition: opacity .2s, translate .25s var(--ease-out), visibility 0s;
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: .25rem; }
  .nav-link {
    min-height: 54px;
    padding: 0 1rem;
    font-size: 1.25rem;
    font-weight: 800;
    border: 2px solid transparent;
  }
  .nav-link:hover { background: var(--cream-2); }
  .nav-link::after { display: none; }
  .site-header:has(.nav.is-open) { border-bottom-color: var(--ink); }

  .story-indent { padding-left: 0; }
  .story-right { text-align: left; }
  .story-right p { margin-left: 0; }

  /* Banner: keep composition, scroll sideways */
  .wall-scroller {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .wall-scroller::-webkit-scrollbar { display: none; }
  .wall-stage { width: max-content; }
  .wall-img { width: auto; height: 300px; max-width: none; }
  .wall-chip { bottom: .7rem; }

  .tape-body { aspect-ratio: auto; min-height: 460px; }
  .tape-bar .chip { display: none; }
}

@media (max-width: 560px) {
  .brand-name { font-size: 1rem; }
  .hero-meta .chip { font-size: .72rem; }
  .hero-art { height: min(104vw, 520px); }
  .hero-speed { right: -6%; }
  .sticker { left: 0; bottom: 4%; }
  .hero-annot-art { right: 2%; top: 8%; }

  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { width: 100%; min-height: 54px; }

  .ca {
    flex-wrap: wrap;
    max-width: none;
    border-radius: 20px;
  }
  .ca-label { padding: .8rem 1rem; }
  .ca-value { padding: .8rem 1rem; }
  .ca-copy {
    flex: 1 0 100%;
    min-height: 52px;
    border-left: 0;
    border-top: var(--stroke) solid var(--ink);
  }

  .hero-annot-title, .hero-annot-art { display: none; }

  .grade { width: 70px; font-size: 2rem; }
  .story-beat-xl p { font-size: clamp(2.1rem, 10vw, 3.4rem); }
  .stack-line:not(.stack-sm) { font-size: clamp(2.8rem, 15vw, 5rem); }
  .wall-img { height: 240px; }
  .wall-chip { font-size: .66rem; padding: .4em .8em; }
}

@media (max-width: 380px) {
  .header-buy { padding-inline: .9em; }
  .brand-name { display: none; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
  }
  .hero-speed, .tape-flyer { display: none; }
  .js [data-reveal] { opacity: 1; translate: none; }
  .hero-char, .hero-sun, .hero-ring, .hero-cape, .orbit { translate: none; }
}
