:root {
  --b-ink: #5f6b49;
  --b-ink-deep: #3d4532;
  --b-sage: #95a589;
  --b-cream: #d8d2c6;
  --b-cream-deep: #ece7de;
  --b-surface: #ffffff;
  --b-accent: #c4a47c;
  --b-accent-deep: #8f7348;
  --b-text: #2f3328;
  --b-muted: #6b7260;
  --page-gutter: clamp(20px, 5.5vw, 32px);
  --nav-height: 56px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body.theme-home {
  font-family: var(--font-body);
  background: var(--b-cream);
  color: var(--b-text);
  line-height: 1.55;
}

.home-container {
  max-width: 1140px;
  margin: 0 auto;
  padding-left: max(var(--page-gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--page-gutter), env(safe-area-inset-right, 0px));
}

/* —— Nav —— */
.home-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.home-nav.is-scrolled {
  background: rgba(216, 210, 198, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(47, 51, 40, 0.08);
}

.home-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.home-nav-brand {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.home-nav.is-scrolled .home-nav-brand {
  color: var(--b-ink-deep);
}

.home-nav-link {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.home-nav.is-scrolled .home-nav-link {
  color: var(--b-ink-deep);
  border-color: rgba(47, 51, 40, 0.2);
}

.home-nav-link:hover {
  background: rgba(255, 255, 255, 0.12);
}

.home-nav.is-scrolled .home-nav-link:hover {
  background: rgba(47, 51, 40, 0.06);
}

/* —— Hero —— */
.home-hero {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-height) + 32px) 0 48px;
  overflow: hidden;
}

.home-hero-bg {
  position: absolute;
  inset: 0;
  background: var(--b-ink-deep) center / cover no-repeat;
  transform: scale(1.06);
  animation: heroKenBurns 18s var(--ease-out) infinite alternate;
}

@keyframes heroKenBurns {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.12) translate3d(-1%, -1%, 0);
  }
}

.home-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    rgba(47, 51, 40, 0.55) 0%,
    rgba(47, 51, 40, 0.35) 45%,
    rgba(47, 51, 40, 0.82) 100%
  );
}

.home-hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 640px;
}

.home-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 12px;
}

.home-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 9vw, 4.25rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.home-lead {
  margin-top: 16px;
  font-size: clamp(15px, 3.2vw, 18px);
  color: rgba(255, 255, 255, 0.82);
  max-width: 32em;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.home-cta-primary,
.home-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, background 0.25s ease;
}

.home-cta-primary {
  background: var(--b-accent);
  color: var(--b-ink-deep);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.home-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.home-cta-primary--dark {
  background: #fff;
  color: var(--b-ink-deep);
}

.home-cta-secondary {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  background: transparent;
}

.home-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.home-cta-secondary--dark {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.home-scroll-cue {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  animation: scrollCue 2.4s ease-in-out infinite;
}

.home-scroll-cue span {
  display: block;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

@keyframes scrollCue {
  0%,
  100% {
    opacity: 0.45;
    transform: translateX(-50%) translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) translateY(6px);
  }
}

/* —— Reveal —— */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.75s var(--ease-out) var(--reveal-delay, 0ms),
    transform 0.85s var(--ease-out) var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-bg {
    animation: none;
  }
  .home-scroll-cue {
    animation: none;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* —— Trust —— */
.home-trust {
  padding: clamp(40px, 8vw, 64px) 0;
  background: var(--b-cream-deep);
  border-bottom: 1px solid rgba(47, 51, 40, 0.08);
}

.home-trust-grid {
  display: grid;
  gap: clamp(24px, 4vw, 36px);
}

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

.home-trust-item h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 600;
  color: var(--b-ink-deep);
  margin: 8px 0 6px;
}

.home-trust-item p {
  font-size: 14px;
  color: var(--b-muted);
  line-height: 1.55;
}

.home-trust-num {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--b-accent-deep);
}

/* —— Collection —— */
.home-collection {
  padding: clamp(48px, 9vw, 72px) 0 clamp(32px, 6vw, 48px);
}

.home-section-head {
  margin-bottom: clamp(24px, 5vw, 36px);
}

.home-section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--b-accent-deep);
  margin-bottom: 8px;
}

.home-section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  color: var(--b-ink-deep);
  line-height: 1.1;
}

.home-loading {
  text-align: center;
  color: var(--b-muted);
  padding: 3rem 1rem;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 3vw, 22px);
}

@media (min-width: 768px) {
  .showcase-grid {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(120px, auto);
  }

  .showcase-tile--feature {
    grid-column: span 7;
    grid-row: span 2;
  }

  .showcase-tile:not(.showcase-tile--feature) {
    grid-column: span 5;
  }

  .showcase-tile--feature .showcase-media {
    aspect-ratio: 4 / 5;
  }
}

.showcase-tile {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--b-surface);
  box-shadow: 0 14px 40px rgba(47, 51, 40, 0.1);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.showcase-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(47, 51, 40, 0.14);
}

.showcase-media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--b-cream-deep);
}

.showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.showcase-tile:hover .showcase-media img {
  transform: scale(1.05);
}

.showcase-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, transparent 40%, rgba(255, 255, 255, 0.12) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.8s var(--ease-out);
  pointer-events: none;
}

.showcase-tile:hover .showcase-shine {
  transform: translateX(100%);
}

.showcase-placeholder {
  width: 100%;
  height: 100%;
  background: #ddd4c4;
}

.showcase-body {
  padding: 16px 18px 18px;
}

.showcase-category {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--b-muted);
  margin-bottom: 4px;
}

.showcase-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--b-ink-deep);
}

.showcase-price {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 800;
  color: var(--b-accent-deep);
}

.showcase-cta {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--b-ink);
}

/* —— CTA band —— */
.home-cta-band {
  margin: 0 max(0px, calc(var(--page-gutter) - 8px));
  border-radius: 24px;
  background: linear-gradient(145deg, var(--b-ink) 0%, var(--b-ink-deep) 100%);
  color: #fff;
  padding: clamp(36px, 7vw, 52px) clamp(24px, 5vw, 40px);
  text-align: center;
}

.home-cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 600;
}

.home-cta-band-inner > p {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
}

.home-cta-phone {
  margin-top: 6px !important;
  font-size: clamp(1.25rem, 4vw, 1.65rem) !important;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.home-cta-phone a {
  color: #fff;
  text-decoration: none;
}

.home-cta-phone a:hover {
  text-decoration: underline;
}

.home-cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

/* —— Footer —— */
.home-footer {
  padding: 28px 0 max(32px, env(safe-area-inset-bottom, 0px));
}

.home-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--b-muted);
}

.home-footer a {
  color: var(--b-accent-deep);
  font-weight: 700;
  text-decoration: none;
}

.home-footer a:hover {
  text-decoration: underline;
}
