/* ==========================================================================
   2TON Portfolio — style.css
   Phase 1: Foundation + Design System
   ========================================================================== */

/* --------------------------------------------------------------------------
   @font-face
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Stack Sans Headline';
  src: url('./fonts/StackSansHeadline-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Stack Sans Text';
  src: url('./fonts/StackSansText-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   Custom Properties — Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --color-black:    #000000;
  --color-white:    #ffffff;
  --color-pink:     #e149dc;
  --color-blue:     #3BB2EC;
  --color-purple:   #5921AF;
  --color-surface:  #0a0a0a;
  --color-surface-2:#111111;
  --color-surface-3:#1a1a1a;
  --color-muted:    #888888;
  --color-dim:      #6b6b6b;
  --color-border:   #222222;

  /* Typography */
  --font-display: 'Stack Sans Headline', sans-serif;
  --font-body:    'Stack Sans Text', sans-serif;

  /* Font sizes — fluid scale */
  --text-xs:    clamp(0.7rem, 0.65rem + 0.25vw, 0.8rem);
  --text-sm:    clamp(0.8rem, 0.75rem + 0.25vw, 0.875rem);
  --text-base:  clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
  --text-lg:    clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  --text-xl:    clamp(1.25rem, 1rem + 1.25vw, 1.75rem);
  --text-2xl:   clamp(1.5rem, 1rem + 2.5vw, 2.5rem);
  --text-3xl:   clamp(2rem, 1.25rem + 3.75vw, 3.5rem);
  --text-4xl:   clamp(2.5rem, 1.5rem + 5vw, 5rem);
  --text-5xl:   clamp(3rem, 1.5rem + 7.5vw, 7rem);

  /* Spacing scale (4px base) */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  96px;
  --space-10: 128px;
  --space-11: 192px;

  /* Section padding */
  --section-pad-y: clamp(64px, 8vw, 128px);
  --section-pad-x: clamp(20px, 5vw, 80px);

  /* Container */
  --container-max: 1400px;

  /* Z-index scale */
  --z-base:      1;
  --z-elevated:  10;
  --z-nav:       100;
  --z-overlay:   500;
  --z-modal:     900;
  --z-loader:    1000;

  /* Easing */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Transitions */
  --duration-fast:   150ms;
  --duration-normal: 300ms;
  --duration-slow:   600ms;
  --duration-slower:  900ms;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

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

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-white);
  background-color: var(--color-black);
  overflow-x: hidden;
}

/* Lock body scroll when loader / mobile menu is open */
body.is-locked {
  overflow: hidden;
}

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

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

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

ul, ol {
  list-style: none;
}

::selection {
  background: var(--color-pink);
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   Container & Grid
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--section-pad-x);
}

.grid {
  display: grid;
  gap: var(--space-6);
}

/* Column helpers */
@media (min-width: 768px) {
  .grid-2   { grid-template-columns: repeat(2, 1fr); }
  .grid-3   { grid-template-columns: repeat(3, 1fr); }
  .grid-4   { grid-template-columns: repeat(4, 1fr); }
  .grid-2-1 { grid-template-columns: 2fr 1fr; }
  .grid-1-2 { grid-template-columns: 1fr 2fr; }
}

@media (min-width: 1200px) {
  .grid-lg-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-lg-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-lg-5 { grid-template-columns: repeat(5, 1fr); }
  .grid-lg-6 { grid-template-columns: repeat(6, 1fr); }
}

/* --------------------------------------------------------------------------
   Section base
   -------------------------------------------------------------------------- */
.section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding-block: var(--section-pad-y);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

/* Section label (small numbered label in top-left) */
.section__label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-6);
}

/* --------------------------------------------------------------------------
   Typography utilities
   -------------------------------------------------------------------------- */
.heading-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.heading-lg {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-size: var(--text-3xl);
}

.heading-md {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  font-size: var(--text-2xl);
}

.body-lg {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--color-muted);
}

/* --------------------------------------------------------------------------
   Button base
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  transition: transform var(--duration-normal) var(--ease-out-expo),
              background-color var(--duration-normal) var(--ease-out-expo),
              color var(--duration-normal) var(--ease-out-expo),
              box-shadow var(--duration-normal) var(--ease-out-expo);
}

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

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 2px solid var(--color-pink);
  outline-offset: 3px;
}

.btn--primary {
  background-color: var(--color-pink);
  color: var(--color-white);
  box-shadow: 0 4px 24px rgba(225, 73, 220, 0.25);
}

.btn--primary:hover {
  background-color: #e95ee5;
  box-shadow: 0 8px 32px rgba(225, 73, 220, 0.35);
}

.btn--outline {
  border: 1.5px solid var(--color-white);
  color: var(--color-white);
}

.btn--outline:hover {
  background-color: var(--color-white);
  color: var(--color-black);
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: var(--space-5) var(--section-pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  transition: background-color var(--duration-slow) var(--ease-out-expo),
              padding var(--duration-slow) var(--ease-out-expo);
}

.nav--scrolled {
  background-color: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding-block: var(--space-4);
}

.nav__logo {
  display: flex;
  align-items: center;
  z-index: var(--z-nav);
}

.nav__logo img {
  height: 40px;
  width: auto;
}

/* Desktop links */
.nav__links {
  display: none;
  align-items: center;
  gap: var(--space-7);
  margin-left: auto;
}

@media (min-width: 768px) {
  .nav__links {
    display: flex;
  }
}

.nav__link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-white);
  position: relative;
  transition: color var(--duration-fast);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--color-pink);
  transition: width var(--duration-normal) var(--ease-out-expo);
}

.nav__link:hover::after,
.nav__link:focus-visible::after {
  width: 100%;
}

.nav__link:focus-visible {
  outline: 2px solid var(--color-pink);
  outline-offset: 4px;
  border-radius: 2px;
}

.nav__link--cta {
  padding: var(--space-2) var(--space-5);
  background-color: var(--color-pink);
  border: 1.5px solid var(--color-pink);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 24px rgba(225, 73, 220, 0.25);
  transition: background-color var(--duration-normal) var(--ease-out-expo),
              border-color var(--duration-normal) var(--ease-out-expo),
              box-shadow var(--duration-normal) var(--ease-out-expo),
              transform var(--duration-normal) var(--ease-out-expo);
}

.nav__link--cta::after {
  display: none;
}

.nav__link--cta:hover {
  background-color: #e95ee5;
  border-color: #e95ee5;
  box-shadow: 0 8px 32px rgba(225, 73, 220, 0.35);
  transform: translateY(-1px);
}

.nav__link--cta:active {
  transform: translateY(0);
}

/* Hamburger */
.nav__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  z-index: var(--z-nav);
  cursor: pointer;
}

@media (min-width: 768px) {
  .nav__hamburger {
    display: none;
  }
}

.nav__hamburger-line {
  display: block;
  width: 22px;
  height: 1.5px;
  background-color: var(--color-white);
  transition: transform var(--duration-normal) var(--ease-out-expo),
              opacity var(--duration-fast);
}

.nav__hamburger-line + .nav__hamburger-line {
  margin-top: 6px;
}

/* Hamburger open state */
.nav__hamburger.is-open .nav__hamburger-line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav__hamburger.is-open .nav__hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.is-open .nav__hamburger-line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile menu overlay */
.nav__mobile {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-nav) - 1);
  background-color: rgba(0, 0, 0, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-7);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-slow) var(--ease-out-expo),
              visibility var(--duration-slow);
}

.nav__mobile.is-open {
  opacity: 1;
  visibility: visible;
}

.nav__mobile-link {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-white);
  transform: translateY(20px);
  opacity: 0;
  transition: transform var(--duration-slow) var(--ease-out-expo),
              opacity var(--duration-slow) var(--ease-out-expo),
              color var(--duration-fast);
}

.nav__mobile.is-open .nav__mobile-link {
  transform: translateY(0);
  opacity: 1;
}

/* Stagger mobile link entries */
.nav__mobile.is-open .nav__mobile-link:nth-child(1) { transition-delay: 100ms; }
.nav__mobile.is-open .nav__mobile-link:nth-child(2) { transition-delay: 150ms; }
.nav__mobile.is-open .nav__mobile-link:nth-child(3) { transition-delay: 200ms; }
.nav__mobile.is-open .nav__mobile-link:nth-child(4) { transition-delay: 250ms; }

.nav__mobile-link:hover {
  color: var(--color-pink);
}

.nav__mobile-link:focus-visible {
  outline: 2px solid var(--color-pink);
  outline-offset: 8px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Pagination Dots (right side)
   -------------------------------------------------------------------------- */
.page-dots {
  position: fixed;
  right: var(--space-5);
  top: 50%;
  transform: translateY(-50%);
  z-index: var(--z-elevated);
  display: none;
  flex-direction: column;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .page-dots {
    display: flex;
  }
}

.page-dot {
  width: 2px;
  height: 20px;
  border-radius: 1px;
  border: none;
  background-color: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: background-color var(--duration-normal) var(--ease-out-expo),
              transform var(--duration-normal) var(--ease-spring);
}

.page-dot:hover {
  background-color: rgba(255, 255, 255, 0.6);
}

.page-dot:focus-visible {
  outline: 2px solid var(--color-pink);
  outline-offset: 4px;
}

.page-dot.is-active {
  background-color: var(--color-pink);
}

/* --------------------------------------------------------------------------
   IntersectionObserver animation classes
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--duration-slower) var(--ease-out-expo),
              transform var(--duration-slower) var(--ease-out-expo);
}

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

/* Stagger children */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 400ms; }

/* Slide from left */
.reveal--left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity var(--duration-slower) var(--ease-out-expo),
              transform var(--duration-slower) var(--ease-out-expo);
}

.reveal--left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale up */
.reveal--scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity var(--duration-slower) var(--ease-out-expo),
              transform var(--duration-slower) var(--ease-out-expo);
}

.reveal--scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: var(--color-black);
}

/* Background image */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

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

/* Gradient overlays */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero__overlay--left {
  background: linear-gradient(
    105deg,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.7) 35%,
    rgba(0, 0, 0, 0.2) 60%,
    transparent 80%
  );
}

.hero__overlay--bottom {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.4) 30%,
    transparent 60%
  );
}

/* Profile portrait */
.hero__portrait {
  position: absolute;
  bottom: 0;
  right: 5%;
  z-index: 3;
  height: 85%;
  pointer-events: none;
}

.hero__portrait img {
  height: 100%;
  width: auto;
  object-fit: contain;
  object-position: bottom right;
  filter: brightness(0.9);
}

/* Mobile / desktop portrait toggle */
.hero__portrait-mobile  { display: none; }
.hero__portrait-desktop { display: block; }

@media (max-width: 767px) {
  .hero__portrait-mobile  { display: block; }
  .hero__portrait-desktop { display: none; }

  .hero__portrait {
    right: -10%;
    height: 60%;
    opacity: 0.6;
    top:0 !important;
  }
}

@media (min-width: 1200px) {
  .hero__portrait {
    right: 8%;
    height: 90%;
  }
}

/* Hero content */
.hero__content {
  position: relative;
  z-index: 4;
  padding-bottom: var(--space-10);
  padding-top: var(--space-11);
}
@media (max-width: 767px) {
  .hero__content {
    position: absolute;
    bottom: 0;
  }
}

.hero__text {
  max-width: 680px;
}

.hero__label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-5);
}

.hero__heading {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-6);
  line-height: 0.95;
}

.hero__sub {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  max-width: 480px;
  margin-bottom: var(--space-7);
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--space-7);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__scroll-line {
  width: 2px;
  height: 48px;
  background: linear-gradient(to bottom, var(--color-pink), transparent);
  animation: scrollPulse 2s var(--ease-out-expo) infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%      { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
}

/* --------------------------------------------------------------------------
   Recent Work
   -------------------------------------------------------------------------- */
.work {
  background-color: var(--color-black);
  padding-block: var(--section-pad-y);
}

.work__header {
  margin-bottom: var(--space-9);
}

.work__header .heading-lg {
  margin-top: var(--space-3);
}

/* Card list — vertical stack */
.work__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
}

/* Individual card */
.work__card {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  color: var(--color-white);
  transition: opacity var(--duration-normal);
}

@media (min-width: 768px) {
  .work__card {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: center;
  }
}

/* Dim siblings on hover */
.work__list:hover .work__card {
  opacity: 0.4;
}

.work__list:hover .work__card:hover {
  opacity: 1;
}

/* Card image */
.work__card-img {
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 16 / 10;
  background-color: var(--color-surface-2);
}

.work__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

.work__card:hover .work__card-img img {
  transform: scale(1.04);
}

/* Card body */
.work__card-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.work__card-cat {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-pink);
}

.work__card-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.work__card-arrow {
  color: var(--color-muted);
  transition: transform var(--duration-normal) var(--ease-out-expo),
              color var(--duration-normal);
  display: inline-flex;
  align-items: center;
  margin-top: var(--space-2);
}

.work__card:hover .work__card-arrow {
  transform: translateX(8px);
  color: var(--color-pink);
}

.work__card:focus-visible {
  outline: 2px solid var(--color-pink);
  outline-offset: 8px;
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */
.about {
  position: relative;
  background-color: var(--color-surface);
  padding-block: var(--section-pad-y);
}

/* Subtle leaf texture background */
.about__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.35;
}

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

.about__bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 10, 0.95) 0%,
    rgba(10, 10, 10, 0.7) 50%,
    rgba(10, 10, 10, 0.9) 100%
  );
}

.about .container {
  position: relative;
  z-index: 3;
}

/* Grid: portrait left, content right */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-9);
  align-items: center;
}

@media (min-width: 768px) {
  .about__grid {
    grid-template-columns: 5fr 7fr;
    gap: var(--space-10);
  }
}

/* Portrait */
.about__portrait {
  position: relative;
}

.about__portrait-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background-color: var(--color-surface-2);
}

.about__portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05);
}

/* Pink accent bar beside portrait */
.about__portrait-accent {
  position: absolute;
  top: var(--space-7);
  left: -6px;
  width: 3px;
  height: 85%;
  background: linear-gradient(to bottom, var(--color-pink), var(--color-purple));
  border-radius: var(--radius-full);
}

@media (max-width: 767px) {
  .about__portrait-accent {
    display: none;
  }
}

/* Content */
.about__content .heading-lg {
  margin-top: var(--space-3);
  margin-bottom: var(--space-6);
}

.about__content .body-lg {
  margin-bottom: var(--space-5);
}

/* Stats row */
.about__stats {
  display: flex;
  gap: var(--space-8);
  margin-top: var(--space-8);
  padding-top: var(--space-7);
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
}

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

.about__stat-num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--color-white);
  display: inline;
}

.about__stat-suffix {
  color: var(--color-pink);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  vertical-align: super;
  margin-left: 2px;
  margin-top:10px;
}

.about__stat-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-top: var(--space-2);
}

/* --------------------------------------------------------------------------
   Areas of Expertise
   -------------------------------------------------------------------------- */
.expertise {
  position: relative;
  background-color: var(--color-black);
  padding-block: var(--section-pad-y);
  overflow: hidden;
}

/* Gradient bg — blurred, positioned top-right as a glow */
.expertise__bg {
  position: absolute;
  top: -20%;
  right: 0%;
  width: 120%;
  height: 120%;
  z-index: 1;
  opacity: .5;
  filter: blur(80px);
  pointer-events: none;
}

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

.expertise .container {
  position: relative;
  z-index: 2;
}

.expertise__header {
  margin-bottom: var(--space-9);
}

.expertise__header .heading-lg {
  margin-top: var(--space-3);
}

/* Card grid */
.expertise__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 768px) {
  .expertise__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .expertise__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Individual card */
.expertise__card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  transition: border-color var(--duration-normal) var(--ease-out-expo),
              transform var(--duration-normal) var(--ease-out-expo),
              box-shadow var(--duration-normal) var(--ease-out-expo);
}

.expertise__card:hover {
  border-color: rgba(225, 73, 220, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(225, 73, 220, 0.08);
}

.expertise__card-icon {
  color: var(--color-pink);
  margin-bottom: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background-color: rgba(225, 73, 220, 0.08);
  border: 1px solid rgba(225, 73, 220, 0.15);
}

.expertise__card-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
}

.expertise__card-desc {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-muted);
}

/* --------------------------------------------------------------------------
   Some Great Clients — Marquee
   -------------------------------------------------------------------------- */
.clients {
  background-color: var(--color-surface);
  padding-block: var(--section-pad-y);
  overflow: hidden;
}

.clients__header {
  margin-bottom: var(--space-9);
}

.clients__header .heading-lg {
  margin-top: var(--space-3);
}

/* Marquee container */
.clients__marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-block: var(--space-4);
}

.clients__marquee + .clients__marquee {
  margin-top: var(--space-5);
}

/* Fade edges */
.clients__marquee::before,
.clients__marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.clients__marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--color-surface), transparent);
}

.clients__marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--color-surface), transparent);
}

/* Track — infinite scroll */
.clients__track {
  display: flex;
  gap: var(--space-6);
  width: max-content;
  animation: marqueeScroll 35s linear infinite;
}

.clients__marquee--reverse .clients__track {
  animation-direction: reverse;
  animation-duration: 40s;
}

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Pause on hover */
.clients__marquee:hover .clients__track {
  animation-play-state: paused;
}

/* Individual logo */
.clients__logo {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0.55;
  filter: grayscale(0.6);
  transition: opacity var(--duration-normal) var(--ease-out-expo),
              filter var(--duration-normal) var(--ease-out-expo),
              transform var(--duration-normal) var(--ease-out-expo);
}

.clients__logo:hover {
  opacity: 1;
  filter: grayscale(0);
  transform: scale(1.08);
}

.clients__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@media (min-width: 768px) {
  .clients__logo {
    width: 150px;
    height: 150px;
    padding: var(--space-5);
  }
}

/* --------------------------------------------------------------------------
   Grid of Work — Masonry
   -------------------------------------------------------------------------- */
.gridwork {
  background-color: var(--color-black);
  padding-block: var(--section-pad-y);
  overflow: hidden;
}

.gridwork__header {
  margin-bottom: var(--space-9);
}

.gridwork__header .heading-lg {
  margin-top: var(--space-3);
}

/* CSS columns masonry */
.gridwork__masonry {
  columns: 2;
  column-gap: var(--space-3);
  padding-inline: var(--space-3);
}

@media (min-width: 768px) {
  .gridwork__masonry {
    columns: 3;
    column-gap: var(--space-4);
    padding-inline: var(--space-4);
  }
}

@media (min-width: 1200px) {
  .gridwork__masonry {
    columns: 4;
  }
}

.gridwork__item {
  break-inside: avoid;
  margin-bottom: var(--space-3);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

@media (min-width: 768px) {
  .gridwork__item {
    margin-bottom: var(--space-4);
  }
}

.gridwork__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

.gridwork__item:hover img {
  transform: scale(1.03);
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact {
  background-color: var(--color-black);
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.contact__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 50% 80%, rgba(225, 73, 220, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 30% 70%, rgba(59, 178, 236, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 35% 35% at 70% 60%, rgba(89, 33, 175, 0.06) 0%, transparent 60%);
}

.contact__inner {
  position: relative;
  z-index: var(--z-base);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact__content {
  max-width: 720px;
}

.contact__heading {
  font-size: var(--text-4xl);
  margin-top: var(--space-3);
  margin-bottom: var(--space-6);
}

.contact__sub {
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

/* Larger button variant */
.btn--lg {
  padding: var(--space-4) var(--space-7);
  font-size: var(--text-sm);
}

/* Social links */
.contact__socials {
  display: flex;
  gap: var(--space-5);
  margin-top: var(--space-9);
}

.contact__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  transition: transform var(--duration-normal) var(--ease-out-expo),
              color var(--duration-normal) var(--ease-out-expo),
              border-color var(--duration-normal) var(--ease-out-expo),
              background-color var(--duration-normal) var(--ease-out-expo);
}

.contact__social:hover {
  color: var(--color-white);
  border-color: var(--color-pink);
  background-color: rgba(225, 73, 220, 0.1);
  transform: translateY(-3px);
}

.contact__social:focus-visible {
  outline: 2px solid var(--color-pink);
  outline-offset: 3px;
}

.contact__social:active {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--color-black);
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-7);
}

.footer__inner {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}
.footer__inner > * {
  display: flex;
  flex:1;
}

.footer__logo {
  opacity: 1;
  justify-content: left;
}

.footer__logo:focus-visible {
  outline: 2px solid var(--color-pink);
  outline-offset: 3px;
}

.footer__copy {
  font-size: var(--text-xs);
  color: var(--color-dim);
  letter-spacing: 0.05em;
  justify-content: center;
}

.footer__tagline {
  font-size: var(--text-xs);
  color: var(--color-dim);
  letter-spacing: 0.05em;
  justify-content: right;
  gap:4px;
}

@media (min-width: 768px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer__copy {
    order: 0;
  }

  .footer__logo {
    order: -1;
  }

  .footer__tagline {
    order: 1;
  }
}


/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link — visible on focus */
.sr-only--focusable:focus {
  position: fixed;
  top: var(--space-4);
  left: var(--space-4);
  z-index: calc(var(--z-loader) + 1);
  width: auto;
  height: auto;
  padding: var(--space-3) var(--space-5);
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background-color: var(--color-pink);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
}

.text-pink   { color: var(--color-pink); }
.text-blue   { color: var(--color-blue); }
.text-purple { color: var(--color-purple); }
.text-muted  { color: var(--color-muted); }

/* --------------------------------------------------------------------------
   Loader
   -------------------------------------------------------------------------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: var(--z-loader);
  background-color: var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 800ms var(--ease-out-expo),
              visibility 800ms;
}

.loader.is-leaving {
  opacity: 0;
  visibility: hidden;
}

.loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-7);
}

/* Logo — starts invisible, fades + scales in */
.loader__logo {
  opacity: 0;
  transform: scale(0.7);
  animation: loaderLogoIn 700ms var(--ease-out-expo) 200ms forwards;
}

.loader__logo img {
  height: 52px;
  width: auto;
}

@keyframes loaderLogoIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* When leaving, logo scales up and fades */
.loader.is-leaving .loader__logo {
  animation: loaderLogoOut 600ms var(--ease-out-expo) forwards;
}

@keyframes loaderLogoOut {
  to {
    opacity: 0;
    transform: scale(1.4);
  }
}

/* Progress bar track */
.loader__bar-track {
  width: 160px;
  height: 2px;
  background-color: var(--color-surface-3);
  border-radius: var(--radius-full);
  overflow: hidden;
  opacity: 0;
  animation: loaderBarIn 500ms var(--ease-out-expo) 600ms forwards;
}

@keyframes loaderBarIn {
  to { opacity: 1; }
}

/* Progress bar fill */
.loader__bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-pink), var(--color-blue));
  border-radius: var(--radius-full);
  transition: width 80ms linear;
}

/* Percentage counter */
.loader__pct {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--color-muted);
  opacity: 0;
  animation: loaderBarIn 500ms var(--ease-out-expo) 700ms forwards;
}

/* When leaving, hide bar + pct immediately */
.loader.is-leaving .loader__bar-track,
.loader.is-leaving .loader__pct {
  opacity: 0;
  transition: opacity 300ms var(--ease-out-expo);
}

/* ==========================================================================
   LIGHT MODE
   ========================================================================== */

/* --------------------------------------------------------------------------
   Theme toggle button
   -------------------------------------------------------------------------- */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-left: auto;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  cursor: pointer;
  transition: border-color var(--duration-normal) var(--ease-out-expo),
              transform var(--duration-normal) var(--ease-out-expo),
              background-color var(--duration-normal) var(--ease-out-expo);
}

@media (min-width: 768px) {
  .theme-toggle {
    margin-left: 0;
  }
}

.theme-toggle:hover {
  border-color: var(--color-pink);
  transform: translateY(-1px);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--color-pink);
  outline-offset: 3px;
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  display: none;
}

.theme-toggle .icon-moon {
  display: block;
}

[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-sun {
  display: block;
}

/* --------------------------------------------------------------------------
   Light mode — custom property overrides
   -------------------------------------------------------------------------- */
[data-theme="light"] {
  --color-black:    #ffffff;
  --color-white:    #111111;
  --color-surface:  #f5f5f5;
  --color-surface-2:#eeeeee;
  --color-surface-3:#e0e0e0;
  --color-muted:    #666666;
  --color-dim:      #737373;
  --color-border:   #dddddd;
}

/* Body + selection */
[data-theme="light"] body {
  background-color: #ffffff;
  color: #111111;
}

[data-theme="light"] ::selection {
  color: #ffffff;
}

/* Nav */
[data-theme="light"] .nav--scrolled {
  background-color: rgba(255, 255, 255, 0.92);
}

[data-theme="light"] .nav__link {
  color: #111111;
}

[data-theme="light"] .nav__link--cta {
  color: #ffffff;
}

[data-theme="light"] .theme-toggle {
  border-color: rgba(0, 0, 0, 0.15);
  color: #111111;
}

/* Mobile menu */
[data-theme="light"] .nav__mobile {
  background-color: rgba(255, 255, 255, 0.97);
}

[data-theme="light"] .nav__mobile-link {
  color: #111111;
}

[data-theme="light"] .nav__hamburger-line {
  background-color: #111111;
}

/* Page dots */
[data-theme="light"] .page-dot {
  background-color: rgba(0, 0, 0, 0.15);
}
[data-theme="light"] .page-dot.page-dot.is-active {
  background-color: var(--color-pink);
}

/* Hero overlays */
[data-theme="light"] .hero {
  background-color: #ffffff;
}

[data-theme="light"] .hero__overlay--left {
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.75) 35%,
    rgba(255, 255, 255, 0.25) 60%,
    transparent 80%
  );
}

[data-theme="light"] .hero__overlay--bottom {
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.5) 30%,
    transparent 60%
  );
}

[data-theme="light"] .hero__sub {
  color: rgba(0, 0, 0, 0.55);
}

[data-theme="light"] .hero__portrait img {
  filter: brightness(1);
}

/* Hero scroll line */
[data-theme="light"] .hero__scroll-line {
  background: linear-gradient(to bottom, var(--color-pink), transparent);
}

/* Buttons */
[data-theme="light"] .btn--outline {
  border-color: #111111;
  color: #111111;
}

[data-theme="light"] .btn--outline:hover {
  background-color: #111111;
  color: #ffffff;
}

/* Work cards */
[data-theme="light"] .work {
  background-color: #ffffff;
}

[data-theme="light"] .work__card {
  color: #111111;
  border-bottom-color: var(--color-border);
}

/* About */
[data-theme="light"] .about__bg-overlay {
  background: linear-gradient(
    135deg,
    rgba(245, 245, 245, 0.95) 0%,
    rgba(245, 245, 245, 0.7) 50%,
    rgba(245, 245, 245, 0.9) 100%
  );
}

[data-theme="light"] .about__portrait-frame {
  background-color: var(--color-surface-2);
}

[data-theme="light"] .about__stat-num {
  color: #111111;
}

/* Expertise */
[data-theme="light"] .expertise {
  background-color: #ffffff;
}

/* Clients marquee edge fade */
[data-theme="light"] .clients__marquee::before {
  background: linear-gradient(to right, var(--color-surface), transparent);
}

[data-theme="light"] .clients__marquee::after {
  background: linear-gradient(to left, var(--color-surface), transparent);
}

/* Grid of work */
[data-theme="light"] .gridwork {
  background-color: #ffffff;
}

/* Contact */
[data-theme="light"] .contact {
  background-color: #ffffff;
}

[data-theme="light"] .contact__glow {
  background:
    radial-gradient(ellipse 60% 50% at 50% 80%, rgba(225, 73, 220, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 30% 70%, rgba(59, 178, 236, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 35% 35% at 70% 60%, rgba(89, 33, 175, 0.04) 0%, transparent 60%);
}

/* Footer */
[data-theme="light"] .footer {
  background-color: #ffffff;
  border-top-color: var(--color-border);
}

/* Loader — always stays dark */
[data-theme="light"] .loader {
  background-color: #000000;
}

[data-theme="light"] .loader .loader__pct {
  color: #777777;
}

[data-theme="light"] .loader .loader__bar-track {
  background-color: #1a1a1a;
}
