/* =====================================================
   MAIN STYLES — Portfolio 2026
   Font: Plus Jakarta Sans (primary), Inter (secondary)
   Design source: Figma node 36:155
   ===================================================== */


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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.5;
}

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

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

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

ul { list-style: none; }

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: var(--z-modal);
  background: var(--color-accent);
  color: var(--color-text-dark);
  font-weight: var(--fw-semibold);
  padding: var(--sp-12) var(--sp-24);
  border-radius: var(--radius-md);
}

.skip-link:focus {
  position: fixed;
  left: var(--sp-24);
  top: var(--sp-24);
  width: auto;
  height: auto;
  overflow: visible;
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}


/* ── Container ─────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}


/* ====================================================
   HEADER / NAVIGATION
   ==================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  height: var(--nav-height);
  transition:
    background-color var(--dur-normal) var(--ease),
    backdrop-filter var(--dur-normal) var(--ease),
    transform var(--dur-normal) var(--ease);
}

.header.is-scrolled {
  background-color: rgba(21, 21, 22, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header.is-hidden {
  transform: translateY(-100%);
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding-inline: var(--sp-80);
  max-width: var(--container-max);
  margin-inline: auto;
  position: relative;
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  transition:
    opacity   var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
  flex-shrink: 0;
}

.nav__logo:hover {
  opacity: 0.75;
  transform: scale(0.93);
}

.nav__logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* Center tabs */
.nav__center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.nav__tabs {
  display: flex;
  align-items: center;
  gap: var(--sp-40);
}

.nav__link {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: var(--fw-regular);
  line-height: 24px;
  color: var(--color-text-muted);
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease);
  position: relative;
}

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

.nav__link--active {
  color: var(--color-white);
}

/* Active underline indicator */
.nav__indicator {
  display: block;
  width: 24px;
  height: 10px;
  background: transparent;
  border: 1px solid var(--color-accent);
  border-radius: 30px;
  transition: transform var(--dur-normal) var(--ease);
}

/* Home icon link */
.nav__link--home {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.nav__link--home img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  opacity: 0.6;
  transition: opacity var(--dur-fast) var(--ease);
}

.nav__link--home:hover img,
.nav__link--home.nav__link--active img {
  opacity: 1;
}

/* Header actions group (Download + CTA) */
.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-24);
  flex-shrink: 0;
}

/* Download Resume link */
.nav__download {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: var(--fw-regular);
  line-height: 24px;
  color: var(--color-white);
  white-space: nowrap;
  transition:
    opacity   var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}

.nav__download:hover {
  opacity: 0.65;
  transform: translateY(-1px);
}

.nav__download svg {
  flex-shrink: 0;
}

/* Get in touch button */
.nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  background: var(--color-white);
  color: #0f0f11;
  border-radius: 8px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: var(--fw-bold);
  line-height: 24px;
  white-space: nowrap;
  flex-shrink: 0;
  transition:
    background var(--dur-fast) var(--ease),
    transform  var(--dur-fast) var(--ease),
    opacity    var(--dur-fast) var(--ease);
}

.nav__cta:hover {
  background: rgba(255,255,255,0.88);
  transform: translateY(-1px);
}

/* Hamburger button */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: opacity var(--dur-fast) var(--ease);
}

.nav__hamburger:hover { opacity: 0.7; }

.nav__hamburger-line {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-white);
  border-radius: 2px;
  transition:
    transform var(--dur-normal) var(--ease),
    opacity var(--dur-normal) var(--ease);
  transform-origin: center;
}

.nav__hamburger[aria-expanded="true"] .nav__hamburger-line:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.nav__hamburger[aria-expanded="true"] .nav__hamburger-line:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  top: var(--nav-height);
  background: rgba(21,21,22,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: calc(var(--z-sticky) - 1);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: menu-in var(--dur-normal) var(--ease) both;
}

.mobile-menu[hidden] { display: none; }

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-32);
  text-align: center;
}

.mobile-menu__link {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: var(--fw-light);
  color: var(--color-text-muted);
  letter-spacing: var(--ls-wide);
  transition:
    color     0.3s var(--ease),
    transform 0.3s var(--ease);
  display: inline-block;
}

.mobile-menu__link:hover {
  color: var(--color-white);
  transform: translateX(6px);
}

.mobile-menu__link--cta {
  color: var(--color-accent);
  font-weight: var(--fw-medium);
}


/* ====================================================
   HERO SECTION
   ==================================================== */

.hero {
  padding-top: var(--nav-height);
  padding-bottom: var(--sp-64);
}

.hero__container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Two-column top */
.hero__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-80);
  align-items: start;
  padding-top: var(--sp-80);
  padding-bottom: var(--sp-64);
}

/* Name */
.hero__name {
  font-family: var(--font-primary);
  font-size: var(--fs-hero);
  font-weight: var(--fw-extralight);
  line-height: var(--lh-hero);
  letter-spacing: -0.01em;
  color: var(--color-text);
  text-transform: uppercase;
}

/* Bio */
.hero__bio {
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  color: var(--color-text-muted);
  padding-top: 16px; /* optical alignment with name x-height */
}

/* Stats row */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-80);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--sp-40);
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

.hero__stat-label {
  font-family: var(--font-primary);
  font-size: var(--fs-stat-label);
  font-weight: var(--fw-regular);
  line-height: 1.67;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}

.hero__stat-value {
  font-family: var(--font-primary);
  font-size: var(--fs-stat-value);
  font-weight: var(--fw-bold);
  line-height: 1.25;
  color: var(--color-white);
}


/* ====================================================
   FEATURED CATEGORY CARDS
   ==================================================== */

.categories {
  padding-bottom: var(--sp-64);
}

.categories__container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
}

/* Grid rows */
.categories__row {
  display: grid;
  gap: var(--card-gap);
}

.categories__row--1 {
  grid-template-columns: 1fr 400px;
  align-items: start;
}

.categories__row--2 {
  grid-template-columns: 1fr 280px 280px;
  align-items: start;
}

/* Base card */
.category-card {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform     0.45s cubic-bezier(.22,.61,.36,1),
    border-radius 0.45s cubic-bezier(.22,.61,.36,1),
    box-shadow    0.45s cubic-bezier(.22,.61,.36,1);
}

.category-card:hover {
  border-radius: 20px;
  box-shadow: var(--shadow-hover);
}

.category-card__link {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  z-index: 2;
  text-decoration: none;
}

.category-card__link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: var(--radius-card);
}

/* Full-bleed background image */
.category-card__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 0;
  transition: border-radius 0.45s cubic-bezier(.22,.61,.36,1);
}

.category-card:hover .category-card__bg {
  border-radius: 20px;
}

.category-card__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.category-card:hover .category-card__bg-img {
  transform: scale(1.07);
}

/* Content — flex child of the absolutely-positioned link */
.category-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: var(--sp-32);
}

.category-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-16);
}

.category-card__title {
  font-family: var(--font-primary);
  font-size: var(--fs-card-lg);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  color: var(--color-text-dark);
  flex: 1;
}

.category-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-8);
  margin-top: var(--sp-16);
}

.category-card__arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  transition: transform 0.45s cubic-bezier(.22,.61,.36,1);
}

.category-card:hover .category-card__arrow {
  transform: translateX(4px) translateY(-4px);
}

.category-card__arrow--light svg circle {
  stroke: rgba(255,255,255,0.4);
}


/* ── Design System card ──────────────────────────── */
.category-card--design-system {
  min-height: var(--card-row1-h);
}

.category-card--design-system .category-card__title {
  color: var(--color-text-dark);
}


/* ── E-commerce card ──────────────────────────────── */
.category-card--ecommerce {
  min-height: var(--card-row1-h);
}

.category-card--ecommerce .category-card__title {
  color: var(--color-text-dark);
  font-size: clamp(20px, 2.2vw, 32px);
}

/* E-commerce arrow — anchored bottom-right */
.category-card__arrow--br {
  position: absolute;
  bottom: 28px;
  right: 28px;
  z-index: 3;
  width: 40px;
  height: 40px;
  transition: transform 0.45s cubic-bezier(.22,.61,.36,1);
}

.category-card--ecommerce:hover .category-card__arrow--br {
  transform: translateX(3px) translateY(-3px);
}


/* ── Dashboards card ──────────────────────────────── */
.category-card--dashboards {
  min-height: var(--card-row2-h);
}

.category-card--dashboards .category-card__title {
  color: var(--color-text-dark);
  font-size: var(--fs-card-lg);
}


/* ── Motion Graphics card ─────────────────────────── */
.category-card--motion {
  min-height: var(--card-row2-h);
}

.category-card--motion .category-card__title {
  color: var(--color-white);
  font-size: var(--fs-card-sm);
}


/* ── Visual Design card ───────────────────────────── */
.category-card--visual {
  min-height: var(--card-row2-h);
}

.category-card--visual .category-card__title {
  color: var(--color-white);
  font-size: var(--fs-card-sm);
}

.category-card--visual .category-card__arrow--light {
  width: 32px;
  height: 32px;
}


/* ── Tags (inside category cards) ────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: var(--radius-tag);
  font-family: var(--font-primary);
  font-size: var(--fs-tag);
  font-weight: var(--fw-semibold);
  line-height: 20px;
  white-space: nowrap;
}

.tag--dark {
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--color-text-dark);
  color: var(--color-text-dark);
}

.tag--light {
  border: 1px solid rgba(255,255,255,0.7);
  color: var(--color-white);
  background: rgba(0,0,0,0.1);
}


/* ====================================================
   SHOWREEL
   ==================================================== */

.showreel {
  padding-block: var(--sp-80);
}

.showreel__container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-40);
}

/* Heading block */
.showreel__heading {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
  text-align: center;
  max-width: 716px;
}

.showreel__title {
  font-family: var(--font-primary);
  font-size: var(--fs-showreel);
  font-weight: var(--fw-extralight);
  line-height: 1.125;
  color: var(--color-text);
  text-transform: uppercase;
}

.showreel__subtitle {
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: 1.67;
  color: var(--color-text-muted);
}

/* Thumbnail wrapper */
.showreel__media {
  width: 100%;
  max-width: 800px;
}

.showreel__thumbnail {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  background: #0a0a0b;
  transition:
    box-shadow 0.45s cubic-bezier(.22,.61,.36,1),
    transform  0.45s cubic-bezier(.22,.61,.36,1);
}

.showreel__thumbnail:hover {
  box-shadow: 0 20px 72px rgba(0, 0, 0, 0.55);
  transform: scale(1.012);
}

.showreel__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}

.showreel__thumbnail:hover .showreel__image {
  transform: scale(1.04);
}

/* Overlay with blend text */
.showreel__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.15);
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(.22,.61,.36,1);
}

.showreel__reel-text {
  font-family: var(--font-primary);
  font-size: clamp(60px, 14vw, 186px);
  font-weight: var(--fw-extrabold);
  color: rgba(255,255,255,0.38);
  mix-blend-mode: color-dodge;
  white-space: nowrap;
  letter-spacing: -0.02em;
  user-select: none;
  pointer-events: none;
}

/* Play button */
.showreel__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.showreel__play-ring {
  position: absolute;
  width: 111px;
  height: 111px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  animation: pulse-ring 2.4s var(--ease) infinite;
}

.showreel__play-ring::before {
  content: '';
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  animation: pulse-ring 2.4s var(--ease) infinite 0.6s;
}

@keyframes pulse-ring {
  0%   { transform: scale(0.9); opacity: 0; }
  50%  { opacity: 1; }
  100% { transform: scale(1.2); opacity: 0; }
}

.showreel__play-btn {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.3);
  cursor: pointer;
  transition:
    background 0.35s cubic-bezier(.22,.61,.36,1),
    transform  0.35s cubic-bezier(.34,1.56,.64,1);
  z-index: 1;
  pointer-events: auto;
}

.showreel__thumbnail:hover .showreel__play-btn,
.showreel__thumbnail:focus-visible .showreel__play-btn {
  background: rgba(255,255,255,0.25);
  transform: scale(1.1);
}

/* Inline video — fades in on play */
.showreel__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--dur-normal) var(--ease);
  pointer-events: none;
}

/* Poster fades when video is active */
.showreel__poster {
  transition: opacity var(--dur-normal) var(--ease);
}

/* Play/Pause icon toggle */
.showreel__play-icon  { display: block; }
.showreel__pause-icon { display: none; }

/* Playing state */
.showreel__thumbnail.is-playing .showreel__video    { opacity: 1; pointer-events: auto; }
.showreel__thumbnail.is-playing .showreel__poster   { opacity: 0; }
.showreel__thumbnail.is-playing .showreel__overlay  { opacity: 0; pointer-events: none; }
.showreel__thumbnail.is-playing .showreel__play     {
  opacity: 0;
  transition: opacity var(--dur-normal) var(--ease);
  pointer-events: none;
}
.showreel__thumbnail.is-playing .showreel__play-icon  { display: none; }
.showreel__thumbnail.is-playing .showreel__pause-icon { display: block; }

/* Show pause hint on hover while playing */
.showreel__thumbnail.is-playing:hover .showreel__play {
  opacity: 0.8;
  pointer-events: auto;
}

/* ── Fullscreen expand/collapse button ─────────────── */
.showreel__fullscreen-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease);
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.showreel__thumbnail.is-playing .showreel__fullscreen-btn {
  opacity: 0.65;
  pointer-events: auto;
}

.showreel__thumbnail.is-playing:hover .showreel__fullscreen-btn {
  opacity: 1;
}

.showreel__fullscreen-btn:hover {
  background: rgba(0, 0, 0, 0.65);
  transform: scale(1.1);
}

.showreel__fullscreen-btn:focus-visible {
  outline: 2px solid rgba(255,255,255,0.6);
  outline-offset: 3px;
}

.showreel__fs-expand   { display: block; }
.showreel__fs-collapse { display: none; }

.showreel__thumbnail.is-fullscreen .showreel__fs-expand   { display: none; }
.showreel__thumbnail.is-fullscreen .showreel__fs-collapse { display: block; }


/* ====================================================
   CORE EXPERTISE
   ==================================================== */

.expertise {
  padding-block: var(--sp-80);
}

.expertise__container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-24);
}

.expertise__label {
  font-family: var(--font-primary);
  font-size: var(--fs-expertise);
  font-weight: var(--fw-light);
  line-height: 1.2;
  color: var(--color-text);
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  width: 384px;
  padding-top: 6px;
}

.expertise__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-12);
  align-content: flex-start;
}

/* Chip */
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 24px 9px;
  border-radius: var(--radius-chip);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  font-family: var(--font-primary);
  font-size: var(--fs-chip);
  font-weight: var(--fw-regular);
  line-height: 1;
  color: var(--color-white);
  white-space: nowrap;
  cursor: default;
  transition:
    background  0.3s var(--ease),
    border-color 0.3s var(--ease),
    color       0.3s var(--ease),
    transform   0.3s var(--ease);
}

.chip:hover,
.chip:focus-visible {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-2px);
}


/* ====================================================
   SELECTED WORKS
   ==================================================== */

.works {
  background: var(--color-bg-black);
  padding-bottom: var(--sp-120);
}

.works__container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  display: flex;
  flex-direction: column;
  gap: var(--sp-40);
}

.works__header {
  padding-top: var(--sp-120);
}

.works__title {
  font-family: var(--font-primary);
  font-size: var(--fs-works-title);
  font-weight: var(--fw-medium);
  line-height: 1.286;
  color: var(--color-white);
  margin-bottom: var(--sp-16);
}

.works__nda {
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: 1.67;
  color: var(--color-text-muted);
  max-width: 1060px;
}

.works__bottom-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--card-gap);
}


/* ── Project Card Base ────────────────────────────── */
.project-card {
  border: 1px solid var(--color-border);
  border-radius: 0;
  overflow: hidden;
  background: var(--color-bg-black);
  transition:
    border-radius 0.45s cubic-bezier(.22,.61,.36,1),
    transform     0.45s cubic-bezier(.22,.61,.36,1),
    box-shadow    0.45s cubic-bezier(.22,.61,.36,1);
}

.project-card:hover {
  border-radius: 20px;
  transform: translateY(-4px);
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
}

.project-card__link {
  display: block;
  height: 100%;
  cursor: pointer;
}

.project-card__link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 20px;
}


/* ── Horizontal project cards ─────────────────────── */
.project-card--horizontal .project-card__link {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: var(--project-h-horiz);
}

.project-card--horizontal .project-card__media {
  position: relative;
  overflow: hidden;
  background: var(--color-bg-black);
}

.project-card--horizontal .project-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: translateY(var(--img-parallax, 0px)) scale(1);
  transition: transform 0.45s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}

.project-card--horizontal:hover .project-card__image {
  transform: translateY(var(--img-parallax, 0px)) scale(1.05);
}

.project-card__media--purple {
  background: var(--color-project-purple);
}

.project-card--horizontal .project-card__info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--sp-48) var(--sp-48) var(--sp-48) var(--sp-48);
  border-left: 1px solid var(--color-border);
}

.project-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-16);
}

.project-card__title-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
}

.project-card__title {
  font-family: var(--font-secondary);
  font-size: var(--fs-project-title);
  font-weight: var(--fw-medium);
  line-height: 1.25;
  color: var(--color-white);
}

.project-card__subtitle {
  font-family: var(--font-secondary);
  font-size: var(--fs-label);
  font-weight: var(--fw-regular);
  line-height: 1.5;
  color: var(--color-text-project);
}

.project-card__lock {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.55;
  transition:
    opacity   0.3s var(--ease),
    transform 0.3s var(--ease);
}

.project-card:hover .project-card__lock {
  opacity: 1;
  transform: scale(1.1);
}

/* Meta row */
.project-card__meta {
  display: flex;
  gap: var(--sp-40);
}

.project-card--horizontal .project-card__meta {
  justify-content: space-between;
  gap: 0;
}

.project-card__meta-item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

.project-card__meta-label {
  font-family: var(--font-secondary);
  font-size: var(--fs-label);
  font-weight: var(--fw-regular);
  line-height: 1.5;
  color: var(--color-text-project);
}

.project-card__meta-value {
  font-family: var(--font-secondary);
  font-size: var(--fs-project-meta);
  font-weight: var(--fw-medium);
  line-height: 1;
  color: var(--color-white);
}


/* ── Vertical project cards ───────────────────────── */
.project-card--vertical .project-card__link {
  display: flex;
  flex-direction: column;
  min-height: var(--project-h-vert);
}

.project-card--vertical .project-card__media {
  position: relative;
  height: var(--project-media-vert);
  overflow: hidden;
  flex-shrink: 0;
}

.project-card--vertical .project-card__image {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: bottom center;
  transition: transform 0.45s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}

.project-card--vertical .project-card__image--phone {
  height: 115%;
  bottom: -5%;
}

.project-card--vertical:hover .project-card__image {
  transform: translateX(-50%) scale(1.05) translateY(-8px);
}

.project-card__media--green {
  background: var(--color-project-green);
}

.project-card__media--red {
  background: var(--color-project-red);
}

.project-card--vertical .project-card__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--sp-32) var(--sp-40) var(--sp-40);
  border-top: 1px solid var(--color-border);
}

.project-card--vertical .project-card__meta {
  gap: 0;
  justify-content: space-between;
}


/* ====================================================
   CONTACT CTA SECTION
   ==================================================== */

.contact {
  background: var(--color-bg-black);
  padding-bottom: var(--sp-80);
}

.contact__container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.contact__card {
  display: flex;
  align-items: center;
  gap: var(--sp-48);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 32px;
  padding: var(--sp-48) var(--sp-64);
  min-height: 216px;
}

.contact__gmail {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact__gmail img {
  width: 109px;
  height: 86px;
  object-fit: contain;
}

.contact__content {
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
}

.contact__label {
  font-family: var(--font-primary);
  font-size: var(--fs-stat-label);
  font-weight: var(--fw-regular);
  line-height: 1.67;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}

.contact__email {
  font-family: var(--font-primary);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  color: #000;
  text-decoration: none;
  position: relative;
  display: inline-block;
}

.contact__email::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(.22,.61,.36,1);
}

.contact__email:hover::after,
.contact__email:focus-visible::after {
  transform: scaleX(1);
}


/* ====================================================
   FOOTER
   ==================================================== */

.footer {
  background: var(--color-bg-black);
  padding-block: var(--sp-32) var(--sp-48);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer__container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  display: flex;
  flex-direction: column;
  gap: var(--sp-24);
}

.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-40);
}

.footer__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  transition:
    opacity   var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}

.footer__logo:hover {
  opacity: 0.75;
  transform: scale(0.93);
}

.footer__logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.footer__social {
  display: flex;
  align-items: center;
  gap: var(--sp-16);
}

.footer__social-link {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: var(--fw-semibold);
  line-height: 24px;
  color: var(--color-white);
  transition:
    opacity   0.3s var(--ease),
    transform 0.3s var(--ease);
}

.footer__social-link--active {
  font-weight: var(--fw-semibold);
}

.footer__social-link--muted {
  font-weight: var(--fw-regular);
  opacity: 0.5;
}

.footer__social-link:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.footer__sep {
  display: block;
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.25);
  flex-shrink: 0;
}

.footer__back-top {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: var(--fw-bold);
  line-height: 28px;
  color: var(--color-white);
  transition:
    opacity   0.3s var(--ease),
    transform 0.3s var(--ease);
  flex-shrink: 0;
}

.footer__back-top:hover {
  opacity: 0.75;
  transform: translateY(-3px);
}

.footer__credit {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: var(--fw-light);
  line-height: 24px;
  color: rgba(100, 100, 100, 1);
  text-align: center;
}


/* ====================================================
   REVEAL ANIMATIONS (JS-driven via Intersection Observer)
   ==================================================== */

.js-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--dur-reveal) var(--ease),
    transform var(--dur-reveal) var(--ease);
}

.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.no-pad {
  padding: 0px !important;
}

.no-btm-pad {
  padding-bottom: 0px !important;
}

/* Stagger for children */
.js-reveal[data-delay="80"]  { transition-delay: 80ms; }
.js-reveal[data-delay="100"] { transition-delay: 100ms; }
.js-reveal[data-delay="160"] { transition-delay: 160ms; }
.js-reveal[data-delay="200"] { transition-delay: 200ms; }
.js-reveal[data-delay="240"] { transition-delay: 240ms; }
