/* =========================================================
   House / service detail pages — editorial, distinct from home
   ========================================================= */

.page-house {
  cursor: none;
}

.page-house.has-cursor-none {
  cursor: auto;
}

/* ---------- Hero ---------- */
.house-hero {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding:
    calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 2rem)
    var(--pad)
    clamp(2.5rem, 8vh, 5rem);
  overflow: hidden;
  isolation: isolate;
}

.house-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.house-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.04);
  filter: saturate(0.92) contrast(1.04);
}

.house-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(8, 8, 8, 0.92) 0%, rgba(8, 8, 8, 0.45) 42%, rgba(8, 8, 8, 0.2) 100%),
    linear-gradient(to right, rgba(8, 8, 8, 0.35) 0%, transparent 55%);
  pointer-events: none;
}

.house-hero__content {
  position: relative;
  z-index: 2;
  max-width: 56rem;
}

.house-hero__eyebrow {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(243, 241, 236, 0.72);
  margin-bottom: 0.85rem;
}

.house-hero__regions {
  font-size: clamp(0.7rem, 1.4vw, 0.8125rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(243, 241, 236, 0.55);
  margin-bottom: 1.5rem;
}

.house-hero__title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(3.5rem, 12vw, 8.5rem);
  line-height: 0.88;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  gap: 0.05em;
}

.house-hero__title-serif {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  text-transform: none;
  letter-spacing: -0.02em;
}

/* ---------- Intro ---------- */
.house-intro {
  padding: clamp(4rem, 12vh, 8rem) var(--pad);
  border-top: 1px solid var(--line);
}

.house-intro__grid {
  display: grid;
  grid-template-columns: minmax(7rem, 12rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  max-width: 68rem;
}

.house-intro__lead {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 3.2vw, 2.35rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 28ch;
  margin-bottom: 1.5rem;
  color: var(--fg);
}

.house-intro__body {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: 42ch;
}

/* ---------- Services ---------- */
.house-services {
  padding: 0 var(--pad) clamp(4rem, 12vh, 8rem);
}

.house-services__head {
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
  max-width: 40rem;
}

.house-services__title {
  margin-top: 0.85rem;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.house-services__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.house-services__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.house-services__list li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.85rem;
  align-items: baseline;
  padding: 1.15rem 1.25rem 1.15rem 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(0.95rem, 1.6vw, 1.125rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.house-services__list li:nth-child(odd) {
  padding-right: 1.75rem;
  border-right: 1px solid var(--line);
}

.house-services__list li:nth-child(even) {
  padding-left: 1.75rem;
}

.house-services__list span {
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  color: var(--fg-dim);
  font-variant-numeric: tabular-nums;
}

/* ---------- CTA ---------- */
.house-cta {
  padding: clamp(3.5rem, 10vh, 6.5rem) var(--pad) calc(3rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1.75rem;
  justify-items: start;
}

.house-cta__text {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  line-height: 1.3;
  max-width: 22ch;
}

.house-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: center;
}

.house-cta__btn {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.15rem;
  border: 1px solid var(--line-strong);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.35s var(--ease-out), color 0.35s, border-color 0.35s;
}

.house-cta__btn:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.house-cta__btn--ghost {
  border-color: transparent;
  color: var(--fg-muted);
  padding-left: 0;
}

.house-cta__btn--ghost:hover {
  background: transparent;
  color: var(--fg);
  border-color: transparent;
}

/* ---------- Reveal motion ---------- */
.page-house .house-hero__content > * {
  opacity: 0;
  transform: translateY(28px);
}

.page-house.is-ready .house-hero__content > * {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.page-house.is-ready .house-hero__eyebrow { transition-delay: 0.08s; }
.page-house.is-ready .house-hero__regions { transition-delay: 0.16s; }
.page-house.is-ready .house-hero__title { transition-delay: 0.24s; }

.page-house.is-ready .house-hero__media img {
  transform: scale(1);
  transition: transform 1.6s var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  .page-house .house-hero__content > *,
  .page-house .house-hero__media img {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .page-house {
    overflow-x: clip;
  }

  .house-hero {
    min-height: min(72svh, 640px);
    min-height: min(72dvh, 640px);
    padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 1.15rem);
    padding-bottom: clamp(1.75rem, 5vh, 2.5rem);
    padding-left: max(var(--pad), env(safe-area-inset-left, 0px));
    padding-right: max(var(--pad), env(safe-area-inset-right, 0px));
  }

  .house-hero__content {
    max-width: 100%;
  }

  .house-hero__eyebrow {
    letter-spacing: 0.22em;
  }

  .house-hero__regions {
    letter-spacing: 0.12em;
    font-size: 0.6875rem;
    line-height: 1.45;
    max-width: 100%;
    word-break: break-word;
  }

  .house-hero__title {
    font-size: clamp(2.75rem, 14vw, 4.25rem);
    max-width: 100%;
  }

  .house-hero__title-serif {
    font-size: 0.92em;
    word-break: break-word;
  }

  .house-intro,
  .house-services,
  .house-network,
  .house-upcoming,
  .house-atelier,
  .house-cta {
    padding-left: max(var(--pad), env(safe-area-inset-left, 0px));
    padding-right: max(var(--pad), env(safe-area-inset-right, 0px));
  }

  .house-intro {
    padding-top: clamp(2rem, 5vh, 3rem);
    padding-bottom: clamp(2rem, 5vh, 3rem);
  }

  .house-intro__grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .house-intro__lead {
    max-width: none;
    font-size: clamp(1.3rem, 6.2vw, 1.75rem);
  }

  .house-intro__body {
    max-width: none;
  }

  .house-services {
    padding-bottom: clamp(2.25rem, 6vh, 3.5rem);
  }

  .house-network,
  .house-upcoming {
    padding-top: clamp(2.25rem, 6vh, 3.5rem);
    padding-bottom: clamp(2.25rem, 6vh, 3.5rem);
  }

  .house-services__title {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .house-services__list {
    grid-template-columns: 1fr;
  }

  .house-services__list li,
  .house-services__list li:nth-child(odd),
  .house-services__list li:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
    border-right: 0;
    font-size: 0.95rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .house-caps__grid {
    grid-template-columns: 1fr;
  }

  .house-caps__item,
  .house-caps__item:nth-child(odd),
  .house-caps__item:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
    border-right: 0;
    padding-top: 1.15rem;
    padding-bottom: 1.25rem;
  }

  .house-caps__item h3 {
    font-size: 1.05rem;
  }

  .house-caps__item p {
    max-width: none;
    font-size: 0.875rem;
  }

  .house-network__stats {
    max-width: none;
    font-size: clamp(1.35rem, 6.5vw, 2rem);
  }

  .house-network__copy {
    max-width: none;
  }

  .house-atelier__grid {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.15rem;
  }

  .house-atelier__lead {
    max-width: none;
  }

  .house-atelier__link {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
    min-height: 2.85rem;
  }

  .house-atelier {
    padding-bottom: clamp(2rem, 5vh, 3rem);
  }

  .page-fnb .house-brand-media {
    margin: 0.85rem 0 1.25rem;
    max-height: 42svh;
  }

  .page-fnb .house-brand-media--terminal {
    max-width: 100%;
    width: 100%;
    max-height: 38svh;
  }

  .house-upcoming {
    max-width: none;
  }

  .house-upcoming__title {
    font-size: clamp(2.25rem, 14vw, 3.5rem);
  }

  .house-upcoming__lead {
    max-width: none;
  }

  .house-cta {
    padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px));
  }

  .house-cta__text {
    max-width: none;
  }

  .house-cta__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .house-cta__btn {
    width: 100%;
    justify-content: center;
    min-height: 2.85rem;
  }

  .house-cta__btn--ghost {
    width: 100%;
    justify-content: center;
    padding-left: 1.15rem;
  }
}

@media (max-width: 560px) {
  .house-hero {
    min-height: min(68svh, 560px);
    min-height: min(68dvh, 560px);
  }

  .house-hero__title {
    font-size: clamp(2.35rem, 12.5vw, 3.15rem);
    line-height: 0.9;
  }

  .house-intro,
  .house-services,
  .house-network,
  .house-upcoming,
  .house-atelier {
    padding-top: clamp(1.75rem, 4.5vh, 2.5rem);
    padding-bottom: clamp(1.75rem, 4.5vh, 2.5rem);
  }

  .house-services__list li {
    grid-template-columns: 2rem 1fr;
    gap: 0.65rem;
  }
}

/* ---------- Capability cards (Campus etc.) ---------- */
.house-caps__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.house-caps__item {
  padding: 1.35rem 1.5rem 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.house-caps__item:nth-child(odd) {
  padding-right: 1.75rem;
  border-right: 1px solid var(--line);
}

.house-caps__item:nth-child(even) {
  padding-left: 1.75rem;
}

.house-caps__item span {
  display: block;
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  color: var(--fg-dim);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.65rem;
}

.house-caps__item h3 {
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 0.65rem;
}

.house-caps__item p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 42ch;
  margin: 0;
}

/* ---------- Network / stats ---------- */
.house-network {
  padding: clamp(3.5rem, 10vh, 6.5rem) var(--pad);
  border-top: 1px solid var(--line);
}

.house-network__stats {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.6vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0.85rem 0 1.75rem;
  max-width: 22ch;
}

.house-network__copy {
  max-width: 48ch;
}

.house-network__copy p {
  font-size: 0.975rem;
  line-height: 1.65;
  color: var(--fg-muted);
  margin-bottom: 1rem;
}

.house-network__copy p:last-child {
  margin-bottom: 0;
}

.page-campus .house-hero__media img {
  object-position: center 45%;
  filter: saturate(0.95) contrast(1.02) brightness(0.92);
}

.page-campus .house-intro__body + .house-intro__body {
  margin-top: 1rem;
}

.page-art .house-hero__media img {
  object-position: center 55%;
  filter: saturate(0.9) contrast(1.04) brightness(0.9);
}

.page-art .house-intro__body + .house-intro__body {
  margin-top: 1rem;
}

.page-digital .house-hero__media img {
  object-position: center 40%;
  filter: saturate(1.05) contrast(1.04) brightness(0.94);
}

.page-digital .house-intro__body + .house-intro__body {
  margin-top: 1rem;
}

.page-fnb .house-hero__media img {
  object-position: center 40%;
  filter: saturate(0.95) contrast(1.06) brightness(0.9);
}

.page-fnb .house-services__list {
  grid-template-columns: 1fr;
  max-width: 36rem;
}

.page-fnb .house-services__list li:nth-child(odd) {
  padding-right: 0;
  border-right: 0;
}

.page-fnb .house-services__list li:nth-child(even) {
  padding-left: 0;
}

.page-fnb .house-brand-media {
  max-width: 68rem;
  margin: 1.25rem 0 2rem;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
}

.page-fnb .house-brand-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: saturate(0.98) contrast(1.05) brightness(0.92);
}

.page-fnb .house-brand-media--terminal {
  aspect-ratio: 3 / 4;
  max-width: 28rem;
}

.page-fnb .house-brand-media--terminal img {
  object-position: center center;
  filter: none;
}

/* ---------- Atelier callout ---------- */
.house-atelier {
  padding: 0 var(--pad) clamp(3rem, 8vh, 5rem);
}

.house-atelier__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: clamp(1.25rem, 3vw, 3rem);
  align-items: end;
  max-width: 68rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.house-atelier__lead {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  line-height: 1.3;
  max-width: 28ch;
  margin: 0;
}

.house-atelier__note {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 36ch;
  margin: 0.75rem 0 0;
}

.house-atelier__grid--spaced {
  margin-top: 2rem;
}

.house-atelier__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.15rem;
  border: 1px solid var(--line-strong);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.35s var(--ease-out), color 0.35s, border-color 0.35s;
}

.house-atelier__link:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

/* ---------- Upcoming project ---------- */
.house-upcoming {
  padding: clamp(3.5rem, 10vh, 6.5rem) var(--pad);
  border-top: 1px solid var(--line);
  max-width: 40rem;
}

.house-upcoming__title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 0.95;
  margin: 0.75rem 0 1.25rem;
}

.house-upcoming__lead {
  font-size: 0.975rem;
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: 42ch;
  margin-bottom: 1.25rem;
}

.house-upcoming__soon {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--fg);
}
