:root {
  --cream: #fff8f2;
  --cream-2: #f8ede6;
  --blush: #f3dfe4;
  --mauve: #a67f88;
  --cocoa: #3f302f;
  --brown: #7a4e35;
  --caramel: #d5a56e;
  --white: #fffdfb;
  --line: rgba(63, 48, 47, 0.14);
  --shadow: 0 24px 70px rgba(63, 48, 47, 0.16);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--cocoa);
  font-family: var(--sans);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(16px, 4vw, 54px);
  background: rgba(255, 248, 242, 0.72);
  border-bottom: 1px solid rgba(63, 48, 47, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 38px);
  font-size: 0.9rem;
  font-weight: 750;
}

.pill-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 850;
  line-height: 1;
}

.pill-cta,
.button.primary {
  background: var(--cocoa);
  color: var(--white);
  box-shadow: 0 14px 36px rgba(63, 48, 47, 0.24);
}

.button.ghost {
  background: rgba(255, 253, 251, 0.62);
  border: 1px solid var(--line);
}

.wa-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d5a56e;
  box-shadow: 0 0 0 5px rgba(213, 165, 110, 0.22);
}

.hero {
  position: relative;
  min-height: 100svh;
  padding: 118px clamp(18px, 6vw, 86px) 48px;
  overflow: clip;
  background:
    radial-gradient(circle at 77% 58%, rgba(166, 127, 136, 0.42), transparent 0 28%, transparent 29%),
    radial-gradient(circle at 88% 20%, rgba(213, 165, 110, 0.24), transparent 26%),
    linear-gradient(135deg, #fffdfb 0%, #fff3ee 55%, #f7e7df 100%);
}

.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.33;
  background-image: radial-gradient(rgba(63, 48, 47, 0.09) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
}

.crumb-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.crumb-field span {
  position: absolute;
  width: var(--size);
  height: var(--size);
  border-radius: 45% 60% 52% 48%;
  background: var(--color);
  opacity: calc(var(--split-progress, 0) * 0.95);
  transform:
    translate(calc(var(--split-progress, 0) * var(--x)), calc(var(--split-progress, 0) * var(--y)))
    rotate(calc(var(--split-progress, 0) * var(--r)))
    scale(calc(0.3 + var(--split-progress, 0)));
}

.hero-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 0.9fr);
  align-items: center;
  gap: clamp(28px, 6vw, 90px);
  max-width: 1240px;
  min-height: calc(100svh - 170px);
  margin: 0 auto;
}

.hero-logo {
  width: clamp(76px, 8vw, 116px);
  border-radius: 50%;
  margin-bottom: 28px;
  box-shadow: 0 18px 44px rgba(63, 48, 47, 0.12);
}

.overline {
  margin: 0 0 16px;
  color: var(--mauve);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  color: var(--cocoa);
  line-height: 1.02;
}

h1 {
  max-width: 590px;
  font-size: clamp(2.45rem, 5.1vw, 5.25rem);
  line-height: 0.98;
}

.hero-text {
  max-width: 520px;
  margin: 26px 0 0;
  color: rgba(63, 48, 47, 0.76);
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-art {
  position: relative;
  min-height: 560px;
}

.rose-plate {
  position: absolute;
  right: -9vw;
  bottom: -7vw;
  width: min(62vw, 760px);
  aspect-ratio: 1.35;
  border-radius: 60% 0 0 0;
  background: linear-gradient(145deg, rgba(166, 127, 136, 0.92), rgba(122, 78, 53, 0.72));
}

.split-cookie {
  position: sticky;
  top: 122px;
  width: min(78vw, 520px);
  aspect-ratio: 1;
  margin: 0 auto;
  filter: drop-shadow(0 34px 44px rgba(63, 48, 47, 0.18));
}

.cookie-half {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  overflow: hidden;
  transform: translateX(calc(var(--split-progress, 0) * var(--x))) rotate(calc(var(--split-progress, 0) * var(--rot)));
  will-change: transform;
}

.cookie-half span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 200%;
  border-radius: 50%;
  background: url("Images/hero-cookie.png") center / 112% auto no-repeat;
}

.cookie-half.left {
  --x: -76px;
  --rot: -8deg;
  left: 0;
  border-radius: 999px 0 0 999px;
  transform-origin: 95% 52%;
}

.cookie-half.right {
  --x: 76px;
  --rot: 8deg;
  right: 0;
  border-radius: 0 999px 999px 0;
  transform-origin: 5% 52%;
}

.cookie-half.right span {
  right: 0;
  left: auto;
}

.crumb {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 48%;
  background: var(--brown);
  opacity: calc(0.2 + var(--split-progress, 0) * 0.8);
  transform: translate(calc(var(--split-progress, 0) * var(--dx)), calc(var(--split-progress, 0) * var(--dy)));
}

.c1 { --dx: -54px; --dy: 58px; left: 48%; top: 47%; }
.c2 { --dx: 50px; --dy: -40px; left: 51%; top: 40%; background: var(--caramel); }
.c3 { --dx: 30px; --dy: 70px; left: 52%; top: 49%; width: 7px; height: 7px; }
.c4 { --dx: -22px; --dy: -66px; left: 48%; top: 42%; background: var(--caramel); }

.classics-section,
.treats-section,
.order-section {
  padding: clamp(76px, 10vw, 138px) clamp(18px, 6vw, 86px);
}

.section-kicker {
  max-width: 760px;
  margin: 0 auto clamp(34px, 5vw, 60px);
  text-align: center;
}

.section-kicker p {
  margin: 0 0 10px;
  color: var(--mauve);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-kicker h2,
.story-copy h2,
.social-copy h2 {
  font-size: clamp(2.45rem, 5.8vw, 5.2rem);
}

.classic-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  max-width: 1240px;
  margin: 0 auto;
}

.classic-card,
.treat-card,
.steps article {
  background: rgba(255, 253, 251, 0.78);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.classic-card {
  overflow: hidden;
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.classic-card:hover,
.treat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 88px rgba(63, 48, 47, 0.2);
}

.classic-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.classic-card h3,
.classic-card p {
  padding-inline: 18px;
}

.classic-card h3 {
  margin-top: 18px;
  font-size: 1.4rem;
}

.classic-card p {
  margin: 10px 0 22px;
  color: rgba(63, 48, 47, 0.68);
  font-size: 0.94rem;
  line-height: 1.55;
}

.treats-section {
  background: var(--cream-2);
}

.treat-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
}

.treat-card {
  position: relative;
  min-height: 460px;
  overflow: hidden;
}

.treat-card img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}

.treat-card.big img {
  object-fit: contain;
  padding: 34px;
  background:
    radial-gradient(circle, rgba(255, 253, 251, 0.9), rgba(243, 223, 228, 0.9) 64%, transparent 65%),
    var(--blush);
}

.treat-card div {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 253, 251, 0.82);
  backdrop-filter: blur(14px);
}

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

.treat-card h3 {
  margin-top: 8px;
  font-size: clamp(1.45rem, 2.4vw, 2.25rem);
}

.story-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  align-items: center;
  gap: clamp(32px, 7vw, 98px);
  padding: clamp(76px, 10vw, 138px) clamp(18px, 7vw, 92px);
  background: linear-gradient(110deg, var(--cream) 0 48%, #f2dfe2 48% 100%);
}

.story-copy {
  max-width: 620px;
}

.story-copy p:not(.overline) {
  margin: 22px 0 0;
  color: rgba(63, 48, 47, 0.72);
  font-size: 1.08rem;
  line-height: 1.7;
}

.text-link {
  display: inline-block;
  margin-top: 30px;
  color: var(--brown);
  font-weight: 900;
  border-bottom: 2px solid currentColor;
}

.story-stack {
  position: relative;
  min-height: 520px;
}

.story-stack img {
  position: absolute;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.story-cookie {
  top: 8%;
  right: 6%;
  width: 58%;
  border-radius: 32px;
  transform: rotate(4deg);
}

.story-brownie {
  left: 2%;
  bottom: 4%;
  width: 58%;
  border-radius: 32px;
  transform: rotate(-5deg);
}

.stamp {
  position: absolute;
  right: 4%;
  bottom: 10%;
  display: grid;
  place-items: center;
  width: 132px;
  aspect-ratio: 1;
  border: 1px solid rgba(63, 48, 47, 0.22);
  border-radius: 50%;
  background: var(--white);
  color: var(--mauve);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  transform: rotate(9deg);
}

.order-section {
  text-align: center;
  background:
    radial-gradient(circle at 20% 25%, rgba(213, 165, 110, 0.18), transparent 28%),
    var(--cream-2);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 980px;
  margin: 0 auto 34px;
}

.steps article {
  padding: 28px;
  text-align: left;
}

.steps span {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--cocoa);
  color: var(--white);
  font-weight: 900;
}

.steps h3 { font-size: 1.45rem; }
.steps p { color: rgba(63, 48, 47, 0.68); line-height: 1.55; }

.social-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 86px);
  padding: clamp(70px, 9vw, 120px) clamp(18px, 7vw, 92px);
}

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

.social-gallery img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 20px 56px rgba(63, 48, 47, 0.14);
}

.social-gallery img:nth-child(2) {
  transform: translateY(28px);
}

.social-copy {
  max-width: 680px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--brown);
  font-weight: 900;
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.social-links a:nth-child(2) svg,
.social-links a:nth-child(3) svg {
  fill: currentColor;
  stroke: none;
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 58px 18px 44px;
  background:
    radial-gradient(circle at 85% 15%, rgba(166, 127, 136, 0.28), transparent 30%),
    var(--cocoa);
  color: rgba(255, 253, 251, 0.82);
  text-align: center;
}

.site-footer img {
  width: 82px;
  height: 82px;
  border-radius: 50%;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--white);
  font-weight: 900;
}

.designer-credit {
  color: rgba(255, 253, 251, 0.72) !important;
  font-size: 0.95rem;
  font-weight: 800 !important;
}

.designer-credit strong {
  color: #d7a13e;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 700ms ease, transform 700ms ease;
}

body.motion-ready .reveal {
  opacity: 1;
  transform: translateY(0);
}

body.motion-ready .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .hero-shell,
  .story-section,
  .social-section {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 430px;
  }

  .split-cookie {
    width: min(72vw, 420px);
  }

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

  .treat-grid {
    grid-template-columns: 1fr;
  }

  .treat-card,
  .treat-card img {
    min-height: 390px;
  }
}

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: auto auto;
    padding: 10px 14px;
  }

  .brand span,
  .nav-links {
    display: none;
  }

  .pill-cta {
    min-height: 42px;
    padding: 0 16px;
  }

  .hero {
    min-height: auto;
    padding: 94px 18px 46px;
  }

  .hero-shell {
    min-height: 0;
    gap: 30px;
  }

  .hero-logo {
    width: 78px;
    margin-bottom: 18px;
  }

  h1 {
    max-width: 340px;
    font-size: clamp(2.25rem, 10.5vw, 3.35rem);
    line-height: 1;
  }

  .hero-text {
    margin-top: 18px;
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-art {
    min-height: 300px;
  }

  .split-cookie {
    width: min(76vw, 286px);
    top: 96px;
  }

  .cookie-half.left { --x: -26px; --rot: -5deg; }
  .cookie-half.right { --x: 26px; --rot: 5deg; }

  .classic-track,
  .steps {
    grid-template-columns: 1fr;
  }

  .classics-section,
  .treats-section,
  .order-section,
  .story-section,
  .social-section {
    padding: 64px 18px;
  }

  .section-kicker,
  .order-section {
    text-align: left;
  }

  .treat-card,
  .treat-card img {
    min-height: 360px;
  }

  .story-stack {
    min-height: 360px;
  }

  .stamp {
    width: 104px;
    font-size: 1rem;
  }

  .social-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .social-gallery img:nth-child(3) {
    grid-column: span 2;
    aspect-ratio: 1.8;
  }

  .social-gallery img:nth-child(2) {
    transform: translateY(0);
  }

  .social-links {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  :root { --split-progress: 0 !important; }
  .reveal { opacity: 1; transform: none; }
}
