/* Maker-Lab shared design system */
:root {
  color-scheme: dark;
  --bg: #071012;
  --bg-deep: #04090a;
  --surface: #0d181b;
  --surface-raised: #122125;
  --surface-soft: #0a1517;
  --border: #21363b;
  --border-bright: #31515a;
  --text: #eef8f7;
  --text-soft: #b6c8c8;
  --muted: #789194;
  --cyan: #42d9ed;
  --cyan-dark: #1598ab;
  --lime: #a5e85b;
  --amber: #f6b84a;
  --danger: #ff7e67;
  --shadow: 0 18px 50px rgb(0 0 0 / 28%);
  --glow: 0 0 22px rgb(66 217 237 / 13%);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --container: 1180px;
  --nav-height: 72px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 20px);
}

body {
  margin: 0;
  min-width: min(320px, 100%);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 0, rgb(32 89 95 / 12%), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
img, svg { display: block; max-width: 100%; }
p, h1, h2, h3 { margin-top: 0; }

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 4px;
}

::selection { background: var(--cyan); color: var(--bg-deep); }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  transform: translateY(-160%);
  border-radius: var(--radius-sm);
  background: var(--lime);
  color: var(--bg-deep);
  font-weight: 800;
}

.skip-link:focus { transform: translateY(0); }

.section { padding: 108px 0; }

.section-grid {
  position: relative;
  background-image:
    linear-gradient(rgb(66 217 237 / 3%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(66 217 237 / 3%) 1px, transparent 1px);
  background-size: 42px 42px;
}

.section-grid::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, var(--bg) 0, transparent 16%, transparent 84%, var(--bg) 100%);
}

.section-grid > .container { position: relative; z-index: 1; }

.section-kicker,
.eyebrow,
.filter-label,
.project-code,
.card-index,
.tech-code {
  font-family: var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.section-kicker {
  margin-bottom: 14px;
  color: var(--cyan);
  font-size: .78rem;
  font-weight: 700;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 46px;
}

.section-heading h2,
.about-layout h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.section-heading > p,
.vertical-heading > div + p {
  max-width: 460px;
  margin-bottom: 2px;
  color: var(--text-soft);
}

.vertical-heading { display: block; }
.vertical-heading h2 { margin-bottom: 24px; }

/* Navigation */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--nav-height);
  border-bottom: 1px solid rgb(49 81 90 / 62%);
  background: rgb(7 16 18 / 88%);
  backdrop-filter: blur(16px);
}

.nav-shell { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.02em; }

.brand-mark {
  position: relative;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--cyan-dark);
  border-radius: 5px;
  background: #0d2024;
  box-shadow: inset 0 0 0 3px var(--bg), var(--glow);
  color: var(--cyan);
  font: 700 .68rem/1 var(--font-mono);
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  width: 44px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--cyan-dark) 0 3px, transparent 3px 7px);
  content: "";
}

.brand-mark::before { top: 6px; }
.brand-mark::after { bottom: 6px; }
.brand-mark span { position: relative; z-index: 1; }
.brand-name { font-size: 1.08rem; }
.nav-menu { display: flex; align-items: center; gap: 5px; }

.nav-link {
  position: relative;
  padding: 10px 12px;
  color: var(--text-soft);
  font-size: .88rem;
  font-weight: 650;
}

.nav-link::after {
  position: absolute;
  right: 12px;
  bottom: 4px;
  left: 12px;
  height: 2px;
  transform: scaleX(0);
  background: var(--cyan);
  content: "";
  transition: transform .2s ease;
}

.nav-link:hover, .nav-link.is-active { color: var(--text); }
.nav-link.is-active::after { transform: scaleX(1); }
.github-link { margin-left: 10px; }
.terminal-icon { color: var(--lime); font-family: var(--font-mono); }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }

/* Buttons and links */
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 800;
  line-height: 1.2;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .2s ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--cyan); color: #031114; box-shadow: 0 8px 28px rgb(66 217 237 / 16%); }
.button-primary:hover { background: #78e7f5; }
.button-secondary, .button-ghost { border-color: var(--border-bright); background: rgb(13 24 27 / 70%); color: var(--text); }
.button-secondary:hover, .button-ghost:hover { border-color: var(--cyan); background: var(--surface-raised); }
.button-small { min-height: 40px; padding: 8px 13px; font-size: .8rem; }
.text-link { padding: 10px 3px; border-bottom: 1px solid var(--border-bright); color: var(--text); font-size: .88rem; font-weight: 800; }
.text-link:hover { border-color: var(--lime); color: var(--lime); }

/* Hero */
.hero { min-height: calc(100svh - var(--nav-height)); padding: 78px 0 66px; }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr); align-items: center; gap: clamp(40px, 7vw, 92px); }
.eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 24px; color: var(--lime); font-size: .72rem; font-weight: 700; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgb(165 232 91 / 10%); }

.hero h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3.3rem, 7vw, 6.4rem);
  line-height: .91;
  letter-spacing: -.07em;
}

.accent-text { color: var(--cyan); }
.hero-tagline { max-width: 650px; margin-bottom: 12px; color: var(--text); font-size: clamp(1.12rem, 2vw, 1.35rem); font-weight: 650; line-height: 1.5; }
.hero-intro { max-width: 650px; margin-bottom: 30px; color: var(--text-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 38px; color: var(--muted); font: .68rem/1.4 var(--font-mono); text-transform: uppercase; }
.hero-meta span { display: flex; align-items: center; gap: 8px; }
.hero-meta b { color: var(--lime); font-size: .85rem; }

.workbench {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #102126, #081214 68%);
  box-shadow: var(--shadow), inset 0 0 55px rgb(66 217 237 / 4%);
}

.workbench::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgb(255 255 255 / 1%) 3px 4px);
}

.workbench-topbar {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 46px;
  padding: 0 15px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font: .62rem/1 var(--font-mono);
  letter-spacing: .05em;
}

.window-controls { display: flex; gap: 6px; }
.window-controls i { width: 7px; height: 7px; border-radius: 50%; background: #496165; }
.window-controls i:nth-child(2) { background: var(--amber); }
.window-controls i:nth-child(3) { background: var(--lime); }
.bench-live { justify-self: end; color: var(--lime); }
.bench-live i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: currentColor; animation: pulse-led 2.4s ease-in-out infinite; }
.workbench-body { position: relative; z-index: 1; padding: 22px; }

.board-map {
  position: relative;
  height: 250px;
  overflow: hidden;
  border: 1px solid #1b3f46;
  border-radius: var(--radius-sm);
  background-color: #0a2225;
  background-image:
    radial-gradient(circle, rgb(66 217 237 / 20%) 1px, transparent 1.5px),
    linear-gradient(rgb(66 217 237 / 4%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(66 217 237 / 4%) 1px, transparent 1px);
  background-position: 0 0, 0 0, 0 0;
  background-size: 20px 20px, 40px 40px, 40px 40px;
}

.chip {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 142px;
  height: 92px;
  place-content: center;
  transform: translate(-50%, -50%);
  border: 1px solid var(--cyan-dark);
  border-radius: 5px;
  background: #071518;
  box-shadow: 0 0 30px rgb(66 217 237 / 10%);
  text-align: center;
}

.chip::before, .chip::after { position: absolute; top: 12px; bottom: 12px; width: 9px; content: ""; background: repeating-linear-gradient(0deg, var(--cyan-dark) 0 3px, transparent 3px 10px); }
.chip::before { left: -9px; }
.chip::after { right: -9px; }
.chip span { color: var(--cyan); font: 800 1.35rem/1 var(--font-mono); }
.chip small { margin-top: 8px; color: var(--muted); font: .52rem/1 var(--font-mono); letter-spacing: .16em; }
.trace { position: absolute; height: 2px; transform-origin: left; background: linear-gradient(90deg, var(--cyan-dark), var(--cyan), transparent); box-shadow: 0 0 7px rgb(66 217 237 / 32%); animation: trace-flow 4s ease-in-out infinite; }
.trace-a { top: 47px; left: 0; width: 44%; }
.trace-b { top: 196px; right: 0; width: 43%; transform: rotate(180deg); }
.trace-c { top: 28px; left: 72%; width: 34%; transform: rotate(90deg); }
.trace-d { top: 216px; left: 24%; width: 30%; transform: rotate(-90deg); }
.trace-node { position: absolute; width: 9px; height: 9px; border: 2px solid var(--lime); border-radius: 50%; background: var(--bg); box-shadow: 0 0 10px rgb(165 232 91 / 30%); }
.node-a { top: 43px; left: 18%; }
.node-b { right: 23%; bottom: 49px; }
.node-c { top: 20%; right: 12%; }
.readout-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.readout { position: relative; min-width: 0; padding: 11px 20px 11px 11px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface-soft); }
.readout span { display: block; margin-bottom: 4px; color: var(--muted); font: .52rem/1 var(--font-mono); }
.readout strong { display: block; overflow: hidden; color: var(--text); font: 700 .62rem/1.2 var(--font-mono); text-overflow: ellipsis; white-space: nowrap; }
.led { position: absolute; top: 12px; right: 9px; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 7px currentColor; }
.led-green { color: var(--lime); }
.led-cyan { color: var(--cyan); }
.led-amber { color: var(--amber); }
.terminal { margin-top: 10px; padding: 14px; border: 1px solid var(--border); border-radius: 5px; background: #040a0b; color: #8ba2a5; font: .64rem/1.7 var(--font-mono); }
.terminal p { margin: 0; }
.terminal .prompt { color: var(--cyan); }
.terminal .term-time { color: #5c797d; }
.terminal b { color: var(--lime); font-weight: 500; }
.cursor { color: var(--cyan); animation: cursor-blink 1s steps(2, end) infinite; }
.corner-label { position: absolute; z-index: 2; color: var(--muted); font: .52rem/1 var(--font-mono); }
.corner-label-top { top: 57px; right: 10px; }
.corner-label-bottom { right: 10px; bottom: 7px; }

/* Overview */
.lab-overview { padding: 28px 0 80px; }
.compact-heading { align-items: center; margin-bottom: 25px; }
.compact-heading h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.overview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-soft); }
.overview-card { position: relative; min-width: 0; padding: 23px; border-right: 1px solid var(--border); }
.overview-card:last-child { border-right: 0; }
.overview-card p { margin-bottom: 7px; color: var(--muted); font: .66rem/1.3 var(--font-mono); text-transform: uppercase; }
.overview-card h3 { margin: 0; font-size: .92rem; line-height: 1.45; }
.card-index { position: absolute; top: 9px; right: 11px; color: #355257; font-size: .56rem; }

/* Featured project */
.featured-project { display: grid; grid-template-columns: minmax(320px, .82fr) minmax(0, 1.18fr); overflow: hidden; border: 1px solid var(--border-bright); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.featured-visual { position: relative; display: grid; min-height: 480px; overflow: hidden; place-items: center; border-right: 1px solid var(--border); background-color: #091c1f; background-image: radial-gradient(circle, rgb(66 217 237 / 18%) 1px, transparent 1.5px); background-size: 22px 22px; }
.featured-visual::after { position: absolute; inset: 0; content: ""; background: radial-gradient(circle at center, transparent 15%, #091c1f 70%); }
.signal-ring { position: absolute; z-index: 1; width: 255px; height: 255px; border: 1px solid rgb(66 217 237 / 30%); border-radius: 50%; }
.ring-two { width: 360px; height: 360px; border-style: dashed; border-color: rgb(165 232 91 / 15%); animation: ring-rotate 36s linear infinite; }
.echo-core { position: relative; z-index: 2; display: grid; width: 132px; height: 132px; place-content: center; border: 1px solid var(--cyan); border-radius: 50%; background: #081416; box-shadow: 0 0 45px rgb(66 217 237 / 17%); text-align: center; }
.echo-core span { color: var(--cyan); font: 800 2rem/1 var(--font-mono); }
.echo-core small { margin-top: 9px; color: var(--muted); font: .5rem/1 var(--font-mono); letter-spacing: .12em; }
.sensor-label { position: absolute; z-index: 2; padding: 5px 8px; border: 1px solid var(--border-bright); border-radius: 4px; background: #081416; color: var(--text-soft); font: .54rem/1 var(--font-mono); }
.label-sound { top: 18%; left: 12%; }
.label-motion { top: 20%; right: 12%; }
.label-distance { right: 9%; bottom: 18%; }
.label-load { bottom: 16%; left: 15%; }
.featured-content { padding: clamp(30px, 5vw, 62px); }
.project-topline { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.project-code { color: var(--muted); font-size: .6rem; }
.status-badge { display: inline-flex; min-height: 27px; align-items: center; padding: 4px 10px; border: 1px solid; border-radius: 99px; font: 700 .62rem/1 var(--font-mono); text-transform: uppercase; }
.status-built { border-color: rgb(165 232 91 / 45%); background: rgb(165 232 91 / 8%); color: var(--lime); }
.status-planned { border-color: rgb(246 184 74 / 45%); background: rgb(246 184 74 / 8%); color: var(--amber); }
.featured-content h3 { margin-bottom: 16px; font-size: clamp(2.5rem, 5vw, 4.4rem); line-height: .95; letter-spacing: -.055em; }
.featured-content p { color: var(--text-soft); }
.featured-content .featured-lead { color: var(--text); font-size: 1.12rem; font-weight: 650; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 25px; }
.tag-list span { padding: 5px 9px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface-soft); color: #9eb4b6; font: .64rem/1.2 var(--font-mono); }
.featured-project-actions { display: grid; gap: 6px; justify-items: start; margin-top: 32px; }
.featured-project-secondary-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.featured-project-secondary-actions .text-link { display: inline-flex; min-height: 44px; align-items: center; border-color: var(--cyan-dark); color: var(--cyan); }
.featured-photo { margin: 0; isolation: isolate; }
.featured-photo::after { z-index: 1; background: linear-gradient(180deg, transparent 45%, rgb(3 10 11 / 86%) 100%); }
.featured-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 68%; }
.featured-photo figcaption { position: absolute; z-index: 2; right: 20px; bottom: 18px; left: 20px; display: flex; align-items: end; justify-content: space-between; gap: 16px; color: var(--text); font-size: .72rem; }
.featured-photo figcaption span { color: var(--lime); font: .59rem/1.2 var(--font-mono); letter-spacing: .09em; }
.featured-photo figcaption strong { max-width: 210px; text-align: right; }
.external-project-link { font-size: .86rem; }

/* Project browser */
.project-browser { margin-top: 50px; }
.filter-row { display: flex; align-items: center; gap: 18px; }
.filter-label { color: var(--muted); font-size: .66rem; }
.filter-controls { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-button { min-height: 44px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface-soft); color: var(--text-soft); font-size: .75rem; font-weight: 750; cursor: pointer; }
.filter-button:hover { border-color: var(--border-bright); color: var(--text); }
.filter-button[aria-pressed="true"] { border-color: var(--cyan); background: rgb(66 217 237 / 10%); color: var(--cyan); }
.results-status { min-height: 24px; margin: 12px 0 5px; color: var(--muted); font: .64rem/1.5 var(--font-mono); }
.projects-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.project-card { display: flex; min-width: 0; min-height: 315px; flex-direction: column; padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(145deg, var(--surface), var(--surface-soft)); transition: border-color .2s ease, transform .2s ease, background-color .2s ease; }
.project-card:hover { transform: translateY(-3px); border-color: var(--border-bright); }
.project-card-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.project-number { color: #49666a; font: .65rem/1 var(--font-mono); }
.project-card h3 { margin: 27px 0 10px; font-size: 1.4rem; letter-spacing: -.025em; }
.project-card p { margin-bottom: 20px; color: var(--text-soft); font-size: .9rem; }
.project-platform { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font: .65rem/1.4 var(--font-mono); text-transform: uppercase; }
.project-platform strong { color: var(--text); font-weight: 650; }
.project-card .tag-list { margin-top: 15px; }
.project-card-action { margin-top: 21px; }
.project-card-action:disabled { border-color: var(--border); background: transparent; color: var(--muted); cursor: not-allowed; }
.notice { padding: 16px; border: 1px solid var(--amber); color: var(--text-soft); }

/* Technologies */
.technologies-section { border-block: 1px solid var(--border); background: #0a1416; }
.technologies-layout { display: grid; grid-template-columns: minmax(280px, .75fr) minmax(0, 1.25fr); gap: clamp(50px, 9vw, 120px); }
.technology-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.technology-card { position: relative; min-height: 190px; padding: 27px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.technology-card::after { position: absolute; right: -18px; bottom: -24px; width: 88px; height: 88px; border: 1px solid rgb(66 217 237 / 10%); border-radius: 50%; content: ""; }
.tech-code { display: inline-grid; width: 42px; height: 31px; margin-bottom: 32px; place-items: center; border: 1px solid var(--border-bright); border-radius: 4px; color: var(--cyan); font-size: .58rem; }
.technology-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.technology-card p { margin: 0; color: var(--text-soft); font: .74rem/1.6 var(--font-mono); }

/* Build log */
.build-log-layout { display: grid; grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr); gap: clamp(52px, 10vw, 130px); }
.sticky-heading { align-self: start; position: sticky; top: calc(var(--nav-height) + 30px); }
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before { position: absolute; top: 15px; bottom: 15px; left: 11px; width: 1px; background: var(--border-bright); content: ""; }
.timeline-item { position: relative; display: grid; grid-template-columns: 24px 1fr; gap: 22px; padding-bottom: 34px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker { position: relative; z-index: 1; width: 23px; height: 23px; margin-top: 2px; border: 1px solid var(--border-bright); border-radius: 50%; background: var(--bg); }
.timeline-item.is-complete .timeline-marker { border-color: var(--lime); box-shadow: 0 0 0 5px rgb(165 232 91 / 6%); }
.timeline-item.is-complete .timeline-marker::after { position: absolute; inset: 6px; border-radius: 50%; background: var(--lime); content: ""; }
.timeline-item.is-planned .timeline-marker { border-color: var(--amber); border-style: dashed; }
.timeline-content { padding: 0 0 27px; border-bottom: 1px solid var(--border); }
.timeline-item:last-child .timeline-content { border-bottom: 0; }
.timeline-meta { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 7px; color: var(--muted); font: .62rem/1.4 var(--font-mono); text-transform: uppercase; }
.timeline-meta .complete { color: var(--lime); }
.timeline-meta .planned { color: var(--amber); }
.timeline-content h3 { margin-bottom: 7px; font-size: 1.08rem; }
.timeline-content p { margin: 0; color: var(--text-soft); font-size: .87rem; }

/* About and footer */
.about-section { border-top: 1px solid var(--border); background: linear-gradient(135deg, #0d1c1f, #081113 65%); }
.about-layout { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(0, .95fr); gap: clamp(50px, 10vw, 140px); align-items: start; }
.about-copy { padding-top: 30px; border-top: 1px solid var(--border-bright); }
.about-copy > p { color: var(--text-soft); font-size: 1.05rem; }
.about-values { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }
.about-values span { padding: 8px 10px; border: 1px solid var(--border); border-radius: 4px; color: var(--cyan); font: .61rem/1 var(--font-mono); }
.site-footer { padding: 48px 0; border-top: 1px solid var(--border); background: var(--bg-deep); }
.footer-grid { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 50px; }
.footer-brand { margin-bottom: 13px; }
.footer-grid > div:first-child > p { max-width: 450px; margin: 0; color: var(--muted); font-size: .8rem; }
.footer-meta { text-align: right; }
.footer-meta a { color: var(--cyan); font-size: .78rem; font-weight: 750; }
.footer-meta a:hover { color: var(--lime); }
.footer-meta p { margin: 4px 0 0; color: var(--muted); font: .63rem/1.4 var(--font-mono); }
.back-to-top { display: grid; width: 48px; height: 48px; place-content: center; border: 1px solid var(--border-bright); border-radius: var(--radius-sm); color: var(--cyan); text-align: center; transition: border-color .2s ease, background-color .2s ease; }
.back-to-top:hover { border-color: var(--cyan); background: var(--surface); }
.back-to-top span { display: block; margin-top: -2px; color: var(--muted); font: .45rem/1 var(--font-mono); }

@keyframes pulse-led { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes trace-flow { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes cursor-blink { 50% { opacity: 0; } }
@keyframes ring-rotate { to { transform: rotate(360deg); } }

@media (max-width: 1024px) {
  .hero { min-height: auto; }
  .hero-layout { grid-template-columns: 1fr; }
  .hero-copy { max-width: 790px; }
  .workbench { width: min(100%, 720px); }
  .overview-grid { grid-template-columns: repeat(2, 1fr); }
  .overview-card:nth-child(2) { border-right: 0; }
  .overview-card:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .featured-project { grid-template-columns: minmax(280px, .75fr) minmax(0, 1.25fr); }
  .featured-visual { min-height: 430px; }
}

@media (max-width: 860px) {
  :root { --nav-height: 64px; }
  .container { width: min(calc(100% - 32px), var(--container)); }
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    right: 16px;
    left: 16px;
    display: grid;
    max-height: calc(100svh - var(--nav-height) - 16px);
    padding: 12px;
    overflow-y: auto;
    transform: translateY(-12px);
    visibility: hidden;
    border: 1px solid var(--border-bright);
    border-radius: var(--radius);
    background: #0b1719;
    box-shadow: var(--shadow);
    opacity: 0;
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
  }
  .nav-menu.is-open { transform: translateY(0); visibility: visible; opacity: 1; }
  .nav-link { min-height: 48px; padding: 14px; }
  .nav-link::after { right: auto; bottom: 10px; left: 14px; width: 26px; transform-origin: left; }
  .github-link { width: 100%; min-height: 48px; margin: 5px 0 0; }
  .section { padding: 82px 0; }
  .section-heading { display: block; }
  .section-heading h2 { margin-bottom: 20px; }
  .featured-project { grid-template-columns: 1fr; }
  .featured-visual { min-height: 370px; border-right: 0; border-bottom: 1px solid var(--border); }
  .technologies-layout, .build-log-layout, .about-layout { grid-template-columns: 1fr; gap: 45px; }
  .sticky-heading { position: static; }
  .footer-grid { grid-template-columns: 1fr auto; }
  .footer-meta { text-align: left; }
  .back-to-top { grid-column: 2; grid-row: 1; }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 24px), var(--container)); }
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: clamp(3rem, 17vw, 4.5rem); }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .hero-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .workbench-topbar { grid-template-columns: 1fr 1fr; }
  .workbench-topbar > span:nth-child(2) { display: none; }
  .workbench-body { padding: 12px; }
  .board-map { height: 210px; }
  .readout-grid { grid-template-columns: 1fr; }
  .terminal { font-size: .58rem; overflow-x: auto; white-space: nowrap; }
  .compact-heading > p { display: none; }
  .overview-grid { grid-template-columns: 1fr; }
  .overview-card { border-right: 0; border-bottom: 1px solid var(--border); }
  .overview-card:nth-child(2) { border-bottom: 1px solid var(--border); }
  .overview-card:last-child { border-bottom: 0; }
  .featured-visual { min-height: 330px; }
  .featured-content { padding: 28px 22px; }
  .featured-project-primary-action { width: 100%; }
  .ring-two { width: 310px; height: 310px; }
  .signal-ring { width: 215px; height: 215px; }
  .filter-row { display: block; }
  .filter-label { display: block; margin-bottom: 10px; }
  .filter-controls { display: grid; grid-template-columns: repeat(3, 1fr); }
  .filter-button { padding-inline: 7px; }
  .projects-grid, .technology-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 0; }
  .about-values { display: grid; }
  .footer-grid { grid-template-columns: 1fr auto; gap: 32px 18px; }
  .footer-meta { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 480px) {
  .featured-project-secondary-actions { display: grid; gap: 0; }
}

@media (max-width: 360px) {
  .brand-name { font-size: .98rem; }
  .filter-controls { grid-template-columns: repeat(2, 1fr); }
  .hero-meta { grid-template-columns: 1fr; }
  .featured-content h3 { font-size: 2.5rem; }
  .label-sound { left: 5%; }
  .label-motion { right: 5%; }
  .label-distance { right: 3%; }
  .label-load { left: 6%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
