/* ===== SESSIONS.CSS START: THE SPACE PAGE ===== */

.sessions-page {
  overflow-x: hidden;
  background: #f7f2e8;
}

.space-hero {
  position: relative;
  min-height: 92svh;
  overflow: hidden;
  isolation: isolate;
  background: #243025;
}

.space-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.025);
}

.space-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(17, 27, 20, 0.78), rgba(17, 27, 20, 0.38) 44%, rgba(17, 27, 20, 0.08) 76%),
    linear-gradient(180deg, rgba(10, 16, 12, 0.08), rgba(10, 16, 12, 0.28));
}

.space-hero__content {
  position: relative;
  z-index: 3;
  width: min(var(--content-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 17vh 0 90px;
  color: #fffaf1;
}

.space-hero__content h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(4.8rem, 8.2vw, 8.6rem);
  line-height: 0.84;
  letter-spacing: -0.07em;
  text-shadow: 0 8px 28px rgba(15, 24, 17, 0.34);
}

.space-hero__content h1 span {
  display: block;
  color: var(--brass-soft);
  font-style: italic;
  font-weight: 600;
}

.space-hero__content p {
  max-width: 650px;
  margin: 22px 0 30px;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--serif);
  font-size: clamp(1.32rem, 2vw, 1.72rem);
  line-height: 1.22;
}

.space-hero__note {
  position: absolute;
  right: 28px;
  bottom: 22px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.7);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.space-hero__note::before {
  content: "";
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,.5);
}

/* ===== THE SPACE ARRIVAL HANDOFF START ===== */
.is-sessions-arriving .site-header,
.is-sessions-arriving .space-hero__content,
.is-sessions-arriving .space-hero__note {
  opacity: 0;
}

.is-sessions-arriving .site-header {
  transform: translateY(-14px);
}

.is-sessions-arriving .space-hero__content {
  transform: translate3d(0, 18px, 0);
}

.is-sessions-arriving .space-hero__note {
  transform: translate3d(0, 10px, 0);
}

.is-sessions-arriving .space-hero__image {
  transform: scale(1.075);
}

.is-sessions-arriving .space-hero__overlay {
  opacity: .82;
}

.is-sessions-arriving .site-header,
.is-sessions-arriving .space-hero__content,
.is-sessions-arriving .space-hero__note,
.is-sessions-arriving .space-hero__image,
.is-sessions-arriving .space-hero__overlay {
  transition:
    opacity .9s cubic-bezier(.16, 1, .3, 1),
    transform 1.05s cubic-bezier(.16, 1, .3, 1);
}

.is-sessions-arrival-ready .site-header,
.is-sessions-arrival-ready .space-hero__content,
.is-sessions-arrival-ready .space-hero__note {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.is-sessions-arrival-ready .space-hero__image {
  transform: scale(1.025);
}

.is-sessions-arrival-ready .space-hero__overlay {
  opacity: 1;
}
/* ===== THE SPACE ARRIVAL HANDOFF END ===== */

.space-intro {
  padding: 104px 20px 118px;
  background: linear-gradient(180deg, #f7f2e8 0%, #efe7d7 100%);
}

.space-intro__inner {
  display: grid;
  width: min(var(--content-width), 100%);
  margin: 0 auto;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 58px;
  align-items: center;
}

.space-copy h2,
.space-feature-copy h2,
.space-possibilities__head h2,
.space-final__panel h2 {
  margin: 0;
  font-family: var(--serif);
  letter-spacing: -0.055em;
}

.space-copy h2 {
  font-size: clamp(3.8rem, 6vw, 6.2rem);
  line-height: .9;
}

.space-copy p {
  color: #68715f;
  line-height: 1.82;
}

.space-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.space-benefit {
  padding: 16px 18px;
  border: 1px solid rgba(93, 111, 90, .14);
  background: rgba(255,255,255,.56);
  color: #5f6c5c;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.45;
  text-transform: uppercase;
}

.space-intro__image {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  border: 12px solid rgba(255,252,245,.88);
  box-shadow: var(--shadow);
}

.space-intro__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.space-intro__image::after {
  content: "";
  position: absolute;
  inset: 13px;
  border: 1px solid rgba(255,255,255,.5);
  pointer-events: none;
}

.space-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  min-height: 620px;
  background: #1f2e23;
}

.space-feature--reverse {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  background: #efe7d7;
}

.space-feature__image {
  min-height: 100%;
  overflow: hidden;
}

.space-feature__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.space-feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 7vw;
  color: #fffaf1;
}

.space-feature--reverse .space-feature-copy {
  color: var(--ink);
}

.space-feature-copy h2 {
  font-size: clamp(3.3rem, 5vw, 5.4rem);
  line-height: .9;
}

.space-feature-copy p {
  max-width: 560px;
  color: rgba(255,255,255,.75);
  line-height: 1.82;
}

.space-feature--reverse .space-feature-copy p {
  color: #68715f;
}

.space-detail-grid {
  display: grid;
  width: min(var(--content-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 116px 0;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 110px;
  gap: 14px;
}

.space-detail-card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  box-shadow: var(--shadow-soft);
}

.space-detail-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.space-detail-card:hover img {
  transform: scale(1.06);
}

.space-detail-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(17,28,20,.7));
}

.space-detail-card figcaption {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 18px;
  z-index: 2;
  color: #fffaf1;
}

.space-detail-card figcaption strong {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  line-height: .95;
}

.space-detail-card figcaption span {
  display: block;
  margin-top: 5px;
  color: rgba(255,255,255,.76);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.space-detail-card:nth-child(1) { grid-column: span 7; grid-row: span 4; }
.space-detail-card:nth-child(2) { grid-column: span 5; grid-row: span 2; }
.space-detail-card:nth-child(3) { grid-column: span 5; grid-row: span 2; }
.space-detail-card:nth-child(4) { grid-column: span 4; grid-row: span 3; }
.space-detail-card:nth-child(5) { grid-column: span 4; grid-row: span 3; }
.space-detail-card:nth-child(6) { grid-column: span 4; grid-row: span 3; }

.space-possibilities {
  padding: 114px 20px 126px;
  background: linear-gradient(180deg, #ece5d6, #f8f4eb);
}

.space-possibilities__inner {
  width: min(var(--content-width), 100%);
  margin: 0 auto;
}

.space-possibilities__head {
  max-width: 760px;
  margin-bottom: 32px;
}

.space-possibilities__head h2 {
  font-size: clamp(3.8rem, 6vw, 6.2rem);
  line-height: .9;
}

.space-possibilities__head p {
  color: #68715f;
  line-height: 1.8;
}

.space-theme-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.space-theme {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 22px;
  border: 1px solid rgba(86,104,84,.14);
  background: rgba(255,255,255,.56);
}

.space-theme::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(110,129,105,.12);
  pointer-events: none;
}

.space-theme h3 {
  position: relative;
  margin: 0;
  color: #344333;
  font-family: var(--serif);
  font-size: 2rem;
  line-height: .95;
}

.space-theme p {
  position: relative;
  margin: 10px 0 0;
  color: #6b7566;
  line-height: 1.65;
  font-size: .9rem;
}

.space-final {
  position: relative;
  min-height: 74vh;
  overflow: hidden;
  isolation: isolate;
}

.space-final__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.space-final__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(20,31,23,.82), rgba(20,31,23,.4) 46%, rgba(20,31,23,.18));
}

.space-final__panel {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100% - 48px));
  margin-left: 7vw;
  padding: 108px 0 96px;
  color: #fffaf1;
}

.space-final__panel h2 {
  font-size: clamp(3.8rem, 6vw, 6.2rem);
  line-height: .88;
}

.space-final__panel p {
  max-width: 620px;
  color: rgba(255,255,255,.8);
  line-height: 1.8;
}

.space-final__actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

@media (max-width: 980px) {
  .space-intro__inner,
  .space-feature,
  .space-feature--reverse {
    grid-template-columns: 1fr;
  }

  .space-feature--reverse .space-feature__image {
    order: 1;
  }

  .space-feature--reverse .space-feature-copy {
    order: 2;
  }

  .space-theme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .space-hero {
    min-height: 80svh;
  }

  .space-hero__content {
    width: min(100% - 30px, var(--content-width));
    padding-top: 130px;
  }

  .space-hero__content h1 {
    font-size: clamp(4rem, 16vw, 6rem);
  }

  .space-intro {
    padding: 74px 14px 84px;
  }

  .space-intro__inner {
    gap: 32px;
  }

  .space-intro__image {
    min-height: 400px;
  }

  .space-feature-copy {
    padding: 58px 22px;
  }

  .space-detail-grid {
    width: min(100% - 24px, var(--content-width));
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
    padding: 82px 0;
  }

  .space-detail-card:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }

  .space-theme-grid {
    grid-template-columns: 1fr;
  }

  .space-final__panel {
    width: min(100% - 28px, 720px);
    margin: 0 auto;
    padding: 86px 0 74px;
  }

  .space-final__actions {
    flex-direction: column;
  }
}

/* ===== SESSIONS.CSS END: THE SPACE PAGE ===== */