@layer reset, tokens, base, layout, components, pages, utilities, overrides;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { margin: 0; }
  img { display: block; max-width: 100%; }
  button, input, textarea, select { font: inherit; }
  h1, h2, h3, p, ul, ol, dl, dd { margin-block-start: 0; }
}

@layer tokens {
  :root {
    --ink: #18211d;
    --paper: #fbfbf7;
    --limestone: #e6e7e1;
    --green: #21483b;
    --slate: #4c6266;
    --timber: #a86e3e;
    --survey: #a43e25;
    --sand: #d7c5ad;
    --white: #fff;
    --border: #aeb6ae;
    --canvas: 1440px;
    --inset: clamp(1.25rem, 4vw, 4rem);
    --section: clamp(4.5rem, 8vw, 8rem);
    --compact: clamp(3rem, 5vw, 5rem);
    --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
    --body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  }
}

@layer base {
  body {
    color: var(--ink);
    background: var(--paper);
    font-family: var(--body);
    font-size: 1rem;
    line-height: 1.65;
    overflow-x: hidden;
  }
  h1, h2, h3 { font-family: var(--display); letter-spacing: -.025em; }
  h1 { max-width: 15ch; font-size: clamp(3rem, 6vw, 6.6rem); line-height: .94; margin-bottom: 1.5rem; }
  h2 { max-width: 16ch; font-size: clamp(2.25rem, 4vw, 4.15rem); line-height: 1; margin-bottom: 1.5rem; }
  h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.15; margin-bottom: .75rem; }
  p { max-width: 68ch; }
  a { color: inherit; text-underline-offset: .2em; }
  a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--survey); outline-offset: 3px; }
  ::selection { color: var(--white); background: var(--green); }
}

@layer layout {
  .shell { width: min(100%, var(--canvas)); margin-inline: auto; padding-inline: var(--inset); }
  .section { padding-block: var(--section); }
  .section--compact { padding-block: var(--compact); }
  .section--stone { background: var(--limestone); }
  .section--sand { background: var(--sand); }
  .section--green { color: var(--white); background: var(--green); }
  .section--ink { color: var(--white); background: var(--ink); }
  .grid { display: grid; gap: clamp(1.5rem, 3vw, 3rem); }
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split-5-7 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .split-7-5 { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .split-4-8 { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .stack > * + * { margin-top: 1.25rem; }
  .section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem; margin-bottom: clamp(2.5rem, 5vw, 5rem); align-items: end; }
  .section-head p { margin: 0 0 .4rem; font-size: clamp(1.06rem, 1.5vw, 1.25rem); }
}

@layer components {
  .skip-link { position: fixed; z-index: 100; top: .75rem; left: .75rem; transform: translateY(-160%); padding: .8rem 1rem; color: var(--white); background: var(--ink); }
  .skip-link:focus { transform: none; }
  .site-header { position: relative; z-index: 50; border-bottom: 1px solid var(--border); background: var(--paper); }
  .header-inner { min-height: 88px; display: flex; align-items: center; gap: 1.2rem; }
  .brand { flex: 0 0 auto; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.45rem; line-height: .95; }
  .brand small { display: block; color: var(--slate); font-family: var(--body); font-size: .66rem; line-height: 1.3; letter-spacing: .12em; text-transform: uppercase; margin-top: .35rem; }
  .desktop-nav { display: flex; align-items: stretch; justify-content: center; gap: clamp(.6rem, 1.25vw, 1.25rem); margin-left: auto; }
  .desktop-nav a { position: relative; display: flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 650; font-size: .9rem; white-space: nowrap; }
  .desktop-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; transform: scaleX(0); transform-origin: left; background: var(--green); transition: transform .2s ease; }
  .desktop-nav a:hover::after, .desktop-nav a[aria-current="page"]::after { transform: scaleX(1); }
  .menu-toggle { display: none; margin-left: auto; min-height: 44px; padding: .55rem .85rem; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); font-weight: 700; }
  .mobile-panel { display: none; position: absolute; left: 0; right: 0; top: 100%; border-bottom: 2px solid var(--ink); background: var(--paper); padding: 1rem var(--inset) 1.5rem; }
  .mobile-panel[data-open="true"] { display: grid; }
  .mobile-panel a { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid var(--border); text-decoration: none; font-weight: 650; }
  .btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1.15rem; border: 2px solid var(--green); border-radius: 4px; color: var(--white); background: var(--green); font-weight: 700; line-height: 1.2; text-decoration: none; transition: color .18s ease, background .18s ease; }
  .btn:hover { color: var(--green); background: var(--paper); }
  .btn--secondary { color: var(--ink); border-color: var(--ink); background: transparent; }
  .btn--secondary:hover { color: var(--white); background: var(--ink); }
  .btn--light { color: var(--green); border-color: var(--white); background: var(--white); }
  .btn--light:hover { color: var(--white); background: transparent; }
  .text-link { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; font-weight: 750; text-decoration: none; }
  .text-link::after { content: ""; width: 1.75rem; height: 3px; background: var(--survey); transition: width .18s ease; }
  .text-link:hover::after { width: 2.6rem; }
  .eyebrow { margin-bottom: 1rem; color: var(--green); font-size: .78rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
  .section--green .eyebrow, .section--ink .eyebrow, .dark-copy .eyebrow { color: var(--sand); }
  .lead { font-size: clamp(1.1rem, 1.7vw, 1.35rem); line-height: 1.55; }
  .actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.75rem; }
  .media { position: relative; overflow: hidden; background: var(--limestone); }
  .media img { width: 100%; height: 100%; object-fit: cover; }
  .caption { margin: 0; padding: .8rem 1rem; color: var(--white); background: var(--ink); font-size: .86rem; line-height: 1.45; }
  .rule-list { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
  .rule-list > li { padding: clamp(1.35rem, 2.5vw, 2.3rem); border-bottom: 1px solid var(--border); }
  .rule-list p:last-child { margin-bottom: 0; }
  .feature-row { display: grid; grid-template-columns: minmax(180px, 3fr) minmax(0, 7fr) minmax(180px, 2fr); gap: clamp(1rem, 3vw, 3rem); align-items: center; padding: clamp(1.6rem, 3vw, 3rem) 0; border-top: 1px solid var(--border); }
  .feature-row:last-child { border-bottom: 1px solid var(--border); }
  .feature-row .number { font-family: var(--display); color: var(--timber); font-size: 3rem; line-height: 1; }
  .feature-row p { margin-bottom: 0; }
  .feature-row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
  .stage-rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 4px solid var(--green); border-bottom: 2px solid var(--ink); }
  .stage-rail li { min-width: 0; padding: clamp(1.2rem, 2vw, 2rem); border-right: 1px solid var(--border); }
  .stage-rail li:last-child { border-right: 0; }
  .stage-rail strong { display: block; margin-bottom: 1rem; font-family: var(--display); font-size: 1.35rem; }
  .stage-rail p { margin: 0; font-size: .94rem; }
  .photo-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; background: var(--ink); }
  .photo-pair article { display: flex; flex-direction: column; background: var(--paper); }
  .photo-pair .media { aspect-ratio: 16 / 10; }
  .photo-pair article:nth-child(2) .media { aspect-ratio: 16 / 12; }
  .photo-pair .copy { display: flex; flex-direction: column; flex: 1; align-items: flex-start; padding: clamp(1.5rem, 3vw, 3rem); }
  .photo-pair .copy .text-link { margin-top: auto; }
  .check-list { margin: 0; padding: 0; list-style: none; }
  .check-list li { position: relative; padding: .65rem 0 .65rem 1.7rem; border-bottom: 1px solid color-mix(in srgb, var(--border), transparent 35%); }
  .check-list li::before { content: ""; position: absolute; left: 0; top: 1.25rem; width: .7rem; height: .7rem; border: 2px solid var(--green); }
  .table-wrap { overflow-x: auto; padding: .75rem; border: 1px solid var(--border); background: var(--paper); }
  table { width: 100%; min-width: 680px; border-collapse: collapse; }
  th, td { padding: 1.1rem 1.25rem; border: 1px solid var(--border); text-align: left; vertical-align: top; }
  thead th { background: var(--limestone); }
  details { border-top: 1px solid var(--border); }
  details:last-child { border-bottom: 1px solid var(--border); }
  summary { position: relative; min-height: 56px; display: flex; align-items: center; padding: 1.25rem 3rem 1.25rem 1.25rem; cursor: pointer; font-weight: 750; list-style: none; }
  summary::-webkit-details-marker { display: none; }
  summary::after { content: "+"; position: absolute; right: 1.25rem; font-size: 1.5rem; }
  details[open] summary::after { content: "−"; }
  details > p { padding: 0 1.25rem 1.5rem; margin: 0; }
  .closing { display: grid; grid-template-columns: minmax(0, 8fr) minmax(220px, 4fr); gap: 2rem; align-items: end; }
  .closing h2 { max-width: 20ch; margin-bottom: 0; }
  .site-footer { color: var(--white); background: var(--ink); }
  .footer-contact { margin: 1.5rem 0 0; color: #e6e7e1; font-size: .9rem; overflow-wrap: anywhere; }
  .footer-contact a, .error-contact a { color: #fff; font-weight: 700; }
  .footer-contact a:focus-visible, .error-contact a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
  .error-contact { margin: 1.5rem 0 0; overflow-wrap: anywhere; }
  .footer-inner { display: grid; grid-template-columns: minmax(260px, 5fr) repeat(3, minmax(140px, 2fr)); gap: 2.5rem; padding-top: clamp(3.5rem, 6vw, 6rem); padding-bottom: 2rem; }
  .footer-brand { font-family: var(--display); font-size: 2rem; font-weight: 700; }
  .footer-inner h2 { font-size: .82rem; color: var(--sand); letter-spacing: .12em; text-transform: uppercase; }
  .footer-inner ul { margin: 0; padding: 0; list-style: none; }
  .footer-inner a { min-height: 40px; display: inline-flex; align-items: center; text-decoration: none; }
  .footer-inner a:hover { text-decoration: underline; }
  .footer-utility { padding-block: 1.5rem 2.5rem; border-top: 1px solid var(--slate); color: #dfe5e1; font-size: .88rem; }
}

@layer pages {
  .hero { padding-block: clamp(3rem, 6vw, 6rem); }
  .hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(1.5rem, 4vw, 4rem); }
  .hero-copy .audience { margin-top: 1.7rem; color: var(--ink); font-weight: 650; }
  .hero-media { min-height: 620px; }
  .hero-media img { width: 100%; height: 100%; object-fit: cover; }

  .page-home .home-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: calc(100vh - 88px); }
  .page-home .hero-copy { background: var(--sand); }
  .triptych { min-width: 0; display: grid; grid-template-columns: 64fr 36fr; grid-template-rows: 1.35fr 1fr; gap: 4px; background: var(--ink); }
  .triptych figure:first-child { grid-column: 1 / -1; }
  .triptych figure { min-width: 0; display: grid; grid-template-rows: 1fr auto; margin: 0; background: var(--paper); overflow: hidden; }
  .triptych img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
  .triptych figure:nth-child(1) img { object-position: 50% 52%; }
  .triptych figure:nth-child(2) img { object-position: 76% 50%; }
  .triptych figure:nth-child(3) img { object-position: 82% 50%; }
  .triptych figcaption { padding: .8rem 1rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; font-size: .75rem; }
  .decision-rows { border-top: 2px solid var(--ink); }
  .decision-row { display: grid; grid-template-columns: minmax(140px, 2fr) minmax(0, 6fr) minmax(180px, 4fr); gap: clamp(1rem, 3vw, 3rem); align-items: center; padding-block: clamp(1.8rem, 3vw, 3rem); border-bottom: 1px solid var(--border); }
  .decision-row:nth-child(even) { grid-template-columns: minmax(180px, 4fr) minmax(140px, 2fr) minmax(0, 6fr); }
  .decision-row:nth-child(even) .decision-media { order: -1; }
  .decision-label { font-family: var(--display); font-size: clamp(1.6rem, 2.7vw, 2.8rem); }
  .decision-media { aspect-ratio: 16 / 8; }
  .update-panel { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); background: var(--limestone); }
  .update-panel .media { min-height: 520px; }
  .update-panel .copy { padding: clamp(2rem, 5vw, 5rem); }

  .interior-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 650px; }
  .interior-hero.reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .interior-hero.reverse .hero-copy { order: 2; }
  .interior-hero .hero-copy { background: var(--sand); }
  .page-commercial .interior-hero .hero-copy { color: var(--white); background: var(--ink); }
  .page-commercial .interior-hero .eyebrow { color: var(--sand); }
  .page-commercial .interior-hero .btn--secondary { color: var(--white); border-color: var(--white); }
  .page-commercial .interior-hero .btn--secondary:hover { color: var(--ink); background: var(--white); }
  .page-commercial .section--ink .update-panel .copy { color: var(--ink); background: var(--limestone); }
  .page-commercial .section--ink .update-panel .copy .eyebrow { color: var(--green); }
  .page-commercial .interior-hero { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
  .page-progress .interior-hero { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .page-progress .interior-hero .hero-copy { background: var(--limestone); }
  .page-about .interior-hero { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
  .page-about .interior-hero .hero-copy { background: var(--paper); }
  .planning-legend { grid-column: 2; display: flex; flex-wrap: wrap; gap: 1px; background: var(--border); }
  .planning-legend span { flex: 1 1 100px; padding: .8rem; background: var(--limestone); text-align: center; font-size: .78rem; font-weight: 750; text-transform: uppercase; }
  .work-table { margin: 0; padding: 0; list-style: none; }
  .work-table li { display: grid; grid-template-columns: minmax(120px, 2fr) minmax(0, 6fr) minmax(220px, 4fr); gap: 2rem; padding: clamp(1.5rem, 3vw, 3rem); border-top: 1px solid var(--border); }
  .work-table li:nth-child(even) { margin-left: 6vw; background: var(--limestone); }
  .work-table .stage-no { font-family: var(--display); color: var(--timber); font-size: 2.5rem; line-height: 1; }
  .stage-output { padding-left: 1.25rem; border-left: 4px solid var(--green); }
  .brief-layout { display: grid; grid-template-columns: minmax(220px, 4fr) minmax(0, 8fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
  .brief-intro { position: sticky; top: 1.5rem; }
  .brief-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
  .brief-group { padding: clamp(1.4rem, 3vw, 2.5rem); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .brief-group:nth-child(even) { border-right: 0; }

  .residential-hero .hero-copy { background: var(--sand); }
  .material-strip { display: grid; grid-template-columns: repeat(4, 1fr); height: 18px; }
  .material-strip span:nth-child(1) { background: var(--timber); }
  .material-strip span:nth-child(2) { background: var(--sand); }
  .material-strip span:nth-child(3) { background: var(--slate); }
  .material-strip span:nth-child(4) { background: var(--green); }
  .process-axis { margin: 0; padding: 0; list-style: none; }
  .process-axis li { width: 82%; padding: 2rem; border-top: 2px solid var(--green); background: var(--paper); }
  .process-axis li:nth-child(even) { margin-left: auto; background: var(--limestone); }
  .occupied-plan { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 2px solid var(--ink); }
  .occupied-plan div { min-height: 210px; padding: 1.5rem; border-right: 1px solid var(--ink); }
  .occupied-plan div:nth-child(2) { color: var(--white); background: var(--green); }
  .occupied-plan div:last-child { border-right: 0; }
  .sample-rail { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); background: var(--ink); }
  .sample-rail .media { min-height: 430px; }
  .sample-rail .copy { padding: clamp(2rem, 4vw, 4rem); background: var(--paper); }

  .commercial-bays { display: grid; grid-template-columns: 5fr 4fr 3fr; border-top: 4px solid var(--timber); }
  .commercial-bays article { min-height: 280px; padding: clamp(1.5rem, 3vw, 3rem); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .commercial-bays article:last-child { border-right: 0; }
  .operating-grid { display: grid; grid-template-columns: 3fr 4fr 5fr; grid-template-areas: "stake continuity access" "phase continuity owner"; min-height: 520px; border: 2px solid var(--ink); }
  .operating-grid article { padding: clamp(1.4rem, 3vw, 2.5rem); border: 1px solid var(--ink); }
  .operating-grid .stake { grid-area: stake; }
  .operating-grid .continuity { grid-area: continuity; color: var(--white); background: var(--green); display: flex; flex-direction: column; justify-content: center; }
  .operating-grid .access { grid-area: access; }
  .operating-grid .phase { grid-area: phase; background: var(--sand); }
  .operating-grid .owner { grid-area: owner; background: var(--limestone); }
  .ledger { margin: 0; }
  .ledger > div { display: grid; grid-template-columns: minmax(180px, 4fr) minmax(0, 8fr); padding: 1.5rem; }
  .ledger > div:nth-child(odd) { background: var(--limestone); }
  .ledger dt { font-weight: 750; }
  .ledger dd { margin: 0; }

  .summary-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 4px solid var(--green); }
  .summary-strip div { padding: 1.25rem; border-right: 1px solid var(--border); background: var(--paper); }
  .summary-strip div:last-child { border-right: 0; }
  .report-sheet { display: grid; grid-template-columns: 3fr 4fr; border: 2px solid var(--ink); background: var(--paper); }
  .report-sheet article { padding: clamp(1.4rem, 3vw, 2.5rem); border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
  .report-sheet article:nth-child(even) { border-right: 0; }
  .definitions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
  .definitions article { padding: 1.8rem; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .definitions article:nth-child(even) { border-right: 0; }
  .change-sequence { margin: 0; padding: 0; list-style: none; counter-reset: change; }
  .change-sequence li { counter-increment: change; display: grid; grid-template-columns: 80px minmax(0, 1fr); align-items: center; min-height: 92px; padding: 1rem; border-top: 1px solid var(--border); }
  .change-sequence li::before { content: counter(change, decimal-leading-zero); color: var(--timber); font-family: var(--display); font-size: 2.4rem; }

  .safety-hero { position: relative; min-height: 720px; }
  .safety-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .safety-plate { position: absolute; left: var(--inset); bottom: clamp(2rem, 5vw, 5rem); width: min(42%, 590px); padding: clamp(2rem, 4vw, 4rem); color: var(--white); background: var(--green); }
  .safety-plate .eyebrow { color: var(--sand); }
  .safety-plate h1 { font-size: clamp(2.8rem, 5vw, 5.5rem); }
  .role-rows article { display: grid; grid-template-columns: minmax(180px, 4fr) minmax(0, 8fr); gap: 2rem; padding: 1.6rem; border-top: 1px solid var(--border); }
  .audience-bands { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .audience-bands article { min-height: 300px; padding: 1.6rem; border-right: 1px solid var(--paper); color: var(--white); background: var(--slate); }
  .audience-bands article:nth-child(2) { background: var(--green); }
  .audience-bands article:nth-child(3) { color: var(--ink); background: var(--sand); }
  .audience-bands article:nth-child(4) { color: var(--ink); background: var(--limestone); border-right: 0; }

  .principles article { display: grid; grid-template-columns: minmax(220px, 5fr) minmax(0, 7fr); gap: 2rem; padding: clamp(1.5rem, 3vw, 3rem) 0; border-top: 2px solid var(--ink); }
  .gate-steps { margin: 0; padding: 0; list-style: none; }
  .gate-steps li { width: 76%; padding: 1.6rem; border: 2px solid var(--ink); background: var(--paper); }
  .gate-steps li + li { margin-top: -2px; }
  .gate-steps li:nth-child(2) { margin-left: 6%; }
  .gate-steps li:nth-child(3) { margin-left: 12%; }
  .gate-steps li:nth-child(4) { margin-left: 18%; }
  .gate-steps li:nth-child(5) { margin-left: 24%; color: var(--white); background: var(--green); }
  .fit-field { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 4px solid var(--green); }
  .fit-field p { min-height: 128px; margin: 0; padding: 1.35rem; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .fit-field p:nth-child(even) { border-right: 0; }

  .error-page { min-height: 70vh; display: grid; place-items: center; }
  .error-plan { position: relative; padding: clamp(2rem, 6vw, 6rem); border: 2px solid var(--ink); }
  .error-plan::before, .error-plan::after { content: ""; position: absolute; background: var(--green); }
  .error-plan::before { width: 34%; height: 5px; top: -3px; left: 12%; }
  .error-plan::after { width: 5px; height: 40%; right: -3px; bottom: 10%; }
}

@layer utilities {
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  .muted { color: var(--slate); }
  .no-margin { margin: 0; }
}

@layer overrides {
  @media (max-width: 1180px) {
    .desktop-nav { display: none; }
    .js .menu-toggle { display: inline-flex; }
    html:not(.js) .header-inner { flex-wrap: wrap; }
    html:not(.js) .mobile-panel { position: static; width: 100%; display: grid; }
  }
  @media (max-width: 900px) {
    .grid--3, .split-5-7, .split-7-5, .split-4-8, .section-head, .update-panel, .interior-hero, .interior-hero.reverse, .page-commercial .interior-hero, .page-progress .interior-hero, .page-about .interior-hero, .sample-rail, .brief-layout { grid-template-columns: 1fr; }
    .interior-hero.reverse .hero-copy { order: initial; }
    .hero-media { min-height: 460px; }
    .planning-legend { grid-column: auto; }
    .stage-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stage-rail li { border-bottom: 1px solid var(--border); }
    .work-table li { grid-template-columns: 80px minmax(0, 1fr); }
    .work-table .stage-output { grid-column: 2; }
    .brief-intro { position: static; }
    .commercial-bays { grid-template-columns: 1fr; }
    .commercial-bays article { border-right: 0; }
    .operating-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "stake access" "continuity continuity" "phase owner"; }
    .safety-plate { width: min(70%, 590px); }
    .audience-bands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-inner > div:first-child { grid-column: 1 / -1; }
  }
  @media (max-width: 719px) {
    html { scroll-behavior: auto; }
    .header-inner { min-height: 76px; }
    .grid--2, .grid--3, .photo-pair, .definitions, .summary-strip, .brief-groups, .fit-field { grid-template-columns: 1fr; }
    .page-home .home-hero { grid-template-columns: 1fr; min-height: auto; }
    .page-home .hero-copy { min-height: auto; padding-block: 3rem; }
    .triptych { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .triptych figure:first-child { grid-column: 1 / -1; }
    .triptych img { min-height: 230px; }
    .triptych figure:first-child img { min-height: 350px; }
    .decision-row, .decision-row:nth-child(even), .feature-row { grid-template-columns: 1fr; }
    .decision-row:nth-child(even) .decision-media { order: initial; }
    .stage-rail { grid-template-columns: 1fr; border-left: 4px solid var(--green); border-top-width: 2px; }
    .stage-rail li { border-right: 0; }
    .work-table li, .work-table li:nth-child(even) { margin-left: 0; grid-template-columns: 58px minmax(0, 1fr); gap: .9rem; padding: 1.25rem; }
    .work-table .stage-output { grid-column: 1 / -1; }
    .occupied-plan, .audience-bands { grid-template-columns: 1fr; }
    .occupied-plan div { min-height: auto; border-right: 0; border-bottom: 1px solid var(--ink); }
    .operating-grid { display: block; }
    .operating-grid article { min-height: auto; }
    .report-sheet { grid-template-columns: 1fr; }
    .report-sheet article, .definitions article, .fit-field p { border-right: 0; }
    .safety-hero { display: flex; flex-direction: column; min-height: auto; background: var(--paper); }
    .safety-hero img { position: static; aspect-ratio: 4 / 3; }
    .safety-plate { position: static; width: 100%; }
    .role-rows article, .principles article, .ledger > div { grid-template-columns: 1fr; gap: .6rem; }
    .gate-steps li, .gate-steps li:nth-child(n) { width: 100%; margin-left: 0; }
    .closing { grid-template-columns: 1fr; align-items: start; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-inner > div:first-child { grid-column: auto; }
    .footer-inner a { min-height: 44px; }
  }
  @media (max-width: 360px) {
    .header-inner { gap: .5rem; }
    .brand { font-size: 1.2rem; }
    .brand small { font-size: .58rem; letter-spacing: .08em; }
    .menu-toggle { padding-inline: .65rem; }
    .actions .btn { width: 100%; }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  }
}
