/* Homepage. Photography, type and space carry the page. */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--photo);
  background: #14110e;
  overflow: hidden;
}

.hero__media,
.bleed__media,
.cta__media {
  position: absolute;
  inset: 0;
}

.hero__media img,
.bleed__media img,
.cta__media img,
.story__media img,
.trade-shot img,
.guide__media img,
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media img {
  object-position: center center;
  transform: scale(1.06);
  transition: transform 1.4s var(--ease);
}

.hero .eyebrow,
.cta .eyebrow {
  color: rgba(247, 244, 238, 0.78);
}

.hero__chapters a,
.hero h1,
.hero__lead,
.cta h2 {
  text-shadow: 0 12px 32px rgba(20, 17, 14, 0.38);
}

.hero.is-in .hero__media img {
  transform: scale(1);
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 17, 14, 0.34) 0%, rgba(20, 17, 14, 0.08) 30%, rgba(20, 17, 14, 0.06) 52%, rgba(20, 17, 14, 0.58) 100%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--header-h) + 1.5rem) 6vw 4.5rem;
}

.hero__chapters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0 0 auto;
  padding-top: 8vh;
  border-bottom: 1px solid rgba(247, 244, 238, 0.35);
}

.hero__chapters a {
  display: block;
  padding-bottom: 0.85rem;
  color: rgba(247, 244, 238, 0.72);
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.4vw, 5.6rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.035em;
  text-decoration: none;
  transition: color 0.6s var(--ease);
}

.hero__chapters a:hover,
.hero__chapters a:focus-visible {
  color: var(--photo);
}

.hero__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.6fr);
  gap: 2rem 4vw;
  align-items: end;
  margin-top: 8vh;
}

.hero h1 {
  margin: 0.6rem 0 0;
  max-width: 12ch;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(3.2rem, 7.2vw, 7.4rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.hero__lead {
  margin: 0;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(247, 244, 238, 0.88);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
  margin-top: 1.5rem;
}

.hero__actions a,
.text-link {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.2rem;
}

.hero__scroll {
  position: absolute;
  left: 6vw;
  bottom: 1.4rem;
  z-index: 2;
  color: rgba(247, 244, 238, 0.8);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}

.trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 1.4rem 6vw;
  border-bottom: 1px solid var(--line);
  list-style: none;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.statement {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.65fr);
  gap: 4rem 6vw;
  align-items: end;
  padding: 12vw 6vw 10vw;
}

.statement h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.4rem, 7.6vw, 8rem);
  line-height: 0.88;
  letter-spacing: -0.035em;
}

.statement h2 em {
  font-style: italic;
  font-weight: 400;
}

.statement__copy {
  margin: 0;
  max-width: 28rem;
  font-size: 1.08rem;
  color: var(--ink-soft);
}

.bleed {
  position: relative;
  height: 92vh;
  min-height: 34rem;
  background: #14110e;
  overflow: hidden;
}

.bleed__media img,
.cta__media img {
  transform: scale(1.12);
  will-change: transform;
}

.bleed__media img {
  object-position: center center;
}

.cta__media img {
  object-position: center 78%;
}

.bleed__label {
  position: absolute;
  left: 6vw;
  bottom: 2rem;
  z-index: 1;
  margin: 0;
  color: var(--photo);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.story {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  min-height: 88vh;
  background: var(--paper);
}

.story__media {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: #cfc6b8;
}

.story__media img {
  position: absolute;
  inset: -8% 0;
  height: 116%;
  width: 100%;
  max-width: none;
  object-fit: cover;
  transform: scale(1.04);
}

.story__copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10vw 6vw 8vw 5vw;
}

.story__copy h2 {
  margin: 1rem 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 4.6vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.story__copy p {
  max-width: 34rem;
  margin: 1.5rem 0 0;
  color: var(--ink-soft);
}

.figures {
  padding: 10vw 6vw 8vw;
}

.figures__head {
  max-width: 40rem;
  margin: 0 0 6vw;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.figure-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 0.9fr;
  gap: 3rem 4vw;
  align-items: end;
  margin: 0;
}

.figure-grid div:nth-child(2) {
  transform: translateY(-6vh);
}

.figure-grid div:nth-child(3) {
  text-align: right;
}

.figure-grid dt {
  margin: 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(5rem, 12vw, 11rem);
  line-height: 0.8;
  letter-spacing: -0.05em;
}

.figure-grid dd {
  margin: 0.8rem 0 0;
  max-width: 16rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.figure-grid div:nth-child(3) dd {
  margin-left: auto;
}

.finder,
.steps,
.essay {
  padding: 8vw 6vw 10vw;
}

.finder h2,
.steps h2,
.cities h2,
.faq h2,
.essay h2,
.gallery h2 {
  margin: 0.7rem 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 6vw, 6.2rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
}

.path-list {
  list-style: none;
  margin: 4rem 0 0;
  padding: 0;
}

.path-list li {
  border-top: 1px solid var(--line);
}

.path-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.path-list a {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1.6rem 0;
  text-decoration: none;
}

.path-list a span:first-child {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.path-list strong {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.path-list em {
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.path-list a:hover strong {
  font-style: italic;
}

.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem 4vw;
  margin-top: 4rem;
}

.steps article span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.steps h3 {
  margin: 1rem 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.steps p,
.workflow {
  margin: 1rem 0 0;
  max-width: 28rem;
  color: var(--ink-soft);
}

.workflow {
  margin-top: 4rem;
  max-width: 40rem;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.trades {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  background: var(--ink);
  color: var(--paper);
}

.trades__visual {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #2a211b;
}

.trade-shot {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
}

.trade-shot.is-active {
  opacity: 1;
  transform: scale(1);
}

.trade-shot img {
  position: absolute;
  inset: 0;
}

.trades__intro {
  padding: 14vh 6vw 0 4vw;
}

.trades__intro .eyebrow {
  color: rgba(244, 241, 234, 0.62);
}

.trades__intro h2 {
  margin: 0.45rem 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 4.4vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.trades__list {
  margin: 0;
  padding: 6vh 6vw 18vh 4vw;
  list-style: none;
}

.trade {
  padding: 2.2rem 0;
  border-top: 1px solid rgba(244, 241, 234, 0.18);
  opacity: 1;
  transition: opacity 0.8s var(--ease);
}

html.js .trade {
  opacity: 0.38;
}

html.js .trade.is-active,
.trade.is-active {
  opacity: 1;
}

.trade a,
.trade-static {
  display: block;
  text-decoration: none;
}

.trade__index {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.62);
}

.trade h3 {
  margin: 0.45rem 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.trade p {
  max-width: 32rem;
  margin: 0.8rem 0 0;
  color: rgba(244, 241, 234, 0.78);
}

.cities {
  padding: 10vw 6vw 8vw;
}

.city-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 6vw;
  margin: 4rem 0 0;
  padding: 0;
  list-style: none;
}

.city-index a,
.city-index .city-label {
  display: grid;
  grid-template-columns: minmax(8rem, 0.7fr) minmax(0, 1.3fr);
  gap: 1rem;
  align-items: baseline;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.city-index li:nth-last-child(-n + 2) :is(a, .city-label) {
  border-bottom: 1px solid var(--line);
}

.city-index strong {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.4vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.03em;
}

.city-index span {
  color: var(--muted);
  font-size: 0.95rem;
}

.city-index a:hover strong {
  font-style: italic;
}

.guides {
  display: grid;
}

.guide {
  position: relative;
  min-height: 78vh;
  color: var(--photo);
  display: grid;
  align-items: end;
  text-decoration: none;
  overflow: hidden;
  background: #14110e;
}

.guide__media {
  position: absolute;
  inset: 0;
}

.guide__media img {
  transform: scale(1.08);
  transition: transform 1.1s var(--ease);
}

.guide:hover .guide__media img,
.guide:focus-visible .guide__media img {
  transform: scale(1.02);
}

.guide__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 17, 14, 0.05), rgba(20, 17, 14, 0.62));
}

.guide__copy {
  position: relative;
  z-index: 1;
  padding: 8vw 6vw;
  max-width: 46rem;
}

.guide__copy p {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.guide__copy h2 {
  margin: 0.4rem 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
}

.guide__copy span {
  display: block;
  margin-top: 1rem;
  max-width: 34rem;
  font-size: 1.05rem;
  color: rgba(247, 244, 238, 0.88);
}

.reasons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem 4vw;
  padding: 10vw 6vw;
  border-top: 1px solid var(--line);
}

.reasons article span {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.reasons h2 {
  margin: 0.8rem 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 2.4vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.gallery {
  overflow-x: clip;
}

.gallery__head {
  padding: 0 6vw 2rem;
}

.rail {
  height: auto;
}

html.js .rail {
  --steps: 5;
  height: calc(100dvh + var(--steps) * 72dvh);
}

.rail__pin {
  position: static;
  height: auto;
  overflow: visible;
}

html.js .rail__pin {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vh, 2.25rem);
  padding: calc(var(--header-h) + 0.75rem) 0 6vh;
}

html.js .gallery__head {
  flex: 0 0 auto;
  padding: 0 6vw;
  text-align: center;
}

html.js .gallery h2 {
  font-size: clamp(2.4rem, 4.4vw, 4.4rem);
}

.rail__stage {
  position: relative;
  width: 100%;
}

html.js .rail__stage {
  flex: 0 0 auto;
  height: min(400px, 48dvh, 62.4vw);
  pointer-events: none;
}

.rail__track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  padding: 0 6vw 8vw;
}

html.js .rail__track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 0;
  display: block;
  padding: 0;
}

.frame {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 18rem;
  padding: 0.7rem 0.7rem 0.5rem;
  overflow: hidden;
  border-radius: 1.75rem;
  background: rgba(247, 244, 238, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 24px 64px rgba(28, 22, 18, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
}

html.js .frame {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(500px, 78vw);
  height: min(400px, 48dvh, 62.4vw);
  min-height: 0;
  margin-left: calc(min(500px, 78vw) / -2);
  margin-top: calc(min(400px, 48dvh, 62.4vw) / -2);
  pointer-events: auto;
  transform-origin: center center;
  will-change: transform, opacity;
}

.frame img {
  width: 100%;
  height: 14rem;
  flex: 1 1 auto;
  min-height: 0;
  object-fit: cover;
  border-radius: 1.15rem;
}

html.js .frame img,
html.js .frame:hover img {
  height: 0;
  transform: none;
  transition: none;
}

.frame figcaption {
  flex: 0 0 auto;
  padding: 0.65rem 0.45rem 0.25rem;
  color: var(--ink);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.faq {
  padding: 8vw 6vw 6vw;
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-of-type {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.5rem 0;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  font-family: var(--sans);
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--muted);
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  max-width: 40rem;
  margin: 0 0 1.6rem;
  color: var(--ink-soft);
}

.essay {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.1fr);
  gap: 4rem 6vw;
}

.essay__body {
  max-width: 40rem;
}

.essay__body h3 {
  margin: 2.4rem 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.essay__body h3:first-child {
  margin-top: 0;
}

.essay__body p {
  margin: 0.8rem 0 0;
  color: var(--ink-soft);
}

.cta {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--photo);
  display: flex;
  align-items: flex-end;
  background: #14110e;
  overflow: hidden;
}

.cta__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 17, 14, 0.1), rgba(20, 17, 14, 0.62));
}

.cta__copy {
  position: relative;
  z-index: 1;
  padding: 8vw 6vw 10vh;
  width: 100%;
}

.cta h2 {
  margin: 0.4rem 0 0;
  max-width: 10ch;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.6rem, 9vw, 8.5rem);
  line-height: 0.88;
  letter-spacing: -0.04em;
}

.cta__cities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.3rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  max-width: 52rem;
}

.cta__cities a {
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(247, 244, 238, 0.4);
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal-delay {
  transition-delay: 0.12s;
}

@media (max-width: 900px) {
  .hero__chapters {
    grid-template-columns: 1fr;
    gap: 0.2rem;
    padding-top: 4vh;
  }

  .hero__chapters a {
    font-size: clamp(2.2rem, 12vw, 3.4rem);
    padding-bottom: 0.2rem;
  }

  .hero__bottom,
  .statement,
  .story,
  .figure-grid,
  .steps__grid,
  .trades,
  .city-index,
  .reasons,
  .essay {
    grid-template-columns: 1fr;
  }

  .hero__bottom {
    margin-top: 6vh;
  }

  .trust {
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem 1rem;
  }

  .figure-grid div:nth-child(2),
  .figure-grid div:nth-child(3) {
    transform: none;
    text-align: left;
  }

  .figure-grid div:nth-child(3) dd {
    margin-left: 0;
  }

  .statement {
    padding: 18vw 6vw;
    gap: 2rem;
  }

  .story__media {
    min-height: 62vh;
  }

  .story__media img {
    position: absolute;
    object-position: center 30%;
  }

  .trades__visual {
    position: relative;
    height: 62vh;
    top: auto;
  }

  .trades__intro {
    padding: 2.5rem 6vw 0;
  }

  .trades__list {
    padding: 1.5rem 6vw 4rem;
  }

  .city-index a,
  .city-index .city-label {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .city-index li:nth-last-child(-n + 2) :is(a, .city-label) {
    border-bottom: 0;
  }

  .city-index li:last-child :is(a, .city-label) {
    border-bottom: 1px solid var(--line);
  }

  .path-list a {
    grid-template-columns: 2.5rem minmax(0, 1fr);
  }

  .path-list em {
    grid-column: 2;
  }

  .rail__track {
    grid-template-columns: 1fr;
    gap: 8vw;
  }

  .frame {
    min-height: 70vw;
  }

  .guide {
    min-height: 88vh;
  }

  .bleed {
    height: 78vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero__media img,
  .guide__media img,
  .frame img {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .trade-shot {
    opacity: 0;
    transform: none;
    transition: none;
  }

  .trade-shot.is-active {
    opacity: 1;
  }

  html.js .trade,
  .trade {
    opacity: 1;
  }

  html.js .rail,
  .rail {
    height: auto;
  }

  html.js .rail__pin,
  .rail__pin {
    position: static;
    height: auto;
    overflow: visible;
    display: block;
    padding: 0;
  }

  html.js .gallery__head {
    padding: 0 6vw 2rem;
    text-align: left;
  }

  html.js .gallery h2 {
    font-size: clamp(2.8rem, 6vw, 6.2rem);
  }

  html.js .rail__stage,
  .rail__stage {
    height: auto;
    pointer-events: auto;
  }

  html.js .rail__track,
  .rail__track {
    position: relative;
    top: auto;
    height: auto;
    display: grid;
    padding: 0 6vw 8vw;
  }

  html.js .frame,
  .frame {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    height: auto;
    min-height: 18rem;
    margin: 0;
    opacity: 1;
    transform: none;
    will-change: auto;
  }
}
