/* EDIT FONTS AND COLOURS HERE */
:root {
  --ivory: #f4f0e8;
  --paper: #ebe5db;
  --ink: #1c1c19;
  --muted: #777268;
  --stone: #b8afa1;
  --line: rgba(28, 28, 25, .18);
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --sans: "Avenir Next", "Segoe UI", Arial, sans-serif;
  --page: min(92vw, 1380px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}
body.lightbox-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
.skip-link {
  position: fixed; z-index: 100; top: -5rem; left: 1rem;
  padding: .65rem 1rem; background: var(--ivory); color: var(--ink);
}
.skip-link:focus { top: 1rem; }
.eyebrow {
  margin: 0 0 1.35rem; color: var(--muted); font-size: .68rem;
  font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
}
.eyebrow--light { color: rgba(255,255,255,.72); }
.section { position: relative; width: var(--page); margin-inline: auto; }

.hero { position: relative; min-height: 100svh; overflow: hidden; background: #111; color: #fff; }
.hero__image {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: 55% center; filter: grayscale(100%) contrast(1.04); transform: scale(1.015);
  animation: hero-in 1.8s cubic-bezier(.2,.7,.2,1) both;
}
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.5), rgba(0,0,0,.03) 72%), linear-gradient(0deg, rgba(0,0,0,.25), transparent 45%); }
.nav {
  position: absolute; z-index: 2; top: 0; left: 50%; width: var(--page); transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between; padding-top: 1.8rem;
}
.monogram {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 1px solid rgba(255,255,255,.6);
  border-radius: 50%; font-family: var(--serif); font-size: 1.15rem; transition: background .25s, color .25s;
}
.monogram:hover, .monogram:focus-visible { background: #fff; color: #111; }
.nav__links { display: flex; gap: 2rem; font-size: .64rem; font-weight: 600; letter-spacing: .19em; text-transform: uppercase; }
.nav__links a { border-bottom: 1px solid transparent; }
.nav__links a:hover, .nav__links a:focus-visible { border-bottom-color: currentColor; }
.hero__copy { position: absolute; z-index: 2; left: 7vw; bottom: 17vh; max-width: 760px; }
.hero h1 { margin: 0; font: 400 clamp(5rem, 13vw, 13rem)/.76 var(--serif); letter-spacing: -.065em; text-transform: uppercase; }
.hero__copy > p:last-child { max-width: 34rem; margin: 2.5rem 0 0 .65rem; color: rgba(255,255,255,.82); font-size: clamp(.9rem, 1.4vw, 1.15rem); letter-spacing: .03em; }
.scroll-cue {
  position: absolute; z-index: 2; right: 4vw; bottom: 3.5rem; display: flex; align-items: center; gap: 1rem;
  font-size: .6rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; writing-mode: vertical-rl;
}
.scroll-cue i { width: 1px; height: 4.5rem; background: rgba(255,255,255,.55); transform-origin: top; animation: scroll-line 2.3s ease-in-out infinite; }

.intro { min-height: 100svh; display: grid; grid-template-columns: 1fr 3fr 1fr; align-items: center; padding-block: 9rem; }
.section-number { align-self: start; padding-top: 2rem; color: var(--stone); font: italic 1.05rem var(--serif); }
.intro__copy { grid-column: 2; max-width: 780px; }
.intro__copy p:not(.eyebrow) { max-width: 42rem; margin: 0 0 1.4rem; color: #565249; font: 400 clamp(1.25rem, 2vw, 1.8rem)/1.5 var(--serif); }
.intro__copy .intro__lead { max-width: none; margin-bottom: 2.4rem; color: var(--ink); font-size: clamp(2.8rem, 6vw, 6.6rem); line-height: .98; letter-spacing: -.05em; }

.gallery-section { padding: 7rem 0 11rem; }
.section-heading { display: grid; grid-template-columns: 1.5fr 1fr; align-items: end; margin-bottom: 8rem; border-top: 1px solid var(--line); padding-top: 2rem; }
.section-heading h2, .unfinished h2 { margin: 0; font: 400 clamp(4.5rem, 10vw, 10rem)/.78 var(--serif); letter-spacing: -.065em; text-transform: uppercase; }
.section-heading h2 em, .unfinished h2 em { font-weight: 400; text-transform: none; }
.section-heading > p { justify-self: end; max-width: 18rem; margin: 0 0 .6rem; color: var(--muted); font: italic 1.15rem var(--serif); }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8rem 1.5rem; }
.frame { margin: 0; }
.frame button { display: block; width: 100%; padding: 0; overflow: hidden; border: 0; background: #ded8ce; cursor: zoom-in; }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .5s; }
.frame button:hover img, .frame button:focus-visible img { transform: scale(1.025); filter: saturate(.72); }
.frame figcaption { margin-top: .7rem; color: var(--muted); font: italic .86rem var(--serif); }
.frame:nth-child(1) { grid-column: 1 / 9; }
.frame:nth-child(1) button { aspect-ratio: 16 / 9; }
.frame:nth-child(2) { grid-column: 10 / 13; margin-top: 15rem; }
.frame:nth-child(2) button { aspect-ratio: 3 / 4; }
.frame:nth-child(3) { grid-column: 2 / 6; }
.frame:nth-child(3) button { aspect-ratio: 3 / 4; }
.frame:nth-child(4) { grid-column: 7 / 13; margin-top: 10rem; }
.frame:nth-child(4) button { aspect-ratio: 4 / 3; }
.frame:nth-child(5) { grid-column: 1 / 13; }
.frame:nth-child(5) button { aspect-ratio: 2 / 1; }
.frame:nth-child(6) { grid-column: 2 / 5; margin-top: 8rem; }
.frame:nth-child(6) button { aspect-ratio: 3 / 4; }
.frame:nth-child(7) { grid-column: 6 / 10; }
.frame:nth-child(7) button { aspect-ratio: 3 / 4; }
.frame:nth-child(8) { grid-column: 10 / 13; margin-top: 14rem; }
.frame:nth-child(8) button { aspect-ratio: 3 / 4; }
.frame:nth-child(9) { grid-column: 1 / 8; }
.frame:nth-child(9) button { aspect-ratio: 16 / 9; }
.frame:nth-child(10) { grid-column: 9 / 13; margin-top: 13rem; }
.frame:nth-child(10) button { aspect-ratio: 3 / 4; }
.frame:nth-child(11) { grid-column: 1 / 6; margin-top: 8rem; }
.frame:nth-child(11) button { aspect-ratio: 4 / 3; }
.frame:nth-child(12) { grid-column: 7 / 13; }
.frame:nth-child(12) button { aspect-ratio: 4 / 3; }

.unfinished { width: 100%; display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); color: var(--ivory); }
.unfinished__image { min-height: 100svh; overflow: hidden; }
.unfinished__image img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; filter: grayscale(100%); }
.unfinished__copy { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(4rem, 8vw, 9rem); }
.unfinished__copy .eyebrow { color: #a9a398; }
.unfinished h2 { max-width: 8ch; font-size: clamp(3.8rem, 7vw, 8rem); }
.unfinished__text { max-width: 28rem; margin-top: 5rem; color: #bdb8af; font-size: .95rem; }
.unfinished__text p { margin: 0 0 1.2rem; }
.unfinished__text .belongs { margin-top: 2.5rem; color: var(--ivory); font: italic 1.8rem var(--serif); }

.note { padding: 13rem 0; text-align: center; }
.note__rule { width: 1px; height: 6rem; margin: 0 auto 5rem; background: var(--stone); }
.note__inner { max-width: 760px; margin: auto; }
.note blockquote { margin: 0; font: 400 clamp(2rem, 4vw, 4.4rem)/1.15 var(--serif); letter-spacing: -.035em; }
.note blockquote p { margin: 0 0 1rem; }
.footer {
  display: grid; grid-template-columns: 1fr auto auto; gap: 3rem; align-items: end; width: var(--page); margin: auto;
  border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--muted); font-size: .62rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
}
.footer a { color: var(--ink); }
.footer p { margin: 0; }

.reveal { opacity: 0; transform: translateY(25px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.frame.reveal:nth-child(2n) { transition-delay: .12s; }

.lightbox {
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(14,14,13,.97); color: #fff;
}
.lightbox::backdrop { background: rgba(14,14,13,.97); }
.lightbox[open] { display: grid; grid-template-columns: 7rem 1fr 7rem; place-items: center; }
.lightbox figure { display: grid; place-items: center; width: 100%; height: 100%; margin: 0; padding: 4rem 0 2rem; }
.lightbox img { max-width: min(82vw, 1500px); max-height: 82vh; object-fit: contain; }
.lightbox figcaption { margin-top: 1rem; color: #aaa69e; font-size: .65rem; letter-spacing: .2em; text-transform: uppercase; }
.lightbox__close { position: fixed; z-index: 2; top: 1.5rem; right: 2rem; border: 0; background: none; color: #d9d5cd; font-size: .65rem; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; }
.lightbox__arrow { width: 3rem; height: 3rem; border: 1px solid #4b4945; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; transition: background .2s, color .2s; }
.lightbox__arrow:hover, .lightbox__arrow:focus-visible { background: #fff; color: #111; }

@keyframes hero-in { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: scale(1.015); } }
@keyframes scroll-line { 0%,100% { transform: scaleY(.4); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }

@media (max-width: 800px) {
  :root { --page: calc(100vw - 2.5rem); }
  .nav { padding-top: 1.2rem; }
  .nav__links { display: none; }
  .hero { min-height: 92svh; }
  .hero__image { object-position: 64% center; }
  .hero__copy { left: 1.25rem; right: 1.25rem; bottom: 12vh; }
  .hero h1 { font-size: clamp(4.4rem, 25vw, 7rem); line-height: .82; }
  .hero__copy > p:last-child { max-width: 20rem; margin: 1.5rem 0 0 .2rem; }
  .scroll-cue { right: 1.25rem; bottom: 2rem; }
  .intro { min-height: 0; display: block; padding: 9rem 0; }
  .section-number { display: none; }
  .intro__copy .intro__lead { margin-bottom: 2rem; font-size: clamp(3.3rem, 16vw, 5rem); }
  .intro__copy p:not(.eyebrow) { font-size: 1.2rem; }
  .gallery-section { padding: 4rem 0 7rem; }
  .section-heading { display: block; margin-bottom: 5rem; }
  .section-heading h2 { font-size: 22vw; }
  .section-heading > p { margin: 2rem 0 0; }
  .gallery { display: block; }
  .frame, .frame:nth-child(n) { margin: 0 0 4.5rem; }
  .frame:nth-child(n) button { aspect-ratio: auto; }
  .frame img { height: auto; }
  .unfinished { display: block; }
  .unfinished__image { min-height: 65svh; height: 65svh; }
  .unfinished__copy { padding: 5rem 1.25rem 6rem; }
  .unfinished h2 { font-size: 16vw; }
  .note { padding: 8rem 0; }
  .footer { display: block; padding-bottom: 2rem; }
  .footer p { margin-top: .8rem; }
  .lightbox[open] { display: block; }
  .lightbox figure { height: 100%; padding: 4rem 1rem 2rem; }
  .lightbox img { max-width: 100%; max-height: 76vh; }
  .lightbox__arrow { position: fixed; z-index: 2; bottom: 1.5rem; }
  .lightbox__arrow--prev { left: 1.2rem; }
  .lightbox__arrow--next { right: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
