:root {
  --bg: #f7f1e6;
  --paper: #fffaf0;
  --ink: #1f170c;
  --muted: #796b58;
  --line: rgba(113, 79, 31, 0.2);
  --gold: #b98a2f;
  --gold-2: #f3d787;
  --dark: #17120c;
  --success: #177449;
  --danger: #a2361d;
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    linear-gradient(90deg, rgba(185, 138, 47, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(185, 138, 47, 0.07) 1px, transparent 1px),
    linear-gradient(135deg, #fff9ed 0%, #f3eadb 48%, #efe1ca 100%);
  background-size:
    44px 44px,
    44px 44px,
    auto;
  color: var(--ink);
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0));
  content: "";
  height: 160px;
  inset: 0 0 auto;
  pointer-events: none;
  position: fixed;
  z-index: 0;
}

body::after {
  animation: ambientGlow 9s ease-in-out infinite alternate;
  background:
    radial-gradient(circle at 12% 18%, rgba(185, 138, 47, 0.24), transparent 30%),
    radial-gradient(circle at 86% 8%, rgba(255, 255, 255, 0.56), transparent 28%),
    radial-gradient(circle at 58% 84%, rgba(185, 138, 47, 0.12), transparent 32%);
  content: "";
  filter: blur(2px);
  inset: 0;
  opacity: 0.72;
  pointer-events: none;
  position: fixed;
  transform: translate3d(0, 0, 0);
  z-index: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  touch-action: manipulation;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  max-width: 100%;
}

.shell,
.hero,
.hero-grid,
.models-section,
.calculator,
.full-gallery,
.review-panel,
.inspiration,
.appointment,
.contact-panel,
.calculator-grid,
.review-grid,
.gallery-panel,
.measure-panel,
.measure-row {
  min-width: 0;
}

.shell {
  margin: 0 auto 56px;
  max-width: 1180px;
  padding: 18px;
  position: relative;
  z-index: 1;
}

.hero {
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.94), rgba(255, 246, 225, 0.86)),
    var(--paper);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 28px 90px rgba(82, 55, 22, 0.13);
  min-height: 540px;
  overflow: hidden;
  position: relative;
}

.hero::before {
  animation: sweep 7s ease-in-out infinite;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.68), transparent);
  content: "";
  height: 100%;
  left: -80%;
  pointer-events: none;
  position: absolute;
  top: 0;
  transform: skewX(-18deg);
  width: 48%;
  z-index: 2;
}

.hero::after {
  background:
    linear-gradient(90deg, transparent 0 10%, rgba(185, 138, 47, 0.22) 10% 10.5%, transparent 10.5% 20%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(224, 194, 127, 0.16));
  content: "";
  inset: 0;
  opacity: 0.62;
  pointer-events: none;
  position: absolute;
}

.topbar,
.hero-grid,
.models-section,
.calculator,
.full-gallery,
.inspiration,
.appointment,
.contact-panel {
  position: relative;
  z-index: 3;
}

.topbar {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 18px;
}

.topbar-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  align-items: center;
  background: var(--dark);
  border: 1px solid rgba(185, 138, 47, 0.55);
  border-radius: 16px;
  box-shadow: 0 14px 28px rgba(48, 29, 9, 0.18);
  color: var(--gold-2);
  display: inline-flex;
  flex: 0 0 56px;
  font-weight: 900;
  height: 56px;
  justify-content: center;
  letter-spacing: 0;
  overflow: hidden;
  width: 56px;
}

.brand-mark img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.12;
}

.brand small {
  color: var(--muted);
  margin-top: 3px;
}

.ghost-link,
.hero-actions .primary-action,
.hero-actions button,
.measure-head button,
.measure-help,
.appointment a,
.contact-action,
.action-bar button,
.step-actions button,
.flow-nav button {
  align-items: center;
  border-radius: 14px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
}

.ghost-link,
.hero-actions button,
.measure-help,
.action-bar button,
.contact-action,
.secondary-action {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  color: var(--ink);
}

.hero-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.86fr);
  min-height: 420px;
  padding: 44px 42px 42px;
}

.hero-copy {
  align-self: center;
  max-width: 650px;
}

.eyebrow,
.section-head span,
.appointment span,
.contact-panel span,
.quote-card span {
  color: var(--gold);
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 4.9rem;
  letter-spacing: 0;
  line-height: 0.92;
  margin-top: 12px;
  max-width: 680px;
}

.hero-copy p {
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.52;
  margin-top: 20px;
  max-width: 600px;
}

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

.hero-actions .primary-action,
.appointment a,
.contact-action.is-whatsapp,
.action-bar button:not(.secondary-action) {
  background: linear-gradient(135deg, var(--gold), #765018);
  border: 1px solid rgba(72, 44, 14, 0.35);
  box-shadow: 0 14px 28px rgba(104, 69, 24, 0.2);
  color: #fffaf0;
}

.quote-card {
  align-self: end;
  background: rgba(23, 18, 12, 0.95);
  border: 1px solid rgba(185, 138, 47, 0.44);
  border-radius: 24px;
  box-shadow: 0 24px 48px rgba(23, 18, 12, 0.24);
  color: #fff8e9;
  overflow: hidden;
}

.hero-showcase {
  display: grid;
  min-height: 420px;
}

.showcase-media {
  background:
    linear-gradient(180deg, transparent, rgba(23, 18, 12, 0.72)),
    #2b2114;
  min-height: 420px;
  overflow: hidden;
  position: relative;
}

.showcase-media > img:not(.showcase-logo) {
  animation: slowPan 16s ease-in-out infinite alternate;
  height: 100%;
  inset: 0;
  object-fit: cover;
  opacity: 0.42;
  position: absolute;
  transform: scale(1.02);
  width: 100%;
  z-index: 0;
}

.showcase-media::after {
  background:
    linear-gradient(180deg, rgba(23, 18, 12, 0.08), rgba(23, 18, 12, 0.78)),
    linear-gradient(90deg, rgba(185, 138, 47, 0.4), transparent 34%, rgba(255, 250, 240, 0.18));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 3;
}

.showcase-video-single {
  inset: 0;
  position: absolute;
  z-index: 2;
}

.showcase-video-single video {
  filter: saturate(1.06) contrast(1.03);
  height: 100%;
  object-fit: cover;
  opacity: 0;
  position: absolute;
  transition:
    opacity 650ms ease,
    transform 1200ms ease;
  transform: scale(1.01);
  width: 100%;
}

.showcase-video-single video.is-active {
  opacity: 0.86;
  transform: scale(1.035);
}

.showcase-video-single video.is-leaving {
  opacity: 0;
}

.showcase-badge {
  background: rgba(23, 18, 12, 0.78);
  border: 1px solid rgba(243, 215, 135, 0.42);
  border-radius: 999px;
  color: var(--gold-2) !important;
  left: 18px;
  padding: 8px 12px;
  position: absolute;
  top: 18px;
  z-index: 4;
}

.showcase-logo {
  background: #fffaf0;
  border: 1px solid rgba(243, 215, 135, 0.56);
  border-radius: 18px;
  bottom: 18px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.26);
  height: 92px;
  object-fit: cover;
  padding: 4px;
  position: absolute;
  right: 18px;
  width: 92px;
  z-index: 4;
}

.quote-card strong {
  display: block;
  font-size: 1.85rem;
  line-height: 1.06;
  margin-top: 8px;
}

.quote-card p {
  color: rgba(255, 248, 233, 0.72);
  line-height: 1.5;
  margin-top: 12px;
}

[data-step-panel][hidden] {
  display: none !important;
}

[data-step-panel] {
  scroll-margin-top: 94px;
}

.flow-nav {
  background: rgba(255, 250, 240, 0.86);
  border: 1px solid rgba(185, 138, 47, 0.24);
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(82, 55, 22, 0.12);
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
  padding: 8px;
  position: sticky;
  top: 8px;
  z-index: 12;
}

.flow-nav button {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  color: var(--muted);
  gap: 8px;
  min-height: 54px;
  padding: 0 10px;
  width: 100%;
}

.flow-nav strong {
  align-items: center;
  background: rgba(185, 138, 47, 0.12);
  border: 1px solid rgba(185, 138, 47, 0.22);
  border-radius: 999px;
  color: var(--gold);
  display: inline-flex;
  flex: 0 0 26px;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.flow-nav span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-nav button.is-active {
  background: linear-gradient(135deg, var(--gold), #765018);
  border-color: rgba(72, 44, 14, 0.24);
  box-shadow: 0 12px 30px rgba(104, 69, 24, 0.18);
  color: #fffaf0;
}

.flow-nav button.is-active strong {
  background: rgba(255, 250, 240, 0.22);
  border-color: rgba(255, 250, 240, 0.36);
  color: #fff8e9;
}

.models-section,
.calculator,
.full-gallery,
.review-panel,
.inspiration,
.appointment,
.contact-panel {
  margin-top: 24px;
}

.section-head {
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: 3.25rem;
  letter-spacing: 0;
  line-height: 0.98;
  margin-top: 8px;
  overflow-wrap: anywhere;
}

.section-head p {
  color: var(--muted);
  line-height: 1.45;
  margin-top: 10px;
  max-width: 680px;
}

.model-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.model-card {
  background: rgba(255, 253, 248, 0.84);
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
  display: grid;
  min-height: 330px;
  overflow: hidden;
  padding: 0;
  position: relative;
  text-align: left;
}

.model-card::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  content: "";
  height: 100%;
  left: -90%;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  transform: skewX(-18deg);
  transition: opacity 180ms ease;
  width: 55%;
}

.model-card.is-active {
  border-color: rgba(185, 138, 47, 0.86);
  box-shadow: 0 18px 42px rgba(111, 70, 19, 0.18);
}

.visual {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(236, 214, 170, 0.45)),
    #eee2cf;
  height: 180px;
  overflow: hidden;
  position: relative;
}

.visual img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.visual.has-image::before,
.visual.has-image::after {
  display: none;
}

.visual::before,
.visual::after {
  content: "";
  position: absolute;
}

.visual[data-theme="sheer"]::before {
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.78) 0 18px,
    rgba(198, 165, 94, 0.28) 18px 32px
  );
  inset: 18px 28px 0;
  transform: skewX(-6deg);
}

.visual[data-theme="roller"]::before {
  background: linear-gradient(#fff9ec 0 16%, #cda653 16% 18%, #f5efe3 18% 100%);
  border-radius: 4px;
  inset: 26px 30px 0;
  box-shadow: inset 0 18px 0 rgba(255, 255, 255, 0.55);
}

.visual[data-theme="panel"]::before {
  background: linear-gradient(90deg, #fffaf0 0 23%, #dec089 23% 25%, #f5ead4 25% 48%, #dec089 48% 50%, #fffaf0 50% 73%, #dec089 73% 75%, #f2e4cc 75%);
  inset: 12px 18px 0;
}

.visual[data-theme="exterior"]::before {
  background:
    linear-gradient(90deg, rgba(23, 18, 12, 0.5), transparent 26%),
    repeating-linear-gradient(0deg, rgba(185, 138, 47, 0.82) 0 9px, rgba(91, 69, 34, 0.85) 9px 12px);
  inset: 42px 12px 16px 52px;
  transform: perspective(300px) rotateX(14deg);
}

.model-body {
  padding: 16px;
}

.model-body h3 {
  font-size: 1.35rem;
  line-height: 1.08;
}

.model-body p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.42;
  margin-top: 8px;
}

.model-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: 0.9fr 1.1fr;
  padding: 0 16px 16px;
}

.model-actions button {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 44px;
  padding: 0 10px;
}

.model-actions .primary-action {
  animation: quoteButtonPulse 2.2s ease-in-out infinite;
  background: linear-gradient(135deg, var(--gold), #765018);
  border-color: rgba(72, 44, 14, 0.32);
  box-shadow:
    0 10px 22px rgba(104, 69, 24, 0.18),
    0 0 0 0 rgba(185, 138, 47, 0.34);
  color: #fffaf0;
}

.calculator,
.full-gallery,
.review-panel,
.inspiration {
  background: rgba(255, 253, 248, 0.78);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
}

.full-gallery {
  overflow: hidden;
}

.full-gallery-head {
  align-items: end;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 16px;
}

.full-gallery-head span {
  color: var(--gold);
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.full-gallery-head h2 {
  font-size: 3.25rem;
  letter-spacing: 0;
  line-height: 0.98;
  margin-top: 8px;
  overflow-wrap: anywhere;
}

.full-gallery-head p {
  color: var(--muted);
  line-height: 1.45;
  margin-top: 10px;
  max-width: 680px;
}

.full-gallery-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: auto auto;
}

.full-gallery-actions button {
  align-items: center;
  border-radius: 14px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 950;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  white-space: nowrap;
}

.full-gallery-layout {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
}

.full-gallery-stage {
  background: #17120c;
  border: 1px solid rgba(185, 138, 47, 0.32);
  border-radius: 22px;
  box-shadow: 0 22px 46px rgba(56, 35, 12, 0.18);
  min-height: 520px;
  overflow: hidden;
  position: relative;
}

.full-gallery-stage.is-ambient-preview,
.gallery-main.is-ambient-preview {
  background:
    radial-gradient(circle at 50% 42%, rgba(185, 138, 47, 0.18), transparent 34%),
    #17120c;
}

.full-gallery-stage::after {
  background:
    linear-gradient(180deg, transparent 58%, rgba(23, 18, 12, 0.58)),
    linear-gradient(90deg, rgba(185, 138, 47, 0.22), transparent 38%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.full-gallery-stage img,
.full-gallery-stage video,
.full-gallery-stage iframe {
  border: 0;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.gallery-main.is-video .video-poster-backdrop,
.gallery-main.is-video video,
.gallery-main.is-video iframe,
.full-gallery-stage .video-poster-backdrop,
.full-gallery-stage video,
.full-gallery-stage iframe {
  inset: 0;
  position: absolute;
}

.gallery-main.is-ambient-preview .video-poster-backdrop,
.full-gallery-stage.is-ambient-preview .video-poster-backdrop {
  filter: brightness(0.78) saturate(1.04);
  opacity: 0.74;
  transform: scale(1.015);
}

.gallery-main.is-video video,
.gallery-main.is-video iframe,
.full-gallery-stage video,
.full-gallery-stage iframe,
.media-lightbox-stage video,
.media-lightbox-stage iframe {
  opacity: 0;
  transition:
    opacity 520ms ease,
    transform 900ms ease;
}

.gallery-main.is-video video.is-media-ready,
.gallery-main.is-video iframe.is-media-ready,
.full-gallery-stage video.is-media-ready,
.full-gallery-stage iframe.is-media-ready,
.media-lightbox-stage video.is-media-ready,
.media-lightbox-stage iframe.is-media-ready {
  opacity: 1;
}

.gallery-main.is-ambient-preview iframe.is-media-ready,
.full-gallery-stage.is-ambient-preview iframe.is-media-ready {
  opacity: 0.9;
  transform: scale(1.025);
}

.video-loading {
  align-items: center;
  background:
    radial-gradient(circle at 50% 38%, rgba(243, 215, 135, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(23, 18, 12, 0.82), rgba(23, 18, 12, 0.48));
  color: #fffaf0;
  display: flex;
  flex-direction: column;
  font-weight: 850;
  gap: 8px;
  inset: 0;
  justify-content: center;
  letter-spacing: 0;
  opacity: 1;
  pointer-events: none;
  position: absolute;
  text-align: center;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
  transition:
    opacity 360ms ease,
    transform 360ms ease,
    visibility 360ms ease;
  visibility: visible;
  z-index: 5;
}

.video-loading-ring {
  animation: videoLoadingSpin 900ms linear infinite;
  border: 3px solid rgba(255, 250, 240, 0.28);
  border-top-color: var(--gold-2);
  border-radius: 999px;
  box-shadow: 0 0 28px rgba(185, 138, 47, 0.35);
  height: 42px;
  width: 42px;
}

.video-loading-title {
  font-size: 1rem;
  line-height: 1;
}

.video-loading-detail {
  color: rgba(255, 250, 240, 0.72);
  font-size: 0.78rem;
  line-height: 1.1;
}

.media-expand-toggle {
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(255, 250, 240, 0.9);
  border: 1px solid rgba(185, 138, 47, 0.5);
  border-radius: 999px;
  bottom: 14px;
  box-shadow: 0 14px 32px rgba(23, 18, 12, 0.28);
  color: #17120c;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 950;
  gap: 6px;
  justify-content: center;
  line-height: 1;
  min-height: 42px;
  padding: 0 16px;
  position: absolute;
  right: 14px;
  z-index: 8;
}

.media-expand-toggle::before {
  content: "+";
  font-size: 1.1rem;
  line-height: 0.8;
}

.is-media-expanded .media-expand-toggle::before {
  content: "-";
}

body.has-expanded-media {
  overflow: hidden;
}

body.has-expanded-media::before {
  backdrop-filter: blur(12px);
  background: rgba(23, 18, 12, 0.72);
  content: "";
  inset: 0;
  position: fixed;
  z-index: 999;
}

.media-lightbox {
  align-items: center;
  background:
    radial-gradient(circle at 50% 24%, rgba(185, 138, 47, 0.18), transparent 32%),
    rgba(23, 18, 12, 0.84);
  display: grid;
  inset: 0;
  justify-items: center;
  min-height: 100dvh;
  overscroll-behavior: contain;
  padding:
    max(14px, env(safe-area-inset-top))
    max(12px, env(safe-area-inset-right))
    max(14px, env(safe-area-inset-bottom))
    max(12px, env(safe-area-inset-left));
  position: fixed;
  z-index: 10000;
}

.media-lightbox-stage {
  background: #17120c;
  border: 1px solid rgba(243, 215, 135, 0.38);
  border-radius: 22px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.52);
  height: min(82dvh, 760px);
  overflow: hidden;
  position: relative;
  width: min(94vw, 980px);
}

.media-lightbox-stage > img,
.media-lightbox-stage > video,
.media-lightbox-stage > iframe,
.media-lightbox-stage .video-poster-backdrop {
  border: 0;
  height: 100%;
  inset: 0;
  object-fit: contain;
  position: absolute;
  width: 100%;
}

.media-lightbox-stage iframe.is-media-ready {
  opacity: 1;
}

.media-lightbox-close {
  backdrop-filter: blur(14px);
  background: rgba(255, 250, 240, 0.94);
  border: 1px solid rgba(185, 138, 47, 0.58);
  border-radius: 999px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
  color: #17120c;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 950;
  min-height: 48px;
  padding: 0 20px;
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  top: max(16px, env(safe-area-inset-top));
  z-index: 10001;
}

.gallery-main.is-video-ready .video-loading,
.full-gallery-stage.is-video-ready .video-loading,
.media-lightbox-stage.is-video-ready .video-loading {
  opacity: 0;
  transform: scale(0.96);
  visibility: hidden;
}

.gallery-main.is-video-error .video-loading,
.full-gallery-stage.is-video-error .video-loading,
.media-lightbox-stage.is-video-error .video-loading {
  background: rgba(23, 18, 12, 0.72);
}

.gallery-main.is-video-error .video-loading-ring,
.full-gallery-stage.is-video-error .video-loading-ring,
.media-lightbox-stage.is-video-error .video-loading-ring {
  animation: none;
  border-color: rgba(255, 250, 240, 0.32);
  border-top-color: #d05b3c;
}

.full-gallery-stage img {
  animation: galleryBreath 12s ease-in-out infinite alternate;
}

.full-gallery-video {
  display: block;
}

.full-gallery-rail {
  min-width: 0;
  position: relative;
}

.full-gallery-grid {
  align-content: start;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 520px;
  overflow-y: auto;
  padding: 2px 2px 12px;
}

.mobile-scroll-cue {
  display: none;
}

.full-gallery-thumb {
  background: #17120c;
  border: 1px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
  height: 156px;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.full-gallery-thumb::after {
  background: linear-gradient(180deg, transparent, rgba(23, 18, 12, 0.26));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.full-gallery-thumb.is-active {
  border-color: rgba(185, 138, 47, 0.98);
  box-shadow: 0 0 0 3px rgba(185, 138, 47, 0.18);
}

.full-gallery-thumb img,
.full-gallery-thumb video {
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
  width: 100%;
}

.full-gallery-thumb.is-video-thumb,
.video-thumb {
  background:
    radial-gradient(circle at 50% 42%, rgba(185, 138, 47, 0.28), transparent 34%),
    linear-gradient(135deg, #251b10, #0f0b07);
  position: relative;
}

.full-gallery-thumb.is-video-thumb img,
.video-thumb img,
.full-gallery-thumb.is-video-thumb video,
.video-thumb video {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  transition:
    filter 420ms ease,
    opacity 420ms ease,
    transform 700ms ease;
  width: 100%;
}

.full-gallery-thumb.is-video-thumb img,
.video-thumb img {
  filter: brightness(0.76) saturate(0.94);
}

.full-gallery-thumb.is-video-thumb video:not(.is-media-ready),
.video-thumb video:not(.is-media-ready) {
  opacity: 0;
}

.full-gallery-thumb.is-video-thumb video.is-media-ready,
.video-thumb video.is-media-ready {
  opacity: 1;
}

.media-thumb-video {
  display: block;
  pointer-events: none;
}

.main-preview-video,
.full-gallery-video {
  display: block;
  pointer-events: none;
}

.play-indicator {
  align-items: center;
  background: rgba(255, 250, 240, 0.92);
  border: 1px solid rgba(185, 138, 47, 0.52);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(23, 18, 12, 0.28);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  left: 50%;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  z-index: 4;
}

.play-indicator::before {
  border-bottom: 9px solid transparent;
  border-left: 14px solid #17120c;
  border-top: 9px solid transparent;
  content: "";
  margin-left: 4px;
}

.calculator-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
}

.gallery-panel,
.measure-panel {
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
}

.gallery-main,
.gallery-main.visual {
  border-radius: 16px;
  height: 278px;
  overflow: hidden;
  position: relative;
}

.gallery-main > img,
.gallery-main > video,
.gallery-main > iframe {
  border: 0;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.gallery-main.is-video .video-poster-backdrop,
.gallery-main.is-video video,
.gallery-main.is-video iframe {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.gallery-main.is-video {
  background: #17120c;
}

.gallery-strip,
.video-strip {
  display: grid;
  gap: 8px;
  grid-auto-flow: column;
  grid-auto-columns: 76px;
  margin-top: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
}

.gallery-thumb,
.video-thumb {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  cursor: pointer;
  height: 62px;
  overflow: hidden;
  padding: 0;
  scroll-snap-align: start;
}

.gallery-thumb.is-active,
.video-thumb.is-active {
  border-color: rgba(185, 138, 47, 0.95);
  box-shadow: 0 0 0 3px rgba(185, 138, 47, 0.18);
}

.gallery-thumb img,
.video-thumb img,
.video-thumb video {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.video-thumb {
  height: 76px;
  position: relative;
}

.measure-help {
  margin-top: 12px;
  width: 100%;
}

.measure-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.measure-head > div {
  min-width: 0;
}

.measure-head strong,
.measure-head small {
  display: block;
}

.measure-head small {
  color: var(--muted);
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.measure-head button,
.measure-add-line {
  background: #17120c;
  border: 0;
  color: #fff8e9;
  flex: 0 0 auto;
  white-space: nowrap;
}

.measure-add-line {
  border-radius: 16px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 900;
  margin-top: 12px;
  min-height: 52px;
  width: 100%;
}

.measure-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.measure-row {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  padding: 14px;
}

.measure-row strong {
  overflow-wrap: anywhere;
}

.row-top {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.row-top strong {
  font-size: 1.02rem;
}

.row-top button {
  background: rgba(162, 54, 29, 0.08);
  border: 1px solid rgba(162, 54, 29, 0.22);
  border-radius: 10px;
  color: var(--danger);
  cursor: pointer;
  min-height: 36px;
  padding: 0 10px;
}

.row-fields {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(100px, 0.55fr));
  margin-top: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.field input,
.field select {
  background: rgba(255, 252, 246, 0.9);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  min-height: 46px;
  min-width: 0;
  padding: 0 12px;
  width: 100%;
}

.row-result {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 12px;
}

.row-result strong {
  color: var(--ink);
}

.row-ready {
  background: rgba(26, 94, 58, 0.1);
  border: 1px solid rgba(26, 94, 58, 0.22);
  border-radius: 999px;
  color: var(--success);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 4px 10px;
  text-transform: uppercase;
}

.row-error {
  color: var(--danger);
  display: block;
  font-weight: 800;
  margin-top: 8px;
}

.quote-status {
  background: linear-gradient(135deg, rgba(26, 94, 58, 0.12), rgba(185, 138, 47, 0.12));
  border: 1px solid rgba(26, 94, 58, 0.18);
  border-radius: 16px;
  color: var(--ink);
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding: 14px 16px;
}

.quote-status span {
  color: var(--success);
  display: block;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.quote-status strong {
  color: var(--ink);
  display: block;
  font-size: 1rem;
  line-height: 1.35;
}

.quote-status[hidden] {
  display: none;
}

.step-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  margin-top: 14px;
}

.primary-action {
  background: linear-gradient(135deg, var(--gold), #765018);
  border: 1px solid rgba(72, 44, 14, 0.35);
  box-shadow: 0 14px 28px rgba(104, 69, 24, 0.2);
  color: #fffaf0;
}

.secondary-action {
  box-shadow: none;
}

.primary-action[disabled] {
  cursor: not-allowed;
  filter: grayscale(0.25);
  opacity: 0.5;
}

.review-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
}

.review-card,
.review-totals {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}

.review-card > span {
  color: var(--gold);
  display: block;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.review-card > strong {
  display: block;
  font-size: 1.7rem;
  line-height: 1.08;
  margin-top: 8px;
}

.review-lines {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.review-lines p {
  color: var(--muted);
  line-height: 1.42;
}

.review-lines article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.review-lines span {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.review-lines strong {
  font-size: 1.05rem;
}

.review-lines small {
  color: var(--muted);
  line-height: 1.35;
}

.review-totals {
  display: grid;
  gap: 10px;
}

.review-totals div {
  background: #17120c;
  border-radius: 16px;
  color: #fff8e9;
  padding: 16px;
}

.review-totals span {
  color: rgba(255, 248, 233, 0.68);
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.review-totals strong {
  display: block;
  font-size: 1.55rem;
  line-height: 1.05;
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.review-totals .promo-total {
  background: linear-gradient(135deg, #1a5e3a, #13462d);
}

.inspiration-rail {
  display: grid;
  gap: 12px;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 270px);
  overflow-x: auto;
  padding: 4px 4px 12px;
  scroll-snap-type: x mandatory;
}

.video-feature {
  background: #17120c;
  border: 1px solid rgba(185, 138, 47, 0.34);
  border-radius: 22px;
  color: #fffaf0;
  cursor: pointer;
  height: 330px;
  overflow: hidden;
  padding: 0;
  position: relative;
  scroll-snap-align: start;
  width: min(520px, calc(100vw - 64px));
}

.video-feature video {
  height: 100%;
  object-fit: cover;
  opacity: 0.94;
  width: 100%;
}

.video-feature::after {
  background:
    linear-gradient(180deg, rgba(23, 18, 12, 0.12), rgba(23, 18, 12, 0.82)),
    linear-gradient(90deg, rgba(185, 138, 47, 0.26), transparent);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.video-feature span {
  background: linear-gradient(180deg, transparent, rgba(23, 18, 12, 0.88));
  bottom: 0;
  color: #fffaf0;
  display: block;
  font-size: 1rem;
  font-weight: 950;
  left: 0;
  padding: 58px 18px 18px;
  position: absolute;
  right: 0;
  z-index: 2;
}

.inspiration-card {
  animation: riseSoft 700ms ease both;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  cursor: pointer;
  display: block;
  height: 270px;
  overflow: hidden;
  padding: 0;
  position: relative;
  scroll-snap-align: start;
  text-align: left;
}

.inspiration-card img,
.inspiration-card video {
  height: 100%;
  object-fit: cover;
  transition: transform 900ms ease;
  width: 100%;
}

.inspiration-card span {
  background: linear-gradient(180deg, transparent, rgba(23, 18, 12, 0.82));
  bottom: 0;
  color: #fffaf0;
  display: block;
  font-weight: 950;
  left: 0;
  padding: 50px 14px 14px;
  pointer-events: none;
  position: absolute;
  right: 0;
}

.appointment {
  align-items: center;
  background: linear-gradient(135deg, #17120c, #2c2113);
  border: 1px solid rgba(185, 138, 47, 0.42);
  border-radius: 24px;
  color: #fff8e9;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 24px;
}

.appointment p {
  color: rgba(255, 248, 233, 0.72);
  line-height: 1.5;
  margin-top: 8px;
  max-width: 740px;
}

.appointment h2 {
  font-size: 2.7rem;
  line-height: 1;
  margin-top: 8px;
}

.contact-panel {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.88), rgba(255, 246, 225, 0.7)),
    var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 22px 54px rgba(82, 55, 22, 0.12);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  overflow: hidden;
  padding: 22px;
}

.contact-panel h2 {
  font-size: 2.35rem;
  line-height: 1;
  margin-top: 8px;
}

.contact-panel p {
  color: var(--muted);
  line-height: 1.45;
  margin-top: 8px;
  max-width: 620px;
}

.contact-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, max-content);
}

.contact-action {
  min-width: 116px;
  text-align: center;
  white-space: nowrap;
}

.action-bar {
  align-items: center;
  background: rgba(23, 18, 12, 0.94);
  border: 1px solid rgba(185, 138, 47, 0.34);
  border-radius: 18px;
  box-shadow: 0 22px 48px rgba(23, 18, 12, 0.26);
  color: #fff8e9;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto auto auto auto;
  margin-top: 16px;
  padding: 12px;
  width: 100%;
  z-index: 20;
}

.action-bar span,
.action-bar strong {
  display: block;
  line-height: 1.1;
}

.action-bar span {
  color: rgba(255, 248, 233, 0.68);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.action-bar button[disabled] {
  cursor: not-allowed;
  opacity: 0.45;
}

.action-bar button[hidden] {
  display: none;
}

.has-sent-quote .review-grid {
  display: none;
}

.has-sent-quote .action-bar {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.has-sent-quote .action-bar > div,
.has-sent-quote #sendWhatsapp,
.has-sent-quote .edit-quote-action {
  display: none;
}

.has-sent-quote #retryWhatsapp,
.has-sent-quote #newQuote {
  min-height: 58px;
  white-space: normal;
}

.has-sent-quote #newQuote {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(185, 138, 47, 0.36);
  color: var(--ink);
}

.modal-open {
  overflow: hidden;
}

.quote-modal,
.choice-modal {
  align-items: center;
  background:
    radial-gradient(circle at 50% 20%, rgba(185, 138, 47, 0.22), transparent 34%),
    rgba(16, 12, 7, 0.7);
  display: grid;
  inset: 0;
  padding: 18px;
  position: fixed;
  z-index: 60;
}

.quote-modal[hidden],
.choice-modal[hidden] {
  display: none;
}

.quote-modal-panel,
.choice-panel {
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(245, 235, 214, 0.98)),
    var(--paper);
  border: 1px solid rgba(185, 138, 47, 0.38);
  border-radius: 24px;
  box-shadow: 0 28px 72px rgba(23, 18, 12, 0.34);
  color: var(--ink);
  margin: 0 auto;
  max-height: min(720px, calc(100vh - 28px));
  max-width: 680px;
  overflow-y: auto;
  padding: 24px;
  position: relative;
  width: min(100%, 680px);
}

.quote-modal-panel h2,
.choice-panel h2 {
  font-size: 2.7rem;
  line-height: 0.98;
  margin-top: 8px;
}

.quote-modal-panel p,
.choice-panel p {
  color: var(--muted);
  line-height: 1.5;
  margin-top: 10px;
}

.modal-close {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  min-height: 40px;
  padding: 0 14px;
  position: absolute;
  right: 16px;
  top: 16px;
}

.modal-name-field {
  margin-top: 18px;
}

.modal-name-field input {
  font-size: 1.1rem;
  font-weight: 800;
}

.choice-actions {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.choice-actions button {
  align-items: center;
  border-radius: 16px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 950;
  justify-content: center;
  min-height: 64px;
  padding: 0 18px;
  width: 100%;
}

.choice-actions button:not(.primary-action) {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  color: var(--ink);
}

.modal-error {
  color: var(--danger) !important;
  font-weight: 900;
  min-height: 22px;
}

.final-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
}

.final-summary div {
  background: #17120c;
  border: 1px solid rgba(185, 138, 47, 0.24);
  border-radius: 16px;
  color: #fff8e9;
  padding: 14px;
}

.final-summary div:nth-child(3) {
  background: #17120c;
}

.final-summary span {
  color: rgba(255, 248, 233, 0.68);
  display: block;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.final-summary strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.1;
  margin-top: 6px;
}

.whatsapp-final {
  background: linear-gradient(135deg, #1c8f56, #146b42);
  border: 0;
  border-radius: 16px;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 900;
  margin-top: 16px;
  min-height: 56px;
  width: 100%;
}

@media (hover: hover) {
  .model-card,
  .inspiration-card,
  .gallery-thumb,
  .video-thumb,
  .full-gallery-thumb,
  .ghost-link,
  .hero-actions button,
  .model-actions button,
  .measure-head button,
  .measure-add-line,
  .measure-help,
  .appointment a,
  .contact-action,
  .action-bar button,
  .step-actions button,
  .full-gallery-actions button,
  .flow-nav button {
    transition:
      border-color 180ms ease,
      box-shadow 180ms ease,
      transform 180ms ease;
  }

  .model-card:hover,
  .inspiration-card:hover,
  .gallery-thumb:hover,
  .video-thumb:hover,
  .full-gallery-thumb:hover,
  .ghost-link:hover,
  .hero-actions button:hover,
  .model-actions button:hover,
  .measure-head button:hover,
  .measure-add-line:hover,
  .measure-help:hover,
  .appointment a:hover,
  .contact-action:hover,
  .action-bar button:hover,
  .step-actions button:hover,
  .full-gallery-actions button:hover,
  .flow-nav button:hover {
    transform: translateY(-2px);
  }

  .inspiration-card:hover img,
  .inspiration-card:hover video,
  .full-gallery-thumb:hover img,
  .full-gallery-thumb:hover video {
    transform: scale(1.04);
  }

  .model-card:hover::after {
    animation: cardSheen 900ms ease;
    opacity: 1;
  }
}

@keyframes sweep {
  0%,
  62% {
    left: -80%;
  }
  100% {
    left: 130%;
  }
}

@keyframes cardSheen {
  from {
    left: -90%;
  }
  to {
    left: 135%;
  }
}

@keyframes slowPan {
  from {
    transform: scale(1.04) translate3d(-1.5%, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(1.5%, -1%, 0);
  }
}

@keyframes floatTile {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -8px, 0) scale(1.015);
  }
}

@keyframes riseSoft {
  from {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes revealClip {
  from {
    clip-path: inset(0 0 100% 0 round 24px);
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
  to {
    clip-path: inset(0 0 0 0 round 24px);
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes galleryBreath {
  from {
    transform: scale(1.01);
  }
  to {
    transform: scale(1.055);
  }
}

@keyframes videoLoadingSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes mobileScrollCueSweep {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(260%);
  }
}

@keyframes quoteButtonPulse {
  0%,
  100% {
    box-shadow:
      0 10px 22px rgba(104, 69, 24, 0.18),
      0 0 0 0 rgba(185, 138, 47, 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 14px 30px rgba(104, 69, 24, 0.24),
      0 0 0 7px rgba(185, 138, 47, 0);
    transform: scale(1.025);
  }
}

.page-ready.is-loading-entry .hero {
  animation: revealClip 760ms cubic-bezier(0.2, 0.84, 0.18, 1) both;
}

.page-ready.is-loading-entry .topbar,
.page-ready.is-loading-entry .hero-copy > *,
.page-ready.is-loading-entry .hero-showcase,
.page-ready.is-loading-entry .flow-nav,
.page-ready.is-loading-entry [data-step-panel]:not([hidden]),
.page-ready.is-loading-entry .model-card,
.page-ready.is-loading-entry .measure-row,
.page-ready.is-loading-entry .review-card,
.page-ready.is-loading-entry .review-totals,
.page-ready.is-loading-entry .appointment {
  animation: revealUp 720ms cubic-bezier(0.2, 0.84, 0.18, 1) both;
}

.page-ready.is-loading-entry .hero-copy > :nth-child(1) {
  animation-delay: 80ms;
}

.page-ready.is-loading-entry .hero-copy > :nth-child(2) {
  animation-delay: 150ms;
}

.page-ready.is-loading-entry .hero-copy > :nth-child(3) {
  animation-delay: 220ms;
}

.page-ready.is-loading-entry .hero-copy > :nth-child(4),
.page-ready.is-loading-entry .hero-showcase {
  animation-delay: 300ms;
}

.page-ready.is-loading-entry .flow-nav {
  animation-delay: 380ms;
}

.page-ready.is-loading-entry .model-card:nth-child(1) {
  animation-delay: 90ms;
}

.page-ready.is-loading-entry .model-card:nth-child(2) {
  animation-delay: 160ms;
}

.page-ready.is-loading-entry .model-card:nth-child(3) {
  animation-delay: 230ms;
}

.page-ready.is-loading-entry .model-card:nth-child(4) {
  animation-delay: 300ms;
}

@keyframes ambientGlow {
  from {
    opacity: 0.48;
    transform: translate3d(-18px, -10px, 0) scale(1);
  }
  to {
    opacity: 0.82;
    transform: translate3d(18px, 14px, 0) scale(1.035);
  }
}

@keyframes heroUnfold {
  0% {
    clip-path: inset(46% 18% 46% 18% round 28px);
    opacity: 0;
    transform: translate3d(0, 34px, 0) scale(0.965);
  }
  58% {
    clip-path: inset(0 0 0 0 round 28px);
    opacity: 1;
    transform: translate3d(0, -4px, 0) scale(1.006);
  }
  100% {
    clip-path: inset(0 0 0 0 round 28px);
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes textTrackIn {
  from {
    filter: blur(8px);
    opacity: 0;
    transform: translate3d(-34px, 22px, 0);
  }
  to {
    filter: blur(0);
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes showcaseLift {
  from {
    filter: blur(10px) saturate(0.85);
    opacity: 0;
    transform: translate3d(34px, 36px, 0) rotate(2deg) scale(0.94);
  }
  70% {
    filter: blur(0) saturate(1.08);
    opacity: 1;
    transform: translate3d(-4px, -6px, 0) rotate(-0.35deg) scale(1.018);
  }
  to {
    filter: blur(0) saturate(1);
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0) scale(1);
  }
}

@keyframes stepPanelIn {
  from {
    opacity: 1;
    transform: translate3d(0, 24px, 0) scale(0.992);
  }
  68% {
    opacity: 1;
    transform: translate3d(0, -4px, 0) scale(1.003);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes sectionTitleIn {
  from {
    opacity: 1;
    transform: translate3d(-12px, 10px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes cascadeCard {
  from {
    opacity: 1;
    transform: translate3d(0, 22px, 0) rotateX(5deg) scale(0.985);
  }
  70% {
    opacity: 1;
    transform: translate3d(0, -4px, 0) rotateX(0) scale(1.006);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateX(0) scale(1);
  }
}

@keyframes panelFromLeft {
  from {
    opacity: 1;
    transform: translate3d(-24px, 12px, 0) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes panelFromRight {
  from {
    opacity: 1;
    transform: translate3d(24px, 12px, 0) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes thumbPop {
  from {
    opacity: 1;
    transform: translate3d(0, 12px, 0) rotate(-1deg) scale(0.92);
  }
  72% {
    opacity: 1;
    transform: translate3d(0, -3px, 0) rotate(0.25deg) scale(1.02);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0) scale(1);
  }
}

@keyframes stageReveal {
  from {
    clip-path: inset(0 10% 0 10% round 22px);
    filter: blur(3px);
    opacity: 1;
    transform: scale(0.988);
  }
  to {
    clip-path: inset(0 0 0 0 round 22px);
    filter: blur(0);
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes navRipple {
  0% {
    box-shadow: 0 18px 45px rgba(82, 55, 22, 0.12);
    transform: translateY(0);
  }
  38% {
    box-shadow: 0 24px 54px rgba(185, 138, 47, 0.26);
    transform: translateY(-3px);
  }
  100% {
    box-shadow: 0 18px 45px rgba(82, 55, 22, 0.12);
    transform: translateY(0);
  }
}

@keyframes modalBackdropIn {
  from {
    backdrop-filter: blur(0);
    opacity: 0;
  }
  to {
    backdrop-filter: blur(10px);
    opacity: 1;
  }
}

@keyframes modalPanelBounce {
  from {
    filter: blur(8px);
    opacity: 0;
    transform: translate3d(0, 42px, 0) scale(0.9);
  }
  64% {
    filter: blur(0);
    opacity: 1;
    transform: translate3d(0, -8px, 0) scale(1.018);
  }
  to {
    filter: blur(0);
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes mediaSwap {
  from {
    filter: blur(3px) saturate(0.94);
    opacity: 0.74;
    transform: scale(1.035) translate3d(0, 8px, 0);
  }
  to {
    filter: blur(0) saturate(1);
    opacity: 1;
    transform: scale(1) translate3d(0, 0, 0);
  }
}

.page-ready.is-loading-entry .hero {
  animation: heroUnfold 1180ms cubic-bezier(0.16, 0.9, 0.16, 1) both;
}

.page-ready.is-loading-entry .hero-copy > * {
  animation: textTrackIn 860ms cubic-bezier(0.18, 0.82, 0.18, 1) both;
}

.page-ready.is-loading-entry .hero-showcase {
  animation: showcaseLift 1120ms cubic-bezier(0.18, 0.82, 0.18, 1) both;
}

.is-phase-moving .flow-nav {
  animation: navRipple 760ms cubic-bezier(0.2, 0.84, 0.18, 1) both;
}

[data-step-panel].is-step-entering {
  animation: stepPanelIn 900ms cubic-bezier(0.18, 0.82, 0.18, 1) both;
  transform-origin: 50% 0;
}

[data-step-panel].is-step-entering .section-head span,
[data-step-panel].is-step-entering .full-gallery-head span {
  animation: sectionTitleIn 620ms cubic-bezier(0.18, 0.82, 0.18, 1) 80ms both;
}

[data-step-panel].is-step-entering .section-head h2,
[data-step-panel].is-step-entering .full-gallery-head h2 {
  animation: sectionTitleIn 760ms cubic-bezier(0.18, 0.82, 0.18, 1) 160ms both;
}

[data-step-panel].is-step-entering .section-head p,
[data-step-panel].is-step-entering .full-gallery-head p {
  animation: sectionTitleIn 760ms cubic-bezier(0.18, 0.82, 0.18, 1) 230ms both;
}

[data-step-panel].is-step-entering .model-card,
[data-step-panel].is-step-entering .measure-row,
[data-step-panel].is-step-entering .review-card,
[data-step-panel].is-step-entering .review-totals,
[data-step-panel].is-step-entering .video-feature,
[data-step-panel].is-step-entering .inspiration-card {
  animation: cascadeCard 820ms cubic-bezier(0.18, 0.82, 0.18, 1) both;
  animation-delay: var(--stagger, 0ms);
  transform-origin: 50% 0;
}

[data-step-panel].is-step-entering .gallery-panel {
  animation: panelFromLeft 840ms cubic-bezier(0.18, 0.82, 0.18, 1) 110ms both;
}

[data-step-panel].is-step-entering .measure-panel {
  animation: panelFromRight 840ms cubic-bezier(0.18, 0.82, 0.18, 1) 180ms both;
}

[data-step-panel].is-step-entering .gallery-thumb,
[data-step-panel].is-step-entering .video-thumb,
[data-step-panel].is-step-entering .full-gallery-thumb {
  animation: thumbPop 650ms cubic-bezier(0.18, 0.82, 0.18, 1) both;
  animation-delay: var(--stagger, 0ms);
  transform-origin: 50% 100%;
}

[data-step-panel].is-step-entering .full-gallery-stage,
[data-step-panel].is-step-entering .gallery-main {
  animation: stageReveal 920ms cubic-bezier(0.18, 0.82, 0.18, 1) 80ms both;
}

.gallery-main > img,
.gallery-main > video,
.gallery-main > iframe {
  animation: mediaSwap 620ms cubic-bezier(0.18, 0.82, 0.18, 1) both;
}

.full-gallery-stage img {
  animation:
    mediaSwap 620ms cubic-bezier(0.18, 0.82, 0.18, 1) both,
    galleryBreath 12s ease-in-out 620ms infinite alternate;
}

.full-gallery-stage video,
.full-gallery-stage iframe {
  animation: mediaSwap 620ms cubic-bezier(0.18, 0.82, 0.18, 1) both;
}

.quote-modal.is-opening,
.choice-modal.is-opening {
  animation: modalBackdropIn 360ms ease both;
}

.quote-modal.is-opening .quote-modal-panel,
.choice-modal.is-opening .choice-panel {
  animation: modalPanelBounce 720ms cubic-bezier(0.18, 0.82, 0.18, 1) both;
}

@media (max-width: 980px) {
  .hero-grid,
  .calculator-grid,
  .review-grid,
  .full-gallery-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 780px;
  }

  .quote-card {
    align-self: stretch;
  }

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

  .action-bar {
    grid-template-columns: 1fr 1fr;
  }

  .action-bar > div {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  body {
    background-size:
      34px 34px,
      34px 34px,
      auto;
  }

  .shell {
    margin-bottom: 36px;
    max-width: 100%;
    padding: 8px;
  }

  .hero {
    border-radius: 18px;
    min-height: auto;
  }

  .hero::before {
    display: none;
  }

  .topbar {
    align-items: flex-start;
    padding: 12px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    border-radius: 12px;
    flex-basis: 46px;
    height: 46px;
    width: 46px;
  }

  .brand strong {
    font-size: 0.98rem;
  }

  .brand small {
    font-size: 0.72rem;
  }

  .ghost-link {
    min-height: 42px;
    padding: 0 10px;
    white-space: nowrap;
  }

  .hero-grid {
    gap: 18px;
    min-height: auto;
    padding: 24px 12px 14px;
  }

  h1 {
    font-size: 2.55rem;
    line-height: 0.96;
    max-width: 360px;
  }

  .hero-copy p {
    font-size: 0.96rem;
    line-height: 1.48;
    margin-top: 14px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 16px;
  }

  .flow-nav {
    border-radius: 16px;
    gap: 6px;
    margin-top: 10px;
    padding: 6px;
    top: 6px;
  }

  .flow-nav button {
    border-radius: 12px;
    flex-direction: column;
    gap: 3px;
    min-height: 56px;
    padding: 6px 4px;
  }

  .flow-nav strong {
    flex-basis: 22px;
    height: 22px;
    width: 22px;
  }

  .flow-nav span {
    font-size: 0.72rem;
    max-width: 100%;
  }

  .hero-showcase {
    min-height: 0;
  }

  .showcase-media {
    min-height: 214px;
  }

  .showcase-logo {
    height: 64px;
    width: 64px;
  }

  .quote-card strong {
    font-size: 1.35rem;
  }

  .models-section,
  .calculator,
  .full-gallery,
  .inspiration,
  .appointment {
    margin-top: 16px;
  }

  .section-head h2 {
    font-size: 1.95rem;
    line-height: 1.04;
  }

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

  .model-card {
    min-height: 0;
  }

  .model-actions {
    grid-template-columns: 1fr 1fr;
  }

  .visual {
    height: 168px;
  }

  .calculator,
  .full-gallery,
  .review-panel,
  .inspiration {
    border-radius: 18px;
    padding: 10px;
  }

  .full-gallery-head {
    align-items: stretch;
    grid-template-columns: 1fr;
    margin-bottom: 10px;
  }

  .full-gallery-head h2 {
    font-size: 1.95rem;
    line-height: 1.04;
  }

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

  .full-gallery-layout {
    gap: 10px;
  }

  .full-gallery-stage {
    border-radius: 18px;
    min-height: 48vh;
  }

  .full-gallery-grid {
    display: grid;
    gap: 8px;
    grid-auto-columns: 112px;
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-template-rows: repeat(2, 96px);
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 16px;
    overscroll-behavior-x: contain;
    scrollbar-color: rgba(185, 138, 47, 0.82) rgba(23, 18, 12, 0.16);
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
    touch-action: auto;
    -webkit-overflow-scrolling: touch;
  }

  .full-gallery-grid::-webkit-scrollbar {
    height: 8px;
  }

  .full-gallery-grid::-webkit-scrollbar-track {
    background: rgba(23, 18, 12, 0.12);
    border-radius: 999px;
  }

  .full-gallery-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--gold), var(--gold-2), var(--gold));
    border-radius: 999px;
  }

  .mobile-scroll-cue {
    align-items: center;
    display: grid;
    gap: 5px;
    grid-template-columns: 1fr auto 1fr;
    height: 24px;
    margin: -4px 8px 4px;
    pointer-events: none;
    position: relative;
  }

  .mobile-scroll-cue::before,
  .mobile-scroll-cue::after {
    color: rgba(185, 138, 47, 0.9);
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1;
    position: absolute;
    top: 5px;
    z-index: 2;
  }

  .mobile-scroll-cue::before {
    content: "<";
    left: 0;
    justify-self: start;
  }

  .mobile-scroll-cue::after {
    content: ">";
    right: 0;
    justify-self: end;
  }

  .mobile-scroll-cue span {
    background: rgba(185, 138, 47, 0.24);
    border-radius: 999px;
    display: block;
    height: 4px;
    overflow: hidden;
    position: relative;
    width: 100%;
  }

  .mobile-scroll-cue span:first-child {
    grid-column: 1;
    grid-row: 1;
  }

  .mobile-scroll-cue span:last-child {
    grid-column: 3;
    grid-row: 1;
    opacity: 0.72;
  }

  .mobile-scroll-cue strong {
    color: rgba(23, 18, 12, 0.68);
    font-size: 0.72rem;
    font-weight: 900;
    grid-column: 2;
    grid-row: 1;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .mobile-scroll-cue span::after {
    animation: mobileScrollCueSweep 1.9s ease-in-out infinite;
    background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
    content: "";
    inset: 0;
    position: absolute;
    width: 42%;
  }

  .mobile-scroll-cue span:last-child::after {
    animation-delay: 240ms;
  }

  .full-gallery-thumb {
    height: 96px;
    scroll-snap-align: start;
  }

  .calculator .section-head {
    margin-bottom: 10px;
  }

  .calculator .section-head h2 {
    font-size: 1.7rem;
    line-height: 1.02;
    margin-top: 6px;
  }

  .calculator .section-head p {
    font-size: 0.94rem;
    line-height: 1.34;
    margin-top: 6px;
  }

  .calculator-grid {
    gap: 10px;
  }

  .measure-panel {
    order: 1;
  }

  .gallery-panel {
    order: 2;
  }

  .gallery-panel,
  .measure-panel {
    border-radius: 16px;
    padding: 10px;
  }

  .gallery-main,
  .gallery-main.visual {
    height: 172px;
  }

  .gallery-strip {
    grid-auto-columns: 68px;
  }

  .video-strip {
    grid-auto-columns: 86px;
  }

  .gallery-thumb {
    height: 56px;
  }

  .video-thumb {
    height: 68px;
  }

  .measure-head,
  .appointment,
  .contact-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .measure-head {
    gap: 10px;
  }

  .measure-head button,
  .appointment a,
  .contact-action {
    min-height: 44px;
    width: 100%;
  }

  .contact-actions {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .measure-head small {
    line-height: 1.35;
  }

  .row-fields,
  .quote-status,
  .step-actions,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .field input,
  .field select {
    min-height: 42px;
  }

  .review-card,
  .review-totals {
    border-radius: 16px;
    padding: 14px;
  }

  .review-card > strong {
    font-size: 1.35rem;
  }

  .review-totals strong {
    font-size: 1.32rem;
  }

  .inspiration-rail {
    grid-auto-columns: minmax(220px, 78vw);
  }

  .video-feature {
    height: 260px;
    width: min(640px, calc(100vw - 40px));
  }

  .inspiration-card {
    height: 260px;
  }

  .appointment h2 {
    font-size: 2rem;
  }

  .contact-panel h2 {
    font-size: 1.9rem;
  }

  .action-bar {
    grid-template-columns: 1fr 1fr;
    padding: 10px;
  }

  .action-bar > div {
    grid-column: 1 / -1;
  }

  .action-bar button {
    min-height: 48px;
    padding: 0 10px;
    width: 100%;
  }

  .quote-modal,
  .choice-modal {
    align-items: stretch;
    padding: 10px;
  }

  .quote-modal-panel,
  .choice-panel {
    border-radius: 18px;
    max-height: calc(100vh - 20px);
    padding: 18px;
  }

  .quote-modal-panel h2,
  .choice-panel h2 {
    font-size: 2.15rem;
    padding-right: 76px;
  }

  .choice-actions button {
    min-height: 58px;
  }

  .final-summary {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 390px) {
  h1 {
    font-size: 2.35rem;
  }

  .brand small {
    display: none;
  }

  .topbar-actions {
    flex-direction: column;
    min-width: 106px;
  }

  .topbar-actions .ghost-link {
    width: 100%;
  }

  .action-bar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 340px) {
  .shell {
    padding: 6px;
  }

  .topbar {
    gap: 8px;
    padding: 10px;
  }

  .brand {
    max-width: 210px;
  }

  .brand strong {
    font-size: 0.9rem;
  }

  .ghost-link {
    font-size: 0.88rem;
    min-height: 38px;
    padding: 0 9px;
  }

  h1 {
    font-size: 2.16rem;
  }

  .section-head h2 {
    font-size: 1.78rem;
  }

  .measure-row,
  .gallery-panel,
  .measure-panel {
    padding: 10px;
  }

  .row-top {
    align-items: stretch;
    flex-direction: column;
  }

  .row-top button {
    width: 100%;
  }

  .video-feature {
    width: calc(100vw - 32px);
  }
}

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