/* โชกุนฟาร์ม — cute pink logo theme */

:root {
  /* Brand — from farm logo */
  --accent: #e83e8c;
  --accent-hover: #c92e74;
  --accent-soft: #ffe1ef;
  --accent-soft-2: #fff5f9;
  --accent-gold: #f5c84c;
  --available: #2f8f6a;
  --reserved: #c47a1e;
  --sold: #8a8580;

  --apple-bg: #fffafc;
  --apple-surface: #ffffff;
  --apple-elevated: #ffffff;
  --apple-text-primary: #2a1a22;
  --apple-text-secondary: #7a6570;
  --apple-card-border: rgba(232, 62, 140, 0.14);
  --apple-accent: var(--accent);
  --apple-muted-bg: #ffeef5;

  --apple-shadow-sm: 0 1px 3px rgba(232, 62, 140, 0.08), 0 0 0 1px rgba(232, 62, 140, 0.06);
  --apple-shadow-md: 0 8px 24px rgba(232, 62, 140, 0.12);
  --apple-shadow-lg: 0 16px 40px rgba(232, 62, 140, 0.16);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 980px;

  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --duration: 300ms;
  --theme-transition: background-color 0.4s ease, color 0.3s ease,
    border-color 0.4s ease, box-shadow 0.4s ease;

  --font-display: "Anuphan", "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Anuphan", "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --header-h: 64px;
  --container: 1120px;
  --pad-x: 16px;
}

html[lang="zh-Hans"] {
  --font-display: "Anuphan", "Noto Sans SC", "Inter", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Anuphan", "Inter", system-ui, sans-serif;
}

html[lang="en"] {
  --font-display: "Inter", "Anuphan", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Inter", "Anuphan", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
}

@media (min-width: 576px) {
  :root {
    --pad-x: 24px;
  }
}

@media (min-width: 1024px) {
  :root {
    --pad-x: 32px;
  }
}

/* Force pink light theme */
@media (prefers-color-scheme: dark) {
  :root {
    --apple-bg: #fffafc;
    --apple-surface: #ffffff;
    --apple-elevated: #ffffff;
    --apple-text-primary: #2a1a22;
    --apple-text-secondary: #7a6570;
    --apple-card-border: rgba(232, 62, 140, 0.14);
    --apple-muted-bg: #ffeef5;
    --accent: #e83e8c;
    --accent-hover: #c92e74;
    --apple-shadow-sm: 0 1px 3px rgba(232, 62, 140, 0.08), 0 0 0 1px rgba(232, 62, 140, 0.06);
    --apple-shadow-md: 0 8px 24px rgba(232, 62, 140, 0.12);
    --apple-shadow-lg: 0 16px 40px rgba(232, 62, 140, 0.16);
    --available: #2f8f6a;
    --reserved: #c47a1e;
    --sold: #8a8580;
    color-scheme: light;
  }
}

[data-theme="dark"],
[data-theme="light"] {
  --apple-bg: #fffafc;
  --apple-surface: #ffffff;
  --apple-elevated: #ffffff;
  --apple-text-primary: #2a1a22;
  --apple-text-secondary: #7a6570;
  --apple-card-border: rgba(232, 62, 140, 0.14);
  --apple-muted-bg: #ffeef5;
  --accent: #e83e8c;
  --accent-hover: #c92e74;
  color-scheme: light;
}

/* Legacy token aliases */
:root {
  --n-50: var(--apple-bg);
  --n-100: var(--apple-muted-bg);
  --n-200: var(--apple-card-border);
  --n-400: var(--apple-text-secondary);
  --n-600: var(--apple-text-secondary);
  --n-800: var(--apple-text-primary);
  --n-900: var(--apple-text-primary);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(15px, 1vw + 0.35rem, 16.5px);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.005em;
  color: var(--apple-text-primary);
  background: var(--apple-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: var(--theme-transition);
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--apple-text-primary);
  color: var(--apple-bg);
  padding: 8px 16px;
  z-index: 100;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* ---------- Type ---------- */
.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--apple-text-secondary);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--apple-text-primary);
  margin: 0;
}

h1 {
  font-size: clamp(36px, 4.8vw + 0.8rem, 64px);
  font-weight: 500;
  line-height: 1.12;
}

h2 {
  font-size: clamp(26px, 2.2vw + 0.6rem, 40px);
  font-weight: 500;
  line-height: 1.25;
}

h3 {
  font-size: clamp(18px, 0.9vw + 1rem, 22px);
  font-weight: 500;
  line-height: 1.35;
}

/* Formal hero title */
.hero-title-line {
  display: block;
}

.hero-title-accent {
  color: var(--accent);
  font-weight: 600;
}

.hero .eyebrow {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
}

.hero-lead {
  font-size: clamp(16px, 1vw + 0.35rem, 18px);
  line-height: 1.7;
  color: var(--apple-text-secondary);
  font-weight: 400;
}

/* ---------- Buttons (pill, not square) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 44px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--duration) var(--ease),
    color var(--duration) var(--ease), border-color var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease), transform 150ms var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: var(--apple-shadow-sm);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: var(--apple-shadow-md);
}

.btn-ghost {
  background: var(--apple-elevated);
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 28%, transparent);
  box-shadow: var(--apple-shadow-sm);
}

.btn-ghost:hover {
  background: var(--accent-soft-2);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

.btn-sm {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

/* App multi-page tabs */
.app-page[hidden] {
  display: none !important;
}

.app-page.is-active {
  animation: page-in 220ms var(--ease);
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-page.is-active {
    animation: none;
  }
}

.nav a.is-active,
.nav-drawer-links a.is-active {
  color: var(--apple-text-primary);
  font-weight: 600;
}

.brand {
  cursor: pointer;
}

/* ---------- Header (frosted glass) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--apple-bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--apple-card-border);
  transition: var(--theme-transition);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 8px var(--pad-x);
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

@media (min-width: 900px) {
  .header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 20px;
  }
}

.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--apple-shadow-sm);
  border: 2px solid #fff;
  flex-shrink: 0;
  background: var(--accent-soft);
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.7vw, 18px);
  font-weight: 500;
  color: var(--accent);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 11px;
  color: var(--apple-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 400;
  letter-spacing: 0.02em;
}

@media (max-width: 379px) {
  .brand-sub {
    display: none;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }
}

.nav {
  display: none;
  justify-content: center;
  gap: clamp(8px, 1.5vw, 22px);
  font-size: 14px;
}

.nav a {
  text-decoration: none;
  color: var(--apple-text-secondary);
  padding: 8px 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-full);
  font-weight: 450;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: color 180ms var(--ease), background 180ms var(--ease);
}

.nav a:hover,
.nav a.is-active {
  color: var(--apple-text-primary);
  background: var(--apple-muted-bg);
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  gap: 2px;
  border-radius: var(--radius-full);
  border: 1px solid var(--apple-card-border);
  background: var(--apple-muted-bg);
  box-shadow: var(--apple-shadow-sm);
}

.lang-seg {
  min-width: 40px;
  min-height: 34px;
  padding: 4px 10px;
  border: none;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--apple-text-secondary);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 160ms var(--ease), color 160ms var(--ease),
    box-shadow 160ms var(--ease);
}

.lang-seg:hover {
  color: var(--apple-text-primary);
}

.lang-seg.is-active {
  background: var(--apple-bg);
  color: var(--accent);
  box-shadow: var(--apple-shadow-sm);
}

@media (min-width: 480px) {
  .lang-seg {
    min-width: 44px;
    min-height: 36px;
    font-size: 13px;
    padding: 4px 12px;
  }
}

.nav-toggle {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: var(--apple-elevated);
  border: 1px solid var(--apple-card-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  color: var(--apple-text-primary);
  box-shadow: var(--apple-shadow-sm);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 15px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -5px;
}

.nav-toggle span::after {
  top: 5px;
}

.nav-drawer {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: color-mix(in srgb, var(--apple-bg) 94%, transparent);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid var(--apple-card-border);
  padding: 8px var(--pad-x) 16px;
  z-index: 39;
  box-shadow: var(--apple-shadow-lg);
}

.nav-drawer.is-open {
  display: block;
}

.nav-drawer-links a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 4px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  color: var(--apple-text-primary);
  border-bottom: 1px solid var(--apple-card-border);
}

.nav-drawer-foot {
  display: flex;
  padding-top: 14px;
}

.lang-switch-drawer {
  width: 100%;
  justify-content: space-between;
}

.lang-switch-drawer .lang-seg {
  flex: 1;
  min-height: 42px;
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .tab-bar {
    display: none;
  }

  #app {
    padding-bottom: 0 !important;
  }

  .chat-root {
    left: 24px;
    bottom: 24px;
  }
}

/* ===================== SMOOTH / APPLE MOTION ===================== */
:root {
  --ease-apple: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --dur-fast: 180ms;
  --dur: 320ms;
  --dur-slow: 480ms;
  --dur-hero: 700ms;
}

.btn {
  transition:
    transform var(--dur) var(--ease-spring),
    background var(--dur) var(--ease-apple),
    color var(--dur) var(--ease-apple),
    border-color var(--dur) var(--ease-apple),
    box-shadow var(--dur) var(--ease-apple);
}

.btn:active {
  transform: scale(0.96);
  transition-duration: var(--dur-fast);
}

.lang-seg,
.chip,
.pedigree-tag,
.tab-item,
.nav a {
  transition:
    color var(--dur-fast) var(--ease-apple),
    background var(--dur) var(--ease-apple),
    transform var(--dur) var(--ease-spring),
    box-shadow var(--dur) var(--ease-apple),
    border-color var(--dur) var(--ease-apple);
}

.dog-card,
.gallery-item {
  transition:
    transform var(--dur-slow) var(--ease-spring),
    box-shadow var(--dur-slow) var(--ease-apple),
    border-color var(--dur) var(--ease-apple),
    background var(--dur) var(--ease-apple);
}

.dog-card:hover {
  transform: translateY(-6px) scale(1.01);
  transition-duration: var(--dur-slow);
}

.dog-card:active {
  transform: translateY(-2px) scale(0.99);
  transition-duration: var(--dur-fast);
}

.gallery-item:hover {
  transform: translateY(-4px) scale(1.02);
}

.hero-lux-dog {
  transition: translate 400ms var(--ease-out);
}

/* Page enter — fluid Apple feel */
.app-page.page-enter {
  animation: page-flux var(--dur-hero) var(--ease-spring) both;
}

@keyframes page-flux {
  0% {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.985);
    filter: blur(2px);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

/* Stagger children on page enter */
.app-page.page-enter .section-head,
.app-page.page-enter .hero-lux-copy,
.app-page.page-enter .hero-lux-stage,
.app-page.page-enter .filters-tabs,
.app-page.page-enter .contact-stack,
.app-page.page-enter .contact-form {
  animation: rise-in var(--dur-hero) var(--ease-spring) both;
}

.app-page.page-enter .hero-lux-stage {
  animation-delay: 80ms;
}

.app-page.page-enter .filters-tabs {
  animation-delay: 40ms;
}

.app-page.page-enter .catalog-grid,
.app-page.page-enter .gallery-grid,
.app-page.page-enter .tips-list {
  animation: rise-in calc(var(--dur-hero) + 40ms) var(--ease-spring) both;
  animation-delay: 100ms;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Cards cascade */
.app-page.page-enter .dog-card,
.app-page.page-enter .gallery-item,
.app-page.page-enter .tip {
  animation: rise-in 520ms var(--ease-spring) both;
}

.app-page.page-enter .dog-card:nth-child(1),
.app-page.page-enter .gallery-item:nth-child(1) {
  animation-delay: 60ms;
}
.app-page.page-enter .dog-card:nth-child(2),
.app-page.page-enter .gallery-item:nth-child(2) {
  animation-delay: 110ms;
}
.app-page.page-enter .dog-card:nth-child(3),
.app-page.page-enter .gallery-item:nth-child(3) {
  animation-delay: 160ms;
}
.app-page.page-enter .dog-card:nth-child(4),
.app-page.page-enter .gallery-item:nth-child(4) {
  animation-delay: 210ms;
}
.app-page.page-enter .dog-card:nth-child(5),
.app-page.page-enter .gallery-item:nth-child(5) {
  animation-delay: 260ms;
}
.app-page.page-enter .dog-card:nth-child(6) {
  animation-delay: 310ms;
}

/* Floating lux dogs — smoother longer ease */
@keyframes lux-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -18px, 0) scale(1.015);
  }
}

.hero-lux-dog-main {
  animation-duration: 9s;
  animation-timing-function: var(--ease-apple);
}

.hero-lux-glow {
  animation: glow-breathe 6.5s ease-in-out infinite;
}

.hero-lux-ring {
  animation: ring-breathe 7.5s ease-in-out infinite;
}

@keyframes glow-breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

@keyframes ring-breathe {
  0%,
  100% {
    transform: translateY(-50%) scale(1);
    opacity: 0.85;
  }
  50% {
    transform: translateY(-50%) scale(1.03);
    opacity: 1;
  }
}

/* Modal */
.modal-panel {
  animation: modal-in 380ms var(--ease-spring);
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal::backdrop {
  animation: fade-in var(--dur) var(--ease-apple);
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Chat panel */
.chat-panel {
  animation: chat-flux 360ms var(--ease-spring);
}

@keyframes chat-flux {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.chat-fab {
  transition:
    transform var(--dur) var(--ease-spring),
    background var(--dur) var(--ease-apple),
    box-shadow var(--dur) var(--ease-apple);
}

.chat-fab:hover {
  transform: scale(1.06);
}

.chat-fab:active {
  transform: scale(0.94);
  transition-duration: 120ms;
}

/* Icons in buttons */
.icon {
  flex-shrink: 0;
}

.btn {
  gap: 8px;
}

.btn:has(.icon) {
  justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
  .app-page.page-enter,
  .app-page.page-enter *,
  .hero-lux-glow,
  .hero-lux-ring,
  .modal-panel,
  .chat-panel {
    animation: none !important;
  }

  .dog-card:hover,
  .gallery-item:hover {
    transform: none;
  }
}

/* ===================== MOBILE BOTTOM TAB BAR ===================== */
.tab-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, #fff 88%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--apple-card-border);
  box-shadow: 0 -8px 30px rgba(232, 62, 140, 0.08);
}

.tab-item {
  appearance: none;
  border: none;
  background: transparent;
  min-height: 56px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--apple-text-secondary);
  font-family: var(--font-body);
  cursor: pointer;
  position: relative;
}

.tab-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 32px;
  border-radius: 999px;
  transition:
    background var(--dur) var(--ease-spring),
    color var(--dur) var(--ease-apple),
    transform var(--dur) var(--ease-spring);
}

.tab-label {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.1;
  transition: color var(--dur-fast) var(--ease-apple);
}

.tab-item.is-active {
  color: var(--accent);
}

.tab-item.is-active .tab-icon {
  background: var(--accent-soft);
  color: var(--accent);
  transform: scale(1.08);
}

.tab-item.is-active .tab-label {
  color: var(--accent);
  font-weight: 700;
}

.tab-item:active .tab-icon {
  transform: scale(0.92);
}

/* Desktop header nav visible again */
@media (min-width: 900px) {
  .header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .nav {
    display: flex;
  }
}

/* Mobile: hide top text nav, show tab bar */
@media (max-width: 899px) {
  .nav {
    display: none !important;
  }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  #app {
    padding-bottom: 84px;
  }

  .chat-root {
    bottom: 88px;
    left: 14px;
  }

  .site-footer {
    padding-bottom: 88px;
  }

  .hero-lux {
    padding-bottom: 32px;
    min-height: auto;
  }
}

/* ---------- Hero — logo centerpiece, no big dog photo ---------- */
.hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px var(--pad-x) 40px;
  display: grid;
  gap: 20px;
  align-items: center;
}

.hero-compact {
  min-height: auto;
}

@media (min-width: 768px) {
  .hero {
    padding: 48px var(--pad-x) 64px;
  }

  .hero-compact {
    min-height: calc(100vh - var(--header-h) - 40px);
  }
}

.hero-copy {
  max-width: 40ch;
}

.hero-copy-center {
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo-wrap {
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: var(--apple-shadow-md);
  background: var(--accent-soft);
}

@media (min-width: 576px) {
  .hero-logo-wrap {
    width: 148px;
    height: 148px;
    margin-bottom: 24px;
  }
}

@media (min-width: 900px) {
  .hero-logo-wrap {
    width: 168px;
    height: 168px;
  }
}

.hero-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
}

.hero-title-accent {
  color: var(--accent);
}

.hero-lead {
  margin: 16px 0 0;
  color: var(--apple-text-secondary);
  font-size: clamp(15px, 1vw + 0.35rem, 17px);
  line-height: 1.7;
}

.hero-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 28px;
  width: 100%;
  max-width: 360px;
}

.hero-actions-center {
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 480px) {
  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: none;
  }

  .hero-actions .btn {
    min-width: 160px;
    flex: 0 1 auto;
  }
}

@media (min-width: 768px) {
  .hero-actions .btn {
    min-width: 176px;
    padding-left: 32px;
    padding-right: 32px;
  }
}

.hero-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-height: min(70vh, 560px);
  background:
    radial-gradient(ellipse 60% 40% at 50% 78%, rgba(139, 94, 60, 0.08), transparent 70%),
    var(--apple-muted-bg);
  border: 1px solid var(--apple-card-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--apple-shadow-md);
  overflow: hidden;
  transition: var(--theme-transition);
}

@media (min-width: 1024px) {
  .hero-stage {
    aspect-ratio: 5 / 4;
    max-height: 560px;
  }
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-poster {
  position: absolute;
  inset: 8% 10%;
  width: 80%;
  height: 84%;
  object-fit: contain;
  margin: auto;
  transition: opacity 400ms var(--ease);
  pointer-events: none;
}

.hero-stage.is-webgl .hero-poster {
  opacity: 0;
}

/* ---------- Sections ---------- */
.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px var(--pad-x);
}

@media (min-width: 768px) {
  .section {
    padding: 80px var(--pad-x);
  }
}

@media (min-width: 1280px) {
  .section {
    padding: 96px var(--pad-x);
  }
}

.section-alt {
  max-width: none;
  background: var(--apple-muted-bg);
  border-top: 1px solid var(--apple-card-border);
  border-bottom: 1px solid var(--apple-card-border);
  transition: var(--theme-transition);
}

.section-alt .section-head,
.section-alt .gallery-grid {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  margin-bottom: 28px;
  max-width: 42rem;
  position: relative;
}

@media (min-width: 768px) {
  .section-head {
    margin-bottom: 40px;
  }
}

.section-head .eyebrow {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
}

.section-desc {
  margin: 14px 0 0;
  color: var(--apple-text-secondary);
  max-width: 40rem;
  line-height: 1.75;
  font-weight: 400;
}

.section-head h2 {
  margin-top: 4px;
}

.section-desc {
  margin: 14px 0 0;
  color: var(--apple-text-secondary);
  max-width: 40rem;
}

/* ---------- Filters / tabs ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.chip {
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid var(--apple-card-border);
  background: var(--apple-elevated);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--apple-text-secondary);
  cursor: pointer;
  box-shadow: var(--apple-shadow-sm);
  transition: var(--theme-transition), transform 150ms var(--ease);
}

.chip:hover {
  color: var(--apple-text-primary);
  background: var(--apple-surface);
}

.chip.is-active {
  background: var(--apple-text-primary);
  border-color: var(--apple-text-primary);
  color: var(--apple-bg);
}

/* Marketplace tabs — soft underline, scrollable on phone */
.filters-tabs {
  gap: 0;
  border-bottom: 1px solid var(--apple-card-border);
  margin-bottom: 24px;
  overflow-x: auto;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0;
}

.filters-tabs::-webkit-scrollbar {
  display: none;
}

.filters-tabs .chip {
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: transparent;
  box-shadow: none;
  white-space: nowrap;
  padding: 12px 16px;
  color: var(--apple-text-secondary);
}

.filters-tabs .chip:hover {
  background: transparent;
  color: var(--apple-text-primary);
}

.filters-tabs .chip.is-active {
  background: transparent;
  color: var(--apple-text-primary);
  border-bottom: 2px solid var(--accent);
  font-weight: 500;
}

/* ---------- Role badge ---------- */
.role-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  font-size: 11px;
  font-weight: 500;
  padding: 5px 10px;
  background: var(--apple-text-primary);
  color: var(--apple-bg);
  border-radius: var(--radius-full);
  box-shadow: var(--apple-shadow-sm);
}

.role-sire {
  background: var(--accent);
  color: #fff;
}

.role-dam {
  background: var(--apple-text-secondary);
  color: #fff;
}

.dog-card-media {
  position: relative;
}

/* Degrees */
.degree-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.degree-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border: 1px solid color-mix(in srgb, var(--accent-gold) 55%, transparent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent-gold) 14%, var(--apple-elevated));
  border-radius: var(--radius-full);
  line-height: 1.3;
}

/* Pedigree tags */
.pedigree-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.pedigree-tag {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  min-height: 36px;
  border: 1px solid var(--apple-card-border);
  background: var(--apple-surface);
  color: var(--apple-text-primary);
  border-radius: var(--radius-full);
  cursor: pointer;
  text-align: left;
  box-shadow: var(--apple-shadow-sm);
  transition: var(--theme-transition), transform 150ms var(--ease);
}

.pedigree-tag:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--apple-elevated));
}

.pedigree-tag.is-muted {
  cursor: default;
  color: var(--apple-text-secondary);
}

.pedigree-tag-lg {
  font-size: 14px;
  min-height: 44px;
  padding: 10px 16px;
}

.pedigree-row-lg {
  gap: 10px;
}

.dialog-block {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--apple-card-border);
}

.dialog-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--apple-text-secondary);
  letter-spacing: 0.04em;
}

.dialog-hint {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--apple-text-secondary);
}

.linkish {
  border: none;
  background: none;
  padding: 0;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--accent);
  cursor: pointer;
}

/* ---------- Catalog cards — rounded + shadow ---------- */
.catalog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 576px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (min-width: 768px) {
  .catalog-grid {
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

.dog-card {
  border: 1px solid var(--apple-card-border);
  background: var(--apple-elevated);
  border-radius: var(--radius-xl);
  padding: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--apple-shadow-sm);
  transition: var(--theme-transition), box-shadow var(--duration) var(--ease),
    transform var(--duration) var(--ease);
}

.dog-card-media {
  aspect-ratio: 1;
  background: var(--accent-soft-2);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--apple-card-border);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  position: relative;
  min-height: 0;
}

.dog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.dog-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.dog-card-name,
.dog-card-meta,
.dog-card-birth {
  max-width: 100%;
  word-break: break-word;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: var(--radius-md);
  background: var(--apple-surface);
}

.catalog-grid,
.gallery-grid {
  align-items: stretch;
}

.dog-card,
.gallery-item {
  min-width: 0;
  width: 100%;
}

.dog-card:hover {
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  box-shadow: var(--apple-shadow-md);
  transform: translateY(-3px);
}

.dog-card:active {
  transform: translateY(0);
}

.dog-card-media {
  aspect-ratio: 1;
  background: var(--apple-muted-bg);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--apple-card-border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.dog-card-media img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.dog-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

@media (min-width: 768px) {
  .dog-card-body {
    padding: 18px 20px 20px;
  }
}

.dog-card-name {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.6vw, 24px);
  font-weight: 500;
  line-height: 1.25;
  color: var(--apple-text-primary);
  letter-spacing: -0.015em;
}

.dog-card-meta {
  font-size: 14px;
  color: var(--apple-text-secondary);
}

.dog-card-birth {
  font-size: 12px;
  color: var(--n-600);
  opacity: 0.9;
}

.status-chip {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border: 1px solid currentColor;
  border-radius: var(--radius-full);
  margin-top: 4px;
}

.status-available {
  color: var(--available);
}

.status-reserved {
  color: var(--reserved);
}

.status-sold {
  color: var(--sold);
}

.status-stud,
.status-brood {
  color: var(--accent);
}

.empty-state {
  padding: 32px;
  border: 1px dashed var(--apple-card-border);
  border-radius: var(--radius-lg);
  background: var(--apple-elevated);
  color: var(--apple-text-secondary);
  text-align: center;
  box-shadow: var(--apple-shadow-sm);
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 576px) {
  .gallery-grid {
    gap: 16px;
  }
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

.gallery-item {
  border: 1px solid var(--apple-card-border);
  background: var(--apple-elevated);
  padding: 10px;
  cursor: pointer;
  border-radius: var(--radius-lg);
  box-shadow: var(--apple-shadow-sm);
  margin: 0;
  transition: var(--theme-transition), box-shadow var(--duration) var(--ease),
    transform var(--duration) var(--ease);
}

.gallery-item:hover {
  box-shadow: var(--apple-shadow-md);
  transform: translateY(-2px);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: var(--radius-md);
  background: var(--apple-surface);
}

.gallery-item figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--apple-text-secondary);
  text-align: center;
}

/* ---------- Tips ---------- */
.tips-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--apple-card-border);
}

.tip {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  padding: 24px 0;
  border-bottom: 1px solid var(--apple-card-border);
}

@media (min-width: 768px) {
  .tip {
    grid-template-columns: 56px 1fr;
    gap: 20px;
    padding: 28px 0;
  }
}

.tip-num {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--accent);
  line-height: 1.2;
}

.tip h3 {
  margin-bottom: 8px;
  font-weight: 500;
}

.tip p {
  margin: 0;
  color: var(--apple-text-secondary);
  max-width: 52ch;
  line-height: 1.75;
  font-weight: 400;
}

.tip-num {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--accent);
  line-height: 1.2;
  font-weight: 400;
  opacity: 0.85;
}

/* ---------- Contact ---------- */
.section-contact {
  padding-bottom: 80px;
}

@media (min-width: 768px) {
  .section-contact {
    padding-bottom: 96px;
  }
}

.contact-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
  max-width: 440px;
  margin: 0 0 28px;
}

.contact-stack .btn {
  width: 100%;
  min-height: 48px;
}

.contact-form {
  width: 100%;
  max-width: 440px;
  padding: 24px 20px;
  border: 1px solid var(--apple-card-border);
  border-radius: var(--radius-xl);
  background: var(--apple-elevated);
  box-shadow: var(--apple-shadow-sm);
}

@media (min-width: 768px) {
  .contact-form {
    padding: 32px;
  }
}

.contact-form .btn {
  width: 100%;
  min-height: 48px;
}

/* Language switch — pink active */
.lang-seg.is-active {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--apple-shadow-sm);
}

/* Filter chips active */
.chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.filters-tabs .chip.is-active {
  background: transparent;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

/* Status chips on cards */
.status-chip {
  border-radius: var(--radius-full);
}

/* Dialog CTA always full width */
.modal-body .btn-block,
#dog-dialog-cta {
  width: 100%;
  min-height: 48px;
}

/* Hero stage remnants — hidden; luxury stage replaces them */
#hero-canvas,
.hero-poster {
  display: none !important;
}

/* Touch: filter tabs scroll */
.filters-tabs {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.filters-tabs::-webkit-scrollbar {
  display: none;
}

@media (max-width: 359px) {
  .lang-seg {
    min-width: 36px;
    padding: 4px 8px;
  }

  .header-actions {
    gap: 6px;
  }
}

/* Nav drawer buttons */
.nav-drawer-links a {
  min-height: 52px;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 4px;
  border-bottom: none;
  background: var(--apple-muted-bg);
}

.nav-drawer-foot .lang-switch {
  border-color: color-mix(in srgb, var(--accent) 25%, transparent);
}

.contact-form {
  max-width: 440px;
  padding: 28px;
  border: 1px solid var(--apple-card-border);
  border-radius: var(--radius-xl);
  background: var(--apple-elevated);
  box-shadow: var(--apple-shadow-sm);
}

@media (min-width: 768px) {
  .contact-form {
    padding: 32px;
  }
}

.form-label {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--apple-text-secondary);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 14px;
}

.field span {
  color: var(--apple-text-secondary);
}

.field input,
.field select,
.field textarea {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--apple-card-border);
  border-radius: var(--radius-md);
  background: var(--apple-elevated);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--apple-text-primary);
  box-shadow: var(--apple-shadow-sm);
  transition: var(--theme-transition), border-color 150ms var(--ease);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  border-color: var(--accent);
  outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent);
  outline-offset: 1px;
}

.form-note {
  min-height: 1.4em;
  font-size: 14px;
  color: var(--available);
  margin: 12px 0 0;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--apple-card-border);
  background: var(--apple-bg);
  transition: var(--theme-transition);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 36px var(--pad-x);
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: start;
    padding: 40px var(--pad-x);
  }

  .footer-copy {
    grid-column: 1 / -1;
  }
}

.footer-inner p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--apple-text-secondary);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  font-size: 14px;
}

.footer-links a {
  color: var(--apple-text-primary);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Cloudflare Turnstile */
.turnstile-box {
  min-height: 0;
  margin: 8px 0 4px;
  display: flex;
  justify-content: center;
}

.turnstile-box:empty {
  margin: 0;
}

/* Bot verify gate — wait only */
.bot-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(800px 400px at 80% 0%, rgba(255, 225, 239, 0.7), transparent 55%),
    #fffafc;
}

.bot-gate[hidden] {
  display: none !important;
}

html.bot-gate-lock,
body.bot-gate-lock {
  overflow: hidden;
}

.bot-gate-card {
  width: min(360px, 100%);
  text-align: center;
  padding: 36px 28px 28px;
  background: #fff;
  border: 1px solid rgba(232, 62, 140, 0.14);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(232, 62, 140, 0.12);
}

.bot-gate-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 16px;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(232, 62, 140, 0.15);
}

.bot-gate-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--apple-text-primary);
}

.bot-gate-sub {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--apple-text-secondary);
  line-height: 1.55;
}

.bot-gate-spinner {
  width: 28px;
  height: 28px;
  margin: 20px auto 8px;
  border-radius: 50%;
  border: 3px solid rgba(232, 62, 140, 0.15);
  border-top-color: var(--accent);
  animation: bot-spin 0.85s linear infinite;
}

.bot-gate-spinner.is-done {
  animation: none;
  border-color: var(--available, #2f8f6a);
  border-top-color: var(--available, #2f8f6a);
  position: relative;
}

.bot-gate-spinner.is-done::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-right: 2px solid var(--available, #2f8f6a);
  border-bottom: 2px solid var(--available, #2f8f6a);
  transform: rotate(45deg) translate(-1px, -2px);
  border-radius: 1px;
}

@keyframes bot-spin {
  to {
    transform: rotate(360deg);
  }
}

.bot-gate-widget {
  min-height: 0;
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.bot-gate-status {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--apple-text-secondary);
  min-height: 1.2em;
}

@media (prefers-reduced-motion: reduce) {
  .bot-gate-spinner {
    animation: none;
  }
}

.footer-copy {
  font-size: 13px !important;
}

/* ---------- Modal ---------- */
.modal {
  border: none;
  padding: 0;
  background: transparent;
  max-width: min(960px, calc(100vw - 24px));
  width: 100%;
  max-height: calc(100vh - 24px);
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
}

.modal-panel {
  background: var(--apple-elevated);
  border: 1px solid var(--apple-card-border);
  border-radius: var(--radius-lg);
  position: relative;
  display: grid;
  max-height: calc(100vh - 24px);
  overflow: auto;
  box-shadow: var(--apple-shadow-lg);
  transition: var(--theme-transition);
}

@media (min-width: 800px) {
  .modal-panel {
    grid-template-columns: 1fr 1fr;
  }

  .modal-panel-upload {
    grid-template-columns: 1fr;
    max-width: 720px;
    margin: 0 auto;
  }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  min-height: 40px;
  min-width: 44px;
  padding: 8px 16px;
  border: 1px solid var(--apple-card-border);
  background: var(--apple-bg);
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  border-radius: var(--radius-full);
  box-shadow: var(--apple-shadow-sm);
  color: var(--apple-text-primary);
}

.modal-media {
  background: var(--apple-surface);
  display: grid;
  place-items: center;
  min-height: 260px;
  border-bottom: 1px solid var(--apple-card-border);
  padding: 24px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

@media (min-width: 800px) {
  .modal-media {
    border-bottom: none;
    border-right: 1px solid var(--apple-card-border);
    min-height: 420px;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  }
}

.modal-media img {
  width: min(100%, 360px);
  object-fit: contain;
}

.modal-body {
  padding: 28px 20px 24px;
}

@media (min-width: 576px) {
  .modal-body {
    padding: 32px 24px 28px;
  }
}

.facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  margin: 20px 0;
  font-size: 14px;
}

.facts dt {
  color: var(--apple-text-secondary);
}

.facts dd {
  margin: 0;
  color: var(--apple-text-primary);
}

.blurb {
  color: var(--apple-text-secondary);
  margin: 0 0 24px;
}

.blurb-text {
  margin: 0 0 4px;
  color: var(--apple-text-secondary);
}

/* Lightbox */
.modal-lightbox {
  max-width: min(900px, calc(100vw - 24px));
}

.modal-lightbox img {
  width: 100%;
  max-height: calc(100vh - 48px);
  object-fit: contain;
  background: var(--apple-surface);
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--apple-card-border);
}

/* ---------- Upload ---------- */
.upload-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 160px;
  margin: 24px 0;
  padding: 24px;
  border: 1.5px dashed var(--apple-card-border);
  background: var(--apple-surface);
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-align: center;
  transition: var(--theme-transition), border-color 150ms var(--ease);
}

.upload-drop:hover,
.upload-drop.is-drag {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, var(--apple-surface));
}

.upload-drop input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.upload-drop-title {
  font-weight: 500;
  color: var(--apple-text-primary);
}

.upload-drop-hint {
  font-size: 13px;
  color: var(--apple-text-secondary);
}

.upload-progress {
  margin: 16px 0;
}

.upload-progress-bar {
  height: 6px;
  background: var(--apple-surface);
  border-radius: var(--radius-full);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--apple-card-border);
}

.upload-progress-bar > i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: var(--radius-full);
}

.upload-progress-bar.is-indeterminate::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  background: var(--accent);
  border-radius: var(--radius-full);
  animation: slide 1.2s var(--ease) infinite;
}

@keyframes slide {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(300%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .upload-progress-bar.is-indeterminate::after {
    animation: none;
    width: 100%;
    opacity: 0.5;
  }
}

.upload-progress p {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--apple-text-secondary);
}

.upload-compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

@media (min-width: 576px) {
  .upload-compare {
    grid-template-columns: 1fr 1fr;
  }
}

.upload-compare figure {
  margin: 0;
  border: 1px solid var(--apple-card-border);
  background: var(--apple-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--apple-shadow-sm);
}

.upload-compare figcaption {
  font-size: 12px;
  padding: 8px 10px;
  color: var(--apple-text-secondary);
  border-bottom: 1px solid var(--apple-card-border);
}

.upload-compare img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 8px;
}

.cutout-stage {
  background:
    linear-gradient(45deg, var(--apple-card-border) 25%, transparent 25%),
    linear-gradient(-45deg, var(--apple-card-border) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--apple-card-border) 75%),
    linear-gradient(-45deg, transparent 75%, var(--apple-card-border) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-color: var(--apple-bg);
}

.upload-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px 14px;
  align-items: start;
  min-width: 0;
}

@media (min-width: 576px) {
  .upload-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.field-span {
  grid-column: 1 / -1;
}

.upload-meta .field,
#edit-dog-form .field {
  margin-bottom: 0;
  min-width: 0;
  max-width: 100%;
}

.upload-meta .field input,
.upload-meta .field select,
#edit-dog-form .field input,
#edit-dog-form .field select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
  grid-column: 1 / -1;
}

.upload-actions .btn {
  flex: 1 1 160px;
}

.upload-error {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid #a44;
  color: #722;
  background: #fdf6f6;
  font-size: 14px;
  border-radius: var(--radius-md);
}

@media (prefers-color-scheme: dark) {
  .upload-error {
    background: #2a1818;
    color: #f0a0a0;
    border-color: #a44;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .dog-card:hover,
  .gallery-item:hover {
    transform: none;
  }
}

/* ---------- Chat FAB (bottom-left) ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.chat-root {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

@media (min-width: 768px) {
  .chat-root {
    left: 24px;
    bottom: 24px;
  }
}

.chat-fab {
  width: 56px;
  height: 56px;
  border-radius: 980px;
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(232, 62, 140, 0.35), var(--apple-shadow-md);
  transition: transform 200ms var(--ease), background 200ms var(--ease),
    box-shadow 200ms var(--ease);
}

.chat-fab:hover {
  background: var(--accent-hover);
  transform: scale(1.04);
}

.chat-fab:active {
  transform: scale(0.97);
}

.chat-fab[aria-expanded="true"] {
  background: var(--apple-text-primary);
  box-shadow: var(--apple-shadow-md);
}

.chat-panel {
  width: min(360px, calc(100vw - 32px));
  height: min(480px, calc(100vh - 120px));
  background: var(--apple-elevated);
  border: 1px solid var(--apple-card-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--apple-shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: chat-in 220ms var(--ease);
}

.chat-panel[hidden] {
  display: none;
}

@keyframes chat-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--apple-card-border);
  background: var(--apple-bg);
}

.chat-header-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.chat-header-text strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
}

.chat-header-text span {
  font-size: 12px;
  color: var(--apple-text-secondary);
}

.chat-close {
  min-height: 36px;
  min-width: 44px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--apple-card-border);
  background: var(--apple-muted-bg);
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  color: var(--apple-text-primary);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--apple-bg);
}

.chat-msg {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.chat-msg.bot {
  align-self: flex-start;
  background: var(--apple-muted-bg);
  color: var(--apple-text-primary);
  border: 1px solid var(--apple-card-border);
  border-bottom-left-radius: 6px;
}

.chat-msg.user {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 6px;
}

.chat-msg a {
  color: inherit;
  text-decoration: underline;
}

.chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px;
  border-top: 1px solid var(--apple-card-border);
  background: var(--apple-bg);
}

.chat-quick:empty {
  display: none;
}

.chat-quick button {
  min-height: 36px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, #fff);
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.chat-quick button:hover {
  background: color-mix(in srgb, var(--accent) 14%, #fff);
}

.chat-form {
  display: flex;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--apple-card-border);
  background: var(--apple-bg);
}

.chat-form input {
  flex: 1;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--apple-card-border);
  background: var(--apple-muted-bg);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--apple-text-primary);
}

.chat-form input:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent);
  outline-offset: 1px;
}

.chat-send {
  min-height: 44px;
  min-width: 64px;
  padding: 0 16px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.chat-send:hover {
  background: var(--accent-hover);
}

@media (max-width: 480px) {
  .chat-panel {
    width: calc(100vw - 24px);
    height: min(420px, calc(100vh - 110px));
  }
}

/* ===================== MINIMAL TYPE REFINEMENT ===================== */
:root {
  --font-display: "Anuphan", "Inter", "Noto Sans SC", -apple-system, sans-serif;
  --font-body: "Anuphan", "Inter", "Noto Sans SC", -apple-system, sans-serif;
}

/* iOS Liquid Glass tab bar — override android bar */
.tab-bar,
.tab-item {
  display: none !important;
}

.ios-tabwrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: flex;
  justify-content: center;
  padding: 0 14px calc(12px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}

.ios-tabbar {
  pointer-events: auto;
  position: relative;
  width: min(400px, calc(100vw - 28px));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  gap: 0;
  padding: 7px 6px;
  border-radius: 28px;
  isolation: isolate;
  overflow: hidden;
}

.ios-tabbar-glass {
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: inherit;
  background:
    linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.78) 0%,
      rgba(255, 246, 250, 0.52) 48%,
      rgba(255, 232, 242, 0.6) 100%
    );
  backdrop-filter: blur(32px) saturate(200%) brightness(1.06);
  -webkit-backdrop-filter: blur(32px) saturate(200%) brightness(1.06);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 12px 40px rgba(232, 62, 140, 0.14),
    0 2px 10px rgba(42, 26, 34, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(255, 255, 255, 0.2);
}

.ios-tabbar-shine {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(120% 70% at 18% -10%, rgba(255, 255, 255, 0.65), transparent 48%),
    radial-gradient(70% 40% at 88% 8%, rgba(243, 227, 178, 0.28), transparent 42%),
    radial-gradient(50% 30% at 50% 100%, rgba(232, 62, 140, 0.06), transparent);
  mix-blend-mode: soft-light;
}

.ios-tabbar::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  pointer-events: none;
  z-index: 0;
}

.ios-tab {
  appearance: none;
  border: none;
  background: transparent;
  min-width: 0;
  min-height: 56px;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: rgba(42, 26, 34, 0.48);
  font-family: var(--font-body);
  cursor: pointer;
  position: relative;
  z-index: 1;
  -webkit-tap-highlight-color: transparent;
  transition:
    color 240ms var(--ease-apple, ease),
    transform 280ms cubic-bezier(0.32, 0.72, 0, 1);
}

.ios-tab-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 28px;
  border-radius: 999px;
  transition:
    background 340ms cubic-bezier(0.32, 0.72, 0, 1),
    transform 340ms cubic-bezier(0.32, 0.72, 0, 1),
    box-shadow 340ms ease;
}

.ios-tab-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  transition: color 200ms ease, transform 280ms cubic-bezier(0.32, 0.72, 0, 1);
}

.ios-tab.is-active {
  color: var(--accent);
}

.ios-tab.is-active .ios-tab-icon {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(255, 220, 236, 0.88));
  box-shadow:
    0 6px 18px rgba(232, 62, 140, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 0 0 1px rgba(232, 62, 140, 0.08);
  transform: scale(1.06) translateY(-2px);
}

.ios-tab.is-active .ios-tab-label {
  color: var(--accent);
  font-weight: 600;
  transform: translateY(-1px);
}

.ios-tab:active {
  transform: scale(0.93);
}

@media (min-width: 900px) {
  .ios-tabwrap {
    display: none;
  }

  #app,
  .site-footer {
    padding-bottom: 0 !important;
  }

  .chat-root {
    left: 24px;
    bottom: 24px !important;
  }

  .nav {
    display: flex !important;
  }
}

@media (max-width: 899px) {
  .nav {
    display: none !important;
  }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  #app {
    padding-bottom: 104px;
  }

  .site-footer {
    padding-bottom: 104px;
  }

  .chat-root {
    bottom: 108px !important;
  }
}

/* Draggable chatbot */
.chat-root.is-floating {
  left: 16px;
  top: 16px;
  bottom: auto !important;
  right: auto !important;
}

.chat-root.is-dragging {
  transition: none !important;
}

.chat-root.is-dragging .chat-fab,
.chat-root.is-dragging .chat-panel {
  box-shadow:
    0 20px 48px rgba(232, 62, 140, 0.28),
    0 8px 20px rgba(42, 26, 34, 0.1);
}

.chat-root:not(.is-dragging) {
  transition: left 80ms linear, top 80ms linear;
}

.chat-fab {
  cursor: grab !important;
  touch-action: none;
}

.chat-fab:active,
.chat-root.is-dragging .chat-fab {
  cursor: grabbing !important;
}

.chat-header {
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.chat-header:hover {
  background: var(--apple-muted-bg);
}

.chat-root.is-dragging .chat-header {
  cursor: grabbing;
}

.chat-header .chat-close {
  cursor: pointer;
  pointer-events: auto;
}

/* Hint under FAB on first paint (optional visual) */
.chat-fab::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  pointer-events: none;
}

.chat-fab {
  position: relative;
}

/* ===================== LUXURY HERO ===================== */
:root {
  --lux-gold: #d4af37;
  --lux-gold-soft: #f3e3b2;
  --lux-champagne: #f7efe2;
  --lux-ink: #2a1a22;
  --lux-deep-pink: #c92e74;
}

body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255, 225, 239, 0.9), transparent 55%),
    radial-gradient(900px 500px at 0% 30%, rgba(247, 239, 226, 0.75), transparent 50%),
    var(--apple-bg);
}

.hero-lux {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px var(--pad-x) 56px;
  display: grid;
  gap: 28px;
  align-items: center;
  min-height: calc(100svh - var(--header-h) - 8px);
  overflow: hidden;
}

@media (min-width: 900px) {
  .hero-lux {
    grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.15fr);
    gap: 40px;
    padding: 48px var(--pad-x) 72px;
  }
}

.hero-lux-glow {
  position: absolute;
  inset: 8% -8% auto auto;
  width: min(720px, 92vw);
  height: min(720px, 92vw);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 225, 239, 0.75) 28%, rgba(243, 227, 178, 0.4) 48%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-lux-ring {
  position: absolute;
  right: 2%;
  top: 54%;
  translate: 0 -50%;
  width: min(520px, 82vw);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--lux-gold) 55%, transparent);
  box-shadow:
    0 0 0 18px rgba(243, 227, 178, 0.18),
    0 0 0 40px rgba(232, 62, 140, 0.06),
    inset 0 0 60px rgba(243, 227, 178, 0.25);
  pointer-events: none;
  z-index: 0;
}

.hero-lux-copy {
  position: relative;
  z-index: 2;
  max-width: 38ch;
}

.hero-lux-seal {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(145deg, var(--lux-gold-soft), var(--lux-gold) 45%, var(--lux-champagne));
  box-shadow: var(--apple-shadow-md);
  margin-bottom: 18px;
}

.hero-lux-seal img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  background: var(--accent-soft);
}

.hero-lux .hero-eyebrow {
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--lux-gold);
  font-weight: 600;
  margin: 0 0 8px;
}

.hero-lux-title {
  font-size: clamp(38px, 5.5vw, 68px);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.hero-lux-title .hero-title-accent,
.hero-title-accent {
  background: linear-gradient(105deg, var(--lux-deep-pink) 0%, var(--accent) 45%, var(--lux-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 500;
}

.hero-lux .hero-lead {
  margin-top: 18px;
  max-width: 38ch;
  font-size: clamp(15px, 0.9vw + 0.45rem, 17px);
  line-height: 1.85;
  font-weight: 400;
  color: var(--apple-text-secondary);
}

.hero-lux .hero-eyebrow {
  letter-spacing: 0.22em;
  font-size: 11px;
  color: var(--lux-gold);
  font-weight: 500;
  margin: 0 0 10px;
}

.hero-lux .hero-actions {
  margin-top: 28px;
  max-width: 420px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 480px) {
  .hero-lux .hero-actions {
    display: flex;
    flex-wrap: wrap;
  }

  .hero-lux .hero-actions .btn {
    min-width: 168px;
  }
}

.btn {
  font-weight: 500;
  letter-spacing: 0.01em;
}

.btn-lux {
  min-height: 50px;
  padding-left: 28px;
  padding-right: 28px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.btn-lux.btn-primary {
  background: linear-gradient(135deg, var(--lux-deep-pink), var(--accent) 55%, #ff6fb0);
  border: none;
  box-shadow:
    0 10px 28px rgba(232, 62, 140, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-lux.btn-primary:hover {
  box-shadow:
    0 14px 32px rgba(232, 62, 140, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.btn-lux.btn-ghost {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid color-mix(in srgb, var(--lux-gold) 45%, transparent);
  color: var(--lux-ink);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.12);
}

.btn-lux.btn-ghost:hover {
  background: #fff;
  border-color: var(--lux-gold);
  color: var(--lux-deep-pink);
}

.hero-lux-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 420px;
  max-height: 640px;
  aspect-ratio: 1 / 1.02;
  display: grid;
  place-items: center;
  isolation: isolate;
}

@media (min-width: 900px) {
  .hero-lux-stage {
    min-height: 520px;
  }
}

.hero-lux-pedestal {
  position: absolute;
  left: 50%;
  bottom: 8%;
  translate: -50% 0;
  width: min(420px, 78%);
  height: 42px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(42, 26, 34, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(243, 227, 178, 0.9), rgba(232, 62, 140, 0.18));
  filter: blur(2px);
  z-index: 0;
}

.hero-lux-dog {
  position: absolute;
  object-fit: contain;
  filter:
    drop-shadow(0 28px 40px rgba(42, 26, 34, 0.16))
    drop-shadow(0 4px 10px rgba(232, 62, 140, 0.08));
  will-change: transform;
  animation: lux-float 7s var(--ease) infinite;
  user-select: none;
  pointer-events: none;
}

.hero-lux-dog-main {
  position: relative;
  width: min(86%, 460px);
  height: auto;
  max-height: 78%;
  z-index: 3;
  animation-duration: 8.5s;
  filter:
    drop-shadow(0 36px 50px rgba(42, 26, 34, 0.2))
    drop-shadow(0 0 30px rgba(243, 227, 178, 0.45));
}

.hero-lux-dog-left {
  width: min(34%, 180px);
  left: 0;
  bottom: 12%;
  z-index: 2;
  animation-delay: -2s;
}

.hero-lux-dog-right {
  width: min(40%, 220px);
  right: 0;
  top: 12%;
  z-index: 2;
  animation-delay: -4s;
}

.hero-lux-dog-far {
  width: min(26%, 140px);
  right: 8%;
  bottom: 6%;
  z-index: 1;
  opacity: 0.88;
  animation-delay: -5.5s;
}

.hero-lux-badge {
  position: absolute;
  left: 4%;
  top: 10%;
  z-index: 4;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border: 1px solid color-mix(in srgb, var(--lux-gold) 50%, transparent);
  box-shadow: var(--apple-shadow-md);
  text-align: center;
  line-height: 1.2;
}

.hero-lux-badge-line {
  display: block;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lux-gold);
  font-weight: 600;
}

.hero-lux-badge-main {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--lux-ink);
}

@keyframes lux-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -14px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-lux-dog {
    animation: none;
  }
}

.dog-card,
.gallery-item {
  border-color: color-mix(in srgb, var(--lux-gold) 22%, var(--apple-card-border));
  box-shadow:
    0 2px 8px rgba(42, 26, 34, 0.04),
    0 12px 28px rgba(232, 62, 140, 0.06);
}

.degree-tag {
  border-color: color-mix(in srgb, var(--lux-gold) 55%, transparent);
  background: linear-gradient(180deg, #fffdf7, var(--lux-champagne));
  color: #8a6a14;
}

.role-badge.role-sire,
.role-badge.role-dam {
  background: linear-gradient(135deg, var(--lux-deep-pink), var(--accent));
}

@media (max-width: 479px) {
  .hero-lux .hero-actions {
    max-width: none;
  }

  .hero-lux .hero-actions .btn {
    width: 100%;
  }

  .hero-lux-stage {
    min-height: 360px;
  }

  .hero-lux-badge {
    left: 2%;
    top: 4%;
    padding: 8px 12px;
  }

  .hero-lux-ring {
    opacity: 0.85;
  }
}

/* ensure hide-canvas rule still applies */
#hero-canvas,
.hero-poster {
  display: none !important;
}
