/* Kiro Nady Portfolio — dark violet cinematic */

:root {
  --bg: oklch(0.18 0.055 300);
  --bg-hex: #1a0f2e;
  --surface: oklch(0.32 0.08 305);
  --surface-hex: #4a2a6e;
  --ink: oklch(0.96 0.01 250);
  --ink-hex: #f1f5f9;
  --muted: oklch(0.78 0.08 305);
  --muted-hex: #c8a2ff;
  --primary: oklch(0.65 0.18 295);
  --primary-hex: #9b6dff;
  --primary-hover: #6b3f9e;
  --accent: oklch(0.78 0.12 305);
  --glow: oklch(0.65 0.18 295 / 0.42);
  --glow-strong: #9b6dffa6;
  --border: #9b6dff38;
  --gradient-accent: linear-gradient(90deg, #4a2a6e, #9b6dff);
  --gradient-hero: radial-gradient(ellipse 80% 60% at 50% 20%, #4a2a6e55 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 80%, #9b6dff22 0%, transparent 50%),
    var(--bg-hex);

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Karla", system-ui, sans-serif;

  --radius-btn: 20px;
  --radius-card: 20px;
  --nav-height: 72px;
  --section-pad: clamp(4rem, 10vw, 5.5rem) clamp(1.25rem, 6vw, 4rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --z-nav: 100;
  --z-drawer: 110;
  --z-float: 180;
  --z-lightbox: 200;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-hex);
  background: #0a0614;
  background-color: #0a0614;
  -webkit-font-smoothing: antialiased;
}

body.lightbox-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  text-wrap: balance;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.container {
  width: min(1100px, 100%);
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-nav);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
  background: transparent;
  border: 0;
  box-shadow: none;
  transition: background 0.3s var(--ease-out);
}

/* Soft fade only when scrolled past hero — same page color, no hard bar */
.site-header.scrolled {
  background: linear-gradient(
    180deg,
    #0a0614f2 0%,
    #0a0614cc 70%,
    transparent 100%
  );
}

.navbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--ink-hex);
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem 0.25rem;
}

.nav-links a {
  display: inline-block;
  padding: 0.45rem 0.7rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.8rem, 2.4vw, 0.95rem);
  color: var(--muted-hex);
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink-hex);
  background: oklch(0.65 0.18 295 / 0.12);
  outline: none;
}

@media (max-width: 520px) {
  .nav-links {
    gap: 0;
  }

  .nav-links a {
    padding: 0.4rem 0.45rem;
    font-size: 0.78rem;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, background 0.2s,
    border-color 0.2s, color 0.2s;
}

.btn:focus-visible {
  outline: 2px solid var(--primary-hex);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 0 24px var(--glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px var(--glow-strong);
}

.btn-outline {
  border: 1.5px solid var(--primary-hex);
  color: var(--ink-hex);
  background: transparent;
}

.btn-outline:hover {
  background: oklch(0.65 0.18 295 / 0.15);
  transform: translateY(-2px);
  box-shadow: 0 0 20px var(--glow);
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: 0 0 24px #25d36666;
}

.btn-whatsapp:hover {
  background: #1ebe57;
  transform: translateY(-2px);
  box-shadow: 0 0 32px #25d36699;
}

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  right: clamp(1rem, 3vw, 1.5rem);
  bottom: clamp(1rem, 3vw, 1.5rem);
  z-index: var(--z-float);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 56px;
  padding: 0.7rem 1.1rem 0.7rem 0.85rem;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 8px 28px #25d36666, 0 4px 16px #00000066;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, background 0.2s;
  animation: wa-float-in 0.5s var(--ease-out) both;
}

.whatsapp-float i {
  font-size: 1.55rem;
  line-height: 1;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  background: #1ebe57;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 36px #25d36688, 0 6px 20px #00000055;
  outline: none;
  color: #fff;
}

.whatsapp-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 #25d36688;
  animation: wa-pulse 2.2s ease-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes wa-float-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes wa-pulse {
  0% {
    box-shadow: 0 0 0 0 #25d36688;
  }
  70% {
    box-shadow: 0 0 0 14px #25d36600;
  }
  100% {
    box-shadow: 0 0 0 0 #25d36600;
  }
}

@media (max-width: 520px) {
  .whatsapp-float-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .whatsapp-float {
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float,
  .whatsapp-float::after {
    animation: none;
  }
}

/* ---------- Hero (coded banner) ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  position: relative;
  padding: 0;
  overflow: hidden;
}

.hero-stage {
  position: relative;
  min-height: min(100vh, 960px);
  padding-top: var(--nav-height);
  background:
    radial-gradient(ellipse 55% 70% at 78% 45%, #6b3f9e44 0%, transparent 55%),
    radial-gradient(ellipse 40% 50% at 20% 80%, #9b6dff22 0%, transparent 50%),
    linear-gradient(160deg, #0a0614 0%, #12081f 40%, #1a0f2e 100%);
  isolation: isolate;
}

.hero-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-beam {
  position: absolute;
  width: 140%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #9b6dffaa, #c8a2ff88, transparent);
  filter: blur(1px);
  opacity: 0.55;
  transform-origin: left center;
}

.hero-beam-1 {
  top: 18%;
  left: -10%;
  transform: rotate(-18deg);
  box-shadow: 0 0 40px 8px #9b6dff55;
}

.hero-beam-2 {
  top: 42%;
  left: -20%;
  transform: rotate(12deg);
  opacity: 0.35;
  box-shadow: 0 0 50px 10px #6b3f9e44;
}

.hero-beam-3 {
  bottom: 22%;
  left: -5%;
  transform: rotate(-8deg);
  width: 70%;
  opacity: 0.4;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#9b6dff12 1px, transparent 1px),
    linear-gradient(90deg, #9b6dff12 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 40% 50%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 40% 50%, #000 20%, transparent 75%);
  opacity: 0.45;
}

.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-crop {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1.5px solid #ffffff55;
}

.hero-crop-tl {
  top: 1rem;
  left: 1rem;
  border-right: 0;
  border-bottom: 0;
}

.hero-crop-tr {
  top: 1rem;
  right: 1rem;
  border-left: 0;
  border-bottom: 0;
}

.hero-crop-bl {
  bottom: 1rem;
  left: 1rem;
  border-right: 0;
  border-top: 0;
}

.hero-crop-br {
  bottom: 1rem;
  right: 1rem;
  border-left: 0;
  border-top: 0;
}

.hero-meta {
  position: absolute;
  right: clamp(1.25rem, 4vw, 2.5rem);
  bottom: 1.15rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c8a2ff99;
  font-weight: 600;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  gap: 0;
  width: 100%;
  margin-inline: auto;
  min-height: inherit;
  padding: 1.5rem clamp(1.15rem, 4vw, 3.5rem) 2.25rem;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
  max-width: 44rem;
  padding-bottom: 0.5rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: clamp(0.78rem, 1.5vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #e8e0ff;
}

.hero-kicker-marks {
  display: inline-flex;
  gap: 3px;
}

.hero-kicker-marks::before {
  content: "////";
  color: var(--primary-hex);
  letter-spacing: 0.05em;
  text-shadow: 0 0 12px var(--glow);
}

.hero-name {
  font-size: clamp(2.75rem, 11vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: #f4efff;
  text-shadow:
    0 0 48px #9b6dff77,
    0 0 16px #c8a2ff55,
    0 2px 0 #2a1848;
  transition: text-shadow 0.35s var(--ease-out);
  text-wrap: balance;
  max-width: 100%;
}

.hero-name:hover {
  text-shadow:
    0 0 64px #9b6dffaa,
    0 0 28px #c8a2ff88,
    0 2px 0 #2a1848;
}

.hero-role-line {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.6vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e8deff;
  padding-top: 0.45rem;
  border-top: 1px solid #9b6dff55;
  width: 100%;
  max-width: 36rem;
}

.hero-role-line span {
  color: var(--primary-hex);
  margin-inline: 0.35rem;
}

.hero-tagline {
  position: relative;
  padding-left: 0.95rem;
  margin-top: 0.15rem;
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c8a2ffcc;
  max-width: 34rem;
  line-height: 1.45;
}

.hero-tagline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 3px;
  border-radius: 2px;
  background: var(--primary-hex);
  box-shadow: 0 0 12px var(--glow);
}

.hero-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 0.35rem;
}

.tool-icons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.65rem;
}

.tool-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 1.5px solid #9b6dffaa;
  background: oklch(0.2 0.06 300 / 0.65);
  color: #d4c4ff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
  box-shadow: 0 0 16px #9b6dff33, inset 0 0 12px #9b6dff22;
  cursor: default;
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out),
    border-color 0.3s,
    color 0.3s,
    background 0.3s;
}

.tool-icon:hover,
.tool-icon:focus-visible {
  transform: translateY(-4px) scale(1.08);
  color: #fff;
  border-color: #c8a2ff;
  background: oklch(0.35 0.12 295 / 0.75);
  box-shadow:
    0 0 28px #9b6dff88,
    0 8px 20px #00000066,
    inset 0 0 16px #9b6dff44;
  outline: none;
}

.hero-slogan {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: clamp(0.72rem, 1.4vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c8a2ffbb;
  transition: color 0.25s, transform 0.25s var(--ease-out);
}

.hero-slogan i {
  color: var(--primary-hex);
  transition: transform 0.3s var(--ease-out), text-shadow 0.3s;
}

.hero-slogan:hover {
  color: #e8deff;
}

.hero-slogan:hover i {
  transform: rotate(-8deg) scale(1.15);
  text-shadow: 0 0 14px var(--glow);
}

/* Timeline graphic */
.hero-timeline {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-top: 0.65rem;
  padding: 1rem 1.1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid #9b6dff55;
  background: linear-gradient(180deg, #1a0f2ecc 0%, #0d0818ee 100%);
  box-shadow: 0 0 28px #9b6dff22, inset 0 1px 0 #9b6dff22;
  font-size: 0.72rem;
  overflow: hidden;
  cursor: default;
  transition:
    border-color 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    transform 0.35s var(--ease-out);
}

.hero-timeline:hover {
  border-color: #9b6dffaa;
  box-shadow: 0 0 40px #9b6dff55, 0 12px 32px #00000055, inset 0 1px 0 #9b6dff44;
  transform: translateY(-3px);
}

.tl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
  color: #c8a2ffaa;
}

.tl-code {
  font-family: ui-monospace, monospace;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--primary-hex);
  letter-spacing: 0.04em;
  text-shadow: 0 0 10px var(--glow);
  transition: text-shadow 0.3s;
}

.hero-timeline:hover .tl-code {
  text-shadow: 0 0 18px #9b6dff;
}

.tl-ruler {
  display: flex;
  flex: 1;
  justify-content: space-between;
  font-family: ui-monospace, monospace;
  opacity: 0.7;
}

.tl-track {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.45rem;
}

.tl-label {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a890c8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tl-lane {
  position: relative;
  height: 22px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px;
  border-radius: 5px;
  background: #12081f;
  border: 1px solid #9b6dff22;
}

.tl-clip {
  height: 14px;
  border-radius: 3px;
  background: linear-gradient(90deg, #6b3f9e, #9b6dff);
  box-shadow: 0 0 8px #9b6dff55;
  flex-shrink: 0;
  transition: filter 0.3s, box-shadow 0.3s, transform 0.3s var(--ease-out);
}

.hero-timeline:hover .tl-clip {
  filter: brightness(1.2);
  box-shadow: 0 0 14px #9b6dff99;
}

.tl-clip.c1 { width: 28%; }
.tl-clip.c2 { width: 18%; opacity: 0.75; }
.tl-clip.c3 { width: 22%; }
.tl-clip.c4 { width: 20%; }
.tl-clip.c5 { width: 26%; opacity: 0.85; }
.tl-clip.c6 { width: 16%; }

.tl-key {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  background: #e8deff;
  transform: rotate(45deg);
  box-shadow: 0 0 8px #9b6dffaa;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}

.hero-timeline:hover .tl-key {
  transform: rotate(45deg) scale(1.25);
  box-shadow: 0 0 14px #fff;
}

.tl-track.audio .tl-lane {
  height: 26px;
}

.tl-wave {
  display: block;
  width: 100%;
  height: 16px;
  border-radius: 2px;
  background:
    repeating-linear-gradient(
      90deg,
      #9b6dff 0 2px,
      transparent 2px 4px
    );
  opacity: 0.75;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  box-shadow: 0 0 10px #9b6dff44;
  transform-origin: center;
  transition: opacity 0.3s;
}

.hero-timeline:hover .tl-wave {
  opacity: 1;
  animation: tl-wave-pulse 0.55s ease-in-out infinite alternate;
}

@keyframes tl-wave-pulse {
  from {
    transform: scaleY(0.75);
  }
  to {
    transform: scaleY(1.2);
  }
}

.tl-playhead {
  position: absolute;
  top: 2.15rem;
  bottom: 0.7rem;
  left: 42%;
  width: 2px;
  background: #c8a2ff;
  box-shadow: 0 0 10px #9b6dff;
  transition: left 0.05s linear;
  animation: tl-scrub 4.5s var(--ease-out) infinite alternate;
}

.hero-timeline:hover .tl-playhead {
  animation-duration: 1.6s;
  box-shadow: 0 0 18px #c8a2ff, 0 0 8px #9b6dff;
}

@keyframes tl-scrub {
  from {
    left: 28%;
  }
  to {
    left: 78%;
  }
}

.tl-playhead::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e8deff;
  box-shadow: 0 0 10px #9b6dff;
  border: 0;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1rem;
}

.hero-cta-main {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
}

.hero-cta-main .cta-arrow {
  transition: transform 0.3s var(--ease-out), background 0.3s, border-color 0.3s;
}

.hero-cta-main:hover .cta-arrow {
  transform: translateX(3px);
  background: #ffffff22;
  border-color: #fff;
}

.cta-arrow {
  display: inline-grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  margin-left: 0.2rem;
  border-radius: 50%;
  border: 1px solid #ffffff66;
  font-size: 0.75rem;
  line-height: 1;
}

.hero-portrait {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-top: 0.5rem;
  min-height: 280px;
}

.hero-portrait-glow {
  position: absolute;
  width: 75%;
  height: 60%;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, #9b6dff99 0%, #6b3f9e55 40%, transparent 70%);
  filter: blur(32px);
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.4s, transform 0.4s var(--ease-out);
}

.hero-portrait:hover .hero-portrait-glow {
  opacity: 1;
  transform: translateX(-50%) scale(1.12);
}

.hero-portrait-img {
  position: relative;
  z-index: 1;
  width: min(380px, 82vw);
  height: auto;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 0 28px #9b6dff55) drop-shadow(-12px 0 24px #6b3f9e66);
  animation: hero-portrait-in 0.9s var(--ease-out);
  transition: filter 0.4s var(--ease-out), transform 0.45s var(--ease-out);
}

.hero-portrait:hover .hero-portrait-img {
  transform: translateY(-6px) scale(1.02);
  filter: drop-shadow(0 0 40px #9b6dff88) drop-shadow(-16px 0 32px #6b3f9e88);
}

@keyframes hero-portrait-in {
  from {
    transform: translateY(16px);
  }
  to {
    transform: translateY(0);
  }
}

.hero-copy > * {
  animation: hero-copy-in 0.65s var(--ease-out);
}

.hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.1s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.15s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.2s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.25s; }
.hero-copy > *:nth-child(6) { animation-delay: 0.3s; }
.hero-copy > *:nth-child(7) { animation-delay: 0.35s; }

@keyframes hero-copy-in {
  from {
    transform: translateY(10px);
  }
  to {
    transform: translateY(0);
  }
}

@media (min-width: 900px) {
  .hero-stage {
    min-height: 100vh;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
    padding: 1.5rem clamp(2rem, 5vw, 5rem) 2.5rem;
    gap: clamp(1rem, 3vw, 2.5rem);
    width: 100%;
    max-width: 1600px;
  }

  .hero-copy {
    max-width: none;
    padding-bottom: 2rem;
    z-index: 2;
    gap: 1.15rem;
  }

  .hero-portrait {
    margin-top: 0;
    min-height: calc(100vh - var(--nav-height));
    justify-content: flex-end;
    align-self: stretch;
    margin-right: clamp(-1rem, -2vw, 0px);
  }

  .hero-portrait-img {
    width: min(620px, 46vw);
    max-height: calc(100vh - var(--nav-height) - 1rem);
  }

  .hero-name {
    font-size: clamp(3.75rem, 7.5vw, 6.5rem);
  }

  .hero-timeline {
    max-width: 620px;
    font-size: 0.78rem;
  }

  .tool-icon {
    width: 56px;
    height: 56px;
    font-size: 1.05rem;
  }
}

@media (min-width: 1200px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  }

  .hero-portrait-img {
    width: min(680px, 44vw);
  }
}

@media (max-width: 899px) {
  .hero-stage {
    min-height: auto;
  }

  .hero-layout {
    align-items: stretch;
  }

  .hero-portrait {
    order: -1;
    min-height: 300px;
  }

  .hero-portrait-img {
    width: min(320px, 78vw);
  }

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

  .hero-meta {
    display: none;
  }
}

.social-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.social-row a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--muted-hex);
  border-radius: 50%;
  transition: color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.social-row a:hover,
.social-row a:focus-visible {
  color: var(--primary-hex);
  transform: translateY(-2px);
  box-shadow: 0 0 16px var(--glow);
  outline: none;
}

/* ---------- Services ---------- */
.services {
  padding: var(--section-pad);
  position: relative;
}

.section-title {
  text-align: center;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: linear-gradient(165deg, #4a2a6ecc 0%, #2a1848 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 8px 32px #00000033;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 28px var(--glow), 0 16px 40px #00000055;
  border-color: #9b6dff66;
}

.service-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: oklch(0.65 0.18 295 / 0.2);
  color: var(--primary-hex);
  display: grid;
  place-items: center;
  box-shadow: 0 0 20px var(--glow);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--muted-hex);
  font-size: 0.975rem;
  line-height: 1.6;
}

/* ---------- Before & After ---------- */
.before-after {
  padding: var(--section-pad);
  position: relative;
}

.before-after-intro {
  text-align: center;
  color: var(--muted-hex);
  max-width: 42ch;
  margin: -1.5rem auto 2.5rem;
}

.ba-pairs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 1.75rem);
  max-width: 880px;
  margin-inline: auto;
  align-items: start;
}

@media (max-width: 640px) {
  .ba-pairs {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
}

.ba-pair {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition:
    opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ba-pair.is-dimmed {
  opacity: 0.62;
  transform: scale(0.98);
}

.ba-pair.is-dimmed .ba-compare::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 8;
  background: oklch(0.12 0.04 300 / 0.48);
  pointer-events: none;
}

.ba-pair.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .ba-pair {
    transition: none;
  }

  .ba-pair.is-dimmed {
    transform: none;
  }
}

.ba-compare {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0d0818;
  box-shadow: 0 12px 40px #00000055;
  aspect-ratio: 9 / 16;
  user-select: none;
  touch-action: none;
  cursor: ew-resize;
}

.ba-pair.is-playing .ba-compare {
  border-color: #9b6dff66;
  box-shadow: 0 0 28px #9b6dff33, 0 16px 40px #00000066;
}

.ba-layer {
  position: absolute;
  inset: 0;
}

.ba-layer-before {
  z-index: 1;
}

.ba-layer-after {
  z-index: 2;
  clip-path: inset(0 0 0 var(--ba-pos, 50%));
}

.ba-layer video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
  pointer-events: none;
  transform: translateZ(0);
}

.ba-label {
  position: absolute;
  top: 0.75rem;
  z-index: 2;
  padding: 0.35rem 0.75rem;
  border-radius: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: oklch(0.22 0.03 300 / 0.78);
  border: 1px solid #ffffff28;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}

.ba-layer-before .ba-label {
  left: 0.75rem;
}

.ba-layer-after .ba-label,
.ba-label.after {
  right: 0.75rem;
  left: auto;
  background: oklch(0.65 0.18 295 / 0.92);
  border-color: transparent;
  box-shadow: 0 0 16px var(--glow);
}

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--ba-pos, 50%);
  z-index: 4;
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 12px #00000088;
  pointer-events: none;
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #fff;
  color: #1a1228;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 18px #00000066;
}

.ba-range {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  appearance: none;
  -webkit-appearance: none;
}

.ba-caption {
  text-align: center;
  color: var(--muted-hex);
  font-size: 0.95rem;
  font-weight: 500;
}

.ba-sound-btn {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  z-index: 6;
  transform: translateX(-50%);
  padding: 0.55rem 1rem;
  border: 1px solid #ffffff44;
  border-radius: 999px;
  background: oklch(0.22 0.05 300 / 0.88);
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px #00000066;
  white-space: nowrap;
}

.ba-sound-btn:hover,
.ba-sound-btn:focus-visible {
  background: oklch(0.55 0.18 295 / 0.95);
  border-color: transparent;
  outline: none;
}

.ba-pair.needs-sound .ba-compare {
  box-shadow: 0 0 0 1px #9b6dff88, 0 16px 40px #00000066;
}

/* ---------- Projects ---------- */
.projects {
  padding: var(--section-pad);
  position: relative;
  overflow: hidden;
}

.projects-watermark {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4rem, 20vw, 10rem);
  letter-spacing: -0.04em;
  color: oklch(0.25 0.05 300 / 0.4);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
}

.projects-inner {
  position: relative;
  z-index: 1;
}

.filter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid var(--primary-hex);
  color: var(--muted-hex);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.filter-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 16px var(--glow);
}

.filter-btn.active {
  background: var(--primary-hex);
  color: #1a0f2e;
  box-shadow: 0 0 24px var(--glow);
}

.projects-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.projects-heading h2 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.65rem;
}

.projects-heading p {
  color: var(--muted-hex);
  max-width: 42ch;
  margin-inline: auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.15rem;
  max-width: 900px;
  margin-inline: auto;
}

.projects-grid:has(.drive-highlight) {
  grid-template-columns: 1fr;
  max-width: 560px;
}

.drive-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  padding: clamp(1.75rem, 5vw, 2.5rem);
  border-radius: var(--radius-card);
  border: 1px solid #9b6dff88;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, #9b6dff33 0%, transparent 55%),
    linear-gradient(165deg, #3a2460 0%, #1a0f2e 70%);
  box-shadow: 0 0 36px var(--glow), 0 16px 40px #00000055;
}

.drive-highlight-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: oklch(0.65 0.18 295 / 0.2);
  color: var(--primary-hex);
  box-shadow: 0 0 24px var(--glow);
  font-size: 1.75rem;
}

.drive-highlight h3 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 800;
  margin: 0;
}

.drive-highlight p {
  color: var(--muted-hex);
  max-width: 36ch;
  margin: 0;
  font-size: 0.98rem;
}

.drive-highlight .btn {
  margin-top: 0.35rem;
  box-shadow: 0 0 28px var(--glow);
}

@media (min-width: 640px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

.project-card {
  display: block;
  width: 100%;
  padding: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-hex);
  box-shadow: 0 0 0 transparent, 0 8px 24px #00000044;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 0 28px var(--glow), 0 16px 40px #00000066;
  border-color: #9b6dff88;
  outline: none;
}

.project-thumb {
  position: relative;
  aspect-ratio: 9 / 16;
  background:
    radial-gradient(circle at 50% 30%, #9b6dff55 0%, transparent 50%),
    linear-gradient(165deg, #5a3a7e 0%, #1a0f2e 70%);
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-thumb.has-media {
  background: #0d0818;
}

.thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Scaled Instagram embed so the reel preview fills the portrait card */
.embed-preview {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  background: #0d0818;
}

.embed-preview iframe {
  position: absolute;
  top: 0;
  left: 50%;
  width: 320px;
  height: 680px;
  border: 0;
  transform: translateX(-50%) scale(0.72);
  transform-origin: top center;
}

.badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: oklch(0.65 0.18 295 / 0.85);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 2;
}

.views-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: oklch(0.14 0.04 300 / 0.78);
  border: 1px solid #ffffff22;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px #00000055;
}

.views-badge i {
  font-size: 0.72rem;
  opacity: 0.9;
}

.project-thumb:has(.badge) .views-badge {
  top: 0.75rem;
}

.thumb-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  z-index: 1;
}

.thumb-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--primary-hex);
  text-shadow: 0 0 20px var(--glow);
}

.thumb-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-hex);
}

.project-thumb .play-btn {
  position: absolute;
  bottom: 1rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-hex);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 0 20px var(--glow);
  opacity: 0.95;
  transition: transform 0.2s var(--ease-out);
  z-index: 2;
}

.project-card:hover .play-btn {
  transform: scale(1.08);
}

/* ---------- Contact ---------- */
.contact {
  padding: var(--section-pad);
  text-align: center;
}

.contact h2 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.contact h2 .accent {
  color: var(--muted-hex);
}

.contact p {
  color: var(--muted-hex);
  max-width: 40ch;
  margin: 0 auto 1.75rem;
}

.contact .btn-primary,
.contact .btn-whatsapp {
  padding: 0.9rem 1.75rem;
  font-size: 1rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  align-items: center;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 2.5rem clamp(1.25rem, 6vw, 4rem) 3rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.footer-title {
  color: var(--muted-hex);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.site-footer .social-row {
  margin-bottom: 1.5rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: oklch(0.65 0.06 305);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  background: oklch(0.1 0.04 300 / 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease-out), visibility 0.25s;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-panel {
  position: relative;
  width: min(400px, 100%);
  max-height: min(90vh, 720px);
  display: flex;
  flex-direction: column;
}

.lightbox-close {
  position: absolute;
  top: -2.75rem;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--ink-hex);
  display: grid;
  place-items: center;
  background: oklch(0.2 0.05 300 / 0.8);
  transition: background 0.2s, box-shadow 0.2s;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: var(--primary-hex);
  box-shadow: 0 0 16px var(--glow);
  outline: none;
}

.lightbox-body {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
  box-shadow: 0 0 40px var(--glow), 0 24px 60px #00000088;
  aspect-ratio: 9 / 16;
  max-height: min(80vh, 640px);
  position: relative;
}

.lightbox-body iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.lightbox-ext {
  position: absolute;
  left: 50%;
  bottom: 0.75rem;
  transform: translateX(-50%);
  z-index: 3;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: oklch(0.65 0.18 295 / 0.95);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 0 16px var(--glow);
}

.lightbox-body.facebook-embed {
  background: #000;
}

.lightbox-body.facebook-embed iframe {
  background: #000;
}

.lightbox-fallback {
  height: 100%;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 1.25rem;
  text-align: center;
  background: linear-gradient(165deg, #4a2a6e 0%, #1a0f2e 100%);
}

.lightbox-thumb {
  width: 100%;
  max-height: min(55vh, 420px);
  object-fit: cover;
  border-radius: 12px;
}

.lightbox-fallback p {
  color: var(--muted-hex);
}

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

  .project-card:hover,
  .service-card:hover,
  .hero-portrait:hover .hero-portrait-img,
  .tool-icon:hover,
  .hero-timeline:hover {
    transform: none;
  }

  .tl-playhead {
    animation: none !important;
    left: 58%;
  }

  .hero-timeline:hover .tl-wave {
    animation: none !important;
  }
}

/* ---------- Focus utilities ---------- */
:focus-visible {
  outline: 2px solid var(--primary-hex);
  outline-offset: 3px;
}
