@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4eee4;
  --paper-2: #fbf7f1;
  --paper-3: #ece4d6;
  --ink: #1c1712;
  --ink-soft: #3a322a;
  --muted: #6f6458;
  --line: #ddd4c6;
  --copper: #9a7043;
  --copper-deep: #7a5630;
  --sage: #4f5e4c;
  --sage-soft: #e6ebe3;
  --danger: #8a3a2a;
  --shadow: 0 16px 40px rgba(28, 23, 18, 0.1);
  --radius: 1.15rem;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Outfit", "Segoe UI", system-ui, sans-serif;
  --max: 72rem;
  --narrow: 42rem;
  --header-h: 4.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@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;
  }
}
html { overflow-x: clip; }
body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--copper-deep); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 560; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); font-weight: 600; }
h2 { font-size: clamp(1.85rem, 4vw, 2.75rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper-2);
  padding: 0.5rem 0.85rem;
  z-index: 100;
  border-radius: 0.4rem;
}
.skip:focus { top: 1rem; }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}
.wrap-narrow { width: min(100% - 2rem, var(--narrow)); margin-inline: auto; }

.kicker {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 0.75rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1.5px solid var(--copper);
  color: var(--copper-deep);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: rgba(251, 247, 241, 0.7);
}
.badge--solid {
  background: var(--copper);
  border-color: var(--copper);
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-weight: 520;
  font-size: 0.98rem;
  border-radius: 999px;
  padding: 0.8rem 1.35rem;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper-2);
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--copper-deep); border-color: var(--copper-deep); color: #fff; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper-2); }
.btn:disabled { opacity: 0.65; cursor: wait; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 238, 228, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 560;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo span { font-style: italic; font-weight: 450; color: var(--muted); }
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: var(--paper-2);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { width: 1.25rem; height: 1.25rem; }
.nav-panel {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}
.nav-panel a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 450;
}
.nav-panel a:hover { color: var(--ink); }
.nav-panel .btn {
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  color: var(--paper-2);
  background: var(--ink);
  border-color: var(--ink);
}
.nav-panel .btn:hover,
.nav-panel .btn:focus-visible {
  color: #fff;
  background: var(--copper-deep);
  border-color: var(--copper-deep);
}

@media (max-width: 799px) {
  .nav-toggle { display: inline-flex; }
  .nav-panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper-2);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1.1rem;
  }
  .nav-panel:not([hidden]) { display: flex; }
  .nav-panel a { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
  .nav-panel .btn { margin-top: 0.8rem; align-self: flex-start; }
}
@media (min-width: 800px) {
  .nav-toggle { display: none; }
  .nav-panel { display: flex !important; }
}

/* Hero */
.hero {
  padding: 2.5rem 0 3.25rem;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: 2rem;
}
.hero-copy .lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 36rem;
}
.hero-copy h1 { margin-bottom: 0.35em; }
.hero-meta {
  color: var(--muted);
  font-size: 0.98rem;
  margin: 0 0 1.1rem;
}
.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 1.4rem 0 0.4rem;
  max-width: 28rem;
}
.countdown-cell {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 0.7rem 0.3rem 0.6rem;
  text-align: center;
}
.countdown-cell strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-weight: 560;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown-cell span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.countdown-status { font-size: 0.95rem; color: var(--muted); margin-top: 0.75rem; }

.hero-photos {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0.7rem;
  align-items: stretch;
}
.hero-photos figure {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-3);
}
.hero-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}
.hero-photos .hero-photo-btb img { aspect-ratio: 5 / 4; object-position: 45% 20%; }
.hero-photos figcaption {
  position: absolute;
  left: 0.7rem;
  bottom: 0.7rem;
  background: rgba(251, 247, 241, 0.92);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
}

@media (min-width: 900px) {
  .hero { padding: 3.25rem 0 4rem; }
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
  }
  .hero-photos .hero-photo-btb { margin-top: 8%; }
}

/* Feature band: shedding */
.band {
  background: var(--ink);
  color: var(--paper-2);
  padding: 3.25rem 0;
}
.band h2 { color: #fff; }
.band .kicker { color: #d4b48a; }
.band p, .band li { color: #e8e0d4; }
.feature-grid {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.75rem;
}
.feature-card {
  background: rgba(251, 247, 241, 0.06);
  border: 1px solid rgba(243, 237, 227, 0.16);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.4rem;
}
.feature-card h3 {
  color: #fff;
  font-size: 1.28rem;
  margin-bottom: 0.45rem;
}
.feature-card p { font-size: 0.98rem; }
@media (min-width: 800px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Sections */
.section { padding: 3.5rem 0; }
.section--alt { background: var(--paper-2); }
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.section-head p { color: var(--ink-soft); }

/* Parents */
.parent-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 800px) {
  .parent-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
.parent-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.15rem);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.section--alt .parent-card { background: #fff; }
.parent-body { padding: 1.25rem 1.3rem 1.5rem; }
.parent-body h3 { margin-bottom: 0.15rem; font-size: 1.7rem; }
.parent-role {
  color: var(--copper-deep);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 0.85rem;
}
.detail-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  font-size: 0.95rem;
}
.detail-list li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.6rem;
  padding: 0.45rem 0;
  border-top: 1px solid var(--line);
}
.detail-list span { color: var(--muted); }
.placeholder {
  color: var(--copper-deep);
  font-style: italic;
}

/* Galleries */
.gallery { position: relative; }
.gallery-frame {
  margin: 0;
  background: #1a1612;
  cursor: pointer;
  position: relative;
}
.gallery-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}
.gallery--landscape .gallery-frame img {
  aspect-ratio: 2.4 / 1;
  object-fit: cover;
  object-position: 50% 40%;
}
.gallery-caption {
  font-size: 0.88rem;
  color: var(--muted);
  padding: 0.7rem 1.3rem 0;
  min-height: 1.4em;
}
.gallery-thumbs {
  display: flex;
  gap: 0.45rem;
  padding: 0.75rem 1.3rem 0;
}
.gallery-thumbs button {
  border: 2px solid transparent;
  padding: 0;
  border-radius: 0.55rem;
  overflow: hidden;
  width: 3.4rem;
  height: 3.4rem;
  cursor: pointer;
  background: var(--paper-3);
}
.gallery-thumbs button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-thumbs button[aria-current="true"] { border-color: var(--copper); }
.gallery-hint {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  background: rgba(28, 23, 18, 0.7);
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  pointer-events: none;
}

/* Loose-leash feature */
.leash-feature {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  margin-top: 2.75rem;
  padding-top: 2.75rem;
  border-top: 1px solid var(--line);
}
.leash-feature figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-3);
}
.leash-feature img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 55% 50%; }
.leash-copy blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
}
@media (min-width: 800px) {
  .leash-feature { grid-template-columns: 0.9fr 1.1fr; gap: 2.5rem; }
}

/* Timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--line);
}
.timeline li {
  position: relative;
  padding: 0 0 1.6rem 1.5rem;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -0.42rem;
  top: 0.35rem;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--copper);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--paper);
}
.section--alt .timeline li::before { box-shadow: 0 0 0 4px var(--paper-2); }
.timeline time, .timeline .when {
  display: block;
  color: var(--copper-deep);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}
.timeline strong { display: block; font-family: var(--font-display); font-size: 1.2rem; font-weight: 560; }
.timeline p { color: var(--ink-soft); font-size: 0.98rem; margin-top: 0.2rem; }
.est { font-weight: 500; font-size: 0.8rem; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }

/* Puppies */
.puppies-soon {
  text-align: center;
  padding: 2.5rem 1.25rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(244,238,228,0.3), rgba(251,247,241,0.8));
}
.puppy-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin: 1.5rem auto 0;
  max-width: 28rem;
}
.puppy-slot {
  aspect-ratio: 1;
  border-radius: 0.85rem;
  background: var(--paper-3);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Expect / comes home */
.split-list, .expect-grid {
  display: grid;
  gap: 1.1rem;
}
.expect-card, .kit-item {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
}
.section--alt .expect-card, .section--alt .kit-item { background: #fff; }
.expect-card h3, .kit-item h3 { margin-bottom: 0.4rem; }
@media (min-width: 700px) {
  .expect-grid { grid-template-columns: 1fr 1fr; }
  .kit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
}

.to-confirm {
  display: inline-block;
  margin-left: 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper-deep);
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  vertical-align: middle;
}

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.steps li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.9rem;
  align-items: start;
}
.steps .num {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper-2);
  font-family: var(--font-display);
  font-weight: 560;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 800px) {
  .steps { grid-template-columns: 1fr 1fr; }
}

/* FAQ */
.faq { display: grid; gap: 0.6rem; }
.faq details {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 0.15rem 1.1rem;
}
.section--alt .faq details { background: #fff; }
.faq summary {
  cursor: pointer;
  font-weight: 550;
  padding: 0.95rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--copper);
  font-weight: 400;
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 1rem; color: var(--ink-soft); }

/* Form */
.form-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.15rem);
  padding: 1.5rem 1.25rem 1.75rem;
  box-shadow: var(--shadow);
}
@media (min-width: 700px) {
  .form-card { padding: 2rem 2rem 2.15rem; }
}
.form-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .form-grid--2 { grid-template-columns: 1fr 1fr; }
}
label { display: block; font-size: 0.88rem; font-weight: 520; margin-bottom: 0.35rem; }
.req { color: var(--copper-deep); }
input, select, textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  padding: 0.7rem 0.8rem;
  appearance: none;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--copper);
  outline-offset: 1px;
  border-color: var(--copper);
}
textarea { min-height: 7rem; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note, .form-error, .form-success {
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.form-note { background: var(--sage-soft); color: var(--sage); }
.form-error { background: #f6e4df; color: var(--danger); }
.form-success {
  background: var(--sage-soft);
  color: var(--sage);
  padding: 1.5rem;
  text-align: center;
}
.form-success h3 { margin-bottom: 0.35rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.25rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: grid;
  gap: 0.75rem;
}
.site-footer strong { color: var(--ink-soft); }
.site-footer a { color: var(--ink-soft); }

.muted { color: var(--muted); }
.fine { font-size: 0.9rem; color: var(--muted); }



.countdown-cell strong.is-tick {
  animation: tickBounce 0.45s cubic-bezier(0.22, 1.35, 0.36, 1);
}
@keyframes tickBounce {
  0% { transform: translateY(0) scale(1); }
  40% { transform: translateY(-0.18em) scale(1.07); }
  100% { transform: translateY(0) scale(1); }
}

.paw-drift {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.paw-drift-item {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: calc(1.6rem * var(--sc, 1));
  height: calc(1.6rem * var(--sc, 1));
  color: var(--copper);
  opacity: 0.13;
  animation: pawFloat var(--dur, 12s) ease-in-out var(--d, 0s) infinite;
}
.hero-grid { position: relative; z-index: 1; }
@keyframes pawFloat {
  0%, 100% { transform: translate(0, 0) rotate(-8deg); }
  50% { transform: translate(0.4rem, -1.1rem) rotate(10deg); }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(1.15rem);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].is-inview {
  opacity: 1;
  transform: none;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .parent-card,
  .blend[data-blend-state="done"] .blend-card {
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
  }
  .parent-card:hover,
  .blend[data-blend-state="done"] .blend-card:hover {
    transform: perspective(900px) rotateX(2deg) rotateY(-3deg) translateY(-5px);
    box-shadow: 0 22px 44px rgba(28, 23, 18, 0.16);
  }
}

/* Blend / "what the pups might look like" */
.blend {
  --chip-x: -12rem;
  --chip-y: 0rem;
  --chip-r: -22deg;
  --chip-s: 0.7;
  --chip-o: 0;
  --btb-x: 12rem;
  --btb-y: 0rem;
  --btb-r: 22deg;
  --btb-s: 0.7;
  --btb-o: 0;
  --glow-s: 0.3;
  --glow-o: 0;
  --mark-o: 0;
  --mark-s: 0.8;
  --merge-s: 0;
  --merge-o: 0;
  --cap-o: 1;
  padding: 2.75rem 0 3.1rem;
  background:
    radial-gradient(ellipse 70% 50% at 50% 22%, rgba(154, 112, 67, 0.1), transparent 62%),
    var(--paper);
  overflow: clip;
}
.blend-head { text-align: center; max-width: 40rem; margin: 0 auto 1.75rem; }
.blend-head p { color: var(--ink-soft); }

.blend-stage {
  position: relative;
  margin: 0 auto 0.35rem;
  max-width: 42rem;
  min-height: 13.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blend-orbit {
  position: relative;
  width: 100%;
  height: 8.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blend-parent {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 2;
  width: 8.5rem;
  margin: 0;
  margin-left: -4.25rem;
  transform: translate(var(--chip-x), var(--chip-y)) rotate(var(--chip-r)) scale(var(--chip-s));
  opacity: var(--chip-o);
  will-change: transform, opacity;
}
.blend-parent.is-btb {
  z-index: 2;
  transform: translate(var(--btb-x), var(--btb-y)) rotate(var(--btb-r)) scale(var(--btb-s));
  opacity: var(--btb-o);
}
.blend-parent.is-chip { z-index: 3; }
.blend-parent .blend-frame {
  width: 8.5rem;
  height: 8.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow:
    0 0 0 1px var(--line),
    0 12px 30px rgba(28, 23, 18, 0.16);
  background: var(--paper-3);
  transition: width 0.55s ease, height 0.55s ease, border-width 0.55s ease;
}
.blend-parent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blend-parent.is-chip img { object-position: 40% 20%; }
.blend-parent.is-btb img { object-position: 48% 12%; }
.blend-parent figcaption {
  display: block;
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: var(--cap-o);
}
.blend-mark {
  position: absolute;
  left: 50%;
  top: 4.25rem;
  transform: translate(-50%, -50%) scale(var(--mark-s));
  z-index: 4;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2rem;
  color: var(--copper);
  pointer-events: none;
  opacity: var(--mark-o);
  text-shadow: 0 0 24px rgba(251, 247, 241, 0.95);
}
.blend-glow {
  position: absolute;
  left: 50%;
  top: 4.25rem;
  width: 10rem;
  height: 10rem;
  transform: translate(-50%, -50%) scale(var(--glow-s));
  border-radius: 50%;
  background: radial-gradient(circle, rgba(154, 112, 67, 0.45), rgba(154, 112, 67, 0) 68%);
  opacity: var(--glow-o);
  pointer-events: none;
  z-index: 1;
  filter: blur(2px);
}
.blend-merge {
  position: absolute;
  left: 50%;
  top: 4.25rem;
  width: 8.6rem;
  height: 8.6rem;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(var(--merge-s));
  opacity: var(--merge-o);
  z-index: 5;
  pointer-events: none;
  background:
    radial-gradient(circle at 38% 32%, #fff8ee 0 18%, #f0d7a8 32%, #c4924e 58%, #9a7043 72%, transparent 74%);
  box-shadow:
    0 0 0 3px rgba(255, 248, 238, 0.55),
    0 0 36px 10px rgba(154, 112, 67, 0.42);
}
.blend-merge-core {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 35%, #fff 0, rgba(255, 255, 255, 0.15) 55%, transparent 70%);
}

.blend-burst {
  position: absolute;
  left: 50%;
  top: 4.25rem;
  width: 0;
  height: 0;
  z-index: 6;
  pointer-events: none;
}
.spark {
  position: absolute;
  left: 0;
  top: 0;
  width: 0.7rem;
  height: 0.7rem;
  margin: -0.35rem 0 0 -0.35rem;
  border-radius: 50%;
  background: var(--copper);
  opacity: 0;
  transform: rotate(var(--a)) translateY(0) scale(0.3);
}
.spark--paw {
  width: 1rem;
  height: 1rem;
  margin: -0.5rem 0 0 -0.5rem;
  border-radius: 0;
  background-color: var(--copper-deep);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='%237a5630'><ellipse cx='7' cy='8.5' rx='3.1' ry='3.8' transform='rotate(-20 7 8.5)'/><ellipse cx='14' cy='5.6' rx='3.2' ry='3.9'/><ellipse cx='21.4' cy='6.6' rx='3.1' ry='3.8' transform='rotate(16 21.4 6.6)'/><ellipse cx='26.2' cy='11.4' rx='2.7' ry='3.3' transform='rotate(32 26.2 11.4)'/><path d='M16 14.2c-5.2 0-8.7 4.1-8.7 8.1 0 2.9 2.3 4.5 5 3.5 1.3-.5 2-.5 2.9 0 1.1.5 1.7.5 2.6 0 1-.5 1.7-.5 2.9 0 2.7 1 5-0.6 5-3.5 0-4-3.5-8.1-8.7-8.1z'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  background-color: transparent;
}
.blend.is-bursting .spark {
  animation: sparkFly 0.95s ease-out forwards;
  animation-delay: var(--delay, 0s);
}
@keyframes sparkFly {
  0% { opacity: 0; transform: rotate(var(--a)) translateY(0) scale(0.35); }
  18% { opacity: 0.95; }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(-7.8rem) scale(0.85); }
}

/* After the merge, parents settle as a small pair above the scale */
.blend[data-blend-state="done"] .blend-parent,
.blend[data-blend-state="done"] .blend-parent.is-chip,
.blend[data-blend-state="done"] .blend-parent.is-btb {
  transform: none;
  opacity: 1;
  position: relative;
  left: auto;
  top: auto;
  margin-left: 0;
}
.blend[data-blend-state="done"] .blend-stage {
  min-height: 0;
  margin: 0 auto 1.15rem;
}
.blend[data-blend-state="done"] .blend-orbit {
  height: auto;
  gap: 0;
}
.blend[data-blend-state="done"] .blend-parent,
.blend[data-blend-state="done"] .blend-parent .blend-frame {
  width: 4.6rem;
}
.blend[data-blend-state="done"] .blend-parent .blend-frame {
  height: 4.6rem;
  border-width: 2px;
}
.blend[data-blend-state="done"] .blend-mark {
  opacity: 1;
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  font-size: 1.35rem;
  margin: 0 0.55rem 1.1rem;
}
.blend[data-blend-state="done"] .blend-glow,
.blend[data-blend-state="done"] .blend-merge,
.blend[data-blend-state="done"] .blend-burst { opacity: 0; visibility: hidden; }
.blend[data-blend-state="done"] .blend-parent figcaption {
  opacity: 1;
  font-size: 0.64rem;
  margin-top: 0.3rem;
}
@media (min-width: 600px) {
  .blend-orbit { height: 10.2rem; }
  .blend-parent,
  .blend-parent .blend-frame { width: 10rem; }
  .blend-parent { margin-left: -5rem; }
  .blend-parent .blend-frame { height: 10rem; }
  .blend-stage { min-height: 15.25rem; }
  .blend-mark,
  .blend-glow,
  .blend-merge,
  .blend-burst { top: 5rem; }
  .blend-glow { width: 12rem; height: 12rem; }
  .blend[data-blend-state="done"] .blend-parent,
  .blend[data-blend-state="done"] .blend-parent .blend-frame {
    width: 5.25rem;
  }
  .blend[data-blend-state="done"] .blend-parent .blend-frame { height: 5.25rem; }
}

.blend-cards {
  list-style: none;
  margin: 0.6rem 0 0.7rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr 1fr;
}
.blend-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.1rem);
  overflow: hidden;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(var(--dx, 0), var(--dy, 2rem)) scale(0.12) rotate(var(--tilt, 0deg));
}
.blend.is-resolved .blend-card {
  animation: cardPop 0.85s cubic-bezier(0.22, 1.55, 0.36, 1) forwards;
  animation-delay: calc(var(--i, 0) * 0.09s);
}
.blend[data-blend-state="done"] .blend-card {
  animation: none;
  opacity: 1;
  transform: none;
}
@keyframes cardPop {
  0% {
    opacity: 0;
    transform: translate(var(--dx, 0), var(--dy, 2rem)) scale(0.12) rotate(var(--tilt, 0deg));
  }
  68% {
    opacity: 1;
    transform: translate(0, 0) scale(1.06) rotate(0deg);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
}
.blend-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 18%;
  background: #f4eee4;
}
.blend-card .card-body { padding: 0.65rem 0.7rem 0.8rem; }
.blend-card h3 {
  font-size: 0.98rem;
  margin-bottom: 0.15rem;
  letter-spacing: -0.02em;
}
.blend-card p { font-size: 0.82rem; color: var(--ink-soft); }
.blend-card .card-tag {
  display: inline-block;
  margin-bottom: 0.28rem;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper-deep);
}

.blend-legend {
  margin: 0.35rem 0 1rem;
}
.blend-legend-bar {
  height: 0.42rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #f7f1e6 0%, #e4d9c6 14%, #c8b49a 32%, #6e675d 58%, #3a342e 78%, #1c1712 100%);
  box-shadow: inset 0 0 0 1px rgba(28, 23, 18, 0.08);
  position: relative;
}
.blend-legend-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, transparent 0, transparent calc(12.5% - 1px), rgba(255,255,255,0.45) calc(12.5% - 1px), rgba(255,255,255,0.45) 12.5%);
  border-radius: inherit;
  opacity: 0.7;
  pointer-events: none;
}
.blend-legend-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper-deep);
}
.blend-swipe-hint {
  display: none;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 0.35rem;
}
.blend-note {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto;
}
.blend-toolbar {
  text-align: center;
  margin: 1.1rem 0 0;
}
.blend-replay {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
}
.blend-replay:hover,
.blend-replay:focus-visible {
  background: var(--ink);
  color: var(--paper-2);
  border-color: var(--ink);
}
.blend-replay:disabled {
  opacity: 0.45;
  cursor: default;
}

@media (max-width: 699px) {
  .blend-cards { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
  .blend-card .card-body { padding: 0.55rem 0.6rem 0.7rem; }
  .blend-card h3 { font-size: 0.92rem; }
  .blend-card p { display: none; }
}

@media (min-width: 700px) {
  .blend-cards { grid-template-columns: repeat(4, 1fr); gap: 0.85rem; }
  .blend-card h3 { font-size: 1.02rem; }
}

@media (min-width: 1100px) {
  .blend-cards { grid-template-columns: repeat(8, 1fr); gap: 0.65rem; }
  .blend-card .card-body { padding: 0.55rem 0.45rem 0.7rem; }
  .blend-card h3 { font-size: 0.9rem; }
  .blend-card p { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .paw-drift,
  .blend-replay,
  .blend-burst,
  .blend-merge,
  .blend-glow,
  .blend-swipe-hint { display: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .blend-parent,
  .blend-parent.is-chip,
  .blend-parent.is-btb,
  .blend-mark,
  .blend-card {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    margin-left: 0 !important;
  }
  .blend-parent figcaption { opacity: 1 !important; }
  .countdown-cell strong.is-tick { animation: none !important; }
}
