/* Homepage 2026.08 — two-stage editorial layout.
   This file intentionally comes last so the homepage can evolve without
   disturbing the shared catalogue and configurator presentation system. */
:root {
  --home-ink: #141516;
  --home-paper: #f7f6f3;
  --home-copper: #a7734f;
  --home-ease: cubic-bezier(.16, 1, .3, 1);
}

body[data-page="home"] {
  color: var(--home-ink);
  background: var(--home-paper);
}

body[data-page="home"] .site-header {
  background: rgba(247, 246, 243, .76);
  border-color: rgba(20, 21, 22, .1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .72);
  backdrop-filter: blur(22px) saturate(140%);
}

body[data-page="home"] .header-tool,
body[data-page="home"] .product-menu-trigger {
  transition: color .25s ease, opacity .25s ease, transform .25s ease;
}

body[data-page="home"] .header-tool:hover,
body[data-page="home"] .product-menu-trigger:hover {
  color: var(--home-copper);
  transform: translateY(-1px);
}

body[data-page="home"] .home-flow {
  overflow: clip;
  background: var(--home-paper);
}

body[data-page="home"] .home-scene {
  --pointer-x: 50%;
  --pointer-y: 30%;
  position: relative;
  min-height: min(100svh, 1120px);
  overflow: hidden;
  scroll-margin-top: 70px;
  isolation: isolate;
}

body[data-page="home"] .home-scene::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(169, 115, 79, .085), transparent 28%);
  content: '';
  opacity: .8;
  pointer-events: none;
  transition: opacity .5s ease;
}

body[data-page="home"] .home-scene-number {
  position: absolute;
  top: 116px;
  right: 4.3vw;
  color: rgba(20, 21, 22, .09);
  font: 300 clamp(72px, 8vw, 132px)/1 var(--sans);
  letter-spacing: -.08em;
  pointer-events: none;
  user-select: none;
}

body[data-page="home"] .home-series-screen {
  display: flex;
  flex-direction: column;
  padding: clamp(118px, 10vh, 148px) 6vw 38px;
  background: linear-gradient(145deg, #fbfaf7 0%, #f2f0eb 100%);
  border: 0;
}

body[data-page="home"] .page-shell > .home-series-screen:first-child {
  padding-top: clamp(118px, 10vh, 148px);
}

body[data-page="home"] .home-series-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(270px, .48fr);
  align-items: end;
  gap: clamp(36px, 8vw, 128px);
  width: min(100%, 1620px);
  margin: 0 auto clamp(32px, 4vh, 52px);
}

body[data-page="home"] .home-series-head .section-kicker,
body[data-page="home"] .home-products-head .section-kicker {
  margin: 0 0 18px;
  color: var(--home-copper);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .24em;
}

body[data-page="home"] .home-series-head h2 {
  max-width: 850px;
  margin: 0;
  color: var(--home-ink);
  font: 400 clamp(52px, 6.2vw, 94px)/.92 var(--sans);
  letter-spacing: -.085em;
}

body[data-page="home"] .home-series-head h2 em {
  color: #77746f;
  font-style: normal;
}

body[data-page="home"] .home-series-intro {
  padding-bottom: 5px;
  border-top: 1px solid rgba(20, 21, 22, .22);
}

body[data-page="home"] .home-series-intro > span {
  display: block;
  margin: 17px 0 12px;
  color: #89857f;
  font-size: 9px;
  letter-spacing: .2em;
}

body[data-page="home"] .home-series-intro p {
  margin: 0;
  color: #65635f;
  font-size: 13px;
  line-height: 1.85;
}

body[data-page="home"] .series-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: min(100%, 1620px);
  margin: 0 auto;
  transition: grid-template-columns .75s var(--home-ease);
}

@media (hover: hover) and (min-width: 921px) {
  body[data-page="home"] .series-feature-grid:has(.series-feature-card:first-child:hover) { grid-template-columns: 1.08fr .92fr; }
  body[data-page="home"] .series-feature-grid:has(.series-feature-card:last-child:hover) { grid-template-columns: .92fr 1.08fr; }
}

body[data-page="home"] .series-feature-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --shine-x: 50%;
  --shine-y: 35%;
  position: relative;
  min-height: clamp(360px, 49vh, 570px);
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: clamp(18px, 2vw, 30px);
  color: #fff;
  background: #242321;
  box-shadow: 0 24px 70px rgba(44, 38, 33, .13);
  text-align: left;
  isolation: isolate;
  transform: perspective(1100px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: transform .55s var(--home-ease), box-shadow .55s var(--home-ease), border-color .35s ease;
}

body[data-page="home"] .series-feature-card::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(circle at var(--shine-x) var(--shine-y), rgba(255, 255, 255, .18), transparent 28%);
  content: '';
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}

body[data-page="home"] .series-feature-card:hover {
  border-color: rgba(255, 255, 255, .48);
  box-shadow: 0 34px 90px rgba(35, 29, 24, .22);
}

body[data-page="home"] .series-feature-card:hover::after { opacity: 1; }
body[data-page="home"] .series-feature-card.is-active { border-color: rgba(255, 255, 255, .58); box-shadow: 0 28px 75px rgba(35, 29, 24, .18), inset 0 0 0 1px rgba(255, 255, 255, .5); }

body[data-page="home"] .series-feature-media,
body[data-page="home"] .series-feature-media img,
body[data-page="home"] .series-feature-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

body[data-page="home"] .series-feature-media img {
  object-fit: cover;
  filter: saturate(.82) contrast(1.04) brightness(.92);
  transform: scale(1.02);
  transition: transform 1.1s var(--home-ease), filter .7s ease;
}

body[data-page="home"] .series-feature-card:hover .series-feature-media img {
  filter: saturate(1) contrast(1.05) brightness(1);
  transform: scale(1.075);
}

body[data-page="home"] .series-feature-overlay {
  z-index: 1;
  background: linear-gradient(180deg, rgba(8, 8, 8, .04) 12%, rgba(8, 8, 8, .12) 46%, rgba(8, 8, 8, .9) 100%);
}

body[data-page="home"] .series-feature-index {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 3;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 50%;
  color: rgba(255, 255, 255, .82);
  background: rgba(20, 20, 20, .14);
  font-size: 10px;
  letter-spacing: .08em;
  backdrop-filter: blur(10px);
}

body[data-page="home"] .series-feature-copy {
  position: absolute;
  inset: auto clamp(24px, 3vw, 46px) clamp(26px, 4vh, 44px);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateZ(42px);
}

body[data-page="home"] .series-feature-copy small {
  margin-bottom: 10px;
  color: #e5c7ad;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .19em;
}

body[data-page="home"] .series-feature-copy strong {
  font: 400 clamp(40px, 4.3vw, 66px)/.94 var(--sans);
  letter-spacing: -.08em;
}

body[data-page="home"] .series-feature-copy > span {
  margin-top: 12px;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
}

body[data-page="home"] .series-feature-copy i {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  letter-spacing: .05em;
}

body[data-page="home"] .series-feature-copy i b {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  font-weight: 400;
  transition: color .3s ease, background .3s ease, transform .35s var(--home-ease);
}

body[data-page="home"] .series-feature-card:hover .series-feature-copy i b {
  color: #171717;
  background: #fff;
  transform: translateX(6px) rotate(8deg);
}

body[data-page="home"] .home-next-cue {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 25px;
  color: #6e6b66;
  font-size: 9px;
  letter-spacing: .18em;
}

body[data-page="home"] .home-next-cue i {
  position: relative;
  display: block;
  width: 42px;
  height: 1px;
  overflow: hidden;
  background: rgba(20, 21, 22, .2);
}

body[data-page="home"] .home-next-cue i::after {
  position: absolute;
  inset: 0;
  background: var(--home-ink);
  content: '';
  animation: home-cue 2.2s ease-in-out infinite;
  transform: translateX(-100%);
}

body[data-page="home"] .home-product-screen {
  display: flex;
  align-items: center;
  padding: clamp(112px, 12vh, 160px) 6vw clamp(70px, 8vh, 110px);
  color: #f6f4ef;
  background: #171716;
}

body[data-page="home"] .home-product-screen::before {
  background: radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(190, 139, 101, .15), transparent 29%);
}

body[data-page="home"] .home-product-screen .home-scene-number { color: rgba(255, 255, 255, .055); }
body[data-page="home"] .home-products-block { width: min(100%, 1620px); margin: 0 auto; }
body[data-page="home"] .home-products-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .48fr); align-items: end; gap: clamp(30px, 8vw, 120px); margin: 0 0 clamp(34px, 5vh, 58px); }
body[data-page="home"] .home-products-head h3 { margin: 0; color: #fff; font: 400 clamp(44px, 5vw, 76px)/.96 var(--sans); letter-spacing: -.075em; }
body[data-page="home"] .home-products-head h3 em { color: #9b9790; font-style: normal; }
body[data-page="home"] .home-products-side { padding-top: 17px; border-top: 1px solid rgba(255, 255, 255, .18); }
body[data-page="home"] .home-products-side > p { max-width: 350px; margin: 0 0 20px; color: #aaa7a1; font-size: 12px; line-height: 1.8; }
body[data-page="home"] .home-products-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 13px; }
body[data-page="home"] .home-products-controls .filter-tabs { display: flex; gap: 6px; }
body[data-page="home"] .home-products-controls .filter-tab { min-height: 38px; padding: 0 15px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; color: #aaa7a1; background: transparent; font-size: 10px; transition: color .25s ease, background .25s ease, border-color .25s ease, transform .25s ease; }
body[data-page="home"] .home-products-controls .filter-tab:hover { color: #fff; border-color: rgba(255, 255, 255, .52); transform: translateY(-2px); }
body[data-page="home"] .home-products-controls .filter-tab.is-active { color: #171716; border-color: #fff; background: #fff; }
body[data-page="home"] .product-count { color: #8e8b86; font-size: 10px; white-space: nowrap; }
body[data-page="home"] .home-product-rail-shell { position: relative; margin-right: -6vw; overflow: visible; }
body[data-page="home"] .product-rail { grid-auto-columns: clamp(250px, 23vw, 350px); gap: 15px; margin: 0; padding: 0 6vw 18px 0; cursor: grab; scrollbar-width: none; }
body[data-page="home"] .product-rail::-webkit-scrollbar { display: none; }
body[data-page="home"] .product-rail.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
body[data-page="home"] .product-card { min-height: 390px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .08); border-radius: 20px; color: #f8f7f4; background: #242422; box-shadow: 0 20px 50px rgba(0, 0, 0, .2); transform: translateY(0); transition: transform .55s var(--home-ease), box-shadow .55s ease, border-color .35s ease, background .35s ease; }
body[data-page="home"] .product-rail .product-card { animation: home-product-enter .65s var(--home-ease) both; }
body[data-page="home"] .product-rail .product-card:nth-child(2) { animation-delay: .04s; }
body[data-page="home"] .product-rail .product-card:nth-child(3) { animation-delay: .08s; }
body[data-page="home"] .product-rail .product-card:nth-child(4) { animation-delay: .12s; }
body[data-page="home"] .product-rail .product-card:nth-child(n+5) { animation-delay: .16s; }
body[data-page="home"] .product-card:hover { border-color: rgba(214, 171, 135, .42); background: #292826; box-shadow: 0 30px 70px rgba(0, 0, 0, .38); transform: translateY(-10px); }
body[data-page="home"] .product-card-media { height: 260px; background: #d8d5ce; }
body[data-page="home"] .product-card-media::after { background: linear-gradient(0deg, rgba(17, 17, 16, .34), transparent 42%); }
body[data-page="home"] .product-card-media img { transition: transform 1s var(--home-ease), filter .6s ease; }
body[data-page="home"] .product-card:hover .product-card-media img { filter: saturate(1.05) contrast(1.03); transform: scale(1.07); }
body[data-page="home"] .product-card-body { min-height: 132px; padding: 18px 19px 17px; }
body[data-page="home"] .product-card-body small { color: #bca58f; font-size: 8px; }
body[data-page="home"] .product-card-body h3 { margin: 8px 0 5px; color: #fff; font: 400 22px/1.15 var(--sans); }
body[data-page="home"] .product-card-body p { display: block; overflow: hidden; margin: 0; color: #918e89; font-size: 10px; line-height: 1.55; text-overflow: ellipsis; white-space: nowrap; }
body[data-page="home"] .product-card-link { display: flex; padding-top: 13px; color: #d4d0c9; opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .35s var(--home-ease); }
body[data-page="home"] .product-card:hover .product-card-link { opacity: 1; transform: translateY(0); }
body[data-page="home"] .configurable-chip { color: #161616; background: rgba(246, 235, 222, .92); }
body[data-page="home"] .pdf-chip { background: rgba(20, 20, 19, .72); }
body[data-page="home"] .home-product-foot { display: grid; grid-template-columns: auto minmax(140px, 1fr) auto; align-items: center; gap: 28px; margin-top: 25px; }
body[data-page="home"] .home-catalog-link { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: #cfcbc4; font-size: 11px; transition: color .25s ease, gap .3s var(--home-ease); }
body[data-page="home"] .home-catalog-link:hover { gap: 14px; color: #fff; }
body[data-page="home"] .home-rail-progress { height: 1px; overflow: hidden; background: rgba(255, 255, 255, .15); }
body[data-page="home"] .home-rail-progress span { display: block; width: 18%; height: 100%; background: #c59772; transform-origin: left; transition: width .35s var(--home-ease); }
body[data-page="home"] .home-rail-actions { display: flex; gap: 8px; }
body[data-page="home"] .home-rail-actions button { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%; color: #f4f2ed; background: transparent; font-size: 17px; transition: color .25s ease, background .25s ease, border-color .25s ease, transform .25s ease; }
body[data-page="home"] .home-rail-actions button:hover { color: #171716; border-color: #fff; background: #fff; transform: scale(1.06); }
body[data-page="home"] .home-rail-actions button:disabled { opacity: .28; pointer-events: none; }

body[data-page="home"] .home-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s ease, transform .85s var(--home-ease);
}

body[data-page="home"] .home-reveal.is-visible { opacity: 1; transform: translateY(0); }
body[data-page="home"] .series-feature-grid.home-reveal { transition: opacity .75s .1s ease, transform .85s .1s var(--home-ease), grid-template-columns .75s var(--home-ease); }
body[data-page="home"] .home-products-block.home-reveal { transition-delay: .08s; }

body[data-page="home"] :is(.series-feature-card, .filter-tab, .home-rail-actions button, .home-catalog-link, .home-next-cue):focus-visible {
  outline: 2px solid #c79570;
  outline-offset: 4px;
}

body[data-page="home"] .site-footer {
  padding: 28px 6vw 24px;
  color: #d0ccc5;
  background: #111110;
  border-color: rgba(255, 255, 255, .1);
}

body[data-page="home"] .site-footer .footer-brand small,
body[data-page="home"] .site-footer .footer-meta,
body[data-page="home"] .site-footer .footer-nav { color: #7f7c77; }

@keyframes home-cue {
  0% { transform: translateX(-100%); }
  55%, 100% { transform: translateX(100%); }
}

@keyframes home-product-enter {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 920px) {
  body[data-page="home"] .home-series-screen { padding-inline: 24px; }
  body[data-page="home"] .home-series-head,
  body[data-page="home"] .home-products-head { grid-template-columns: 1fr; gap: 26px; }
  body[data-page="home"] .home-series-intro,
  body[data-page="home"] .home-products-side { max-width: 520px; }
  body[data-page="home"] .series-feature-card { min-height: 390px; }
  body[data-page="home"] .home-product-screen { padding-inline: 24px; }
  body[data-page="home"] .home-product-rail-shell { margin-right: -24px; }
  body[data-page="home"] .product-rail { grid-auto-columns: minmax(250px, 42vw); padding-right: 24px; }
}

@media (max-width: 640px) {
  body[data-page="home"] .home-scene { min-height: auto; }
  body[data-page="home"] .home-scene-number { top: 96px; right: 20px; font-size: 72px; }
  body[data-page="home"] .home-series-screen,
  body[data-page="home"] .page-shell > .home-series-screen:first-child { padding: 106px 16px 32px; }
  body[data-page="home"] .home-series-head { margin-bottom: 24px; }
  body[data-page="home"] .home-series-head h2 { font-size: 48px; }
  body[data-page="home"] .home-series-intro p { font-size: 12px; }
  body[data-page="home"] .series-feature-grid { grid-template-columns: 1fr; gap: 12px; }
  body[data-page="home"] .series-feature-card { min-height: 320px; border-radius: 20px; transform: none; }
  body[data-page="home"] .series-feature-copy { inset: auto 24px 26px; transform: none; }
  body[data-page="home"] .series-feature-copy strong { font-size: 43px; }
  body[data-page="home"] .home-next-cue { margin-top: 10px; }
  body[data-page="home"] .home-product-screen { min-height: 100svh; padding: 100px 16px 64px; }
  body[data-page="home"] .home-products-head h3 { font-size: 45px; }
  body[data-page="home"] .home-products-controls { align-items: flex-start; flex-direction: column; }
  body[data-page="home"] .home-product-rail-shell { margin-right: -16px; }
  body[data-page="home"] .product-rail { grid-auto-columns: 76vw; padding-right: 16px; }
  body[data-page="home"] .product-card { min-height: 365px; }
  body[data-page="home"] .product-card-media { height: 238px; }
  body[data-page="home"] .product-card-link { opacity: 1; transform: none; }
  body[data-page="home"] .home-product-foot { grid-template-columns: 1fr auto; gap: 18px; }
  body[data-page="home"] .home-rail-progress { grid-column: 1 / -1; grid-row: 1; }
  body[data-page="home"] .home-catalog-link { grid-row: 2; }
  body[data-page="home"] .home-rail-actions { grid-row: 2; }
  body[data-page="home"] .site-footer { grid-template-columns: 1fr; padding: 26px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .home-reveal { opacity: 1; transform: none; transition: none; }
  body[data-page="home"] .series-feature-card,
  body[data-page="home"] .series-feature-media img,
  body[data-page="home"] .product-card,
  body[data-page="home"] .product-card-media img { transform: none; transition: none; }
  body[data-page="home"] .product-rail .product-card { animation: none; }
  body[data-page="home"] .home-next-cue i::after { animation: none; }
}
