:root {
  --green: #00e15c;
  --green-deep: #00c94f;
  --green-dark: #00a844;
  --ink: #0c0c0c;
  --ink-soft: #1a1a1a;
  --paper: #f7f7f4;
  --white: #ffffff;
  --yellow: #ffe34a;
  --yellow-deep: #f5c400;
  --muted: rgba(12, 12, 12, 0.62);
  --line: rgba(12, 12, 12, 0.12);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  --radius: 22px;
  --nav-h: 72px;
  --font-sans: "Outfit", system-ui, sans-serif;
  --font-display: "Archivo Black", "Arial Black", sans-serif;
  --font-logo: "Bebas Neue", "Archivo Black", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
}

html {
  scroll-padding-top: 96px;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 50% -10%, #5cff9a 0%, transparent 55%),
    var(--green);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.live-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  --mx: 50%;
  --my: 28%;
  --ox: 0px;
  --oy: 0px;
  --pulse: 22%;
  background-image:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 227, 74, 0.34) 0%, rgba(255, 255, 255, 0.08) 14%, transparent var(--pulse)),
    radial-gradient(circle at var(--mx) var(--my), rgba(12, 12, 12, 0.12) 0 2px, transparent 3px),
    linear-gradient(rgba(12, 12, 12, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 12, 12, 0.07) 1px, transparent 1px);
  background-size:
    auto,
    64px 64px,
    64px 64px,
    64px 64px;
  background-position:
    0 0,
    var(--ox) var(--oy),
    var(--ox) var(--oy),
    var(--ox) var(--oy);
  transition: --pulse 0.35s ease;
}

.live-grid.is-pulse {
  --pulse: 38%;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100svh;
}

/* NAV */
.nav-wrap {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  width: min(1120px, calc(100% - 24px));
  z-index: 80;
  opacity: 0;
  animation: navIn 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s forwards;
}

@keyframes navIn {
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border-radius: 999px;
  padding: 8px 8px 8px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 1px 0 rgba(255, 255, 255, 0.6) inset;
  min-height: 64px;
}

.nav.is-scrolled {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}

.logo {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 6px 0 2px;
  position: relative;
  flex-shrink: 0;
}

.logo-3d {
  position: relative;
  display: inline-block;
  font-family: var(--font-logo);
  font-size: 34px;
  letter-spacing: 0.04em;
  line-height: 1;
  transform: rotate(-3deg);
  animation: logoBob 3.4s ease-in-out infinite;
}

.logo-3d .shade,
.logo-3d .fill {
  display: block;
}

.logo-3d .shade {
  color: var(--ink);
  transform: translate(3px, 3px);
}

.logo-3d .fill {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--yellow);
  text-shadow: 0 0 0 var(--ink);
  animation: logoFlick 4.8s ease-in-out infinite;
}

@keyframes logoBob {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(-1.5deg) translateY(-3px); }
}

@keyframes logoFlick {
  0%, 82%, 100% { transform: translate(0, 0); }
  86% { transform: translate(-1px, 1px); }
  90% { transform: translate(1px, -1px); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  position: relative;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  background: #f0f0ec;
  color: var(--ink);
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 6px;
}

.nav-social .soc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 32px;
  padding: 0 10px !important;
  border-radius: 999px;
  background: #f0f0ec;
  color: var(--ink) !important;
  font-size: 11px !important;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.nav-social .soc:hover {
  background: var(--ink) !important;
  color: var(--white) !important;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--white) !important;
  border-radius: 999px;
  padding: 10px 16px !important;
  margin-left: 6px;
}

.nav-cta:hover,
.nav-cta.is-active {
  background: #222 !important;
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--ink);
  color: var(--white);
  border-radius: 50%;
  cursor: pointer;
  margin-left: auto;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  width: 16px;
  height: 2px;
  background: currentColor;
  left: 14px;
  border-radius: 2px;
  transition: transform 0.25s ease, top 0.25s ease, opacity 0.2s;
}

.nav-toggle span {
  top: 21px;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  left: 0;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav.is-open .nav-toggle span { background: transparent; }
.nav.is-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav.is-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* HERO */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 120px 28px 72px;
  display: grid;
  grid-template-columns: minmax(120px, 18vw) minmax(0, 680px) minmax(120px, 18vw);
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.4vw, 36px);
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 720px;
  padding: 8px 8px;
  justify-self: center;
}

.hero-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.2vw, 22px);
  z-index: 2;
  pointer-events: none;
}

.hero-rail .float-card {
  pointer-events: auto;
}

.hero-mobile-gallery {
  display: none;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 500;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(52px, 11vw, 128px);
  line-height: 0.86;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.hero h1 .block {
  display: block;
}

.hero h1 .chip {
  display: inline-block;
  background: var(--ink);
  color: var(--white);
  padding: 0.08em 0.22em 0.02em;
  border-radius: 18px;
  margin-top: 8px;
}

.hero-lead {
  margin: 22px auto 28px;
  max-width: 520px;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--ink-soft);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 650;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--white);
}

/* FLOATING CARDS */
.float-card {
  position: relative;
  width: min(220px, 100%);
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: #ecece8;
  box-shadow: var(--shadow);
  isolation: isolate;
  animation: floatY 6s ease-in-out infinite;
  will-change: transform;
}

.tilt-left { rotate: -7deg; }
.tilt-right { rotate: 7deg; }
.d2 { animation-delay: -1.4s; width: min(190px, 92%); }
.d3 { animation-delay: -2.6s; width: min(170px, 84%); }

.float-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ecece8;
}

.float-card::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  border-radius: inherit;
  pointer-events: none;
}

.float-card:hover {
  z-index: 5;
}

@keyframes floatY {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}

/* rails keep cards off the headline column */

/* MARQUEE */
.marquee {
  position: relative;
  z-index: 4;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
  padding: 12px 0;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  font-size: clamp(18px, 3vw, 28px);
  text-transform: uppercase;
}

.marquee-track span {
  padding: 0 18px;
  white-space: nowrap;
}

.marquee-track .dot {
  color: var(--yellow);
}

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

/* SECTIONS */
.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

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

.section-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 72px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  max-width: 16ch;
}

.section-intro {
  margin-top: 16px;
  max-width: 58ch;
  font-size: 18px;
}

.panel {
  background: var(--white);
  border-radius: 32px;
  padding: clamp(24px, 4vw, 56px);
  box-shadow: var(--shadow);
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}

.contact-row a {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-row a:hover {
  background: var(--ink);
  color: var(--white);
}

.about-contact {
  justify-content: flex-start;
  margin: 8px 0 22px;
}

/* WORK GRID */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 36px;
}

.work-card {
  background: var(--white);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  min-width: 0;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
}

.work-card:hover {
  transform: translateY(-8px) rotate(-0.4deg);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.18);
}

.work-card.featured {
  grid-column: 1 / -1;
}

.work-media {
  position: relative;
  background: #ecece8;
  overflow: hidden;
}

.work-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.work-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #f1f1ec;
  border-radius: 999px;
  padding: 5px 9px;
}

.work-body h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1;
}

.work-body p {
  color: var(--muted);
  font-size: 15px;
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.portrait-card {
  background: var(--white);
  border-radius: 28px;
  padding: 14px;
  box-shadow: var(--shadow);
  transform: rotate(-1.5deg);
}

.portrait-card img {
  width: 100%;
  border-radius: 20px;
  aspect-ratio: 4 / 4.2;
  object-fit: cover;
  object-position: 50% 18%;
  filter: grayscale(1);
}

.portrait-meta {
  display: flex;
  justify-content: space-between;
  padding: 14px 8px 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.about-copy h2 {
  max-width: 14ch;
}

.about-copy p {
  margin-top: 16px;
  font-size: 18px;
  max-width: 58ch;
}

.skill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.skill-row span {
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
}

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.process article {
  background: #f6f6f1;
  border-radius: 18px;
  padding: 16px;
  min-width: 0;
}

.process strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* RESUME */
.timeline {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.job {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  background: #f7f7f2;
  border-radius: 20px;
  padding: 20px;
  min-width: 0;
}

.job time {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.job h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.job .co {
  font-weight: 700;
  margin: 4px 0 8px;
}

/* VIDEO GRID */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.video-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  min-width: 0;
  transition: transform 0.25s ease;
}

.video-card:hover {
  transform: translateY(-6px);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play {
  position: absolute;
  inset: auto 14px 14px auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.video-card h3 {
  font-size: 15px;
  line-height: 1.3;
  padding: 12px 14px 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* PROJECT PAGE */
.project-hero {
  padding: 140px 0 40px;
}

.project-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 84px);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  max-width: 16ch;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 24px;
}

.project-cover {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #ddd;
}

.project-cover img {
  width: 100%;
  max-height: 720px;
  object-fit: cover;
}

.project-body {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  padding: 36px 0 20px;
}

.gallery-col {
  display: grid;
  gap: 16px;
}

.gallery-col img {
  width: 100%;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* FOOTER */
.footer {
  padding: 28px 0 40px;
}

.footer-card {
  background: var(--ink);
  color: var(--white);
  border-radius: 32px;
  padding: clamp(28px, 5vw, 48px);
  display: grid;
  gap: 18px;
}

.footer-card h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 68px);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.footer-card a.mail {
  color: var(--yellow);
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 700;
  word-break: break-word;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  opacity: 0.75;
  font-size: 13px;
  margin-top: 10px;
}

/* PAGE HEAD */
.page-head {
  padding: 140px 0 10px;
}
@media (max-width: 760px) {
  .page-head {
    padding: 118px 0 8px;
  }
  .project-hero {
    padding: 118px 0 24px;
  }
}

.page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 9vw, 96px);
  line-height: 0.88;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .work-card.featured {
    grid-template-columns: 1fr;
  }
  .about-grid,
  .project-body {
    grid-template-columns: 1fr;
  }
  .process {
    grid-template-columns: 1fr 1fr;
  }
  .video-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 118px;
  }
  .hero-rail {
    display: none;
  }
  .hero-mobile-gallery {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100vw;
    max-width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    padding: 8px 20px 4px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .hero-mobile-gallery::-webkit-scrollbar {
    display: none;
  }
  .hero-mobile-gallery .float-card {
    flex: 0 0 148px;
    width: 148px;
    aspect-ratio: 4 / 3;
    scroll-snap-align: start;
    pointer-events: auto;
  }
}

@media (max-width: 760px) {
  .nav {
    flex-wrap: wrap;
    border-radius: 28px;
    padding: 8px;
  }
  .nav-toggle {
    display: inline-block;
  }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 8px 12px;
    margin: 0;
  }
  .nav.is-open .nav-links {
    display: flex;
  }
  .nav-links a,
  .nav-cta {
    width: 100%;
    margin: 0;
    text-align: center;
    justify-content: center;
  }
  .nav-social {
    width: 100%;
    justify-content: center;
    padding: 8px 0;
  }
  .nav-social .soc {
    width: auto !important;
    min-width: 52px;
  }
  .hero {
    padding: 118px 16px 70px;
    min-height: auto;
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: clamp(42px, 16vw, 72px);
  }
  .hero-rail {
    display: none;
  }
  .video-grid {
    grid-template-columns: 1fr;
  }
  .work-grid {
    grid-template-columns: 1fr;
  }
  .job {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .process {
    grid-template-columns: 1fr;
  }
  .wrap {
    width: min(1180px, calc(100% - 24px));
  }
  .section {
    padding: 56px 0;
  }
}

@media (max-width: 420px) {
  .hero-copy {
    padding: 0;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ONE-PAGE extras */
.section-anchor {
  scroll-margin-top: 100px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 88px 16px 24px;
  background: rgba(0, 0, 0, 0.45);
  overflow: auto;
}

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

.modal-card {
  width: min(980px, 100%);
  background: var(--white);
  border-radius: 28px;
  padding: 22px;
  box-shadow: var(--shadow);
  position: relative;
}

.modal-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  margin: 12px 0;
  object-fit: contain;
  cursor: zoom-in;
  background: #ecece8;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(8, 8, 8, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 64px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  border: 0;
  background: #fff;
  color: #111;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
}

.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }

.lightbox-count {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.modal-card h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 10px 0 8px;
}

.modal-card p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 12px;
  max-width: 68ch;
}

.modal-role {
  font-family: var(--font-mono);
  font-size: 12px !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted) !important;
  margin-bottom: 16px !important;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  font-size: 20px;
}

body.modal-open {
  overflow: hidden;
}

/* SCROLL REVEALS */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(6px);
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0ms),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0ms),
    filter 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0ms);
}

.reveal-left {
  transform: translateX(-40px) translateY(16px);
}

.reveal-right {
  transform: translateX(40px) translateY(16px);
}

.reveal.in {
  opacity: 1;
  transform: none;
  filter: none;
}

.work-grid .work-card:nth-child(1) { --d: 40ms; }
.work-grid .work-card:nth-child(2) { --d: 80ms; }
.work-grid .work-card:nth-child(3) { --d: 120ms; }
.work-grid .work-card:nth-child(4) { --d: 160ms; }
.work-grid .work-card:nth-child(5) { --d: 200ms; }
.work-grid .work-card:nth-child(6) { --d: 240ms; }
.work-grid .work-card:nth-child(7) { --d: 280ms; }
.work-grid .work-card:nth-child(8) { --d: 320ms; }
.work-grid .work-card:nth-child(9) { --d: 360ms; }

.video-grid .video-card:nth-child(3n+1) { --d: 40ms; }
.video-grid .video-card:nth-child(3n+2) { --d: 120ms; }
.video-grid .video-card:nth-child(3n+3) { --d: 200ms; }

.timeline .job:nth-child(odd) { --d: 60ms; }
.timeline .job:nth-child(even) { --d: 140ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .float-card,
  .logo-3d,
  .logo-3d .fill,
  .marquee-track,
  .work-track {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
