/* Shared page rhythm. Load after the existing site, team and reservation CSS.
   Typography, content, hero artwork and media/card geometry remain established. */
:root {
  --rhythm-section: clamp(64px, 7vw, 112px);
  --rhythm-intro: clamp(72px, 7.5vw, 120px);
  --rhythm-heading: clamp(32px, 3.5vw, 48px);
  --rhythm-copy: 24px;
  --rhythm-paragraph: 16px;
  --rhythm-action: 32px;
  --rhythm-columns: clamp(32px, 5vw, 80px);
  --rhythm-panel: clamp(24px, 3vw, 40px);
}

/* Home, Studio, all six company profiles, Team, Contact and Book a Space. */
.review-route > .section,
.review-route > .studio-section,
.review-route > .company-section,
.review-route > .contact-page-body,
.review-route > .witness-reservations {
  padding-block: var(--rhythm-section);
}

/* Page introductions share breathing room without forcing sparse fixed heights.
   The illustrated homepage hero and split company images keep their geometry. */
.studio-intro-inner,
.contact-page-hero-inner {
  min-height: 0;
  padding-block: var(--rhythm-intro);
  gap: var(--rhythm-columns);
}
.team-intro-inner,
.company-hero-copy {
  padding-block: var(--rhythm-intro);
}
.studio-intro-copy,
.contact-page-intro,
.company-about-copy {
  padding-bottom: 0;
  padding-top: 0;
}
.contact-page-hero-inner > * {
  min-width: 0;
}
.contact-page-hero h1 {
  max-width: 100%;
  font-size: clamp(54px, 6.4vw, 112px);
}

/* Section titles consistently introduce their grids, copy or media. */
.section-heading,
.studio-section-title,
.company-section-heading,
.portfolio-navigator-heading {
  margin-bottom: var(--rhythm-heading);
}
.section-heading p,
.contact-inner p,
.studio-cta-inner p,
.company-lede,
.company-original,
.studio-bridge-inner p {
  margin-top: var(--rhythm-copy);
}
.summit-copy > p:not(.summit-date) {
  margin-top: var(--rhythm-copy);
}
.summit-copy > p:not(.summit-date) + p {
  margin-top: var(--rhythm-paragraph);
}
.summit-date,
.contact-page-kicker {
  margin-bottom: var(--rhythm-copy);
}
.company-about-copy > p {
  max-width: 64ch;
  margin-bottom: 0;
}
.company-about-copy > p + p {
  margin-top: var(--rhythm-paragraph);
}
.company-about-copy ul {
  margin-top: var(--rhythm-action);
}
.section-heading p,
.studio-intro-copy > p,
.company-lede,
.contact-page-intro {
  max-width: 56ch;
}

/* Use one gutter scale while preserving the existing responsive grid columns. */
.summit-inner,
.contact-inner,
.studio-cta-inner,
.company-about-grid,
.contact-page-grid,
.reservation-layout {
  column-gap: var(--rhythm-columns);
  row-gap: var(--rhythm-heading);
}

/* Cards and controls retain their designs; only their inner space is unified. */
.platform-card,
.team-card,
.contact-form,
.reservation-panel,
.studio-company-copy {
  padding: var(--rhythm-panel);
}
.team-card {
  gap: var(--rhythm-copy);
}
.contact-form {
  gap: var(--rhythm-copy);
}
.summit-actions,
.studio-intro-actions,
.company-hero .button,
.updates-link,
.contact-direct {
  margin-top: var(--rhythm-action);
}

/* The booking page uses the same title/copy/action rhythm as other pages. */
.reservation-kicker {
  margin-bottom: 16px;
}
.reservation-intro h1,
.reservation-intro h2 {
  margin: 0 0 var(--rhythm-copy);
}
.reservation-hours {
  margin-top: var(--rhythm-action);
}
.reservation-direct,
.reservation-multiday {
  margin-top: var(--rhythm-copy);
}
.reservation-desks,
.reservation-details {
  margin-top: var(--rhythm-action);
  padding-top: var(--rhythm-copy);
}
.reservation-spaces legend {
  margin-bottom: var(--rhythm-copy);
}

/* Keep this homepage title to one clean desktop line without changing the
   typography scale of other portfolio headings or introducing phone overflow. */
[data-route="home"] .portfolio .section-heading h2 {
  max-width: 100%;
  font-size: clamp(28px, 4.2vw, 60px);
  line-height: 1.05;
}
@media (min-width: 821px) {
  [data-route="home"] .portfolio .section-heading h2 {
    white-space: nowrap;
  }
}

/* The newsletter remains a deliberately compact announcement, with the same
   internal text and action scale rather than full body-section padding. */
.bimonthly-inner {
  padding-block: clamp(32px, 3.5vw, 48px);
}
.bimonthly-copy p {
  margin-top: var(--rhythm-paragraph);
}

@media (max-width: 820px) {
  .studio-intro-inner,
  .contact-page-hero-inner {
    align-items: start;
  }
  .summit-poster {
    margin-top: 0;
  }
}

@media (max-width: 900px) {
  .contact-page-hero-inner,
  .contact-page-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  :root {
    --rhythm-section: 64px;
    --rhythm-intro: 64px;
    --rhythm-heading: 32px;
    --rhythm-copy: 20px;
    --rhythm-action: 28px;
    --rhythm-columns: 28px;
    --rhythm-panel: 24px;
  }
  [data-route="home"] .portfolio .section-heading h2 {
    font-size: clamp(20px, 6.2vw, 34px);
    white-space: nowrap;
    overflow-wrap: normal;
  }
  .contact-page-hero h1 {
    font-size: clamp(44px, 13.4vw, 72px);
  }
}

/* Complete site directory, with a genuinely transparent white Witness mark. */
.site-footer .footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 48px;
  padding-block: 64px 28px;
}
.footer-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.site-footer .footer-brand {
  width: 200px;
  background: transparent;
}
.site-footer .footer-brand img {
  filter: brightness(0) invert(1);
  background: transparent;
}
.footer-intro p {
  max-width: 46ch;
  color: rgba(255, 255, 255, .76);
  line-height: 1.6;
}
.footer-directory {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.footer-column { min-width: 0; }
.footer-column h2 {
  margin: 0 0 20px;
  color: var(--lime);
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.5;
  text-transform: uppercase;
}
.footer-column ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-column a {
  display: inline-block;
  max-width: 100%;
  padding-block: 4px;
  color: var(--white);
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  text-underline-offset: 4px;
}
.footer-column a:hover { text-decoration: underline; }
.footer-directory a:focus-visible,
.footer-brand:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 5px;
}
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.site-footer .footer-bottom small {
  display: block;
  padding: 0;
  border: 0;
  font-size: 12px;
  line-height: 1.6;
}
.team-profile-link { text-underline-offset: 5px; }
.team-profile-link:hover { text-decoration: underline; }
.team-profile-link:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 5px;
}
.team-profile-arrow {
  display: inline-block;
  margin-left: 8px;
  color: var(--cobalt);
  font-size: .68em;
  vertical-align: .1em;
}
@media (max-width: 1000px) {
  .footer-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .site-footer .footer-inner { gap: 32px; padding-block: 48px 24px; }
  .footer-intro { align-items: flex-start; flex-direction: column; gap: 24px; }
  .site-footer .footer-brand { width: 184px; }
  .footer-directory { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 32px; }
  .footer-column h2 { margin-bottom: 12px; }
  .footer-column ul { gap: 4px; }
}
