@font-face { font-family: Anek; src: url(fonts/AnekLatin.woff2); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Text; src: url(fonts/AtkinsonHyperlegible-400-normal.woff2); font-weight: 400; font-display: swap; }
@font-face { font-family: Text; src: url(fonts/AtkinsonHyperlegible-700-normal.woff2); font-weight: 700; font-display: swap; }
@font-face { font-family: Display; src: url(fonts/BricolageGrotesque-800-normal.woff2); font-weight: 800; font-display: swap; }
@font-face { font-family: Mono; src: url(fonts/JetBrainsMono-400-normal.woff2); font-weight: 400; font-display: swap; }
/* Registered so the whole page can fade between workspace colours. */
@property --accent { syntax: '<color>'; inherits: true; initial-value: #ffd23f; }
:root {
  --navy: #19283f;
  --ink: #19283f;
  --gold: #dfa041;
  --volt: #ffd23f;
  --sky: #6cc6ff;
  --coral: #ff8a65;
  --lilac: #b9a4ff;
  --mint: #5fe0a8;
  --berry: #ff6b9a;
  --paper: #fff8ec;
  --white: #ffffff;
  --mist: #eef2f6;
  --slate: #4d5c72;
  --rule: #d8dfe8;
  --font-heading: Anek, Arial, sans-serif;
  --font-body: Text, Arial, sans-serif;
  --font-display: Display, Anek, Arial, sans-serif;
  --font-mono: Mono, ui-monospace, monospace;
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
  --header-clearance: 120px;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-clearance);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
button { color: inherit; }
img, video, svg { max-width: 100%; }
[hidden] { display: none !important; }
.wrap { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }
:where(a, button, input, summary, [tabindex]):focus-visible { outline: 3px solid #ac6c0e; outline-offset: 4px; }
.skip-link { position: absolute; left: 20px; top: -90px; z-index: 2000; background: white; padding: 14px; border: 3px solid var(--ink); border-radius: 10px; }
.skip-link:focus { top: 12px; }
h1, h2, h3, p { margin-top: 0; }

/* Home page: graph-paper notebook, sticker cards and hard shadows. */
body.lab { --accent: var(--volt); transition: --accent .6s ease; background-color: var(--paper); background-image: linear-gradient(#19283f10 1px, transparent 1px), linear-gradient(90deg, #19283f10 1px, transparent 1px); background-size: 32px 32px; }
body.lab[data-lab="ncert"] { --accent: var(--sky); }
body.lab[data-lab="makerbench"] { --accent: var(--coral); }
body.lab[data-lab="tests"] { --accent: var(--lilac); }
.lab main { overflow-x: clip; }
.lab :where(a, button, input, [tabindex]):focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }

.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 46px; padding: 10px 20px; border: 3px solid var(--ink); border-radius: 14px; background: var(--white); color: var(--ink); box-shadow: 4px 4px 0 var(--shadow, var(--ink)); font: 700 16px/1.2 var(--font-heading); white-space: nowrap; transition: transform .18s var(--bounce), box-shadow .18s ease, background-color .3s ease; }
.button:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--shadow, var(--ink)); }
.button:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--shadow, var(--ink)); }
.button-large { min-height: 56px; padding: 13px 26px; font-size: 18px; border-radius: 16px; }
.button-pop { background: var(--volt); }
.button-accent { background: var(--accent); }
.button[aria-disabled="true"] { background: repeating-linear-gradient(-45deg, #e7ebf0 0 10px, #d3dae4 10px 20px); color: #4d5c72; box-shadow: none; transform: none; cursor: not-allowed; }

.site-header { position: sticky; top: 0; z-index: 50; padding-block: 12px; background: var(--paper); }
.header-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 6px 16px; background: var(--white); border: 2px solid var(--ink); border-radius: 18px; box-shadow: 3px 3px 0 var(--ink); }
.brand-lockup { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.institute-credit { padding: 5px 10px; border: 2px solid var(--ink); border-radius: 999px; background: var(--volt); font: 700 13px var(--font-heading); white-space: nowrap; transform: rotate(-3deg); }
.brand { flex: 0 0 auto; display: inline-block; }
.brand img { display: block; width: 108px; height: 70px; object-fit: contain; }
.site-header .brand img { width: 108px; height: 70px; }
.main-nav { display: flex; align-items: center; gap: 4px; font: 600 17px var(--font-heading); }
.main-nav a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 14px; border-radius: 10px; white-space: nowrap; transition: background-color .2s; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--mist); }
.mission-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.mission-link[aria-disabled="true"] { text-decoration: none; cursor: default; }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.hero { position: relative; padding-block: 42px 116px; }
.hero-showcase { display: grid; gap: 22px; }
.hero-row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.hero-line { position: relative; isolation: isolate; width: fit-content; padding: .02em .17em .07em; margin: 0; rotate: var(--tilt); font: 800 clamp(54px, 7.4vw, 96px)/1.02 var(--font-display); letter-spacing: -.035em; white-space: nowrap; }
.hero-line::before { content: ""; position: absolute; inset: .1em 0 0; z-index: -1; background: var(--c); border: 3px solid var(--ink); border-radius: .15em; box-shadow: 6px 6px 0 var(--ink); }
.hero-previews { display: flex; gap: 16px; min-width: 0; }
.hero-preview { flex: 1; min-width: 0; max-width: 300px; overflow: hidden; border: 3px solid var(--ink); border-radius: 12px; background: var(--white); box-shadow: 4px 4px 0 var(--ink); transition: transform .2s ease; }
.hero-preview:hover { transform: translateY(-3px); }
.hero-preview img { display: block; width: 100%; height: auto; aspect-ratio: 600 / 338; object-fit: cover; object-position: center; border-bottom: 2px solid var(--ink); }
.hero-preview span { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 12px; font: 700 15px/1.3 var(--font-heading); }
.hero-preview svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; }
.hero-footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-top: 38px; }
.hero-text { max-width: 650px; font-size: 19px; line-height: 1.55; color: var(--slate); margin-bottom: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.motion-toggle { flex: none; min-height: 44px; padding: 10px 14px; border: 2px solid var(--ink); border-radius: 10px; background: var(--white); font-weight: 700; }
#preview-select { max-width: 180px; min-height: 36px; padding: 4px 8px; border: 2px solid #c9d4e2; border-radius: 8px; color: var(--ink); background: var(--white); font: 700 15px var(--font-heading); }

.tapes { position: relative; z-index: 3; height: 128px; margin-block: -78px -50px; overflow: hidden; pointer-events: none; }
.tape { position: absolute; left: -5%; width: 110%; padding-block: 12px; border-block: 3px solid var(--ink); white-space: nowrap; overflow: hidden; }
.tape-a { top: 20px; rotate: -2.5deg; background: var(--ink); color: var(--volt); }
.tape-b { top: 64px; rotate: 1.6deg; background: var(--white); color: var(--ink); }
.tape-track { display: inline-flex; animation: marquee 38s linear infinite; }
.tape-b .tape-track { animation-direction: reverse; animation-duration: 46s; }
.tape-track span { display: inline-flex; align-items: center; gap: 30px; padding-right: 30px; font: 800 26px/1.1 var(--font-display); }
.tape-track span::after { content: ""; width: 18px; height: 18px; background: currentColor; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 36px; }
.section-head h2 { font: 800 clamp(46px, 6.2vw, 88px)/.92 var(--font-display); letter-spacing: -.035em; margin: 0; }
.section-aside { max-width: 380px; display: grid; justify-items: start; gap: 14px; }
.section-aside p { font-size: 18px; line-height: 1.5; margin: 0; }
.badge-link { display: inline-block; padding: 7px 14px; background: var(--white); border: 2px solid var(--ink); border-radius: 999px; font: 600 15px var(--font-heading); rotate: -2deg; transition: rotate .3s var(--bounce); }
.badge-link:hover { rotate: 2deg; }

.labs { position: relative; padding-block: 120px 80px; background-color: var(--accent); background-image: radial-gradient(#19283f22 1.6px, transparent 1.9px); background-size: 20px 20px; border-block: 3px solid var(--ink); scroll-margin-top: 0; }
.lab-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.lab-card { --card: var(--volt); position: relative; display: grid; align-content: start; gap: 6px; min-height: 176px; padding: 18px 18px 20px; text-align: left; background: var(--white); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 6px 6px 0 var(--ink); transition: transform .3s var(--bounce), box-shadow .3s ease, background-color .3s ease, color .3s ease; }
.lab-card[data-app="ncert"] { --card: var(--sky); }
.lab-card[data-app="makerbench"] { --card: var(--coral); }
.lab-card[data-app="tests"] { --card: var(--lilac); }
.lab-card:hover { transform: translate(-2px, -5px) rotate(-1deg); box-shadow: 9px 11px 0 var(--ink); }
.lab-icon { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 14px; background: var(--card); color: var(--ink); border: 3px solid var(--ink); border-radius: 16px; transition: transform .4s var(--bounce); }
.lab-card:hover .lab-icon { transform: rotate(-10deg) scale(1.08); }
.lab-icon svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lab-name { font: 800 26px/1 var(--font-display); letter-spacing: -.02em; }
.lab-tag { font-size: 14px; line-height: 1.3; color: var(--slate); }
.lab-status { justify-self: start; margin-top: 10px; padding: 2px 11px 3px; background: var(--mint); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; font: 700 13px var(--font-heading); }
.lab-status.is-soon { background: transparent; color: inherit; border: 2px dashed currentColor; }

.lab-screen { margin-top: 34px; background: var(--white); border: 3px solid var(--ink); border-radius: 24px; box-shadow: 12px 12px 0 var(--ink); overflow: hidden; }
.screen-bar { display: flex; align-items: center; gap: 16px; min-height: 54px; padding: 10px 16px 10px 20px; background: var(--ink); color: var(--white); font-size: 14px; }
.screen-dots { display: flex; gap: 7px; }
.screen-dots i { width: 13px; height: 13px; border-radius: 50%; background: var(--coral); }
.screen-dots i:nth-child(2) { background: var(--volt); }
.screen-dots i:nth-child(3) { background: var(--mint); }
.screen-title { font: 600 16px var(--font-heading); }
.screen-rec { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; color: #c9d4e2; }
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff5a5a; animation: blink 1.2s ease-in-out infinite; }
#preview-toggle { padding: 6px 14px; background: transparent; color: var(--white); border: 2px solid #ffffff99; border-radius: 999px; font: 600 14px var(--font-heading); }
#preview-toggle:hover { background: #ffffff1f; }
.lab #preview-toggle:focus-visible { outline-color: var(--volt); }
.preview-screen { position: relative; background: var(--mist); overflow: hidden; border-bottom: 3px solid var(--ink); }
.preview-screen video { display: block; width: 100%; aspect-ratio: 16/9; object-fit: contain; }
.preview-screen.is-switching video { animation: tv-on .55s ease-out; }
.preview-error { position: absolute; bottom: 12px; left: 12px; right: 12px; background: #fffef2; color: var(--ink); border: 3px solid var(--ink); border-radius: 12px; padding: 12px; font-size: 14px; }
.workspace-information { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px; padding: 28px 32px 30px; }
.workspace-description h3 { font: 800 clamp(34px, 3.6vw, 46px)/1 var(--font-display); letter-spacing: -.025em; margin-bottom: 12px; }
.workspace-description p { font-size: 17px; line-height: 1.5; color: var(--slate); margin-bottom: 14px; max-width: 600px; }
.access-note { display: inline-block; padding: 6px 13px; background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; font-size: 14px; }
.workspace-footnote { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; font: 600 14px var(--font-heading); }

.missions { padding-top: 110px; scroll-margin-top: 70px; }
.mission-board { background: var(--white); border: 3px solid var(--ink); border-radius: 28px; box-shadow: 12px 12px 0 var(--ink); overflow: hidden; }
.mission-tabs { display: flex; flex-wrap: wrap; gap: 14px; padding: 20px 22px; background: var(--paper); border-bottom: 3px solid var(--ink); }
.mission-tab { --m: var(--volt); display: inline-flex; align-items: center; gap: 10px; padding: 8px 20px 8px 8px; background: var(--white); border: 3px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink); font: 700 18px var(--font-heading); transition: transform .25s var(--bounce), background-color .25s ease, box-shadow .25s ease; }
.mission-tab[data-challenge="swing"] { --m: var(--sky); }
.mission-tab[data-challenge="motion"] { --m: var(--coral); }
.mission-tab:hover { transform: translate(-1px, -3px) rotate(-1.5deg); box-shadow: 5px 6px 0 var(--ink); }
.mission-tab[aria-selected="true"] { background: var(--m); }
.mission-icon { width: 36px; height: 36px; display: grid; place-items: center; background: var(--m); border: 2px solid var(--ink); border-radius: 50%; }
.mission-tab[aria-selected="true"] .mission-icon { background: var(--white); }
.mission-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.activity-panel { --m: var(--volt); display: grid; grid-template-columns: minmax(0, 1fr) 420px; align-items: center; gap: 56px; padding: 46px 48px 54px; }
.activity-panel[data-mission="swing"] { --m: var(--sky); }
.activity-panel[data-mission="motion"] { --m: var(--coral); }
.activity-context { display: inline-block; padding: 4px 12px; border: 3px solid #d0451b; border-radius: 8px; color: #c03d14; font: 800 17px var(--font-display); letter-spacing: .01em; rotate: -4deg; }
.activity-text h3 { font: 800 clamp(38px, 4.4vw, 60px)/1 var(--font-display); letter-spacing: -.03em; margin-block: 20px 16px; }
.activity-text p { font-size: 18px; line-height: 1.55; color: var(--slate); max-width: 560px; margin-bottom: 28px; }
.button-mission { background: var(--m); }
.activity-object { position: relative; padding: 14px 14px 0; background: var(--white); border: 3px solid var(--ink); border-radius: 6px; box-shadow: 9px 9px 0 var(--ink); rotate: 3deg; transition: rotate .45s var(--bounce); }
.activity-object::before { content: ""; position: absolute; top: -18px; left: 50%; width: 120px; height: 34px; translate: -50% 0; rotate: -5deg; background: #ffd23fc0; border: 2px solid #19283f33; }
.activity-panel:hover .activity-object { rotate: -1.5deg; }
.activity-object.is-swapping { animation: flip-in .6s var(--bounce); }
.activity-object img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: contain; background: var(--mist); border: 2px solid var(--ink); }
.activity-object span { display: block; padding: 14px 4px 18px; font: 600 17px var(--font-heading); }

.playground { --shadow: var(--white); margin-top: 110px; padding-block: 100px; background-color: var(--ink); background-image: radial-gradient(#ffffff16 1.4px, transparent 1.7px); background-size: 22px 22px; color: var(--white); scroll-margin-top: 50px; }
.playground :where(a, button, input, [tabindex]):focus-visible { outline-color: var(--volt); }
.playground-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 60px; }
.kicker { display: inline-block; padding: 6px 16px; background: var(--volt); color: var(--ink); border: 2px solid var(--white); border-radius: 999px; font: 700 15px var(--font-heading); rotate: -3deg; }
.playground h2 { font: 800 clamp(44px, 5.4vw, 78px)/.95 var(--font-display); letter-spacing: -.035em; margin-block: 22px 22px; }
.glow-text { display: block; color: var(--volt); text-shadow: 0 0 28px #ffd23f88; }
.experiment-controls > p:not(.kicker, .band-readout) { font-size: 18px; line-height: 1.55; color: #c9d4e2; max-width: 460px; }
.experiment-controls label { display: flex; justify-content: space-between; align-items: baseline; margin-top: 34px; font: 700 18px var(--font-heading); }
#resistance-value { font: 24px var(--font-mono); color: var(--volt); }
#resistance { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; margin: 14px 0 6px; background: transparent; cursor: pointer; }
#resistance::-webkit-slider-runnable-track { height: 14px; background: #0e1828; border: 2px solid var(--white); border-radius: 999px; }
#resistance::-moz-range-track { height: 10px; background: #0e1828; border: 2px solid var(--white); border-radius: 999px; }
#resistance::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; margin-top: -11px; background: var(--volt); border: 3px solid var(--ink); border-radius: 50%; box-shadow: 0 0 0 3px var(--white); }
#resistance::-moz-range-thumb { width: 26px; height: 26px; background: var(--volt); border: 3px solid var(--ink); border-radius: 50%; box-shadow: 0 0 0 3px var(--white); }
.range-labels { display: flex; justify-content: space-between; font-size: 13px; color: #8fa3bd; }
.band-readout { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; font-size: 15px; color: #c9d4e2; }
.band-swatches { display: inline-flex; gap: 4px; padding: 5px 9px; background: #f2d7a1; border: 2px solid var(--white); border-radius: 999px; }
.band-swatches i { width: 7px; height: 18px; border-radius: 2px; background: var(--ink); }
.experiment-buttons { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }
#circuit-switch[aria-pressed="true"] { background: var(--mint); }
.button-outline { background: transparent; color: var(--white); border-color: var(--white); box-shadow: 4px 4px 0 var(--coral); }
.button-outline:hover, .button-outline:active { box-shadow: 6px 6px 0 var(--coral); }

.circuit-panel { position: relative; padding: 22px; background: #0e1828; border: 3px solid var(--white); border-radius: 26px; box-shadow: 12px 12px 0 var(--volt); }
.circuit-board { position: relative; background-color: #132139; background-image: radial-gradient(#ffffff1c 1.3px, transparent 1.6px); background-size: 16px 16px; border-radius: 16px; }
.circuit-board svg { display: block; width: 100%; }
.circuit-board .wire, .battery path { fill: none; stroke: #6e83a2; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s ease; }
.is-live .wire, .is-live .battery path { stroke: #e6edf6; }
.current-flow { fill: none; stroke: var(--volt); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 0 18; opacity: 0; transition: opacity .3s ease; }
.is-flowing .current-flow { opacity: 1; animation: flow var(--flow-speed, 1s) linear infinite; }
.resistor-body { fill: #f2d7a1; stroke: var(--ink); stroke-width: 2; }
.switch circle { fill: #132139; stroke: #e6edf6; stroke-width: 3; }
.led-halo { opacity: calc(var(--glow, 0) * .95); transition: opacity .35s ease; }
.is-hot .led-halo { animation: flicker .18s steps(2) infinite; }
.led-body { fill: #132139; stroke: #e6edf6; stroke-width: 3.5; stroke-linejoin: round; transition: fill .3s ease; }
.led-bar { stroke: #e6edf6; stroke-width: 3.5; stroke-linecap: round; }
.led-rays { fill: none; stroke: #6e83a2; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s ease; }
.is-lit .led-body { fill: #ff5a4f; }
.is-lit .led-rays { stroke: #ff9b8f; }
.led-crack { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.is-dead .led-body { fill: #46536a; stroke: #8fa3bd; }
.is-dead .led-bar { stroke: #8fa3bd; }
.is-dead .led-crack { opacity: 1; }
.diagram-labels { font: 600 16px var(--font-heading); fill: #c9d4e2; }
.burst { opacity: 0; transform-box: fill-box; transform-origin: center; pointer-events: none; }
.burst polygon { fill: var(--volt); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.burst text { font: 800 24px var(--font-display); fill: var(--ink); }
.is-popping .burst { animation: burst 1s var(--bounce); }
.is-popping .circuit-board { animation: shake .5s ease; }
.sweet-stamp { position: absolute; top: 14px; left: 14px; padding: 4px 12px 6px; border: 3px solid var(--mint); border-radius: 10px; color: var(--mint); font: 800 20px var(--font-display); rotate: -8deg; opacity: 0; scale: 1.8; transition: opacity .2s ease, scale .35s var(--bounce); pointer-events: none; }
.is-sweet .sweet-stamp { opacity: 1; scale: 1; }
.fx-layer { --ox: 81%; --oy: 48%; position: absolute; inset: 0; pointer-events: none; }
.confetti { position: absolute; left: var(--ox); top: var(--oy); width: 9px; height: 15px; margin: -7px -4px; background: var(--c); border-radius: 2px; animation: confetti 1.2s cubic-bezier(.12, .7, .3, 1) forwards; }
.smoke { position: absolute; left: var(--ox); top: var(--oy); width: 30px; height: 30px; margin: -15px; border-radius: 50%; background: #a9b4c4; opacity: 0; animation: smoke 1.6s ease-out forwards; animation-delay: var(--d); }

.circuit-readout { display: grid; grid-template-columns: 210px minmax(0, 1fr); align-items: center; gap: 24px; margin-top: 20px; }
.gauge { display: block; width: 100%; overflow: visible; }
.gauge-zone { fill: none; stroke-width: 14; }
.zone-dim { stroke: #46536a; }
.zone-good { stroke: var(--mint); }
.zone-warm { stroke: #ffb347; }
.zone-hot { stroke: #ff5a4f; }
.gauge-ticks { stroke: #8fa3bd; stroke-width: 2; stroke-linecap: round; }
.gauge-labels { font: 12px var(--font-mono); fill: #8fa3bd; }
.needle { transform-box: view-box; transform-origin: 100px 100px; transform: rotate(-90deg); transition: transform .7s cubic-bezier(.3, 1.6, .5, 1); }
.needle path { stroke: var(--white); stroke-width: 5; stroke-linecap: round; }
.needle circle { fill: var(--volt); stroke: var(--ink); stroke-width: 3; }
.lcd { display: grid; gap: 2px; padding: 10px 16px 12px; background: #081020; border: 2px solid #34465f; border-radius: 12px; }
.lcd span { font-size: 13px; color: #8fa3bd; }
#current-reading { font: 36px/1.1 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--mint); text-shadow: 0 0 14px #5fe0a880; }
.is-hot #current-reading { color: #ffb347; text-shadow: 0 0 14px #ffb34780; }
.is-dead #current-reading { color: #ff7b72; text-shadow: none; }
#circuit-state { display: block; margin-top: 12px; font-size: 16px; line-height: 1.45; color: #e6edf6; }
.model-note { font-size: 13px; line-height: 1.5; color: #8fa3bd; margin-block: 20px 12px; }
.text-link { font-size: 16px; font-weight: 700; text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--volt); text-underline-offset: 5px; }
.text-link:hover { text-decoration-color: currentColor; }
.circuit-panel .text-link { color: var(--volt); }

.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; padding-block: 120px 110px; scroll-margin-top: 80px; }
.note { position: relative; padding: 38px 30px 30px; background: var(--note); border: 3px solid var(--ink); border-radius: 6px 6px 26px 6px; box-shadow: 8px 8px 0 var(--ink); rotate: var(--tilt); }
.note::before { content: ""; position: absolute; top: -16px; left: 50%; width: 96px; height: 30px; translate: -50% 0; rotate: 3deg; background: #ffffffb0; border: 2px solid #19283f30; }
.note h2 { font: 800 30px/1.02 var(--font-display); letter-spacing: -.02em; margin-bottom: 14px; }
.note p { font-size: 17px; line-height: 1.55; color: #2f3e55; margin-bottom: 16px; }
.note .text-link { overflow-wrap: anywhere; text-decoration-color: var(--ink); }

.site-footer { --shadow: var(--volt); padding-top: 80px; background: var(--ink); color: var(--white); }
.site-footer :where(a, button):focus-visible { outline-color: var(--volt); }
.footer-shout { margin-bottom: 50px; font: 800 clamp(64px, 13.5vw, 196px)/.88 var(--font-display); letter-spacing: -.045em; color: var(--volt); }
.footer-shout span:nth-child(2) { color: var(--sky); }
.footer-shout span:nth-child(3) { color: var(--coral); }
.footer-inner { display: flex; gap: 30px; justify-content: space-between; align-items: center; padding-block: 22px; border-top: 2px solid #ffffff26; }
.site-footer .brand { padding: 4px 10px; background: var(--white); border: 3px solid var(--white); border-radius: 14px; }
.site-footer .brand img { width: 84px; height: 54px; }
.footer-inner p { font-size: 15px; color: #c9d4e2; margin-bottom: 0; }
.footer-inner > a:last-child { font: 700 16px var(--font-heading); text-decoration: underline; text-decoration-color: var(--volt); text-underline-offset: 5px; }
.site-footer .legal-nav { color: #a9b7ca; border-top-color: #ffffff26; font-size: 13px; }

/* Scroll entrances only hide content once the script has started. */
.js .reveal { opacity: 0; transform: translateY(48px) scale(.97); transition: opacity .6s ease var(--rd, 0s), transform .75s var(--bounce) var(--rd, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .note.reveal { transition: opacity .6s ease var(--rd, 0s), transform .75s var(--bounce) var(--rd, 0s), rotate .35s var(--bounce), translate .35s var(--bounce); }
.note:hover { rotate: 0deg; translate: 0 -6px; }

@keyframes blink { 50% { opacity: .35; } }
@keyframes line-in { from { opacity: 0; transform: translateY(46px) scale(.7); } to { opacity: 1; transform: none; } }
@keyframes bob { 50% { translate: 0 -9px; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes swing { from { transform: rotate(-24deg); } to { transform: rotate(24deg); } }
@keyframes sticker-spin { 0% { transform: none; } 50% { transform: rotate(200deg) scale(1.25); } 100% { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes icon-pop { 0% { transform: scale(.6) rotate(-20deg); } 100% { transform: none; } }
@keyframes tv-on { 0% { clip-path: inset(49.5% 46% 49.5% 46%); filter: brightness(4); } 40% { clip-path: inset(49.5% 0 49.5% 0); filter: brightness(2.5); } 100% { clip-path: inset(0); filter: none; } }
@keyframes flip-in { 0% { transform: rotateY(90deg) scale(.9); } 100% { transform: none; } }
@keyframes flow { to { stroke-dashoffset: -18; } }
@keyframes flicker { 50% { opacity: calc(var(--glow, 0) * .6); } }
@keyframes burst { 0% { opacity: 1; transform: scale(0) rotate(-25deg); } 30% { opacity: 1; transform: scale(1.18) rotate(5deg); } 75% { opacity: 1; transform: scale(1) rotate(0); } 100% { opacity: 0; transform: scale(1.1); } }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translate(-8px, 3px) rotate(-1deg); } 40% { transform: translate(7px, -4px) rotate(1deg); } 60% { transform: translate(-5px, 2px); } 80% { transform: translate(3px, -1px); } }
@keyframes confetti { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--r)); } }
@keyframes smoke { 0% { opacity: .8; transform: translate(0, 0) scale(.4); } 100% { opacity: 0; transform: translate(var(--dx), -110px) scale(2.4); } }

/* Legacy policy documents share the same type and spacing system. */
body>header:not(.site-header), body>footer:not(.site-footer) { width: min(1240px, calc(100% - 96px)); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 88px; border-bottom: 1px solid var(--rule); }

@media (max-width: 1050px) {
  .wrap { width: calc(100% - 64px); }
  .main-nav { gap: 0; font-size: 16px; }
  .main-nav a { padding-inline: 11px; }
  .hero-row { gap: 28px; }
  .hero-line { font-size: clamp(50px, 7.4vw, 80px); }
  .lab-picker { gap: 16px; }
  .lab-card { min-height: 160px; padding: 16px 14px 18px; }
  .lab-name { font-size: 22px; }
  .lab-icon { width: 50px; height: 50px; }
  .workspace-information { grid-template-columns: 1fr; gap: 18px; }
  .activity-panel { grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; padding: 36px; }
  .playground-inner { grid-template-columns: 1fr; gap: 50px; }
  .experiment-controls > p:not(.kicker, .band-readout) { max-width: 620px; }
  .notes { gap: 26px; }
  .note { padding-inline: 22px; }
  .note h2 { font-size: 26px; }
}
@media (max-width: 760px) {
  :root { --header-clearance: 144px; }
  .wrap { width: calc(100% - 32px); }
  .site-header { padding-block: 8px; }
  .header-inner { flex-direction: column; align-items: stretch; gap: 4px; padding: 4px 10px 6px; border-radius: 16px; }
  .brand-lockup { gap: 8px; }
  .site-header .institute-credit { padding: 4px 7px; font-size: 11px; }
  .site-header .brand img { width: 88px; height: 58px; }
  .main-nav { width: 100%; justify-content: space-between; gap: 0; padding-top: 4px; border-top: 1px solid var(--rule); font-size: 15px; }
  .main-nav a { min-width: 44px; padding: 6px 4px; }
  .hero { padding-block: 30px 96px; }
  .hero-showcase { gap: 30px; }
  .hero-row { grid-template-columns: 1fr; gap: 16px; }
  .hero-line { font-size: clamp(50px, 13vw, 76px); }
  .hero-preview img { height: auto; }
  .hero-row:nth-child(3) .hero-previews { gap: 12px; }
  .hero-preview span { font-size: 14px; padding-inline: 8px; }
  .hero-footer { flex-direction: column; gap: 18px; }
  .hero-line::before { border-width: 2.5px; box-shadow: 4px 4px 0 var(--ink); }
  .hero-text { font-size: 17px; }
  .hero-actions { gap: 12px; }
  .hero-actions .button { flex: 1 1 auto; }
  .button-large { min-height: 52px; padding: 11px 18px; font-size: 16px; }
  .tapes { height: 104px; margin-block: -70px -44px; }
  .tape { padding-block: 9px; }
  .tape-a { top: 16px; }
  .tape-b { top: 52px; }
  .tape-track span { font-size: 19px; gap: 20px; padding-right: 20px; }
  .tape-track span::after { width: 13px; height: 13px; }
  .section-head { display: grid; gap: 16px; margin-bottom: 26px; }
  .section-head h2 { font-size: clamp(42px, 13vw, 56px); }
  .section-aside p { font-size: 16px; }
  .labs { padding-block: 96px 56px; }
  .lab-picker { grid-template-columns: 1fr 1fr; gap: 14px; }
  .lab-card { min-height: 136px; padding: 13px 12px 15px; border-radius: 18px; box-shadow: 4px 4px 0 var(--ink); }
  .lab-icon { width: 42px; height: 42px; margin-bottom: 8px; border-radius: 12px; }
  .lab-icon svg { width: 25px; height: 25px; }
  .lab-name { font-size: 19px; }
  .lab-tag { font-size: 12px; }
  .lab-screen { margin-top: 24px; border-radius: 18px; box-shadow: 6px 6px 0 var(--ink); }
  .screen-bar { flex-wrap: wrap; gap: 6px 12px; padding: 10px 12px; font-size: 12px; }
  .screen-dots { display: none; }
  .screen-title { font-size: 15px; }
  .screen-rec { order: 3; width: 100%; margin-left: 0; }
  #preview-toggle { margin-left: auto; padding: 4px 12px; font-size: 13px; }
  .workspace-information { padding: 20px 18px 22px; }
  .workspace-description h3 { font-size: 32px; }
  .workspace-description p { font-size: 16px; }
  .access-note { font-size: 13px; border-radius: 14px; }
  .workspace-actions .button { width: 100%; }
  .workspace-footnote { flex-direction: column; gap: 4px; font-size: 13px; }
  .missions { padding-top: 76px; }
  .mission-board { border-radius: 20px; box-shadow: 6px 6px 0 var(--ink); }
  .mission-tabs { gap: 10px; padding: 14px; }
  .mission-tab { font-size: 15px; padding-right: 14px; }
  .mission-icon { width: 30px; height: 30px; }
  .mission-icon svg { width: 18px; height: 18px; }
  .activity-panel { grid-template-columns: 1fr; gap: 34px; padding: 26px 20px 34px; }
  .activity-text h3 { font-size: 38px; }
  .activity-text p { font-size: 16px; }
  .activity-text .button { white-space: normal; text-align: center; }
  .activity-object { width: calc(100% - 8px); box-shadow: 6px 6px 0 var(--ink); rotate: 2deg; }
  .playground { margin-top: 76px; padding-block: 70px; }
  .playground h2 { font-size: clamp(40px, 12vw, 54px); }
  .experiment-controls > p:not(.kicker, .band-readout) { font-size: 16px; }
  .band-readout { font-size: 14px; }
  .experiment-buttons .button { flex: 1 1 auto; }
  .circuit-panel { padding: 12px; border-radius: 20px; box-shadow: 7px 7px 0 var(--volt); }
  .diagram-labels { font-size: 19px; }
  .circuit-readout { grid-template-columns: 128px minmax(0, 1fr); gap: 14px; }
  #current-reading { font-size: 26px; }
  .lcd { padding: 8px 12px 10px; }
  .lcd span { font-size: 12px; }
  #circuit-state { font-size: 14px; }
  .model-note { font-size: 12px; }
  .notes { grid-template-columns: 1fr; gap: 40px; padding-block: 86px 80px; }
  .note { padding: 34px 22px 24px; }
  .footer-shout { font-size: clamp(54px, 17vw, 80px); margin-bottom: 36px; }
  .site-footer { padding-top: 60px; }
  .footer-inner { flex-wrap: wrap; gap: 14px 20px; }
  .footer-inner p { font-size: 13px; max-width: 160px; }
  .footer-inner > a:last-child { font-size: 15px; margin-left: auto; }
  body>header:not(.site-header), body>footer:not(.site-footer) { width: calc(100% - 36px); font-size: 12px; }
}
@media (max-width: 360px) {
  .main-nav { font-size: 14px; }
  .main-nav a { padding-inline: 2px; }
  .lab-icon { display: none; }
  .mission-tab { font-size: 14px; }
  .circuit-readout { grid-template-columns: 1fr; }
  .gauge { max-width: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
