/* =========================================================
   Project preview — full-frame page over the site
   ========================================================= */
.pv-open, .pv-open body { overflow: hidden; }
.pv {
  position: fixed;
  inset: var(--inset);
  z-index: 120;
  overflow: hidden;
  --cut: var(--bevel);
  background: var(--bg);
}
.pv[hidden] { display: none; }
.pv__scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.pv__scroll::-webkit-scrollbar { display: none; }
.pv__close {
  position: absolute;
  top: calc(var(--pad) - 4px);
  right: var(--pad);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 30px;
  padding: 0 12px;
  --cut: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 10.5px;
  transition: background .25s;
}
.pv__close:hover { background: var(--accent); color: var(--ink); }
.pv__close i { font-style: normal; font-size: 11px; }
.pv__page { padding: calc(var(--pad) + 46px) var(--pad) 0; }

/* --- Top: gallery + info --- */
.pv__top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 6vw;
  min-height: calc(100vh - var(--inset) * 2 - var(--pad) * 2 - 46px);
}
.pv__gal {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 20px;
  min-height: 520px;
  padding: 20px;
  --cut: 40px;
  background: var(--card);
}
.pv__tools { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px; padding-right: 150px; }
.pv__tools span {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 6px;
  --cut: 10px;
  background: var(--bg);
  font-size: 9px;
  font-weight: 600;
}
.pv__meta { position: absolute; top: 32px; right: 22px; font-size: 10px; font-weight: 400; }
.pv__stage { position: relative; grid-column: 1 / -1; display: grid; place-items: center; min-height: 0; }
.pv__slide {
  position: relative;
  z-index: 2;
  width: 82%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--m);
  box-shadow: 0 40px 60px -34px rgba(0, 0, 0, .5);
}
.pv__slide .scr { position: absolute; inset: 0; }
.pv__ghost {
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 26%;
  aspect-ratio: 16 / 10;
  background: #d0cfc7 center top / cover no-repeat;
  filter: blur(3px) saturate(.8);
  opacity: .7;
  translate: 0 -50%;
}
.pv__ghost--l { left: 0; translate: 0 -64%; }
.pv__ghost--r { right: 0; translate: 0 -36%; }
.pv__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  translate: 0 -50%;
  font-size: 18px;
  transition: background .25s;
}
.pv__arrow:hover { background: rgba(0, 0, 0, .07); }
.pv__arrow[data-d="-1"] { left: -6px; }
.pv__arrow[data-d="1"] { right: -6px; }
.pv__dots { position: absolute; left: 50%; bottom: -14px; display: flex; gap: 5px; translate: -50% 0; }
.pv__dots i { width: 5px; height: 5px; background: #b5b5b5; transition: width .4s var(--ease), background .3s; }
.pv__dots i.is-on { width: 18px; background: var(--ink); }
.pv__live { height: 40px; padding: 0 26px; align-self: end; }
.pv__status { align-self: end; justify-self: end; font-size: 10px; font-weight: 400; color: #7a7a7a; }

.pv__info { position: relative; display: flex; flex-direction: column; padding: 16px 0 24px; }
.pv__badge { --cut: 14px; position: absolute; top: 0; right: 0; padding: 14px 16px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; }
.pv__info h1 { margin-top: 20px; font-size: clamp(44px, 4.6vw, 76px); line-height: .98; letter-spacing: -0.05em; }
.pv__sub { margin-top: 14px; font-size: 10.5px; font-weight: 400; color: #8b8b8b; }
.pv__desc { max-width: 520px; margin-top: 28px; font-size: 15.5px; line-height: 1.45; }
.pv__lbl { margin: 46px 0 18px; font-size: 10px; font-weight: 400; color: #6c6c6c; }
.pv__facts { display: flex; flex-wrap: wrap; }
.pv__facts li {
  --cut: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 150px;
  height: 110px;
  padding: 0 10px;
  background: var(--ink);
  color: #fff;
  text-align: center;
}
.pv__facts li + li { margin-left: 3px; }
.pv__facts b { font-size: 26px; font-weight: 400; letter-spacing: -0.04em; line-height: 1; white-space: nowrap; }
.pv__facts span { font-size: 9px; font-weight: 400; color: #bdbdbd; }
.pv__feat { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; max-width: 560px; }
.pv__feat li { display: flex; gap: 8px; font-size: 13.5px; line-height: 1.35; }
.pv__feat .ic, .pv__all .ic { margin-top: .15em; font-size: 13px; color: var(--accent); stroke-width: 2; }
.pv__feat .ic { color: var(--accent-deep); }
.pv__cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 44px; }
.pv__btn {
  display: flex;
  align-items: center;
  height: 40px;
  padding-left: 16px;
  --cut: 13px;
  background: var(--ink);
  color: #fff;
  font-size: 10.5px;
  font-weight: 500;
}
.pv__btn i { display: grid; place-items: center; width: 40px; height: 100%; margin-left: 14px; border-left: 1px solid rgba(255, 255, 255, .18); font-size: 14px; transition: background .25s; }
.pv__btn:hover i { background: var(--accent); color: var(--ink); }
.pv__btn--ghost { background: var(--card); color: var(--ink); }
.pv__btn--ghost i { border-color: rgba(0, 0, 0, .12); }

/* --- Specs --- */
.pv__specs { display: flex; flex-direction: column; align-items: center; padding: 22vh 0 4vh; text-align: center; }
.pv__specs h2, .pv__all h2 { margin-top: 18px; font-size: clamp(34px, 3.4vw, 54px); letter-spacing: -0.045em; line-height: 1.05; }
.pv__specs > p, .pv__all > p { max-width: 220px; margin-top: 18px; font-size: 14.5px; line-height: 1.35; }
.pv__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 110px; width: min(1040px, 100%); margin-top: 12vh; text-align: left; }
.pv__cols.is-single { grid-template-columns: 1fr; width: min(520px, 100%); }
.pv__cols h3 { margin-bottom: 30px; font-size: 16px; }
.pv__cols li { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px dashed #c4c4c4; }
.pv__cols li span { font-size: 10px; font-weight: 400; color: #555; }
.pv__cols li b { font-size: 14px; font-weight: 400; text-align: right; }

/* --- Highlight tiles --- */
.pv__tiles { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 16vh 0 20vh; }
.pv__tiles::before { content: ''; position: absolute; left: 50%; top: 4vh; z-index: -1; width: min(1100px, 90vw); aspect-ratio: 1; border-radius: 50%; background: var(--disk); translate: -50% 0; }
.pv__tgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; width: min(1120px, 100%); margin-bottom: 10vh; }
.pv__tile {
  --cut: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  aspect-ratio: .92;
  padding: 32px 24px;
  background: var(--ink);
  color: #fff;
  text-align: center;
}
.pv__tile b { font-size: 16px; font-weight: 400; letter-spacing: -0.02em; }
.pv__tile .ic { font-size: 30px; color: var(--accent); stroke-width: 1.4; }
.pv__tile span { font-size: 9.5px; font-weight: 400; line-height: 1.4; color: #b5b5b5; }
.pv__chips { --cut: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 6px; background: var(--card); }
.pv__chips span { --cut: 11px; display: grid; place-items: center; min-width: 44px; height: 40px; padding: 0 10px; background: var(--ink); color: #fff; font-size: 9.5px; font-weight: 600; }

/* --- All features (dark) --- */
.pv__all {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 calc(var(--pad) * -1);
  padding: 18vh var(--pad) 0;
  background: var(--dark);
  color: #ededed;
  text-align: center;
  clip-path: polygon(0 120px, 100% 0, 100% 100%, 0 100%);
}
.pv__all h2 { color: #fff; }
.pv__all > p { max-width: 320px; color: #9a9a9a; }
.pv__all-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; width: min(1040px, 100%); margin-top: 12vh; text-align: left; }
.pv__all-cols .mono { font-size: 10px; }
.pv__all-cols ul { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.pv__all-cols li { display: flex; gap: 8px; font-size: 13.5px; line-height: 1.35; color: #e6e6e6; }
.pv__all-cols em { display: block; font-style: normal; color: #7d7d7d; font-size: 12px; }
.pv__all-cols li > span { flex: 1; }
.pv__next {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin-top: 18vh;
  padding: 9vh 0 11vh;
  border-top: 1px dashed #323a2c;
  color: #fff;
}
.pv__next .mono { font-size: 10px; color: #8a8a8a; }
.pv__next b { display: flex; align-items: center; gap: 18px; font-size: clamp(38px, 5vw, 84px); font-weight: 400; letter-spacing: -0.05em; transition: color .3s, gap .5s var(--ease); }
.pv__next b .ic { font-size: .6em; stroke-width: 1.2; }
.pv__next:hover b { color: var(--accent); gap: 30px; }

/* --- Scroll-in reveals inside the panel --- */
.pv__cols li, .pv__tile { opacity: 0; translate: 0 26px; transition: opacity .8s, translate 1s var(--ease); }
.pv__cols li.is-in, .pv__tile.is-in { opacity: 1; translate: 0 0; }
.pv__tile:nth-child(2) { transition-delay: .08s; }
.pv__tile:nth-child(3) { transition-delay: .16s; }
.pv__tile:nth-child(4) { transition-delay: .24s; }

/* =========================================================
   Curtain between page and preview
   ========================================================= */
.curtain {
  position: fixed;
  inset: var(--inset);
  z-index: 130;
  display: none;
  overflow: hidden;
  --cut: var(--bevel);
  pointer-events: none;
}
.curtain__panel {
  --top: 50%;
  --bot: 0%;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--dark);
  /* a chevron wipe: --top and --bot are how far each pointed edge rises into the panel */
  clip-path: polygon(0 var(--top), 50% 0, 100% var(--top), 100% calc(100% - var(--bot)), 50% 100%, 0 calc(100% - var(--bot)));
}
.curtain__mark { width: 56px; height: 56px; overflow: visible; }

/* First load: the curtain doubles as the loader, up from the first paint */
.is-loading, .is-loading body { overflow: hidden; }
.is-loading .curtain { display: block; --cut: var(--bevel-hero); }
.is-loading .curtain__panel { --top: 0%; background: var(--bg-outer); }   /* the frame's colour, so it reads as one screen */
.curtain__load { display: none; position: absolute; inset: 0; pointer-events: none; }
.is-loading .curtain__load { display: block; }
.curtain__brand { position: absolute; left: var(--pad); top: var(--pad); font-size: 11px; color: #8d8d8d; }
.curtain__count { position: absolute; left: calc(var(--pad) - .06em); bottom: calc(var(--pad) - .12em); font-size: clamp(72px, 10vw, 160px); font-weight: 300; line-height: .8; letter-spacing: -0.06em; color: var(--accent); font-variant-numeric: tabular-nums; }
.curtain__note { position: absolute; right: var(--pad); bottom: var(--pad); font-size: 11px; color: #8d8d8d; }
.curtain__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .pv__top { grid-template-columns: 1fr; gap: 36px; min-height: 0; }
  .pv__gal { min-height: 0; }
  .pv__stage { aspect-ratio: 1.3; }
  .pv__cols { grid-template-columns: 1fr; gap: 50px; }
  .pv__tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pv__all-cols { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 600px) {
  .pv__page { padding-top: calc(var(--pad) + 40px); }
  .pv__tools { padding-right: 0; }
  .pv__meta { position: static; grid-column: 1 / -1; }
  .pv__slide { width: 90%; }
  .pv__facts li { width: 33.33%; height: 92px; }
  .pv__facts b { font-size: 19px; }
  .pv__feat { grid-template-columns: 1fr; }
  .pv__tile { aspect-ratio: auto; padding: 24px 14px; }
}

/* Bevels, as in style.css */
.pv, .curtain, .pv__close, .pv__gal, .pv__tools span, .pv__btn, .pv__chips, .pv__chips span {
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
