* { box-sizing: border-box; }

:root {
  --bg: #000;
  --fg: #fff;
  --muted: rgba(255,255,255,0.64);
  --line: rgba(255,255,255,0.12);
  --gold: #b99555;
  --pad: clamp(22px, 2.6vw, 48px);
  --header-h: 84px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

img, video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

button {
  font: inherit;
  color: inherit;
}

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

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: 0.075;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.18) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 80%, rgba(255,255,255,.12) 0 1px, transparent 1px);
  background-size: 3px 3px, 5px 5px;
  mix-blend-mode: screen;
}

.cursor-glow {
  position: fixed;
  width: 340px;
  height: 340px;
  pointer-events: none;
  z-index: 1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,.13), transparent 68%);
  filter: blur(28px);
  opacity: .2;
  transform: translate(-50%, -50%);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 150;
  height: var(--header-h);
  padding: 16px var(--pad);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  background: rgba(0,0,0,.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  transition: transform 520ms cubic-bezier(.12,.82,.16,1), opacity 420ms ease;
}

.site-header.header-hidden {
  transform: translateY(-112%);
  opacity: 0;
}

.brand {
  font-size: clamp(22px, 1.5vw, 30px);
  font-weight: 900;
  letter-spacing: -.055em;
  animation: headerHeavyDrop 1350ms 450ms cubic-bezier(.12,.82,.16,1) both;
}

.header-right {
  display: grid;
  justify-items: end;
  gap: 3px;
  animation: headerHeavyDrop 1450ms 750ms cubic-bezier(.12,.82,.16,1) both;
}

.header-right p {
  margin: 0;
  color: rgba(255,255,255,.58);
  font-size: clamp(12px, .9vw, 16px);
  font-weight: 800;
}

.socials {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.social-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  transform-origin: center;
  transition: transform 220ms cubic-bezier(.2,.8,.2,1), filter 220ms ease, opacity 220ms ease;
}

.social-icon svg {
  width: 25px;
  height: 25px;
  overflow: visible;
}

.instagram rect,
.instagram circle {
  fill: none;
  stroke: url(#igGradient);
  stroke-width: 2.1;
}

.youtube svg path:first-child { fill: #ff003d; }
.youtube .yt-triangle { fill: #fff; }
.x-icon path { fill: rgba(255,255,255,.94); }

.social-icon:hover {
  transform: translateY(-5px) scale(1.38) rotate(-4deg);
  filter: drop-shadow(0 0 18px rgba(255,255,255,.36));
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  padding: clamp(34px, 4vw, 64px) var(--pad) 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.hero::before {
  background:
    radial-gradient(circle at 79% 23%, rgba(255,255,255,.075), transparent 25%),
    radial-gradient(circle at 13% 47%, rgba(255,255,255,.045), transparent 30%);
  animation: atmosphere 10s ease-in-out infinite alternate;
}

.hero::after {
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.075), transparent);
  transform: translateX(-140%) skewX(-18deg);
  animation: heroSweep 8.2s 4.6s cubic-bezier(.2,.8,.2,1) infinite;
}

.hero-copy {
  position: relative;
  z-index: 5;
  width: min(54vw, 860px);
}

.eyebrow {
  margin: 0 0 22px;
  color: rgba(255,255,255,.48);
  text-transform: uppercase;
  font-size: clamp(12px, .78vw, 15px);
  font-weight: 950;
  letter-spacing: .03em;
}

h1 {
  margin: 0;
  font-size: clamp(76px, 7.2vw, 150px);
  line-height: .86;
  letter-spacing: -.078em;
  font-weight: 930;
  max-width: 940px;
}

.hero-video {
  position: absolute;
  z-index: 4;
  right: var(--pad);
  top: clamp(70px, 7.5vw, 128px);
  width: min(45vw, 840px);
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(255,255,255,.05);
  box-shadow:
    0 34px 120px rgba(0,0,0,.88),
    0 0 0 1px rgba(255,255,255,.12),
    0 0 80px rgba(130,150,255,.12);
  transition: transform 520ms cubic-bezier(.12,.82,.16,1), filter 520ms ease, box-shadow 520ms ease;
}

.hero-video:hover {
  transform: translateY(-8px) scale(1.055);
  filter: brightness(1.08) contrast(1.04);
  box-shadow:
    0 44px 140px rgba(0,0,0,.9),
    0 0 0 1px rgba(255,255,255,.25),
    0 0 95px rgba(130,150,255,.22);
}

.hero-video::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(255,255,255,.10), transparent 20%, transparent 78%, rgba(0,0,0,.32)),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.035) 0 1px, transparent 1px 6px);
  opacity: .38;
  mix-blend-mode: screen;
}

.hero-video::after {
  content: "";
  position: absolute;
  left: -35%;
  top: 0;
  z-index: 5;
  width: 28%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  transform: skewX(-16deg);
  animation: videoShine 6.4s 5.3s ease-in-out infinite;
}

.hero-local-video {
  transform: scale(1.035);
  filter: brightness(.92) contrast(1.08) saturate(1.06);
}

.video-hint {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 10;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(0,0,0,.45);
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.hero-video:hover .video-hint,
.bottom-video:hover .video-hint {
  opacity: 1;
  transform: translateY(0);
}

.skill-bar {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: clamp(92px, 12vw, 180px) calc(-1 * var(--pad)) 0;
  background: #fff;
  color: #000;
  font-size: clamp(13px, .95vw, 18px);
  font-weight: 950;
}

.skill-bar span {
  padding: 4px 10px;
  text-align: center;
  white-space: nowrap;
}

.wordmark {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: flex-start;
  max-width: 100%;
  margin: clamp(68px, 7vw, 118px) 0 clamp(34px, 4vw, 70px);
  overflow: visible;
  white-space: nowrap;
  font-size: clamp(118px, 14vw, 270px);
  line-height: .76;
  font-weight: 1000;
  letter-spacing: -.108em;
}

.wordmark span {
  display: block;
}

.wordmark sup {
  margin-left: .07em;
  font-size: .18em;
  letter-spacing: -.05em;
}

/* Heavy page load animation */
.load-drop {
  opacity: 0;
  transform: translateY(-230px) scale(.975);
  filter: blur(14px) brightness(1.3);
  animation: heavyDrop 2100ms cubic-bezier(.11,.78,.13,1) both;
}

.drop-1 { animation-delay: 1500ms; }
.drop-2 { animation-delay: 2200ms; }
.drop-3 { animation-delay: 3000ms; }
.drop-4 { animation-delay: 3720ms; }

.skill-bar.load-drop {
  transform-origin: top center;
  animation-name: heavyBarDrop;
  animation-duration: 1650ms;
}

.wordmark.load-drop {
  animation-name: heavyWordDrop;
  animation-duration: 2200ms;
}

/* Shared panels */
.panel {
  border-bottom: 1px solid var(--line);
  padding: clamp(56px, 6vw, 110px) var(--pad);
  overflow: hidden;
}

.section-row {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: clamp(54px, 6vw, 100px);
  font-size: clamp(12px, .8vw, 15px);
  font-weight: 950;
  color: rgba(255,255,255,.94);
}

.section-row p { margin: 0; }

.intro-grid {
  max-width: 1680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(340px, 560px) minmax(420px, 1fr);
  gap: clamp(52px, 8vw, 150px);
  align-items: center;
}

.image-card {
  position: relative;
  overflow: hidden;
  border-radius: 13px;
  background: rgba(255,255,255,.04);
  box-shadow: 0 0 0 1px rgba(255,255,255,.11);
  transition: transform 500ms cubic-bezier(.12,.82,.16,1), filter 500ms ease, box-shadow 500ms ease;
  will-change: transform;
}

.image-card img {
  transform: scale(1.035);
  transition: transform 800ms cubic-bezier(.12,.82,.16,1), filter 700ms ease;
}

.image-card:hover {
  transform: translateY(-10px) scale(1.018);
  filter: brightness(1.08);
  box-shadow: 0 30px 90px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.2);
}

.image-card:hover img {
  transform: scale(1.09);
}

.portrait-card {
  height: min(76vw, 820px);
}

.intro-copy h2 {
  margin: 0;
  font-size: clamp(48px, 5.2vw, 98px);
  line-height: .98;
  letter-spacing: -.067em;
  font-weight: 900;
}

.intro-copy p {
  margin: 24px 0 0;
  max-width: 920px;
  color: rgba(255,255,255,.74);
  font-size: clamp(26px, 2.8vw, 52px);
  line-height: 1.03;
  letter-spacing: -.05em;
  font-weight: 760;
}

.skill-bar.slim {
  margin-top: clamp(70px, 8vw, 132px);
}

/* Works */
.works-top {
  max-width: 1680px;
  margin: 0 auto clamp(74px, 7vw, 130px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr);
  gap: clamp(28px, 4vw, 74px);
  align-items: end;
}

.works-top h2 {
  margin: 0;
  font-size: clamp(86px, 10.6vw, 214px);
  line-height: .82;
  letter-spacing: -.09em;
  font-weight: 1000;
  white-space: nowrap;
}

.works-top p {
  margin: 0 0 16px;
  color: rgba(255,255,255,.68);
  font-size: clamp(20px, 1.45vw, 30px);
  line-height: 1.18;
  font-weight: 840;
}

.works-grid {
  max-width: 1680px;
  min-height: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(10, 92px);
  gap: clamp(24px, 3vw, 52px);
}

.work-main { grid-column: 1 / 7; grid-row: 1 / 6; }
.work-side { grid-column: 8 / 12; grid-row: 1 / 4; }
.work-blue { grid-column: 7 / 12; grid-row: 5 / 8; }
.work-forest { grid-column: 6 / 12; grid-row: 7 / 11; }
.work-eye { grid-column: 1 / 5; grid-row: 8 / 10; }

/* Current */
.current {
  padding-top: clamp(72px, 8vw, 140px);
}

.tracking-title {
  margin: 0 auto clamp(54px, 6vw, 96px);
  text-align: center;
  font-size: clamp(70px, 7.2vw, 138px);
  line-height: .88;
  letter-spacing: .12em;
  font-weight: 520;
}

.project-wide {
  max-width: 1680px;
  margin: 0 auto;
  height: clamp(480px, 48vw, 820px);
}

/* Process */
.process-stage {
  position: relative;
  min-height: clamp(850px, 79vw, 1280px);
  max-width: 1680px;
  margin: 0 auto;
}

.process-title {
  position: relative;
  z-index: 5;
  width: min(1280px, 88vw);
  margin: clamp(60px, 6vw, 115px) auto 0;
  font-size: clamp(62px, 6.4vw, 124px);
  line-height: 1.02;
  letter-spacing: -.073em;
  font-weight: 930;
}

.dim { color: rgba(255,255,255,.24); }
.warm { color: var(--gold); }

.process-left {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 142px;
  width: min(470px, 32vw);
  height: clamp(340px, 32vw, 540px);
  opacity: .7;
}

.process-right {
  position: absolute;
  z-index: 3;
  right: 3vw;
  top: 382px;
  width: min(760px, 48vw);
  height: clamp(320px, 29vw, 500px);
  opacity: .82;
}

.process-note {
  position: absolute;
  z-index: 7;
  left: 42%;
  bottom: 170px;
  max-width: 610px;
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: clamp(18px, 1.55vw, 28px);
  line-height: 1.3;
  font-weight: 760;
}

/* Closing */
.closing {
  text-align: center;
}

.bottom-video {
  width: min(720px, 72vw);
  aspect-ratio: 16 / 9;
  margin: clamp(60px, 7vw, 110px) auto;
  padding: 0;
  border: 0;
  cursor: pointer;
}

.bottom-video video {
  transform: scale(1.02);
}

.closing-text {
  margin: 0 auto 34px;
  max-width: 760px;
  color: rgba(255,255,255,.9);
  font-size: clamp(17px, 1.35vw, 24px);
  line-height: 1.35;
  font-weight: 850;
}

.back-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  border: 2px solid rgba(255,255,255,.86);
  border-radius: 999px;
  padding: 10px 25px;
  font-size: clamp(18px, 1.35vw, 24px);
  font-weight: 950;
  text-transform: uppercase;
  transition: transform 220ms ease, background 220ms ease, color 220ms ease;
}

.back-top:hover {
  background: #fff;
  color: #000;
  transform: translateY(-4px) scale(1.04);
}

/* Scroll reveal and scroll-reactive motion */
.reveal {
  opacity: 0;
  transform: translate3d(0, 90px, 0) scale(.985);
  filter: blur(8px) brightness(.55);
  transition:
    opacity 1000ms cubic-bezier(.12,.82,.16,1),
    transform 1000ms cubic-bezier(.12,.82,.16,1),
    filter 1000ms cubic-bezier(.12,.82,.16,1);
}

.reveal.in-view {
  opacity: 1;
  transform: translate3d(0, var(--scroll-y, 0px), 0) scale(1);
  filter: blur(0) brightness(1);
}

.scroll-react {
  --scroll-y: 0px;
  --scroll-r: 0deg;
}

.scroll-react.scroll-kick {
  transform: translate3d(0, var(--scroll-y), 0) rotate(var(--scroll-r)) !important;
  transition: transform 150ms cubic-bezier(.05,.8,.1,1);
}

/* Modal */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 70px);
  background: rgba(0,0,0,.86);
  backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
}

.video-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.video-modal video {
  width: min(92vw, 1500px);
  max-height: 84vh;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 50px 170px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.16);
  background: #050505;
}

.modal-close {
  position: absolute;
  top: 22px;
  right: 28px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: #fff;
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease;
}

.modal-close:hover {
  transform: scale(1.1);
  background: rgba(255,255,255,.14);
}

/* Keyframes */
@keyframes headerHeavyDrop {
  0% { opacity: 0; transform: translateY(-92px); filter: blur(10px) brightness(1.25); }
  72% { opacity: 1; transform: translateY(7px); filter: blur(0) brightness(1.04); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0) brightness(1); }
}

@keyframes heavyDrop {
  0% { opacity: 0; transform: translateY(-230px) scale(.975); filter: blur(14px) brightness(1.3); }
  58% { opacity: 1; transform: translateY(16px) scale(1.006); filter: blur(0) brightness(1.06); }
  78% { transform: translateY(-4px) scale(1.001); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0) brightness(1); }
}

@keyframes heavyBarDrop {
  0% { opacity: 0; transform: translateY(-140px) scaleY(.05); filter: blur(9px); }
  62% { opacity: 1; transform: translateY(11px) scaleY(1.14); filter: blur(0); }
  82% { transform: translateY(-2px) scaleY(.98); }
  100% { opacity: 1; transform: translateY(0) scaleY(1); filter: blur(0); }
}

@keyframes heavyWordDrop {
  0% { opacity: 0; transform: translateY(-175px) scale(.985); filter: blur(11px) brightness(1.25); }
  62% { opacity: 1; transform: translateY(12px) scale(1.004); filter: blur(0) brightness(1.05); }
  82% { transform: translateY(-4px) scale(1); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0) brightness(1); }
}

@keyframes atmosphere {
  from { opacity: .62; transform: translate3d(-1.5%, -1%, 0) scale(1); }
  to { opacity: 1; transform: translate3d(1.5%, 1%, 0) scale(1.04); }
}

@keyframes heroSweep {
  0%, 42% { transform: translateX(-160%) skewX(-18deg); opacity: 0; }
  55% { opacity: .58; }
  82%, 100% { transform: translateX(430%) skewX(-18deg); opacity: 0; }
}

@keyframes videoShine {
  0%, 55% { transform: translateX(-180%) skewX(-16deg); opacity: 0; }
  68% { opacity: .7; }
  100% { transform: translateX(520%) skewX(-16deg); opacity: 0; }
}

/* Responsive */
@media (max-width: 1000px) {
  :root { --header-h: 76px; }

  .site-header {
    height: auto;
    min-height: var(--header-h);
    align-items: flex-start;
  }

  .header-right p {
    display: none;
  }

  .hero {
    padding-top: 36px;
    min-height: auto;
  }

  .hero-copy {
    width: 100%;
  }

  h1 {
    font-size: clamp(58px, 16vw, 120px);
  }

  .hero-video {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    margin: 38px 0 0;
  }

  .skill-bar {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 50px;
  }

  .wordmark {
    font-size: clamp(84px, 22vw, 180px);
    letter-spacing: -.105em;
  }

  .intro-grid,
  .works-top {
    grid-template-columns: 1fr;
  }

  .portrait-card {
    height: 620px;
  }

  .works-top h2 {
    white-space: normal;
  }

  .works-grid {
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 26px;
  }

  .work-main,
  .work-side,
  .work-blue,
  .work-forest,
  .work-eye {
    grid-column: auto;
    grid-row: auto;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .work-eye {
    aspect-ratio: 16 / 7;
  }

  .tracking-title {
    letter-spacing: .07em;
  }

  .project-wide {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .process-stage {
    min-height: auto;
    display: grid;
    gap: 26px;
  }

  .process-title,
  .process-note,
  .process-left,
  .process-right {
    position: static;
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .process-left,
  .process-right {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .process-title {
    order: 1;
    font-size: clamp(48px, 12vw, 92px);
  }

  .process-left { order: 2; }
  .process-right { order: 3; }
  .process-note { order: 4; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .load-drop,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}


/* ===== SMOOTH HEAVY MOTION PASS ===== */

/* Header progress line + smoother hide/reveal */
.site-header {
  --scroll-progress: 0;
  transition:
    transform 780ms cubic-bezier(.12,.82,.16,1),
    opacity 620ms ease,
    background 520ms ease;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: calc(var(--scroll-progress) * 100%);
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,.18), rgba(255,255,255,.95), rgba(255,255,255,.18));
  box-shadow: 0 0 16px rgba(255,255,255,.35);
  transition: width 220ms ease-out;
}

.site-header.header-hidden {
  transform: translateY(-118%);
  opacity: 0;
}

/* Inertial scroll variables. These are driven by JS with a spring, not sudden jumps. */
.scroll-react {
  --inertia-x: 0px;
  --inertia-y: 0px;
  --inertia-r: 0deg;
  --inertia-scale: 1;
  will-change: transform;
}

/* Rewrite reveal transform so reveal + smooth inertia combine instead of fighting. */
.reveal {
  --reveal-y: 96px;
  --reveal-scale: .982;
  transform:
    translate3d(
      var(--inertia-x),
      calc(var(--reveal-y) + var(--inertia-y)),
      0
    )
    rotate(var(--inertia-r))
    scale(calc(var(--reveal-scale) * var(--inertia-scale))) !important;
  transition:
    opacity 1250ms cubic-bezier(.12,.82,.16,1),
    filter 1250ms cubic-bezier(.12,.82,.16,1),
    transform 1250ms cubic-bezier(.12,.82,.16,1);
}

.reveal.in-view {
  --reveal-y: 0px;
  --reveal-scale: 1;
}

/* Bars also move, but subtly and heavily. */
.skill-bar.scroll-react:not(.load-drop) {
  transform:
    translate3d(
      var(--inertia-x),
      var(--inertia-y),
      0
    )
    rotate(var(--inertia-r))
    scaleY(var(--inertia-scale)) !important;
}

.skill-bar span {
  transition: transform 900ms cubic-bezier(.12,.82,.16,1), letter-spacing 900ms cubic-bezier(.12,.82,.16,1);
}

.skill-bar:hover span {
  letter-spacing: .045em;
}

.skill-bar:hover span:nth-child(odd) {
  transform: translateY(-2px);
}

.skill-bar:hover span:nth-child(even) {
  transform: translateY(2px);
}

/* Keep first-load animation heavy, but delay it a bit more. */
.drop-1 { animation-delay: 1900ms !important; }
.drop-2 { animation-delay: 2850ms !important; }
.drop-3 { animation-delay: 3800ms !important; }
.drop-4 { animation-delay: 4650ms !important; }

.load-drop {
  animation-duration: 2450ms !important;
}

.skill-bar.load-drop {
  animation-duration: 1900ms !important;
}

.wordmark.load-drop {
  animation-duration: 2600ms !important;
}

/* More alive, but not floaty: cinematic breathing/shimmer */
.hero-copy h1,
.works-top h2,
.tracking-title,
.process-title {
  text-shadow: 0 0 0 rgba(255,255,255,0);
  animation: heavyTextPulse 7.5s ease-in-out infinite;
}

@keyframes heavyTextPulse {
  0%, 100% {
    filter: brightness(1);
    text-shadow: 0 0 0 rgba(255,255,255,0);
  }
  50% {
    filter: brightness(1.08);
    text-shadow: 0 0 26px rgba(255,255,255,.055);
  }
}

/* Image cards get a professional living surface: slow light sweep + hover depth */
.image-card::before {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 0 38%, rgba(255,255,255,.16) 48%, transparent 58%),
    radial-gradient(circle at 50% 10%, rgba(255,255,255,.09), transparent 38%);
  opacity: 0;
  transform: translateX(-90%);
  mix-blend-mode: screen;
  transition: opacity 700ms ease;
}

.image-card::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.12), transparent 28%),
    linear-gradient(to bottom, transparent 70%, rgba(0,0,0,.24));
  opacity: .45;
  transition: opacity 550ms ease;
}

.image-card:hover::before {
  opacity: .75;
  animation: cardLightSweep 1300ms cubic-bezier(.12,.82,.16,1) both;
}

.image-card:hover::after {
  opacity: .75;
}

@keyframes cardLightSweep {
  from { transform: translateX(-95%) skewX(-14deg); }
  to { transform: translateX(120%) skewX(-14deg); }
}

/* Subtle ambient background motion for panels */
.panel {
  position: relative;
  isolation: isolate;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .35;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.045), transparent 24%),
    radial-gradient(circle at 80% 65%, rgba(120,145,255,.035), transparent 26%);
  transform: translate3d(var(--panel-x, 0px), var(--panel-y, 0px), 0);
  transition: transform 1000ms cubic-bezier(.12,.82,.16,1);
}

/* Video feels more physical */
.hero-video,
.bottom-video {
  transform:
    translate3d(
      var(--inertia-x, 0px),
      var(--inertia-y, 0px),
      0
    )
    rotate(var(--inertia-r, 0deg))
    scale(var(--inertia-scale, 1));
}

.hero-video:hover,
.bottom-video:hover {
  transform:
    translate3d(
      var(--inertia-x, 0px),
      calc(var(--inertia-y, 0px) - 8px),
      0
    )
    rotate(var(--inertia-r, 0deg))
    scale(1.055) !important;
}

/* Remove the older fast kick behavior completely */
.scroll-react.scroll-kick {
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy h1,
  .works-top h2,
  .tracking-title,
  .process-title {
    animation: none !important;
  }
}


/* ===== BIGGER / SMOOTHER / MORE ALIVE PASS ===== */

/* Performance: the local MP4 lag is usually from a huge bitrate/resolution.
   This reduces expensive effects on top of the video so the browser can decode it more cleanly. */
.hero-video::before,
.hero-video::after {
  opacity: .12 !important;
  mix-blend-mode: normal !important;
}

.hero-local-video {
  filter: brightness(.96) contrast(1.03) saturate(1.02) !important;
  transform: scale(1.01) !important;
  will-change: transform;
}

/* Hero spacing: larger video, less dead right side, safer wordmark spacing. */
.hero {
  min-height: calc(108svh - var(--header-h));
  padding-top: clamp(42px, 4.5vw, 82px);
}

.hero-copy {
  width: min(46vw, 920px) !important;
}

h1,
.hero-title {
  font-size: clamp(82px, 6.55vw, 154px) !important;
  line-height: .875 !important;
  letter-spacing: -.08em !important;
}

.hero-title {
  display: grid;
  gap: .01em;
}

.hero-title span {
  display: block;
  transform: translateY(-90px);
  opacity: 0;
  filter: blur(9px);
  animation: heroLineDrop 1500ms cubic-bezier(.11,.78,.13,1) both;
}

.hero-title span:nth-child(1) { animation-delay: 2250ms; }
.hero-title span:nth-child(2) { animation-delay: 2380ms; }
.hero-title span:nth-child(3) { animation-delay: 2510ms; }
.hero-title span:nth-child(4) { animation-delay: 2640ms; }
.hero-title span:nth-child(5) { animation-delay: 2770ms; }
.hero-title span:nth-child(6) { animation-delay: 2900ms; }

.hero-video {
  width: min(53vw, 1080px) !important;
  top: clamp(82px, 8.3vw, 152px) !important;
  right: clamp(22px, 2.4vw, 46px) !important;
  border-radius: 18px !important;
  box-shadow:
    0 36px 110px rgba(0,0,0,.78),
    0 0 0 1px rgba(255,255,255,.14) !important;
}

.hero-video:hover {
  transform:
    translate3d(
      var(--inertia-x, 0px),
      calc(var(--inertia-y, 0px) - 16px),
      0
    )
    rotate(var(--inertia-r, 0deg))
    scale(1.075) !important;
}

.skill-bar {
  margin-top: clamp(72px, 9vw, 132px) !important;
}

.wordmark {
  font-size: clamp(112px, 12.8vw, 256px) !important;
  margin-top: clamp(54px, 5.6vw, 92px) !important;
  margin-bottom: clamp(56px, 5vw, 96px) !important;
  transform-origin: left center;
}

/* Bigger sections with cleaner spacing */
.panel {
  padding-top: clamp(70px, 7.6vw, 138px) !important;
  padding-bottom: clamp(78px, 8vw, 148px) !important;
}

.intro-grid {
  grid-template-columns: minmax(360px, 620px) minmax(480px, 1fr) !important;
  gap: clamp(70px, 8.8vw, 180px) !important;
}

.portrait-card {
  height: min(78vw, 900px) !important;
}

.works-top {
  margin-bottom: clamp(58px, 5vw, 94px) !important;
}

.works-grid {
  max-width: 1780px !important;
  min-height: 1320px !important;
  grid-template-rows: repeat(10, 104px) !important;
  gap: clamp(30px, 3.2vw, 62px) !important;
}

.work-main { grid-column: 1 / 7 !important; grid-row: 1 / 6 !important; }
.work-side { grid-column: 8 / 12 !important; grid-row: 1 / 4 !important; }
.work-blue { grid-column: 7 / 12 !important; grid-row: 5 / 8 !important; }
.work-forest { grid-column: 6 / 12 !important; grid-row: 7 / 11 !important; }
.work-eye { grid-column: 1 / 5 !important; grid-row: 8 / 10 !important; }

.project-wide {
  max-width: 1780px !important;
  height: clamp(560px, 51vw, 900px) !important;
}

.process-stage {
  max-width: 1780px !important;
  min-height: clamp(950px, 84vw, 1360px) !important;
}

/* Stronger but smooth scroll inertia variables */
.scroll-react,
.image-card,
.hero-video,
.bottom-video,
.skill-bar {
  --inertia-x: 0px;
  --inertia-y: 0px;
  --inertia-r: 0deg;
  --inertia-scale: 1;
  will-change: transform;
}

/* After load animation is removed by JS, these transforms can move bars/header elements too. */
.motion-ready .scroll-react,
.motion-ready .image-card,
.motion-ready .hero-video,
.motion-ready .bottom-video,
.motion-ready .skill-bar {
  transform:
    translate3d(var(--inertia-x), var(--inertia-y), 0)
    rotate(var(--inertia-r))
    scale(var(--inertia-scale)) !important;
  transition: transform 120ms linear;
}

.motion-ready .reveal {
  transform:
    translate3d(
      var(--inertia-x),
      calc(var(--reveal-y) + var(--inertia-y)),
      0
    )
    rotate(var(--inertia-r))
    scale(calc(var(--reveal-scale) * var(--inertia-scale))) !important;
}

/* More alive: slow cinematic movement on image surfaces. */
.image-card img {
  animation: slowImageBreath 18s ease-in-out infinite alternate;
  transform-origin: center;
}

.image-card:nth-of-type(even) img {
  animation-duration: 22s;
  animation-direction: alternate-reverse;
}

@keyframes slowImageBreath {
  0% { transform: scale(1.035) translate3d(-.35%, -.2%, 0); }
  100% { transform: scale(1.085) translate3d(.35%, .25%, 0); }
}

/* Add energetic but controlled scroll reveal */
.reveal {
  --reveal-y: 128px;
  --reveal-scale: .965;
  filter: blur(13px) brightness(.42);
  transition:
    opacity 1450ms cubic-bezier(.11,.78,.13,1),
    filter 1450ms cubic-bezier(.11,.78,.13,1),
    transform 1450ms cubic-bezier(.11,.78,.13,1) !important;
}

.reveal.in-view {
  --reveal-y: 0px;
  --reveal-scale: 1;
  filter: blur(0) brightness(1);
}

/* Make text feel physically lit */
.intro-copy h2,
.intro-copy p,
.works-top h2,
.works-top p,
.tracking-title,
.process-title,
.process-note,
.closing-text {
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,.78) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Hero cinematic overlays */
.hero-aurora {
  position: absolute;
  inset: -20%;
  z-index: -2;
  pointer-events: none;
  opacity: .32;
  background:
    radial-gradient(circle at 78% 22%, rgba(110, 140, 255, .20), transparent 22%),
    radial-gradient(circle at 52% 64%, rgba(255,255,255,.075), transparent 20%),
    radial-gradient(circle at 20% 38%, rgba(120, 255, 210, .08), transparent 20%);
  filter: blur(42px);
  animation: auroraDrift 16s ease-in-out infinite alternate;
}

.hero-grainline {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .08;
  background:
    repeating-linear-gradient(to bottom, rgba(255,255,255,.18) 0 1px, transparent 1px 7px);
  animation: scanDrift 3.5s linear infinite;
}

@keyframes auroraDrift {
  0% { transform: translate3d(-2%, -1%, 0) scale(1); opacity: .24; }
  100% { transform: translate3d(2%, 1.5%, 0) scale(1.05); opacity: .40; }
}

@keyframes scanDrift {
  from { transform: translateY(-12px); }
  to { transform: translateY(12px); }
}

@keyframes heroLineDrop {
  0% {
    transform: translateY(-92px);
    opacity: 0;
    filter: blur(9px) brightness(1.24);
  }
  68% {
    transform: translateY(7px);
    opacity: 1;
    filter: blur(0) brightness(1.05);
  }
  100% {
    transform: translateY(0);
    opacity: 1;
    filter: blur(0) brightness(1);
  }
}

/* stronger hover / click affordance */
.video-hint {
  opacity: .18 !important;
}

.hero-video:hover .video-hint,
.bottom-video:hover .video-hint {
  opacity: 1 !important;
}

/* Make bars more responsive/alive */
.skill-bar span {
  position: relative;
  overflow: hidden;
}

.skill-bar span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,.18), transparent);
  transform: translateX(-140%);
  opacity: 0;
}

.skill-bar:hover span::after {
  animation: barSweep 900ms cubic-bezier(.11,.78,.13,1) both;
}

.skill-bar:hover span:nth-child(2)::after { animation-delay: 80ms; }
.skill-bar:hover span:nth-child(3)::after { animation-delay: 160ms; }
.skill-bar:hover span:nth-child(4)::after { animation-delay: 240ms; }

@keyframes barSweep {
  0% { transform: translateX(-140%); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateX(140%); opacity: 0; }
}

/* Mobile safety */
@media (max-width: 1000px) {
  .hero {
    min-height: auto !important;
  }

  .hero-copy {
    width: 100% !important;
  }

  h1,
  .hero-title {
    font-size: clamp(58px, 15vw, 118px) !important;
  }

  .hero-video {
    width: 100% !important;
    top: auto !important;
    right: auto !important;
  }

  .works-grid {
    min-height: auto !important;
    grid-template-rows: none !important;
  }
}


/* ===== TONE DOWN + FIX OVERLAPS PASS ===== */

/* Scroll motion: vertical only, smooth, no rotation, no sideways drift. */
.scroll-react,
.image-card,
.hero-video,
.bottom-video,
.skill-bar {
  --inertia-x: 0px !important;
  --inertia-r: 0deg !important;
}

.motion-ready .scroll-react,
.motion-ready .image-card,
.motion-ready .hero-video,
.motion-ready .bottom-video,
.motion-ready .skill-bar {
  transform:
    translate3d(0, var(--inertia-y), 0)
    scale(var(--inertia-scale)) !important;
  transition: transform 180ms linear;
}

.motion-ready .reveal {
  transform:
    translate3d(
      0,
      calc(var(--reveal-y) + var(--inertia-y)),
      0
    )
    scale(calc(var(--reveal-scale) * var(--inertia-scale))) !important;
}

/* Keep hover depth but no accidental rotate/side movement. */
.hero-video:hover,
.bottom-video:hover {
  transform:
    translate3d(0, calc(var(--inertia-y, 0px) - 10px), 0)
    scale(1.045) !important;
}

/* Better title/text spacing: no overlapping. */
.works-top {
  max-width: 1780px !important;
  display: grid !important;
  grid-template-columns: repeat(12, 1fr) !important;
  column-gap: clamp(24px, 3vw, 56px) !important;
  row-gap: 22px !important;
  align-items: end !important;
  margin-bottom: clamp(72px, 6.5vw, 120px) !important;
}

.works-top h2 {
  grid-column: 1 / 9 !important;
  font-size: clamp(78px, 8.8vw, 176px) !important;
  line-height: .86 !important;
  letter-spacing: -.086em !important;
  white-space: nowrap !important;
  margin: 0 !important;
  z-index: 2 !important;
}

.works-top p {
  grid-column: 9 / 13 !important;
  align-self: center !important;
  margin: 0 0 10px !important;
  max-width: 540px !important;
  font-size: clamp(18px, 1.25vw, 27px) !important;
  line-height: 1.22 !important;
  z-index: 3 !important;
}

/* More professional gallery spacing; no images colliding. */
.works-grid {
  max-width: 1780px !important;
  min-height: 1500px !important;
  grid-template-columns: repeat(12, 1fr) !important;
  grid-template-rows: repeat(12, 96px) !important;
  gap: clamp(32px, 3.5vw, 72px) !important;
}

.work-main {
  grid-column: 1 / 7 !important;
  grid-row: 1 / 6 !important;
}

.work-side {
  grid-column: 8 / 12 !important;
  grid-row: 1 / 4 !important;
}

.work-blue {
  grid-column: 7 / 12 !important;
  grid-row: 5 / 8 !important;
}

.work-forest {
  grid-column: 6 / 12 !important;
  grid-row: 8 / 12 !important;
}

.work-eye {
  grid-column: 1 / 5 !important;
  grid-row: 9 / 11 !important;
}

/* Make images stable and readable. */
.image-card {
  isolation: isolate;
}

.image-card:hover {
  transform: translateY(-8px) scale(1.012) !important;
}

.image-card img {
  animation-duration: 26s !important;
}

/* Reduce extreme movement on headings so text does not crash into other text. */
.works-top h2,
.works-top p {
  --inertia-scale: 1 !important;
}

/* Make first load heavy but not absurdly delayed forever. */
.drop-1 { animation-delay: 1350ms !important; }
.drop-2 { animation-delay: 2050ms !important; }
.drop-3 { animation-delay: 2850ms !important; }
.drop-4 { animation-delay: 3600ms !important; }

.load-drop {
  animation-duration: 2150ms !important;
}

/* Add alive effects that do not break layout. */
.wordmark span {
  animation: subtleWordWeight 7.5s ease-in-out infinite;
}

@keyframes subtleWordWeight {
  0%, 100% {
    filter: brightness(1);
    letter-spacing: -.108em;
  }
  50% {
    filter: brightness(1.08);
    letter-spacing: -.101em;
  }
}

.image-card {
  transform-origin: center center;
}

.panel::before {
  opacity: .26 !important;
}

/* Mobile/tablet cleanup */
@media (max-width: 1000px) {
  .works-top {
    display: block !important;
  }

  .works-top h2 {
    white-space: normal !important;
    font-size: clamp(70px, 17vw, 130px) !important;
    margin-bottom: 22px !important;
  }

  .works-top p {
    max-width: 720px !important;
  }

  .works-grid {
    min-height: auto !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: none !important;
    gap: 28px !important;
  }

  .work-main,
  .work-side,
  .work-blue,
  .work-forest,
  .work-eye {
    grid-column: auto !important;
    grid-row: auto !important;
    aspect-ratio: 16 / 9;
  }
}


/* ===== FEATURED WORKS + LOAD STABILITY FIX ===== */

/* Stop the post-load "letters rearranging" effect. No letter-spacing animation. */
.wordmark span,
.hero-title span,
.works-top h2,
.hero-copy h1 {
  letter-spacing: inherit;
}

.wordmark span {
  animation: none !important;
}

/* Prevent hero text from being transformed again after the entry animation. */
.motion-ready .hero-copy,
.motion-ready .hero-title,
.motion-ready .wordmark {
  transform: none !important;
}

/* Keep hero line text stable after it drops in. */
.hero-title span {
  transform: translateY(0);
  animation-fill-mode: both !important;
}

/* Works section should read like:
   mini header -> paragraph -> huge Featured Works title -> images */
.works .section-row {
  margin-bottom: clamp(22px, 2.4vw, 42px) !important;
}

.works-intro {
  max-width: 780px;
  margin: 0 0 clamp(48px, 5vw, 88px) !important;
}

.works-intro p {
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: clamp(20px, 1.5vw, 31px);
  line-height: 1.2;
  letter-spacing: -.025em;
  font-weight: 820;
}

.works-top {
  display: block !important;
  max-width: 1780px !important;
  margin: 0 auto clamp(70px, 6.4vw, 118px) !important;
}

.works-top h2 {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  white-space: nowrap !important;
  margin: 0 !important;
  font-size: clamp(82px, 10.4vw, 208px) !important;
  line-height: .82 !important;
  letter-spacing: -.09em !important;
  font-weight: 1000 !important;
  transform-origin: left center;
}

/* Remove old layout assumptions that tried to put paragraph beside title. */
.works-top p {
  display: none !important;
}

/* More breathing room under the title so images do not feel jammed. */
.works-grid {
  margin-top: clamp(36px, 3.2vw, 64px) !important;
}

/* Slightly tone down scroll inertia for the Featured Works heading. */
.works-top h2 {
  --inertia-scale: 1 !important;
}

/* The page-load drop should finish and stay exactly in place. */
.load-drop {
  animation-fill-mode: both !important;
}

/* Do not animate letter spacing anywhere; it causes the "rearrange" look. */
* {
  transition-property: opacity, transform, filter, background, color, box-shadow, border-color !important;
}

@media (max-width: 1000px) {
  .works-intro {
    max-width: 720px;
    margin-bottom: 38px !important;
  }

  .works-top h2 {
    white-space: normal !important;
    font-size: clamp(68px, 17vw, 132px) !important;
  }
}


/* ===== STABLE + TONED DOWN MOTION PASS ===== */

/* 1) Featured Works layout: mini header, then short text, then big title. */
.works .section-row {
  margin-bottom: clamp(18px, 2vw, 34px) !important;
}

.works-description {
  display: block !important;
  max-width: 760px !important;
  margin: 0 0 clamp(62px, 6vw, 112px) var(--pad) !important;
  color: rgba(255,255,255,.78) !important;
  font-size: clamp(18px, 1.35vw, 28px) !important;
  line-height: 1.22 !important;
  letter-spacing: -.022em !important;
  font-weight: 800 !important;
}

.works-top {
  display: block !important;
  max-width: 1780px !important;
  margin: 0 auto clamp(72px, 6.4vw, 118px) !important;
}

.works-top h2 {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  white-space: nowrap !important;
  font-size: clamp(82px, 10.4vw, 204px) !important;
  line-height: .82 !important;
  letter-spacing: -.09em !important;
  font-weight: 1000 !important;
}

.works-top p,
.works-intro {
  display: none !important;
}

/* 2) Stop the weird post-drop adjustment.
   The hero and wordmark no longer get scroll/inertia transforms after loading. */
.hero-copy,
.hero-copy h1,
.hero-title,
.hero-title span,
.wordmark,
.wordmark span,
.site-header,
.brand,
.header-right {
  letter-spacing: inherit;
  animation-fill-mode: both !important;
}

.wordmark span {
  animation: none !important;
}

.motion-ready .hero-copy,
.motion-ready .hero-copy h1,
.motion-ready .hero-title,
.motion-ready .hero-title span,
.motion-ready .wordmark,
.motion-ready .skill-bar.load-drop {
  transform: none !important;
}

/* Disable individual hero line animation if older CSS is still present. */
.hero-title span {
  animation: none !important;
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
}

/* Remove letter-spacing transitions globally because they visibly rearrange text. */
* {
  transition-property: opacity, transform, filter, background, color, box-shadow, border-color !important;
}

/* 3) Tone motion down a lot. Only vertical movement, no scale, no floaty feel. */
.scroll-react,
.image-card,
.hero-video,
.bottom-video,
.skill-bar {
  --inertia-x: 0px !important;
  --inertia-r: 0deg !important;
  --inertia-scale: 1 !important;
}

.motion-ready .scroll-react,
.motion-ready .image-card,
.motion-ready .hero-video,
.motion-ready .bottom-video,
.motion-ready .skill-bar {
  transform: translate3d(0, var(--inertia-y), 0) !important;
  transition: transform 260ms linear !important;
}

.motion-ready .reveal {
  transform: translate3d(0, calc(var(--reveal-y) + var(--inertia-y)), 0) !important;
}

/* Do not apply scroll inertia to the first hero screen. It should feel locked/heavy after drop. */
.motion-ready .hero .scroll-react,
.motion-ready .hero .skill-bar,
.motion-ready .hero-video,
.motion-ready .wordmark {
  transform: none !important;
}

/* Keep hover effects but make them less floaty. */
.image-card:hover {
  transform: translateY(-5px) scale(1.006) !important;
}

.hero-video:hover,
.bottom-video:hover {
  transform: translateY(-5px) scale(1.025) !important;
}

/* Tone down ambient effects. */
.hero-aurora {
  opacity: .16 !important;
  filter: blur(50px) !important;
}

.hero-grainline {
  opacity: .035 !important;
}

.image-card img {
  animation-duration: 42s !important;
}

@keyframes slowImageBreath {
  0% { transform: scale(1.025) translate3d(-.12%, -.08%, 0); }
  100% { transform: scale(1.045) translate3d(.12%, .08%, 0); }
}

.hero-copy h1,
.works-top h2,
.tracking-title,
.process-title {
  animation: subtleTextPulse 10s ease-in-out infinite !important;
}

@keyframes subtleTextPulse {
  0%, 100% {
    filter: brightness(1);
    text-shadow: none;
  }
  50% {
    filter: brightness(1.035);
    text-shadow: 0 0 14px rgba(255,255,255,.035);
  }
}

/* 4) Make the drop slower/heavier but once it lands, it stays. */
.drop-1 { animation-delay: 1350ms !important; }
.drop-2 { animation-delay: 2050ms !important; }
.drop-3 { animation-delay: 2750ms !important; }
.drop-4 { animation-delay: 3450ms !important; }

.load-drop {
  animation-duration: 2100ms !important;
}

.skill-bar.load-drop {
  animation-duration: 1650ms !important;
}

.wordmark.load-drop {
  animation-duration: 2200ms !important;
}

/* 5) Works grid spacing remains non-overlapping. */
.works-grid {
  max-width: 1780px !important;
  min-height: 1500px !important;
  grid-template-columns: repeat(12, 1fr) !important;
  grid-template-rows: repeat(12, 96px) !important;
  gap: clamp(32px, 3.5vw, 72px) !important;
  margin-top: 0 !important;
}

.work-main { grid-column: 1 / 7 !important; grid-row: 1 / 6 !important; }
.work-side { grid-column: 8 / 12 !important; grid-row: 1 / 4 !important; }
.work-blue { grid-column: 7 / 12 !important; grid-row: 5 / 8 !important; }
.work-forest { grid-column: 6 / 12 !important; grid-row: 8 / 12 !important; }
.work-eye { grid-column: 1 / 5 !important; grid-row: 9 / 11 !important; }

@media (max-width: 1000px) {
  .works-description {
    margin-left: 0 !important;
    max-width: 720px !important;
  }

  .works-top h2 {
    white-space: normal !important;
    font-size: clamp(68px, 17vw, 132px) !important;
  }
}


/* ===== CLEAN FEATURED WORKS LAYOUT + ICON HOVER FIX ===== */

/* Icon hover: make it clearly enlarge to about 1.5x */
.social-icon:hover {
  transform: translateY(-6px) scale(1.5) !important;
  filter: drop-shadow(0 0 20px rgba(255,255,255,.42)) !important;
}

.youtube:hover {
  filter: drop-shadow(0 0 20px rgba(255, 0, 61, .65)) !important;
}

.instagram:hover {
  filter: drop-shadow(0 0 20px rgba(255, 0, 120, .58)) !important;
}

/* Remove old duplicate works-intro/description layouts */
.works-intro,
.works-description,
.works-top p {
  display: none !important;
}

/* Works section: mini row -> big title -> paragraph directly under it -> clean gallery */
.works .section-row {
  margin-bottom: clamp(52px, 5vw, 92px) !important;
}

.works-heading {
  max-width: 1780px;
  margin: 0 auto clamp(78px, 6.5vw, 126px);
}

.works-heading h2 {
  display: block !important;
  margin: 0 !important;
  white-space: nowrap !important;
  font-size: clamp(86px, 10.6vw, 212px) !important;
  line-height: .82 !important;
  letter-spacing: -.09em !important;
  font-weight: 1000 !important;
  max-width: 100% !important;
}

.works-heading p {
  display: block !important;
  margin: clamp(24px, 2vw, 38px) 0 0 !important;
  max-width: 820px !important;
  color: rgba(255,255,255,.76) !important;
  font-size: clamp(19px, 1.35vw, 30px) !important;
  line-height: 1.22 !important;
  letter-spacing: -.025em !important;
  font-weight: 820 !important;
}

/* Kill old title layout completely so it cannot interfere */
.works-top {
  display: none !important;
}

/* Professional gallery layout: separated, intentional, no overlap */
.works-grid {
  max-width: 1780px !important;
  min-height: auto !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(12, clamp(76px, 6.1vw, 112px)) !important;
  gap: clamp(28px, 3vw, 58px) !important;
  align-items: stretch !important;
}

.work-main {
  grid-column: 1 / 7 !important;
  grid-row: 1 / 6 !important;
}

.work-side {
  grid-column: 8 / 13 !important;
  grid-row: 1 / 4 !important;
}

.work-blue {
  grid-column: 8 / 13 !important;
  grid-row: 5 / 8 !important;
}

.work-eye {
  grid-column: 1 / 5 !important;
  grid-row: 8 / 10 !important;
}

.work-forest {
  grid-column: 6 / 13 !important;
  grid-row: 8 / 13 !important;
}

/* Make every card fit nicely in its cell */
.works-grid .image-card {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  align-self: stretch !important;
}

/* Less floaty, more stable */
.motion-ready .works-grid .image-card {
  transform: translate3d(0, calc(var(--inertia-y) * .65), 0) !important;
}

.works-grid .image-card:hover {
  transform: translateY(-6px) scale(1.008) !important;
}

/* Make the first big image feel like the anchor */
.work-main {
  box-shadow:
    0 0 0 1px rgba(255,255,255,.12),
    0 30px 95px rgba(0,0,0,.5) !important;
}

/* Avoid text movement weirdness */
.works-heading h2,
.works-heading p {
  --inertia-y: 0px !important;
  --inertia-scale: 1 !important;
  transform: none !important;
}

/* Mobile: clean vertical stack */
@media (max-width: 1000px) {
  .works-heading {
    margin-bottom: 42px !important;
  }

  .works-heading h2 {
    white-space: normal !important;
    font-size: clamp(68px, 17vw, 132px) !important;
  }

  .works-heading p {
    max-width: 760px !important;
  }

  .works-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: none !important;
    gap: 26px !important;
  }

  .work-main,
  .work-side,
  .work-blue,
  .work-eye,
  .work-forest {
    grid-column: auto !important;
    grid-row: auto !important;
    aspect-ratio: 16 / 9 !important;
  }

  .work-eye {
    aspect-ratio: 16 / 7 !important;
  }
}


/* ===== FINAL CLEANUP ===== */

/* Removed the big ™ mark from the wordmark. Keep TWILORD clean/personal. */
.wordmark {
  gap: 0 !important;
}

.wordmark sup {
  display: none !important;
}

/* Strong but clean social hover. */
.social-icon:hover {
  transform: translateY(-6px) scale(1.5) !important;
  filter: drop-shadow(0 0 20px rgba(255,255,255,.42)) !important;
}

/* Footer ownership/copyright note. */
.copyright-note {
  margin: -14px auto 34px;
  max-width: 760px;
  color: rgba(255,255,255,.58);
  font-size: clamp(13px, 0.95vw, 17px);
  line-height: 1.35;
  font-weight: 700;
}

/* Keep the final site from feeling overly floaty. */
.motion-ready .hero .scroll-react,
.motion-ready .hero .skill-bar,
.motion-ready .hero-video,
.motion-ready .wordmark {
  transform: none !important;
}

.motion-ready .scroll-react,
.motion-ready .image-card,
.motion-ready .hero-video,
.motion-ready .bottom-video,
.motion-ready .skill-bar {
  --inertia-x: 0px !important;
  --inertia-r: 0deg !important;
}

/* Slightly calmer image breathing. */
.image-card img {
  animation-duration: 46s !important;
}

/* Clean Featured Works lock-in. */
.works-heading {
  display: block !important;
}

.works-heading h2 {
  margin-bottom: clamp(22px, 2vw, 38px) !important;
}

.works-heading p {
  margin-top: 0 !important;
}


/* ===== FINAL BALANCED MOTION UPDATE ===== */

/* Footer text requested by owner. */
.copyright-note {
  color: rgba(255,255,255,.62) !important;
}

/* Bring some motion back without returning to floaty/rotating behavior. */
.motion-ready .scroll-react,
.motion-ready .image-card,
.motion-ready .bottom-video,
.motion-ready .skill-bar {
  transform: translate3d(0, var(--inertia-y), 0) !important;
  transition: transform 220ms linear !important;
}

/* Hero remains stable after the intro drop; only the rest of the page has inertia. */
.motion-ready .hero .scroll-react,
.motion-ready .hero .skill-bar,
.motion-ready .hero-video,
.motion-ready .wordmark {
  transform: none !important;
}

/* Slightly more life than the previous final-clean version. */
.image-card:hover {
  transform: translateY(-7px) scale(1.01) !important;
}

.bottom-video:hover {
  transform: translateY(-7px) scale(1.035) !important;
}

.image-card img {
  animation-duration: 34s !important;
}

@keyframes slowImageBreath {
  0% { transform: scale(1.026) translate3d(-.18%, -.10%, 0); }
  100% { transform: scale(1.058) translate3d(.18%, .12%, 0); }
}

/* Keep it vertical-only: no rotation, no sideways drift. */
.scroll-react,
.image-card,
.hero-video,
.bottom-video,
.skill-bar {
  --inertia-x: 0px !important;
  --inertia-r: 0deg !important;
}
