/* ============================================
   PORTFOLIO — MILITSA YANAKIEVA
   Design System & Global Styles
   ============================================ */

/* DM Sans — body & UI */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500&display=swap');
/* Caesura & Minion Pro loaded via Adobe Fonts <link> in HTML */

/* ---- Variables ---- */
:root {
  --color-bg:      #F8F7F4;
  --color-text:    #0C0C0A;
  --color-muted:   #888884;
  --color-border:  #E0DFDB;
}

[data-theme="dark"] {
  --color-bg:      #0C0C0A;
  --color-text:    #F8F7F4;
  --color-muted:   #666663;
  --color-border:  #222220;
}

/* re-open :root for the remaining tokens */
:root {

  --font-display:  'DM Sans', system-ui, sans-serif;
  --font-body:     'DM Sans', system-ui, sans-serif;

  --size-xs:   0.75rem;
  --size-sm:   0.875rem;
  --size-base: 1rem;
  --size-lg:   1.25rem;
  --size-xl:   2rem;
  --size-2xl:  3.5rem;
  --size-3xl:  clamp(3.5rem, 8vw, 7rem);
  --size-hero: clamp(5rem, 13vw, 12rem);

  --spacing-xs:  0.5rem;
  --spacing-sm:  1rem;
  --spacing-md:  2rem;
  --spacing-lg:  4rem;
  --spacing-xl:  7rem;

  --transition: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none; /* custom cursor */
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* ---- Theme Toggle Switch ---- */
.theme-toggle {
  background: none;
  border: none;
  cursor: none;
  padding: 0;
  display: flex;
  align-items: center;
}

.theme-toggle__track {
  display: block;
  width: 38px;
  height: 22px;
  border: 1.5px solid #ffffff;
  border-radius: 11px;
  position: relative;
  transition: all 0.35s var(--transition);
}

.theme-toggle__thumb {
  display: block;
  width: 13px;
  height: 13px;
  background: #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 3px;
  transform: translateY(-50%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .theme-toggle__thumb {
  transform: translateY(-50%) translateX(16px);
}

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

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

/* ---- Custom Cursor ---- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  background: #FF8C00;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease, background 0.3s ease;
}

.cursor.cursor--hover {
  width: 48px;
  height: 48px;
  background: #FF8C00;
}

.cursor.cursor--link {
  width: 64px;
  height: 64px;
  background: #FF8C00;
}

/* ---- Navigation ---- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 2.5rem;
  mix-blend-mode: difference;
  color: #ffffff;
}

.nav__logo {
  font-family: var(--font-body);
  font-size: var(--size-sm);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
}

.nav__links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav__links a {
  font-family: var(--font-body);
  font-size: var(--size-sm);
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  color: #ffffff;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #ffffff;
  transition: width var(--transition-fast);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}


/* ---- Hero / Landing ---- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 2.5rem var(--spacing-lg);
  position: relative;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}


.hero__tag {
  font-family: var(--font-body);
  font-size: var(--size-sm);
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.8s var(--transition) 0.2s forwards;
}

.hero__name {
  font-family: 'caesura', Georgia, serif;
  font-size: var(--size-hero);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
}

/* Mask reveal — each line clips its text sliding up */
.hero__name-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em; /* prevent descender clip */
}

.hero__name-text {
  display: block;
  animation: 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

/* Militsa — slides up from below-left */
.hero__name-line:nth-child(1) .hero__name-text {
  transform: translateY(108%) translateX(-3rem);
  animation-name: maskRevealLeft;
}

/* Yanakieva — slides up from below-right */
.hero__name-line:nth-child(2) .hero__name-text {
  transform: translateY(108%) translateX(3rem);
  animation-name: maskRevealRight;
}

@keyframes maskRevealLeft {
  to { transform: translateY(0) translateX(0); }
}

@keyframes maskRevealRight {
  to { transform: translateY(0) translateX(0); }
}

.hero__statement {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.8s var(--transition) 0.8s forwards;
}

.hero__statement p {
  font-family: var(--font-body);
  font-size: var(--size-base);
  font-weight: 300;
  max-width: 36ch;
  color: var(--color-muted);
  line-height: 1.7;
}

.hero__scroll {
  font-size: var(--size-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  writing-mode: vertical-rl;
  padding-bottom: 0.25rem;
}

/* ---- Section Titles ---- */
.section-label {
  font-family: var(--font-body);
  font-size: var(--size-xs);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--spacing-lg);
  padding-top: var(--spacing-xl);
  padding-left: 2.5rem;
  border-top: 1px solid var(--color-border);
}

/* ---- Work Index ---- */
.work-index {
  padding: 0 2.5rem var(--spacing-xl);
}

.work-item {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
  cursor: none;
  position: relative;
  transition: padding-left var(--transition-fast);
}

.work-item:hover {
  padding-left: 0.5rem;
}

.work-item__number {
  font-family: var(--font-body);
  font-size: var(--size-xs);
  font-weight: 400;
  color: var(--color-muted);
  letter-spacing: 0.06em;
  padding-top: 0.15rem;
}

.work-item__title {
  font-family: var(--font-display);
  font-size: var(--size-2xl);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.01em;
  transition: letter-spacing var(--transition);
}

.work-item:hover .work-item__title {
  letter-spacing: 0.01em;
}

.work-item__meta {
  font-family: var(--font-body);
  font-size: var(--size-xs);
  font-weight: 300;
  color: var(--color-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: right;
}

/* Hover image preview */
.work-item__preview {
  position: fixed;
  top: 50%;
  right: 4rem;
  transform: translateY(-50%) scale(0.95);
  width: 340px;
  height: 420px;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  transition: opacity 0.35s ease, transform 0.45s var(--transition);
}

.work-item:hover .work-item__preview {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

/* Featured tag */
.work-item--featured .work-item__title::after {
  content: ' — Featured';
  font-family: var(--font-body);
  font-size: var(--size-xs);
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  vertical-align: middle;
  margin-left: 1rem;
}

/* ---- About Page ---- */
.about-section {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  padding: 10rem 2.5rem var(--spacing-xl);
  align-items: start;
}

.about__image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  position: sticky;
  top: 7rem;
}

.about__content {
  padding-top: 2rem;
}

.about__intro {
  font-family: var(--font-display);
  font-size: var(--size-3xl);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: var(--spacing-lg);
}

.about__body {
  font-size: var(--size-base);
  font-weight: 300;
  line-height: 1.8;
  color: var(--color-muted);
  max-width: 48ch;
}

.about__body p + p {
  margin-top: 1.5rem;
}

.about__details {
  margin-top: var(--spacing-lg);
  border-top: 1px solid var(--color-border);
  padding-top: var(--spacing-md);
}

.about__detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--size-sm);
}

.about__detail-row span:first-child {
  font-weight: 300;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--size-xs);
}

/* ---- Project / Case Study ---- */
.project-hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 2.5rem var(--spacing-lg);
}

.project-hero__category {
  font-size: var(--size-xs);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.project-hero__title {
  font-family: var(--font-display);
  font-size: var(--size-hero);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: var(--spacing-lg);
}

.project-hero__title em {
  font-style: normal;
  font-weight: 500;
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: var(--spacing-md) 2.5rem;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.project-meta__item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.project-meta__label {
  font-size: var(--size-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.project-meta__value {
  font-size: var(--size-sm);
  font-weight: 300;
}

.project-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  padding: var(--spacing-xl) 2.5rem;
  align-items: start;
}

.project-intro__heading {
  font-family: var(--font-display);
  font-size: var(--size-2xl);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.project-intro__body {
  font-size: var(--size-base);
  font-weight: 300;
  line-height: 1.8;
  color: var(--color-muted);
}

.project-intro__body p + p {
  margin-top: 1.25rem;
}

/* Full-bleed image (cropped, for pure photography) */
.project-image--full {
  width: 100%;
  height: 90vh;
  object-fit: cover;
}

/* Spread image — shows the full image uncropped, as designed */
.project-image--spread {
  width: 100%;
  height: auto;
  display: block;
}

/* Opening section — description left, cover portrait right */
.project-opening {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  padding: var(--spacing-xl) 2.5rem;
  align-items: start;
}

.project-opening__text {
  position: sticky;
  top: 7rem;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.project-opening__cover {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Image grid */
.project-grid {
  display: grid;
  gap: 1.5rem;
  padding: var(--spacing-lg) 2.5rem;
}

.project-grid--2col {
  grid-template-columns: 1fr 1fr;
}

.project-grid--3col {
  grid-template-columns: 1fr 1fr 1fr;
}

.project-grid img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Mixed: portrait + landscape at equal height, each filling its cell */
.project-grid--mixed {
  grid-template-columns: 1fr 1.6fr;
}

.project-grid--mixed img {
  width: 100%;
  height: 70vh;
  object-fit: cover;
  aspect-ratio: unset;
}

/* Use on a grid with landscape/spread images that shouldn't be cropped */
.project-grid--natural img {
  aspect-ratio: unset;
  height: auto;
  object-fit: unset;
  object-position: unset;
}

/* Caption */
.project-caption {
  font-size: var(--size-xs);
  letter-spacing: 0.08em;
  color: var(--color-muted);
  text-transform: uppercase;
  padding: 0.75rem 2.5rem;
}

/* Pull quote */
.project-quote {
  padding: var(--spacing-xl) 2.5rem;
  border-top: 1px solid var(--color-border);
}

.project-quote blockquote {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: var(--size-3xl);
  font-weight: 300;
  font-style: normal;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 22ch;
}

/* ---- PDF Viewer ---- */
.project-pdf {
  padding: 0 2.5rem var(--spacing-xl);
}

.project-pdf__viewer {
  width: 100%;
  height: 85vh;
  border: 1px solid var(--color-border);
  display: block;
}

/* ---- Contact Page ---- */
.contact-section {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 2.5rem var(--spacing-xl);
}

.contact__heading {
  font-family: var(--font-display);
  font-size: var(--size-hero);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-lg);
}

.contact__email {
  font-family: var(--font-display);
  font-size: var(--size-2xl);
  font-weight: 300;
  border-bottom: 1px solid var(--color-text);
  display: inline-block;
  padding-bottom: 0.2rem;
  transition: opacity var(--transition-fast);
}

.contact__email:hover {
  opacity: 0.5;
}

.contact__socials {
  display: flex;
  gap: 2.5rem;
  margin-top: var(--spacing-lg);
  list-style: none;
}

.contact__socials a {
  font-size: var(--size-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  transition: color var(--transition-fast);
}

.contact__socials a:hover {
  color: var(--color-text);
}

/* ---- Footer ---- */
footer {
  padding: var(--spacing-md) 2.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer span {
  font-size: var(--size-xs);
  letter-spacing: 0.08em;
  color: var(--color-muted);
  text-transform: uppercase;
}

/* Home page only — red footer blending into work section */
.page-home footer {
  background: #e8000a;
  border-top: none;
}

.page-home footer span {
  color: rgba(255, 255, 255, 0.55);
}

/* ---- CULTŪRA Wordmark ---- */
/* Impact is the magazine's own typeface — always overrides the page display font */
.cultura-wordmark,
body.page-cultura .cultura-wordmark {
  font-family: 'Impact', 'Arial Narrow', sans-serif;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.04em;
}

/* ---- Animations ---- */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--transition), transform 0.8s var(--transition);
}

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

/* ---- Responsive ---- */
@media (max-width: 900px) {
  nav {
    padding: 1.25rem 1.5rem;
  }

  .hero,
  .work-index,
  .section-label,
  .project-hero,
  .project-meta,
  .project-intro,
  .project-grid,
  .project-caption,
  .project-quote,
  .contact-section,
  .about-section,
  footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .about-section {
    grid-template-columns: 1fr;
    padding-top: 8rem;
  }

  .about__image {
    position: relative;
    top: 0;
    aspect-ratio: 4/3;
  }

  .project-intro,
  .project-opening {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .project-opening__text {
    position: relative;
    top: 0;
  }

  .project-meta {
    grid-template-columns: 1fr 1fr;
  }

  .project-grid--3col {
    grid-template-columns: 1fr 1fr;
  }

  .work-item {
    grid-template-columns: 2.5rem 1fr;
  }

  .work-item__meta {
    display: none;
  }

  .work-item__preview {
    display: none;
  }

  /* Hero statement: stack at tablet too */
  .hero__statement {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  /* Mixed grid: shorter image height on tablet */
  .project-grid--mixed img {
    height: 45vw;
  }

  /* Project quote: reduce padding */
  .project-quote {
    padding: var(--spacing-lg) 1.5rem;
  }
}

@media (max-width: 600px) {
  .nav__links {
    gap: 1.25rem;
  }

  /* Project meta: single column on small phones */
  .project-meta {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .project-grid--2col,
  .project-grid--3col {
    grid-template-columns: 1fr;
  }

  .contact__socials {
    flex-direction: column;
    gap: 1rem;
  }

  /* Hero statement: stack vertically, hide the scroll indicator */
  .hero__statement {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .hero__scroll {
    display: none;
  }

  /* Project headings: smaller floor on narrow screens */
  .project-intro__heading {
    font-size: clamp(1.6rem, 6vw, 3.5rem);
  }

  /* Pull quote: tighter on mobile */
  .project-quote {
    padding: var(--spacing-md) 1.5rem;
  }

  .project-quote blockquote {
    font-size: clamp(1.5rem, 6vw, 3.5rem);
    max-width: 100%;
  }

  /* Contact: email shrinks to avoid overflow */
  .contact__email {
    font-size: clamp(1rem, 4.5vw, 2rem);
    word-break: break-all;
  }

  /* Contact heading: reduce floor */
  .contact__heading {
    font-size: clamp(3.5rem, 14vw, 7rem);
  }

  /* About: detail rows wrap instead of overflow */
  .about__detail-row {
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 0;
  }

  .about__detail-row span:last-child {
    font-size: var(--size-sm);
    line-height: 1.6;
    color: var(--color-muted);
  }

  /* About intro: scale down */
  .about__intro {
    font-size: clamp(2rem, 9vw, 3.5rem);
  }

  /* Project opening: tighter top padding */
  .project-opening {
    padding-top: var(--spacing-md);
  }

  /* Mixed grid: shorter on mobile */
  .project-grid--mixed {
    grid-template-columns: 1fr;
  }

  .project-grid--mixed img {
    height: 60vw;
  }

  /* Section label: less top padding */
  .section-label {
    padding-top: var(--spacing-lg);
  }

  /* Footer: stack on very small screens */
  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1.5rem;
  }
}

/* ---- Touch devices: hide custom cursor, restore default ---- */
@media (hover: none) {
  body {
    cursor: auto;
  }

  .cursor {
    display: none;
  }
}

/* ============================================
   PAGE-HOME — Red Hero Overrides
   ============================================ */

/* Red full-bleed hero */
.page-home .hero {
  background-color: #e8000a;
  overflow: hidden;
  justify-content: center;
  padding: 0;
}

/* Canvas fills the entire red hero */
.page-home #hero-canvas {
  pointer-events: none;
}

/* Vertical "DIGITAL DESIGNER" tag on the far left */
.page-home .hero__tag {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  /* flip so text reads bottom-to-top */
  rotate: 180deg;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  margin-bottom: 0;
  animation: none;
  opacity: 1;
  white-space: nowrap;
  /* ensure it sits above the canvas */
  z-index: 2;
}

/* Suppress the HTML name — canvas particles replace it */
.page-home .hero__name {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  font-size: 0;
  height: 0;
  margin: 0;
  overflow: hidden;
}

/* Hide statement on red hero */
.page-home .hero__statement {
  display: none;
}

/* Nav: transparent over red hero, white text */
.page-home nav {
  position: fixed;
  background: transparent;
  mix-blend-mode: normal;
}

.page-home nav .nav__logo,
.page-home nav .nav__links a {
  color: rgba(255, 255, 255, 0.85);
}

/* When scrolled past hero, nav stays transparent over the red section */
.page-home nav.nav--scrolled {
  background: transparent;
  mix-blend-mode: normal;
}

.page-home nav.nav--scrolled .nav__logo,
.page-home nav.nav--scrolled .nav__links a {
  color: rgba(255, 255, 255, 0.75);
}

/* ============================================
   PAGE-HOME — Work Section (Red Mosaic)
   ============================================ */

/* Section container — red background, blends directly into hero */
.page-home .work-section {
  background: #e8000a;
}

/* Section label — white on red, no extra border */
.page-home .work-section .section-label {
  color: rgba(255, 255, 255, 0.55);
  border-top: none;
  padding-top: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  margin-bottom: 0;
}

/* Mosaic grid — 3 equal cols, 1px gap lines in semi-transparent white */
.page-home .work-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 65vh 52vh;
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
  padding: 0;
}

/* CULTŪRA: spans 2 cols (dominant left, row 1) */
.page-home .mosaic-item--featured {
  grid-column: span 2;
}

/* HUD Study: spans 2 cols (dominant right, row 2) */
.page-home .work-mosaic .mosaic-item:nth-child(4) {
  grid-column: span 2;
}

/* Tile base */
.page-home .mosaic-item {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 2.5rem;
  color: #ffffff;
  text-decoration: none;
  background: #e8000a;
  cursor: none;
}

/* Full-bleed project image */
.page-home .mosaic-item__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  transition: opacity 0.5s ease, transform 0.55s var(--transition);
  z-index: 0;
}

.page-home .mosaic-item:hover .mosaic-item__image {
  opacity: 1;
  transform: scale(1.04);
}

/* No gradient overlay — images bleed raw into the red */

/* Orange accent line — sweeps in from left on hover */
.page-home .mosaic-item::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #FF8C00;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--transition);
  z-index: 3;
}

.page-home .mosaic-item:hover::before {
  transform: scaleX(1);
}

/* Project number — top-left, subtle */
.page-home .mosaic-item__number {
  position: absolute;
  top: 1.75rem;
  left: 2.5rem;
  font-size: var(--size-xs);
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-body);
  font-weight: 400;
  z-index: 2;
}

/* Title + meta wrapper */
.page-home .mosaic-item__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

/* Project title */
.page-home .mosaic-item__title {
  font-family: var(--font-display);
  font-size: var(--size-2xl);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.01em;
  color: #ffffff;
  transition: letter-spacing var(--transition);
}

/* Featured tile gets larger title */
.page-home .mosaic-item--featured .mosaic-item__title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.page-home .mosaic-item:hover .mosaic-item__title {
  letter-spacing: 0.02em;
}

/* Tags / discipline */
.page-home .mosaic-item__meta {
  font-size: var(--size-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
  font-family: var(--font-body);
  font-weight: 300;
}

/* HUD Study — no image, slight tonal variation */
.page-home .work-mosaic .mosaic-item:nth-child(4) {
  background: rgba(0, 0, 0, 0.08);
}

/* Responsive — stack to single column on narrow screens */
@media (max-width: 900px) {
  .page-home .work-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .page-home .mosaic-item--featured,
  .page-home .work-mosaic .mosaic-item:nth-child(4) {
    grid-column: span 2;
  }

  .page-home .mosaic-item {
    min-height: 50vw;
  }
}

@media (max-width: 600px) {
  .page-home .work-mosaic {
    grid-template-columns: 1fr;
  }

  .page-home .mosaic-item--featured,
  .page-home .work-mosaic .mosaic-item:nth-child(4) {
    grid-column: span 1;
  }
}
