/* DENNIS RESEARCH LABORATORY — monochrome experimental series */
:root {
  color-scheme: light;
  --ink: #252625;
  --muted: #555753;
  --paper: #e7e7e1;
  --mono: "Courier New", Courier, monospace;
  --condensed: Impact, "Arial Narrow", "Franklin Gothic Medium", sans-serif;
  --steel: linear-gradient(110deg, #b6b8b5 0%, #dcddda 20%, #c8cac6 48%, #e1e2de 71%, #b3b5b2 100%);
}

* { box-sizing: border-box; }
html { background: #cecfcb; }
body {
  margin: 0;
  color: var(--ink);
  background: repeating-linear-gradient(0deg, #ffffff09 0, #ffffff09 1px, #00000003 1px, #00000003 3px), linear-gradient(115deg, #d7d8d3, #c5c7c3 55%, #d6d7d2);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 5px; }
button, .steel-button { touch-action: manipulation; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }
button:disabled { cursor: wait; }
img { display: block; max-width: 100%; }
figure, h1, h2, h3, p { margin: 0; }
::selection { color: #f6f6f1; background: #353733; }
.skip-link { position: absolute; z-index: 5; top: 12px; left: 16px; padding: 14px; color: white; background: var(--ink); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.page-shell { width: min(1220px, calc(100% - 96px)); margin-inline: auto; }
.site-header { min-height: 103px; display: flex; justify-content: space-between; align-items: center; gap: 24px; border-bottom: 2px solid var(--ink); }
.wordmark { display: flex; align-items: center; gap: 13px; text-decoration: none; font-family: var(--condensed); font-size: 19px; letter-spacing: .03em; text-transform: uppercase; }
.wordmark small { display: block; margin-top: 5px; font: 9px var(--mono); letter-spacing: .12em; }
.atom { width: 47px; height: 47px; flex: 0 0 auto; }
.site-nav { display: flex; align-items: center; gap: 30px; font: bold 10px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.site-nav a { padding-block: 12px; text-decoration: none; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-color: currentColor; }
.site-nav a span { margin-left: 7px; font-size: 16px; }
.experiment-intro { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 40px 0 35px; }
.eyebrow { font: bold 10px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .14em; }
.experiment-intro > div { min-width: 0; max-width: 100%; }
.experiment-intro h1 { font: clamp(58px, 17vw, 140px)/.94 var(--condensed); letter-spacing: -.025em; }
.experiment-intro h1 > span { display: block; max-width: 760px; margin-top: 14px; font: italic 28px/1.3 Georgia, "Times New Roman", serif; letter-spacing: -.03em; }
.experiment-description { margin-top: 18px; font: bold 10px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.intro-note { max-width: 310px; text-align: right; }
.edition-label { font: italic bold 17px Georgia, serif; }

/* The chassis: brushed metal, inset edges, and four slotted fasteners. */
.metal-panel { position: relative; border: 1px solid #777b75; border-radius: 7px; background: repeating-linear-gradient(0deg, #ffffff16 0, #ffffff16 1px, #00000005 1px, #00000005 3px), var(--steel); box-shadow: inset 0 1px 1px #ffffffe0, inset 0 -2px 1px #7b7f77, 0 4px 0 #a5a8a0, 0 5px 0 #777b73, 0 15px 25px -14px #31382c88; }
.apparatus { padding: 28px 37px 21px; }
.screw { position: absolute; width: 11px; height: 11px; border-radius: 50%; border: 1px solid #858880; background: linear-gradient(145deg, #e5e6e0, #9b9e96); box-shadow: 0 1px 1px #ffffffb3, inset 0 1px 1px #ffffffb3; }
.screw::after { content: ""; position: absolute; width: 6px; height: 1px; background: #62665d; left: 1.5px; top: 4px; transform: rotate(-34deg); }
.screw-tl { top: 13px; left: 13px; }
.screw-tr { top: 13px; right: 13px; transform: rotate(65deg); }
.screw-bl { bottom: 13px; left: 13px; transform: rotate(110deg); }
.screw-br { bottom: 13px; right: 13px; transform: rotate(10deg); }
.apparatus-topline { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 17px; border-bottom: 1px solid #8e9288; box-shadow: 0 1px #ffffff80; font: bold 10px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.apparatus-topline h2 { font: inherit; }
.console-grid { display: grid; grid-template-columns: 29% minmax(0, 1fr); gap: 35px; margin-top: 24px; }
.specimen { padding-right: 26px; border-right: 1px solid #94978e; box-shadow: 1px 0 #ffffff70; }
.photo-frame { position: relative; height: 302px; border: 7px solid #363933; outline: 1px solid #7c8075; box-shadow: 0 1px 1px #ffffffd9, inset 0 0 10px #000; background: #b4b6b0; overflow: hidden; }
.photo-frame::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0, transparent 3px, #0000000b 3px, #0000000b 4px); box-shadow: inset 0 0 26px #10110d80; pointer-events: none; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 48% 22%; filter: grayscale(1) contrast(1.12) brightness(1.18); }
.photo-caption { position: absolute; z-index: 1; bottom: 13px; left: 13px; background: #dbddd5; padding: 5px 8px; font: bold 9px var(--mono); letter-spacing: .07em; }
.crosshair { position: absolute; z-index: 1; width: 16px; height: 16px; border-color: #f3f3e9b3; border-style: solid; }
.crosshair-tl { top: 12px; left: 12px; border-width: 1px 0 0 1px; }
.crosshair-br { bottom: 12px; right: 12px; border-width: 0 1px 1px 0; }
.specimen figcaption { margin-top: 14px; }
.specimen figcaption strong { display: block; font: 18px var(--condensed); text-transform: uppercase; letter-spacing: .02em; }
.specimen figcaption > span { display: block; margin-top: 4px; font: 9px/1.5 var(--mono); }
.instrument { min-width: 0; }
.readout-bezel { border: 1px solid #73786c; padding: 8px; border-radius: 5px; background: linear-gradient(135deg, #55594f, #a6aaa0 45%, #e0e2d8 47%, #9b9f95 98%); box-shadow: 0 1px 1px #ffffffe0; }
.readout { position: relative; overflow: hidden; padding: 22px 25px 15px; border: 2px solid #11150e; border-radius: 3px; color: #dcded3; background: radial-gradient(ellipse at 50% 40%, #363d32, #191e17 90%); box-shadow: inset 0 5px 20px #000000a6; }
.readout::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, transparent 0, transparent 2px, #00000015 2px, #00000015 3px); }
.readout-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.readout-title { display: flex; align-items: center; gap: 9px; font: 17px var(--condensed); letter-spacing: .09em; text-transform: uppercase; }
.brain-icon { width: 32px; height: 28px; }
.signal-label { display: flex; align-items: center; gap: 6px; font: 8px var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.signal-light { width: 5px; height: 5px; background: #d1d6c5; border-radius: 50%; box-shadow: 0 0 5px #d1d6c577; }
.readout[data-state="loading"] .signal-light { opacity: .5; box-shadow: none; }
.readout[data-state="stale"] .signal-light,
.readout[data-state="offline"] .signal-light { opacity: .25; box-shadow: none; }
.screen-label { margin-top: 24px; font: 9px var(--mono); text-transform: uppercase; letter-spacing: .15em; color: #bdc3b3; }
.number-display { display: block; margin-top: 9px; font: bold clamp(28px, 4.1vw, 58px)/1.1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.06em; text-shadow: 0 0 12px #d4dec340, 0 0 2px #efffe24d; white-space: nowrap; }
.waveform { height: 44px; margin-top: 13px; background-image: linear-gradient(#d5ddc911 1px, transparent 1px), linear-gradient(90deg, #d5ddc911 1px, transparent 1px); background-size: 16px 14px; border-block: 1px solid #b3bca425; }
.waveform svg { display: block; width: 100%; height: 100%; }
.wave-trace { stroke: #b9c3ac; fill: none; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.screen-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font: 8px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: #bdc3b3; }
.control-row { display: flex; align-items: center; gap: 25px; margin-top: 20px; }
.steel-button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 45px; padding: 12px 17px; border: 1px solid #73776b; border-radius: 2px; color: #252820; background: linear-gradient(#f0f1e9, #c1c5b9); box-shadow: inset 0 1px #fff, 0 3px 0 #8c9282, 0 4px 2px #414a3659; font: bold 10px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .05em; text-decoration: none; cursor: pointer; }
.steel-button:hover:not(:disabled) { background: linear-gradient(#fff, #d2d5ca); }
.steel-button:active { transform: translateY(2px); box-shadow: inset 0 1px #fff, 0 1px 0 #8c9282; }
.button-indicator { width: 8px; height: 8px; border: 2px solid #777e6e; border-radius: 50%; background: #3f4637; box-shadow: 0 1px #fff; }
.copy-button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--ink); font: 10px var(--mono); cursor: pointer; }
.copy-button:hover span { text-decoration: underline; text-underline-offset: 4px; }
.copy-button svg { width: 16px; height: 16px; }
.steel-button:disabled, .copy-button:disabled { opacity: .5; }
.copy-button:disabled { cursor: default; }
.instrument-note { min-height: 28px; margin-top: 13px; font: 9px/1.6 var(--mono); color: #4b5143; }
.instrument-note > span { display: block; }
.range-plate { display: flex; align-items: center; gap: 15px; border-top: 1px solid #969c8b; padding-top: 12px; font: 9px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .03em; }
.range-plate strong { font-weight: normal; }
.vent { flex: 1; height: 10px; margin-left: 10px; opacity: .6; background: repeating-linear-gradient(90deg, #52584a 0, #52584a 2px, transparent 2px, transparent 5px); }
.apparatus-bottomline { display: flex; align-items: center; gap: 14px; margin-top: 24px; font: bold 8px var(--mono); text-transform: uppercase; letter-spacing: .13em; }
.bottomline-rule { height: 1px; flex: 1; background: #8e9288; box-shadow: 0 1px #ffffff80; }

.field-summary { display: grid; grid-template-columns: 1.1fr 1.25fr 125px; align-items: center; gap: 45px; padding: 45px 0 38px; }
.summary-intro h2 { margin-top: 10px; font: 28px/1.12 Georgia, serif; letter-spacing: -.04em; }
.summary-intro h2 em { font-size: 26px; }
.summary-body p { font: 12px/1.9 Arial, sans-serif; }
.text-link { display: inline-flex; gap: 24px; margin-top: 14px; font: bold 10px/1.5 var(--mono); text-transform: uppercase; text-decoration: none; border-bottom: 1px solid; padding-bottom: 4px; }
.text-link:hover { opacity: .7; }
.lab-stamp { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 121px; height: 121px; border: 3px double #61675b; border-radius: 50%; transform: rotate(-10deg); color: #4a5142; text-transform: uppercase; }
.lab-stamp strong { font: 37px var(--condensed); }
.lab-stamp span { font: bold 9px var(--mono); border-block: 1px solid; padding: 4px 0; margin-top: 1px; }
.lab-stamp small { font: 7px var(--mono); margin-top: 5px; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0 26px; border-top: 1px solid #767e6d; font: 8px/1.5 var(--mono); color: #4c5444; letter-spacing: .04em; text-transform: uppercase; }
.site-footer span:last-child span { margin-left: 6px; }

/* Field notes use the same chassis, with a printed technical-manual layout. */
.method-intro { padding: 45px 0 35px; }
.method-intro h1 { margin-top: 14px; font: 68px/.98 var(--condensed); text-transform: uppercase; letter-spacing: -.02em; }
.method-intro h1 em { font: italic 61px Georgia, serif; text-transform: none; }
.method-lede { margin-top: 20px; font: 15px/1.7 Arial, sans-serif; color: #454d3e; }
.method-panel { padding: 30px 40px; }
.procedure { margin: 0; padding: 0; list-style: none; }
.procedure li { display: grid; grid-template-columns: 72px 1fr; gap: 25px; padding: 29px 0; border-bottom: 1px solid #9a9e92; }
.step-number { font: 55px/1 var(--condensed); color: #69725f; }
.procedure h3 { font: 29px/1.2 Georgia, serif; margin-block: 5px 11px; letter-spacing: -.025em; }
.procedure li p:last-child { max-width: 760px; font: 14px/1.8 Arial, sans-serif; }
.method-note { padding: 21px 24px; margin-top: 26px; border: 1px solid #9a9f90; background: #e1e4d65c; }
.method-note strong { font: bold 10px var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.method-note p { margin-top: 8px; font: 12px/1.8 Arial, sans-serif; max-width: 800px; }
.subject-dossier { display: grid; grid-template-columns: 1.25fr 1fr 1fr; align-items: center; gap: 30px; padding: 45px 0; }
.dossier-copy h2 { margin-top: 12px; font: 30px/1.1 Georgia, serif; letter-spacing: -.04em; }
.dossier-copy p:not(.eyebrow) { margin-block: 17px 23px; font: 12px/1.9 Arial, sans-serif; max-width: 300px; }
.dossier-photo { padding: 8px; border: 1px solid #959b8b; background: var(--paper); box-shadow: 0 3px 8px #2a331d1a; }
.dossier-photo img { width: 100%; height: 235px; object-fit: cover; filter: grayscale(1) contrast(1.1); }
.dossier-photo:first-of-type img { object-position: 60% 30%; }
.dossier-photo figcaption { padding-top: 10px; font: 8px/1.5 var(--mono); text-transform: uppercase; }

/* Keep every surface strictly greyscale, including the phosphor-style screen. */
.page-shell { filter: grayscale(1); }

@media (min-width: 1500px) {
  .page-shell { width: min(1300px, calc(100% - 120px)); }
  .experiment-intro { padding-block: 45px; }
  .photo-frame { height: 315px; }
  .readout { padding-block: 25px 18px; }
}
@media (max-width: 1050px) {
  .page-shell { width: calc(100% - 56px); }
  .wordmark { font-size: 16px; }
  .wordmark small { font-size: 8px; }
  .site-nav { gap: 20px; }
  .apparatus { padding-inline: 27px; }
  .console-grid { grid-template-columns: 28% minmax(0, 1fr); gap: 24px; }
  .specimen { padding-right: 19px; }
  .photo-frame { height: 300px; }
  .readout { padding: 18px 18px 14px; }
  .number-display { font-size: clamp(30px, 4.7vw, 49px); }
  .readout-title { font-size: 15px; }
  .control-row { gap: 18px; }
  .steel-button { padding-inline: 13px; gap: 8px; }
  .range-plate { gap: 9px; font-size: 8px; }
  .field-summary { grid-template-columns: 1fr 1.2fr; gap: 30px; }
  .lab-stamp { display: none; }
  .subject-dossier { grid-template-columns: 1.1fr 1fr 1fr; gap: 20px; }
  .dossier-copy h2 { font-size: 25px; }
  .dossier-copy .steel-button { font-size: 8px; }
  .dossier-photo img { height: 220px; }
}
@media (max-width: 760px) {
  .page-shell { width: calc(100% - 36px); }
  .site-header { flex-wrap: wrap; gap: 16px; padding-block: 22px 14px; }
  .wordmark { font-size: 18px; }
  .site-nav { justify-content: space-between; width: 100%; gap: 16px; }
  .site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 5px; }
  .experiment-intro { align-items: flex-start; padding-block: 28px; }
  .experiment-intro h1 > span { font-size: 25px; }
  .intro-note { display: none; }
  .apparatus { padding: 27px 23px 24px; }
  .apparatus-topline { font-size: 8px; letter-spacing: .04em; }
  .apparatus-topline > span:last-child { text-align: right; }
  .console-grid { grid-template-columns: minmax(0, 1fr); gap: 23px; }
  .specimen { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 20px; padding: 0 0 22px; border-right: 0; border-bottom: 1px solid #94978e; box-shadow: 0 1px #ffffff70; }
  .photo-frame { height: 125px; border-width: 4px; }
  .photo-frame img { object-position: 50% 18%; }
  .photo-caption { font-size: 6px; left: 5px; bottom: 7px; padding: 3px 4px; }
  .crosshair { width: 9px; height: 9px; }
  .crosshair-tl { top: 7px; left: 7px; }
  .crosshair-br { bottom: 7px; right: 7px; }
  .specimen figcaption { margin: 0; }
  .specimen figcaption strong { font-size: 20px; }
  .specimen figcaption > span { max-width: 180px; font-size: 11px; line-height: 1.6; }
  .readout { padding: 20px 22px 17px; }
  .number-display { font-size: clamp(29px, 7.3vw, 51px); }
  .screen-label { margin-top: 20px; }
  .range-plate { font-size: 9px; gap: 14px; }
  .instrument-note { min-height: 30px; }
  .field-summary { padding: 35px 0 28px; gap: 25px; }
  .summary-intro h2 { font-size: 25px; }
  .summary-intro h2 em { font-size: 23px; }
  .summary-body p { font-size: 11px; }
  .site-footer { flex-wrap: wrap; font-size: 7px; gap: 12px; }
  .site-footer > span:nth-child(2) { order: 3; width: 100%; }
  .method-intro h1 { font-size: 56px; }
  .method-intro h1 em { font-size: 49px; }
  .method-panel { padding: 28px; }
  .procedure li { grid-template-columns: 47px 1fr; gap: 17px; padding-block: 25px; }
  .step-number { font-size: 44px; }
  .procedure h3 { font-size: 26px; }
  .procedure li p:last-child { font-size: 13px; }
  .method-note { padding: 18px; }
  .subject-dossier { grid-template-columns: 1fr 1fr; gap: 22px; padding-block: 32px; }
  .dossier-copy { grid-column: 1 / -1; }
  .dossier-copy h2 { font-size: 30px; }
  .dossier-copy h2 br { display: none; }
  .dossier-copy p:not(.eyebrow) { max-width: 450px; }
  .dossier-copy .steel-button { font-size: 10px; }
}
@media (max-width: 460px) {
  .wordmark { gap: 10px; font-size: 16px; }
  .wordmark small { font-size: 8px; letter-spacing: .02em; }
  .atom { width: 37px; height: 37px; }
  .experiment-intro h1 > span { font-size: 23px; }
  .apparatus { padding-inline: 17px; }
  .apparatus-topline { font-size: 9px; }
  .readout-bezel { padding: 6px; }
  .readout { padding: 17px 14px 14px; }
  .readout-heading { gap: 6px; }
  .readout-title { gap: 5px; font-size: 13px; letter-spacing: .04em; }
  .brain-icon { width: 25px; }
  .signal-label { font-size: 8px; gap: 4px; }
  .screen-label { font-size: 9px; letter-spacing: .04em; }
  .number-display { font-size: clamp(24px, 7.4vw, 34px); }
  .screen-footer { font-size: 8px; letter-spacing: .02em; }
  .control-row { gap: 12px; }
  .steel-button { padding-inline: 10px; font-size: 10px; gap: 7px; letter-spacing: 0; white-space: nowrap; }
  .control-row .steel-button > span:last-child { display: none; }
  .copy-button { font-size: 10px; gap: 6px; white-space: nowrap; }
  .copy-button svg { width: 14px; }
  .instrument-note { font-size: 10px; }
  .range-plate { font-size: 9px; gap: 10px; }
  .vent { margin-left: 0; }
  .apparatus-bottomline { font-size: 8px; gap: 9px; letter-spacing: .04em; }
  .photo-caption { font-size: 8px; }
  .site-footer { font-size: 9px; }
  .field-summary { grid-template-columns: 1fr; gap: 17px; }
  .summary-intro h2 { font-size: 25px; }
  .summary-body p { font-size: 12px; }
  .method-intro { padding-top: 30px; }
  .method-intro h1 { font-size: 48px; }
  .method-intro h1 em { font-size: 42px; }
  .method-lede { font-size: 13px; }
  .method-panel { padding: 27px 20px; }
  .method-panel .apparatus-topline > span { display: none; }
  .procedure li { grid-template-columns: 34px 1fr; gap: 12px; }
  .step-number { font-size: 35px; }
  .procedure .eyebrow { font-size: 8px; }
  .procedure h3 { font-size: 23px; }
  .procedure li p:last-child { font-size: 12px; }
  .method-note { padding: 15px; }
  .subject-dossier { gap: 15px; }
  .dossier-photo { padding: 6px; }
  .dossier-photo img { height: 170px; }
  .dossier-photo figcaption { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
