/* Private sitewide layout preview: shared edges and two balanced desktop columns. */
:root { --site-h1-size: clamp(36px, 4vw, 56px); }
body:not([data-page="home"]) main h1:not(.issue-title) {
  font-size: var(--site-h1-size);
  line-height: 1.08;
  letter-spacing: var(--tracking-display);
  overflow-wrap: anywhere;
}
main h1 .site-h1-accent { color: var(--brand-glow); }
main h1.site-h1-neutral { border-left: 3px solid var(--brand-glow); padding-left: 16px; }
[data-page="about-luke"] #fo-introduction .portrait img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  object-position: center;
}
[data-page="about-luke"] #fo-introduction .portrait figcaption {
  font-size: 13px;
  line-height: 1.5;
}

/* Shared route identity: the same icon family used by the home route cards. */
.route-hero-label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.route-hero-icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The founder choice uses the home card anatomy without depending on home scope. */
[data-page="about-luke"] .route-card-set {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--border-strong);
}
[data-page="about-luke"] .route-card-set a {
  display: flex;
  min-height: 128px;
  padding: 20px;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-primary);
  background: var(--bg-elevated);
  text-decoration: none;
}
[data-page="about-luke"] .route-card-set a:hover,
[data-page="about-luke"] .route-card-set a:focus-visible { background: #24362f; }
[data-page="about-luke"] .route-card-set a:focus-visible { outline-offset: -3px; }
[data-page="about-luke"] .route-card-set small {
  color: var(--brand-glow);
  font: 11px/1.3 var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}
[data-page="about-luke"] .route-card-set strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  line-height: 1.15;
}
[data-page="about-luke"] .route-card-set strong > span { margin-left: auto; color: var(--brand-glow); }
[data-page="about-luke"] .route-card-set .pillar-icon { width: 24px; height: 24px; flex: none; }
[data-page="about-luke"] .route-card-set .pillar-meta { color: #abb1b8; font-size: 12px; }
[data-page="about-luke"] .pillar-intro { margin-top: 20px; color: #abb1b8; font-size: 14px; }
[data-page="about-luke"] #fo-routes { margin-top: 48px; }

[data-page="about-luke"] .founder-latest .latest {
  display: grid;
  grid-template-columns: minmax(160px, 240px) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
[data-page="about-luke"] .founder-latest .latest__cover { display: block; overflow: hidden; border: 1px solid var(--border-default); border-radius: var(--radius-md); }
[data-page="about-luke"] .founder-latest .latest__cover img { display: block; width: 100%; height: auto; }
[data-page="about-luke"] .founder-latest .latest__mag { color: var(--text-secondary); font-weight: 600; }
[data-page="about-luke"] .founder-latest .latest__title { margin-top: 8px; font-size: 28px; }
[data-page="about-luke"] .founder-latest .latest__date { margin-top: 8px; color: var(--text-secondary); }
[data-page="about-luke"] .founder-latest .latest__links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 12px; }
[data-page="about-luke"] .founder-latest .latest__links a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 600; }
[data-page="about-luke"] #next-step { padding-block: 64px; }
[data-page="about-luke"] #next-step + footer { margin-top: 0; }
.agent-profiles { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.home-agent-strip { display:flex; flex-wrap:wrap; gap:12px; margin-top:24px; }
.home-agent-strip a { display:inline-flex; align-items:center; gap:10px; min-height:60px; padding:4px 12px 4px 4px; border:1px solid var(--border-strong); border-radius:40px; color:var(--text-primary); text-decoration:none; }
.home-agent-strip a:hover,.home-agent-strip a:focus-visible { border-color:var(--brand-accent); text-decoration:underline; }
.home-agent-strip a:focus-visible { outline:2px solid var(--brand-accent); outline-offset:3px; }
.home-agent-strip img { width:52px; height:52px; object-fit:cover; border-radius:50%; }
@media (max-width:599px) {
  .home-agent-strip { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .home-agent-strip a { min-width:0; padding-right:6px; }
  .home-agent-strip img { width:48px; height:48px; flex:none; }
}
.agent-profile { border:1px solid var(--border-strong); border-radius:8px; padding:24px; scroll-margin-top:32px; }
.agent-profile:target { outline:2px solid var(--brand-accent); outline-offset:3px; }
.agent-profile p { max-width:72ch; margin-block:16px; }
.team-list h4 a { color:inherit; text-underline-offset:4px; }
.team-list h4 a:focus-visible { outline:2px solid var(--brand-accent); outline-offset:3px; }
@media (max-width:699px) { .agent-profiles { grid-template-columns:1fr; } }
/* The organisation chart belongs to the page, never an inner scrollport. */
@media (min-width: 700px) {
  [data-page="agents"] picture.org-chart {
    display: block;
    max-height: none;
    overflow: visible;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
  }
  [data-page="agents"] picture.org-chart img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
  }
}
@media (min-width: 1000px) {
  body:not([data-page="home"]) .header .navrow,
  body:not([data-page="home"]) main .wrap,
  body:not([data-page="home"]) main .source-body {
    box-sizing: border-box;
    width: min(1600px, calc(100% - 96px));
    max-width: none;
    margin-inline: auto;
    padding-inline: 0;
  }
  body:not([data-page="home"]) main .page-lead { max-width: none; }
  body:not([data-page="home"]) main .hero .page-lead {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(36px, 4vw, 80px);
    align-items: start;
  }
  body:not([data-page="home"]) main .hero .page-lead > .eyebrow,
  body:not([data-page="home"]) main .hero .page-lead > h1 { grid-column: 1; }
  body:not([data-page="home"]) main .hero .page-lead > .lead,
  body:not([data-page="home"]) main .hero .page-lead > :not(.eyebrow):not(h1) { grid-column: 2; }
  /* Default sections use the whole frame. No generic grid/rail rule: explicit
     compositions such as Trust retain their own status-row grammar. */
  body:not([data-page="home"]) main .source-body p,
  body:not([data-page="home"]) main .reading p { max-width: 72ch; }
}

/* The title and its reading column form one aligned editorial measure. */
body:is([data-page="work-with-luke"], [data-page="process"], [data-page="roadmap"], [data-page="buying-technology"])
  main .section-head:has(+ .reading) {
  max-width: 76ch;
  margin-inline: auto;
}
body:is([data-page="work-with-luke"], [data-page="process"], [data-page="roadmap"], [data-page="buying-technology"])
  main .section-head:has(+ .reading) > h2 { max-width: none; }

/* Trust is an evidence matrix, not the generic split-page composition. */
@media (min-width: 861px) {
  body[data-page="trust"] main .trust-area > .wrap {
    display: block;
    box-sizing: border-box;
    width: min(1344px, calc(100% - 96px));
    margin-inline: auto;
    padding-inline: 0;
  }
  body[data-page="trust"] .trust-area .section-head {
    display: grid;
    grid-template-columns: minmax(220px, .7fr) minmax(0, 2.3fr);
    gap: 48px;
    max-width: none;
    align-items: baseline;
  }
  body[data-page="trust"] .trust-area .section-head > * { margin-block: 0; }
  body[data-page="trust"] .trust-columns { margin-top: 32px; }
  body[data-page="trust"] .trust-status {
    grid-template-columns: minmax(140px, .7fr) minmax(0, 4.8fr);
    gap: 48px;
  }
  body[data-page="trust"] .trust-cards,
  body[data-page="trust"] .trust-status:has(.trust-card:nth-child(2)) .trust-cards,
  body[data-page="trust"] .trust-status:has(.trust-card:nth-child(3)) .trust-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body[data-page="trust"] .trust-card { max-width: 66ch; }
}
/* Direct evidence modules share the page frame even when not wrapped by a section. */
body[data-page="agents"] main > aside.rp,
body[data-page="trust"] main > aside.rp {
  box-sizing: border-box;
  width: min(1344px, calc(100% - 96px));
  margin: 40px auto;
}
body[data-page="agents"] main > #research-R05,
body[data-page="trust"] main > #research-R05 { max-width: none; }
@media (max-width: 599px) {
  body[data-page="agents"] main > aside.rp,
  body[data-page="trust"] main > aside.rp {
    width: calc(100% - 40px);
  }
}
@media (max-width: 860px) {
  body[data-page="trust"] .trust-area .section-head { display: block; }
  body[data-page="trust"] .trust-area .section-head .intro { margin-top: 12px; }
  body[data-page="trust"] .trust-status,
  body[data-page="trust"] .trust-cards,
  body[data-page="trust"] .trust-status:has(.trust-card:nth-child(2)) .trust-cards,
  body[data-page="trust"] .trust-status:has(.trust-card:nth-child(3)) .trust-cards { grid-template-columns: 1fr; }
}
@media (max-width: 999px) {
  body:not([data-page="home"]) .header .navrow { width: calc(100% - 48px); max-width: none; margin-inline: auto; padding-inline: 0; }
  body:not([data-page="home"]) main .source-body { width: calc(100% - 48px); max-width: none; padding-inline: 0; }
}
@media (max-width: 599px) {
  body:not([data-page="home"]) .header .navrow { width: calc(100% - 40px); }
  body:not([data-page="home"]) main .source-body { width: calc(100% - 40px); }
  [data-page="about-luke"] #fo-introduction h1 { font-size: clamp(34px, 11vw, 42px); overflow-wrap: anywhere; }
  [data-page="about-luke"] .route-card-set { grid-template-columns: 1fr; }
  [data-page="about-luke"] .route-card-set a { min-height: 96px; padding: 14px 16px; }
  [data-page="about-luke"] .route-card-set strong { font-size: 17px; }
  [data-page="about-luke"] .founder-latest .latest { grid-template-columns: 1fr; gap: 24px; }
  [data-page="about-luke"] .founder-latest .latest__cover { width: min(200px, 100%); }
}

/* Reading sections on every inner page share the heading's left edge. */
body:not([data-page="home"]) main section:not(.hero):not(.starting-engagement)
  .wrap > .section-head:has(+ .reading),
body:not([data-page="home"]) main section:not(.hero):not(.starting-engagement)
  .wrap > .reading,
body:not([data-page="home"]) main section:not(.hero):not(.starting-engagement)
  .wrap > .rp {
  margin-left: 0;
  margin-right: 0;
}
body:not([data-page="home"]) main section:not(.hero):not(.starting-engagement)
  .wrap > .rp {
  max-width: min(880px, 76ch);
}
@media (min-width: 1000px) {
  body[data-page="trust"] main .trust-area > .wrap {
    width: min(1600px, calc(100% - 96px));
  }
  body:not([data-page="home"]) main .process-product-detail > .wrap {
    margin-left: max(48px, calc((100% - 1600px) / 2));
    margin-right: 0;
  }
}

/* A lone or fourth priority never occupies a stranded third track. */
body:not([data-page="home"]) main .grid3:has(> :only-child) {
  grid-template-columns: minmax(0, 1fr);
}
body:not([data-page="home"]) main .grid3:has(> :nth-child(4):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 861px) {
  body:not([data-page="home"]) main :is(.content-grid, .process-product-grid)
    > :last-child:nth-child(odd):not(:first-child) {
    grid-column: 1 / -1;
  }
}
@media (min-width: 1280px) {
  body[data-page="trust"] main .trust-status:has(.trust-card:nth-child(3)) .trust-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* People: two balanced rows, with the existing reference on that same grid. */
body[data-page="work-with-luke"] #development .grid3 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
body[data-page="work-with-luke"] #development .tb-proof {
  grid-column: 1 / -1;
  box-sizing: border-box;
  max-width: none;
  width: 100%;
  margin-top: 0;
}
body[data-page="work-with-luke"] #development .tb-proof__quote,
body[data-page="work-with-luke"] #development .tb-proof__who {
  max-width: 68ch;
}

/* Keep the audience, callout, explanation and action as one hero block. */
@media (min-width: 1000px) {
  body:is([data-page="work-with-luke"], [data-page="roadmap"])
    main .hero .page-lead { align-content: start; }
  body:is([data-page="work-with-luke"], [data-page="roadmap"])
    main .hero .page-lead > .problem-impact { margin-top: 12px; margin-bottom: 8px; }
  body:is([data-page="work-with-luke"], [data-page="roadmap"])
    main .hero .page-lead > .problem-impact + .lead { margin-top: 12px; }
  body[data-page="work-with-luke"] main .hero .page-lead > .audience { margin-top: 12px; }
  body[data-page="work-with-luke"] main .hero .page-lead > .actions,
  body[data-page="roadmap"] main .hero .page-lead > .actions { margin-top: 16px; }
  body[data-page="work-with-luke"] main .hero .page-lead > h1 { grid-row: 2 / span 4; }
  body[data-page="work-with-luke"] main .hero .page-lead > .audience:nth-child(3) { grid-row: 1; }
  body[data-page="work-with-luke"] main .hero .page-lead > .problem-impact { grid-row: 2; }
  body[data-page="work-with-luke"] main .hero .page-lead > .lead { grid-row: 3; }
  body[data-page="work-with-luke"] main .hero .page-lead > .audience:nth-child(6) { grid-row: 4; }
  body[data-page="work-with-luke"] main .hero .page-lead > .actions { grid-row: 5; }
  body[data-page="roadmap"] main .hero .page-lead > .eyebrow:first-child { grid-row: 1; align-self: start; }
  body[data-page="roadmap"] main .hero .page-lead > .eyebrow:nth-child(2) { grid-row: 1; align-self: end; margin-bottom: 0; }
  body[data-page="roadmap"] main .hero .page-lead > h1 { grid-row: 2 / span 2; }
  body[data-page="roadmap"] main .hero .page-lead > .problem-impact { grid-row: 1; }
  body[data-page="roadmap"] main .hero .page-lead > .lead { grid-row: 2; }
  body[data-page="roadmap"] main .hero .page-lead > .actions { grid-row: 3; }
}
@media (max-width: 700px) {
  body[data-page="work-with-luke"] #development .grid3 { grid-template-columns: 1fr; }
}

/* Founder hero: large portrait, text vertically centred against it, no stretched full-window height. */
[data-page="about-luke"] #fo-introduction {
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 600px);
  align-items: center;
  gap: clamp(48px, 5vw, 96px);
  padding-top: 48px;
  padding-bottom: 64px;
}
[data-page="about-luke"] #fo-introduction h1 { font-size: clamp(48px, 5vw, 84px); line-height: 1.04; max-width: 14ch; }
[data-page="about-luke"] #fo-introduction .lead { font-size: clamp(18px, 1.25vw, 22px); line-height: 1.6; max-width: 52ch; }
[data-page="about-luke"] #fo-introduction .portrait { width: 100%; max-width: 600px; justify-self: end; align-self: center; margin: 0; }
[data-page="about-luke"] #fo-introduction .portrait img { width: 100%; height: auto !important; max-height: 760px; object-fit: cover; }
@media (max-width: 999px) {
  [data-page="about-luke"] #fo-introduction { grid-template-columns: 1fr; gap: 32px; padding-top: 24px; }
  [data-page="about-luke"] #fo-introduction .portrait { justify-self: stretch; max-width: none; }
}
@media (max-width: 599px) {
  [data-page="about-luke"] #fo-introduction h1 { font-size: 40px; }
  [data-page="about-luke"] #fo-introduction .lead { font-size: 17px; }
  [data-page="about-luke"] #fo-introduction .portrait img { max-height: 520px; }
}
/* Founder cooking collage: beside the "Away from the work" text, like the hero. */
[data-page="about-luke"] #fo-away {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  column-gap: 72px;
  align-items: center;
}
[data-page="about-luke"] #fo-away > .founder-cooking {
  align-self: center;
  justify-self: end;
  width: 100%;
  max-width: 440px;
  margin: 0;
}
[data-page="about-luke"] .founder-cooking img { display: block; width: 100%; height: auto; border-radius: 12px; }
[data-page="about-luke"] .founder-cooking figcaption { font-size: 13px; color: var(--text-secondary); padding-top: 8px; }
@media (max-width: 760px) {
  [data-page="about-luke"] #fo-introduction { min-height: 0; grid-template-columns: 1fr; gap: 32px; }
  [data-page="about-luke"] #fo-introduction .portrait { justify-self: stretch; max-width: none; }
  [data-page="about-luke"] #fo-introduction .portrait img { max-height: 520px; }
  [data-page="about-luke"] #fo-away { display: block; }
  [data-page="about-luke"] #fo-away > .founder-cooking { max-width: none; margin: 24px 0; }
}

/* Founder video still: image on the left, vertically centred; heading and all text together on the right. */
[data-page="about-luke"] #fo-twenty-years {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(40px, 4vw, 80px);
  align-items: center;
}
[data-page="about-luke"] #fo-twenty-years .founder-video-still { margin: 0; }
[data-page="about-luke"] #fo-twenty-years .founder-twenty-text > h2 { margin-top: 0; }
[data-page="about-luke"] #fo-twenty-years .founder-twenty-text p { max-width: none; }
[data-page="about-luke"] .founder-video-still img { display: block; width: 100%; height: auto; border-radius: 12px; }
[data-page="about-luke"] .founder-video-still figcaption { font-size: 13px; color: var(--text-secondary); padding-top: 8px; }
@media (max-width: 999px) {
  [data-page="about-luke"] #fo-twenty-years { display: block; }
  [data-page="about-luke"] #fo-twenty-years .founder-video-still { margin: 0 0 24px; }
}
@media (min-width:1000px){body:not([data-page="home"]) main .source-body .wrap{width:100%}}
