:root {
  --cream: #f3eadb;
  --cream-2: #e4d5bf;
  --ink: #17110f;
  --red: #e8442e;
  --red-dark: #b72c20;
  --muted: #6f6358;
  --line: rgba(23, 17, 15, 0.18);
  --shadow: 0 28px 80px rgba(23, 17, 15, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Manrope", Arial, sans-serif;
}

a {
  color: inherit;
}

/* ------------------------------------------------------------------
   Floating header: just the hamburger at top-right. No logo, no
   bar, no background — the header itself is invisible.
------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: clamp(14px, 2.6vw, 26px) clamp(18px, 4vw, 64px);
  background: transparent;
  border: 0;
  box-shadow: none;
  pointer-events: none; /* let clicks pass through the empty strip */
  animation: headerDropIn 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Hamburger: orange lines on a black chip — brand colors,
   always visible on light and dark sections alike.
   Lines keep the exact same X-morph animation as before. */
.menu-toggle {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 2px solid #ff8a2b;
  border-radius: 16px;
  background: var(--ink);
  box-shadow: 4px 4px 0 rgba(23, 17, 15, 0.35);
  cursor: pointer;
  flex-shrink: 0;
  pointer-events: auto;
  opacity: 0;
  animation: headerItemIn 700ms cubic-bezier(0.16, 1, 0.3, 1) 120ms forwards;
  transition:
    transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 240ms ease;
}

.menu-toggle:hover {
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 rgba(23, 17, 15, 0.35);
}

.menu-toggle:active {
  transform: scale(0.92);
}

/* Scroll progress readout, tucked under the menu button */
/* Scroll percentage badge — same 52px square, border and shadow as .menu-toggle */
.scroll-progress {
  position: absolute;
  top: calc(clamp(14px, 2.6vw, 26px) + 52px + 10px);
  right: clamp(18px, 4vw, 64px);
  z-index: 2;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 2px solid #ff8a2b;
  border-radius: 16px;
  background: var(--ink);
  box-shadow: 4px 4px 0 rgba(23, 17, 15, 0.35);
  pointer-events: none;
  /* hidden until the reader is 10% down the page */
  opacity: 0;
  transform: translateY(-6px) scale(0.9);
  transition:
    opacity 260ms ease,
    transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scroll-progress.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.scroll-progress-value {
  font-family: "Space Grotesk", "Manrope", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #ff8a2b;
  font-variant-numeric: tabular-nums;
}

.menu-toggle-lines {
  position: relative;
  display: block;
  width: 22px;
  height: 16px;
  margin: 0 auto;
}

.menu-toggle-lines span {
  position: absolute;
  left: 0;
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: #ff8a2b;
  transition:
    transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 220ms ease,
    top 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
    width 320ms ease;
}

.menu-toggle-lines span:nth-child(1) {
  top: 0;
}

.menu-toggle-lines span:nth-child(2) {
  top: 6.5px;
}

.menu-toggle-lines span:nth-child(3) {
  top: 13px;
  width: 14px;
}

/* Open state: morphs the three lines into an X (existing animation) */
.menu-toggle[aria-expanded="true"] .menu-toggle-lines span:nth-child(1) {
  top: 6.5px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines span:nth-child(3) {
  top: 6.5px;
  width: 22px;
  transform: rotate(-45deg);
}

/* Back to top — black & orange, matching the hamburger.
   Appears at the bottom-right once the page is scrolled. */
.to-top {
  position: fixed;
  right: clamp(18px, 4vw, 64px);
  bottom: clamp(18px, 3vw, 32px);
  z-index: 35;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 2px solid #ff8a2b;
  border-radius: 16px;
  background: var(--ink);
  box-shadow: 4px 4px 0 rgba(23, 17, 15, 0.35);
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition:
    opacity 280ms ease,
    transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background 220ms ease,
    box-shadow 220ms ease;
}

.to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.to-top:hover {
  background: #ff8a2b;
  box-shadow: 6px 6px 0 rgba(23, 17, 15, 0.35);
  transform: translateY(-2px);
}

.to-top:hover svg path {
  stroke: var(--ink);
}

.to-top:active {
  transform: scale(0.92);
}

.to-top svg {
  width: 22px;
  height: 22px;
}

.to-top svg path {
  transition: stroke 220ms ease;
}

/* Mobile / dropdown menu panel — now the only navigation, all sizes */
.mobile-nav {
  position: fixed;
  top: clamp(84px, 12vh, 100px);
  left: 0;
  right: 0;
  z-index: 30;
  padding: 14px clamp(18px, 4vw, 64px) 24px;
  pointer-events: none;
}

.mobile-nav.is-open {
  pointer-events: auto;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav.is-closing,
.mobile-nav.is-open {
  display: block;
}

.mobile-nav-panel {
  display: grid;
  gap: 10px;
  max-width: 640px;
  margin: 0 auto;
  padding: 18px;
  border: 3px solid var(--ink);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 138, 43, 0.22) 0 10px, transparent 11px),
    radial-gradient(circle at 88% 72%, rgba(23, 17, 15, 0.08) 0 8px, transparent 9px),
    #fff6ec;
  box-shadow: 10px 14px 0 var(--ink);
  transform: translateY(-18px) scale(0.96);
  opacity: 0;
  filter: blur(8px);
  transition:
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 320ms ease,
    filter 320ms ease;
  transform-origin: top center;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}

.mobile-nav.is-open .mobile-nav-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
  filter: blur(0);
}

.mobile-nav-panel a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 14px 18px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: #fff6ec;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--ink);
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px);
  transition:
    transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 280ms ease,
    background 220ms ease,
    color 220ms ease;
}

.mobile-nav.is-open .mobile-nav-panel a {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(80ms + (var(--i, 0) * 70ms));
}

.mobile-nav-panel a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 40%, rgba(255, 138, 43, 0.35) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 520ms ease;
}

.mobile-nav-panel a:hover,
.mobile-nav-panel a:focus-visible {
  background: var(--ink);
  color: #ff8a2b;
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 #ff8a2b;
  outline: none;
}

.mobile-nav-panel a:hover::before,
.mobile-nav-panel a:focus-visible::before {
  transform: translateX(120%);
}

.mobile-link-index {
  font-family: "Space Grotesk", "Manrope", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  opacity: 0.55;
}

.mobile-link-label {
  margin-left: auto;
  font-family: "Space Grotesk", "Manrope", Arial, sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
}

body.menu-open {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.48fr);
  gap: clamp(24px, 3.2vw, 46px);
  align-items: center;
  /* extra top padding so the floating logo never sits on the headline */
  padding: clamp(92px, 11vh, 140px) clamp(20px, 4vw, 64px) clamp(40px, 4vw, 60px);
  overflow: hidden;
}

.freckle-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 16%, var(--red) 0 8px, transparent 9px),
    radial-gradient(circle at 16% 78%, var(--red) 0 5px, transparent 6px),
    radial-gradient(circle at 48% 18%, var(--red) 0 4px, transparent 5px),
    radial-gradient(circle at 90% 14%, var(--red) 0 7px, transparent 8px),
    radial-gradient(circle at 80% 86%, var(--red) 0 5px, transparent 6px);
  opacity: 0.9;
}

/* Lotus rain — gentle drifting lotus flowers and petals, flat style
   with ink outlines. Sparse, slow, and non-interactive on purpose. */
.lotus-rain {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.lotus-item {
  position: absolute;
  top: -80px;
  left: var(--x, 50%);
  width: calc(26px * var(--s, 1));
  opacity: 0;
  animation: lotusFall var(--d, 14s) linear var(--delay, 0s) infinite;
}

.lotus-item svg {
  display: block;
  width: 100%;
  height: auto;
  animation: lotusSway var(--sw, 3.6s) ease-in-out infinite alternate;
}

.lotus-flower ellipse {
  fill: var(--petal, #ef9cb8);
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linejoin: round;
}

.lotus-flower circle {
  fill: #ff8a2b;
  stroke: var(--ink);
  stroke-width: 2;
}

.lotus-petal path {
  fill: var(--petal, #e8442e);
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linejoin: round;
}

@keyframes lotusFall {
  0% {
    top: -80px;
    opacity: 0;
    transform: rotate(0deg);
  }

  8% {
    opacity: var(--o, 0.5);
  }

  88% {
    opacity: var(--o, 0.5);
  }

  100% {
    top: calc(100% + 60px);
    opacity: 0;
    transform: rotate(220deg);
  }
}

@keyframes lotusSway {
  from {
    transform: translateX(-10px) rotate(-10deg);
  }

  to {
    transform: translateX(10px) rotate(10deg);
  }
}

.hero-copy-block,
.hero-visual,
.hero-bottom {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", "Manrope", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  /* fluid: 10vw keeps the headline inside its grid column at every width,
     22vh stops it eating the fold on short screens, 12rem caps it on wide ones */
  font-size: min(12rem, 10vw, 22vh);
  line-height: 0.78;
  text-transform: uppercase;
}

h2 {
  font-size: 6.5rem;
  line-height: 0.88;
}

.hero-visual {
  /* shrinks with the viewport on short screens so the art + headline + CTA
     still fit the fold; capped at the artwork's natural 540px */
  min-height: min(540px, 60vh);
}

.thinker-animation {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(520px, 100%);
  height: min(520px, 58vh);
  overflow: visible;
  cursor: pointer;
}

.thinker-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform-origin: center bottom;
  transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.idea-logo {
  position: absolute;
  top: 2px;
  right: 16px;
  z-index: 3;
  width: 150px;
  transform-origin: center;
  filter: drop-shadow(0 18px 34px rgba(23, 17, 15, 0.18));
  animation: ideaFloat 4s ease-in-out infinite alternate;
  transition: opacity 220ms ease, filter 220ms ease;
}

/* Thought-bubble trail — rising dots from the editor's head to the
   floating Tells logo, so the scene reads as "in his mind, it's tells". */
.thought-dots {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.thought-dots span {
  position: absolute;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  background: #fff6ec;
  box-shadow: 2px 2px 0 rgba(23, 17, 15, 0.22);
  animation: thoughtBob 4s ease-in-out infinite alternate;
}

.thought-dots span:nth-child(1) {
  left: 56%;
  top: 25%;
  width: 10px;
  height: 10px;
}

.thought-dots span:nth-child(2) {
  left: 65%;
  top: 16.5%;
  width: 14px;
  height: 14px;
  animation-delay: 350ms;
}

.thought-dots span:nth-child(3) {
  left: 73.5%;
  top: 9%;
  width: 18px;
  height: 18px;
  animation-delay: 700ms;
}

@keyframes thoughtBob {
  from {
    transform: translateY(0) scale(1);
    opacity: 0.95;
  }

  to {
    transform: translateY(-8px) scale(1.08);
    opacity: 0.65;
  }
}

/* When the editor is interrupted (hover reveals the HI badge),
   the thought trail pops away along with the logo. */
.thinker-animation:hover .thought-dots,
.thinker-animation:focus-within .thought-dots {
  opacity: 0;
}

.hello-badge {
  position: absolute;
  top: 252px;
  right: -6px;
  z-index: 5;
  display: grid;
  width: 86px;
  height: 58px;
  place-items: center;
  color: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 999px 999px 999px 8px;
  background: var(--red);
  box-shadow: 8px 8px 0 var(--ink);
  font-family: "Space Grotesk", "Manrope", Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  opacity: 0;
  transform: translateY(12px) scale(0.82) rotate(-8deg);
  transition: opacity 180ms ease, transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.thinker-animation:hover .hello-badge,
.thinker-animation:focus-within .hello-badge {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(-3deg);
  animation: helloPop 1.1s ease-in-out infinite alternate;
}

.thinker-animation:hover .thinker-svg,
.thinker-animation:focus-within .thinker-svg {
  transform: translateY(-12px) rotate(-1.5deg) scale(1.035);
}

.thinker-animation:hover .idea-logo,
.thinker-animation:focus-within .idea-logo {
  opacity: 0;
  filter: drop-shadow(0 26px 42px rgba(232, 68, 46, 0.32));
  animation-duration: 1.6s;
}

.thinker-animation:hover .spark-one,
.thinker-animation:hover .spark-two,
.thinker-animation:focus-within .spark-one,
.thinker-animation:focus-within .spark-two {
  animation-duration: 900ms;
}

.blob-bg {
  fill: #f8d3be;
  opacity: 0.62;
  animation: blobBreathe 8s ease-in-out infinite alternate;
}

.desk rect,
.screen,
.base {
  fill: var(--ink);
}

.torso {
  fill: var(--red);
  stroke: var(--ink);
  stroke-width: 7;
  stroke-linejoin: round;
}

.neck,
.head {
  fill: #de9368;
  stroke: var(--ink);
  stroke-width: 7;
  stroke-linejoin: round;
}

.ear {
  fill: #de9368;
  stroke: var(--ink);
  stroke-width: 5;
}

/* side-profile ear: a real drawn ear (helix + inner fold) rather than
   a plain circle, so the typing pose reads anatomically */
.ear-side {
  fill: #de9368;
  stroke: var(--ink);
  stroke-width: 5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.chair-back {
  fill: #2a211d;
  stroke: var(--ink);
  stroke-width: 6;
}

/* long shirt sleeves: thick ink outline under a red stroke */
.arm-ink {
  fill: none;
  stroke: var(--ink);
  stroke-width: 26;
  stroke-linecap: round;
}

.arm-sleeve {
  fill: none;
  stroke: var(--red);
  stroke-width: 15;
  stroke-linecap: round;
}

.hand,
.finger {
  fill: #de9368;
  stroke: var(--ink);
  stroke-linejoin: round;
}

.hand {
  stroke-width: 6;
}

.finger {
  stroke-width: 3.5;
}

/* glasses — translucent cream lenses, ink frames, tiny glints */
.glasses .lens {
  fill: #fff6ec;
  fill-opacity: 0.3;
  stroke: var(--ink);
  stroke-width: 4.5;
}

.frame-link,
.temple {
  fill: none;
  stroke: var(--ink);
  stroke-width: 4.5;
  stroke-linecap: round;
}

.lens-glint {
  fill: none;
  stroke: #fff6ec;
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0.8;
}

.nose {
  fill: none;
  stroke: var(--ink);
  stroke-width: 4;
  stroke-linecap: round;
}
/* side-profile nostril crease — softer than the ink outline so the
   nose reads as a form {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3.5;
  stroke-linecap: round;
  opacity: 0.45;
}

/* laptop details */
.screen-panel {
  fill: #4d4139;
}

.keys line {
  stroke: #fff6ec;
  stroke-width: 3.5;
  stroke-linecap: round;
  opacity: 0.45;
}

.hair,
.eye-left,
.eye-right {
  fill: var(--ink);
}
/* soft hairline crease inside the crop {
  fill: none;
  stroke: #3a2c26;
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0.5;
}

/* curl strokes inside the hair mass — lighter than the ink outline so
   the coils read as texture instead of extra hard edges */
.hair-curl {
  fill: none;
  stroke: #4a3a32;
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0.55;
}

.brow,
.mouth {
  fill: none;
  stroke: var(--ink);
  stroke-width: 4.5;
  stroke-linecap: round;
}

/* Head turn: side profile while typing; on hover it whips toward us —
   fast exit, springy arrival with a tiny nod, not a flat flip */
.head-side,
.head-front {
  transform-origin: 305px 210px;
}

.head-side {
  transition: transform 180ms cubic-bezier(0.55, 0, 0.55, 0.2), opacity 140ms ease;
}

/* the front-facing head reads slightly larger than the profile — it
   scales up from the jaw so the chin stays locked to the neck */
.head-front {
  transform-origin: 305px 246px;
  transform: scaleX(0) scaleY(1.12) rotate(-8deg);
  opacity: 0;
  transition:
    transform 300ms cubic-bezier(0.2, 0.9, 0.25, 1.3) 100ms,
    opacity 160ms ease 100ms;
}

.thinker-animation:hover .head-side,
.thinker-animation:focus-within .head-side {
  transform: scaleX(0);
  opacity: 0;
}

.thinker-animation:hover .head-front,
.thinker-animation:focus-within .head-front {
  transform: scale(1.12) rotate(0deg);
  opacity: 1;
}
/* sleeve cap: covers each arm root so the shoulder joint reads as
   a finished shirt sleeve {
  fill: var(--red);
  stroke: var(--ink);
  stroke-width: 6;
}

/* typing: both hands tap the keys in an alternating rhythm */
.typing-hand {
  transform-box: fill-box;
  animation: typeTap 0.34s ease-in-out infinite alternate;
}

.hand-front {
  animation-delay: 170ms;
}

/* far arm reads slightly darker for depth */
.hand.far,
.finger.far {
  fill: #cd8256;
}

.ear-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0.55;
}

/* sleeve cuff band at the wrist */
.cuff {
  fill: #fff6ec;
  stroke: var(--ink);
  stroke-width: 3.5;
  stroke-linejoin: round;
}

@keyframes typeTap {
  from {
    transform: translateY(-3px) rotate(-3deg);
  }

  to {
    transform: translateY(3px) rotate(2deg);
  }
}

/* hover: typing freezes, his head faces us, and his near hand
   rises above his head to wave hi */
.thinker-animation:hover .typing-hand,
.thinker-animation:focus-within .typing-hand {
  animation-play-state: paused;
}

.arm-front-group {
  transition: opacity 200ms ease, transform 260ms ease;
}

/* the far arm stops typing and settles into a relaxed rest on the desk
   as he turns to wave — it stays visible, it just stops working */
.arm-back-group {
  transform-origin: 298px 306px;
  transition: transform 320ms cubic-bezier(0.3, 0.7, 0.3, 1) 40ms;
}

.thinker-animation:hover .arm-back-group,
.thinker-animation:focus-within .arm-back-group {
  transform: translate(6px, 6px);
}

/* hover: the typing hand dips away... */
.thinker-animation:hover .arm-front-group,
.thinker-animation:focus-within .arm-front-group {
  opacity: 0;
  transform: translateY(8px);
}

/* ...and a purpose-drawn open palm springs up from his shoulder
   and waves — same swap pattern as the yoga blessing arm */
.arm-wave-group {
  transform-origin: 302px 300px;
  opacity: 0;
  transform: rotate(24deg);
  transition:
    opacity 160ms ease,
    transform 400ms cubic-bezier(0.2, 0.9, 0.3, 1.25);
}

.thinker-animation:hover .arm-wave-group,
.thinker-animation:focus-within .arm-wave-group {
  opacity: 1;
  transform: rotate(0deg);
  animation: waveSideHi 520ms ease-in-out 420ms infinite alternate;
}

/* the waving hand is one continuous silhouette (palm + fingers + thumb
   in a single path) so no seams or stray outlines show through */
.wave-part {
  fill: #de9368;
  stroke: var(--ink);
  stroke-width: 5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

@keyframes waveSideHi {
  from {
    transform: rotate(-10deg);
  }

  to {
    transform: rotate(8deg);
  }
}

.screen {
  fill: #2a211d;
  stroke: var(--ink);
  stroke-width: 5;
  stroke-linejoin: round;
}

.base {
  fill: var(--ink);
}

.spark-one,
.spark-two {
  fill: var(--red);
  stroke: var(--ink);
  stroke-width: 5;
  stroke-linejoin: round;
  transform-box: fill-box;
  transform-origin: center;
  animation: sparkTwinkle 2.8s ease-in-out infinite alternate;
}

.spark-two {
  animation-delay: 480ms;
}

.hero-bottom {
  grid-column: 1 / -1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: 1120px;
}

.hero-bottom p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 1.22rem;
  line-height: 1.65;
  font-weight: 700;
}

.round-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  color: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.round-button:hover {
  color: var(--ink);
  background: transparent;
  transform: translateY(-2px);
}

.round-button.dark {
  color: var(--ink);
  background: var(--cream);
}

.round-button.dark:hover {
  color: var(--cream);
  background: transparent;
}

.anti-section {
  padding: clamp(54px, 8vw, 110px) clamp(20px, 4vw, 64px);
  color: var(--cream);
  background: var(--ink);
}

.anti-copy {
  max-width: 1250px;
  margin: 0;
  font-family: "Space Grotesk", "Manrope", Arial, sans-serif;
  font-size: 6.4rem;
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: 0;
}

/* Typewriter effect — characters stay in place (invisible) so the
   headline never reflows, and appear one at a time. */
.type-word {
  display: inline-block; /* keeps each word atomic — no mid-word breaks */
  white-space: nowrap;
}

.type-char {
  opacity: 0;
}

.type-char.is-typed {
  opacity: 1;
}

/* Blinking orange block cursor that trails the typed letters */
.type-cursor {
  display: inline-block;
  width: 0.055em;
  min-width: 3px;
  height: 0.78em;
  margin-left: 0.04em;
  background: #ff8a2b;
  transform: translateY(0.1em);
  animation: typeCursorBlink 840ms ease-in-out infinite;
}

.type-cursor.is-hidden {
  animation: none;
  opacity: 0;
  transition: opacity 480ms ease;
}

@keyframes typeCursorBlink {
  0%, 45% {
    opacity: 1;
  }

  55%, 100% {
    opacity: 0;
  }
}

.statement-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.62fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: end;
  padding: clamp(70px, 9vw, 124px) clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.statement-section p:last-child {
  position: relative;
  z-index: 2;
  grid-column: 1;
  margin: 0;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.75;
  font-weight: 700;
}

/* Yoga figure — meditating woman in the "What we believe" section,
   drawn in the same style as the hero thinker (flat fills, thick
   ink outlines, peach blob, red/orange/cream palette). */
.yoga-figure {
  margin: 0;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: end;
  width: min(100%, 420px);
  z-index: 1;
  cursor: pointer;
  outline: none;
}

.yoga-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  transform-origin: center bottom;
  transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.yoga-figure:hover .yoga-svg {
  transform: translateY(-10px) rotate(-1.5deg) scale(1.02);
}

/* ----- Blessing mudra on hover / keyboard focus / tap ----- */
/* Symmetric in/out timings so eyes don't "drop" — same curve both directions. */

/* Closed (meditating) eyes and resting smile — softened out on hover (lifted by base transition rule below) */
.yoga-figure:hover .yoga-eye,
.yoga-figure:focus-within .yoga-eye,
.yoga-figure.is-blessing .yoga-eye {
  opacity: 0;
}
.yoga-figure:hover .yoga-smile,
.yoga-figure:focus-within .yoga-smile,
.yoga-figure.is-blessing .yoga-smile {
  opacity: 0;
}

/* Open eyes: scale vertically from closed (slits) → fully open like eyelids lifting.
   Each eye element scales around its own center for a clean "eyelid" open/close. */
.yoga-eyes-open > * {
  transform-box: fill-box;
  transform-origin: center;
}
.yoga-eyes-open {
  opacity: 0;
  transition: opacity 320ms cubic-bezier(0.2, 0.8, 0.2, 1) 120ms;
}
.yoga-eyes-open .yoga-eye-open-outline {
  transform: scaleY(0.08);
  transition: transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1) 100ms;
}
.yoga-eyes-open .yoga-eye-pupil {
  transform: scaleY(0.08);
  transition: transform 340ms cubic-bezier(0.2, 0.8, 0.2, 1) 140ms;
}
.yoga-eyes-open .yoga-eye-shine {
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 200ms ease 320ms, transform 260ms cubic-bezier(0.2,0.8,0.2,1) 300ms;
}
.yoga-eyes-open .yoga-eyebrow {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 260ms ease 160ms, transform 300ms cubic-bezier(0.2,0.8,0.2,1) 140ms;
}
.yoga-figure:hover .yoga-eyes-open,
.yoga-figure:focus-within .yoga-eyes-open,
.yoga-figure.is-blessing .yoga-eyes-open {
  opacity: 1;
}
.yoga-figure:hover .yoga-eyes-open .yoga-eye-open-outline,
.yoga-figure:focus-within .yoga-eyes-open .yoga-eye-open-outline,
.yoga-figure.is-blessing .yoga-eyes-open .yoga-eye-open-outline {
  transform: scaleY(1);
  transition: transform 380ms cubic-bezier(0.2, 0.8, 0.2, 1) 220ms;
}
.yoga-figure:hover .yoga-eyes-open .yoga-eye-pupil,
.yoga-figure:focus-within .yoga-eyes-open .yoga-eye-pupil,
.yoga-figure.is-blessing .yoga-eyes-open .yoga-eye-pupil {
  transform: scaleY(1);
  transition: transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1) 260ms;
}
.yoga-figure:hover .yoga-eyes-open .yoga-eye-shine,
.yoga-figure:focus-within .yoga-eyes-open .yoga-eye-shine,
.yoga-figure.is-blessing .yoga-eyes-open .yoga-eye-shine {
  opacity: 1;
  transform: scale(1);
  transition: opacity 220ms ease 520ms, transform 260ms cubic-bezier(0.2,0.8,0.2,1) 500ms;
}
.yoga-figure:hover .yoga-eyes-open .yoga-eyebrow,
.yoga-figure:focus-within .yoga-eyes-open .yoga-eyebrow,
.yoga-figure.is-blessing .yoga-eyes-open .yoga-eyebrow {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 260ms ease 300ms, transform 320ms cubic-bezier(0.2,0.8,0.2,1) 280ms;
}

/* Eye outlines (whites) are cream, pupils ink */
.yoga-eye-open-outline {
  fill: #fff6ec;
  stroke: var(--ink);
  stroke-width: 4;
}
.yoga-eye-pupil {
  fill: var(--ink);
}
.yoga-eyebrow {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3.5;
  stroke-linecap: round;
}
.yoga-eye-shine { pointer-events: none; }

/* Warmer, more open smile when blessing */
.yoga-smile-blessing {
  opacity: 0;
  transform: scale(0.6);
  transform-box: fill-box;
  transform-origin: center;
  transition:
    opacity 260ms ease 260ms,
    transform 300ms cubic-bezier(0.2,0.8,0.2,1) 260ms;
}
.yoga-figure:hover .yoga-smile-blessing,
.yoga-figure:focus-within .yoga-smile-blessing,
.yoga-figure.is-blessing .yoga-smile-blessing {
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 260ms ease 440ms,
    transform 300ms cubic-bezier(0.2,0.8,0.2,1) 440ms;
}

/* Resting (meditation) right arm/hand fades out as blessing arm fades in */
.yoga-arm-resting {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 280ms ease, transform 340ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.yoga-figure:hover .yoga-arm-resting,
.yoga-figure:focus-within .yoga-arm-resting,
.yoga-figure.is-blessing .yoga-arm-resting {
  opacity: 0;
  transform: translateY(4px);
}

/* Blessing arm group: fades in and lifts up from the lap for a graceful "raise" */
.yoga-blessing {
  opacity: 0;
  pointer-events: none;
  transform-origin: 240px 236px;
  transform: translateY(10px) rotate(-8deg);
  transition:
    opacity 320ms cubic-bezier(0.2, 0.8, 0.2, 1) 120ms,
    transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1) 100ms;
}
.yoga-figure:hover .yoga-blessing,
.yoga-figure:focus-within .yoga-blessing,
.yoga-figure.is-blessing .yoga-blessing {
  opacity: 1;
  transform: translateY(0) rotate(0);
  transition:
    opacity 280ms ease 220ms,
    transform 460ms cubic-bezier(0.2, 0.8, 0.2, 1) 180ms;
}

.yoga-blessing-arm-ink {
  stroke: var(--ink);
  stroke-width: 28;
  stroke-linecap: round;
  fill: none;
}
.yoga-blessing-arm {
  stroke: #de9368;
  stroke-width: 16;
  stroke-linecap: round;
  fill: none;
}

/* Hand: single outline+fill path now (outline is the stroke, fill is skin) */
.yoga-blessing-hand-outline {
  fill: #de9368;
  stroke: var(--ink);
  stroke-width: 6;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.yoga-blessing-finger-line {
  stroke: var(--ink);
  stroke-width: 1.8;
  stroke-linecap: round;
  fill: none;
  opacity: 0.45;
}
.yoga-blessing-knuckle {
  stroke-width: 1.4;
  opacity: 0.38;
}
.yoga-blessing-palm-line {
  stroke: var(--ink);
  stroke-width: 1.8;
  stroke-linecap: round;
  fill: none;
  opacity: 0.4;
}

/* Divine glow behind the raised hand (saffron halo) */
.yoga-blessing-glow {
  fill: #ff8a2b;
  opacity: 0;
  filter: blur(12px);
  transform-origin: 190px 156px;
  transform: scale(0.7);
  transition: opacity 320ms ease, transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.yoga-blessing-glow-ring {
  fill: none;
  stroke: #ffd300;
  stroke-width: 4;
  opacity: 0;
  transform-origin: 190px 156px;
  transform: scale(0.7);
  transition: opacity 320ms ease 120ms, transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1) 100ms;
}
.yoga-figure:hover .yoga-blessing-glow,
.yoga-figure:focus-within .yoga-blessing-glow,
.yoga-figure.is-blessing .yoga-blessing-glow {
  opacity: 0.5;
  transform: scale(1);
  animation: blessingGlowPulse 2.4s ease-in-out infinite 600ms;
  transition: opacity 360ms ease 240ms, transform 460ms cubic-bezier(0.2, 0.8, 0.2, 1) 220ms;
}
.yoga-figure:hover .yoga-blessing-glow-ring,
.yoga-figure:focus-within .yoga-blessing-glow-ring,
.yoga-figure.is-blessing .yoga-blessing-glow-ring {
  opacity: 0.7;
  transform: scale(1);
  animation: blessingGlowPulse 2.4s ease-in-out infinite 800ms;
  transition: opacity 360ms ease 300ms, transform 460ms cubic-bezier(0.2, 0.8, 0.2, 1) 280ms;
}
@keyframes blessingGlowPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50%      { transform: scale(1.12); opacity: 0.78; }
}

/* Rudraksha mala beads */
.yoga-mala-bead {
  fill: #c22b0c;
  stroke: var(--ink);
  stroke-width: 2;
}
.yoga-mala-bead-top {
  fill: #e64a19;
  stroke: var(--ink);
  stroke-width: 2;
}
.yoga-mala-guru {
  fill: #ff8a2b;
}

.yoga-blob {
  fill: #f8d3be;
  opacity: 0.62;
  animation: blobBreathe 8s ease-in-out infinite alternate;
}

.yoga-mat {
  fill: #ff8a2b;
  stroke: var(--ink);
  stroke-width: 7;
  stroke-linejoin: round;
}

.yoga-legs {
  fill: #fff6ec;
  stroke: var(--ink);
  stroke-width: 7;
  stroke-linejoin: round;
}

.yoga-foot {
  fill: #de9368;
  stroke: var(--ink);
  stroke-width: 5;
  stroke-linejoin: round;
}

.yoga-torso {
  fill: var(--red);
  stroke: var(--ink);
  stroke-width: 7;
  stroke-linejoin: round;
}

.yoga-neck,
.yoga-face {
  fill: #de9368;
  stroke: var(--ink);
  stroke-width: 7;
  stroke-linejoin: round;
}

.yoga-hair,
.yoga-bun {
  fill: var(--ink);
}

.yoga-tie {
  fill: #ff8a2b;
}

.yoga-eye,
.yoga-smile {
  fill: none;
  stroke: var(--ink);
  stroke-width: 5;
  stroke-linecap: round;
  opacity: 1;
  transition: opacity 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.yoga-bindi {
  fill: var(--red);
}

.yoga-arm-ink,
.yoga-shin-ink {
  stroke: var(--ink);
  stroke-linecap: round;
  fill: none;
}

.yoga-arm-ink {
  stroke-width: 28;
}

.yoga-arm {
  stroke: #de9368;
  stroke-width: 16;
  stroke-linecap: round;
  fill: none;
}

.yoga-shin-ink {
  stroke-width: 26;
}

.yoga-shin {
  stroke: #de9368;
  stroke-width: 15;
  stroke-linecap: round;
  fill: none;
}

.yoga-hand {
  fill: #de9368;
  stroke: var(--ink);
  stroke-width: 6;
  stroke-linejoin: round;
}

.yoga-toe-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.2;
  stroke-linecap: round;
  opacity: 0.45;
}

.yoga-finger-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.4;
  stroke-linecap: round;
  opacity: 0.5;
}

.yoga-body {
  transform-origin: 280px 450px;
  animation: yogaBreathe 4.6s ease-in-out infinite alternate;
}

.yoga-head {
  transform-origin: 280px 210px;
  animation: yogaSway 5.4s ease-in-out infinite alternate;
}

.yoga-spark {
  fill: var(--red);
  stroke: var(--ink);
  stroke-width: 5;
  stroke-linejoin: round;
  transform-box: fill-box;
  transform-origin: center;
  animation: sparkTwinkle 2.8s ease-in-out infinite alternate;
}

.yoga-figure:hover .yoga-spark {
  animation-duration: 900ms;
}

.yoga-dot {
  stroke: var(--ink);
  stroke-width: 4;
  transform-box: fill-box;
  transform-origin: center;
  animation: calmBounce 2.6s ease-in-out infinite;
}

.yoga-dot:nth-child(1) {
  fill: var(--red);
}

.yoga-dot:nth-child(2) {
  fill: #ff8a2b;
  animation-delay: 180ms;
}

.yoga-dot:nth-child(3) {
  fill: var(--cream);
  animation-delay: 360ms;
}

.yoga-badge {
  opacity: 0;
  transform: translateY(10px) scale(0.85) rotate(4deg);
  transform-origin: 436px 172px;
  transition:
    opacity 180ms ease,
    transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.yoga-figure:hover .yoga-badge,
.yoga-figure:focus-within .yoga-badge {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(2deg);
  animation: helloPop 1.1s ease-in-out infinite alternate;
}

.yoga-badge-shadow {
  fill: var(--ink);
}

.yoga-badge-bg {
  fill: #ff8a2b;
  stroke: var(--ink);
  stroke-width: 3;
}

.yoga-badge text {
  fill: var(--ink);
  font-family: "Space Grotesk", "Manrope", Arial, sans-serif;
  font-size: 26px;
  font-weight: 700;
}

@keyframes yogaBreathe {
  from {
    transform: scaleY(1);
  }

  to {
    transform: scaleY(1.018) translateY(-2px);
  }
}

@keyframes yogaSway {
  from {
    transform: rotate(-1.2deg);
  }

  to {
    transform: rotate(1.2deg);
  }
}

.statement-section > div:first-child:not(.lotus-rain) {
  position: relative;
  z-index: 2;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.stats-band div {
  padding: 28px clamp(20px, 4vw, 64px);
  border-right: 1px solid var(--line);
}

.stats-band div:last-child {
  border-right: 0;
}

.stats-band strong,
.stats-band span {
  display: block;
}

.stats-band strong {
  font-family: "Space Grotesk", "Manrope", Arial, sans-serif;
  font-size: 2.2rem;
  letter-spacing: 0;
}

.stats-band span {
  color: var(--muted);
  font-weight: 900;
}

/* Count-up stat — steady digit widths while 1 → 18 ticks, then a
   red "pop" when the number lands on 18. */
.stats-band strong {
  font-variant-numeric: tabular-nums;
}

.stats-band strong.count-finished {
  animation: statCountPop 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes statCountPop {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.22);
    color: var(--red);
  }

  100% {
    transform: scale(1);
  }
}

.goals-stage {
  position: relative;
  height: 430vh;
  color: var(--cream);
  background: var(--red);
}

.goal-pin {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  padding: clamp(70px, 8vw, 112px) clamp(20px, 4vw, 64px);
  overflow: hidden;
}

.goal-pin::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(23, 17, 15, 0.2) 0 10px, transparent 11px),
    radial-gradient(circle at 86% 22%, rgba(23, 17, 15, 0.18) 0 6px, transparent 7px),
    radial-gradient(circle at 72% 82%, rgba(23, 17, 15, 0.18) 0 9px, transparent 10px);
}

.goal-label,
.goal-deck {
  position: relative;
  z-index: 1;
}

.goal-label span,
.goal-card span {
  display: block;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.goal-label h2 {
  max-width: 520px;
}

.goal-deck,
.goal-card {
  min-height: min(65vh, 620px);
}

.goal-card {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  padding: clamp(28px, 5vw, 56px);
  color: var(--ink);
  background: var(--cream);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(80px) scale(0.9) rotate(2deg);
  transition: opacity 520ms ease, transform 760ms cubic-bezier(0.2, 0.8, 0.18, 1);
  pointer-events: none;
}

.goal-card.is-active {
  z-index: 3;
  opacity: 1;
  transform: translateY(0) scale(1) rotate(-1deg);
}

.goal-card.is-previous {
  z-index: 2;
  opacity: 0;
  transform: translateY(-90px) scale(0.9) rotate(-3deg);
}

.goal-card h3 {
  max-width: 760px;
  font-size: 5.2rem;
  line-height: 0.9;
}

.goal-card p {
  max-width: 620px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
  font-weight: 700;
}

.brands-section {
  padding: clamp(70px, 9vw, 124px) clamp(20px, 4vw, 64px);
  background: var(--cream-2);
}

.section-heading {
  margin-bottom: 28px;
}

.brand-tools {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.search-field {
  display: grid;
  width: min(360px, 100%);
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.search-field input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: var(--cream);
  font: inherit;
  outline: 0;
}

.search-field input:focus {
  box-shadow: 0 0 0 4px rgba(232, 68, 46, 0.18);
}

.filter-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  height: 40px;
  padding: 0 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 900;
  cursor: pointer;
}

.filter-button.active {
  color: var(--cream);
  background: var(--ink);
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.brand-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 250px;
  display: grid;
  align-content: end;
  gap: 12px;
  padding: 24px;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--cream);
  text-decoration: none;
  box-shadow: 8px 8px 0 var(--ink);
  transform: perspective(900px) rotateX(0) rotateY(0) translateY(0);
  transform-origin: center center;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 220ms ease, background 180ms ease, color 180ms ease;
}

.brand-card::before {
  content: "";
  position: absolute;
  inset: auto -18% -20% auto;
  z-index: -1;
  /* sized from the card itself so the reveal keeps the same proportion of
     ink visible at every card width (fixed px buried small cards in red) */
  width: 51%;
  aspect-ratio: 1;
  height: auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 32%, var(--cream) 0 4px, transparent 5px),
    radial-gradient(circle at 55% 48%, var(--cream) 0 4px, transparent 5px),
    radial-gradient(circle at 43% 66%, var(--cream) 0 3px, transparent 4px),
    var(--red);
  transform: scale(0.18);
  transform-origin: center;
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1), border-radius 420ms ease;
}

.brand-card::after {
  content: "OPEN DESK";
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  min-width: 82px;
  height: 34px;
  place-items: center;
  color: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  transform: translateY(-12px);
  opacity: 0;
  transition: opacity 180ms ease, transform 220ms ease;
}

.brand-card:hover,
.brand-card:focus-visible {
  z-index: 1;
  color: var(--cream);
  background: var(--ink);
  box-shadow: 14px 14px 0 var(--red);
  transform: perspective(900px) translateY(-16px) rotateX(7deg) rotateY(-10deg) rotateZ(-2deg);
}

.brand-card:nth-child(even):hover,
.brand-card:nth-child(even):focus-visible {
  box-shadow: -14px 14px 0 var(--red);
  transform: perspective(900px) translateY(-16px) rotateX(7deg) rotateY(10deg) rotateZ(2deg);
}

.brand-card:nth-child(3n):hover,
.brand-card:nth-child(3n):focus-visible {
  transform: perspective(900px) translateY(-17px) rotateX(8deg) rotateY(8deg) rotateZ(2.5deg);
}

.brand-card:hover::before,
.brand-card:focus-visible::before {
  border-radius: 30%;
  transform: scale(2.6) rotate(18deg);
}

.brand-card:hover::after,
.brand-card:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.brand-card:nth-child(3):hover,
.brand-card:nth-child(3):focus-visible {
  transform: perspective(900px) translateY(-18px) rotateX(8deg) rotateY(12deg) rotateZ(3deg);
  box-shadow: -14px 14px 0 var(--red);
}

.brand-card:nth-child(3)::after {
  content: "MATCH ON";
}

.brand-card:nth-child(3)::before {
  background:
    radial-gradient(circle at 34% 34%, var(--cream) 0 4px, transparent 5px),
    radial-gradient(circle at 54% 48%, var(--cream) 0 4px, transparent 5px),
    radial-gradient(circle at 44% 66%, var(--cream) 0 3px, transparent 4px),
    var(--red);
}

.brand-card:nth-child(5)::after {
  content: "SIGNAL";
}

.brand-card:nth-child(11)::after {
  content: "MARKET";
}

.brand-card:nth-child(18)::after {
  content: "BUILD";
}

.brand-card span {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-card:hover span,
.brand-card:focus-visible span {
  /* cream, not ink: the label often sits on the red blob at small card
     widths, where dark-on-red was unreadable */
  color: var(--cream);
}

.brand-card strong {
  font-family: "Space Grotesk", "Manrope", Arial, sans-serif;
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: 0;
}

.brand-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 700;
}

.brand-card:hover p,
.brand-card:focus-visible p {
  color: rgba(243, 234, 219, 0.84);
}

.brand-card.hidden {
  display: none;
}

.contact-section {
  position: relative;
  overflow: hidden;
  padding: clamp(70px, 10vw, 140px) clamp(20px, 4vw, 64px) 0;
  color: var(--cream);
  background: var(--ink);
}

.contact-head {
  position: relative;
  z-index: 1;
}

.contact-head h2 {
  max-width: 1050px;
  margin: 0;
}

/* Giant background stamp — on-brand big type, subtle */
.contact-backdrop {
  position: absolute;
  right: 0;
  top: clamp(96px, 14vw, 200px);
  z-index: 0;
  color: var(--cream);
  opacity: 0.08;
  font-family: "Space Grotesk", "Manrope", Arial, sans-serif;
  font-size: clamp(4.5rem, 13vw, 11rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transform: rotate(-4deg);
  transform-origin: top right;
  pointer-events: none;
  user-select: none;
}

/* Freckle dots — echoes the hero pattern, barely-there texture */
.contact-freckles {
  position: absolute;
  top: clamp(44px, 6vw, 84px);
  right: clamp(20px, 4vw, 64px);
  z-index: 0;
  width: 190px;
  height: 130px;
  background:
    radial-gradient(circle, var(--red) 0 6px, transparent 7px),
    radial-gradient(circle, var(--red) 0 4px, transparent 5px),
    radial-gradient(circle, var(--red) 0 3px, transparent 4px);
  background-position: 0 0, 58px 42px, 118px 12px;
  background-repeat: no-repeat;
  opacity: 0.3;
  pointer-events: none;
}

/* Purpose cards — cream, ink border, orange hard shadow */
.contact-cards {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: clamp(36px, 5vw, 56px) 0 clamp(34px, 4vw, 46px);
}

.contact-card {
  display: grid;
  gap: 10px;
  padding: 22px;
  color: var(--ink);
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 18px;
  box-shadow: 7px 7px 0 #ff8a2b;
  text-decoration: none;
  transition:
    transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 200ms ease,
    background 180ms ease,
    color 180ms ease;
}

.contact-card:hover,
.contact-card:focus-visible {
  color: var(--cream);
  background: var(--ink);
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 #ff8a2b;
  outline: none;
}

.contact-card-index {
  color: var(--red);
  font-family: "Space Grotesk", "Manrope", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.contact-card strong {
  font-family: "Space Grotesk", "Manrope", Arial, sans-serif;
  font-size: 1.3rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.contact-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.5;
}

.contact-card:hover .contact-card-index,
.contact-card:focus-visible .contact-card-index {
  color: #ff8a2b;
}

.contact-card:hover p,
.contact-card:focus-visible p {
  color: rgba(243, 234, 219, 0.75);
}

/* Closer row — email button + social chips */
.contact-closer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding-top: clamp(8px, 2vw, 20px);
}

/* Social chips — black squares, orange icons, same language as the
   hamburger and back-to-top buttons. */
.social-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-chip {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 2px solid #ff8a2b;
  border-radius: 14px;
  background: var(--ink);
  box-shadow: 4px 4px 0 rgba(23, 17, 15, 0.35);
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.social-chip svg {
  width: 22px;
  height: 22px;
  display: block;
  pointer-events: none;
}

.social-chip svg path {
  fill: #ff8a2b;
  transition: fill 200ms ease;
}

.social-chip:hover,
.social-chip:focus-visible {
  background-color: #ff8a2b;
  border-color: var(--ink);
  box-shadow: 6px 6px 0 rgba(23, 17, 15, 0.35);
  transform: translate(-2px, -2px);
  outline: none;
}

.social-chip:hover svg path,
.social-chip:focus-visible svg path {
  fill: var(--ink);
}

.social-chip:active {
  transform: translate(-1px, -1px) scale(0.94);
  box-shadow: 2px 2px 0 rgba(23, 17, 15, 0.35);
}

.contact-copy {
  display: block;
  position: relative;
  z-index: 1;
  margin-top: clamp(18px, 3vw, 30px);
  /* extra bottom space to clear the cat + back-to-top FABs
     so they never cover the copyright or social chips */
  padding-bottom: clamp(140px, 20vh, 180px);
  color: rgba(243, 234, 219, 0.6);
  font-size: 0.85rem;
  font-weight: 700;
}

.reveal-item {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.brand-card.reveal-item {
  transform: perspective(900px) translateY(36px) rotateX(0) rotateY(0);
}

.brand-card.reveal-item.is-visible {
  transform: perspective(900px) translateY(0) rotateX(0) rotateY(0);
}

.brand-card.reveal-item.is-visible:hover,
.brand-card.reveal-item.is-visible:focus-visible {
  transform: perspective(900px) translateY(-16px) rotateX(7deg) rotateY(-10deg) rotateZ(-2deg);
}

.brand-card.reveal-item.is-visible:nth-child(even):hover,
.brand-card.reveal-item.is-visible:nth-child(even):focus-visible {
  transform: perspective(900px) translateY(-16px) rotateX(7deg) rotateY(10deg) rotateZ(2deg);
}

.brand-card.reveal-item.is-visible:nth-child(3n):hover,
.brand-card.reveal-item.is-visible:nth-child(3n):focus-visible {
  transform: perspective(900px) translateY(-17px) rotateX(8deg) rotateY(8deg) rotateZ(2.5deg);
}

.brand-card.reveal-item.is-visible:nth-child(3):hover,
.brand-card.reveal-item.is-visible:nth-child(3):focus-visible {
  transform: perspective(900px) translateY(-18px) rotateX(8deg) rotateY(12deg) rotateZ(3deg);
}

@keyframes ideaFloat {
  from {
    transform: translateY(0) rotate(-5deg) scale(1);
  }

  to {
    transform: translateY(-16px) rotate(2deg) scale(1.035);
  }
}

@keyframes blobBreathe {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.035) translate(-4px, -6px);
  }
}

@keyframes sparkTwinkle {
  from {
    transform: scale(0.82) rotate(0deg);
    opacity: 0.58;
  }

  to {
    transform: scale(1.05) rotate(12deg);
    opacity: 1;
  }
}

@keyframes helloPop {
  from {
    transform: translateY(0) scale(1) rotate(-3deg);
  }

  to {
    transform: translateY(-7px) scale(1.04) rotate(2deg);
  }
}

@keyframes headerDropIn {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes headerItemIn {
  from {
    opacity: 0;
    transform: translateY(-14px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes calmBounce {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-12px) scale(1.06);
  }
}

@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;
  }

  .reveal-item,
  .menu-toggle {
    opacity: 1;
    transform: none;
  }

  .site-header {
    transform: none;
  }

  .mobile-nav-panel,
  .mobile-nav-panel a {
    filter: none;
    opacity: 1;
    transform: none;
  }

  .lotus-item,
  .lotus-item svg {
    animation: none !important;
    opacity: 0 !important;
  }
}

@media (max-width: 980px) {
  h1 {
    font-size: 7rem;
  }

  h2 {
    font-size: 4.3rem;
  }

  .anti-copy {
    font-size: 4.2rem;
  }

  .goal-card h3 {
    font-size: 3.8rem;
  }

  .hero,
  .statement-section,
  .goal-pin {
    grid-template-columns: 1fr;
  }

  .yoga-figure {
    grid-column: 1;
    grid-row: auto;
    justify-self: center;
    width: min(100%, 340px);
    margin: 0 auto;
  }

  .hero-visual {
    min-height: 420px;
  }

  /* single column: centre the art in its own row instead of letting the
     520px-tall absolute box ride up into the headline */
  .thinker-animation {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(460px, 100%);
    height: 420px;
    margin: 0 auto;
  }

  .hero-bottom,
  .brand-tools {
    align-items: flex-start;
    flex-direction: column;
  }

  .brands-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2.85rem;
  }

  .anti-copy {
    font-size: 2.7rem;
  }

  .goal-card h3 {
    font-size: 2.5rem;
  }

  .hero-bottom p,
  .statement-section p:last-child,
  .goal-card p {
    font-size: 1rem;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
  }

  .to-top {
    width: 44px;
    height: 44px;
  }

  /* menu button is 44px at this breakpoint, so match it */
  .scroll-progress {
    top: calc(clamp(14px, 2.6vw, 26px) + 44px + 10px);
    width: 44px;
    height: 44px;
  }

  .scroll-progress-value {
    font-size: 0.7rem;
  }

  .hero-visual {
    min-height: 330px;
  }

  .thinker-animation {
    right: 50%;
    width: 320px;
    height: 330px;
    transform: translateX(50%) scale(0.72);
    transform-origin: bottom center;
  }

  .idea-logo {
    width: 118px;
    right: 22px;
  }

  .stats-band,
  .brands-grid {
    grid-template-columns: 1fr;
  }

  .stats-band div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .goals-stage {
    height: 390vh;
  }

  .goal-deck,
  .goal-card {
    min-height: 440px;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .contact-backdrop {
    opacity: 0.055;
  }

  .social-chip {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .social-chip svg {
    width: 19px;
    height: 19px;
  }

}

/* ================================================================
   Cat Chatbot – fixed in bottom-right, DIRECTLY ABOVE the ↑ arrow.
   Circular FAB in the same black+orange language as the site's
   other action buttons (hamburger, back-to-top).
   ================================================================ */
#catChatbot {
  position: fixed;
  /* Align horizontally with .to-top arrow (52px wide). Cat is 56px,
     so shift 2px left to center on the arrow. */
  right: calc(clamp(18px, 4vw, 64px) - 2px);
  /* Sit above the arrow with enough clearance that the cat doesn't
     cover the social chips (Facebook, etc.) in the contact section.
     Arrow bottom + arrow height + gap (26px gives ~16px clearance
     above the chip row at desktop). */
  bottom: calc(clamp(18px, 3vw, 32px) + 52px + 26px);
  z-index: 9999;
  /* Container sized exactly to the button — panel & tooltip are
     absolutely positioned so they never push the button around. */
  width: 56px;
  height: 56px;
  pointer-events: none;
  font-family: "Manrope", Arial, sans-serif;
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  transition: opacity 280ms ease, transform 280ms cubic-bezier(0.2,0.8,0.2,1);
}
#catChatbot.cat-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Greeting bubble — absolutely positioned ABOVE the button,
   out of flow so it never affects the button's location. */
#catTooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  max-width: 220px;
  padding: 9px 14px;
  background: #fff6ec;
  color: var(--ink);
  border: 2.5px solid var(--ink);
  border-radius: 16px 16px 4px 16px;
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(6px) scale(0.9);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms cubic-bezier(0.2,0.8,0.2,1);
  white-space: normal;
}
#catTooltip.tooltip-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ----- Cat FAB button ----- */
#catBtn {
  position: absolute;
  inset: 0;
  width: 56px;
  height: 56px;
  padding: 0;
  display: block;
  border: 2px solid #ff8a2b;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 4px 4px 0 rgba(23,17,15,0.45);
  cursor: pointer;
  pointer-events: auto;
  outline: none;
  z-index: 2;
  transition: transform 200ms cubic-bezier(0.2,0.8,0.2,1),
              box-shadow 200ms ease, background 200ms ease;
}
#catBtn:hover {
  background: #ff8a2b;
  transform: translate(-1px,-2px);
  box-shadow: 6px 6px 0 rgba(23,17,15,0.45);
}
#catBtn:active { transform: scale(0.92); }
#catBtn:focus-visible { box-shadow: 0 0 0 4px rgba(255,138,43,0.35), 4px 4px 0 rgba(23,17,15,0.45); }

#catBtn svg.cat-btn-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  display: block;
  transition: transform 240ms cubic-bezier(0.2,0.8,0.2,1);
}
#catBtn:hover svg.cat-btn-svg { transform: rotate(-8deg) scale(1.05); }
#catBtn.cat-open svg.cat-btn-svg { transform: rotate(10deg) scale(0.9); }

/* Cat face drawing (simple, readable at small size) */
#catBtn .cat-face-circle { fill: #fff6ec; stroke: var(--ink); stroke-width: 3; }
#catBtn .cat-ear        { fill: #fff6ec; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
#catBtn .cat-ear-inner  { fill: #ef9cb8; stroke: none; }
#catBtn .cat-eye        { fill: var(--ink); }
#catBtn .cat-eye-shine  { fill: #fff; }
#catBtn .cat-blush      { fill: #ef9cb8; opacity: 0.5; }
#catBtn .cat-nose       { fill: #ef9cb8; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
#catBtn .cat-mouth      { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
#catBtn .cat-whisker    { stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; opacity: 0.7; }

/* Open/closed eyes for blinking */
#catBtn .cat-eye-closed {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.5;
  stroke-linecap: round;
  opacity: 0;
}
#catBtn.is-blinking .cat-eye,
#catBtn.is-blinking .cat-eye-shine { opacity: 0; }
#catBtn.is-blinking .cat-eye-closed { opacity: 1; }

/* Unread badge */
#catDot {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  border: 2px solid #fff6ec;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.3);
  opacity: 0;
  transform: scale(0);
  transition: opacity 200ms ease, transform 200ms cubic-bezier(0.2,0.8,0.2,1);
  z-index: 3;
}
#catDot.badge-visible {
  opacity: 1;
  transform: scale(1);
  animation: catDotBounce 500ms cubic-bezier(0.2,0.8,0.2,1);
}
@keyframes catDotBounce {
  0% { transform: scale(0); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* ----- Chat panel -----
   Absolutely positioned above the button (out of flow) so open/close
   and message growth never push the cat button off its anchor. */
#catPanel {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  width: 320px;
  max-width: calc(100vw - 36px);
  max-height: min(460px, calc(100vh - 160px));
  display: flex;
  flex-direction: column;
  background: #fff6ec;
  border: 3px solid var(--ink);
  border-radius: 22px;
  box-shadow: 8px 10px 0 var(--ink);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.95);
  transform-origin: bottom right;
  pointer-events: none;
  transition:
    opacity 260ms ease,
    transform 300ms cubic-bezier(0.2,0.8,0.2,1),
    visibility 0s linear 260ms;
}
#catPanel.panel-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  transition: opacity 260ms ease, transform 300ms cubic-bezier(0.2,0.8,0.2,1), visibility 0s;
}

.cat-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--ink);
  color: #fff6ec;
}
.cat-panel-avatar {
  position: relative;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid #ff8a2b;
  display: grid; place-items: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.cat-panel-status {
  position: absolute;
  right: -2px; bottom: -2px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #4ade80;
  border: 2px solid var(--ink);
}
.cat-panel-title strong {
  display: block;
  font-family: "Space Grotesk","Manrope",Arial,sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
}
.cat-panel-title small {
  color: rgba(255,246,236,0.6);
  font-size: 0.7rem;
  font-weight: 700;
}
#catClose {
  margin-left: auto;
  width: 30px; height: 30px;
  border: 2px solid rgba(255,246,236,0.3);
  border-radius: 8px;
  background: transparent;
  color: #fff6ec;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background 160ms, transform 160ms;
}
#catClose:hover { background: var(--red); border-color: var(--red); transform: rotate(90deg); }

.cat-panel-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--cream);
}
.cat-panel-messages::-webkit-scrollbar { width: 6px; }
.cat-panel-messages::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }

.cat-msg {
  display: flex;
  gap: 7px;
  align-items: flex-end;
  max-width: 85%;
  animation: catMsgIn 280ms cubic-bezier(0.2,0.8,0.2,1) both;
}
@keyframes catMsgIn {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.cat-msg-bot { align-self: flex-start; }
.cat-msg-user { align-self: flex-end; flex-direction: row-reverse; }

.cat-msg-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--ink);
  display: grid; place-items: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.cat-msg-user .cat-msg-avatar { background: #ff8a2b; }

.cat-msg-bubble {
  padding: 8px 12px;
  border: 2px solid var(--ink);
  border-radius: 13px 13px 13px 3px;
  background: #fff6ec;
  box-shadow: 2px 2px 0 var(--ink);
}
.cat-msg-user .cat-msg-bubble {
  background: var(--ink);
  color: #fff6ec;
  border-radius: 13px 13px 3px 13px;
  box-shadow: -2px 2px 0 var(--red);
}
.cat-msg-bubble p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  font-weight: 600;
}

/* Typing */
.cat-typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.cat-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: catTypingDot 1.1s ease-in-out infinite;
}
.cat-typing span:nth-child(2) { animation-delay: 0.15s; }
.cat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes catTypingDot {
  0%,60%,100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.cat-panel-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px;
  background: var(--cream);
  border-top: 2px solid var(--line);
}
.cat-panel-quick button {
  padding: 5px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff6ec;
  color: var(--ink);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 150ms, background 150ms, color 150ms;
}
.cat-panel-quick button:hover {
  background: var(--ink);
  color: #ff8a2b;
  transform: translateY(-2px);
}

.cat-panel-input {
  display: flex;
  gap: 6px;
  padding: 10px;
  background: #fff6ec;
  border-top: 2px solid var(--ink);
}
.cat-panel-input input {
  flex: 1;
  height: 36px;
  padding: 0 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  outline: none;
}
.cat-panel-input input:focus { box-shadow: 0 0 0 4px rgba(232,68,46,0.18); }
.cat-panel-input button[type="submit"] {
  width: 36px; height: 36px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--red);
  color: #fff6ec;
  cursor: pointer;
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: transform 150ms, background 150ms;
}
.cat-panel-input button[type="submit"]:hover { background: var(--ink); transform: scale(1.08) rotate(-8deg); }

/* Desktop (≥980px): base rule already positions the cat correctly */
@media (min-width: 980px) {
  #catChatbot {
    right: calc(clamp(18px, 4vw, 64px) - 2px);
    bottom: calc(clamp(18px, 3vw, 32px) + 52px + 26px);
    width: 56px;
    height: 56px;
  }
}

/* Mobile tweaks: arrow is 44×44, cat is 48×48 (centered by shifting
   2px left). Increase gap to 22px so the cat clears social chips. */
@media (max-width: 680px) {
  #catChatbot {
    right: calc(clamp(18px, 4vw, 64px) - 2px);
    bottom: calc(clamp(18px, 3vw, 32px) + 44px + 22px);
    width: 48px;
    height: 48px;
  }
  #catBtn { width: 48px; height: 48px; }
  #catPanel {
    width: min(320px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
    max-height: 60vh;
    right: 0;
  }
}
