/* One outer frame and one reading grid across the entire page. */
:root {
  --page-gutter: clamp(24px, 6vw, 88px);
  --content-width: 1280px;
  --section-inset: clamp(20px, 4vw, 56px);
  --frame-edge: max(var(--page-gutter), calc((100% - var(--content-width)) / 2));
}
html, body { min-width: 0; width: 100%; }
.wrap {
  width: min(var(--content-width), calc(100% - var(--page-gutter) * 2));
  max-width: none;
  min-width: 0;
  margin-inline: auto;
}
.header-inner { padding-inline: var(--section-inset); }
.header .brand, .header nav, .header-cta { min-width: 0; }
.header .brand img { width: 220px; max-width: 100%; }
.header nav { gap: clamp(14px, 1.5vw, 22px); }
.header-cta { padding-inline: 18px; }
.section { padding: var(--section-inset); }
.source-faithful .photo-section { --photo-space: var(--section-inset); padding: 0; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  padding: var(--section-inset);
  min-height: 0;
}
.hero-copy { width: 100%; max-width: none; min-width: 0; }
.source-faithful .hero h1 { font-size: clamp(32px, 4.1vw, 60px); overflow-wrap: break-word; }
.hero .eyebrow, .hero-description { max-width: 100%; }
.brand-scene {
  position: relative;
  inset: auto;
  width: 100%;
  max-width: 100%;
  height: clamp(360px, 38vw, 560px);
  margin: 0;
  min-width: 0;
}
.brand-stage, .brand-stage canvas { max-width: 100%; }
.source-faithful .source-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-inline: var(--section-inset);
  gap: clamp(16px, 2vw, 28px);
}
.source-faithful .source-stats > div { min-width: 0; padding-right: 16px; }
.source-faithful .source-stats strong { overflow-wrap: normal; }
.footer { padding-inline: var(--section-inset); }
.footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.footer-top > *, .footer-bottom > * { min-width: 0; }
.footer-brand img { max-width: 100%; height: auto; }
.footer p, .footer a, .contact-phone { overflow-wrap: anywhere; }
.contact-form-box { width: 100%; max-width: 100%; margin-inline: 0; }
.source-faithful .mobile-contact {
  right: var(--frame-edge);
  bottom: calc(24px + env(safe-area-inset-bottom));
  max-width: calc(100% - var(--page-gutter) * 2);
}
.cookie-notice {
  left: var(--frame-edge);
  right: var(--frame-edge);
  width: auto;
  max-width: none;
  padding-inline: var(--section-inset);
}
.legal-page { padding-inline: var(--section-inset); }
@media (max-width: 1100px) {
  .header-inner { grid-template-columns: minmax(0, 1fr) auto auto; gap: 18px; }
  .header-cta { grid-column: 2; }
  .header .menu-toggle { grid-column: 3; }
  .header nav { left: 0; right: 0; padding-inline: var(--section-inset); }
  .source-faithful .source-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .source-faithful .source-stats > div:nth-child(2n) { border: 0; padding-right: 0; }
}
@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero-copy { max-width: 640px; }
  .hero .brand-scene { display: none; }
  .source-faithful .hero h1 { font-size: clamp(32px, 5.7vw, 48px); }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 850px) {
  .photo-section .photo-backdrop img,
  .photo-about .photo-backdrop img,
  .photo-arrival .photo-backdrop img { width: 100%; max-width: 100%; }
  .photo-arrival .photo-backdrop img, .photo-services .photo-backdrop img { object-position: right center; }
}
@media (max-width: 760px) {
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 16px; }
  .header .menu-toggle { grid-column: 2; }
  .header .brand img { width: 218px; max-width: 100%; }
}
@media (max-width: 600px) {
  .source-faithful .source-stats { gap: 24px 16px; }
  .source-faithful .source-stats > div { border: 0; padding-right: 0; }
  .source-faithful .source-stats strong { font-size: clamp(16px, 4.8vw, 24px); letter-spacing: -.025em; }
  .source-faithful .source-stats span { font-size: 14px; }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-brand { grid-column: auto; }
  .source-faithful .mobile-contact { right: var(--frame-edge); bottom: calc(24px + env(safe-area-inset-bottom)); }
  .source-faithful .route-tabs button { overflow-wrap: anywhere; }
  .contact-form-box { padding-inline: 18px; }
}
@media (max-width: 360px) {
  .source-faithful .source-stats { grid-template-columns: minmax(0, 1fr); }
  .source-faithful .source-stats strong { font-size: 22px; }
  .source-faithful .hero h1 { font-size: 29px; }
  .source-faithful .mobile-contact { padding-inline: 12px; gap: 8px; }
  .mobile-contact img { width: 48px; flex-basis: 48px; }
}

.source-faithful .hero h1 span { font-weight: 700; }
/* The same inner edge is shared by the header, body, statistics and footer. */
.header-inner, .source-faithful .source-stats, .footer { padding-inline: var(--section-inset); }
/* Keep the four exemption conditions in two equal pairs. */
@media (min-width: 851px) {
  #route-exempt .source-route-list {
    display: grid;
    columns: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
    gap: 18px 48px;
  }
  #route-exempt .source-route-list li { min-width: 0; margin-bottom: 0; }
}

/* Shared column rhythm, including the formerly inset glass cards. */
:root { --grid-gap: clamp(24px, 3.3vw, 48px); --section-gap: clamp(48px, 6vw, 84px); }
.source-faithful main > .section { margin-block: var(--section-gap); }
.source-history > div,
.approach-promises,
.staffing-grid,
.source-process .section-heading {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--grid-gap);
  align-items: start;
}
.source-process .section-heading .section-intro { margin: 0; padding: 0; }
.approach-promises > .glass-panel { padding: 0; }
.source-faithful .approach-promises h3 { margin: 0 0 16px; }
.approach-principles article { padding-block: 24px; }
.approach-principles article:first-child { padding-top: 0; }
.approach-principles article:last-child { padding-bottom: 0; }
.source-route-panel.glass-panel { margin-inline: 0; padding: 8px 0 0; }
.source-faithful .route-tabs { padding: 0; margin: 0 0 32px; gap: 12px; }
.source-route-list { padding: 0; list-style: none; column-gap: var(--grid-gap); }
.source-route-list li { position: relative; padding-left: 18px; }
.source-route-list li::before { content: ''; position: absolute; top: .8em; left: 0; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.photo-services .complete-list,
.administration-details .complete-list { column-gap: var(--grid-gap); row-gap: 16px; }
.photo-industries .industry-choice button,
.photo-industries .industry-choice .industry-detail { padding-inline: 0; }
.photo-industries .industry-choice button { border: 0; padding-block: 14px; }
.photo-industries .industry-choice.is-active button { background: none; color: #286a91; }
.photo-industries .industry-choice .industry-detail { padding-top: 0; }
.source-faithful main p,
.source-faithful main li { overflow-wrap: break-word; }
.source-faithful main h2,
.source-faithful main h3 { word-spacing: normal; }
.source-faithful main .source-history h3 { word-spacing: normal; }
.footer-compact-nav { column-gap: var(--grid-gap); }
.footer-compact .footer-logo img { width: 220px; }
.legal-page { padding-block: var(--section-inset); }
.legal-page h1 { margin-top: 0; }
.legal-contents { gap: 16px var(--grid-gap); }
.legal-page section { padding-top: 32px; }
.legal-page section h2 { margin-bottom: 20px; }
@media (min-width: 851px) {
  #route-exempt .source-route-list { column-gap: var(--grid-gap); }
  .photo-about .founder-label { left: calc(50% + var(--grid-gap) / 2); padding-left: 0; }
}
@media (max-width: 1000px) {
  .staffing-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 850px) {
  .source-history > div,
  .approach-promises,
  .source-process .section-heading { grid-template-columns: minmax(0, 1fr); }
  .source-route-list { columns: 1; }
  .photo-stage { padding-top: var(--section-inset); }
  .photo-industries .industry-inline-scene { margin-inline: calc(-1 * var(--photo-space)); }
  .photo-industries .industry-choice button { scroll-margin-top: 8px; }
}
@media (max-width: 650px) {
  .footer-compact-nav { width: 100%; gap: 16px 24px; }
  .legal-contents { grid-template-columns: minmax(0, 1fr); }
  .legal-page section h2 { font-size: 24px; }
}
@media (min-width: 361px) and (max-width: 600px) {
  .source-faithful .source-stats strong { min-height: 2.6em; }
}
@media (max-width: 360px) {
  .source-faithful .source-stats strong { min-height: 0; }
}

@media (max-width: 600px) {
  .source-faithful .route-tabs { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px; }
  .source-faithful .route-tabs button { font-size: 14px; padding: 10px 8px; overflow-wrap: normal; }
}
