/* ─── PROJECT PAGE ──────────────────────────────────── */

/* scroll progress bar (novel addition) */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 250;
  height: 1px; background: transparent; pointer-events: none;
}
.scroll-progress__bar {
  height: 100%; background: var(--accent);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform .1s linear;
}

/* hero */
.ph {
  position: relative; height: 100vh; min-height: 640px;
  display: flex; align-items: flex-end; overflow: hidden;
}
.ph-bg { position: absolute; inset: 0; z-index: 0; }
.ph[data-hue="warm"]   .ph-bg { background: linear-gradient(155deg,#1e1208 0%,#301d0b 28%,#100a05 62%,#080808 100%); }
.ph[data-hue="cool"]   .ph-bg { background: linear-gradient(155deg,#081020 0%,#0d2035 28%,#06090e 62%,#080808 100%); }
.ph[data-hue="green"]  .ph-bg { background: linear-gradient(155deg,#0e1a06 0%,#1c3009 28%,#090f06 62%,#080808 100%); }
.ph[data-hue="red"]    .ph-bg { background: linear-gradient(155deg,#1a0808 0%,#2e1010 28%,#0f0808 62%,#080808 100%); }
.ph[data-hue="violet"] .ph-bg { background: linear-gradient(155deg,#130818 0%,#22103a 28%,#0b070f 62%,#080808 100%); }
.ph-bg::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
  background-size: 320px;
}
.ph-bg::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(8,8,8,.95) 0%, rgba(8,8,8,.5) 32%, transparent 62%),
    radial-gradient(ellipse 55% 50% at 18% 76%, rgba(255,109,41,.08), transparent 65%);
}
.ph-slot {
  position: absolute; inset: 0; z-index: 0; --slot-bg: transparent;
  display: block; width: 100%; height: 100%;
}
.ph-content {
  position: relative; z-index: 2;
  padding: 0 var(--g) 11vh; width: 100%;
}
.ph-eye {
  display: inline-flex; align-items: center; gap: 14px; margin-bottom: 22px;
  font-size: 9px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
}
.ph-eye::before { content: ''; display: block; width: 26px; height: .5px; background: var(--accent); }
.ph-title {
  font-size: clamp(3.6rem, 10vw, 11rem);
  font-weight: var(--display-weight);
  line-height: .92; letter-spacing: -.038em;
  color: var(--white);
  max-width: 12ch;
  margin-bottom: 28px;
  text-wrap: balance;
}
.ph-exc {
  font-size: clamp(.95rem, 1.3vw, 1.1rem);
  color: rgba(186,186,186,.65);
  line-height: 1.72; max-width: 52ch;
}

.ph-meta {
  position: absolute; right: var(--g); bottom: 11vh; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-end; gap: 14px;
  text-align: right;
}
.ph-meta-num {
  font-size: clamp(2.4rem, 4.4vw, 4.4rem);
  font-weight: 200;
  color: rgba(255,255,255,.75);
  letter-spacing: -.03em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ph-meta-tot { font-size: 10px; color: rgba(186,186,186,.32); letter-spacing: .12em; text-transform: uppercase; }

/* body */
.pb { max-width: 820px; padding: 12vh var(--g); margin: 0 auto; }
.pb h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 400;
  color: var(--white);
  letter-spacing: -.02em;
  margin: 8vh 0 2.6vh;
  text-wrap: balance;
}
.pb h2:first-child { margin-top: 0; }
.pb p {
  font-size: 15.5px; color: rgba(186,186,186,.66);
  line-height: 1.82; margin-bottom: 24px;
  max-width: 60ch;
}
.pb strong { color: var(--white); font-weight: 500; }
.pb em { color: var(--accent); }

/* placeholder image block */
.pb-img {
  width: 100%; margin: 6vh 0;
  aspect-ratio: 16/9;
  background: #141414;
  border: .5px solid rgba(186,186,186,.08);
  position: relative; overflow: hidden;
}
.pb-img-slot {
  position: absolute; inset: 0; --slot-bg: #141414;
  display: block; width: 100%; height: 100%;
}
.pb-img-stripe {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.02) 0 1px, transparent 1px 22px);
}
.pb-img-cap {
  position: absolute; bottom: 14px; left: 16px;
  font-family: ui-monospace, 'JetBrains Mono', SF Mono, Consolas, monospace;
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(186,186,186,.32);
}

/* mockup section */
.mock { background: #0f0f0f; padding: 10vh 0; border-top: .5px solid rgba(186,186,186,.06); }
.mock-label {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 9px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
  padding: 0 var(--g); margin-bottom: 5vh;
}
.mock-label::before { content: ''; display: block; width: 26px; height: .5px; background: var(--accent); }
.mock-frame {
  margin: 0 var(--g);
  background: #0e0e0e; border: .5px solid rgba(186,186,186,.08);
  border-radius: 10px 10px 0 0;
  padding: 18px 18px 0;
  max-width: 1200px; margin-left: auto; margin-right: auto;
}
.mock-dots { display: flex; gap: 6px; margin-bottom: 14px; }
.mock-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(69,48,39,.7);
}
.mock-dot:nth-child(1) { background: #ff5f57; opacity: .7; }
.mock-dot:nth-child(2) { background: #febc2e; opacity: .7; }
.mock-dot:nth-child(3) { background: #28c840; opacity: .7; }
.mock-win {
  width: 100%; height: 540px;
  background: #f5f5f2;
  border-radius: 4px 4px 0 0;
  overflow: hidden;
  position: relative;
}
.mock-iframe { width: 100%; height: 100%; border: 0; display: block; }
.mock-bar {
  height: 38px; background: #fff; border-bottom: 1px solid #e5e5e0;
  display: flex; align-items: center; padding: 0 14px; gap: 10px;
}
.mock-bar-url {
  flex: 1; height: 22px; border-radius: 4px; background: #f0efea;
  font: 11px ui-monospace, monospace; color: #999;
  display: flex; align-items: center; padding: 0 12px;
}
.mock-loading {
  position: absolute; inset: 38px 0 0; background: linear-gradient(145deg,#f5f5f2,#ebeae4);
  display: flex; align-items: center; justify-content: center;
  font: 10px ui-monospace, monospace; color: #888; letter-spacing: .14em; text-transform: uppercase;
}

/* prev/next */
.pn {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: .5px solid rgba(186,186,186,.1);
}
.pn-item {
  padding: 7vh var(--g);
  display: flex; flex-direction: column; gap: 14px;
  cursor: pointer;
  transition: background .25s ease;
  position: relative;
}
.pn-item:first-child { border-right: .5px solid rgba(186,186,186,.1); }
.pn-item:hover { background: rgba(255,255,255,.025); }
.pn-label {
  font-size: 9px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
}
.pn-title {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: var(--display-weight);
  color: rgba(255,255,255,.7);
  letter-spacing: -.022em; line-height: 1.04;
  transition: color var(--dur-fast) ease;
  text-wrap: balance;
}
.pn-item:hover .pn-title { color: var(--white); }
.pn-arrow {
  font-size: 1.2rem; color: rgba(186,186,186,.32);
  margin-top: 12px;
  transition: transform .3s var(--ease-out-expo), color var(--dur-fast) ease;
}
.pn-next { align-items: flex-end; text-align: right; }
.pn-item:first-child:hover .pn-arrow { transform: translateX(-6px); color: var(--accent); }
.pn-next:hover .pn-arrow             { transform: translateX(6px);  color: var(--accent); }

/* mobile */
@media (max-width: 720px) {
  .ph-meta { display: none; }
  .ph-content { padding-bottom: 9vh; }
  .pn { grid-template-columns: 1fr; }
  .pn-item:first-child { border-right: 0; border-bottom: .5px solid rgba(186,186,186,.1); }
  .pn-next { align-items: flex-start; text-align: left; }
  .mock-win { height: 360px; }
}
