/*
  Mia Fantasia Design Studio UI
  -----------------------------
  Shared layout, motion, and component styles.
*/

@font-face {
  font-family: "Floraison des Amours";
  src: url("Floraison des Amours.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  /* Core palette */
  --color-bg: #f4efe6;
  --color-bg-deep: #eadfcd;
  --color-surface: #fffaf1;
  --color-surface-strong: #f3e7d5;
  --color-text: #16120d;
  --color-text-soft: #4d453b;
  --color-border: #d6c6af;
  --color-accent: #89603b;
  --color-accent-dark: #5f4026;
  --color-accent-glow: rgba(156, 113, 71, 0.35);

  /* Shared shadows and radii */
  --shadow-soft: 0 12px 30px rgba(37, 24, 12, 0.11);
  --shadow-card: 0 22px 55px rgba(34, 22, 12, 0.16);
  --shadow-elevated: 0 30px 65px rgba(26, 17, 10, 0.22);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --container: 1220px;
  --container-max: 1220px;
  --container-gutter: clamp(0.9rem, 2.2vw, 2.4rem);
  --hero-stage-max: 1180px;
  --copy-max: 78ch;
  --space-section: clamp(2.4rem, 4.8vw, 4rem);
  --section-stack-gap: 1.5rem;
  --space-card: clamp(1.3rem, 2.4vw, 2rem);

  --transition-fast: 200ms ease;
  --transition-base: 340ms cubic-bezier(0.22, 1, 0.36, 1);
  --transition-slow: 800ms cubic-bezier(0.22, 1, 0.36, 1);

  --anchor-offset: clamp(84px, 9vw, 120px);
  --page-glow-blur: 95px;
  --reveal-blur: 6px;
  --header-blur-base: 14px;
  --header-blur-range: 8px;
  --header-saturation: 160%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

[id] {
  scroll-margin-top: var(--anchor-offset);
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(0.98rem, 0.18vw + 0.94rem, 1.06rem);
  color: var(--color-text);
  background:
    radial-gradient(1200px 620px at 85% -10%, rgba(225, 198, 160, 0.28), transparent 62%),
    radial-gradient(900px 500px at -10% 100%, rgba(184, 146, 102, 0.2), transparent 65%),
    linear-gradient(160deg, #f8f3eb 0%, #f2e9dc 45%, #f8f2e7 100%);
  line-height: 1.58;
  letter-spacing: 0.01em;
}

img {
  width: 100%;
  max-width: 100%;
  display: block;
  height: 100%;
  object-fit: cover;
}

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

/* Intro overlay remains non-blocking so users can start scrolling immediately. */
body.intro-active {
  overflow: auto;
}

/* Fullscreen premium intro layer shown above the page on first load. */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 180;
  overflow: hidden;
  background: transparent;
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  contain: paint;
  transition: opacity 520ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0ms linear 520ms;
}

.intro-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-overlay__picture {
  position: absolute;
  inset: 0;
  display: block;
  background: transparent;
}

.intro-overlay__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* Fill the viewport so the intro feels cinematic on every screen size. */
  object-fit: cover;
  object-position: center;
  clip-path: inset(0 0 var(--intro-surface-cutoff, 0px) 0);
  transition: opacity 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Soft cinematic darkening keeps the intro elegant and less harsh */
.intro-overlay__shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 68% at 16% 22%, rgba(255, 230, 190, 0.16), transparent 72%),
    linear-gradient(115deg, rgba(10, 7, 5, 0.5), rgba(10, 7, 5, 0.18) 52%, rgba(10, 7, 5, 0.48));
  clip-path: inset(0 0 var(--intro-surface-cutoff, 0px) 0);
  transition: opacity 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Existing intro tile container is reused as a host for the particle canvas. */
.intro-overlay__tiles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  contain: strict;
  transition: opacity 180ms ease;
}

.intro-overlay.is-canvas-active .intro-overlay__tiles {
  opacity: 1;
}

.intro-overlay__canvas {
  display: block;
  width: 100%;
  height: 100%;
  transform: translateZ(0);
}

.intro-overlay.is-dissolving .intro-overlay__image,
.intro-overlay.is-dissolving .intro-overlay__shade {
  opacity: 0;
}

.page-glow {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(var(--page-glow-blur));
  opacity: 0.35;
  pointer-events: none;
}

.page-glow--one {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -90px;
  background: #dec09a;
}

.page-glow--two {
  width: 360px;
  height: 360px;
  bottom: 4%;
  left: -130px;
  background: #d5b48b;
}

.container {
  width: min(var(--container-max), calc(100% - (var(--container-gutter) * 2)));
  margin-inline: auto;
}

/* Match the spacing between top-level sections to the same rhythm used between collection cards. */
.section-block {
  padding: 0;
}

/* Keep a consistent gap between sections instead of letting each section add its own large padding. */
main > .section-block + .section-block {
  margin-top: var(--section-stack-gap);
}

/* Non-hero first sections still need top breathing room below the fixed header. */
main > .section-block:first-child:not(.hero) {
  padding-top: calc(82px + var(--space-section));
}

/* Keep the final content section separated from the footer by the same shared gap. */
main > .section-block:last-child {
  margin-bottom: var(--section-stack-gap);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.71rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  margin-bottom: 0.95rem;
}

h1,
h2,
h3 {
  font-family: "Floraison des Amours", "Cormorant Garamond", serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.98;
  margin-top: 0;
  color: #100d0a;
}

h1 {
  font-size: clamp(2.6rem, 7.2vw, 5.5rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(2.1rem, 5vw, 4rem);
  margin-bottom: 1.2rem;
}

h3 {
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  margin-bottom: 0.8rem;
}

p {
  margin: 0 0 0.95rem;
  color: var(--color-text-soft);
  font-size: clamp(0.96rem, 1.1vw, 1.02rem);
}

/* Sticky, glass-like navigation with clearer hierarchy for conversion flows */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 60;
  --header-scroll-progress: 0;
  background: rgba(250, 244, 236, calc(var(--header-scroll-progress) * 0.9));
  backdrop-filter: blur(calc(var(--header-scroll-progress) * var(--header-blur-range)));
  border-bottom: 1px solid rgba(142, 113, 79, calc(var(--header-scroll-progress) * 0.2));
  transition: box-shadow 120ms linear;
}

/* Simple reading progress bar under the fixed header */
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 3px;
  transform-origin: left center;
  transform: scaleX(var(--scroll-read-progress, 0));
  background: linear-gradient(90deg, #8f6540, #c39c73);
  opacity: 0.95;
  pointer-events: none;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(49, 34, 20, 0.12);
}

.site-header.menu-open {
  background: rgba(250, 244, 236, 0.92);
  backdrop-filter: blur(calc(var(--header-blur-base) + var(--header-blur-range)));
  border-bottom-color: rgba(142, 113, 79, 0.2);
}

.nav-shell {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.brand-logo {
  width: clamp(142px, 16vw, 210px);
  height: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 1.4vw, 1.3rem);
}

.site-nav a {
  position: relative;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2e251d;
  padding: 0.35rem 0.2rem;
  transition: color var(--transition-fast);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.1rem;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, #8d6340, #b1885d);
  transition: transform var(--transition-base);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-accent-dark);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(123, 93, 59, 0.35);
  border-radius: 999px;
  background: rgba(255, 251, 245, 0.88);
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.nav-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(123, 93, 59, 0.55);
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: #282119;
}

/* Buttons: premium hover glow + subtle scale for stronger click affordance */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.94rem 1.55rem;
  border-radius: 999px;
  font-size: 0.87rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 700;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    background-color var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base);
  border: 1px solid transparent;
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
}

.btn:active {
  transform: translateY(-1px) scale(0.99);
}

.btn-primary {
  background: linear-gradient(120deg, #8e6641 0%, #6a472c 100%);
  border-color: rgba(106, 71, 44, 0.72);
  background-clip: border-box;
  color: #fff;
  box-shadow:
    0 12px 30px rgba(91, 63, 38, 0.32),
    0 0 0 0 var(--color-accent-glow);
}

.btn-primary:hover {
  box-shadow:
    0 18px 40px rgba(91, 63, 38, 0.38),
    0 0 0 10px rgba(156, 113, 71, 0.12);
}

.btn-secondary {
  border-color: rgba(108, 84, 57, 0.5);
  color: #2d2319;
  background: rgba(255, 251, 244, 0.85);
}

.btn-secondary:hover {
  background: #fff6ea;
  border-color: rgba(108, 84, 57, 0.7);
}

/* Cinematic hero: layered gradients and scroll-based parallax support */
.hero {
  position: relative;
  overflow: clip;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(82px + clamp(0.65rem, 1.1vw, 1rem));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 60% at 12% 18%, rgba(255, 241, 221, 0.55), transparent 70%),
    linear-gradient(100deg, rgba(23, 17, 12, 0.42), rgba(23, 17, 12, 0.08) 56%, rgba(23, 17, 12, 0.3));
  pointer-events: none;
  z-index: 0;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  grid-template-areas:
    "header image"
    "copy image";
  gap: clamp(1.8rem, 4vw, 4.3rem);
  align-items: center;
}

.hero-layout--cinematic {
  grid-template-columns: 1fr;
  grid-template-areas: "stage";
  justify-items: center;
}

.hero-stage {
  grid-area: stage;
  position: relative;
  width: 100%;
  max-width: var(--hero-stage-max);
  margin-inline: auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(131, 104, 73, 0.22);
  background: #d7c5ad;
  overflow: hidden;
  min-height: min(72vh, 700px);
  box-shadow: var(--shadow-elevated);
  isolation: isolate;
}

.hero-header {
  grid-area: header;
  position: relative;
  padding: clamp(1rem, 2.3vw, 1.8rem) clamp(1rem, 2.3vw, 1.8rem) 0;
}

.hero-copy {
  grid-area: copy;
  position: relative;
  padding: 0 clamp(1rem, 2.3vw, 1.8rem) clamp(1rem, 2.3vw, 1.8rem);
}

.hero-copy--overlay {
  position: absolute;
  top: 50%;
  left: clamp(0.6rem, 2.8vw, 2rem);
  bottom: auto;
  --hero-copy-anchor-x: 0px;
  --hero-copy-anchor-y: -50%;
  z-index: 5;
  width: min(88%, 640px);
  padding: clamp(1.1rem, 2.2vw, 1.6rem);
  border-radius: var(--radius-md);
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(145deg, rgba(17, 13, 10, 0.42), rgba(17, 13, 10, 0.12));
  border: 1px solid rgba(245, 226, 199, 0.24);
  backdrop-filter: blur(42px) saturate(125%);
  -webkit-backdrop-filter: blur(42px) saturate(125%);
  /* Use 2D transforms here because 3D/composited transforms can soften text rendering. */
  transform: translate(
    calc(var(--hero-copy-anchor-x) + var(--hero-copy-shift-x, 0px)),
    calc(var(--hero-copy-anchor-y) + var(--hero-copy-shift-y, 0px))
  );
}

.hero-copy--overlay .eyebrow {
  color: #efe0c8;
}

.hero-copy--overlay .hero-title {
  color: #fbf2e6;
}

.hero-copy--overlay .hero-lead,
.hero-copy--overlay p {
  color: rgba(251, 240, 224, 0.92);
}

.hero-title {
  margin-bottom: 1.05rem;
}

/* Line-by-line entrance animation for premium hero storytelling */
.hero-title-line {
  display: block;
  opacity: 0;
  transform: translateY(18px);
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1), opacity 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.loaded .hero-title-line {
  opacity: 1;
  transform: none;
}

body.loaded .hero-title-line:nth-child(2) {
  transition-delay: 120ms;
}

.hero-lead {
  font-size: clamp(1.01rem, 1.3vw, 1.12rem);
  color: #3f352b;
  max-width: 50ch;
}

.hero-copy p {
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.65rem;
}

.hero-image {
  grid-area: image;
  position: relative;
  margin: 0;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: min(58vh, 560px);
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow-elevated);
  transform: translateX(24px);
  opacity: 0;
  transition: transform 1000ms cubic-bezier(0.22, 1, 0.36, 1), opacity 1000ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.loaded .hero-image {
  transform: translateX(0);
  opacity: 1;
}

.hero-image--cinematic {
  display: block;
  min-height: min(72vh, 700px);
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  transform: none;
  opacity: 1;
  transition: none;
  box-shadow: none;
}

body.loaded .hero-image--cinematic {
  transform: none;
  opacity: 1;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(255, 248, 238, 0.18) 0%, transparent 38%, transparent 68%, rgba(255, 248, 238, 0.22) 100%),
    linear-gradient(0deg, rgba(11, 8, 5, 0.18), rgba(11, 8, 5, 0.18));
  pointer-events: none;
}

.hero-image--cinematic::after {
  background:
    linear-gradient(108deg, rgba(255, 248, 238, 0.16) 0%, transparent 38%, transparent 68%, rgba(255, 248, 238, 0.2) 100%),
    linear-gradient(0deg, rgba(11, 8, 5, 0.22), rgba(11, 8, 5, 0.22));
}

.hero-image picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-photo {
  object-position: center center;
  transform: scale(1.06);
  transition: transform 700ms ease;
}

.hero-image--cinematic .hero-photo {
  transform: scale(1);
  transition: opacity 220ms linear, transform var(--transition-slow);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(58% 68% at 14% 25%, rgba(252, 236, 214, 0.26), transparent 72%),
    linear-gradient(116deg, rgba(11, 8, 5, 0.48) 4%, rgba(11, 8, 5, 0.22) 48%, rgba(11, 8, 5, 0.42) 100%);
}

.about-grid {
  display: block;
  max-width: min(900px, 100%);
}

.about-copy {
  background: linear-gradient(145deg, rgba(255, 252, 247, 0.9), rgba(245, 234, 217, 0.76));
  border: 1px solid rgba(131, 104, 73, 0.22);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 3.6vw, 2.8rem);
  margin-inline: auto;
  box-shadow: var(--shadow-soft);
  text-align: left;
}

.about-copy__single-line {
  white-space: nowrap;
  font-size: clamp(0.88rem, 0.9vw, 0.98rem);
  letter-spacing: -0.01em;
}

/* This section title reads best a touch smaller than the other display headings. */
#about-product .about-copy h2 {
  font-size: clamp(2.15rem, 4.5vw, 3.7rem);
}

.bullet-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.2rem;
  margin: 1.35rem 0;
  padding: 0;
}

.bullet-grid li {
  position: relative;
  padding-left: 1.25rem;
  color: #2f2720;
  font-weight: 500;
}

.bullet-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(130deg, #a07a4f, #7d5f3f);
}

.section-heading {
  margin-bottom: clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.collection {
  background: linear-gradient(150deg, rgba(255, 251, 243, 0.9), rgba(247, 236, 220, 0.75));
  border: 1px solid rgba(130, 103, 70, 0.2);
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 2.7vw, 2.1rem);
  box-shadow: var(--shadow-soft);
}

.collection--geometric {
  width: 100%;
  margin-inline: auto;
  padding: clamp(1.35rem, 2.7vw, 2.1rem);
}

.collection--geometric .collection-header {
  max-width: none;
}

.collection + .collection {
  margin-top: 1.5rem;
}

.collection-header {
  max-width: 72ch;
  margin-bottom: 1.2rem;
}

.geometric-intro {
  max-width: 100%;
  margin: 0 0 0.9rem;
}

.geometric-intro__copy {
  text-align: left;
}

.geometric-intro__copy p:last-child {
  margin-bottom: 0;
}

.collection-subtitle {
  margin: -0.28rem 0 0.55rem;
  font-family: "Floraison des Amours", "Cormorant Garamond", serif;
  font-size: clamp(1.6rem, 2.05vw, 2.15rem);
  font-weight: 400;
  line-height: 1.05;
  text-align: center;
  color: #000;
}

.gallery-grid {
  display: grid;
  gap: 0.85rem;
}

.gallery-grid--geometric {
  align-items: stretch;
  justify-items: stretch;
  gap: 0.52rem;
}

.gallery-grid--geometric .gallery-item {
  aspect-ratio: 16 / 10;
  min-height: 0;
}

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

.gallery-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

/* Dynamic handmade layout feels editorial while preserving no-crop requirement */
.gallery-grid--handmade {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  max-width: 100%;
}

.handmade-item {
  grid-column: span 2;
}

.handmade-item--wide {
  grid-column: span 4;
}

.gallery-item {
  position: relative;
  min-height: clamp(280px, 28vw, 360px);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(64, 48, 28, 0.18);
  background: #e8dcc8;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

/* Premium image interaction: depth + zoom without text overlay */

.gallery-item img {
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1), filter 700ms ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: saturate(1.06);
}

@media (min-width: 1081px) {
  /* Match the standard section width while keeping the desktop gallery in two larger columns. */
  .collection--geometric {
    width: 100%;
    padding: clamp(1.8rem, 1.6vw, 2.8rem);
  }

  .gallery-grid--geometric {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    align-items: stretch;
  }

  /* Keep every geometric gallery card the same size on desktop. */
  .gallery-grid--geometric .gallery-item {
    aspect-ratio: 16 / 10;
    min-height: clamp(360px, 22vw, 460px);
  }

  .gallery-divider-label {
    display: block;
    grid-column: 1 / -1;
    align-self: center;
    justify-self: center;
    margin: 0.1rem 0 0.15rem;
    font-family: "Floraison des Amours", "Cormorant Garamond", serif;
    font-size: clamp(1.6rem, 2.05vw, 2.15rem);
    font-weight: 400;
    line-height: 1.05;
    text-align: center;
    color: #000;
  }

  /* Preserve the original image proportion on large screens without changing the smaller layout. */
  .gallery-item--preserve-ratio {
    min-height: 0;
  }

  .gallery-item--preserve-ratio img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}

/* Handmade images should remain fully visible (no crop) while still filling the grid area */
.gallery-grid--handmade .gallery-item {
  background: rgba(252, 245, 236, 0.95);
  min-height: clamp(260px, 22vw, 320px);
  padding: 0;
}

.gallery-grid--handmade .handmade-item--wide {
  min-height: clamp(320px, 28vw, 420px);
}

.gallery-grid--handmade .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

/* Explicit stagger for feature cards to guarantee all four animate in sequence. */
.feature-grid .feature-card:nth-child(1) {
  transition-delay: 0ms;
}

.feature-grid .feature-card:nth-child(2) {
  transition-delay: 90ms;
}

.feature-grid .feature-card:nth-child(3) {
  transition-delay: 180ms;
}

.feature-grid .feature-card:nth-child(4) {
  transition-delay: 270ms;
}

/* Feature cards with subtle gradient and reflection for premium polish */
.feature-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 253, 249, 0.92), rgba(245, 231, 212, 0.75));
  border: 1px solid rgba(129, 103, 73, 0.22);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.38) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 40px rgba(66, 49, 29, 0.17);
}

.feature-card:hover::before {
  transform: translateX(130%);
}

.cta {
  position: relative;
}

/* CTA uses animated overlay for stronger focal pull and higher conversion intent */
.cta-layout {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(130deg, rgba(35, 25, 17, 0.92), rgba(66, 45, 30, 0.9)),
    url("assets/images/mia_fantasia_hero.webp") center/cover;
  color: #f7f0e8;
  border-radius: var(--radius-lg);
  padding: clamp(2.1rem, 4.2vw, 3.4rem);
  box-shadow: var(--shadow-elevated);
}

.cta-layout::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: radial-gradient(circle, rgba(255, 220, 173, 0.16) 0%, transparent 62%);
  animation: ctaGlow 14s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ctaGlow {
  0%,
  100% {
    transform: translateX(-8%) translateY(3%) scale(1);
  }
  50% {
    transform: translateX(8%) translateY(-3%) scale(1.05);
  }
}

.cta-layout > * {
  position: relative;
  z-index: 1;
}

.cta-layout p,
.cta-layout h2,
.cta-layout li {
  color: #f6efe5;
}

.cta-layout .eyebrow {
  color: #f5d5a8;
}

.cta-layout .bullet-grid li::before {
  background: #f3d1a1;
}

.cta-urgency {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffd9aa;
  background: rgba(255, 172, 107, 0.13);
  border: 1px solid rgba(255, 172, 107, 0.42);
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  margin: 0 0 1rem;
}

.cta-trust {
  margin-top: 0.95rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f2d8b8;
}

.bullet-grid--compact {
  max-width: 760px;
}

.split-card {
  background: linear-gradient(155deg, rgba(255, 251, 244, 0.85), rgba(244, 233, 216, 0.75));
  border: 1px solid rgba(130, 104, 73, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.9rem;
  padding: clamp(1.5rem, 3vw, 2.4rem);
}

.centered-copy {
  max-width: min(820px, 100%);
  text-align: center;
}

.centered-copy p {
  margin-inline: auto;
}

/* Contact form styles are enhanced globally for better conversion feedback */
.contact-hero {
  /* Section-to-section spacing is handled by the shared stack gap above. */
  padding-bottom: 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.4rem;
}

.contact-card {
  background: linear-gradient(155deg, rgba(255, 252, 245, 0.9), rgba(244, 233, 217, 0.75));
  border: 1px solid rgba(130, 103, 70, 0.2);
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 2.7vw, 2.1rem);
  box-shadow: var(--shadow-soft);
}

.contact-items {
  display: grid;
  gap: 1.25rem;
}

.contact-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.45rem;
  color: #5f5548;
}

label {
  display: inline-block;
  margin: 0.85rem 0 0.42rem;
  color: #2e271f;
  font-weight: 600;
  font-size: 0.89rem;
  letter-spacing: 0.02em;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(178, 153, 120, 0.55);
  border-radius: var(--radius-sm);
  padding: 0.88rem 0.95rem;
  font: inherit;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.93);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

input:focus,
textarea:focus {
  border-color: #9a7850;
  box-shadow: 0 0 0 4px rgba(154, 120, 80, 0.18);
  background: #fff;
  outline: none;
}

textarea {
  resize: vertical;
}

.captcha-wrap {
  margin-top: 1rem;
}

.captcha-widget {
  min-height: 78px;
}

.captcha-note {
  margin: 0;
  font-size: 0.84rem;
  color: #615648;
}

.contact-card .btn {
  margin-top: 1.1rem;
}

/* Frontend-only success feedback injected by JS after form submission */
.form-success-message {
  margin-top: 1rem;
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(112, 159, 113, 0.45);
  background: rgba(217, 242, 216, 0.65);
  color: #204c22;
  font-size: 0.87rem;
  letter-spacing: 0.01em;
}

.site-footer {
  border-top: 1px solid rgba(130, 102, 72, 0.22);
  padding: 2.5rem 0;
  background: rgba(244, 236, 225, 0.68);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.2rem;
}

.footer-grid > :first-child {
  justify-self: start;
}

.footer-grid > :last-child {
  justify-self: end;
  text-align: right;
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo {
  width: clamp(170px, 18vw, 260px);
  height: auto;
}

.home-page .footer-grid > :first-child {
  grid-column: 2;
  justify-self: center;
}

.home-page .footer-grid > :last-child {
  grid-column: 3;
}

.site-footer h3 {
  margin-bottom: 0.3rem;
}

.site-footer p {
  margin: 0.2rem 0;
}

.site-footer a:hover {
  color: var(--color-accent-dark);
}

/* Lightweight reveal system: small lift, smooth fade, no costly filter animation. */
.reveal {
  --reveal-delay: 0ms;
  --reveal-translate-y: 34px;
  opacity: 0;
  transform: translate3d(0, var(--reveal-translate-y), 0);
  transform-origin: 50% 100%;
  filter: none;
  transition:
    opacity 1200ms cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay),
    transform 1900ms cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay);
  will-change: opacity, transform;
}

.reveal-blur-enabled .reveal {
  filter: none;
}

.reveal-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: none;
}

.hero-copy.hero-copy--overlay.reveal {
  filter: none;
  transform: translate(
    calc(var(--hero-copy-anchor-x) + var(--hero-copy-shift-x, 0px)),
    calc(var(--hero-copy-anchor-y) + 34px + var(--hero-copy-shift-y, 0px))
  );
}

.hero-copy.hero-copy--overlay.reveal-visible {
  filter: none;
  transform: translate(
    calc(var(--hero-copy-anchor-x) + var(--hero-copy-shift-x, 0px)),
    calc(var(--hero-copy-anchor-y) + var(--hero-copy-shift-y, 0px))
  );
}

.reveal-delay-1 {
  --reveal-delay: 90ms;
}

.reveal-delay-2 {
  --reveal-delay: 180ms;
}

.reveal-delay-3 {
  --reveal-delay: 270ms;
}

@media (min-width: 480px) {
  :root {
    --container-gutter: clamp(1rem, 2.4vw, 1.35rem);
  }
}

@media (min-width: 768px) {
  :root {
    --container-gutter: clamp(1.25rem, 2.6vw, 1.85rem);
    --section-stack-gap: clamp(1.5rem, 2vw, 1.95rem);
    --space-section: clamp(2.6rem, 4.4vw, 4.2rem);
  }

  .hero-copy--overlay {
    top: 48%;
    bottom: auto;
    --hero-copy-anchor-y: -50%;
  }

  .hero-layout {
    gap: clamp(2rem, 3.8vw, 4rem);
  }

  .feature-grid,
  .gallery-grid {
    gap: clamp(0.85rem, 1.6vw, 1.2rem);
  }
}

@media (min-width: 1024px) {
  :root {
    --container-max: 1360px;
    --hero-stage-max: 1260px;
    --container-gutter: clamp(1.4rem, 2.4vw, 2.2rem);
    --space-section: clamp(2.9rem, 4vw, 4.6rem);
    --section-stack-gap: clamp(1.65rem, 1.8vw, 2.25rem);
    --anchor-offset: clamp(88px, 6vw, 128px);
  }

  .section-heading {
    margin-bottom: clamp(2.1rem, 3vw, 3.2rem);
  }

  .site-footer {
    padding: clamp(2.7rem, 3.4vw, 3.5rem) 0;
  }
}

@media (min-width: 1440px) {
  :root {
    --container-max: 1540px;
    --hero-stage-max: 1460px;
    --container-gutter: clamp(1.6rem, 2vw, 2.4rem);
    --space-section: clamp(3.2rem, 3.8vw, 5rem);
    --section-stack-gap: clamp(1.8rem, 1.5vw, 2.5rem);
  }

  .about-grid,
  .centered-copy {
    max-width: none;
  }

  .hero-stage {
    width: min(96%, var(--hero-stage-max));
  }

  #about-product .about-copy > *,
  .centered-copy > * {
    max-width: var(--copy-max);
    margin-inline: auto;
  }

  #about-product .about-copy > * {
    margin-inline: 0;
  }

  .split-card,
  .contact-layout {
    gap: clamp(1.8rem, 2vw, 2.6rem);
  }

  .feature-grid {
    gap: clamp(1.2rem, 1.4vw, 1.7rem);
  }
}

@media (min-width: 1920px) {
  :root {
    --container-max: 1700px;
    --hero-stage-max: 1620px;
    --container-gutter: clamp(1.8rem, 1.8vw, 2.8rem);
    --space-section: clamp(3.5rem, 3vw, 5.5rem);
    --section-stack-gap: clamp(2rem, 1.35vw, 2.8rem);
  }

  h1 {
    font-size: clamp(3.2rem, 4.2vw, 6.2rem);
  }

  h2 {
    font-size: clamp(2.4rem, 3vw, 4.5rem);
  }

  h3 {
    font-size: clamp(1.8rem, 2vw, 2.9rem);
  }

  p {
    font-size: clamp(1rem, 0.7vw, 1.08rem);
  }

  .cta-layout,
  .split-card,
  .contact-card,
  .about-copy,
  .collection {
    padding: clamp(1.8rem, 1.6vw, 2.8rem);
  }
}

@media (min-width: 2560px) {
  :root {
    --container-max: 1840px;
    --hero-stage-max: 1760px;
    --container-gutter: clamp(2rem, 1.5vw, 3.2rem);
    --space-section: clamp(3.8rem, 2.5vw, 6rem);
    --section-stack-gap: clamp(2.2rem, 1.1vw, 3rem);
  }

  body {
    font-size: clamp(1rem, 0.24vw + 0.92rem, 1.1rem);
  }

  .hero-layout {
    gap: clamp(2.6rem, 2.6vw, 5rem);
  }

  .feature-grid {
    gap: clamp(1.4rem, 1.2vw, 2rem);
  }

  .footer-grid {
    gap: clamp(1.4rem, 1vw, 2rem);
  }
}

@media (min-width: 3840px) {
  :root {
    --container-max: 1960px;
    --hero-stage-max: 1880px;
    --container-gutter: clamp(2.4rem, 1.2vw, 4rem);
    --space-section: clamp(4.2rem, 2vw, 6.6rem);
    --section-stack-gap: clamp(2.4rem, 0.95vw, 3.3rem);
  }

  body {
    font-size: clamp(1.02rem, 0.22vw + 0.94rem, 1.14rem);
  }

  h1 {
    font-size: clamp(3.6rem, 3.8vw, 6.8rem);
  }

  h2 {
    font-size: clamp(2.6rem, 2.8vw, 4.8rem);
  }

  .hero-stage {
    min-height: min(78vh, 980px);
  }
}

/* Desktop/tablet responsiveness */
@media (max-width: 1080px) {
  .container {
    width: min(var(--container), calc(100% - 3.4rem));
  }

  .hero-layout,
  .split-card,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    grid-template-areas:
      "header"
      "image"
      "copy";
  }

  .hero-image {
    min-height: 460px;
  }

  .hero-stage,
  .hero-image--cinematic {
    min-height: min(72vh, 620px);
  }

  .hero-copy--overlay {
    width: min(92%, 560px);
  }

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

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

/* Mobile layout */
@media (max-width: 760px) {
  .about-copy__single-line {
    white-space: normal;
    font-size: inherit;
    letter-spacing: normal;
  }

  .cta-action-row {
    flex-wrap: wrap;
    gap: 0.55rem;
  }

  .cta-inline-note {
    white-space: normal;
  }

  :root {
    --space-section: clamp(2rem, 6.4vw, 3rem);
  }

  /* Prevent horizontal drift on phones. */
  html,
  body {
    overflow-x: clip;
  }

  .contact-card--inquiry {
    order: 1;
  }

  .contact-card--details {
    order: 2;
  }

  .container {
    /* Keep equal side padding on phones. */
    width: 100%;
    max-width: var(--container);
    padding-inline: 0.7rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0.9rem;
    right: 0.9rem;
    background: rgba(255, 251, 242, 0.98);
    border: 1px solid rgba(125, 95, 61, 0.27);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 0.2rem;
    padding: 0.65rem;
    transform-origin: top;
    transform: translateY(-6px) scaleY(0.94);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base), transform var(--transition-base);
  }

  .site-header.menu-open .site-nav {
    transform: translateY(0) scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.8rem 0.84rem;
    border-radius: 10px;
    font-size: 0.82rem;
  }

  .site-nav a:hover {
    background: #efe2cf;
  }

  .brand-logo {
    width: clamp(126px, 38vw, 172px);
  }

  .hero {
    align-items: flex-start;
    justify-content: center;
    min-height: auto;
    padding-top: calc(82px + 0.35rem);
    transition: padding-top var(--transition-base);
  }

  .hero-layout {
    justify-items: center;
    text-align: center;
    gap: 0.45rem;
  }

  /* The hero is a flex section, so explicitly center its inner layout and stage on phones. */
  #home > .container.hero-layout--cinematic {
    width: 100%;
    justify-items: stretch;
    margin-inline: auto;
    transform: none;
  }

  .hero-header {
    padding: 0.6rem 0 0;
  }

  .hero-title {
    margin-bottom: 0.35rem;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
  }

  .hero-copy--overlay {
    top: auto;
    left: 1rem;
    right: 1rem;
    bottom: 0.85rem;
    --hero-copy-anchor-x: 0px;
    --hero-copy-anchor-y: 0px;
    --hero-copy-shift-x: 0px;
    width: min(calc(100% - 2rem), 19.5rem);
    max-width: calc(100% - 2rem);
    padding: 0.9rem 0.78rem;
    text-align: left;
    backdrop-filter: blur(42px) saturate(128%) !important;
    -webkit-backdrop-filter: blur(42px) saturate(128%) !important;
    background: linear-gradient(145deg, rgba(17, 13, 10, 0.36), rgba(17, 13, 10, 0.1));
  }

  .hero-stage {
    width: 100%;
    max-width: none;
    justify-self: center;
    margin-inline: auto;
    border-radius: 22px;
    min-height: clamp(420px, 78svh, 560px);
  }

  .hero-copy--overlay .hero-title {
    font-size: clamp(2rem, 8.8vw, 2.8rem);
    line-height: 1.02;
    margin-bottom: 0.22rem;
  }

  .hero-copy--overlay .eyebrow,
  .hero-copy--overlay .hero-title,
  .hero-copy--overlay p {
    text-align: left;
  }

  .hero-copy p,
  .hero-lead {
    margin-inline: auto;
    max-width: 40ch;
  }

  .hero-copy--overlay .hero-lead,
  .hero-copy--overlay p {
    max-width: none;
    font-size: 0.93rem;
    line-height: 1.44;
    overflow-wrap: anywhere;
  }

  .hero-copy .hero-actions {
    order: 0;
    margin-top: 0.7rem;
    margin-bottom: 0;
  }

  .hero-actions {
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    width: 100%;
    gap: 0.55rem;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .btn {
    min-height: 46px;
    padding-inline: 1.3rem;
  }

  .hero-image {
    margin-inline: auto;
    min-height: 340px;
  }

  /* Mobile no-crop mode: keep full hero image visible behind the overlay copy box. */
  .hero-image--cinematic {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-inline: auto;
    background: #17120d;
    min-height: clamp(420px, 78svh, 560px);
  }

  /* Center the actual hero image wrapper itself so the left and right phone margins match. */
  .hero-image--cinematic picture {
    width: 100%;
    margin-inline: auto;
  }

  .hero-image--cinematic .hero-photo {
    object-fit: contain;
    object-position: center;
    transform: none;
  }

  #collections > .container {
    width: 100%;
    padding-inline: 0;
  }

  .bullet-grid,
  .bullet-grid--compact {
    grid-template-columns: 1fr;
  }

  .gallery-grid--three,
  .gallery-grid--two {
    grid-template-columns: 1fr;
  }

  .gallery-grid--two .gallery-item--wood-lamp {
    order: 1;
  }

  .gallery-grid--two .gallery-item--preserve-ratio {
    order: 2;
  }

  .gallery-grid--handmade {
    grid-template-columns: 1fr;
    width: min(100%, 34rem);
    margin-inline: auto;
  }

  .handmade-item,
  .handmade-item--wide {
    grid-column: auto;
  }

  .collection {
    padding: 0.72rem;
  }

  .collection-header {
    margin-bottom: 0.8rem;
  }

  .gallery-grid {
    gap: 0.58rem;
  }

  #collections .collection {
    padding: 0;
  }

  #collections .collection-header {
    padding-inline: 0;
    margin-bottom: 0.48rem;
  }

  #collections .gallery-grid {
    gap: 0.08rem;
    width: calc(100% + 2.2rem);
    margin-inline: -1.1rem;
  }

  #collections .gallery-grid--handmade {
    width: min(100%, 34rem);
    margin-inline: auto;
    gap: 0.6rem;
  }

  #collections .gallery-grid--handmade .handmade-item--wide {
    width: 100%;
    justify-self: stretch;
  }

  #collections .gallery-grid--handmade .handmade-item--blue-panel {
    width: min(100%, 32rem);
    max-width: none;
    margin-inline: 0;
    justify-self: center;
  }

  #collections .handmade-item--bubbles,
  #collections .handmade-item--branch,
  #collections .handmade-item--wood-panel,
  #collections .handmade-item--tiger {
    width: min(100%, 35rem);
    justify-self: center;
    margin-inline: auto;
  }

  .gallery-grid--geometric .geometric-item--feature {
    aspect-ratio: auto;
    min-height: 0;
    order: 2;
  }

  .gallery-grid--geometric .geometric-item--side-top {
    order: 4;
  }

  .gallery-grid--geometric .geometric-item--side-bottom {
    order: 5;
  }

  .gallery-grid--geometric .geometric-item--feature img {
    height: auto;
    object-fit: contain;
  }

  .gallery-grid--geometric .gallery-divider-label {
    display: block;
    order: 3;
    margin: 0.2rem 0 0.3rem;
    padding: 0.1rem 0;
    font-family: "Floraison des Amours", "Cormorant Garamond", serif;
    font-size: clamp(1.45rem, 7vw, 2rem);
    font-weight: 400;
    line-height: 1.05;
    text-align: center;
    color: #000;
    background: transparent;
  }

  .collection-subtitle {
    margin: 0.2rem 0 0.3rem;
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-grid > :first-child,
  .footer-grid > :last-child {
    justify-self: center;
    text-align: center;
  }

  .home-page .footer-grid > :first-child,
  .home-page .footer-grid > :last-child {
    grid-column: auto;
  }
}

/* Very small screens: compact typography and full-width hero CTAs for cleaner tap targets */
@media (max-width: 520px) {
  .hero-title {
    font-size: clamp(2.1rem, 11vw, 2.8rem);
  }

  .hero-copy--overlay .hero-lead,
  .hero-copy--overlay p {
    font-size: 0.88rem;
    line-height: 1.42;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stage,
  .hero-image--cinematic {
    min-height: clamp(380px, 72svh, 520px);
  }

  /* Keep the same no-crop behavior on very small screens. */
  .hero-image--cinematic .hero-photo {
    object-fit: contain;
    object-position: center;
  }

  .hero-stage {
    border-radius: 18px;
  }
}

/* Accessibility fallback for reduced motion users */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .hero-image,
  .hero-title-line {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/*
  Liquid Glass Redesign
  ---------------------
  These overrides preserve the existing content and layout while shifting the
  visual language toward a more premium, Apple-inspired liquid glass system.
*/

/* Shared design tokens keep the glass treatment consistent across the site. */
:root {
  --color-bg: #eef3f8;
  --color-bg-deep: #e2e9f1;
  --color-surface: rgba(255, 255, 255, 0.58);
  --color-surface-strong: rgba(255, 255, 255, 0.74);
  --color-text: #16202c;
  --color-text-soft: #556171;
  --color-border: rgba(255, 255, 255, 0.64);
  --color-accent: #70839c;
  --color-accent-dark: #243347;
  --color-accent-glow: rgba(184, 199, 221, 0.36);
  --shadow-soft: 0 14px 34px rgba(30, 43, 61, 0.09);
  --shadow-card: 0 22px 48px rgba(30, 43, 61, 0.14);
  --shadow-elevated: 0 30px 72px rgba(24, 36, 52, 0.16);
  --glass-fill: linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(247, 250, 253, 0.22));
  --glass-fill-soft: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(244, 248, 252, 0.12));
  --glass-fill-strong: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(244, 248, 252, 0.34));
  --glass-stroke: rgba(255, 255, 255, 0.76);
  --glass-stroke-soft: rgba(255, 255, 255, 0.54);
  --glass-highlight: rgba(255, 255, 255, 0.94);
  --glass-shadow: 0 16px 38px rgba(28, 42, 60, 0.1);
  --glass-shadow-strong: 0 24px 54px rgba(28, 42, 60, 0.13);
  --glass-blur: blur(20px) saturate(155%);
  --glass-blur-soft: blur(14px) saturate(145%);
  --deferred-bg-image: none;
}

:root[data-performance-tier="lite"] {
  --page-glow-blur: 82px;
  --reveal-blur: 0px;
  --header-blur-base: 8px;
  --header-blur-range: 4px;
  --header-saturation: 125%;
  --shadow-soft: 0 12px 28px rgba(30, 43, 61, 0.08);
  --shadow-card: 0 18px 38px rgba(30, 43, 61, 0.11);
  --shadow-elevated: 0 22px 50px rgba(24, 36, 52, 0.13);
  --glass-shadow: 0 12px 28px rgba(28, 42, 60, 0.08);
  --glass-shadow-strong: 0 18px 38px rgba(28, 42, 60, 0.1);
  --glass-blur: blur(12px) saturate(125%);
  --glass-blur-soft: blur(8px) saturate(118%);
}

:root[data-performance-tier="minimal"] {
  --page-glow-blur: 64px;
  --reveal-blur: 0px;
  --header-blur-base: 0px;
  --header-blur-range: 0px;
  --header-saturation: 100%;
  --shadow-soft: 0 10px 22px rgba(30, 43, 61, 0.07);
  --shadow-card: 0 14px 28px rgba(30, 43, 61, 0.09);
  --shadow-elevated: 0 18px 36px rgba(24, 36, 52, 0.11);
  --glass-shadow: 0 10px 22px rgba(28, 42, 60, 0.07);
  --glass-shadow-strong: 0 14px 28px rgba(28, 42, 60, 0.08);
  --glass-blur: blur(0px);
  --glass-blur-soft: blur(0px);
}

/* Ambient background lighting keeps the page airy and softly dimensional. */
body {
  background:
    radial-gradient(1100px 620px at 14% -10%, rgba(255, 255, 255, 0.95), transparent 62%),
    radial-gradient(880px 560px at 100% 2%, rgba(188, 208, 236, 0.68), transparent 58%),
    radial-gradient(820px 520px at 0% 100%, rgba(210, 224, 242, 0.7), transparent 62%),
    linear-gradient(180deg, #f9fbff 0%, #eef3f8 46%, #e8eef5 100%);
  color: var(--color-text);
}

.page-glow {
  opacity: 0.52;
  filter: blur(var(--page-glow-blur));
}

.page-glow--one {
  background: rgba(210, 222, 242, 0.8);
}

.page-glow--two {
  background: rgba(255, 255, 255, 0.76);
}

h1,
h2,
h3 {
  color: #122030;
}

p,
.hero-lead {
  color: var(--color-text-soft);
}

.eyebrow,
.contact-label {
  color: rgba(36, 51, 71, 0.64);
}

/* The intro keeps its cinematic feel but with a cooler, lighter atmosphere. */
.intro-overlay__image {
  filter: saturate(0.95) contrast(1.03);
}

.intro-overlay__shade {
  background:
    radial-gradient(60% 68% at 18% 22%, rgba(255, 255, 255, 0.2), transparent 72%),
    linear-gradient(115deg, rgba(20, 31, 44, 0.34), rgba(20, 31, 44, 0.12) 52%, rgba(20, 31, 44, 0.3));
}

/* The header becomes a floating glass strip with a restrained highlight line. */
.site-header {
  background: rgba(246, 249, 252, calc(0.18 + var(--header-scroll-progress) * 0.34));
  border-bottom: 1px solid rgba(255, 255, 255, calc(0.28 + var(--header-scroll-progress) * 0.28));
  backdrop-filter: blur(calc(var(--header-blur-base) + var(--header-scroll-progress) * var(--header-blur-range))) saturate(var(--header-saturation));
  -webkit-backdrop-filter: blur(calc(var(--header-blur-base) + var(--header-scroll-progress) * var(--header-blur-range))) saturate(var(--header-saturation));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    0 14px 34px rgba(29, 41, 58, 0.08);
  transition: box-shadow 180ms linear;
}

.site-header::after {
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.14), rgba(129, 149, 178, 0.62), rgba(255, 255, 255, 0.14));
  opacity: 0.88;
}

.site-header.is-scrolled {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 18px 42px rgba(29, 41, 58, 0.12);
}

.site-header.menu-open {
  background: rgba(248, 250, 253, 0.7);
  border-bottom-color: rgba(255, 255, 255, 0.48);
}

.brand-logo {
  filter: drop-shadow(0 8px 18px rgba(34, 47, 66, 0.08));
}

.site-nav a {
  color: rgba(35, 49, 67, 0.82);
  transition:
    color var(--transition-fast),
    background-color var(--transition-fast);
}

.site-nav a::after {
  height: 2px;
  bottom: -0.18rem;
  background: linear-gradient(90deg, rgba(120, 144, 174, 0.18), rgba(120, 144, 174, 0.78), rgba(255, 255, 255, 0.18));
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #18283a;
}

.nav-toggle {
  background: var(--glass-fill-soft);
  border-color: var(--glass-stroke-soft);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 12px 30px rgba(30, 43, 61, 0.1);
  backdrop-filter: var(--glass-blur-soft);
  -webkit-backdrop-filter: var(--glass-blur-soft);
}

.nav-toggle span {
  background: #243347;
}

/* Buttons use a luminous layered fill and softer motion to feel fluid and precise. */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-color: transparent;
  background: var(--glass-fill-soft);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 10px 26px rgba(30, 43, 61, 0.08);
  backdrop-filter: var(--glass-blur-soft);
  -webkit-backdrop-filter: var(--glass-blur-soft);
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 16px 34px rgba(30, 43, 61, 0.12);
}

.btn-primary {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(229, 237, 247, 0.44));
  border-color: transparent;
  color: #16263a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 18px 38px rgba(39, 52, 72, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.22);
}

.btn-primary:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(233, 240, 248, 0.52));
  border-color: transparent;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 20px 42px rgba(39, 52, 72, 0.16),
    0 0 0 8px rgba(202, 214, 232, 0.24);
}

.btn-secondary {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(248, 251, 254, 0.34));
  border-color: transparent;
  color: #27384c;
}

.btn-secondary:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(248, 251, 254, 0.42));
  border-color: transparent;
}

/* The hero becomes a softly lit glass stage with a stronger readable text panel. */
.hero::before {
  background:
    radial-gradient(66% 58% at 16% 14%, rgba(255, 255, 255, 0.48), transparent 70%),
    linear-gradient(135deg, rgba(248, 252, 255, 0.42), rgba(225, 234, 245, 0.18) 55%, rgba(214, 223, 237, 0.32));
}

.hero-stage {
  border-color: rgba(255, 255, 255, 0.48);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(236, 242, 248, 0.12));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.44),
    var(--glass-shadow-strong);
}

.hero-image::after {
  background: none;
}

.hero-image--cinematic::after {
  background: none;
}

.hero-overlay {
  background: none;
}

.hero-copy--overlay {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(245, 248, 252, 0.12));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    var(--glass-shadow);
  backdrop-filter: var(--glass-blur-soft);
  -webkit-backdrop-filter: var(--glass-blur-soft);
}

.hero-copy--overlay::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.03) 42%, transparent 70%);
  pointer-events: none;
}

.hero-copy--overlay > * {
  position: relative;
  z-index: 1;
  filter: none;
  text-rendering: geometricPrecision;
}

.hero-copy--overlay .eyebrow {
  color: #000;
}

.hero-copy--overlay .hero-title {
  color: #000;
  text-shadow: none;
}

.hero-copy--overlay .hero-lead,
.hero-copy--overlay p {
  color: #000;
  text-shadow: none;
}

/* Shared glass cards keep the content sections cohesive without flattening them. */
.about-copy,
.collection,
.feature-card,
.split-card,
.contact-card,
.site-footer {
  background: var(--glass-fill);
  border: 1px solid var(--glass-stroke);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.76),
    var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.bullet-grid li {
  color: #223245;
}

.bullet-grid li::before,
.cta-layout .bullet-grid li::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(129, 149, 178, 0.68));
}

.gallery-item {
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: var(--glass-shadow);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(240, 246, 252, 0.18));
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--glass-shadow-strong);
}

.gallery-item:hover img {
  filter: saturate(1.02) contrast(1.03);
}

.feature-card::before {
  background: linear-gradient(110deg, transparent 24%, rgba(255, 255, 255, 0.58) 50%, transparent 76%);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 26px 60px rgba(30, 43, 61, 0.16);
}

/* The CTA keeps its photography, but the overlay and text treatment become cooler and more refined. */
.cta-layout {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(236, 242, 249, 0.64));
  border: 1px solid var(--glass-stroke);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    var(--glass-shadow-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  display: grid;
  justify-items: start;
  gap: 0.4rem;
}

.cta-layout::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
}

.cta-layout::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--deferred-bg-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scaleX(-1);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.cta-layout p,
.cta-layout h2,
.cta-layout li {
  color: #0d1724;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.34);
}

.cta-layout p,
.cta-layout h2,
.cta-layout .bullet-grid--compact {
  margin-bottom: 0.35rem;
}

.cta-layout .eyebrow {
  color: rgba(18, 32, 49, 0.86);
}

.cta-layout .eyebrow,
.cta-layout h2,
.cta-layout > p:not(.cta-urgency):not(.cta-trust),
.cta-layout .cta-trust {
  padding: 0.45rem 0.7rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(241, 246, 251, 0.34));
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 10px 24px rgba(24, 38, 56, 0.08);
  backdrop-filter: var(--glass-blur-soft);
  -webkit-backdrop-filter: var(--glass-blur-soft);
}

.cta-layout .bullet-grid--compact {
  width: min(100%, 860px);
  padding: 0.85rem 1rem;
  margin-top: 0.08rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(241, 246, 251, 0.34));
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 10px 24px rgba(24, 38, 56, 0.08);
  backdrop-filter: var(--glass-blur-soft);
  -webkit-backdrop-filter: var(--glass-blur-soft);
}

.cta-layout h2 {
  padding: 0.7rem 0.95rem;
}

.cta-layout .eyebrow,
.cta-layout h2,
.cta-layout > p:not(.cta-urgency):not(.cta-trust),
.cta-layout .cta-trust {
  display: inline;
  width: auto;
  max-width: none;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.cta-layout > p:not(.cta-urgency):not(.cta-trust) {
  line-height: 1.85;
}

.cta-layout > .btn {
  margin-top: 0.2rem;
  justify-self: start;
  align-self: start;
}

/* Keep the button and supporting estimate note aligned as one compact CTA row. */
.cta-action-row {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 0.9rem;
  margin-top: 0.2rem;
}

.cta-action-row .btn {
  margin-top: 0;
}

.cta-inline-note {
  display: inline-flex;
  align-items: center;
  margin: 0;
  line-height: 1;
  white-space: nowrap;
  padding: 0.45rem 0.8rem;
  color: rgba(18, 32, 49, 0.9);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.38);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(241, 246, 251, 0.4));
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 10px 24px rgba(24, 38, 56, 0.1);
  backdrop-filter: var(--glass-blur-soft);
  -webkit-backdrop-filter: var(--glass-blur-soft);
}

.cta-urgency {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(244, 248, 252, 0.46));
  border-color: rgba(255, 255, 255, 0.76);
  color: #16283c;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 12px 26px rgba(30, 43, 61, 0.08);
  backdrop-filter: var(--glass-blur-soft);
  -webkit-backdrop-filter: var(--glass-blur-soft);
  margin: 0 0 0.35rem;
}

.cta-trust {
  margin-top: 0.2rem;
  color: transparent;
  text-shadow: none;
}

.cta-trust::before {
  content: "Custom projects • Fast response • Premium quality • Free estimate";
  color: rgba(21, 35, 52, 0.82);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.34);
}

/* Strengthen the decorative section headings so they read more clearly over the glass UI. */
.cta-layout h2,
main h2,
main h3 {
  color: #000;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.cta-trust::before {
  content: "Custom projects \2022 Fast response \2022 Premium quality \2022 Free estimate";
}

.cta-trust {
  display: none;
}

.cta-trust::before {
  content: none !important;
}

main h2 {
  font-size: clamp(2.35rem, 5.4vw, 4.35rem);
  line-height: 0.96;
}

main h3 {
  font-size: clamp(1.8rem, 3.95vw, 2.95rem);
  line-height: 0.98;
}

/* Forms use slightly stronger opacity so text stays crisp over the frosted surfaces. */
label {
  color: #243346;
}

input,
textarea {
  border-color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(246, 249, 252, 0.58));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 10px 24px rgba(25, 39, 56, 0.06);
  backdrop-filter: var(--glass-blur-soft);
  -webkit-backdrop-filter: var(--glass-blur-soft);
}

input:focus,
textarea:focus {
  border-color: rgba(166, 183, 208, 0.88);
  box-shadow:
    0 0 0 5px rgba(183, 200, 225, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 16px 30px rgba(31, 44, 63, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 251, 254, 0.68));
}

.form-success-message {
  border-color: rgba(173, 206, 179, 0.82);
  background: linear-gradient(180deg, rgba(238, 247, 239, 0.92), rgba(223, 239, 226, 0.76));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.form-success-message a {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.site-footer {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(240, 246, 252, 0.42));
}

.site-footer a:hover {
  color: #1b2b3d;
}

/* Keep all non-display copy black and bold, while decorative serif headings stay light. */
body {
  color: #000;
  font-weight: 700;
}

body p,
body li,
body label,
body input,
body textarea,
body a,
body a:hover,
body button,
body .btn,
body .btn:hover,
body .btn:active,
body .hero-lead,
body .eyebrow,
body .contact-label,
body .cta-trust,
body .cta-urgency,
body .cta-layout p,
body .cta-layout li,
body .bullet-grid li,
body .form-success-message,
body .site-nav a,
body .site-nav a:hover,
body .site-nav a[aria-current="page"],
body .site-footer a:hover {
  color: #000;
  font-weight: 700;
}

input::placeholder,
textarea::placeholder {
  color: rgba(0, 0, 0, 0.72);
  font-weight: 700;
}

/* Mobile keeps the same glass language, but with slightly firmer opacity for readability. */
@media (max-width: 760px) {
  .site-nav {
    background: #f7f9fc;
    border: 1px solid var(--glass-stroke);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.84),
      var(--glass-shadow);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .site-nav a:hover {
    background: #edf2f7;
  }

  .hero-copy--overlay {
    width: min(calc(100% - 1rem), 34rem);
    padding: 1rem 0.95rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(245, 248, 252, 0.16));
  }

  /* Give section titles more presence on phones without affecting the hero title. */
  main h2 {
    font-size: clamp(2.7rem, 10vw, 3.35rem);
    line-height: 0.95;
  }

  main h3 {
    font-size: clamp(2.05rem, 8.2vw, 2.55rem);
    line-height: 0.97;
  }

  #about-product .about-copy h2 {
    font-size: clamp(2.35rem, 8.6vw, 2.9rem);
  }
}

/* Fallback styling keeps surfaces readable when backdrop blur is unavailable. */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header,
  .site-nav,
  .nav-toggle,
  .btn,
  .hero-copy--overlay,
  .about-copy,
  .collection,
  .feature-card,
  .split-card,
  .contact-card,
  .cta-layout,
  .centered-copy,
  .site-footer,
  .cta-inline-note,
  input,
  textarea,
  .cta-urgency {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .site-header {
    background: rgba(248, 250, 253, 0.96);
  }

  .site-nav,
  .nav-toggle,
  .btn,
  .hero-copy--overlay,
  .about-copy,
  .collection,
  .feature-card,
  .split-card,
  .contact-card,
  .centered-copy,
  .site-footer,
  .cta-inline-note,
  input,
  textarea,
  .cta-urgency {
    background: rgba(255, 255, 255, 0.92);
  }

  .cta-layout {
    background-image:
      linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(236, 242, 249, 0.86)),
      var(--deferred-bg-image);
    background-position: center, center;
    background-size: auto, cover;
    background-repeat: no-repeat, no-repeat;
  }
}

/*
  Cube-Wall Background Component
  ------------------------------
  This reusable module turns the full-page backdrop into a clean architectural
  wall of wooden blocks with subtle light motion and restrained parallax.
*/

:root {
  /* Easy-tweak cube controls */
  --cube-size: clamp(56px, 5vw, 84px);
  --cube-gap: clamp(6px, 0.6vw, 10px);
  --cube-depth: clamp(7px, 0.7vw, 11px);
  --cube-tone-base: #b08a63;
  --cube-tone-shadow: #7a5737;
  --cube-tone-highlight: #ead8c1;
  --cube-joint-color: rgba(108, 82, 58, 0.18);
  --cube-grain-color: rgba(104, 75, 47, 0.18);
  --cube-light-strength: 0.56;
  --cube-interaction-strength: 20;
  --cube-scroll-strength: 12;
  --cube-pattern-opacity: 0.24;
  --cube-pattern-url: linear-gradient(145deg, rgba(233, 221, 205, 0.42), rgba(150, 113, 79, 0.72));
}

/* Keep the decorative background behind the content and glass panels. */
main,
.site-footer {
  position: relative;
  z-index: 2;
}

.page-glow {
  z-index: 1;
}

.cube-wall-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  --cube-light-x: 50%;
  --cube-light-y: 36%;
  --cube-parallax-x: 0px;
  --cube-parallax-y: 0px;
  --cube-scroll-shift: 0px;
  --cube-sheen-angle: 0deg;
}

.cube-wall-bg__pattern,
.cube-wall-bg__sheen,
.cube-wall-bg__veil {
  position: absolute;
  inset: -10%;
}

/* The pattern layer uses a generated SVG tile plus moving light overlays. */
.cube-wall-bg__pattern {
  --cube-step: calc(var(--cube-size) + var(--cube-gap));
  background-image:
    radial-gradient(
      circle at var(--cube-light-x) var(--cube-light-y),
      rgba(255, 255, 255, calc(var(--cube-light-strength) * 0.48)),
      rgba(255, 255, 255, 0.08) 16%,
      transparent 34%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(18, 28, 39, 0.1)),
    var(--cube-pattern-url);
  background-size:
    auto,
    auto,
    var(--cube-step) var(--cube-step);
  background-position:
    center,
    center,
    calc(50% + var(--cube-parallax-x)) calc(50% + var(--cube-parallax-y) + var(--cube-scroll-shift));
  background-repeat: no-repeat, no-repeat, repeat;
  opacity: var(--cube-pattern-opacity);
  filter: saturate(0.92) contrast(0.96);
  transform: scale(1.08);
}

/* A soft sheen layer gives the wall a premium, living surface quality. */
.cube-wall-bg__sheen {
  background:
    radial-gradient(
      34% 28% at calc(var(--cube-light-x) + 5%) calc(var(--cube-light-y) - 12%),
      rgba(255, 255, 255, 0.3),
      transparent 62%
    ),
    linear-gradient(
      calc(118deg + var(--cube-sheen-angle)),
      transparent 38%,
      rgba(255, 255, 255, 0.14) 49%,
      transparent 61%
    );
  mix-blend-mode: screen;
  opacity: 0.58;
  transform: translate3d(
    calc(var(--cube-parallax-x) * 0.45),
    calc(var(--cube-parallax-y) * 0.38 + var(--cube-scroll-shift) * 0.18),
    0
  );
}

/* A light veil keeps the architectural background luxurious but readable under text. */
.cube-wall-bg__veil {
  background:
    linear-gradient(180deg, rgba(250, 252, 255, 0.56), rgba(248, 251, 255, 0.4)),
    radial-gradient(80% 60% at 16% 8%, rgba(255, 255, 255, 0.28), transparent 70%),
    radial-gradient(58% 42% at 100% 0%, rgba(205, 219, 239, 0.24), transparent 72%);
}

/* Text-focused blocks get a little more solidity over the patterned wall. */
.centered-copy {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(244, 248, 252, 0.44));
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 20px 42px rgba(30, 43, 61, 0.1);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

@media (max-width: 760px) {
  :root {
    --cube-size: clamp(40px, 11vw, 58px);
    --cube-gap: 6px;
    --cube-depth: 7px;
    --cube-interaction-strength: 10;
    --cube-scroll-strength: 6;
    --cube-pattern-opacity: 0.18;
  }

  .cube-wall-bg__pattern {
    opacity: 0.2;
    transform: scale(1.04);
  }

  .cube-wall-bg__sheen {
    opacity: 0.42;
  }

  .cube-wall-bg__veil {
    background:
      linear-gradient(180deg, rgba(250, 252, 255, 0.72), rgba(248, 251, 255, 0.56)),
      radial-gradient(80% 60% at 16% 8%, rgba(255, 255, 255, 0.22), transparent 70%);
  }

  .centered-copy {
    padding: 1.2rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cube-wall-bg__pattern,
  .cube-wall-bg__sheen {
    transform: none;
    transition: none;
  }
}

:root[data-performance-tier="lite"] .gallery-item img,
:root[data-performance-tier="minimal"] .gallery-item img {
  transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-performance-tier="lite"] .page-glow {
  opacity: 0.42;
}

:root[data-performance-tier="minimal"] .page-glow {
  opacity: 0.28;
}

:root[data-performance-tier="lite"] .gallery-item:hover img,
:root[data-performance-tier="minimal"] .gallery-item:hover img {
  filter: none;
}

:root[data-performance-tier="lite"] .cta-layout::before,
:root[data-performance-tier="minimal"] .cta-layout::before {
  animation: none;
  transform: none;
  opacity: 0.56;
}

:root[data-performance-tier="lite"] .cube-wall-bg__sheen,
:root[data-performance-tier="minimal"] .cube-wall-bg__sheen {
  mix-blend-mode: normal;
}

:root[data-performance-tier="minimal"] .cube-wall-bg__pattern {
  transform: none;
  opacity: 0.14;
}

:root[data-performance-tier="minimal"] .cube-wall-bg__sheen {
  opacity: 0.18;
}

:root[data-performance-tier="minimal"] .feature-card::before {
  display: none;
}

:root[data-performance-tier="minimal"] .site-header,
:root[data-performance-tier="minimal"] .nav-toggle,
:root[data-performance-tier="minimal"] .btn,
:root[data-performance-tier="minimal"] .hero-copy--overlay,
:root[data-performance-tier="minimal"] .about-copy,
:root[data-performance-tier="minimal"] .collection,
:root[data-performance-tier="minimal"] .feature-card,
:root[data-performance-tier="minimal"] .split-card,
:root[data-performance-tier="minimal"] .contact-card,
:root[data-performance-tier="minimal"] .cta-layout,
:root[data-performance-tier="minimal"] .site-footer,
:root[data-performance-tier="minimal"] .centered-copy,
:root[data-performance-tier="minimal"] .cta-inline-note,
:root[data-performance-tier="minimal"] input,
:root[data-performance-tier="minimal"] textarea {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

@media (hover: none), (pointer: coarse) {
  .btn:hover,
  .gallery-item:hover,
  .feature-card:hover {
    transform: none;
  }

  .btn-primary:hover,
  .gallery-item:hover,
  .feature-card:hover {
    box-shadow: var(--shadow-soft);
  }

  .gallery-item:hover img {
    transform: none;
    filter: none;
  }

  .feature-card:hover::before {
    transform: translateX(-130%);
  }
}

@media (min-width: 1024px) {
  #collections .collection-img {
    cursor: pointer;
  }
}

.image-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.8);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
  z-index: 9999;
}

.image-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.image-modal__backdrop {
  position: absolute;
  inset: 0;
}

.image-modal__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.96);
  transition: transform 220ms ease;
}

.image-modal.is-open .image-modal__dialog {
  transform: scale(1);
}

.image-modal__img {
  display: block;
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  background: #fff;
}

.image-modal__close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

/* Global blur-off override: keep all visuals sharp across the entire site. */
:root {
  --page-glow-blur: 0px;
  --reveal-blur: 0px;
  --glass-blur: blur(0px) saturate(100%);
  --glass-blur-soft: blur(0px) saturate(100%);
  --header-blur-base: 0px;
  --header-blur-range: 0px;
}

.page-glow,
.reveal-blur-enabled .reveal {
  filter: none;
}

.site-header,
.site-header.menu-open,
.cta,
.centered-copy {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/*
  Performance Simplification Pass
  -------------------------------
  Keeps layout/content intact while reducing animation and compositing cost.
*/

/* Mostly static cube wall to preserve aesthetic without runtime motion. */
.cube-wall-bg__pattern,
.cube-wall-bg__sheen {
  transform: none !important;
  will-change: auto;
}

.cube-wall-bg__pattern {
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(17, 26, 36, 0.08)),
    var(--cube-pattern-url);
  background-size:
    auto,
    calc(var(--cube-size) + var(--cube-gap)) calc(var(--cube-size) + var(--cube-gap));
  background-position: center, center;
  filter: none;
  opacity: 0.16;
}

.cube-wall-bg__sheen {
  background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.12) 50%, transparent 60%);
  mix-blend-mode: normal;
  opacity: 0.2;
}

.cube-wall-static .cube-wall-bg__sheen,
:root[data-performance-tier="lite"] .cube-wall-bg__sheen,
:root[data-performance-tier="minimal"] .cube-wall-bg__sheen {
  display: none;
}

.cube-wall-static .cube-wall-bg__pattern,
:root[data-performance-tier="lite"] .cube-wall-bg__pattern,
:root[data-performance-tier="minimal"] .cube-wall-bg__pattern {
  opacity: 0.14;
}

/* Reveal system: no filter, shorter distance, lower duration/stagger. */
.reveal {
  --reveal-delay: 0ms;
  --reveal-translate-y: 24px;
  opacity: 0;
  transform: translate3d(0, var(--reveal-translate-y), 0);
  transform-origin: 50% 100%;
  filter: none !important;
  transition:
    opacity 980ms cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay),
    transform 1500ms cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay);
  will-change: opacity, transform;
}

.reveal-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: none !important;
}

.reveal-delay-1 {
  --reveal-delay: 70ms;
}

.reveal-delay-2 {
  --reveal-delay: 140ms;
}

.reveal-delay-3 {
  --reveal-delay: 210ms;
}

:root[data-reveal-mode="lite"] .reveal {
  --reveal-translate-y: 24px;
  transition-duration: 980ms, 1500ms;
}

:root[data-reveal-mode="lite"] .reveal-delay-1,
:root[data-reveal-mode="lite"] .reveal-delay-2,
:root[data-reveal-mode="lite"] .reveal-delay-3 {
  transition-delay: var(--reveal-delay);
}

:root[data-reveal-mode="static"] .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

/* Cheaper micro-interactions and shadows. */
:root {
  --shadow-soft: 0 8px 18px rgba(28, 40, 56, 0.09);
  --shadow-card: 0 14px 30px rgba(28, 40, 56, 0.12);
  --shadow-elevated: 0 18px 36px rgba(28, 40, 56, 0.14);
  --glass-shadow: 0 10px 20px rgba(28, 42, 60, 0.1);
  --glass-shadow-strong: 0 14px 28px rgba(28, 42, 60, 0.12);
}

.gallery-item {
  box-shadow: var(--shadow-soft);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.gallery-item img {
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

.gallery-item:hover img {
  transform: scale(1.02);
  filter: none;
}

.btn:hover {
  transform: translateY(-1px) scale(1.005);
}

.btn.is-pressed,
.nav-toggle.is-pressed {
  transform: translateY(0) scale(0.975);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 16px 28px rgba(30, 43, 61, 0.12);
}

/* Remove costly glass blur from non-essential surfaces. */
.nav-toggle,
.btn,
.about-copy,
.collection,
.feature-card,
.split-card,
.contact-card,
.centered-copy,
.site-footer,
input,
textarea {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Keep the hero headline panel frosted even after broader performance simplifications. */
.hero-copy--overlay {
  backdrop-filter: blur(42px) saturate(125%) !important;
  -webkit-backdrop-filter: blur(42px) saturate(125%) !important;
}

/* Restore stronger blur for the custom-design CTA highlights. */
.cta-layout {
  backdrop-filter: blur(26px) saturate(138%) !important;
  -webkit-backdrop-filter: blur(26px) saturate(138%) !important;
}

.cta-layout .eyebrow,
.cta-layout h2,
.cta-layout > p:not(.cta-urgency):not(.cta-trust),
.cta-layout .bullet-grid--compact,
.cta-inline-note,
.cta-urgency {
  backdrop-filter: blur(34px) saturate(145%) !important;
  -webkit-backdrop-filter: blur(34px) saturate(145%) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(241, 246, 251, 0.22)) !important;
}

/* Weak-device mode: static aesthetics, fewer compositing layers, lighter scroll visuals. */
:root[data-performance-tier="lite"] {
  --page-glow-blur: 0px;
  --transition-base: 240ms ease;
  --transition-slow: 420ms ease;
}

:root[data-performance-tier="minimal"] {
  --page-glow-blur: 0px;
  --transition-fast: 120ms ease;
  --transition-base: 180ms ease;
  --transition-slow: 280ms ease;
}

:root[data-performance-tier="lite"] .site-header::after,
:root[data-performance-tier="minimal"] .site-header::after {
  opacity: 0;
  transform: scaleX(0);
}

:root[data-performance-tier="lite"] .page-glow {
  opacity: 0.14;
  filter: none;
}

:root[data-performance-tier="minimal"] .page-glow {
  display: none;
}

:root[data-performance-tier="lite"] .hero-title-line,
:root[data-performance-tier="minimal"] .hero-title-line {
  transition-duration: 380ms;
}

:root[data-performance-tier="lite"] .hero-image,
:root[data-performance-tier="minimal"] .hero-image {
  transition-duration: 420ms;
}

:root[data-performance-tier="minimal"] .btn:hover,
:root[data-performance-tier="minimal"] .gallery-item:hover,
:root[data-performance-tier="minimal"] .feature-card:hover {
  transform: none;
  box-shadow: var(--shadow-soft);
}
