/* ==========================================================================
   tinktek.dev — Project archive
   Built from Figma frame "tinktek.dev — Project archive" (1440px desktop)
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --bg: #07090b;
  --bg-raised: #10171a;
  --panel: #10191c;
  --ink: #f1f3ec;
  --muted: #9ba8ad;
  --mint: #66e5e0;
  --mint-deep: #142927;
  --mint-line: #376462;
  --rule: #293338;
  --line: #304348;
  --grid-dot: #263335;

  --violet: #8f7ad1;
  --pink: #e3a5eb;
  --lime: #b9e35a;

  --font-sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: 64px;
  --max: 1440px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.15;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }

:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--mint); color: var(--bg); padding: 10px 14px; font-weight: 500;
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Type helpers ---------- */
.mono-label {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-transform: uppercase;
}
.mono-label--mint { color: var(--mint); }
.mono-label--violet { color: var(--violet); }
.mono-label--lime { color: var(--lime); }

.section-title {
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.section-title--lg { font-size: clamp(32px, 3.2vw, 46px); }

.body-muted { color: var(--muted); font-size: 15px; line-height: 1.35; }

.arrow { font-size: 24px; line-height: 1; display: inline-block; transition: transform .3s var(--ease); }
.arrow--mint { color: var(--mint); }
.arrow--pink { color: var(--pink); }
.arrow--lime { color: var(--lime); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 52px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 500;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover .arrow,
a:hover > .arrow,
a:hover .card__meta .arrow { transform: translate(3px, -3px); }

.btn--mint { background: var(--mint); color: var(--bg); }
.btn--mint:hover { background: var(--ink); }
.btn--dark { background: var(--bg); color: var(--ink); }
.btn--dark:hover { background: #1b2427; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 9, 11, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav {
  position: relative;
  display: flex;
  align-items: center;
  height: 96px;
}
.nav::after {
  content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0;
  height: 1px; background: var(--rule);
}

.wordmark { font-size: 32px; font-weight: 700; letter-spacing: -0.01em; }
.wordmark span { color: var(--mint); }

.nav__tag { margin-left: 45px; padding-top: 4px; }

.nav__menu { margin-left: auto; display: flex; align-items: center; }
.nav__links { display: flex; gap: 56px; margin-right: 64px; }
.nav__links a {
  position: relative; font-size: 14px; padding: 6px 0; transition: color .2s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; top: 30px; height: 2px; width: 0;
  background: var(--mint); transition: width .3s var(--ease);
}
.nav__links a:hover,
.nav__links a.is-active { color: var(--mint); }
.nav__links a.is-active { font-weight: 500; }
.nav__links a.is-active::after { width: 31px; }

.nav__cta { width: 204px; }

/* Language switch */
.lang-switch {
  display: flex;
  margin-right: 24px;
  border: 1px solid var(--rule);
}
.lang-switch button {
  min-width: 40px; height: 32px; padding: 0 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--muted);
  transition: color .2s, background-color .2s;
}
.lang-switch button + button { border-left: 1px solid var(--rule); }
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.is-active,
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.nav__toggle { display: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; overflow: hidden; }

.dot-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(var(--grid-dot) 1px, transparent 1.2px);
  background-size: 64px 40px;
  background-position: 64px 35px;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 562px;
  gap: 48px;
  min-height: 660px;
  padding-top: 55px;
  padding-bottom: 40px;
}

.hero__title {
  margin: 34px 0 0 -5px;
  font-size: clamp(56px, 7vw, 100px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.05em;
}
.hero__title span { color: var(--mint); }

.hero__lede {
  margin-top: 30px;
  max-width: 630px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.15;
}

.hero__btn { width: 234px; margin-top: 60px; }
.hero__scroll { margin-top: 67px; }

.hero__visual { position: relative; padding-top: 24px; }

.preview-stage {
  position: relative;
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 17px 27px 7px 24px;
  transition: border-color .3s var(--ease);
}
.preview-stage:hover { border-color: var(--mint-line); }
.preview-stage__head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 26px;
}
.preview-stage__head .arrow { font-size: 22px; }
.preview-stage__foot {
  margin-top: 17px; padding-top: 9px; border-top: 1px solid var(--line); font-size: 9px;
}

.status-card {
  position: absolute; right: 0; top: 455px;
  width: 252px; padding: 12px 15px 14px;
  background: var(--mint-deep);
  border: 1px solid var(--mint-line);
}
.status-card .mono-label { font-size: 9px; }
.status-card p:last-child { margin-top: 6px; font-size: 12px; font-weight: 500; }
.cursor { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero__caption { margin-top: 73px; }

/* ==========================================================================
   Shared browser mockups (scale with their container)
   ========================================================================== */
.mock { container-type: inline-size; width: 100%; }

.browser-bar {
  position: absolute; left: 0; top: 0; width: 100%;
  height: calc(var(--u) * 28);
  background: #243238;
  display: flex; align-items: center;
  padding-left: calc(var(--u) * 12);
  gap: calc(var(--u) * 5);
}
.browser-bar .dot {
  width: calc(var(--u) * 7); height: calc(var(--u) * 7);
  border-radius: 50%; background: #c9d1d2;
}
.browser-bar .dot--pink { background: var(--pink); }
.browser-bar .dot--light { background: #f1f3ec; }
.browser-bar .dot--mint { background: var(--mint); }
.browser-bar__url {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: calc(var(--u) * 9); color: #c9d1d2;
  white-space: nowrap;
}

/* ---- MONO site mock (designed at 510 × 340) ---- */
.mono-site {
  --u: calc(100cqw / 510);
  position: relative;
  width: 100%;
  aspect-ratio: 510 / 340;
  background: var(--pink);
  color: #201226;
  overflow: hidden;
}
.mono-site__nav {
  position: absolute; left: calc(var(--u) * 23); right: calc(var(--u) * 88); top: calc(var(--u) * 48);
  display: flex; justify-content: space-between; align-items: center;
}
.mono-site__nav b { font-size: calc(var(--u) * 21); font-weight: 700; }
.mono-site__nav sup { font-size: 0.5em; }
.mono-site__nav span { font-size: calc(var(--u) * 8); }
.mono-site__title {
  position: absolute; left: calc(var(--u) * 23); top: calc(var(--u) * 104);
  font-size: calc(var(--u) * 44); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em;
}
.mono-site__cta {
  position: absolute; left: calc(var(--u) * 24); top: calc(var(--u) * 223);
  width: calc(var(--u) * 142); height: calc(var(--u) * 27);
  padding-left: calc(var(--u) * 9);
  display: flex; align-items: center;
  background: #241529; color: #f6e8f8;
  font-size: calc(var(--u) * 7); font-weight: 700;
}
.waveform {
  position: absolute; left: calc(var(--u) * 275); top: calc(var(--u) * 218); height: calc(var(--u) * 74);
  display: flex; align-items: center; gap: calc(var(--u) * 5);
}
.waveform i {
  display: block; width: calc(var(--u) * 6);
  height: calc(var(--u) * var(--h));
  background: #582965;
  transform-origin: center;
  animation: wave 1.6s ease-in-out infinite alternate;
  animation-play-state: paused;
}
.waveform i:nth-child(3n) { animation-delay: -.4s; }
.waveform i:nth-child(3n+1) { animation-delay: -.9s; }
.waveform i:nth-child(4n) { animation-duration: 1.2s; }
.is-playing .waveform i { animation-play-state: running; }
@keyframes wave { from { transform: scaleY(1); } to { transform: scaleY(.55); } }

.mono-site__foot,
.mono-site__vol {
  position: absolute; top: calc(var(--u) * 301);
  font-family: var(--font-mono); font-size: calc(var(--u) * 9);
}
.mono-site__foot { left: calc(var(--u) * 24); }
.mono-site__vol { left: calc(var(--u) * 390); font-size: calc(var(--u) * 8); }

/* ---- ORBIT site mock (designed at 776 × 381) ---- */
.orbit-site {
  --u: calc(100cqw / 776);
  position: relative;
  width: 100%;
  aspect-ratio: 776 / 381;
  background: #f1ede5;
  color: #22212b;
  overflow: hidden;
}
.browser-bar--light { height: calc(var(--u) * 26); background: #d9d3c8; }
.browser-bar--light .dot { width: calc(var(--u) * 6); height: calc(var(--u) * 6); background: #9b958b; }
.browser-bar--light .browser-bar__url { color: #6f6a62; font-size: calc(var(--u) * 8); }

.orbit-site__nav {
  position: absolute; left: calc(var(--u) * 27); right: calc(var(--u) * 43); top: calc(var(--u) * 44);
  height: calc(var(--u) * 44);
  display: flex; align-items: flex-start; justify-content: space-between;
  border-bottom: 1px solid #d0c9bd;
}
.orbit-site__nav b { font-size: calc(var(--u) * 28); font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.orbit-site__nav span { font-size: calc(var(--u) * 9); padding-top: calc(var(--u) * 12); }
.orbit-site__nav span:nth-child(2) { margin-left: calc(var(--u) * 140); margin-right: auto; }

.orbit-site__copy {
  position: absolute; left: calc(var(--u) * 27); top: calc(var(--u) * 112);
}
.orbit-site__eyebrow { display: block; font-family: var(--font-mono); font-size: calc(var(--u) * 8); color: #6f6a62; }
.orbit-site__title {
  margin: calc(var(--u) * 20) 0 0 calc(var(--u) * -4);
  font-size: calc(var(--u) * 48); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em;
}
.orbit-site__text { margin-top: calc(var(--u) * 12); font-size: calc(var(--u) * 10); line-height: 1.4; color: #6f6a62; }
.orbit-site__btn {
  display: inline-flex; align-items: center;
  margin-top: calc(var(--u) * 25);
  width: calc(var(--u) * 153); height: calc(var(--u) * 31); padding-left: calc(var(--u) * 10);
  background: #22212b; color: #f1ede5; font-size: calc(var(--u) * 8);
}
.orbit-site__art {
  position: absolute; left: calc(var(--u) * 439); top: calc(var(--u) * 105);
  width: calc(var(--u) * 311);
}
.orbit-site__art img { width: 100%; transition: transform .8s var(--ease); }
.orbit-stage:hover .orbit-site__art img { transform: scale(1.03); }
.orbit-site__art figcaption {
  position: absolute; left: calc(var(--u) * 16); bottom: calc(var(--u) * 10);
  font-family: var(--font-mono); font-size: calc(var(--u) * 7); color: #5d4a82;
}

/* ---- PULSE phone mock (designed at 181 × 361) ---- */
.mock--phone { width: 181px; }
.phone {
  --u: calc(100cqw / 181);
  position: relative;
  width: 100%;
  aspect-ratio: 181 / 361;
  background: #0b1214;
  border: calc(var(--u) * 2) solid #3a4b4b;
  border-radius: calc(var(--u) * 24);
  color: var(--ink);
  overflow: hidden;
}
.phone__island {
  position: absolute; left: calc(var(--u) * 64); top: calc(var(--u) * 10);
  width: calc(var(--u) * 53); height: calc(var(--u) * 12); border-radius: 99px; background: #1c2729;
}
.phone__time { position: absolute; left: calc(var(--u) * 15); top: calc(var(--u) * 14); font-size: calc(var(--u) * 7); font-weight: 500; }
.phone__brand { position: absolute; left: calc(var(--u) * 15); top: calc(var(--u) * 50); font-family: var(--font-mono); font-size: calc(var(--u) * 8); color: var(--mint); }
.phone__title { position: absolute; left: calc(var(--u) * 15); top: calc(var(--u) * 76); font-size: calc(var(--u) * 19); font-weight: 500; line-height: 1.2; }
.phone__room { position: absolute; left: calc(var(--u) * 15); top: calc(var(--u) * 148); font-family: var(--font-mono); font-size: calc(var(--u) * 6); color: var(--muted); }
.phone__dial {
  position: absolute; left: calc(var(--u) * 38); top: calc(var(--u) * 174);
  width: calc(var(--u) * 105); height: calc(var(--u) * 105);
  border-radius: 50%;
  border: calc(var(--u) * 3) solid var(--mint);
  box-shadow: 0 0 calc(var(--u) * 18) rgba(102, 229, 224, .18);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.phone__dial b { font-size: calc(var(--u) * 34); font-weight: 500; letter-spacing: -0.03em; }
.phone__dial span { font-family: var(--font-mono); font-size: calc(var(--u) * 5.5); color: var(--mint); }
.phone__control {
  position: absolute; left: calc(var(--u) * 15); top: calc(var(--u) * 297);
  width: calc(var(--u) * 150); height: calc(var(--u) * 43);
  padding: 0 calc(var(--u) * 10);
  display: flex; justify-content: space-between; align-items: center;
  background: #172123; border-radius: calc(var(--u) * 8);
  font-size: calc(var(--u) * 7.5);
}
.toggle {
  position: relative; width: calc(var(--u) * 23); height: calc(var(--u) * 12);
  border-radius: 99px; background: #3a4b4b; transition: background .3s;
}
.toggle::after {
  content: ""; position: absolute; top: calc(var(--u) * 1.7); left: calc(var(--u) * 1.7);
  width: calc(var(--u) * 8.6); height: calc(var(--u) * 8.6); border-radius: 50%;
  background: var(--ink); transition: transform .3s var(--ease);
}
.toggle.is-on { background: var(--mint); }
.toggle.is-on::after { transform: translateX(calc(var(--u) * 11)); background: #0b1214; }

/* ==========================================================================
   Directory / filters
   ========================================================================== */
.directory { background: var(--bg-raised); }
.directory__inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  min-height: 136px;
  padding-top: 24px; padding-bottom: 24px;
}
.directory__inner::before {
  content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter);
  height: 1px; background: var(--rule);
}
.directory__title { margin-top: 10px; font-size: 20px; font-weight: 500; }

.filters { display: flex; flex-wrap: wrap; gap: 12px; margin-right: 48px; }
.filter {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-width: 134px; height: 48px; padding: 0 22px 0 15px;
  background: var(--bg); border: 1px solid var(--rule);
  font-size: 12px;
  transition: background-color .2s, color .2s, border-color .2s;
}
.filter__count { font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.filter:first-child { min-width: 166px; }
.filter:hover { border-color: var(--mint-line); }
.filter.is-active { background: var(--mint); border-color: var(--mint); color: var(--bg); }
.filter.is-active .filter__count { color: var(--bg); }

/* ==========================================================================
   Projects
   ========================================================================== */
.projects { padding: 53px 0 40px; }

.project { transition: opacity .35s var(--ease), transform .35s var(--ease); }
.project.is-hidden { display: none; }

/* ---- Featured (Orbit) ---- */
.featured { padding-bottom: 68px; }
.featured__head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
}
.featured__head .section-title { margin-top: 17px; }
.featured__kicker { margin-right: 116px; padding-bottom: 14px; }

.featured__body {
  display: grid;
  grid-template-columns: minmax(0, 844fr) minmax(0, 416fr);
  gap: 52px;
  margin-top: 40px;
}

.orbit-stage {
  padding: 34px;
  background-color: #22212b;
  background-image: linear-gradient(90deg, #2c2b37 1px, transparent 1px);
  background-size: 65px 100%;
}

.featured__detail { padding-top: 16px; }
.featured__title {
  margin-top: 21px;
  font-size: clamp(30px, 2.8vw, 40px); font-weight: 500; line-height: 1.17; letter-spacing: -0.01em;
}
.featured__text { margin-top: 26px; color: var(--muted); font-size: 14px; line-height: 1.4; max-width: 400px; }
.featured__detail hr { margin: 30px 0 22px; }
.tags { display: flex; gap: 18px; margin-top: 16px; color: var(--violet); font-size: 13px; }
.link-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 34px; padding-right: 22px; font-size: 17px; font-weight: 500;
}

/* ---- Two-up cards ---- */
.project-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  padding-top: 24px;
}
.card__media {
  position: relative; display: block;
  aspect-ratio: 644 / 420;
  overflow: hidden;
}
.card__label { position: absolute; left: 22px; top: 18px; }
.card__label--light { color: #b9a6c0; }
.card__num { position: absolute; right: 41px; top: 22px; }
.card__note { position: absolute; left: 24px; top: 84%; }

.card__media--mono { background: #291d2e; }
.card__media--mono .mock--mono {
  position: absolute; left: 9.63%; top: 12.6%; width: 80.78%;
  transition: transform .6s var(--ease);
}
.card__media--mono:hover .mock--mono { transform: translateY(-6px); }

.card__media--pulse {
  background-color: #162121;
  background-image:
    linear-gradient(90deg, #1f2e2e 1px, transparent 1px),
    linear-gradient(#1f2e2e 1px, transparent 1px);
  background-size: 60px 60px;
}
.card__media--pulse .mock--phone {
  position: absolute; left: 50%; top: 11.7%;
  width: 28%;
  transform: translateX(-50%);
  transition: transform .6s var(--ease);
}
.card__media--pulse:hover .mock--phone { transform: translateX(-50%) translateY(-6px); }

.card__meta {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 22px 18px 0 0;
}
.card__title { font-size: clamp(20px, 1.8vw, 26px); font-weight: 500; letter-spacing: -0.01em; }
.card__meta .mono-label { margin-top: 15px; }
.card:hover .card__meta .arrow { transform: translate(3px, -3px); }

/* ---- Hardware ---- */
.hardware {
  display: grid; grid-template-columns: 686fr 626fr;
  margin-top: 64px;
  min-height: 352px;
  background: #141e13;
}
.hardware__copy { padding: 30px 32px 33px; display: flex; flex-direction: column; }
.hardware__title {
  margin-top: 33px;
  font-size: clamp(32px, 3.2vw, 46px); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em;
}
.hardware__text { margin-top: 12px; max-width: 550px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.hardware__copy .mono-label:last-child { margin-top: auto; }

.hardware__visual {
  position: relative; display: block; overflow: hidden;
  background-image:
    linear-gradient(90deg, #1d2a1b 1px, transparent 1px),
    linear-gradient(#1d2a1b 1px, transparent 1px);
  background-size: 50px 40px;
  background-position: 17px 0;
}
.hardware__tag { position: absolute; left: 35px; top: 25px; font-size: 12px; }
.hardware__arrow { position: absolute; right: 54px; top: 26px; }
.hardware__rev { position: absolute; right: 90px; bottom: 33px; }
.hardware__board {
  position: absolute; left: 27%; top: 19%;
  width: 44%;
  transform: rotate(12deg);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45));
  transition: transform .8s var(--ease);
}
.hardware__visual:hover .hardware__board { transform: rotate(9deg) translateY(-6px); }

.projects__note { margin-top: 40px; }
.projects__empty { padding: 40px 0; }

/* ==========================================================================
   Lab notes
   ========================================================================== */
.lab { background: var(--bg-raised); }
.lab__inner {
  display: grid; grid-template-columns: minmax(0, 604fr) minmax(0, 708fr);
  min-height: 440px; padding-top: 58px; padding-bottom: 56px;
}
.lab__intro { display: flex; flex-direction: column; }
.lab__intro .section-title { margin-top: 26px; }
.lab__intro .body-muted { margin-top: 40px; }
.lab__foot { margin-top: auto; padding-top: 32px; }

.experiments { border-bottom: 1px solid var(--rule); }
.experiments li { border-top: 1px solid var(--rule); }
.experiments a {
  display: grid;
  grid-template-columns: 49px 1fr 149px auto;
  align-items: start;
  min-height: 108px;
  padding: 20px 19px 20px 0;
  transition: background-color .25s var(--ease), padding .25s var(--ease);
}
.experiments a:hover { background: rgba(102, 229, 224, .04); padding-left: 10px; }
.experiments .mono-label { padding-top: 7px; }
.experiments__name b { display: block; font-size: 22px; font-weight: 500; }
.experiments__name small { display: block; margin-top: 10px; font-size: 14px; color: var(--muted); }

/* ==========================================================================
   Toolkit / capabilities
   ========================================================================== */
.toolkit__inner {
  display: grid; grid-template-columns: minmax(0, 531fr) minmax(0, 781fr);
  min-height: 360px; padding-top: 56px; padding-bottom: 56px;
}
.toolkit__inner .section-title { margin-top: 25px; }
.toolkit__inner .body-muted { margin-top: 40px; font-size: 14px; }

.capabilities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 2px; }
.capability { border-top: 1px solid var(--rule); padding-top: 20px; }
.capability h3 { margin-top: 33px; font-size: 21px; font-weight: 500; }
.capability p:last-child { margin-top: 31px; font-size: 12px; line-height: 1.35; color: var(--muted); }

/* ==========================================================================
   Inquiry CTA
   ========================================================================== */
.inquiry { background: var(--mint); color: var(--bg); }
.inquiry .container { padding-top: 49px; padding-bottom: 22px; }
.inquiry .mono-label { color: #12312f; }
.inquiry__title {
  margin: 23px 0 0 -5px;
  font-size: clamp(48px, 5.5vw, 79px); font-weight: 700; line-height: 1.15; letter-spacing: -0.04em;
}
.inquiry__row {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
  margin-top: 37px;
}
.inquiry__text { font-size: 18px; line-height: 1.22; max-width: 600px; }
.inquiry__btn { width: 321px; height: 58px; font-size: 17px; padding: 0 23px; }
.inquiry__foot { display: flex; justify-content: space-between; margin-top: 33px; padding-right: 95px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer .container { padding-top: 29px; padding-bottom: 26px; }
.footer__top {
  display: flex; align-items: center; gap: 59px;
  padding-bottom: 29px; border-bottom: 1px solid var(--rule);
}
.footer__links { margin-left: auto; margin-right: 46px; display: flex; gap: 51px; font-size: 15px; }
.footer__links a:hover { color: var(--mint); }
.footer__top-link { color: var(--mint); }
.footer__bottom { display: flex; justify-content: space-between; padding: 22px 110px 0 0; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1280px) {
  .nav__links { margin-right: 40px; gap: 40px; }
  .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); }
  .status-card { top: auto; bottom: 18px; right: -16px; }
  .filters { margin-right: 0; }
  .featured__kicker { margin-right: 0; }
}

@media (max-width: 1024px) {
  :root { --gutter: 40px; }

  .hero__inner { grid-template-columns: 1fr; gap: 56px; }
  .hero__btn { margin-top: 40px; }
  .hero__scroll { margin-top: 40px; }
  .hero__visual { max-width: 620px; }
  .status-card { right: 16px; bottom: 30px; }
  .hero__caption { margin-top: 48px; }

  .directory__inner { flex-direction: column; align-items: flex-start; }

  .featured__body { grid-template-columns: 1fr; }
  .featured__head { flex-direction: column; align-items: flex-start; }
  .featured__kicker { padding-bottom: 0; }

  .project-grid { grid-template-columns: 1fr; gap: 48px; }

  .hardware { grid-template-columns: 1fr; }
  .hardware__copy { gap: 0; }
  .hardware__copy .mono-label:last-child { margin-top: 32px; }
  .hardware__visual { min-height: 340px; }

  .lab__inner, .toolkit__inner { grid-template-columns: 1fr; gap: 48px; }
  .lab__foot { padding-top: 32px; }

  .inquiry__foot, .footer__bottom { padding-right: 0; }
}

@media (max-width: 860px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .nav { height: 76px; }
  .wordmark { font-size: 26px; }
  .nav__tag { display: none; }

  .nav__toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    margin-left: auto; width: 44px; height: 44px; padding: 0 10px;
  }
  .nav__toggle span:not(.sr-only) {
    display: block; height: 2px; background: var(--ink); transition: transform .3s var(--ease);
  }
  .nav__toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(4px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-of-type(3) { transform: translateY(-4px) rotate(-45deg); }

  .nav__menu {
    position: fixed; left: 0; right: 0; top: 76px; bottom: 0;
    flex-direction: column; align-items: stretch;
    padding: 32px var(--gutter);
    background: var(--bg);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
  }
  .nav__menu.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .25s var(--ease); }
  .nav__links { flex-direction: column; gap: 0; margin: 0 0 32px; }
  .nav__links a { display: block; padding: 18px 0; font-size: 28px; border-bottom: 1px solid var(--rule); }
  .nav__links a::after { display: none; }
  .nav__cta { width: 100%; }
  .lang-switch { align-self: flex-start; margin: 0 0 24px; }
  .lang-switch button { min-width: 56px; height: 40px; font-size: 13px; }
  html { scroll-padding-top: 76px; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }

  .hero__inner { padding-top: 40px; }
  .hero__lede { font-size: 17px; }
  .hero__lede br { display: none; }
  .hero__btn { width: 100%; }
  .preview-stage { padding: 14px 14px 6px; }
  .status-card { position: relative; right: auto; bottom: auto; margin-top: 12px; width: 100%; }

  .filters { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .filter, .filter:first-child { min-width: 0; }

  .orbit-stage { padding: 14px; }

  .card__label, .card__num, .card__note { font-size: 8px; }
  .card__media--mono { aspect-ratio: 644 / 470; }
  .card__media--mono .mock--mono { top: 17%; }
  .card__media--pulse { aspect-ratio: 1 / 1; }
  .card__media--pulse .mock--phone { width: 36%; top: 13%; }
  .card__note { display: none; }

  .hardware__copy { padding: 24px 20px; }
  .hardware__visual { min-height: 260px; }
  .hardware__board { left: 20%; width: 60%; top: 22%; }
  .hardware__rev { right: 20px; bottom: 16px; }
  .hardware__arrow { right: 20px; }
  .hardware__tag { left: 20px; }

  .experiments a { grid-template-columns: 36px 1fr auto; }
  .experiments a > .mono-label:nth-child(3) { display: none; }
  .experiments__name b { font-size: 19px; }

  .capabilities { grid-template-columns: 1fr; gap: 32px; }
  .capability h3 { margin-top: 18px; }
  .capability p:last-child { margin-top: 14px; }

  .inquiry__row { flex-direction: column; align-items: stretch; }
  .inquiry__text br { display: none; }
  .inquiry__btn { width: 100%; }
  .inquiry__foot { flex-direction: column; gap: 6px; }

  .footer__top { flex-wrap: wrap; gap: 16px 24px; }
  .footer__motto { order: 3; width: 100%; }
  .footer__links { margin: 0 0 0 auto; gap: 24px; }
  .footer__bottom { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
