/* ================================================================
   pipopstudio® — Design System
   style.css · v4.2
   Architecture: tokens → reset → layout → components → pages → responsive
   ----------------------------------------------------------------
   v4.2 changes vs v4.1:
   · REDESIGN — Section 13b: Featured Project completely redesigned
     - Crossfade layers replace directional slide
     - Tilt-on-hover viewer with perspective
     - Progress bar synced to active image
     - Overlaid prev/next nav arrows
     - Filmstrip thumbnails with active indicator
     - Animated counter morph
     - CTA pill button with gradient overlay
     - Swipe support on viewer (mobile)
   · All v4.1 fixes retained
================================================================ */

/* ----------------------------------------------------------------
   0. SELF-HOSTED FONTS
   Syne (display/UI) and Space Mono (accents/labels)
   Files in /assets/fonts/ — no external dependency
---------------------------------------------------------------- */

/* Syne */
@font-face {
  font-family: 'Syne';
  src: url('/assets/fonts/Syne-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Syne';
  src: url('/assets/fonts/Syne-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Syne';
  src: url('/assets/fonts/Syne-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Syne';
  src: url('/assets/fonts/Syne-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Syne';
  src: url('/assets/fonts/Syne-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Space Mono — download from fonts.google.com/specimen/Space+Mono */
@font-face {
  font-family: 'Space Mono';
  src: url('/assets/fonts/SpaceMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Mono';
  src: url('/assets/fonts/SpaceMono-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ----------------------------------------------------------------
   1. DESIGN TOKENS
---------------------------------------------------------------- */
:root {
  /* Colors */
  --bg:          #0e0e0e;
  --bg-2:        #141414;
  --bg-3:        #1c1c1c;
  --fg:          #f0f0f0;
  --fg-2:        #b0b0b0;
  --fg-3:        #666;
  --accent:      #2449ff;
  --accent-dim:  rgba(36, 73, 255, 0.12);
  --accent-glow: rgba(36, 73, 255, 0.25);
  --green:       #3ecf8e;
  --border:      rgba(255, 255, 255, 0.07);
  --border-hover:rgba(255, 255, 255, 0.14);

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-mono:    'Space Mono', monospace;

  /* Spacing system */
  --gutter:       clamp(20px, 5vw, 60px);
  --gutter-sm:    clamp(16px, 4vw, 40px);
  --section-v:    clamp(80px, 12vw, 140px);
  --header-h:     52px;

  /* Easing curves */
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:  cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ----------------------------------------------------------------
   2. RESET & BASE
---------------------------------------------------------------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-display);
  background-color: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

/* Focus visible — accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: 3px;
}

/* ----------------------------------------------------------------
   3. GRAIN OVERLAY — subtle film texture
---------------------------------------------------------------- */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ----------------------------------------------------------------
   4. CUSTOM CURSOR (desktop only)
   ----------------------------------------------------------------
   Architecture:
   · Position is set by JS via transform: translate3d(x, y, 0)
     → Composite-only, zero Layout/Paint cost per frame.
   · Centering is handled by CSS negative margins (half of size).
     → Margins transition alongside width/height, so the cursor
       stays centered even during the hover size change animation.
   · JS never touches left/top/margin — only transform.
   · CSS never touches transform — only size, margin, cosmetics.
   · Zero conflict between the two systems.
---------------------------------------------------------------- */
.cursor-dot,
.cursor-ring {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99999;
  border-radius: 50%;
  transition: opacity 0.3s ease;
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .cursor-dot {
    display: block;
    width: 5px;
    height: 5px;
    /* Centering: negative margin = half of width/height */
    margin-left: -2.5px;
    margin-top:  -2.5px;
    background: var(--fg);
    transition:
      width 0.3s var(--ease-out),
      height 0.3s var(--ease-out),
      margin 0.3s var(--ease-out),
      background 0.3s ease,
      opacity 0.3s ease;
  }

  .cursor-ring {
    display: block;
    width: 32px;
    height: 32px;
    margin-left: -16px;
    margin-top:  -16px;
    border: 1px solid rgba(240, 240, 240, 0.35);
    transition:
      width 0.4s var(--ease-out),
      height 0.4s var(--ease-out),
      margin 0.4s var(--ease-out),
      border-color 0.3s ease,
      opacity 0.3s ease;
  }

  /* States set by JS — margins update to stay centered at new size */
  body.cursor-hover .cursor-dot {
    width: 8px; height: 8px;
    margin-left: -4px; margin-top: -4px;
    background: var(--accent);
  }
  body.cursor-hover .cursor-ring {
    width: 52px; height: 52px;
    margin-left: -26px; margin-top: -26px;
    border-color: var(--accent); opacity: 0.5;
  }
}

/* ----------------------------------------------------------------
   5. HEADER
---------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  background-color: rgba(14, 14, 14, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.3s ease;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
}

.header-right { gap: clamp(40px, 8vw, 120px); }

.header-nav {
  display: flex;
  gap: clamp(20px, 3vw, 32px);
  align-items: center;
}

.header-nav a {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--fg-2);
  text-decoration: none;
  transition: color 0.2s ease;
}

.header-nav a:hover { color: var(--fg); }

.logo-link {
  display: flex;
  align-items: center;
  transition: opacity 0.2s ease;
}

.logo-link:hover { opacity: 0.65; }
.logo { height: 22px; display: block; }
.logo-icon { display: none; }

@media (max-width: 600px) {
  .logo-full { display: none; }
  .logo-icon { display: block; height: 18px; }
}

.lang-toggle {
  background: none;
  border: none;
  color: var(--fg-3);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.lang-toggle:hover,
.lang-toggle.active { color: var(--fg); }

.lang-separator { font-size: 0.72rem; color: var(--fg-3); }

/* ----------------------------------------------------------------
   6. AVAILABILITY BADGE (shared: hero + contact)
---------------------------------------------------------------- */
.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--fg-3);
  text-transform: uppercase;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  position: relative;
}

.badge-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(62, 207, 142, 0.22);
  animation: badgePulse 2.2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0; transform: scale(1.8); }
}

/* ----------------------------------------------------------------
   7. HERO — Homepage
---------------------------------------------------------------- */
.hero {
  min-height: 60svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding:
    calc(var(--header-h) + clamp(40px, 8vh, 80px))
    var(--gutter)
    clamp(48px, 8vh, 80px);
  position: relative;
  overflow: hidden;
}

/* Ambient gradient top-right */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: clamp(300px, 50vw, 700px);
  height: clamp(300px, 50vw, 700px);
  background: radial-gradient(circle, rgba(36, 73, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 6vh, 60px);
  max-width: 1400px;
  width: 100%;
}

/* --- Eyebrow row --- */
.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  animation: fadeIn 0.6s ease 0.1s forwards;
  will-change: opacity;
}

.hero-meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(36, 73, 255, 0.3);
  background: transparent;
  position: relative;
  overflow: hidden;
}

/* Shimmer — shared with fp__badge */
.hero-meta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(36, 73, 255, 0.12) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  animation: fpBadgeShimmer 3s ease-in-out infinite;
}

.meta-sep { opacity: 0.5; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 9vw, 9rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.04em;
  display: flex;
  flex-direction: column;
  gap: 0.05em;
}

.hero-line {
  display: block;
  clip-path: inset(0 -100vw 0 -100vw);
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
  will-change: transform;
}

.hero-line-inner {
  display: block;
  transform: translateY(110%);
  animation: lineReveal 1s var(--ease-out) forwards;
}

.hero-line:nth-child(1) .hero-line-inner { animation-delay: 0.25s; }
.hero-line:nth-child(2) .hero-line-inner { animation-delay: 0.38s; }
.hero-line:nth-child(3) .hero-line-inner { animation-delay: 0.50s; }

.hero-line--muted .hero-line-inner {
  font-size: clamp(0.65rem, 1.2vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-top: 1rem;
  transform: translateY(0);
  animation: none;
}

.hero-reg {
  font-size: 0.35em;
  vertical-align: super;
  font-weight: 600;
  letter-spacing: 0;
}

/* --- Bottom bar --- */
.hero-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  opacity: 0;
  animation: fadeIn 0.7s ease 0.7s forwards;
  will-change: opacity;
}

.hero-discipline {
  font-size: clamp(1.5rem, 1.4vw, 1.15rem);
  font-weight: 400;
  color: var(--fg-2);
  line-height: 1.55;
  max-width: 800px;
}

.br-mobile { display: none; }

/* CTA scroll button */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-2);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 14px 24px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  transition:
    color 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease,
    transform 0.4s var(--ease-out);
}

.hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-dim), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.hero-cta svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition:
    transform 0.5s var(--ease-out),
    color 0.35s ease;
}

.hero-cta:hover {
  color: var(--fg);
  border-color: rgba(36, 73, 255, 0.3);
  background: rgba(36, 73, 255, 0.04);
  transform: translateY(-2px);
}

.hero-cta:hover::before { opacity: 1; }

.hero-cta:hover svg {
  transform: translateY(3px);
  color: var(--accent);
}

/* --- Vertical scroll indicator --- */
.scroll-line {
  position: absolute;
  bottom: 0;
  left: var(--gutter);
  width: 1px;
  height: 64px;
  background: var(--border);
  overflow: hidden;
}

.scroll-line-inner {
  width: 100%;
  height: 100%;
  background: var(--fg-3);
  transform: translateY(-100%);
  animation: scrollLineDown 1.5s var(--ease-out) 1.2s infinite;
}

@keyframes scrollLineDown {
  0%   { transform: translateY(-100%); opacity: 1; }
  70%  { transform: translateY(0%); opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}

/* ----------------------------------------------------------------
   8. MARQUEE STRIP — services ticker
---------------------------------------------------------------- */
.marquee-strip {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  background: var(--bg-2);
  position: relative;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
  will-change: transform;
}

.marquee-strip:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
  padding: 0 20px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.marquee-sep {
  color: var(--fg-3);
  opacity: 0.35;
  font-size: 0.7rem;
  flex-shrink: 0;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ----------------------------------------------------------------
   9. 3D CAROUSEL
---------------------------------------------------------------- */
.carousel-3d-section {
  width: 100%;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1500px;
  position: relative;
  margin-block: clamp(48px, 8vw, 96px);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  contain: layout style;
}

.carousel-3d-container {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: translateY(-20px) rotateX(-10deg);
}

.carousel-card {
  position: absolute;
  width: 180px;
  height: 240px;
  left: 50%;
  top: 50%;
  margin-left: -90px;
  margin-top: -120px;
  background-color: var(--bg-2);
  border-radius: 14px;
  overflow: hidden;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -webkit-touch-callout: none;
}

.carousel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.carousel-hint {
  position: absolute;
  bottom: -48px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  white-space: nowrap;
  opacity: 0;
  animation: fadeIn 0.8s ease 1.2s forwards;
}

/* ----------------------------------------------------------------
   10. BUTTONS — global
---------------------------------------------------------------- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 24px;
  background: transparent;
  color: var(--fg-2);
  border: 1px solid var(--border);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  border-radius: 40px;
  position: relative;
  overflow: hidden;
  transition:
    color 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease,
    transform 0.4s var(--ease-out);
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-dim), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.cta:hover {
  color: var(--fg);
  border-color: rgba(36, 73, 255, 0.3);
  background: rgba(36, 73, 255, 0.04);
  transform: translateY(-2px);
}

.cta:hover::before { opacity: 1; }
.cta:active { transform: translateY(0); }


/* ----------------------------------------------------------------
   11. SECTION — common patterns
---------------------------------------------------------------- */
section {
  padding-inline: var(--gutter);
  padding-block: var(--section-v);
}

/* Section header row (label + count/link) */
.section-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
  font-weight: 400;
}

.section-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-3);
  letter-spacing: 0.08em;
}

/* ----------------------------------------------------------------
   12. PROJECTS SECTION
---------------------------------------------------------------- */
.section-projects {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

/* 2×2 grid on desktop, 1 column on mobile */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 28px);
}

/* --- Project card --- */
.project-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transition:
    border-color 0.3s ease,
    background 0.3s ease,
    transform 0.45s var(--ease-out);
}

/* Bottom accent bar */
.project-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 28%;
  height: 3px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
  transition: transform 0.3s var(--ease-spring);
  z-index: 2;
}

.project-card:hover {
  border-color: rgba(36, 73, 255, 0.3);
  transform: translateY(-4px);
}

.project-card:hover::after  { transform: translateX(-50%) scaleX(1); }

.project-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Image wrapper with overlay */
.project-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-2);
}

.project-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease-out);
  will-change: transform;
}

.project-card:hover .project-card-media img {
  transform: scale(1.05);
}

/* Overlay on hover */
.project-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 14, 14, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover .project-card-overlay { opacity: 1; }

.project-card-cta {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 40px;
  padding: 10px 20px;
  transform: translateY(8px);
  transition: transform 0.4s var(--ease-out);
}

.project-card:hover .project-card-cta { transform: translateY(0); }

/* Card info area */
.project-card-info {
  padding: clamp(16px, 2.5vw, 24px);
}

.project-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.project-card-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--fg-3);
  letter-spacing: 0.1em;
}

.project-card-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--fg-3);
  letter-spacing: 0.08em;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
}

.project-card-title {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 10px;
  line-height: 1.2;
}

.project-card-desc {
  font-size: 0.95rem;
  color: var(--fg-2);
  line-height: 1.5;
  font-weight: 400;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ----------------------------------------------------------------
   12b. WHAT WE DO — Expertises section
---------------------------------------------------------------- */

/* --- Section wrapper --- */
.section-wwd {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}

.section-wwd::before {
  content: '';
  position: absolute;
  top: -15%;
  left: -8%;
  width: clamp(280px, 45vw, 600px);
  height: clamp(280px, 45vw, 600px);
  background: radial-gradient(circle, rgba(36, 73, 255, 0.045) 0%, transparent 70%);
  pointer-events: none;
}

.wwd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(48px, 6vw, 96px);
  row-gap: clamp(32px, 5vw, 56px);
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.wwd-hd {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.wwd-tabs {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.wwd-tab {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 20px);
  width: 100%;
  padding: clamp(16px, 2.2vw, 22px) 0;
  background: none;
  border: none;
  border-top: 1px solid var(--border);
  cursor: pointer;
  text-align: left;
  position: relative;
  transition:
    padding-left 0.5s var(--ease-out),
    border-color 0.3s ease;
}

.wwd-tab:last-child { border-bottom: 1px solid var(--border); }

.wwd-tab-index {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--fg-3);
  flex-shrink: 0;
  min-width: 22px;
  transition: color 0.3s ease;
}

.wwd-tab-label {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.5vw, 1.2rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--fg-2);
  flex: 1;
  transition:
    color 0.35s ease,
    transform 0.5s var(--ease-out);
}

.wwd-tab-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0;
  transform: translate(-6px, 6px);
  transition:
    opacity 0.4s ease,
    transform 0.5s var(--ease-out);
}

.wwd-tab-arrow svg {
  width: 100%;
  height: 100%;
  color: var(--fg-3);
  transition: color 0.3s ease;
}

.wwd-tab:hover { border-color: var(--border-hover); }
.wwd-tab:hover .wwd-tab-label { color: var(--fg); transform: translateX(4px); }
.wwd-tab:hover .wwd-tab-index { color: var(--fg-2); }
.wwd-tab:hover .wwd-tab-arrow { opacity: 0.5; transform: translate(0, 0); }

.wwd-tab.is-active { padding-left: clamp(8px, 1.2vw, 16px); border-color: var(--border-hover); }
.wwd-tab.is-active .wwd-tab-index { color: var(--accent); }
.wwd-tab.is-active .wwd-tab-label { color: var(--fg); font-weight: 500; }
.wwd-tab.is-active .wwd-tab-arrow { opacity: 1; transform: translate(0, 0); }
.wwd-tab.is-active .wwd-tab-arrow svg { color: var(--accent); }

.wwd-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: 2px;
}

.wwd-accordion-body { display: none; }

.wwd-panels {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-start;
}

.wwd-panel {
  position: absolute;
  top: 0; left: 0; right: 0;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  padding: clamp(24px, 3vw, 40px);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition:
    opacity 0.5s var(--ease-out),
    transform 0.5s var(--ease-out),
    border-color 0.3s ease,
    background 0.3s ease;
}

.wwd-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent-dim), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.wwd-panel::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px;
  height: 50%;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
  transition: transform 0.3s var(--ease-spring);
}

.wwd-panel.is-active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.wwd-panel.is-active:hover {
  border-color: rgba(36, 73, 255, 0.3);
  background: rgba(36, 73, 255, 0.05);
  transform: translateX(5px);
}

.wwd-panel.is-active:hover::before { opacity: 1; }
.wwd-panel.is-active:hover::after  { transform: translateY(-50%) scaleY(1); }

.wwd-panel-title {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: clamp(16px, 2vw, 24px);
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.wwd-panel-body {
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  font-weight: 400;
  color: var(--fg-2);
  line-height: 1.75;
  max-width: 520px;
  position: relative;
  z-index: 1;
  max-height: 5.25em;              /* ~3 lines (3 × 1.75 line-height) */
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
  transition: max-height 0.5s var(--ease-out),
              -webkit-mask-image 0.4s ease,
              mask-image 0.4s ease;
}

/* Expand on hover — full text revealed, no mask */
.wwd-panel.is-active:hover .wwd-panel-body {
  max-height: 40em;
  -webkit-mask-image: none;
  mask-image: none;
}

.wwd-panel-body p {
  margin: 0 0 0.85em 0;
}

.wwd-panel-body p:last-child {
  margin-bottom: 0;
}

.wwd-panel-num { display: none; }

.wwd-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(20px, 3vw, 32px);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--fg-2);
  text-decoration: none;
  position: static;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.35s ease;
}

.wwd-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
}

.wwd-cta-text {
  position: relative;
  z-index: 3;
  transition: color 0.35s ease;
}

.wwd-cta-arrow {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  position: relative;
  z-index: 3;
  transition:
    transform 0.5s var(--ease-out),
    color 0.35s ease;
}

.wwd-panel.is-active:hover .wwd-cta { color: var(--fg); }
.wwd-panel.is-active:hover .wwd-cta-arrow {
  transform: translate(3px, -3px);
  color: var(--accent);
}

.wwd-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
  position: relative;
}

@media (max-width: 900px) {
  .wwd-grid { grid-template-columns: 1fr; gap: 0; }
  .wwd-hd { margin-bottom: clamp(24px, 4vw, 40px); }
  .wwd-panels { display: none; }
  .wwd-tab { flex-wrap: wrap; }
  .wwd-accordion-body {
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s var(--ease-in-out);
    width: 100%;
  }
  .wwd-accordion-content { padding: 4px 0 24px 34px; }
  .wwd-accordion-content h3 { display: none; }
  .wwd-accordion-content p { font-size: 0.9rem; color: var(--fg-2); line-height: 1.7; max-width: 520px; margin: 0 0 0.75em 0; }
  .wwd-accordion-content p:last-of-type { margin-bottom: 0; }
  .wwd-accordion-content .wwd-cta { margin-top: 12px; position: relative; }
  .wwd-accordion-content .wwd-cta::before { display: none; }
  .wwd-tab.is-active { padding-left: 8px; }
}

@media (max-width: 600px) {
  .section-wwd .section-hd { margin-bottom: clamp(24px, 5vw, 40px); }
  .wwd-tab-label { font-size: 0.9rem; }
  .wwd-tab { padding: 14px 0; }
  .wwd-accordion-content { padding-left: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .wwd-panel { transition: none; }
  .wwd-panel-body { transition: none; max-height: none; -webkit-mask-image: none; mask-image: none; }
  .wwd-tab, .wwd-tab-label, .wwd-tab-arrow, .wwd-tab-index { transition: none; }
  .wwd-accordion-body { transition: none; }
  .wwd-cta, .wwd-cta-arrow { transition: none; }
}



/* ----------------------------------------------------------------
   12b-2. PROCESS — Expanding cards (v3)
---------------------------------------------------------------- */

.section-process {
  padding-block: var(--section-v);
  padding-inline: var(--gutter);
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.section-process .section-hd {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: clamp(40px, 6vw, 72px);
}

/* Progress bar */
.proc-progress {
  max-width: 1200px;
  margin: 0 auto clamp(20px, 3vw, 32px);
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.proc-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 8px rgba(36, 73, 255, 0.3);
}

/* Mobile-first: vertical accordion */
.proc-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: clamp(32px, 5vw, 56px);
}

.proc-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.35s ease, background 0.35s ease;
  background: transparent;
}

.proc-card:hover { border-color: rgba(255, 255, 255, 0.15); }

.proc-card.is-active {
  border-color: rgba(36, 73, 255, 0.25);
  background: rgba(36, 73, 255, 0.03);
}

.proc-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
}

/* Indicator dot + timer ring */
.proc-indicator {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease;
}

.proc-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fg-2);
  transition: all 0.3s ease;
  opacity: 0.4;
}

.proc-card.is-active .proc-indicator { border-color: var(--accent); }
.proc-card.is-active .proc-indicator-dot { background: var(--accent); opacity: 1; transform: scale(1.2); }
.proc-card.is-past .proc-indicator { border-color: rgba(36, 73, 255, 0.3); }
.proc-card.is-past .proc-indicator-dot { background: var(--accent); opacity: 0.4; }

/* Num + Name */
.proc-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--fg-2);
  min-width: 24px;
  transition: color 0.3s ease;
}

.proc-card.is-active .proc-num { color: var(--accent); }

.proc-name {
  font-family: var(--font-display);
  font-size: clamp(0.92rem, 1.2vw, 1rem);
  font-weight: 700;
  color: var(--fg);
  flex: 1;
  letter-spacing: -0.01em;
  transition: opacity 0.3s ease;
  margin: 0;
}

.proc-card:not(.is-active) .proc-name { opacity: 0.5; }
.proc-card:hover .proc-name { opacity: 0.8; }
.proc-card.is-active .proc-name { opacity: 1; }

/* Chevron arrow (mobile) */
.proc-arrow {
  width: 16px;
  height: 16px;
  color: var(--fg-2);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s ease;
  flex-shrink: 0;
}

.proc-card.is-active .proc-arrow {
  transform: rotate(180deg);
  color: var(--accent);
}

/* Body — expand/collapse */
.proc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.proc-card.is-active .proc-body { max-height: 2000px; }

.proc-body-inner {
  padding: 0 20px 24px 72px;
}

.proc-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  opacity: 0.7;
  margin-bottom: 10px;
  padding: 4px 10px;
  border: 1px solid rgba(36, 73, 255, 0.15);
  border-radius: 100px;
}

.proc-body p {
  font-size: clamp(0.88rem, 1vw, 0.95rem);
  line-height: 1.7;
  color: var(--fg-2);
  max-width: 560px;
  margin: 0;
}


/* ── Desktop (≥901px) — horizontal expanding cards ── */
@media (min-width: 901px) {
  .proc-list {
    flex-direction: row;
    gap: 6px;
    align-items: stretch;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }

  .proc-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    transition: flex 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.35s ease,
                background 0.35s ease;
  }

  .proc-card.is-active { flex: 3.5; }

  .proc-head {
    gap: 12px;
    padding: 24px 22px 16px;
  }

  .proc-arrow { display: none; }

  .proc-name {
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .proc-card.is-active .proc-name {
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    white-space: normal;
  }

  .proc-body {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.35s ease 0.1s;
  }

  .proc-card.is-active .proc-body {
    max-height: 2000px;
    opacity: 1;
  }

  .proc-body-inner { padding: 0 22px 24px; }
}


/* ── Mobile adjustments — brief cards ── */
@media (max-width: 900px) {
  .proc-body-inner {
    padding: 0 16px 20px 20px;
  }
  .proc-body p {
    max-width: 100%;
  }
  .proc-head {
    padding: 14px 16px;
    gap: 10px;
  }
  .proc-indicator {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 600px) {
  .proc-body-inner {
    padding: 0 14px 18px 14px;
  }
  .proc-head {
    padding: 12px 14px;
  }
}


/* ── Light theme ── */
[data-theme="light"] .proc-card {
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .proc-card:hover {
  border-color: rgba(36, 73, 255, 0.25);
}

[data-theme="light"] .proc-card.is-active {
  border-color: rgba(36, 73, 255, 0.2);
  background: rgba(36, 73, 255, 0.04);
}


/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .proc-card { transition: none; }
  .proc-body { transition: none; max-height: none; overflow: visible; opacity: 1; }
  .proc-indicator-dot { transition: none; }
  .proc-arrow { transition: none; }
  .proc-card:not(.is-active) .proc-name { opacity: 1; }
}


/* ----------------------------------------------------------------
   12b-2b. STATEMENT — Full-bleed typographic break
---------------------------------------------------------------- */

.statement {
  padding: clamp(80px, 12vw, 160px) var(--gutter);
  overflow: hidden;
}

.statement-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.15em;
}

.statement-text {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5.6vw, 4.4rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin: 0;
}

.statement-accent {
  color: var(--accent);
}


/* ----------------------------------------------------------------
   12b-3. INDUSTRIES — Rolling statement
---------------------------------------------------------------- */

.section-industries {
  padding: clamp(80px, 12vw, 160px) var(--gutter);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.ind-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.ind-statement {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5.6vw, 4.4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin: 0 0 0.08em;
}

/* Roller */
.ind-line2 {
  display: flex;
  align-items: baseline;
  gap: clamp(10px, 1.5vw, 20px);
  flex-wrap: wrap;
}

.ind-roller-mask {
  overflow: hidden;
  position: relative;
  font-size: clamp(1.6rem, 5.6vw, 4.4rem);
  line-height: 1.1;
  height: 1.2em;
}

.ind-roller {
  display: flex;
  flex-direction: column;
  transform: translateY(0);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  cursor: pointer;
}

.ind-roller-item {
  font-family: var(--font-display);
  font-size: inherit;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--accent);
  white-space: nowrap;
  display: flex;
  align-items: center;
  height: 1.2em;
  flex-shrink: 0;
}

/* Pill */
.ind-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: clamp(0.6rem, 0.8vw, 0.75rem);
  letter-spacing: 0.06em;
  color: var(--fg-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 18px;
  cursor: pointer;
  background: none;
  transition: all 0.3s ease;
  flex-shrink: 0;
  align-self: center;
}

.ind-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.ind-pill.is-open {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(36, 73, 255, 0.06);
}

.ind-pill-arrow {
  width: 12px;
  height: 12px;
  transition: transform 0.3s ease;
}

.ind-pill.is-open .ind-pill-arrow {
  transform: rotate(180deg);
}

/* +/- toggle: hidden on desktop */
.ind-pill-toggle {
  display: none;
}

/* Mobile: swap pill for +/- circle */
@media (max-width: 900px) {
  .ind-pill-text,
  .ind-pill-arrow {
    display: none;
  }

  .ind-pill {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .ind-pill-toggle {
    display: block;
    position: relative;
    width: 14px;
    height: 14px;
  }

  .ind-pill-toggle .icon-bar {
    position: absolute;
    background: var(--fg-2);
    border-radius: 1px;
    transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
  }

  .ind-pill-toggle .horizontal {
    top: 50%;
    left: 1px;
    right: 1px;
    height: 1.5px;
    transform: translateY(-50%);
  }

  .ind-pill-toggle .vertical {
    left: 50%;
    top: 1px;
    bottom: 1px;
    width: 1.5px;
    transform: translateX(-50%);
  }

  .ind-pill.is-open .ind-pill-toggle .vertical {
    transform: translateX(-50%) scaleY(0);
    opacity: 0;
  }

  .ind-pill.is-open .ind-pill-toggle .icon-bar {
    background: var(--accent);
  }
}

/* Description panels */
.ind-desc {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
  opacity: 0;
}

.ind-desc.is-open {
  max-height: 300px;
  opacity: 1;
}

.ind-desc-panel {
  padding-top: clamp(16px, 2vw, 28px);
  visibility: hidden;
  position: absolute;
  pointer-events: none;
  height: 0;
  overflow: hidden;
}

.ind-desc-panel.is-active {
  visibility: visible;
  position: relative;
  pointer-events: auto;
  height: auto;
  overflow: visible;
}

.ind-subtitle {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(0.65rem, 0.8vw, 0.75rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: clamp(12px, 1.5vw, 18px);
}

.ind-desc-panel p {
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  color: var(--fg-2);
  line-height: 1.7;
  max-width: 700px;
  padding: 0;
  margin: 0 0 0.85em;
}

.ind-desc-panel p:last-child {
  margin-bottom: 0;
}

.ind-hl {
  color: var(--fg);
}

/* Navigation controls — visible only when description is open */
.ind-controls {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 24px);
  margin-top: clamp(24px, 3vw, 40px);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.ind-desc.is-open ~ .ind-controls {
  max-height: 60px;
  opacity: 1;
}

.ind-counter {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--fg-2);
}

.ind-counter-current {
  color: var(--fg);
}

.ind-prev {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg-2);
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.ind-prev:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.ind-prev svg {
  width: 16px;
  height: 16px;
}

.ind-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--fg-2);
  background: none;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 18px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ind-next svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.ind-next:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.ind-next:hover svg {
  transform: translateX(3px);
}

[data-theme="light"] .ind-prev {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg-2);
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.ind-prev:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.ind-prev svg {
  width: 16px;
  height: 16px;
}

.ind-next {
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .ind-pill {
  border-color: rgba(0, 0, 0, 0.12);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ind-roller { transition: none; }
  .ind-desc { transition: none; max-height: none; opacity: 1; }
  .ind-pill { transition: none; }
}

/* ----------------------------------------------------------------
   12b-4. FAQ — Frequently asked questions
   Redesigned to match Process / Industries design language:
   Card-based, indicator dots, mono numbering, 2-col desktop grid
---------------------------------------------------------------- */

.section-faq {
  padding-block: var(--section-v);
  padding-inline: var(--gutter);
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.section-faq .section-hd {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: clamp(40px, 6vw, 72px);
}

/* Grid — single column mobile, 2 columns desktop */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Card */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.35s ease, background 0.35s ease;
  background: transparent;
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.faq-item.active {
  border-color: rgba(36, 73, 255, 0.25);
  background: rgba(36, 73, 255, 0.03);
}

/* Question button */
.faq-question {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px 20px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--fg);
  transition: color 0.2s ease;
}

/* Indicator dot — mirrors .proc-indicator */
.faq-indicator {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease;
}

.faq-indicator-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--fg-2);
  transition: all 0.3s ease;
  opacity: 0.4;
}

.faq-item.active .faq-indicator {
  border-color: var(--accent);
}

.faq-item.active .faq-indicator-dot {
  background: var(--accent);
  opacity: 1;
  transform: scale(1.2);
}

/* Numbering — mono style like .proc-num */
.faq-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--fg-2);
  min-width: 22px;
  flex-shrink: 0;
  transition: color 0.3s ease;
}

.faq-item.active .faq-num {
  color: var(--accent);
}

/* Question text */
.faq-q-text {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.4;
  flex: 1;
  transition: opacity 0.3s ease;
}

.faq-item:not(.active) .faq-q-text {
  opacity: 0.6;
}

.faq-item:hover .faq-q-text {
  opacity: 0.85;
}

.faq-item.active .faq-q-text {
  opacity: 1;
}

/* Chevron arrow — mirrors .proc-arrow */
.faq-chevron {
  width: 16px;
  height: 16px;
  color: var(--fg-2);
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              color 0.3s ease;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

/* Answer body — expand/collapse */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-answer[hidden] {
  display: block;
  max-height: 0;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer-inner {
  padding: 0 20px 24px 66px;
}

.faq-answer p {
  font-size: clamp(0.88rem, 1vw, 0.95rem);
  color: var(--fg-2);
  line-height: 1.7;
  max-width: 600px;
  margin: 0;
}


/* ── Desktop (≥901px) — 2-column masonry-like grid ── */
@media (min-width: 901px) {
  .faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-items: start;
  }

  .faq-question {
    padding: 20px 22px;
    gap: 12px;
  }

  .faq-answer-inner {
    padding: 0 22px 24px 66px;
  }

  .faq-item.active .faq-answer {
    max-height: 350px;
  }
}


/* ── Light theme ── */
[data-theme="light"] .faq-item {
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .faq-item:hover {
  border-color: rgba(36, 73, 255, 0.25);
}

[data-theme="light"] .faq-item.active {
  border-color: rgba(36, 73, 255, 0.2);
  background: rgba(36, 73, 255, 0.04);
}

[data-theme="light"] .faq-indicator {
  border-color: rgba(0, 0, 0, 0.1);
}


/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .faq-item { transition: none; }
  .faq-answer { transition: none; max-height: none; }
  .faq-chevron { transition: none; }
  .faq-indicator-dot { transition: none; }
  .faq-item:not(.active) .faq-q-text { opacity: 1; }
}



/* ----------------------------------------------------------------
   12c. TESTIMONIALS SLIDER — Infinite auto-scroll (v4)
---------------------------------------------------------------- */

.testimonials-slider {
  padding-block: var(--section-v);
  padding-inline: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  overflow: hidden;
  position: relative;
}

.testimonials-hd {
  padding-inline: var(--gutter);
  margin-bottom: clamp(32px, 5vw, 52px);
}

.testimonials-track-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.testimonials-track {
  display: flex;
  gap: clamp(14px, 2vw, 24px);
  width: max-content;
  animation: testimonialsScroll 45s linear infinite;
  will-change: transform;
}

.testimonials-track-wrapper:hover .testimonials-track {
  animation-play-state: paused;
}

/* Drag cursor — desktop only */
@media (hover: hover) and (pointer: fine) {
  .testimonials-track-wrapper {
    cursor: grab;
  }
  .testimonials-track-wrapper.is-dragging {
    cursor: grabbing;
  }
  .testimonials-track-wrapper.is-dragging .testimonials-track {
    user-select: none;
    -webkit-user-select: none;
  }
}

@keyframes testimonialsScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --- Card --- */
.tm-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(20px, 3vw, 28px);
  background: rgba(255, 255, 255, 0.025);
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
  width: clamp(320px, 36vw, 440px);
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.3s ease,
    background 0.3s ease,
    transform 0.35s var(--ease-out);
}

.tm-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent-dim), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.tm-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px;
  height: 50%;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
  transition: transform 0.3s var(--ease-spring);
}

.tm-card:hover {
  border-color: rgba(36, 73, 255, 0.3);
  background: rgba(36, 73, 255, 0.05);
  transform: translateX(5px);
}

.tm-card:hover::before { opacity: 1; }
.tm-card:hover::after  { transform: translateY(-50%) scaleY(1); }

.tm-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.tm-author {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.tm-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.tm-card:hover .tm-author img {
  transform: scale(1.06);
}

.tm-name {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 2px;
}

.tm-role {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--fg-3);
}

.tm-socials {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.tm-social-link {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

.tm-social-link svg {
  width: 14px;
  height: 14px;
  fill: var(--accent);
  stroke: none;
}

.tm-social-link svg[fill="none"] {
  fill: none;
  stroke: var(--accent);
}

.tm-social-link:hover {
  background: rgba(36, 73, 255, 0.25);
  transform: scale(1.1);
}

.tm-social-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.tm-social-label {
  display: none;
}

.tm-quote {
  margin: 0;
  position: relative;
  z-index: 1;
}

.tm-quote p {
  font-size: clamp(0.85rem, 1.1vw, 0.95rem);
  color: var(--fg-2);
  line-height: 1.75;
  font-style: italic;
  margin: 0;
}


/* ----------------------------------------------------------------
   13. ABOUT SECTION
---------------------------------------------------------------- */
.section-about {
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.about-content {
  display: flex;
  flex-direction: column;
}

.about-title {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
  font-weight: 400;
  margin-bottom: clamp(24px, 4vw, 48px);
}

.about-bio {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 400;
  color: var(--fg-2);
  line-height: 1.65;
  margin-bottom: clamp(40px, 6vw, 64px);
  max-width: 480px;
}

.about-image-wrapper {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.about-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Experience accordion --- */
.experience-container {
  width: 100%;
}

.exp-section-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
  font-weight: 400;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.exp-section-title span {
  position: relative;
  overflow: hidden;
  color: var(--accent);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(36, 73, 255, 0.3);
  background: transparent;
}

.exp-section-title span::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(36, 73, 255, 0.12) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  animation: fpBadgeShimmer 3s ease-in-out infinite;
}

.exp-list { display: flex; flex-direction: column; gap: 0; }

.exp-card {
  border-top: 1px solid var(--border);
  transition: border-color 0.2s ease;
}

.exp-card:last-child { border-bottom: 1px solid var(--border); }
.exp-card.active { border-color: var(--border-hover); }

.exp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  cursor: pointer;
  gap: 12px;
}

.exp-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.exp-logo {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-3);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.exp-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.exp-titles { min-width: 0; }

.exp-role {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exp-meta {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--fg-3);
  margin-top: 3px;
}

.exp-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  transition:
    border-color 0.25s ease,
    transform 0.3s var(--ease-spring),
    background 0.25s ease;
}

.exp-card.active .exp-toggle {
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: rotate(45deg);
}

.exp-header:hover .exp-toggle {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.icon-bar {
  position: absolute;
  background: var(--fg-2);
  border-radius: 2px;
  transition: background 0.25s ease;
}

.exp-card.active .icon-bar { background: var(--accent); }
.exp-header:hover .icon-bar { background: var(--accent); }

.icon-bar.horizontal {
  top: 50%; left: 50%;
  width: 10px; height: 1.5px;
  transform: translate(-50%, -50%);
}

.icon-bar.vertical {
  top: 50%; left: 50%;
  width: 1.5px; height: 10px;
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease-out), opacity 0.25s ease, background 0.25s ease;
}

.exp-card.active .icon-bar.vertical {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.exp-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-in-out);
}

.exp-description {
  padding: 0 0 20px 52px;
}

.exp-description p {
  font-size: 0.875rem;
  color: var(--fg-2);
  line-height: 1.7;
}


/* ----------------------------------------------------------------
   13b. FEATURED PROJECT v2 — Immersive showcase
   ----------------------------------------------------------------
   v4.2 — Complete redesign:
   · Crossfade between preloaded image layers (no directional slide)
   · Tilt-on-hover viewer with perspective depth
   · Progress bar synced to active image index
   · Overlaid prev/next navigation arrows
   · Filmstrip thumbnails with animated active indicator
   · Animated counter with number morph
   · CTA pill button with gradient overlay hover
   · Swipe support on viewer (mobile)
   · Scroll-triggered entrance via IntersectionObserver
---------------------------------------------------------------- */

/* ── Section ── */
.fp {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

/* Ambient glow — top right */
.fp::before {
  content: '';
  position: absolute;
  top: -15%;
  right: -10%;
  width: clamp(300px, 45vw, 600px);
  height: clamp(300px, 45vw, 600px);
  background: radial-gradient(circle, rgba(36, 73, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.fp__hd {
  max-width: 1200px;
  margin: 0 auto clamp(28px, 4vw, 48px);
}

/* ── Animated counter ── */
.fp__counter {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  display: flex;
  align-items: center;
  gap: 0;
}

.fp__counter-current {
  display: inline-block;
  min-width: 1.4em;
  text-align: right;
  transition: transform 0.4s var(--ease-out), opacity 0.4s var(--ease-out);
}

.fp__counter-current.is-changing {
  transform: translateY(-6px);
  opacity: 0;
}

/* ── Grid ── */
.fp__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  column-gap: clamp(32px, 5vw, 64px);
  row-gap: clamp(12px, 2vw, 20px);
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

/* Make info span both rows on desktop */
.fp__info {
  grid-column: 2;
  grid-row: 1 / 3;
}

/* ── LEFT — Viewer ── */
.fp__viewer {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bg-3);
  border: 1px solid var(--border);
  transition: border-color 0.5s ease, box-shadow 0.6s ease;
  perspective: 800px;
  transform-style: preserve-3d;
}

.fp__viewer:hover {
  border-color: rgba(36, 73, 255, 0.2);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(36, 73, 255, 0.08);
}

/* Tilt wrapper — JS applies rotateX/Y */
.fp__viewer-tilt {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.15s ease-out;
  will-change: transform;
}

/* Progress bar — bottom of viewer */
.fp__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  z-index: 5;
  transition: width 0.5s var(--ease-out);
  border-radius: 0 1px 0 0;
  box-shadow: 0 0 12px rgba(36, 73, 255, 0.4);
}

/* ── Slide vignettes strip (desktop 2-col only) ── */
.fp__slides-strip {
  grid-column: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.fp__slide-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  border: 1.5px solid transparent;
  background: var(--bg-3);
  padding: 0;
  cursor: pointer;
  opacity: 0.4;
  transition:
    opacity 0.35s var(--ease-out),
    border-color 0.3s ease,
    transform 0.35s var(--ease-out);
}

.fp__slide-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  display: block;
}

.fp__slide-thumb:hover {
  opacity: 0.7;
  transform: translateY(-2px);
}

.fp__slide-thumb.is-active {
  border-color: var(--accent);
  opacity: 1;
}

.fp__slide-thumb.is-active:hover {
  transform: none;
}

.fp__slide-thumb[hidden] {
  display: none;
}

/* Image layers — stacked for crossfade */
.fp__img-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.8s var(--ease-out);
  will-change: opacity, transform;
}

.fp__img-layer.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.fp__img-layer.is-prev {
  opacity: 0;
  transform: scale(0.97);
  z-index: 1;
}

/* Pills — overlaid top-left */
.fp__pills {
  position: absolute;
  top: clamp(12px, 2vw, 20px);
  left: clamp(12px, 2vw, 20px);
  display: flex;
  gap: 6px;
  z-index: 4;
}

.fp__pill {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: rgba(240, 240, 240, 0.85);
  background: rgba(14, 14, 14, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 5px 14px;
  white-space: nowrap;
}

/* Navigation arrows overlaid on viewer */
.fp__viewer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(14, 14, 14, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-2);
  opacity: 0.7;
  padding: 0;
  transition:
    opacity 0.3s ease,
    transform 0.3s var(--ease-out),
    background 0.3s ease,
    border-color 0.3s ease;
}

.fp__viewer-nav svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fp__viewer-nav--prev {
  left: 14px;
  transform: translateY(-50%);
}

.fp__viewer-nav--next {
  right: 14px;
  transform: translateY(-50%);
}

.fp__viewer:hover .fp__viewer-nav {
  opacity: 1;
}

.fp__viewer-nav:hover {
  background: rgba(36, 73, 255, 0.25);
  border-color: rgba(36, 73, 255, 0.4);
  color: var(--fg);
}

/* ── RIGHT — Info column ── */
.fp__info {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.5vw, 24px);
  padding-top: clamp(4px, 1vw, 12px);
}

/* Badge */
.fp__badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 5px 14px;
  border-radius: 20px;
  align-self: flex-start;
  position: relative;
  overflow: hidden;
  background: transparent;
  border: 1px solid rgba(36, 73, 255, 0.3);
  transition: border-color 0.3s ease;
}

/* Animated shimmer on badge */
.fp__badge::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(36, 73, 255, 0.12) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  animation: fpBadgeShimmer 3s ease-in-out infinite;
}

@keyframes fpBadgeShimmer {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

/* Title */
.fp__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 2vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--fg);
}

.fp__reg {
  font-size: 0.3em;
  vertical-align: super;
  font-weight: 600;
}

/* Description */
.fp__desc {
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  color: var(--fg-2);
  line-height: 1.8;
  max-width: 440px;
}

/* Separator */
.fp__sep {
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent 80%);
  margin: clamp(4px, 1vw, 8px) 0;
}

/* ── Filmstrip thumbnails ── */
.fp__filmstrip {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fp__filmstrip-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.fp__thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-bottom: 4px;
}


.fp__thumb {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid transparent;
  background: var(--bg-3);
  padding: 0;
  position: relative;
  opacity: 0.35;
  cursor: pointer;
  transition:
    opacity 0.4s var(--ease-out),
    border-color 0.3s ease,
    transform 0.4s var(--ease-out);
}

.fp__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  display: block;
}

/* Active indicator bar — bottom of thumb */
.fp__thumb::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--accent);
  border-radius: 1px 1px 0 0;
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-spring);
}

.fp__thumb:hover {
  opacity: 0.6;
  transform: translateY(-2px);
}

.fp__thumb.is-active {
  border-color: var(--accent);
  opacity: 1;
}

.fp__thumb.is-active::after {
  transform: scaleX(1);
}

.fp__thumb.is-active:hover {
  transform: none;
}

.fp__thumb:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── CTA ── */
.fp__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--fg-2);
  text-decoration: none;
  padding: 14px 24px;
  border: 1px solid var(--border);
  border-radius: 40px;
  align-self: flex-start;
  position: relative;
  overflow: hidden;
  transition:
    color 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease,
    transform 0.4s var(--ease-out);
}

.fp__cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-dim), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.fp__cta-arrow {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition:
    transform 0.5s var(--ease-out),
    color 0.35s ease;
}

.fp__cta:hover {
  color: var(--fg);
  border-color: rgba(36, 73, 255, 0.3);
  background: rgba(36, 73, 255, 0.04);
  transform: translateY(-2px);
}

.fp__cta:hover::before { opacity: 1; }

.fp__cta:hover .fp__cta-arrow {
  transform: translate(3px, -3px);
  color: var(--accent);
}

.fp__cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* ── Scroll entrance ── */
.fp__reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.fp__reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fp__reveal--d1 { transition-delay: 0.1s; }
.fp__reveal--d2 { transition-delay: 0.2s; }
.fp__reveal--d3 { transition-delay: 0.3s; }


/* ----------------------------------------------------------------
   14. CONTACT HERO (shared: homepage + contact page)
---------------------------------------------------------------- */
.contact-hero {
  background: var(--bg);
  padding: var(--section-v) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(48px, 8vw, 96px);
  max-width: 1100px;
  width: 100%;
}

.contact-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--fg);
}

.contact-tagline {
  font-size: clamp(0.9rem, 1.3vw, 1rem);
  color: var(--fg-3);
  line-height: 1.7;
  max-width: 460px;
}

.contact-tagline strong { color: var(--fg-2); font-weight: 500; }

/* Contact cards */
.contact-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-link-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--fg);
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.3s ease,
    background 0.3s ease,
    transform 0.35s var(--ease-out);
}

.contact-link-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-dim), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.contact-link-card::after {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px; height: 50%;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
  transition: transform 0.3s var(--ease-spring);
}

.contact-link-card:hover {
  border-color: rgba(36, 73, 255, 0.3);
  background: rgba(36, 73, 255, 0.05);
  transform: translateX(5px);
}

.contact-link-card:hover::before { opacity: 1; }
.contact-link-card:hover::after { transform: translateY(-50%) scaleY(1); }

.card-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.contact-link-card:hover .card-icon {
  background: rgba(36, 73, 255, 0.2);
  transform: scale(1.06);
}

.card-icon svg {
  width: 18px; height: 18px;
  fill: var(--accent);
}

.card-content { flex: 1; min-width: 0; }

.card-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 3px;
}

.card-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-arrow {
  width: 18px; height: 18px;
  opacity: 0;
  transform: translateX(-6px);
  transition:
    opacity 0.25s ease,
    transform 0.3s var(--ease-out);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.card-arrow svg {
  width: 100%; height: 100%;
  stroke: var(--accent);
  fill: none;
}

.contact-link-card:hover .card-arrow {
  opacity: 1;
  transform: translateX(0);
}

.contact-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 4px 0;
}

/* ----------------------------------------------------------------
   15. CONTACT FORM SECTION
---------------------------------------------------------------- */
.section-form {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-top: 1px solid var(--border);
}

.section-form h2 {
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 1.1vw, 0.82rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-3);
  font-weight: 400;
  margin-bottom: 8px;
  min-height: 1.2em;
}

.section-form > p {
  font-size: 1rem;
  color: var(--fg-2);
  margin-bottom: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 560px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 400;
  transition: border-color 0.25s ease, background 0.25s ease;
  outline: none;
  -webkit-appearance: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--fg-3);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(36, 73, 255, 0.5);
  background: var(--bg-3);
}

.contact-form textarea {
  resize: vertical;
  min-height: 130px;
}

.contact-form .cta { align-self: center; }

.form-note {
  font-size: 0.78rem;
  color: var(--fg-3);
  line-height: 1.5;
  margin-top: 8px;
}


/* ----------------------------------------------------------------
   16. FOOTER
---------------------------------------------------------------- */
footer,
.site-footer {
  padding: 28px var(--gutter);
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-rights {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--fg-3);
}

.footer-nav {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-nav a {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav a:hover { color: var(--fg); }

/* ----------------------------------------------------------------
   17. SCROLL REVEAL SYSTEM
---------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.reveal.delay-1 { transition-delay: 0.12s; }
.reveal.delay-2 { transition-delay: 0.24s; }
.reveal.delay-3 { transition-delay: 0.36s; }

/* ----------------------------------------------------------------
   DECODE TEXT SYSTEM
---------------------------------------------------------------- */
.decode:not(.reveal) {
  opacity: 1;
}

/* ----------------------------------------------------------------
   18. ANIMATIONS — keyframes
---------------------------------------------------------------- */
@keyframes lineReveal {
  from { transform: translateY(110%); }
  to   { transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ----------------------------------------------------------------
   19. RESPONSIVE — Mobile-first breakpoints
---------------------------------------------------------------- */

/* ── Tablet (≤ 900px) ── */
@media (max-width: 900px) {

  /* Hero */
  .hero-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .hero-discipline { max-width: 100%; }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image-wrapper {
    position: static;
    order: -1;
    width:  clamp(120px, 36vw, 200px);
    height: clamp(120px, 36vw, 200px);
    aspect-ratio: 1;
    border-radius: 50%;
    margin: 0 auto 8px;
    max-height: none;
    top: auto;
  }

  .about-portrait {
    object-position: center calc(20% - 10px);
  }

  .about-content { order: 1; }

  .about-bio { max-width: 100%; }

  /* Contact */
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-left {
    align-items: flex-start;
  }

  .contact-tagline { max-width: 100%; }

  /* Testimonials slider — tablet */
  .tm-card { width: clamp(280px, 70vw, 380px); }
  .testimonials-track { animation-duration: 35s; }
  .tm-social-link { width: 28px; height: 28px; }
  .tm-social-link svg { width: 12px; height: 12px; }

  /* Featured project — tablet */
  .fp__grid { grid-template-columns: 1fr; gap: 28px; }
  .fp__viewer { position: static; }
  .fp__slides-strip { display: none; }
  .fp__info { grid-column: auto; grid-row: auto; }
  .fp__viewer-nav { opacity: 0.8; }
  .fp__title { font-size: clamp(1.6rem, 5vw, 2.4rem); }

  /* Thumbs: fill full width — equal columns, no fixed px widths */
  .fp__thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    overflow-x: visible;
  }

  .fp__thumb {
    width: auto;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  /* Projects grid → 2 columns on tablet */
  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Mobile (≤ 600px) ── */
@media (max-width: 600px) {

  /* Hero */
  .hero { justify-content: flex-end; }

  .hero-meta { display: none; }

  .br-mobile { display: block; }

  .hero-cta { width: 100%; justify-content: center; }

  /* Projects: 1 column */
  .projects-grid { grid-template-columns: 1fr; }

  /* Featured project — mobile */
  .fp { padding-block: clamp(48px, 10vw, 80px); }

  .fp__grid { gap: 20px; }

  .fp__viewer {
    aspect-ratio: 16 / 9;
    border-radius: 12px;
  }

  .fp__viewer-nav {
    opacity: 0.7;
    width: 36px;
    height: 36px;
  }

  .fp__viewer-nav--prev { left: 10px; transform: translateY(-50%); }
  .fp__viewer-nav--next { right: 10px; transform: translateY(-50%); }

  .fp__title { font-size: 1.5rem; }

  .fp__thumbs { gap: 4px; }

  .fp__cta {
    width: 100%;
    justify-content: center;
  }

  /* Kill hover effects on touch */
  .fp__viewer:hover { border-color: var(--border); box-shadow: none; }
  .fp__thumb:hover { transform: none; opacity: 0.35; }
  .fp__thumb.is-active:hover { opacity: 1; }

  /* ── Testimonials — mobile-first carousel redesign ── */
  .testimonials-slider { padding-block: clamp(40px, 8vw, 64px); }

  /* Scroll-snap carousel */
  .testimonials-track-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
  }

  .testimonials-track-wrapper::-webkit-scrollbar { display: none; }
  .testimonials-track-wrapper { scrollbar-width: none; }

  .testimonials-track {
    animation: none;
    padding-inline: var(--gutter);
  }

  /* Hide cloned Set B */
  .tm-card[aria-hidden="true"] { display: none; }

  /* ── Card — generous, vertical stack ── */
  .tm-card {
    width: 82vw;
    scroll-snap-align: center;
    padding: 24px;
    gap: 20px;
  }

  .tm-top {
    display: contents;
  }

  .tm-author {
    order: 1;
    gap: 12px;
  }

  .tm-author img { width: 44px; height: 44px; }

  .tm-name { font-size: 0.86rem; }
  .tm-role { font-size: 0.6rem; }

  .tm-quote {
    order: 2;
  }

  .tm-quote p {
    font-size: 0.86rem;
    -webkit-line-clamp: unset;
    display: block;
  }

  .tm-socials {
    order: 3;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding-top: 16px;
    border-top: 1px solid var(--border);
  }

  .tm-social-link {
    width: 100%;
    height: 44px;
    border-radius: 10px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    gap: 10px;
    transition:
      border-color 0.2s ease,
      background 0.2s ease;
  }

  .tm-social-link:active {
    background: var(--accent-dim);
    border-color: rgba(36, 73, 255, 0.3);
  }

  .tm-social-link svg {
    width: 15px;
    height: 15px;
  }

  .tm-social-label {
    display: inline;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    color: var(--fg-2);
  }

  /* Kill desktop hover effects on touch */
  .tm-card:hover {
    transform: none;
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.025);
  }
  .tm-card:hover::before { opacity: 0; }
  .tm-card:hover::after  { transform: translateY(-50%) scaleY(0); }
  .tm-card:hover .tm-author img { transform: none; }
  .tm-social-link:hover { transform: none; background: var(--bg-2); }

  /* Featured project — desc line-height tighter on mobile */
  .fp__desc { line-height: 1.65; }

  /* Carousel 3D */
  .carousel-3d-section { display: none; }

  /* Section headers — reduce top whitespace on mobile */
  .section-hd { margin-bottom: clamp(24px, 5vw, 48px); }

  /* About — left-aligned (no centering on mobile) */
  .about-title,
  .about-bio { text-align: left; }

  .exp-section-title { justify-content: flex-start; }

  .exp-description { padding-left: 0; }

  .exp-role { font-size: 0.82rem; white-space: normal; }
  .exp-meta { font-size: 0.6rem; }

  .exp-logo { width: 34px; height: 34px; }

  /* Exp-toggle: bigger tap target on mobile (28px → 36px) */
  .exp-toggle { width: 36px; height: 36px; }

  /* Contact — left-aligned */
  .contact-hero {
    padding-block: clamp(48px, 10vw, 80px);
  }

  .contact-link-card { padding: 16px 14px; }
  .card-value { font-size: 0.82rem; }

  /* Section form — left-aligned on mobile */
  .section-form {
    text-align: left;
    align-items: stretch;
  }

  .section-form h2 { text-align: left; }
  .section-form > p { text-align: left; }

  /* Form CTA — full width on mobile */
  .contact-form .cta { width: 100%; }

  /* ── CTA padding bump — comfortable touch targets ── */
  .hero-cta,
  .cta,
  .fp__cta { padding-block: 16px; }

  /* ── :active states — instant touch feedback ── */
  .hero-cta:active,
  .fp__cta:active,
  .cta:active {
    background: rgba(36, 73, 255, 0.1);
    border-color: rgba(36, 73, 255, 0.4);
    color: var(--fg);
    transform: scale(0.97);
  }

  .contact-link-card:active {
    border-color: rgba(36, 73, 255, 0.4);
    background: rgba(36, 73, 255, 0.08);
    transform: translateX(3px);
  }

  .project-card:active {
    border-color: rgba(36, 73, 255, 0.3);
    transform: translateY(-2px);
  }

  .wwd-tab:active .wwd-tab-index { color: var(--accent); }
  .wwd-tab:active .wwd-tab-label { color: var(--fg); }

  /* ── Neutralize hover on touch — prevents sticky states ── */
  .project-card:hover {
    border-color: var(--border);
    transform: none;
  }
  .project-card:hover::after { transform: translateX(-50%) scaleX(0); }
  .project-card:hover .project-card-media img { transform: none; }
  .project-card:hover .project-card-overlay { opacity: 0; }

  .contact-link-card:hover {
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.025);
    transform: none;
  }
  .contact-link-card:hover::before { opacity: 0; }
  .contact-link-card:hover::after { transform: translateY(-50%) scaleY(0); }
  .contact-link-card:hover .card-icon { transform: none; background: var(--accent-dim); }
  .contact-link-card:hover .card-arrow { opacity: 0; transform: translateX(-6px); }

}

/* ── Very small (≤ 380px) ── */
@media (max-width: 380px) {
  .projects-grid { gap: 12px; }
  .project-card-title { font-size: 0.95rem; }
  .hero-title { letter-spacing: -0.03em; }
}

/* ── Motion preferences — reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-line-inner {
    transform: translateY(0) !important;
  }

  .hero-line {
    will-change: auto;
  }

  .hero-eyebrow,
  .hero-footer {
    opacity: 1 !important;
    will-change: auto;
  }

  .carousel-card {
    will-change: auto;
  }

  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .testimonials-track { animation: none; }
  .tm-card { transition: none; }
  .tm-social-link { transition: none; }
  .tm-author img { transition: none; }

  /* Featured project v2 — reduced motion */
  .fp__img-layer,
  .fp__thumb,
  .fp__cta,
  .fp__cta-arrow,
  .fp__viewer,
  .fp__viewer-nav,
  .fp__badge,
  .fp__progress,
  .fp__counter-current,
  .fp__reveal,
  .fp__viewer-tilt {
    transition: none !important;
    animation: none !important;
  }

  .fp__reveal { opacity: 1; transform: none; }
  .fp__viewer-tilt { transform: none !important; }
}/* ================================================================
   pipopstudio® — Theme System
   theme.css · v1.0
   ----------------------------------------------------------------
   DARK = default (existing :root tokens, no attribute needed)
   LIGHT = [data-theme="light"] on <html>
   
   This file is purely additive — zero edits to style.css or
   project-page.css. Load it AFTER both.
   
   Architecture:
   1. New semantic tokens (glass, overlays, cards) added to :root
   2. [data-theme="light"] overrides all tokens
   3. Component-level overrides for hardcoded rgba() values
   4. Sticky bottom menu styles
   5. Transition smoothing on theme switch
================================================================ */


/* ----------------------------------------------------------------
   0. NEW SEMANTIC TOKENS (dark defaults)
   ----------------------------------------------------------------
   These cover hardcoded rgba() values across both CSS files.
   Added here so light mode can override them cleanly.
---------------------------------------------------------------- */
:root {
  /* Glass / frosted surfaces */
  --glass-bg:        rgba(14, 14, 14, 0.85);
  --glass-bg-heavy:  rgba(14, 14, 14, 0.55);
  --glass-border:    rgba(255, 255, 255, 0.1);

  /* Cards / subtle surfaces */
  --card-bg:         rgba(255, 255, 255, 0.025);
  --card-hover-bg:   rgba(36, 73, 255, 0.05);

  /* Overlays */
  --overlay-light:   rgba(14, 14, 14, 0.55);
  --overlay-heavy:   rgba(6, 6, 6, 0.97);

  /* Grain */
  --grain-opacity:   0.028;

  /* Scroll line */
  --scroll-line-bg:  var(--fg-3);
}


/* ----------------------------------------------------------------
   1. LIGHT MODE — Token overrides
---------------------------------------------------------------- */
[data-theme="light"] {
  /* Core palette */
  --bg:           #f5f5f5;
  --bg-2:         #ebebeb;
  --bg-3:         #e0e0e0;
  --fg:           #1a1a1a;
  --fg-2:         #4a4a4a;
  --fg-3:         #888;
  --accent:       #2449ff;
  --accent-dim:   rgba(36, 73, 255, 0.08);
  --accent-glow:  rgba(36, 73, 255, 0.15);
  --green:        #2db877;
  --border:       rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.16);

  /* Glass */
  --glass-bg:       rgba(245, 245, 245, 0.88);
  --glass-bg-heavy: rgba(245, 245, 245, 0.7);
  --glass-border:   rgba(0, 0, 0, 0.08);

  /* Cards */
  --card-bg:       rgba(0, 0, 0, 0.025);
  --card-hover-bg: rgba(36, 73, 255, 0.04);

  /* Overlays */
  --overlay-light: rgba(255, 255, 255, 0.6);
  --overlay-heavy: rgba(245, 245, 245, 0.97);

  /* Grain — less visible on light */
  --grain-opacity: 0.015;

  /* Scroll line */
  --scroll-line-bg: var(--fg-3);
}


/* ----------------------------------------------------------------
   2. COMPONENT OVERRIDES — Light mode
   ----------------------------------------------------------------
   Target hardcoded rgba() values that don't use tokens.
   Scoped under [data-theme="light"] for zero dark-mode impact.
---------------------------------------------------------------- */

/* ── Grain ── */
[data-theme="light"] .grain { opacity: var(--grain-opacity); }

/* ── Header ── */
[data-theme="light"] .site-header {
  background-color: var(--glass-bg);
}

/* Logo — invert white SVG to black */
[data-theme="light"] .logo {
  filter: invert(1);
}

/* ── Cursor ── */
@media (hover: hover) and (pointer: fine) {
  [data-theme="light"] .cursor-dot {
    background: var(--fg);
  }
  [data-theme="light"] .cursor-ring {
    border-color: rgba(26, 26, 26, 0.25);
  }
  [data-theme="light"] body.cursor-hover .cursor-dot {
    background: var(--accent);
  }
  [data-theme="light"] body.cursor-hover .cursor-ring {
    border-color: var(--accent);
  }
}

/* ----------------------------------------------------------------
   3b. BURGER MENU (mobile)
   ----------------------------------------------------------------
   Fullscreen overlay — Projects, Services, Blog + FR/EN toggle.
   Triggered by .burger-btn in the header.
---------------------------------------------------------------- */

/* ── Burger button — mobile only ── */
.burger-btn {
  display: none; /* shown on mobile via media query */
  background: none;
  border: none;
  cursor: pointer;
  color: var(--fg-2);
  padding: 4px;
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.burger-btn:hover { color: var(--fg); }
.burger-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.burger-icon-close { display: none; }
.burger-btn[aria-expanded="true"] .burger-icon-open { display: none; }
.burger-btn[aria-expanded="true"] .burger-icon-close { display: block; }

/* ── Overlay ── */
.burger-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 998;
  background: rgba(14, 14, 14, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.burger-menu.is-open {
  opacity: 1;
  visibility: visible;
}

[data-theme="light"] .burger-menu {
  background: rgba(255, 255, 255, 0.96);
}

/* ── Nav links ── */
.burger-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.burger-nav-link {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  font-weight: 700;
  color: var(--fg-2);
  text-decoration: none;
  letter-spacing: -0.02em;
  padding: 8px 16px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}
.burger-nav-link:hover {
  color: var(--fg);
  background: var(--accent-dim);
}

/* ── Lang toggle inside burger ── */
.burger-lang {
  display: flex;
  align-items: center;
  gap: 6px;
}
.burger-lang .lang-toggle {
  font-size: 0.85rem;
  padding: 6px 12px;
}

/* ── Responsive: show/hide ── */
@media (max-width: 900px) {
  .burger-btn { display: flex; align-items: center; justify-content: center; }
  .header-nav { display: none; }
  .lang-toggle-wrapper { display: none; }
  .header-theme-toggle { display: none !important; }
}

@media (min-width: 901px) {
  .burger-btn { display: none; }
  .burger-menu { display: none; }
}


/* ----------------------------------------------------------------
   4. STICKY BOTTOM MENU
   ----------------------------------------------------------------
   Injected via header.html (fetched). Contains nav shortcuts
   + theme toggle. Hidden on desktop (header nav is sufficient).
---------------------------------------------------------------- */
.sticky-menu {
  position: fixed;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: none; /* shown on mobile via media query */

  /* Liquid glass */
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.08) 0%,
      rgba(255, 255, 255, 0.03) 50%,
      rgba(255, 255, 255, 0.06) 100%
    );
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);

  /* Shape */
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);

  /* Depth */
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.25),
    0 0 0 0.5px rgba(255, 255, 255, 0.06) inset;

  padding: 6px 8px;
}

/* Light mode — invert glass tints */
[data-theme="light"] .sticky-menu {
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.65) 0%,
      rgba(255, 255, 255, 0.45) 50%,
      rgba(255, 255, 255, 0.55) 100%
    );
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.08),
    0 0 0 0.5px rgba(255, 255, 255, 0.5) inset;
}

.sticky-menu-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

/* ── Menu item ── */
.sticky-menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 16px;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  color: var(--fg-3);
  border-radius: 14px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.sticky-menu-item:active {
  background: var(--accent-dim);
  color: var(--accent);
  transform: scale(0.92);
}

.sticky-menu-item svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sticky-menu-label {
  font-family: var(--font-mono);
  font-size: 0.48rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

/* ── Theme toggle button ── */
.theme-toggle {
  composes: sticky-menu-item; /* same base styles */
}

/* Sun icon — visible in dark mode */
.theme-toggle .icon-sun  { display: block; }
.theme-toggle .icon-moon { display: none; }

/* Moon icon — visible in light mode */
[data-theme="light"] .theme-toggle .icon-sun  { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* ── Show on mobile ── */
@media (max-width: 900px) {
  .sticky-menu { display: flex; }

  /* Bottom padding to clear the floating menu */
  body { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}

/* ── Desktop: theme toggle in header instead ── */
.header-theme-toggle {
  display: none; /* hidden on mobile — sticky menu handles it */
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  color: var(--fg-3);
  padding: 0;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.header-theme-toggle:hover {
  color: var(--fg);
  border-color: var(--border-hover);
  background: var(--accent-dim);
}

.header-theme-toggle svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-theme-toggle .icon-sun  { display: block; }
.header-theme-toggle .icon-moon { display: none; }
[data-theme="light"] .header-theme-toggle .icon-sun  { display: none; }
[data-theme="light"] .header-theme-toggle .icon-moon { display: block; }

@media (min-width: 901px) {
  .header-theme-toggle { display: flex; align-items: center; justify-content: center; }
}




/* ----------------------------------------------------------------
   3. PROJECT PAGE OVERRIDES (project-page.css)
   ----------------------------------------------------------------
   Scoped to [data-theme="light"] — no impact when dark.
---------------------------------------------------------------- */

/* Caption bar */
[data-theme="light"] .pv2-caption {
  background: var(--glass-bg);
}

/* Chapter bg number — more visible in light */
[data-theme="light"] .pv2-chapter-bg-num {
  color: rgba(0, 0, 0, 0.03);
}

/* Hero gradient — keep dark overlay even in light mode */
[data-theme="light"] .pv2-hero::after {
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.6));
}

/* Slider & strip images — outline to separate from white backgrounds */
[data-theme="light"] .pv2-slider {
  border: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .pv2-strip-item {
  border: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .pv2-img {
  border: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .pv2-mosaic-item {
  border: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .pv2-img--full {
  border: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .pv2-closing-img {
  border: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .pv2-slider-slide img {
  border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Slider nav */
[data-theme="light"] .pv2-slider-nav {
  background: var(--glass-bg-heavy);
  border-color: var(--glass-border);
}

[data-theme="light"] .pv2-slider-nav:hover {
  background: rgba(36, 73, 255, 0.2);
  border-color: rgba(36, 73, 255, 0.3);
  color: #f0f0f0;
}

/* Slider expand button */
[data-theme="light"] .pv2-slider-expand {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--fg);
}

[data-theme="light"] .pv2-slider-expand:hover {
  background: rgba(36, 73, 255, 0.2);
}

/* Lightbox */
[data-theme="light"] .pv2-lightbox {
  background: rgba(245, 245, 245, 0.96);
}

[data-theme="light"] .pv2-lb-bar {
  background: linear-gradient(to bottom, rgba(245, 245, 245, 0.6), transparent);
}

[data-theme="light"] .pv2-lb-counter {
  color: var(--fg-2);
}

[data-theme="light"] .pv2-lb-close {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
  color: var(--fg);
}

[data-theme="light"] .pv2-lb-close:hover {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .pv2-lb-nav {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--fg);
}

[data-theme="light"] .pv2-lb-nav:hover {
  background: rgba(36, 73, 255, 0.15);
  border-color: rgba(36, 73, 255, 0.25);
}

[data-theme="light"] .pv2-lb-caption {
  background: linear-gradient(to top, rgba(245, 245, 245, 0.5), transparent);
}

[data-theme="light"] .pv2-lb-caption-text {
  color: var(--fg-3);
}

/* Rail cards */
[data-theme="light"] .pv2-rail-card {
  background: var(--bg-2);
}

/* Keep dark overlay + white CTA on rail cards (same as dark mode) */
[data-theme="light"] .pv2-rail-card-overlay {
  background: rgba(14, 14, 14, 0.45);
}

[data-theme="light"] .pv2-rail-card-cta {
  color: #f0f0f0;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Video carousel play button */
[data-theme="light"] .pv2-vcaro-play {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .pv2-vcaro-play-icon {
  color: var(--fg);
}

[data-theme="light"] .pv2-vcaro-play:hover {
  background: rgba(36, 73, 255, 0.3);
  border-color: rgba(36, 73, 255, 0.4);
}

[data-theme="light"] .pv2-vcaro-play:hover .pv2-vcaro-play-icon {
  color: #fff;
}

/* Testimonials (project page) */
[data-theme="light"] .pv2-testimonial {
  background: #fff;
}





/* ── CTA Banner — services page (from project-page.css) ── */
.pv2-cta-banner {
  padding: clamp(40px, 5vw, 64px) var(--gutter);
}

.pv2-cta-banner-inner {
  position: relative;
  cursor: pointer;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 24px);
  padding: clamp(20px, 3vw, 32px) clamp(24px, 3vw, 36px);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.3s ease;
}

.pv2-cta-banner-inner:hover {
  border-color: rgba(36, 73, 255, 0.25);
}

.pv2-cta-banner-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0;
}

.pv2-cta-banner-inner::before {
  content: "";
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: var(--fg);
  opacity: 0.15;
  -webkit-mask: url(/assets/img/logos/icone-pipop.svg) center / contain no-repeat;
  mask: url(/assets/img/logos/icone-pipop.svg) center / contain no-repeat;
  transition: opacity 0.3s ease;
}

.pv2-cta-banner-inner:hover::before {
  background: var(--accent);
  opacity: 1;
}


.pv2-cta-banner-text {
  font-family: var(--font-display);
  font-size: clamp(0.88rem, 1.1vw, 0.95rem);
  font-weight: 500;
  color: var(--fg-2);
  flex: 1;
  margin: 0;
}

.pv2-cta-banner-link {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--fg-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 20px;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.pv2-cta-banner-link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.pv2-cta-banner-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.pv2-cta-banner-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.pv2-cta-banner-link:hover svg {
  transform: translate(2px, -2px);
}

@media (max-width: 600px) {
  .pv2-cta-banner-inner {
    flex-direction: column;
    text-align: center;
  }
  .pv2-cta-banner-icon { display: none; }
}


/* ── CTA Banner — actions & social icons ── */
.pv2-cta-banner-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.pv2-cta-banner-socials {
  display: flex;
  align-items: center;
  gap: 6px;
}


/* ── Project Rail — services page (from project-page.css) ── */
/* ================================================================
   11. PROJECT RAIL
================================================================ */
.pv2-rail-section {
  padding-block: clamp(48px, 7vw, 80px);
  padding-inline: 0;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  overflow: hidden;
}

.pv2-rail-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-inline: var(--gutter);
  margin-bottom: clamp(20px, 3vw, 32px);
}

.pv2-rail-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-3);
  min-height: 1em;
}

.pv2-rail-count {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--fg-3);
  letter-spacing: 0.08em;
}

.pv2-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--gutter); /* first card snaps to gutter, not viewport edge */
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-inline: var(--gutter);
  cursor: grab;
}

.pv2-rail:active { cursor: grabbing; }
.pv2-rail::-webkit-scrollbar { display: none; }

.pv2-rail::after {
  content: '';
  flex: 0 0 calc(var(--gutter) - 12px);
}

.pv2-rail-card {
  flex: 0 0 auto;
  width: clamp(200px, 64vw, 260px);
  scroll-snap-align: start;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.3s ease, transform 0.4s var(--ease-out);
  will-change: transform;
}

.pv2-rail-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.pv2-rail-card-media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  position: relative;
  background: var(--bg-2);
}

.pv2-rail-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease-out);
  display: block;
}

.pv2-rail-card:hover .pv2-rail-card-media img { transform: scale(1.06); }

.pv2-rail-card-body { padding: clamp(12px, 2vw, 16px); }

.pv2-rail-card-tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 6px;
  display: block;
}

.pv2-rail-card-name {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 4px;
  line-height: 1.2;
}

.pv2-rail-card-desc {
  font-size: 0.78rem;
  color: var(--fg-3);
  line-height: 1.5;
}

.pv2-rail-card--current {
  opacity: 0.38;
  pointer-events: none;
  cursor: default;
}

.pv2-rail-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 14, 14, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.pv2-rail-card:hover .pv2-rail-card-overlay { opacity: 1; }

.pv2-rail-card-cta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 40px;
  padding: 8px 16px;
  transform: translateY(6px);
  transition: transform 0.35s var(--ease-out);
}

.pv2-rail-card:hover .pv2-rail-card-cta { transform: translateY(0); }




/* ── Services hero — reuses .hero from homepage ── */
.services-hero {
  min-height: 60svh;
}

.sh-title-sm .hero-line-inner {
  font-size: clamp(2rem, 6vw, 5rem);
}

.sh-accent {
  color: var(--fg);
  font-weight: 500;
}

.sh-intro {
  font-size: clamp(0.88rem, 1vw, 0.95rem);
  line-height: 1.75;
  color: var(--fg-2);
  max-width: 520px;
}

@media (max-width: 600px) {
  .services-hero { min-height: 50svh; }
}



/* ── Project reel — dual-direction infinite scroll ── */
.reel {
  padding: clamp(40px, 6vw, 72px) 0;
  overflow: hidden;
}

.reel-row {
  margin-bottom: clamp(8px, 1.2vw, 14px);
  overflow: hidden;
}

.reel-row:last-child {
  margin-bottom: 0;
}

.reel-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.reel-track--left {
  animation: reelLeft 80s linear infinite;
}

.reel-track--right {
  animation: reelRight 80s linear infinite;
}

.reel-img {
  flex-shrink: 0;
  width: clamp(260px, 28vw, 400px);
  margin-right: clamp(8px, 1.2vw, 14px);
  border-radius: 8px;
  overflow: hidden;
}

.reel-img img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

@keyframes reelLeft {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes reelRight {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

@media (max-width: 600px) {
  .reel-img { width: 200px; }
  .reel-track--left,
  .reel-track--right { animation-duration: 50s; }
}

@media (prefers-reduced-motion: reduce) {
  .reel-track { animation: none !important; }
}

/* ── Why pipopstudio — Statement-driven differentiators ── */
.why {
  padding: clamp(80px, 10vw, 120px) var(--gutter) clamp(60px, 8vw, 100px);
  max-width: calc(1200px + var(--gutter) * 2);
  margin-inline: auto;
}

.why-hd {
  margin-bottom: clamp(40px, 5vw, 56px);
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Item ── */
.why-item {
  padding: clamp(32px, 4vw, 48px) 0;
  border-top: 1px solid var(--border);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: calc(var(--why-i, 0) * 0.1s);
}

.why-item:last-child {
  border-bottom: 1px solid var(--border);
}

.why-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Title row: num + statement + extending line ── */
.why-row {
  display: flex;
  align-items: baseline;
  gap: clamp(12px, 2vw, 20px);
}

.why-num {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.5s ease 0.2s;
}

.why-item.is-visible .why-num {
  opacity: 1;
}

.why-statement {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.03em;
  line-height: 1.1;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Extending line from title to right edge */
.why-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  margin-left: clamp(12px, 2vw, 24px);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--why-i, 0) * 0.1s + 0.3s);
  align-self: center;
}

.why-item.is-visible .why-line {
  transform: scaleX(1);
}

/* ── Body text — slides in ── */
.why-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.4s;
}

.why-item.is-visible .why-body {
  max-height: 200px;
}

.why-body p {
  padding-top: clamp(14px, 2vw, 20px);
  padding-left: clamp(36px, 4.5vw, 52px);
  font-size: clamp(0.88rem, 1vw, 0.95rem);
  line-height: 1.75;
  color: var(--fg-2);
  max-width: 560px;
}

/* Proof line */
.why-proof {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-top: 16px;
  padding-left: clamp(36px, 4.5vw, 52px);
  opacity: 0;
  transition: opacity 0.5s ease 0.6s;
}

.why-item.is-visible .why-proof {
  opacity: 1;
}

.why-proof a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(36, 73, 255, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.3s ease;
}

.why-proof a:hover {
  text-decoration-color: currentColor;
}

.why-proof-icon {
  flex-shrink: 0;
  filter: brightness(0) saturate(100%) invert(22%) sepia(92%) saturate(3000%) hue-rotate(225deg) brightness(100%);
}

/* ── Hover: line pulses accent ── */
.why-item:hover .why-line {
  background: var(--accent);
}

.why-item:hover .why-statement {
  color: var(--accent);
  transition: color 0.3s ease;
}

/* ── Mobile ── */
@media (max-width: 600px) {
.why-statement {
    white-space: normal;
  }
  .why-line {
    display: none;
  }
  .why-proof {
    padding-left: 0;
  }
  .why-body p {
    padding-left: 0;
  }
}

/* ── Light theme ── */
[data-theme="light"] .why-item:hover .why-line {
  background: var(--accent);
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .why-item { opacity: 1; transform: none; transition: none; }
  .why-line { transform: scaleX(1); transition: none; }
  .why-body { max-height: 200px; transition: none; }
  .why-num { opacity: 1; transition: none; }
}

/* ── Services section ── */
.services-section {
  padding: clamp(60px, 8vw, 100px) var(--gutter);
  max-width: calc(1200px + var(--gutter) * 2);
  margin-inline: auto;
}

.services-hd { margin-bottom: clamp(40px, 5vw, 64px); }

/* ── Service list — accordion ── */
.svc-list {
  display: flex;
  flex-direction: column;
}

.svc-item {
  border-top: 1px solid var(--border);
}
.svc-item:last-child {
  border-bottom: 1px solid var(--border);
}

/* ── Head — clickable ── */
.svc-head {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 20px);
  width: 100%;
  padding: clamp(20px, 3vw, 32px) 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.svc-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  flex-shrink: 0;
  min-width: 24px;
  transition: color 0.3s ease;
}

.svc-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--fg-2);
  letter-spacing: -0.02em;
  line-height: 1.2;
  flex: 1;
  transition: color 0.3s ease;
}

.svc-subtitle {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(0.78rem, 1vw, 0.88rem);
  font-weight: 400;
  color: var(--fg-3);
  letter-spacing: 0;
  line-height: 1.4;
  margin-top: 4px;
}

.svc-item.is-open .svc-title,
.svc-head:hover .svc-title {
  color: var(--fg);
}

.svc-chevron {
  width: 16px;
  height: 16px;
  color: var(--fg-3);
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s ease;
}

.svc-item.is-open .svc-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}


/* ── Body — collapse/expand ── */
.svc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.svc-item.is-open .svc-body {
  max-height: 2000px;
}

.svc-body-inner {
  padding: 0 0 clamp(28px, 4vw, 40px) clamp(36px, 4vw, 44px);
}

.svc-body-inner > p,
.svc-deliverables {
  max-width: 640px;
}

.svc-body-inner p {
  font-size: clamp(0.88rem, 1vw, 0.95rem);
  line-height: 1.75;
  color: var(--fg-2);
  margin-bottom: 1em;
}

.svc-body-inner p:last-of-type {
  margin-bottom: 0;
}

.svc-body-inner p a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.3s ease;
}

.svc-body-inner p a:hover {
  text-decoration-color: currentColor;
}

/* ── Deliverables ── */
.svc-deliverables {
  margin-top: clamp(20px, 2.5vw, 28px);
  padding-top: clamp(16px, 2vw, 20px);
  border-top: 1px solid var(--border);
}

.svc-del-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 8px;
}

.svc-deliverables p {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--fg-2);
}

/* Deliverable chips */
.svc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.svc-chip {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: var(--fg-2);
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 100px;
  white-space: nowrap;
}

/* Per-service CTA */
.svc-cta {
  display: inline-block;
  margin-top: clamp(16px, 2vw, 24px);

  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-decoration: none;
  padding: 10px 24px;
  border: 1px solid rgba(36, 73, 255, 0.25);
  border-radius: 100px;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.svc-cta:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}



/* ── Mini project rail ── */
.svc-rail {
  display: flex;
  gap: clamp(10px, 1.5vw, 14px);
  margin-top: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.svc-rail::-webkit-scrollbar { display: none; }

.svc-rail-row {
  display: flex;
  align-items: flex-end;
  gap: clamp(16px, 2vw, 24px);
}

.svc-rail-row .svc-rail {
  flex: 1;
  min-width: 0;
}

.svc-rail-row .svc-cta {
  flex-shrink: 0;
  margin-top: 0;
  white-space: nowrap;
  align-self: flex-end;
}

@media (max-width: 900px) {
  .svc-rail-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .svc-rail-row .svc-cta {
    margin-top: 16px;
    align-self: auto;
  }
}



.svc-rail-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-top: 20px;
  margin-bottom: 10px;
}

.svc-rail-card {
  flex: 0 0 clamp(140px, 16vw, 180px);
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.3s ease, transform 0.2s ease;
}

.svc-rail-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.svc-rail-card img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.svc-rail-name {
  display: block;
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: var(--fg-2);
  transition: color 0.2s ease;
}

.svc-rail-card:hover .svc-rail-name {
  color: var(--accent);
}


/* ── Mobile ── */
@media (max-width: 600px) {
  .svc-body-inner {
    padding-left: 0;
  }
}

/* ── Process timeline ── */
.hww {
  --hww-line-x: 8px;
  --hww-dot-size: 13px;
  --hww-pad: clamp(40px, 5vw, 64px);

  padding: clamp(80px, 10vw, 120px) var(--gutter);
  max-width: calc(1200px + var(--gutter) * 2);
  margin-inline: auto;
}

.hww-header {
  margin-bottom: clamp(48px, 6vw, 72px);
}

/* Grid: timeline left, counter right */
.hww-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 clamp(32px, 5vw, 64px);
}

/* Sidebar with sticky counter */
.hww-sidebar {
  position: relative;
}

.hww-counter {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--fg-3);
  display: flex;
  align-items: baseline;
  gap: 2px;
  padding: 8px 0;
}

.hww-counter-current {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.hww-counter-sep {
  color: var(--fg-3);
  margin: 0 4px;
}

.hww-counter-total {
  font-size: 0.72rem;
  color: var(--fg-3);
}

.hww-counter.is-pinned {
  position: fixed;
  top: calc(var(--header-h) + 32px);
  z-index: 2;
}

/* Timeline container */
.hww-timeline {
  position: relative;
  padding-left: var(--hww-pad);
}

/* Vertical line — centered on dots */
.hww-line {
  position: absolute;
  left: calc(var(--hww-dot-size) / 2);
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.hww-line-fill {
  width: 100%;
  height: 0%;
  background: var(--accent);
  transition: height 0.15s linear;
}

/* Step */
.hww-step {
  position: relative;
  padding-bottom: clamp(48px, 6vw, 64px);
  opacity: 0.3;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hww-step:last-child {
  padding-bottom: 0;
}

.hww-step.is-active {
  opacity: 1;
  transform: translateY(0);
}

/* Dot — centered on the line */
.hww-dot {
  position: absolute;
  left: calc(-1 * var(--hww-pad));
  top: 6px;
  width: var(--hww-dot-size);
  height: var(--hww-dot-size);
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg);
  transition: border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
  z-index: 1;
}

.hww-step.is-active .hww-dot {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(36, 73, 255, 0.15);
}

/* Meta line (number + duration) */
.hww-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.hww-num {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.hww-duration {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  color: var(--fg-3);
  text-transform: uppercase;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 100px;
}

/* Title */
.hww-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.hww-step:not(.is-active) .hww-title {
  color: var(--fg-2);
}

/* Body text */
.hww-step p {
  font-size: clamp(0.88rem, 1vw, 0.95rem);
  line-height: 1.75;
  color: var(--fg-2);
  max-width: 560px;
}

/* ── Tablet: hide counter ── */
@media (max-width: 900px) {
  .hww-sidebar {
    display: none;
  }
  .hww-body {
    grid-template-columns: 1fr;
  }
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .hww {
    --hww-pad: 32px;
    --hww-dot-size: 11px;
  }

  .hww-line {
    left: calc(var(--hww-dot-size) / 2);
  }
}

/* ── Light theme ── */
[data-theme="light"] .hww-dot {
  background: var(--bg);
}
[data-theme="light"] .hww-step.is-active .hww-dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(36, 73, 255, 0.1);
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .hww-step { opacity: 1; transform: none; transition: none; }
  .hww-dot { transition: none; }
  .hww-line-fill { transition: none; }
}


/* ── Services contact — split layout ── */
.svc-contact {
  padding: clamp(80px, 10vw, 120px) var(--gutter);
  max-width: calc(1200px + var(--gutter) * 2);
  margin-inline: auto;
  border-top: 1px solid var(--border);
}

.svc-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

/* ── Left column — pitch ── */
.svc-contact-left {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.svc-contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: clamp(20px, 3vw, 32px);
}

.svc-contact-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  position: relative;
}

.svc-contact-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(62, 207, 142, 0.22);
  animation: badgePulse 2s ease-in-out infinite;
}

.svc-contact-title {
  margin-bottom: clamp(16px, 2vw, 24px);
}

.svc-contact-line {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--fg);
}

.svc-contact-desc {
  font-size: clamp(0.88rem, 1vw, 0.95rem);
  line-height: 1.75;
  color: var(--fg-2);
  max-width: 440px;
  margin-bottom: clamp(24px, 3vw, 32px);
}

.svc-contact-trust {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.svc-contact-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--fg-2);
}

.svc-contact-trust-item svg {
  color: var(--green);
  flex-shrink: 0;
}

/* ── Right column — form ── */
.svc-contact-right .contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.svc-contact-right .contact-form input,
.svc-contact-right .contact-form textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  color: var(--fg);
  transition: border-color 0.3s ease;
}

.svc-contact-right .contact-form input::placeholder,
.svc-contact-right .contact-form textarea::placeholder {
  color: var(--fg-3);
}

.svc-contact-right .contact-form input:focus,
.svc-contact-right .contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.svc-contact-right .contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.svc-contact-right .cta {
  width: 100%;
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.svc-contact-right .cta:hover {
  opacity: 0.85;
}

.svc-contact-right .form-note {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.04em;
  color: var(--fg-3);
  text-align: center;
  margin-top: 4px;
}

/* ── Responsive ── */
@media (max-width: 800px) {
  .svc-contact-grid {
    grid-template-columns: 1fr;
    gap: clamp(32px, 5vw, 48px);
  }
}

/* ── Light theme ── */
[data-theme="light"] .svc-contact-right .contact-form input,
[data-theme="light"] .svc-contact-right .contact-form textarea {
  background: #fff;
}

/* ── Pricing section ── */
.pricing {
  padding: clamp(60px, 8vw, 100px) var(--gutter);
  max-width: calc(1200px + var(--gutter) * 2);
  margin-inline: auto;
  border-top: 1px solid var(--border);
}

.pricing-hd {
  margin-bottom: clamp(40px, 5vw, 56px);
}

/* ── Plan grid ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2vw, 20px);
  margin-bottom: clamp(48px, 6vw, 72px);
}

.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.3s ease;
}

.plan:hover { border-color: var(--border-hover); }

.plan--featured {
  border-color: var(--accent);
  border-width: 2px;
}

.plan--featured:hover { border-color: var(--accent); }

/* Eyebrow */
.plan-eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.plan-num {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--fg-3);
}

.plan-badge {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid rgba(36, 73, 255, 0.3);
  background: transparent;
  color: var(--accent);
  position: relative;
  overflow: hidden;
}

.plan-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(36, 73, 255, 0.12) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: fpBadgeShimmer 3s ease-in-out infinite;
}

/* Name + tagline */
.plan-name {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.plan-tagline {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--fg-2);
  margin-bottom: 20px;
}

/* Price */
.plan-from {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 4px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-bottom: 4px;
}

.plan-amount {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.5vw, 2.2rem);
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.03em;
  line-height: 1;
}

.plan-currency {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg-2);
}

.plan-scope {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.04em;
  color: var(--fg-3);
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  display: block;
}

/* Delivery */
.plan-delivery {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  color: var(--fg-3);
  margin-bottom: 20px;
}

.plan-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

/* Item list */
.plan-items {
  list-style: none;
  flex: 1;
  margin-bottom: 24px;
}

.plan-inc,
.plan-exc {
  font-size: 0.8rem;
  line-height: 1.5;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  padding-left: 20px;
  position: relative;
}

.plan-inc:last-child,
.plan-exc:last-child { border-bottom: none; }

.plan-inc { color: var(--fg-2); }
.plan-exc { color: var(--fg-3); }

.plan-inc::before,
.plan-exc::before {
  position: absolute;
  left: 0;
  top: 6px;
  font-size: 0.7rem;
}

.plan-inc::before {
  content: "✓";
  color: var(--green);
}

.plan-exc::before {
  content: "×";
  color: var(--fg-3);
}

/* CTA */
.plan-cta {
  display: block;
  width: 100%;
  padding: 12px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg);
  text-decoration: none;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.plan-cta:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.03);
}

.plan--featured .plan-cta {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.plan--featured .plan-cta:hover {
  opacity: 0.85;
}

/* ── Custom services ── */
.pricing-custom {
  padding-top: clamp(40px, 5vw, 56px);
  border-top: 1px solid var(--border);
}

.pricing-custom-hd {
  margin-bottom: clamp(24px, 3vw, 32px);
}

.pricing-custom-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1.5vw, 16px);
  margin-bottom: clamp(32px, 4vw, 40px);
}

.custom-card {
  padding: clamp(18px, 2.5vw, 24px);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease;
}

.custom-card:hover { border-color: var(--border-hover); }

.custom-icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
  margin-bottom: 14px;
}

.custom-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 6px;
}

.custom-desc {
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--fg-2);
  flex: 1;
  margin-bottom: 16px;
}

.custom-call {
  display: block;
  width: 100%;
  padding: 8px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg);
  text-decoration: none;
  transition: border-color 0.3s ease;
}

.custom-call:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.03);
}

/* Footer */
.pricing-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding-top: clamp(16px, 2vw, 24px);
}

.pricing-note {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--fg-2);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-custom-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 500px) {
  .pricing-custom-grid { grid-template-columns: 1fr; }

}

/* ── Light theme ── */
[data-theme="light"] .plan--featured { border-color: var(--accent); }
[data-theme="light"] .plan-cta:hover { background: rgba(0, 0, 0, 0.04); }
[data-theme="light"] .plan--featured .plan-cta { background: var(--accent); color: #fff; }
[data-theme="light"] .plan--featured .plan-cta:hover { background: var(--accent); opacity: 0.85; }
[data-theme="light"] .custom-call:hover { background: rgba(0, 0, 0, 0.04); }


/* ── Active nav link ── */
.header-nav a.is-current { color: var(--fg); }

/* ── Light theme ── */
[data-theme="light"] .svc-rail-card { border-color: rgba(0, 0, 0, 0.08); }
[data-theme="light"] .svc-rail-card:hover { border-color: var(--accent); }
[data-theme="light"] .svc-step:hover { border-color: rgba(36, 73, 255, 0.25); }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .svc-body { transition: none; max-height: none; overflow: visible; }
  .svc-chevron { transition: none; }
  .svc-title { transition: none; }
  .svc-rail-card { transition: none; }
}


/* ── Active nav link ── */
.header-nav a.is-current { color: var(--fg); }