/* ========================================
   BRAD SHERMAN — Design Portfolio
   ======================================== */

/* --- Font Setup --- */
@font-face {
  font-family: 'Gelica';
  src: url('fonts/fonnts.com-Gelica-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gelica';
  src: url('fonts/fonnts.com-Gelica-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gelica';
  src: url('fonts/fonnts.com-Gelica-Semi-Bold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gelica';
  src: url('fonts/fonnts.com-Gelica-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gelica';
  src: url('fonts/fonnts.com-Gelica-Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Neue Kabel';
  src: url('fonts/fonnts.com-Neue_Kabel.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Neue Kabel';
  src: url('fonts/fonnts.com-Neue_Kabel_Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Neue Kabel';
  src: url('fonts/fonnts.com-Neue_Kabel_Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Neue Kabel';
  src: url('fonts/fonnts.com-Neue_Kabel_Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --red: #D42B2B;
  --red-hover: #B71C1C;
  --red-glow: rgba(212, 43, 43, 0.08);
  --black: #111111;
  --dark-gray: #333333;
  --medium-gray: #666666;
  --light-gray: #999999;
  --border: #E8E8E8;
  --bg: #FFFFFF;
  --bg-off: #FAFAFA;
  --bg-warm: #F5F3F0;
  --font-heading: 'Gelica', 'Georgia', 'Times New Roman', serif;
  --font-body: 'Helvetica Neue', 'Arial', sans-serif;
  --sidebar-width: 260px;
  --content-max: 960px;
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --spacing-2xl: 64px;
  --spacing-3xl: 80px;
  --spacing-4xl: 96px;
  --spacing-5xl: 120px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.45, 0, 0.15, 1);
}

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

body {
  font-family: var(--font-body);
  color: var(--dark-gray);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  will-change: opacity, transform;
}

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

.reveal-stagger > * {
  opacity: 0;
  transform: translate3d(0, 15px, 0);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  will-change: opacity, transform;
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 60ms; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 120ms; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 180ms; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 240ms; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 300ms; }

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* --- Sidebar Navigation --- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg);
  border-right: 1px solid var(--border);
  padding: var(--spacing-lg) var(--spacing-md);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
}

.sidebar__logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--red);
  letter-spacing: 0.01em;
  margin-bottom: var(--spacing-xl);
  line-height: 1.15;
  padding-left: 14px;
}

.sidebar__logo a {
  color: var(--red);
  display: inline-block;
  transform-origin: left top;
  transition: color 0.3s, transform 0.3s;
}

.sidebar__logo a:hover {
  color: var(--red-hover);
  font-style: italic;
  transform: scale(1.12);
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.sidebar__link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--light-gray);
  padding: 10px 14px;
  border-radius: 0;
  transition: all 0.3s var(--ease-out);
  letter-spacing: 0.01em;
  position: relative;
}

.sidebar__link:hover {
  color: var(--black);
  background: var(--bg-off);
  padding-left: 18px;
}

.sidebar__link--active {
  color: var(--red);
  font-weight: 500;
  background: var(--red-glow);
}

.sidebar__link--active:hover {
  color: var(--red);
  background: var(--red-glow);
}

.sidebar__section-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--light-gray);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 8px 14px 6px;
  margin-top: var(--spacing-sm);
}

.sidebar__section-label:first-child {
  margin-top: 0;
}

.sidebar__bottom {
  margin-top: auto;
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* --- Mobile Nav Toggle --- */
.nav-toggle {
  display: none;
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 200;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s;
}

.nav-toggle:active {
  transform: scale(0.95);
}

/* --- Main Content --- */
.main {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
}

.main__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--spacing-xl) var(--spacing-xl) var(--spacing-4xl);
}

/* Homepage: let grid go full width */
.main__inner--home {
  max-width: none;
  padding: 0 0 var(--spacing-4xl);
}

/* --- Homepage Grid --- */
.home-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.home-card {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: var(--bg-off);
  cursor: pointer;
  display: block;
  transition: opacity 0.3s;
}

.home-card:hover {
  opacity: 0.85;
}

.home-card__image-wrap {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.home-card__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s var(--ease-smooth);
}

.home-card:hover .home-card__image {
  transform: scale(1.02);
}

.home-card__overlay {
  display: none;
}

.home-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 2px;
  letter-spacing: 0.01em;
}

.home-card__subtitle {
  font-size: 0.8rem;
  opacity: 0.85;
  font-weight: 300;
}

/* Card label below image */
.home-card__label {
  padding: var(--spacing-sm) var(--spacing-md);
  padding-bottom: var(--spacing-lg);
}

.home-card__label-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--black);
}

.home-card__label-sub {
  font-size: 0.75rem;
  color: var(--medium-gray);
  margin-top: 2px;
}

/* --- Home Intro (float-up reveal) --- */
.home-intro {
  max-width: 640px;
  margin: var(--spacing-5xl) auto var(--spacing-xl);
  padding: 0 var(--spacing-lg);
  text-align: center;
}

.home-intro p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dark-gray);
  line-height: 1.75;
  margin-bottom: var(--spacing-md);
}

.home-intro__link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--medium-gray);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.3s;
}

.home-intro__link:hover {
  color: var(--black);
}

/* Float-up reveal animation */
.reveal-float {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.9s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: opacity, transform;
}

.reveal-float--visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* --- Page Header --- */
.page-header {
  margin-bottom: var(--spacing-4xl);
}

.page-header__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 2.25rem;
  color: var(--black);
  line-height: 1.2;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.page-header__subtitle {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--light-gray);
  max-width: 600px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  font-weight: 400;
}

/* --- Project Section --- */
.project {
  margin-bottom: var(--spacing-4xl);
}

.project:last-child {
  margin-bottom: 0;
}

.project__divider {
  width: 60px;
  height: 3px;
  background: var(--red);
  margin-bottom: var(--spacing-4xl);
}

.project__header {
  margin-bottom: var(--spacing-xl);
}

.project__title {
  font-family: 'Neue Kabel', sans-serif;
  font-weight: 700;
  font-size: 2.25rem;
  color: var(--black);
  margin-bottom: var(--spacing-xs);
  letter-spacing: -0.01em;
}

.project__meta {
  font-size: 0.95rem;
  color: var(--medium-gray);
  font-weight: 500;
  margin-bottom: var(--spacing-sm);
  letter-spacing: 0.02em;
}

.project__description {
  font-size: 1rem;
  color: var(--dark-gray);
  max-width: 680px;
  line-height: 1.75;
  margin-bottom: var(--spacing-xl);
}

.project__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: calc(var(--spacing-md) * -1);
  margin-bottom: var(--spacing-md);
  font-size: 0.875rem;
  color: var(--red);
  font-weight: 500;
  transition: gap 0.3s var(--ease-out), color 0.2s;
}

.project__link:hover {
  gap: 10px;
  color: var(--red-hover);
}

/* --- Image Layouts --- */

.img-full,
.img-grid-2 img,
.img-grid-3 img,
.img-featured img {
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.img-full:hover,
.img-grid-2 img:hover,
.img-grid-3 img:hover,
.img-featured img:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

/* Full-width single image */
.img-full {
  width: 100%;
  border-radius: 0;
  margin-bottom: var(--spacing-xl);
  max-height: 80vh;
  object-fit: contain;
}

/* Two-column image grid */
.img-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.img-grid-2 img {
  width: 100%;
  border-radius: 0;
}

/* Three-column image grid */
.img-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.img-grid-3 img {
  width: 100%;
  border-radius: 0;
}

/* Large + small side layout */
.img-featured {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.img-featured img {
  width: 100%;
  border-radius: 0;
}

/* Image with caption */
.img-captioned {
  margin-bottom: var(--spacing-md);
}

.img-captioned img {
  width: 100%;
  border-radius: 0;
}

.img-captioned figcaption {
  font-size: 0.8rem;
  color: var(--light-gray);
  margin-top: var(--spacing-xs);
}

/* Section label within project */
.project__section-label {
  font-family: 'Neue Kabel', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--black);
  text-transform: none;
  letter-spacing: 0.01em;
  margin-bottom: var(--spacing-lg);
  margin-top: var(--spacing-3xl);
}

/* When section label is the first child (no content above), reduce top margin */
.project__header + .project__section-label {
  margin-top: 0;
}

/* --- Campaign ads row — matched height, poster wider than phone --- */
.campaign-ads-row {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.campaign-ads-row img:first-child {
  width: 100%;
  height: 540px;
  object-fit: contain;
  object-position: left top;
}

.campaign-ads-row img:last-child {
  width: 100%;
  height: 540px;
  object-fit: contain;
  object-position: right top;
}

@media (max-width: 768px) {
  .campaign-ads-row {
    grid-template-columns: 1fr;
    height: auto;
  }
  .campaign-ads-row img {
    height: auto;
  }
}

/* --- SM matched row — SM5 + SM6 same height --- */
.sm-matched-row {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.sm-matched-row img {
  width: 100%;
  height: 340px;
  object-fit: contain;
  object-position: center center;
  border-radius: 0;
}

@media (max-width: 768px) {
  .sm-matched-row {
    grid-template-columns: 1fr;
  }
  .sm-matched-row img {
    height: auto;
  }
}

/* --- Naples logo + text side by side --- */
.naples-logo-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
  align-items: center;
  margin-bottom: var(--spacing-2xl);
}

.naples-logo-feature .project__description:last-child {
  margin-bottom: 0;
}

.naples-logo-feature img {
  width: 100%;
}

.naples-logo-feature .project__description {
  max-width: none;
}

@media (max-width: 768px) {
  .naples-logo-feature {
    grid-template-columns: 1fr;
  }
}

/* --- Poster Mosaic Gallery --- */
.poster-mosaic {
  margin-bottom: var(--spacing-2xl);
}

.poster-mosaic__row {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}

/* Row 1: two tall portraits (0.65 ratio) + one wide landscape (1.78 ratio) */
/* Column widths proportional to aspect ratios so all images fill same height */
.poster-mosaic__row--top {
  grid-template-columns: 0.65fr 0.65fr 1.78fr;
  height: 260px;
}

/* Row 2 & 3: all ~0.80 ratio portraits, equal columns */
.poster-mosaic__row--mid {
  grid-template-columns: repeat(4, 1fr);
  height: 250px;
}

.poster-mosaic__row--bottom {
  grid-template-columns: repeat(4, 1fr);
  height: 270px;
}

.poster-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

@media (max-width: 768px) {
  .poster-mosaic__row {
    grid-template-columns: 1fr 1fr !important;
    height: auto !important;
  }
  .poster-mosaic img {
    height: auto;
    object-fit: contain;
    aspect-ratio: 3 / 4;
  }
}

/* --- Visual Gallery (no descriptions, just images) --- */
.visual-gallery {
  margin-top: var(--spacing-lg);
}

.visual-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

.visual-gallery__grid img {
  width: 100%;
  border-radius: 0;
  object-fit: cover;
  aspect-ratio: 3 / 4;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.visual-gallery__grid img:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

/* --- About Page --- */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--spacing-xl);
  align-items: start;
}

.about__photo {
  width: 100%;
  border-radius: 0;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.about__photo:hover {
  transform: scale(1.02);
}

.about__text h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2rem;
  color: var(--black);
  margin-bottom: var(--spacing-sm);
}

.about__text p {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: var(--spacing-sm);
  color: var(--dark-gray);
}

.about__details {
  margin-top: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.about__detail-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-bottom: 4px;
}

.about__detail-value {
  font-size: 0.95rem;
  color: var(--dark-gray);
  line-height: 1.6;
}

.about__resume-link {
  display: inline-block;
  margin-top: var(--spacing-lg);
  padding: 14px 32px;
  background: var(--red);
  color: white;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 0;
  transition: all 0.3s var(--ease-out);
  letter-spacing: 0.02em;
}

.about__resume-link:hover {
  background: var(--red-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 43, 43, 0.25);
}

/* --- Contact Page --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
}

.contact__info h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2rem;
  color: var(--black);
  margin-bottom: var(--spacing-md);
}

.contact__info p {
  font-size: 1rem;
  color: var(--dark-gray);
  margin-bottom: var(--spacing-lg);
  line-height: 1.75;
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.contact__link-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 0.95rem;
  color: var(--dark-gray);
}

.contact__link-item span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--light-gray);
  min-width: 80px;
}

.contact__link-item a {
  color: var(--red);
  font-weight: 500;
  transition: color 0.2s;
  border-bottom: 1px solid transparent;
}

.contact__link-item a:hover {
  color: var(--red-hover);
  border-bottom-color: var(--red-hover);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.contact__form label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--medium-gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact__form input,
.contact__form textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: 0;
  background: var(--bg);
  color: var(--dark-gray);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.contact__form input:focus,
.contact__form textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px var(--red-glow);
}

.contact__form textarea {
  min-height: 160px;
  resize: vertical;
}

.contact__form button {
  align-self: flex-start;
  padding: 14px 36px;
  background: var(--red);
  color: white;
  border: none;
  border-radius: 0;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  letter-spacing: 0.02em;
}

.contact__form button:hover {
  background: var(--red-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 43, 43, 0.25);
}

/* --- Footer --- */
.footer {
  margin-top: var(--spacing-4xl);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--light-gray);
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}

.lightbox--open {
  opacity: 1;
  pointer-events: all;
}

.lightbox__img {
  max-width: 85vw;
  max-height: 85vh;
  object-fit: contain;
  transition: opacity 0.2s;
}

.lightbox__close {
  position: absolute;
  top: 24px;
  left: 32px;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  line-height: 1;
  z-index: 10;
}

.lightbox__close:hover {
  opacity: 1;
}

.lightbox__info {
  position: absolute;
  top: 32px;
  right: 32px;
  color: white;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.7;
  letter-spacing: 0.02em;
  z-index: 10;
}

.lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
  padding: 16px;
  z-index: 10;
}

.lightbox__arrow:hover {
  opacity: 1;
}

.lightbox__arrow--left {
  left: 24px;
}

.lightbox__arrow--right {
  right: 24px;
}

/* --- Gallery Hover Effect --- */
.poster-mosaic img {
  transition: transform 0.4s var(--ease-out), opacity 0.3s, box-shadow 0.4s var(--ease-out);
  cursor: pointer;
}

.poster-mosaic--hovering img {
  opacity: 0.5;
}

.poster-mosaic__img--active {
  opacity: 1 !important;
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Make all project images clickable */
.project img,
.poster-mosaic img {
  cursor: pointer;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .main__inner {
    padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-xl);
  }

  .page-header__title {
    font-size: 2.75rem;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about__photo {
    max-width: 300px;
  }

  .img-featured {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.4s var(--ease-out);
    box-shadow: none;
  }

  .sidebar--open {
    transform: translateX(0);
    box-shadow: 8px 0 30px rgba(0, 0, 0, 0.08);
  }

  .nav-toggle {
    display: block;
  }

  .main {
    margin-left: 0;
  }

  .main__inner {
    padding: var(--spacing-lg) var(--spacing-md) var(--spacing-xl);
  }

  .home-grid {
    grid-template-columns: 1fr;
  }

  .page-header__title {
    font-size: 2.25rem;
  }

  .project__title {
    font-size: 1.5rem;
  }

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

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

  .visual-gallery__grid {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}
