/* ============================================================
   GrowenaPath — Design tokens
   ============================================================ */
:root {
  /* ---- GrowenaPath brand tokens (earthy palette) ---- */
  --umber: #3b2a20;
  --umber-soft: rgba(59, 42, 32, 0.66);
  --sand: #fbf5ea;
  --blush: #f2d9c6;
  --terracotta: #c1602e;
  --terracotta-dark: #a34f26;
  --moss: #7a8b5d;
  --moss-light: #a9b896;
  --ochre: #e0a73c;
  --line: rgba(59, 42, 32, 0.1);

  /* ---- back-compat aliases so existing rules below don't need rewriting ---- */
  --ink: var(--umber);
  --ink-soft: var(--umber-soft);
  --paper: var(--sand);
  --card: var(--blush);
  --forest: var(--terracotta);       /* primary action color */
  --forest-dark: var(--umber);       /* text / dark surfaces */
  --clay: var(--terracotta);
  --clay-dark: var(--terracotta-dark);
  --gold: var(--ochre);
  --sage: var(--moss-light);

  --display: "Bricolage Grotesque", "Inter", sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --hand: "Caveat", cursive; /* scoped use only — small personal touches, never headings/labels */

  --max: 1140px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 100px;
  --radius: var(--radius-lg); /* alias used broadly by existing card/section rules */
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

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

h1 { font-size: clamp(2.3rem, 4.6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.25rem; font-weight: 600; }

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

.eyebrow {
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--clay-dark);
  display: inline-block;
  margin-bottom: 0.5em;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.btn-primary {
  background: var(--forest);
  color: var(--paper);
  box-shadow: 0 6px 18px rgba(46, 74, 61, 0.25);
}
.btn-primary:hover { background: var(--forest-dark); }

.btn-ghost {
  background: transparent;
  border-color: var(--forest);
  color: var(--forest);
}
.btn-ghost:hover { background: var(--forest); color: var(--paper); }

/* ---------------- Nav ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 238, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  max-width: var(--max);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--forest-dark);
}
.logo svg { width: 30px; height: 30px; }

.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a {
  position: relative;
  padding: 4px 0 8px;
  color: var(--ink);
}
.nav-links a.active { color: var(--clay-dark); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 104 8' preserveAspectRatio='none'%3E%3Cpath d='M1 5.2 C 18 2.8, 34 6.4, 52 4.4 C 68 2.6, 84 6, 103 3.8' fill='none' stroke='%23E0A73C' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    inset: 66px 0 auto 0;
    background: var(--paper);
    flex-direction: column;
    padding: 20px 28px 28px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform 0.25s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
  }
  .nav-toggle svg { width: 26px; height: 26px; }
}

/* ---------------- Growth path signature ---------------- */
.path-rail {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.section { position: relative; padding: 96px 0; }
.section-tight { padding: 64px 0; }

.leaf-mark {
  width: 34px; height: 34px;
  color: var(--sage);
}

/* ---------------- Hero ---------------- */
.hero {
  padding: 64px 0 40px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero-copy p.lead {
  font-size: 1.15rem;
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hero-photo {
  position: relative;
}
.hero-photo .frame {
  border-radius: 44% 56% 62% 38% / 46% 40% 60% 54%;
  overflow: hidden;
  border: 6px solid var(--paper);
  box-shadow: 0 20px 50px rgba(46, 74, 61, 0.22);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/4.4; }
.hero-photo .doodle {
  position: absolute;
  bottom: -18px;
  left: -22px;
  width: 90px;
  color: var(--gold);
}

/* ---------------- Pillars ---------------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pillar:hover {
  transform: translateY(-4px) rotate(0deg) !important;
  box-shadow: 0 16px 30px rgba(59, 42, 32, 0.1);
}
.pillar:nth-child(1) { transform: rotate(-1deg); }
.pillar:nth-child(2) { transform: rotate(0.8deg); }
.pillar:nth-child(3) { transform: rotate(-0.5deg); }
.pillar .icon-wrap {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.pillar:nth-child(1) .icon-wrap { background: rgba(193, 96, 46, 0.12); }
.pillar:nth-child(2) .icon-wrap { background: rgba(224, 167, 60, 0.2); }
.pillar:nth-child(3) .icon-wrap { background: rgba(122, 139, 93, 0.16); }
.pillar:nth-child(1) .icon { color: var(--terracotta); }
.pillar:nth-child(2) .icon { color: var(--ochre); }
.pillar:nth-child(3) .icon { color: var(--moss); }
.pillar .icon {
  width: 24px; height: 24px;
}
.pillar h3 { margin-bottom: 0.3em; }
.pillar p { margin: 0; font-size: 0.96rem; }

/* ---------------- Story cards (horizontal row layout) ---------------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.story-grid {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.story-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: grid;
  grid-template-columns: 280px 1fr;
  align-items: start;
}
.story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(46, 74, 61, 0.14);
}
.story-card .thumb { overflow: hidden; width: 100%; aspect-ratio: 4/3; }
.story-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.story-body { padding: 24px 28px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.story-tag {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--clay-dark);
  margin-bottom: 6px;
  display: inline-block;
}
.story-body h3 { margin-bottom: 8px; }
.story-body p { font-size: 0.94rem; margin-bottom: 0; }

/* ---- Read more / expandable extra content (Observations, Learning Highlights) ---- */
.read-more-toggle {
  background: none;
  border: none;
  padding: 0;
  margin-top: 12px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--clay-dark);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.read-more-toggle svg { width: 13px; height: 13px; transition: transform 0.3s ease; }
.read-more-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.read-more-toggle .btn-label::after { content: "Read more"; }
.read-more-toggle[aria-expanded="true"] .btn-label::after { content: "Show less"; }
.read-more-toggle[aria-expanded="true"] { display: none; }

.story-extra-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.story-extra-wrap.is-open { grid-template-rows: 1fr; }
.story-extra-inner { overflow: hidden; }
.story-extra-inner h4 {
  font-family: var(--display);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--forest-dark);
  margin: 16px 0 6px;
}
.story-extra-inner p { font-size: 0.92rem; margin-bottom: 10px; }
.story-extra-inner ul { margin: 0 0 12px; padding-left: 20px; }
.story-extra-inner li { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 4px; }

.story-extra-gallery {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 4px 0 16px;
}
.story-extra-gallery img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.story-extra-gallery img:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 16px rgba(46, 74, 61, 0.18);
}

/* ---- Lightbox for expanding gallery photos ---- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 38, 32, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 40px;
  cursor: zoom-out;
}
.lightbox-overlay.is-open { display: flex; }
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  cursor: default;
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(251, 246, 238, 0.15);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox-close svg { width: 22px; height: 22px; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(251, 246, 238, 0.15);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox-nav:hover { background: rgba(251, 246, 238, 0.28); }
.lightbox-nav svg { width: 24px; height: 24px; }
.lightbox-nav-prev { left: 24px; }
.lightbox-nav-next { right: 24px; }
.lightbox-counter {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--paper);
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(43, 38, 32, 0.5);
  padding: 6px 16px;
  border-radius: 100px;
}

/* ---- Creative Corner: featured split-thumbnail (2 photos, no interaction needed) ---- */
.split-thumb {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  overflow: hidden;
}
.split-thumb img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }

/* ---- Creative Corner: "+N photos" badge for non-featured multi-photo entries ---- */
.badge-thumb { position: relative; cursor: zoom-in; }
.photo-count-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(43, 38, 32, 0.72);
  color: #fff;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
}
.photo-count-badge svg { width: 13px; height: 13px; }

.story-extra-inner .story-closing {
  font-family: var(--hand);
  font-size: 1.4rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--terracotta);
  margin: 10px 0 0 !important;
}

.collapse-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  margin-top: 18px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--clay-dark);
  cursor: pointer;
}
.collapse-toggle svg { width: 13px; height: 13px; }

@media (prefers-reduced-motion: reduce) {
  .story-extra-wrap { transition: none !important; }
}

@media (max-width: 700px) {
  .story-card { grid-template-columns: 1fr; }
  .story-card .thumb { aspect-ratio: 16/9; min-height: 0; }
}

/* ---------------- Gallery cards (Creative Corner — image-led, not a reading list) ---------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 760px) { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(46, 74, 61, 0.14);
}
.gallery-card .thumb { aspect-ratio: 4/5; overflow: hidden; }
.gallery-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-card .gallery-body { padding: 22px 24px 26px; }
.gallery-card .gallery-body h3 { margin-bottom: 6px; }
.gallery-card .gallery-body p { font-size: 0.94rem; margin-bottom: 0; }

/* First card runs full-width and taller — a featured spot for the standout piece */
.gallery-grid .gallery-card.featured {
  grid-column: 1 / -1;
}
.gallery-grid .gallery-card.featured .thumb,
.gallery-grid .gallery-card.featured .split-thumb { aspect-ratio: 21/9; }

/* If the total card count leaves a lone card at the end (no partner to sit beside),
   let it span the full row instead of looking orphaned in a half-empty row */
.gallery-grid .gallery-card:last-child:nth-child(even) {
  grid-column: 1 / -1;
}
.gallery-grid .gallery-card:last-child:nth-child(even) .thumb {
  aspect-ratio: 16/9;
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--forest-dark);
  color: rgba(251, 246, 238, 0.85);
  padding: 56px 0 30px;
  margin-top: 40px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  align-items: flex-start;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(251, 246, 238, 0.15);
}
.footer-grid .logo { color: var(--paper); }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 34px; list-style: none; padding: 0; margin: 0; }
.footer-links a:hover { color: var(--gold); }
@media (max-width: 640px) {
  .footer-grid { flex-direction: column; align-items: center; text-align: center; }
  .footer-links { justify-content: center; gap: 10px 22px; }
  .footer-bottom { justify-content: center; text-align: center; }
}
.footer-bottom {
  padding-top: 22px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(251, 246, 238, 0.55);
}

/* ---------------- Utility ---------------- */
.center { text-align: center; }
.hand-note {
  font-family: var(--hand);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--terracotta);
  display: inline-block;
  transform: rotate(-2deg);
}
.bg-sage { background: var(--sage); }
.mt-0 { margin-top: 0; }
.tag-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.tag-strip span {
  background: rgba(46, 74, 61, 0.08);
  color: var(--forest-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

/* ---------------- Timeline (About page) ---------------- */
.timeline {
  position: relative;
  padding-left: 34px;
  margin-top: 10px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--sage), var(--clay));
  border-radius: 2px;
}
.tl-item { position: relative; padding-bottom: 40px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -34px; top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--clay);
}
.tl-item h3 { margin-bottom: 4px; }
.tl-when {
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--forest-dark);
}

.tl-item.has-photo {
  display: grid;
  grid-template-columns: 1fr 168px;
  gap: 24px;
  align-items: start;
}
.tl-item.has-photo .tl-photo {
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(46, 74, 61, 0.18);
  border: 4px solid #fff;
}
.tl-item.has-photo .tl-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 2/3; }
@media (max-width: 560px) {
  .tl-item.has-photo { grid-template-columns: 1fr; }
  .tl-item.has-photo .tl-photo { width: 150px; }
}

/* ---------------- Contact ---------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.contact-info-item .icon { width: 22px; height: 22px; color: var(--clay-dark); flex-shrink: 0; margin-top: 2px; }

form.contact-form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--forest-dark);
}
input, textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 0.98rem;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(193, 112, 74, 0.15);
}
textarea { min-height: 140px; resize: vertical; }

.page-hero {
  padding: 56px 0 20px;
}
.page-hero .eyebrow { display: block; }

/* ---------------- Milestone (graduation, inside the timeline) ---------------- */
.tl-item.milestone {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: center;
  padding: 8px 0 12px;
}
.tl-item.milestone::before {
  top: 50%;
  transform: translateY(-50%);
}

.milestone-photo {
  position: relative;
  width: 100%;
}
.milestone-photo img {
  width: 100%;
  display: block;
  filter: drop-shadow(0 12px 20px rgba(43, 38, 32, 0.16));
}

.milestone-text { position: relative; padding-top: 34px; }
.m-arrow {
  position: absolute;
  width: 34px;
  height: auto;
  top: -34px;
  left: 2px;
  color: var(--clay-dark);
  opacity: 0.85;
}
.m-note {
  position: absolute;
  top: -3%;
  right: -2%;
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--clay-dark);
  white-space: nowrap;
  transform: rotate(-2deg);
}
.m-spark {
  position: absolute;
  width: 13px;
  height: 13px;
  color: var(--gold);
}
.m-spark-1 { top: 42%; left: -12%; }
.m-spark-2 { bottom: 10%; right: -10%; }

.milestone-text .tl-when { color: var(--clay-dark); }

@media (max-width: 620px) {
  .tl-item.milestone {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 14px;
    padding-top: 0;
  }
  .milestone-photo { max-width: 220px; }
  .milestone-text { max-width: 42ch; padding-top: 0; }
  .m-arrow { display: none; }
  .m-note {
    position: static;
    display: block;
    transform: none;
    white-space: normal;
    margin-top: 2px;
  }
  .m-spark-1 { top: 10%; left: 4%; bottom: auto; }
  .m-spark-2 { top: 32%; right: 4%; bottom: auto; }
}

/* ============================================================
   Motion — scroll reveals, header shrink, word-in, parallax
   ============================================================ */

/* Header shrinks + gains depth once the page has scrolled */
.site-header {
  transition: box-shadow 0.35s ease, padding 0.35s ease;
}
.site-header.scrolled {
  box-shadow: 0 8px 24px rgba(43, 38, 32, 0.06);
}
.site-header.scrolled .nav { padding-top: 12px; padding-bottom: 12px; }

/* Generic scroll-reveal: fade + rise, staggered by --d */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Images get a soft scale-in as they reveal, Apple-style */
.reveal-media {
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-media.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Hero headline: word-by-word entrance on load */
.hero-copy h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(22px);
  animation: word-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--w, 0) * 0.055s + 0.1s);
}
@keyframes word-in {
  to { opacity: 1; transform: translateY(0); }
}
.hero-copy .eyebrow,
.hero-copy .lead,
.hero-copy .hero-actions {
  opacity: 0;
  animation: fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-copy .eyebrow { animation-delay: 0s; }
.hero-copy .lead { animation-delay: 0.45s; }
.hero-copy .hero-actions { animation-delay: 0.62s; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-photo {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  animation: photo-in 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.2s;
}
@keyframes photo-in {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Gentle parallax layer for the hero photo (JS sets --py) */
.hero-photo .frame {
  transform: translateY(calc(var(--py, 0) * 1px));
  transition: transform 0.05s linear;
}

/* Subtle continuous drift for the doodle path */
.hero-photo .doodle {
  animation: doodle-float 5s ease-in-out infinite;
}
@keyframes doodle-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(-4deg); }
}

/* Respect reduced motion everywhere */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-media, .hero-copy h1 .word, .hero-copy .eyebrow,
  .hero-copy .lead, .hero-copy .hero-actions, .hero-photo {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-photo .doodle { animation: none !important; }
}
