/* Root tokens - DARK THEME */
:root {
  --bg: #0a0a0a;
  --text: #ffffff;
  --muted: #a0a0a0;
  --muted-soft: #2a2a2a;
  --accent: #a855f7;
  --accent-soft: rgba(168, 85, 247, 0.15);
  --frame-bg: #050505;
  --header-height: 64px;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.4;
  overflow-x: hidden;
}

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

/* Hide default video play button overlays on all browsers */
video::-webkit-media-controls {
  display: none !important;
}
video::-webkit-media-controls-enclosure {
  display: none !important;
}
video::-webkit-media-controls-panel {
  display: none !important;
}
video::-webkit-media-controls-play-button {
  display: none !important;
}
video::-webkit-media-controls-start-playback-button {
  display: none !important;
}
video::-moz-media-controls {
  display: none !important;
}
video::--moz-media-controls-start-playback-button {
  display: none !important;
}

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

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 3vw, 3rem);
  z-index: 100;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.96),
    rgba(10, 10, 10, 0.75),
    transparent
  );
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-wordmark {
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  transition: transform 0.4s ease, opacity 0.4s ease;
  transform-origin: left center;
}

.site-wordmark.wordmark-hide {
  opacity: 0;
  transform: translateY(-140%);
  pointer-events: none;
}

.wordmark-last {
  color: var(--accent);
}

/* burger */
.menu-toggle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: #ffffff;
  border-radius: 999px;
}

/* Panels */
.panel {
  position: relative;
}

/* STACKED PANEL WRAPPER: ABOUT + SKILLS + SERVICES */
.panel-stack {
  position: relative;
}

/* About + Skills: pin and fade as whole panels */
.panel-stack .agency-intro,
.panel-stack .skills-showcase {
  position: sticky;
  top: 0;
  opacity: 0;
  transform: translateY(3vh);
  transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}

/* When they enter the viewport */
.panel-stack .agency-intro.is-visible,
.panel-stack .skills-showcase.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stacking order */
.panel-stack .agency-intro {
  z-index: 1;
}

.panel-stack .skills-showcase {
  z-index: 2;
}

/* Services: scrolls normally, solid background */
.panel-stack .services {
  position: relative;
  z-index: 3;
  background: var(--bg);
}

/* HERO */
.hero {
  height: 200vh;
  position: relative;
}

.hero-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  padding-top: calc(var(--header-height) + 8vh);
  padding-inline: clamp(1.5rem, 8vw, 8rem);
  padding-bottom: 8vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-text {
  max-width: 1200px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-line {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 6.5rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: transform 0.1s ease-out, opacity 0.1s ease-out;
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.hero-line + .hero-line {
  margin-top: 0.25em;
}

.accent {
  color: var(--accent);
  text-shadow:
    0 0 6px rgba(168, 85, 247, 0.6),
    0 0 14px rgba(168, 85, 247, 0.4);
}

/* Hero accent word (remembering) */
.hero-accent {
  position: relative;
  display: inline-block;
  min-width: 11ch;
  text-align: left;
  color: var(--accent);
  text-shadow:
    0 0 4px rgba(168, 85, 247, 0.5),
    0 0 10px rgba(168, 85, 247, 0.35);
  transition:
    text-shadow 0.25s ease,
    filter 0.25s ease;
}

/* Slightly stronger look while it is scrambling */
.hero-accent.hero-accent-scrambling {
  text-shadow:
    0 0 6px rgba(168, 85, 247, 0.8),
    0 0 14px rgba(168, 85, 247, 0.6);
  filter: brightness(1.08) contrast(1.05);
}

/* Name + subtitle on the hero after the first scroll phase */
.hero-portfolio {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  text-align: center;
  opacity: 0;
  z-index: 3;
  transition: opacity 0.2s ease-out;
  will-change: opacity;
}

.hero-portfolio-name {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 6.5rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  color: #ffffff;
}

.hero-name-first {
  display: inline-block;
}

.hero-name-last {
  display: inline-block;
  margin-left: 0.35ch;
}

.hero-portfolio-sub {
  margin: 1.2rem auto 0;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 40rem;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 3.2vh;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 4;
  pointer-events: none;
}



/* ABOUT */
.agency-intro {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12vh clamp(1.5rem, 6vw, 6rem);
  border-top: 1px solid var(--muted-soft);
  position: relative;
  overflow: hidden;
}

.agency-intro-inner {
  max-width: 1200px;
  width: 100%;
  text-align: center;
  z-index: 2;
  position: relative;
}

.agency-headline {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 4.2rem);
  line-height: 1.3;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.1em;
}

.agency-line {
  display: block;
}

.agency-line-rotating {
  margin: 0.1em 0 0.15em;
}

.agency-line-with-word {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.3em;
}

.no-break {
  white-space: nowrap;
}

/* rotating word */
.rotating-word-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-width: 8em;
  height: 1.8em;
  overflow: visible;
}

.rotating-word {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
  font-size: 1.4em;
  text-shadow:
    0 0 4px rgba(168, 85, 247, 0.6),
    0 0 12px rgba(168, 85, 247, 0.4);
  transition:
    text-shadow 0.9s ease,
    filter 0.9s ease;
}

.rotating-word.pulse {
  animation: none;
}

/* EPIC ANIMATED VISUAL BACKGROUND */
.visual-background {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

/* Extra depth layer behind the agency intro visuals */
.visual-background::after {
  content: "";
  position: absolute;
  inset: -20%;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 255, 255, 0.16), transparent 55%),
    radial-gradient(circle at 85% 100%, rgba(168, 85, 247, 0.22), transparent 55%);
  mix-blend-mode: screen;
  opacity: 0.35;
  animation: visualLightSweep 22s ease-in-out infinite alternate;
}

@keyframes visualLightSweep {
  0% {
    transform: translate3d(-4%, -2%, 0) scale(1);
    opacity: 0.25;
  }
  50% {
    transform: translate3d(4%, 3%, 0) scale(1.05);
    opacity: 0.5;
  }
  100% {
    transform: translate3d(-2%, 0%, 0) scale(1.02);
    opacity: 0.35;
  }
}

/* Flowing Mesh Gradient */
.mesh-gradient {
  position: absolute;
  inset: -50%;
  filter: blur(70px);
  opacity: 0.4;
  will-change: transform;
}

.gradient-blob {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  will-change: transform;
}

.gradient-blob-1 {
  width: 60%;
  height: 60%;
  top: -10%;
  left: -10%;
  background: radial-gradient(
    circle,
    rgba(168, 85, 247, 0.9) 0%,
    transparent 70%
  );
  animation: meshFloat1 20s ease-in-out infinite;
}

.gradient-blob-2 {
  width: 50%;
  height: 50%;
  top: 20%;
  right: -5%;
  background: radial-gradient(
    circle,
    rgba(0, 200, 255, 0.7) 0%,
    transparent 70%
  );
  animation: meshFloat2 18s ease-in-out infinite;
}

.gradient-blob-3 {
  width: 55%;
  height: 55%;
  bottom: -15%;
  left: 10%;
  background: radial-gradient(
    circle,
    rgba(255, 0, 200, 0.6) 0%,
    transparent 70%
  );
  animation: meshFloat3 22s ease-in-out infinite;
}

.gradient-blob-4 {
  width: 45%;
  height: 45%;
  top: 50%;
  left: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 150, 0, 0.5) 0%,
    transparent 70%
  );
  animation: meshFloat4 16s ease-in-out infinite;
}

.gradient-blob-5 {
  width: 40%;
  height: 40%;
  bottom: 10%;
  right: 15%;
  background: radial-gradient(
    circle,
    rgba(0, 255, 150, 0.6) 0%,
    transparent 70%
  );
  animation: meshFloat5 24s ease-in-out infinite;
}

@keyframes meshFloat1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  33% {
    transform: translate(20%, -15%) scale(1.2) rotate(120deg);
  }
  66% {
    transform: translate(-15%, 20%) scale(0.9) rotate(240deg);
  }
}

@keyframes meshFloat2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  33% {
    transform: translate(-25%, 20%) scale(1.1) rotate(-120deg);
  }
  66% {
    transform: translate(15%, -25%) scale(0.95) rotate(-240deg);
  }
}

@keyframes meshFloat3 {
  0%,
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  33% {
    transform: translate(15%, 25%) scale(1.15) rotate(90deg);
  }
  66% {
    transform: translate(-20%, -15%) scale(0.85) rotate(180deg);
  }
}

@keyframes meshFloat4 {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
  50% {
    transform: translate(-40%, -60%) scale(1.3) rotate(180deg);
  }
}

@keyframes meshFloat5 {
  0%,
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  33% {
    transform: translate(-18%, -22%) scale(1.05) rotate(-90deg);
  }
  66% {
    transform: translate(22%, 18%) scale(0.9) rotate(-180deg);
  }
}

/* Geometric Shapes */
.geometric-shapes {
  position: absolute;
  inset: 0;
}

.shape {
  position: absolute;
  border: 1px solid rgba(168, 85, 247, 0.2);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.02);
  will-change: transform;
}

.shape-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  left: 5%;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: shapeRotate1 25s linear infinite, shapeMorph1 8s ease-in-out
    infinite;
}

.shape-2 {
  width: 250px;
  height: 250px;
  top: 60%;
  right: 8%;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: shapeRotate2 20s linear infinite reverse, shapeMorph2 10s
      ease-in-out infinite;
}

.shape-3 {
  width: 200px;
  height: 200px;
  bottom: 15%;
  left: 50%;
  border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
  animation: shapeRotate3 30s linear infinite, shapeMorph3 7s ease-in-out
    infinite;
}

.shape-4 {
  width: 180px;
  height: 180px;
  top: 40%;
  right: 25%;
  border-radius: 50%;
  animation: shapeFloat 15s ease-in-out infinite;
}

@keyframes shapeRotate1 {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes shapeRotate2 {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes shapeRotate3 {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes shapeMorph1 {
  0%,
  100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
  50% {
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
  }
}

@keyframes shapeMorph2 {
  0%,
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  50% {
    border-radius: 30% 60% 70% 40% / 40% 70% 30% 60%;
  }
}

@keyframes shapeMorph3 {
  0%,
  100% {
    border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
  }
  50% {
    border-radius: 60% 40% 40% 60% / 60% 60% 40% 40%;
  }
}

@keyframes shapeFloat {
  0%,
  100% {
    transform: translate(0, 0);
  }
  33% {
    transform: translate(30px, -40px);
  }
  66% {
    transform: translate(-30px, 40px);
  }
}

/* Grid Overlay */
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(168, 85, 247, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(168, 85, 247, 0.05) 1px,
      transparent 1px
    );
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
  opacity: 0.3;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

/* Particles */
.particles {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(168, 85, 247, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(168, 85, 247, 1);
}

.particle:nth-child(1) {
  top: 20%;
  left: 10%;
  animation: particleFloat 8s ease-in-out infinite;
}

.particle:nth-child(2) {
  top: 40%;
  right: 15%;
  animation: particleFloat 10s ease-in-out infinite 1s;
}

.particle:nth-child(3) {
  bottom: 30%;
  left: 20%;
  animation: particleFloat 12s ease-in-out infinite 2s;
}

.particle:nth-child(4) {
  top: 60%;
  left: 60%;
  animation: particleFloat 9s ease-in-out infinite 1.5s;
}

.particle:nth-child(5) {
  top: 15%;
  right: 30%;
  animation: particleFloat 11s ease-in-out infinite 0.5s;
}

.particle:nth-child(6) {
  bottom: 20%;
  right: 20%;
  animation: particleFloat 13s ease-in-out infinite 2.5s;
}

.particle:nth-child(7) {
  top: 70%;
  left: 40%;
  animation: particleFloat 10s ease-in-out infinite 3s;
}

.particle:nth-child(8) {
  bottom: 40%;
  right: 40%;
  animation: particleFloat 14s ease-in-out infinite 1s;
}

@keyframes particleFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }
  25% {
    transform: translate(30px, -50px) scale(1.2);
    opacity: 1;
  }
  50% {
    transform: translate(-20px, -100px) scale(0.8);
    opacity: 0.4;
  }
  75% {
    transform: translate(-50px, -50px) scale(1.1);
    opacity: 0.8;
  }
}

/* Light Rays */
.light-rays {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      ellipse at 20% 30%,
      rgba(168, 85, 247, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 80% 70%,
      rgba(0, 200, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 50% 50%,
      rgba(255, 0, 200, 0.08) 0%,
      transparent 60%
    );
  animation: lightPulse 8s ease-in-out infinite;
  mix-blend-mode: screen;
}

@keyframes lightPulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

/* SKILLS */
.skills-showcase {
  padding: 16vh 0 18vh;
  background: var(--bg);
  border-top: 1px solid var(--muted-soft);
  overflow: hidden;
  position: relative;
}

.skills-showcase-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 7vw, 7rem);
}

/* Shared heading style for skills + services */
.skills-title,
.section-title {
  margin: 0 0 5vh 0;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  text-transform: lowercase;
  text-align: center;
}

.skills-carousel-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  align-items: center;
  position: relative;
}

.skills-carousel {
  position: relative;
  overflow: hidden;
  width: min(100%, 1100px);
  margin: 0 auto;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 18%,
    black 82%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 18%,
    black 82%,
    transparent 100%
  );
}

.skills-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  will-change: transform;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Animate right */
.skills-carousel[data-direction="right"] .skills-track {
  animation: scrollRight 28s linear infinite;
}

/* Animate left */
.skills-carousel[data-direction="left"] .skills-track {
  animation: scrollLeft 32s linear infinite;
}

/* Pause on hover */
.skills-carousel:hover .skills-track {
  animation-play-state: paused;
}

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

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

.skill-badge {
  display: inline-flex;
  align-items: center;
  padding: 1.2rem 3rem;
  font-size: 1.05rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  white-space: nowrap;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}

.skill-badge:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.4);
  transform: translateY(-2px);
}

/* (Apple style card styles kept for future use) */
.skill-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background:
    radial-gradient(
      circle at var(--mouse-x, 50%) var(--mouse-y, 0%),
      rgba(168, 85, 247, 0.4),
      rgba(0, 0, 0, 0) 55%
    );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.skill-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mix-blend-mode: soft-light;
  opacity: 0.3;
  pointer-events: none;
}

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

.skill-card:hover {
  border-color: rgba(168, 85, 247, 0.9);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.75);
}

.skill-card:hover::before {
  opacity: 1;
}

.skill-card-header {
  margin-bottom: 1.1rem;
}

.skill-card-title {
  margin: 0 0 0.25rem 0;
  font-size: clamp(1.15rem, 1.4vw, 1.35rem);
  text-transform: capitalize;
}

.skill-card-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.skill-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  white-space: nowrap;
  transform: translateY(6px);
  opacity: 0;
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.45s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

.skill-card.is-visible .skill-chip {
  transform: translateY(0);
  opacity: 1;
}

.skill-card.is-visible .skill-chip:nth-child(1) { transition-delay: 0.04s; }
.skill-card.is-visible .skill-chip:nth-child(2) { transition-delay: 0.08s; }
.skill-card.is-visible .skill-chip:nth-child(3) { transition-delay: 0.12s; }
.skill-card.is-visible .skill-chip:nth-child(4) { transition-delay: 0.16s; }
.skill-card.is-visible .skill-chip:nth-child(5) { transition-delay: 0.2s; }

.skill-chip:hover {
  background: rgba(168, 85, 247, 0.25);
  border-color: rgba(168, 85, 247, 0.9);
}

/* SERVICES */
.services {
  padding: 14vh clamp(1.5rem, 7vw, 7rem) 16vh;
  border-top: 1px solid var(--muted-soft);
  position: relative;
}

/* Clamp band that hides rows above the title while in the services section */
.services::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  background: var(--bg);
  pointer-events: none;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.2s ease;
}

/* Turn the clamp band on while the services section is active */
body.services-active .services::before {
  height: calc(var(--header-height) + 40px);
  opacity: 1;
}

.services-inner {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

/* Keep "services" title pinned while scrolling through the services section */
.services .section-title {
  position: sticky;
  top: calc(var(--header-height) + 16px);
  z-index: 6;
  margin-bottom: 3rem;
  padding-top: 0.25rem;
  padding-bottom: 0.75rem;
  background: var(--bg);
}

.service-row {
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr auto;
  align-items: start;
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  gap: clamp(2rem, 4vw, 3.5rem);
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.service-row:hover {
  border-top-color: rgba(168, 85, 247, 0.3);
}

.service-row:last-of-type {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.service-row:last-of-type:hover {
  border-bottom-color: rgba(168, 85, 247, 0.3);
}

.service-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-name {
  margin: 0;
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 600;
  text-transform: lowercase;
  transition: color 0.3s ease;
  line-height: 1.2;
}

.service-row:hover .service-name {
  color: var(--accent);
}

.service-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Gallery for all services */
.service-gallery {
  display: flex;
  gap: 1.5rem;
  align-self: center;
  flex-wrap: nowrap;
  justify-content: space-between;
  max-width: 100%;
}

.thumb {
  position: relative;
  flex: 1 1 0;
  aspect-ratio: 4 / 3;
  border-radius: 1rem;
  overflow: hidden;
  background: #000;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.thumb-link {
  display: block;
  width: 100%;
  height: 100%;
}

.thumb::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 14px;
  background: #000;
  pointer-events: none;
}

.service-gallery .thumb img,
.service-gallery .thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

/* Hide controls by default */
.service-gallery .thumb video::-webkit-media-controls-panel {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.service-gallery .thumb video:hover::-webkit-media-controls-panel {
  opacity: 1;
}

/* Hover animation */
.service-row:hover .thumb {
  opacity: 1;
  transform: translateY(0);
}

.service-row:hover .thumb:nth-child(2) {
  transition-delay: 0.03s;
}
.service-row:hover .thumb:nth-child(3) {
  transition-delay: 0.06s;
}
.service-row:hover .thumb:nth-child(4) {
  transition-delay: 0.09s;
}
.service-row:hover .thumb:nth-child(5) {
  transition-delay: 0.12s;
}

.service-link {
  justify-self: flex-end;
  align-self: center;
}

.arrow-circle {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease;
}

.arrow-tip {
  width: 16px;
  height: 16px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: translateX(1px) rotate(-45deg);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.service-row:hover .arrow-circle {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateX(6px);
}

.service-row:hover .arrow-tip {
  border-color: #ffffff;
  transform: translateX(4px) rotate(-45deg);
}

/* CONTACT PAGE */
.contact-page {
  min-height: 100vh;
  padding: 12vh clamp(1.5rem, 8vw, 8rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-inner {
  max-width: 720px;
}

.contact-title {
  margin: 0 0 0.75rem;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
}

.contact-intro {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 520px;
}

.contact-intro a {
  text-decoration: underline;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-row label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.form-row input,
.form-row textarea {
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-family: inherit;
  font-size: 0.98rem;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--muted);
}

.form-row textarea {
  resize: vertical;
}

.contact-submit {
  margin-top: 0.6rem;
  align-self: flex-start;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(168, 85, 247, 0.4);
}

.form-result {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  text-align: center;
}

.form-result:empty {
  display: none;
}

.form-result.sending {
  background: rgba(168, 85, 247, 0.15);
  color: var(--accent);
}

.form-result.success {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.form-result.error {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* Footer */
.site-footer {
  padding: 3rem clamp(1.5rem, 7vw, 7rem) 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: var(--muted);
}

/* Overlay menu */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: #000000;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 120;
}

.menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.menu-close {
  position: absolute;
  top: 1.4rem;
  right: 1.8rem;
  background: transparent;
  border: 1px solid #ffffff;
  border-radius: 6px;
  width: 26px;
  height: 26px;
  color: #ffffff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.overlay-nav {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  text-align: center;
}

.overlay-nav a {
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: capitalize;
  transition: color 0.3s ease;
}

.overlay-nav a:hover {
  color: var(--accent);
}

/* LAPTOP */
@media (max-width: 1400px) and (min-width: 1024px) {
  .service-row {
    grid-template-columns: minmax(180px, 240px) 1fr auto;
    gap: 2.5rem;
  }

  .service-name {
    font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  }

  .service-desc {
    font-size: 0.85rem;
  }

  .rotating-word-container {
    min-width: 7em;
  }

  .agency-headline {
    font-size: clamp(1.7rem, 3.8vw, 3.8rem);
  }
}

/* TABLET */
@media (max-width: 1023px) {
  .hero-line {
    font-size: clamp(2.2rem, 8vw, 4rem);
  }

  .agency-headline {
    font-size: clamp(1.6rem, 5.2vw, 3rem);
    line-height: 1.35;
  }

  .rotating-word-container {
    min-width: 6em;
  }

  .shape {
    transform: scale(0.7);
  }

  .skills-title,
  .section-title {
    font-size: clamp(2.2rem, 5vw, 3rem);
  }

  .skill-badge {
    padding: 0.85rem 2rem;
    font-size: 0.95rem;
  }
}

/* MOBILE */
@media (max-width: 767px) {
  /* Disable complex scroll animations on mobile for smooth scrolling */
  .hero-line {
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 1.15;
    transition: none !important;
    will-change: auto !important;
  }
  
  .hero--approach .hero-line-top,
  .hero--approach .hero-line-bottom {
    transition: none !important;
    will-change: auto !important;
  }
  
  .approach-hero-video-wrapper {
    transition: none !important;
    will-change: auto !important;
  }

  .hero-portfolio {
    margin-top: 2rem;
  }

  .hero-portfolio-name {
    font-size: clamp(2.2rem, 8vw, 3rem);
  }

  .hero-portfolio-sub {
    font-size: 0.8rem;
    padding-inline: 1.5rem;
  }

  .agency-headline {
    font-size: clamp(0.95rem, 3.2vw, 1.15rem);
    line-height: 1.3;
  }

  .agency-line {
    white-space: nowrap;
  }

  .rotating-word-container {
    min-width: 5.5em;
  }

  .rotating-word {
    font-size: 2.1em;
  }

  .skills-title,
  .section-title {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
    margin-bottom: 3rem;
  }

  .service-name {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .service-desc {
    font-size: 0.85rem;
  }

  .service-row {
    padding: 2rem 0;
  }

  .arrow-circle {
    width: 44px;
    height: 44px;
  }

  .arrow-tip {
    width: 14px;
    height: 14px;
  }

  .skill-badge {
    padding: 0.75rem 1.75rem;
    font-size: 0.9rem;
  }

  .shape {
    transform: scale(0.5);
  }

  .site-header {
    padding: 0 1.5rem;
  }
}

/* VERY SMALL MOBILE */
@media (max-width: 480px) {
  .hero-line {
    font-size: clamp(1.75rem, 10vw, 2.5rem);
  }

  .agency-headline {
    font-size: clamp(0.9rem, 4.6vw, 1rem);
    line-height: 1.3;
  }

  .rotating-word-container {
    min-width: 5em;
  }

  .rotating-word {
    font-size: 2em;
  }

  .service-gallery {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .skill-badge {
    padding: 0.65rem 1.5rem;
    font-size: 0.85rem;
  }
}

/* Extra tweaks for hero, rotating word, skills and services on small screens */

/* Force 2-line hero layout on phones */
@media (max-width: 767px) {
  .hero-text {
    max-width: 21rem;
    margin-inline: auto;
  }

  .hero-line {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .hero-line-bottom {
    white-space: nowrap;
  }
}

/* Inline pulse for rotating word when not absolutely centered */
@media (max-width: 767px) {
  .rotating-word-container {
    display: inline-block;
    min-width: 0;
    height: auto;
  }

  .rotating-word {
    position: static;
    transform: none;
  }

  .rotating-word.pulse {
    animation: none;
  }

  .skills-carousel-wrapper {
    left: 0;
    transform: none;
    width: 100%;
  }
}

/* Services layout on tablets and phones:
   header on top, gallery left, arrow on the right */
@media (max-width: 1023px) {
  .service-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "header header"
      "gallery arrow";
    gap: 1.75rem 1.25rem;
    padding: 2.5rem 0;
    align-items: flex-start;
  }

  .service-header {
    grid-area: header;
  }

  .service-gallery {
    grid-area: gallery;
    margin-top: 0.75rem;
    flex-wrap: wrap;
  }

  .service-link {
    grid-area: arrow;
    align-self: center;
    justify-self: center;
  }
}

/* TOUCH DEVICES: always show thumbnails (no hover needed) */
@media (hover: none) and (pointer: coarse) {
  .service-row {
    cursor: default;
  }

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

  .service-row:hover .thumb {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Bigger service thumbnails on mobile only */
@media (max-width: 767px) {
  .service-gallery {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 1.25rem;
  }

  .service-gallery .thumb {
    flex: 0 0 calc(50% - 0.75rem);
    max-width: calc(50% - 0.75rem);
    aspect-ratio: 3 / 4;
  }
}

/* On very small phones, show one big thumb per row */
@media (max-width: 480px) {
  .service-gallery .thumb {
    flex: 0 0 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
  }
}

/* Neon glitch and glow states for the rotating word */

/* Active glitch phase - smooth, breathing glow */
.rotating-word.is-scrambling {
  animation: rotatingWordGlitch 1.4s ease-in-out infinite;
  filter: contrast(1.08) brightness(1.06);
}

/* Pre-glow "warning" before the next glitch starts */
.rotating-word.pre-glow {
  text-shadow:
    0 0 8px rgba(168, 85, 247, 0.7),
    0 0 18px rgba(168, 85, 247, 0.6),
    0 0 28px rgba(168, 85, 247, 0.5);
  filter: contrast(1.08) brightness(1.08);
}

/* Glitch phase glow keyframes */
@keyframes rotatingWordGlitch {
  0% {
    text-shadow:
      0 0 8px rgba(168, 85, 247, 0.8),
      -1px 0 16px rgba(168, 85, 247, 0.9),
      1px 0 16px rgba(168, 85, 247, 0.9);
  }
  50% {
    text-shadow:
      0 0 18px rgba(168, 85, 247, 1),
      -2px 0 30px rgba(168, 85, 247, 0.98),
      2px 0 30px rgba(168, 85, 247, 0.98);
  }
  100% {
    text-shadow:
      0 0 10px rgba(168, 85, 247, 0.9),
      -1px 0 20px rgba(168, 85, 247, 0.92),
      1px 0 20px rgba(168, 85, 247, 0.92);
  }
}

/* Hyper-visual aura for the rotating word container */
.rotating-word-container::after {
  content: "";
  position: absolute;
  inset: -0.15em 0;
  pointer-events: none;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(168, 85, 247, 0.6),
      rgba(0, 0, 0, 0) 70%);
  opacity: 0;
  transform: scale(0.9);
  filter: blur(18px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

/* Container glow states driven by JS */
.rotating-word-container.pre-glow::after {
  opacity: 0.45;
  transform: scale(1.02);
}

.rotating-word-container.is-scrambling::after {
  opacity: 0.9;
  transform: scale(1.06);
}

/* ===========================
   APPROACH PAGE
   =========================== */

/* Hero height for approach page */
.hero.hero--approach {
  height: 260vh;
  margin-bottom: -8px;
}

/* reuse base .hero-inner sticky layout, just tighten spacing */
.hero-inner--approach {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.8rem;
}

.hero-inner--approach .hero-text {
  position: relative;
  z-index: 2;
}

/* main hero video card that grows in as you scroll */
.approach-hero-video-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(100%, calc(100vw - 96px));
  height: calc(100vh + 200px);
  border-radius: 30px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.9);
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale3d(0.4, 0.4, 1);
  transform-origin: center center;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  z-index: 1;
}

/* GPU acceleration for approach page hero lines */
.hero--approach .hero-line {
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

/* frame uses full wrapper height */
.approach-hero-video-frame {
  position: relative;
  width: 100%;
  height: 100%;
}

.approach-hero-video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Collage section under the hero */
.approach-collage {
  padding: 8vh 0 10vh;
  border-top: 1px solid var(--muted-soft);
  background: var(--bg);
}

/* shared inner width */
.approach-inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

/* header copy above collages */
.approach-header {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.75rem 0 1.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.approach-header > p:first-child {
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: var(--muted);
  margin: 0;
}

.approach-header h2 {
  margin: 0.35rem 0 0.9rem;
  font-size: clamp(2.4rem, 3.4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.approach-copy {
  margin: 0;
  font-size: 0.96rem;
  color: var(--muted);
  max-width: 620px;
  text-align: center;
}

/* ===========================
   Stacked collage cards
   =========================== */

.collage-stack {
  position: relative;
  padding-top: 4vh;
  padding-bottom: 16vh; /* runway so subtitles scroll fully into view */
}

/* all four collage cards stick while you scroll */
.collage-panel {
  position: sticky;
  top: calc(var(--header-height) + 56px);
  margin-bottom: 18vh;
  padding: 1.8rem clamp(1.6rem, 3.5vw, 2.6rem) 2.1rem;
  background: #050505;
  border-radius: 28px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.9);
}

/* last card still sticks, it just has less gap under it */
.collage-panel:last-of-type {
  margin-bottom: 0;
}

/* on small screens, disable the sticky stack */
@media (max-width: 1023px) {
  .collage-panel {
    position: static;
    margin-bottom: 4rem;
  }

  .collage-stack {
    padding-top: 3vh;
    padding-bottom: 8vh;
  }
}

/* Title block before each collage grid */
.collage-title-block {
  margin-top: 0;
  margin-bottom: 1.6rem;
  text-align: center;
}

/* Glowing purple collage titles */
.approach-collage-title {
  margin: 0;
  font-size: clamp(1.4rem, 2.3vw, 1.9rem);
  letter-spacing: 0.18em;
  text-transform: lowercase;
  font-weight: 600;
  color: var(--accent);
  text-shadow:
    0 0 6px rgba(168, 85, 247, 0.85),
    0 0 16px rgba(168, 85, 247, 0.7),
    0 0 28px rgba(168, 85, 247, 0.6);
}

/* Small description under each collage title */
.collage-title-desc {
  margin-top: 0.45rem;
  font-size: 0.95rem;
  max-width: 32rem;
  color: var(--muted);
  line-height: 1.5;
  margin-left: auto;
  margin-right: auto;
}

/* ===========================
   Collage grid layout
   =========================== */

/* One column stack by default (mobile-first) */
.approach-grid {
  margin-top: 0;
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 1.5rem;
  grid-template-areas:
    "primary"
    "top"
    "bottom"
    "tall-left"
    "tall-right";
}

/* tile roles */
.approach-tile--primary   { grid-area: primary; }
.approach-tile--top       { grid-area: top; }
.approach-tile--bottom    { grid-area: bottom; }
.approach-tile--tall-left { grid-area: tall-left; }
.approach-tile--tall-right{ grid-area: tall-right; }

/* each tile card */
.approach-tile {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

/* Card frame - base aspect is 16:9 for small screens */
.approach-tile-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
}

.approach-tile-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 20% 0%,
    rgba(168, 85, 247, 0.25),
    transparent 60%
  );
  mix-blend-mode: soft-light;
  pointer-events: none;
}

/* Video fills frame */
.approach-tile-video video,
.approach-tile-video img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  display: block;
}

/* base fade for collage videos that swap sources */
.approach-tile-video video {
  opacity: 1;
  transition: opacity 320ms ease;
}

/* Slight zoom for typography tiles so d3.mp4 hides baked-in black bars */
#tile-delivery .approach-tile-video video,
#tile-post-3 .approach-tile-video video {
  transform: scale(1.32);
  transform-origin: center center;
}


/* Smooth fade for GIF swaps if you use images later */
.approach-tile-video img {
  opacity: 1;
  transition: opacity 0.35s ease;
}

/* captions under each tile */
.approach-caption {
  margin: 0.6rem 0 0;
  font-size: 0.98rem;
  color: #ffffff;
  text-transform: lowercase;
  letter-spacing: 0.12em;
}

/* ===========================
   Approach responsive tweaks
   =========================== */

/* Tablet layout - two columns, stacked rows */
@media (min-width: 768px) and (max-width: 1023px) {
  .approach-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto auto;
    column-gap: 1.5rem;
    row-gap: 1.2rem;
    grid-template-areas:
      "primary top"
      "bottom bottom"
      "tall-left tall-right";
  }
}

/* Small screens - hero tweaks plus simple grid */
@media (max-width: 767px) {
  .hero.hero--approach {
    height: 200vh;
  }

  .approach-hero-video-wrapper {
    width: calc(100% - 2.5rem);
    height: calc(100vh - var(--header-height) - 80px);
    border-radius: 18px;
  }

  .approach-header {
    padding-bottom: 1.5rem;
  }

  .approach-header h2 {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }

  .collage-title-block {
    margin-top: 3.5rem;
    margin-bottom: 1.25rem;
  }

  .approach-grid {
    grid-template-columns: 1fr;
    row-gap: 1.5rem;
    grid-template-areas:
      "primary"
      "top"
      "bottom"
      "tall-left"
      "tall-right";
  }

  /* keep tiles reasonably short on phones */
  .approach-tile-video {
    aspect-ratio: 16 / 9;
  }
}

/* Desktop refinements */
@media (min-width: 1024px) {
  /* overall spacing for the approach section */
  .approach-collage {
    padding-top: 4vh;
    padding-bottom: 7vh;
  }

  .collage-stack {
    padding-bottom: 4vh;
  }

  /* FULL-WIDTH style card, slightly smaller so all captions fit */
  .collage-panel {
    top: 32px;
    margin: 4vh auto 16vh auto; /* was 7vh on the bottom */
    padding: 1.6rem 2rem 1.6rem;
    max-width: 900px;
  }
  .collage-title-block {
    margin-top: 0.4rem; /* pushes the purple title slightly down from the header */
  }


  /* 3 landscape + 2 vertical layout, full width */
  .approach-grid {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
    column-gap: 1.75rem;
    row-gap: .9rem;
    grid-template-areas:
      "primary top top"
      "bottom tall-left tall-right";
    align-items: stretch;
  }

  /* Top row horizontals: make left and right the same height */
  .approach-tile--primary .approach-tile-video {
    aspect-ratio: 16 / 9;
  }

  /* Right tile spans 2 columns plus a gap, so use a slightly "wider" ratio
     to keep its height equal to the left tile */
  .approach-tile--top .approach-tile-video {
    aspect-ratio: 19 / 10;
  }


  /* Bottom left wide tile - make it taller so it feels closer
     in height to the vertical clips */
  .approach-tile--bottom .approach-tile-video {
    aspect-ratio: 9 / 8;
  }

  /* 2 vertical 9:16 clips */
  .approach-tile--tall-left .approach-tile-video,
  .approach-tile--tall-right .approach-tile-video {
    aspect-ratio: 9 / 16;
  }
  
  /* keep captions tight so they fit in view */
  .approach-caption {
    margin-top: 0.2rem;
    font-size: 0.92rem;
  }
}
