/* ============================================
   SMITHDIGITAL — Portfolio Page
   Full-page scroll · Liquid glass screens
   ============================================ */

/* ── LOCK THE PAGE ──
   All scrolling is handled by JS — prevent native scroll */
html.portfolio-page,
.portfolio-page {
  overflow: hidden;
  height: 100dvh;
}

/* ────────────────────────────────────────
   ANIMATED BACKGROUND
───────────────────────────────────────── */
.pf-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: #06101f; /* overridden per-slide by JS */
  transition: background-color 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Radial glow — accent colour behind the glass screen */
.pf-bg__glow {
  position: absolute;
  inset: 0;
  transition: background 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

/* Subtle noise grain over the background */
.pf-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.5;
}

/* ────────────────────────────────────────
   NAV OVERRIDES
   Portfolio bgs are always dark — keep nav white throughout
───────────────────────────────────────── */
.portfolio-page .nav-bg            { display: none !important; }
.portfolio-page .nav--scrolled     { background: transparent !important; box-shadow: none !important; }
.portfolio-page .nav__link         { color: rgba(255,255,255,0.65); }
.portfolio-page .nav__link:hover   { color: #fff; }
.portfolio-page .nav__logo-smith,
.portfolio-page .nav__logo-digital { color: #fff !important; }
.portfolio-page .nav__toggle span  { background: #fff !important; }

/* Mobile menu on portfolio — dark themed to match slides */
.portfolio-page .nav__links--open {
  background: rgba(6, 10, 20, 0.97) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.portfolio-page .nav__links--open .nav__link {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* ────────────────────────────────────────
   SLIDE SYSTEM
───────────────────────────────────────── */
.pf-track {
  position: fixed;
  inset: 0;
  z-index: 2;
}

.pf-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  align-items: center;
  column-gap: clamp(2rem, 4vw, 5rem);
  padding: 0 clamp(2rem, 5vw, 7rem);
  /* Default: below viewport, invisible */
  transform: translateY(100vh);
  opacity: 0;
  pointer-events: none;
  /* Cinematic ease — fast in, slow out */
  transition: transform 0.85s cubic-bezier(0.77, 0, 0.175, 1),
              opacity 0.15s ease;
  will-change: transform;
}

/* Active slide: fully visible */
.pf-slide.is-active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ────────────────────────────────────────
   INTRO / LANDING SLIDE
───────────────────────────────────────── */

/* Override the two-column project grid */
.pf-slide--intro {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--nav-h) 2rem 2rem;
}

.pf-intro {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* Site-style grid overlay — matches home page .site-bg::before */
.pf-intro::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.pf-intro__content {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 780px;
}

/* Stagger children in on entrance — same pattern as .pf-info */
.pf-intro__content > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.pf-slide--intro.is-active .pf-intro__content > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.30s; }
.pf-slide--intro.is-active .pf-intro__content > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.48s; }
.pf-slide--intro.is-active .pf-intro__content > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.62s; }
.pf-slide--intro.is-active .pf-intro__content > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.78s; }

/* Label — mirrors .hero__label */
.pf-intro__label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(168, 199, 255, 0.7);
  margin-bottom: 2rem;
}

.pf-intro__label-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3b6fd4;
  box-shadow: 0 0 8px rgba(59, 111, 212, 0.8);
  animation: label-dot-pulse 2.4s ease-in-out infinite;
}

@keyframes label-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}

/* Headline */
.pf-intro__headline {
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.92;
  color: #fff;
  margin-bottom: 1.75rem;
}

.pf-intro__headline-line {
  display: block;
  color: #fff;
}

.pf-intro__headline-accent {
  display: block;
  background: linear-gradient(125deg, #a8c7ff 0%, #3b6fd4 50%, #7eb8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Sub */
.pf-intro__sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.65;
  margin-bottom: 3rem;
}

/* Animated scroll indicator */
.pf-intro__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.pf-intro__scroll-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
}

.pf-intro__scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.pf-intro__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(168, 199, 255, 0.8);
  animation: intro-scroll-line 2s ease-in-out infinite;
}

@keyframes intro-scroll-line {
  0%   { top: -100%; }
  100% { top: 200%; }
}

/* ────────────────────────────────────────
   PROJECT INFO  (left column)
───────────────────────────────────────── */
.pf-info {
  position: relative;
  z-index: 1;
  /* Stagger children on entrance */
}

.pf-info > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.pf-slide.is-active .pf-info > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.25s; }
.pf-slide.is-active .pf-info > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.35s; }
.pf-slide.is-active .pf-info > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.45s; }
.pf-slide.is-active .pf-info > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.55s; }
.pf-slide.is-active .pf-info > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.62s; }

.pf-info__number {
  display: none;
}

.pf-info__tags {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}

.pf-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(6px);
}

.pf-info__title {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 1rem;
}

/* Title accent — glowing red for "Den" in Dominators Den */
.pf-info__title-accent {
  color: #dc2626;
  text-shadow: 0 0 20px rgba(220, 38, 38, 0.8), 0 0 40px rgba(220, 38, 38, 0.4);
}

.pf-info__desc {
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  color: rgba(255,255,255,0.5);
  line-height: 1.75;
  max-width: 360px;
  margin-bottom: 2.25rem;
}

.pf-info__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
  padding: 0.9rem 1.75rem;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(12px);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.3s cubic-bezier(0.22,1,0.36,1);
  text-decoration: none;
  white-space: nowrap;
}

.pf-info__link:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.38);
  transform: translateX(5px);
}

/* ────────────────────────────────────────
   LIQUID GLASS SCREEN  (right column)
───────────────────────────────────────── */
.pf-screen {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Subtle entrance animation handled by slide transition */
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition: opacity 0.6s ease 0.2s, transform 0.75s cubic-bezier(0.22,1,0.36,1) 0.2s;
}

.pf-slide.is-active .pf-screen {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.pf-screen__glass {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  position: relative;

  /* ── The liquid glass ── */
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(28px) saturate(180%) brightness(112%);
  -webkit-backdrop-filter: blur(28px) saturate(180%) brightness(112%);

  /* Multi-layer border: bright top edge, subtle sides, dark bottom */
  border: 1px solid rgba(255, 255, 255, 0.2);

  /* Multi-layer shadow for depth */
  box-shadow:
    0 48px 96px rgba(0, 0, 0, 0.55),
    0 16px 40px rgba(0, 0, 0, 0.3),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.55),  /* top highlight */
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),          /* bottom shadow */
    inset 1px 0 0 rgba(255, 255, 255, 0.1),       /* left edge */
    inset -1px 0 0 rgba(0, 0, 0, 0.1);            /* right edge */
}

/* Top-half specular gloss — simulates light reflection on thick glass */
.pf-screen__glass::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 48%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.11) 0%,
    rgba(255, 255, 255, 0.03) 60%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 5;
  border-radius: 18px 18px 0 0;
}

/* Slowly drifting light shimmer — gives the "liquid" quality */
.pf-screen__glass::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    transparent 20%,
    rgba(255, 255, 255, 0.04) 40%,
    rgba(255, 255, 255, 0.09) 50%,
    rgba(255, 255, 255, 0.04) 60%,
    transparent 80%
  );
  background-size: 300% 300%;
  animation: glass-drift 9s ease-in-out infinite;
  pointer-events: none;
  z-index: 4;
}

@keyframes glass-drift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

/* ── Browser chrome inside glass ── */
.pf-screen__browser-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: rgba(0, 0, 0, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 6; /* above the gloss overlays */
}

.pf-screen__dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.pf-screen__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.pf-screen__dot--red    { background: #ff5f57; }
.pf-screen__dot--yellow { background: #ffbd2e; }
.pf-screen__dot--green  { background: #28ca41; }

.pf-screen__url-bar {
  flex: 1;
  height: 24px;
  background: rgba(255, 255, 255, 0.09);
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.01em;
  font-family: ui-monospace, monospace;
}

/* ── Screenshot viewport ── */
.pf-screen__viewport {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  z-index: 3;
}

/* ────────────────────────────────────────
   WEBSITE MOCKUPS  (pure CSS mini-sites)
───────────────────────────────────────── */
.pf-mock {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* ── Shared building blocks ── */
.pfm__header {
  height: 28px;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  flex-shrink: 0;
}

.pfm__logo-bar {
  width: 56px;
  height: 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.8);
}
.pfm__logo-bar--dark   { background: rgba(15, 25, 60, 0.75); }
.pfm__logo-bar--amber  { background: #fbbf24; }
.pfm__logo-bar--purple { background: #a78bfa; }
.pfm__logo-bar--red    { background: #dc2626; }

.pfm__nav-links {
  display: flex;
  gap: 5px;
}
.pfm__nav-links span {
  width: 22px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.35);
  display: block;
}
.pfm__nav-links--dark span {
  background: rgba(15, 25, 60, 0.25);
}

.pfm__hero {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  padding: 14px;
}

.pfm__hero-content {
  position: relative;
  z-index: 1;
}

.pfm__h1 {
  height: 13px;
  width: 68%;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.85);
  margin-bottom: 7px;
}
.pfm__h1--thin  { width: 45%; height: 10px; opacity: 0.55; }
.pfm__h1--lg    { width: 72%; height: 15px; margin-bottom: 8px; }
.pfm__h1--dark  { background: rgba(15, 25, 60, 0.8); }
.pfm__h1--gradient {
  background: linear-gradient(90deg, #a78bfa, #60a5fa);
  width: 60%;
}

.pfm__sub {
  height: 6px;
  width: 52%;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.4);
  margin-bottom: 12px;
}
.pfm__sub--dark { background: rgba(15, 25, 60, 0.3); }
.pfm__sub--sm   { width: 38%; height: 5px; background: rgba(255, 255, 255, 0.35); }

.pfm__btn {
  height: 22px;
  width: 90px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
  display: inline-block;
}
.pfm__btn--glow {
  background: linear-gradient(90deg, #8b5cf6, #6366f1);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.6);
  width: 80px;
}

/* ── Mock 1: Dominators Den ── */
.pf-mock--dom {
  background: #080808;
}
.pf-mock--dom .pfm__header {
  background: #0d0d0d;
  border-bottom: 1px solid rgba(220, 38, 38, 0.2);
}
.pf-mock--dom .pfm__nav-links span {
  background: rgba(255, 255, 255, 0.18);
}
.pf-mock--dom .pfm__hero {
  background: #080808;
}
/* Diagonal red glow on the right side — gives the aggressive gym feel */
.pf-mock--dom .pfm__hero::before {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 42%;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.12) 0%, rgba(180, 20, 20, 0.32) 100%);
  clip-path: polygon(18% 0%, 100% 0%, 100% 100%, 0% 100%);
}
/* Thin vertical red slash — combat/athletic feel */
.pf-mock--dom .pfm__hero::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  right: calc(42% - 2px);
  width: 2px;
  background: #dc2626;
  opacity: 0.7;
}
.pf-mock--dom .pfm__h1    { background: rgba(255, 255, 255, 0.88); }
.pf-mock--dom .pfm__sub   { background: rgba(255, 255, 255, 0.22); }

/* Stats row */
.pfm__stats {
  display: flex;
  flex-shrink: 0;
}
.pfm__stat {
  flex: 1;
  padding: 8px 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}
.pfm__stat:last-child { border-right: none; }
.pfm__stat-num {
  height: 10px;
  width: 45%;
  border-radius: 2px;
  background: #0f1e3d;
  margin-bottom: 5px;
}
.pfm__stat-label {
  height: 5px;
  width: 65%;
  border-radius: 2px;
  background: rgba(15, 30, 61, 0.25);
}

/* Dominators Den stat bar overrides */
.pfm__stats--dom {
  border-top: 1px solid rgba(220, 38, 38, 0.18);
}
.pfm__stats--dom .pfm__stat {
  background: #0d0303;
  border-top: none;
  border-right: 1px solid rgba(220, 38, 38, 0.12);
}
.pfm__stats--dom .pfm__stat:last-child { border-right: none; }
.pfm__stats--dom .pfm__stat-num   { background: #dc2626; opacity: 0.85; }
.pfm__stats--dom .pfm__stat-label { background: rgba(255, 255, 255, 0.12); }

/* ── Mock 2: Bloom Botanics ── */
.pf-mock--bloom {
  background: #faf7f2;
}
.pf-mock--bloom .pfm__header {
  background: #faf7f2;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.pfm__hero--bloom {
  background: #d4e8d0;
  padding: 0;
}
.pfm__hero-split {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
}
.pfm__hero-text {
  flex: 1;
  padding: 16px;
}
.pfm__hero-image {
  width: 42%;
  height: 100%;
  flex-shrink: 0;
}
.pfm__hero-image--bloom {
  background: linear-gradient(160deg, #7aad72 0%, #4e8a44 100%);
  position: relative;
}
.pfm__hero-image--bloom::after {
  content: '';
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 55%;
  height: 55%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.pfm__product-row {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  background: #faf7f2;
  flex-shrink: 0;
}
.pfm__product {
  flex: 1;
  aspect-ratio: 1;
  border-radius: 6px;
  background: #e8f0e5;
}
.pfm__product:nth-child(2) { background: #cee0ca; }
.pfm__product:nth-child(3) { background: #d8e8d4; }
.pfm__product:nth-child(4) { background: #e0eedc; }

/* ── Mock 3: Volta Coffee ── */
.pf-mock--volta {
  background: #120805;
}
.pf-mock--volta .pfm__header {
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.pfm__hero--volta {
  background: #120805;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  position: relative;
}
.pfm__volta-ring {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 1.5px solid rgba(251, 191, 36, 0.2);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.pfm__volta-ring::before {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px solid rgba(251, 191, 36, 0.12);
}
.pfm__hero-content--center {
  text-align: center;
  position: relative;
  z-index: 1;
}
.pfm__hero-content--center .pfm__h1--lg {
  margin: 0 auto 6px;
  background: rgba(251, 191, 36, 0.8);
}
.pfm__hero-content--center .pfm__sub--sm {
  margin: 0 auto;
}

.pfm__coffee-strip {
  display: flex;
  height: 42px;
  flex-shrink: 0;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.pfm__coffee-item {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border-right: 1px solid rgba(255,255,255,0.06);
}
.pfm__coffee-item--wide { flex: 1.5; border-right: none; }
.pfm__coffee-item:nth-child(2) { background: rgba(251,191,36,0.06); }

/* ── Mock 4: Cipher Studio ── */
.pf-mock--cipher {
  background: #0b0615;
}
.pf-mock--cipher .pfm__header {
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.pfm__hero--cipher {
  background: linear-gradient(135deg, #0b0615 0%, #150d28 60%, #0d0b20 100%);
  flex: 1;
  display: flex;
  align-items: center;
  padding: 14px;
  position: relative;
}
.pfm__cipher-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
}

.pfm__dark-cards {
  display: flex;
  gap: 5px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.pfm__dark-card {
  flex: 1;
  height: 30px;
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
}
.pfm__dark-card:nth-child(1) { border-top: 2px solid #8b5cf6; }
.pfm__dark-card:nth-child(2) { border-top: 2px solid #6366f1; }
.pfm__dark-card:nth-child(3) { border-top: 2px solid #60a5fa; }

/* ────────────────────────────────────────
   DOT NAVIGATION  (right side, vertical)
───────────────────────────────────────── */
.pf-dots {
  position: fixed;
  right: clamp(1.5rem, 3vw, 3rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  transition: opacity 0.4s ease;
}

.pf-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.3s ease;
  font-size: 0;
  color: transparent;
  text-indent: -9999px;
  overflow: hidden;
}

.pf-dot::before,
.pf-dot::after {
  display: none;
}

.pf-dot:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.3);
}

.pf-dot.is-active {
  background: #fff;
  transform: scale(1.5);
}

/* ────────────────────────────────────────
   SCROLL HINT  (bottom centre, fades after first scroll)
───────────────────────────────────────── */
.pf-hint {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  transition: opacity 0.4s ease;
}

.pf-hint.is-gone {
  opacity: 0;
  pointer-events: none;
}

.pf-hint__text {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.pf-hint__line {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.pf-hint__line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  animation: hint-line 1.8s ease-in-out infinite;
}

@keyframes hint-line {
  0%   { top: -100%; }
  100% { top: 200%; }
}

/* ────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 1024px) {
  .pf-slide {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    align-content: center;
    gap: 1.75rem;
    padding: calc(var(--nav-h) + 1rem) 2rem 2rem;
    overflow-y: auto;
  }

  /* Stack: glass screen on top, info below */
  .pf-screen { order: -1; }

  .pf-screen__glass { max-width: 520px; margin: 0 auto; }

  .pf-info__title { font-size: clamp(1.8rem, 6vw, 2.6rem); }
  .pf-info__desc  { max-width: 480px; }

  /* Dots move to bottom on tablet */
  .pf-dots {
    right: auto;
    bottom: 1.5rem;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
    gap: 10px;
  }
  .pf-dot { width: 8px; height: 8px; }
  .pf-dot.is-active { width: 24px; height: 8px; border-radius: 4px; }
}

@media (max-width: 640px) {
  .pf-slide {
    padding: calc(var(--nav-h) + 0.5rem) 1.25rem 5rem;
    gap: 1.25rem;
  }

  .pf-info__number { font-size: 0.75rem; margin-bottom: 0.5rem; }

  .pf-info__tags { gap: 0.4rem; margin-bottom: 0.75rem; }
  .pf-tag { font-size: 0.7rem; padding: 0.2rem 0.6rem; }

  .pf-info__title { font-size: clamp(1.6rem, 8vw, 2rem); margin-bottom: 0.75rem; }

  .pf-info__desc { font-size: 0.875rem; margin-bottom: 1rem; }

  .pf-screen__browser-bar { padding: 0.5rem 0.75rem; gap: 0.5rem; }

  .pf-screen__glass {
    max-width: 100%;
    border-radius: 12px;
  }

  .pf-hint { display: none; }
}

@media (max-width: 400px) {
  .pf-info__title { font-size: 1.6rem; }

  .pf-dots { bottom: 1rem; }
}

/* ── Intro slide responsive ── */
@media (max-width: 640px) {
  .pf-slide--intro { padding: var(--nav-h) 1.5rem 2rem; }
  .pf-intro__headline { font-size: clamp(2.8rem, 12vw, 4rem); }
  .pf-intro__sub { font-size: 0.95rem; margin-bottom: 2rem; }
  .pf-intro__label { font-size: 0.7rem; margin-bottom: 1.5rem; }
}
