/* ============================================================
   COLE — Exhibition Catalogue Direction
   Full-screen project chapters, a persistent book spine,
   and image-led editorial pacing.
   ============================================================ */

:root {
  --ex-ink: #080808;
  --ex-paper: #F7F6F2;
  --ex-bone: #E8E5DF;
  --ex-linen: #D7D3CA;
  --ex-muted: #77736C;
  --font-accent: "Bodoni Moda", "Times New Roman", serif;
}

body {
  padding-left: 44px;
  background: var(--ex-paper);
}

/* ---------- persistent book spine ---------- */
.spine {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 800;
  width: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 16px;
  background: var(--ex-ink);
  color: var(--white);
  border-right: 1px solid #242424;
  pointer-events: none;
}
.spine__brand,
.spine__folio {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.spine__brand { transform: rotate(180deg); }
.spine__folio { color: #8E8E8E; }
.spine__track {
  position: relative;
  width: 1px;
  height: 30vh;
  overflow: hidden;
  background: #3A3A3A;
}
.spine__progress {
  position: absolute;
  inset: 0;
  display: block;
  background: var(--white);
  transform: scaleY(0);
  transform-origin: top;
}

/* ---------- navigation over the cover ---------- */
.header { left: 44px; color: var(--white); }
.header__brand,
.header__link { color: inherit; }
.header__brand span { color: rgba(255,255,255,0.56); }
.header__link::after { background: currentColor; }
.header__cta {
  background: var(--white);
  color: var(--black);
  box-shadow: inset 0 0 0 1.5px var(--white);
}
.header__cta:hover { background: transparent; color: var(--white); }
.header__menu-btn { color: inherit; }
.header__menu-btn span { background: currentColor; }
.header.is-scrolled {
  color: var(--black);
  background: rgba(247, 246, 242, 0.94);
  box-shadow: 0 1px 0 #D7D4CC;
}
.header.is-scrolled .header__brand span { color: var(--grey-1); }
.header.is-scrolled .header__cta {
  background: var(--black);
  color: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--black);
}
.header.is-scrolled .header__cta:hover {
  background: transparent;
  color: var(--black);
}

/* ---------- cover / hero ---------- */
.hero {
  position: relative;
  display: block;
  min-height: 100vh;
  min-height: 100svh;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  background: var(--ex-ink);
  color: var(--white);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
  overflow: hidden;
  background: #CFCFCF;
}
.hero__media::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -25%;
  bottom: -25%;
  left: 35%;
  width: 22%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.13), transparent);
  transform: translateX(-180%) skewX(-16deg);
  animation: hero-light-pass 2.1s 0.35s ease-out both;
  pointer-events: none;
}
@keyframes hero-light-pass {
  to { transform: translateX(430%) skewX(-16deg); }
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8,8,8,1) 0%, rgba(8,8,8,0.96) 24%, rgba(8,8,8,0.78) 42%, rgba(8,8,8,0.3) 65%, rgba(8,8,8,0.08) 100%),
    linear-gradient(0deg, rgba(8,8,8,0.28) 0%, transparent 34%);
  pointer-events: none;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% center;
}
@media (prefers-reduced-motion: reduce) {
  .hero__media::before { animation: none; display: none; }
}

/* Portfolio-led hero: book covers enter once, without a scroll animation loop. */
.hero__media--books {
  background: radial-gradient(circle at 79% 44%, #3c3d39 0, #202322 38%, #0b0b0b 78%);
}
.hero__media--books::before { display: none; }
.hero__media--books::after {
  z-index: 2;
  background: linear-gradient(90deg, #0b0b0b 0%, rgba(11,11,11,.96) 34%, rgba(11,11,11,.55) 53%, transparent 74%);
}
.hero__books {
  position: absolute;
  inset: 0 0 0 45%;
  perspective: 1100px;
}
.hero__media--books .hero__book {
  position: absolute;
  display: block;
  width: clamp(180px, 22vw, 340px);
  height: clamp(270px, 34vw, 520px);
  max-width: none;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 2px;
  box-shadow: 18px 28px 45px rgba(0,0,0,.55), 3px 4px 0 rgba(255,255,255,.08);
  animation: hero-book-enter 1.1s cubic-bezier(.2,.8,.2,1) both;
}
.hero__book--back { top: 13%; right: 5%; transform: translateY(0) rotate(13deg); --book-rotation: 13deg; animation-delay: .12s !important; }
.hero__book--middle { top: 28%; right: 35%; transform: translateY(0) rotate(-12deg); --book-rotation: -12deg; animation-delay: .28s !important; }
.hero__book--front { top: 20%; right: 18%; transform: translateY(0) rotate(2deg); --book-rotation: 2deg; animation-delay: .44s !important; }
@keyframes hero-book-enter {
  from { opacity: 0; transform: translateY(80px) rotate(var(--book-rotation)); }
  to { opacity: 1; transform: translateY(0) rotate(var(--book-rotation)); }
}
@media (max-width: 768px) {
  .hero__media--books { height: 58svh; min-height: 420px; }
  .hero__media--books::after { background: linear-gradient(0deg, rgba(11,11,11,.55), transparent 42%); }
  .hero__books { inset: 0; }
  .hero__media--books .hero__book { width: clamp(140px, 36vw, 250px); height: clamp(220px, 51vw, 360px); }
  .hero__book--back { top: 8%; right: 10%; }
  .hero__book--middle { top: 24%; right: 44%; }
  .hero__book--front { top: 16%; right: 28%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__media--books .hero__book { animation: none; }
}

/* Image-led slideshow. Only opacity changes during playback. */
.hero__media--slideshow { background: #171717; }
.hero__media--slideshow::before { display: none; }
.hero__media--slideshow::after {
  z-index: 2;
  background: linear-gradient(90deg, rgba(8,8,8,.98) 0%, rgba(8,8,8,.9) 26%, rgba(8,8,8,.64) 46%, rgba(8,8,8,.12) 75%), linear-gradient(0deg, rgba(8,8,8,.34), transparent 34%);
}
.hero__slides, .hero__slide { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media--slideshow .hero__slide {
  object-fit: cover;
  object-position: 58% center;
  opacity: 0;
  transition: opacity .75s ease;
}
.hero__media--slideshow .hero__slide.is-active { opacity: 1; }
.hero__slide-controls {
  position: absolute;
  z-index: 5;
  right: clamp(24px, 4vw, 64px);
  bottom: 65px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
  font: 500 .7rem/1 var(--font-mono);
  letter-spacing: .1em;
}
.hero__slide-controls button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 50%;
  color: #fff;
  font-size: 1.1rem;
}
.hero__slide-controls button:hover, .hero__slide-controls button:focus-visible { background: #fff; color: #111; }
.hero__copy { padding-bottom: 92px; }
.hero__eyebrow { color: #e8e8e8; }
.hero__lede { color: #f1f1f1; }
.hero__edition { color: #dedede; }
#work .section-head { min-height: 46vh; padding-top: 130px; padding-bottom: 70px; }
.section[id], .contact[id], [id="inquiry"], [id="packages"] { scroll-margin-top: 105px; }
.header, .header.is-scrolled { color: #111; background: #f7f6f2; box-shadow: 0 1px 0 #d7d4cc; }
.header__brand span, .header.is-scrolled .header__brand span { color: #666; }
.header__cta, .header.is-scrolled .header__cta { background: #111; color: #fff; box-shadow: inset 0 0 0 1.5px #111; }
.header__nav { gap: clamp(10px, 1.5vw, 24px); white-space: nowrap; }
.header__link { white-space: nowrap; }
.cursor { display: none !important; }
@media (max-width: 768px) {
  .hero__media--slideshow { height: 52svh; min-height: 300px; }
  .hero__media--slideshow::after { background: linear-gradient(0deg, rgba(8,8,8,.6), transparent 48%); }
  .hero__slide-controls { bottom: 22px; right: 20px; }
  .hero__copy { min-height: 70svh; padding-bottom: 54px; }
  #work .section-head { min-height: 38vh; padding-top: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__media--slideshow .hero__slide { transition: none; }
}
.hero__media figcaption {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 280px;
  padding: 12px 14px;
  background: rgba(8,8,8,0.78);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  line-height: 1.45;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero__media figcaption span:first-child { color: #A9A9A9; }
.hero__copy {
  position: relative;
  z-index: 3;
  width: 53%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(130px, 12vh, 180px) clamp(34px, 5.8vw, 96px) 150px;
}
.hero__eyebrow {
  margin: 0 0 clamp(32px, 5vh, 64px);
  color: #A7A7A7;
}
.hero__eyebrow::before { background: #A7A7A7; }
.hero__title {
  position: relative;
  z-index: 2;
  max-width: 8.2ch;
  color: var(--white);
  font-size: clamp(4.4rem, 8.2vw, 9rem);
  line-height: 0.84;
  letter-spacing: -0.06em;
}
.hero__title em {
  color: var(--white);
  font-family: var(--font-accent);
  font-weight: 400;
  letter-spacing: -0.055em;
  text-transform: none;
}
.hero__lede {
  max-width: 42ch;
  margin-top: clamp(34px, 5vh, 60px);
  color: #BEBEBE;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.65;
}
.hero__link {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  margin-top: 34px;
  padding: 0 0 9px;
  color: var(--white);
  border-bottom: 1px solid #717171;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
  transition: gap 0.45s var(--ease-out), border-color 0.3s;
}
.hero__link:hover { gap: 34px; border-color: var(--white); }
.hero__masthead {
  position: absolute;
  z-index: 2;
  right: 1.2vw;
  bottom: -0.12em;
  left: 1.2vw;
  display: flex;
  justify-content: space-between;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(12rem, 22vw, 26rem);
  font-weight: 900;
  line-height: 0.67;
  letter-spacing: -0.09em;
  -webkit-text-stroke: 1px rgba(255,255,255,0.14);
  mix-blend-mode: soft-light;
  user-select: none;
}
.hero__edition {
  position: absolute;
  right: clamp(24px, 3vw, 54px);
  left: clamp(24px, 3vw, 54px);
  bottom: 24px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #8A8A8A;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- work introduction ---------- */
#work { padding: 0; }
#work > .section__inner {
  max-width: none;
  padding: 0;
}
#work .section-head {
  min-height: 72vh;
  margin: 0;
  padding: clamp(120px, 16vh, 190px) var(--gutter) clamp(80px, 12vh, 140px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 30px;
  background: var(--ex-paper);
  border: 0;
}
#work .section-head > .eyebrow { margin: 0; color: var(--ex-muted); }
#work .section-head__title {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(3.4rem, 7.2vw, 8.2rem);
  line-height: 0.93;
  letter-spacing: -0.055em;
}
#work .section-head__title em {
  color: inherit;
  font-family: var(--font-accent);
  font-weight: 400;
  letter-spacing: -0.04em;
  text-transform: none;
}

/* ---------- full-screen project chapters ---------- */
.grid--work { display: block; }
.grid--work .tile {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: clamp(100px, 13vh, 150px) var(--gutter);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 1fr;
  column-gap: clamp(20px, 2.5vw, 42px);
  align-items: center;
  overflow: hidden;
  background: var(--ex-paper);
  color: var(--ex-ink);
}
.grid--work .tile:nth-child(1) { background: var(--ex-bone); }
.grid--work .tile:nth-child(2) { background: var(--ex-paper); }
.grid--work .tile:nth-child(3) { background: var(--ex-ink); color: var(--white); }
.grid--work .tile:nth-child(4) { background: var(--ex-linen); }
.grid--work .tile:nth-child(5) { background: #EFEDEA; }
.grid--work .tile:nth-child(6) { background: #111111; color: var(--white); }
.grid--work .tile:nth-child(7) { background: #F2EEEB; }
.grid--work .tile:nth-child(8) { background: #E8E5E1; }
.grid--work .tile:nth-child(9) { background: #181818; color: var(--white); }
.grid--work .tile:nth-child(10) { background: #F0EAE3; }

.grid--work .tile img {
  grid-row: 1;
  width: 100%;
  height: min(73vh, 820px);
  aspect-ratio: auto;
  object-fit: cover;
  box-shadow: none;
  transform-origin: center;
}
.grid--work .tile:nth-child(odd) img { grid-column: 5 / 13; }
.grid--work .tile:nth-child(even) img { grid-column: 1 / 9; }
.grid--work .tile__overlay {
  grid-row: 1;
  display: block;
  padding: 0;
  align-self: end;
  background: transparent;
  color: inherit;
}
.grid--work .tile:nth-child(odd) .tile__overlay { grid-column: 1 / 4; }
.grid--work .tile:nth-child(even) .tile__overlay { grid-column: 10 / 13; }
.grid--work .tile__index {
  display: block;
  margin-bottom: 24px;
  padding: 0;
  color: currentColor;
  font-family: var(--font-accent);
  font-size: clamp(3.5rem, 5vw, 6rem);
  font-style: italic;
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.06em;
  opacity: 0.42;
}
.grid--work .tile__title {
  display: block;
  color: inherit;
  font-size: clamp(2.2rem, 3.3vw, 4.4rem);
  line-height: 0.91;
  letter-spacing: -0.055em;
}
.grid--work .tile__cat {
  display: block;
  margin-top: 20px;
  color: currentColor;
  font-size: 0.62rem;
  letter-spacing: 0.11em;
  opacity: 0.62;
}
.grid--work .tile__overlay::after {
  content: "Open full plate ↗";
  display: inline-block;
  margin-top: 42px;
  padding-bottom: 8px;
  border-bottom: 1px solid currentColor;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}
.grid--work .tile:hover img,
.grid--work .tile:focus-visible img {
  transform: scale(1.018);
  box-shadow: none;
}

/* ---------- wider shelf as a catalogue index ---------- */
#shelf { background: var(--ex-paper); }
#shelf .section-head {
  grid-template-columns: minmax(180px, 3fr) minmax(0, 9fr);
  margin-bottom: var(--space-6);
}
#shelf .section-head__title { max-width: 9ch; }
#shelf .grid--shelf {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 72px) clamp(18px, 2vw, 34px);
}
#shelf .tile { color: var(--ex-ink); }
#shelf .tile img { transition: transform 0.65s var(--ease-out); }
#shelf .tile:hover img { transform: translateY(-5px); box-shadow: none; }

/* ---------- studio and supporting sections ---------- */
#studio .studio__grid {
  min-height: 100vh;
  min-height: 100svh;
  align-items: start;
}
#studio .studio__text { padding-top: clamp(20px, 5vh, 64px); }
#studio .studio__media {
  position: sticky;
  top: 110px;
  padding: 0;
  border: 0;
  background: transparent;
}
#studio .studio__media img { width: 100%; }
#studio .section-head__title,
.contact__title {
  font-family: var(--font-display);
}
#studio .section-head__title em,
.contact__title em,
.review__quote {
  font-family: var(--font-accent);
}
#reviews .section-head { margin-bottom: var(--space-6); }
.reviews__list {
  grid-template-columns: 1fr;
  gap: 0;
}
.review {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-3);
  padding: var(--space-5) 0;
  border-top: 1px solid var(--line);
}
.review__quote {
  grid-column: 2 / 10;
  font-size: clamp(1.8rem, 3vw, 3.6rem);
  line-height: 1.2;
}
.review__author,
.review__role { grid-column: 11 / 13; }
.review__author { align-self: end; margin: 0; }
.review__role { margin-top: -18px; align-self: end; }
.service {
  position: relative;
  padding: clamp(32px, 4vw, 58px) 0;
}
.service__name { font-size: clamp(1.7rem, 3vw, 3.2rem); }
.contact { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }

/* ---------- project image viewer ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: clamp(58px, 7vw, 100px);
  background: #080808;
  color: var(--white);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease-out), visibility 0s linear 0.45s;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.lightbox__close {
  position: absolute;
  top: 24px;
  right: 28px;
  z-index: 2;
  padding: 10px 0;
  color: var(--white);
  border-bottom: 1px solid #5A5A5A;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lightbox__figure {
  width: min(100%, 1280px);
  height: min(82vh, 860px);
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 28px;
  align-items: end;
}
.lightbox__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.lightbox__caption {
  padding-bottom: 4px;
}
.lightbox__caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.lightbox__caption span {
  display: block;
  margin-top: 9px;
  color: #8E8E8E;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- responsive exhibition layout ---------- */
@media (max-width: 1024px) {
  .hero__copy { width: 64%; }
  .hero__media { left: 0; }
  .grid--work .tile { min-height: 86vh; min-height: 86svh; }
  .grid--work .tile img { height: min(62vh, 660px); }
  #shelf .grid--shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  body { padding-left: 0; }
  .spine { display: none; }
  .header { left: 0; }
  .header:has(.header__menu-btn[aria-expanded="true"]) {
    z-index: calc(var(--z-menu) + 1);
    color: var(--white);
    background: transparent;
    box-shadow: none;
  }
  .header:has(.header__menu-btn[aria-expanded="true"]) .header__brand span { color: #8E8E8E; }

  .hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
  }
  .hero__copy {
    order: 1;
    width: 100%;
    min-height: 78vh;
    min-height: 78svh;
    padding: 130px 20px 70px;
  }
  .hero__eyebrow { margin-bottom: 34px; }
  .hero__title { max-width: 7.6ch; font-size: clamp(4.2rem, 17vw, 7rem); }
  .hero__lede { max-width: 34ch; margin-top: 30px; }
  .hero__link { margin-top: 26px; }
  .hero__media {
    position: relative;
    inset: auto;
    order: 2;
    width: 100%;
    height: 62vh;
    height: 62svh;
  }
  .hero__media::after { display: none; }
  .hero__media figcaption { right: 14px; bottom: 14px; left: 14px; max-width: none; }
  .hero__masthead {
    top: 42vh;
    bottom: auto;
    z-index: 0;
    font-size: 31vw;
    line-height: 0.7;
  }
  .hero__edition {
    position: relative;
    order: 3;
    right: auto;
    bottom: auto;
    left: auto;
    padding: 18px 20px;
    background: var(--ex-ink);
    border-top: 1px solid #252525;
  }
  .hero__edition span:last-child { display: none; }

  #work .section-head {
    min-height: auto;
    padding: 110px 20px 90px;
    gap: 24px;
  }
  #work .section-head__title { font-size: clamp(3.2rem, 13vw, 5.5rem); }
  .grid--work .tile {
    min-height: auto;
    padding: 82px 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
  .grid--work .tile img {
    order: 1;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }
  .grid--work .tile__overlay {
    order: 2;
    width: 100%;
  }
  .grid--work .tile__index { margin-bottom: 14px; font-size: 3.7rem; }
  .grid--work .tile__title { max-width: 10ch; font-size: clamp(2.5rem, 11vw, 4rem); }
  .grid--work .tile__cat { margin-top: 14px; }
  .grid--work .tile__overlay::after { margin-top: 26px; }

  #shelf .section-head { grid-template-columns: 1fr; }
  #shelf .grid--shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #studio .studio__grid { min-height: auto; }
  #studio .studio__media { position: static; }
  .review { display: block; }
  .review__quote { font-size: clamp(1.8rem, 7vw, 2.6rem); }
  .review__author { margin-top: 28px; }
  .review__role { margin-top: 2px; }
  .lightbox { padding: 66px 20px 24px; }
  .lightbox__figure {
    height: 84vh;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .lightbox__image { min-height: 0; }
  .lightbox__caption { flex: none; }
}

@media (max-width: 480px) {
  .hero__copy { min-height: 82svh; }
  .hero__title { font-size: clamp(3.8rem, 17.5vw, 5.1rem); }
  #shelf .grid--shelf { grid-template-columns: 1fr; }
  .grid--work .tile { padding-block: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  .spine__progress { transform: scaleY(1) !important; }
  .hero__media,
  .hero__media img,
  .hero__masthead,
  .grid--work .tile,
  .grid--work .tile img,
  .grid--work .tile__overlay {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
}
