/* Wagtail CMS layer — maps stream blocks to mockup sections */
#main > section,
#main > div { margin: 0; }

/* Portfolio / inner pages — hero headline scale (mockup) */
.page-portfolio-index .page-hero .ph-lt h1,
.page-about .page-hero .ph-lt h1,
.page-team .page-hero .ph-lt h1,
.page-faq .page-hero .ph-lt h1,
.page-contacts .page-hero .ph-lt h1 {
  font-size: clamp(56px, 7.2vw, 96px);
  line-height: 0.95;
}

/* Page hero sidebar meta (styles live in replacement.css for services only) */
.page-hero .ph-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.page-hero .ph-list li,
.page-hero .ph-list .ph-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.page-hero .ph-list li:last-child,
.page-hero .ph-list .ph-stat:last-child { border-bottom: none; }
.page-hero .ph-stats .dt,
.page-hero .ph-stats .dd { margin: 0; }
.page-hero .ph-list .dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}
.page-hero .ph-list .dd {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 350;
  text-align: right;
}

/* Homepage / light CTA info card — readable ink on paper background */
.cta-section .cta-info {
  color: var(--ink);
}
.cta-section .cta-info .row .k {
  color: var(--muted);
}
.cta-section .cta-info .row .v {
  color: var(--ink);
}

/* Hero foot stats */
.hero-foot > div > span {
  display: block;
  margin-top: 4px;
}

/* Stream blocks use mockup .section — reset old .block padding */
#main .section { padding: clamp(64px, 10vh, 140px) 0; }

/* Picture / wagtail images in components */
.hero-img,
.ph-visual img,
.team-card img,
.portfolio-card img,
.style-panel img,
.band-item img,
.ba-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-portrait img { width: 100%; height: 100%; object-fit: cover; }
.team-portrait::before,
.team-portrait::after { display: none; }

.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.form-status.is-error { color: #8b2e2e; }
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--ink);
  color: var(--paper);
}
.skip-link:focus { left: 16px; }
.breadcrumbs-wrap .breadcrumb { margin: 0; }
.filter-btn.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.seo-with-toc {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  align-items: start;
}
.seo-toc {
  position: sticky;
  top: 100px;
}
.seo-toc ol {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.seo-toc a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.seo-toc a:hover { color: var(--accent); }
.seo-narrow { max-width: 680px; }
.seo-wide { max-width: 920px; }

.pf-view-toggle {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.pf-view-toggle button {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 100px;
  cursor: pointer;
}
.pf-view-toggle button.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* Portfolio / about hero sizing comes from replacement.css */

.pf-grid-wrap {
  padding: clamp(48px, 8vh, 80px) 0 clamp(64px, 10vh, 120px);
}

/* Contacts hero phone emphasis */
.contacts-hero .phone-prefix { font-weight: 400; }
.contacts-hero .phone-em { font-weight: 600; }

/* Team founder timeline */
.team-timeline {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  border-left: 1px solid var(--line);
}
.team-timeline li {
  padding: 12px 0 12px 20px;
  font-size: 15px;
  line-height: 1.5;
}
.team-timeline strong {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}

/* Boroughs grid on contacts */
.boroughs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 24px;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  font-size: 14px;
  color: var(--ink-2);
}
@media (max-width: 720px) {
  .boroughs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: fixed;
    inset: 72px 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 24px var(--gutter) 32px;
    flex-direction: column;
    z-index: 90;
  }
  .nav .nav-links.is-open { display: flex !important; flex-direction: column; list-style: none; margin: 0; padding: 24px var(--gutter) 32px; gap: 0; }
  .nav-links > li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; font-size: 18px; }
  .has-sub::before { display: none; }
  .has-sub .submenu {
    position: static;
    display: none;
    margin-top: 0;
    box-shadow: none;
    border: 0;
    padding-left: 16px;
  }
  .has-sub:hover .submenu,
  .has-sub:focus-within .submenu {
    display: none;
  }
  .has-sub.open .submenu {
    display: flex;
  }
  body.nav-open { overflow: hidden; }
}
