/* DEKK spaces page styles */
.dekk-spaces-hero {
  position: relative;
  min-height: clamp(560px, 78vh, 760px);
  display: grid;
  align-items: end;
  isolation: isolate;
  color: var(--dekk-white);
}

.dekk-spaces-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--dekk-ink);
}

.dekk-spaces-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.04);
}

.dekk-spaces-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 16, 13, 0.88), rgba(17, 16, 13, 0.56) 48%, rgba(17, 16, 13, 0.18)),
    linear-gradient(0deg, rgba(17, 16, 13, 0.78), transparent 45%);
}

.dekk-spaces-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.46fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
  padding: clamp(84px, 12vw, 132px) 0 clamp(42px, 7vw, 82px);
}

.dekk-spaces-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--dekk-white);
  font-size: clamp(3.4rem, 8vw, 7.4rem);
  line-height: 0.9;
  font-weight: 950;
  letter-spacing: 0;
}

.dekk-spaces-hero .dekk-kicker {
  color: var(--dekk-gold);
}

.dekk-spaces-hero p:not(.dekk-kicker) {
  max-width: 690px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--dekk-text-lg);
  line-height: 1.56;
}

.dekk-spaces-hero-panel {
  display: grid;
  gap: 12px;
}

.dekk-spaces-pill {
  display: grid;
  gap: 4px;
  min-height: 112px;
  align-content: end;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--dekk-radius);
  background: rgba(248, 246, 239, 0.12);
  backdrop-filter: blur(16px);
}

.dekk-spaces-pill b {
  color: var(--dekk-white);
  font-size: clamp(1.8rem, 3.2vw, 3.2rem);
  line-height: 1;
  font-weight: 950;
}

.dekk-spaces-pill span {
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--dekk-text-sm);
  line-height: 1.35;
}

.dekk-spaces-overview {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: start;
}

.dekk-spaces-sticky-note {
  position: sticky;
  top: 112px;
}

.dekk-spaces-map {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: minmax(128px, auto);
  gap: 12px;
}

.dekk-space-card {
  display: grid;
  align-content: space-between;
  gap: 20px;
  min-height: 210px;
  padding: clamp(20px, 2.6vw, 28px);
  border: 1px solid rgba(43, 37, 38, 0.1);
  border-radius: var(--dekk-radius);
  background: var(--dekk-white);
  box-shadow: 0 1px 0 rgba(17, 16, 13, 0.06);
}

.dekk-space-card.is-burgundy {
  grid-column: span 3;
  color: var(--dekk-white);
  background: var(--dekk-burgundy);
}

.dekk-space-card.is-olive {
  grid-column: span 3;
  color: var(--dekk-white);
  background: var(--dekk-olive);
}

.dekk-space-card.is-large {
  grid-column: span 4;
  min-height: 290px;
  background: var(--dekk-ink);
  color: var(--dekk-white);
}

.dekk-space-card.is-soft {
  grid-column: span 2;
  background: var(--dekk-ivory);
}

.dekk-space-card.is-wide {
  grid-column: span 3;
}

.dekk-space-card h2,
.dekk-space-card h3 {
  margin: 0;
  color: inherit;
  font-size: clamp(1.28rem, 2.1vw, 2rem);
  line-height: 1.08;
  font-weight: 900;
}

.dekk-space-card p {
  margin: 0;
  color: inherit;
  opacity: 0.76;
  line-height: 1.58;
}

.dekk-space-measure {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: inherit;
  font-weight: 900;
}

.dekk-space-measure b {
  font-size: clamp(2rem, 4.5vw, 4.8rem);
  line-height: 0.9;
  font-weight: 950;
}

.dekk-infra-band {
  background: var(--dekk-ink);
  color: var(--dekk-white);
}

.dekk-infra-band .dekk-section-title,
.dekk-infra-band .dekk-kicker {
  color: var(--dekk-white);
}

.dekk-infra-band .dekk-lead {
  color: rgba(255, 255, 255, 0.76);
}

.dekk-infra-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.dekk-infra-item {
  min-height: 154px;
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--dekk-radius);
  background: rgba(255, 255, 255, 0.06);
}

.dekk-infra-item b {
  color: var(--dekk-white);
  font-size: var(--dekk-text-lg);
  line-height: 1.15;
}

.dekk-infra-item span {
  color: rgba(255, 255, 255, 0.68);
  font-size: var(--dekk-text-sm);
  line-height: 1.45;
}

.dekk-flow {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
}

.dekk-flow-image {
  aspect-ratio: 4 / 3;
  min-height: 0;
  max-height: 460px;
  border-radius: var(--dekk-radius);
  overflow: hidden;
  box-shadow: var(--dekk-shadow);
}

.dekk-flow-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.dekk-flow-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.dekk-flow-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  align-items: start;
  padding: 18px;
  border: 1px solid rgba(43, 37, 38, 0.1);
  border-radius: var(--dekk-radius);
  background: var(--dekk-white);
}

.dekk-flow-row b {
  color: var(--dekk-burgundy);
  font-size: var(--dekk-text-sm);
  font-weight: 900;
}

.dekk-flow-row span {
  color: rgba(43, 37, 38, 0.74);
  line-height: 1.55;
}

.dekk-spaces-cta {
  background: var(--dekk-ivory);
}

.dekk-cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.dekk-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

@media (max-width: 980px) {
  .dekk-spaces-hero-inner,
  .dekk-spaces-overview,
  .dekk-flow,
  .dekk-cta-grid {
    grid-template-columns: 1fr;
  }

  .dekk-spaces-sticky-note {
    position: static;
  }

  .dekk-spaces-map,
  .dekk-infra-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dekk-space-card,
  .dekk-space-card.is-burgundy,
  .dekk-space-card.is-olive,
  .dekk-space-card.is-large,
  .dekk-space-card.is-soft,
  .dekk-space-card.is-wide {
    grid-column: auto;
  }

  .dekk-cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .dekk-spaces-hero {
    min-height: 690px;
  }

  .dekk-spaces-map,
  .dekk-infra-grid {
    grid-template-columns: 1fr;
  }

  .dekk-flow-image {
    aspect-ratio: 16 / 10;
    max-height: none;
  }

  .dekk-flow-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
