/* ==========================================================================
   Oddly Humans - handmade puppet comedy universe
   Warm, tactile, felt-and-paper design system
   ========================================================================== */

:root {
  /* palette */
  --bg:           #f4eee1;
  --bg-soft:      #ece4d2;
  --panel:        #fdfaf2;
  --cardboard:    #e7dcc3;
  --ink:          #38332c;
  --ink-soft:     #756c5e;
  --blue:         #7d94a6;
  --blue-deep:    #5c7385;
  --coral:        #e29b90;
  --coral-deep:   #c47c70;
  --mustard:      #d5a344;
  --mustard-deep: #a97f2c;
  --sage:         #9aa07b;
  --sage-deep:    #767c58;
  --brown:        #b08a5f;
  --stitch:       rgba(56, 51, 44, 0.25);

  /* type */
  --font-body:    "Nunito", "Segoe UI", sans-serif;
  --font-display: "Baloo 2", "Nunito", sans-serif;
  --font-hand:    "Caveat", cursive;

  /* shape + shadow */
  --radius: 18px;
  --shadow-soft: 0 10px 26px rgba(56, 51, 44, 0.09), 0 2px 6px rgba(56, 51, 44, 0.06);
  --shadow-lift: 0 16px 34px rgba(56, 51, 44, 0.13), 0 3px 8px rgba(56, 51, 44, 0.08);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* clip (not hidden) prevents horizontal scroll WITHOUT breaking the sticky header */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  overflow-x: clip;
}

/* soft paper-grain overlay across the whole site */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection {
  background: var(--coral);
  color: #fff;
}

img { max-width: 100%; display: block; }

figure { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.35rem; }

h1, h2, h3, h4, p { overflow-wrap: break-word; }

p { margin: 0 0 1em; }

a { color: var(--blue-deep); }

:focus-visible {
  outline: 3px solid var(--mustard);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

section { padding: clamp(3.5rem, 8vw, 6rem) 0; }

.muted { color: var(--ink-soft); }

/* small layout utilities — these replace former inline style="" attributes so the
   CSP can drop 'unsafe-inline' from style-src. Same values, just moved into CSS. */
.pt-0 { padding-top: 0; }
.pt-2 { padding-top: 2rem; }
.pb-lg { padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.mt-sm { margin-top: 0.6rem; }
.center-cta { text-align: center; margin-top: 2.2rem; }
.h2-sm { font-size: 1.7rem; }
.section-head--narrow { max-width: 640px; }
.catchphrase--coral { background: rgba(226, 155, 144, 0.16); }
.catchphrase--mustard { background: rgba(213, 163, 68, 0.14); }

/* --------------------------------------------------------------------------
   Small handmade details: kickers, squiggles, tape, pins, stitches
   -------------------------------------------------------------------------- */

.kicker {
  display: inline-block;
  font-family: var(--font-hand);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--coral-deep);
  transform: rotate(-1.5deg);
  margin-bottom: 0.35rem;
}

.kicker--blue    { color: var(--blue-deep); }
.kicker--mustard { color: var(--mustard-deep); }
.kicker--sage    { color: var(--sage-deep); }

.squiggle {
  display: block;
  width: 110px;
  height: 12px;
  margin-top: 0.35rem;
  color: var(--coral);
}

.section-head { max-width: 620px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .squiggle { margin-inline: auto; }

/* masking-tape strip */
.tape {
  position: absolute;
  top: -13px;
  left: 50%;
  width: 96px;
  height: 26px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(232, 214, 173, 0.85);
  box-shadow: 0 1px 2px rgba(56, 51, 44, 0.12);
  clip-path: polygon(3% 0, 97% 4%, 100% 50%, 96% 100%, 4% 96%, 0 46%);
  z-index: 2;
}

/* round sewing pin */
.pin {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #f3b9ae, var(--coral-deep) 70%);
  box-shadow: 0 3px 4px rgba(56, 51, 44, 0.28);
  z-index: 2;
}

.pin--blue    { background: radial-gradient(circle at 34% 30%, #b3c6d6, var(--blue-deep) 70%); }
.pin--mustard { background: radial-gradient(circle at 34% 30%, #ecc981, var(--mustard-deep) 70%); }

/* --------------------------------------------------------------------------
   Buttons - soft fabric tags
   -------------------------------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.72rem 1.5rem 0.78rem 2.1rem;
  border: none;
  border-radius: 16px 20px 15px 19px / 19px 15px 20px 16px;
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(56, 51, 44, 0.12), var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* string hole of the fabric tag */
.btn::before {
  content: "";
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 1px 2px rgba(56, 51, 44, 0.35);
}

/* inner stitch line */
.btn::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1.5px dashed rgba(255, 255, 255, 0.5);
  border-radius: inherit;
  pointer-events: none;
}

.btn:hover {
  transform: translateY(-3px) rotate(-1deg);
  box-shadow: 0 6px 0 rgba(56, 51, 44, 0.1), var(--shadow-lift);
}

.btn:active { transform: translateY(0) rotate(0); }

.btn--primary { background: var(--blue); color: #fdfaf2; }
.btn--coral   { background: var(--coral); color: #fff; }
.btn--mustard { background: var(--mustard); color: #fffdf5; }

.btn--paper {
  background: var(--panel);
  color: var(--ink);
}
.btn--paper::after { border-color: var(--stitch); }

.btn--small {
  font-size: 0.95rem;
  padding: 0.5rem 1.1rem 0.55rem 1.7rem;
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 238, 225, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 2px dashed var(--stitch);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.nav-brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.nav-brand:hover img { transform: rotate(-6deg); }

.nav-brand span {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a:not(.btn) {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  text-decoration: none;
  color: var(--ink);
  padding: 0.25rem 0.1rem;
  position: relative;
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='6' viewBox='0 0 60 6'%3E%3Cpath d='M0 4 Q 7.5 0 15 4 T 30 4 T 45 4 T 60 4' fill='none' stroke='%23e29b90' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x;
  background-size: 60px 6px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.nav-links a:not(.btn):hover::after,
.nav-links a[aria-current="page"]::after { opacity: 1; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 780px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    background: var(--bg);
    border-bottom: 2px dashed var(--stitch);
    padding: 1rem 4%;
    display: none;
  }

  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a:not(.btn) { display: block; padding: 0.55rem 0.2rem; font-size: 1.15rem; }
  .nav-links .nav-cta { margin-top: 0.5rem; }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
}

/* soft felt blobs behind everything */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px 340px at 12% 18%, rgba(226, 155, 144, 0.16), transparent 70%),
    radial-gradient(480px 380px at 88% 30%, rgba(125, 148, 166, 0.16), transparent 70%),
    radial-gradient(400px 320px at 55% 95%, rgba(213, 163, 68, 0.12), transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.06fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-copy .kicker { font-size: 1.65rem; }

.hero-copy h1 { margin-bottom: 0.4em; }

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 600;
  color: var(--blue-deep);
  margin-bottom: 0.9em;
}

.hero-sub {
  max-width: 46ch;
  color: var(--ink-soft);
  margin-bottom: 1.8em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* the three-puppet polaroid collage */
.hero-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
}

.polaroid {
  position: relative;
  flex: none;
  width: 32%;
  container-type: inline-size;
  background: var(--panel);
  padding: clamp(6px, 1.3vw, 12px);
  border-radius: 13px;
  box-shadow: var(--shadow-soft);
  transition: rotate 0.35s ease, translate 0.35s ease, box-shadow 0.35s ease;
}

.polaroid img {
  border-radius: 9px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}

/* caption scales with its own frame so it can never stick out */
.polaroid figcaption {
  font-family: var(--font-hand);
  font-size: clamp(0.72rem, 10cqw, 1.35rem);
  line-height: 1;
  color: var(--ink-soft);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  padding: 0.55em 0 0.15em;
}

.polaroid:nth-child(1) { rotate: -7deg; translate: 0 7%; margin-right: -2%; z-index: 1; }
.polaroid:nth-child(2) { width: 38%; translate: 0 -4%; z-index: 3; }
.polaroid:nth-child(3) { rotate: 6deg; translate: 0 9%; margin-left: -2%; z-index: 2; }

.polaroid:hover {
  rotate: 0deg;
  translate: 0 -2%;
  box-shadow: var(--shadow-lift);
  z-index: 4;
}

/* handwritten group label, shown only on small screens */
.hero-stage-caption { display: none; }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero .container > * { min-width: 0; }
  .hero-stage { margin-top: 1.2rem; }
  .hero-actions { justify-content: flex-start; }
}

@media (max-width: 620px) {
  /* bigger overlapping fan; per-card captions come off to keep it clean */
  .hero-stage { flex-wrap: wrap; padding: 0.5rem 0 0; }
  .polaroid { width: 40%; }
  .polaroid figcaption { display: none; }
  .polaroid:nth-child(1) { margin-right: -14%; translate: 0 4%; }
  .polaroid:nth-child(2) { width: 46%; }
  .polaroid:nth-child(3) { margin-left: -14%; translate: 0 6%; }

  .hero-stage-caption {
    display: block;
    width: 100%;
    font-family: var(--font-hand);
    font-size: 1.35rem;
    color: var(--ink-soft);
    text-align: center;
    margin: 1.2rem 0 0;
    transform: rotate(-1.5deg);
  }
}

/* --------------------------------------------------------------------------
   Cards (shared) + character cards
   -------------------------------------------------------------------------- */

.card {
  position: relative;
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* inner stitched line on every card */
.card::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1.5px dashed var(--stitch);
  border-radius: calc(var(--radius) - 6px);
  pointer-events: none;
  z-index: 1;
}

.tilt-l { transform: rotate(-1.3deg); }
.tilt-r { transform: rotate(1.2deg); }

.card:hover,
.tilt-l:hover,
.tilt-r:hover {
  transform: rotate(0) translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 3vw, 2.2rem);
}

@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; } }

.char-card { display: flex; flex-direction: column; padding: 1.1rem 1.1rem 1.6rem; text-align: center; }

.char-card .portrait {
  position: relative;
  border-radius: 13px;
  overflow: hidden;
  margin-bottom: 1.1rem;
}

.char-card .portrait img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  transition: transform 0.4s ease;
}

.char-card:hover .portrait img { transform: scale(1.04); }

.char-card h3 { font-size: 1.6rem; margin-bottom: 0.1em; }

.char-role {
  font-family: var(--font-hand);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.5em;
}

.char-card--blue    .char-role { color: var(--blue-deep); }
.char-card--coral   .char-role { color: var(--coral-deep); }
.char-card--mustard .char-role { color: var(--mustard-deep); }

.char-line { color: var(--ink-soft); margin-bottom: 1rem; }

.catchphrase {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  margin: 0 auto;
  padding: 0.55rem 1.1rem;
  border: 1.5px dashed var(--stitch);
  border-radius: 14px 16px 14px 16px / 16px 14px 16px 14px;
}

/* push each card's catchphrase to the card floor so all three line up */
.char-card .catchphrase { margin-top: auto; align-self: center; }

.char-card--blue    .catchphrase { background: rgba(125, 148, 166, 0.14); }
.char-card--coral   .catchphrase { background: rgba(226, 155, 144, 0.16); }
.char-card--mustard .catchphrase { background: rgba(213, 163, 68, 0.14); }

/* --------------------------------------------------------------------------
   About strip
   -------------------------------------------------------------------------- */

.about-panel {
  position: relative;
  background: var(--panel);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}

.about-panel::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1.5px dashed var(--stitch);
  border-radius: 15px;
  pointer-events: none;
}

.about-panel p {
  max-width: 58ch;
  margin-inline: auto;
  font-size: 1.15rem;
}

/* --------------------------------------------------------------------------
   Videos
   -------------------------------------------------------------------------- */

.section-alt {
  background: var(--bg-soft);
  border-top: 2px dashed var(--stitch);
  border-bottom: 2px dashed var(--stitch);
}

.video-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.3rem, 3vw, 2rem);
}

.video-card {
  /* grow to fill a row, but cap the width so 1-2 videos don't blow up huge */
  flex: 1 1 240px;
  max-width: 300px;
  padding: 0.8rem 0.8rem 1rem;
  text-decoration: none;
  color: var(--ink);
  display: block;
}

/* on phones let a single card use the full width */
@media (max-width: 540px) {
  .video-card { max-width: none; }
}

.video-thumb {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.video-thumb img {
  aspect-ratio: 16 / 11;
  object-fit: cover;
  width: 100%;
  filter: saturate(0.95);
  transition: transform 0.4s ease;
}

.video-card:hover .video-thumb img { transform: scale(1.05); }

.video-thumb .play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(253, 250, 242, 0.92);
  border: 1.5px dashed var(--stitch);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(56, 51, 44, 0.2);
  transition: transform 0.3s ease;
}

.video-card:hover .play { transform: scale(1.1) rotate(-4deg); }

.play svg { width: 18px; height: 18px; margin-left: 3px; color: var(--ink); }

.video-duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-family: var(--font-hand);
  font-size: 1.05rem;
  line-height: 1;
  color: #fdfaf2;
  background: rgba(56, 51, 44, 0.72);
  padding: 0.25rem 0.55rem 0.3rem;
  border-radius: 8px;
}

.video-card h3 { font-size: 1.15rem; margin-bottom: 0.15em; }

.video-note {
  font-family: var(--font-hand);
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 0;
}

/* live-loaded cards: gentle staggered fade-in */
.v-in { animation: v-fade 0.5s ease both; animation-delay: calc(var(--i, 0) * 60ms); }

@keyframes v-fade {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* loading + empty states */
.video-grid.is-loading { min-height: 180px; }

.video-loading {
  flex: 1 1 100%;
  text-align: center;
  padding: 2rem 0;
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: var(--ink-soft);
}

.video-grid--empty { display: block; }

.video-empty {
  position: relative;
  max-width: 460px;
  margin-inline: auto;
  text-align: center;
  background: var(--panel);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  padding: clamp(2rem, 5vw, 2.8rem) 1.6rem;
}

.video-empty::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1.5px dashed var(--stitch);
  border-radius: 13px;
  pointer-events: none;
}

.video-empty-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(226, 155, 144, 0.18);
  border: 1.5px dashed var(--stitch);
}

.video-empty-icon svg { width: 22px; height: 22px; margin-left: 3px; color: var(--coral-deep); }

.video-empty h3 { font-size: 1.4rem; margin-bottom: 0.3em; }

.video-empty p {
  color: var(--ink-soft);
  max-width: 34ch;
  margin: 0 auto 1.4rem;
}

/* --------------------------------------------------------------------------
   Inline video lightbox
   -------------------------------------------------------------------------- */

.vlightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  background: rgba(56, 51, 44, 0.72);
  backdrop-filter: blur(5px);
}

.vlightbox.open { display: flex; }

.vlightbox-inner {
  position: relative;
  width: min(920px, 100%);
  background: var(--panel);
  border-radius: 16px;
  padding: 10px;
  box-shadow: var(--shadow-lift);
}

.vlightbox-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

.vlightbox-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.vlightbox-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--panel);
  border: 1.5px dashed var(--stitch);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.25s ease, color 0.25s ease;
}

.vlightbox-close:hover { transform: rotate(90deg); color: var(--coral-deep); }

@media (max-width: 520px) {
  .vlightbox-close { top: -14px; right: 4px; }
}

/* --------------------------------------------------------------------------
   The world - an evidence board of modern-life situations (topics, not objects)
   -------------------------------------------------------------------------- */

.topic-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem 0.9rem;
  max-width: 660px;
  margin-inline: auto;
}

.topic {
  font-family: var(--font-hand);
  font-size: 1.32rem;
  line-height: 1;
  padding: 0.55rem 1.1rem 0.62rem;
  border-radius: 14px 17px 13px 16px / 16px 13px 17px 14px;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.topic:nth-child(4n+1) { background: rgba(226, 155, 144, 0.22); transform: rotate(-2deg); }
.topic:nth-child(4n+2) { background: rgba(125, 148, 166, 0.22); transform: rotate(1.5deg); }
.topic:nth-child(4n+3) { background: rgba(213, 163, 68, 0.20); transform: rotate(-1deg); }
.topic:nth-child(4n+4) { background: rgba(154, 160, 123, 0.24); transform: rotate(2deg); }

.topic:hover {
  transform: rotate(0) translateY(-4px);
  box-shadow: var(--shadow-lift);
}

/* --------------------------------------------------------------------------
   The tone - three plain editorial columns (no product-tile cards)
   -------------------------------------------------------------------------- */

.tone-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.6rem, 4vw, 2.8rem);
  max-width: 900px;
  margin-inline: auto;
}

.tone-col {
  position: relative;
  text-align: center;
  padding: 0 0.4rem;
}

/* dashed divider between columns */
.tone-col:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 6%;
  bottom: 6%;
  right: calc(clamp(1.6rem, 4vw, 2.8rem) / -2);
  border-left: 1.6px dashed var(--stitch);
}

.tone-num {
  display: block;
  font-family: var(--font-hand);
  font-size: 1.7rem;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.tone-col:nth-child(1) .tone-num { color: var(--blue-deep); }
.tone-col:nth-child(2) .tone-num { color: var(--coral-deep); }
.tone-col:nth-child(3) .tone-num { color: var(--mustard-deep); }

.tone-col h3 { margin-bottom: 0.35em; }
.tone-col p { color: var(--ink-soft); margin: 0; }

@media (max-width: 720px) {
  .tone-row { grid-template-columns: 1fr; max-width: 440px; gap: 2.2rem; }
  .tone-col:not(:last-child)::after {
    top: auto;
    right: auto;
    left: 22%;
    right: 22%;
    bottom: calc(2.2rem / -2);
    border-left: 0;
    border-top: 1.6px dashed var(--stitch);
  }
}

/* --------------------------------------------------------------------------
   Support strip - buy the puppets a coffee
   -------------------------------------------------------------------------- */

.support-strip {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2rem);
  background: linear-gradient(120deg, rgba(213, 163, 68, 0.18), rgba(226, 155, 144, 0.13));
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  padding: clamp(1.5rem, 4vw, 2.2rem) clamp(1.3rem, 4vw, 2.4rem);
}

.support-strip::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px dashed rgba(56, 51, 44, 0.2);
  border-radius: 15px;
  pointer-events: none;
}

.support-strip .strip-icon {
  flex: none;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--panel);
  border: 1.5px dashed var(--stitch);
  display: grid;
  place-items: center;
  transform: rotate(-4deg);
}

.support-strip .strip-icon svg { width: 34px; height: 34px; }

.support-strip h2 { font-size: 1.55rem; margin-bottom: 0.15em; }

.support-strip p { margin: 0; color: var(--ink-soft); max-width: 52ch; }

.support-strip .btn { flex: none; margin-left: auto; position: relative; }

@media (max-width: 760px) {
  .support-strip { flex-direction: column; text-align: center; }
  .support-strip .btn { margin-left: 0; }
}

/* --------------------------------------------------------------------------
   Follow / CTA band
   -------------------------------------------------------------------------- */

.follow-panel {
  position: relative;
  background: linear-gradient(135deg, rgba(226, 155, 144, 0.25), rgba(213, 163, 68, 0.18));
  border-radius: 26px;
  padding: clamp(2.4rem, 6vw, 4rem) clamp(1.4rem, 4vw, 3rem);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.follow-panel::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px dashed rgba(56, 51, 44, 0.2);
  border-radius: 18px;
  pointer-events: none;
}

.follow-panel h2 { margin-bottom: 0.3em; }

.follow-panel > p {
  max-width: 44ch;
  margin: 0 auto 1.8em;
  color: var(--ink-soft);
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  position: relative;
}

.social-row .btn svg { width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--cardboard);
  border-top: 2px dashed var(--stitch);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}

.footer-brand img { width: 42px; height: 42px; object-fit: contain; }

.footer-brand span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
}

.footer-line {
  font-family: var(--font-hand);
  font-size: 1.35rem;
  color: var(--ink-soft);
  margin: 0;
}

.site-footer h4 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li { margin-bottom: 0.35rem; }

.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-links a:hover { color: var(--ink); text-decoration: underline wavy var(--coral); }

.footer-bottom {
  border-top: 1.5px dashed var(--stitch);
  padding-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.footer-bottom a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1.5px dashed var(--stitch);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.footer-bottom a:hover {
  color: var(--coral-deep);
  border-bottom-color: var(--coral);
}

/* --------------------------------------------------------------------------
   Character profile pages
   -------------------------------------------------------------------------- */

.profile {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.profile--flip .profile-photo { order: 2; }

@media (max-width: 860px) {
  .profile { grid-template-columns: 1fr; }
  .profile--flip .profile-photo { order: 0; }
  .profile-photo { max-width: 400px; }
}

.profile-photo {
  position: relative;
  background: var(--panel);
  padding: 3.2% 3.2% 2%;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s ease;
}

.profile-photo img { border-radius: 12px; }

.profile-photo figcaption {
  font-family: var(--font-hand);
  font-size: 1.25rem;
  color: var(--ink-soft);
  text-align: center;
  padding: 3% 0 1.5%;
}

.profile-photo.tilt-l:hover,
.profile-photo.tilt-r:hover { transform: rotate(0) translateY(-4px); }

.trait-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.9rem 0 1.3rem;
}

.trait {
  font-family: var(--font-hand);
  font-size: 1.15rem;
  line-height: 1;
  padding: 0.45rem 0.8rem 0.5rem;
  border-radius: 999px;
  border: 1.5px dashed var(--stitch);
  background: var(--panel);
}

.field-notes {
  position: relative;
  background: var(--panel);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  padding: 1.3rem 1.5rem 1.1rem;
  margin-top: 1.4rem;
}

.field-notes::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1.5px dashed var(--stitch);
  border-radius: 9px;
  pointer-events: none;
}

.field-notes h4 {
  font-family: var(--font-hand);
  font-size: 1.45rem;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}

.field-notes ul {
  margin: 0;
  padding-left: 1.2rem;
}

.field-notes li { margin-bottom: 0.45rem; }
.field-notes li::marker { color: var(--coral-deep); }

/* --------------------------------------------------------------------------
   Contact / coming soon panels
   -------------------------------------------------------------------------- */

.panel-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.4rem, 3vw, 2.2rem);
}

@media (max-width: 780px) { .panel-duo { grid-template-columns: 1fr; } }

.info-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.8rem;
  text-align: center;
}

.info-panel .kicker { margin-bottom: 0.1rem; }

/* push the button to the card floor so both cards' buttons line up,
   with a consistent gap above and equal spacing from the bottom */
.info-panel .btn {
  margin-top: auto;
  align-self: center;
}

.info-panel p { margin-bottom: 1.4rem; }

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */

.page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(1.5rem, 3vw, 2rem);
  text-align: center;
}

.page-hero p {
  max-width: 54ch;
  margin-inline: auto;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in { opacity: 1; transform: none; }

/* stagger helpers */
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.3s; }

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