/* Contact — cinematic chapters */

.page-contact {
  --ctt-gutter: clamp(1.25rem, 4vw, 2.5rem);
  --ctt-max: 72rem;
  --ctt-space: clamp(3rem, 5.5vw, 4.25rem);
  --ctt-clay: #b29273;
}

.page-contact main.ctt {
  background: var(--ivory-warm);
  overflow-x: clip;
}

.page-contact .foot-lux {
  background: var(--stone-light);
}

.page-contact .header.header--transparent:not(.header--scrolled),
.page-contact .header.header--invert.header--transparent:not(.header--scrolled) {
  border-bottom: none;
}

.page-contact:not(.nav-open) .header.header--transparent.header--invert .header__logo-img--dark,
.page-contact:not(.nav-open) .header.header--transparent.header--on-dark .header__logo-img--dark {
  display: none !important;
}

.page-contact:not(.nav-open) .header.header--transparent.header--invert .header__logo-img--light,
.page-contact:not(.nav-open) .header.header--transparent.header--on-dark .header__logo-img--light {
  display: block !important;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.28));
}

.page-contact:not(.nav-open) .header.header--invert .header__menu span,
.page-contact:not(.nav-open) .header.header--on-dark .header__menu span {
  background: rgba(255, 252, 248, 0.92);
}

.page-contact:not(.nav-open) .header.header--invert .header__sound,
.page-contact:not(.nav-open) .header.header--on-dark .header__sound {
  color: rgba(255, 252, 248, 0.92);
  border-color: rgba(255, 252, 248, 0.28);
  background: transparent;
}

.ctt-shell {
  width: min(100%, var(--ctt-max));
  margin-inline: auto;
  padding-inline: var(--ctt-gutter);
}

/* —— Reveal —— */
.ctt-reveal {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.95s cubic-bezier(0.22, 0.08, 0.24, 1),
    transform 0.95s cubic-bezier(0.22, 0.08, 0.24, 1);
}

.ctt-reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .ctt-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ctt-hero__media img[data-hero-parallax] {
    transform: none !important;
  }
}

/* —— Hero —— */
.ctt-hero {
  position: relative;
  height: 100svh;
  min-height: 32rem;
  background: #1c1814;
  overflow: hidden;
}

.ctt-hero__media {
  position: absolute;
  inset: 0;
  margin: 0;
  line-height: 0;
}

.ctt-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 38%;
  will-change: transform;
  animation: ctt-hero-in 1.1s ease both;
}

@keyframes ctt-hero-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.ctt-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(28, 26, 24, 0.35) 0%,
    rgba(28, 26, 24, 0.12) 40%,
    rgba(28, 26, 24, 0.55) 100%
  );
  pointer-events: none;
}

.ctt-hero__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  text-align: right;
  padding-top: 0;
  padding-bottom: clamp(2rem, 8vh, 4.5rem);
  color: var(--text-on-dark);
  pointer-events: none;
}

.ctt-hero__place {
  margin: 0 0 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.46rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(196, 173, 120, 0.92);
}

.ctt-hero__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.05;
  text-transform: uppercase;
  color: rgba(252, 249, 244, 0.98);
}

/* —— Prelude —— */
.ctt-prelude {
  background: var(--warm-dark);
  color: var(--text-on-dark);
  padding-block: clamp(2.25rem, 6vw, 3.5rem);
}

.ctt-prelude__inner {
  text-align: center;
}

.ctt-prelude__kicker {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.46rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(196, 173, 120, 0.88);
}

.ctt-prelude__line {
  margin: 0.85rem 0 0;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 3vw, 1.65rem);
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: rgba(252, 249, 244, 0.94);
}

/* —— Location typography —— */
.ctt-loc__name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.12;
}

.ctt-loc__role {
  margin: 0.5rem 0 0;
  font-family: var(--font-sans);
  font-size: 0.48rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.ctt-loc__hours {
  margin: 0.85rem 0 0;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  line-height: 1.55;
}

.ctt-loc__link {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(107, 69, 80, 0.28);
}

.ctt-loc__reach {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  line-height: 1.45;
}

.ctt-loc__reach a {
  color: var(--charcoal-soft);
  border-bottom: 1px solid rgba(42, 40, 37, 0.22);
}

.ctt-loc__reach a:hover {
  color: var(--burgundy);
  border-bottom-color: rgba(107, 69, 80, 0.4);
}

/* Light location (retail card) */
.ctt-loc {
  color: var(--charcoal);
}

.ctt-loc__role {
  color: var(--burgundy);
}

.ctt-loc__hours {
  color: var(--charcoal-soft);
}

.ctt-loc__link {
  color: var(--charcoal);
}

.ctt-loc__link:hover {
  color: var(--burgundy);
  border-bottom-color: rgba(107, 69, 80, 0.45);
}

/* Atelier panel — clay matched to interlude mud wall */
.ctt-loc--atelier {
  color: rgba(255, 252, 248, 0.94);
}

.ctt-loc--atelier .ctt-loc__name {
  color: rgba(255, 252, 248, 0.98);
}

.ctt-loc--atelier .ctt-loc__role {
  color: rgba(255, 252, 248, 0.72);
}

.ctt-loc--atelier .ctt-loc__hours,
.ctt-loc--atelier .ctt-loc__reach {
  color: rgba(255, 252, 248, 0.84);
}

.ctt-loc--atelier .ctt-loc__reach a {
  color: rgba(255, 252, 248, 0.92);
  border-bottom-color: rgba(255, 252, 248, 0.38);
}

.ctt-loc--atelier .ctt-loc__reach a:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.65);
}

/* —— Chapter · retail (full-bleed image + floating card) —— */
.ctt-chapter--retail {
  position: relative;
  min-height: min(92svh, 52rem);
  display: flex;
  align-items: flex-end;
}

.ctt-chapter__bg {
  position: absolute;
  inset: 0;
  margin: 0;
  line-height: 0;
}

.ctt-chapter__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 14%;
}

.ctt-chapter__shell {
  position: relative;
  z-index: 2;
  width: min(100%, var(--ctt-max));
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 3rem) var(--ctt-gutter);
}

.ctt-chapter__mark {
  position: absolute;
  top: clamp(1.5rem, 4vw, 2.5rem);
  right: var(--ctt-gutter);
  font-family: var(--font-serif);
  font-size: clamp(3rem, 12vw, 5.5rem);
  font-style: italic;
  font-weight: 400;
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: rgba(255, 252, 248, 0.28);
  pointer-events: none;
  user-select: none;
}

.ctt-chapter--retail .ctt-loc {
  max-width: 19rem;
  padding: clamp(1.15rem, 3vw, 1.5rem);
  background: rgba(252, 249, 244, 0.94);
  box-shadow: 0 12px 40px rgba(28, 26, 24, 0.06);
}

/* —— Interlude · outdoor —— */
.ctt-interlude {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: clamp(10rem, 28vw, 16rem);
  overflow: hidden;
  background: var(--ctt-clay);
}

.ctt-interlude__frame {
  position: relative;
  margin: 0;
  width: 100%;
  height: 100%;
  line-height: 0;
}

.ctt-interlude__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(28, 26, 24, 0.12) 0%,
    transparent 35%,
    transparent 65%,
    rgba(28, 26, 24, 0.12) 100%
  );
  pointer-events: none;
}

.ctt-interlude__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

/* —— Chapter · atelier (dark panel + portrait) —— */
.ctt-chapter--atelier {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: var(--ctt-clay);
}

.ctt-chapter__panel {
  position: relative;
  padding: clamp(2.5rem, 7vw, 4.5rem) var(--ctt-gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ctt-chapter--atelier .ctt-chapter__mark {
  position: static;
  display: block;
  margin-bottom: clamp(1rem, 3vw, 1.75rem);
  font-size: clamp(2.5rem, 10vw, 4.5rem);
  color: rgba(255, 252, 248, 0.2);
}

.ctt-chapter--atelier .ctt-chapter__bg {
  position: relative;
  margin: 0;
  min-height: clamp(18rem, 55vw, 28rem);
  line-height: 0;
}

.ctt-chapter--atelier .ctt-chapter__bg img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center 22%;
}

/* —— Coda —— */
.ctt-coda {
  padding-block: var(--ctt-space);
  background: var(--ivory-warm);
}

.ctt-coda__frame {
  margin: 0 auto;
  line-height: 0;
  width: min(100%, 15rem);
}

.ctt-coda__frame img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: min(52vh, 460px);
  object-fit: cover;
  object-position: center 20%;
}

@media (min-width: 900px) {
  .ctt-chapter--retail {
    min-height: min(88svh, 46rem);
  }

  .ctt-chapter--retail .ctt-loc {
    margin-left: 0;
    max-width: 21rem;
  }

  .ctt-chapter--atelier {
    min-height: auto;
  }

  .ctt-chapter--atelier .ctt-chapter__panel {
    padding-inline: clamp(2rem, 5vw, 4rem);
    padding-block: clamp(3rem, 8vw, 5rem);
  }
}
