/* Round 2 is additive. No source card, section, type or colour overrides. */
#main { position: relative; isolation: isolate; }
#main > section > .shell { position: relative; z-index: 2; }
.bridge-art { position: absolute; top: 0; left: 0; width: 100%; height: 1000px; pointer-events: none; z-index: 1; overflow: hidden; }
.bridge-image { position: absolute; width: 100%; max-width: none; height: auto; filter: grayscale(1) invert(1); opacity: .105; mix-blend-mode: screen; mask-image: linear-gradient(to bottom, #000 0%, #000 65%, transparent 98%); }
.strand-field, .signal-field { position: absolute; inset: 0 auto auto 0; width: 100%; pointer-events: none; overflow: hidden; }
.strand-field { z-index: 1; }
.signal-field { z-index: 1; }
.strand-field path { fill: none; stroke: var(--text-secondary); stroke-width: 1; vector-effect: non-scaling-stroke; }
.strands path { stroke-opacity: .22; }
.cable-lights path { stroke-width: 1; }
.signal-route { fill: none; stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.route-stops circle { fill: var(--bg-elevated); stroke: var(--text-secondary); stroke-width: 2; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* R3: additive motion and anchor clearance only. */
html { scroll-padding-top: var(--tb-header-h, 96px); }
[data-page="home"] main section, [data-page="home"] main [id],
[data-page="home"] main h2, [data-page="home"] main h3 { scroll-margin-top: 24px; }
.main-cables path { stroke-opacity: .22; stroke-width: 1; }
.cable-lights path { stroke-opacity: .22; stroke-width: 1; }
.cable-joins path { stroke-opacity: .22; stroke-width: 1; }
/* Composite once: crossings cannot accumulate into a bright grey wedge. */
.strands { opacity: 1; }
.strands path { stroke-opacity: .22; stroke-width: 1; }

/* R4: the numbered cards sit BESIDE one vertical rail at both widths. */
.home-return .return-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; margin: 300px 0 0 40px; }
.home-return .return-grid article { position: relative; }
.home-return .return-grid h3 { margin-top: 8px; }
.home-return .return-caveat { margin-top: 290px; }
@media (min-width: 761px) {
  .home-return .return-grid { max-width: 740px; }
}
@media (max-width: 760px) {
  .home-return .return-grid { margin-top: 280px; margin-left: 28px; }
  .home-return .return-caveat { margin-top: 250px; }
  /* In-flow preview label below the footer, never over scrolling copy. */
}

/* R6: one decorative field spans main and footer; content stays above it. */
.page-flow { position: relative; isolation: isolate; }
#main { isolation: auto; }
.site-footer__frame { position: relative; z-index: 2; }
.strands path { stroke-linecap: round; }
.signal-route { stroke-linecap: butt; }
/* Full-page delivery: the desktop badge must not cover footer legal copy. */
/* Action destination stays in the teal family, never evidence gold. */
[data-page="home"] #contact .button:not(.primary) {
  color: var(--brand-glow); border-color: var(--brand-glow);
}
/* Existing source reference role token; no new brand palette. */
[data-page="home"] #home .actions a[href="about-luke.html"],
[data-page="home"] #proof .home-more a,
[data-page="home"] #proof .tb-proof__link a {
  color: var(--role-proof, #CE9C1B);
  border: 1px solid var(--role-proof, #CE9C1B);
  border-radius: var(--radius-md);
  background: transparent;
  text-decoration: none;
}
[data-page="home"] #proof .home-more a,
[data-page="home"] #proof .tb-proof__link a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 9px 14px; font-weight: 600;
}
[data-page="home"] #home .actions a[href="about-luke.html"]:hover,
[data-page="home"] #proof .home-more a:hover,
[data-page="home"] #proof .tb-proof__link a:hover { background: var(--bg-raised); }
[data-page="home"] #home .actions a[href="about-luke.html"]:focus-visible,
[data-page="home"] #proof .home-more a:focus-visible,
[data-page="home"] #proof .tb-proof__link a:focus-visible {
  outline: 3px solid var(--role-proof, #CE9C1B); outline-offset: 4px;
}

/* R7: settle into contact; the entire footer stays outside the field. */
.strand-field { mask-image: linear-gradient(to bottom, #000 calc(100% - 180px), transparent 100%); }

/* R8: one outer grid, shared header/footer markup remains untouched. */
[data-page="home"] #main .shell,
[data-page="home"] .site-footer__frame {
  width: min(1600px, calc(100% - 96px)); max-width: none;
  padding-inline: 0; margin-inline: auto;
}
@media (max-width: 999px) {
  [data-page="home"] #main .shell,
  [data-page="home"] .site-footer__frame { width: calc(100% - 48px); }
}
@media (max-width: 599px) {
  [data-page="home"] #main .shell,
  [data-page="home"] .site-footer__frame { width: calc(100% - 40px); }
}
/* Number stays readable above the straight decorative rail. */
.return-node-number {
  position: absolute; left: -32px; width: 38px; margin-left: -19px;
  text-align: center; font-size: 11px; line-height: inherit;
}
@media (max-width: 760px) {
  .bridge-art { height: 780px; }
  .bridge-image { width: 760px; left: -104px; top: 22px; }
  .home-return .return-grid { margin-left: 40px; }
  .return-node-number { left: -30px; }
}
.home-return .return-grid { margin-left: 48px; }
@media (max-width: 760px) { .home-return .return-grid { margin-left: 40px; } }
.route-stops circle { fill: none; }
.route-stops .node-ring { stroke-width: 1.5; }
.route-stops .node-pulse {
  fill: none; stroke: var(--brand-glow); stroke-width: 2;
  opacity: 0; transform-box: fill-box; transform-origin: center;
}
.route-stops .is-reached .node-pulse {
  animation: home-node-arrive .9s ease-out 1,
             home-node-breathe 3.6s ease-in-out .9s infinite;
}
@keyframes home-node-arrive {
  0% { opacity: .9; transform: scale(1); }
  45% { opacity: .65; transform: scale(1.28); }
  100% { opacity: .12; transform: scale(1.48); }
}
@keyframes home-node-breathe {
  0%, 100% { opacity: .12; transform: scale(1); }
  50% { opacity: .32; transform: scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
  .route-stops .node-pulse { animation: none !important; opacity: 0; }
}
@media print { .bridge-art, .strand-field, .signal-field { display: none; } }

/* R9: effective r3 ink, restored from the approved recording reference.
   Only coincident lower strands composite once, not the brighter cable joins. */
.main-cables path { stroke-opacity: .32; stroke-width: 1.2; }
.cable-lights path { stroke-opacity: .34; stroke-width: 1.2; }
.cable-joins path { stroke-opacity: .58; stroke-width: 1.4; }
.strands path { stroke-opacity: .28; stroke-width: 1.2; }
/* The rail meets the ring; its number is above a solid circular backing.
   This is ordinary node layering, not a text-shaped cutout in a strand. */
.route-stops .node-ring { fill: var(--bg-base); }

/* Reveal colour, never opacity or geometry. Primary actions are never tagged.
   Each element has its own progress so no parent filter catches an exception. */
[data-home-ink] {
  color: color-mix(in srgb, var(--home-grey-color), var(--home-full-color) var(--home-colour, 100%)) !important;
  background-color: color-mix(in srgb, var(--home-grey-background), var(--home-full-background) var(--home-colour, 100%)) !important;
  border-top-color: color-mix(in srgb, var(--home-grey-top), var(--home-full-top) var(--home-colour, 100%)) !important;
  border-right-color: color-mix(in srgb, var(--home-grey-right), var(--home-full-right) var(--home-colour, 100%)) !important;
  border-bottom-color: color-mix(in srgb, var(--home-grey-bottom), var(--home-full-bottom) var(--home-colour, 100%)) !important;
  border-left-color: color-mix(in srgb, var(--home-grey-left), var(--home-full-left) var(--home-colour, 100%)) !important;
  text-decoration-color: currentColor !important;
}
[data-home-image] { filter: grayscale(calc(1 - var(--home-image-colour, 1))) var(--home-image-filter, brightness(1)); }
.home-hero .choice-outcome [data-home-ink]::before {
  color: color-mix(in srgb, #aaa, var(--brand-glow) var(--home-colour, 100%));
}
[data-home-ink]:is(a,summary):hover {
  background-color: color-mix(in srgb, #292929, var(--bg-raised) var(--home-colour, 100%)) !important;
}
@media (prefers-reduced-motion: reduce) {
  [data-home-ink] { --home-colour: 100% !important; }
  [data-home-image] { --home-image-colour: 1 !important; }
}
@media print {
  [data-home-ink] { --home-colour: 100% !important; }
  [data-home-image] { --home-image-colour: 1 !important; }
}
/* Shared continuous strand field. No widths, grids or content changes. */
#main.strands-enhanced { position: relative; isolation: isolate; }
#main.strands-enhanced > section { position: relative; z-index: auto; }
.strands-enhanced .noise-field,
.strands-enhanced .signal-emergence,
.strands-enhanced .flight-path .stop,
.strands-enhanced .flight-path li::before { display: none; }
.strands-bridge {
  position: absolute; top: 0; left: 0; max-width: none; pointer-events: none;
  z-index: 0; opacity: 0; filter: grayscale(1) invert(1); mix-blend-mode: screen;
  mask-image: linear-gradient(to bottom, #000 0%, #000 65%, transparent 98%);
}
.strands-canvas {
  position: absolute; top: 0; left: 0; width: 100%; overflow: hidden;
  z-index: 1; pointer-events: none;
}
.strands-canvas path { fill: none; vector-effect: non-scaling-stroke; }
.strands-grey path { stroke: var(--text-secondary); stroke-opacity: .28; stroke-width: 1.2; }
.strands-main-cable { stroke: var(--text-secondary); stroke-opacity: .32; stroke-width: 1.2; }
.strands-hanger { stroke: var(--text-secondary); stroke-opacity: .34; stroke-width: 1.2; }
.strands-join { stroke: var(--text-secondary); stroke-opacity: .58; stroke-width: 1.4; }
.strands-route { stroke: var(--brand-glow); stroke-width: 2; stroke-linecap: butt; }
.strands-ring,.strands-pulse { fill: none; stroke: var(--brand-glow); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.strands-ring { stroke: var(--text-secondary); opacity: .4; }
.strands-ring[data-reached] { stroke: var(--brand-glow); opacity: .8; }
.strands-pulse { visibility: hidden; transform-box: fill-box; transform-origin: center; }
.strands-pulse[data-reached] { visibility: visible; animation: strand-arrive .9s ease-out 1, strand-breathe 3.6s ease-in-out .9s infinite; }
.strands-pulse[data-paused] { animation-play-state: paused; }
@keyframes strand-arrive {
  0% { opacity: .9; transform: scale(1); }
  45% { opacity: .65; transform: scale(1.28); }
  100% { opacity: .12; transform: scale(1.48); }
}
@keyframes strand-breathe {
  0%,100% { opacity: .12; transform: scale(1); }
  50% { opacity: .32; transform: scale(1.12); }
}
/* Text paint lives above the field. The mask softens the line, not the copy.
   Inline glyph shadows cover the narrow line behind glyph strokes only. */
.strands-enhanced :is(h1,h2,h3,p,blockquote,figcaption,.group-heading,.group-number,.toggle,.button,.source summary) { position: relative; z-index: 2; }
.strands-enhanced .quote-mark { z-index: 2; }
.strands-enhanced :is(.group-number,.toggle,.week) { text-shadow: 0 0 3px var(--bg-base),0 0 3px var(--bg-base); }
.strands-enhanced .fold[open] .toggle { background: transparent; transform: none; }
.people-v1 .quote-band .quote-mark,
.people-v1 .quote-band figcaption,
.people-v1 .quote-band blockquote::after { color: var(--role-proof, #CE9C1B); }
.people-v1 .quote-band blockquote::after { content: "”"; }
.strands-enhanced .toggle {
  appearance: none; padding: 0; background: transparent; border: 0;
  font: inherit; line-height: 1; caret-color: transparent; color: var(--brand-glow);
}
.strands-enhanced .toggle:focus-visible {
  background: transparent; outline: 3px solid var(--brand-glow); outline-offset: 5px;
}
.strands-enhanced .fold::details-content {
  block-size: 0; opacity: 0; overflow: hidden;
  transition: block-size 450ms ease, opacity 450ms ease, content-visibility 450ms allow-discrete;
}
.strands-enhanced .fold[open]::details-content { block-size: auto; opacity: 1; }
html:has(.strands-enhanced) { interpolate-size: allow-keywords; }
/* Grey is a high-contrast colour state, not reduced opacity. Original role
   colours are read from this page's supplied tokens, never invented here. */
.strands-colour {
  --strand-colour: 0;
  --text-primary: color-mix(in srgb, #B5B8BC calc((1 - var(--strand-colour))*100%), var(--strand-original-text-primary));
  --text-secondary: color-mix(in srgb, #9F9F9F calc((1 - var(--strand-colour))*100%), var(--strand-original-text-secondary));
  --text-tertiary: color-mix(in srgb, #9F9F9F calc((1 - var(--strand-colour))*100%), var(--strand-original-text-tertiary));
  --brand-glow: color-mix(in srgb, #B5B8BC calc((1 - var(--strand-colour))*100%), var(--strand-original-brand-glow));
  --brand-accent: color-mix(in srgb, #B5B8BC calc((1 - var(--strand-colour))*100%), var(--strand-original-brand-accent));
  --role-proof: color-mix(in srgb, #B5B8BC calc((1 - var(--strand-colour))*100%), var(--strand-original-role-proof));
  --bg-elevated: color-mix(in srgb, #202020 calc((1 - var(--strand-colour))*100%), var(--strand-original-bg-elevated));
  --bg-raised: color-mix(in srgb, #181818 calc((1 - var(--strand-colour))*100%), var(--strand-original-bg-raised));
  color: var(--text-primary);
}
@media (prefers-reduced-motion: reduce) {
  .strands-colour { --strand-colour: 1 !important; }
  .strands-pulse { animation: none !important; transform: none !important; visibility: hidden !important; opacity: 0 !important; }
  .strands-canvas path { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
  .strands-bridge { opacity:.105 !important; }
  .strands-enhanced .fold::details-content { block-size: auto; opacity: 1; }
}
@media print {
  .strands-colour { --strand-colour: 1 !important; }
  .strands-bridge,.strands-canvas { display: none; }
}

/* Shared foreground surfaces: decoration never paints over cards or photos. */
[data-strand-field] :is(.stat,.evidence-card,.library,.library-sheet,.reference-card,.quote-card,img:not(.strands-bridge)){position:relative;z-index:2;}
[data-strand-field] :is(.stat,.evidence-card,.library-sheet,.reference-card,.quote-card){background:var(--bg-elevated);}

/* One SVG geometry draws the route and every ring, avoiding a second DOM ring
   with a different box over the route's left semicircle. */
.strands-enhanced [data-route-stop] { position:relative; z-index:2; }
/* SVG rings cache the settled stop geometry; keep People group-number glyphs
   stationary so the shared word-rise cannot temporarily detach the label. */
.people-v1 .strands-enhanced .group-number .tb4-word {
  transform: none !important;
  opacity: 1 !important;
  animation: none !important;
  transition: none !important;
}
/* The toggle's ring is drawn from its own box: + and × must share one fixed box, or the ring resizes when a group opens. */
.strands-enhanced .toggle { inline-size: 44px; block-size: 44px; display: inline-grid; place-items: center; overflow: visible; }
/* Word-reveal wrappers must not replace a role colour with body white. */
.people-v1 :is(.quote-band .quote-mark,.quote-band figcaption,.why .eyebrow,.trust .eyebrow,.group-number,.week,.mini-label,.example-label) .tb4-word { color: inherit; }
/* The + lane runs straight down from the toggle centre (22px in from the right edge); keep copy clear of it on narrow screens. */
@media (max-width: 900px) { .strands-enhanced .fold-body { padding-right: 36px; } }

/* People evidence colours participate in the same front-linked reveal as copy. */
