/* ==========================================================================
   Suddenly Creative Studio — Y2K UI theme
   Tokens & rules follow y2k-ui.web.id: flat window chrome, thick navy
   outlines, pastel fills, 4-8px radius, zero shadow, no glassmorphism.
   ========================================================================== */

:root {
  /* Per-division accent (portfolio dots, modal tabs) */
  --div-web-apps: #8ed1fc;
  --div-visual-motion: #ff8fcf;
  --div-3d-modelling: #8ff0d0;
  --div-event-production: #b69cff;
  --div-event-documentation: #ffe45e;

  /* Y2K UI palette (exact tokens from y2k-ui.web.id) */
  --y2k-ink: #1b1b3a;
  --y2k-ink-muted: #505266;
  --y2k-blue: #8ed1fc;
  --y2k-pink: #ff8fcf;
  --y2k-lilac: #b69cff;
  --y2k-mint: #8ff0d0;
  --y2k-lemon: #ffe45e;
  --y2k-panel: #d7dde8;

  --bg-page: #f7f6fb;
  --card-bg: #ffffff;

  /* Very light section tint bands (color-blocked zine rhythm) */
  --tint-blue: #eef8ff;
  --tint-pink: #fff2f9;
  --tint-lemon: #fffbe8;
  --tint-lilac: #f7f1ff;

  --border-w: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 11px;

  --container-width: 1680px;
  --nav-height: 76px;

  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-snappy: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 16px);
}

body {
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  background: var(--bg-page);
  color: var(--y2k-ink);
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ==========================================================================
   Decorative stickers — flat pastel shapes with a spring float/wiggle,
   standing in for the blurred glass orbs (which this kit explicitly rejects)
   ========================================================================== */

.sticker {
  position: absolute;
  color: var(--y2k-pink);
  -webkit-text-stroke: 1.5px var(--y2k-ink);
  paint-order: stroke fill;
  pointer-events: none;
  animation: sticker-float 5s var(--ease-spring) infinite, sticker-wiggle 4.5s ease-in-out infinite;
}

@keyframes sticker-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes sticker-wiggle {
  0%, 100% { rotate: -6deg; }
  50% { rotate: 6deg; }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ==========================================================================
   Buttons — flat pastel fill, thick navy border, snappy press
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  border: var(--border-w) solid var(--y2k-ink);
  cursor: pointer;
  transition: transform 0.15s var(--ease-snappy), background 0.15s var(--ease-snappy);
  white-space: nowrap;
  color: var(--y2k-ink);
}

.btn:active {
  transform: translateY(1.5px) scale(0.97);
}

.btn-primary {
  background: var(--y2k-lemon);
}

.btn-primary:hover {
  background: var(--y2k-pink);
}

.btn-glass {
  background: #fff;
}

.btn-glass:hover {
  background: var(--y2k-panel);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 14px;
}

/* ==========================================================================
   Navbar — flat card, not a blurred pill
   ========================================================================== */

.navbar {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top));
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-inline: 16px;
}

.navbar-inner {
  width: 100%;
  max-width: var(--container-width);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 8px 12px 8px 16px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: var(--border-w) solid var(--y2k-ink);
  transition: background 0.3s var(--ease-snappy);
}

.navbar.is-scrolled .navbar-inner {
  background: var(--y2k-panel);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  min-width: 0;
  flex-shrink: 1;
  color: var(--y2k-ink);
}

.brand-dot {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  border: var(--border-w) solid var(--y2k-ink);
}

.brand-dot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--y2k-ink);
  transition: background 0.15s var(--ease-snappy);
}

.nav-links a:hover {
  background: var(--y2k-panel);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-cta-btn {
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  background: var(--y2k-pink);
  border: var(--border-w) solid var(--y2k-ink);
  color: var(--y2k-ink);
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s var(--ease-snappy);
}

.nav-toggle:active {
  transform: translateY(1.5px) scale(0.95);
}

.mobile-menu {
  width: 100%;
  max-width: var(--container-width);
  margin-top: 8px;
  padding: 8px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: var(--border-w) solid var(--y2k-ink);
  display: none;
  flex-direction: column;
  gap: 2px;
}

.mobile-menu.is-open {
  display: flex;
}

.mobile-menu a {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--y2k-ink);
}

.mobile-menu a:hover {
  background: var(--y2k-panel);
}

/* ==========================================================================
   Window chrome — flat title bar + [_ ▢ ✕] controls (Y2K UI signature)
   ========================================================================== */

.traffic-lights {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.traffic-lights span {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: var(--border-w) solid var(--y2k-ink);
  background: var(--y2k-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  line-height: 1;
  color: var(--y2k-ink);
  font-weight: 700;
}

.traffic-lights .red::before { content: "_"; }
.traffic-lights .yellow::before { content: "▢"; font-size: 8px; }
.traffic-lights .green::before { content: "✕"; font-size: 8px; }

/* ==========================================================================
   Section heading
   ========================================================================== */

.section {
  padding: 56px 0;
  position: relative;
}

.section-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  background: var(--y2k-lemon);
  border: var(--border-w) solid var(--y2k-ink);
  font-size: 13px;
  font-weight: 700;
  color: var(--y2k-ink);
  margin-bottom: 18px;
}

.section-heading {
  max-width: 640px;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section-heading p {
  font-size: 17px;
  color: var(--y2k-ink-muted);
}

.center {
  text-align: center;
  margin-inline: auto;
}

#about { background: var(--tint-blue); padding-bottom: 24px; }
#services { background: var(--bg-page); padding-top: 24px; }

.section-boundary-decor {
  position: relative;
  height: clamp(60px, 8vw, 110px);
  z-index: 5;
  pointer-events: none;
}

.section-boundary-decor img {
  position: absolute;
  left: clamp(28px, 9vw, 110px);
  top: 50%;
  transform: translateY(-50%);
  /* Tied to the container's own height (not an independent clamp) so the
     overflow above/below stays a fixed, safe 18px at every viewport width —
     the sections on either side only have 24px of padding to spare there. */
  height: calc(clamp(60px, 8vw, 110px) + 36px);
  width: auto;
}
#portfolio {
  background-color: #0a0a14;
  background-image: url("../img/portfolio-vaporwave-v2.gif");
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

/* Dim the animated backdrop so the work itself is what the eye lands on */
#portfolio::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(10, 10, 20, 0.72);
}

#portfolio .section-heading h2,
#portfolio .section-heading p {
  color: #fff;
}
#visual-lyric { background: var(--tint-lemon); }
#contact { background: var(--tint-lilac); }

/* ==========================================================================
   Clients / brand marquee
   ========================================================================== */

.clients-section {
  padding: 32px 0 40px;
  position: relative;
}

.marquee-window {
  width: 100%;
  overflow: hidden;
  background: #fff;
  border-top: var(--border-w) solid var(--y2k-ink);
  border-bottom: var(--border-w) solid var(--y2k-ink);
}

.marquee-window .window-bar {
  background: var(--y2k-mint);
  padding-inline: 20px;
}

.marquee-body {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
}

.marquee-body::before,
.marquee-body::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.marquee-body::before {
  left: 0;
  background: linear-gradient(to right, #fff, transparent);
}

.marquee-body::after {
  right: 0;
  background: linear-gradient(to left, #fff, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 20px;
  width: fit-content;
  animation: marquee-scroll 28s linear infinite;
}

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

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 76px;
  flex-shrink: 0;
  background: #fff;
  border: var(--border-w) solid var(--y2k-ink);
  border-radius: var(--radius-sm);
  padding: 10px;
  transition: transform 0.2s var(--ease-snappy);
}

.marquee-item:hover {
  transform: translateY(-3px);
}

.marquee-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.marquee-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

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

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  min-height: 82vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + 24px);
  padding-bottom: 32px;
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(rgba(247, 246, 251, 0.5), rgba(247, 246, 251, 0.5)), url("../img/hero-vaporwave.gif");
  background-size: cover;
  background-position: center;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 620px;
  min-width: 0;
}

.hero-copy .window-bar {
  display: none;
}

.hero-copy-body {
  padding: 4px;
}

.hero-copy .section-tag {
  font-size: 12px;
  padding: 4px 12px;
  margin-bottom: 14px;
}

.hero-copy h1 {
  font-size: clamp(28px, 8vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-copy h1 .gradient-text {
  position: relative;
  display: inline-block;
  color: var(--y2k-ink);
  padding: 0 6px;
  background: var(--y2k-lemon);
  border: var(--border-w) solid var(--y2k-ink);
  border-radius: var(--radius-sm);
  rotate: -1.5deg;
}

.hero-copy p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--y2k-ink-muted);
  margin-bottom: 22px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.hero-actions .btn {
  padding: 11px 18px;
  font-size: 14px;
  gap: 6px;
  justify-content: center;
}

.hero-window {
  display: none;
}

.hero-window {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: var(--border-w) solid var(--y2k-ink);
  transition: transform 0.3s var(--ease-spring);
  position: relative;
  z-index: 1;
}

.hero-window:hover {
  transform: translateY(-4px) rotate(-0.5deg);
}

.hero-window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: var(--y2k-blue);
  border-bottom: var(--border-w) solid var(--y2k-ink);
  min-width: 0;
}

.hero-window-bar span.title {
  font-size: 9px;
  color: var(--y2k-ink);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.hero-window-body {
  aspect-ratio: 16 / 10;
  background: var(--y2k-panel);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-window-body img {
  width: 34%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  max-width: 96px;
  max-height: 96px;
}

.hero-window-body .play-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  background: var(--y2k-pink);
  border: var(--border-w) solid var(--y2k-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--y2k-ink);
  transition: transform 0.15s var(--ease-snappy);
}

.hero-window-body .play-btn:hover {
  transform: translateY(1.5px) scale(0.95);
}

/* ==========================================================================
   About
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.about-text p {
  color: var(--y2k-ink-muted);
  font-size: 17px;
  margin-bottom: 18px;
}

.about-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: var(--border-w) solid var(--y2k-ink);
}

.about-card ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-card li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--y2k-ink);
  font-weight: 500;
}

.about-card li i {
  color: var(--y2k-ink);
  font-size: 18px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--y2k-mint);
  border: var(--border-w) solid var(--y2k-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ==========================================================================
   Services grid
   ========================================================================== */

.services-slider {
  position: relative;
  display: flex;
  align-items: center;
}

.slider-track {
  display: flex;
  gap: 16px;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 24px 16% 28px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.slider-track::-webkit-scrollbar {
  display: none;
}

.service-slide {
  flex: 0 0 68%;
  scroll-snap-align: center;
  background: #fff;
  border: var(--border-w) solid var(--y2k-ink);
  border-radius: var(--radius-lg);
  padding: 28px 18px;
  text-align: center;
  transition: transform 0.2s ease-out, opacity 0.2s ease-out, border-color 0.2s ease-out;
  transform-origin: center;
  position: relative;
}

.service-slide.is-active {
  border-color: var(--y2k-pink);
  border-width: 3px;
  z-index: 2;
}

.service-icon-lg {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  margin-inline: auto;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: var(--y2k-panel);
  border: var(--border-w) solid var(--y2k-ink);
  color: var(--y2k-ink);
}

.slider-track .service-slide:nth-child(5n+1) .service-icon-lg { background: var(--y2k-pink); }
.slider-track .service-slide:nth-child(5n+2) .service-icon-lg { background: var(--y2k-blue); }
.slider-track .service-slide:nth-child(5n+3) .service-icon-lg { background: var(--y2k-mint); }
.slider-track .service-slide:nth-child(5n+4) .service-icon-lg { background: var(--y2k-lemon); }
.slider-track .service-slide:nth-child(5n+5) .service-icon-lg { background: var(--y2k-lilac); }

.service-slide h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--y2k-ink);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--y2k-pink);
  border: var(--border-w) solid var(--y2k-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--y2k-ink);
  cursor: pointer;
  transition: transform 0.15s var(--ease-snappy);
}

.slider-arrow:active {
  transform: translateY(calc(-50% + 1.5px)) scale(0.94);
}

.slider-arrow.prev { left: 4px; }
.slider-arrow.next { right: 4px; }

.slider-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
}

.slider-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: var(--border-w) solid var(--y2k-ink);
  background: #fff;
  padding: 0;
  cursor: pointer;
  transition: background 0.15s var(--ease-snappy), transform 0.15s var(--ease-snappy);
}

.slider-dots .dot.is-active {
  background: var(--y2k-pink);
  transform: scale(1.25);
}

/* ==========================================================================
   Portfolio
   ========================================================================== */

.window-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--y2k-lilac);
  border-bottom: var(--border-w) solid var(--y2k-ink);
  min-width: 0;
}

.window-bar span.title {
  font-size: 11px;
  color: var(--y2k-ink);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

/* Used in the event modal meta row */
.portfolio-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--y2k-ink);
  background: var(--y2k-mint);
  border: var(--border-w) solid var(--y2k-ink);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

/* --- Portfolio gallery: dark, image-first cards on the dimmed backdrop --- */

#portfolio {
  --pf-card: #14142a;
  --pf-line: rgba(255, 255, 255, 0.1);
  --pf-text: #ffffff;
  --pf-muted: rgba(255, 255, 255, 0.6);
  --pf-accent: var(--y2k-lemon);
}

.portfolio-filters-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
}

.portfolio-filters {
  display: flex;
  gap: 4px;
  max-width: 100%;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--pf-line);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.portfolio-filters::-webkit-scrollbar {
  display: none;
}

/* Hint that the pill row scrolls sideways on narrow screens */
.portfolio-filters.is-scrollable:not(.is-scrolled-end) {
  -webkit-mask-image: linear-gradient(to right, #000 82%, transparent);
  mask-image: linear-gradient(to right, #000 82%, transparent);
}

.filter-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-weight: 600;
  font-size: 13.5px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--pf-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s var(--ease-snappy), color 0.25s var(--ease-snappy);
}

.filter-pill:hover {
  color: var(--pf-text);
  background: rgba(255, 255, 255, 0.06);
}

.filter-pill.is-active {
  background: var(--pf-accent);
  color: var(--y2k-ink);
}

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

.filter-count {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.55;
  font-variant-numeric: tabular-nums;
}

.filter-pill.is-active .filter-count {
  opacity: 0.7;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-flow: dense;
  gap: 16px;
  max-width: 1320px;
  margin-inline: auto;
}

.portfolio-card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  background: var(--pf-card);
  border: 1px solid var(--pf-line);
  cursor: pointer;
  transition:
    transform 0.5s var(--ease-snappy),
    border-color 0.3s var(--ease-snappy),
    box-shadow 0.5s var(--ease-snappy);
}

/* Soft spotlight that follows the pointer (position set from main.js) */
.portfolio-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 228, 94, 0.1), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-snappy);
  pointer-events: none;
}

.portfolio-card.is-hidden {
  display: none;
}

.portfolio-card:focus-visible {
  outline: 2px solid var(--pf-accent);
  outline-offset: 3px;
}

.portfolio-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--y2k-ink);
}

/* The whole cover is always shown (never cropped); any leftover space is
   filled by a blurred copy of the same image instead of flat bars. */
.portfolio-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.9s var(--ease-snappy);
}

.portfolio-thumb::before {
  content: "";
  position: absolute;
  inset: -60px;
  z-index: -1;
  background-image: var(--thumb, none);
  background-size: cover;
  background-position: center;
  filter: blur(45px) saturate(1.3) brightness(0.55);
}

.portfolio-thumb.grad-1 { background: var(--y2k-pink); }
.portfolio-thumb.grad-2 { background: var(--y2k-blue); }
.portfolio-thumb.grad-3 { background: var(--y2k-mint); }
.portfolio-thumb.grad-4 { background: var(--y2k-lemon); }
.portfolio-thumb.grad-5 { background: var(--y2k-lilac); }
.portfolio-thumb.grad-6 { background: var(--y2k-panel); }

.portfolio-arrow {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: var(--y2k-ink);
  background: var(--pf-accent);
  opacity: 0;
  transform: translate(-8px, 8px) scale(0.7);
  transition: opacity 0.35s var(--ease-snappy), transform 0.45s var(--ease-spring);
}

/* Featured-only pieces — hidden on regular cards */
.portfolio-badge,
.portfolio-desc,
.portfolio-cta {
  display: none;
}

.portfolio-badge {
  align-self: flex-start;
  margin-bottom: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--y2k-ink);
  background: var(--pf-accent);
}

.portfolio-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--pf-muted);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portfolio-cta {
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 14px;
  font-weight: 600;
  color: var(--pf-text);
  transition: background 0.25s var(--ease-snappy), color 0.25s var(--ease-snappy), border-color 0.25s var(--ease-snappy);
}

.portfolio-card.is-featured .portfolio-badge {
  display: inline-block;
}

.portfolio-card.is-featured .portfolio-desc,
.portfolio-card.is-featured .portfolio-cta {
  display: -webkit-box;
}

.portfolio-card.is-featured .portfolio-cta {
  display: inline-flex;
}

.portfolio-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px 18px;
}

/* Divisions involved, e.g. "● VISUAL MOTION  ● 3D MODELLING" */
.portfolio-category {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  min-width: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pf-muted);
}

.portfolio-division {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.portfolio-division::before {
  content: "";
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cat, var(--pf-accent));
}

.portfolio-client {
  font-size: 12px;
  color: var(--pf-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  order: 3;
}

.portfolio-info h3 {
  font-size: 16px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--pf-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (hover: hover) {
  .portfolio-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 228, 94, 0.45);
    box-shadow: 0 28px 50px -20px rgba(0, 0, 0, 0.7);
  }

  .portfolio-card:hover::after {
    opacity: 1;
  }

  .portfolio-card:hover .portfolio-thumb img {
    transform: scale(1.06);
  }

  .portfolio-card:hover .portfolio-cta {
    background: var(--pf-accent);
    border-color: var(--pf-accent);
    color: var(--y2k-ink);
  }

  .portfolio-card.is-featured .portfolio-arrow {
    display: none;
  }

  .portfolio-card:hover .portfolio-arrow,
  .portfolio-card:focus-visible .portfolio-arrow {
    opacity: 1;
    transform: none;
  }
}

/* Cards that appear after a filter change / "load more" */
.portfolio-card.is-entering {
  animation: portfolio-in 0.6s var(--ease-snappy) backwards;
  animation-delay: var(--enter-delay, 0ms);
}

@keyframes portfolio-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.portfolio-load-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 44px;
}

.portfolio-progress-text {
  font-size: 13px;
  color: var(--pf-muted);
  font-variant-numeric: tabular-nums;
}

.portfolio-progress {
  width: 180px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.portfolio-progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--pf-accent);
  transition: width 0.6s var(--ease-snappy);
}

.portfolio-load-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: var(--pf-text);
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.25s var(--ease-snappy), color 0.25s var(--ease-snappy), border-color 0.25s var(--ease-snappy);
}

.portfolio-load-btn:hover,
.portfolio-load-btn:focus-visible {
  background: var(--pf-accent);
  border-color: var(--pf-accent);
  color: var(--y2k-ink);
  outline: none;
}

.portfolio-load-btn[hidden] {
  display: none;
}

.portfolio-empty {
  text-align: center;
  color: var(--pf-muted);
  padding: 40px 20px;
}

/* ==========================================================================
   Project viewer — stage + filmstrip + division chapters
   ========================================================================== */

.pv {
  --pv-bg-color: #0d0d1a;
  --pv-panel: #14142a;
  --pv-line: rgba(255, 255, 255, 0.1);
  --pv-text: #fff;
  --pv-muted: rgba(255, 255, 255, 0.62);
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: var(--pv-text);
}

.pv.is-open {
  display: flex;
}

.pv-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 14, 0.82);
  backdrop-filter: blur(6px);
  animation: pv-fade 0.25s ease both;
}

.pv-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1320px, 100%);
  height: min(860px, 100%);
  background: var(--pv-bg-color);
  border: 1px solid var(--pv-line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.8);
  animation: pv-rise 0.4s var(--ease-snappy) both;
}

@keyframes pv-fade {
  from { opacity: 0; }
}

@keyframes pv-rise {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
}

.pv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px 14px 24px;
  border-bottom: 1px solid var(--pv-line);
  flex-shrink: 0;
}

.pv-head-text {
  min-width: 0;
}

.pv-kicker {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pv-muted);
  margin-bottom: 3px;
}

.pv-kicker:empty {
  display: none;
}

.pv-head h2 {
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pv-close {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--pv-line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--pv-text);
  font-size: 20px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.pv-close:hover,
.pv-close:focus-visible {
  background: var(--y2k-lemon);
  color: var(--y2k-ink);
  transform: rotate(90deg);
  outline: none;
}

.pv-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
}

.pv-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 20px 20px 16px 24px;
  gap: 12px;
}

/* --- Stage --- */

.pv-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  isolation: isolate;
}

.pv-stage::before {
  content: "";
  position: absolute;
  inset: -60px;
  z-index: -1;
  background: var(--pv-bg, none) center / cover;
  filter: blur(50px) brightness(0.45) saturate(1.3);
  transition: background-image 0.3s ease;
}

.pv-stage-media {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pv-stage-media.is-entering {
  animation: pv-media-in 0.35s var(--ease-snappy) both;
}

@keyframes pv-media-in {
  from { opacity: 0; transform: scale(0.985); }
}

.pv-stage-media img,
.pv-stage-media video {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.pv-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 46px;
  height: 46px;
  margin-top: -23px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(13, 13, 26, 0.6);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 20px;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.2s ease;
}

.pv-nav.prev { left: 14px; }
.pv-nav.next { right: 14px; }

.pv-stage:hover .pv-nav,
.pv-nav:focus-visible {
  opacity: 1;
}

.pv-nav:hover {
  background: var(--y2k-lemon);
  color: var(--y2k-ink);
}

.pv-nav[hidden] {
  display: none;
}

.pv-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
}

.pv-caption-title {
  font-size: 15px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pv-counter {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--pv-muted);
  font-variant-numeric: tabular-nums;
}

/* --- Filmstrip --- */

.pv-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  flex-shrink: 0;
  padding: 2px 2px 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.pv-strip[hidden] {
  display: none;
}

.pv-thumb {
  position: relative;
  flex: 0 0 auto;
  width: 112px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #1d1d36;
  padding: 0;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.pv-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pv-thumb:hover {
  opacity: 0.9;
}

.pv-thumb.is-active {
  opacity: 1;
  border-color: var(--y2k-lemon);
}

.pv-thumb-badge {
  position: absolute;
  left: 6px;
  bottom: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  color: var(--y2k-ink);
  background: rgba(255, 255, 255, 0.9);
}

.pv-thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 6px;
  font-size: 10px;
  line-height: 1.2;
  color: var(--pv-muted);
  text-align: center;
}

/* --- Side panel: story + chapters + CTA --- */

.pv-side {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 0;
  overflow-y: auto;
  padding: 22px 24px 24px;
  border-left: 1px solid var(--pv-line);
  background: var(--pv-panel);
}

.pv-desc {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  white-space: pre-line;
}

.pv-desc[hidden],
.pv-chapters-wrap[hidden] {
  display: none;
}

.pv-side-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pv-muted);
  margin-bottom: 10px;
}

.pv-chapters {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pv-chapter {
  display: flex;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--pv-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.pv-chapter:hover {
  background: rgba(255, 255, 255, 0.05);
}

.pv-chapter.is-active {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--pv-line);
}

.pv-chapter-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--pv-muted);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}

.pv-chapter.is-active .pv-chapter-num {
  color: var(--cat);
}

.pv-chapter-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.pv-chapter-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.pv-chapter-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cat);
  flex-shrink: 0;
}

.pv-chapter small {
  font-size: 12px;
  color: var(--pv-muted);
}

.pv-chapter-desc {
  display: none;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
}

.pv-chapter.is-active .pv-chapter-desc {
  display: block;
}

.pv-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.pv-demo,
.pv-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.pv-demo[hidden],
.pv-cta[hidden] {
  display: none;
}

.pv-cta {
  background: var(--y2k-lemon);
  color: var(--y2k-ink);
}

.pv-cta:hover {
  background: #fff;
}

.pv-demo {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
}

.pv-demo:hover {
  background: rgba(255, 255, 255, 0.08);
}

.video-watermark {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-watermark span {
  color: rgba(255, 255, 255, 0.38);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.1em;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* Desktop: story text first, phones' extra bits hidden */
.pv-text {
  order: -1;
}

.pv-chapter-note,
.pv-more {
  display: none;
}

/* --- Tablets & phones (portrait): everything fits one screen, no page
       scrolling. The stage takes whatever height is left after the compact
       controls. --- */

@media (max-width: 960px) and (orientation: portrait) {
  .pv {
    padding: 0;
  }

  .pv-shell {
    width: 100%;
    height: 100%;
    height: 100dvh;
    border-radius: 0;
    border: 0;
  }

  .pv-head {
    padding: 10px 12px 10px 16px;
  }

  .pv-head h2 {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 15px;
  }

  .pv-close {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .pv-body {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .pv-main {
    flex: 1 1 auto;
    min-height: 0;
    padding: 10px 12px 4px;
    gap: 8px;
  }

  .pv-stage {
    flex: 1 1 auto;
    min-height: 170px;
    border-radius: 10px;
  }

  .pv-nav {
    opacity: 1;
    width: 36px;
    height: 36px;
    margin-top: -18px;
    font-size: 15px;
  }

  .pv-nav.prev { left: 8px; }
  .pv-nav.next { right: 8px; }

  .pv-caption-title {
    font-size: 14px;
  }

  .pv-thumb {
    width: 74px;
    border-radius: 6px;
  }

  .pv-thumb-badge {
    width: 16px;
    height: 16px;
    font-size: 8px;
    left: 4px;
    bottom: 4px;
  }

  .pv-side {
    flex: none;
    gap: 10px;
    overflow: visible;
    padding: 10px 12px calc(12px + env(safe-area-inset-bottom));
    border-left: 0;
    border-top: 1px solid var(--pv-line);
  }

  /* Chapters become one row of compact chips */
  .pv-side-label {
    display: none;
  }

  .pv-chapters {
    flex-direction: row;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .pv-chapters::-webkit-scrollbar {
    display: none;
  }

  .pv-chapters li {
    flex-shrink: 0;
  }

  .pv-chapter {
    align-items: center;
    gap: 6px;
    padding: 7px 12px 7px 10px;
    border-radius: 999px;
    border-color: var(--pv-line);
    white-space: nowrap;
  }

  .pv-chapter.is-active {
    background: color-mix(in srgb, var(--cat) 22%, transparent);
    border-color: var(--cat);
  }

  .pv-chapter-num {
    font-size: 11px;
    padding: 0;
  }

  .pv-chapter-head {
    font-size: 13px;
    gap: 6px;
  }

  .pv-chapter small,
  .pv-chapter.is-active .pv-chapter-desc {
    display: none;
  }

  /* Story text: ~3 lines, "Selengkapnya" expands it in place */
  .pv-text {
    order: 0;
    max-height: 4.6em;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.5;
    transition: max-height 0.3s var(--ease-snappy);
  }

  .pv-side.is-expanded .pv-text {
    max-height: 38vh;
    max-height: 38dvh;
    overflow-y: auto;
  }

  .pv-text:empty,
  .pv-text:has(> p[hidden]:only-child) {
    display: none;
  }

  .pv-desc {
    font-size: 13px;
    line-height: 1.5;
  }

  .pv-chapter-note {
    display: block;
    color: rgba(255, 255, 255, 0.7);
  }

  .pv-chapter-note[hidden] {
    display: none;
  }

  .pv-desc + .pv-chapter-note:not([hidden]) {
    margin-top: 6px;
  }

  .pv-more {
    display: inline-block;
    align-self: flex-start;
    margin-top: -6px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--y2k-lemon);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
  }

  .pv-more[hidden] {
    display: none;
  }

  .pv-actions {
    margin-top: 0;
    gap: 6px;
  }

  .pv-actions:has(> a:not([hidden]) + a:not([hidden])) {
    flex-direction: row;
  }

  .pv-actions:has(> a:not([hidden]) + a:not([hidden])) > a {
    flex: 1;
  }

  .pv-demo,
  .pv-cta {
    padding: 11px 14px;
    font-size: 13px;
  }
}

/* Very short portrait phones: drop the filmstrip, arrows/swipe still work */
@media (max-width: 960px) and (orientation: portrait) and (max-height: 600px) {
  .pv-strip {
    display: none;
  }

  .pv-text {
    max-height: 3em;
  }
}

/* Phones in landscape: keep the desktop split (stage left, story right),
   just tighter, so the video gets the full height. */
@media (orientation: landscape) and (max-height: 560px) {
  .pv {
    padding: 0;
  }

  .pv-shell {
    width: 100%;
    height: 100%;
    height: 100dvh;
    border-radius: 0;
    border: 0;
  }

  .pv-head {
    padding: 8px 12px 8px 16px;
  }

  .pv-kicker {
    display: none;
  }

  .pv-head h2 {
    font-size: 15px;
  }

  .pv-close {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .pv-body {
    grid-template-columns: minmax(0, 1fr) 260px;
  }

  .pv-main {
    padding: 10px 12px 10px 16px;
    gap: 6px;
  }

  .pv-strip {
    display: none;
  }

  .pv-nav {
    opacity: 1;
    width: 34px;
    height: 34px;
    margin-top: -17px;
  }

  .pv-side {
    gap: 12px;
    padding: 12px 14px;
  }

  .pv-chapter {
    padding: 8px 10px;
  }

  .pv-chapter small,
  .pv-chapter.is-active .pv-chapter-desc {
    display: none;
  }

  .pv-desc {
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* CTA stays reachable even when the story panel scrolls */
  .pv-actions {
    position: sticky;
    bottom: -12px;
    margin: auto -14px -12px;
    padding: 10px 14px 12px;
    background: var(--pv-panel);
    border-top: 1px solid var(--pv-line);
  }

  .pv-cta,
  .pv-demo {
    padding: 10px 12px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pv-backdrop,
  .pv-shell,
  .pv-stage-media.is-entering {
    animation: none;
  }
}

/* ==========================================================================
   Shop teaser
   ========================================================================== */

.shop-banner {
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  background: #fff;
  border: var(--border-w) solid var(--y2k-ink);
  position: relative;
  overflow: hidden;
}

.shop-banner .service-icon {
  margin-inline: auto;
  margin-bottom: 22px;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  border: var(--border-w) solid var(--y2k-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--y2k-ink);
  background: var(--y2k-lemon);
}

.shop-banner h2 {
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 800;
  margin-bottom: 14px;
}

.shop-banner p {
  color: var(--y2k-ink-muted);
  max-width: 480px;
  margin: 0 auto 28px;
}

/* ==========================================================================
   Visual Lyric — homepage teaser + /visual-lyric download page
   ========================================================================== */

.vl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vl-teaser {
  border: var(--border-w) solid var(--y2k-ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
}

.vl-teaser .window-bar {
  background: var(--y2k-pink);
}

.vl-teaser-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 28px 24px;
  align-items: center;
}

@media (min-width: 900px) {
  .vl-teaser-body {
    grid-template-columns: 1.15fr 0.85fr;
    padding: 40px 44px;
  }
}

.vl-teaser-text h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 10px 0 12px;
}

.vl-teaser-text p {
  color: var(--y2k-ink-muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 560px;
}

.vl-teaser-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 22px;
}

.vl-teaser-meta {
  font-size: 13px;
  font-weight: 600;
  color: var(--y2k-ink-muted);
}

.vl-mock {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px;
  border-radius: 12px;
  background: #0d0d1a;
  color: #fff;
}

.vl-mock > i {
  color: var(--y2k-lemon);
  font-size: 18px;
  flex-shrink: 0;
}

.vl-mock-screen {
  flex: 1;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #1b1b36;
  border: 2px solid #2c2c52;
  min-width: 0;
}

.vl-mock-screen span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.vl-mock-screen strong {
  font-size: 13px;
  text-align: center;
  padding-bottom: 14%;
}

.vl-mock-screen.is-preview span { color: #3ddc84; }
.vl-mock-screen.is-preview { border-color: #2f7d58; }
.vl-mock-screen.is-program span { color: #ff5a6e; }
.vl-mock-screen.is-program { border-color: #b8344a; background: #261328; }

/* --- Download page --- */

body.vl-page {
  background: var(--bg-page);
}

.nav-links a.is-current {
  background: var(--y2k-lemon);
}

.vl-hero {
  position: relative;
  padding: calc(var(--nav-height) + 64px) 0 64px;
  background-color: #0a0a14;
  background-image: url("../img/portfolio-vaporwave-v2.gif");
  background-size: cover;
  background-position: center;
  color: #fff;
  isolation: isolate;
  text-align: center;
}

.vl-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(10, 10, 20, 0.78), rgba(10, 10, 20, 0.9));
}

.vl-hero-inner {
  max-width: 860px;
}

.vl-hero .vl-eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.vl-hero h1 {
  margin: 14px 0 16px;
  font-size: clamp(42px, 8vw, 84px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  background: linear-gradient(90deg, var(--y2k-blue), var(--y2k-lilac), var(--y2k-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.vl-lead {
  max-width: 640px;
  margin: 0 auto;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

.vl-lead strong {
  color: #fff;
}

.vl-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
}

.vl-primary {
  padding: 15px 28px;
  font-size: 16px;
}

.vl-hero-meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.vl-features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.vl-features li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 600;
}

.vl-downloads {
  background: var(--tint-blue);
}

.vl-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  max-width: 1080px;
  margin: 0 auto;
}

.vl-card {
  position: relative;
  border: var(--border-w) solid var(--y2k-ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  transition: transform 0.25s var(--ease-spring);
}

.vl-card:not(.is-off):hover {
  transform: translateY(-4px);
}

.vl-card.is-recommended {
  box-shadow: 0 0 0 4px var(--y2k-lemon);
}

.vl-card.is-off {
  opacity: 0.6;
}

.vl-card-body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 24px 22px 22px;
}

.vl-card-badge {
  display: none;
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1.5px solid var(--y2k-ink);
  background: var(--y2k-lemon);
  font-size: 11px;
  font-weight: 700;
}

.vl-card.is-recommended .vl-card-badge {
  display: inline-block;
}

.vl-card-icon {
  font-size: 34px;
  margin-bottom: 8px;
}

.vl-card h3 {
  font-size: 19px;
  font-weight: 800;
}

.vl-card p {
  font-size: 14px;
  color: var(--y2k-ink-muted);
  min-height: 42px;
}

.vl-card-cta {
  margin-top: 14px;
}

.vl-card-meta {
  font-size: 12px;
  color: var(--y2k-ink-muted);
  margin-top: 6px;
}

.vl-soon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--y2k-ink-muted);
}

.vl-which-mac {
  max-width: 1080px;
  margin: 18px auto 0;
  padding: 12px 16px;
  border: var(--border-w) solid var(--y2k-ink);
  border-radius: var(--radius-md);
  background: #fff;
  font-size: 14px;
}

.vl-which-mac summary {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.vl-which-mac summary::-webkit-details-marker {
  display: none;
}

.vl-which-mac p {
  margin-top: 8px;
  line-height: 1.6;
  color: var(--y2k-ink-muted);
}

.vl-guides {
  background: var(--tint-lilac);
}

.vl-guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 1080px;
  margin: 0 auto;
}

@media (min-width: 820px) {
  .vl-guide-grid {
    grid-template-columns: 1fr 1fr;
  }

  .vl-guide-wide {
    grid-column: 1 / -1;
  }
}

.vl-guide {
  border: var(--border-w) solid var(--y2k-ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
}

.vl-guide-body {
  padding: 20px 22px 22px;
}

.vl-guide-body h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
}

.vl-guide-body ol {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--y2k-ink-muted);
}

.vl-guide-body strong {
  color: var(--y2k-ink);
}

.vl-guide-points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 820px) {
  .vl-guide-points {
    grid-template-columns: repeat(3, 1fr);
  }
}

.vl-guide-points > div {
  display: flex;
  gap: 12px;
}

.vl-guide-points i {
  font-size: 24px;
  flex-shrink: 0;
}

.vl-guide-points p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--y2k-ink-muted);
}

.vl-footer {
  padding: 26px 0;
  border-top: var(--border-w) solid var(--y2k-ink);
  background: #fff;
  font-size: 13px;
  color: var(--y2k-ink-muted);
}

.vl-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.vl-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--y2k-ink);
}

.vl-footer-brand img {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  border: var(--border-w) solid var(--y2k-ink);
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: var(--border-w) solid var(--y2k-ink);
}

.contact-card .icon-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--y2k-pink);
  border: var(--border-w) solid var(--y2k-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  color: var(--y2k-ink);
  flex-shrink: 0;
}

.contact-card h3 {
  font-size: 15px;
  margin-bottom: 4px;
  font-weight: 700;
}

.contact-card p, .contact-card a.link {
  font-size: 14px;
  color: var(--y2k-ink-muted);
}

.contact-card a.link:hover {
  color: var(--y2k-ink);
  text-decoration: underline;
}

.contact-cta {
  text-align: center;
}

/* ==========================================================================
   Footer — window card on a pastel canvas, dark navy body keeps the
   white wordmark legible while still matching the window-chrome motif
   ========================================================================== */

.site-footer {
  background: var(--y2k-panel);
  position: relative;
  overflow: hidden;
}

.footer-stripe {
  height: 8px;
  width: 100%;
  background: repeating-linear-gradient(
    90deg,
    var(--y2k-pink) 0 24px,
    var(--y2k-blue) 24px 48px,
    var(--y2k-mint) 48px 72px,
    var(--y2k-lemon) 72px 96px,
    var(--y2k-lilac) 96px 120px
  );
  border-bottom: var(--border-w) solid var(--y2k-ink);
}

.footer-window {
  overflow: hidden;
  background: #fff;
}

.footer-window .window-bar {
  background: var(--y2k-pink);
  padding-inline: 20px;
}

.footer-window-body {
  background: var(--y2k-ink);
  color: #fff;
  padding: 32px 0 24px;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 32px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 14px;
}

.footer-logo img {
  height: 32px;
  width: auto;
  display: block;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  max-width: 340px;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--y2k-pink);
  border: var(--border-w) solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: var(--y2k-ink);
  transition: transform 0.15s var(--ease-snappy);
}

.footer-social a:hover {
  transform: translateY(1.5px) scale(0.95);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition: opacity 0.7s var(--ease-snappy), transform 0.7s var(--ease-snappy);
  will-change: opacity, transform;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .sticker {
    animation: none;
  }

  .portfolio-card:hover,
  .btn:hover,
  .hero-window:hover {
    transform: none;
  }

  .service-slide {
    transform: none !important;
  }

  .portfolio-card:hover .portfolio-thumb img {
    transform: none;
  }

  .portfolio-card.is-entering {
    animation: none;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (min-width: 640px) {
  .slider-track {
    padding: 24px calc(50% - 170px) 28px;
  }

  .service-slide {
    flex-basis: 340px;
  }

  .slider-arrow {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .window-bar {
    gap: 14px;
    padding: 10px 14px;
  }

  .window-bar span.title {
    font-size: 12.5px;
  }

  .traffic-lights {
    gap: 5px;
  }

  .traffic-lights span {
    width: 20px;
    height: 20px;
  }

  .portfolio-tag {
    font-size: 12px;
    padding: 3px 10px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  /* Featured card spans the full row on tablets */
  .portfolio-card.is-featured {
    grid-column: 1 / -1;
  }

  .portfolio-card.is-featured .portfolio-info {
    gap: 10px;
    padding: 24px 28px 28px;
  }

  .portfolio-card.is-featured h3 {
    font-size: 24px;
    line-height: 1.25;
  }

  .contact-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }

  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
  }

  .hero-copy {
    background: #fff;
    border: var(--border-w) solid var(--y2k-ink);
    border-radius: var(--radius-lg);
    overflow: hidden;
  }

  .hero-copy .window-bar {
    display: flex;
    background: var(--y2k-lemon);
  }

  .hero-copy-body {
    padding: 32px;
  }

  .hero-copy .section-tag {
    font-size: 13px;
    padding: 5px 14px;
    margin-bottom: 18px;
  }

  .hero-copy h1 {
    font-size: clamp(38px, 6vw, 64px);
    letter-spacing: -0.03em;
    line-height: 1.12;
    margin-bottom: 22px;
  }

  .hero-copy p {
    font-size: 18px;
    margin-bottom: 34px;
  }

  .hero-actions {
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }

  .hero-actions .btn {
    padding: 12px 24px;
    font-size: 15px;
    gap: 8px;
    justify-content: flex-start;
  }

  .hero-window {
    display: block;
  }

  .hero-window-bar {
    gap: 16px;
    padding: 10px 14px;
  }

  .hero-window-bar span.title {
    font-size: 13px;
  }

  .hero-window-body img {
    width: 96px;
    height: 96px;
  }

  .hero-window-body .play-btn {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .about-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .slider-track {
    padding: 28px calc(50% - 190px) 32px;
  }

  .service-slide {
    flex-basis: 380px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Featured: horizontal hero card — 16:9 cover left, story right */
  .portfolio-card.is-featured {
    flex-direction: row;
    align-items: stretch;
  }

  .portfolio-card.is-featured .portfolio-thumb {
    flex: 0 0 62%;
  }

  .portfolio-card.is-featured .portfolio-info {
    flex: 1;
    justify-content: center;
    padding: 36px 40px;
    min-width: 0;
  }

  .portfolio-card.is-featured h3 {
    font-size: clamp(24px, 2vw, 32px);
    -webkit-line-clamp: 3;
  }
}

@media (min-width: 1800px) {
  .portfolio-grid {
    max-width: 1480px;
    gap: 26px;
  }
}

@media (max-width: 899px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 640px) {
  .container {
    padding-inline: 20px;
  }

  .section {
    padding: 56px 0;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 24px);
    padding-bottom: 32px;
    background-image: linear-gradient(rgba(247, 246, 251, 0.85), rgba(247, 246, 251, 0.85)), url("../img/hero-vaporwave.gif");
  }

  .hero-actions .btn {
    justify-content: center;
  }

  .about-card,
  .shop-banner {
    padding: 22px 18px;
  }

  .site-footer {
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 480px) {
  .brand-text {
    max-width: 120px;
  }

  .nav-cta-btn span {
    display: none;
  }

  .nav-cta-btn {
    padding: 9px 12px;
  }
}
