: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;
}

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,
.inspiration,
.appointment,
.calculator-grid,
.gallery-panel,
.measure-panel,
.measure-row {
  min-width: 0;
}

.shell {
  margin: 0 auto 128px;
  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: 650px;
  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,
.inspiration,
.appointment {
  position: relative;
  z-index: 3;
}

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

.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 a,
.hero-actions button,
.measure-head button,
.measure-help,
.appointment a,
.action-bar a,
.action-bar 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 {
  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: 560px;
  padding: 44px 42px 42px;
}

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

.eyebrow,
.section-head span,
.appointment 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 a,
.appointment a,
.action-bar a {
  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: 520px;
}

.showcase-media {
  background:
    linear-gradient(180deg, transparent, rgba(23, 18, 12, 0.72)),
    #2b2114;
  min-height: 520px;
  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-stage {
  inset: 0;
  position: absolute;
  z-index: 2;
}

.showcase-video-tile {
  animation: floatTile 9s ease-in-out infinite;
  border: 1px solid rgba(255, 248, 233, 0.22);
  border-radius: 24px;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  position: absolute;
}

.showcase-video-tile video {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.showcase-video-tile[data-slot="1"] {
  height: 64%;
  left: 8%;
  top: 8%;
  width: 70%;
}

.showcase-video-tile[data-slot="2"] {
  animation-delay: -3s;
  bottom: 7%;
  height: 42%;
  right: 7%;
  width: 50%;
}

.showcase-video-tile[data-slot="3"] {
  animation-delay: -6s;
  height: 32%;
  left: 5%;
  bottom: 9%;
  width: 38%;
}

.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;
}

.models-section,
.calculator,
.inspiration,
.appointment {
  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;
  cursor: pointer;
  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;
}

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

.calculator-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
}

.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: 340px;
  overflow: hidden;
}

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

.gallery-thumb,
.video-thumb {
  border: 1px solid var(--line);
  border-radius: 13px;
  height: 76px;
  overflow: hidden;
  scroll-snap-align: start;
}

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

.video-thumb {
  background: #20170d;
  height: 104px;
  position: relative;
}

.video-thumb span {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.74), transparent);
  color: #fff8e9;
  font-size: 0.72rem;
  font-weight: 900;
  left: 0;
  padding: 6px 8px 18px;
  pointer-events: none;
  position: absolute;
  top: 0;
  right: 0;
}

.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 {
  background: #17120c;
  border: 0;
  color: #fff8e9;
  flex: 0 0 auto;
  white-space: nowrap;
}

.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-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 14px;
}

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

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

.quote-summary strong {
  display: block;
  font-size: 1.5rem;
  margin-top: 6px;
}

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

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

.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;
}

.motion-wall {
  background: #17120c;
  border: 1px solid rgba(185, 138, 47, 0.3);
  border-radius: 22px;
  display: grid;
  gap: 10px;
  grid-auto-flow: column;
  grid-auto-columns: minmax(170px, 1fr);
  grid-column: span 3;
  grid-template-rows: repeat(2, 150px);
  overflow: hidden;
  padding: 10px;
  position: relative;
  scroll-snap-align: start;
  width: min(760px, calc(100vw - 64px));
}

.motion-wall::after {
  background: linear-gradient(90deg, rgba(23, 18, 12, 0.36), transparent 40%, rgba(185, 138, 47, 0.18));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.motion-tile {
  animation: floatTile 10s ease-in-out infinite;
  background: #2b2114;
  border: 1px solid rgba(255, 248, 233, 0.16);
  border-radius: 16px;
  color: #fffaf0;
  cursor: pointer;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.motion-tile:nth-child(2n) {
  animation-delay: -4s;
}

.motion-tile:nth-child(3n) {
  animation-delay: -7s;
}

.motion-tile[data-size="wide"] {
  grid-row: span 2;
}

.motion-tile video {
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  width: 100%;
}

.motion-tile span {
  background: linear-gradient(180deg, transparent, rgba(23, 18, 12, 0.88));
  bottom: 0;
  color: #fffaf0;
  display: block;
  font-size: 0.82rem;
  font-weight: 950;
  left: 0;
  padding: 30px 12px 12px;
  position: absolute;
  right: 0;
}

.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;
}

.action-bar {
  align-items: center;
  background: rgba(23, 18, 12, 0.94);
  border: 1px solid rgba(185, 138, 47, 0.34);
  border-radius: 18px;
  bottom: 16px;
  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;
  left: 50%;
  max-width: min(1040px, calc(100vw - 24px));
  padding: 12px;
  position: fixed;
  transform: translateX(-50%);
  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],
.action-bar a[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.45;
}

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

.modal-open {
  overflow: hidden;
}

.quote-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] {
  display: none;
}

.quote-modal-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 {
  font-size: 2.7rem;
  line-height: 0.98;
  margin-top: 8px;
}

.quote-modal-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;
}

.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: linear-gradient(135deg, #1a5e3a, #13462d);
}

.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,
  .ghost-link,
  .hero-actions a,
  .hero-actions button,
  .measure-head button,
  .measure-help,
  .appointment a,
  .action-bar a,
  .action-bar button {
    transition:
      border-color 180ms ease,
      box-shadow 180ms ease,
      transform 180ms ease;
  }

  .model-card:hover,
  .inspiration-card:hover,
  .ghost-link:hover,
  .hero-actions a:hover,
  .hero-actions button:hover,
  .measure-head button:hover,
  .measure-help:hover,
  .appointment a:hover,
  .action-bar a:hover,
  .action-bar button:hover {
    transform: translateY(-2px);
  }

  .inspiration-card:hover img,
  .inspiration-card: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);
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .calculator-grid {
    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: 170px;
    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: 3.05rem;
    line-height: 0.96;
    max-width: 360px;
  }

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

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

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

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

  .showcase-video-tile {
    border-radius: 18px;
  }

  .showcase-video-tile[data-slot="1"] {
    height: 62%;
    left: 6%;
    top: 9%;
    width: 78%;
  }

  .showcase-video-tile[data-slot="2"] {
    bottom: 7%;
    height: 38%;
    right: 5%;
    width: 58%;
  }

  .showcase-video-tile[data-slot="3"] {
    bottom: 10%;
    height: 30%;
    left: 5%;
    width: 42%;
  }

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

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

  .models-section,
  .calculator,
  .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;
  }

  .visual {
    height: 168px;
  }

  .calculator,
  .inspiration {
    border-radius: 18px;
    padding: 12px;
  }

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

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

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

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

  .video-thumb {
    height: 150px;
  }

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

  .measure-head {
    gap: 10px;
  }

  .measure-head button,
  .appointment a {
    width: 100%;
  }

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

  .row-fields,
  .quote-summary {
    grid-template-columns: 1fr;
  }

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

  .motion-wall {
    grid-auto-columns: minmax(128px, 58vw);
    grid-column: auto;
    grid-template-rows: repeat(2, 128px);
    width: min(640px, calc(100vw - 40px));
  }

  .inspiration-card {
    height: 260px;
  }

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

  .action-bar {
    bottom: 8px;
    grid-template-columns: 1fr 1fr;
    max-width: calc(100vw - 16px);
    padding: 10px;
  }

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

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

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

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

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

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

  body:not(.has-valid-quote) .action-bar {
    grid-template-columns: 1fr;
  }

  body:not(.has-valid-quote) .action-bar a,
  body:not(.has-valid-quote) .action-bar button {
    display: none;
  }
}

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

  .brand small {
    display: none;
  }

  .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.45rem;
  }

  .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%;
  }

  .motion-wall {
    width: calc(100vw - 32px);
  }
}

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