/* ==========================================================================
   Maia Drozdowska — Portfolio
   Fonts: OGG (display serif) + Century Schoolbook Monospaced
   ========================================================================== */

/* --- Font Faces --- */
@font-face {
  font-family: 'OGG';
  src: url('../fonts/OGG-Regular.woff2') format('woff2'),
       url('../fonts/OGG-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'CS Mono';
  src: url('../fonts/CenturySchoolbookMonospaced.woff2') format('woff2'),
       url('../fonts/CenturySchoolbookMonospaced.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --- Neue Haas Grotesk Display --- */
@font-face { font-family: 'Neue Haas Grotesk Display'; src: url('../fonts/Neue-Haas-Grotesk/NHaasGroteskDSPro-15UltTh.woff2') format('woff2'); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: 'Neue Haas Grotesk Display'; src: url('../fonts/Neue-Haas-Grotesk/NHaasGroteskDSPro-16UltThIt.woff2') format('woff2'); font-weight: 100; font-style: italic; font-display: swap; }
@font-face { font-family: 'Neue Haas Grotesk Display'; src: url('../fonts/Neue-Haas-Grotesk/NHaasGroteskDSPro-25Th.woff2') format('woff2'); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: 'Neue Haas Grotesk Display'; src: url('../fonts/Neue-Haas-Grotesk/NHaasGroteskDSPro-26ThIt.woff2') format('woff2'); font-weight: 200; font-style: italic; font-display: swap; }
@font-face { font-family: 'Neue Haas Grotesk Display'; src: url('../fonts/Neue-Haas-Grotesk/NHaasGroteskDSPro-35XLt.woff2') format('woff2'); font-weight: 250; font-style: normal; font-display: swap; }
@font-face { font-family: 'Neue Haas Grotesk Display'; src: url('../fonts/Neue-Haas-Grotesk/NHaasGroteskDSPro-36XLtIt.woff2') format('woff2'); font-weight: 250; font-style: italic; font-display: swap; }
@font-face { font-family: 'Neue Haas Grotesk Display'; src: url('../fonts/Neue-Haas-Grotesk/NHaasGroteskDSPro-45Lt.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Neue Haas Grotesk Display'; src: url('../fonts/Neue-Haas-Grotesk/NHaasGroteskDSPro-46LtIt.woff2') format('woff2'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'Neue Haas Grotesk Display'; src: url('../fonts/Neue-Haas-Grotesk/NHaasGroteskDSPro-55Rg.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Neue Haas Grotesk Display'; src: url('../fonts/Neue-Haas-Grotesk/NHaasGroteskDSPro-56It.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Neue Haas Grotesk Display'; src: url('../fonts/Neue-Haas-Grotesk/NHaasGroteskDSPro-65Md.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Neue Haas Grotesk Display'; src: url('../fonts/Neue-Haas-Grotesk/NHaasGroteskDSPro-66MdIt.woff2') format('woff2'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Neue Haas Grotesk Display'; src: url('../fonts/Neue-Haas-Grotesk/NHaasGroteskDSPro-75Bd.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Neue Haas Grotesk Display'; src: url('../fonts/Neue-Haas-Grotesk/NHaasGroteskDSPro-76BdIt.woff2') format('woff2'); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Neue Haas Grotesk Display'; src: url('../fonts/Neue-Haas-Grotesk/NHaasGroteskDSPro-95Blk.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Neue Haas Grotesk Display'; src: url('../fonts/Neue-Haas-Grotesk/NHaasGroteskDSPro-96BlkIt.woff2') format('woff2'); font-weight: 900; font-style: italic; font-display: swap; }

/* --- Neue Haas Grotesk Text --- */
@font-face { font-family: 'Neue Haas Grotesk Text'; src: url('../fonts/Neue-Haas-Grotesk/NHaasGroteskTXPro-55Rg.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Neue Haas Grotesk Text'; src: url('../fonts/Neue-Haas-Grotesk/NHaasGroteskTXPro-56It.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Neue Haas Grotesk Text'; src: url('../fonts/Neue-Haas-Grotesk/NHaasGroteskTXPro-65Md.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Neue Haas Grotesk Text'; src: url('../fonts/Neue-Haas-Grotesk/NHaasGroteskTXPro-66MdIt.woff2') format('woff2'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Neue Haas Grotesk Text'; src: url('../fonts/Neue-Haas-Grotesk/NHaasGroteskTXPro-75Bd.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Neue Haas Grotesk Text'; src: url('../fonts/Neue-Haas-Grotesk/NHaasGroteskTXPro-76BdIt.woff2') format('woff2'); font-weight: 700; font-style: italic; font-display: swap; }

/* --- Manrope (variable + static fallbacks) --- */
@font-face { font-family: 'Manrope'; src: url('../fonts/Manrope_Complete/Fonts/WEB/fonts/Manrope-Variable.woff2') format('woff2-variations'); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('../fonts/Manrope_Complete/Fonts/WEB/fonts/Manrope-ExtraLight.woff2') format('woff2'); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('../fonts/Manrope_Complete/Fonts/WEB/fonts/Manrope-Light.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('../fonts/Manrope_Complete/Fonts/WEB/fonts/Manrope-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('../fonts/Manrope_Complete/Fonts/WEB/fonts/Manrope-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('../fonts/Manrope_Complete/Fonts/WEB/fonts/Manrope-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('../fonts/Manrope_Complete/Fonts/WEB/fonts/Manrope-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('../fonts/Manrope_Complete/Fonts/WEB/fonts/Manrope-ExtraBold.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }

/* --- Montserrat --- */
@font-face { font-family: 'Montserrat'; src: url('../fonts/montserrat/Montserrat-Thin.woff') format('woff'); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/montserrat/Montserrat-ThinItalic.woff') format('woff'); font-weight: 100; font-style: italic; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/montserrat/Montserrat-ExtraLight.woff') format('woff'); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/montserrat/Montserrat-ExtraLightItalic.woff') format('woff'); font-weight: 200; font-style: italic; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/montserrat/Montserrat-Light.woff') format('woff'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/montserrat/Montserrat-LightItalic.woff') format('woff'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/montserrat/Montserrat-Regular.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/montserrat/Montserrat-Italic.woff') format('woff'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/montserrat/Montserrat-Medium.woff') format('woff'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/montserrat/Montserrat-MediumItalic.woff') format('woff'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/montserrat/Montserrat-SemiBold.woff') format('woff'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/montserrat/Montserrat-SemiBoldItalic.woff') format('woff'); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/montserrat/Montserrat-Bold.woff') format('woff'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/montserrat/Montserrat-BoldItalic.woff') format('woff'); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/montserrat/Montserrat-ExtraBold.woff') format('woff'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/montserrat/Montserrat-ExtraBoldItalic.woff') format('woff'); font-weight: 800; font-style: italic; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/montserrat/Montserrat-Black.woff') format('woff'); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/montserrat/Montserrat-BlackItalic.woff') format('woff'); font-weight: 900; font-style: italic; font-display: swap; }

/* --- Uncut Sans (variable + static fallbacks) --- */
@font-face { font-family: 'Uncut Sans'; src: url('../fonts/uncutSans/UncutSans-Variable.woff2') format('woff2-variations'); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Uncut Sans'; src: url('../fonts/uncutSans/UncutSans-Light.woff2') format('woff2'), url('../fonts/uncutSans/UncutSans-Light.woff') format('woff'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Uncut Sans'; src: url('../fonts/uncutSans/UncutSans-LightItalic.woff2') format('woff2'), url('../fonts/uncutSans/UncutSans-LightItalic.woff') format('woff'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'Uncut Sans'; src: url('../fonts/uncutSans/UncutSans-Book.woff2') format('woff2'), url('../fonts/uncutSans/UncutSans-Book.woff') format('woff'); font-weight: 350; font-style: normal; font-display: swap; }
@font-face { font-family: 'Uncut Sans'; src: url('../fonts/uncutSans/UncutSans-BookItalic.woff2') format('woff2'), url('../fonts/uncutSans/UncutSans-BookItalic.woff') format('woff'); font-weight: 350; font-style: italic; font-display: swap; }
@font-face { font-family: 'Uncut Sans'; src: url('../fonts/uncutSans/UncutSans-Regular.woff2') format('woff2'), url('../fonts/uncutSans/UncutSans-Regular.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Uncut Sans'; src: url('../fonts/uncutSans/UncutSans-RegularItalic.woff2') format('woff2'), url('../fonts/uncutSans/UncutSans-RegularItalic.woff') format('woff'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Uncut Sans'; src: url('../fonts/uncutSans/UncutSans-Medium.woff2') format('woff2'), url('../fonts/uncutSans/UncutSans-Medium.woff') format('woff'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Uncut Sans'; src: url('../fonts/uncutSans/UncutSans-MediumItalic.woff2') format('woff2'), url('../fonts/uncutSans/UncutSans-MediumItalic.woff') format('woff'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Uncut Sans'; src: url('../fonts/uncutSans/UncutSans-Semibold.woff2') format('woff2'), url('../fonts/uncutSans/UncutSans-Semibold.woff') format('woff'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Uncut Sans'; src: url('../fonts/uncutSans/UncutSans-SemiboldItalic.woff2') format('woff2'), url('../fonts/uncutSans/UncutSans-SemiboldItalic.woff') format('woff'); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: 'Uncut Sans'; src: url('../fonts/uncutSans/UncutSans-Bold.woff2') format('woff2'), url('../fonts/uncutSans/UncutSans-Bold.woff') format('woff'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Uncut Sans'; src: url('../fonts/uncutSans/UncutSans-BoldItalic.woff2') format('woff2'), url('../fonts/uncutSans/UncutSans-BoldItalic.woff') format('woff'); font-weight: 700; font-style: italic; font-display: swap; }

/* --- Cotham Sans --- */
@font-face { font-family: 'Cotham Sans'; src: url('../fonts/cothamSans/CothamSans.woff2') format('woff2'), url('../fonts/cothamSans/CothamSans.woff') format('woff'), url('../fonts/cothamSans/CothamSans.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }

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

:root {
  --black: #0a0a0a;
  --white: #f5f5f0;
  --grey: #888;

  /* Active font stacks — swap by commenting/uncommenting below */
  /* --font-display: 'OGG', 'Georgia', 'Times New Roman', serif; */
  /* --font-mono: 'CS Mono', 'Courier New', 'Courier', monospace; */

  --font-display: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Cotham Sans', 'Uncut Sans', 'Helvetica Neue', Arial, sans-serif;

  /* Try-out alternatives (uncomment ONE --font-display line at a time) */
  /* --font-display: 'Neue Haas Grotesk Display', 'Helvetica Neue', Arial, sans-serif; */
  /* --font-display: 'Neue Haas Grotesk Text', 'Helvetica Neue', Arial, sans-serif; */
  /* --font-display: 'Manrope', 'Helvetica Neue', Arial, sans-serif; */
  /* --font-display: 'Uncut Sans', 'Helvetica Neue', Arial, sans-serif; */

  /* And/or swap the mono stack */
  /* --font-mono: 'Neue Haas Grotesk Text', 'Helvetica Neue', Arial, sans-serif; */
  /* --font-mono: 'Manrope', 'Helvetica Neue', Arial, sans-serif; */
  /* --font-mono: 'Montserrat', 'Helvetica Neue', Arial, sans-serif; */

  --gap: clamp(16px, 2vw, 32px);
  --page-padding: clamp(20px, 4vw, 60px);
  --transition: 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

body {
  font-family: var(--font-mono);
  background-color: var(--black);
  color: var(--white);
  line-height: 1.5;
  letter-spacing: 0.03em;
  overflow-x: hidden;
  position: relative;
  cursor: none;
}

a, button, [role="button"] {
  cursor: none;
}

body > *:not(.noise-canvas):not(.hero__dot):not(.touch-pulse):not(.lightbox) {
  position: relative;
  z-index: 1;
}

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

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

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

ul, ol {
  list-style: none;
}

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

/* --- Monochromatic Noise / Film Grain (WebGL Canvas) --- */
.noise-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

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

/* --- Header / Nav --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 20px var(--page-padding);
  display: flex;
  justify-content: space-between;
  align-items: center;
  mix-blend-mode: difference;
  pointer-events: none;
}

.header a,
.header button {
  pointer-events: auto;
}

.header__logo {
  font-family: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.header__nav {
  display: flex;
  gap: 24px;
}

.header__nav a {
  font-family: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.header__nav a.active {
  opacity: 0.5;
}

/* --- Loading Screen --- */
.loader {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__text {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.05em;
}

/* --- Hero (Home) --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--page-padding);
  padding-bottom: 120px;
  position: relative;
}

/* Cursor-following dot (global custom cursor) */
.hero__dot {
  width: 6px;
  height: 6px;
  background: var(--white);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  opacity: 0.85;
  pointer-events: none;
  z-index: 2147483647;
  transform: translate(-50%, -50%);
  will-change: left, top;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.65), 0 0 6px rgba(0, 0, 0, 0.4);
}

/* Touch-tap pulse (replaces cursor dot on touch devices) */
.touch-pulse {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--white);
  pointer-events: none;
  z-index: 2147483647;
  transform: translate(-50%, -50%) scale(0.3);
  opacity: 0.85;
  box-shadow: 0 0 14px 4px rgba(255, 255, 255, 0.55);
  animation: touch-pulse 600ms ease-in-out forwards;
}

@keyframes touch-pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.3);
    opacity: 0.6;
  }
  50% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.95;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.3);
    opacity: 0;
  }
}

@media (hover: none) and (pointer: coarse) {
  body,
  a,
  button,
  [role="button"] {
    cursor: auto;
  }

  .hero__dot {
    display: none;
  }
}

/* Typographic grid with background video */
.hero__grid {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 4px 28px;
  align-items: center;
  text-align: center;
  width: auto;
  position: relative;
}

.hero__cell {
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}

.hero__cell--left {
  text-align: left;
  justify-self: start;
}

.hero__cell--center {
  text-align: center;
  justify-self: center;
  grid-column: 1 / -1;
  opacity: 0.5;
}

.hero__cell--right {
  text-align: right;
  justify-self: end;
}

/* Video spans full height of grid, behind text */
.hero__video-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 75px;
  height: 200%;
  overflow: hidden;
  opacity: 0.65;
  z-index: 1;
}

.hero__video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.2);
}

.hero__scroll {
  margin-top: 80px;
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  opacity: 0.5;
  z-index: 2;
  transition: opacity 0.3s ease;
  animation: scrollPulse 2.4s ease-in-out infinite;
}

.hero__scroll:hover {
  opacity: 1;
}

@keyframes scrollPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* --- Quote Section --- */
.quote {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: var(--page-padding);
  text-align: left;
}

.quote__text {
  font-family: var(--font-display);
  font-size: clamp(48px, 9vw, 140px);
  font-weight: 400;
  line-height: 1.05;
  text-transform: uppercase;
  max-width: 1200px;
}

.quote__text span {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.quote.visible .quote__text span:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0s; }
.quote.visible .quote__text span:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.quote.visible .quote__text span:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.quote.visible .quote__text span:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
.quote.visible .quote__text span:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }
.quote.visible .quote__text span:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 0.5s; }

.quote__source {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.1em;
  opacity: 0.4;
  margin-top: 50px;
  text-transform: uppercase;
  text-align: left;
}

/* --- Category Selector + Image Grid (Home) --- */
.categories {
  padding: 0 var(--page-padding);
  padding-bottom: 100px;
}

.categories__filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 22px;
  row-gap: 8px;
  margin-bottom: 36px;
  padding: 0 var(--page-padding);
}

.categories__filter-btn {
  position: relative;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  background: transparent;
  color: var(--white);
  border: 0;
  padding: 4px 0;
  cursor: none;
  opacity: 0.45;
  transition: opacity var(--transition);
}

.categories__filter-btn:hover,
.categories__filter-btn--active {
  opacity: 1;
}

.categories__filter-btn + .categories__filter-btn::before {
  content: '·';
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.35;
  pointer-events: none;
}

.categories__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.categories__grid-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: block;
}

.categories__grid-item img,
.categories__grid-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.categories__grid-item:hover img,
.categories__grid-item:hover video {
  transform: scale(1.04);
}

.categories__grid-item--hidden {
  display: none;
}

/* --- Project Carousel (Home) --- */
.carousel {
  padding: 80px 0;
  position: relative;
}

.carousel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--page-padding);
  margin-bottom: 40px;
}

.carousel__counter {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.05em;
  opacity: 0.5;
}

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

.carousel__btn {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(245, 245, 240, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all var(--transition);
}

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

.carousel__track {
  display: flex;
  gap: 20px;
  padding: 0 var(--page-padding);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.carousel__slide {
  flex: 0 0 30vw;
  min-width: 280px;
  max-width: 420px;
  position: relative;
  scroll-snap-align: start;
}

.carousel__slide a {
  display: block;
}

.carousel__image {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.carousel__slide:hover .carousel__image {
  transform: scale(0.97);
}

.carousel__info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 14px;
}

.carousel__project-name {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 400;
}

.carousel__project-collab {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.05em;
  opacity: 0.5;
  text-align: right;
}

.carousel__project-collab a,
.carousel__project-collab .collab-link {
  color: inherit;
  text-decoration: none;
}

/* --- Footer --- */
.footer {
  padding: 80px var(--page-padding);
  border-top: 1px solid rgba(245, 245, 240, 0.1);
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
}

.footer__contact-label,
.footer__social-label {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  opacity: 0.4;
  margin-bottom: 16px;
}

.footer__email {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 36px);
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: opacity var(--transition);
}

.footer__email:hover {
  opacity: 0.7;
}

.footer__copy-btn {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border: 1px solid rgba(245, 245, 240, 0.3);
  border-radius: 100px;
  transition: all var(--transition);
}

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

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

.footer__socials a {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  display: inline-block;
  width: fit-content;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  border-top: 1px solid rgba(245, 245, 240, 0.1);
}

.footer__credit {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.05em;
  opacity: 0.4;
}

.footer__credit a {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ==========================================================================
   ABOUT PAGE
   ========================================================================== */

.about {
  padding-top: 120px;
}

.about__hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 0 var(--page-padding);
  margin-bottom: 100px;
  align-items: start;
}

.about__image {
  width: 100%;
  aspect-ratio: 529 / 784;
  object-fit: cover;
  border-radius: 4px;
}

.about__intro {
  padding-top: 40px;
}

.about__role {
  font-family: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  opacity: 0.5;
  margin-bottom: 8px;
}

.about__location {
  font-family: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  opacity: 0.5;
  margin-bottom: 40px;
}

.about__bio {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 30px;
  text-transform: lowercase;
}

.about__bio-secondary {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  opacity: 0.6;
  max-width: 560px;
}

/* About Sections */
.about__section {
  padding: 80px var(--page-padding);
  border-top: 1px solid rgba(245, 245, 240, 0.1);
}

.about__section-title {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  opacity: 0.4;
  margin-bottom: 40px;
}

/* Clients Grid */
.clients-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.clients-grid span {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 400;
}

/* Services */
.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px 40px;
}

.services-list span {
  font-family: var(--font-mono);
  font-size: 14px;
  opacity: 0.7;
}

/* Awards */
.awards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.award-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(245, 245, 240, 0.06);
}

.award-item__name {
  font-family: var(--font-mono);
  font-size: 14px;
}

.award-item__count {
  font-family: var(--font-mono);
  font-size: 14px;
  opacity: 0.5;
}

/* Typefaces */
.typefaces {
  display: flex;
  gap: 60px;
}

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

.typeface-item__name {
  font-family: var(--font-mono);
  font-size: 14px;
}

.typeface-item__preview--display {
  font-family: var(--font-display);
  font-size: 28px;
}

.typeface-item__preview--mono {
  font-family: var(--font-mono);
  font-size: 18px;
}

/* ==========================================================================
   WORK PAGE
   ========================================================================== */

.work {
  padding-top: 120px;
}

.work__header {
  padding: 0 var(--page-padding);
  margin-bottom: 60px;
}

.work__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 400;
  margin-bottom: 8px;
  text-transform: lowercase;
}

.work__meta {
  font-family: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  text-transform: lowercase;
  opacity: 0.5;
}

/* Category Filter */
.filter {
  padding: 0 var(--page-padding);
  margin-bottom: 40px;
}

.filter__buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 22px;
  row-gap: 8px;
}

.filter__btn {
  position: relative;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  background: transparent;
  color: var(--white);
  border: 0;
  padding: 4px 0;
  cursor: none;
  opacity: 0.45;
  transition: opacity var(--transition);
}

.filter__btn:hover {
  opacity: 1;
}

.filter__btn--active {
  opacity: 1;
}

.filter__btn + .filter__btn::before {
  content: '\00b7';
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.35;
  pointer-events: none;
}

/* Filtered project items */
.project-item--hidden {
  display: none !important;
}

/* Project List */
.project-list {
  padding: 0 var(--page-padding);
}

.project-item {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid rgba(245, 245, 240, 0.08);
  transition: opacity var(--transition);
  position: relative;
}

.project-list:hover .project-item {
  opacity: 0.3;
}

.project-list:hover .project-item:hover {
  opacity: 1;
}

.project-item__name {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 400;
  transition: transform var(--transition);
}

.project-item:hover .project-item__name {
  transform: translateX(8px);
}

.project-item__desc {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.5;
  max-width: 400px;
  display: block;
  text-indent: 0;
  text-transform: lowercase;
}

.project-item__category {
  font-family: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  opacity: 0.4;
  white-space: nowrap;
}

/* Hover Image Preview */
.project-item__preview {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  z-index: 50;
  transition: opacity 0.3s ease;
  will-change: transform;
}

.project-item:hover .project-item__preview {
  opacity: 1;
}

/* ==========================================================================
   ARCHIVE PAGE
   ========================================================================== */

.archive {
  padding-top: 120px;
}

.archive__header {
  padding: 0 var(--page-padding);
  margin-bottom: 60px;
}

.archive__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 400;
  margin-bottom: 8px;
  text-transform: lowercase;
}

.archive__desc {
  font-family: var(--font-mono);
  font-size: 14px;
  text-transform: lowercase;
  opacity: 0.5;
}

.archive__grid {
  column-count: 3;
  column-gap: var(--gap);
  padding: 0 var(--page-padding);
}

.archive__item {
  break-inside: avoid;
  margin-bottom: var(--gap);
  overflow: hidden;
  border-radius: 4px;
}

.archive__item img {
  width: 100%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

/* ==========================================================================
   PROJECT PAGE (Single)
   ========================================================================== */

.project {
  padding-top: 100px;
}

.project__header {
  padding: 0 var(--page-padding);
  margin-bottom: 60px;
}

.project__breadcrumb {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  opacity: 0.4;
  margin-bottom: 20px;
}

.project__breadcrumb a:hover {
  opacity: 1;
}

.project__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 100px);
  font-weight: 400;
  line-height: 0.95;
  margin-bottom: 24px;
  text-transform: lowercase;
}

.project__meta {
  display: flex;
  gap: 40px;
}

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

.project__meta-label {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  opacity: 0.4;
}

.project__meta-value {
  font-family: var(--font-mono);
  font-size: 14px;
  text-transform: lowercase;
}

.project__meta-value a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Project Gallery */
.project__gallery {
  column-count: 3;
  column-gap: var(--gap);
}

.project__gallery-item {
  break-inside: avoid;
  margin-bottom: var(--gap);
  overflow: hidden;
  border-radius: 4px;
}

.project__gallery-item img,
.project__gallery-item video {
  width: 100%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.project__gallery-item:hover img,
.project__gallery-item:hover video {
  transform: scale(1.03);
}

/* Project Navigation (prev/next) */
.project__nav {
  display: flex;
  justify-content: space-between;
  padding: 60px var(--page-padding);
  border-top: 1px solid rgba(245, 245, 240, 0.1);
}

.project__nav a {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

/* Fade-in on scroll */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Project items: clear transform so fixed-position preview images work */
.project-item[data-animate] {
  transform: none;
}
.project-item[data-animate].visible {
  transform: none;
}

/* Stagger children */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-stagger].visible > *:nth-child(1) { transition-delay: 0.0s; }
[data-stagger].visible > *:nth-child(2) { transition-delay: 0.08s; }
[data-stagger].visible > *:nth-child(3) { transition-delay: 0.16s; }
[data-stagger].visible > *:nth-child(4) { transition-delay: 0.24s; }
[data-stagger].visible > *:nth-child(5) { transition-delay: 0.32s; }
[data-stagger].visible > *:nth-child(6) { transition-delay: 0.40s; }
[data-stagger].visible > *:nth-child(7) { transition-delay: 0.48s; }
[data-stagger].visible > *:nth-child(8) { transition-delay: 0.56s; }

[data-stagger].visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

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

  .about__image {
    max-width: 400px;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .project-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .project-item__desc {
    display: none;
  }

  .project-item__preview {
    display: none;
  }

  .categories__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .carousel__slide {
    flex: 0 0 45vw;
    min-width: 240px;
  }

  .archive__grid {
    column-count: 2;
  }

  .project__gallery {
    column-count: 2;
  }

  .typefaces {
    flex-direction: column;
    gap: 30px;
  }
}

@media (max-width: 600px) {
  .hero__grid {
    gap: 2px 12px;
  }

  .hero__cell {
    font-size: 14px;
    letter-spacing: 0.1em;
  }

  .hero__video-wrap {
    width: 50px;
  }

  .quote__text {
    font-size: clamp(32px, 10vw, 56px);
  }

  .categories__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .carousel__slide {
    flex: 0 0 70vw;
    min-width: 220px;
  }

  .archive__grid {
    column-count: 1;
  }

  .project__gallery {
    column-count: 1;
  }

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

  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
-fit: cover;
  transition: transform 0.4s ease;
}

.categories__grid-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Collab links */
.collab-link {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Project item collab on work page */
.project-item__collab {
  font-size: 0.85em;
  opacity: 0.7;
}

/* Video in gallery */
.project__gallery-item video {
  width: 100%;
  height: auto;
  display: block;
}

/* Video in carousel */
.carousel__image[src$=".mp4"],
.carousel__image[src$=".webm"],
video.carousel__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Work page: name + collab stacked in column 1 */
.project-item__name-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-item__collab {
  font-size: 0.8em;
  opacity: 0.5;
}

/* Carousel collab: grey */
.carousel__project-collab {
  color: rgba(255,255,255,0.45);
}

.carousel__project-collab .collab-link {
  color: rgba(255,255,255,0.45);
}

/* Work page inline collab */
.project-item__collab {
  font-size: 0.75em;
  opacity: 0.45;
  text-decoration: none;
  margin-left: 6px;
}
a.project-item__collab {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Carousel collab grey - strong override */
.carousel__project-collab,
.carousel__project-collab a,
.carousel__project-collab .collab-link {
  color: rgba(255,255,255,0.4) !important;
}

/* Remove underlines from collab links - use icon only */
.collab-link,
a.collab-link,
a.project-item__collab {
  text-decoration: none !important;
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 10, 10, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  cursor: zoom-out;
}

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

.lightbox__media {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}
