/* =========================================================
   VINCENT HIERONYMUS — PORTFOLIO STYLES
   Flashy / bold / Awwwards-leaning aesthetic
   ========================================================= */

:root {
  --bg: #0a0a0a;
  --ink: #f5f5f5;
  --muted: #8c8c8c;
  --accent: #ff3d2e;      /* hot red-orange */
  --accent-2: #00ffa3;    /* electric mint */
  --accent-3: #ffe600;    /* lemon */
  --accent-4: #5b2eff;    /* ultraviolet */
  --radius: 18px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

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

html {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  cursor: none;
  line-height: 1.5;
}

/* Grainy noise overlay on everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; cursor: none; }
button, input, textarea { font: inherit; cursor: none; }

/* ========== CUSTOM CURSOR ========== */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--ink);
  pointer-events: none;
  z-index: 10001;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width .2s var(--ease), height .2s var(--ease), background .2s var(--ease);
}
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width .3s var(--ease), height .3s var(--ease), border-color .3s var(--ease);
}
.cursor.hover { width: 60px; height: 60px; background: var(--accent); }
.cursor-ring.hover { width: 10px; height: 10px; opacity: 0; }

@media (hover: none) {
  .cursor, .cursor-ring { display: none; }
  body, a, button, input, textarea { cursor: auto; }
}

/* ========== LOADER ========== */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99999;
  display: grid;
  place-items: center;
  transition: opacity .6s ease, visibility .6s;
}
.loader.hide { opacity: 0; visibility: hidden; }
.loader .loader-text {
  font-size: clamp(36px, 8vw, 90px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  overflow: hidden;
  display: inline-flex;
  gap: 0.05em;
}
.loader .loader-text span {
  display: inline-block;
  animation: rise .9s var(--ease) both;
}
@keyframes rise {
  from { transform: translateY(110%); }
  to { transform: translateY(0); }
}

/* ========== NAV ========== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  mix-blend-mode: difference;
  color: #fff;
}
.nav__brand {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__brand .dot {
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: .5; }
}

.nav__menu {
  display: flex;
  gap: 32px;
  list-style: none;
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.nav__menu a {
  position: relative;
  padding: 6px 0;
}
.nav__menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 0;
  background: var(--accent);
  transition: width .35s var(--ease);
}
.nav__menu a:hover::after { width: 100%; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: none;
}
.nav__burger span {
  width: 28px; height: 2px;
  background: #fff;
  transition: transform .3s var(--ease);
}

@media (max-width: 768px) {
  .nav { padding: 18px 20px; }
  .nav__menu {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: rgba(10,10,10,.96);
    padding: 20px;
    mix-blend-mode: normal;
  }
  .nav__menu.open { display: flex; }
  .nav__burger { display: flex; }
}

/* ========== HERO (split layout — title left, GIF right) ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 140px 40px 120px;
  overflow: hidden;
}

/* Solo variant — no GIF, wordmark takes the full stage */
.hero.hero--solo {
  grid-template-columns: 1fr;
  padding: 160px 40px 140px;
  align-items: center;
  justify-items: start;
}
.hero.hero--solo .hero__title {
  font-size: clamp(64px, 16vw, 300px);
  max-width: 100%;
}

.hero__title {
  font-size: clamp(54px, 10vw, 180px);
  line-height: .88;
  font-weight: 800;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: var(--ink);
}
.hero__title .word {
  display: block;
  overflow: hidden;
}
.hero__title .word-inner {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1.1s var(--ease) forwards;
}
.hero__title .word:nth-child(2) .word-inner { animation-delay: .1s; }
.hero__title .word:nth-child(3) .word-inner { animation-delay: .2s; color: var(--accent); }

.hero__gif {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  transform: rotate(3deg);
  background: #1a1a1a;
  box-shadow: 0 40px 80px rgba(0,0,0,.4);
  transition: transform .6s var(--ease);
}
.hero__gif:hover { transform: rotate(0deg) scale(1.02); }
.hero__gif img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__gif::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,61,46,.18), transparent 55%);
  pointer-events: none;
}

.hero__meta {
  position: absolute;
  left: 40px;
  bottom: 40px;
  display: flex;
  gap: 40px;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 3;
}
.hero__meta strong {
  color: var(--ink);
  font-weight: 600;
  display: block;
  margin-bottom: 3px;
}

.hero__scroll {
  position: absolute;
  right: 40px;
  bottom: 40px;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  z-index: 3;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 120px 20px 120px;
    gap: 40px;
  }
  .hero__gif { transform: rotate(2deg); max-width: 420px; }
  .hero__meta { left: 20px; bottom: 20px; gap: 18px; font-size: 10px; }
  .hero__scroll { right: 20px; bottom: 20px; font-size: 9px; }
}

/* ========== MARQUEE ========== */
.marquee {
  padding: 30px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.1);
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: var(--bg);
}
.marquee__track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: scroll 30s linear infinite;
  font-size: clamp(34px, 6vw, 86px);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.marquee__track span { display: inline-flex; align-items: center; gap: 60px; }
.marquee__track .star {
  display: inline-block;
  color: var(--accent);
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee.reverse .marquee__track { animation-direction: reverse; }
.marquee.color-accent .marquee__track { color: var(--accent); }

/* ========== SECTIONS ========== */
section {
  padding: 120px 40px;
  position: relative;
}
@media (max-width: 768px) {
  section { padding: 80px 20px; }
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}
.eyebrow::before {
  content: "";
  width: 40px; height: 1px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(40px, 7vw, 110px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: .9;
  text-transform: uppercase;
  margin-bottom: 60px;
}

/* ========== ABOUT (simple photo + copy) ========== */
.about {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  padding: 120px 40px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}
.about__photo {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  background: #1a1a1a;
}
.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.about__photo:hover img { transform: scale(1.04); }

.about__copy h2 {
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: .95;
  margin-bottom: 30px;
}
.about__copy h2 em {
  font-style: normal;
  color: var(--accent);
}
.about__copy p {
  font-size: clamp(16px, 1.3vw, 20px);
  color: var(--muted);
  margin-bottom: 20px;
  max-width: 52ch;
  line-height: 1.6;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 30px;
}
.stats > div { position: relative; }
.stat__num {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-top: 10px;
}

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; gap: 30px; padding: 80px 20px; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}

/* ========== WORK STAGE (scroll-linked panels) ========== */
.work-stage {
  padding: 40px 40px 120px;
}
.work-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 100px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.work-panel:last-child { border-bottom: 1px solid rgba(255,255,255,.08); }
.work-panel.reverse { direction: rtl; }
.work-panel.reverse > * { direction: ltr; }

.work-panel__visual {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  background: #111;
  position: relative;
  will-change: transform;
}
.work-panel__visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
  will-change: transform;
}
.work-panel:hover .work-panel__visual img { transform: scale(1.06); }

.work-panel__index {
  position: absolute;
  top: 20px; left: 20px;
  z-index: 2;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: #fff;
  background: rgba(0,0,0,.4);
  backdrop-filter: blur(6px);
  padding: 8px 14px;
  border-radius: 999px;
}

.work-panel__body h3 {
  font-size: clamp(44px, 8vw, 120px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: .88;
  text-transform: uppercase;
  margin-bottom: 26px;
  will-change: transform;
}
.work-panel__body p {
  font-size: clamp(16px, 1.3vw, 20px);
  color: #cfcfcf;
  max-width: 50ch;
  margin-bottom: 30px;
}
.work-panel__cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 16px 28px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.work-panel__cta:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  transform: translateY(-2px);
}
.work-panel__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.work-panel__tags span {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
}

@media (max-width: 900px) {
  .work-panel { grid-template-columns: 1fr; gap: 30px; padding: 60px 0; }
  .work-panel.reverse { direction: ltr; }
}

/* ========== LEGACY WORK GRID (kept for compatibility) ========== */
.work {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.work__card {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--radius);
  background: #111;
  transition: transform .5s var(--ease);
}
.work__card:hover { transform: translateY(-10px); }
.work__card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease), filter .4s var(--ease);
  filter: grayscale(.25) contrast(1.05);
}
.work__card:hover img {
  transform: scale(1.08);
  filter: grayscale(0) contrast(1);
}
.work__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.8), transparent 60%);
  z-index: 1;
}
.work__card__info {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.work__card__info h3 {
  font-size: clamp(22px, 2.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.work__card__info p {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #bbb;
  margin-top: 6px;
}
.work__card__arrow {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  flex: 0 0 auto;
  transition: transform .4s var(--ease);
}
.work__card:hover .work__card__arrow {
  transform: rotate(-45deg) scale(1.1);
}
.work__card.alt .work__card__arrow { background: var(--accent-2); }
.work__card.alt2 .work__card__arrow { background: var(--accent-3); }

@media (max-width: 900px) {
  .work { grid-template-columns: 1fr; }
}

/* ========== GALLERY (photography-style masonry) ========== */
.gallery {
  columns: 3;
  column-gap: 16px;
}
.gallery a {
  display: block;
  margin: 0 0 16px;
  break-inside: avoid;
  overflow: hidden;
  border-radius: 12px;
  background: #111;
  position: relative;
}
.gallery a img {
  width: 100%;
  height: auto;
  transition: transform .8s var(--ease), filter .3s var(--ease);
  filter: grayscale(.1);
}
.gallery a:hover img {
  transform: scale(1.05);
  filter: grayscale(0) contrast(1.05);
}
@media (max-width: 900px) {
  .gallery { columns: 2; }
}
@media (max-width: 540px) {
  .gallery { columns: 1; }
}

/* square variant for logos / social media */
.gallery--square {
  columns: initial;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery--square a {
  aspect-ratio: 1/1;
  margin: 0;
}
.gallery--square a img {
  width: 100%; height: 100%; object-fit: cover;
}
@media (max-width: 1024px) { .gallery--square { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .gallery--square { grid-template-columns: repeat(2, 1fr); } }

/* logos variant — contain (no cropping), padded dark tiles */
.gallery--logos {
  columns: initial;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 40px;
}
.gallery--logos a {
  aspect-ratio: 1/1;
  margin: 0;
  background: #0e0e12;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  transition: transform .4s ease, border-color .3s ease, background .3s ease;
  position: relative;
  overflow: hidden;
}
.gallery--logos a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,61,46,.10), transparent 55%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.gallery--logos a:hover {
  transform: translateY(-4px);
  border-color: rgba(255,61,46,.4);
  background: #14141a;
}
.gallery--logos a:hover::after { opacity: 1; }
.gallery--logos a img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,.35));
  transition: transform .45s ease;
}
.gallery--logos a:hover img { transform: scale(1.04); }
@media (max-width: 1024px) { .gallery--logos { grid-template-columns: repeat(3, 1fr); padding: 24px; gap: 14px; } }
@media (max-width: 700px)  { .gallery--logos { grid-template-columns: repeat(2, 1fr); padding: 16px; gap: 12px; } .gallery--logos a { padding: 16px; border-radius: 14px; } }

/* ========== CATEGORY HUB (sub-cards) ========== */
.hub {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.hub__card {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
  background: #111;
}
.hub__card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.hub__card:hover img { transform: scale(1.08); }
.hub__card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85), transparent 55%);
  z-index: 1;
}
.hub__card__body {
  position: absolute;
  left: 24px; right: 24px; bottom: 24px;
  z-index: 2;
}
.hub__card h3 {
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.hub__card p {
  font-size: 14px;
  color: #c7c7c7;
  margin-top: 6px;
}
@media (max-width: 900px) { .hub { grid-template-columns: 1fr; } }

/* ========== RESUME SECTION ========== */
.resume-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.resume-section__copy h2 {
  font-size: clamp(36px, 5vw, 70px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: .95;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.resume-section__copy p {
  color: #cfcfcf;
  margin-bottom: 30px;
  max-width: 52ch;
}
.resume-preview {
  border-radius: var(--radius);
  overflow: hidden;
  transform: rotate(2deg);
  box-shadow: 0 40px 80px rgba(0,0,0,.5);
  transition: transform .5s var(--ease);
}
.resume-preview:hover { transform: rotate(0deg) scale(1.02); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 32px;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 14px;
  border-radius: 999px;
  transition: background .3s var(--ease), transform .3s var(--ease);
  border: none;
  cursor: none;
}
.btn:hover { background: var(--ink); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #000; }

@media (max-width: 900px) { .resume-section { grid-template-columns: 1fr; } }

/* ========== CONTACT ========== */
.contact {
  padding: 120px 40px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.contact__big {
  font-size: clamp(48px, 10vw, 180px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: .9;
  text-transform: uppercase;
  margin-bottom: 50px;
}
.contact__big a {
  display: inline-block;
  color: var(--accent);
  border-bottom: 4px solid transparent;
  transition: border-color .3s var(--ease);
}
.contact__big a:hover { border-color: var(--accent); }

.contact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 40px;
}
.contact__grid h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 14px;
}
.contact__grid p, .contact__grid a {
  font-size: 16px;
  color: var(--ink);
}
.contact__socials a {
  display: block;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.contact__socials a:hover { border-color: var(--accent); }

footer.site-footer {
  padding: 30px 40px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; }
}

/* ========== PAGE HEADER (sub-pages) ========== */
.page-header {
  padding: 160px 40px 60px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: end;
}
.page-header h1 {
  font-size: clamp(60px, 13vw, 200px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: .85;
  text-transform: uppercase;
}
.page-header p {
  color: #cfcfcf;
  max-width: 48ch;
  font-size: 17px;
}
@media (max-width: 900px) {
  .page-header { grid-template-columns: 1fr; padding: 140px 20px 40px; }
}

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Back button */
.back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 40px 40px;
  transition: color .3s var(--ease);
}
.back:hover { color: var(--accent); }

/* ========== SHADER-STUDIO UPGRADES ========== */

/* --- Page-wipe transition --- */
.page-wipe {
  position: fixed;
  inset: 0;
  z-index: 10050;
  pointer-events: none;
  background: var(--ink);
  transform: translateY(100%);
  transition: transform .65s cubic-bezier(.76,0,.24,1);
  display: grid;
  place-items: center;
}
.page-wipe.cover-up {
  transform: translateY(0);
  pointer-events: auto;
}
.page-wipe.cover-now {
  transform: translateY(0);
  transition: none;
  pointer-events: auto;
}
.page-wipe.exit-up {
  transform: translateY(-100%);
  pointer-events: none;
}
.page-wipe__label {
  color: var(--bg);
  font-weight: 800;
  font-size: clamp(40px, 8vw, 140px);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: .9;
  mix-blend-mode: difference;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .3s ease .15s, transform .4s var(--ease) .15s;
}
.page-wipe.cover-up .page-wipe__label,
.page-wipe.cover-now .page-wipe__label {
  opacity: 1;
  transform: translateY(0);
}

/* --- Hero tighter aesthetic --- */
.hero { background: #060606; }
.hero__bg img { filter: grayscale(.4) contrast(1.05) brightness(.72); }
.hero__bg::after {
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,.1) 0%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.9) 100%),
    linear-gradient(180deg, rgba(0,0,0,.4) 0%, transparent 30%, transparent 70%, rgba(0,0,0,.6) 100%);
}
.hero__corner {
  position: absolute;
  z-index: 3;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  line-height: 1.7;
  mix-blend-mode: difference;
}
.hero__corner--tl { top: 110px; left: 40px; }
.hero__corner--tr { top: 110px; right: 40px; text-align: right; }
.hero__corner strong { display: block; font-weight: 600; color: #fff; }
@media (max-width: 680px) {
  .hero__corner--tl { top: 90px; left: 20px; font-size: 9px; }
  .hero__corner--tr { top: 90px; right: 20px; font-size: 9px; }
}

/* Magnetic button */
.magnetic {
  position: relative;
  display: inline-block;
  will-change: transform;
  transition: transform .4s var(--ease);
}

/* --- Cursor-follow project list --- */
.project-list {
  padding: 120px 40px;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: relative;
}
.project-list__heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 40px;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}
.project-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  padding: 36px 0;
  border-top: 1px solid rgba(255,255,255,.12);
  position: relative;
  transition: padding .4s var(--ease);
}
.project-row:last-child { border-bottom: 1px solid rgba(255,255,255,.12); }
.project-row__num {
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-weight: 500;
}
.project-row__title {
  font-size: clamp(44px, 7vw, 104px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: .95;
  text-transform: uppercase;
  transition: color .35s var(--ease), transform .5s var(--ease);
  will-change: transform;
}
.project-row__meta {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  transition: color .35s var(--ease);
}
.project-row:hover .project-row__title {
  color: var(--accent);
  transform: translateX(20px);
}
.project-row:hover .project-row__meta { color: var(--ink); }

.project-preview {
  position: fixed;
  top: 0; left: 0;
  width: 340px;
  height: 440px;
  border-radius: 14px;
  overflow: hidden;
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.9);
  transition: opacity .3s var(--ease), transform .4s var(--ease);
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  background: #111;
}
.project-preview.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.project-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 700px) {
  .project-list { padding: 60px 20px; }
  .project-row { grid-template-columns: 40px 1fr; padding: 20px 0; }
  .project-row__meta { display: none; }
  .project-preview { display: none; }
}

/* ========== STORY SCROLL — cinematic chapters ========== */
.story { position: relative; }

.story__intro {
  min-height: 60vh;
  display: grid;
  place-items: center;
  padding: 120px 40px;
  text-align: center;
}
.story__intro-eyebrow {
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.story__intro-line {
  font-size: clamp(32px, 5vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-transform: uppercase;
  max-width: 900px;
}
.story__intro-line em {
  font-style: normal;
  color: var(--accent);
}

.chapter {
  position: relative;
  min-height: 120vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid rgba(255,255,255,.06);
}
.chapter__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.chapter__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  transform: scale(1.15);
  filter: grayscale(.25) brightness(.55);
}
.chapter__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,.1) 0%, rgba(0,0,0,.6) 70%, rgba(0,0,0,.92) 100%),
    linear-gradient(180deg, rgba(0,0,0,.55), transparent 35%, transparent 65%, rgba(0,0,0,.75));
  z-index: 1;
  pointer-events: none;
}
.chapter__content {
  position: relative;
  z-index: 2;
  padding: 80px 40px;
  max-width: 1100px;
  width: 100%;
  text-align: center;
}
.chapter__num {
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 30px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.chapter__num::before,
.chapter__num::after {
  content: "";
  width: 36px;
  height: 1px;
  background: currentColor;
}
.chapter__title {
  font-size: clamp(60px, 13vw, 220px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: .85;
  text-transform: uppercase;
  margin-bottom: 40px;
  will-change: transform, opacity;
}
.chapter__title .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.chapter__title .word-inner {
  display: inline-block;
  will-change: transform;
}
.chapter__body {
  font-size: clamp(18px, 1.6vw, 24px);
  color: #e0e0e0;
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.55;
}
.chapter__link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 20px 40px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background .3s var(--ease), color .3s var(--ease), transform .4s var(--ease);
  position: relative;
  overflow: hidden;
}
.chapter__link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform .45s var(--ease);
  z-index: -1;
}
.chapter__link:hover { color: var(--bg); }
.chapter__link:hover::before { transform: translateY(0); }

.chapter__sticky-label {
  position: absolute;
  left: 40px;
  bottom: 40px;
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  z-index: 2;
}
.chapter__sticky-label--r {
  left: auto;
  right: 40px;
  text-align: right;
}

/* Transition punctuation between chapters */
.story__break {
  min-height: 50vh;
  display: grid;
  place-items: center;
  padding: 60px 40px;
  border-top: 1px solid rgba(255,255,255,.06);
  text-align: center;
}
.story__break p {
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 700px;
  color: var(--muted);
}
.story__break p strong {
  color: var(--ink);
  font-weight: 800;
}
.story__break p em {
  font-style: normal;
  color: var(--accent);
}

@media (max-width: 680px) {
  .chapter { min-height: 100vh; }
  .chapter__content { padding: 60px 20px; }
  .chapter__sticky-label { left: 20px; bottom: 20px; font-size: 9px; }
  .chapter__sticky-label--r { right: 20px; left: auto; }
  .story__intro { padding: 80px 20px; }
  .story__break { padding: 40px 20px; }
}

/* =========================================================
   HERO CAMERA + SIGNATURE MARK
   Decorative melting-camera PNG in hero + signature block
   ========================================================= */
.hero--solo { position: relative; overflow: hidden; }

.hero__camera {
  position: absolute;
  top: 8%;
  right: -4%;
  width: clamp(260px, 34vw, 520px);
  height: auto;
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
  filter: drop-shadow(0 40px 80px rgba(255, 61, 46, 0.18));
  transform: rotate(6deg);
  animation: drip 9s var(--ease) infinite alternate;
}

@keyframes drip {
  0%   { transform: translateY(0) rotate(6deg); }
  100% { transform: translateY(18px) rotate(4deg); }
}

.hero--solo .hero__title,
.hero--solo .hero__meta,
.hero--solo .hero__scroll { position: relative; z-index: 1; }

/* --- Signature feature block --- */
.signature {
  padding: 140px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 28px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.signature::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 55%, rgba(255, 230, 0, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 55%, rgba(255, 61, 46, 0.10) 0%, transparent 65%);
  pointer-events: none;
}

.signature__eyebrow {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.signature__mark {
  max-width: min(680px, 78vw);
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 40px 80px rgba(255, 61, 46, 0.22));
  transition: transform .8s var(--ease);
}

.signature:hover .signature__mark {
  transform: scale(1.03) rotate(-1deg);
}

.signature__caption {
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .hero__camera {
    top: auto;
    bottom: 12%;
    right: -18%;
    width: 70vw;
    opacity: 0.55;
  }
  .signature { padding: 90px 24px; }
}

/* --- Solo stat variant (single big number) --- */
.stats--solo {
  grid-template-columns: 1fr;
  text-align: left;
}
.stats--solo .stat__num {
  font-size: clamp(72px, 9vw, 140px);
  letter-spacing: -0.04em;
}
.stats--solo .stat__label {
  font-size: 14px;
  letter-spacing: 0.24em;
}
@media (max-width: 768px) {
  .stats--solo { grid-template-columns: 1fr; }
}

/* =========================================================
   VIDEO PARITY — make <video> tags behave like <img> inside
   galleries, work cards, and hub cards. Also kills overlay/
   focus rings & maintains object-fit/transition parity.
   ========================================================= */
video { display: block; max-width: 100%; height: auto; }

.work__card video,
.hub__card video,
.gallery a video,
.work-panel__visual video,
.about__photo video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s var(--ease);
}

.work__card:hover video { transform: scale(1.04); }
.hub__card:hover video { transform: scale(1.08); }
.gallery a:hover video { transform: scale(1.04); }

.gallery--square a video {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
