/* Independent data-analysis theme. Shared portfolio files are unchanged.
   Visual references: https://21st.dev/@jahed/components/particle-wave and
   https://21st.dev/community/components/s/card. Original implementation. */
:root {
  color-scheme: dark;
  --bg: #090c0b;
  --panel: #101512;
  --text: #eef2ed;
  --muted: #929e95;
  --line: #26302a;
  --accent: #c2f58b;
  --sans: 'Manrope', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 1rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
::selection { color: var(--bg); background: var(--accent); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 500; line-height: 1.13; }
sup { font-size: .65em; }
.shell { width: min(1440px, 90%); margin-inline: auto; }
.mono, .eyebrow, .source-label, .unit-label, .tags { font-family: var(--mono); }
.mono { font-size: .75rem; letter-spacing: .035em; }
.eyebrow { font-size: .75rem; letter-spacing: .065em; line-height: 1.7; }
.accent { color: var(--accent); }
.muted { color: var(--muted); }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 1rem; left: 1rem; z-index: 20; padding: .8rem 1.2rem; background: var(--accent); color: var(--bg); }
.reading-line { position: fixed; z-index: 30; inset: 0 0 auto; height: 2px; pointer-events: none; }
.reading-line span { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; background: var(--accent); }

/* The navigation remains visible and usable without JavaScript. */
.lab-header { min-height: 110px; display: flex; align-items: center; gap: 3rem; border-bottom: 1px solid var(--line); }
.lab-brand { display: flex; align-items: center; gap: 1rem; font-family: var(--mono); font-size: .75rem; letter-spacing: .02em; white-space: nowrap; }
.brand-mark { font-family: var(--sans); font-weight: 700; font-size: 2.5rem; letter-spacing: -.13em; line-height: 1; width: 38px; }
.brand-mark>span { color: var(--accent); }
.brand-separator { color: #71846f; margin-inline: .55rem; }
.lab-header nav { margin-left: auto; display: flex; align-items: center; gap: 2.25rem; }
.lab-header nav a { color: #b3beb6; font-size: .875rem; transition: color .2s; }
.lab-header nav a:hover { color: var(--accent); }
.nav-count { margin-left: .4rem; color: var(--accent); font-family: var(--mono); font-size: .75rem; }
.back-link { font-size: .875rem; border: 1px solid #344036; border-radius: 99px; padding: .65rem 1.05rem; transition: border-color .2s, background .2s; white-space: nowrap; }
.back-link span { margin-left: 1.2rem; color: var(--accent); }
.back-link:hover { border-color: var(--accent); background: #152012; }

/* A procedural data surface is the hero's only visual asset. */
.hero { padding-top: 2.35rem; }
.hero-overline { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: #a4b2a6; }
.small-cross { color: var(--accent); font-size: 1.1rem; margin-right: .7rem; }
.hero-edition { color: #88978d; }
.hero h1 { font-size: clamp(4rem, 11.8vw, 11.25rem); letter-spacing: -.078em; font-weight: 500; line-height: 1; margin: 1.8rem 0 2.2rem -.055em; white-space: nowrap; }
.hero-grid { display: grid; grid-template-columns: .83fr 1.3fr; align-items: center; gap: 1.5rem; }
.hero-copy { padding: 2rem 0 2.75rem; max-width: 450px; }
.hero-copy h2 { font-size: clamp(1.5rem, 2.2vw, 2.05rem); line-height: 1.4; letter-spacing: -.045em; }
.hero-copy>p { color: #a1afa5; max-width: 395px; margin: 1.25rem 0 1.7rem; line-height: 1.85; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 2.5rem; padding: .95rem 1.4rem; border-radius: 9px; font-size: .875rem; font-weight: 600; transition: transform .25s, background .25s, box-shadow .25s; }
.button-primary { background: var(--accent); color: #132008; box-shadow: 0 0 35px #c2f58b09; }
.button-primary:hover { transform: translateY(-3px); background: #d1ff9e; box-shadow: 0 8px 35px #c2f58b16; }
.button span { font-size: 1.25rem; }
.hero-index { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; font-size: .875rem; line-height: 1.6; }
.index-number { font-family: var(--mono); font-size: 2.7rem; font-weight: 400; line-height: 1; letter-spacing: -.1em; color: #d6dfd4; padding-right: 1.15rem; border-right: 1px solid #354037; }
.signal-stage { position: relative; min-width: 0; min-height: 430px; height: clamp(430px, 33vw, 530px); overflow: hidden; border-radius: 15px; background: radial-gradient(ellipse at 57% 50%, #19271977, transparent 68%); }
.signal-stage::before, .signal-stage::after { content: ''; position: absolute; width: 12px; height: 12px; pointer-events: none; z-index: 2; border: solid #526347; }
.signal-stage::before { top: 0; left: 0; border-width: 1px 0 0 1px; }
.signal-stage::after { bottom: 0; right: 0; border-width: 0 1px 1px 0; }
.stage-top { position: absolute; inset: 1rem 1rem auto; display: flex; justify-content: space-between; color: #b4c3af; z-index: 2; pointer-events: none; }
.stage-top>span:last-child { color: #8ca180; }
.signal-icon { color: var(--accent); font-size: 1.5rem; line-height: 0; margin-right: .6rem; }
.signal-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.signal-stage figcaption { position: absolute; inset: auto 1rem .75rem; display: flex; align-items: center; gap: 1rem; justify-content: space-between; color: #a4b39b; }
.signal-stage figcaption>.mono { flex: 1; min-width: 0; max-width: 280px; font-size: .75rem; line-height: 1.8; }
.caption-separator { padding-inline: .4rem; color: #8b9c7d; }
.motion-button { border: 1px solid #35462f; border-radius: 6px; background: #10180ee0; font-size: .75rem; padding: .55rem .7rem; white-space: nowrap; min-height: 38px; transition: border-color .2s; }
.motion-button:hover { border-color: var(--accent); }
.motion-icon { display: inline-block; color: var(--accent); margin-right: .5rem; width: .6rem; }
.canvas-fallback { position: absolute; top: 45%; width: 100%; text-align: center; font-family: var(--mono); color: var(--accent); }
.source-strip { display: grid; grid-template-columns: 1.15fr 1fr 1fr 1fr; align-items: center; gap: 2rem; border-block: 1px solid var(--line); margin-top: 2rem; padding: 1.7rem 0; }
.source-strip>.mono { max-width: 190px; color: #a2ad9d; line-height: 1.9; letter-spacing: .045em; }
.source-strip>span:not(.mono) { display: flex; align-items: baseline; flex-wrap: wrap; gap: .65rem; font-size: 1.1rem; letter-spacing: -.03em; font-weight: 600; }
.source-strip small { font-size: .75rem; font-weight: 400; letter-spacing: 0; color: #9aab9f; }

/* All four investigations are visible in an asymmetric archive. */
.section-space { padding-top: 7rem; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 3rem; margin-bottom: 2.5rem; }
.section-heading .eyebrow, .approach .eyebrow { display: flex; align-items: center; gap: 1rem; color: #b3c3ac; margin-bottom: 1.7rem; }
.label-rule { display: inline-block; width: 35px; height: 1px; background: #596e4d; }
.section-heading h2, .approach h2 { font-size: clamp(2rem, 3.8vw, 3.75rem); letter-spacing: -.065em; line-height: 1.15; }
.section-description { font-size: .875rem; line-height: 1.9; color: #a6b3a8; max-width: 330px; padding-bottom: .2rem; }
.project-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 1.25rem; }
.project-card { --card-x: 50%; --card-y: 0%; position: relative; isolation: isolate; display: flex; flex-direction: column; grid-column: span 6; min-width: 0; overflow: hidden; border: 1px solid #2c372d; border-radius: 18px; padding: 2.2rem; background: linear-gradient(145deg, #151c16 0%, #101611 46%, #0f140f 100%); transition: border-color .3s, box-shadow .3s; }
.project-card::before { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(450px circle at var(--card-x) var(--card-y), #c2f58b09, transparent 70%); transition: opacity .3s; }
.project-card:hover, .project-card:focus-within { border-color: #687e55; box-shadow: 0 16px 60px #00000020; }
.project-card:hover::before { opacity: 1; }
.project-planets, .project-selection { grid-column: span 7; }
.project-peak, .project-markets { grid-column: span 5; }
.project-peak { background: linear-gradient(145deg, #121914 0%, #0d1310 100%); }
.project-markets { background: linear-gradient(145deg, #172019 0%, #111713 100%); }
.project-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .7rem 1rem; }
.project-category { display: flex; align-items: center; gap: .7rem; font-family: var(--mono); font-size: .75rem; letter-spacing: .035em; color: #b8c5b4; }
.category-symbol { display: inline-flex; justify-content: center; align-items: center; width: 28px; height: 28px; border: 1px solid #48573c; border-radius: 6px; font-size: 1.2rem; color: var(--accent); }
.project-number { color: #a0ad9a; white-space: nowrap; }
.project-intro { margin-top: 2.2rem; }
.source-label { color: #a7b69f; font-size: .75rem; letter-spacing: .03em; }
.project-intro h3 { margin: .8rem 0 1rem; font-size: clamp(1.8rem, 2.4vw, 2.55rem); line-height: 1.2; letter-spacing: -.055em; }
.project-intro>p:last-child { color: #adb8aa; line-height: 1.85; max-width: 510px; }
.project-visual { margin: 2rem 0; padding: 1.3rem 1.4rem 1.2rem; border: 1px solid #293626; border-radius: 10px; background-color: #0a100b; background-image: radial-gradient(#accc8220 .7px, transparent .7px); background-size: 12px 12px; }
.project-visual figcaption { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; color: #b0c0a6; margin-bottom: 1.3rem; line-height: 1.5; }
.project-visual figcaption>.mono { font-size: .75rem; letter-spacing: .015em; }
.unit-label { font-size: .75rem; white-space: nowrap; color: #acb99f; }
.chart-row-label { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .55rem; font-size: .875rem; }
.chart-row-label strong { font-family: var(--mono); font-size: .875rem; color: #d0e6b6; font-weight: 400; }
.chart-row-label small { font-size: .75rem; color: #a2b194; }
.bar-track { position: relative; height: 7px; border-radius: 3px; background: #2d38276e; overflow: hidden; }
.bar-fill { display: block; width: var(--bar-size); height: 100%; background: linear-gradient(90deg, #90be5e, #c2f58b); border-radius: inherit; transform-origin: left; }
.transit-bar { background: #92aaa5; }
.period-row+.period-row { margin-top: 1.15rem; }
.chart-axis { position: relative; height: 1.2rem; color: #93a686; font-size: .75rem; margin-top: .6rem; }
.chart-axis span { position: absolute; }
.chart-axis span:nth-child(2) { left: 32.48%; transform: translateX(-50%); }
.chart-axis span:nth-child(3) { left: 64.96%; transform: translateX(-50%); }
.chart-axis span:last-child { right: 0; }
.chart-note { margin-top: 1rem; color: #9fae94; font-size: .75rem; line-height: 1.7; }
.chart-note strong { color: #c1d3ae; font-weight: 400; }
.project-bottom { margin-top: auto; }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; color: #adbf9f; font-size: .75rem; }
.tags li { border: 1px solid #30402b; border-radius: 4px; padding: .3rem .5rem; }
.project-links { display: flex; align-items: center; flex-wrap: wrap; column-gap: 2rem; row-gap: .6rem; border-top: 1px solid #2d392b; padding-top: 1.3rem; margin-top: 1.4rem; }
.project-links a { display: inline-flex; align-items: center; gap: .75rem; padding-block: .3rem; min-height: 44px; font-size: .875rem; color: var(--accent); }
.project-links a:hover { color: #e1ffc3; }
.project-links a>span[aria-hidden] { transition: transform .2s; }
.project-links a:hover>span[aria-hidden] { transform: translate(2px,-2px); }
.project-links .code-link { color: #b3c1a9; }
.code-link>span[aria-hidden] { font-family: var(--mono); font-size: .75rem; }
.peak-visual { padding-bottom: .95rem; }
.peak-visual figcaption { margin-bottom: .5rem; }
.peak-value { font-size: clamp(2.75rem, 4.2vw, 4rem); line-height: 1.1; letter-spacing: -.075em; color: #e0efcc; }
.peak-value>span { font-family: var(--mono); font-size: .875rem; letter-spacing: 0; margin-left: 1rem; color: #afc39a; }
.peak-plot { display: block; width: 100%; height: auto; margin-top: .5rem; overflow: visible; }
.plot-grid { fill: none; stroke: #526b3838; stroke-width: 1; }
.plot-line { fill: none; stroke: #c2f58b; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.model-axis { display: flex; justify-content: space-between; gap: .5rem; color: #a4b991; font-size: .75rem; }
.peak-visual .chart-note { margin-top: .6rem; }
.correlation-value { font-size: clamp(3.75rem, 5.5vw, 5.8rem); letter-spacing: -.08em; line-height: 1.2; color: #e0efcc; }
.correlation-value>span { display: block; font-size: .75rem; line-height: 1.7; letter-spacing: .035em; font-family: var(--mono); color: #a8b89c; margin-left: .25rem; }
.correlation-scale { position: relative; height: 16px; margin-top: 1.4rem; background: repeating-linear-gradient(90deg, #607252 0 1px, transparent 1px 5%); }
.correlation-scale::before { content: ''; position: absolute; inset: 7px 0 auto; border-top: 1px solid #607252; }
.scale-centre { position: absolute; top: -3px; bottom: -3px; left: 50%; width: 1px; background: #a5b39b; }
.scale-point { position: absolute; left: var(--correlation-position); top: 3px; width: 10px; height: 10px; transform: translateX(-50%); border: 2px solid #d7ffb5; border-radius: 50%; background: #8eae6e; box-shadow: 0 0 13px #c2f58b5c; }
.correlation-axis { display: flex; justify-content: space-between; color: #a6b996; margin-top: .45rem; }
.retention-visual { padding-block: 1.5rem; }
.retention-row { display: grid; grid-template-columns: 112px 1fr 62px; align-items: center; gap: 1rem; }
.retention-row+.retention-row { margin-top: 1.35rem; }
.threshold { font-family: var(--mono); color: #bdcdb2; font-size: .75rem; }
.retention-row strong { font-size: .75rem; font-family: var(--mono); font-weight: 400; text-align: right; color: #cee9b2; }
.retention-row .bar-track { height: 10px; }
.retention-row:nth-of-type(2) .bar-fill { opacity: .82; }
.retention-row:nth-of-type(3) .bar-fill { opacity: .63; }
.retention-visual .chart-note { margin-top: 1.9rem; }
.results-note { color: #9ca98e; margin-top: 1.4rem; font-size: .75rem; line-height: 1.9; letter-spacing: .02em; }
.results-note>span { margin-inline: .7rem; color: #849377; }

/* The process is drawn from the existing project reports. */
.approach { display: grid; grid-template-columns: 1fr 1.1fr; gap: 7rem; padding-bottom: 6rem; }
.approach-copy>p:not(.eyebrow) { max-width: 415px; color: #a7b4a4; margin-top: 1.6rem; line-height: 1.9; }
.toolkit { margin-top: 2.5rem; }
.toolkit>.mono { color: #a3b494; }
.toolkit p { margin-top: .75rem; color: #b7c5af; line-height: 2; font-size: .875rem; }
.toolkit p span { color: #849b72; margin-inline: .4rem; }
.method-list { list-style: none; margin: 0; padding: 0; }
.method-list li { display: grid; grid-template-columns: 30px 1fr 25px; gap: 1.2rem; align-items: baseline; border-top: 1px solid #2e382b; padding: 1.65rem 0; }
.method-list li:last-child { border-bottom: 1px solid #2e382b; }
.method-index { color: #a9c48d; }
.method-list h3 { font-size: 1.15rem; letter-spacing: -.035em; line-height: 1.4; }
.method-list p { color: #aab6a2; font-size: .875rem; line-height: 1.8; margin-top: .45rem; max-width: 360px; }
.method-code { color: #91a57f; font-size: 1rem; }
.next-note { display: grid; grid-template-columns: 1fr 1.8fr 1.25fr; align-items: center; gap: 2rem; border-block: 1px solid #3d4f30; padding-block: 2.5rem; }
.next-label { color: #b8d0a3; }
.next-label>span { display: block; margin-top: 1.15rem; color: var(--accent); font-size: 2rem; line-height: 1; }
.next-note>p { font-size: clamp(1.25rem, 2.2vw, 2rem); line-height: 1.4; letter-spacing: -.045em; color: #a5b099; }
.next-note strong { color: #d1e1c1; font-weight: 500; }
.next-copy { font-size: .875rem; color: #a7b89b; line-height: 1.9; }
.lab-footer { min-height: 140px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.footer-brand { font-size: 1.7rem; letter-spacing: -.06em; font-weight: 600; }
.lab-footer>.mono { color: #a5b398; }
.lab-footer>a:last-child { font-size: .875rem; color: #b4c0ab; }
.lab-footer>a:last-child>span { margin-left: 1rem; color: var(--accent); }

/* Content is visible by default; entrance effects are progressive enhancement. */
@keyframes arrive { from { opacity: .25; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes draw-bars { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.is-revealed { animation: arrive .7s cubic-bezier(.16,1,.3,1) both; }
.is-revealed .bar-fill { animation: draw-bars 1s cubic-bezier(.16,1,.3,1) both; }
html.motion-paused { scroll-behavior: auto; }
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation: none !important; transition: none !important; }
.motion-paused .button:hover { transform: none; }

@media (min-width: 1600px) { .hero h1 { font-size: 11.4rem; } .hero-copy { padding-block: 3rem; } }
@media (max-width: 1150px) {
  .lab-header { gap: 2rem; }
  .lab-header nav { gap: 1.4rem; }
  .hero-grid { grid-template-columns: .9fr 1.1fr; gap: 1rem; }
  .source-strip { gap: 1.2rem; }
  .source-strip>span:not(.mono) { display: block; }
  .source-strip small { display: block; margin-top: .3rem; }
  .project-card { padding: 1.65rem; }
  .project-visual { padding-inline: 1.05rem; }
  .retention-row { grid-template-columns: 102px 1fr 57px; gap: .6rem; }
  .approach { gap: 3.5rem; }
}
@media (max-width: 900px) {
  .hero-edition { display: none; }
  .hero h1 { font-size: 11.7vw; }
  .lab-header { gap: 1rem; }
  .lab-header nav { gap: 1.1rem; }
  .brand-separator { margin-inline: .2rem; }
  .stage-top>span:last-child { display: none; }
  .signal-stage figcaption { flex-wrap: wrap; }
  .signal-stage figcaption>.mono { flex-basis: 100%; max-width: none; }
  .project-card { grid-column: span 6; }
  .project-intro h3 { font-size: 1.85rem; }
  .retention-row { grid-template-columns: 1fr 62px; gap: .4rem; }
  .retention-row .threshold { grid-column: 1 / -1; }
  .project-links { column-gap: 1.3rem; }
  .section-heading { gap: 2rem; }
  .section-description { max-width: 265px; }
  .next-note { grid-template-columns: 1fr 2fr; }
  .next-copy { grid-column: 2; }
}
@media (max-width: 700px) {
  .shell { width: calc(100% - 40px); }
  .lab-header { min-height: 120px; flex-wrap: wrap; gap: .5rem 1rem; padding-block: 1.2rem 1rem; }
  .lab-brand { gap: .8rem; }
  .brand-mark { font-size: 2rem; width: 30px; }
  .back-link { margin-left: auto; padding: .5rem .8rem; }
  .back-link span { margin-left: .5rem; }
  .lab-header nav { order: 3; width: 100%; margin: .4rem 0 0; gap: 1.7rem; }
  .lab-header nav a { min-height: 36px; display: inline-flex; align-items: center; }
  .nav-count { margin-left: .5rem; }
  .hero { padding-top: 1.5rem; }
  .hero-overline .eyebrow { letter-spacing: .015em; }
  .small-cross { margin-right: .4rem; }
  .hero h1 { font-size: 11.55vw; margin-block: 1.5rem 1rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { max-width: 100%; padding: 1.5rem 0 1.8rem; }
  .hero-copy h2 { font-size: 1.65rem; }
  .hero-copy>p { max-width: 520px; margin-block: 1rem 1.5rem; }
  .hero-index { margin-top: 1.8rem; }
  .index-number { font-size: 2.2rem; }
  .signal-stage { min-height: 340px; height: 78vw; max-height: 450px; margin-top: .5rem; }
  .signal-stage figcaption { inset-inline: .75rem; flex-wrap: nowrap; gap: .75rem; }
  .signal-stage figcaption>.mono { flex-basis: auto; max-width: 220px; }
  .stage-top { inset-inline: .75rem; }
  .motion-button { padding-inline: .5rem; min-height: 44px; }
  .source-strip { grid-template-columns: repeat(3,1fr); gap: 1rem; padding-block: 1.2rem; margin-top: 1.5rem; }
  .source-strip>.mono { grid-column: 1 / -1; max-width: none; }
  .source-strip>span:not(.mono) { font-size: .95rem; }
  .section-space { padding-top: 4.5rem; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 1.3rem; margin-bottom: 1.7rem; }
  .section-heading h2, .approach h2 { font-size: clamp(2rem, 7vw, 2.8rem); }
  .section-heading .eyebrow, .approach .eyebrow { margin-bottom: 1.2rem; }
  .section-description { max-width: none; }
  .project-grid { grid-template-columns: 1fr; gap: 1rem; }
  .project-card { grid-column: auto; padding: 1.5rem; border-radius: 14px; }
  .project-intro { margin-top: 1.6rem; }
  .project-intro h3 { font-size: clamp(1.75rem, 6vw, 2.25rem); }
  .project-visual { margin-block: 1.5rem; }
  .project-links { gap: .8rem 1.6rem; }
  .peak-value { font-size: 3.6rem; }
  .peak-plot { max-height: 160px; }
  .correlation-value { font-size: 4.5rem; }
  .retention-row { grid-template-columns: 108px 1fr 62px; gap: .6rem; }
  .retention-row .threshold { grid-column: auto; }
  .approach { grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 3.5rem; }
  .approach-copy>p:not(.eyebrow) { max-width: 100%; }
  .toolkit { margin-top: 1.5rem; }
  .method-list li { grid-template-columns: 22px 1fr 20px; gap: .85rem; }
  .next-note { grid-template-columns: 1fr; gap: 1rem; padding-block: 2rem; }
  .next-label>span { display: inline; margin: 0 0 0 1rem; font-size: 1rem; }
  .next-note>p { font-size: 1.65rem; }
  .next-copy { grid-column: auto; max-width: 420px; }
  .lab-footer { min-height: 130px; flex-wrap: wrap; gap: .5rem 1rem; padding-block: 1.7rem; }
  .lab-footer>.mono { order: 3; width: 100%; }
}
@media (max-width: 380px) {
  .shell { width: calc(100% - 30px); }
  .lab-brand { gap: .5rem; }
  .lab-brand>span:last-child { max-width: 128px; white-space: normal; font-size: .75rem; }
  .back-link { padding-inline: .6rem; }
  .project-card { padding: 1.2rem; }
  .retention-row { grid-template-columns: 1fr 60px; }
  .retention-row .threshold { grid-column: 1 / -1; }
  .signal-stage figcaption { flex-wrap: wrap; }
  .signal-stage figcaption>.mono { flex-basis: 100%; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .button:hover { transform: none; }
}
