/* ============================================================
   MILF CLUB — Design System
   Hybrid: Paper Paws palette + editorial typography
   ============================================================ */

:root {
  /* Surface colors */
  --bg: #fdf9f0;
  --surface: #f7f3ea;
  --surface-high: #ece8df;
  --surface-highest: #e6e2d9;

  /* Ink */
  --ink: #1c1c17;
  --ink-muted: #564339;
  --ink-soft: #897267;
  --outline: #dcc1b4;

  /* Brand */
  --primary: #9b4500;
  --primary-soft: #ff914d;
  --primary-tint: #ffdbc9;
  --on-primary: #fdf9f0;

  --secondary: #006879;
  --secondary-soft: #55d6f3;
  --secondary-tint: #aaedff;
  --on-secondary: #fdf9f0;

  --tertiary: #874e58;
  --tertiary-soft: #e09ba6;
  --tertiary-tint: #ffd9de;
  --on-tertiary: #fdf9f0;

  /* Fonts */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Hard offset shadows (cardstock effect) */
  --shadow-sm: 2px 2px 0 rgba(28, 28, 23, 0.10);
  --shadow-md: 4px 4px 0 rgba(28, 28, 23, 0.14);
  --shadow-lg: 6px 6px 0 rgba(28, 28, 23, 0.18);
  --shadow-xl: 10px 10px 0 rgba(28, 28, 23, 0.20);

  /* Colored shadows */
  --shadow-primary: 6px 6px 0 var(--primary);
  --shadow-secondary: 6px 6px 0 var(--secondary);
  --shadow-tertiary: 6px 6px 0 var(--tertiary);

  /* Radii */
  --r-sm: 4px;
  --r: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Spacing (4px base) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;

  /* Container */
  --container: 1200px;
  --container-narrow: 720px;

  /* Transitions */
  --t-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --t: 220ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-bounce: 320ms cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-hover: 480ms cubic-bezier(0.22, 1, 0.36, 1);
  --t-hover-shadow: 560ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Z-index */
  --z-nav: 50;
  --z-modal: 90;
  --z-toast: 100;
}

/* ============================================================
   Reset & Base
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }

button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

a { color: var(--primary); text-decoration: none; }

ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); }

p { margin: 0; }

/* Selection */
::selection { background: var(--primary); color: var(--on-primary); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   Typography scale
   ============================================================ */

.t-display {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 144;
}

.t-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-variation-settings: "SOFT" 100, "opsz" 96;
}

.t-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-variation-settings: "SOFT" 50, "opsz" 72;
}

.t-h3 {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.t-eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-muted);
}

.t-lead {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

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

.t-serif-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-variation-settings: "SOFT" 100, "opsz" 72;
}

/* ============================================================
   Layout utilities
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

.container-narrow {
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

.section {
  padding-block: var(--sp-9);
}

.section-sm { padding-block: var(--sp-7); }

.stack > * + * { margin-top: var(--sp-4); }
.stack-lg > * + * { margin-top: var(--sp-6); }

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
}

.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding-block: var(--sp-7); }
}

/* ============================================================
   Nav
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: background var(--t), backdrop-filter var(--t), border-color var(--t);
}

.nav.is-scrolled {
  background: rgba(253, 249, 240, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--outline);
}

.nav__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--sp-4) var(--sp-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}

.nav__logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-variation-settings: "SOFT" 100, "opsz" 48;
  cursor: pointer;
  user-select: none;
}

.nav__logo-mark {
  display: inline-block;
  width: 28px;
  height: 28px;
  background: var(--primary);
  border-radius: var(--r-pill);
  position: relative;
  transition: transform var(--t-bounce);
}

.nav__logo:hover .nav__logo-mark {
  transform: rotate(-12deg) scale(1.08);
}

.nav__logo-mark::before,
.nav__logo-mark::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 8px;
  background: var(--primary);
  border-radius: 50% 50% 40% 40%;
  top: -5px;
}
.nav__logo-mark::before { left: 5px; transform: rotate(-15deg); }
.nav__logo-mark::after  { right: 5px; transform: rotate(15deg); }

.nav__links {
  display: flex;
  gap: var(--sp-5);
  align-items: center;
}

.nav__link {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding-block: var(--sp-1);
  transition: color var(--t);
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--primary);
  transition: right var(--t-bounce);
}

.nav__link:hover { color: var(--primary); }
.nav__link:hover::after { right: 0; }

.nav__link.is-active { color: var(--primary); }
.nav__link.is-active::after { right: 0; }

.nav__mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

@media (max-width: 820px) {
  .nav__links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); padding: var(--sp-5); flex-direction: column; align-items: stretch; border-bottom: 1px solid var(--outline); }
  .nav__links.is-open { display: flex; }
  .nav__mobile-toggle { display: inline-flex; }
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 14px 24px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border-radius: var(--r);
  border: 2px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t);
  position: relative;
  min-height: 48px;
  text-decoration: none;
}

.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 rgba(28, 28, 23, 0.22);
}

.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 rgba(28, 28, 23, 0.14);
  transition-duration: 80ms;
}

.btn:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--ink);
}

.btn--primary:hover { background: #b85006; }

.btn--secondary {
  background: var(--secondary);
  color: var(--on-secondary);
}

.btn--tertiary {
  background: var(--tertiary);
  color: var(--on-tertiary);
}

.btn--ghost {
  background: transparent;
  box-shadow: none;
  border-color: var(--ink);
}

.btn--ghost:hover { background: var(--ink); color: var(--bg); box-shadow: var(--shadow-md); }

.btn--sm { padding: 10px 18px; font-size: 0.85rem; min-height: 40px; }
.btn--lg { padding: 18px 32px; font-size: 1.05rem; min-height: 56px; }

/* ============================================================
   Cards
   ============================================================ */

.card {
  background: var(--bg);
  border: 2px solid var(--ink);
  border-radius: var(--r-md);
  padding: var(--sp-6);
  box-shadow: var(--shadow-md);
  transition: transform var(--t-hover), box-shadow var(--t-hover-shadow), background var(--t);
  position: relative;
  will-change: transform, box-shadow;
}

.card:hover {
  transform: translate(-3px, -4px);
  box-shadow: 10px 12px 0 rgba(28, 28, 23, 0.20);
}

.card--primary { background: var(--primary-tint); border-color: var(--ink); }
.card--secondary { background: var(--secondary-tint); }
.card--tertiary { background: var(--tertiary-tint); }
.card--surface { background: var(--surface); }

.card__eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary);
  margin-bottom: var(--sp-3);
  display: inline-flex;
  gap: var(--sp-2);
  align-items: center;
}

.card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-3);
  font-variation-settings: "SOFT" 50, "opsz" 72;
}

/* ============================================================
   Chips / Badges
   ============================================================ */

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform var(--t), box-shadow var(--t);
}

.chip:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}

.chip--primary { background: var(--primary-tint); }
.chip--secondary { background: var(--secondary-tint); }
.chip--tertiary { background: var(--tertiary-tint); }

/* ============================================================
   Polaroid (cat photos ONLY)
   ============================================================ */

.polaroid {
  background: #fefbf3;
  padding: 10px 10px 48px;
  box-shadow: var(--shadow-lg);
  border-radius: 2px;
  display: inline-block;
  transition: transform var(--t-hover), box-shadow var(--t-hover-shadow);
  position: relative;
  width: 100%;
  max-width: 280px;
  will-change: transform, box-shadow;
}

.polaroid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.polaroid__caption {
  position: absolute;
  left: 0; right: 0;
  bottom: 14px;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  font-variation-settings: "SOFT" 100;
}

.polaroid:hover {
  transform: rotate(-1.5deg) translate(-3px, -6px) scale(1.02);
  box-shadow: 14px 16px 0 rgba(28, 28, 23, 0.24);
}

.polaroid--tilt-l { transform: rotate(-3deg); }
.polaroid--tilt-r { transform: rotate(3deg); }
.polaroid--tilt-l:hover { transform: rotate(-5deg) translate(-3px, -6px) scale(1.03); }
.polaroid--tilt-r:hover { transform: rotate(5deg) translate(-3px, -6px) scale(1.03); }

/* ============================================================
   Forms
   ============================================================ */

.field {
  display: block;
  margin-bottom: var(--sp-4);
}

.field__label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin-bottom: var(--sp-2);
}

.field__input,
.field__textarea,
.field__select {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 1rem;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--r);
  color: var(--ink);
  transition: background var(--t), box-shadow var(--t), transform var(--t);
  box-shadow: inset 3px 3px 0 rgba(28, 28, 23, 0.05);
}

.field__input:focus,
.field__textarea:focus,
.field__select:focus {
  outline: 0;
  background: var(--bg);
  box-shadow: 0 0 0 3px var(--secondary-tint), inset 0 0 0 rgba(0,0,0,0);
  border-color: var(--secondary);
}

.field__textarea { resize: vertical; min-height: 120px; }

.field__help {
  display: block;
  margin-top: var(--sp-2);
  font-size: 0.82rem;
  color: var(--ink-muted);
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  padding-block: var(--sp-9);
  position: relative;
  overflow: hidden;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 14px;
  background: var(--tertiary-tint);
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  margin-bottom: var(--sp-5);
}

.hero__eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.4); }
}

.hero__title {
  font-variation-settings: "SOFT" 100, "opsz" 144;
}

.hero__title em {
  font-style: italic;
  color: var(--primary);
  font-weight: 600;
}

/* ============================================================
   Stats marquee
   ============================================================ */

.stats-bar {
  background: var(--ink);
  color: var(--bg);
  padding: var(--sp-4) 0;
  overflow: hidden;
  position: relative;
}

.stats-bar__track {
  display: flex;
  gap: var(--sp-8);
  white-space: nowrap;
  animation: scroll-x 40s linear infinite;
  width: max-content;
}

.stats-bar__item {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-4);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  font-style: italic;
  font-variation-settings: "SOFT" 100, "opsz" 72;
}

.stats-bar__item::after {
  content: '✦';
  color: var(--primary-soft);
  font-size: 0.8rem;
  margin-left: var(--sp-6);
}

@keyframes scroll-x {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.stats-bar:hover .stats-bar__track {
  animation-play-state: paused;
}

/* ============================================================
   Stat counter
   ============================================================ */

.stat {
  text-align: center;
}

.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
  font-variation-settings: "SOFT" 100, "opsz" 144;
  letter-spacing: -0.03em;
  display: block;
}

.stat__label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  margin-top: var(--sp-2);
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  background: var(--ink);
  color: var(--bg);
  padding-block: var(--sp-8) var(--sp-6);
  margin-top: var(--sp-9);
}

.footer a { color: var(--bg); text-decoration: none; }
.footer a:hover { color: var(--primary-soft); }

.footer__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-5);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-7);
}

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

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

.footer__brand h3 {
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: var(--sp-3);
  font-variation-settings: "SOFT" 100, "opsz" 96;
}

.footer__brand p { color: rgba(253, 249, 240, 0.7); max-width: 340px; line-height: 1.55; }

.footer__col h4 {
  font-size: 0.78rem;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary-soft);
  margin-bottom: var(--sp-4);
}

.footer__col ul li { margin-bottom: var(--sp-3); }
.footer__col ul li a { font-size: 0.95rem; transition: color var(--t); }

.footer__bottom {
  max-width: var(--container);
  margin: var(--sp-7) auto 0;
  padding: var(--sp-5) var(--sp-5) 0;
  border-top: 1px solid rgba(253, 249, 240, 0.15);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
  font-size: 0.85rem;
  color: rgba(253, 249, 240, 0.55);
}

/* ============================================================
   Paw pattern background
   ============================================================ */

.pattern-paws {
  position: relative;
}

.pattern-paws::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 12% 20%, var(--outline) 1.5px, transparent 2px),
                    radial-gradient(circle at 88% 68%, var(--outline) 1.5px, transparent 2px),
                    radial-gradient(circle at 52% 40%, var(--outline) 1.5px, transparent 2px);
  background-size: 140px 140px, 180px 180px, 220px 220px;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.pattern-paws > * { position: relative; z-index: 1; }

/* ============================================================
   Reveal-on-scroll
   ============================================================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal][data-delay="1"] { transition-delay: 80ms; }
[data-reveal][data-delay="2"] { transition-delay: 160ms; }
[data-reveal][data-delay="3"] { transition-delay: 240ms; }
[data-reveal][data-delay="4"] { transition-delay: 320ms; }
[data-reveal][data-delay="5"] { transition-delay: 400ms; }

/* ============================================================
   Paw trail (easter egg / hover effect)
   ============================================================ */

.paw-print {
  position: fixed;
  width: 28px;
  height: 28px;
  pointer-events: none;
  z-index: 200;
  opacity: 0;
  animation: pawDrop 1.8s ease-out forwards;
}

@keyframes pawDrop {
  0%   { opacity: 0; transform: scale(0.3) rotate(var(--rot, 0deg)); }
  15%  { opacity: 1; transform: scale(1.1) rotate(var(--rot, 0deg)); }
  100% { opacity: 0; transform: scale(0.85) rotate(var(--rot, 0deg)) translateY(10px); }
}

/* ============================================================
   Utility classes
   ============================================================ */

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-tertiary { color: var(--tertiary); }
.text-muted { color: var(--ink-muted); }

.bg-surface { background: var(--surface); }
.bg-primary-tint { background: var(--primary-tint); }
.bg-secondary-tint { background: var(--secondary-tint); }
.bg-tertiary-tint { background: var(--tertiary-tint); }

.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

.divider {
  height: 2px;
  background: var(--ink);
  margin-block: var(--sp-7);
  max-width: 80px;
}

.divider--full { max-width: 100%; }

/* ============================================================
   Page-specific: Home hero collage
   ============================================================ */

.home-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--sp-8);
  align-items: center;
  padding-block: var(--sp-8) var(--sp-9);
}

@media (max-width: 900px) {
  .home-hero { grid-template-columns: 1fr; gap: var(--sp-7); }
}

.home-hero__collage {
  position: relative;
  aspect-ratio: 5 / 5;
  min-height: 440px;
}

.home-hero__polaroid {
  position: absolute;
  width: 240px;
  transition: transform var(--t-hover), box-shadow var(--t-hover-shadow);
  will-change: transform;
}

.home-hero__polaroid:nth-child(1) { top: 0; left: 0; transform: rotate(-6deg); z-index: 3; }
.home-hero__polaroid:nth-child(2) { top: 20px; right: 0; transform: rotate(4deg); z-index: 2; width: 220px; }
.home-hero__polaroid:nth-child(3) { bottom: 0; left: 30%; transform: rotate(-2deg); z-index: 1; width: 260px; }
.home-hero__polaroid:nth-child(4) { bottom: 40px; right: 10%; transform: rotate(8deg); z-index: 4; width: 180px; }

.home-hero__polaroid:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.04);
  z-index: 10;
}

@media (max-width: 900px) {
  .home-hero__collage { min-height: 360px; }
  .home-hero__polaroid { width: 180px !important; }
  .home-hero__polaroid:nth-child(4) { width: 150px !important; }
}

/* ============================================================
   Pricing tiers
   ============================================================ */

.tier {
  position: relative;
  background: var(--bg);
  border: 2px solid var(--ink);
  border-radius: var(--r-md);
  padding: var(--sp-6);
  box-shadow: var(--shadow-lg);
  transition: transform var(--t-hover), box-shadow var(--t-hover-shadow);
  display: flex;
  flex-direction: column;
  will-change: transform, box-shadow;
}

.tier:hover {
  transform: translate(-4px, -7px);
  box-shadow: 14px 16px 0 rgba(28, 28, 23, 0.24);
}

.tier--highlight {
  background: var(--primary-tint);
  transform: scale(1.04);
}

.tier--highlight:hover {
  transform: scale(1.04) translate(-4px, -7px);
}

.tier__badge {
  position: absolute;
  top: -14px;
  right: 20px;
  background: var(--primary);
  color: var(--on-primary);
  border: 2px solid var(--ink);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: 2px 2px 0 var(--ink);
}

.tier__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-2);
  color: var(--primary);
}

.tier__price {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.tier__price-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.5rem;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variation-settings: "SOFT" 100, "opsz" 144;
  color: var(--ink);
}

.tier__price-unit {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink-muted);
  font-weight: 500;
}

.tier__features {
  flex: 1;
  margin: var(--sp-4) 0 var(--sp-6);
}

.tier__features li {
  display: flex;
  gap: var(--sp-2);
  padding: 8px 0;
  font-size: 0.95rem;
  border-bottom: 1px dashed var(--outline);
}

.tier__features li:last-child { border-bottom: 0; }

.tier__features svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--primary);
  margin-top: 2px;
}

/* ============================================================
   Zodiac grid (Catstrology)
   ============================================================ */

.zodiac-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}

@media (max-width: 900px) { .zodiac-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .zodiac-grid { grid-template-columns: repeat(2, 1fr); } }

.zodiac-card {
  background: var(--bg);
  border: 2px solid var(--ink);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform var(--t-hover), box-shadow var(--t-hover-shadow), background var(--t);
  text-align: center;
  position: relative;
  will-change: transform, box-shadow;
}

.zodiac-card:hover {
  transform: translate(-3px, -5px) rotate(-1.5deg);
  box-shadow: 12px 14px 0 rgba(28, 28, 23, 0.22);
  background: var(--primary-tint);
}

.zodiac-card.is-active {
  background: var(--primary);
  color: var(--on-primary);
  transform: translate(-2px, -3px);
}

.zodiac-card.is-active .zodiac-card__dates { color: rgba(253,249,240,0.75); }

.zodiac-card__symbol {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 800;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  margin-bottom: var(--sp-2);
}

.zodiac-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.015em;
}

.zodiac-card__dates {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-top: 4px;
  font-weight: 600;
}

.horoscope-reveal {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  margin-top: var(--sp-7);
  position: relative;
  overflow: hidden;
}

.horoscope-reveal h3 {
  color: var(--bg);
  font-style: italic;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-variation-settings: "SOFT" 100, "opsz" 96;
}

.horoscope-reveal p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.5;
  font-variation-settings: "SOFT" 100, "opsz" 72;
  margin-top: var(--sp-4);
  max-width: 720px;
}

/* ============================================================
   Cat facts library
   ============================================================ */

.fact-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-7);
  justify-content: center;
}

.fact-filter__btn {
  padding: 8px 16px;
  border: 2px solid var(--ink);
  background: var(--bg);
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--t);
  color: var(--ink);
}

.fact-filter__btn:hover { background: var(--surface-high); transform: translateY(-2px); }
.fact-filter__btn.is-active { background: var(--ink); color: var(--bg); }

.fact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

@media (max-width: 900px) { .fact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .fact-grid { grid-template-columns: 1fr; } }

.fact-card {
  background: var(--bg);
  border: 2px solid var(--ink);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  box-shadow: var(--shadow-md);
  transition: transform var(--t-hover), box-shadow var(--t-hover-shadow), background var(--t);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  will-change: transform, box-shadow;
}

.fact-card:hover {
  transform: translate(-3px, -5px);
  box-shadow: 11px 13px 0 rgba(28, 28, 23, 0.22);
}

.fact-card__number {
  position: absolute;
  top: -10px;
  right: 10px;
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 900;
  color: var(--primary-tint);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
  letter-spacing: -0.05em;
}

.fact-card__tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: var(--sp-2);
  position: relative;
  z-index: 1;
}

.fact-card__text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.35;
  font-variation-settings: "SOFT" 100, "opsz" 72;
  position: relative;
  z-index: 1;
  color: var(--ink);
}

.fact-card__cite {
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-top: var(--sp-3);
  font-style: italic;
  position: relative;
  z-index: 1;
}

/* Featured fact of the day */
.fact-hero {
  background: var(--primary);
  color: var(--on-primary);
  border: 2px solid var(--ink);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  box-shadow: var(--shadow-xl);
  text-align: center;
  margin-bottom: var(--sp-8);
  position: relative;
  overflow: hidden;
}

.fact-hero__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary-tint);
  margin-bottom: var(--sp-4);
}

.fact-hero__text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-variation-settings: "SOFT" 100, "opsz" 144;
  max-width: 800px;
  margin-inline: auto;
}

/* ============================================================
   About page: story layout
   ============================================================ */

.story-block {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--sp-7);
  margin-block: var(--sp-8);
  align-items: start;
}

@media (max-width: 820px) {
  .story-block { grid-template-columns: 1fr; gap: var(--sp-4); }
}

.story-block__year {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 0.95;
  font-variation-settings: "SOFT" 100, "opsz" 144;
  letter-spacing: -0.04em;
  position: sticky;
  top: 120px;
}

.story-block__body p {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: var(--sp-4);
}

.story-block__body p.lead {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 500;
  font-variation-settings: "SOFT" 100, "opsz" 96;
  color: var(--ink);
}

.manifesto {
  background: var(--ink);
  color: var(--bg);
  padding: var(--sp-8);
  border-radius: var(--r-lg);
  margin-block: var(--sp-8);
}

.manifesto h2 { color: var(--bg); margin-bottom: var(--sp-5); }

.manifesto ol {
  counter-reset: m;
  list-style: none;
  padding: 0;
  margin: 0;
}

.manifesto ol li {
  counter-increment: m;
  padding: var(--sp-4) 0;
  padding-left: 72px;
  position: relative;
  border-bottom: 1px solid rgba(253,249,240,0.15);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.35;
  font-variation-settings: "SOFT" 100, "opsz" 72;
}

.manifesto ol li::before {
  content: counter(m, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: var(--sp-4);
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary-soft);
  line-height: 1;
  font-style: normal;
  letter-spacing: -0.03em;
}

/* ============================================================
   Join page
   ============================================================ */

.join-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  margin-block: var(--sp-7);
}

@media (max-width: 900px) {
  .join-grid { grid-template-columns: 1fr; }
  .tier--highlight { transform: none; }
  .tier--highlight:hover { transform: translate(-3px, -5px); }
}

/* ============================================================
   FAQ accordion
   ============================================================ */

.faq {
  max-width: 800px;
  margin-inline: auto;
}

.faq__item {
  border-top: 2px solid var(--ink);
  padding: var(--sp-4) 0;
}

.faq__item:last-child { border-bottom: 2px solid var(--ink); }

.faq__q {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  padding: var(--sp-2) 0;
  font-variation-settings: "SOFT" 50, "opsz" 72;
  transition: color var(--t);
}

.faq__q:hover { color: var(--primary); }

.faq__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  transition: transform var(--t-bounce);
}

.faq__item.is-open .faq__icon { transform: rotate(45deg); }

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 360ms cubic-bezier(0.4, 0, 0.2, 1);
}

.faq__a p {
  padding-top: var(--sp-3);
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.65;
}

/* ============================================================
   Icon style
   ============================================================ */

.icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

/* ============================================================
   Testimonial
   ============================================================ */

.testimonial {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--r-md);
  padding: var(--sp-6);
  box-shadow: var(--shadow-md);
  position: relative;
  transition: transform var(--t-hover), box-shadow var(--t-hover-shadow);
  will-change: transform, box-shadow;
}

.testimonial:hover {
  transform: translate(-3px, -5px);
  box-shadow: 11px 13px 0 rgba(28, 28, 23, 0.22);
}

.testimonial__quote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.4;
  font-style: italic;
  font-variation-settings: "SOFT" 100, "opsz" 72;
  margin-bottom: var(--sp-4);
  color: var(--ink);
}

.testimonial__quote::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 0.4;
  vertical-align: -0.3em;
  color: var(--primary);
  margin-right: 6px;
  font-style: normal;
}

.testimonial__person {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ink);
}

.testimonial__name {
  font-weight: 700;
  font-size: 0.95rem;
}

.testimonial__meta {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* ============================================================
   Directory preview (member grid)
   ============================================================ */

.clowder-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
  padding: var(--sp-4);
}

@media (max-width: 900px) { .clowder-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .clowder-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .clowder-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Big CTA block
   ============================================================ */

.cta-block {
  background: var(--primary);
  color: var(--on-primary);
  border: 2px solid var(--ink);
  border-radius: var(--r-xl);
  padding: var(--sp-9) var(--sp-6);
  text-align: center;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.cta-block h2 { color: var(--on-primary); font-size: clamp(2rem, 4.5vw, 3.25rem); }
.cta-block p { max-width: 560px; margin-inline: auto; margin-top: var(--sp-4); font-size: 1.15rem; opacity: 0.92; }

.cta-block__actions {
  margin-top: var(--sp-6);
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  flex-wrap: wrap;
}

.cta-block .btn--ghost { color: var(--on-primary); border-color: var(--on-primary); }
.cta-block .btn--ghost:hover { background: var(--on-primary); color: var(--primary); }

.cta-block__bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 15% 30%, rgba(253,249,240,0.1) 2px, transparent 3px),
                    radial-gradient(circle at 85% 70%, rgba(253,249,240,0.1) 2px, transparent 3px);
  background-size: 120px 120px, 180px 180px;
  pointer-events: none;
}

/* ============================================================
   DECO — cutouts, silhouettes, floating cat bits
   ============================================================ */

.deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

.deco svg { display: block; width: 100%; height: 100%; }

/* Individual paw */
.deco-paw {
  width: 42px;
  height: 42px;
  color: var(--primary);
  opacity: 0.4;
  transform: rotate(var(--rot, 0deg));
}

/* Scattered paw cluster (for backgrounds) */
.deco-paws-scatter {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.deco-paws-scatter .deco-paw { position: absolute; }

/* Peeking cat — head with ears poking up from bottom of a container */
.deco-cat-peek {
  width: 200px;
  height: 90px;
  color: var(--ink);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  animation: catBob 4.5s ease-in-out infinite;
  z-index: 1;
}

@keyframes catBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-4px); }
}

.deco-cat-peek--left  { left: 8%;  transform: translateX(0); animation: catBobL 4.5s ease-in-out infinite; }
.deco-cat-peek--right { left: auto; right: 8%; transform: translateX(0); animation: catBobL 4.5s ease-in-out infinite; }

@keyframes catBobL {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

/* Tail curl — decorative stroke around headlines */
.deco-tail {
  width: 90px;
  height: 140px;
  color: var(--primary);
  opacity: 0.45;
}

/* Fish bone */
.deco-fish {
  width: 72px;
  height: 28px;
  color: var(--secondary);
  opacity: 0.55;
}

/* Yarn ball */
.deco-yarn {
  width: 56px;
  height: 56px;
  color: var(--tertiary);
  opacity: 0.6;
}

/* Floating cat silhouette (full body) */
.deco-cat-silhouette {
  width: 150px;
  height: 120px;
  color: var(--ink);
  opacity: 0.75;
  animation: catWobble 6s ease-in-out infinite;
}

@keyframes catWobble {
  0%, 100% { transform: rotate(-2deg); }
  50%      { transform: rotate(2deg); }
}

/* Star/sparkle for Catstrology */
.deco-star {
  width: 28px;
  height: 28px;
  color: var(--primary);
  opacity: 0.7;
  animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50%      { opacity: 1;   transform: scale(1.1); }
}

/* Cat ears on top of a card (absolute positioned) */
.deco-ears {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 36px;
  color: var(--ink);
  z-index: 2;
  pointer-events: none;
}

/* Torn paper / scissor-cut edge mask for special photos */
.photo-cutout {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><path d='M 0 4 L 8 0 L 16 5 L 24 1 L 32 4 L 40 0 L 48 3 L 56 1 L 64 4 L 72 0 L 80 5 L 88 2 L 96 0 L 100 4 L 100 96 L 96 100 L 88 97 L 80 100 L 72 96 L 64 100 L 56 97 L 48 100 L 40 96 L 32 100 L 24 97 L 16 100 L 8 96 L 0 100 Z' fill='black'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><path d='M 0 4 L 8 0 L 16 5 L 24 1 L 32 4 L 40 0 L 48 3 L 56 1 L 64 4 L 72 0 L 80 5 L 88 2 L 96 0 L 100 4 L 100 96 L 96 100 L 88 97 L 80 100 L 72 96 L 64 100 L 56 97 L 48 100 L 40 96 L 32 100 L 24 97 L 16 100 L 8 96 L 0 100 Z' fill='black'/></svg>");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

/* Section that holds decorations (parent needs relative + overflow tuning) */
.has-deco { position: relative; overflow: hidden; }
.has-deco > .container,
.has-deco > .container-narrow { position: relative; z-index: 2; }

/* Fact filter button hover (add transition smoothness) */
.fact-filter__btn {
  transition: background var(--t-hover), color var(--t-hover), transform var(--t-hover), box-shadow var(--t-hover-shadow);
}
.fact-filter__btn:hover {
  box-shadow: 4px 4px 0 rgba(28, 28, 23, 0.18);
}
