
:root {
  --bg: #0a0a0a;
  --surface: #111;
  --text: #f4f1eb;
  --muted: #aaa7a1;
  --line: rgba(255,255,255,.18);
  --header-h: 78px;
  --page-pad: clamp(20px, 4vw, 68px);
  --gap: clamp(14px, 2.2vw, 36px);
  --ease: cubic-bezier(.22,.61,.36,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.menu-open, body.lightbox-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { max-width: 100%; display: block; }
::selection { color: #0a0a0a; background: #f4f1eb; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  padding: 0 var(--page-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  mix-blend-mode: difference;
  color: #fff;
  transition: background .35s var(--ease), color .35s var(--ease), mix-blend-mode .35s;
}
.site-header.is-solid { background: rgba(10,10,10,.92); backdrop-filter: blur(12px); mix-blend-mode: normal; }
.brand {
  position: relative;
  z-index: 102;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-nav { display: flex; align-items: center; gap: clamp(18px, 2vw, 34px); }
.site-nav a { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; position: relative; }
.site-nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1px; background: currentColor; transition: right .25s var(--ease); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { right: 0; }
.menu-toggle { display: none; border: 0; background: transparent; padding: 12px 0 12px 16px; z-index: 102; cursor: pointer; }
.menu-toggle__label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.menu-toggle__icon { display: inline-flex; width: 22px; height: 12px; margin-left: 10px; flex-direction: column; justify-content: space-between; vertical-align: middle; }
.menu-toggle__icon i { height: 1px; width: 100%; background: currentColor; transition: transform .3s var(--ease); transform-origin: center; }
.menu-open .menu-toggle__icon i:first-child { transform: translateY(5.5px) rotate(45deg); }
.menu-open .menu-toggle__icon i:last-child { transform: translateY(-5.5px) rotate(-45deg); }

.eyebrow { margin: 0 0 1rem; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.home-hero, .gallery-hero { min-height: 100svh; position: relative; overflow: hidden; }
.home-hero__media, .gallery-hero__media, .project-card__media, .about-layout__image { position: absolute; inset: 0; background-size: cover; background-position: center; }
.home-hero__media, .gallery-hero__media { background-image: var(--hero-desktop); background-position: var(--hero-position-desktop, center); }
.project-card__media { background-image: var(--card-desktop); }
.home-hero__media { transform: scale(1.02); animation: hero-in 1.4s var(--ease) both; }
@keyframes hero-in { from { opacity: 0; transform: scale(1.07); } to { opacity: 1; transform: scale(1.02); } }
.home-hero__shade, .gallery-hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.58) 0%, rgba(0,0,0,.18) 55%, rgba(0,0,0,.08) 100%); }
.home-hero__content { position: absolute; left: var(--page-pad); right: var(--page-pad); bottom: clamp(38px, 8vh, 110px); z-index: 2; }
.home-hero h1 { margin: 0; max-width: 980px; font-size: clamp(54px, 8.4vw, 138px); line-height: .9; letter-spacing: -.055em; font-weight: 500; }
.scroll-cue { display: inline-flex; gap: 18px; margin-top: clamp(28px, 5vh, 64px); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }

.work-index { padding: clamp(90px, 12vw, 190px) var(--page-pad); }
.section-intro { display: grid; grid-template-columns: 1fr 2fr; align-items: end; margin-bottom: clamp(50px, 7vw, 110px); }
.section-intro h2 { margin: 0; font-size: clamp(38px, 6vw, 90px); line-height: .96; letter-spacing: -.045em; font-weight: 500; }
.project-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.project-card { position: relative; overflow: hidden; min-height: min(74vh, 840px); background: #171717; }
.project-card:nth-child(1) { grid-column: 1 / span 7; }
.project-card:nth-child(2) { grid-column: 8 / -1; margin-top: 16vh; }
.project-card:nth-child(3) { grid-column: 1 / span 5; margin-top: 4vh; }
.project-card:nth-child(4) { grid-column: 6 / -1; margin-top: 18vh; }
.project-card:nth-child(5) { grid-column: 2 / span 8; margin-top: 5vh; }
.project-card__media { transition: transform .8s var(--ease), filter .45s; }
.project-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.64), rgba(0,0,0,.02) 62%); }
.project-card__content { position: absolute; z-index: 2; left: clamp(20px, 2.5vw, 42px); right: clamp(20px, 2.5vw, 42px); bottom: clamp(20px, 2.5vw, 42px); }
.project-card h3 { margin: 0; font-size: clamp(38px, 4vw, 70px); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.project-card p { max-width: 420px; margin: 12px 0 0; color: rgba(255,255,255,.78); }
.project-card:hover .project-card__media { transform: scale(1.035); filter: saturate(.92); }
.home-statement { min-height: 70svh; display: grid; place-content: center; text-align: center; padding: 80px var(--page-pad); border-top: 1px solid var(--line); }
.home-statement p { max-width: 1100px; margin: 0; font-size: clamp(40px, 6.3vw, 100px); line-height: 1; letter-spacing: -.05em; }
.text-link { display: inline-block; margin-top: 42px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }

.gallery-hero { min-height: 66svh; }
.gallery-hero__media { background-size: cover; background-position: center; }
.gallery-hero__shade { background: linear-gradient(0deg, rgba(0,0,0,.62), rgba(0,0,0,.04) 68%); }
.gallery-hero__content { position: absolute; left: var(--page-pad); right: var(--page-pad); bottom: clamp(34px, 6vw, 90px); z-index: 2; }
.gallery-hero h1 { margin: 0; font-size: clamp(72px, 12vw, 184px); line-height: .82; letter-spacing: -.06em; font-weight: 500; }
.gallery-hero__content > p:last-child { margin: 24px 0 0; max-width: 560px; color: rgba(255,255,255,.82); font-size: clamp(16px, 1.4vw, 22px); }
.gallery-content { padding: clamp(54px, 7vw, 105px) var(--page-pad); }
.gallery-rows { column-count: 3; column-gap: clamp(12px, 1.5vw, 24px); max-width: 1500px; margin: 0 auto; }
.gallery-item { display: inline-block; width: 100%; margin: 0 0 clamp(12px, 1.5vw, 24px); position: relative; overflow: hidden; background: #141414; cursor: zoom-in; break-inside: avoid; }
.gallery-item img { display: block; width: 100%; height: auto; transition: transform .6s var(--ease), opacity .35s; }
.gallery-item:hover img { transform: scale(1.012); }
.gallery-item button { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.next-project { border-top: 1px solid var(--line); padding: clamp(70px, 10vw, 150px) var(--page-pad); }
.next-project a { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.next-project small { display: block; margin-bottom: 18px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.next-project strong { display: block; font-size: clamp(54px, 10vw, 150px); font-weight: 500; line-height: .8; letter-spacing: -.06em; }
.next-project span { font-size: clamp(30px, 5vw, 80px); }

.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(7,7,7,.97); display: grid; grid-template-columns: 80px 1fr 80px; align-items: center; padding: 68px 24px 24px; }
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; height: calc(100svh - 100px); display: flex; align-items: center; justify-content: center; flex-direction: column; }
.lightbox__figure img { max-width: 100%; max-height: calc(100% - 40px); object-fit: contain; }
.lightbox__figure figcaption { margin-top: 15px; color: var(--muted); font-size: 12px; }
.lightbox__close { position: absolute; top: 22px; right: 26px; border: 0; background: transparent; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.lightbox__arrow { border: 0; background: transparent; font-size: 38px; cursor: pointer; padding: 20px; }

.text-page { padding: calc(var(--header-h) + clamp(60px, 8vw, 120px)) var(--page-pad) clamp(90px, 12vw, 180px); }
.text-page__intro { display: grid; grid-template-columns: 1fr 2fr; margin-bottom: clamp(70px, 11vw, 170px); }
.text-page__intro h1 { margin: 0; font-size: clamp(64px, 10vw, 155px); line-height: .84; letter-spacing: -.06em; font-weight: 500; }
.about-layout { display: grid; grid-template-columns: minmax(280px,.78fr) minmax(0,1.22fr); gap: clamp(48px, 7vw, 130px); align-items: start; }
.about-layout__image { position: sticky; top: calc(var(--header-h) + 32px); aspect-ratio: 2/3; max-width: 520px; width: 100%; background-position: center; }
.about-layout__copy { max-width: 880px; }
.about-layout__copy p { margin: 0 0 1.55em; font-size: clamp(17px, 1.35vw, 22px); line-height: 1.58; letter-spacing: -.01em; }
.about-layout__copy p:first-child { font-size: clamp(28px, 3vw, 46px); line-height: 1.15; letter-spacing: -.035em; margin-bottom: 1.1em; }
.about-layout__copy p:last-of-type { margin-bottom: 0; }
.about-layout__meta { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 48px; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.contact-page { min-height: 100svh; padding: calc(var(--header-h) + clamp(70px, 9vw, 140px)) var(--page-pad) clamp(70px, 9vw, 140px); display: flex; flex-direction: column; }
.contact-page h1 { margin: 0; max-width: 1350px; font-size: clamp(58px, 10.5vw, 170px); line-height: .84; letter-spacing: -.06em; font-weight: 500; }
.contact-page__details { margin-top: auto; padding-top: 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; }
.contact-page__details a { font-size: clamp(20px, 2.3vw, 38px); border-bottom: 1px solid var(--line); padding: 18px 0; }
.contact-page__note { margin: 30px 0 0; color: var(--muted); font-size: 12px; }
.contact-page__note code { color: var(--text); }

.site-footer { padding: 38px var(--page-pad); display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.site-footer p { margin: 0; text-align: center; }
.site-footer p:last-child { text-align: right; }
.site-footer__brand { color: var(--text); font-weight: 700; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
  :root { --header-h: 70px; }
  .menu-toggle { display: block; }
  .site-header { mix-blend-mode: normal; }
  .site-nav {
    position: fixed; inset: 0; background: #0a0a0a; padding: calc(var(--header-h) + 30px) var(--page-pad) 50px;
    display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px;
    opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .3s, visibility .3s, transform .3s;
  }
  .menu-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .site-nav a { font-size: clamp(34px, 6.5vw, 70px); line-height: 1.08; letter-spacing: -.035em; text-transform: none; }
  .site-nav a::after { display: none; }
  .project-card:nth-child(n) { min-height: 60vh; }
  .project-card:nth-child(1) { grid-column: 1 / span 7; }
  .project-card:nth-child(2) { grid-column: 8 / -1; margin-top: 10vh; }
  .project-card:nth-child(3) { grid-column: 1 / span 6; }
  .project-card:nth-child(4) { grid-column: 7 / -1; margin-top: 10vh; }
  .project-card:nth-child(5) { grid-column: 2 / span 9; }
  .about-layout { grid-template-columns: minmax(260px,.8fr) minmax(0,1.2fr); }
  .gallery-rows { column-count: 2; }
}

@media (max-width: 760px) {
  :root { --page-pad: 18px; --gap: 12px; --header-h: 64px; }
  .site-header { padding-left: 18px; padding-right: 18px; }
  .brand { font-size: 12px; }
  .home-hero { min-height: 100svh; }
  .home-hero__media, .gallery-hero__media { background-image: var(--hero-mobile); background-position: var(--hero-position-mobile, center); }
  .project-card__media { background-image: var(--card-mobile); }
  .home-hero__shade { background: linear-gradient(0deg, rgba(0,0,0,.65), rgba(0,0,0,.05) 72%); }
  .home-hero__content { bottom: 38px; }
  .home-hero h1 { font-size: clamp(48px, 16vw, 78px); max-width: 95%; }
  .scroll-cue { margin-top: 30px; }
  .work-index { padding-top: 86px; padding-bottom: 100px; }
  .section-intro { grid-template-columns: 1fr; gap: 28px; margin-bottom: 50px; }
  .project-grid { display: flex; flex-direction: column; gap: 18px; }
  .project-card:nth-child(n) { margin: 0; min-height: 68svh; }
  .project-card h3 { font-size: 46px; }
  .project-card p { font-size: 14px; }
  .home-statement { min-height: 66svh; }
  .home-statement p { font-size: clamp(36px, 12vw, 58px); }
  .gallery-hero { min-height: 62svh; }
  .gallery-hero h1 { font-size: clamp(64px, 22vw, 104px); }
  .gallery-hero__content > p:last-child { margin-top: 16px; font-size: 15px; }
  .gallery-content { padding-top: 58px; padding-bottom: 90px; }
  .gallery-rows { column-count: 1; }
  .gallery-item { margin-bottom: 18px; }
  .next-project a { align-items: center; }
  .next-project strong { font-size: clamp(48px, 17vw, 82px); }
  .lightbox { grid-template-columns: 1fr; padding: 64px 12px 78px; }
  .lightbox__figure { height: calc(100svh - 142px); }
  .lightbox__arrow { position: absolute; bottom: 18px; font-size: 28px; }
  .lightbox__arrow--prev { left: 18px; }
  .lightbox__arrow--next { right: 18px; }
  .text-page { padding-top: calc(var(--header-h) + 56px); }
  .text-page__intro { grid-template-columns: 1fr; gap: 34px; margin-bottom: 64px; }
  .text-page__intro h1 { font-size: clamp(62px, 20vw, 96px); }
  .about-layout { grid-template-columns: 1fr; gap: 48px; }
  .about-layout__image { position: relative; top: auto; aspect-ratio: 2/3; max-width: 100%; }
  .about-layout__copy p { font-size: 17px; line-height: 1.6; }
  .about-layout__copy p:first-child { font-size: 32px; line-height: 1.18; }
  .contact-page { min-height: 100svh; }
  .contact-page h1 { font-size: clamp(54px, 18vw, 90px); }
  .contact-page__details { grid-template-columns: 1fr; margin-top: 80px; padding-top: 0; }
  .site-footer { grid-template-columns: 1fr 1fr; gap: 14px; }
  .site-footer p:nth-child(2) { display: none; }
}


/* Finetuning: reliable project covers, mobile navigation and contact links */
.project-card__media {
  display: block;
  overflow: hidden;
  background: #171717;
}
.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .8s var(--ease), filter .45s;
}
.project-card:hover .project-card__media img {
  transform: scale(1.035);
  filter: saturate(.92);
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
}
.contact-link--instagram svg {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

@media (max-width: 1100px) {
  .menu-open .site-header {
    background: #0a0a0a;
    backdrop-filter: none;
  }
  .site-nav {
    z-index: 101;
    height: 100svh;
    overflow-y: auto;
    justify-content: flex-start;
    padding-top: calc(var(--header-h) + 46px);
    padding-bottom: max(42px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 760px) {
  .site-header {
    background: rgba(10,10,10,.96);
    backdrop-filter: blur(10px);
  }
  .site-nav {
    gap: 5px;
    padding-left: 22px;
    padding-right: 22px;
  }
  .site-nav a {
    font-size: clamp(31px, 10.5vw, 48px);
    line-height: 1.08;
    padding: 3px 0;
  }
  .project-card__media {
    background-image: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* V4: uncropped category covers and a curated opening pair in People */
.project-card {
  min-height: 0 !important;
  overflow: hidden;
}
.project-card__media {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
}
.project-card__media img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}
.project-card::after {
  pointer-events: none;
}

.gallery-featured-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 24px);
  max-width: 1500px;
  margin: 0 auto clamp(12px, 1.5vw, 24px);
  align-items: start;
}
.gallery-featured-pair .gallery-item {
  margin: 0;
}
.gallery-featured-pair .gallery-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 760px) {
  .project-card:nth-child(n) {
    min-height: 0 !important;
  }
  .gallery-featured-pair {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 18px;
  }
}


/* V5: balanced homepage category grid */
.page-home .project-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(18px, 2.3vw, 34px);
  max-width: 1540px;
  margin-inline: auto;
  align-items: start;
}
.page-home .project-card:nth-child(1) { grid-column: 1 / span 2; }
.page-home .project-card:nth-child(2) { grid-column: 3 / span 2; }
.page-home .project-card:nth-child(3) { grid-column: 5 / span 2; }
.page-home .project-card:nth-child(4) { grid-column: 2 / span 2; }
.page-home .project-card:nth-child(5) { grid-column: 4 / span 2; }

.page-home .project-card:nth-child(n) {
  width: 100%;
  margin: 0;
  min-height: 0 !important;
  aspect-ratio: 2 / 3;
}
.page-home .project-card__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.page-home .project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.page-home .project-card__content {
  padding-top: 60px;
}
.page-home .project-card h3 {
  font-size: clamp(34px, 3.3vw, 58px);
}
.page-home .project-card p {
  font-size: clamp(13px, 1.05vw, 16px);
  line-height: 1.45;
}

@media (max-width: 1100px) {
  .page-home .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-home .project-card:nth-child(n) {
    grid-column: auto;
  }
  .page-home .project-card:nth-child(5) {
    grid-column: 1 / -1;
    width: calc((100% - clamp(18px, 2.3vw, 34px)) / 2);
    justify-self: center;
  }
}

@media (max-width: 760px) {
  .page-home .project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .page-home .project-card:nth-child(n),
  .page-home .project-card:nth-child(5) {
    grid-column: auto;
    width: 100%;
    aspect-ratio: 2 / 3;
  }
  .page-home .project-card h3 {
    font-size: clamp(38px, 13vw, 52px);
  }
}

/* V6: one-line desktop About heading and a balanced People opening row */
@media (min-width: 1101px) {
  .page-text .text-page__intro {
    grid-template-columns: minmax(120px, .55fr) minmax(0, 4fr);
    column-gap: clamp(24px, 4vw, 72px);
  }
  .page-text .text-page__intro h1 {
    white-space: nowrap;
    font-size: clamp(58px, 7.4vw, 118px);
  }
}

.gallery-featured-people {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(12px, 1.5vw, 24px);
  max-width: 1500px;
  margin: 0 auto clamp(12px, 1.5vw, 24px);
  align-items: stretch;
}
.gallery-featured-people:empty {
  display: none;
}
.gallery-featured-people .gallery-item {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
}
.gallery-featured-people .gallery-item:first-child {
  aspect-ratio: 3 / 2;
}
.gallery-featured-people .gallery-item button,
.gallery-featured-people .gallery-item img {
  width: 100%;
  height: 100%;
}
.gallery-featured-people .gallery-item img {
  object-fit: cover;
  object-position: center;
}

@media (max-width: 760px) {
  .page-text .text-page__intro h1 {
    white-space: normal;
  }
  .gallery-featured-people {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 18px;
  }
  .gallery-featured-people .gallery-item:first-child {
    aspect-ratio: 3 / 2;
  }
  .gallery-featured-people .gallery-item:nth-child(2) {
    aspect-ratio: 2 / 3;
  }
}
