/* ===================================================
   PORTFOLIO — Mika, UX/UI/Digital Designer
   Pure CSS, Desktop-First, GSAP-animation-ready
   =================================================== */

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

:root {
  --color-bg: #E2E2E2;              /* page base — kept (its charm) */
  --color-black: #141414;           /* primary ink — crisper than the old #1D1D1D */
  --color-white: #ffffff;           /* surface / cards — lifted off the base via --shadow-card */
  --color-accent: #D8F772;          /* single signature lime (retired the stray #DFFF5A) */
  --color-accent-alt: #D8F772;
  --color-gray: #C7C8C5;            /* muted surface / chips / placeholders */
  --color-gray-dark: #C7C8C5;
  --color-text-2: #5C5B56;          /* secondary & body text — passes AA on #E2E2E2 (~5:1) */
  --color-hairline: #CDCEC9;        /* dividers / hairline borders on the grey base */

  /* Consolidated dark ramp (AI Lab): page sits below surfaces */
  --color-dark-bg: #0D0D0D;
  --color-dark-surface: #161616;

  /* Barely-there elevation so white cards separate from the #E2E2E2 base */
  --shadow-card: 0 1px 2px rgba(20, 20, 20, 0.03), 0 4px 12px rgba(20, 20, 20, 0.03);

  --font-display: 'Cal Sans', 'Georgia', serif;
  --font-body: 'Manrope', -apple-system, sans-serif;

  --container-max: 1440px;
  --side-padding: 16px;

  /* Unified 16px corner radius across all rectangular UI (cards, images,
     content boxes, thumbnails, Next Case, featured sections); pills stay
     pill-shaped and circles stay circular. */
  --radius-sm: 16px;
  --radius-md: 16px;
  --radius-pill: 32px;

  /* Spacing scale (8px base) — one rhythm for the whole site. */
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-30: 120px;
  --space-40: 160px;
  /* Single gutter for EVERY gallery / project grid / image composition. */
  --gutter: 16px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-black);
  overflow-x: hidden;
  max-width: 100vw;
}

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

ul {
  list-style: none;
}

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

/* ---------- UTILITY: word spans for GSAP ---------- */
.word {
  display: inline-block;
}

/* ===================================================
   NAVIGATION
   =================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 24px var(--side-padding);
  background: rgba(226, 226, 226, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--color-black);
}

.nav__logo-icon {
  height: 30px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

/* Logo is the mark only — the wordmark is hidden but kept for screen readers */
.nav__logo span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Dark pages: invert the black logo mark so it reads on the dark nav */
.nav--dark .nav__logo-icon {
  filter: invert(1);
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav__link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  color: var(--color-black);
  transition: color 0.3s;
}

.nav__link:hover {
  /* Subtle active/hover state — lighter black, not the lime accent
     (lime stays reserved for the CTA and primary accents). */
  color: rgba(0, 0, 0, 0.5);
}

.nav__dot {
  /* Light pages: dots match the nav text (black). Dark pages override to lime. */
  color: var(--color-black);
  font-size: 16px;
  line-height: 1;
}

.nav__cta {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--color-black);
  background: var(--color-accent);
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  transition: background-color 0.3s, color 0.3s;
}

.nav__cta:hover {
  background: var(--color-black);
  color: var(--color-accent);
}

/* Dark navigation variant — used on the black AI Lab page.
   Only colors change; layout / spacing / typography stay identical. */
.nav--dark {
  background: rgba(0, 0, 0, 0.55);
}

.nav--dark .nav__logo,
.nav--dark .nav__link {
  color: var(--color-white);
}

.nav--dark .nav__link:hover {
  /* Subtle active/hover state — lighter white, not the lime accent. */
  color: rgba(255, 255, 255, 0.6);
}

/* Dark pages: separator dots stay lime for contrast against the black bg. */
.nav--dark .nav__dot {
  color: var(--color-accent);
}
/* The CTA keeps its neon-green style on both themes (uses --color-accent). */

/* Smooth, intentional cross-document transition between pages
   (e.g. white pages -> black AI Lab). Default browser crossfade. */
@view-transition {
  navigation: auto;
}

/* ===================================================
   HERO
   =================================================== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
  /* Full-screen section: hero fills the first viewport so the next section
     (Featured Works) stays below the fold until the user scrolls. Content is
     centered inside; scale the content (below), not this height. */
  min-height: 100vh;
  padding: 100px var(--side-padding) 100px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.hero__title {
  font-family: var(--font-body);
  font-size: 90px;
  line-height: 1.04;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--color-black);
  position: relative;
  z-index: 1;
}

/* Emphasised (bold) words in the headline */
.hero__title strong {
  font-weight: 700;
}

/* Small grey eyebrow above the headline — uppercase, tracked out */
.hero__eyebrow {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.4);
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

/* Mask reveal wrappers */
.line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

.line-mask__inner {
  display: block;
  will-change: transform;
}

.about__desc-mask,
.about__interests-mask,
.works__list-mask {
  overflow: hidden;
}


/* Roaming decorative 3D object — moves across the hero (JS-driven) */
.hero__float {
  position: absolute;
  top: 0;
  left: 0;
  width: 260px;
  height: 260px;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  will-change: transform;
}

.hero__float-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
  will-change: transform;
}

.hero__actions-mask {
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
  flex-wrap: wrap;
}

/* Outlined editorial pills — compact, balanced against the large headline */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(20, 20, 20, 0.22);
  background: transparent;
  color: var(--color-black);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.hero-pill__icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* Clickable pill (Explore Works) — inverts on hover, same 0.3s language */
.hero-pill--action {
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.hero-pill--action:hover {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

/* Informational pill (location) — no interaction */
.hero-pill--static {
  cursor: default;
  pointer-events: none;
}

/* ===================================================
   RESPONSIVE VIMEO EMBEDS
   .vembed        → 16:9 responsive box (case bodies, galleries, heroes)
   .vembed--fill  → cover-fills a positioned parent (slide / card backgrounds);
                     Vimeo background mode crops to cover, like object-fit:cover
   =================================================== */
.vembed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;   /* the display box (16:9 by default) */
  overflow: hidden;
  border-radius: var(--radius-sm);
}

/* The iframe carries the VIDEO's real aspect-ratio inline (each Vimeo clip
   differs: portrait, square, 16:9, cinematic…). It's scaled up via min-width/
   min-height until it fully covers the box, then centered and cropped — so the
   video fills the frame with no letterbox/pillarbox, like object-fit:cover. */
.vembed iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: auto;
  min-width: 100%;
  min-height: 100%;
  border: 0;
}

.vembed--fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;   /* fills a positioned parent (slide / card) instead */
  border-radius: 0;
}

/* Background videos must not swallow clicks meant for the card/slide link */
.vembed--fill iframe {
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero__float {
    width: 180px;
    height: 180px;
  }

  .hero-pill {
    padding: 11px 18px;
    font-size: 12px;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-black);
  color: var(--color-white);
  border-radius: var(--radius-pill);
  padding: 4px 8px;
  font-weight: 500;
  font-size: 16px;
  height: 36px;
}

.badge__avatar-wrapper {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.badge__avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge__icon {
  flex-shrink: 0;
}

.badge__text {
  white-space: nowrap;
}

/* ===================================================
   FEATURED WORKS
   =================================================== */
.works {
  padding: 16px var(--side-padding);
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.works,
.pin-spacer {
  background: var(--color-bg);
}

.works__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 24px 16px;
  position: relative;
  box-shadow: var(--shadow-card);
}

@media (min-width: 1025px) {
  .works {
    height: 100vh;
    display: flex;
    flex-direction: column;
  }

  .works__inner {
    grid-template-columns: minmax(280px, 1fr) 2fr;
    grid-template-rows: 1fr;
    flex: 1;
    overflow: hidden;
  }
}

.works__sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}

@media (min-width: 769px) {
  .works__sidebar {
    height: 100%;
    justify-content: space-between;
  }
}

.works__title {
  font-family: var(--font-display);
  font-size: 96px;
  line-height: 0.97;
  font-weight: 400;
  color: var(--color-black);
}

.works__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.works__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 10px 12px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  background: #E2E2E2;
  color: var(--color-black);
}

.works__item--active {
  background: var(--color-accent);
  color: var(--color-black);
}

.works__item-dot {
  display: none;
}

.works__item--active .works__item-dot {
  display: inline;
}

/* Showcase image area */
.works__showcase {
  position: relative;
  min-height: 0;
}

.works__slides {
  position: relative;
  width: 100%;
  height: 100%;
}

@media (min-width: 1025px) {
  /* The showcase is the fixed frame that clips the scrolling strip. */
  .works__showcase {
    overflow: hidden;
  }

  /* Vertical strip: slides stacked in a column, translated by scroll (scrub). */
  .works__slides {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: var(--gutter);
    height: 100%;
    will-change: transform;
  }
}

.works__image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
}

.works__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  will-change: transform;
}


.works__image-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
  background: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.tag--nda {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #D8F772;
  color: #141414;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  line-height: 1;
}

.tag--nda svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.works__project-title {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 24px;
}

.works__tags {
  display: flex;
  gap: 12px;
}

.tag--glass {
  background: rgba(255, 255, 255, 0.3);
  color: var(--color-white);
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

/* Cursor badge */
.works__cursor-badge {
  position: fixed;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #D8F772;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
}

.works__cursor-text {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--color-black);
}


/* Slides — vertical flow */
/* Slides — stacked on desktop, vertical on mobile */

@media (min-width: 1025px) {
  /* Each slide fills the frame; flex:none keeps its full height in the strip. */
  .works__slide {
    position: relative;
    height: 100%;
    flex: none;
    opacity: 1;
    visibility: visible;
  }
}

@media (max-width: 1024px) {
  .works__slides {
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: auto;
  }

  .works__slide {
    opacity: 1;
    visibility: visible;
  }
}

/* List mask for reveal animation */
.works__list-mask {
  overflow: hidden;
}

/* ===================================================
   MY EXPERTISE — sticky stacking cards
   Title is the section heading; each card pins in turn
   and the next slides up to replace it.
   =================================================== */
/* Section rhythm: a generous gap up from Featured Works, a tighter one down
   into About — keeping the homepage's between-section spacing consistent. */
.expertise {
  padding: 96px var(--side-padding) 40px;
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
  z-index: 2;
  background: var(--color-bg);
}

/* Heading — single line, matched to the "Featured Works" title */
.expertise__title {
  font-family: var(--font-display);
  font-size: 96px;
  line-height: 0.97;
  font-weight: 400;
  color: var(--color-black);
  margin-bottom: 56px;
}

.expertise__title .line-mask {
  display: block;
  overflow: hidden;
}

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

/* Each card is its own sticky element. A small per-index top offset lets the
   edge of each earlier card peek out, so the pile reads as a stacked deck.
   A hairline border does the separating; the shadow is a whisper of lift. */
.expertise__card {
  position: sticky;
  top: calc(104px + var(--i) * 16px);
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(20, 20, 20, 0.06);
  box-shadow: 0 12px 28px -22px rgba(20, 20, 20, 0.22);
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

/* Spacer between cards = extra scroll distance so each card dwells before the
   next covers it (the gap never shows — the next card is already sticky). */
.expertise__card:not(:last-child) {
  margin-bottom: 44px;
}

/* Left column: index over title */
.expertise__card-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* 1 — index */
.expertise__num {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-2);
  letter-spacing: 0.04em;
}

/* 2 — title */
.expertise__card-title {
  margin-top: 20px;
  font-family: var(--font-body);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--color-black);
}

/* 3 — body */
.expertise__card-desc {
  margin-top: 28px;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.55;
  font-weight: 400;
  color: var(--color-text-2);
  max-width: 54ch;
}

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

/* Desktop — balanced two-column card: title (left) · body (right) */
@media (min-width: 1025px) {
  .expertise {
    padding: 160px var(--side-padding) 32px;
  }

  .expertise__card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
    min-height: 42vh;
    padding: 64px 72px;
  }

  .expertise__card:not(:last-child) {
    margin-bottom: 56px;
  }

  .expertise__card-title {
    margin-top: 24px;
    font-size: clamp(32px, 2.6vw, 46px);
  }

  /* Body sits beside the title, so no top offset here. */
  .expertise__card-desc {
    margin-top: 0;
  }
}

/* Match the Featured Works heading scale at every breakpoint */
@media (max-width: 1280px) {
  .expertise__title { font-size: 72px; }
}

@media (max-width: 1024px) {
  .expertise__title { font-size: 64px; }
}

@media (max-width: 768px) {
  .expertise__card { padding: 36px 24px; }
}

@media (max-width: 640px) {
  .expertise__title { font-size: 48px; }
}

/* ===================================================
   ABOUT — "Let's get to know each other"
   =================================================== */
.about {
  padding: 120px 16px 100px;
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
  z-index: 2;
  background-color: var(--color-bg);
}

.about__inner {
  padding: 0;
}

/* Top row: heading left, tabs + description right */
.about__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  margin-bottom: 56px;
}

.about__title {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.01em;
  color: var(--color-black);
  text-align: left;
  flex: 1 1 auto;
}

.about__content {
  width: min(500px, 44%);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 6px;
}

/* Interests / tabs */
.about__interests-mask {
  display: inline-block;
  overflow: hidden;
}

.about__interests {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.interest {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-white);
  font-weight: 500;
  font-size: 14px;
  color: var(--color-black);
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.interest--active {
  background: var(--color-accent);
  color: var(--color-black);
}

.interest__icon {
  flex-shrink: 0;
}

/* Description */
.about__desc-mask {
  position: relative;
  display: grid;
}

.about__description {
  grid-column: 1;
  grid-row: 1;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-text-2);
  text-align: left;
  opacity: 0;
  /* Inactive descriptions still overlap the active one in the shared grid cell;
     without this they'd sit on top and swallow clicks meant for its link. */
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.about__description--active {
  opacity: 1;
  pointer-events: auto;
}

/* Inline CTA at the end of the AI Lab description.
   Hover mirrors the site's language: a lime accent underline sweeps in (the
   same motif as the hero underline), the arrow nudges up-right, and the gap
   opens — all on the standard 0.3s ease used across the UI. */
.about__desc-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  font-weight: 600;
  color: var(--color-black);
  text-decoration: none;
  transition: gap 0.3s ease;
}

.about__desc-link__label {
  background-image: linear-gradient(var(--color-accent), var(--color-accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 0.14em;
  padding-bottom: 2px;
  transition: background-size 0.3s ease;
}

.about__desc-link svg {
  transition: transform 0.3s ease;
}

.about__desc-link:hover {
  gap: 11px;
}

.about__desc-link:hover .about__desc-link__label {
  background-size: 100% 0.14em;
}

.about__desc-link:hover svg {
  transform: translate(2px, -2px);
}

/* Image row — three columns, sets stacked/overlaid for tab switching */
.about__gallery-mask {
  position: relative;
}

.about__gallery {
  display: grid;
}

.about__gallery-set {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  opacity: 0;
  visibility: hidden;
  will-change: opacity;
  perspective: 1000px;
}

.about__gallery-set--active {
  opacity: 1;
  visibility: visible;
}

.about__photo {
  will-change: opacity, transform;
}

.about__image-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.about__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  will-change: transform;
}

/* Main content wrapper */
#main-content {
  position: relative;
  background: var(--color-bg);
}

/* ===================================================
   FOOTER / CONTACT
   =================================================== */
.footer {
  padding: 0 var(--side-padding) 24px;
  max-width: var(--container-max);
  margin: 0 auto;
  overflow: hidden;
}

.footer__inner {
  background:
    radial-gradient(circle at 82% 95%, #D8F772 0%, transparent 46%),
    radial-gradient(circle at 60% 28%, #D8F772 0%, transparent 55%),
    radial-gradient(circle at 6% 12%, #E2E2E2 0%, transparent 65%),
    #C7C8C5;
  border-radius: var(--radius-md);
  padding: 60px 16px 40px;
  text-decoration: none;
  color: inherit;
  min-height: 332px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

/* Gradient hover layer */
.footer__gradient {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 82% 95%, #D8F772 0%, transparent 46%),
    radial-gradient(circle at 60% 28%, #D8F772 0%, transparent 55%),
    radial-gradient(circle at 6% 12%, #E2E2E2 0%, transparent 65%),
    #C7C8C5;
}

/* Footer cursor badge */
.footer__cursor-badge {
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #141414;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 20;
}

.footer__cursor-text {
  font-family: var(--font-display);
  font-size: 18px;
  color: #E2E2E2;
}

.footer__blob--peach {
  width: 550px;
  height: 550px;
  background: rgba(255, 200, 180, 0.3);
  right: -50px;
  top: -100px;
}

.footer__title {
  font-family: var(--font-display);
  font-size: 100px;
  font-weight: 400;
  line-height: 1.44;
  color: var(--color-black);
}

.footer__socials {
  position: absolute;
  bottom: 40px;
  right: 16px;
  display: flex;
  gap: 24px;
  z-index: 30;
}

.footer__social-link {
  display: block;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  transition: background-color 0.3s, transform 0.3s;
  position: relative;
}

.footer__social-link:hover {
  background-color: var(--color-accent);
  transform: scale(1.05);
}

.footer__social-link:hover circle {
  fill: var(--color-accent);
  transition: fill 0.3s;
}

.footer__social-link:hover path {
  fill: var(--color-black);
  transition: fill 0.3s;
}

.footer__social-link circle,
.footer__social-link path {
  transition: fill 0.3s;
}

.footer__social-link svg,
.footer__social-link img {
  width: 100%;
  height: 100%;
  display: block;
}

.footer__social-link:hover img {
  filter: brightness(0) invert(1);
  transition: filter 0.3s;
}

.footer__social-link img {
  transition: filter 0.3s;
}

@media (max-width: 1024px) {
  .footer {
    position: relative;
    height: auto;
  }

  .footer__inner {
    padding: 40px 24px 32px;
    min-height: 360px;
  }

  .footer__gradient {
    opacity: 1;
  }

  .footer__title {
    font-size: 48px;
    color: var(--color-black);
  }

  .footer__socials {
    position: static;
    margin-top: 32px;
    display: flex;
    gap: 16px;
  }

  .footer__social-link {
    width: 64px;
    height: 64px;
  }
}

/* ===================================================
   RESPONSIVE — Small desktop / iPad landscape
   =================================================== */
@media (max-width: 1280px) {
  .works__title {
    font-size: 72px;
  }

  .works__image-content {
    padding: 24px;
  }

  .works__project-title {
    font-size: 36px;
    margin-bottom: 16px;
  }

  .works__tags {
    flex-wrap: wrap;
    gap: 8px;
  }

  .tag--glass {
    font-size: 13px;
    padding: 6px 12px;
  }

  .tag--nda {
    font-size: 13px;
    padding: 6px 12px;
  }
}

/* ===================================================
   RESPONSIVE — Tablet (max-width: 1024px)
   =================================================== */
@media (max-width: 1024px) {
  :root {
    --side-padding: 16px;
  }

  .hero__title {
    font-size: 64px;
  }

  .works__inner {
    grid-template-columns: 1fr;
    min-height: auto;
    overflow: hidden;
  }

  .works__sidebar {
    overflow: hidden;
  }

  .works__title {
    font-size: 64px;
  }

  .works__project-title {
    font-size: 40px;
  }

  .about {
    padding: 60px 16px;
  }

  .about__stage {
    min-height: 600px;
  }

  .about__card {
    width: min(440px, 62%);
    padding: 32px 24px;
    gap: 16px;
  }

  .about__title {
    font-size: 40px;
  }

  .about__photo {
    width: 170px;
    padding: 10px;
    gap: 10px;
  }

  .about__photo-caption {
    font-size: 14px;
  }

  .about__photo--top-right {
    top: 0;
    right: 2%;
  }

  .about__photo--left {
    top: 32%;
    left: 2%;
  }

  .about__photo--bottom-right {
    bottom: 0;
    right: 6%;
  }

  .works__list {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .works__list::-webkit-scrollbar {
    display: none;
  }

  .works__item {
    white-space: nowrap;
    flex-shrink: 0;
  }

}

/* ===================================================
   RESPONSIVE — Works Mobile (max-width: 768px)
   =================================================== */
@media (max-width: 768px) {
  .works__list {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .works__item {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .works__slides {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .works__slide {
    position: relative;
    inset: auto;
    opacity: 1;
    visibility: visible;
  }

  .works__slide .works__image-wrapper {
    height: 350px;
  }
}

/* ===================================================
   RESPONSIVE — Mobile (max-width: 640px)
   =================================================== */
@media (max-width: 640px) {
  :root {
    --side-padding: 16px;
  }

  /* Nav */
  .nav {
    padding: 16px var(--side-padding);
  }

  .nav__link,
  .nav__dot {
    display: none;
  }

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

  /* Hero */
  .hero {
    padding: 100px var(--side-padding) 60px;
    min-height: 95vh;
  }

  .hero__title {
    font-size: 40px;
    line-height: 1.08;
  }

  .hero__eyebrow {
    font-size: 13px;
    letter-spacing: 0.28em;
    margin-bottom: 16px;
  }

  .hero__actions {
    flex-direction: column;
    margin-top: 32px;
    width: 100%;
  }

  .hero-pill {
    width: 100%;
    justify-content: center;
  }

  /* Works */
  .works {
    padding: 8px;
    overflow: hidden;
  }

  .works__inner {
    padding: 8px;
    gap: 8px;
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .works__sidebar,
  .works__showcase {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    border-radius: var(--radius-sm);
  }

  .works__slide .works__image-wrapper {
    border-radius: var(--radius-sm);
    overflow: hidden;
  }

  .works__title {
    font-size: 48px;
    margin-bottom: 8px;
  }

  .works__list-mask {
    overflow: visible;
  }

  .works__list {
    flex-direction: row;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .works__list::-webkit-scrollbar {
    display: none;
  }

  .works__item {
    font-size: 14px;
    padding: 8px 10px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .works__showcase {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
  }

  .works__slides {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: auto;
    position: relative;
    width: 100%;
  }

  .works__slide {
    position: relative;
    inset: auto;
    opacity: 1;
    visibility: visible;
    width: 100%;
  }

  .works__slide .works__image-wrapper {
    height: auto;
    aspect-ratio: 4 / 5;
    width: 100%;
  }

  .works__slide .works__image {
    object-fit: cover;
  }

  .works__slide[data-index="0"] .works__image {
    object-fit: cover;
    object-position: top left;
  }

  .works__image-content {
    padding: 16px;
  }

  .works__project-title {
    font-size: 24px;
    margin-bottom: 12px;
  }

  .works__tags {
    flex-wrap: wrap;
    gap: 6px;
  }

  .tag--glass {
    font-size: 12px;
    padding: 5px 10px;
  }

  .tag--nda {
    font-size: 12px;
    padding: 5px 12px;
  }

  /* About */
  .about {
    padding: 40px var(--side-padding);
  }

  .about__stage {
    min-height: 480px;
  }

  .about__card {
    width: min(240px, 72%);
    padding: 22px 16px;
    gap: 12px;
  }

  .about__title {
    font-size: 22px;
  }

  .about__description {
    font-size: 13px;
    line-height: 1.5;
  }

  .interest {
    padding: 5px 8px;
    font-size: 12px;
  }

  .about__photo {
    width: 100px;
    padding: 7px;
    gap: 7px;
  }

  .about__photo-caption {
    font-size: 12px;
  }

  .about__photo--top-right {
    top: 0;
    right: 0;
  }

  .about__photo--left {
    top: calc(3% + 50px);
    left: 0;
  }

  .about__photo--bottom-right {
    bottom: -34px;
    right: 0;
  }

}

/* ===================================================
   ABOUT — responsive overrides (new "get to know" layout)
   Placed last so they win over legacy about rules above
   =================================================== */
@media (max-width: 1024px) {
  .about {
    padding: 80px 16px 72px;
  }

  .about__top {
    flex-direction: column;
    gap: 24px;
    margin-bottom: 28px;
  }

  .about__content {
    width: 100%;
    padding-top: 0;
  }

  .about__title {
    font-size: 48px;
  }

  /* Reset legacy "polaroid" figure sizing so images fill the grid columns */
  .about__photo {
    width: auto;
    padding: 0;
    gap: 0;
    background: none;
    box-shadow: none;
  }

  .about__gallery-set {
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .about {
    padding: 56px var(--side-padding);
  }

  .about__inner {
    padding: 0;
  }

  .about__title {
    font-size: 34px;
  }

  .about__description {
    font-size: 14px;
  }

  .about__gallery-set {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .about__image-wrapper {
    aspect-ratio: 16 / 9;
  }
}

/* ===================================================
   PRIMARY SECTION TITLES — one shared typography system
   Featured Works is the reference; About Me + My Expertise match it exactly
   (same font, size, weight, line-height across every breakpoint). Appended
   last so it consolidates the scattered per-section overrides above.
   =================================================== */
.works__title,
.about__title,
.expertise__title {
  font-family: var(--font-display);
  font-size: 96px;
  line-height: 0.97;
  font-weight: 400;
  letter-spacing: normal;
  color: var(--color-black);
}

@media (max-width: 1280px) {
  .works__title,
  .about__title,
  .expertise__title { font-size: 72px; }
}

@media (max-width: 1024px) {
  .works__title,
  .about__title,
  .expertise__title { font-size: 64px; }
}

@media (max-width: 640px) {
  .works__title,
  .about__title,
  .expertise__title { font-size: 48px; }
}

