/* PLUGGED LA CUTZ — lower-page sections (Phase 2) */

/* ============================================================= SERVICES */
.services { background: var(--ink); }

.services__layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}

.services__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--graphite);
}
.services__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.services__img.is-next { visibility: hidden; }
.services__img.is-next.is-animating { visibility: visible; }

.services__list {
  list-style: none;
  margin: 0; padding: 0;
  border-top: 1px solid var(--line);
}

.service {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  width: 100%;
  text-align: left;
  padding: 1.35rem 0.25rem;
  border-bottom: 1px solid var(--line);
  transition: padding-left var(--dur-fast) var(--ease-out);
}
.service__index {
  font-size: var(--fs-small);
  color: var(--smoke);
  font-variant-numeric: tabular-nums;
}
.service__body { display: grid; gap: 0.3rem; }
.service__name {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem);
  line-height: 1.15;
  color: var(--silver-bright);
  transition: color var(--dur-fast) var(--ease-out);
}
.service__desc {
  font-size: var(--fs-small);
  color: var(--smoke);
  max-width: 42ch;
  transition: color var(--dur-fast) var(--ease-out);
}
.service:hover .service__name,
.service:focus-visible .service__name { color: var(--marble); }
.service.is-active { padding-left: 0.9rem; }
.service.is-active .service__name { color: var(--marble); }
.service.is-active .service__desc { color: var(--silver); }
.service.is-active .service__index { color: var(--silver-bright); }

.services__note {
  margin-top: 1.5rem;
  font-size: var(--fs-small);
  color: var(--smoke);
}
.services__note a { color: var(--silver); text-decoration: underline; text-underline-offset: 0.3em; }
.services__note a:hover { color: var(--marble); }

@media (max-width: 899px) {
  .services__layout { grid-template-columns: 1fr; gap: 2rem; }
  .services__media { aspect-ratio: 1 / 1; }
}

/* ============================================================= STANDARDS */
.standards { background: var(--graphite); }

.standards__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}
.standards__copy { grid-column: 1 / 6; display: grid; gap: 1.2rem; align-content: start; }
.standards__points {
  list-style: none;
  margin: 1rem 0 0; padding: 0;
  display: grid; gap: 0.9rem;
}
.standards__points li {
  padding-left: 1.4rem;
  position: relative;
  color: var(--silver-bright);
}
.standards__points li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.62em;
  width: 0.6rem; height: 1px;
  background: var(--silver);
}
.standards__img { margin: 0; }
.standards__img img { width: 100%; height: 100%; object-fit: cover; }
.standards__img--station { grid-column: 6 / 10; aspect-ratio: 4 / 5; }
.standards__img--tools { grid-column: 10 / 13; aspect-ratio: 2 / 3; margin-top: clamp(2rem, 6vw, 5rem); }
.standards__img figcaption {
  margin-top: 0.7rem;
  font-size: var(--fs-small);
  color: var(--smoke);
  letter-spacing: 0.06em;
}

@media (max-width: 899px) {
  .standards__grid { grid-template-columns: 1fr 1fr; }
  .standards__copy { grid-column: 1 / -1; }
  .standards__img--station { grid-column: 1 / 2; aspect-ratio: 4 / 5; }
  .standards__img--tools { grid-column: 2 / 3; margin-top: 2.5rem; }
}

/* ============================================================= EXPERIENCE */
.experience { background: var(--ink); padding-bottom: 0; }

/* signature set piece: one cue-ball line rolled across on arrival */
.cue {
  position: relative;
  height: 1px;
  margin: 0 var(--gutter) clamp(3rem, 8vw, 6rem);
  background: var(--line);
}
.cue__dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--silver-bright);
  transform: translate(0, -50%);
}

.experience__wide {
  margin: clamp(2.5rem, 6vw, 4.5rem) 0 0;
}
.experience__wide img { width: 100%; height: auto; }

.experience__row {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  padding-block: clamp(2rem, 5vw, 4rem) var(--space-section);
}
.experience__life { margin: 0; }
.experience__life img { width: 100%; height: auto; }
.experience__caption {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 1rem + 0.9vw, 1.7rem);
  font-style: italic;
  color: var(--silver-bright);
  max-width: 24ch;
  padding-bottom: clamp(0.5rem, 2vw, 2rem);
}

@media (max-width: 899px) {
  .experience__row { grid-template-columns: 1fr; align-items: start; }
  .experience__caption { padding-bottom: 0; }
}

/* ============================================================= HEX ENVIRONMENT */
.environment { background: var(--ink); }
.environment__media {
  position: relative;
  margin: 0;
  height: clamp(20rem, 72vh, 46rem);
  overflow: hidden;
}
.environment__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.environment__copy {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  justify-items: center;
  gap: 0.8rem;
  padding: 0 var(--gutter) clamp(2rem, 6vh, 4rem);
  text-align: center;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 11, 0.72) 100%);
}
.environment__copy .eyebrow { color: var(--silver); }
.environment__line {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 1rem + 2.4vw, 2.9rem);
  color: var(--marble);
}

/* ============================================================= GALLERY */
.gallery { background: var(--ink); }

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.6vw, 1.5rem);
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}
.gallery__item {
  display: block;
  margin: 0; padding: 0;
  overflow: hidden;
  background: var(--graphite);
  cursor: zoom-in;
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}
@media (pointer: fine) {
  .gallery__item:hover img { transform: scale(1.035); }
}
.gallery__item--interior { grid-column: 1 / 8; aspect-ratio: 16 / 10; }
.gallery__item--station { grid-column: 8 / 13; aspect-ratio: 8 / 9; align-self: stretch; }
.gallery__item--station img { height: 100%; }
.gallery__item--fade { grid-column: 1 / 6; aspect-ratio: 3 / 4; margin-top: clamp(-4rem, -6vw, -1rem); }
.gallery__item--tools { grid-column: 6 / 9; aspect-ratio: 2 / 3; margin-top: clamp(1.5rem, 3vw, 3rem); }
.gallery__item--exterior { grid-column: 2 / 12; aspect-ratio: 21 / 9; }

@media (max-width: 899px) {
  .gallery__grid { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  .gallery__item { grid-column: auto !important; margin-top: 0 !important; }
  .gallery__item--interior, .gallery__item--exterior { grid-column: 1 / -1 !important; }
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  background: rgba(10, 10, 11, 0.96);
  padding: clamp(1rem, 4vw, 4rem);
}
.lightbox[hidden] { display: none; }
.lightbox__img {
  max-width: min(92vw, 110rem);
  max-height: 84vh;
  width: auto; height: auto;
  object-fit: contain;
}
.lightbox__close {
  position: absolute;
  top: 1.1rem; right: clamp(1rem, 3vw, 2.5rem);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  min-height: 2.75rem;
  color: var(--silver);
}
.lightbox__close:hover { color: var(--marble); }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  color: var(--silver);
  min-width: 3rem; min-height: 3rem;
}
.lightbox__nav:hover { color: var(--marble); }
.lightbox__nav--prev { left: clamp(0.25rem, 2vw, 1.5rem); }
.lightbox__nav--next { right: clamp(0.25rem, 2vw, 1.5rem); }

/* ============================================================= RESULT */
.result { background: var(--graphite); }
.result__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-block: var(--space-section);
}
.result__copy { display: grid; gap: 1.2rem; }
.result__media { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; }
.result__media img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 899px) {
  .result__grid { grid-template-columns: 1fr; }
  .result__media { order: -1; aspect-ratio: 3 / 4; }
}

/* ============================================================= LOCATION */
.location { background: var(--night-blue); }
.location__establishing {
  margin: 0;
  height: clamp(18rem, 62vh, 42rem);
  overflow: hidden;
}
.location__establishing img { width: 100%; height: 100%; object-fit: cover; }

.location__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-block: var(--space-section);
}
.location__facts { display: grid; gap: 1.2rem; justify-items: start; }
.location__addr { color: var(--silver-bright); line-height: 1.7; }
.location__addr strong { color: var(--marble); }
.location__hours {
  margin: 0;
  display: grid;
  gap: 0.55rem;
  min-width: min(100%, 24rem);
}
.location__hours > div {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
}
.location__hours dt { color: var(--silver); }
.location__hours dd { margin: 0; color: var(--marble); }
.location__actions { margin-top: 0.5rem; }

.location__arrival { margin: 0; }
.location__arrival img { width: 100%; height: auto; }
.location__arrival figcaption {
  margin-top: 0.7rem;
  font-size: var(--fs-small);
  color: var(--smoke);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* map appears only when a verified address + map URL exist in config */
.map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
  font-size: var(--fs-small);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver);
  text-decoration: underline;
  text-underline-offset: 0.35em;
}
.map-link:hover { color: var(--marble); }

@media (max-width: 899px) {
  .location__grid { grid-template-columns: 1fr; }
}

/* ============================================================= BOOK */
.book { background: var(--ink); }
.book__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.book__copy { display: grid; gap: 1.4rem; justify-items: start; }
.book__hours { font-size: var(--fs-small); color: var(--smoke); letter-spacing: 0.06em; }

/* chair reveal: an arched mask suggesting the chair-back silhouette */
.book__chair {
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  clip-path: inset(0 0 0 0 round 50% 50% 0 0);
}
.book__chair img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 68%; /* keep the chair centered inside the arch */
}

@media (max-width: 899px) {
  .book__grid { grid-template-columns: 1fr; }
  /* asset 14 is already the mobile hero — the finale stays CTA-focused */
  .book__chair { display: none; }
}

/* ============================================================= PROGRESS LINE */
.progress-line {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--silver) 0%, var(--silver-bright) 100%);
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0.85;
  pointer-events: none;
}

/* nav scrollspy */
.nav__link.is-active { color: var(--marble); }
.nav__link.is-active::after {
  content: '';
  display: block;
  height: 1px;
  margin-top: 0.2rem;
  background: var(--silver-bright);
}
.nav__link::after { content: ''; display: block; height: 1px; margin-top: 0.2rem; background: transparent; }

/* ============================================================= CONTACT PANEL */
.contact-panel {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  background: rgba(10, 10, 11, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: var(--gutter);
}
.contact-panel__card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 1.1rem;
  text-align: center;
  background: var(--graphite);
  border: 1px solid var(--line);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 6vw, 5rem);
  max-width: 34rem;
  width: 100%;
}
.contact-panel__close {
  position: absolute;
  top: 1rem; right: 1.25rem;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver);
  min-height: 2.5rem;
}
.contact-panel__close:hover { color: var(--marble); }
.contact-panel__title { font-size: clamp(1.8rem, 1rem + 2vw, 2.6rem); }
.contact-panel__number {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 1rem + 1.8vw, 2.3rem);
  letter-spacing: 0.06em;
  color: var(--marble);
  user-select: all;
}
.contact-panel__hours { margin: 0; display: grid; gap: 0.45rem; min-width: 18rem; }
.contact-panel__hours > div {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: var(--fs-small);
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--line);
}
.contact-panel__hours dt { color: var(--silver); }
.contact-panel__hours dd { margin: 0; color: var(--marble); }
.contact-panel__confirm {
  min-height: 1.2rem;
  font-size: var(--fs-small);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver-bright);
}

/* ============================================================= CHOREOGRAPHY LAYOUT */
/* masked figures need their own clipping context for inner parallax */
.standards__img, .experience__wide, .location__establishing { overflow: hidden; }
.standards__img img, .experience__wide img, .location__establishing img { will-change: transform; }

/* chair finale: one restrained light sweep after the arch settles */
.book__chair { position: relative; }
.book__sweep {
  position: absolute;
  inset: -10% -40%;
  background: linear-gradient(100deg,
    transparent 43%,
    rgba(244, 244, 242, 0.06) 48%,
    rgba(244, 244, 242, 0.16) 50%,
    rgba(244, 244, 242, 0.06) 52%,
    transparent 57%);
  transform: translateX(-70%);
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0;
}

/* hex curtain: the ceiling holds while the gallery rises over it (desktop,
   motion only — static and reduced-motion get the plain stacked layout) */
@media (min-width: 900px) {
  html.has-motion .environment { height: 165vh; }
  html.has-motion .environment__media {
    position: sticky;
    top: 0;
    height: 100vh;
  }
  html.has-motion .gallery { position: relative; z-index: 2; }

  /* location: the information panel rides up over the exterior */
  html.has-motion .location__grid {
    position: relative;
    z-index: 2;
    background: var(--night-blue);
    margin-top: -16vh;
    padding-top: calc(var(--space-section) * 0.7);
  }
}

/* ============================================================= MOTION PREP */
/* Masked media hides only when motion actually runs; static page stays whole. */
html.has-motion [data-mask-reveal] { clip-path: inset(0 100% 0 0); }
html.has-motion [data-mask-reveal="up"] { clip-path: inset(100% 0 0 0); }
html.has-motion [data-mask-reveal="down"] { clip-path: inset(0 0 100% 0); }
html.has-motion .environment__media img { clip-path: inset(0 50% 0 50%); }
html.has-motion [data-arch-reveal] { clip-path: inset(100% 0 0 0 round 50% 50% 0 0); }
