:root {
  --ivory: #fbf7f2;
  --porcelain: #fffdfa;
  --sand: #efe3d8;
  --blush: #e7d1cb;
  --shell: #f5e9e1;
  --shell-deep: #e7d7cc;
  --charcoal: #191514;
  --taupe: #5b504c;
  --mink: #3f3430;
  --rose: #b56a63;
  --terracotta: #c07058;
  --gold-mist: #bea36d;
  --line: rgba(38, 27, 24, 0.14);
  --success: #5f7864;
  --mobile-header-height: 5.85rem;
}

html {
  background-color: var(--ivory);
  scroll-behavior: smooth;
}

body,
.font-body {
  font-family: "Inter", sans-serif;
}

.font-heading,
.font-display,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
}

html.is-ready [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
}

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

body {
  background-color: var(--ivory);
  background:
    radial-gradient(circle at top left, rgba(231, 209, 203, 0.22), transparent 24%),
    radial-gradient(circle at 84% 11%, rgba(190, 163, 109, 0.08), transparent 18%),
    radial-gradient(circle at 50% 118%, rgba(181, 106, 99, 0.07), transparent 26%),
    linear-gradient(180deg, #fdfaf6 0%, #fbf7f2 46%, #f8f2ec 100%);
  color: var(--charcoal);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}

p,
li,
dd,
dt,
input,
textarea,
select,
label,
button {
  font-family: "Inter", sans-serif;
}

.type-hero,
.hero-title {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.type-section,
.section-title {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.type-card,
.card-title {
  font-family: "Playfair Display", serif;
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.type-body,
.body-copy {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
}

.type-meta,
.meta-copy {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.55;
}

.type-button,
button,
[role="button"] {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.2;
}

.type-nav,
header nav a,
header nav button,
.nav-link {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

.measure-reading {
  max-width: 72ch;
}

.measure-ui {
  max-width: 65ch;
}

::selection {
  background: rgba(184, 109, 103, 0.18);
}

.site-shell {
  position: relative;
  overflow-x: clip;
}

.site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 28%, transparent 95%);
  opacity: 0.22;
}

.site-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 16%, rgba(255, 255, 255, 0.65), transparent 18%),
    radial-gradient(circle at 88% 12%, rgba(198, 172, 121, 0.11), transparent 16%),
    radial-gradient(circle at 52% 88%, rgba(184, 109, 103, 0.08), transparent 22%);
  opacity: 0.9;
}

.parallax-layer {
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.shell-wide {
  max-width: 92rem;
}

@media (min-width: 1600px) {
  .shell-wide {
    max-width: 100rem;
  }
}

.section-rhythm {
  padding-top: 2.25rem;
  padding-bottom: 2.25rem;
}

.section-rhythm-lg {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.flow-relaxed > * + * {
  margin-top: 1.15rem;
}

.card-pad {
  padding: 1.35rem;
}

.card-pad-lg {
  padding: 1.75rem;
}

@media (min-width: 768px) {
  .section-rhythm {
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
  }

  .section-rhythm-lg {
    padding-top: 3.75rem;
    padding-bottom: 3.75rem;
  }

  .card-pad {
    padding: 1.65rem;
  }

  .card-pad-lg {
    padding: 2.15rem;
  }
}

@media (min-width: 1280px) {
  .section-rhythm {
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
  }

  .section-rhythm-lg {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }
}

.surface-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.95), rgba(255, 252, 247, 0.92));
  backdrop-filter: blur(18px) saturate(125%);
  border: 1px solid var(--line);
  box-shadow:
    0 24px 68px rgba(46, 31, 27, 0.07),
    0 2px 10px rgba(46, 31, 27, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.surface-dark {
  background:
    radial-gradient(circle at top right, rgba(198, 172, 121, 0.12), transparent 28%),
    linear-gradient(145deg, #1f1816, #342724);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 24px 58px rgba(20, 14, 13, 0.32);
}

.surface-editorial {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.95), rgba(247, 239, 231, 0.72)),
    linear-gradient(135deg, transparent, rgba(236, 215, 209, 0.12));
  border: 1px solid rgba(62, 44, 36, 0.08);
  box-shadow:
    0 30px 76px rgba(46, 31, 27, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.glass-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow:
    0 18px 44px rgba(30, 22, 20, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.surface-panel::before,
.surface-editorial::before,
.glass-panel::before,
.card-hover::before,
.premium-hover::before {
  content: "";
  position: absolute;
  inset: -35% auto auto -45%;
  width: 52%;
  height: 210%;
  transform: rotate(18deg) translateX(-135%);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.02) 20%,
    rgba(255, 255, 255, 0.22) 48%,
    rgba(255, 255, 255, 0.04) 72%,
    transparent 100%
  );
  pointer-events: none;
  opacity: 0;
}

.surface-panel:hover::before,
.surface-editorial:hover::before,
.glass-panel:hover::before,
.card-hover:hover::before,
.premium-hover:hover::before {
  opacity: 1;
  animation: surfaceShine 1.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.deal-gallery-thumb {
  border-color: transparent;
}

.deal-gallery-thumb.is-active {
  border-color: rgba(181, 106, 99, 0.34);
  box-shadow: 0 10px 24px rgba(181, 106, 99, 0.12);
}

.gallery-main-trigger {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  cursor: zoom-in;
}

.gallery-main-trigger::before {
  content: "View gallery";
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(28, 21, 20, 0.68);
  padding: 0.5rem 0.85rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 250, 247, 0.95);
  backdrop-filter: blur(10px);
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 120;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  overflow: hidden;
}

.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 18, 17, 0.74);
  backdrop-filter: blur(10px);
}

.gallery-lightbox__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 252, 249, 0.98), rgba(247, 238, 232, 0.95));
  box-shadow: 0 30px 80px rgba(18, 13, 12, 0.35);
}

.gallery-lightbox__close,
.gallery-lightbox__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(62, 44, 36, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--charcoal);
  transition:
    transform 200ms ease,
    background-color 200ms ease,
    box-shadow 200ms ease;
}

.gallery-lightbox__close:hover,
.gallery-lightbox__nav:hover {
  transform: translateY(-1px);
  background: rgba(255, 251, 247, 0.98);
  box-shadow: 0 16px 28px rgba(46, 31, 27, 0.12);
}

.gallery-lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  gap: 0.5rem;
  min-width: 0;
  height: 3.35rem;
  padding: 0 1.15rem 0 1rem;
  font-size: 0.95rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-color: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 244, 239, 0.94));
  color: #221a18;
  box-shadow:
    0 18px 34px rgba(18, 13, 12, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.gallery-lightbox__close-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 500;
  transform: translateY(-1px);
}

.gallery-lightbox__close-label {
  font-size: 0.7rem;
  color: rgba(34, 26, 24, 0.95);
  white-space: nowrap;
}

.gallery-lightbox__close:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 247, 242, 0.97));
  box-shadow:
    0 22px 38px rgba(18, 13, 12, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.gallery-lightbox__close:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(255, 245, 239, 0.9),
    0 0 0 5px rgba(184, 109, 103, 0.28),
    0 18px 34px rgba(18, 13, 12, 0.14);
}

.gallery-lightbox__body {
  display: grid;
  flex: 1;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  min-height: 0;
  padding: 1.5rem;
}

.gallery-lightbox__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(145deg, #fbf5ef, #edd8d1);
  touch-action: pan-y;
}

.gallery-lightbox__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.gallery-lightbox__nav {
  width: 3.25rem;
  height: 3.25rem;
  font-size: 2rem;
}

.gallery-lightbox__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 0.8rem;
  max-height: 200px;
  overflow-y: auto;
  padding: 0 1.5rem 1.5rem;
}

.gallery-lightbox__thumb {
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 18px rgba(46, 31, 27, 0.08);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.gallery-lightbox__thumb:hover {
  transform: translateY(-1px);
}

.gallery-lightbox__thumb.is-active {
  border-color: rgba(181, 106, 99, 0.34);
  box-shadow: 0 14px 28px rgba(181, 106, 99, 0.16);
}

.gallery-lightbox__thumb img {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
}

html.gallery-lightbox-open,
body.gallery-lightbox-open {
  overflow: hidden;
}

.button-modern {
  position: relative;
  overflow: hidden;
  transition:
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 240ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 220ms ease,
    border-color 220ms ease;
}

.button-modern::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.24), transparent 80%);
  opacity: 0;
  transform: translateX(-120%);
  transition: transform 420ms ease, opacity 280ms ease;
}

.button-modern:hover {
  transform: translateY(-2px);
}

.button-modern:hover::after {
  opacity: 1;
  transform: translateX(120%);
}

.section-kicker {
  letter-spacing: 0.30em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--rose);
  font-family: "Inter", sans-serif;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: rgba(184, 109, 103, 0.45);
}

.balance-text {
  text-wrap: balance;
}

.premium-shadow {
  box-shadow: 0 24px 62px rgba(46, 31, 27, 0.11);
}

.premium-shadow-soft {
  box-shadow: 0 14px 34px rgba(46, 31, 27, 0.07);
}

.card-hover {
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 320ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms ease,
    background-color 220ms ease,
    filter 220ms ease;
  will-change: transform;
}

.card-hover:hover {
  transform: translateY(-6px) scale(1.004);
  box-shadow: 0 30px 68px rgba(46, 31, 27, 0.14);
}

.premium-hover {
  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 260ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms ease,
    background-color 220ms ease;
}

.premium-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 58px rgba(46, 31, 27, 0.13);
}

@keyframes surfaceShine {
  0% {
    transform: rotate(18deg) translateX(-135%);
    opacity: 0;
  }

  18% {
    opacity: 1;
  }

  100% {
    transform: rotate(18deg) translateX(255%);
    opacity: 0;
  }
}

.underline-center {
  position: relative;
}

.underline-center::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.35rem;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(184, 109, 103, 0.88), rgba(198, 172, 121, 0.78));
  transform: translateX(-50%);
  transition: width 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.underline-center:hover::after,
.underline-center:focus-visible::after,
.underline-center.is-active::after {
  width: calc(100% - 1.5rem);
}

.underline-center.is-active {
  color: var(--charcoal);
}

.image-glow {
  position: relative;
}

.image-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(32, 22, 20, 0.14));
  pointer-events: none;
}

.cinematic-frame {
  position: relative;
  overflow: hidden;
}

.cinematic-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 34%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 20%);
  opacity: 0.9;
}

.badge-shimmer {
  position: relative;
  overflow: hidden;
}

.badge-shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transition: left 420ms ease;
}

.group:hover .badge-shimmer::after {
  left: 180%;
}

@media (max-width: 767px) {
  .gallery-main-trigger::before {
    right: 0.85rem;
    bottom: 0.85rem;
    padding: 0.45rem 0.72rem;
    font-size: 0.62rem;
  }

  .gallery-lightbox {
    padding: 0;
  }

  .gallery-lightbox__dialog {
    border-radius: 0;
  }

  .gallery-lightbox__body {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 4.4rem 0.75rem 0.75rem;
  }

  .gallery-lightbox__stage {
    min-height: 0;
    height: 100%;
    border-radius: 22px;
  }

  .gallery-lightbox__nav {
    position: absolute;
    top: calc(50% - 1.6rem);
    z-index: 2;
    width: 2.8rem;
    height: 2.8rem;
    font-size: 1.7rem;
  }

  .gallery-lightbox__nav--prev {
    left: 0.8rem;
  }

  .gallery-lightbox__nav--next {
    right: 0.8rem;
  }

  .gallery-lightbox__thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
    max-height: 150px;
    padding: 0 0.75rem 0.9rem;
  }

  .gallery-lightbox__close {
    top: 0.95rem;
    right: 0.95rem;
    height: 3rem;
    padding: 0 0.95rem;
  }

  .gallery-lightbox__close-label {
    display: none;
  }
}

.prose {
  color: #332a27;
  max-width: 72ch;
  font-family: "Inter", sans-serif;
}

.prose p {
  margin-bottom: 1.35rem;
  line-height: 1.7;
  font-size: 1rem;
}

.prose h2,
.prose h3 {
  margin-top: 2.8rem;
  margin-bottom: 1rem;
  color: var(--charcoal);
  letter-spacing: -0.02em;
  font-family: "Playfair Display", serif;
}

.prose h2 {
  font-weight: 600;
  font-size: 2.25rem;
  line-height: 1.12;
}

.prose h3 {
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.18;
}

.prose ul {
  list-style: disc;
  padding-left: 1.4rem;
  margin-bottom: 1.4rem;
}

.prose strong,
.prose b {
  font-weight: 600;
}

.tip-box {
  border-left: 3px solid rgba(184, 109, 103, 0.75);
  background: rgba(246, 235, 229, 0.72);
}

.quote-box {
  background: linear-gradient(135deg, rgba(236, 215, 209, 0.38), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(184, 109, 103, 0.15);
}

.story-rule {
  height: 1px;
  background: linear-gradient(90deg, rgba(62, 44, 36, 0.12), rgba(62, 44, 36, 0.03));
}

.section-rhythm {
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.headline-glow {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.soft-divider {
  position: relative;
}

.soft-divider::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(62, 44, 36, 0.08), transparent);
}

.site-header {
  transition:
    background-color 240ms ease,
    box-shadow 240ms ease,
    border-color 240ms ease,
    transform 240ms ease;
}

.site-header.is-condensed {
  background: rgba(251, 247, 242, 0.9);
  box-shadow: 0 12px 34px rgba(29, 22, 20, 0.1);
}

html.mobile-nav-open .site-header {
  background: rgba(251, 247, 242, 0.96);
  box-shadow: 0 12px 34px rgba(29, 22, 20, 0.1);
}

.site-header.is-condensed .header-inner {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

html.mobile-nav-open .site-header .header-inner {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 50;
  width: 100%;
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), transparent);
}

.scroll-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgba(184, 109, 103, 0.92), rgba(198, 172, 121, 0.88));
  box-shadow: 0 0 18px rgba(184, 109, 103, 0.28);
  transition: width 120ms linear;
}

.hero-stage {
  position: relative;
  isolation: isolate;
}

.hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.55), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 28%);
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 700ms ease, transform 1400ms ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(34, 25, 23, 0.06), rgba(34, 25, 23, 0.16));
}

.scroll-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--taupe);
}

.scroll-indicator-line {
  position: relative;
  width: 42px;
  height: 1px;
  background: rgba(62, 44, 36, 0.16);
  overflow: hidden;
}

.scroll-indicator-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(184, 109, 103, 0.72), transparent);
  animation: indicatorFlow 1.8s ease-in-out infinite;
}

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

  100% {
    transform: translateX(100%);
  }
}

.scroll-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 45;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top-label {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.62rem;
}

@media (min-width: 768px) {
  .type-hero,
  .hero-title {
    font-size: 2.5rem;
  }

  .type-section,
  .section-title {
    font-size: 1.875rem;
  }
}

@media (min-width: 1024px) {
  .type-hero,
  .hero-title {
    font-size: 3.5rem;
  }

  .type-section,
  .section-title {
    font-size: 2.25rem;
  }
}

.burger-toggle {
  transition:
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    opacity 180ms ease,
    visibility 180ms ease;
}

.burger-toggle.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.burger-lines {
  position: relative;
  width: 1.1rem;
  height: 0.9rem;
}

.burger-lines span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 9999px;
  background: currentColor;
  transform-origin: center;
  transition:
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 180ms ease,
    top 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.burger-lines span:nth-child(1) {
  top: 0;
}

.burger-lines span:nth-child(2) {
  top: calc(50% - 1px);
}

.burger-lines span:nth-child(3) {
  top: calc(100% - 2px);
}

.burger-toggle.is-active .burger-lines span:nth-child(1) {
  top: calc(50% - 1px);
  transform: rotate(45deg);
}

.burger-toggle.is-active .burger-lines span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.35);
}

.burger-toggle.is-active .burger-lines span:nth-child(3) {
  top: calc(50% - 1px);
  transform: rotate(-45deg);
}

.hero-dots {
  display: flex;
  gap: 0.5rem;
}

.hero-dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.22);
  transition: transform 220ms ease, background-color 220ms ease, width 220ms ease;
}

.hero-dot.is-active {
  width: 1.55rem;
  background: rgba(255, 255, 255, 0.92);
}

.hero-orb {
  background:
    radial-gradient(circle at 38% 32%, rgba(255, 255, 255, 0.82), transparent 18%),
    radial-gradient(circle at 60% 44%, rgba(236, 215, 209, 0.68), transparent 36%),
    radial-gradient(circle at 42% 70%, rgba(198, 172, 121, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(255, 250, 245, 0.94), rgba(242, 233, 223, 0.7));
}

.luxury-panel {
  position: relative;
  overflow: hidden;
}

.luxury-panel::after {
  content: "";
  position: absolute;
  inset: auto -12% -28% auto;
  width: 260px;
  height: 260px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(198, 172, 121, 0.22), transparent 66%);
  pointer-events: none;
}

.luxury-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 28%);
  pointer-events: none;
}

.table-shell table {
  width: 100%;
  border-collapse: collapse;
}

.table-shell th,
.table-shell td {
  border-bottom: 1px solid rgba(64, 54, 50, 0.08);
}

.fade-section {
  animation: fadeSection 420ms ease both;
}

.lift-in {
  animation: liftIn 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fadeSection {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes liftIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.mobile-sticky-cta {
  box-shadow: 0 -12px 28px rgba(35, 26, 23, 0.12);
  backdrop-filter: blur(12px);
}

.mobile-drawer {
  transform: translateY(100%);
  transition: transform 260ms ease, opacity 260ms ease;
  opacity: 0;
}

.mobile-nav-panel {
  display: block;
  transform: translateY(-110%);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), opacity 240ms ease;
  opacity: 0;
  box-shadow: 0 24px 60px rgba(28, 20, 18, 0.18);
  pointer-events: none;
}

.mobile-nav-panel.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer.is-open {
  transform: translateY(0);
  opacity: 1;
}

.drawer-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.tap-target {
  min-height: 46px;
}

.compact-card {
  min-height: 100%;
}

@media (max-width: 1023px) {
  html,
  body {
    overflow-x: hidden;
  }

  body {
    background:
      radial-gradient(circle at top left, rgba(236, 215, 209, 0.18), transparent 24%),
      radial-gradient(circle at bottom center, rgba(184, 109, 103, 0.08), transparent 26%),
      linear-gradient(180deg, #fdfaf7 0%, #fbf7f1 100%);
  }

  .surface-panel,
  .surface-editorial {
    border-radius: 24px;
  }

  .prose p {
    font-size: 0.99rem;
    line-height: 1.72;
    margin-bottom: 1.15rem;
  }

  .prose h2 {
    font-size: 1.5rem;
    margin-top: 2.2rem;
  }

  .prose h3 {
    font-size: 1.25rem;
    margin-top: 1.8rem;
  }

  .mobile-sticky-cta {
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 0.75rem);
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 95;
    overflow: visible;
  }

  .mobile-main-offset {
    padding-top: var(--mobile-header-height);
  }

  .mobile-nav-panel {
    top: 0;
    bottom: 0;
    z-index: 90;
    padding-top: calc(var(--mobile-header-height) + 0.85rem);
    max-height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .drawer-backdrop {
    z-index: 85;
  }

  .guide-mobile-copy {
    font-size: 1rem;
    line-height: 1.9;
  }

  .scroll-top {
    right: max(0.75rem, calc(env(safe-area-inset-right, 0px) + 0.45rem));
    bottom: calc(env(safe-area-inset-bottom, 0px) + 1rem);
    z-index: 80;
    padding: 0.85rem 0.95rem;
    border-radius: 9999px;
  }

  .scroll-progress {
    height: 2px;
    z-index: 96;
  }

  .deal-score-popover {
    right: auto;
    left: 50%;
    top: calc(100% + 0.6rem);
    transform: translateX(-52%);
    width: min(15.25rem, calc(100vw - 5.75rem));
  }

  .deal-score-popover-arrow {
    left: 50%;
    right: auto;
    transform: translateX(-50%) rotate(45deg);
  }
}

@media (max-width: 767px) and (orientation: portrait) {
  .mobile-nav-panel {
    transform: translateY(calc(-100% - 1.25rem));
  }

  .mobile-nav-panel .shell-wide > * {
    opacity: 0;
    transform: translateY(14px);
  }

  .mobile-nav-panel.is-open .shell-wide > * {
    opacity: 1;
    transform: translateY(0);
    transition:
      opacity 360ms ease,
      transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .mobile-nav-panel.is-open .shell-wide > *:nth-child(1) {
    transition-delay: 40ms;
  }

  .mobile-nav-panel.is-open .shell-wide > *:nth-child(2) {
    transition-delay: 90ms;
  }

  .mobile-nav-panel.is-open .shell-wide > *:nth-child(3) {
    transition-delay: 140ms;
  }

  .mobile-nav-panel.is-open nav > * {
    opacity: 1;
    transform: translateY(0);
    transition:
      opacity 320ms ease,
      transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .mobile-nav-panel.is-open nav > *:nth-child(1) {
    transition-delay: 170ms;
  }

  .mobile-nav-panel.is-open nav > *:nth-child(2) {
    transition-delay: 200ms;
  }

  .mobile-nav-panel.is-open nav > *:nth-child(3) {
    transition-delay: 230ms;
  }

  .mobile-nav-panel.is-open nav > *:nth-child(4) {
    transition-delay: 260ms;
  }

  .mobile-nav-panel.is-open nav > *:nth-child(5) {
    transition-delay: 290ms;
  }

  .mobile-nav-panel.is-open nav > *:nth-child(6) {
    transition-delay: 320ms;
  }

  .mobile-nav-panel.is-open nav > *:nth-child(7) {
    transition-delay: 350ms;
  }

  .mobile-nav-panel.is-open nav > *:nth-child(8) {
    transition-delay: 380ms;
  }
}

@media (max-width: 1023px) and (orientation: landscape) and (max-height: 600px) {
  .site-header .header-inner {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }

  .site-header .font-display.text-xl,
  .site-header .font-display.text-2xl {
    font-size: 1.2rem;
    line-height: 1;
  }

  .mobile-main-offset {
    padding-top: calc(var(--mobile-header-height) + 0.15rem);
  }

  .mobile-nav-panel {
    top: var(--mobile-header-height);
    bottom: 0;
    inset-inline: 0;
    transform: translateY(calc(-100% - 1rem));
    padding-top: 0.75rem;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 1rem);
    max-height: calc(100dvh - var(--mobile-header-height));
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }

  .mobile-nav-panel.is-open {
    transform: translateY(0);
  }

  .mobile-nav-panel .shell-wide {
    max-width: 100%;
    display: grid;
    grid-template-columns: minmax(13rem, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
    gap: 0.85rem 1rem;
  }

  .mobile-nav-panel .shell-wide > :first-child {
    display: none;
  }

  .mobile-nav-panel .shell-wide > :nth-child(2) {
    margin-bottom: 0;
    align-self: start;
  }

  .mobile-nav-panel .shell-wide > form {
    grid-column: 1;
    align-self: start;
  }

  .mobile-nav-panel nav {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin-top: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .mobile-nav-panel h2 {
    font-size: 1.55rem;
    line-height: 0.98;
  }

  .mobile-nav-panel .section-kicker {
    font-size: 0.6rem;
  }

  .mobile-nav-panel form input {
    min-height: 2.9rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .mobile-nav-panel nav a,
  .mobile-nav-panel nav button {
    min-height: 3rem;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }

  .deal-score-popover {
    left: auto;
    right: -0.35rem;
    top: calc(100% + 0.5rem);
    transform: none;
    width: min(13.75rem, calc(100vw - 3rem));
  }

  .deal-score-popover-arrow {
    left: auto;
    right: 1.35rem;
    transform: rotate(45deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .card-hover,
  .premium-hover,
  .mobile-drawer,
  .drawer-backdrop,
  .fade-section,
  .lift-in,
  .hero-slide,
  .button-modern,
  .scroll-top,
  [data-reveal] {
    transition: none;
    animation: none;
  }
}
