/* ======================================
   MAURO ZÚÑIGA — Global Styles
   ====================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

/* ======================================
   THEME VARIABLES
   ====================================== */

:root,
[data-theme="light"] {
  --bg:       #f7f7f5;
  --fg:       #0a0a0a;
  --surface:  #ededeb;
  --surface2: #e2e2e0;
  --border:   #e2e2e0;
  --muted:    #9a9a96;
  --subtle:   #555553;
  --overlay:  rgba(0, 0, 0, 0.06);
  --btn-bg:   #0a0a0a;
  --btn-fg:   #f7f7f5;
}

[data-theme="dark"] {
  --bg:       #0c0c0b;
  --fg:       #f0f0ee;
  --surface:  #1a1a18;
  --surface2: #242422;
  --border:   rgba(255, 255, 255, 0.09);
  --muted:    rgba(255, 255, 255, 0.35);
  --subtle:   rgba(255, 255, 255, 0.55);
  --overlay:  rgba(255, 255, 255, 0.04);
  --btn-bg:   #f0f0ee;
  --btn-fg:   #0c0c0b;
}

/* Smooth theme transition (added/removed by JS) */
.theme-transitioning,
.theme-transitioning *,
.theme-transitioning *::before,
.theme-transitioning *::after {
  transition:
    background-color 0.32s ease,
    color 0.32s ease,
    border-color 0.32s ease,
    opacity 0.32s ease !important;
}


/* ======================================
   BASE
   ====================================== */

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  color: var(--fg);
}

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

img { display: block; width: 100%; height: 100%; object-fit: cover; }


/* ======================================
   HOMEPAGE — Split (fixed, no theme)
   ====================================== */

.split {
  display: flex;
  height: 100vh;
  overflow: hidden;
  cursor: none;
}

.split__panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 48px;
  transition: flex 0.7s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
  position: relative;
}

.split__panel--design { background: #0a0a0a; color: #f7f7f5; }
.split__panel--photo  { background: #f7f7f5; color: #0a0a0a; border-left: 1px solid #e2e2e0; }

.split:hover .split__panel:not(:hover) { flex: 0.38; }
.split:hover .split__panel:hover       { flex: 1.62; }

.split__top { display: flex; justify-content: space-between; align-items: flex-start; }
.split__name    { font-size: 13px; font-weight: 400; letter-spacing: 0.04em; opacity: 0.5; white-space: nowrap; }
.split__counter { font-size: 12px; font-weight: 400; letter-spacing: 0.04em; opacity: 0.3; white-space: nowrap; }

.split__center {
  position: absolute;
  top: 50%; left: 48px; right: 48px;
  transform: translateY(-50%);
}

.split__role {
  font-size: clamp(36px, 5.5vw, 80px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.split__tagline { margin-top: 20px; font-size: 13px; line-height: 1.6; opacity: 0.45; max-width: 320px; }

.split__bottom { display: flex; justify-content: space-between; align-items: flex-end; }

.split__enter {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.split__panel:hover .split__enter { opacity: 1; transform: translateY(0); }

.split__enter-arrow { width: 32px; height: 1px; position: relative; transition: width 0.35s ease; }
.split__panel--design .split__enter-arrow { background: #f7f7f5; }
.split__panel--photo  .split__enter-arrow { background: #0a0a0a; }
.split__enter-arrow::after {
  content: ''; position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px;
  border-right: 1px solid currentColor; border-top: 1px solid currentColor;
  transform: rotate(45deg);
}
.split__panel--design .split__enter-arrow::after { border-color: #f7f7f5; }
.split__panel--photo  .split__enter-arrow::after { border-color: #0a0a0a; }
.split__panel:hover .split__enter-arrow { width: 56px; }
.split__year { font-size: 12px; opacity: 0.2; letter-spacing: 0.04em; }

/* Custom cursor */
.cursor { position: fixed; pointer-events: none; z-index: 9999; mix-blend-mode: difference; }
.cursor__dot  { width: 8px; height: 8px; background: white; border-radius: 50%; transform: translate(-50%,-50%); }
.cursor__ring { width: 40px; height: 40px; border: 1px solid white; border-radius: 50%; transform: translate(-50%,-50%); transition: width 0.35s ease, height 0.35s ease, opacity 0.35s ease; }
.cursor--hover .cursor__dot  { width: 12px; height: 12px; }
.cursor--hover .cursor__ring { width: 64px; height: 64px; opacity: 0.5; }


/* ======================================
   NAV
   ====================================== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 48px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav__logo { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; color: var(--fg); }

.nav__right { display: flex; align-items: center; gap: 36px; }

.nav__links { display: flex; gap: 32px; list-style: none; }
.nav__links a { font-size: 13px; font-weight: 400; letter-spacing: 0.04em; color: var(--fg); opacity: 0.4; transition: opacity 0.2s; }
.nav__links a:hover, .nav__links a.active { opacity: 1; }

/* Theme toggle switch */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
}

.theme-toggle__track {
  width: 36px; height: 20px;
  border-radius: 100px;
  border: 1px solid var(--fg);
  position: relative;
  opacity: 0.35;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover .theme-toggle__track { opacity: 0.75; }

.theme-toggle__thumb {
  position: absolute;
  width: 12px; height: 12px;
  background: var(--fg);
  border-radius: 50%;
  top: 3px; left: 3px;
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
}
[data-theme="dark"]  .theme-toggle__thumb { transform: translateX(16px); }
[data-theme="light"] .theme-toggle__thumb { transform: translateX(0); }

.theme-toggle__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg);
  opacity: 0.35;
  min-width: 32px;
  transition: opacity 0.2s;
}
.theme-toggle:hover .theme-toggle__label { opacity: 0.75; }


/* ======================================
   DESIGN — Works Grid
   ====================================== */

.works-hero { padding: 128px 48px 64px; }
.works-hero__label { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.works-hero__title { font-size: clamp(48px, 7vw, 96px); font-weight: 300; line-height: 1.0; letter-spacing: -0.04em; }

.works-grid {
  padding: 0 40px 120px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.work-card          { display: block; cursor: pointer; overflow: hidden; }
.work-card--large   { grid-column: span 7; }
.work-card--medium  { grid-column: span 5; }
.work-card--small   { grid-column: span 4; }

.work-card__image {
  width: 100%; aspect-ratio: 4/3;
  overflow: hidden; background: var(--surface);
  position: relative;
}
.work-card--large .work-card__image { aspect-ratio: 16/10; }
.work-card__image img { transition: transform 0.7s cubic-bezier(0.4,0,0.2,1); }
.work-card:hover .work-card__image img { transform: scale(1.04); }

.work-card__image-overlay {
  position: absolute; inset: 0;
  background: var(--overlay);
  opacity: 0; transition: opacity 0.4s ease;
}
.work-card:hover .work-card__image-overlay { opacity: 1; }

.work-card__info { margin-top: 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.work-card__title { font-size: 15px; font-weight: 400; letter-spacing: -0.01em; color: var(--fg); }
.work-card__meta  { display: flex; gap: 12px; align-items: center; flex-shrink: 0; }
.work-card__category { font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.work-card__year  { font-size: 12px; color: var(--muted); }


/* ======================================
   DESIGN — Project Interior
   ====================================== */

.project-hero { padding-top: 88px; position: relative; }

.project-hero__image {
  width: 100%; height: 80vh; max-height: 680px;
  overflow: hidden; background: var(--surface);
}
.project-hero__image img { object-fit: cover; height: 100%; }

.project-header {
  padding: 48px 48px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start; gap: 40px;
}
.project-header__title { font-size: clamp(36px, 5vw, 72px); font-weight: 300; letter-spacing: -0.04em; line-height: 1.05; }

.project-meta { display: flex; flex-direction: column; gap: 16px; padding-top: 10px; min-width: 200px; }
.project-meta__label { font-size: 10px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.project-meta__value { font-size: 14px; font-weight: 400; color: var(--fg); }

.project-divider { margin: 48px 48px 0; border: none; border-top: 1px solid var(--border); }

.project-body { padding: 64px 48px 0; }

.project-overview { display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; margin-bottom: 96px; }
.project-overview__label { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-top: 6px; }
.project-overview__text p { font-size: 18px; line-height: 1.75; color: var(--subtle); font-weight: 300; margin-bottom: 20px; }
.project-overview__text p strong { color: var(--fg); font-weight: 400; }

.project-section { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-bottom: 96px; }
.project-section--reversed { direction: rtl; }
.project-section--reversed > * { direction: ltr; }

.project-section__label { font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.project-section__heading { font-size: clamp(24px, 3vw, 40px); font-weight: 300; letter-spacing: -0.03em; margin-bottom: 24px; line-height: 1.2; }
.project-section__body { font-size: 15px; line-height: 1.8; color: var(--subtle); }

.project-section__image { width: 100%; aspect-ratio: 4/3; overflow: hidden; background: var(--surface); }
.project-section__image img { transition: transform 0.7s cubic-bezier(0.4,0,0.2,1); }
.project-section:hover .project-section__image img { transform: scale(1.03); }

.project-full-image { width: 100%; aspect-ratio: 16/7; overflow: hidden; background: var(--surface); margin-bottom: 96px; }

.project-gallery { margin-bottom: 96px; }
.project-gallery__label { font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 32px; }

.project-gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.project-gallery__item { overflow: hidden; background: var(--surface); cursor: zoom-in; }
.project-gallery__item:first-child { grid-column: span 2; aspect-ratio: 16/9; }
.project-gallery__item:not(:first-child) { aspect-ratio: 4/3; }
.project-gallery__item img { transition: transform 0.6s cubic-bezier(0.4,0,0.2,1); }
.project-gallery__item:hover img { transform: scale(1.04); }

.project-nav { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--border); margin: 0 48px; }
.project-nav__item { display: flex; flex-direction: column; padding: 40px 0; transition: opacity 0.2s; }
.project-nav__item:last-child { align-items: flex-end; border-left: 1px solid var(--border); padding-left: 48px; }
.project-nav__item:hover { opacity: 0.45; }
.project-nav__direction { font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.project-nav__title { font-size: 18px; font-weight: 300; letter-spacing: -0.02em; }


/* ======================================
   DESIGN — About / CV
   ====================================== */

.about-hero {
  padding: 128px 48px 80px;
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 80px; align-items: start;
}

.about-photo { width: 100%; aspect-ratio: 3/4; overflow: hidden; background: var(--surface); position: sticky; top: 100px; }
.about-photo img { height: 100%; transition: transform 0.7s cubic-bezier(0.4,0,0.2,1); }
.about-photo:hover img { transform: scale(1.03); }

.about-content { padding-top: 8px; }

.about-name { font-size: clamp(48px, 6vw, 84px); font-weight: 300; letter-spacing: -0.04em; line-height: 1.0; margin-bottom: 12px; }
.about-title { font-size: 14px; font-weight: 400; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 48px; }

.about-bio p { font-size: 16px; line-height: 1.8; color: var(--subtle); margin-bottom: 18px; max-width: 580px; }
.about-bio p strong { color: var(--fg); font-weight: 500; }

.about-tags { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px; }
.about-tag {
  display: inline-block; padding: 7px 16px;
  border: 1px solid var(--border); border-radius: 100px;
  font-size: 12px; color: var(--subtle); letter-spacing: 0.02em;
}

.cv-download {
  margin-top: 48px;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 28px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: 13px; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase;
  transition: opacity 0.2s;
}
.cv-download:hover { opacity: 0.7; }
.cv-download-arrow { width: 20px; height: 1px; background: currentColor; position: relative; }
.cv-download-arrow::after {
  content: ''; position: absolute; right: 0; bottom: -3px;
  width: 7px; height: 7px;
  border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}

.cv-section { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--border); }
.cv-section__heading { font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 32px; }
.cv-list { display: flex; flex-direction: column; gap: 32px; }
.cv-item__header { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 6px; }
.cv-item__role { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.cv-item__period { font-size: 12px; color: var(--muted); white-space: nowrap; }
.cv-item__company { font-size: 13px; color: var(--subtle); margin-bottom: 8px; }
.cv-item__desc { font-size: 13px; line-height: 1.7; color: var(--muted); max-width: 520px; }


/* ======================================
   CONTACT — Shared
   ====================================== */

.contact-wrap {
  padding: 128px 48px 120px;
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 120px; align-items: start;
}

.contact-info__label { font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 32px; }
.contact-info__heading { font-size: clamp(36px, 4.5vw, 68px); font-weight: 300; letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 48px; }

.contact-status { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 48px; font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }
.contact-status__dot { width: 7px; height: 7px; border-radius: 50%; background: #4CAF50; animation: pulse 2.5s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.contact-links { display: flex; flex-direction: column; gap: 0; }
.contact-links a { font-size: 15px; padding: 14px 0; border-bottom: 1px solid var(--border); color: var(--fg); transition: opacity 0.2s; }
.contact-links a:hover { opacity: 0.4; }

.contact-form { display: flex; flex-direction: column; }

.form-group { display: flex; flex-direction: column; border-bottom: 1px solid var(--border); }
.form-group label { font-size: 10px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-top: 24px; margin-bottom: 8px; }

.form-group input,
.form-group textarea,
.form-group select {
  background: transparent; border: none; outline: none;
  font-family: inherit; font-size: 15px; padding-bottom: 20px;
  resize: none; -webkit-appearance: none;
  color: var(--fg);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); opacity: 1; }
.form-group select option { background: var(--bg); color: var(--fg); }

.form-group textarea { min-height: 120px; line-height: 1.7; }

.form-submit {
  margin-top: 40px;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 32px; border: none;
  font-family: inherit; font-size: 13px; font-weight: 500;
  letter-spacing: 0.07em; text-transform: uppercase;
  background: var(--btn-bg); color: var(--btn-fg);
  cursor: pointer; transition: opacity 0.2s; align-self: flex-start;
}
.form-submit:hover { opacity: 0.7; }
.form-submit-arrow { width: 24px; height: 1px; background: currentColor; position: relative; }
.form-submit-arrow::after {
  content: ''; position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px;
  border-right: 1px solid currentColor; border-top: 1px solid currentColor;
  transform: rotate(45deg);
}


/* ======================================
   PHOTO — Albums Grid
   ====================================== */

.photo-hero { padding: 128px 48px 64px; }
.photo-hero__label { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.photo-hero__title { font-size: clamp(48px, 7vw, 96px); font-weight: 300; line-height: 1.0; letter-spacing: -0.04em; }

.albums-grid {
  padding: 0 40px 120px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
}

.album-card { display: block; cursor: pointer; }
.album-card__cover { width: 100%; aspect-ratio: 3/2; overflow: hidden; background: var(--surface); position: relative; }
.album-card__cover img { transition: transform 0.7s cubic-bezier(0.4,0,0.2,1), filter 0.5s ease; }
.album-card:hover .album-card__cover img { transform: scale(1.05); filter: brightness(0.72); }

.album-card__overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.4s ease; }
.album-card:hover .album-card__overlay { opacity: 1; }
.album-card__overlay-text { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: #f0f0ee; display: flex; align-items: center; gap: 10px; }
.album-card__overlay-line { width: 24px; height: 1px; background: #f0f0ee; }

.album-card__info { margin-top: 16px; }
.album-card__title { font-size: 15px; font-weight: 400; color: var(--fg); margin-bottom: 6px; }
.album-card__meta { font-size: 12px; color: var(--muted); display: flex; gap: 12px; }


/* ======================================
   PHOTO — Album Interior
   ====================================== */

.album-hero { padding: 128px 48px 64px; }

.album-hero__back {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 48px; transition: color 0.2s;
}
.album-hero__back:hover { color: var(--fg); }

.album-hero__back-line { width: 20px; height: 1px; background: currentColor; position: relative; }
.album-hero__back-line::before {
  content: ''; position: absolute; left: 0; top: -3px;
  width: 7px; height: 7px;
  border-left: 1px solid currentColor; border-top: 1px solid currentColor;
  transform: rotate(-45deg);
}

.album-hero__title { font-size: clamp(36px, 5vw, 72px); font-weight: 300; letter-spacing: -0.04em; margin-bottom: 20px; }
.album-hero__desc { font-size: 15px; line-height: 1.7; color: var(--subtle); max-width: 520px; margin-bottom: 32px; }
.album-hero__meta { display: flex; gap: 24px; font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }

.album-grid { padding: 0 40px 120px; columns: 3; column-gap: 12px; }

.album-photo { break-inside: avoid; margin-bottom: 12px; overflow: hidden; cursor: zoom-in; background: var(--surface); }
.album-photo img { display: block; width: 100%; height: auto; transition: transform 0.6s cubic-bezier(0.4,0,0.2,1); }
.album-photo:hover img { transform: scale(1.03); }

.album-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 40px 48px; border-top: 1px solid var(--border);
}
.album-nav__item { display: flex; flex-direction: column; gap: 6px; transition: opacity 0.2s; }
.album-nav__item--next { align-items: flex-end; }
.album-nav__item:hover { opacity: 0.45; }
.album-nav__direction { font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.album-nav__title { font-size: 15px; font-weight: 300; }


/* ======================================
   LIGHTBOX (always dark)
   ====================================== */

.lightbox {
  position: fixed; inset: 0;
  background: rgba(8, 8, 7, 0.97);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}
.lightbox.is-open { opacity: 1; pointer-events: all; }

.lightbox__inner { max-width: 92vw; max-height: 90vh; position: relative; }
.lightbox__inner img { max-width: 92vw; max-height: 90vh; width: auto; height: auto; object-fit: contain; }

.lightbox__close {
  position: fixed; top: 28px; right: 48px;
  background: none; border: none; color: rgba(255,255,255,0.4);
  font-size: 11px; font-family: inherit; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer; transition: color 0.2s;
}
.lightbox__close:hover { color: rgba(255,255,255,0.9); }

.lightbox__counter {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: 0.1em; color: rgba(255,255,255,0.25);
}

.lightbox__prev,
.lightbox__next {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  opacity: 0.3; transition: opacity 0.2s;
}
.lightbox__prev:hover, .lightbox__next:hover { opacity: 0.9; }
.lightbox__prev { left: 24px; }
.lightbox__next { right: 24px; }
.lightbox__prev::before,
.lightbox__next::before {
  content: ''; display: block;
  width: 11px; height: 11px;
  border-top: 1px solid white;
}
.lightbox__prev::before { border-left: 1px solid white; transform: rotate(-45deg); margin-left: 4px; }
.lightbox__next::before { border-right: 1px solid white; transform: rotate(45deg); margin-right: 4px; }


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

.footer {
  padding: 40px 48px;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border);
}
.footer__copy { font-size: 12px; color: var(--muted); letter-spacing: 0.02em; }
.footer__links { display: flex; gap: 28px; }
.footer__links a { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; transition: opacity 0.2s; }
.footer__links a:hover { opacity: 0.6; }


/* ======================================
   PAGE ENTER
   ====================================== */

.page-enter { animation: pageEnter 0.55s cubic-bezier(0.4,0,0.2,1) forwards; }
@keyframes pageEnter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }


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

@media (max-width: 1100px) {
  .works-grid { grid-template-columns: 1fr 1fr; }
  .work-card--large, .work-card--medium, .work-card--small { grid-column: span 1; }
  .work-card--large:first-child { grid-column: span 2; }
  .albums-grid { grid-template-columns: 1fr 1fr; }
  .project-overview { grid-template-columns: 1fr; gap: 32px; }
  .project-section { grid-template-columns: 1fr; }
  .project-section--reversed { direction: ltr; }
  .project-gallery__grid { grid-template-columns: 1fr 1fr; }
  .project-gallery__item:first-child { grid-column: span 2; }
  .about-hero { grid-template-columns: 1fr; }
  .about-photo { position: static; aspect-ratio: 4/3; max-width: 480px; }
  .contact-wrap { grid-template-columns: 1fr; gap: 64px; }
  .album-grid { columns: 2; }
}

@media (max-width: 768px) {
  .nav { padding: 20px 24px; }
  .nav__links { gap: 20px; }
  .nav__right { gap: 20px; }
  .theme-toggle__label { display: none; }
  .works-hero, .photo-hero, .project-hero, .about-hero, .album-hero { padding-left: 24px; padding-right: 24px; }
  .works-grid, .albums-grid { padding: 0 16px 80px; gap: 16px; }
  .albums-grid { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
  .project-header { padding: 32px 24px 0; grid-template-columns: 1fr; }
  .project-meta { flex-direction: row; flex-wrap: wrap; gap: 24px; padding-top: 0; margin-top: 24px; }
  .project-divider, .project-body { margin-left: 24px; margin-right: 24px; }
  .project-body { padding-top: 40px; }
  .project-full-image { aspect-ratio: 4/3; }
  .project-nav { margin: 0 24px; }
  .project-nav__item:last-child { padding-left: 24px; }
  .project-gallery__grid { grid-template-columns: 1fr; }
  .project-gallery__item:first-child { grid-column: span 1; aspect-ratio: 4/3; }
  .contact-wrap { padding: 100px 24px 80px; gap: 48px; }
  .album-grid { padding: 0 16px 80px; columns: 2; column-gap: 8px; }
  .album-photo { margin-bottom: 8px; }
  .album-nav { padding: 32px 24px; }
  .footer { padding: 32px 24px; flex-direction: column; gap: 12px; }

  .split { flex-direction: column; height: auto; min-height: 100vh; }
  .split__panel { flex: 1 !important; min-height: 50vh; padding: 32px 24px; }
  .split:hover .split__panel:not(:hover),
  .split:hover .split__panel:hover { flex: 1 !important; }
  .split__panel--photo { border-left: none; border-top: 1px solid #e2e2e0; }
}

@media (max-width: 500px) {
  .albums-grid { grid-template-columns: 1fr; }
  .album-grid { columns: 1; }
  .works-grid { grid-template-columns: 1fr; }
  .work-card--large:first-child { grid-column: span 1; }
}
