/* S3 additions to the approved S2D editorial system. Local review only. */

/* Preserve the equal-weight S2D hub title at every viewport. */
.lenses {
  grid-template-columns: minmax(0, 1fr) minmax(190px, clamp(190px, 19vw, 232px)) minmax(0, 1fr);
  gap: 1rem clamp(1.5rem, 3vw, 3rem);
}
.lenses__hub { padding: .5rem; }
.lenses__hub-title {
  font-size: clamp(1.0625rem, 1.5vw, 1.5rem);
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1.12;
}
.lenses__hub-title > span,
.lenses__hub-title > .lenses__hub-word--long {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  white-space: nowrap;
}

/* Fit the S3 seven-link navigation on desktop and preserve the S2D mobile header pattern. */
@media (min-width: 1101px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "brand nav action";
    column-gap: .75rem;
  }
  .site-brand { width: min(100%, 240px); }
  .primary-nav {
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 0 clamp(.25rem, .6vw, .55rem);
  }
  .primary-nav a { font-size: .875rem; white-space: nowrap; }
  .header-action .cta { min-height: 2.75rem; padding: .45rem .75rem; font-size: var(--fs-label); }
}

@media (max-width: 480px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "brand" "nav";
  }
  .header-action { display: none; }
  .site-brand { width: min(74%, 240px); }
  .primary-nav { gap: 0 .35rem; }
  .primary-nav a { flex: 1 1 29%; min-height: 2.75rem; }
}

/* Shared S3 page blocks. */
.page-hero--image { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(260px, .95fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.page-hero--image .ph { --ph-ratio: 4 / 3; }
.page-hero--image .page-hero__inner { max-width: 48rem; }
.page-hero--image .page-hero__inner > p:not(.eyebrow) { max-width: 46rem; }
.page-hero__inner .action-row { margin-top: 1.3rem; }
.section-intro { max-width: 54rem; margin-bottom: 2rem; }
.section-intro h2 { margin: 0; font-family: var(--ehs-serif); font-size: var(--fs-h2); font-weight: 500; line-height: 1.1; letter-spacing: -.02em; }
.section-intro > p:not(.eyebrow) { margin: .85rem 0 0; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.editorial-card { min-width: 0; padding: clamp(1.2rem, 2.2vw, 1.8rem); border: 1px solid var(--ehs-border); background: var(--ehs-white); }
.editorial-card h2, .editorial-card h3 { margin: .2rem 0 0; font-family: var(--ehs-serif); font-size: var(--fs-h3); font-weight: 500; line-height: 1.16; }
.editorial-card > p { margin: .65rem 0 0; }
.editorial-card .eyebrow { margin-bottom: .35rem; }
.editorial-card .cta { margin-top: 1rem; }
.editorial-card .ph { margin: -1.2rem -1.2rem 1.1rem; width: calc(100% + 2.4rem); --ph-ratio: 16 / 9; }
.card-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid--four .editorial-card { padding: 1.1rem; }
.card-grid--four .editorial-card .ph { margin: -1.1rem -1.1rem .9rem; width: calc(100% + 2.2rem); }
.card-grid--four .editorial-card h2, .card-grid--four .editorial-card h3 { font-size: 1.3rem; }
.scope-banner { margin-top: 1.4rem; padding: 1rem 1.1rem; border-left: 4px solid var(--ehs-bronze); background: var(--ehs-stone); font-size: var(--fs-small); }
.scope-banner strong { color: var(--ehs-ink); }
.service-detail { padding-block: clamp(2.6rem, 5vw, 4.6rem); }
.service-detail__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3.8rem); align-items: start; }
.service-detail__media { min-width: 0; }
.service-detail__media .ph { --ph-ratio: 4 / 3; }
.service-detail__copy { min-width: 0; }
.service-detail__copy h1 { margin: 0; font-family: var(--ehs-serif); font-size: clamp(2.1rem, 1.2rem + 3vw, 3.5rem); font-weight: 500; line-height: 1.05; letter-spacing: -.025em; }
.service-detail__copy h2 { margin: 1.7rem 0 .35rem; font-family: var(--ehs-serif); font-size: 1.55rem; font-weight: 500; line-height: 1.18; }
.service-detail__copy p { margin: .8rem 0 0; }
.service-detail__copy ul { margin: .55rem 0 0; padding-left: 1.2rem; }
.service-detail__copy li { padding: .18rem 0; }
.service-detail__copy li::marker { color: var(--ehs-bronze); }
.step-list { margin: 1rem 0 0; padding: 0; list-style: none; counter-reset: s3step; }
.step-list li { counter-increment: s3step; padding: .9rem 0 .9rem 3.2rem; position: relative; border-top: 1px solid var(--ehs-border); }
.step-list li::before { content: "0" counter(s3step); position: absolute; left: 0; top: .85rem; color: var(--ehs-bronze); font-family: var(--ehs-serif); font-size: 1.1rem; }
.step-list strong { display: block; color: var(--ehs-ink); }
.fact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 1.5rem; }
.fact-grid article { padding-top: .8rem; border-top: 2px solid var(--ehs-ink); }
.fact-grid h3 { margin: 0; font-family: var(--ehs-serif); font-size: 1.3rem; font-weight: 500; line-height: 1.2; }
.fact-grid p { margin: .4rem 0 0; font-size: var(--fs-small); }
.table-scroll { max-width: 100%; overflow-x: auto; }
.table-scroll:focus { outline: 3px solid var(--ehs-bronze); outline-offset: 3px; }
.scope-table { width: 100%; border-collapse: collapse; background: var(--ehs-white); font-size: var(--fs-small); }
.scope-table caption { padding-bottom: .75rem; text-align: left; caption-side: top; }
.scope-table th, .scope-table td { padding: .9rem; border: 1px solid var(--ehs-border); text-align: left; vertical-align: top; }
.scope-table thead th { color: var(--ehs-ink); background: var(--ehs-stone); }
.scope-table tbody th { width: 18%; color: var(--ehs-ink); background: var(--ehs-canvas); }
.scope-table ul { margin: 0; padding-left: 1.05rem; }
.scope-table li + li { margin-top: .25rem; }
.breadcrumbs li[aria-current="page"] { color: var(--ehs-muted); }
.report-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1rem; margin-top: 1rem; }
.report-cta p { flex: 1 1 16rem; margin: 0; font-size: var(--fs-small); }
.contact-email { padding: 1rem 1.2rem; border: 1px solid var(--ehs-border); background: var(--ehs-white); overflow-wrap: anywhere; }
.contact-email strong { display: block; color: var(--ehs-ink); }
.contact-email code { display: inline-block; margin-top: .3rem; color: var(--ehs-ink); font: 600 1rem/1.5 var(--ehs-sans); }
.form-status { margin-top: 1rem; padding: .9rem 1rem; border-left: 4px solid var(--ehs-ink); color: var(--ehs-ink); background: var(--ehs-stone); font-weight: 650; }
.form-status:empty { display: none; }
.form-demo .hint { max-width: 58rem; }
.form-demo .form-note { margin: .8rem 0 0; font-size: var(--fs-small); }
.form-demo .form-field input, .form-demo .form-field select, .form-demo .form-field textarea { min-height: 2.9rem; }
.form-demo .form-field textarea { min-height: 8rem; }
.form-demo .form-check label { line-height: 1.5; }
.form-demo .field-error { margin: .3rem 0 0; color: #7b241c; font-size: var(--fs-small); font-weight: 650; }
.founder-profile { display: grid; grid-template-columns: minmax(190px, .55fr) minmax(0, 1.45fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.founder-photo-reserved { min-height: 20rem; display: grid; place-items: center; padding: 1.2rem; border: 1px dashed var(--ehs-ink); color: var(--ehs-ink); background: var(--ehs-stone); text-align: center; }
.founder-photo-reserved span { max-width: 15rem; font-size: var(--fs-small); font-weight: 650; }
.founder-profile h2 { margin: 0; font-family: var(--ehs-serif); font-size: var(--fs-h2); font-weight: 500; line-height: 1.1; }
.founder-profile p { margin: .9rem 0 0; }
.founder-credentials { margin: 1.2rem 0 0; padding: 1rem 1.1rem; border-left: 4px solid var(--ehs-bronze); background: var(--ehs-stone); }
.founder-credentials p { margin: 0; }
.draft-banner { margin: 1rem 0 1.5rem; padding: 1rem 1.2rem; border: 2px solid var(--ehs-ink); color: var(--ehs-ink); background: var(--ehs-stone); font-weight: 700; }
.draft-banner p { margin: .35rem 0 0; font-weight: 500; }
.legal-draft h2 { margin: 1.8rem 0 .5rem; font-family: var(--ehs-serif); font-size: 1.55rem; font-weight: 500; line-height: 1.2; }
.legal-draft p, .legal-draft li { max-width: 72ch; }
.legal-draft li + li { margin-top: .35rem; }

/* Accessible six-page HTML report and print-to-PDF layout. */
.report-document { max-width: 900px; margin-inline: auto; padding: 1.5rem var(--gutter) 3rem; }
.report-controls { margin: 0 0 1.2rem; padding: 1rem; border: 1px solid var(--ehs-border); background: var(--ehs-white); }
.report-controls p { margin: .4rem 0 0; font-size: var(--fs-small); }
.report-page { position: relative; min-height: 62rem; margin: 0 0 1.5rem; padding: 1.2rem clamp(1.1rem, 4vw, 2.5rem) 3rem; border: 1px solid var(--ehs-border); background: var(--ehs-white); box-shadow: .35rem .35rem 0 var(--ehs-stone); }
.report-page h1 { margin: 1.5rem 0 .7rem; color: var(--ehs-ink); font-family: var(--ehs-serif); font-size: clamp(2rem, 1.5rem + 2.2vw, 3.1rem); font-weight: 500; line-height: 1.05; }
.report-page h2 { margin: 1.2rem 0 .5rem; font-family: var(--ehs-serif); font-size: 1.55rem; font-weight: 500; line-height: 1.2; }
.report-page h3 { margin: 1.1rem 0 .3rem; color: var(--ehs-ink); font-size: var(--fs-label); font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.report-page p { max-width: 72ch; margin: .7rem 0 0; }
.report-page ul, .report-page ol { padding-left: 1.2rem; }
.report-page li + li { margin-top: .35rem; }
.report-page .report-banner { display: flex; align-items: center; justify-content: center; min-height: 2.35rem; padding: .45rem .6rem; border: 2px solid var(--ehs-ink); color: var(--ehs-ink); font-size: var(--fs-label); font-weight: 800; letter-spacing: .045em; line-height: 1.3; text-align: center; text-transform: uppercase; }
.report-page .report-page-footer { position: absolute; right: clamp(1.1rem, 4vw, 2.5rem); bottom: 1rem; left: clamp(1.1rem, 4vw, 2.5rem); padding-top: .55rem; border-top: 1px solid var(--ehs-border); color: var(--ehs-ink); font-size: var(--fs-label); font-weight: 750; text-align: center; }
.report-meta-grid { margin-top: 1.2rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem 1.2rem; }
.report-meta-grid div { padding-top: .45rem; border-top: 1px solid var(--ehs-border); }
.report-meta-grid dt { color: var(--ehs-ink); font-size: var(--fs-label); font-weight: 750; text-transform: uppercase; }
.report-meta-grid dd { margin: .15rem 0 0; }
.report-table { width: 100%; margin-top: 1rem; border-collapse: collapse; font-size: var(--fs-small); }
.report-table th, .report-table td { padding: .62rem .65rem; border: 1px solid var(--ehs-border); text-align: left; vertical-align: top; }
.report-table th { color: var(--ehs-ink); background: var(--ehs-stone); }
.report-callout { margin-top: 1rem; padding: .9rem 1rem; border-left: 4px solid var(--ehs-bronze); background: var(--ehs-canvas); }
.report-callout p { margin: .25rem 0 0; }
.report-metrics { margin-top: 1rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.report-metrics div { padding: .75rem; border-top: 2px solid var(--ehs-ink); background: var(--ehs-canvas); }
.report-metrics span { display: block; font-size: var(--fs-label); }
.report-metrics strong { display: block; margin-top: .2rem; color: var(--ehs-ink); font-family: var(--ehs-serif); font-size: 1.35rem; font-weight: 500; }
.report-register { width: 100%; margin-top: .8rem; border-collapse: collapse; font-size: var(--fs-small); }
.report-register th, .report-register td { padding: .48rem .6rem; border: 1px solid var(--ehs-border); text-align: left; vertical-align: top; }
.report-register th { width: 30%; color: var(--ehs-ink); background: var(--ehs-stone); }
.report-source-note { margin-top: 1.2rem; padding-top: .7rem; border-top: 1px solid var(--ehs-border); font-size: var(--fs-small); }

@media (max-width: 860px) {
  .page-hero--image, .service-detail__grid, .founder-profile { grid-template-columns: minmax(0, 1fr); }
  .page-hero--image .ph { --ph-ratio: 16 / 9; }
  .service-detail__media { order: 0; }
  .card-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .card-grid, .card-grid--four, .fact-grid { grid-template-columns: minmax(0, 1fr); }
  .report-meta-grid, .report-metrics { grid-template-columns: minmax(0, 1fr); }
  .table-scroll { overflow: visible; }
  .scope-table, .scope-table tbody, .scope-table tr, .scope-table th, .scope-table td { display: block; width: 100%; }
  .scope-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .scope-table tbody tr { padding: .5rem 0; border-top: 2px solid var(--ehs-ink); }
  .scope-table tbody th { border: 0; }
  .scope-table td { border: 0; border-top: 1px solid var(--ehs-border); }
  .scope-table td::before { display: block; margin-bottom: .2rem; color: var(--ehs-ink); font-size: var(--fs-label); font-weight: 750; letter-spacing: .04em; text-transform: uppercase; content: attr(data-label); }
  .report-page { min-height: 0; padding-bottom: 3.5rem; }
}

@media print {
  @page { size: A4; margin: 12mm; }
  :root { --fs-body: 10pt; --fs-small: 8.5pt; --fs-label: 7.5pt; --gutter: 0; }
  html, body { background: #fff !important; color: #252B2F; font-size: 10pt; }
  .prototype-strip, .site-header, .site-footer, .skip-link, .breadcrumbs, .report-controls, .report-cta, .cta, .page-hero--image .ph { display: none !important; }
  .report-document { max-width: none; margin: 0; padding: 0; }
  .report-page { min-height: 0; height: 267mm; margin: 0; padding: 0 0 12mm; border: 0; box-shadow: none; break-after: page; page-break-after: always; overflow: hidden; }
  .report-page:last-child { break-after: auto; page-break-after: auto; }
  .report-page h1 { margin-top: 10mm; font-size: 26pt; }
  .report-page h2 { font-size: 16pt; }
  .report-page .report-banner { min-height: 10mm; font-size: 8pt; }
  .report-page .report-page-footer { right: 0; bottom: 0; left: 0; }
  .report-table, .report-register { font-size: 8.5pt; }
  .report-table th, .report-table td, .report-register th, .report-register td { padding: 2mm; }
  .report-metrics strong { font-size: 14pt; }
  .report-page, .report-page * { break-inside: avoid; page-break-inside: avoid; }
  a { color: #252B2F; text-decoration: none; }
}

/* Founder portrait: 4:5 top-aligned crop keeps the whole face and headroom at every width */
.founder-profile { grid-template-columns: minmax(220px, 340px) minmax(0, 1fr); }
.founder-portrait { margin: 0; width: 100%; max-width: 340px; border: 1px solid var(--ehs-border); background: var(--ehs-stone); box-shadow: 0 0 0 6px var(--ehs-white), 0 0 0 7px var(--ehs-bronze); }
.founder-portrait img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 0; }
.founder-credentials ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.founder-credentials li { margin: .25rem 0; font-weight: 650; }
@media (max-width: 760px) { .founder-profile { grid-template-columns: minmax(0, 1fr); } .founder-portrait { max-width: min(80vw, 360px); } }

/* ===== Refinement 004 (31 Oct 2026): heading widths, hero, 2x2 grid, footer =====
   Root cause of the two-line headings: h2s inherited the 46rem / 54rem / 30ch measure that was meant
   for body copy. Headings now span the container; body text keeps its measure. */
:root { --fs-h2-wide: clamp(1.75rem, .85rem + 2.15vw, 2.5rem); --fs-h1-hero: clamp(2.2rem, .9rem + 3.4vw, 3.6rem); }
.section-intro, .section-heading, .wrap.section-heading { max-width: none; }
.section-intro > p:not(.eyebrow), .section-heading > p:not(.eyebrow), .wrap.section-heading > p:not(.eyebrow) { max-width: 46rem; }
.section-intro h2, .section-heading h2, .wrap.section-heading > h2:not(.action-row), .principle h2 {
  max-width: none; font-size: var(--fs-h2-wide); line-height: 1.12; letter-spacing: -.018em; text-wrap: balance;
}
.principle .principle__cols { max-width: none; }
/* Four-card groups: balanced 2 x 2 */
.fact-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem clamp(1.5rem, 4vw, 3rem); }
@media (max-width: 760px) { .fact-grid--four { grid-template-columns: minmax(0, 1fr); } }
/* Home hero: headline row above the copy / image split (left aligned, never over the photo) */
@media (min-width: 1001px) {
  .hero { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-areas: "head head" "copy media"; row-gap: clamp(1.25rem, 2.2vw, 2rem); align-items: center; }
  .hero__head { grid-area: head; padding-right: var(--gutter); }
  .hero__copy { grid-area: copy; }
  .hero > .ph { grid-area: media; }
  .hero h1 { font-size: var(--fs-h1-hero); letter-spacing: -.028em; max-width: none; }
  .hero__head .eyebrow { margin-bottom: .6rem; }
}
@media (max-width: 1000px) {
  .hero__head { padding: clamp(1.8rem, 5vw, 2.8rem) max(var(--gutter), calc((100% - var(--ehs-max)) / 2)) 0; }
  .hero__head > * { max-width: 40rem; }
  .hero__copy { padding-top: 0; }
}
.hero__head h1 { margin: 0; }
/* Footer (shared with the WordPress theme) */
.footer-fine { color: var(--ehs-stone); }
.footer-nav a[href^="mailto:"] { overflow-wrap: anywhere; }

/* About: operations feature image (illustrative) and three-line qualifications panel */
.about-feature { padding-block: 0 var(--space-section); }
.about-feature__fig { margin: 0; }
.about-feature__fig img { width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; object-position: 50% 38%; border: 1px solid var(--ehs-border); }
@media (max-width: 760px) { .about-feature__fig img { aspect-ratio: 3 / 2; object-position: 38% 40%; } }
.founder-credentials li { line-height: 1.45; }

/* Sample report landing page */
.sample-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding-block: clamp(1.5rem, 1rem + 2vw, 3rem) clamp(2rem, 4vw, 3.5rem); }
.sample-hero h1 { margin: 0; font-family: var(--ehs-serif); font-size: clamp(2.1rem, 1rem + 2.9vw, 3.3rem); font-weight: 500; line-height: 1.06; letter-spacing: -.025em; }
.sample-lede { max-width: 38rem; margin: 1.1rem 0 0; font-size: var(--fs-lead); line-height: 1.55; }
.sample-notice { max-width: 38rem; margin: 1.1rem 0 0; padding: .8rem 1rem; border-left: 4px solid var(--ehs-bronze); background: var(--ehs-stone); font-size: var(--fs-small); }
.sample-hero__thumb { margin: 0; justify-self: center; width: min(100%, 360px); }
.sample-hero__thumb img { width: 100%; height: auto; border: 1px solid var(--ehs-border); box-shadow: .85rem .85rem 0 var(--ehs-stone); }
@media (max-width: 900px) { .sample-hero { grid-template-columns: minmax(0, 1fr); } .sample-hero__thumb { width: min(70%, 320px); justify-self: start; } }

/* ===== Home hero correction (31 Oct 2026, later request) =====
   Supersedes the earlier hero rules: constrained to the page container (nothing bleeds to the viewport edge),
   two intentional headline lines on desktop, reduced and centred photograph at its natural 3:2 proportion. */
.hero { width: min(calc(100% - 2 * var(--gutter)), var(--ehs-max)); margin-inline: auto; padding: clamp(1.4rem, 1rem + 1.6vw, 2.4rem) 0 clamp(1.8rem, 3vw, 2.6rem); }
.hero__head { padding: 0; }
.hero__head > * { max-width: none; }
.hero h1 { font-size: var(--fs-h1-hero); line-height: 1.06; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--ehs-bronze); }
.hero > .ph { --ph-ratio: 3 / 2; --ph-pos: 50% 50%; width: 100%; max-width: 31.5rem; margin-inline: auto; justify-self: center; }
@media (min-width: 1001px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "head head" "copy media"; column-gap: clamp(2rem, 5vw, 5rem); row-gap: clamp(1rem, 1.8vw, 1.5rem); align-items: center; }
  .hero__head { padding-right: 0; }
  .hero__copy { max-width: 36rem; }
  .hero__copy .hero-lede { margin-top: 0; }
  .hero > .ph { align-self: center; }
}
@media (min-width: 761px) { .hero h1 em { display: block; } }
@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; padding-top: clamp(1.4rem, 4vw, 2rem); }
  .hero__head, .hero__copy { padding: 0; max-width: none; }
  .hero__head > *, .hero__copy > * { max-width: 40rem; }
  .hero > .ph { max-width: min(100%, 34rem); }
}
@media (max-width: 760px) { .hero h1 em { display: inline; } }

/* About feature image: consultation scene. 2:1 band on wide screens keeps both faces, the tablet and the headroom (focus biased to the top);
   3:2 (the file's native shape, no crop) on tablet and mobile. */
.about-feature__fig img { aspect-ratio: 2 / 1; object-position: 50% 14%; }
@media (max-width: 900px) { .about-feature__fig img { aspect-ratio: 3 / 2; object-position: 50% 30%; } }
