/* =========================================================
   Websites Portfolio — Variant 3: CINEMATIC REEL
   Full-bleed snap-scroll · floating device frame · accent palette
   ========================================================= */

/* Scope snap to this page only (this CSS only loads here) */
html {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.wp3-reel {
  position: relative;
}

/* ---------- Snap sections ---------- */
.wp3-snap {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  padding: 6rem 1.5rem 3rem;
  isolation: isolate;
}

/* ---------- Intro section ---------- */
.wp3-intro {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(255, 77, 77, 0.18), transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(99, 102, 241, 0.18), transparent 55%),
    radial-gradient(ellipse at 50% 50%, rgba(6, 182, 212, 0.1), transparent 70%);
}

.wp3-grid-floor {
  position: absolute;
  inset: 50% -20% -10% -20%;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 77, 77, 0.16) 1px, transparent 1px);
  background-size: 60px 60px, 60px 60px;
  transform: perspective(700px) rotateX(60deg);
  transform-origin: 50% 0%;
  mask-image: linear-gradient(to bottom, black 30%, transparent 95%);
  -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 95%);
  animation: wp3-floor 12s linear infinite;
  z-index: -1;
}

@keyframes wp3-floor {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 0 60px, 60px 0; }
}

.wp3-scanline {
  position: absolute;
  inset-inline: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.7), transparent);
  filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.7));
  animation: wp3-scan 7s ease-in-out infinite;
  opacity: 0.55;
  z-index: -1;
}

@keyframes wp3-scan {
  0%   { top: 0%;   opacity: 0; }
  10%  { opacity: 0.6; }
  50%  { top: 100%; opacity: 0.6; }
  60%  { opacity: 0; }
  100% { top: 100%; opacity: 0; }
}

.wp3-stars {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1px 1px at 80% 22%, rgba(255, 255, 255, 0.55), transparent 60%),
    radial-gradient(1.5px 1.5px at 35% 55%, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(1px 1px at 60% 80%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1px 1px at 90% 65%, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 25% 75%, rgba(255, 255, 255, 0.65), transparent 60%),
    radial-gradient(1px 1px at 50% 30%, rgba(255, 255, 255, 0.5), transparent 60%);
  opacity: 0.6;
  animation: wp3-twinkle 8s ease-in-out infinite;
}

@keyframes wp3-twinkle {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 0.75; }
}

.wp3-intro-inner {
  position: relative;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.wp3-eyebrow {
  display: inline-block;
  font-family: var(--font-display, 'Rajdhani'), sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  color: var(--accent-cyan, #06b6d4);
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0.85;
}

.wp3-intro-title {
  position: relative;
  font-family: var(--font-display, 'Rajdhani'), sans-serif;
  font-size: clamp(2.6rem, 8vw, 6.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 1.2rem;
}

.wp3-intro-title > span {
  background: linear-gradient(135deg, #ff4d4d 0%, #ec4899 30%, #8b5cf6 60%, #06b6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.35));
}

.wp3-intro-title::before,
.wp3-intro-title::after {
  content: attr(data-glitch);
  position: absolute;
  inset: 0;
  pointer-events: none;
  text-transform: uppercase;
  mix-blend-mode: screen;
}

.wp3-intro-title::before {
  color: rgba(255, 77, 77, 0.85);
  transform: translate(-2px, 0);
  clip-path: inset(0 0 60% 0);
  animation: wp3-glitchA 4.2s steps(1) infinite;
}

.wp3-intro-title::after {
  color: rgba(6, 182, 212, 0.85);
  transform: translate(2px, 0);
  clip-path: inset(60% 0 0 0);
  animation: wp3-glitchB 4.2s steps(1) infinite;
}

@keyframes wp3-glitchA {
  0%, 92%, 100% { clip-path: inset(0 0 100% 0); transform: translate(-2px, 0); }
  93%           { clip-path: inset(0 0 60% 0); transform: translate(-3px, 1px); }
  95%           { clip-path: inset(40% 0 30% 0); transform: translate(-1px, -1px); }
  97%           { clip-path: inset(70% 0 5% 0); transform: translate(-2px, 0); }
}

@keyframes wp3-glitchB {
  0%, 92%, 100% { clip-path: inset(100% 0 0 0); transform: translate(2px, 0); }
  93%           { clip-path: inset(60% 0 0 0); transform: translate(3px, -1px); }
  95%           { clip-path: inset(20% 0 50% 0); transform: translate(1px, 1px); }
  97%           { clip-path: inset(5% 0 70% 0); transform: translate(2px, 0); }
}

.wp3-intro-sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--text-secondary, #94a3b8);
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.wp3-intro-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.9rem 1.6rem;
  background: var(--glass-bg, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
  border-radius: 999px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.wp3-intro-stat strong {
  font-family: var(--font-display, 'Rajdhani'), sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ff4d4d, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}

.wp3-intro-stat span {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--text-secondary, #94a3b8);
  text-transform: uppercase;
}

/* Scroll cue */
.wp3-scroll-cue {
  position: absolute;
  inset-block-end: 2rem;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary, #94a3b8);
  font-family: var(--font-display, 'Rajdhani'), sans-serif;
  letter-spacing: 0.3em;
  font-size: 0.7rem;
  text-transform: uppercase;
  transition: opacity 0.4s ease;
}

.wp3-scroll-cue.is-hidden { opacity: 0; pointer-events: none; }

.wp3-cue-line {
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, var(--accent-cyan, #06b6d4), transparent);
  animation: wp3-cue 1.6s ease-in-out infinite;
  transform-origin: top;
}

@keyframes wp3-cue {
  0%, 100% { transform: scaleY(0.3); opacity: 0.4; }
  50%      { transform: scaleY(1);   opacity: 1;   }
}

.wp3-scroll-cue i {
  font-size: 1rem;
  animation: wp3-cue-bounce 1.6s ease-in-out infinite;
}

@keyframes wp3-cue-bounce {
  0%, 100% { transform: translateY(0);   opacity: 0.6; }
  50%      { transform: translateY(4px); opacity: 1;   }
}

/* ---------- Site sections ---------- */
.wp3-site {
  background: var(--bg-color, #0f172a);
}

.wp3-bg {
  position: absolute;
  inset: -40px;
  background-size: cover;
  background-position: center;
  filter: blur(50px) brightness(0.32) saturate(1.3);
  transform: scale(1.15);
  transition: transform 1.8s cubic-bezier(0.2, 0.8, 0.2, 1), filter 1s ease;
  z-index: -2;
}

.wp3-snap.is-active .wp3-bg {
  transform: scale(1);
  filter: blur(40px) brightness(0.4) saturate(1.4);
}

.wp3-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(2, 6, 23, 0.85) 100%);
  z-index: -1;
}

.wp3-accent-line {
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--wp3-accent), transparent);
  filter: drop-shadow(0 0 10px var(--wp3-accent));
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 0.8s ease 0.2s, transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s;
}

/* Per-website scanning bar — accent-colored, only animates on the active section */
.wp3-site-scan {
  position: absolute;
  inset-inline: 0;
  height: 2px;
  top: 0%;
  background: linear-gradient(90deg, transparent, var(--wp3-accent, #06b6d4), transparent);
  filter: drop-shadow(0 0 10px var(--wp3-accent, #06b6d4));
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.wp3-snap.is-active .wp3-site-scan {
  animation: wp3-scan 6s ease-in-out 1.2s infinite;
}

.wp3-snap.is-active .wp3-accent-line {
  opacity: 0.9;
  transform: scaleX(1);
}

/* Content layout */
.wp3-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
}

.wp3-numwrap {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease 0.3s, transform 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s;
}

.wp3-snap.is-active .wp3-numwrap {
  opacity: 1;
  transform: translateY(0);
}

.wp3-num {
  position: relative;
  font-family: var(--font-display, 'Rajdhani'), sans-serif;
  font-size: clamp(5rem, 14vw, 14rem);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--wp3-accent), white 60%, var(--wp3-accent));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 24px var(--wp3-accent));
  font-variant-numeric: tabular-nums;
}

.wp3-num::before,
.wp3-num::after {
  content: attr(data-glitch);
  position: absolute;
  inset: 0;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
  -webkit-text-fill-color: var(--wp3-accent);
  mix-blend-mode: screen;
}

.wp3-num::before {
  transform: translate(-3px, 0);
  clip-path: inset(0 0 60% 0);
  opacity: 0.55;
}

.wp3-num::after {
  transform: translate(3px, 0);
  clip-path: inset(60% 0 0 0);
  opacity: 0.55;
}

.wp3-snap.is-active .wp3-num::before { animation: wp3-num-glitchA 4s steps(1) infinite; }
.wp3-snap.is-active .wp3-num::after  { animation: wp3-num-glitchB 4s steps(1) infinite; }

@keyframes wp3-num-glitchA {
  0%, 90%, 100% { transform: translate(-3px, 0); clip-path: inset(0 0 100% 0); }
  91%           { transform: translate(-5px, 1px); clip-path: inset(0 0 50% 0); }
  93%           { transform: translate(-2px, -1px); clip-path: inset(40% 0 30% 0); }
  95%           { transform: translate(-3px, 0); clip-path: inset(70% 0 5% 0); }
}

@keyframes wp3-num-glitchB {
  0%, 90%, 100% { transform: translate(3px, 0); clip-path: inset(100% 0 0 0); }
  91%           { transform: translate(5px, -1px); clip-path: inset(50% 0 0 0); }
  93%           { transform: translate(2px, 1px); clip-path: inset(20% 0 50% 0); }
  95%           { transform: translate(3px, 0); clip-path: inset(5% 0 70% 0); }
}

.wp3-num-label {
  font-family: var(--font-display, 'Rajdhani'), sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  color: var(--text-secondary, #94a3b8);
  text-transform: uppercase;
}

/* Device frame */
.wp3-frame {
  position: relative;
  flex: 0 1 760px;
  max-width: 760px;
  aspect-ratio: 16 / 10;
  background: #1f2937;
  border-radius: 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 6px 24px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
  opacity: 0;
  transform: translateY(60px) scale(0.92);
  transition:
    opacity 0.9s ease 0.4s,
    transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s;
}

.wp3-snap.is-active .wp3-frame {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: wp3-float 6s ease-in-out 2s infinite;
}

@keyframes wp3-float {
  0%, 100% { transform: translateY(0)    scale(1); }
  50%      { transform: translateY(-12px) scale(1); }
}

.wp3-frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding-inline: 12px;
  background: linear-gradient(180deg, #2a3447, #1f2937);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex: 0 0 32px;
}

.wp3-frame-bar > span:nth-child(1),
.wp3-frame-bar > span:nth-child(2),
.wp3-frame-bar > span:nth-child(3) {
  width: 11px; height: 11px; border-radius: 50%;
  flex: 0 0 11px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.wp3-frame-bar > span:nth-child(1) { background: #ff5f57; }
.wp3-frame-bar > span:nth-child(2) { background: #febc2e; }
.wp3-frame-bar > span:nth-child(3) { background: #28c840; }

.wp3-frame-url {
  flex: 1;
  font-style: normal;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.78rem;
  color: rgba(226, 232, 240, 0.78);
  text-align: center;
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 4px 10px;
  margin-inline-start: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.02em;
}

.wp3-frame-screen {
  flex: 1;
  overflow: hidden;
  background: #000;
}

.wp3-frame-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.wp3-frame-glow {
  position: absolute;
  inset: -3px;
  border-radius: 16px;
  background: conic-gradient(from 0deg, var(--wp3-accent), transparent 60%, var(--wp3-accent));
  filter: blur(14px);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.8s ease 0.6s;
}

.wp3-snap.is-active .wp3-frame-glow {
  opacity: 0.65;
  animation: wp3-glow-rot 7s linear infinite;
}

@keyframes wp3-glow-rot {
  to { transform: rotate(360deg); }
}

/* Info panel */
.wp3-info {
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease 0.5s, transform 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s;
}

.wp3-snap.is-active .wp3-info {
  opacity: 1;
  transform: translateY(0);
}

.wp3-info-eyebrow {
  font-family: var(--font-display, 'Rajdhani'), sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.4em;
  color: var(--wp3-accent);
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.wp3-domain {
  font-family: 'Open Sans', sans-serif;
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  font-weight: 600;
  color: var(--text-color, #e2e8f0);
  margin: 0;
  word-break: break-word;
  line-height: 1.3;
}

.wp3-cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--font-display, 'Rajdhani'), sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.92rem;
  text-transform: uppercase;
  color: var(--text-color, #e2e8f0);
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid var(--wp3-accent);
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.wp3-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--wp3-accent);
  transform: translateY(101%);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: -1;
}

.wp3-cta:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--wp3-accent) 45%, transparent);
}

.wp3-cta:hover::before { transform: translateY(0); }

.wp3-cta-arrow {
  transition: transform 0.3s ease;
}

.wp3-cta:hover .wp3-cta-arrow {
  transform: translate(4px, -4px) rotate(-45deg);
}

[dir="rtl"] .wp3-cta-arrow { transform: scaleX(-1); }
[dir="rtl"] .wp3-cta:hover .wp3-cta-arrow {
  transform: scaleX(-1) translate(4px, -4px) rotate(45deg);
}

/* ---------- Vertical rail ---------- */
.wp3-rail {
  position: fixed;
  top: 50%;
  inset-inline-end: 24px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 50;
  pointer-events: auto;
}

.wp3-rail-count {
  font-family: var(--font-display, 'Rajdhani'), sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--text-color, #e2e8f0);
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--glass-bg, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.wp3-rail-count em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 300;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.wp3-rail-cur {
  background: linear-gradient(135deg, #ff4d4d, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.wp3-rail-dots {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-height: 60vh;
  overflow-y: auto;
  padding: 4px 0;
  scrollbar-width: none;
}

.wp3-rail-dots::-webkit-scrollbar { display: none; }

.wp3-rail-dots button {
  width: 9px; height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  flex: 0 0 auto;
}

.wp3-rail-dots button:hover {
  background: rgba(255, 255, 255, 0.45);
  transform: scale(1.3);
}

.wp3-rail-dots button.is-active {
  height: 30px;
  background: linear-gradient(180deg, var(--wp3-accent, #ff4d4d), color-mix(in srgb, var(--wp3-accent, #ff4d4d) 50%, transparent));
  box-shadow: 0 0 12px var(--wp3-accent, #ff4d4d);
}

/* ---------- Empty section ---------- */
.wp3-empty {
  text-align: center;
  color: var(--text-secondary, #94a3b8);
  font-size: 1.1rem;
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .wp3-content {
    flex-direction: column;
    gap: 1.5rem;
  }
  .wp3-numwrap { align-items: center; text-align: center; }
  .wp3-num { font-size: clamp(4rem, 18vw, 7rem); }
  .wp3-frame { max-width: min(90vw, 560px); width: 100%; }
  .wp3-info {
    flex: 0 0 auto;
    width: min(90vw, 560px);
    align-items: center;
    text-align: center;
  }
  .wp3-cta { align-self: center; }
}

@media (max-width: 768px) {
  .wp3-rail {
    top: auto;
    inset-block-end: 1rem;
    inset-inline-end: 50%;
    transform: translateX(50%);
    flex-direction: row-reverse;
    align-items: center;
  }
  [dir="rtl"] .wp3-rail { transform: translateX(-50%); }
  .wp3-rail-dots {
    flex-direction: row;
    max-height: none;
    max-width: 50vw;
    overflow-x: auto;
  }
  .wp3-rail-dots button.is-active {
    height: 9px;
    width: 30px;
    background: linear-gradient(90deg, var(--wp3-accent, #ff4d4d), color-mix(in srgb, var(--wp3-accent, #ff4d4d) 50%, transparent));
  }

  /* Tight portrait layout: full landscape screenshot visible + visit button above the rail */
  .wp3-snap { padding: 4rem 0.75rem 6rem; }
  .wp3-content { gap: 1rem; }
  .wp3-numwrap { gap: 0.2rem; }
  .wp3-num { font-size: clamp(2.6rem, 12vw, 4.5rem); }
  .wp3-num-label { font-size: 0.7rem; letter-spacing: 0.3em; }

  /* Cap frame so its 16:10 height never exceeds ~40vh (64vh × 10/16 = 40vh) */
  .wp3-frame {
    width: min(92vw, 64vh, 520px);
    max-width: none;
  }
  /* Show the entire landscape image — letterbox over the frame's black backdrop if needed */
  .wp3-frame-screen img {
    object-fit: contain;
    object-position: center;
  }

  .wp3-info { gap: 0.5rem; width: min(92vw, 520px); }
  .wp3-info-eyebrow { font-size: 0.7rem; letter-spacing: 0.3em; }
  .wp3-domain { font-size: 0.95rem; }
  .wp3-cta { padding: 0.7rem 1.3rem; font-size: 0.82rem; }
}

/* ---------- Light theme ---------- */
body.light-theme .wp3-vignette {
  background: radial-gradient(ellipse at center, transparent 30%, rgba(248, 250, 252, 0.85) 100%);
}

body.light-theme .wp3-bg {
  filter: blur(50px) brightness(0.85) saturate(1.2);
}

body.light-theme .wp3-snap.is-active .wp3-bg {
  filter: blur(40px) brightness(0.92) saturate(1.3);
}

body.light-theme .wp3-frame {
  background: #cbd5e1;
}

body.light-theme .wp3-frame-bar {
  background: linear-gradient(180deg, #f3f4f6, #e5e7eb);
}

body.light-theme .wp3-frame-url {
  background: #fff;
  color: #475569;
  border-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .wp3-cta {
  color: #1e293b;
  background: rgba(255, 255, 255, 0.7);
}

body.light-theme .wp3-cta:hover {
  color: #fff;
}

body.light-theme .wp3-rail-count em { color: rgba(0, 0, 0, 0.35); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; scroll-snap-type: none; }
  .wp3-grid-floor,
  .wp3-scanline,
  .wp3-site-scan,
  .wp3-stars,
  .wp3-cue-line,
  .wp3-scroll-cue i,
  .wp3-frame-glow,
  .wp3-snap.is-active .wp3-frame,
  .wp3-snap.is-active .wp3-num::before,
  .wp3-snap.is-active .wp3-num::after,
  .wp3-intro-title::before,
  .wp3-intro-title::after { animation: none !important; }
}
