/* ---------- Bolig page ---------- */
.page-bolig { background: #f3ede4; }
.badge--goodie { background: var(--green); color: #fff; }

/* 1. Ceramics hero */
.bohero { height: 190vh; background: radial-gradient(90% 70% at 70% 45%, #fbf7f1 0%, #efe6d9 60%, #e6dac9 100%); }
.bohero__sticky {
  position: sticky; top: 0; z-index: 2;
  height: 100vh; height: 100svh;
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center;
  padding: var(--nav-h) var(--gutter) 0;
  overflow: hidden;
}
.bohero__copy {
  display: grid; gap: 22px; justify-items: start; max-width: 480px;
  opacity: calc(1.4 - var(--p, 0) * 1.6);
  transform: translateY(calc(var(--p, 0) * -8vh));
}
.bohero__copy .display { font-size: clamp(80px, 12vw, 200px); line-height: .85; }
.bohero__lead { font: 400 clamp(19px, 1.7vw, 25px)/1.3 var(--serif); }
.bohero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.bohero__stage { position: relative; height: min(82vh, 820px); cursor: grab; touch-action: pan-y; }
.bohero__stage:active { cursor: grabbing; }
.bohero__fallback { position: absolute; inset: 10% 0; width: 100%; height: 80%; object-fit: contain; mix-blend-mode: multiply; }
html.gl-on .bohero__fallback { opacity: 0; }

.glaze {
  position: absolute; right: var(--gutter); bottom: 5vh;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: flex-end;
  padding: 12px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, .7); backdrop-filter: blur(10px);
  font-size: 13px;
}
html:not(.gl-on) .glaze { display: none; }
.glaze__label strong { font-weight: 500; }
.glaze__swatches { display: flex; gap: 8px; }
.glaze__swatches button {
  width: 26px; height: 26px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.glaze__swatches button:hover { transform: scale(1.12); }
.glaze__swatches button.is-active { box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--ink); }
.glaze__toggle { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.glaze__toggle input { accent-color: var(--green); }
.glaze__hint { color: var(--ink-soft); font-size: 12px; }

/* 2. Shop the look */
.look { position: relative; z-index: 2; padding: 130px var(--gutter) 110px; }
.look__stage { position: relative; max-width: 1180px; margin: 0 auto; }
.look__stage > img { width: 100%; border-radius: 6px; }
.hotspot {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
}
.hotspot::before, .hotspot::after { content: ""; position: absolute; border-radius: 50%; }
.hotspot::before { inset: 10px; background: var(--ink); transition: transform .3s var(--ease); }
.hotspot::after { inset: -8px; border: 2px solid rgba(255, 255, 255, .9); animation: ping 2.2s var(--ease) infinite; }
.hotspot[aria-expanded="true"]::before { transform: scale(.4); }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.hs-card {
  position: absolute; left: calc(var(--x) + 28px); top: var(--y); z-index: 3;
  display: flex; gap: 14px; align-items: center; width: max-content; max-width: 320px;
  padding: 14px 18px 14px 14px; background: #fff; border-radius: 6px;
  box-shadow: 0 30px 60px -20px rgba(40, 30, 20, .35);
  transform: translateY(-50%) scale(.94); transform-origin: left center;
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.hs-card.is-open { opacity: 1; pointer-events: auto; transform: translateY(-50%); }
.hs-card--left { left: auto; right: calc(100% - var(--x) + 28px); transform-origin: right center; }
.hs-card--up { left: var(--x); top: auto; bottom: calc(100% - var(--y) + 28px); transform: translateX(-50%) scale(.94); transform-origin: bottom center; }
.hs-card--up.is-open { transform: translateX(-50%); }
.hs-card img { width: 64px; height: 80px; object-fit: contain; mix-blend-mode: multiply; }
.hs-card .link { margin-top: 8px; font-size: 11px; }

/* 3. Scroll-spy categories */
.spy { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gutter); padding: 120px var(--gutter) 60px; }
.spy__list ol { margin-top: 20px; }
.spy__item a { display: grid; gap: 8px; padding: 9vh 0; border-top: 1px solid rgba(0, 0, 0, .12); opacity: .32; transition: opacity .5s var(--ease); }
.spy__item.is-active a { opacity: 1; }
.spy__deal { font: 500 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--sale); }
.spy__title { font: 400 clamp(44px, 6vw, 96px)/1 var(--serif); letter-spacing: -.02em; }
.spy__item a:hover .spy__title { font-style: italic; }
.spy__text { color: var(--ink-soft); }
.spy__media { position: sticky; top: calc(var(--nav-h) + 6vh); height: calc(88vh - var(--nav-h)); align-self: start; }
.spy__frame { position: relative; height: 100%; overflow: hidden; border-radius: 6px; background: #e3d7c6; }
.spy__frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.1s var(--ease), transform 1.6s var(--ease);
  transform: scale(1.12);
}
.spy__frame img.is-active { clip-path: inset(0 0 0 0); transform: scale(1); }

/* 4. Feature panels */
.features { position: relative; z-index: 2; padding: 120px var(--gutter) 60px; }
.feature { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center; margin-bottom: 110px; }
.feature--flip .feature__img { order: 2; }
.feature__img { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 6px; }
.feature__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.2); will-change: transform; }
.feature__copy { display: grid; gap: 16px; justify-items: start; max-width: 420px; }
.feature__copy h3 { font: 400 clamp(40px, 4.4vw, 70px)/1 var(--serif); letter-spacing: -.02em; }
.feature__copy p:not(.eyebrow) { color: #555; font-size: 16px; }
.feature:hover .link { background-size: 40% 1px; }

/* 5. Parallax masonry */
.masonry { position: relative; z-index: 2; padding: 120px var(--gutter) 200px; overflow: hidden; background: #ece3d6; }
.masonry__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.masonry__col { display: grid; gap: 20px; will-change: transform; }
.masonry__col:nth-child(2) { margin-top: 140px; }
.mtile { position: relative; display: block; overflow: hidden; border-radius: 6px; color: #fff; }
.mtile img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 1.2s var(--ease); }
.mtile--tall img { aspect-ratio: 4 / 5.6; }
.mtile:hover img { transform: scale(1.05); }
.mtile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .45), transparent 45%); }
.mtile span { position: absolute; z-index: 1; left: 18px; bottom: 16px; font: 400 clamp(18px, 1.6vw, 24px)/1.1 var(--serif); }

.page-bolig .product__img { background: #f7f2eb; }
.page-bolig .product__img img { object-fit: contain; padding: 9%; mix-blend-mode: multiply; }

@media (max-width: 900px) {
  .bohero__sticky { grid-template-columns: 1fr; grid-template-rows: 1fr auto; align-items: end; padding-bottom: calc(3vh + 120px); }
  .bohero__stage { position: absolute; inset: calc(var(--nav-h) + 10px) 0 auto; height: 52vh; }
  .bohero__copy { gap: 14px; }
  .glaze { left: var(--gutter); right: var(--gutter); bottom: 3vh; justify-content: center; gap: 10px; padding: 10px 14px; }
  .glaze__hint { display: none; }
  .spy { grid-template-columns: 1fr; }
  .spy__media { order: -1; top: calc(var(--nav-h) + 8px); height: 36vh; z-index: 3; }
  .spy__item a { padding: 6vh 0; }
  .feature, .feature--flip { grid-template-columns: 1fr; margin-bottom: 70px; }
  .feature--flip .feature__img { order: 0; }
  .masonry__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .masonry__col { gap: 12px; }
  .masonry__col:nth-child(3) { display: none; }
  .masonry__col:nth-child(2) { margin-top: 70px; }
  .hs-card { max-width: 220px; padding: 10px 12px 10px 10px; }
  .hs-card img { width: 44px; height: 56px; }
}
