/* ============================================================
   ALEX KASPARIAN — Portfolio
   Design: Bold Artsy Minimal
   Colors: #FFFFFF/#F5F2EE | #7B2FFF | #C8F000 | #0F0F0F | #888888
   ============================================================ */

/* ─── CUSTOM PROPERTIES ─────────────────────────────────────── */
:root {
  --white:       #FFFFFF;
  --offwhite:    #F5F2EE;
  --purple:      #7B2FFF;
  --purple-dark: #5A1FCC;
  --chartreuse:  #C8F000;
  --black:       #0F0F0F;
  --gray:        #888888;
  --gray-light:  #D9D5CF;
  --gray-medium: #C0BDB8;

  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-serif:   'Playfair Display', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --nav-h: 72px;
  --container: 1280px;
  --gutter: clamp(20px, 5vw, 80px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.87, 0, 0.13, 1);
  --transition: 0.4s var(--ease-out);
}

/* ─── RESET & BASE ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
svg { display: block; }
button { border: none; background: none; cursor: none; font-family: inherit; }
ul { list-style: none; }

/* ─── CUSTOM CURSOR ──────────────────────────────────────────── */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  background: var(--purple);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, background 0.2s, width 0.3s var(--ease-out), height 0.3s var(--ease-out);
  mix-blend-mode: multiply;
}

.cursor-follower {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1.5px solid var(--purple);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.12s, opacity 0.3s, width 0.35s var(--ease-out), height 0.35s var(--ease-out), border-color 0.3s;
  opacity: 0.6;
}

body.cursor-hover .cursor {
  width: 14px; height: 14px;
  background: var(--purple);
}

body.cursor-hover .cursor-follower {
  width: 56px; height: 56px;
  opacity: 0.3;
}

body.cursor-card .cursor {
  width: 40px; height: 40px;
  background: var(--purple);
  border-radius: 50%;
  opacity: 0.18;
}

body.cursor-card .cursor-follower {
  width: 40px; height: 40px;
  opacity: 0;
}

/* ─── LAYOUT HELPERS ─────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ─── TYPOGRAPHY HELPERS ─────────────────────────────────────── */
.text-purple { color: var(--purple); }
.text-chartreuse { color: var(--chartreuse); }

.section-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 1.2rem;
}

.section-label--chartreuse {
  color: var(--black);
  background: var(--chartreuse);
  display: inline-block;
  padding: 2px 10px;
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

/* ─── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 3px;
  transition: var(--transition);
  white-space: nowrap;
  cursor: none;
}

.btn--primary {
  background: var(--purple);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(123, 47, 255, 0.3);
}

.btn--ghost {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--black);
}
.btn--ghost:hover {
  border-color: var(--purple);
  color: var(--purple);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--gray-light);
  font-size: 14px;
  padding: 16px 36px;
}
.btn--outline:hover {
  border-color: var(--purple);
  color: var(--purple);
  transform: translateY(-2px);
}

.btn--chartreuse {
  background: var(--chartreuse);
  color: var(--black);
}
.btn--chartreuse:hover {
  background: #b8e000;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200, 240, 0, 0.35);
}

.btn--lg {
  font-size: 14px;
  padding: 18px 36px;
}

/* ─── NAVIGATION ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  border-bottom-color: var(--gray-light);
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav__logo {
  margin-right: auto;
}

.nav__logo-text {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--black);
  transition: color 0.2s;
}

.nav__logo:hover .nav__logo-text {
  color: var(--purple);
}

.nav__links {
  display: flex;
  gap: 32px;
}

.nav__link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--black);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--chartreuse);
  transition: width 0.3s var(--ease-out);
}

.nav__link:hover {
  color: var(--purple);
}

.nav__link:hover::after {
  width: 100%;
}

/* Active state for current page */
.nav__link--active {
  color: var(--purple);
}

.nav__link--active::after {
  width: 100%;
  background: var(--chartreuse);
}

.nav__cta {
  font-size: 12px;
  padding: 10px 22px;
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}

.nav__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--black);
  transition: var(--transition);
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--white);
  padding: 32px var(--gutter) 48px;
  border-top: 1px solid var(--gray-light);
  z-index: 999;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu__link {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--black);
  line-height: 1.1;
  padding: 8px 0;
  transition: color 0.2s;
}

.mobile-menu__link:hover {
  color: var(--purple);
}

/* ─── HERO ───────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  padding-top: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  background: var(--offwhite);
  position: relative;
  overflow: hidden;
}

/* Decorative ruled line — top of hero */
.hero::before {
  content: '';
  position: absolute;
  top: var(--nav-h);
  left: 0; right: 0;
  height: 1px;
  background: var(--gray-light);
  z-index: 2;
}

.hero__bg-text {
  position: absolute;
  bottom: -10%;
  left: -3%;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(180px, 30vw, 420px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0,0,0,0.05);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.hero__content {
  padding: 80px var(--gutter) 80px calc(var(--gutter) + max(0px, (100vw - var(--container)) / 2));
  position: relative;
  z-index: 1;
}

.hero__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 24px;
}

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 10rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 28px;
}

.hero__name-line {
  display: block;
}

.hero__name-line--indent {
  padding-left: clamp(20px, 4vw, 60px);
  color: var(--purple);
}

.hero__subtitle {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  font-weight: 400;
  color: var(--black);
  margin-bottom: 28px;
  height: 28px;
}

.hero__subtitle-prefix {
  color: var(--purple);
  font-size: 1.2em;
}

.hero__subtitle-rotating {
  font-weight: 500;
  transition: opacity 0.3s;
}

.hero__body {
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  line-height: 1.7;
  color: var(--gray);
  max-width: 440px;
  margin-bottom: 40px;
}

.hero__br { display: none; }

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* HERO IMAGE PANEL */
.hero__image-panel {
  height: 100vh;
  min-height: 600px;
  position: relative;
  background: var(--black);
  overflow: hidden;
}

.hero__image-wrap {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.92;
  transition: opacity 0.5s;
  display: block;
}

/* GIF variant — no interference with animated GIF looping */
.hero__img--gif {
  opacity: 1;
  transform: none !important;
  animation: none !important;
  will-change: auto !important;
  transition: none !important;
}

/* Left-edge gradient feathering into the content panel */
.hero__gif-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(15, 15, 15, 0.42) 0%,
    rgba(15, 15, 15, 0.12) 35%,
    transparent 65%
  );
  pointer-events: none;
  z-index: 1;
}

.hero__image-tag {
  position: absolute;
  bottom: 32px;
  left: 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: rgba(255,255,255,0.9);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  z-index: 2;
  background: rgba(0,0,0,0.40);
  padding: 8px 14px;
  border-radius: 3px;
  backdrop-filter: blur(6px);
}

.hero__award-pill {
  position: absolute;
  top: 40px;
  right: 32px;
  background: var(--chartreuse);
  color: var(--black);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: calc(var(--gutter) + max(0px, (100vw - var(--container)) / 2));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background: var(--purple);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.5); opacity: 0.4; }
}

.hero__scroll-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  writing-mode: vertical-rl;
}

/* ─── AWARDS BAR ─────────────────────────────────────────────── */
.awards-bar {
  background: var(--white);
  border-top: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
  overflow: hidden;
  padding: 0;
  height: 52px;
  display: flex;
  align-items: center;
}

.ticker-wrap {
  width: 100%;
  overflow: hidden;
}

.ticker {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: ticker 22s linear infinite;
  width: max-content;
}

.ticker:hover {
  animation-play-state: paused;
}

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

.ticker__item {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--black);
  padding: 0 24px;
  transition: color 0.2s;
}

.ticker__item:hover { color: var(--purple); }

.ticker__item--highlight { color: var(--purple); }

.ticker__item--chartreuse {
  background: var(--chartreuse);
  color: var(--black);
  padding: 4px 20px;
  border-radius: 2px;
  margin: 0 8px;
}

.ticker__sep {
  color: var(--gray-medium);
  font-size: 14px;
}

/* ─── CLIENTS ─────────────────────────────────────────────────── */
.clients {
  padding: 64px 0 72px;
  background: var(--white);
}

.clients__label {
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gray-medium);
  margin-bottom: 40px;
}

/* ─── Logo grid: wrapping flex row, centered ─────────────────── */
.clients__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 48px;
  row-gap: 40px;
  padding: 0 48px;
  max-width: var(--container);
  margin: 0 auto;
}

/* ─── Each logo wrapper: flex cell, vertically centered ─────── */
.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
}

/* ─── All logo images: strict 32px uniform sizing ────────────── */
.client-logo__img {
  height: 32px;
  width: auto;
  max-height: 32px;
  min-height: 32px;
  max-width: 140px;
  display: block;
  object-fit: contain;
  /* Dark-on-light logos: flatten to black → apply gray tint */
  filter: grayscale(100%) brightness(0) invert(0.75);
  transition: filter 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

/* ─── White-on-dark logos (Fabletics, Gucci, Adidas, Calvin Klein, Twitter) ─
   Invert flips white→black & dark bg→light, brightness(0) crushes all to black,
   invert(0.75) lifts to muted gray. mix-blend-mode:multiply erases any
   residual light background so no gray rectangle appears on the page. */
.client-logo[data-invert="true"] .client-logo__img {
  filter: invert(1) grayscale(100%) brightness(0) invert(0.75);
  mix-blend-mode: multiply;
}

/* ─── Icon-only logos (Twitter X, Pinterest P) ───────────────── */
.client-logo__img--icon {
  height: 28px;
  max-height: 28px;
  min-height: 28px;
  max-width: 36px;
}

/* ─── Per-logo max-width tweaks for visual balance ───────────── */
.client-logo[data-name="Amazon"] .client-logo__img        { max-width: 110px; }
.client-logo[data-name="Makeup by Mario"] .client-logo__img { max-width: 160px; }
.client-logo[data-name="Pavoi"] .client-logo__img          { max-width: 90px; }
.client-logo[data-name="Wolford"] .client-logo__img        { max-width: 120px; }
.client-logo[data-name="Starface"] .client-logo__img       { max-width: 110px; }
/* X logo: white-on-transparent PNG — exact user-specified filters */
.client-logo__img--x {
  height: 32px !important;
  max-height: 32px !important;
  min-height: 32px !important;
  width: auto !important;
  max-width: 32px !important;
  filter: grayscale(100%) brightness(0) invert(0.75) !important;
  mix-blend-mode: multiply;
}
.client-logo[data-name="Twitter"]:hover .client-logo__img--x {
  filter: brightness(0) invert(0%) sepia(100%) saturate(10000%) hue-rotate(250deg) brightness(1) !important;
  mix-blend-mode: multiply;
}
/* Meta: full 34px matches Netflix/Google visual weight */
.client-logo[data-name="Meta"] .client-logo__img           { height: 34px; max-height: 34px; min-height: 34px; }
/* Adidas: tall trefoil — reduce so it visually matches Netflix height */
.client-logo[data-name="Adidas"] .client-logo__img         { height: 22px; max-height: 22px; min-height: 22px; }
/* Sony Pictures: horizontal wordmark — same 32px as Netflix/Google */
.client-logo[data-name="Sony Pictures"] .client-logo__img  { height: 32px; max-height: 32px; min-height: 32px; width: auto; max-width: 120px; }
/* Cider: tall serif caps — reduce so it visually matches Netflix height */
.client-logo[data-name="Cider"] .client-logo__img          { height: 20px; max-height: 20px; min-height: 20px; }

/* ─── Hover: electric purple #7B2FFF — same for all logo types ── */
.client-logo:hover {
  transform: translateY(-2px);
}

/* Dark-on-light logos hover */
.client-logo:hover .client-logo__img {
  filter: grayscale(100%) brightness(0) invert(1)
          sepia(100%) saturate(10000%)
          hue-rotate(243deg) brightness(0.85);
}

/* White-on-dark logos hover: invert first to get black logo, then tint purple */
.client-logo[data-invert="true"]:hover .client-logo__img {
  filter: invert(1) grayscale(100%) brightness(0) invert(1)
          sepia(100%) saturate(10000%)
          hue-rotate(243deg) brightness(0.85);
  mix-blend-mode: multiply;
}

/* ─── WORK SECTION ────────────────────────────────────────────── */
.work {
  padding: 100px 0 80px;
  background: var(--offwhite);
}

.section-header {
  margin-bottom: 56px;
}

.work__filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.work__filter {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray);
  padding: 8px 18px;
  border: 1px solid var(--gray-light);
  border-radius: 100px;
  background: transparent;
  transition: var(--transition);
  cursor: none;
}

.work__filter:hover,
.work__filter.active {
  background: var(--purple);
  border-color: var(--purple);
  color: var(--white);
}

/* WORK GRID */
/* ─── SELECTED WORK — Asymmetric Grid ────────────────────────── */
.work__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 500px 360px 320px;
  gap: 16px;
}

/* Row 1: FNaF spans cols 1–2 (2fr+1fr), full row height 500px */
.wg-fnaf {
  grid-column: 1 / 3;
  grid-row: 1 / 2;
}

/* Row 1, Col 3: wrapper holding Wicked (top) + M3GAN (bottom) */
.wg-col3-row1 {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Wicked & M3GAN each fill exactly half the 500px slot */
.wg-wicked,
.wg-m3gan {
  flex: 1 1 0;
  min-height: 0;
}

/* Row 3: Super Bowl LIX — full width */
.wg-superbowl {
  grid-column: 1 / 4;
  grid-row: 3 / 4;
}

/* Super Bowl cover: SVG fills the image-wrap like an <img> */
.wg-superbowl__cover {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.wg-superbowl__cover svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Row 2: three equal columns */
.wg-fallout {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
}

.wg-bhc {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}

.wg-beetlejuice {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
}

.project-card {
  position: relative;
  overflow: hidden;
  background: var(--gray-light);
  border-radius: 8px;
}

.project-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.project-card__image-wrap {
  flex: 1;
  width: 100%;
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.project-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.project-card:hover .project-card__img {
  transform: scale(1.05);
}

/* Overlay */
.project-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(123, 47, 255, 0.88);
  display: flex;
  align-items: flex-end;
  padding: 24px 24px 24px 24px;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  overflow: hidden;             /* prevent any child bleeding outside */
}

.project-card:hover .project-card__overlay {
  opacity: 1;
}

.project-card__overlay-content {
  color: var(--white);
  transform: translateY(8px);
  transition: transform 0.4s var(--ease-out);
  width: 100%;                  /* fill overlay width — respects padding */
  box-sizing: border-box;
  overflow: hidden;             /* no bleed past card edge */
}

.project-card:hover .project-card__overlay-content {
  transform: translateY(0);
}

.project-card__category {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--chartreuse);
  margin-bottom: 6px;
}

/* ─── Beverly Hills Cop: title fits 2 lines, never clips ───────── */
.project-card__title--sm {
  font-size: clamp(0.72rem, 1.15vw, 1rem);
  white-space: normal;          /* allow wrap — max 2 lines */
  overflow: visible;
  text-overflow: unset;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 100%;
  word-break: break-word;
}

.project-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
}

.project-card__client {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}

.project-card__arrow {
  display: inline-block;
  font-size: 1.4rem;
  margin-top: 12px;
  color: var(--chartreuse);
  transform: rotate(-45deg);
  transition: transform 0.3s var(--ease-out);
}

.project-card:hover .project-card__arrow {
  transform: rotate(0deg);
}

/* Card meta (below image) */
.project-card__meta {
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  height: 64px;
}

.project-card__meta-title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
}

.project-card__meta-client {
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Hidden class for filtering */
.project-card.hidden {
  display: none;
}

.work__cta {
  text-align: center;
  margin-top: 52px;
}

/* ─── ABOUT ───────────────────────────────────────────────────── */
.about {
  padding: 120px 0;
  background: var(--white);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 100px);
  align-items: center;
}

.about__image-frame {
  position: relative;
  aspect-ratio: 3/4;
  max-width: 480px;
}

.about__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.about__image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 50%;
  height: 50%;
  background: var(--chartreuse);
  z-index: -1;
  border-radius: 4px;
}

.about__stats {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.about__stat {
  display: flex;
  flex-direction: column;
}

.about__stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  color: var(--black);
}

.about__stat-label {
  font-size: 11px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.about__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 20px 0 28px;
  color: var(--black);
}

.about__title em {
  font-style: italic;
  font-family: var(--font-serif);
  text-transform: none;
  font-weight: 700;
  color: var(--purple);
  font-size: 0.9em;
}

.about__bio {
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 1.75;
  color: #444;
  margin-bottom: 20px;
}

.about__bio strong {
  color: var(--black);
  font-weight: 600;
}

.about__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
}

/* ─── CAPABILITIES ────────────────────────────────────────────── */
.capabilities {
  padding: 100px 0;
  background: var(--offwhite);
}

.capabilities__header {
  margin-bottom: 64px;
}

.capabilities__title {
  text-align: left;
}

.capabilities__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gray-light);
  border: 1px solid var(--gray-light);
  border-radius: 4px;
  overflow: hidden;
}

.capability-item {
  background: var(--offwhite);
  padding: 36px 32px;
  transition: background 0.3s, color 0.3s;
  position: relative;
  overflow: hidden;
}

.capability-item::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0%;
  height: 3px;
  background: var(--purple);
  transition: width 0.4s var(--ease-out);
}

.capability-item:hover {
  background: var(--white);
}

.capability-item:hover::before {
  width: 100%;
}

.capability-item:hover .capability-item__name {
  color: var(--purple);
}

.capability-item__num {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gray-medium);
  margin-bottom: 16px;
}

.capability-item__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--black);
  margin-bottom: 12px;
  transition: color 0.3s;
  line-height: 1.1;
}

.capability-item__desc {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--gray);
}

/* ─── PHOTOGRAPHY PORTAL ──────────────────────────────────────── */
.photo-portal {
  padding: 100px 0;
  background: var(--black);
  color: var(--white);
}

.photo-portal .section-label {
  color: var(--chartreuse);
}

.photo-portal .section-title {
  color: var(--white);
}

.photo-portal__title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 24px;
}

.photo-portal__cta {
  flex-shrink: 0;
}

.photo-portal__mobile-cta {
  display: none;
  margin-top: 32px;
}

.photo-portal__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 12px;
  align-items: start;
}

.photo-portal__main {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 3/4;
}

.photo-portal__side {
  display: grid;
  gap: 12px;
}

.photo-portal__thumb {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4/3;
}

.photo-portal__main img,
.photo-portal__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out), filter 0.4s;
  filter: grayscale(20%);
}

.photo-portal__main:hover img,
.photo-portal__thumb:hover img {
  transform: scale(1.04);
  filter: grayscale(0%);
}

.photo-portal__label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(0,0,0,0.5);
  padding: 4px 10px;
  border-radius: 2px;
  backdrop-filter: blur(4px);
}

/* ─── CONTACT ────────────────────────────────────────────────── */
.contact {
  padding: 120px 0 100px;
  background: var(--white);
  overflow: hidden;
}

.contact__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.contact__tag {
  display: inline-block;
  background: var(--chartreuse);
  color: var(--black);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
}

.contact__headline {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 9rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.9;
  color: var(--black);
  margin-bottom: 32px;
}

.contact__headline-accent {
  color: var(--purple);
  display: block;
}

.contact__sub {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: var(--gray);
  line-height: 1.7;
  margin: 0 auto 48px;
  white-space: nowrap;
}

.contact__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

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

.contact__site-link {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--gray);
  transition: color 0.2s;
}

.contact__site-link:hover {
  color: var(--purple);
}

.contact__divider {
  color: var(--gray-medium);
}

.contact__bg-text {
  position: absolute;
  bottom: -10%;
  right: -5%;
  font-family: var(--font-display);
  font-size: clamp(200px, 35vw, 500px);
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0,0,0,0.04);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* ─── FOOTER ──────────────────────────────────────────────────── */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 48px 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px 40px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.02em;
}

.footer__tagline {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.08em;
}

.footer__nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__nav a {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.footer__nav a:hover {
  color: var(--chartreuse);
}

.footer__copy {
  grid-column: 1 / -1;
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.05em;
  margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
}

/* ─── SCROLL REVEAL ANIMATIONS ───────────────────────────────── */
.reveal,
.reveal-item,
.fade-in-up,
.fade-in-right {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.fade-in-right {
  transform: translateX(40px);
}

.reveal.in-view,
.reveal-item.in-view,
.fade-in-up.in-view,
.fade-in-right.in-view {
  opacity: 1;
  transform: translate(0, 0);
}

/* Stagger delays for reveal-items */
.reveal-item:nth-child(1) { transition-delay: 0s; }
.reveal-item:nth-child(2) { transition-delay: 0.1s; }
.reveal-item:nth-child(3) { transition-delay: 0.15s; }
.reveal-item:nth-child(4) { transition-delay: 0.2s; }
.reveal-item:nth-child(5) { transition-delay: 0.25s; }
.reveal-item:nth-child(6) { transition-delay: 0.3s; }
.reveal-item:nth-child(7) { transition-delay: 0.35s; }
.reveal-item:nth-child(8) { transition-delay: 0.4s; }
.reveal-item:nth-child(9) { transition-delay: 0.45s; }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  /* Tablet: collapse to 2-col, col3 sub-wrapper stacks below */
  .work__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .wg-fnaf        { grid-column: 1 / 3; grid-row: auto; height: 420px; }
  .wg-col3-row1   { grid-column: 1 / 3; grid-row: auto; flex-direction: row; height: 280px; }
  .wg-fallout     { grid-column: 1 / 2; grid-row: auto; height: 320px; }
  .wg-bhc         { grid-column: 2 / 3; grid-row: auto; height: 320px; }
  .wg-beetlejuice { grid-column: 1 / 3; grid-row: auto; height: 320px; }
  .wg-superbowl   { grid-column: 1 / 3; grid-row: auto; height: 280px; }

}

@media (max-width: 900px) {
  :root { --nav-h: 64px; }

  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero__content {
    padding: 60px var(--gutter) 48px;
    padding-left: var(--gutter);
  }

  .hero__image-panel {
    height: 55vw;
    min-height: 300px;
    order: -1;
  }

  .hero__bg-text { font-size: 40vw; }

  .hero__scroll { display: none; }

  .about__grid {
    grid-template-columns: 1fr;
  }

  .about__image-frame {
    max-width: 100%;
    aspect-ratio: 4/3;
  }

  .photo-portal__cta { display: none; }
  .photo-portal__mobile-cta { display: flex; justify-content: center; }

  .photo-portal__grid {
    grid-template-columns: 1fr;
  }

  .photo-portal__main {
    aspect-ratio: 4/3;
  }

  .photo-portal__side {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  /* Mobile: single column, all cards full width */
  .work__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 12px;
  }

  .wg-fnaf,
  .wg-col3-row1,
  .wg-fallout,
  .wg-bhc,
  .wg-beetlejuice,
  .wg-superbowl {
    grid-column: 1 / 2;
    grid-row: auto;
  }

  .wg-fnaf        { height: 280px; }
  .wg-col3-row1   { flex-direction: column; height: auto; gap: 12px; }
  .wg-wicked,
  .wg-m3gan       { flex: none; height: 240px; }
  .wg-fallout,
  .wg-bhc,
  .wg-beetlejuice { height: 260px; }
  .wg-superbowl   { height: 240px; }

  /* ── Mobile: also hide filters (single col) ── */
  .capabilities__grid {
    grid-template-columns: 1fr;
  }

  .contact__actions {
    flex-direction: column;
    align-items: center;
  }

  .contact__sub {
    white-space: normal;
  }

  .contact__details {
    flex-direction: column;
    gap: 16px;
    align-items: center;
    width: 100%;
    flex-wrap: unset;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__name { font-size: clamp(3.5rem, 15vw, 6rem); }

  .clients__grid {
    flex-wrap: wrap;
    gap: 28px;
    row-gap: 24px;
  }

  .client-logo__img {
    height: 26px;
    max-height: 26px;
    min-height: 26px;
  }

  .client-logo__img--icon {
    height: 22px;
    max-height: 22px;
    min-height: 22px;
  }

  .photo-portal__side {
    grid-template-columns: 1fr 1fr;
  }

  .about__stats {
    gap: 20px;
  }
}

/* ─── CONTACT DETAILS — MOBILE STACK (768px and below) ──────── */
@media (max-width: 768px) {
  /* Clients grid: tighter gaps on tablet/mobile */
  .clients__grid {
    gap: 28px;
    row-gap: 24px;
  }

  /* Container: vertical column, centered, no horizontal layout */
  .contact__details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    flex-wrap: unset;
    width: 100%;
  }

  /* Each item: icon + text on one line, left-aligned as a unit */
  .contact__detail-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    white-space: nowrap;
    width: auto;
  }

  /* Phone number: never break */
  .contact__detail-item[href^="tel"] {
    white-space: nowrap;
    min-width: fit-content;
  }

  /* Phone number text span */
  .contact__detail-item[href^="tel"] span:last-child {
    white-space: nowrap;
    min-width: fit-content;
  }
}

/* ─── SELECTION ──────────────────────────────────────────────── */
::selection {
  background: var(--purple);
  color: var(--white);
}

/* ─── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--offwhite); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }

/* ─── PAGE LOADER ─────────────────────────────────────────────── */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.page-loader.loaded {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
}

.page-loader__name {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: -0.03em;
  animation: loaderPulse 1s ease infinite alternate;
}

.page-loader__name span {
  color: var(--purple);
}

.page-loader__bar {
  width: 200px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 1px;
  overflow: hidden;
}

.page-loader__progress {
  height: 100%;
  background: var(--purple);
  width: 0%;
  transition: width 0.4s var(--ease-out);
}

@keyframes loaderPulse {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

/* ─── FOCUS STYLES ───────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}

/* ─── WORK SECTION HEADER ─────────────────────────────────────── */
.nav__logo-dot {
  color: var(--purple);
}

/* ─── PHOTO PORTAL BODY TEXT ─────────────────────────────────── */
.photo-portal__body {
  font-size: clamp(0.875rem, 1.3vw, 1rem);
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  max-width: 480px;
  margin-top: 16px;
}

.photo-portal__subtext {
  padding-top: 24px;
}

.photo-portal__tags {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--chartreuse);
  text-align: center;
}

/* ─── CONTACT DETAILS ────────────────────────────────────────── */
.contact__details {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 40px;
  margin: 36px auto 28px;
}

.contact__detail-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  color: var(--black);
  transition: color 0.2s;
  justify-content: center;
  white-space: nowrap;
}

.contact__detail-item:hover {
  color: var(--purple);
}

.contact__detail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--gray-light);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  color: var(--purple);
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

/* ✉ and ✆ match the "in" LinkedIn icon — all three at 13px */
a[href^="mailto"] .contact__detail-icon,
a[href^="tel"]    .contact__detail-icon {
  font-size: 13px;
}

.contact__detail-item:hover .contact__detail-icon {
  background: var(--purple);
  border-color: var(--purple);
  color: var(--white);
}



/* ─── SECTION DIVIDER ─────────────────────────────────────────── */
.section-divider {
  height: 1px;
  background: var(--gray-light);
  max-width: var(--container);
  margin: 0 auto;
}

/* ─── MARQUEE PAUSE ON REDUCE MOTION ──────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .ticker { animation: none; }
  .reveal,
  .reveal-item,
  .fade-in-up,
  .fade-in-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
