/* ==========================================================================
   Lavish Touch — Page Styles
   A. Home   B. About   C. Products   D. Case studies   E. Partner   F. Contact
   ========================================================================== */

/* ==========================================================================
   A. HOME
   ========================================================================== */

/* Hero: full-width smart home playground ----------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--header-h) + 1.25rem) 0 clamp(2.5rem, 5vw, 4rem);
  background: radial-gradient(80% 70% at 60% 45%, #4a321b 0%, #1a130e 72%);
}
.hero__glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 45% at 62% 50%, rgba(243,190,110,.24), transparent 70%);
}
.hero .mandala { --mandala-opacity: .2; }
.hero .mandala--right { top: 38%; --mandala-opacity: .3; }
.hero .hero__mandala-low { --mandala-size: min(60vw, 560px); top: auto; bottom: 0; translate: -50% 50%; animation-direction: reverse; }
/* Stage: phone on the left, the room and its two wall panels on the right */
.smart-stage {
  position: relative; display: grid; gap: 1rem 1.5rem; align-items: stretch;
  grid-template-columns: clamp(270px, 22vw, 320px) minmax(0, 1fr);
  grid-template-areas: "phone room" "phone panels";
}
.room { grid-area: room; position: relative; border-radius: 22px; overflow: hidden; box-shadow: 0 40px 90px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(243,208,144,.18); }
.room__scroller { overflow: hidden; }
.room__canvas { position: relative; }
.room__svg { display: block; width: 100%; height: auto; }
.room__hint-mobile { display: none; }
.room__hint {
  position: absolute; right: 1rem; bottom: .9rem; padding: .35rem .8rem; border-radius: 999px;
  font-size: .75rem; color: #f7efe2; background: rgba(20,14,9,.55); backdrop-filter: blur(6px); pointer-events: none;
}

.room__dark { opacity: var(--dark, .84); transition: opacity 1.2s var(--ease-in-out); }
.room__day { opacity: 0; transition: opacity 1.4s var(--ease-in-out); }
[data-day="on"] .room__day { opacity: 1; }
.room__glow { opacity: 0; mix-blend-mode: screen; transition: opacity .9s var(--ease-in-out); }
.room__glow--living { opacity: var(--living, 0); }
.room__glow--pendant { opacity: var(--pendant, 0); }
[data-spots="on"] .room__glow--spots, [data-lamp="on"] .room__glow--lamp, [data-sconces="on"] .room__glow--sconces,
[data-hall="on"] .room__glow--hall, [data-cove="on"] .room__glow--cove { opacity: .95; }
.room__cove-stop { stop-color: var(--cove, #ffc46b); transition: stop-color .8s; }
.room__cove-line { stroke: var(--cove, #ffc46b); stroke-width: 4; filter: drop-shadow(0 0 6px var(--cove, #ffc46b)); }
.room__curtain { transform-box: fill-box; transition: transform 1.6s var(--ease-in-out); }
.room__curtain--left { transform-origin: left center; }
.room__curtain--right { transform-origin: right center; }
[data-curtain="open"] .room__curtain { transform: scaleX(.24); }
.room__tv-screen, .room__tv-glow { opacity: 0; transition: opacity .6s; }
[data-tv="on"] .room__tv-screen { opacity: 1; animation: tvflicker 3s ease-in-out infinite alternate; }
[data-tv="on"] .room__tv-glow { opacity: 1; mix-blend-mode: screen; }
@keyframes tvflicker { 0% { filter: hue-rotate(0deg); } 100% { filter: hue-rotate(70deg) brightness(1.1); } }
.room__fan-blades { transform-box: view-box; transform-origin: 0 0; animation: fanspin var(--fan-dur, 1s) linear infinite; animation-play-state: paused; }
.smart-stage:not([data-fan="0"]) .room__fan-blades { animation-play-state: running; }
@keyframes fanspin { to { transform: rotate(360deg); } }
.room__air path { stroke-dasharray: 6 10; opacity: 0; transition: opacity .6s; }
[data-ac="on"] .room__air path { opacity: .85; animation: airflow 1.2s linear infinite; }
@keyframes airflow { to { stroke-dashoffset: -32; } }
.room__ac-flap { transform-box: fill-box; transform-origin: top; transition: transform .8s; }
[data-ac="on"] .room__ac-flap { transform: translateY(4px); }
.room__ac-temp { opacity: 0; transition: opacity .4s; }
[data-ac="on"] .room__ac-temp { opacity: 1; }
.room__dot { fill: #3a2a20; transition: fill .3s; }
.room__dot.is-on { fill: #ff5a4a; filter: drop-shadow(0 0 3px #ff5a4a); }
.room__dot--cyan.is-on { fill: #5fd0ff; filter: drop-shadow(0 0 3px #5fd0ff); }
.room__hit { fill: transparent; cursor: pointer; outline: none; transition: fill .3s, stroke .3s; }
.room__hit:hover, .room__hit:focus-visible { fill: rgba(255,226,168,.12); stroke: rgba(255,226,168,.7); stroke-width: 1.5; stroke-dasharray: 5 5; }

.room__toast {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -110%) scale(.9);
  padding: .4rem .85rem; border-radius: 999px; white-space: nowrap;
  font-size: .85rem; font-weight: 500; color: var(--on-gold); background: var(--gold-gradient);
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.5);
  opacity: 0; transition: opacity .35s, transform .5s var(--ease-out); pointer-events: none;
}
.room__toast.is-visible { opacity: 1; transform: translate(-50%, -130%) scale(1); }

/* The two real glass panels, with tappable keys over the printed icons */
.stage-panels { grid-area: panels; display: flex; align-items: center; justify-content: center; gap: clamp(1.5rem, 4vw, 4rem); flex-wrap: wrap; }
.wall-panel { margin: 0; display: grid; gap: .6rem; justify-items: center; }
.wall-panel--wide { width: clamp(260px, 26vw, 360px); }
.wall-panel--square { width: clamp(110px, 10vw, 145px); }
.wall-panel__glass { position: relative; width: 100%; filter: drop-shadow(0 22px 28px rgba(0,0,0,.55)); }
.wall-panel__glass img { display: block; width: 100%; height: auto; }
.wall-panel figcaption { font-size: .75rem; color: var(--text-muted); text-align: center; }
.wall-panel figcaption strong { display: block; font-size: .85rem; font-weight: 500; color: var(--text); }
.wall-panel__key {
  position: absolute; width: 17%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 14%; background: rgba(8,6,5,.8); cursor: pointer; transition: background .3s, box-shadow .3s;
}
.wall-panel__key[aria-pressed="true"] { background: transparent; box-shadow: 0 0 14px 2px rgba(255,80,60,.55); }
.wall-panel__key--cyan { width: 6.4%; border-radius: 22%; }
.wall-panel__key--cyan[aria-pressed="true"] { box-shadow: 0 0 14px 3px rgba(95,208,255,.6); }
.wall-panel__key:hover { box-shadow: 0 0 0 1.5px rgba(255,255,255,.35); }
.wall-panel__key:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wall-panel__label { position: absolute; transform: translateX(-50%); font-size: .58rem; letter-spacing: .04em; color: rgba(247,239,226,.55); pointer-events: none; white-space: nowrap; }

/* Phone running the Lavish Touch app */
.phone {
  grid-area: phone; align-self: start; position: relative; z-index: 4;
  padding: 10px; border-radius: 40px; background: linear-gradient(145deg, #3b2f25, #120d0a);
  box-shadow: 0 40px 70px -20px rgba(0,0,0,.8), inset 0 0 0 1.5px rgba(243,208,144,.35);
}
.phone__screen {
  display: flex; flex-direction: column; gap: .7rem; padding: .7rem .8rem 1rem; border-radius: 31px; min-height: 100%;
  background: linear-gradient(180deg, #221a14, #15100c); color: var(--text); font-size: .75rem;
}
.phone__status { display: flex; justify-content: space-between; align-items: center; font-size: .66rem; font-weight: 600; padding: 0 .4rem; }
.phone__notch { width: 72px; height: 20px; border-radius: 999px; background: #000; }
.phone__head { display: flex; justify-content: space-between; align-items: end; }
.phone__head small { display: block; font-size: .64rem; color: var(--accent); letter-spacing: .05em; }
.phone__head strong { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; }
.phone__energy { display: inline-flex; align-items: center; gap: .3rem; font-size: .7rem; font-variant-numeric: tabular-nums; padding: .3rem .6rem; border-radius: 999px; background: rgba(255,255,255,.06); }
.phone__energy svg { width: 12px; height: 12px; fill: #f3d090; }
.phone__tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .25rem; padding: .25rem; border-radius: 12px; background: rgba(255,255,255,.05); }
.phone__tabs button { padding: .4rem 0; border-radius: 9px; font-size: .7rem; font-weight: 500; color: var(--text-muted); cursor: pointer; transition: background .3s, color .3s; }
.phone__tabs button[aria-selected="true"] { background: rgba(211,167,104,.22); color: var(--text); }
.phone__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; }
.phone__tiles[hidden] { display: none; }
.tile {
  display: grid; justify-items: start; gap: .1rem; padding: .6rem .5rem; border-radius: 14px; text-align: left;
  background: rgba(255,255,255,.05); color: var(--text-muted); cursor: pointer;
  transition: background .35s, color .35s, box-shadow .35s;
}
.tile svg, .phone__scenes svg, .voice-bubble svg, .ctl svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tile__name { font-size: .68rem; font-weight: 500; line-height: 1.15; margin-top: .25rem; }
.tile__state { font-size: .6rem; opacity: .75; }
.tile[aria-pressed="true"] { background: var(--gold-gradient); color: var(--on-gold); }
.tile.is-selected { box-shadow: 0 0 0 1.5px #f7efe2; }

/* Device control sheet */
.phone__control { min-height: 92px; padding: .7rem .75rem; border-radius: 14px; background: rgba(255,255,255,.05); display: grid; gap: .55rem; align-content: start; }
.ctl__head { display: flex; justify-content: space-between; align-items: baseline; }
.ctl__head b { font-weight: 500; font-size: .78rem; }
.ctl__head output, .ctl__head span { color: var(--accent); font-size: .72rem; font-variant-numeric: tabular-nums; }
.ctl__hint { font-size: .64rem; color: var(--text-muted); }
.ctl input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; cursor: pointer;
  background: linear-gradient(90deg, #d3a768 var(--fill, 0%), rgba(255,255,255,.12) var(--fill, 0%));
}
.ctl input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #f7efe2; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.ctl input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #f7efe2; }
.ctl__seg { display: flex; gap: .3rem; }
.ctl__seg button { flex: 1; display: grid; place-items: center; padding: .45rem 0; border-radius: 9px; font-size: .68rem; font-weight: 500; color: var(--text-muted); background: rgba(255,255,255,.06); cursor: pointer; transition: background .3s, color .3s; }
.ctl__seg button[aria-pressed="true"] { background: var(--gold-gradient); color: var(--on-gold); }
.ctl__swatch { width: 100%; aspect-ratio: 1; max-width: 30px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 2px rgba(0,0,0,.25); }
.ctl__seg button.ctl__swatch-btn { background: transparent; padding: .1rem 0; }
.ctl__seg button.ctl__swatch-btn[aria-pressed="true"] .ctl__swatch { box-shadow: 0 0 0 2px #f7efe2; }
.ctl__temp { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.ctl__temp strong { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; }
.ctl__temp button { width: 36px; height: 36px; border-radius: 50%; font-size: 1.1rem; color: var(--text); background: rgba(255,255,255,.08); cursor: pointer; }

.phone__scenes { display: grid; grid-template-columns: repeat(5, 1fr); gap: .3rem; }
.phone__scenes button {
  display: grid; justify-items: center; gap: .2rem; padding: .5rem 0; border-radius: 11px;
  font-size: .6rem; font-weight: 500; color: var(--text-muted); background: rgba(255,255,255,.04); cursor: pointer;
  transition: background .35s, color .35s;
}
.phone__scenes button[aria-pressed="true"] { background: rgba(211,167,104,.22); color: var(--text); box-shadow: inset 0 0 0 1px #d3a768; }
.phone__log { display: flex; gap: .45rem; align-items: flex-start; min-height: 2.7em; margin-top: auto; font-size: .64rem; line-height: 1.4; color: var(--text-muted); }
.phone__log span { width: 6px; height: 6px; margin-top: .35em; border-radius: 50%; background: #8fe08a; flex-shrink: 0; }

/* Tap feedback, demo finger and voice bubble */
.is-tapped { animation: tap .5s var(--ease-out); }
@keyframes tap { 40% { transform: scale(.92); } }
.wall-panel__key.is-tapped { animation: tapkey .5s var(--ease-out); }
@keyframes tapkey { 40% { transform: translate(-50%, -50%) scale(.8); } }
.demo-finger {
  position: absolute; left: 50%; top: 50%; z-index: 6; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border-radius: 50%; background: rgba(255,255,255,.35); box-shadow: 0 0 0 2px rgba(255,255,255,.7), 0 8px 20px rgba(0,0,0,.35);
  opacity: 0; pointer-events: none; transition: left .8s var(--ease-in-out), top .8s var(--ease-in-out), opacity .4s;
}
.demo-finger.is-visible { opacity: 1; }
.demo-finger.is-pressing { animation: press .45s var(--ease-out); }
@keyframes press { 50% { transform: scale(.7); background: rgba(255,255,255,.6); } }
.voice-bubble {
  position: absolute; left: calc(clamp(270px, 22vw, 320px) + 2.5rem); top: 1rem; z-index: 5;
  display: flex; align-items: center; gap: .5rem; padding: .6rem 1.1rem; border-radius: 16px 16px 16px 4px;
  font-size: .9rem; color: var(--text); background: rgba(36,27,20,.92); box-shadow: inset 0 0 0 1px var(--line), 0 14px 30px -10px rgba(0,0,0,.6);
  opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .5s var(--ease-out); pointer-events: none;
}
.voice-bubble svg { color: #8fe08a; flex-shrink: 0; }
.voice-bubble.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .room__fan-blades, .room__air path, .room__tv-screen { animation: none !important; }
}

.hero__scroll {
  position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  width: 1px; height: 56px; background: rgba(211,167,104,.25); overflow: hidden;
}
.hero__scroll::after {
  content: ""; position: absolute; left: 0; top: -50%; width: 100%; height: 50%;
  background: var(--accent); animation: scrollcue 2.2s var(--ease-in-out) infinite;
}
@keyframes scrollcue { to { top: 110%; } }

/* Statement --------------------------------------------------------------- */
.statement__text {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 3.6vw, 3.2rem);
  line-height: 1.22; max-width: 30ch;
}
.statement__text .word { opacity: .2; transition: opacity .2s; }
.statement__foot { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin-top: 4rem; }
.statement__foot p { color: var(--text-muted); }
.statement .mandala { --mandala-opacity: .2; }

/* "Why choose" section: mandala quarter in the top right corner */
.key-features .mandala { --mandala-size: min(80vw, 700px); --mandala-opacity: .22; top: 0; right: 0; translate: 45% -45%; }

/* Collections: list + sticky imagery -------------------------------------- */
.collections-section .mandala { --mandala-size: min(80vw, 640px); --mandala-opacity: .22; top: auto; bottom: 0; translate: -40% 18%; }
.collections { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.collection-list { border-top: 1px solid var(--line); }
.collection-item {
  display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; align-items: center;
  width: 100%; text-align: left; padding: 1.8rem 0; border-bottom: 1px solid var(--line);
  position: relative;
}
.collection-item::before {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  background: var(--gold-gradient); transform: scaleX(0); transform-origin: left;
  transition: transform .8s var(--ease-out);
}
.collection-item.is-active::before { transform: scaleX(1); }
.collection-item__name {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.1;
  color: var(--text-muted); transition: color .4s, transform .6s var(--ease-out);
}
.collection-item__desc {
  grid-column: 1; font-size: var(--fs-sm); color: var(--text-muted);
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .6s var(--ease-out), opacity .4s;
}
.collection-item__arrow {
  grid-row: 1; grid-column: 2; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--line); transition: all .4s var(--ease-out);
}
.collection-item__arrow svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.collection-item.is-active .collection-item__name { color: var(--text); transform: translateX(10px); }
.collection-item.is-active .collection-item__desc { max-height: 80px; opacity: 1; padding-left: 10px; }
.collection-item.is-active .collection-item__arrow { background: var(--gold-gradient); color: var(--on-gold); box-shadow: none; transform: rotate(-45deg); }

.collection-item__media, .collection-item__cta { display: none; }
.collection-stage { position: sticky; top: calc(var(--header-h) + 2rem); aspect-ratio: 4 / 5; }
.collection-stage .media {
  position: absolute; inset: 0;
  clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease-in-out);
}
.collection-stage .media.is-active { clip-path: inset(0 0 0 0); z-index: 1; }
.collection-stage .media img { transform: scale(1.12); transition: transform 1.6s var(--ease-out); }
.collection-stage .media.is-active img { transform: scale(1); }
.collection-stage__tag {
  position: absolute; left: 1.25rem; bottom: 1.25rem; z-index: 2;
  padding: .5rem 1rem; border-radius: 999px; font-size: var(--fs-xs);
  background: rgba(248,243,235,.92); backdrop-filter: blur(8px); color: var(--accent); font-weight: 500;
}

/* Spaces: expanding panels ------------------------------------------------- */
.spaces { display: flex; gap: .75rem; height: clamp(460px, 72vh, 680px); }
.space {
  position: relative; flex: 1; min-width: 0; overflow: hidden; cursor: pointer;
  border-radius: 6px; transition: flex 1s var(--ease-in-out);
  background: linear-gradient(140deg, #4a3522, #1a130e);
}
.space.is-active { flex: 4.2; }
.space img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.55) saturate(.95); transition: filter 1s, transform 1.4s var(--ease-out); }
.space.is-active img { filter: brightness(.82) saturate(1.1); transform: scale(1.04); }
.space::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(20,14,9,.88)); }
.space__label {
  position: absolute; left: 50%; bottom: 2rem; z-index: 2;
  writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg);
  font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; white-space: nowrap;
  transition: opacity .4s;
}
.space.is-active .space__label { opacity: 0; }
.space__content {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(1.5rem, 3vw, 2.75rem);
  opacity: 0; transform: translateY(24px);
  transition: opacity .5s, transform .8s var(--ease-out);
}
.space.is-active .space__content { opacity: 1; transform: none; transition-delay: .45s; }
.space__content h3 { font-size: var(--fs-xl); margin-bottom: .75rem; }
.space__content p { color: var(--text-muted); max-width: 44ch; margin-bottom: 1.25rem; }
.space__features { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.space__features li {
  font-size: var(--fs-xs); font-weight: 500; padding: .45rem .95rem; border-radius: 999px;
  background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
  backdrop-filter: blur(6px);
}
.space__content .link-line { color: #fff; }

/* Panel scroller: two rows of panel finishes drifting in opposite directions */
.panel-reel { display: grid; gap: clamp(1rem, 2vw, 1.75rem); overflow: hidden; padding-block: .5rem;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.panel-reel__track { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 2.5rem); width: max-content; animation: marquee 60s linear infinite; }
.panel-reel__track img { height: clamp(96px, 13vw, 160px); width: auto; filter: drop-shadow(0 18px 24px rgba(36,26,18,.28)); }
.panel-reel__row--reverse .panel-reel__track { animation-direction: reverse; animation-duration: 70s; }
.panel-reel:hover .panel-reel__track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .panel-reel__track { animation: none; }
  .panel-reel__row { overflow-x: auto; }
}

/* Technology --------------------------------------------------------------- */
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.tech-card {
  display: grid; gap: 1rem; align-content: start;
  padding: clamp(1.75rem, 3vw, 2.5rem); border-radius: 6px;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.tech-card:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--gold), 0 24px 48px -28px rgba(36,26,18,.35); }
.tech-card__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.tech-card__icon {
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-gradient); color: var(--on-gold);
  box-shadow: 0 0 0 6px var(--paper), 0 0 0 7px var(--line);
  transition: box-shadow .6s var(--ease-out);
}
.tech-card:hover .tech-card__icon { box-shadow: 0 0 0 6px var(--paper), 0 0 0 7px var(--gold); }
.tech-card__icon svg { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tech-card__num { font-family: var(--font-display); font-size: 1.1rem; color: var(--accent); letter-spacing: .08em; }
.tech-card h3 { font-size: 1.7rem; }
.tech-card p { color: var(--text-muted); font-size: var(--fs-sm); }

/* Process (a real sequence) ----------------------------------------------- */
.process-intro { position: sticky; top: calc(var(--header-h) + 3rem); }
.process-section .mandala { --mandala-opacity: .2; top: auto; bottom: 0; translate: -40% 40%; animation-direction: reverse; }
.process { position: relative; display: grid; gap: 0; }
.process__track { position: absolute; left: 27px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.process__fill { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: var(--gold-gradient); transform: scaleY(0); transform-origin: top; }
.step { position: relative; display: grid; grid-template-columns: 56px 1fr 1.2fr; gap: 2rem; padding-block: 2.25rem; align-items: start; }
.step__num {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--gold);
  font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; color: var(--accent);
  transition: all .6s var(--ease-out); position: relative; z-index: 1;
}
.step.is-reached .step__num { background: var(--gold-gradient); color: var(--on-gold); box-shadow: none; }
.step h3 { font-size: 1.9rem; padding-top: .4rem; }
.step p { color: var(--text-muted); padding-top: .6rem; }

/* Projects slider ---------------------------------------------------------- */
.projects-slider { overflow: visible; }
.project-slide { width: min(78vw, 640px); }
.project-slide .media { aspect-ratio: 16 / 11; }
.project-slide .media img { transition: transform 1.2s var(--ease-out); }
.project-slide:hover .media img { transform: scale(1.05); }
.project-slide__meta { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; align-items: baseline; }
.project-slide__meta h3 { font-size: 1.6rem; }
.project-slide .media { border-radius: 6px; }
.project-slide__meta span { font-size: var(--fs-sm); font-weight: 500; color: var(--text-muted); white-space: nowrap; }
.slider-controls { display: flex; align-items: center; gap: 1.5rem; margin-top: 3rem; }
.slider-progress { flex: 1; height: 1px; background: var(--line); position: relative; }
.slider-progress .swiper-pagination-progressbar-fill { background: var(--gold-gradient) !important; }
.slider-btn {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--gold); color: var(--accent); transition: all .4s;
}
.slider-btn:hover { background: var(--gold-gradient); color: var(--on-gold); box-shadow: none; }
.slider-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.slider-btn.swiper-button-disabled { opacity: .35; pointer-events: none; }

/* Quote ------------------------------------------------------------------- */
.quote { max-width: 900px; margin-inline: auto; text-align: center; }
/* Small medallion above the quote, like the motif inside the gift box lid */
.quote__medallion { position: relative; display: block; width: 92px; aspect-ratio: 1; margin: 0 auto 2rem; }
.quote__medallion .mandala { inset: 0; width: 100%; z-index: 0; --mandala-opacity: .9; }
.quote blockquote { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.35; }
.quote figcaption { margin-top: 2rem; color: var(--text-muted); font-size: var(--fs-sm); }
.quote figcaption strong { display: block; color: var(--accent); font-weight: 500; font-size: var(--fs-base); }

/* ==========================================================================
   B. ABOUT
   ========================================================================== */
.about-intro .media { aspect-ratio: 4 / 5; }
.about-intro__stack { position: relative; }
.about-intro__copy p + p { margin-top: 1.25rem; }
.about-intro__copy p { color: var(--text-muted); }
.about-intro__copy .lead { color: var(--text); }

.figures { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.figure { padding: 2.5rem 1.5rem 0 0; }
.figure + .figure { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.figure__num { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.4rem, 4.5vw, 3.8rem); line-height: 1; color: var(--accent); }
.figure__label { font-size: var(--fs-sm); font-weight: 500; color: var(--text-muted); margin-top: .75rem; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(124,80,40,.25); }
.value { padding: 2.5rem 2rem 2.5rem 0; }
.value + .value { padding-left: 2rem; border-left: 1px solid rgba(124,80,40,.25); }
.value h3 { font-size: 1.8rem; margin: 1.5rem 0 .75rem; }
.value p { color: var(--text-muted); font-size: var(--fs-sm); }
.section--light .icon { color: var(--bronze); border-color: rgba(124,80,40,.4); }


.brands-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem 3rem; align-items: center; }
.brands-row span { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.9rem); color: var(--text-muted); opacity: .7; transition: opacity .3s, color .3s; }
.brands-row span:hover { opacity: 1; color: var(--accent); }

/* Marquee (used on about) */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 1.75rem; }
.marquee__track { display: flex; gap: 3rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 4vw, 3rem); color: var(--text-muted); white-space: nowrap; display: flex; align-items: center; gap: 3rem; }
.marquee__track span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   C. PRODUCTS
   ========================================================================== */
.catalog-bar {
  position: sticky; top: 70px; z-index: 20;   /* = scrolled header height */
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  padding-block: 1.25rem; margin-bottom: 3rem;
  background: rgba(247,240,227,.94); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: top .5s var(--ease-out);
}
/* Header slides away on scroll down → filters move up to the very top */
body.header-hidden .catalog-bar { top: 0; }
.search { position: relative; display: flex; align-items: center; min-width: 260px; }
.search svg { position: absolute; left: 1rem; width: 18px; height: 18px; stroke: var(--text-muted); fill: none; stroke-width: 1.5; }
.search input {
  width: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  color: var(--text); font: inherit; padding: .65rem 1rem .65rem 2.6rem;
}
.search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176,122,63,.18); }

.catalog-count { font-size: var(--fs-sm); font-weight: 500; color: var(--text-muted); margin-bottom: 1.5rem; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.75rem); }
.product-card {
  position: relative; display: grid; grid-template-rows: auto 1fr; text-align: left;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  transition: border-color .5s, transform .6s var(--ease-out), box-shadow .6s;
}
.product-card:hover { border-color: var(--gold); transform: translateY(-6px); box-shadow: 0 24px 50px rgba(60,40,20,.12); }
.product-card.is-featured { grid-column: span 2; grid-template-columns: 1.1fr 1fr; grid-template-rows: 1fr; }
.product-card__visual {
  position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(70% 70% at 50% 40%, #fbf3e4 0%, #eadcc6 80%);
}
.product-card.is-featured .product-card__visual { aspect-ratio: auto; min-height: 340px; }
.product-card__visual img { width: 100%; height: 100%; object-fit: contain; padding: 9%; position: absolute; inset: 0; mix-blend-mode: multiply; transition: transform .8s var(--ease-out); }
.product-card:hover .product-card__visual img { transform: scale(1.05); }
/* YouTube loop: cards crop it to fill the frame like a background video; the modal keeps the whole player */
.product-video { position: absolute; inset: 0; overflow: hidden; container-type: size; pointer-events: none; }
.product-video iframe {
  position: absolute; top: 50%; left: 50%; border: 0; transform: translate(-50%, -50%);
  width: max(100cqw, 177.78cqh); height: max(100cqh, 56.25cqw);
}
.product-video.has-controls { pointer-events: auto; background: #111; }
.product-video.has-controls iframe { width: 100%; height: 100%; }
.product-card__badge { z-index: 1; }

/* More designs: photo-only tiles below the catalogue */
.design-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.75rem, 1.5vw, 1.25rem); }
.design-tile {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line); border-radius: 10px;
  background: radial-gradient(70% 70% at 50% 40%, #fbf3e4 0%, #eadcc6 80%);
  transition: border-color .5s, box-shadow .6s;
}
.design-tile:hover { border-color: var(--gold); box-shadow: 0 18px 40px rgba(60,40,20,.1); }
.design-tile img { width: 100%; height: 100%; object-fit: contain; padding: 3%; mix-blend-mode: multiply; transition: transform .8s var(--ease-out); }
.design-tile:hover img { transform: scale(1.05); }
.product-card__visual svg.p-icon { width: 34%; max-width: 130px; stroke: var(--bronze); fill: none; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; transition: transform .8s var(--ease-out); }
.product-card:hover .p-icon { transform: scale(1.08) rotate(-3deg); }
.product-card__badge {
  position: absolute; top: 1rem; left: 1rem; padding: .35rem .8rem; border-radius: 999px;
  font-size: var(--fs-xs); background: var(--gold-gradient); color: var(--on-gold); font-weight: 500;
}
.product-card__body { padding: 1.5rem 1.5rem 1.75rem; display: grid; gap: .5rem; align-content: start; }
.product-card.is-featured .product-card__body { padding: clamp(1.75rem, 3vw, 2.75rem); align-content: center; gap: 1rem; }
.product-card__cat { font-size: var(--fs-xs); font-weight: 500; color: var(--accent); letter-spacing: .02em; }
.product-card__name { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; line-height: 1.15; }
.product-card__tagline { font-size: var(--fs-sm); font-weight: 500; color: var(--text); margin-top: -.25rem; }
.product-card.is-featured .product-card__name { font-size: var(--fs-xl); }
.product-card__text { font-size: var(--fs-sm); color: var(--text-muted); }
.product-card__more { margin-top: .75rem; font-size: var(--fs-sm); font-weight: 500; color: var(--accent); display: inline-flex; gap: .5rem; align-items: center; }
.product-card__more svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.5; transition: transform .4s var(--ease-out); }
.product-card:hover .product-card__more svg { transform: translateX(5px); }

.product-cta {
  display: grid; align-content: space-between; gap: 2rem; padding: 2rem;
  border: 1px solid var(--gold); border-radius: 10px;
  background: radial-gradient(120% 100% at 100% 0%, #f8e6c4 0%, var(--paper) 65%);
}
.product-cta h3 { font-size: 1.9rem; }
.product-cta p { color: var(--text-muted); font-size: var(--fs-sm); margin-top: .75rem; }
.empty-state { display: none; padding: 4rem 0; text-align: center; }
.empty-state h3 { margin-bottom: .75rem; }
.empty-state p { margin: 0 auto 1.5rem; color: var(--text-muted); }
.empty-state.is-visible { display: block; }

.compat { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: center; }
.compat__logos { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.compat__logos span {
  padding: 2rem 1rem; text-align: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm); font-weight: 500; color: var(--text-muted); transition: color .3s, background .3s;
}
.compat__logos span:hover { color: var(--accent); background: var(--paper); }

/* ==========================================================================
   D. CASE STUDIES
   ========================================================================== */
.case-featured { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.case-featured .media { aspect-ratio: 5 / 4; }
.case-featured__meta { display: flex; flex-wrap: wrap; gap: 2rem; margin: 2rem 0; padding-block: 1.5rem; border-block: 1px solid var(--line); }
.case-featured__meta div { font-size: var(--fs-sm); color: var(--text-muted); }
.case-featured__meta strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; color: var(--accent); }

.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.case-card { display: grid; gap: 1.25rem; text-align: left; }
.case-card:nth-child(even) { margin-top: clamp(0rem, 8vw, 7rem); }
.case-card .media, .case-featured .media { aspect-ratio: 4 / 3; border-radius: 6px; }
.case-card .media img { transition: transform 1.2s var(--ease-out), filter .8s; filter: brightness(.95); }
.case-card:hover .media img { transform: scale(1.05); filter: brightness(1); }
.case-card__view {
  position: absolute; inset: 0; margin: auto; width: 96px; height: 96px; border-radius: 50%;
  display: grid; place-items: center; font-size: var(--fs-sm); color: var(--on-gold);
  background: var(--gold-gradient); transform: scale(0); transition: transform .6s var(--ease-out); z-index: 2;
}
.case-card:hover .case-card__view { transform: scale(1); }
.case-card__top { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--fs-sm); font-weight: 500; color: var(--accent); }
.case-card h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.case-card p { color: var(--text-muted); font-size: var(--fs-sm); }

.case-modal-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding-block: 1.25rem; border-block: 1px solid var(--line); }
.case-modal-results strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; color: var(--accent); }
.case-modal-results span { font-size: var(--fs-xs); color: var(--text-muted); }
.modal__body h4 { font-family: var(--font-body); font-weight: 500; font-size: var(--fs-sm); color: var(--accent); }
.modal__body p { color: var(--text-muted); font-size: var(--fs-sm); }

/* ==========================================================================
   E. BECOME A PARTNER
   ========================================================================== */
.partner-types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.partner-type {
  position: relative; padding: 2.5rem 1.75rem 2.25rem; background: var(--paper);
  display: grid; gap: 1rem; align-content: start; overflow: hidden;
  transition: background .5s;
}
.partner-type::before {
  content: ""; position: absolute; inset: auto 0 0; height: 2px; background: var(--gold-gradient);
  transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out);
}
.partner-type:hover { background: #fffaf2; }
.partner-type:hover::before { transform: scaleX(1); }
.partner-type h3 { font-size: 1.6rem; margin-top: .75rem; }
.partner-type p { font-size: var(--fs-sm); color: var(--text-muted); }

.benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 3.5rem; }
.benefit { display: flex; gap: 1.5rem; }
.benefit h3 { font-size: 1.45rem; margin-bottom: .5rem; }
.benefit p { font-size: var(--fs-sm); color: var(--text-muted); }

.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; counter-reset: step; }
.steps-row li { position: relative; padding-top: 2rem; border-top: 1px solid var(--line); counter-increment: step; }
.steps-row li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-weight: 400; font-size: 1.1rem; color: var(--accent); display: block; margin-bottom: 1rem; }
.steps-row li::after { content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 100%; background: var(--gold-gradient); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease-out); }
.steps-row li.is-reached::after { transform: scaleX(1); }
.steps-row h3 { font-size: 1.45rem; margin-bottom: .5rem; }
.steps-row p { font-size: var(--fs-sm); color: var(--text-muted); }

.form-panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); }
.form-panel__aside h2 { margin-bottom: 1.25rem; }
.form-panel__aside p { color: var(--text-muted); }
.form-panel__aside .spec-list { margin-top: 2rem; }

/* ==========================================================================
   F. CONTACT
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2.5rem, 6vw, 6rem); }
.contact-cards { display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-card { display: flex; gap: 1.25rem; padding-block: 1.75rem; border-bottom: 1px solid var(--line); }
.contact-card h3 { font-family: var(--font-body); font-weight: 500; font-size: var(--fs-sm); color: var(--accent); margin-bottom: .35rem; }
.contact-card p, .contact-card a { color: var(--text); font-size: var(--fs-base); font-weight: 500; }
.contact-card a:hover { color: var(--accent); }
.contact-card small { display: block; color: var(--text-muted); font-size: var(--fs-sm); }

.map-wrap { position: relative; height: clamp(320px, 38vw, 540px); overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.6) sepia(.25); }

.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.6rem 0; text-align: left; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.25rem, 2vw, 1.6rem);
}
.faq__icon { position: relative; width: 22px; height: 22px; flex-shrink: 0; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 2px; background: var(--accent); transition: transform .5s var(--ease-out); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item.is-open .faq__icon::after { transform: rotate(0); }
.faq__a { display: none; padding-bottom: 1.6rem; color: var(--text-muted); }
.faq__a p { max-width: 60ch; }

/* ==========================================================================
   Product detail page
   ========================================================================== */
.product-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 3rem) 0 clamp(3.5rem, 7vw, 6rem);
  background: radial-gradient(60% 80% at 75% 20%, #3a2a1b 0%, var(--dark-bg) 70%);
}
.product-hero__grid > * { min-width: 0; }
.product-hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; margin-top: 2rem; }

.pgallery { display: grid; gap: 1rem; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.pgallery__stage {
  position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden;
  background: radial-gradient(70% 70% at 50% 40%, #fbf3e4 0%, #eadcc6 80%);
}
.pgallery__stage img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8%; mix-blend-mode: multiply;
  opacity: 0; transform: scale(.97); transition: opacity .6s, transform .9s var(--ease-out);
}
.pgallery__stage img.is-active { opacity: 1; transform: none; }
.pgallery__stage svg.p-icon { position: absolute; inset: 0; margin: auto; width: 34%; stroke: var(--bronze); fill: none; stroke-width: 1.1; }
.pgallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: .6rem; }
.pgallery__thumbs button {
  aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #efe3cf;
  box-shadow: inset 0 0 0 1px transparent; opacity: .6; transition: opacity .3s, box-shadow .3s;
}
.pgallery__thumbs button:hover, .pgallery__thumbs button.is-active { opacity: 1; box-shadow: inset 0 0 0 2px var(--gold); }
.pgallery__thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 10%; }

.product-hero__info { display: grid; gap: 1.25rem; align-content: start; }
.product-hero__title { font-size: var(--fs-xl); line-height: 1.05; }
.product-hero__tagline { font-size: var(--fs-md); color: var(--accent); margin-top: -.5rem; }
.product-hero__headline { font-family: var(--font-body); font-size: var(--fs-base); font-weight: 500; }
.product-hero__desc { color: var(--text-muted); font-size: var(--fs-base); line-height: 1.7; max-width: 52ch; }
.product-hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .75rem; }

.product-tags { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; }
.product-tags li { padding: .35rem .9rem; border-radius: 999px; font-size: var(--fs-xs); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-muted); }

.highlights { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.highlights > div { padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--line); }
.highlights > div:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--line); }
.highlights dt { font-size: var(--fs-xs); font-weight: 500; color: var(--accent); margin-bottom: .25rem; }
.highlights dd { font-size: var(--fs-sm); color: var(--text); }

.product-banner { aspect-ratio: 3.7; border-radius: 14px; overflow: hidden; }
.product-banner--video { aspect-ratio: 16 / 9; background: #111; }
.product-banner--video iframe { width: 100%; height: 100%; border: 0; }

.product-features .container { display: grid; gap: clamp(4rem, 9vw, 7.5rem); }
.pfeature { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.pfeature__text { display: grid; grid-template-columns: auto 1fr 1fr; gap: 1rem clamp(1.5rem, 4vw, 4rem); align-items: start; }
.pfeature__num { font-family: var(--font-display); font-size: var(--fs-md); color: var(--accent); padding-top: .35rem; }
.pfeature h2 { font-size: var(--fs-lg); line-height: 1.15; }
.pfeature p { color: var(--text-muted); line-height: 1.7; }
.pfeature__media { border-radius: 14px; overflow: hidden; background: var(--surface); }
.pfeature__media img { height: auto; }

.specs { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.specs h2 { font-size: var(--fs-xl); }
.spec-table { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.spec-table > div { display: grid; grid-template-columns: minmax(8rem, 40%) 1fr; gap: 1rem; padding: 1rem .5rem 1rem 0; border-bottom: 1px solid var(--line); }
.spec-table > div:nth-child(even) { padding-left: 1.5rem; }
.spec-table dt { font-size: var(--fs-sm); font-weight: 500; color: var(--text); }
.spec-table dd { font-size: var(--fs-sm); color: var(--text-muted); overflow-wrap: anywhere; }

@media (max-width: 1100px) {
  .spec-table { grid-template-columns: 1fr; }
  .spec-table > div:nth-child(even) { padding-left: 0; }
}
@media (max-width: 900px) {
  .product-hero__grid, .specs { grid-template-columns: minmax(0, 1fr); }
  .product-hero .breadcrumb { flex-wrap: wrap; row-gap: .25rem; }
  .pgallery { position: static; }
  .pfeature__text { grid-template-columns: auto 1fr; }
  .pfeature__text p { grid-column: 2; }
  .product-banner { aspect-ratio: 2.4; }
  .product-banner img { object-position: 60% center; }
}
@media (max-width: 640px) {
  .highlights { grid-template-columns: 1fr; }
  .highlights > div:nth-child(even) { padding-left: 0; border-left: 0; }
  .spec-table > div { grid-template-columns: 1fr; gap: .2rem; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .design-grid { grid-template-columns: repeat(3, 1fr); }
  .key-features .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-types { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .process-intro { position: static; }
  .collections { grid-template-columns: 1fr; }
  .collection-stage { display: none; }
  .collection-item__media, .collection-item__cta { display: block; grid-column: 1 / -1; }
  .collection-item__media {
    position: relative; aspect-ratio: 4 / 3; border-radius: 6px;
    max-height: 0; opacity: 0; margin-top: 0;
    transition: max-height .7s var(--ease-out), opacity .5s, margin-top .7s var(--ease-out);
  }
  .collection-item.is-active .collection-item__media { max-height: 80vw; opacity: 1; margin-top: 1rem; }
  .collection-item__cta {
    display: inline-flex; align-items: center; gap: .5rem; justify-self: start;
    font-size: var(--fs-sm); font-weight: 500; color: var(--accent);
    max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease-out), opacity .4s;
  }
  .collection-item__cta svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.5; }
  .collection-item.is-active .collection-item__cta { max-height: 40px; opacity: 1; margin-top: .5rem; }
  /* Closing items collapse instantly so home.js can keep the tapped item in place */
  .collection-item:not(.is-active) :is(.collection-item__desc, .collection-item__media, .collection-item__cta) { transition: none; }
  .spaces { flex-direction: column; height: auto; }
  .space { flex: none; height: 84px; transition: height .9s var(--ease-in-out); }
  .space.is-active { flex: none; height: 480px; }
  .space__label { writing-mode: horizontal-tb; transform: none; left: 1.5rem; bottom: 50%; translate: 0 50%; }
  .tech-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 56px 1fr; }
  .step p { grid-column: 2; padding-top: 0; }
  .figures { grid-template-columns: repeat(2, 1fr); }
  .figure:nth-child(3) { padding-left: 0; border-left: 0; }
  .values { grid-template-columns: 1fr; }
  .value + .value { padding-left: 0; border-left: 0; border-top: 1px solid rgba(124,80,40,.25); }
  .case-featured, .compat, .form-panel, .contact-grid { grid-template-columns: 1fr; }
  .benefits, .steps-row { grid-template-columns: 1fr 1fr; }
  .product-card.is-featured { grid-template-columns: 1fr; }
  .product-card.is-featured .product-card__visual { min-height: 260px; }
}

@media (max-width: 640px) {
  .product-grid, .case-grid, .partner-types, .benefits, .steps-row { grid-template-columns: 1fr; }
  .product-card.is-featured { grid-column: auto; }
  .design-grid { grid-template-columns: repeat(2, 1fr); }
  .key-features .tech-grid { grid-template-columns: 1fr; }
  .case-card:nth-child(even) { margin-top: 0; }
  .scene-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-bar { position: static; }
  .search { min-width: 100%; }
  .case-modal-results { grid-template-columns: 1fr; }
}

/* Home hero below 1200px: heading stacks, phone sits beside the panels under the room */
@media (max-width: 1200px) {
  .smart-stage { grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "room room" "panels phone"; }
  .stage-panels { flex-direction: column; justify-content: center; }
  .voice-bubble { left: 1rem; }
}

/* Phones: everything in one column, the app phone last */
@media (max-width: 720px) {
  .smart-stage { grid-template-columns: minmax(0, 1fr); grid-template-areas: "room" "panels" "phone"; gap: 1rem; }
  /* Room at twice the screen width, swiped sideways, so devices stay big enough to tap */
  .room { border-radius: 16px; }
  .room__scroller { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .room__scroller::-webkit-scrollbar { display: none; }
  .room__canvas { width: 200%; }
  .room__hint { left: 50%; right: auto; bottom: .6rem; transform: translateX(-50%); white-space: nowrap; font-size: .7rem; }
  .room__hint-desktop { display: none; }
  .room__hint-mobile { display: inline; }
  .room__toast { font-size: .75rem; }
  /* Smaller switch panels and app phone */
  .stage-panels { flex-direction: row; gap: 1rem; }
  .wall-panel { gap: .35rem; }
  .wall-panel--wide { width: min(56%, 210px); }
  .wall-panel--square { width: min(22%, 86px); }
  .wall-panel__label { display: none; }
  .wall-panel figcaption { font-size: .62rem; white-space: nowrap; }
  .wall-panel figcaption strong { font-size: .7rem; }
  .phone { justify-self: center; width: 300px; zoom: .84; }
  .voice-bubble { font-size: .78rem; }
}
