@font-face {
  font-family: Outfit;
  src: url("/assets/fonts/outfit-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --theme-hue: 192;
  --bg: #080b10;
  --surface: #10151d;
  --surface-2: #141c27;
  --text: #f2f5fa;
  --muted: #a2afc1;
  --subtle: #798ba3;
  --line: #233041;
  --cyan: hsl(calc(var(--theme-hue) * 1deg), 85%, 68%);
  --violet: hsl(calc((var(--theme-hue) + 68) * 1deg), 85%, 81%);
  --mint: hsl(calc((var(--theme-hue) - 37) * 1deg), 65%, 72%);
  --header: rgba(8, 11, 16, 0.94);
  --shadow: 0 24px 70px #0004;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f7f9fc;
  --surface: #fff;
  --surface-2: #eaf0f6;
  --text: #172033;
  --muted: #506078;
  --subtle: #53657e;
  --line: #d3deeb;
  --cyan: hsl(calc(var(--theme-hue) * 1deg), 90%, 25%);
  --violet: hsl(calc((var(--theme-hue) + 68) * 1deg), 47%, 49%);
  --mint: hsl(calc((var(--theme-hue) - 37) * 1deg), 70%, 26%);
  --header: rgba(247, 249, 252, 0.96);
  --shadow: 0 24px 60px #1720330a;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Outfit,
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
::selection {
  background: var(--cyan);
  color: var(--bg);
}
:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 5px;
  border-radius: 4px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.13;
  font-weight: 600;
  letter-spacing: -0.045em;
}
h1 {
  font-size: clamp(2.8rem, 4.5vw, 4.7rem);
}
h2 {
  font-size: clamp(2.15rem, 3.35vw, 3.45rem);
}
h3 {
  font-size: 1.3rem;
  letter-spacing: -0.025em;
}
p {
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
.container {
  width: min(1200px, calc(100% - 96px));
  margin-inline: auto;
}
.section {
  padding: 108px 0;
  scroll-margin-top: 20px;
}
.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;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -80px;
  padding: 10px 20px;
  background: var(--cyan);
  color: var(--bg);
  z-index: 100;
}
.skip-link:focus {
  top: 15px;
}
.site-header {
  height: 88px;
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--header);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 30px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 1.16rem;
  letter-spacing: -0.04em;
  font-weight: 600;
  white-space: nowrap;
}
.brand-mark {
  font-family: monospace;
  font-size: 1.5rem;
  letter-spacing: -0.15em;
  color: var(--cyan);
  margin-right: 3px;
}
.brand-dot {
  color: var(--cyan);
}
#main-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  align-items: center;
}
#main-nav a {
  font-size: 0.89rem;
  color: var(--muted);
  position: relative;
  padding: 12px 0;
}
#main-nav a:hover,
#main-nav a[aria-current] {
  color: var(--text);
}
.nav-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  margin: 0 0 7px 5px;
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 18px;
}
.language-switch {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding: 12px 0;
}
.theme-toggle {
  display: grid;
  place-items: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.15rem;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.theme-toggle:hover {
  border-color: var(--cyan);
  background: color-mix(in srgb, var(--cyan) 10%, transparent);
}
.palette-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.palette-toggle {
  display: grid;
  place-items: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.palette-toggle:hover {
  border-color: var(--cyan);
  background: color-mix(in srgb, var(--cyan) 10%, transparent);
}
.palette-toggle[aria-expanded="true"] {
  border-color: var(--cyan);
  background: color-mix(in srgb, var(--cyan) 16%, transparent);
}
.palette-swatch-ring {
  display: grid;
  place-items: center;
}
.swatch-center-indicator {
  fill: var(--cyan);
  stroke: none;
  transition: fill 0.2s;
}
.palette-popover {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 100;
  width: 270px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
[data-theme="light"] .palette-popover {
  box-shadow: 0 20px 48px rgba(23, 32, 51, 0.12);
}
.palette-popover-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.palette-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.palette-reset {
  font-size: 1.15rem;
  line-height: 1;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.2s, transform 0.25s ease;
}
.palette-reset:hover {
  color: var(--cyan);
  transform: rotate(-90deg);
}
.palette-indicator-row {
  display: flex;
  align-items: center;
}
.palette-hue-label {
  font-size: 0.88rem;
  font-weight: 700;
  font-family: monospace;
  color: var(--cyan);
  letter-spacing: 0.04em;
}
.palette-slider-wrapper {
  width: 100%;
}
.palette-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(
    to right,
    hsl(0, 85%, 60%),
    hsl(60, 85%, 60%),
    hsl(120, 85%, 60%),
    hsl(180, 85%, 60%),
    hsl(240, 85%, 60%),
    hsl(300, 85%, 60%),
    hsl(360, 85%, 60%)
  );
  outline: none;
  cursor: pointer;
  margin: 0;
  border: none;
}
.palette-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.palette-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}
.palette-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.palette-slider::-moz-range-thumb:hover {
  transform: scale(1.15);
}
.palette-presets {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.palette-preset {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.palette-preset:hover {
  transform: scale(1.2);
  border-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.preset-cyan { background: #67d8f4; }
.preset-violet { background: #b9a1ff; }
.preset-mint { background: #8ce5c6; }
.preset-amber { background: #fbbf24; }
.preset-rose { background: #f472b6; }
.header-contact {
  font-size: 0.82rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 14px;
  white-space: nowrap;
}
.header-contact span {
  color: var(--cyan);
  margin-left: 10px;
}
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 1.15rem;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.menu-toggle:hover {
  border-color: var(--cyan);
  background: color-mix(in srgb, var(--cyan) 10%, transparent);
}
.menu-toggle[aria-expanded="true"] {
  border-color: var(--cyan);
  background: color-mix(in srgb, var(--cyan) 16%, transparent);
}
.menu-text {
  display: none;
}
.menu-icon {
  display: inline-block;
  font-size: 1.15rem;
  line-height: 1;
}
.hero {
  position: relative;
  padding: 66px 0 0;
  overflow: hidden;
}
.hero:before {
  content: "";
  position: absolute;
  width: 720px;
  height: 720px;
  right: -240px;
  top: -270px;
  background: radial-gradient(ellipse, #34889b12, transparent 68%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
}
.hero-copy {
  padding: 8px 0 30px;
}
.availability {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.78rem;
  color: var(--mint);
  letter-spacing: 0.015em;
  margin-bottom: 27px;
}
.tiny-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px #8ce5c644;
}
.gradient-text {
  background: linear-gradient(115deg, var(--cyan), var(--violet));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.hero h1 {
  margin-bottom: 23px;
  max-width: 680px;
  font-weight: 500;
}
.hero-intro {
  max-width: 540px;
  font-size: 1.02rem;
  line-height: 1.85;
  margin-bottom: 28px;
}
.hero-actions,
.case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  min-height: 49px;
  padding: 11px 21px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: transform 0.18s ease;
  line-height: 1.5;
}
.button:hover {
  transform: translateY(-2px);
}
.button.primary {
  background: var(--cyan);
  color: #07131b;
  border-color: var(--cyan);
}
[data-theme="light"] .button.primary {
  color: white;
}
.button.secondary {
  background: transparent;
  color: var(--text);
}
.button.secondary:hover {
  background: var(--surface-2);
}
.hero-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
  font-size: 0.75rem;
  color: var(--muted);
}
.hero-links > span {
  padding-right: 18px;
  border-right: 1px solid var(--line);
}
.hero-links a:hover {
  color: var(--cyan);
}
.hero-art {
  max-width: 470px;
  position: relative;
}
.portrait-frame {
  height: 380px;
  position: relative;
  display: grid;
  place-items: center;
  background-image: radial-gradient(var(--line) 0.7px, transparent 0.7px);
  background-size: 22px 22px;
  mask-image: linear-gradient(transparent, #000 8%, #000 88%, transparent);
}
.portrait {
  width: 218px;
  height: 218px;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid var(--bg);
  outline: 1px solid #67d8f477;
  box-shadow: 0 0 60px #67d8f415;
  z-index: 2;
}
.portrait-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--line);
  width: 302px;
  height: 302px;
}
.orbit-two {
  width: 382px;
  height: 382px;
  border-style: dashed;
  opacity: 0.5;
}
.orbit-label {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font: 11px monospace;
  padding: 10px 14px;
  border-radius: 7px;
  z-index: 3;
}
.orbit-code {
  top: 75px;
  left: 10px;
  color: var(--cyan);
  transform: rotate(-7deg);
}
.orbit-signal {
  right: 3px;
  top: 158px;
  color: var(--mint);
  transform: rotate(6deg);
}
.orbit-data {
  bottom: 47px;
  left: 65px;
  color: var(--violet);
  transform: rotate(-3deg);
}
.art-coordinate {
  position: absolute;
  bottom: 9px;
  right: 10px;
  font: 9px monospace;
  color: var(--subtle);
}
.hero-art-caption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 35px 0;
  font: 9px monospace;
  letter-spacing: 0.07em;
  color: var(--muted);
}
.hero-art-caption > span:last-child {
  margin-left: auto;
  color: var(--cyan);
}
.hero-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 28px 0 20px;
  margin-top: 26px;
  font-size: 0.72rem;
  color: var(--subtle);
}
.hero-bottom p {
  margin: 0;
  color: var(--subtle);
}
.hero-bottom > span {
  font: 10px monospace;
  letter-spacing: 0.13em;
}
.scroll-link {
  border: 1px solid var(--line);
  width: 34px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: var(--cyan);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 56px;
  margin-bottom: 32px;
}
.section-heading h2 {
  margin-bottom: 0;
  max-width: 620px;
}
.eyebrow {
  font: 10px/1.5 monospace;
  letter-spacing: 0.15em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.section-intro {
  max-width: 340px;
  font-size: 0.93rem;
  line-height: 1.8;
  margin: 0;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 30px 0;
}
.filter-button {
  position: relative;
  border: 1px solid var(--line);
  background: none;
  border-radius: 30px;
  padding: 8px 17px;
  font-size: 0.8rem;
  color: var(--muted);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}
.filter-button:hover {
  color: var(--text);
}
.filter-button.selected {
  border-color: var(--cyan);
  background: color-mix(in srgb, var(--cyan) 9%, transparent);
  color: var(--cyan);
}
.filter-text {
  position: relative;
  z-index: 2;
}
.pill-border-timer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  display: none;
}
.filter-button.selected .pill-border-timer {
  display: block;
}
.pill-track {
  fill: none;
  stroke: transparent;
  stroke-width: 2;
}
.pill-progress {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: pillTimer 7s linear forwards;
}
.filters.paused .pill-progress {
  animation-play-state: paused;
}
@keyframes pillTimer {
  from {
    stroke-dashoffset: 100;
  }
  to {
    stroke-dashoffset: 0;
  }
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.project-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 13px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.project-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--cyan) 55%, var(--line));
}
.visual-link {
  display: block;
}
.project-visual {
  height: 224px;
  position: relative;
  overflow: hidden;
  background: #0d1723;
  border-bottom: 1px solid var(--line);
  color: #a2b6ce;
}
.project-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  border-radius: 12px 12px 0 0;
  z-index: 1;
  transition: transform 0.3s ease;
}
.project-card:hover .project-card-image {
  transform: scale(1.03);
}
.project-card-image.img-fallback {
  display: none !important;
}
.visual-index {
  position: absolute;
  top: 17px;
  left: 19px;
  font: 9px monospace;
  letter-spacing: 0.07em;
  z-index: 2;
}
.visual-caption {
  position: absolute;
  bottom: 16px;
  left: 19px;
  font: 8px monospace;
  letter-spacing: 0.12em;
  z-index: 2;
}
.visual-signal {
  background: radial-gradient(ellipse at 50% 60%, #153447, #0b1520 75%);
}
.signal-orbits {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.signal-orbits > span {
  position: absolute;
  width: 120px;
  height: 120px;
  border: 1px solid #67d8f42b;
  border-radius: 50%;
}
.signal-orbits > span:nth-child(2) {
  width: 190px;
  height: 190px;
  border-style: dashed;
}
.signal-orbits > span:nth-child(3) {
  width: 280px;
  height: 280px;
  border-color: #67d8f413;
}
.signal-core {
  font-size: 62px;
  font-weight: 300;
  font-style: italic;
  color: #d8f5ff;
  display: flex;
  align-items: center;
  line-height: 1;
}
.signal-core span {
  font-size: 70px;
  color: #67d8f4;
  transform: rotate(-20deg);
  margin-left: -8px;
}
.visual-mobile {
  background: radial-gradient(ellipse at center, #17382f, #111e20 80%);
}
.device-window {
  position: absolute;
  width: 190px;
  height: 163px;
  left: 50%;
  top: 48px;
  transform: translateX(-50%) rotate(-8deg);
  background: #162d2b;
  border: 1px solid #527b6b;
  border-radius: 10px;
  box-shadow:
    20px 12px 0 -3px #101e20,
    20px 12px 0 -2px #3b554c;
}
.device-top {
  height: 22px;
  border-bottom: 1px solid #466558;
  display: flex;
  align-items: center;
  gap: 4px;
  padding-left: 10px;
}
.device-top span {
  height: 4px;
  width: 4px;
  border-radius: 50%;
  background: #84b8a2;
}
.device-content {
  padding: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.device-logo {
  font-size: 26px;
  font-weight: 600;
  color: #c7f7e6;
}
.device-logo span {
  color: #8ce5c6;
  font-size: 20px;
}
.device-lines {
  flex: 1;
  padding-top: 8px;
}
.device-lines i {
  display: block;
  height: 3px;
  margin-bottom: 6px;
  background: #527b6b;
  border-radius: 3px;
}
.device-lines i:last-child {
  width: 60%;
}
.device-grid {
  display: flex;
  gap: 6px;
  width: 100%;
  height: 45px;
}
.device-grid i {
  flex: 1;
  border: 1px solid #517264;
  background: #1c3b34;
  border-radius: 5px;
}
.visual-optimization {
  background: radial-gradient(ellipse at center, #2c2346, #181323 80%);
}
.contour-map {
  position: absolute;
  inset: 0;
}
.contour {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid #b9a1ff47;
  transform: translate(-50%, -50%) rotate(-20deg);
  border-radius: 45% 55% 65% 35%/55% 50% 50% 45%;
  width: 280px;
  height: 166px;
}
.c2 {
  width: 224px;
  height: 128px;
}
.c3 {
  width: 165px;
  height: 93px;
}
.c4 {
  width: 108px;
  height: 59px;
}
.c5 {
  width: 45px;
  height: 24px;
  background: #b9a1ff14;
}
.point {
  position: absolute;
  width: 5px;
  height: 5px;
  background: #baa2ff;
  border-radius: 50%;
  box-shadow: 0 0 9px #b9a1ff6a;
}
.p1 {
  left: 45%;
  top: 45%;
}
.p2 {
  left: 60%;
  top: 30%;
}
.p3 {
  left: 34%;
  top: 56%;
}
.p4 {
  left: 70%;
  top: 70%;
}
.p5 {
  left: 55%;
  top: 63%;
}
.p6 {
  left: 20%;
  top: 35%;
}
.project-body {
  padding: 25px 24px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-eyebrow {
  font-size: 0.7rem;
  color: var(--subtle);
  margin-bottom: 10px;
}
.project-body h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
}
.project-body h3 a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.project-body h3 span {
  font-size: 1.1rem;
  color: var(--subtle);
}
.project-summary {
  font-size: 0.87rem;
  line-height: 1.8;
  margin-bottom: 20px;
  flex: 1;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}
.tags li {
  font: 10px/1.3 monospace;
  color: var(--muted);
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.card-footer {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}
.card-footer a {
  color: var(--cyan);
}
.card-footer a span {
  margin-left: 8px;
}
.project-number {
  font: 10px monospace;
  color: var(--subtle);
}
.lab-section {
  background: linear-gradient(180deg, var(--bg), var(--surface), var(--bg));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.lab-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  overflow: hidden;
  margin-top: 40px;
  box-shadow: var(--shadow);
}
.lab-info {
  padding: 33px;
}
.experiment-label {
  font: 9px monospace;
  letter-spacing: 0.1em;
  color: var(--mint);
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 26px;
}
.lab-info h3 {
  font-size: 1.7rem;
  margin-bottom: 15px;
}
.lab-info > p:not(.experiment-label) {
  font-size: 0.86rem;
  line-height: 1.8;
}
.lab-controls {
  margin: 24px 0;
}
.lab-controls label {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
}
.lab-controls output {
  color: var(--cyan);
  font-family: monospace;
}
.lab-controls input {
  width: 100%;
  accent-color: var(--cyan);
  height: 28px;
  margin: 4px 0 18px;
  cursor: pointer;
}
.text-button {
  background: none;
  border: 0;
  color: var(--cyan);
  padding: 4px 0;
  text-align: left;
  font-size: inherit;
}
.text-button:hover,
.text-link:hover,
a:hover.text-link {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.lab-reset {
  font-size: 0.75rem;
}
.lab-info .lab-disclaimer {
  font-size: 0.69rem;
  line-height: 1.6;
  color: var(--subtle);
  margin-bottom: 0;
}
.lab-chart {
  border-left: 1px solid var(--line);
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  background-blend-mode: soft-light;
}
.chart-header {
  display: flex;
  justify-content: space-between;
  font: 10px monospace;
  color: var(--muted);
  padding-bottom: 20px;
}
.chart-indicator {
  font-size: 8px;
  color: var(--mint);
}
.chart-legend {
  display: flex;
  gap: 18px;
  font-size: 0.72rem;
  margin-bottom: 15px;
}
.legend-raw {
  color: var(--violet);
}
.legend-filtered {
  color: var(--cyan);
}
.chart-legend > span:before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 2px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 7px;
}
#signal-canvas {
  display: block;
  width: 100%;
  height: 230px;
}
.chart-summary {
  font-size: 0.7rem;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 15px;
  color: var(--muted);
}
.chart-summary > div {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.chart-summary output {
  font-family: monospace;
}
.lab-next {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px 0 0;
}
.lab-next-icon {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--violet);
  flex-shrink: 0;
}
.lab-next h3 {
  font-size: 0.92rem;
  margin: 0 0 7px;
}
.lab-next p {
  font-size: 0.8rem;
  margin: 0;
  max-width: 600px;
}
.lab-next-label {
  margin-left: auto;
  white-space: nowrap;
  font-size: 0.75rem;
  color: var(--cyan);
}
.lab-next:hover .lab-next-label {
  text-decoration: underline;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 100px;
}
.about-copy > p:not(.eyebrow) {
  font-size: 0.95rem;
  line-height: 1.9;
}
.education-box {
  display: flex;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 20px;
  margin: 25px 0;
}
.education-icon {
  font-size: 1.5rem;
  color: var(--cyan);
}
.education-box h3 {
  font-size: 0.97rem;
  margin-bottom: 8px;
}
.education-box p {
  font-size: 0.8rem;
  margin: 0;
}
.text-link {
  font-size: 0.84rem;
  color: var(--cyan);
}
.timeline {
  padding: 12px 0 0;
}
.timeline-entry {
  padding: 0 0 34px 30px;
  border-left: 1px solid var(--line);
  position: relative;
}
.timeline-entry:before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  left: -4px;
  top: 6px;
  background: var(--bg);
  border: 1px solid var(--cyan);
  border-radius: 50%;
}
.timeline-entry:last-child {
  padding-bottom: 0;
}
.timeline-date {
  font: 10px monospace;
  color: var(--cyan);
  margin-bottom: 13px;
}
.timeline-entry h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.timeline-entry > p:last-child {
  font-size: 0.86rem;
  line-height: 1.8;
  margin: 0;
}
.skills-map {
  margin-top: 65px;
  padding-top: 35px;
  border-top: 1px solid var(--line);
}
.skills-map > p {
  font-size: 0.88rem;
  margin-bottom: 22px;
}
.skill-network {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.skill-node {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 0.84rem;
  background: var(--surface);
}
.skill-node > span:first-child {
  font: 20px monospace;
  color: var(--cyan);
}
.skill-node > span:last-child {
  margin-left: auto;
  color: var(--subtle);
}
.skill-node:hover {
  border-color: var(--cyan);
}
.contact-section {
  border-top: 1px solid var(--line);
  background: radial-gradient(ellipse at 0 100%, #29405916, transparent 70%);
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  gap: 95px;
}
.contact-copy h2 {
  font-size: clamp(2.4rem, 3.8vw, 3.7rem);
  margin-bottom: 25px;
}
.contact-copy > p:not(.eyebrow) {
  font-size: 0.95rem;
  line-height: 1.85;
}
.contact-email {
  display: block;
  font-size: clamp(0.85rem, 1.2vw, 1.05rem);
  color: var(--cyan);
  margin: 28px 0 15px;
  overflow-wrap: anywhere;
}
.contact-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--muted);
}
.contact-links .text-button {
  color: var(--muted);
}
.contact-note {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  color: var(--mint);
  margin-top: 40px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  margin-bottom: 17px;
  min-width: 0;
}
.field label {
  display: block;
  font-size: 0.78rem;
  margin-bottom: 8px;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 7px;
  padding: 11px 12px;
  font-size: 0.88rem;
  min-height: 45px;
}
.field textarea {
  resize: vertical;
  min-height: 132px;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--cyan);
}
.field textarea::placeholder {
  color: var(--subtle);
}
.field-error {
  display: block;
  font-size: 0.75rem;
  color: #ff9eac;
  margin-top: 5px;
}
.field [aria-invalid="true"] {
  border-color: #ff9eac;
}
[data-theme="light"] .field-error {
  color: #a81535;
}
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  font-size: 0.85rem;
  color: var(--cyan);
  margin: 0 0 10px;
  scroll-margin: 120px;
}
.form-status:empty {
  display: none;
}
.form-fallback {
  font-size: 0.85rem;
  color: var(--cyan);
  margin: 12px 0;
}
.submit-button {
  width: 100%;
  justify-content: space-between;
}
.form-note {
  font-size: 0.68rem;
  line-height: 1.7;
  margin: 12px 0 0;
  color: var(--subtle);
}
.form-note a {
  text-decoration: underline;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 28px;
  background: var(--surface);
}
.language-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 24px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}
.language-panel-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.language-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}
.language-globe-icon {
  font-size: 1.1rem;
  line-height: 1;
}
.language-select-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.language-panel select,
.language-select {
  min-width: 170px;
  max-width: 250px;
  padding: 8px 12px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s;
}
.language-panel select:hover,
.language-select:hover {
  border-color: var(--cyan);
}
.language-panel select:focus-visible,
.language-select:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-color: var(--cyan);
}
.language-panel select optgroup {
  font-weight: 600;
  background: var(--surface);
  color: var(--muted);
}
.language-panel select option {
  font-weight: normal;
  background: var(--bg);
  color: var(--text);
  padding: 4px;
}
.translation-status,
#translation-status {
  font-size: 0.78rem;
  color: var(--muted);
}
.language-panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
#secret-terminal {
  color: var(--cyan);
  font: 1.1rem monospace;
  padding: 6px 10px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.footer-top p {
  font-size: 0.83rem;
  margin: 0;
}
.back-top {
  border: 1px solid var(--line);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 0.7rem;
  color: var(--subtle);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.footer-legal {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.visitor-counter-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--cyan) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--cyan) 30%, var(--line));
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: 0.01em;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.visitor-counter-badge:hover {
  border-color: var(--cyan);
  background: color-mix(in srgb, var(--cyan) 16%, transparent);
  transform: translateY(-1px);
}
.visitor-dot {
  color: var(--cyan);
  font-size: 0.85rem;
  line-height: 1;
}
.visitor-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.visitor-num {
  color: var(--cyan);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.footer-bottom > div {
  display: flex;
  gap: 24px;
  align-items: center;
}
.footer-bottom button {
  font-size: inherit;
  color: var(--subtle);
}
.metrics-notice {
  position: fixed;
  bottom: 13px;
  left: 16px;
  z-index: 40;
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  padding: 7px 10px;
  color: var(--muted);
  max-width: calc(100% - 32px);
  flex-wrap: wrap;
}
.metrics-notice a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.notice-close {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 17px;
  padding: 0 4px;
}
.toast {
  position: fixed;
  bottom: 65px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;
  padding: 13px 20px;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--cyan);
  border-radius: 9px;
  z-index: 45;
  font-size: 0.86rem;
  box-shadow: var(--shadow);
}
.case-page {
  padding-top: 48px;
  padding-bottom: 100px;
}
.back-link {
  font-size: 0.8rem;
  color: var(--muted);
  display: inline-block;
  margin-bottom: 50px;
}
.back-link:hover {
  color: var(--cyan);
}
.case-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.case-hero h1 {
  font-size: clamp(2.5rem, 4vw, 4rem);
}
.case-name {
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: 18px;
}
.case-summary {
  font-size: 1.03rem;
  line-height: 1.85;
}
.case-status {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--mint);
  font-size: 0.75rem;
  margin: 24px 0;
}
.case-hero .project-visual {
  height: 380px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.case-hero .signal-orbits {
  transform: scale(1.3);
}
.case-hero .device-window {
  top: 100px;
  transform: translateX(-50%) rotate(-8deg) scale(1.35);
}
.case-hero .contour-map {
  transform: scale(1.5);
}
.case-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  padding-top: 85px;
}
.case-details h2,
.case-decisions h2,
.case-limits h2,
.case-evidence h2 {
  font-size: 1.8rem;
}
.case-details p:not(.eyebrow),
.case-evidence p {
  font-size: 0.95rem;
  line-height: 1.9;
}
.case-decisions {
  margin-top: 60px;
}
.decision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.decision-grid article {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 25px;
}
.decision-number {
  font: 12px monospace;
  color: var(--cyan);
}
.decision-grid h3 {
  margin: 25px 0 15px;
  line-height: 1.4;
}
.decision-grid p {
  font-size: 0.87rem;
  line-height: 1.85;
  margin: 0;
}
.case-limits {
  border-left: 2px solid var(--violet);
  padding: 24px 28px;
  background: var(--surface);
  margin: 50px 0;
}
.case-limits h2 {
  font-size: 1.3rem;
}
.case-limits p {
  font-size: 0.92rem;
  margin: 0;
}
.case-evidence {
  max-width: 800px;
  margin-bottom: 55px;
}
.case-takeaway {
  border-top: 1px solid var(--line);
  padding-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.case-takeaway p {
  font-size: 1.4rem;
  color: var(--text);
  max-width: 600px;
  margin: 0;
}
.case-takeaway a {
  flex-shrink: 0;
}
.prose-page {
  max-width: 780px;
  padding-block: 55px 100px;
}
.prose-page h1 {
  font-size: 3.7rem;
}
.prose-page .lead {
  font-size: 1.2rem;
}
.prose-page h2 {
  font-size: 1.5rem;
  margin-top: 38px;
}
.prose-page p {
  line-height: 1.95;
}
.prose-page p a,
.prose-page li a {
  color: var(--cyan);
  text-decoration: underline;
}
.not-found {
  padding-block: 100px 150px;
  min-height: 70vh;
}
.not-found h1 {
  max-width: 750px;
}
.not-found .text-link {
  margin-left: 20px;
}
@media (min-width: 1500px) {
  .hero-grid {
    gap: 90px;
  }
  .hero {
    padding-top: 85px;
  }
  .hero-bottom {
    margin-top: 45px;
  }
}
@media (max-width: 1150px) {
  .container {
    width: calc(100% - 64px);
  }
  .header-inner {
    gap: 20px;
  }
  #main-nav {
    gap: 20px;
  }
  .header-contact {
    display: none;
  }
  .hero-grid {
    gap: 25px;
  }
  .portrait-frame {
    height: 340px;
  }
  .portrait {
    width: 195px;
    height: 195px;
  }
  .orbit-two {
    width: 320px;
    height: 320px;
  }
  .portrait-orbit:not(.orbit-two) {
    width: 265px;
    height: 265px;
  }
  .orbit-label {
    font-size: 9px;
  }
  .orbit-signal {
    right: 0;
  }
  .hero-art-caption {
    margin-inline: 15px;
    font-size: 8px;
  }
  .hero h1 {
    font-size: 3.5rem;
  }
  .about-grid,
  .contact-grid {
    gap: 55px;
  }
  .project-grid {
    gap: 16px;
  }
  .project-body {
    padding: 22px 18px;
  }
  .lab-info {
    padding: 26px;
  }
  .case-takeaway {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 800px) {
  .container {
    width: calc(100% - 40px);
  }
  .section {
    padding-block: 75px;
  }
  .site-header {
    height: 74px;
    overflow: visible;
  }
  .header-inner {
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
  }
  .brand {
    order: 1;
    flex-shrink: 1;
    min-width: 0;
    font-size: clamp(0.92rem, 3.8vw, 1.05rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .header-tools {
    order: 2;
    margin-left: auto;
    gap: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
  }
  .header-contact {
    display: none;
  }
  .nav-ready .menu-toggle {
    order: 3;
    display: inline-flex;
    margin-left: 2px;
    flex-shrink: 0;
  }
  .nav-ready #main-nav {
    display: none;
    position: absolute;
    top: 73px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin: 0;
    z-index: 50;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  }
  .nav-ready #main-nav.open {
    display: flex;
  }
  .nav-ready #main-nav a {
    width: 100%;
  }
  html:not(.nav-ready) .site-header {
    height: auto;
    min-height: 74px;
    position: static;
  }
  html:not(.nav-ready) .header-inner {
    padding-block: 15px;
  }
  html:not(.nav-ready) #main-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
  html:not(.nav-ready) .header-tools {
    margin-left: auto;
  }
  .hero {
    padding: 42px 0 0;
  }
  .hero-grid {
    grid-template-columns: 1fr 0.75fr;
    gap: 10px;
  }
  .hero h1 {
    font-size: 2.8rem;
  }
  .hero-intro {
    font-size: 0.91rem;
  }
  .hero-actions {
    gap: 9px;
  }
  .hero-actions .button {
    font-size: 0.79rem;
    padding: 10px 14px;
    gap: 15px;
  }
  .hero-links {
    font-size: 0.7rem;
    gap: 12px;
  }
  .hero-links > span {
    width: 100%;
    border: 0;
    padding: 0;
  }
  .portrait-frame {
    height: 285px;
  }
  .portrait {
    width: 160px;
    height: 160px;
  }
  .portrait-orbit:not(.orbit-two) {
    width: 205px;
    height: 205px;
  }
  .orbit-two {
    width: 260px;
    height: 260px;
  }
  .orbit-code {
    top: 40px;
    left: 0;
  }
  .orbit-signal {
    top: 138px;
    right: -5px;
  }
  .orbit-data {
    bottom: 35px;
    left: 22px;
  }
  .hero-art-caption {
    font-size: 7px;
    gap: 6px;
    margin-inline: 0;
  }
  .hero-bottom {
    margin-top: 8px;
  }
  .hero-bottom > span {
    display: none;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }
  .section-intro {
    max-width: 600px;
  }
  .section-heading h2 {
    max-width: 600px;
  }
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .project-card:last-child {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .project-card:last-child .project-visual {
    height: 100%;
    min-height: 290px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }
  .lab-panel {
    grid-template-columns: 1fr;
  }
  .lab-info {
    display: block;
    padding: 28px;
  }
  .lab-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
  }
  .lab-controls label:first-child {
    grid-column: 1;
    grid-row: 1;
  }
  .lab-controls input:first-of-type {
    grid-column: 1;
    grid-row: 2;
  }
  .lab-controls label:nth-of-type(2) {
    grid-column: 2;
    grid-row: 1;
  }
  .lab-controls input:nth-of-type(2) {
    grid-column: 2;
    grid-row: 2;
  }
  .lab-chart {
    border-left: 0;
    border-top: 1px solid var(--line);
    min-height: 365px;
  }
  .lab-next-label {
    display: none;
  }
  .about-grid {
    gap: 45px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .contact-copy {
    max-width: 650px;
  }
  .contact-note {
    margin-top: 22px;
  }
  .skill-network {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .footer-top p {
    display: none;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .palette-popover {
    right: -20px;
    width: min(270px, calc(100vw - 32px));
  }
  .case-hero {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .case-hero .project-visual {
    height: 300px;
  }
  .case-hero .device-window {
    top: 66px;
  }
  .case-details {
    gap: 35px;
  }
  .decision-grid {
    grid-template-columns: 1fr;
  }
  .decision-grid article {
    padding: 25px;
  }
  .decision-grid h3 {
    margin-top: 14px;
  }
  .case-page {
    padding-top: 30px;
  }
  .back-link {
    margin-bottom: 35px;
  }
  .prose-page h1 {
    font-size: 2.8rem;
  }
}
@media (max-width: 540px) {
  .header-inner {
    gap: 6px;
  }
  .header-tools {
    gap: 6px;
  }
  .palette-popover {
    width: min(270px, calc(100vw - 32px));
    right: -42px;
  }
}
@media (max-width: 360px) {
  .container {
    width: calc(100% - 24px);
  }
  .header-inner {
    gap: 4px;
  }
  .header-tools {
    gap: 4px;
  }
  .brand {
    font-size: 0.85rem;
    gap: 6px;
  }
  .brand-mark {
    font-size: 1.25rem;
    margin-right: 1px;
  }
  .language-switch {
    font-size: 0.72rem;
    padding: 6px 2px;
  }
}
@media (max-width: 540px) {
  .hero-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .hero-copy {
    padding-bottom: 0;
  }
  .hero h1 {
    font-size: clamp(2.65rem, 10vw, 3.5rem);
    margin-bottom: 20px;
  }
  .availability {
    font-size: 0.7rem;
    margin-bottom: 23px;
  }
  .hero-intro {
    font-size: 0.93rem;
    margin-bottom: 24px;
  }
  .hero-actions {
    flex-wrap: nowrap;
  }
  .hero-actions .button {
    flex: 1;
    gap: 12px;
    font-size: 0.76rem;
    padding-inline: 12px;
  }
  .hero-links {
    margin-top: 20px;
    gap: 16px;
  }
  .hero-links > span {
    width: auto;
    border: 0;
    font-size: 0.64rem;
    margin-right: auto;
  }
  .hero-art {
    align-self: center;
    width: 320px;
    max-width: 100%;
    margin-top: 22px;
  }
  .portrait-frame {
    height: 270px;
  }
  .portrait {
    width: 165px;
    height: 165px;
  }
  .hero-art-caption {
    justify-content: center;
    font-size: 7px;
    margin-inline: 22px;
  }
  .orbit-code {
    left: 12px;
  }
  .orbit-signal {
    right: 0;
  }
  .orbit-data {
    left: 46px;
    bottom: 26px;
  }
  .hero-bottom {
    padding: 25px 0 18px;
    font-size: 0.65rem;
  }
  .hero-bottom p {
    max-width: 220px;
  }
  .section-heading h2 {
    font-size: 2.3rem;
  }
  .section-intro {
    font-size: 0.9rem;
  }
  .filters {
    gap: 7px;
    margin: 26px 0;
  }
  .filter-button {
    font-size: 0.73rem;
    padding: 7px 13px;
  }
  .project-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .project-card:last-child {
    display: flex;
    grid-column: auto;
  }
  .project-card:last-child .project-visual {
    height: 224px;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .project-body {
    padding: 24px;
  }
  .project-summary {
    font-size: 0.9rem;
  }
  .lab-info {
    padding: 23px;
  }
  .lab-controls {
    display: block;
  }
  .lab-chart {
    padding: 18px;
    min-height: 340px;
  }
  #signal-canvas {
    height: 200px;
  }
  .chart-header {
    font-size: 9px;
  }
  .chart-indicator {
    font-size: 7px;
  }
  .chart-legend {
    font-size: 0.65rem;
    gap: 15px;
  }
  .lab-next {
    align-items: flex-start;
    gap: 13px;
  }
  .lab-next-icon {
    width: 35px;
    height: 35px;
  }
  .lab-next p {
    font-size: 0.76rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .about-copy h2 {
    font-size: 2.4rem;
  }
  .skills-map {
    margin-top: 40px;
  }
  .skill-node {
    padding: 13px 11px;
    gap: 8px;
    font-size: 0.72rem;
  }
  .skill-node > span:first-child {
    font-size: 17px;
  }
  .contact-copy h2 {
    font-size: 2.55rem;
  }
  .contact-email {
    font-size: 0.87rem;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
  }
  .footer-bottom > div {
    gap: 25px;
  }
  .footer-top {
    margin-bottom: 20px;
  }
  .metrics-notice {
    font-size: 9px;
    gap: 8px;
    bottom: 8px;
    left: 8px;
    max-width: calc(100% - 16px);
  }
  .case-details {
    grid-template-columns: 1fr;
    padding-top: 55px;
    gap: 25px;
  }
  .case-takeaway p {
    font-size: 1.25rem;
  }
  .case-takeaway a {
    width: 100%;
    font-size: 0.8rem;
  }
  .case-hero h1 {
    font-size: 2.7rem;
  }
  .case-actions .button {
    font-size: 0.76rem;
    gap: 12px;
  }
  .prose-page {
    padding-top: 30px;
  }
  .prose-page h1 {
    font-size: 2.6rem;
  }
  .not-found h1 {
    font-size: 2.8rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .project-card:hover,
  .button:hover {
    transform: none;
  }
}
@media print {
  .site-header,
  .site-footer,
  .metrics-notice,
  .hero-art,
  .lab-section,
  form,
  .filters,
  .skill-network {
    display: none !important;
  }
  body {
    background: #fff;
    color: #111;
  }
  .container {
    width: 100%;
  }
  .section {
    padding-block: 20px;
  }
  .project-grid {
    display: block;
  }
  .project-card {
    break-inside: avoid;
    margin-bottom: 15px;
  }
  .project-visual {
    display: none;
  }
  .hero-grid,
  .about-grid,
  .contact-grid {
    display: block;
  }
  .gradient-text {
    color: #111;
    background: none;
  }
}
.menu-toggle {
  display: none;
}
.portrait-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero h1 {
  text-wrap: balance;
}
