/* Luxify Home — the cinematic layer: hero motion over the photoreal rooms, the rooms reel, the "start here" actions,
   and the materials page (the real slab first, families, comparison, finishes and edges).
   Loaded after css/luxify.css by index.html and materials.html. CSP self-only: nothing inline. */

/* ---------- hero motion (js/cinematic.js sets --hp = scroll progress and swaps the scenes) ----------
   A slow Ken Burns drift on each photo, a faint warm light sweep, the photo sinking slower than the page
   (depth) and a crossfade between three scenes. Reduced motion: the global rule in luxify.css stops all of it.
   Art direction 28/09/2026: the drift stays under 5% so the photo is never blown up past the master's pixels
   (Retina screens already get the full 1672 px master). */
.hero-scenes { transform: translate3d(0, calc(var(--hp, 0) * 14%), 0) scale(calc(1 + var(--hp, 0) * 0.05)); transform-origin: 60% 40%; will-change: transform; }
.hero-copy { transform: translate3d(0, calc(var(--hp, 0) * -70px), 0); opacity: calc(1 - var(--hp, 0) * 0.9); }
@media (max-aspect-ratio: 21/20) { .hero-scenes { transform: translate3d(0, calc(var(--hp, 0) * 10%), 0); } .hero-copy { transform: none; opacity: 1; } }
.hero-light { position: absolute; inset: -10% -30%; pointer-events: none; opacity: 0; mix-blend-mode: screen; background: linear-gradient(104deg, rgba(255, 190, 110, 0) 40%, rgba(255, 196, 120, 0.1) 47%, rgba(255, 224, 170, 0.2) 50%, rgba(255, 196, 120, 0.1) 53%, rgba(255, 190, 110, 0) 60%); }
@media (prefers-reduced-motion: no-preference) {
  .hero-scene img { animation: lx-kb-a 30s ease-in-out infinite alternate; }
  .sc-slabs img { animation-name: lx-kb-b; animation-duration: 34s; }
  .sc-cut img { animation-name: lx-kb-c; animation-duration: 32s; }
  .hero-light { animation: lx-sweep 15s ease-in-out 1.2s infinite; }
  .hero.is-paused .hero-scene img, .hero.is-paused .hero-light, .hero.is-away .hero-scene img, .hero.is-away .hero-light { animation-play-state: paused; }
  .reel-frame img { scale: 1.04; transition: scale 1.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .reel-shot:hover .reel-frame img { scale: 1.06; }
  @supports (animation-timeline: view()) {
    .reel-frame img { animation: lx-drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  }
}
@keyframes lx-kb-a { from { transform: scale(1.005) translate3d(0, 0, 0); } to { transform: scale(1.045) translate3d(-0.9%, -0.6%, 0); } }
@keyframes lx-kb-b { from { transform: scale(1.045) translate3d(-0.8%, 0.4%, 0); } to { transform: scale(1.005) translate3d(0.3%, -0.2%, 0); } }
@keyframes lx-kb-c { from { transform: scale(1.01) translate3d(0.6%, 0.5%, 0); } to { transform: scale(1.048) translate3d(-0.6%, -0.5%, 0); } }
@keyframes lx-sweep { 0% { opacity: 0; transform: translate3d(-45%, 0, 0); } 12% { opacity: 1; } 42% { opacity: 1; } 55% { opacity: 0; transform: translate3d(45%, 0, 0); } 100% { opacity: 0; transform: translate3d(45%, 0, 0); } }
@keyframes lx-drift { from { translate: 0 1.8%; } to { translate: 0 -1.8%; } }

/* ---------- the rooms reel (home) and the slab figure (materials) ---------- */
.reel { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.2vw, 30px); margin-bottom: 26px; }
.reel-shot, .slab-figure, .fin-figure { margin: 0; }
.reel-lead { grid-column: 1 / -1; }
.reel-frame { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--radius); background: #121211; }
.reel-lead .reel-frame { aspect-ratio: 21 / 9; }
.reel-frame img { width: 100%; height: 100%; object-fit: cover; translate: 0 calc(var(--drift, 0) * -1.8%); }
.reel-lead .reel-frame img { object-position: 58% 62%; }
.reel-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(3, 5, 4, 0) 55%, rgba(3, 5, 4, 0.35)); }
.reel-frame .tag { position: absolute; left: 14px; top: 14px; z-index: 1; padding: 5px 10px; border-radius: 999px; background: rgba(3, 5, 4, 0.66); color: var(--gold-soft); font: 700 0.62rem/1.4 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; }
.reel-shot figcaption { display: grid; gap: 4px; padding: 16px 2px 0; }
.reel-shot figcaption strong { font: 400 clamp(1.2rem, 1.8vw, 1.5rem)/1.25 var(--serif); }
.reel-shot figcaption span { color: var(--muted); font-size: 0.88rem; letter-spacing: 0.02em; }
@media (max-width: 760px) { .reel { grid-template-columns: 1fr; } .reel-lead .reel-frame { aspect-ratio: 16 / 10; } }

/* ---------- start here: every action on luxify.design ---------- */
.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; list-style: none; }
.actions a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 26px 22px 22px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(217, 173, 92, 0.07), rgba(217, 173, 92, 0)); text-decoration: none; transition: border-color 0.2s, transform 0.25s, background 0.2s; }
.actions a:hover { border-color: var(--gold); transform: translateY(-3px); background: linear-gradient(180deg, rgba(217, 173, 92, 0.12), rgba(217, 173, 92, 0.01)); }
.actions .icon { margin-bottom: 8px; }
.actions strong { font: 400 1.4rem/1.2 var(--serif); }
.actions a > span:not(.icon) { color: var(--muted); font-size: 0.98rem; }
.actions em { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; color: var(--gold); font-style: normal; font-weight: 700; font-size: 0.84rem; }
.actions em svg { width: 14px; height: 14px; }
@media (max-width: 1000px) { .actions { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .actions { grid-template-columns: 1fr; } }

/* ---------- materials: the real slab first ---------- */
.studio-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.studio-panel .btn-row { margin-top: 8px; }
@media (max-width: 900px) { .studio-grid { grid-template-columns: 1fr; } }

/* ---------- materials: families, comparison, finishes, edges ---------- */
.fams { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.fam { display: grid; grid-template-columns: 132px 1fr; gap: 20px; padding: 20px; background: #fff; border: 1px solid rgba(20, 19, 18, 0.12); }
.fam img { width: 132px; height: 132px; object-fit: cover; }
.fam h3 { font-size: 1.45rem; margin-bottom: 6px; }
.fam p { color: var(--on-ivory-muted); font-size: 1rem; margin-bottom: 10px; }
.facts { display: grid; gap: 5px; margin: 0; font-size: 0.93rem; }
.facts div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; }
.facts dt { padding-top: 3px; color: var(--gold-deep); font: 700 0.7rem/1.4 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; }
.facts dd { margin: 0; color: var(--on-ivory); }
@media (max-width: 900px) { .fams { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .fam { grid-template-columns: 1fr; } .fam img { width: 100%; height: 150px; } .facts div { grid-template-columns: 1fr; gap: 0; } }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.cmp { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 0.96rem; }
.cmp th, .cmp td { padding: 16px 18px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.cmp thead th { background: var(--ink); color: var(--gold); font: 700 0.72rem/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; }
.cmp tbody th { color: var(--text); font: 400 1.15rem/1.3 var(--serif); white-space: nowrap; }
.cmp td { color: var(--muted); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp tbody tr:hover { background: rgba(217, 173, 92, 0.04); }
.finishes article { padding: 24px; background: #fff; border: 1px solid rgba(20, 19, 18, 0.12); }
.finishes h3 { margin-bottom: 8px; }
.fin-figure { margin-bottom: 22px; }
.fin-figure img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; object-position: 40% 46%; }
.fin-figure figcaption { margin-top: 10px; color: var(--on-ivory-muted); font-size: 0.84rem; }
@media (max-width: 560px) { .fin-figure img { aspect-ratio: 16 / 10; } }
.edges-title { margin: 52px 0 18px; font-size: 1.5rem; }
.edges { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; list-style: none; }
.edges li { display: grid; align-content: start; gap: 6px; padding: 16px; background: #fff; border: 1px solid rgba(20, 19, 18, 0.12); }
.edges svg { width: 100%; height: auto; margin-bottom: 6px; background: #f3efe7; }
.edges .dw-block { stroke-width: 0.8; }
.edges .dw-hidden { stroke-width: 0.7; }
.edges strong { font: 400 1.15rem/1.2 var(--serif); }
.edges span { color: var(--on-ivory-muted); font-size: 0.9rem; }
.thick { max-width: 860px; margin-top: 26px; padding: 18px 22px; border-left: 2px solid var(--gold-deep); background: rgba(122, 90, 34, 0.06); color: var(--on-ivory); }
@media (max-width: 1000px) { .edges { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .edges { grid-template-columns: repeat(2, 1fr); } }
@media print { .hero-meta, .hero-light { display: none !important; } }
