/* Shared page composition, sticky navigation, and section palettes. */
html { scroll-padding-top: 146px; }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); }
.skip-link { z-index: 100; }
.masthead { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; }
.masthead > .wordmark { justify-self: start; }
.masthead nav { justify-self: center; gap: 26px; font-size: 13px; margin: 0; }
.masthead > .contact-nav { display: flex; align-items: center; justify-self: end; font-size: 13px; min-height: 44px; white-space: nowrap; }
.masthead nav [aria-current="page"] { text-decoration: underline; text-underline-offset: 8px; text-decoration-color: var(--vermilion); }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px 30px; padding-block: 28px; border-top: 1px solid var(--rule); font-size: 14px; }
.footer { border-top: 0; }
.footer-main { padding-top: 10px; }
.related { display: grid; grid-template-columns: 1fr 1fr; gap: 7%; padding-block: 48px; }
.related > a { padding-block: 22px; border-top: 1px solid var(--rule); }
.related .eyebrow { display: block; color: var(--muted); margin-bottom: 18px; }
.related-title { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; font-size: clamp(23px, 2.5vw, 36px); letter-spacing: -.04em; line-height: 1.2; }
.related-title > span { color: var(--vermilion); }
.page-intro { padding-top: 56px; }
.page-intro > .eyebrow { margin-bottom: 36px; color: var(--muted); }
.intro-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10%; align-items: center; }
.page-intro h1 { font-size: clamp(65px, 7.3vw, 110px); line-height: 1.01; letter-spacing: -.065em; font-weight: 600; }
.intro-copy { max-width: 470px; }
.intro-copy .lead { font-size: clamp(27px, 3vw, 40px); line-height: 1.2; letter-spacing: -.035em; }
.intro-copy > p:not(.lead) { margin-top: 24px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.intro-copy .arrow-link { margin-top: 30px; }
.intro-copy .clarity-study { margin-top: 30px; max-width: 320px; }
.method-page .process-diagram { margin-block: 48px 0; padding-bottom: 32px; }
.diagram-title { margin: 0 0 32px; text-align: left; font-size: clamp(25px, 2.5vw, 36px); line-height: 1.2; letter-spacing: -.035em; font-weight: 500; }
/* Reserve only the final stage's reading width; share the remaining space evenly. */
@media (min-width: 761px) {
  .method-page .process-map { grid-template-columns: repeat(3, minmax(0, 1fr)) 140px; }
  .method-page .process-feedback { width: calc(100% - 140px); }
}
.diagram-tm { font-size: .45em; vertical-align: super; margin-left: 3px; letter-spacing: 0; }
.method-page .process { padding-top: 56px; padding-bottom: 0; border-bottom: 0; }
.method-detail-heading { display: flex; justify-content: space-between; gap: 30px; align-items: baseline; margin-bottom: 30px; }
.method-detail-heading h2 { font-size: 28px; font-weight: 500; letter-spacing: -.035em; }
.method-detail-heading .eyebrow { color: var(--muted); }
.principles-page .principles-opening h1 { font-size: clamp(52px, 5.4vw, 82px); }
.principles-caption { display: flex; justify-content: space-between; align-items: baseline; gap: 30px; margin-bottom: 30px; }
.principles-caption h2 { font-size: clamp(52px, 5.4vw, 82px); font-weight: 600; line-height: 1.01; letter-spacing: -.065em; }
.principles-caption > .eyebrow { color: var(--muted); white-space: nowrap; }
.result-section { padding-bottom: 56px; }
.result-title { font-size: clamp(65px, 7.3vw, 110px); line-height: 1.01; letter-spacing: -.065em; font-weight: 600; }
.principles-page .principles { padding-top: 60px; padding-bottom: 32px; }

/* About keeps a distinct dark introduction, with a shorter editorial body. */
.about-opening { margin-top: 0; background: #171a18; color: #f0eee7; }
.about-hero { padding-top: 62px; }
.about-hero > .eyebrow { color: #b8bdb3; margin-bottom: 42px; }
.about-page .hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 6%; margin-top: 36px; }
.about-hero h1 { font-size: clamp(64px, 7.5vw, 115px); line-height: 1.01; font-weight: 600; letter-spacing: -.065em; }
.about-page .hero-copy { padding: 0; min-width: 0; align-self: start; }
.about-page .hero-copy p { color: #b8bdb3; font-size: 18px; line-height: 1.7; }
.about-page .hero-copy p + p, .about-page .body-copy p + p { margin-top: 24px; }
.about-page .hero-copy .lead { color: #f0eee7; font-size: 28px; line-height: 1.35; letter-spacing: -.025em; }
.about-page .section { padding-block: 78px; }
.about-page .section > .eyebrow { margin-bottom: 36px; color: var(--muted); }
.about-page .section-grid, .founder-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 10%; }
.about-page h2 { font-size: clamp(40px, 4.2vw, 66px); line-height: 1.08; letter-spacing: -.05em; font-weight: 500; }
.about-page .body-copy { max-width: 530px; }
.about-page .body-copy p { font-size: 18px; line-height: 1.7; color: var(--muted); }
.about-page .body-copy .lead { font-size: 28px; line-height: 1.35; letter-spacing: -.025em; color: var(--ink); }
.founder { background: color-mix(in srgb, var(--paper) 90%, var(--ink)); padding-block: 68px; }
.founder-name .eyebrow { margin-bottom: 34px; }
.founder-name h2 { font-size: clamp(66px, 7vw, 100px); line-height: .98; letter-spacing: -.06em; }
.founder-name .role { font-size: 13px; color: var(--muted); margin-top: 24px; }
.founder-name .arrow-link { margin-top: 36px; min-width: 240px; }
.founder .body-copy { padding-top: 54px; }
.home-page .services { padding-bottom: 32px; }

/* Matching phone captures share a row on wider screens and stack on phones. */
.bellos-evidence { min-width: 0; align-self: center; }
.phone-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.phone-gallery figure { min-width: 0; width: 88%; max-width: 280px; justify-self: center; }
.phone-gallery img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 14px; }
.phone-gallery figcaption { padding-top: 14px; font: 11px/1.7 var(--mono); color: var(--muted); }
.bellos-capture-note { margin-top: 18px; font: 10px/1.6 var(--mono); color: var(--muted); }
@media (max-width: 1100px) {
  .bellos-body { grid-template-columns: 1fr; }
  .bellos-body .evidence-copy { max-width: 600px; }
  .bellos-body .evidence-copy > p:not(.eyebrow) { max-width: 480px; }
}
@media (max-width: 600px) {
  .phone-gallery { grid-template-columns: 1fr; gap: 28px; }
}

/* One composed palette: dark sections are editorial choices, not a user theme. */
:root { color-scheme: light; }
.section-dark {
  --paper: #262925;
  --ink: #eeeae1;
  --muted: #b8bdb3;
  --red: #f29a80;
  --vermilion: #ee876b;
  --rule: #626b60;
  --lilac: #343b32;
  background: var(--paper);
  color: var(--ink);
}
.opening-dark { --paper: #171a18; }
.section-dark .study-frame { fill: #30352e; stroke: var(--rule); }
.section-dark .study-rule { stroke: var(--rule); }
.home-page .development { padding-block: 54px 22px; }
.home-page .development .section-heading { padding-top: 0; }
.home-page .development .section-intro { color: var(--muted); margin-bottom: 28px; }
.development-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 22px 40px;
  align-items: stretch;
}
.development-project {
  display: grid;
  grid-template-rows: auto 112px 1fr;
  row-gap: 16px;
  border-color: var(--rule);
  padding-top: 22px;
  margin-bottom: 0;
  min-width: 0;
}
.development-project > .eyebrow { margin: 0; align-items: baseline; font-size: 10px; }
.development-identity { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.development-mark, .development-monogram { flex: none; width: 64px; height: 64px; }
.development-mark { object-fit: contain; }
.development-mark-keel { padding: 8px; border-radius: 21.875%; background: #11404b; }
.development-monogram { display: grid; place-items: center; border: 1px solid var(--rule); font: 38px/1 Georgia, serif; letter-spacing: -.07em; color: var(--ink); }
.development-project h3 { margin: 0; font-size: clamp(23px, 2.1vw, 30px); line-height: 1.16; }
.development-project > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.development-link { display: flex; align-items: center; gap: 18px; min-height: 44px; width: 100%; color: inherit; text-decoration: none; }
.development-link:hover h3, .development-link:focus-visible h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.development-link-arrow { flex: none; margin-left: auto; color: var(--red); font-size: 22px; }
.development-tool-list { flex-direction: column; align-items: stretch; justify-content: center; gap: 12px; }
.development-tool-list .development-link { gap: 12px; }
.development-tool-list img { display: block; flex: none; width: 32px; height: 32px; object-fit: contain; }
.tool-status { margin: 4px 0 0; color: var(--muted); font: 10px/1.6 var(--mono); }
.home-page .services { padding-block: 58px 44px; }
.services-grid { gap: 0 32px; grid-template-rows: auto auto; padding-block: 28px; }
.services-grid > article { display: grid; grid-template-rows: subgrid; grid-row: span 2; row-gap: 18px; padding-right: 24px; }
.services-grid > article + article { border-left: 1px solid var(--rule); padding-left: 28px; }
.services-grid h3 { margin: 0; line-height: 1.15; font-size: clamp(25px, 2.3vw, 34px); }
.services-grid p { margin: 0; color: var(--muted); line-height: 1.7; }
.commission-note { border-top: 1px solid var(--rule); padding-top: 24px; margin-bottom: 0; max-width: none; }
.home-page .contact { padding-block: 62px; }
.contact-action .arrow-link { max-width: 100%; overflow-wrap: anywhere; }
.method-page .page-intro { padding-bottom: 52px; }
.method-page .process { padding-block: 48px; }
.section-dark .process-documentation { background: #333b31; }
.principles-page .page-intro { padding-bottom: 50px; }
.principles-page .section-dark .principles { padding-block: 44px; }

@media (max-width: 1100px) {
  .about-page .desktop-break { display: none; }
}

@media (max-width: 700px) {
  html { scroll-padding-top: 168px; }
  .masthead { grid-template-columns: 1fr auto; gap: 6px 16px; padding-block: 16px 10px; }
  .masthead > .contact-nav { grid-column: 2; grid-row: 1; }
  .masthead nav { grid-column: 1 / -1; grid-row: 2; justify-content: center; }
}
@media (max-width: 760px) {
  .diagram-title { width: 100%; margin-left: 0; }
  .masthead nav { flex-wrap: wrap; justify-content: flex-start; gap: 2px 20px; font-size: 12px; }
  .masthead > .contact-nav { gap: 10px; font-size: 12px; }
  .masthead nav a { min-height: 36px; }
  .related { grid-template-columns: 1fr; gap: 0; padding-block: 30px; }
  .related-title { font-size: 26px; }
  .page-intro { padding-top: 36px; }
  .page-intro > .eyebrow { margin-bottom: 28px; }
  .intro-grid { grid-template-columns: 1fr; gap: 30px; }
  .page-intro h1 { font-size: clamp(49px, 12vw, 80px); }
  .intro-copy > p:not(.lead) { font-size: 17px; margin-top: 18px; }
  .intro-copy .lead { font-size: 29px; }
  .principles-page .principles { padding-top: 40px; }
  .principles-caption, .method-detail-heading { display: block; }
  .principles-page .principles-opening h1 { font-size: clamp(49px, 12vw, 80px); }
  .principles-caption > .eyebrow { margin-top: 18px; }
  .principles-caption h2 { font-size: clamp(28px, 8vw, 56px); }
  .result-section { padding-bottom: 36px; }
  .result-title { font-size: clamp(49px, 12vw, 80px); }
  .method-detail-heading h2 { font-size: 25px; margin-top: 20px; }
  .method-page .process { padding-top: 36px; }
  .about-hero { padding-top: 38px; }
  .about-hero > .eyebrow { margin-bottom: 26px; }
  .about-page .hero-grid, .about-page .section-grid, .founder-grid { grid-template-columns: 1fr; gap: 30px; }
  .about-hero h1 { font-size: clamp(49px, 11.8vw, 80px); }
  .about-page .hero-copy { padding: 0; }
  .about-page .hero-copy p, .about-page .body-copy p { font-size: 17px; }
  .about-page .hero-copy .lead, .about-page .body-copy .lead { font-size: 25px; }
  .about-page .section { padding-block: 48px; }
  .about-page h2 { font-size: 38px; }
  .founder { padding-block: 48px; }
  .founder-name h2 { font-size: 76px; }
  .founder .body-copy { padding-top: 12px; }
  .footer-links { gap: 12px 22px; font-size: 12px; }
  .home-page .development { padding-block: 38px 22px; }
  .development-grid { grid-template-columns: 1fr; row-gap: 22px; grid-template-rows: none; grid-auto-rows: auto; }
  .development-project { display: grid; grid-row: auto; grid-template-rows: auto; row-gap: 14px; margin-bottom: 0; }
  .development-project h3 { font-size: 28px; }
  .development-identity { gap: 16px; }
  .development-mark, .development-monogram { width: 52px; height: 52px; }
  .development-mark-keel { padding: 6px; }
  .home-page .services { padding-block: 38px; }
  .services-grid { grid-template-rows: none; row-gap: 28px; padding-block: 24px; }
  .services-grid > article { grid-row: auto; grid-template-rows: auto; row-gap: 12px; padding: 0; }
  .services-grid > article + article { border-left: 0; border-top: 1px solid var(--rule); padding: 24px 0 0; }
  .services-grid h3 { font-size: 28px; }
  .services-grid h3 br { display: none; }
  .services-grid h3 br::after { content: ' '; }
  .home-page .contact { padding-block: 42px; }
  .method-page .page-intro { padding-bottom: 36px; }
  .method-page .process { padding-block: 34px; }
}

/* Screenshot links retain the existing evidence layout. */
.screenshot-preview { display: block; min-width: 0; align-self: center; color: inherit; text-decoration: none; cursor: zoom-in; }
.screenshot-preview:hover .evidence-overline { color: var(--red); }
.screenshot-preview:focus-visible { outline: 2px solid var(--ink); outline-offset: 8px; }
html:has(.image-viewer[open]) { overflow: hidden; }
.image-viewer { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 60px 64px; border: 0; background: transparent; color: #f1eee6; }
.image-viewer[open] { display: grid; place-items: center; }
.image-viewer::backdrop { background: rgb(12 14 12 / 88%); }
.viewer-figure { margin: 0; min-width: 0; text-align: center; }
.viewer-image { display: block; width: auto; height: auto; max-width: min(1400px, calc(100vw - 128px)); max-height: calc(100dvh - 160px); margin: auto; object-fit: contain; border: 0; border-radius: 0; }
.viewer-caption { max-width: 80ch; margin: 16px auto 0; font: 12px/1.5 var(--mono); color: #f1eee6; }
.image-viewer button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 0; background: transparent; color: #f1eee6; font: 40px/1 sans-serif; cursor: pointer; }
.image-viewer button[hidden], .viewer-error[hidden] { display: none; }
.image-viewer button:hover { color: #f18a6c; }
.image-viewer button:focus-visible { outline: 2px solid #f18a6c; outline-offset: 2px; }
.viewer-close { top: 12px; right: 12px; }
.viewer-previous { left: 8px; top: calc(50% - 24px); }
.viewer-next { right: 8px; top: calc(50% - 24px); }
.viewer-error { font: 14px/1.5 var(--mono); }
.viewer-error a { color: inherit; }
@media (max-width: 600px) {
  .image-viewer { padding: 60px 16px; }
  .viewer-image { max-width: calc(100vw - 32px); max-height: calc(100dvh - 180px); }
  .viewer-caption { font-size: 11px; }
  .image-viewer:has(.viewer-next:not([hidden])) .viewer-image { max-width: calc(100vw - 88px); }
  .image-viewer .viewer-previous { left: 0; width: 40px; }
  .image-viewer .viewer-next { right: 0; width: 40px; }
}
