/* ============================================================
   Matteo Colombo — Photographer
   Editorial · cinematic · single shell SPA
   ============================================================ */

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, picture, svg, video { display: block; max-width: 100%; }
button { background: none; border: 0; font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, button, textarea { font: inherit; }

/* ----- Tokens ----- */
:root {
  --bg:           #16161d;
  --bg-2:         #1d1d24;
  --bg-3:         #25252c;
  --ink:          #f5f4f0;
  --ink-muted:    rgba(245, 244, 240, 0.62);
  --ink-faint:    rgba(245, 244, 240, 0.28);
  --rule:         rgba(245, 244, 240, 0.10);
  --accent:       #d4c5a0;
  --bg-overlay:   rgba(22, 22, 29, 0.88);

  --ff-display:   'Recoleta', 'Times New Roman', serif;
  --ff-body:      'Gordita', system-ui, -apple-system, 'Helvetica Neue', sans-serif;

  --container:    clamp(16px, 4vw, 56px);
  --section-y:    clamp(80px, 12vw, 180px);

  --t-fast:       180ms cubic-bezier(.2,.7,.2,1);
  --t-base:       420ms cubic-bezier(.2,.7,.2,1);
  --t-slow:       820ms cubic-bezier(.2,.7,.2,1);
  --t-cinema:     1100ms cubic-bezier(.7,0,.2,1);

  color-scheme: dark;
}

/* ----- Base ----- */
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-body);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

::selection { background: var(--ink); color: var(--bg); }

a { transition: opacity var(--t-fast), color var(--t-fast); }
a:hover { opacity: 0.7; }

em, .em { font-style: italic; font-family: var(--ff-display); font-weight: 300; }

/* Display helper */
.h-display { font-family: var(--ff-display); font-weight: 300; letter-spacing: -0.015em; line-height: 0.92; }

/* ============================================================
   LOADER
   ============================================================ */
.loader {
  position: fixed; inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: grid;
  place-items: center;
  grid-template-rows: 1fr auto 1fr;
  padding: clamp(24px, 5vw, 56px);
  transition: opacity var(--t-cinema), visibility var(--t-cinema);
}
.loader.is-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader__name {
  grid-row: 2;
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(40px, 9vw, 110px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-align: center;
  display: flex; flex-direction: column;
}
.loader__name span {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  animation: loader-in 1.4s var(--t-cinema) forwards;
}
.loader__name span:nth-child(2) { animation-delay: 220ms; }
@keyframes loader-in {
  to { opacity: 1; transform: translateY(0); }
}
.loader__bar {
  position: absolute;
  left: clamp(24px, 5vw, 56px);
  right: clamp(24px, 5vw, 56px);
  bottom: clamp(60px, 9vw, 110px);
  height: 1px;
  background: var(--rule);
  overflow: hidden;
}
.loader__bar-fill {
  height: 100%;
  width: 0%;
  background: var(--ink);
  transition: width 1.6s cubic-bezier(.7,0,.2,1);
}
.loader__meta {
  position: absolute;
  left: clamp(24px, 5vw, 56px);
  right: clamp(24px, 5vw, 56px);
  bottom: clamp(28px, 4vw, 56px);
  display: flex; justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink);
  pointer-events: none;
  z-index: 900;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: width 240ms var(--t-base), height 240ms var(--t-base), background 240ms var(--t-base);
}
.cursor.is-hover {
  width: 56px; height: 56px;
  background: var(--ink);
}
.cursor.is-hint::after {
  content: attr(data-hint);
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bg);
  mix-blend-mode: difference;
}
@media (pointer: coarse) {
  .cursor { display: none; }
  * { cursor: auto !important; }
}
@media (hover: hover) {
  body { cursor: none; }
  a, button, [data-cursor-hint] { cursor: none; }
}

/* ============================================================
   HEADER (brand-only, no nav tabs)
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px var(--container);
  background: linear-gradient(180deg, rgba(22,22,29,0.55) 0%, transparent 100%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: background var(--t-base), padding var(--t-base), border-color var(--t-base);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(22, 22, 29, 0.85);
  padding: 12px var(--container);
  border-bottom-color: var(--rule);
}
.header__logo {
  display: flex; align-items: baseline; gap: 12px;
  font-family: var(--ff-display);
  letter-spacing: -0.01em;
}
.header__logo span {
  font-size: 22px;
  font-weight: 300;
}
.header__logo em {
  font-family: var(--ff-body);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.header__meta {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

@media (max-width: 560px) {
  .header__logo em { display: none; }
  .header__meta { display: none; }
}

/* ============================================================
   MAIN / VIEW SWITCHING
   ============================================================ */
.main { display: block; padding-top: 0; }
.stage { position: relative; }
.view { display: block; }
.view[hidden] { display: none; }

/* Cinematic transition on route change */
.stage.is-transitioning {
  animation: stage-fade var(--t-cinema);
}
@keyframes stage-fade {
  0%   { opacity: 1; clip-path: inset(0 0 0 0); }
  45%  { opacity: 0; clip-path: inset(50% 0 50% 0); }
  55%  { opacity: 0; clip-path: inset(50% 0 50% 0); }
  100% { opacity: 1; clip-path: inset(0 0 0 0); }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  padding: 0 var(--container) clamp(40px, 5vw, 90px);
  isolation: isolate;
}

.hero__letterbox {
  position: absolute;
  inset: clamp(80px, 11vh, 130px) var(--container) clamp(140px, 18vh, 220px);
  overflow: hidden;
  z-index: -1;
}
.hero__image {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.78) contrast(1.04) saturate(0.95);
  transform: scale(1.04);
  animation: hero-zoom 24s ease-out infinite alternate;
}
@keyframes hero-zoom {
  to { transform: scale(1.12); }
}
.hero__vignette {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(22,22,29,0.45) 0%, transparent 30%, transparent 60%, rgba(22,22,29,0.85) 100%),
    radial-gradient(ellipse at center, transparent 40%, rgba(22,22,29,0.55) 100%);
  pointer-events: none;
}

.hero__content {
  grid-row: 2;
  align-self: end;
  display: grid;
  gap: clamp(12px, 1.5vw, 20px);
  padding-bottom: clamp(20px, 4vw, 60px);
}
.hero__eyebrow {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: flex; gap: 10px; align-items: center;
}
.hero__eyebrow span {
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--ink-muted);
  text-indent: -9999px;
  overflow: hidden;
}

.hero__title {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(56px, 14vw, 220px);
  line-height: 0.86;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.hero__title span {
  display: block;
  mix-blend-mode: difference;
}
.hero__title em { font-style: italic; }

.hero__role {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: clamp(6px, 1vw, 12px);
}
.hero__tagline {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(16px, 1.6vw, 22px);
  color: var(--ink-muted);
  max-width: 28ch;
  line-height: 1.35;
}

.hero__scroll {
  position: absolute;
  bottom: clamp(36px, 6vh, 70px);
  right: var(--container);
  display: grid;
  gap: 16px;
  justify-items: center;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: center;
}
@media (max-width: 560px) {
  .hero__scroll { right: 50%; transform: translateX(50%); }
  .hero__scroll-label { letter-spacing: 0.18em; }
}
.hero__scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(180deg, var(--ink-muted), transparent);
  animation: scroll-line 1.8s infinite;
}
@keyframes scroll-line {
  0%   { transform: scaleY(0.4); transform-origin: top; }
  50%  { transform: scaleY(1);   transform-origin: top; }
  51%  { transform: scaleY(1);   transform-origin: bottom; }
  100% { transform: scaleY(0.4); transform-origin: bottom; }
}

/* ============================================================
   WORK GRID (six categories)
   ============================================================ */
.work {
  padding: var(--section-y) var(--container);
  border-top: 1px solid var(--rule);
}
.work__header {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2vw, 30px);
  margin-bottom: clamp(48px, 7vw, 100px);
}
.work__eyebrow {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.work__title {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(40px, 7vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  max-width: 14ch;
}
.work__lead {
  color: var(--ink-muted);
  max-width: 56ch;
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.6;
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px);
}

.work__card {
  position: relative;
}

.work__card-link {
  display: block;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.work__card-figure {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-2);
}
.work__card-figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.8) contrast(1.04);
  transform: scale(1.02);
  transition: transform 1.6s var(--t-cinema), filter var(--t-cinema);
}
.work__card-link:hover .work__card-figure img,
.work__card-link:focus-visible .work__card-figure img {
  transform: scale(1.06);
  filter: brightness(0.95) contrast(1.05);
}

/* Bottom-edge gradient fading the image into the page background */
.work__card-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 70%;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(22, 22, 29, 0) 0%,
    rgba(22, 22, 29, 0.55) 45%,
    rgba(22, 22, 29, 0.92) 80%,
    var(--bg) 100%
  );
}

.work__card-meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: grid;
  gap: 8px;
  padding: clamp(18px, 2vw, 28px) clamp(18px, 2vw, 28px) clamp(20px, 2.4vw, 32px);
  pointer-events: none;
  z-index: 2;
}
.work__card-num {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.28em;
  font-feature-settings: 'tnum' 1;
  color: var(--ink-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.work__card-title {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(28px, 3.2vw, 44px);
  letter-spacing: -0.02em;
  line-height: 0.95;
  color: var(--ink);
}
.work__card-blurb {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-muted);
  max-width: 38ch;
  margin-bottom: 2px;
}
.work__card-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  pointer-events: none;
  transition: gap var(--t-base), border-color var(--t-base), color var(--t-base);
}
.work__card-cta svg {
  transition: transform var(--t-base);
}
.work__card-link:hover .work__card-cta,
.work__card-link:focus-visible .work__card-cta {
  gap: 22px;
  border-color: var(--ink);
}
.work__card-link:hover .work__card-cta svg,
.work__card-link:focus-visible .work__card-cta svg {
  transform: translateX(4px);
}

@media (max-width: 1100px) {
  .work__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .work__grid { grid-template-columns: 1fr; gap: 28px; }
  .work__card-figure { aspect-ratio: 4 / 5; }
  .work__card-title { font-size: clamp(28px, 8vw, 42px); }
}

/* ============================================================
   CATEGORY PAGE
   ============================================================ */
.category {
  padding: clamp(140px, 18vh, 220px) var(--container) var(--section-y);
}
.category__header {
  display: grid;
  gap: clamp(20px, 2.5vw, 36px);
  margin-bottom: clamp(48px, 7vw, 100px);
  max-width: 1100px;
}
.category__back {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.category__eyebrow {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.category__title {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(56px, 12vw, 180px);
  line-height: 0.9;
  letter-spacing: -0.025em;
}
.category__lead {
  color: var(--ink-muted);
  max-width: 60ch;
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 1.6;
}

/* Tiles (sub-projects inside a category) */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: clamp(32px, 4vw, 64px);
}
.tile { position: relative; }
.tile__link { display: block; }
.tile__figure {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-2);
  margin-bottom: 20px;
}
.tile__figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.86);
  transition: transform 1.4s var(--t-cinema), filter var(--t-cinema);
  transform: scale(1.02);
}
.tile__link:hover .tile__figure img {
  transform: scale(1.07);
  filter: brightness(0.72);
}
.tile__title {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(24px, 2.4vw, 36px);
  letter-spacing: -0.015em;
  line-height: 1;
}
.tile__desc {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 50ch;
}

/* Direct gallery inside category (when no sub-projects) */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 2.4vw, 40px) clamp(16px, 2vw, 28px);
}
.gallery-item { display: block; }
.gallery-item figure { position: relative; overflow: hidden; background: var(--bg-2); }
.gallery-item img {
  width: 100%; height: auto;
  display: block;
  filter: brightness(0.92);
  transition: filter var(--t-base), transform var(--t-cinema);
}
.gallery-item:hover img { filter: brightness(1); transform: scale(1.02); }

/* Editorial layout pattern — alternating widths for cinematic rhythm */
.gallery--rhythm .gallery-item:nth-child(8n+1) { grid-column: 1 / span 7; }
.gallery--rhythm .gallery-item:nth-child(8n+2) { grid-column: 8 / span 5; }
.gallery--rhythm .gallery-item:nth-child(8n+3) { grid-column: 1 / span 5; }
.gallery--rhythm .gallery-item:nth-child(8n+4) { grid-column: 6 / span 7; }
.gallery--rhythm .gallery-item:nth-child(8n+5) { grid-column: 1 / span 12; }
.gallery--rhythm .gallery-item:nth-child(8n+6) { grid-column: 1 / span 6; }
.gallery--rhythm .gallery-item:nth-child(8n+7) { grid-column: 7 / span 6; }
.gallery--rhythm .gallery-item:nth-child(8n)   { grid-column: 3 / span 8; }

@media (max-width: 900px) {
  .gallery, .gallery--rhythm { grid-template-columns: 1fr; }
  .gallery--rhythm .gallery-item { grid-column: 1 / -1 !important; }
}

/* ============================================================
   PROJECT PAGE
   ============================================================ */
.project {
  padding: clamp(140px, 18vh, 220px) var(--container) var(--section-y);
}
.project__header {
  display: grid;
  gap: clamp(16px, 2vw, 28px);
  margin-bottom: clamp(40px, 5vw, 70px);
  max-width: 1100px;
}
.project__back {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  width: max-content;
}
.project__eyebrow {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.project__title {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(40px, 8vw, 120px);
  line-height: 0.92;
  letter-spacing: -0.025em;
}
.project__description {
  color: var(--ink-muted);
  max-width: 56ch;
  font-size: clamp(15px, 1.15vw, 18px);
  font-family: var(--ff-display);
  font-style: italic;
  line-height: 1.45;
}

.project__hero {
  margin: clamp(40px, 6vw, 90px) calc(-1 * var(--container)) clamp(60px, 8vw, 120px);
  background: var(--bg-2);
  overflow: hidden;
}
.project__hero img {
  width: 100%; height: auto;
  display: block;
  max-height: 92vh;
  object-fit: cover;
}

.project__gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 2.4vw, 40px) clamp(16px, 2vw, 28px);
}
.project__gallery .gallery-item { cursor: pointer; }

.project__footer {
  margin-top: clamp(60px, 8vw, 120px);
  padding-top: clamp(40px, 5vw, 60px);
  border-top: 1px solid var(--rule);
}
.project__back--bottom { display: inline-block; }

/* Project gallery rhythm */
.project__gallery .gallery-item:nth-child(6n+1) { grid-column: 1 / span 8; }
.project__gallery .gallery-item:nth-child(6n+2) { grid-column: 9 / span 4; align-self: end; }
.project__gallery .gallery-item:nth-child(6n+3) { grid-column: 1 / span 5; }
.project__gallery .gallery-item:nth-child(6n+4) { grid-column: 6 / span 7; }
.project__gallery .gallery-item:nth-child(6n+5) { grid-column: 1 / span 12; }
.project__gallery .gallery-item:nth-child(6n)   { grid-column: 4 / span 6; }

@media (max-width: 900px) {
  .project__gallery { grid-template-columns: 1fr; }
  .project__gallery .gallery-item { grid-column: 1 / -1 !important; }
  .project__hero { margin-left: 0; margin-right: 0; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 110px);
  align-items: center;
  padding: clamp(140px, 18vh, 220px) var(--container) var(--section-y);
  max-width: 1400px;
  margin: 0 auto;
}
.about__image-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-2);
}
.about__image {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.92);
  transform: scale(1.02);
  transition: transform var(--t-slow);
}
.about__image-wrap:hover .about__image { transform: scale(1.05); }
.about__content { display: grid; gap: clamp(16px, 2vw, 28px); }
.about__eyebrow {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.about__headline {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.about__bio p {
  color: var(--ink-muted);
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.65;
  margin-bottom: 1em;
  max-width: 56ch;
}
.about__cv {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 10px;
  width: max-content;
  transition: gap var(--t-base), border-color var(--t-base);
}
.about__cv:hover { gap: 28px; border-color: var(--ink); opacity: 1; }

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about__image-wrap { max-width: 360px; }
}

/* ============================================================
   MA
   ============================================================ */
.ma {
  padding: clamp(140px, 18vh, 220px) var(--container) var(--section-y);
  max-width: 1400px;
  margin: 0 auto;
}
.ma__header {
  display: grid;
  gap: clamp(20px, 3vw, 40px);
  margin-bottom: clamp(60px, 8vw, 110px);
}
.ma__eyebrow {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.ma__title {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(120px, 28vw, 380px);
  line-height: 0.8;
  letter-spacing: -0.04em;
}
.ma__quote {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.3;
  max-width: 26ch;
  padding-left: clamp(20px, 3vw, 40px);
  border-left: 1px solid var(--rule);
}
.ma__quote cite {
  display: block;
  margin-top: 18px;
  font-family: var(--ff-body);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.ma__body {
  columns: 2 28ch;
  column-gap: clamp(30px, 4vw, 60px);
  margin-bottom: clamp(60px, 9vw, 120px);
  color: var(--ink-muted);
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.7;
}
.ma__body p { margin-bottom: 1em; break-inside: avoid; }
.ma__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3vw, 56px);
}
.ma__cell figure { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2); cursor: pointer; }
.ma__cell img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.78) contrast(1.06);
  transform: scale(1.02);
  transition: transform var(--t-cinema), filter var(--t-cinema);
}
.ma__cell:hover img { transform: scale(1.07); filter: brightness(0.92); }
.ma__cell figcaption {
  position: absolute;
  bottom: 14px; left: 16px;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  mix-blend-mode: difference;
  opacity: 0.85;
}

@media (max-width: 900px) {
  .ma__body { columns: 1; }
}
@media (max-width: 600px) {
  .ma__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  min-height: calc(100vh - 120px);
  min-height: calc(100svh - 120px);
  display: grid;
  align-content: center;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(140px, 18vh, 220px) var(--container) var(--section-y);
  max-width: 1400px;
  margin: 0 auto;
}
.contact__eyebrow {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.contact__headline {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(48px, 10vw, 160px);
  line-height: 0.9;
  letter-spacing: -0.025em;
}
.contact__body {
  color: var(--ink-muted);
  max-width: 56ch;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.6;
}
.contact__links {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 3vw, 50px);
  margin-top: clamp(20px, 3vw, 40px);
}
.contact__link {
  font-family: var(--ff-display);
  font-size: clamp(24px, 3vw, 44px);
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 10px;
  transition: border-color var(--t-base), padding-left var(--t-base);
}
.contact__link:hover { border-color: var(--ink); padding-left: 12px; opacity: 1; }

.contact__note {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: clamp(40px, 6vw, 90px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: clamp(28px, 4vw, 40px) var(--container);
  border-top: 1px solid var(--rule);
  background: var(--bg);
}
.footer__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.footer__row + .footer__row {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.footer__row--credit { color: var(--ink-faint); }
.footer__top { color: var(--ink); }

@media (max-width: 600px) {
  .footer__row { flex-direction: column; gap: 8px; text-align: center; }
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed; inset: 0;
  z-index: 800;
  background: var(--bg-overlay);
  backdrop-filter: blur(20px) saturate(0.9);
  -webkit-backdrop-filter: blur(20px) saturate(0.9);
  display: grid;
  place-items: center;
  padding: clamp(48px, 8vh, 90px) clamp(48px, 8vw, 120px);
  opacity: 0;
  transition: opacity var(--t-base);
}
.lightbox[hidden] { display: none !important; }
.lightbox.is-open { opacity: 1; }

.lightbox__figure {
  display: grid;
  place-items: center;
  max-width: 100%;
  max-height: 100%;
  position: relative;
}
.lightbox__figure img {
  max-width: 90vw;
  max-height: 80vh;
  width: auto; height: auto;
  display: block;
  background: var(--bg-2);
}
.lightbox__figure figcaption {
  margin-top: 16px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: center;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  transition: opacity var(--t-fast), background var(--t-fast);
  border-radius: 50%;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: var(--bg-3); }
.lightbox__close { top: 24px; right: 24px; }
.lightbox__nav--prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__count {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-muted);
  font-feature-settings: 'tnum' 1;
}

@media (max-width: 600px) {
  .lightbox { padding: 80px 12px; }
  .lightbox__nav { width: 44px; height: 44px; font-size: 22px; }
  .lightbox__nav--prev { left: 4px; }
  .lightbox__nav--next { right: 4px; }
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms var(--t-cinema), transform 900ms var(--t-cinema);
  will-change: opacity, transform;
}
[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Inline home overrides
   When About / MA / Contact live inside the home scroll, the heavy
   "page entrance" top padding becomes redundant — sections flow
   continuously and use --section-y consistently instead.
   ============================================================ */
.view--home > .about,
.view--home > .ma,
.view--home > .contact {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.view--home > .about,
.view--home > .ma {
  border-top: 1px solid var(--rule);
}
.view--home > .contact {
  border-top: 1px solid var(--rule);
  min-height: auto;
}
.view--home > .contact .contact__headline + .contact__body {
  margin-top: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero__image, .hero__scroll-line { animation: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
