/* ============ Signal Portfolio v2 — ported from Claude Design ============ */

:root {
  --phos: #6BFFA8;
  --amber: #FFBF65;
  --coral: #FD8973;
  --ember: #B03E2C;
  --ink: #13181B;
  --cream: #E8E4DC;
  --bright: #F0EEEB;
  --screen: #0A0F0C;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--cream);
  min-height: 100vh;
  min-height: 100dvh;
  text-wrap: pretty;
  background-color: #13181B;
  background-image:
    radial-gradient(ellipse 130% 42% at 50% 104%, rgba(253,137,115,0.36) 0%, rgba(255,191,101,0.13) 40%, rgba(255,191,101,0) 70%),
    linear-gradient(180deg, #0E1216 0%, #13181B 30%, #12222F 58%, #003A6C 88%, #1E3A55 100%);
}

::selection { background: var(--amber); color: var(--ink); }

@keyframes lhMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes lhBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes lhFade { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes lhRoll { from { transform: translateY(0); } to { transform: translateY(calc(100vh + 240px)); } }

/* ---------- shared helpers ---------- */
.mono { font-family: 'IBM Plex Mono', monospace; }
.phos { color: var(--phos); }
.amber { font-style: normal; color: var(--amber); }
.coral { font-style: normal; color: var(--coral); }

.container { max-width: 1240px; margin: 0 auto; }

.display {
  margin: 0;
  font-family: 'Michroma', sans-serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--bright);
}
.display-xl    { font-size: clamp(38px, 5.2vw, 76px); line-height: 1.1; }
.display-lg-xl { font-size: clamp(32px, 4.4vw, 62px); line-height: 1.1; }
.display-lg    { font-size: clamp(28px, 3.6vw, 52px); line-height: 1.14; }
.display-md-lg { font-size: clamp(26px, 3.2vw, 44px); line-height: 1.18; }
.display-md    { font-size: clamp(24px, 2.9vw, 38px); line-height: 1.18; }
.display-sm    { font-size: clamp(22px, 2.6vw, 34px); }

.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; }
.dot-phos { background: var(--phos); box-shadow: 0 0 8px var(--phos); }
.blink { animation: lhBlink 3s infinite; }

.vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 55%, rgba(0,0,0,0.5) 100%);
}

.kick-canvas { display: block; width: min(320px, 60vw); height: 18px; margin-bottom: 22px; }

.ulink {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.16em;
  color: var(--cream); text-decoration: none;
  border-bottom: 1px solid rgba(232,228,220,0.5); padding-bottom: 4px;
  transition: color 0.2s, border-color 0.2s;
}
.ulink-coral { border-bottom-color: var(--cream); }
.ulink-coral:hover { color: var(--coral); border-bottom-color: var(--coral); }
.ulink-amber:hover { color: var(--amber); border-bottom-color: var(--amber); }

/* ---------- texture overlays ---------- */
.grain {
  position: fixed; inset: 0; z-index: 200; pointer-events: none;
  opacity: 0.15; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}
.scanlines {
  position: fixed; inset: 0; z-index: 199; pointer-events: none; opacity: 0.16;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.55) 0px, rgba(0,0,0,0.55) 1px, transparent 1px, transparent 3px);
}
.tracking-band {
  position: fixed; left: 0; right: 0; top: -120px; height: 110px; z-index: 199; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(240,238,235,0.05), transparent);
  animation: lhRoll 9s linear infinite;
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 12px 24px; padding: 12px clamp(20px, 4vw, 40px);
  background: linear-gradient(180deg, rgba(32,38,43,0.94), rgba(23,28,32,0.94));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.09), 0 10px 30px -12px rgba(0,0,0,0.6);
}
.brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; color: var(--cream); }
.brand-name { font-family: 'Michroma', sans-serif; font-weight: 400; font-size: 13px; letter-spacing: 0.02em; }

.tabs {
  display: flex; align-items: stretch;
  background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px; padding: 3px; gap: 3px;
}
.tab {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 5px;
  font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.14em;
  text-decoration: none; background: transparent; color: rgba(232,228,220,0.5);
  transition: background 0.2s, color 0.2s;
}
.tab:hover { color: var(--coral); }
.tab .led {
  display: inline-block; width: 5px; height: 5px; border-radius: 50%;
  background: rgba(232,228,220,0.18); transition: background 0.2s, box-shadow 0.2s;
}
.tab.active { background: rgba(255,255,255,0.08); color: var(--bright); }
.tab.active .led { background: var(--phos); box-shadow: 0 0 6px var(--phos); }

.nav-right { display: flex; align-items: center; gap: 12px; }
.clock {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.12em;
  color: var(--phos); text-shadow: 0 0 8px var(--phos);
  background: var(--screen); border: 1px solid rgba(0,0,0,0.7);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.9);
  border-radius: 5px; padding: 7px 12px;
}

/* ---------- views ---------- */
.view { animation: lhFade 0.7s cubic-bezier(0.2,0.7,0.2,1) both; }
.view[hidden] { display: none; }

/* ---------- index: headline ---------- */
.headline-block { padding: 64px 40px 48px; }
.headline-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px 48px; margin-top: 36px; align-items: stretch;
}
.headline-copy { display: flex; flex-direction: column; justify-content: flex-end; gap: 24px; }
.lede { margin: 0; font-size: 19px; line-height: 1.55; color: rgba(232,228,220,0.72); max-width: 56ch; }
.tag-row { display: flex; gap: 10px; flex-wrap: wrap; }
.tag {
  font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.12em;
  color: rgba(232,228,220,0.65); border: 1px solid rgba(232,228,220,0.2);
  border-radius: 5px; padding: 6px 12px;
}
.hero-screen {
  position: relative; border-radius: 12px; overflow: hidden; background: var(--screen);
  border: 1px solid rgba(240,238,235,0.1); box-shadow: inset 0 2px 16px rgba(0,0,0,0.9);
  min-height: 180px; max-height: 220px;
}
.hero-screen canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ---------- the device ---------- */
.device-stage { padding: 0 40px 96px; perspective: 1600px; }
.device {
  background: linear-gradient(180deg, #F5F3F0 0%, #EAE7E1 55%, #D6D1C5 100%);
  border-radius: 16px 16px 20px 20px;
  border: 1px solid rgba(0,0,0,0.5); border-bottom: 7px solid #B8B2A4;
  box-shadow:
    0 60px 100px -35px rgba(0,0,0,0.95),
    0 22px 40px -18px rgba(0,0,0,0.7),
    inset 0 2px 0 rgba(255,255,255,0.95),
    inset 3px 0 6px -3px rgba(255,255,255,0.6),
    inset -4px 0 8px -4px rgba(19,24,27,0.3),
    inset 0 -3px 8px rgba(19,24,27,0.22);
  padding: 26px 30px 30px; color: var(--ink);
  transform: rotateX(3.5deg); transform-origin: 50% 100%; transform-style: preserve-3d;
}
.device-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.device-title { display: flex; align-items: baseline; gap: 14px; }
.device-model { font-weight: 600; font-size: 15px; letter-spacing: 0.02em; color: var(--ink); }
.device-sub { font-size: 10px; letter-spacing: 0.24em; color: rgba(19,24,27,0.55); }
.device-status { display: flex; align-items: center; gap: 10px; font-size: 9px; letter-spacing: 0.18em; color: rgba(19,24,27,0.5); }

.device-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 26px; align-items: stretch; }

.crt-bezel {
  background: linear-gradient(180deg, #070A0C, #11161A); border-radius: 12px; padding: 16px;
  box-shadow: inset 0 4px 22px rgba(0,0,0,0.95), inset 0 -1px 2px rgba(255,255,255,0.06), 0 1px 0 rgba(255,255,255,0.7);
  transform: translateZ(14px);
}
.crt {
  position: relative; border-radius: 14px / 22px; overflow: hidden; background: var(--screen);
  height: 340px; box-shadow: inset 0 0 40px rgba(0,0,0,0.8);
}
.crt canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.crt .vignette { background: radial-gradient(ellipse at center, rgba(0,0,0,0) 55%, rgba(0,0,0,0.55) 100%); }
.crt-glass {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,0.09) 0%, rgba(255,255,255,0.03) 22%, transparent 40%);
}
.crt-osd {
  position: absolute; top: 12px; pointer-events: none;
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.18em;
  color: var(--phos); text-shadow: 0 0 8px var(--phos);
}
.crt-osd-left { left: 16px; }
.crt-osd-right { right: 16px; }
.crt-labels {
  display: flex; justify-content: space-between; margin-top: 12px;
  font-size: 9px; letter-spacing: 0.22em; color: rgba(19,24,27,0.5);
}

.controls { display: flex; flex-direction: column; gap: 18px; }

.menu-panel {
  background: rgba(19,24,27,0.06); border: 1px solid rgba(19,24,27,0.14);
  border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 2px;
}
.menu-title { font-size: 9px; letter-spacing: 0.24em; color: rgba(19,24,27,0.45); padding: 4px 8px 8px; }
#menu-list { display: flex; flex-direction: column; gap: 2px; }
.menu-item {
  display: flex; align-items: baseline; gap: 10px; padding: 7px 10px; border-radius: 6px;
  text-decoration: none; font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; letter-spacing: 0.1em;
  background: transparent; color: rgba(19,24,27,0.6);
  transition: background 0.25s, color 0.25s;
}
.menu-item.active { background: rgba(253,137,115,0.18); color: var(--ember); }
.menu-item .menu-n { opacity: 0.6; }
.menu-item .menu-label { font-weight: 500; }
.menu-item .menu-sub { margin-left: auto; font-size: 9.5px; opacity: 0.55; }

.knob-row { display: flex; align-items: center; gap: 26px; padding: 6px 8px; }
.knob-block { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.knob-label { font-size: 9px; letter-spacing: 0.24em; color: rgba(19,24,27,0.5); text-align: center; }

.knob {
  border-radius: 50%; cursor: grab; touch-action: none;
  background: repeating-conic-gradient(#C9C3B6 0deg 9deg, #E4E0D6 9deg 18deg);
  display: grid; place-items: center;
}
.knob-lg {
  width: 118px; height: 118px;
  box-shadow:
    0 14px 22px -8px rgba(19,24,27,0.55), 0 5px 8px rgba(19,24,27,0.3),
    inset 0 2px 3px rgba(255,255,255,0.9), inset 0 -3px 5px rgba(19,24,27,0.25);
  transform: translateZ(20px);
}
.knob-sm {
  width: 72px; height: 72px;
  background: repeating-conic-gradient(#C9C3B6 0deg 10deg, #E4E0D6 10deg 20deg);
  box-shadow: 0 5px 12px rgba(0,0,0,0.55), inset 0 2px 3px rgba(255,255,255,0.85);
}
.knob-cap {
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FBFAF7, #D8D3C8 70%);
  display: grid; place-items: center;
  transition: transform 0.15s cubic-bezier(0.2,0.7,0.2,1);
}
.knob-lg .knob-cap { width: 84px; height: 84px; box-shadow: inset 0 1px 2px rgba(255,255,255,0.9), 0 2px 8px rgba(19,24,27,0.35); }
.knob-sm .knob-cap { width: 50px; height: 50px; box-shadow: inset 0 1px 2px rgba(255,255,255,0.9), 0 2px 6px rgba(19,24,27,0.4); }
.knob-pointer { border-radius: 3px; background: var(--coral); }
.knob-pointer-lg { width: 5px; height: 30px; box-shadow: 0 0 8px rgba(253,137,115,0.8); transform: translateY(-22px); }
.knob-pointer-sm { width: 4px; height: 18px; border-radius: 2px; box-shadow: 0 0 6px rgba(253,137,115,0.8); transform: translateY(-13px); }
.knob-pointer-amber { background: var(--amber); box-shadow: 0 0 6px rgba(255,191,101,0.8); }

.power-btn {
  width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(19,24,27,0.3); cursor: pointer;
  background: radial-gradient(circle at 35% 30%, #FBFAF7, #DDD8CD 75%);
  box-shadow: 0 4px 10px rgba(19,24,27,0.3), inset 0 1px 2px rgba(255,255,255,0.9);
  display: grid; place-items: center;
}
.power-led { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: rgba(19,24,27,0.25); }
.power-led.on { background: var(--coral); box-shadow: 0 0 10px var(--coral); }
.device-serial { margin-left: auto; font-size: 9px; line-height: 1.9; letter-spacing: 0.16em; color: rgba(19,24,27,0.4); text-align: right; }

/* ---------- capabilities ---------- */
.cap-block { padding: 0 40px 88px; }
.cap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.cap-card {
  background: linear-gradient(180deg, #F5F3F0 0%, #EAE7E1 60%, #D6D1C5 100%);
  border: 1px solid rgba(0,0,0,0.5); border-bottom: 5px solid #B8B2A4;
  border-radius: 12px 12px 14px 14px;
  box-shadow: 0 24px 44px -20px rgba(0,0,0,0.75), inset 0 2px 0 rgba(255,255,255,0.95), inset 0 -2px 6px rgba(19,24,27,0.18);
  padding: 14px 16px 20px; display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.25s cubic-bezier(0.2,0.7,0.2,1);
}
.cap-card:hover { transform: translateY(-4px); }
.cap-screen {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--screen); border-radius: 7px;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.9); padding: 9px 12px;
}
.cap-screen-label { font-size: 10px; letter-spacing: 0.2em; color: var(--phos); text-shadow: 0 0 8px var(--phos); }
.cap-copy { margin: 0; padding: 0 6px; font-size: 14.5px; line-height: 1.6; color: rgba(19,24,27,0.78); }
.cap-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding: 0 6px; }
.cap-meter { display: flex; gap: 3px; align-items: flex-end; }
.cap-meter span { width: 4px; background: rgba(19,24,27,0.3); }
.cap-tags { font-size: 9px; letter-spacing: 0.18em; color: rgba(19,24,27,0.45); }

/* ---------- signals ---------- */
.signals-block { padding: 96px 40px 88px; }
.signals-block .kick-canvas { margin-bottom: 26px; }
.signals-block h2 { margin-bottom: 24px; }
.signals-copy { margin: 0 0 48px; font-size: 17px; line-height: 1.6; color: rgba(232,228,220,0.65); max-width: 62ch; }
.signals-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-bottom: 48px; }
.signal-panel { background: rgba(0,0,0,0.4); border: 1px solid rgba(240,238,235,0.08); border-radius: 12px; padding: 18px; }
.signal-panel-title { font-size: 9px; letter-spacing: 0.22em; color: rgba(232,228,220,0.4); margin-bottom: 12px; }
.signal-screen { position: relative; border-radius: 8px; overflow: hidden; background: var(--screen); height: 240px; }
.signal-screen canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vs-screen { cursor: crosshair; touch-action: pan-y; }
.vs-screen canvas { pointer-events: none; }
.vs-ratio { position: absolute; left: 12px; bottom: 10px; pointer-events: none; font-size: 9px; letter-spacing: 0.18em; color: rgba(232,228,220,0.45); }

.signals-controls { display: flex; gap: 36px; align-items: center; flex-wrap: wrap; }
.mini-knob-block { display: flex; align-items: center; gap: 14px; }
.mini-knob-label { font-size: 9px; letter-spacing: 0.2em; line-height: 1.8; color: rgba(232,228,220,0.5); }
.audio-btn {
  font-size: 12px; letter-spacing: 0.16em; color: var(--ink);
  background: var(--phos); border: none; border-radius: 6px; padding: 12px 18px; cursor: pointer;
}
.signals-note { font-size: 10px; letter-spacing: 0.14em; color: rgba(232,228,220,0.4); }

/* ---------- tease ---------- */
.tease-block {
  padding: 80px clamp(20px, 4vw, 40px) 96px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 36px 48px; border-top: 1px solid rgba(240,238,235,0.08);
}
.tease-copy { margin: 0 0 28px; font-size: 16px; line-height: 1.65; color: rgba(232,228,220,0.7); }

/* ---------- work ---------- */
.work-block { padding: 88px 40px 96px; }
.work-block .kick-canvas { margin-bottom: 26px; }
.work-block h1 { margin-bottom: 64px; }

.featured-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; margin-bottom: 72px; }
.featured-card {
  background: rgba(240,238,235,0.04); border-radius: 14px; border: 1px solid rgba(240,238,235,0.12);
  padding: 24px; display: flex; flex-direction: column; gap: 16px;
}
.featured-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 10px; letter-spacing: 0.22em; }
.featured-year { color: rgba(232,228,220,0.4); letter-spacing: normal; }
.featured-screen {
  position: relative; border-radius: 10px; overflow: hidden; background: var(--screen);
  height: 190px; box-shadow: inset 0 2px 14px rgba(0,0,0,0.9);
}
.featured-screen canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.featured-title { margin: 0; font-size: 30px; font-weight: 500; letter-spacing: -0.02em; color: var(--bright); }
.featured-copy { margin: 0; font-size: 14.5px; line-height: 1.6; color: rgba(232,228,220,0.65); }
.featured-tags { font-size: 10px; letter-spacing: 0.14em; color: rgba(232,228,220,0.45); }

.archive-label { font-size: 10px; letter-spacing: 0.2em; color: rgba(232,228,220,0.45); margin-bottom: 24px; }
.archive-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 56px 40px; }
.proj { text-decoration: none; color: var(--cream); display: flex; flex-direction: column; gap: 14px; }
.proj:hover { color: var(--amber); }
.proj-thumb {
  border-radius: 12px; overflow: hidden; border: 1px solid rgba(240,238,235,0.12);
  aspect-ratio: 16 / 10; background-color: #1A2126;
  background-size: cover; background-position: center;
  filter: saturate(0.88) contrast(1.02);
  transition: transform 0.5s cubic-bezier(0.2,0.7,0.2,1);
}
.proj:hover .proj-thumb { transform: scale(1.03); }
.proj-meta { display: flex; justify-content: space-between; align-items: baseline; font-size: 10px; letter-spacing: 0.16em; color: rgba(232,228,220,0.45); }
.proj-title { margin: 0; font-size: 30px; font-weight: 500; letter-spacing: -0.02em; }
.proj-desc { margin: 0; font-size: 14.5px; line-height: 1.6; color: rgba(232,228,220,0.62); max-width: 52ch; }
.proj-tags { font-size: 10px; letter-spacing: 0.14em; color: var(--coral); }

.reel-block { margin-top: 96px; }
.reel-rule { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; font-size: 10px; letter-spacing: 0.2em; color: rgba(232,228,220,0.45); }
.reel-rule span { white-space: nowrap; }
.reel-rule .rule-line { flex: 1; height: 1px; background: rgba(240,238,235,0.12); }
.reel-tunnel {
  position: relative; height: 420px; border-radius: 16px; overflow: hidden; background: #0D1114;
  border: 1px solid rgba(240,238,235,0.1); box-shadow: 0 40px 80px -40px rgba(0,0,0,0.8);
  cursor: crosshair; touch-action: pan-y;
}
.reel-tunnel canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.reel-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 62%, rgba(13,17,20,0.55) 100%);
}
.reel-cta { display: flex; justify-content: center; margin-top: 28px; }

/* ---------- about / contact ---------- */
.about-view { position: relative; }
.about-glow {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 90% 70% at 70% 30%, rgba(0,58,108,0.55) 0%, rgba(14,26,40,0.3) 55%, rgba(13,17,20,0) 100%);
}
#net-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.about-grid {
  position: relative; z-index: 1; pointer-events: none;
  padding: 88px clamp(20px, 4vw, 40px) 40px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px 64px;
}
.about-copy-col { pointer-events: auto; }
.about-copy-col .kick-canvas { margin-bottom: 26px; }
.about-copy-col h1 { margin-bottom: 28px; }
.about-p { margin: 0 0 20px; font-size: 16px; line-height: 1.65; color: rgba(232,228,220,0.7); }
.fact-grid {
  pointer-events: auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: rgba(240,238,235,0.12); border: 1px solid rgba(240,238,235,0.12);
  border-radius: 12px; overflow: hidden; align-self: start;
}
.fact { background: #171D22; padding: 20px; }
.fact-label { font-size: 9px; letter-spacing: 0.2em; color: rgba(232,228,220,0.45); }
.fact-value { font-size: 15px; }

.contact-block { position: relative; z-index: 1; pointer-events: none; padding: 32px 40px 96px; }
.contact-inner { pointer-events: auto; border-top: 1px solid rgba(240,238,235,0.12); padding-top: 56px; max-width: 560px; }
.contact-inner h2 { margin-bottom: 32px; }
.contact-email {
  display: block; font-size: clamp(20px, 2.6vw, 32px); font-weight: 500; letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  color: var(--amber); text-decoration: none; margin-bottom: 12px; transition: color 0.2s;
}
.contact-email:hover { color: var(--coral); }
.contact-tel { display: block; font-size: 14px; letter-spacing: 0.08em; color: rgba(232,228,220,0.6); text-decoration: none; margin-bottom: 40px; }
.contact-links { display: flex; flex-direction: column; gap: 12px; max-width: 420px; }
.contact-link {
  display: flex; justify-content: space-between;
  font-size: 12px; letter-spacing: 0.12em; color: var(--cream); text-decoration: none;
  border-bottom: 1px solid rgba(232,228,220,0.25); padding-bottom: 8px; transition: color 0.2s;
}
.contact-link:hover { color: var(--coral); }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid rgba(240,238,235,0.1); padding: 22px 40px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 10px; letter-spacing: 0.16em; color: rgba(232,228,220,0.45);
}
.footer-right { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-sep { color: rgba(232,228,220,0.25); }
.footer-link {
  color: rgba(232,228,220,0.45); text-decoration: none;
  border-bottom: 1px solid rgba(232,228,220,0.2); padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.footer-link:hover { color: var(--amber); border-bottom-color: var(--amber); }

/* ---------- legal pages (impressum / datenschutz) ---------- */
.legal-block { padding: 90px 40px 90px; max-width: 860px; }
.legal-kicker {
  font-size: 11px; letter-spacing: 0.22em; color: var(--phos);
  margin-bottom: 18px;
}
.legal-title { margin-bottom: 40px; }
.legal-panel {
  border: 1px solid rgba(240,238,235,0.12); border-radius: 10px;
  background: rgba(10,15,12,0.55);
  padding: 34px 38px;
}
.legal-panel + .legal-panel { margin-top: 22px; }
.legal-panel-head {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.2em; color: var(--amber);
  margin-bottom: 18px; text-transform: uppercase;
}
.legal-panel p, .legal-panel address, .legal-panel ul {
  margin: 0 0 14px; font-size: 15px; line-height: 1.75;
  color: rgba(232,228,220,0.85); font-style: normal;
}
.legal-panel p:last-child, .legal-panel ul:last-child { margin-bottom: 0; }
.legal-panel ul { padding-left: 20px; }
.legal-panel li { margin-bottom: 6px; }
.legal-panel a { color: var(--amber); text-decoration: none; border-bottom: 1px solid rgba(255,191,101,0.35); transition: border-color 0.2s; }
.legal-panel a:hover { border-bottom-color: var(--amber); }
.legal-sub {
  font-size: 12px; letter-spacing: 0.14em; color: var(--phos);
  text-transform: uppercase; margin: 26px 0 10px;
}
.legal-note { font-size: 12px; color: rgba(232,228,220,0.5); letter-spacing: 0.06em; }
.legal-return { margin-top: 44px; }
.nav-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.18em; color: var(--cream);
  text-decoration: none; transition: color 0.2s;
}
.nav-back:hover { color: var(--amber); }

/* ---------- small screens ---------- */
@media (max-width: 640px) {
  .headline-block, .device-stage, .cap-block, .signals-block, .work-block { padding-left: 20px; padding-right: 20px; }
  .contact-block { padding-left: 20px; padding-right: 20px; }
  .footer { padding-left: 20px; padding-right: 20px; }
  .legal-block { padding: 60px 20px 70px; }
  .legal-panel { padding: 24px 20px; }
  .knob-row { flex-wrap: wrap; }
  .device-serial { margin-left: 0; text-align: left; }
  .device-grid { grid-template-columns: 1fr; }

  /* nav: full-width tab row, no viewport overflow */
  .nav { padding: 10px 16px; }
  .nav-right { display: none; }
  .tabs { order: 3; width: 100%; }
  .tab {
    flex: 1 1 0; min-width: 0;
    justify-content: center;
    padding: 14px 6px;
    white-space: nowrap;
    font-size: clamp(9px, 2.9vw, 10.5px);
    letter-spacing: 0.08em;
  }

  /* comfortable touch targets */
  .menu-item { padding: 12px 10px; }
  .contact-link { padding-top: 10px; padding-bottom: 12px; }
  .ulink { padding-top: 10px; padding-bottom: 6px; }

  /* legibility bump for the smallest device labels */
  .menu-title, .knob-label, .device-sub, .crt-labels { font-size: 10px; }

  /* keep the two CRT on-screen displays from overlapping on narrow CRTs */
  .crt-osd { font-size: 10px; letter-spacing: 0.12em; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .blink, .tracking-band, .view { animation: none; }
}
