/* ==========================================================================
   Maya Kalen — Maya Magic Portfolio
   Bright, cream + forest green + gold, built entirely from scratch: a
   floating pill header, a tilting spell-card hero, a constellation stat
   trio, a bento service grid with hand-drawn charm icons, an accordion
   ingredients list, a spellcasting path, a bookcase portfolio, and
   a single invitation-card contact block. Icons are custom line-art, not
   borrowed brand logos.
   ========================================================================== */

:root {
  color-scheme: light;

  /* Maya's palette: dark cocoa, terracotta, sand and sage */
  --cream: #f9efde;
  --cream-soft: #fdf9f3;
  --parchment: #f1d9b1;
  --green: #9fc088;
  --green-dark: #6f8f5c;
  --green-soft: #d4e2c9;
  --gold: #cc704b;
  --gold-dark: #935136;
  --gold-soft: #e8bfae;
  --sand: #e8c07d;
  --sand-dark: #a78a5a;
  --ink: #614124;
  --ink-soft: #8a6f52;
  --white: #ffffff;

  --green-rgb: 159, 192, 136;
  --gold-rgb: 204, 112, 75;
  --sand-rgb: 232, 192, 125;

  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 12px;

  --shadow-sm: 0 4px 16px rgba(97, 65, 36, 0.1);
  --shadow-md: 0 16px 36px rgba(97, 65, 36, 0.18);

  --font-display: "Fredoka", "Nunito Sans", sans-serif;
  --font-body: "Nunito Sans", sans-serif;
  --font-script: "Caveat", cursive;

  --header-h: 96px;

  /* Portfolio category accents, all drawn from the cocoa/terracotta/sand/sage family */
  --c-fullstack: #7a5a3a;
  --c-wordpress: var(--green);
  --c-woocommerce: var(--sand-dark);
  --c-shopify: var(--sand);
  --c-phpjs: #86a86e;
  --c-wix: #d99478;
  --c-webflow: var(--ink-soft);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; position: relative; overflow: hidden; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--gold-dark);
  margin-bottom: 0.6em;
}

.section-lede { max-width: 600px; font-size: 1.04rem; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }

.accent { color: var(--green); }
.script { font-family: var(--font-script); font-weight: 600; }

/* ---------- Icon symbols — hand-drawn, used via <svg class="icon"><use> ---------- */
.icon {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
.icon-lg { width: 34px; height: 34px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 19px 38px;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1.12rem;
  border: 2px solid transparent;
  cursor: none;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
@media (pointer: coarse) { .btn { cursor: pointer; } }
.btn:hover { transform: translateY(-4px) rotate(-0.5deg) scale(1.05); }

/* a light sweeps across primary/gold buttons on hover, like a little
   glint of magic catching the light */
.btn-primary::after, .btn-gold::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}
.btn-primary:hover::after, .btn-gold:hover::after { left: 130%; }

.btn-primary { background: var(--ink); color: var(--cream-soft); }
.btn-primary:hover { background: var(--gold-dark); box-shadow: var(--shadow-md); }

.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-dark); box-shadow: var(--shadow-md); }

.btn-outline { background: var(--cream-soft); border-color: var(--ink); color: var(--ink); border-width: 2.5px; }
.btn-outline:hover { background: var(--ink); color: var(--cream-soft); }

.btn-small { padding: 12px 24px; font-size: 0.95rem; }

/* a slow pulsing glow for the one or two buttons per page that should
   catch the eye before anyone even moves the mouse */
.btn-glow { animation: btnGlow 2.6s ease-in-out infinite; }
@keyframes btnGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--gold-rgb), 0.5), var(--shadow-sm); }
  50% { box-shadow: 0 0 0 12px rgba(var(--gold-rgb), 0), var(--shadow-md); }
}
@media (prefers-reduced-motion: reduce) { .btn-glow { animation: none; } }

/* buttons tagged .magnetic get nudged toward the cursor by JS when it's
   nearby; the transition here is what makes that nudge feel smooth, and
   also what snaps it back home on mouseleave */
.magnetic { transition: transform 0.15s ease-out, box-shadow 0.2s ease, background 0.2s ease; }

/* ==========================================================================
   Scroll progress — a sparkling trail across the very top of the page
   ========================================================================== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 4px;
  z-index: 400;
  pointer-events: none;
  background: rgba(58, 53, 44, 0.06);
}
.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--green), var(--gold));
  box-shadow: 0 0 10px rgba(var(--gold-rgb), 0.6);
  transition: width 0.08s linear;
}

/* ==========================================================================
   Magic wand cursor + trailing sparkle
   ========================================================================== */
@media (pointer: fine) {
  body, a, button, .nav-toggle, .btn, .accordion-head { cursor: none; }
  /* the header is the most important click target on the site, so it
     keeps the real OS pointer rather than the custom wand graphic —
     a hand-drawn cursor's visual tip is never pixel-perfect against the
     real click point, which is exactly the kind of thing that makes
     small nav links feel randomly unclickable */
  .site-header, .site-header * { cursor: pointer !important; }
  .site-header .brand-name, .site-header .brand-role { cursor: pointer !important; }
}
.magic-cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 9999;
  font-size: 26px;
  line-height: 1;
  pointer-events: none;
  will-change: transform;
  filter: drop-shadow(0 0 6px rgba(231, 143, 46, 0.5));
}
.magic-star {
  position: fixed;
  top: 0; left: 0;
  z-index: 9998;
  font-size: var(--size, 12px);
  pointer-events: none;
  opacity: 1;
  color: var(--star-color, var(--gold));
  animation: starFade 0.9s ease-out forwards;
  will-change: transform, opacity;
}
@keyframes starFade {
  0% { opacity: 1; transform: translate(0, 0) scale(1) rotate(0deg); }
  100% { opacity: 0; transform: translate(var(--dx, 0px), var(--dy, -30px)) scale(0.35) rotate(90deg); }
}
/* localized sparkle burst spawned on card/button hover, absolutely
   positioned within the nearest .sparkle-host rather than fixed to viewport */
.hover-spark {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  font-size: var(--size, 11px);
  color: var(--spark-color, var(--gold));
  animation: sparkPop 0.7s ease-out forwards;
}
@keyframes sparkPop {
  0% { opacity: 1; transform: translate(0, 0) scale(0.6) rotate(0deg); }
  40% { opacity: 1; transform: translate(calc(var(--dx, 0px) * 0.5), calc(var(--dy, -18px) * 0.5)) scale(1) rotate(30deg); }
  100% { opacity: 0; transform: translate(var(--dx, 0px), var(--dy, -18px)) scale(0.5) rotate(70deg); }
}
.sparkle-host { position: relative; }

/* ==========================================================================
   Header — a floating pill, not an edge-to-edge bar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 14px;
  z-index: 100;
  padding: 0 16px;
}
.header-inner {
  height: 68px;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255, 253, 246, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(58, 53, 44, 0.08);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  padding: 0 12px 0 12px;
}

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; padding: 6px 10px; border-radius: 999px; transition: transform 0.2s ease; }
.brand:hover { transform: scale(1.03); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; position: relative; }
.brand-name::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.brand:hover .brand-name::after { width: 100%; }
.brand-role { font-size: 0.62rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--gold-dark); font-weight: 700; }

/* nav takes the remaining space between the brand and the CTA and spreads
   its links evenly across it, rather than clustering to one side */
.site-nav { display: flex; align-items: center; justify-content: space-evenly; gap: 8px; flex: 1; padding: 0 10px; min-width: 0; }
.nav-link {
  font-weight: 600;
  font-size: 0.94rem;
  white-space: nowrap;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 3px;
  background: var(--gold);
  border-radius: 3px;
}

.header-cta { margin-left: 8px; }

.nav-toggle {
  appearance: none; -webkit-appearance: none;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  background: var(--green-soft);
  border: 2px solid transparent;
  border-radius: 50%;
  cursor: none;
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
@media (pointer: coarse) { .nav-toggle { cursor: pointer; } }
.nav-toggle span { margin: 0 auto; width: 20px; }
.nav-toggle:hover { transform: scale(1.08); border-color: var(--gold); }
.nav-toggle:active { transform: scale(0.94); }
.nav-toggle span { height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Ambient decoration — soft blobs + a wider cast of drifting magical props
   ========================================================================== */
.blob-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); animation: blobPulse 13s ease-in-out infinite; will-change: transform; }
.blob.blob-green { background: radial-gradient(circle, rgba(var(--green-rgb), 0.35), rgba(var(--green-rgb), 0) 70%); }
.blob.blob-tan { background: radial-gradient(circle, rgba(var(--gold-rgb), 0.4), rgba(var(--gold-rgb), 0) 70%); }
@keyframes blobPulse {
  0%, 100% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.2) translate(16px, -14px); }
}
@media (max-width: 640px) { .blob-layer { display: none; } }

@keyframes drift {
  0% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(8px, -16px) rotate(6deg); }
  66% { transform: translate(-9px, -6px) rotate(-5deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes driftSlow {
  0% { transform: translate(0, 0) rotate(-4deg); }
  50% { transform: translate(-14px, 12px) rotate(4deg); }
  100% { transform: translate(0, 0) rotate(-4deg); }
}
.floaties { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.floaty {
  position: absolute;
  opacity: 0.9;
  animation-name: drift;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  will-change: transform;
  filter: drop-shadow(0 6px 10px rgba(58, 53, 44, 0.12));
}
.floaty.alt { animation-name: driftSlow; }
.floaty.spark { font-size: 1.5rem; color: var(--gold); }
.floaty.spark.small { font-size: 1.05rem; }
.floaty.prop { font-size: 2.1rem; }
.floaty.prop.lg { font-size: 2.8rem; }
.floaty.ring-shape { width: 66px; height: 66px; border-radius: 50%; border: 3px dashed var(--gold-soft); }
.floaty.dot-shape { width: 13px; height: 13px; border-radius: 50%; background: var(--green-soft); }
@media (max-width: 760px) { .floaties { display: none; } }

.container { position: relative; z-index: 1; }

/* ==========================================================================
   Hero — a scattered "spell card" collage that tilts toward the cursor
   ========================================================================== */
.hero { padding-top: 56px; padding-bottom: 70px; }

/* compact hero used at the top of each internal page (Services, Toolkit,
   Process, Portfolio, Contact) — same ambient decoration, far less height */
.page-hero { padding-top: 48px; padding-bottom: 16px; text-align: center; }
.page-hero .eyebrow { display: block; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.page-hero .hero-tagline { justify-content: center; }
.page-hero .hero-text { margin: 0 auto; }

/* one steady rhythm under every page title: ~64px to the first content */
.page-hero + section { padding-top: 48px; }
.skill-ribbon + section { padding-top: 72px; }
@media (max-width: 640px) {
  .hero { padding-bottom: 60px; }
  .page-hero { padding-bottom: 16px; }
  .constellation-section { padding: 60px 0; }
  .skill-ribbon + section { padding-top: 60px; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 50px;
  align-items: center;
}

.hero-tagline { font-family: var(--font-script); font-size: 1.9rem; color: var(--gold-dark); margin: 4px 0 18px; }
.hero-text { max-width: 540px; font-size: 1.06rem; }

.charm-row {
  position: relative;
  display: flex;
  gap: 26px;
  margin: 32px 0 30px;
  padding-top: 14px;
}
.charm-row::before {
  content: "";
  position: absolute;
  top: 0; left: 6px; right: 6px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold-soft) 0 8px, transparent 8px 14px);
}
.charm { display: flex; flex-direction: column; align-items: center; text-align: center; }
.charm-badge { width: 20px; height: 20px; border-radius: 50%; background: var(--gold); margin-top: -23px; margin-bottom: 10px; box-shadow: 0 0 0 4px var(--cream); }
.charm-num { font-family: var(--font-display); font-weight: 600; font-size: 1.7rem; color: var(--green-dark); line-height: 1; }
.charm-label { font-size: 0.78rem; color: var(--ink-soft); font-weight: 700; margin-top: 4px; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---- card collage: four skill cards orbiting a glowing, pulsing magic
   core inside two slowly-spinning halo rings, each card gently bobbing
   on its own rhythm and the whole scene tilting toward the cursor ---- */
.collage { position: relative; width: 100%; max-width: 420px; margin: 0 auto; perspective: 1000px; }

.collage-halo {
  position: absolute;
  inset: -9%;
  border-radius: 50%;
  border: 2px dashed var(--gold-soft);
  z-index: 0;
  pointer-events: none;
  animation: haloSpin 28s linear infinite;
}
.collage-halo.inner { inset: -3%; border-color: var(--green-soft); animation-duration: 20s; animation-direction: reverse; }
@keyframes haloSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .collage-halo { animation: none; } }

.collage-lines { position: absolute; inset: 6%; z-index: 0; pointer-events: none; }
.collage-lines svg { width: 100%; height: 100%; }

.collage-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 78px; height: 78px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  border: 4px solid var(--cream-soft);
  box-shadow: var(--shadow-md);
  z-index: 5;
  animation: coreGlowPulse 3s ease-in-out infinite;
}
@keyframes coreGlowPulse {
  0%, 100% { box-shadow: var(--shadow-md), 0 0 0 0 rgba(var(--gold-rgb), 0.4); }
  50% { box-shadow: var(--shadow-md), 0 0 0 14px rgba(var(--gold-rgb), 0); }
}
@media (prefers-reduced-motion: reduce) { .collage-core { animation: none; } }

.collage-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  transition: transform 0.2s ease-out;
  transform-style: preserve-3d;
}

.spell-card-float { animation: cardFloat 4.6s ease-in-out infinite; }
.collage-grid > .spell-card-float:nth-child(1) { animation-delay: 0s; }
.collage-grid > .spell-card-float:nth-child(2) { animation-delay: 0.35s; }
.collage-grid > .spell-card-float:nth-child(3) { animation-delay: 0.7s; }
.collage-grid > .spell-card-float:nth-child(4) { animation-delay: 1.05s; }
@keyframes cardFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (prefers-reduced-motion: reduce) { .spell-card-float { animation: none; } }

.spell-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  transition: transform 0.25s cubic-bezier(.22,1,.36,1), box-shadow 0.25s ease;
}
.spell-card:hover { transform: translateY(-6px) scale(1.06) rotate(-2deg); box-shadow: var(--shadow-md); }
.spell-card-float:nth-child(1) .spell-card { background: var(--green-soft); }
.spell-card-float:nth-child(3) .spell-card { background: var(--gold-soft); }

.spell-card .card-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.65); margin-bottom: 10px; color: var(--ink); }
.spell-card h3 { font-size: 0.98rem; margin-bottom: 2px; }
.spell-card p { font-size: 0.78rem; margin: 0; color: var(--ink-soft); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .collage { max-width: 380px; }
}
@media (max-width: 480px) {
  .collage-grid { gap: 14px; }
  .spell-card { padding: 14px; }
  .collage-core { width: 60px; height: 60px; font-size: 1.5rem; }
  .charm-row { gap: 16px; }
}

/* ==========================================================================
   Constellation stats — three uniform, glowing orbs that grow on hover
   ========================================================================== */
.constellation-section {
  padding: 70px 0;
  background: radial-gradient(ellipse at 50% 0%, var(--gold-soft) 0%, var(--parchment) 65%);
  position: relative;
  overflow: hidden;
}

.constellation { position: relative; display: flex; justify-content: center; align-items: center; gap: 0; max-width: 760px; margin: 0 auto; }
.const-line { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.const-node { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.const-circle {
  --ring-color: var(--green);
  width: 132px; height: 132px;
  border-radius: 50%;
  background: var(--cream-soft);
  border: 3px solid var(--ring-color);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
  transition: transform 0.3s cubic-bezier(.22,1,.36,1), box-shadow 0.3s ease;
  cursor: none;
}
@media (pointer: coarse) { .const-circle { cursor: pointer; } }
.const-node:nth-child(1) .const-circle { --ring-color: var(--gold); }
.const-node:nth-child(2) .const-circle { --ring-color: var(--green); }
.const-node:nth-child(3) .const-circle { --ring-color: var(--sand-dark); }
.const-node:hover .const-circle {
  transform: scale(1.14) rotate(-4deg);
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--ring-color) 18%, transparent), var(--shadow-md);
}
.const-num { font-family: var(--font-display); font-weight: 600; font-size: 2rem; color: var(--ink); line-height: 1; }
.const-label { font-size: 0.82rem; font-weight: 700; color: var(--ink-soft); max-width: 120px; }

.constellation-caption { text-align: center; margin: 34px 0 0; font-size: 0.92rem; color: var(--ink-soft); position: relative; z-index: 1; }
.constellation-caption strong { color: var(--gold-dark); }

@media (max-width: 640px) {
  .constellation { flex-direction: column; gap: 28px; }
  .const-line { display: none; }
  .const-circle { width: 128px; height: 128px; }
}

/* ==========================================================================
   Testimonials — real client video clips, proof after the numbers
   ========================================================================== */
.testimonial-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 36px; }
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(.22,1,.36,1), box-shadow 0.3s ease;
}
.testimonial-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: var(--shadow-md); }
.testimonial-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--ink);
}
.testimonial-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.testimonial-info { padding: 16px 10px 8px; text-align: center; }
.testimonial-quote-mark { font-family: var(--font-script); font-size: 1.6rem; color: var(--gold-dark); line-height: 1; display: block; margin-bottom: 4px; }
.testimonial-name { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; margin: 0 0 2px; }
.testimonial-role { font-size: 0.78rem; font-weight: 800; color: var(--gold-dark); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.testimonial-note { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 0; }

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

/* ==========================================================================
   Services: skills ribbon + AI and Search spotlight
   ========================================================================== */
.skill-ribbon {
  position: relative;
  z-index: 2;
  margin: 56px 0 0;
  padding: 14px 0;
  background: var(--ink);
  transform: skewY(-1.2deg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.skill-ribbon-track {
  display: flex;
  align-items: center;
  gap: 22px;
  width: max-content;
  animation: ribbonScroll 38s linear infinite;
}
.skill-ribbon:hover .skill-ribbon-track { animation-play-state: paused; }
.skill-ribbon span {
  display: inline-block;
  transform: skewY(1.2deg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--cream-soft);
  white-space: nowrap;
}
.skill-ribbon i { display: inline-block; transform: skewY(1.2deg); font-style: normal; color: var(--sand); font-size: 0.95rem; }
@keyframes ribbonScroll { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 11px)); } }

.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  align-items: stretch;
}
.spotlight-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 32px 30px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(380px 220px at 85% 0%, rgba(var(--green-rgb), 0.22), transparent),
    radial-gradient(1.5px 1.5px at 18% 22%, rgba(255, 248, 234, 0.8), transparent),
    radial-gradient(1.5px 1.5px at 72% 64%, rgba(255, 248, 234, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 40% 88%, rgba(255, 248, 234, 0.5), transparent),
    var(--ink);
  color: var(--cream-soft);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.spotlight-card--search {
  background:
    radial-gradient(380px 220px at 85% 0%, rgba(var(--gold-rgb), 0.3), transparent),
    radial-gradient(1.5px 1.5px at 22% 30%, rgba(255, 248, 234, 0.8), transparent),
    radial-gradient(1.5px 1.5px at 66% 76%, rgba(255, 248, 234, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 88% 46%, rgba(255, 248, 234, 0.5), transparent),
    var(--ink);
}
.spotlight-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(97, 65, 36, 0.28); }
.spotlight-card p { color: rgba(255, 248, 234, 0.78); }
.spotlight-card h3 { color: var(--cream-soft); font-size: 1.45rem; margin: 0; }

.spotlight-badge {
  position: absolute;
  top: 20px; right: 22px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(var(--sand-rgb), 0.16);
  border: 1px solid rgba(var(--sand-rgb), 0.45);
  color: var(--sand);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.spotlight-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; padding-right: 110px; }
.spotlight-icon {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 60px;
  border-radius: 18px;
  background: var(--green);
  color: var(--ink);
  transform: rotate(-6deg);
  transition: transform 0.3s ease;
}
.spotlight-card--search .spotlight-icon { background: var(--sand); }
.spotlight-card:hover .spotlight-icon { transform: rotate(4deg) scale(1.06); }
.spotlight-icon .icon { width: 32px; height: 32px; }
.spotlight-sub { margin: 2px 0 0; font-family: var(--font-script); font-size: 1.3rem; color: var(--sand) !important; }

.spotlight-demo {
  margin: 0 0 22px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 248, 234, 0.07);
  border: 1px dashed rgba(var(--sand-rgb), 0.35);
}

/* little automation pipeline with a spark travelling along it */
.flow-demo { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.flow-node {
  flex-shrink: 0;
  padding: 7px 11px;
  border-radius: 12px;
  background: var(--cream-soft);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}
.flow-node--ai { background: var(--green); animation: aiGlow 2.4s ease-in-out infinite; }
@keyframes aiGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(var(--green-rgb), 0.6); } 50% { box-shadow: 0 0 0 7px rgba(var(--green-rgb), 0); } }
.flow-link { position: relative; flex: 1; min-width: 14px; height: 2px; background: rgba(var(--sand-rgb), 0.35); border-radius: 2px; }
.flow-link::after {
  content: "";
  position: absolute; top: 50%; left: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sand);
  box-shadow: 0 0 8px var(--sand);
  translate: -50% -50%;
  opacity: 0;
  animation: flowSpark 2.4s linear infinite;
}
.flow-link:nth-of-type(4)::after { animation-delay: 0.8s; }
.flow-link:nth-of-type(6)::after { animation-delay: 1.6s; }
@keyframes flowSpark { 0% { left: 0; opacity: 0; } 5% { opacity: 1; } 30% { left: 100%; opacity: 1; } 34%, 100% { left: 100%; opacity: 0; } }

/* a pretend AI answer box that types itself out */
.answer-demo p { margin: 0; }
.answer-q { font-weight: 700; color: var(--cream-soft) !important; font-size: 0.92rem; margin-bottom: 10px !important; }
.answer-a { font-size: 0.9rem; line-height: 1.55; min-height: 4.7em; }
.answer-label {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--cream-soft);
  font-size: 0.7rem;
  font-weight: 800;
  vertical-align: 1px;
}
.answer-caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; background: var(--sand); vertical-align: -2px; animation: caretBlink 0.9s steps(1) infinite; }
@keyframes caretBlink { 50% { opacity: 0; } }

.spotlight-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 9px; }
.spotlight-list li { position: relative; padding-left: 24px; font-size: 0.95rem; color: rgba(255, 248, 234, 0.9); }
.spotlight-list li::before { content: "✦"; position: absolute; left: 0; top: 0; color: var(--green); }
.spotlight-card--search .spotlight-list li::before { color: var(--sand); }

.spotlight-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 18px; border-top: 1px dashed rgba(var(--sand-rgb), 0.3); }
.spotlight-tools span {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 248, 234, 0.08);
  color: var(--cream-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

@media (max-width: 900px) {
  .spotlight-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .skill-ribbon { margin-top: 44px; }
  .skill-ribbon span { font-size: 1rem; }
  .spotlight-card { padding: 28px 22px 24px; }
  .spotlight-badge { position: static; align-self: flex-start; margin-bottom: 16px; }
  .spotlight-head { padding-right: 0; }
  .spotlight-card h3 { font-size: 1.25rem; }
  .flow-node { padding: 6px 9px; font-size: 0.74rem; }
  .flow-emoji { display: none; }
  .flow-demo { gap: 4px; padding: 14px 12px; }
  .flow-link { min-width: 10px; }
}
.flow-emoji { font-style: normal; }
@media (prefers-reduced-motion: reduce) {
  .skill-ribbon-track { animation: none; }
  .flow-node--ai, .flow-link::after, .answer-caret { animation: none; }
}

/* ==========================================================================
   Services — bento grid with hand-drawn charm icons
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(150px, auto);
  grid-auto-flow: dense;
  gap: 20px;
  margin-top: 20px;
}
.bento-card {
  grid-column: span 2;
  position: relative;
  min-height: 250px;
  perspective: 1400px;
  cursor: none;
  transition: transform 0.25s ease;
}
@media (pointer: coarse) { .bento-card { cursor: pointer; } }
.bento-card:hover { transform: translateY(-8px) scale(1.02); }
.bento-card--lg { grid-column: span 3; grid-row: span 2; }

.bento-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(.22, 1, .36, 1);
  transform-style: preserve-3d;
}
.bento-card.flipped .bento-card-inner { transform: rotateY(180deg); }

.bento-card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(97, 65, 36, 0.08);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.bento-card--lg .bento-card-front { background: var(--green-soft); justify-content: flex-start; }
.bento-card--gold .bento-card-front { background: var(--gold-soft); }

.bento-card-back {
  transform: rotateY(180deg);
  background: var(--ink);
  align-items: flex-start;
  justify-content: center;
}
.flip-fact { font-family: var(--font-script); font-size: 1.85rem; line-height: 1.35; color: var(--sand); margin: 0; }
.bento-card--lg .flip-fact { font-size: 2.2rem; }

.flip-hint {
  position: absolute;
  bottom: 14px;
  right: 18px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink-soft);
  opacity: 0.55;
}

.bento-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--white);
  color: var(--green-dark);
  margin-bottom: 14px;
  transition: transform 0.3s ease;
}
.bento-card:hover .bento-icon { transform: rotate(-10deg) scale(1.08); }
.bento-card--lg .bento-icon { width: 66px; height: 66px; }
.bento-card--lg .bento-icon .icon { width: 34px; height: 34px; }
.bento-card h3 { margin-bottom: 8px; }
.bento-card p { margin-bottom: 0; font-size: 0.94rem; }

/* the front face sits in normal flow so a card always grows to fit its
   copy; only the back face is layered on top for the flip */
.bento-card-front { position: relative; min-height: 100%; }
.bento-icon { flex-shrink: 0; }
.bento-card:not(.bento-card--lg):not(.bento-card--gold) .bento-icon { background: var(--green-soft); }
.bento-card-front p { padding-bottom: 18px; }

@media (max-width: 900px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-card { grid-column: span 1; }
  .bento-card--lg { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 560px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card--lg { grid-column: span 1; }
}

/* ==========================================================================
   Toolkit — a cabinet you actually open, revealing light, simple shelves
   ========================================================================== */
/* overflow must not be "hidden" on this section, or the cauldron cannot stick */
.tools { overflow: clip; }
.ingredients-wrap { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 40px; align-items: start; }

/* ---- the cauldron: visitors drop ingredients in and send the recipe ---- */
.cauldron-card {
  position: sticky;
  top: 120px;
  text-align: center;
  padding: 28px 24px 24px;
  background: var(--green-soft);
  border-radius: var(--radius-lg);
}
.cauldron-card .eyebrow { margin-bottom: 10px; }
.cauldron-card h3 { margin-bottom: 6px; }
.cauldron-hint { font-size: 0.9rem; margin-bottom: 14px; }

.cauldron-pot { position: relative; width: 132px; height: 116px; margin: 4px auto 14px; }
.pot-body {
  position: absolute; left: 6px; right: 6px; bottom: 10px; height: 74px;
  border-radius: 46% 46% 50% 50% / 30% 30% 70% 70%;
  background: radial-gradient(circle at 32% 30%, #8a6a4a, var(--ink) 60%);
  box-shadow: inset -8px -8px 0 rgba(0, 0, 0, 0.12);
}
.pot-rim {
  position: absolute; left: 0; right: 0; top: 30px; z-index: 2; height: 22px;
  border-radius: 50%;
  background: var(--ink);
  border: 4px solid var(--sand-dark);
  overflow: hidden;
}
.pot-brew {
  position: absolute; inset: 3px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 calc(4px + var(--fill, 0) * 3px) rgba(var(--green-rgb), 0.9);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.cauldron-card.has-picks .pot-brew { background: linear-gradient(90deg, var(--green), var(--sand), var(--gold)); }
.pot-legs::before, .pot-legs::after {
  content: ""; position: absolute; bottom: 2px; width: 12px; height: 14px;
  border-radius: 0 0 6px 6px; background: var(--ink);
}
.pot-legs::before { left: 28px; }
.pot-legs::after { right: 28px; }

.pot-bubbles i, .pot-steam i { position: absolute; display: block; border-radius: 50%; }
.pot-bubbles i {
  z-index: 3; bottom: 76px;
  width: 10px; height: 10px;
  background: var(--green);
  opacity: 0;
  animation: potBubble 2.4s ease-in infinite;
}
.pot-bubbles i:nth-child(1) { left: 40px; }
.pot-bubbles i:nth-child(2) { left: 62px; width: 7px; height: 7px; animation-delay: 0.6s; background: var(--sand); }
.pot-bubbles i:nth-child(3) { left: 82px; animation-delay: 1.2s; }
.pot-bubbles i:nth-child(4) { left: 54px; width: 6px; height: 6px; animation-delay: 1.8s; background: var(--gold); }
@keyframes potBubble { 0% { transform: translateY(0) scale(0.6); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-46px) scale(1.1); opacity: 0; } }
.cauldron-pot.splash .pot-bubbles i { animation-duration: 0.9s; }
.cauldron-pot.splash { animation: potWobble 0.5s ease; }
@keyframes potWobble { 25% { transform: rotate(-5deg); } 60% { transform: rotate(4deg); } }

.cauldron-picks { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.cauldron-picks:empty { display: none; }
.cauldron-picks button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  border: 0; border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: 700 0.76rem var(--font-body);
  cursor: pointer;
  animation: pickPop 0.35s cubic-bezier(.22,1,.36,1);
}
.cauldron-picks button:hover { background: var(--gold-soft); }
.cauldron-picks button span { color: var(--gold-dark); font-size: 0.9rem; line-height: 1; }
@keyframes pickPop { from { transform: scale(0.5); opacity: 0; } to { transform: none; opacity: 1; } }

.cauldron-actions { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cauldron-send[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.cauldron-clear {
  border: 0; background: none; padding: 2px 4px;
  font: 700 0.78rem var(--font-body);
  color: var(--ink-soft);
  text-decoration: underline;
  cursor: pointer;
}
.cauldron-stats { margin: 16px 0 0; padding-top: 14px; border-top: 2px dashed rgba(97, 65, 36, 0.2); font-size: 0.84rem; }
.cauldron-stats strong { color: var(--gold-dark); }

@media (prefers-reduced-motion: reduce) {
  .pot-bubbles i { animation: none; opacity: 0; }
  .cauldron-pot.splash { animation: none; }
}

/* ---- the cabinet: click the closed doors to swing them open ---- */
.cabinet { position: relative; perspective: 1800px; border-radius: var(--radius-lg); }
.cabinet-doors {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: opacity 0.5s ease 0.55s, visibility 0s 1.05s;
}
.cabinet.open .cabinet-doors { opacity: 0; visibility: hidden; pointer-events: none; }

.cabinet-door {
  position: relative;
  width: 50%;
  height: 100%;
  box-sizing: border-box;
  background: linear-gradient(160deg, var(--sand) 0%, var(--sand-dark) 100%);
  border: 1px solid rgba(97, 65, 36, 0.25);
  cursor: none;
  transform-style: preserve-3d;
  transition: transform 0.85s cubic-bezier(.6, -0.15, .3, 1.15);
}
@media (pointer: coarse) { .cabinet-door { cursor: pointer; } }
.cabinet-door-left { transform-origin: left center; border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.cabinet-door-right { transform-origin: right center; border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.cabinet.open .cabinet-door-left { transform: rotateY(-108deg); }
.cabinet.open .cabinet-door-right { transform: rotateY(108deg); }

.cabinet-knob {
  position: absolute;
  top: 50%;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
  transform: translateY(-50%);
}
.cabinet-door-left .cabinet-knob { right: 18px; }
.cabinet-door-right .cabinet-knob { left: 18px; }

.cabinet-prompt {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  pointer-events: none;
}
.cabinet-prompt-icon { font-size: 2.1rem; animation: cabinetPromptBounce 1.6s ease-in-out infinite; }
@keyframes cabinetPromptBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@media (prefers-reduced-motion: reduce) { .cabinet-prompt-icon { animation: none; } }

/* ---- the shelves of jars, revealed once the doors open ---- */
.accordion {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.accordion-item { border-bottom: 1px dashed rgba(97, 65, 36, 0.16); }
.accordion-item:last-child { border-bottom: none; }

.accordion-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: none;
  border: none;
  text-align: left;
  font: inherit;
}
.accordion-head > .icon:first-child {
  color: var(--ink);
  flex-shrink: 0;
  width: 40px; height: 40px;
  padding: 8px;
  box-sizing: border-box;
  background: var(--white);
  border: 3px solid var(--sand-dark);
  border-radius: 50%;
  transition: transform 0.3s ease;
}
.accordion-head h3 { margin: 0; flex: 1; font-size: 1rem; }
.accordion-chevron {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--parchment);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.3s ease;
}
.accordion-chevron .icon { width: 12px; height: 12px; color: var(--gold-dark); }
.accordion-item.open .accordion-chevron { transform: rotate(180deg); background: var(--gold-soft); }
.accordion-item.open .accordion-head > .icon:first-child { transform: rotate(-8deg) scale(1.1); border-color: var(--gold); }

.accordion-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s ease; }
.accordion-item.open .accordion-panel { grid-template-rows: 1fr; }
.accordion-panel-inner { overflow: hidden; }
.accordion-body { position: relative; padding: 0 22px 22px 62px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  background: var(--cream-soft);
  color: var(--green-dark);
  border: 1px solid rgba(63, 125, 92, 0.28);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.chip:hover { transform: translateY(-2px) rotate(-1deg); background: var(--green-soft); }

/* toolkit chips are buttons: tap one to drop it into the cauldron */
button.chip { font-family: var(--font-body); cursor: pointer; }
button.chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
button.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream-soft);
}
button.chip[aria-pressed="true"]::before { content: "✦"; margin-right: 6px; color: var(--sand); }

.accordion-item--fresh .accordion-head { background: linear-gradient(90deg, rgba(var(--sand-rgb), 0.18), transparent 70%); }
.shelf-badge {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--sand);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: freshGlow 2.6s ease-in-out infinite;
}
@keyframes freshGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(var(--sand-rgb), 0.55); } 50% { box-shadow: 0 0 0 6px rgba(var(--sand-rgb), 0); } }
@media (prefers-reduced-motion: reduce) { .shelf-badge { animation: none; } }

@media (max-width: 800px) {
  .ingredients-wrap { grid-template-columns: 1fr; gap: 28px; }
  .cauldron-card { position: static; order: 2; }
  .accordion-body { padding-left: 22px; }
}

/* ==========================================================================
   Process: a trail through four little worlds. The trail is drawn by script
   from the real badge positions, so it always meets every stop exactly.
   ========================================================================== */
.journey { position: relative; margin-top: 44px; }
.journey-line {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}
.journey-glow {
  fill: none;
  stroke: rgba(var(--gold-rgb), 0.25);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.8s cubic-bezier(.45, 0, .2, 1);
}
.journey-trail {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3.5;
  stroke-dasharray: 1 13;
  stroke-linecap: round;
}
.journey-spark {
  position: absolute;
  top: 0; left: 0;
  z-index: 1;
  width: 14px; height: 14px;

  border-radius: 50%;
  background: var(--sand);
  box-shadow: 0 0 0 4px rgba(var(--sand-rgb), 0.3), 0 0 14px 4px rgba(var(--gold-rgb), 0.55);
  offset-rotate: 0deg;
  opacity: 0;
  pointer-events: none;
}
.journey.is-drawn .journey-spark { opacity: 1; animation: journeySpark 7s ease-in-out infinite; }
@keyframes journeySpark {
  0% { offset-distance: 0%; opacity: 0; }
  6% { opacity: 1; }
  88% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

.journey-stops {
  position: relative;
  z-index: 2;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}
.journey-stop { display: flex; flex-direction: column; align-items: center; text-align: center; }
/* every other stop sits lower, so the trail winds up and down */
.journey-stop:nth-child(even) { margin-top: 78px; }

.journey-badge {
  display: flex; align-items: center; justify-content: center;
  width: 78px; height: 78px;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid var(--stop-color);
  font-size: 2.1rem;
  box-shadow: 0 0 0 8px var(--parchment), var(--shadow-md);
  transition: transform 0.35s cubic-bezier(.22,1,.36,1), box-shadow 0.35s ease;
}
.journey-stop:hover .journey-badge {
  transform: scale(1.12) rotate(-8deg);
  box-shadow: 0 0 0 8px var(--parchment), 0 0 0 16px color-mix(in srgb, var(--stop-color) 22%, transparent), var(--shadow-md);
}
.journey-num {
  margin: 16px 0 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.journey-world {
  margin: 0 0 14px;
  font-family: var(--font-script);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
  color: color-mix(in srgb, var(--stop-color) 55%, var(--ink)) !important;
}
.journey-card {
  width: 100%;
  padding: 20px 20px 18px;
  border-radius: var(--radius-md);
  background: var(--white);
  border-top: 4px solid var(--stop-color);
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.journey-stop:hover .journey-card { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.journey-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.journey-card > p { font-size: 0.9rem; margin-bottom: 12px; }
.journey-list { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px dashed rgba(97, 65, 36, 0.18); display: grid; gap: 6px; }
.journey-list li { position: relative; padding-left: 20px; font-size: 0.84rem; font-weight: 600; color: var(--ink); }
.journey-list li::before { content: "✦"; position: absolute; left: 0; top: 0; font-size: 0.8rem; color: var(--stop-color); }

.process-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 56px; }

/* tablets and phones: one clear vertical trail, badges on the left */
@media (max-width: 960px) {
  .journey { max-width: 620px; margin-left: auto; margin-right: auto; }
  .journey-stops { grid-template-columns: 1fr; gap: 34px; }
  .journey-stop,
  .journey-stop:nth-child(even) {
    margin-top: 0;
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    column-gap: 20px;
    align-items: start;
    text-align: left;
  }
  .journey-badge { grid-row: 1 / span 3; }
  .journey-num { margin-top: 6px; }
  .journey-world { margin-bottom: 10px; }
  .journey-card { grid-column: 2; }
}
@media (max-width: 480px) {
  .journey-stop,
  .journey-stop:nth-child(even) { grid-template-columns: 58px minmax(0, 1fr); column-gap: 14px; }
  .journey-badge { width: 58px; height: 58px; font-size: 1.6rem; border-width: 3px; box-shadow: 0 0 0 6px var(--parchment), var(--shadow-sm); }
  .journey-card { padding: 16px 16px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .journey-glow { transition: none; }
  .journey.is-drawn .journey-spark { animation: none; opacity: 0; }
}

/* ==========================================================================
   Portfolio: a wooden bookcase, one compartment per platform, books for projects
   ========================================================================== */
.portfolio-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}
.portfolio-stats span {
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.portfolio-stats strong { font-family: var(--font-display); font-size: 1.05rem; color: var(--gold-dark); margin-right: 2px; }

/* every platform gets one colour, shared by its shelf plaque and its books */
[data-cat="fullstack"] { --cat: var(--c-fullstack); }
[data-cat="wordpress"] { --cat: var(--c-wordpress); }
[data-cat="woocommerce"] { --cat: var(--c-woocommerce); }
[data-cat="shopify"] { --cat: var(--c-shopify); }
[data-cat="phpjs"] { --cat: var(--c-phpjs); }
[data-cat="wix"] { --cat: var(--c-wix); }
[data-cat="webflow"] { --cat: var(--c-webflow); }
[data-cat="ghl"] { --cat: var(--gold); }

.shelf-hint { text-align: center; font-size: 1.02rem; font-weight: 600; margin: 0 auto 26px; }
.hint-tap, .hint-slide { display: none; }
@media (pointer: coarse) { .hint-hover { display: none; } .hint-tap { display: inline; } }

.bookcase {
  padding: 0 18px 20px;
  border-radius: 26px 26px 16px 16px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #7a5634, var(--ink));
  box-shadow: var(--shadow-md), inset 0 2px 0 rgba(255, 255, 255, 0.12);
}
.bookcase-crown {
  padding: 14px 0 12px;
  text-align: center;
  font-family: var(--font-script);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sand);
}
.bookcase-inner {
  padding: 0;
  border-radius: 12px;
  background:
    repeating-linear-gradient(90deg, rgba(97, 65, 36, 0.05) 0 1px, transparent 1px 26px),
    linear-gradient(180deg, #ecd3a6, var(--parchment));
  box-shadow: inset 0 10px 24px rgba(97, 65, 36, 0.25);
}

/* each tier is a row of compartments; a compartment's width follows its
   book count, so every tier is filled from wall to wall */
.shelf-tier { display: flex; }
.shelf {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: var(--n) 1 0;
  min-width: 0;
  padding: 18px 16px 0;
}
.shelf + .shelf {
  border-left: 12px solid #8a6440;
  box-shadow: inset 6px 0 10px -6px rgba(97, 65, 36, 0.45);
}
.shelf-plaque {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  padding: 7px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--sand) !important;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.18);
}
.shelf-plaque span { font-size: 0.82rem; opacity: 0.85; }
.shelf-plaque em {
  font-style: normal;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--cat);
  color: var(--ink);
  font-size: 0.8rem;
}

.shelf-row {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  min-height: 240px;
  padding-top: 30px;
}
/* a little curio perched in the top corner of every compartment */
.shelf::after {
  position: absolute;
  top: 14px; right: 14px;
  font-size: 1.7rem;
  line-height: 1;
  filter: drop-shadow(0 4px 3px rgba(97, 65, 36, 0.3));
}
.shelf[data-cat="wordpress"]::after { content: "🔮"; }
.shelf[data-cat="shopify"]::after { content: "🧪"; }
.shelf[data-cat="woocommerce"]::after { content: "🕯️"; }
.shelf[data-cat="phpjs"]::after { content: "🪴"; }
.shelf[data-cat="fullstack"]::after { content: "🗝️"; }
.shelf[data-cat="wix"]::after { content: "🦉"; }
.shelf[data-cat="ghl"]::after { content: "⏳"; }
.shelf[data-cat="webflow"]::after { content: "🪶"; }

.shelf-plank {
  position: relative;
  z-index: 1;
  height: 16px;
  margin: 0 -16px;
  background: linear-gradient(180deg, #b4925f, var(--sand-dark) 45%, #7d6440);
  box-shadow: 0 10px 14px -8px rgba(97, 65, 36, 0.6);
}
/* run the plank under the divider so each tier reads as one long shelf */
.shelf + .shelf .shelf-plank { margin-left: -28px; }

.book {
  --book-bg: var(--ink);
  --book-ink: var(--sand);
  position: relative;
  flex: var(--g, 1) 1 0;
  min-width: 0;
  max-width: 128px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: var(--h);
  padding: 22px 0 12px;
  border-radius: 6px 6px 3px 3px;
  /* the coloured headband ties each book back to its platform */
  border-top: 7px solid var(--cat);
  background: var(--book-bg);
  color: var(--book-ink);
  box-shadow:
    inset -6px 0 0 rgba(0, 0, 0, 0.1),
    inset 4px 0 0 rgba(255, 255, 255, 0.18),
    0 3px 6px rgba(97, 65, 36, 0.25);
  transform-origin: bottom center;
  transition: transform 0.3s cubic-bezier(.22,1,.36,1), box-shadow 0.3s ease;
}
/* six cloth-bound spines from the brand palette, each paired for contrast */
.book.p1, .book-cover.p1 { --book-bg: var(--ink); --book-ink: var(--sand); }
.book.p2, .book-cover.p2 { --book-bg: var(--gold-dark); --book-ink: var(--cream-soft); }
.book.p3, .book-cover.p3 { --book-bg: var(--green); --book-ink: var(--ink); }
.book.p4, .book-cover.p4 { --book-bg: var(--sand); --book-ink: var(--ink); }
.book.p5, .book-cover.p5 { --book-bg: #55734a; --book-ink: var(--cream-soft); }
.book.p6, .book-cover.p6 { --book-bg: var(--cream-soft); --book-ink: var(--ink); }

/* decorative bands across the spine, drawn in the spine's own text colour */
.book::before,
.book::after {
  content: "";
  position: absolute;
  left: 8px; right: 10px;
  height: 5px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.4;
}
.book::before { top: 8px; }
.book::after { bottom: 36px; }
.book.p6::before, .book.p6::after { color: var(--gold); opacity: 0.8; }

.book-title {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  max-height: calc(var(--h) - 82px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}
.book.long .book-title { font-size: 0.92rem; }
.book-mono { font-size: 0.82rem; font-weight: 800; letter-spacing: 0.08em; }
/* the address lives on the book for the cover to read; the cover shows it */
.book-tag { display: none; }
.book:hover, .book:focus-visible { transform: translateY(-18px) rotate(-2deg); box-shadow: inset -6px 0 0 rgba(0, 0, 0, 0.1), inset 4px 0 0 rgba(255, 255, 255, 0.18), 0 16px 22px rgba(97, 65, 36, 0.32); z-index: 2; }
.book:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
/* once a book is pulled out, its slot on the shelf fades like an empty gap */
.book.is-out { opacity: 0.28; transform: translateY(-6px); box-shadow: none; }

/* ---- the pulled-out book: it turns to show its front cover ---- */
.book-cover {
  --cat: var(--gold);
  position: fixed;
  top: 0; left: 0;
  z-index: 260;
  width: 260px;
  height: 344px;
  color: var(--book-ink);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform-origin: left center;
  transform: perspective(1000px) rotateY(-82deg) scale(0.55);
  transition: transform 0.5s cubic-bezier(.2, 1.25, .35, 1), opacity 0.25s ease, visibility 0s 0.5s;
}
.book-cover.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: perspective(1000px) rotateY(0deg) scale(1);
  transition: transform 0.55s cubic-bezier(.2, 1.25, .35, 1), opacity 0.2s ease, visibility 0s;
}
.cover-face {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 34px 26px 26px 36px;
  border-radius: 6px 18px 18px 6px;
  border-top: 8px solid var(--cat);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.22) 0 14px, rgba(255, 255, 255, 0.12) 14px 17px, transparent 17px),
    radial-gradient(260px 200px at 70% 0%, rgba(255, 255, 255, 0.18), transparent),
    var(--book-bg);
  /* page edges peeking out on the right, then the drop shadow */
  box-shadow:
    5px 3px 0 -1px var(--cream-soft),
    9px 6px 0 -2px var(--parchment),
    0 26px 50px rgba(97, 65, 36, 0.45);
  text-align: center;
}
/* a gilded frame inside the cover */
.cover-face::before {
  content: "";
  position: absolute;
  inset: 12px 12px 12px 26px;
  border: 2px solid currentColor;
  border-radius: 4px 12px 12px 4px;
  opacity: 0.35;
  pointer-events: none;
}
.cover-face::after {
  content: "✦";
  position: absolute;
  top: 18px; right: 22px;
  font-size: 0.9rem;
  opacity: 0.7;
}
.cover-platform {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: inherit !important;
  opacity: 0.85;
}
.cover-emblem {
  display: flex; align-items: center; justify-content: center;
  width: 70px; height: 70px;
  border-radius: 50%;
  border: 2px solid currentColor;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  box-shadow: inset 0 0 0 5px var(--book-bg), inset 0 0 0 7px rgba(255, 255, 255, 0.25);
}
.cover-title {
  margin: 4px 0 0;
  font-size: 1.45rem;
  line-height: 1.2;
  color: inherit;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cover-host {
  margin: 0;
  max-width: 100%;
  font-size: 0.82rem;
  font-weight: 700;
  color: inherit !important;
  opacity: 0.8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cover-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--book-ink);
  color: var(--book-bg);
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 6px 14px rgba(97, 65, 36, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cover-cta:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 10px 20px rgba(97, 65, 36, 0.35); }
.cover-cta span { transition: transform 0.25s ease; }
.cover-cta:hover span { transform: translate(2px, -2px); }

.cover-close {
  position: absolute;
  top: -14px; right: -14px;
  z-index: 2;
  display: none;
  width: 36px; height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1;
  box-shadow: var(--shadow-md);
  cursor: pointer;
}
.book-cover.is-modal .cover-close { display: block; }
.cover-backdrop {
  position: fixed;
  inset: 0;
  z-index: 255;
  background: rgba(97, 65, 36, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s 0.3s;
}
.cover-backdrop.open { opacity: 1; visibility: visible; transition: opacity 0.3s ease, visibility 0s; }

@media (prefers-reduced-motion: reduce) {
  .book-cover, .book-cover.open { transform: none; transition: opacity 0.2s ease, visibility 0s; }
}

/* small laptops and tablets: slimmer walls and gaps keep the books chunky */
@media (max-width: 900px) {
  .shelf { padding: 16px 10px 0; }
  .shelf-row { gap: 3px; }
  .shelf-plank { margin: 0 -10px; }
  .shelf + .shelf .shelf-plank { margin-left: -22px; }
  .shelf-plaque { font-size: 0.9rem; padding: 6px 11px; }
  .shelf::after { font-size: 1.35rem; top: 12px; right: 10px; }
}
/* phones: compartments stack into single shelves that slide sideways */
@media (max-width: 640px) {
  .hint-slide { display: inline; }
  .shelf-tier { display: block; }
  .shelf + .shelf { border-left: 0; box-shadow: none; }
  .shelf + .shelf .shelf-plank { margin-left: -16px; }
  .shelf-row { overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
  .shelf-row::-webkit-scrollbar { display: none; }
  /* short shelves let their books widen until the shelf is full; long ones slide */
  .book { flex: 1 0 var(--w); max-width: min(140px, max(92px, calc((100vw - 80px - (var(--n) - 1) * 3px) / var(--n)))); scroll-snap-align: start; }
}
@media (max-width: 640px) {
  .bookcase { padding: 0 10px 14px; border-radius: 20px 20px 12px 12px; }
  .bookcase-crown { font-size: 1.25rem; }
  .shelf { padding: 16px 12px 0; }
  .shelf-plank, .shelf + .shelf .shelf-plank { margin: 0 -12px; }
}

/* ==========================================================================
   Contact — a single centered invitation card with a wax seal
   ========================================================================== */
.invite-wrap { display: flex; justify-content: center; }
.invite-card {
  position: relative;
  max-width: 620px;
  width: 100%;
  background: var(--white);
  border: 2px dashed rgba(63, 125, 92, 0.35);
  border-radius: var(--radius-lg);
  padding: 56px 44px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.wax-seal {
  width: 74px; height: 74px;
  margin: -92px auto 22px;
  border-radius: 50%;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--cream);
  transition: transform 0.3s ease;
}
.wax-seal:hover { transform: rotate(-14deg) scale(1.06); }
.invite-card h2 { color: var(--green-dark); }
.invite-lede { max-width: 460px; margin: 0 auto 28px; }

.contact-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cream);
  border: 1.5px solid rgba(58, 53, 44, 0.12);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.2s ease, background 0.2s ease;
}
.contact-pill:hover { transform: translateY(-2px) rotate(-1deg); background: var(--green-soft); }

@media (max-width: 560px) {
  .invite-card { padding: 46px 24px; }
  .wax-seal { margin-top: -84px; }
}

/* ==========================================================================
   Wish widget — a small, playful interactive toy on the Contact page
   ========================================================================== */
.wish-widget {
  margin-top: 40px;
  padding-top: 34px;
  border-top: 2px dashed rgba(58, 53, 44, 0.15);
}
.wish-widget h3 { margin-bottom: 6px; }
.wish-widget p { font-size: 0.92rem; margin-bottom: 18px; }
.wish-form { display: flex; flex-direction: column; gap: 10px; align-items: stretch; max-width: 420px; margin: 0 auto; }
.wish-input {
  flex: none;
  width: 100%;
  height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 2px solid rgba(58, 53, 44, 0.16);
  background: var(--cream-soft);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  cursor: text;
  box-sizing: border-box;
}
.wish-input:focus { outline: none; border-color: var(--green); }
.wish-form button[type="submit"] { width: 100%; }
.wish-form button[type="submit"]:disabled { opacity: 0.6; cursor: not-allowed; }
.wish-response {
  margin-top: 18px;
  min-height: 26px;
  font-family: var(--font-script);
  font-size: 1.4rem;
  color: var(--green-dark);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.wish-response.show { opacity: 1; transform: translateY(0); }
.wish-count { font-size: 0.78rem; color: var(--ink-soft); font-weight: 700; margin-top: 6px; }

/* ==========================================================================
   Wisp — a floating companion who lives in the corner of every page
   ========================================================================== */
.wisp-wrap { position: fixed; left: 22px; bottom: 22px; z-index: 199; }
.wisp {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gold-soft);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: none;
  transition: transform 0.25s cubic-bezier(.22,1,.36,1), box-shadow 0.25s ease, border-color 0.25s ease;
}
@media (pointer: coarse) { .wisp { cursor: pointer; } }
.wisp:hover { transform: scale(1.15) rotate(-10deg); box-shadow: 0 0 0 8px rgba(var(--gold-rgb), 0.16), var(--shadow-md); border-color: var(--gold); }
.wisp:active { transform: scale(0.94) rotate(4deg); }
.wisp-emoji { display: inline-block; font-size: 1.9rem; animation: wispBob 3.4s ease-in-out infinite; }
@keyframes wispBob {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-9px) rotate(4deg); }
}
@media (prefers-reduced-motion: reduce) { .wisp-emoji { animation: none; } }
@media (max-width: 560px) { .wisp-wrap { left: 14px; bottom: 14px; } .wisp { width: 50px; height: 50px; } .wisp-emoji { font-size: 1.5rem; } }

/* speech bubble that pops up directly over Wisp, for both click replies
   and the periodic idle chatter */
.wisp-bubble {
  position: absolute;
  left: calc(100% + 16px);
  bottom: 2px;
  transform: translateX(-10px);
  width: max-content;
  max-width: 220px;
  /* a light thought cloud, so it pops on cream pages and the dark footer alike */
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--gold);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.4;
  padding: 12px 16px;
  border-radius: 22px;
  box-shadow: 0 0 0 4px rgba(var(--gold-rgb), 0.14), var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1;
}
/* the little thought dots trailing back toward Wisp */
.wisp-bubble::before,
.wisp-bubble::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gold);
}
.wisp-bubble::before { width: 12px; height: 12px; left: -15px; bottom: 10px; }
.wisp-bubble::after { width: 7px; height: 7px; left: -25px; bottom: 2px; }
.wisp-bubble.show { opacity: 1; transform: translateX(0); }
@media (max-width: 560px) { .wisp-bubble { max-width: 150px; font-size: 0.78rem; padding: 10px 13px; } }

/* ==========================================================================
   Maya's avatar — About page only: a little witchy character who idles,
   glances around, and shares a fact when clicked
   ========================================================================== */
.maya-avatar-wrap { position: relative; width: 240px; margin: 0 auto; text-align: center; }
.maya-avatar {
  display: block;
  width: 220px; height: 240px;
  margin: 0 auto;
  padding: 0;
  background: none;
  border: none;
  cursor: none;
  animation: avatarBob 4.5s ease-in-out infinite;
  transition: transform 0.25s ease;
}
@media (pointer: coarse) { .maya-avatar { cursor: pointer; } }
.maya-avatar:hover { transform: scale(1.04); }
.maya-avatar:active { transform: scale(0.97); }
@keyframes avatarBob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .maya-avatar { animation: none; } }
.maya-avatar-svg { width: 100%; height: 100%; filter: drop-shadow(var(--shadow-md)); }
/* eyes are pointed at the real cursor via JS (see script.js); this
   transition is what makes that tracking feel smooth instead of twitchy */
.maya-avatar-eyes { transition: transform 0.18s ease-out; }

/* the avatar drifts gently toward the cursor, and the ambient props drift
   the opposite way for a little depth, both driven by JS on mousemove */
.maya-avatar-wrap { transition: transform 0.25s ease-out; }
#about-top .floaties { transition: transform 0.35s ease-out; }

.maya-avatar-hint {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
  opacity: 0.75;
}

/* the avatar sits centered in its own column (not pinned to a viewport
   edge like Wisp), so the bubble is safe to open straight above it */
.maya-fact-bubble {
  left: 50%; right: auto;
  bottom: calc(100% + 18px); top: auto;
  transform: translate(-50%, 8px);
  max-width: 230px;
}
.maya-fact-bubble::after {
  right: auto; left: 50%;
  top: 100%; bottom: auto;
  transform: translateX(-50%);
  border-right-color: transparent;
  border-top-color: var(--ink);
  border-left: 7px solid transparent;
  border-bottom: 0;
}
.maya-fact-bubble.show { transform: translate(-50%, 0); }

@media (max-width: 900px) { .maya-avatar-wrap { margin-top: 40px; } }

/* ==========================================================================
   Gatekeeper modal — a playful "are you sure" before entering the portfolio
   ========================================================================== */
.gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(30, 24, 14, 0.55);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.gate-overlay.open { opacity: 1; pointer-events: auto; }
.gate-modal {
  position: relative;
  max-width: 420px;
  width: 100%;
  background: var(--cream-soft);
  border: 2px dashed rgba(63, 125, 92, 0.4);
  border-radius: var(--radius-lg);
  padding: 40px 32px 32px;
  text-align: center;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  transform: scale(0.85) translateY(20px);
  transition: transform 0.35s cubic-bezier(.22,1,.36,1);
}
.gate-overlay.open .gate-modal { transform: scale(1) translateY(0); }
.gate-mascot {
  display: block;
  font-size: 3.2rem;
  margin-bottom: 10px;
  animation: gateMascotFloat 2.6s ease-in-out infinite;
}
@keyframes gateMascotFloat {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-8px) rotate(4deg); }
}
.gate-modal h3 { margin-bottom: 10px; }
.gate-modal p { font-size: 0.98rem; margin-bottom: 26px; }
.gate-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* the "Maybe not" button turns into a joke the moment you hover it —
   greyed out, relabeled "Too Late", and no longer able to close the gate */
@keyframes gateNoShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px) rotate(-2deg); }
  75% { transform: translateX(4px) rotate(2deg); }
}
.gate-modal .gate-no-disabled {
  background: #d9d3c4;
  color: #8b8371;
  border-color: #c9c1ac;
  animation: gateNoShake 0.4s ease;
}
.gate-modal .gate-no-disabled:hover { background: #d9d3c4; color: #8b8371; transform: none; }
@media (prefers-reduced-motion: reduce) { .gate-mascot { animation: none; } }
@media (max-width: 480px) { .gate-modal { padding: 34px 22px 26px; } }

/* ==========================================================================
   Hub cards — a tarot-deck bento spread for the "explore the site" grid
   ========================================================================== */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 30px;
}
.hub-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  min-height: 220px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(97, 65, 36, 0.08);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(.22,1,.36,1), box-shadow 0.3s ease;
}
.hub-card:nth-child(1) { transform: rotate(-1.6deg); }
.hub-card:nth-child(2) { transform: rotate(1.1deg); }
.hub-card:nth-child(3) { transform: rotate(-0.9deg); }
.hub-card:nth-child(4) { transform: rotate(1.5deg); }
.hub-card:nth-child(5) { transform: rotate(-1.1deg); }
.hub-card:hover {
  transform: translateY(-12px) scale(1.04) rotate(0deg) !important;
  box-shadow: 0 26px 48px rgba(97, 65, 36, 0.24);
  z-index: 2;
}
.hub-card:hover .bento-icon { transform: rotate(-14deg) scale(1.18); }

.hub-chapter {
  position: absolute;
  top: 22px; right: 26px;
  font-family: var(--font-script);
  font-size: 1.7rem;
  color: var(--ink-soft);
  opacity: 0.5;
}

.hub-card--brown { background: var(--ink); }
.hub-card--brown h3, .hub-card--brown .hub-chapter { color: var(--cream-soft); opacity: 0.85; }
.hub-card--brown p { color: rgba(253, 249, 243, 0.72); }
.hub-card--brown .bento-icon { background: rgba(253, 249, 243, 0.18); color: var(--sand); }

.hub-card--terracotta { background: var(--gold-soft); }
.hub-card--sand { background: var(--parchment); }
.hub-card--sage { background: var(--green-soft); }

.hub-card .bento-icon { width: 52px; height: 52px; margin-bottom: 16px; }
.hub-card h3 { margin-bottom: 8px; font-size: 1.15rem; }
.hub-card p { font-size: 0.9rem; margin-bottom: 16px; }

.hub-card-link {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream-soft);
  transition: transform 0.2s ease, background 0.2s ease, gap 0.2s ease;
}
.hub-card:hover .hub-card-link { transform: translateX(2px); gap: 9px; }
.hub-card--brown .hub-card-link { background: var(--sand); color: var(--ink); }

@media (max-width: 900px) {
  .hub-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .hub-grid { grid-template-columns: 1fr; }
  .hub-card:nth-child(n) { transform: none; }
}

/* ==========================================================================
   About page
   ========================================================================== */
/* ---- bio: the story on the left, a sticky fact file on the right ---- */
.about-bio { overflow: clip; }
.about-bio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: start;
}
.about-copy p { font-size: 1.04rem; }
.about-copy p:first-child::first-letter {
  float: left;
  margin: 6px 10px 0 0;
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 0.8;
  color: var(--gold);
}
.about-copy em { color: var(--gold-dark); font-style: normal; font-weight: 700; }
.about-pull {
  position: relative;
  margin: 26px 0 28px;
  padding: 18px 22px 18px 54px;
  border-radius: var(--radius-md);
  background: var(--green-soft);
  font-family: var(--font-script);
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--ink);
}
.about-pull span {
  position: absolute;
  left: 16px; top: 4px;
  font-family: var(--font-display);
  font-size: 3.2rem;
  line-height: 1;
  color: var(--green-dark);
}

.fact-file {
  position: sticky;
  top: 112px;
  padding: 26px 24px 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
  border-top: 6px solid var(--gold);
}
.fact-file-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.fact-file-seal {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--ink);
  font-size: 1.6rem;
  box-shadow: 0 0 0 4px var(--gold-soft);
  transform: rotate(-8deg);
}
.fact-file-kicker { margin: 0; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-dark) !important; }
.fact-file-head h3 { margin: 0; font-size: 1.4rem; }
.fact-file-role { margin: 0; font-family: var(--font-script); font-size: 1.2rem; color: var(--green-dark) !important; }

.fact-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.fact-stats div { padding: 12px 6px; border-radius: 14px; background: var(--cream); text-align: center; }
.fact-stats strong { display: block; font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; color: var(--gold-dark); line-height: 1.1; }
.fact-stats span { display: block; margin-top: 4px; font-size: 0.7rem; font-weight: 700; line-height: 1.25; color: var(--ink-soft); }

.fact-list { margin: 0 0 18px; display: grid; gap: 0; }
.fact-list div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px dashed rgba(97, 65, 36, 0.16); }
.fact-list dt { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); padding-top: 2px; }
.fact-list dd { margin: 0; font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.fact-file-sub { margin: 0 0 10px; font-family: var(--font-display); font-weight: 600; color: var(--ink) !important; }

/* ---- how I got here: four phases of the moon ---- */
.moon-timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.moon-timeline::before {
  content: "";
  position: absolute;
  top: 36px; left: 12.5%; right: 12.5%;
  border-top: 3px dotted var(--gold);
}
.moon-step { position: relative; text-align: center; }
.moon-phase {
  position: relative;
  z-index: 1;
  display: flex; align-items: center; justify-content: center;
  width: 72px; height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--ink);
  font-size: 2.1rem;
  box-shadow: 0 0 0 8px var(--parchment), var(--shadow-md);
  transition: transform 0.4s cubic-bezier(.22,1,.36,1);
}
.moon-step:hover .moon-phase { transform: rotate(-18deg) scale(1.1); }
.moon-step--full .moon-phase { box-shadow: 0 0 0 8px var(--parchment), 0 0 26px 6px rgba(var(--sand-rgb), 0.7); }
.moon-label { margin: 0 0 4px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-dark) !important; }
.moon-step h3 { margin-bottom: 8px; }
.moon-step > p:last-child {
  margin: 0;
  padding: 16px 16px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
}

/* ---- closing call to action: a sage "garden at dusk" card, so it stands
   apart from the cocoa footer right below it ---- */
/* equal breathing room above and below (the footer's cloud edge overlaps 22px) */
.about-cta { text-align: center; padding: 0 0 110px; }
.cta-night {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 32px 52px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(2px 2px at 12% 26%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1.5px 1.5px at 28% 80%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(2px 2px at 70% 16%, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1.5px 1.5px at 88% 74%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(420px 220px at 50% 0%, rgba(var(--sand-rgb), 0.55), transparent),
    radial-gradient(360px 200px at 0% 100%, rgba(var(--green-rgb), 0.9), transparent),
    linear-gradient(160deg, var(--green-soft), var(--green));
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.cta-night-moon {
  position: absolute;
  top: 24px; right: 30px;
  width: 46px; height: 46px;
  border-radius: 50%;
  box-shadow: inset -12px 5px 0 0 var(--cream-soft);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
  transform: rotate(-18deg);
}
.cta-night .eyebrow { margin-bottom: 10px; color: var(--ink); opacity: 0.75; }
.cta-night h2 { margin-bottom: 14px; color: var(--ink); }
.cta-night p:not(.eyebrow) { max-width: 480px; margin: 0 auto 28px; color: var(--ink); }
.cta-night-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.btn-ghost-ink { background: rgba(255, 255, 255, 0.35); border-color: var(--ink); color: var(--ink); border-width: 2px; }
.btn-ghost-ink:hover { background: var(--ink); border-color: var(--ink); color: var(--cream-soft); }
@media (max-width: 640px) { .about-cta { padding-bottom: 82px; } }

@media (max-width: 900px) {
  .about-bio-grid { grid-template-columns: 1fr; gap: 36px; }
  .fact-file { position: static; max-width: 560px; }
  .moon-timeline { grid-template-columns: 1fr; gap: 26px; max-width: 560px; margin: 0 auto; }
  .moon-timeline::before { top: 36px; bottom: 36px; left: 35px; right: auto; border-top: 0; border-left: 3px dotted var(--gold); }
  .moon-step { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 18px; text-align: left; }
  .moon-phase { grid-row: 1 / span 3; margin: 0; }
  .moon-label { margin-top: 6px; }
  .moon-step > p:last-child { grid-column: 2; }
}
@media (max-width: 480px) {
  .fact-file { padding: 22px 18px 20px; }
  .fact-list div { grid-template-columns: 1fr; gap: 2px; }
  .about-pull { font-size: 1.3rem; padding-left: 48px; }
  .cta-night { padding: 40px 22px 44px; }
  .cta-night-moon { top: 18px; right: 18px; width: 36px; height: 36px; box-shadow: inset -9px 4px 0 0 var(--cream-soft); }
}

/* ---- Things Maya Loves — a little personal touch, About page only ---- */
.loves-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.love-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(97, 65, 36, 0.07);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(.22,1,.36,1), box-shadow 0.3s ease;
}
.love-card:hover { transform: translateY(-8px) scale(1.03) rotate(-1deg); box-shadow: var(--shadow-md); }
.love-card:nth-child(1) { background: var(--green-soft); }
.love-card:nth-child(2) { background: var(--gold-soft); }
.love-card:nth-child(3) { background: var(--parchment); }
.love-card:nth-child(5) { background: var(--green-soft); }
.love-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  margin-bottom: 14px;
  transition: transform 0.3s ease;
}
.love-card:hover .love-icon { transform: rotate(-10deg) scale(1.1); }
.love-label { display: block; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 6px; }
.love-value { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--ink); margin: 0; }

.love-card--quote {
  grid-column: 1 / -1;
  background: var(--ink);
  text-align: center;
  padding: 40px 30px;
}
.love-card--quote:hover { transform: translateY(-6px) scale(1.01) rotate(0); }
.love-card--quote .love-icon { background: rgba(253, 249, 243, 0.15); color: var(--sand); margin: 0 auto 16px; }
.love-card--quote .love-label { color: var(--sand); }
.love-quote-text { font-family: var(--font-script); font-size: 1.7rem; color: var(--cream-soft); max-width: 560px; margin: 0 auto 10px; line-height: 1.4; }
.love-quote-attr { font-size: 0.85rem; font-weight: 700; color: rgba(253, 249, 243, 0.65); }

@media (max-width: 760px) {
  .loves-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .loves-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Floating "Email Me" button
   ========================================================================== */
.email-fab {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--green);
  color: var(--cream-soft);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.94rem;
  padding: 15px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, background 0.2s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}
.email-fab:hover { background: var(--green-dark); transform: translateY(-3px); box-shadow: 0 16px 34px rgba(58, 53, 44, 0.22); }
.email-fab.is-hidden { opacity: 0; pointer-events: none; transform: translateY(12px); }
@media (max-width: 560px) {
  .email-fab { right: 16px; bottom: 16px; padding: 14px; }
  .email-fab-text { display: none; }
}

/* ==========================================================================
   Toast — small feedback bubble for the brand-mark easter egg
   ========================================================================== */
.magic-toast {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: var(--ink);
  color: var(--cream-soft);
  font-weight: 700;
  font-size: 0.9rem;
  width: max-content;
  max-width: calc(100vw - 40px);
  text-align: center;
  padding: 10px 20px;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.magic-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ==========================================================================
   Footer
   ========================================================================== */
/* A night sky to close every page: cloud-scalloped edge, twinkling stars,
   a crescent moon, and a falling star you can catch for a fortune. */
.site-footer {
  position: relative;
  background:
    radial-gradient(460px 200px at 18% 62%, rgba(var(--gold-rgb), 0.22), transparent),
    radial-gradient(420px 200px at 88% 100%, rgba(var(--green-rgb), 0.16), transparent),
    var(--ink);
  color: rgba(255, 248, 234, 0.75);
  padding: 56px 0 0;
}
.site-footer p { color: rgba(255, 248, 234, 0.7); }

/* soft cloud bumps rising out of the night into whatever section sits above */
.site-footer::before {
  content: "";
  position: absolute;
  bottom: calc(100% - 1px); left: 0; right: 0;
  height: 22px;
  /* tiles are taller than the strip so their top seam never renders */
  background: radial-gradient(circle at 50% 100%, var(--ink) 21px, transparent 21.5px) repeat-x left bottom / 44px 40px;
  pointer-events: none;
}

.footer-sky { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.footer-stars { position: absolute; inset: 0; }
.footer-star {
  position: absolute;
  width: var(--s, 2px);
  height: var(--s, 2px);
  border-radius: 50%;
  background: var(--cream-soft);
  box-shadow: 0 0 6px rgba(var(--sand-rgb), 0.8);
  opacity: 0.35;
  animation: footerTwinkle var(--d, 3s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
.footer-star.glint { background: var(--sand); }
@keyframes footerTwinkle { 0%, 100% { opacity: 0.25; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.25); } }

.footer-moon {
  position: absolute;
  top: 58px; right: 7%;
  width: 54px; height: 54px;
  border-radius: 50%;
  box-shadow: inset -13px 6px 0 0 var(--sand);
  filter: drop-shadow(0 0 14px rgba(var(--sand-rgb), 0.55));
  transform: rotate(-18deg);
  animation: moonBob 7s ease-in-out infinite;
}
@keyframes moonBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

.shooting-star {
  position: absolute;
  width: 120px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(var(--sand-rgb), 0), var(--sand) 70%, var(--cream-soft));
  filter: drop-shadow(0 0 6px rgba(var(--sand-rgb), 0.9));
  transform: rotate(var(--angle, 24deg));
  transform-origin: right center;
  opacity: 0;
  animation: shootingStar var(--dur, 1.1s) cubic-bezier(.3,.6,.4,1) forwards;
}
@keyframes shootingStar {
  0% { opacity: 0; translate: 0 0; }
  15% { opacity: 1; }
  100% { opacity: 0; translate: var(--tx, 320px) var(--ty, 150px); }
}

.site-footer .footer-main {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr;
  gap: 48px;
  padding-top: 24px;
  padding-bottom: 36px;
}

.footer-logo { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; color: var(--cream-soft); }
.footer-role { font-family: var(--font-script); font-size: 1.4rem; font-weight: 600; color: var(--sand) !important; margin: 0 0 12px; }
.footer-blurb { max-width: 340px; font-size: 0.96rem; }
.footer-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(var(--sand-rgb), 0.35);
  background: rgba(255, 248, 234, 0.06);
  font-size: 0.86rem; font-weight: 700;
  color: var(--cream-soft);
  overflow-wrap: anywhere;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.footer-chip:hover { background: rgba(var(--sand-rgb), 0.16); border-color: var(--sand); transform: translateY(-2px); }

.footer-heading {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 600;
  color: var(--sand) !important;
  margin: 0 0 14px;
}

.footer-map ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-map a {
  position: relative;
  display: inline-block;
  padding-left: 20px;
  color: rgba(255, 248, 234, 0.8);
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}
.footer-map a::before {
  content: "✦";
  position: absolute; left: 0; top: 50%;
  translate: 0 -50%;
  font-size: 0.75rem;
  color: rgba(var(--sand-rgb), 0.45);
  transition: color 0.2s ease, transform 0.35s ease;
}
.footer-map a:hover { color: var(--green); transform: translateX(4px); }
.footer-map a:hover::before { color: var(--sand); transform: rotate(180deg) scale(1.4); }

.footer-wish-text { font-size: 0.94rem; }
.star-catch-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sand), var(--gold));
  color: var(--ink);
  font: 700 0.95rem var(--font-body);
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(var(--sand-rgb), 0.5);
  animation: starBtnPulse 2.8s ease-in-out infinite;
  transition: transform 0.2s ease;
}
.star-catch-btn:hover { transform: translateY(-2px) scale(1.03); }
.star-catch-btn:active { transform: scale(0.97); }
.star-catch-btn:focus-visible { outline: 3px solid var(--cream-soft); outline-offset: 3px; }
.star-catch-icon { font-size: 1.2rem; display: inline-block; transition: transform 0.4s ease; }
.star-catch-btn:hover .star-catch-icon { transform: rotate(-20deg) scale(1.15); }
@keyframes starBtnPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(var(--sand-rgb), 0.45); } 50% { box-shadow: 0 0 0 10px rgba(var(--sand-rgb), 0); } }

.footer-fortune {
  min-height: 3.2em;
  margin: 16px 0 0;
  font-family: var(--font-script);
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--cream-soft) !important;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.footer-fortune.show { opacity: 1; transform: none; }

.footer-signoff { position: relative; z-index: 2; text-align: center; }
.footer-script {
  margin: 0;
  padding: 8px 0 22px;
  font-family: var(--font-script);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.1;
  color: var(--sand) !important;
  text-shadow: 0 0 24px rgba(var(--sand-rgb), 0.35);
}

.site-footer .footer-bottom {
  position: relative;
  z-index: 2;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 10px 24px;
  padding-top: 18px;
  padding-bottom: 22px;
  border-top: 1px dashed rgba(var(--sand-rgb), 0.3);
}
.footer-bottom p { margin: 0; font-size: 0.86rem; color: rgba(255, 248, 234, 0.55); }
.back-to-top { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; font-weight: 700; color: var(--sand); }
.back-to-top:hover { color: var(--cream-soft); }
.back-to-top .broom { display: inline-block; transition: transform 0.35s ease; }
.back-to-top:hover .broom { transform: translateY(-4px) rotate(-25deg); }
.back-to-top.flying .broom { animation: broomFly 0.9s ease-in forwards; }
@keyframes broomFly { 0% { transform: none; } 30% { transform: translate(-4px, 4px) rotate(-30deg); } 100% { transform: translate(30px, -120px) rotate(-45deg); opacity: 0; } }

/* leave room so Wisp (fixed, bottom left) never sits on the copyright line */
@media (max-width: 1320px) {
  .site-footer .footer-bottom { padding-bottom: 96px; }
}
@media (max-width: 900px) {
  .site-footer .footer-main { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .site-footer { padding-top: 44px; }
  .site-footer .footer-main { grid-template-columns: 1fr; gap: 30px; }
  .footer-moon { top: 44px; width: 40px; height: 40px; box-shadow: inset -10px 5px 0 0 var(--sand); }
  .site-footer .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .footer-star, .footer-moon, .star-catch-btn { animation: none; }
  .footer-star { opacity: 0.6; }
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
[data-animate] { opacity: 0; transform: translateY(26px) scale(0.97); transition: opacity 0.7s cubic-bezier(.22,1,.36,1), transform 0.7s cubic-bezier(.22,1,.36,1); }
[data-animate].in-view { opacity: 1; transform: translateY(0) scale(1); }

/* ==========================================================================
   Responsive
   ========================================================================== */
/* Between the full desktop header and the hamburger breakpoint, tighten
   spacing first so the nav keeps working (rather than jumping straight to
   a hamburger) across the common ~650-900px panel widths. */
@media (max-width: 900px) {
  .header-inner { gap: 8px; padding: 0 8px; }
  .brand { padding: 6px; gap: 8px; }
  .brand-role { display: none; }
  .site-nav { gap: 4px; padding: 0 4px; }
  .nav-link { font-size: 0.86rem; }
  .header-cta { padding: 10px 16px; font-size: 0.86rem; }
}

@media (max-width: 640px) {
  section { padding: 60px 0; }
  .site-header { top: 10px; }
  .site-nav {
    position: fixed;
    top: calc(var(--header-h) + 4px);
    left: 16px; right: 16px;
    background: var(--cream-soft);
    border-radius: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 20px 20px;
    box-shadow: var(--shadow-md);
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
  }
  .site-nav.open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-link { width: 100%; padding: 10px 0; font-size: 0.98rem; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero-actions .btn { width: 100%; }
}
