/* ==========================================================================
   Rob Garber — AI Engineer
   Design system: instrumentation / control-room console.
   Amber = infrastructure signal. Cyan = AI signal. Graphite = the ground
   both run on.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Light theme (baseline) — "day console" */
  --bg: #EEF1F2;
  --bg-2: #E5E9EA;
  --panel: #FFFFFF;
  --panel-2: #F7F8F8;
  --text: #14181C;
  --text-muted: #4B535A;
  --text-faint: #7A828A;
  --border: rgba(20, 24, 28, 0.10);
  --border-strong: rgba(20, 24, 28, 0.18);
  --accent: #B4701E;
  --accent-strong: #955C15;
  --accent-soft: rgba(180, 112, 30, 0.12);
  --accent2: #0E8C88;
  --accent2-strong: #0A6E6B;
  --accent2-soft: rgba(14, 140, 136, 0.12);
  --grid-line: rgba(20, 24, 28, 0.06);
  --shadow: 0 20px 60px -30px rgba(20, 24, 28, 0.35);

  --font-display: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1180px;
  --gutter: clamp(1.5rem, 5vw, 4rem);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A0D11;
    --bg-2: #0E1216;
    --panel: #12161C;
    --panel-2: #171C23;
    --text: #ECE8DF;
    --text-muted: #9BA3AC;
    --text-faint: #6B7480;
    --border: rgba(236, 232, 223, 0.09);
    --border-strong: rgba(236, 232, 223, 0.16);
    --accent: #E3A857;
    --accent-strong: #F2BE74;
    --accent-soft: rgba(227, 168, 87, 0.12);
    --accent2: #63D2C8;
    --accent2-strong: #8CE2DA;
    --accent2-soft: rgba(99, 210, 200, 0.12);
    --grid-line: rgba(227, 168, 87, 0.07);
    --shadow: 0 20px 70px -25px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0A0D11;
  --bg-2: #0E1216;
  --panel: #12161C;
  --panel-2: #171C23;
  --text: #ECE8DF;
  --text-muted: #9BA3AC;
  --text-faint: #6B7480;
  --border: rgba(236, 232, 223, 0.09);
  --border-strong: rgba(236, 232, 223, 0.16);
  --accent: #E3A857;
  --accent-strong: #F2BE74;
  --accent-soft: rgba(227, 168, 87, 0.12);
  --accent2: #63D2C8;
  --accent2-strong: #8CE2DA;
  --accent2-soft: rgba(99, 210, 200, 0.12);
  --grid-line: rgba(227, 168, 87, 0.07);
  --shadow: 0 20px 70px -25px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #EEF1F2;
  --bg-2: #E5E9EA;
  --panel: #FFFFFF;
  --panel-2: #F7F8F8;
  --text: #14181C;
  --text-muted: #4B535A;
  --text-faint: #7A828A;
  --border: rgba(20, 24, 28, 0.10);
  --border-strong: rgba(20, 24, 28, 0.18);
  --accent: #B4701E;
  --accent-strong: #955C15;
  --accent-soft: rgba(180, 112, 30, 0.12);
  --accent2: #0E8C88;
  --accent2-strong: #0A6E6B;
  --accent2-soft: rgba(14, 140, 136, 0.12);
  --grid-line: rgba(20, 24, 28, 0.06);
  --shadow: 0 20px 60px -30px rgba(20, 24, 28, 0.35);
  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 3px;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.025;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Ambient signal field — a persistent, low-alpha animated layer (drifting
   light streaks + a faint shimmering grid) that runs behind every section,
   not just the hero and contact canvases, so the page keeps a pulse as you
   scroll through the quieter sections in between. */
.ambient-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 998;
  mix-blend-mode: overlay;
}

/* ---------- Utility ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.eyebrow--cyan { color: var(--accent2); }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.12;
  text-wrap: balance;
  max-width: 18ch;
}

.hl { color: var(--accent2); font-style: italic; }

.reveal {
  --ty: 28px;
  --rx: 0deg;
  --ry: 0deg;
  opacity: 0;
  transform: translateY(var(--ty)) perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible { opacity: 1; --ty: 0px; }
.reveal.tilt.is-visible { transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 3px;
  border: 1px solid transparent;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #14100A;
}
.btn--primary:hover { background: var(--accent-strong); transform: translateY(-2px); }
.btn--ghost {
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent2); color: var(--accent2); transform: translateY(-2px); }

/* ---------- Progress rail ---------- */
.progress-rail {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  z-index: 300;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 0.12s linear;
}

/* ---------- Boot sequence (hero entrance) ---------- */
.boot-el {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--d, 0) * 110ms + 200ms);
}
body:not(.is-booting) .boot-el { opacity: 1; transform: translateY(0); }
.hero__headline .boot-el { display: block; }
@media (prefers-reduced-motion: reduce) {
  .boot-el { opacity: 1; transform: none; transition: none; }
}

/* ---------- Topbar ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 4vw, 2.5rem);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s ease, background 0.4s ease;
}
.topbar.is-scrolled { border-bottom-color: var(--border); }
.topbar__mark {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  color: var(--accent);
}
.topbar__nav { display: flex; gap: clamp(1rem, 3vw, 2rem); }
.topbar__nav a { color: var(--text-muted); letter-spacing: 0.04em; transition: color 0.25s ease; }
.topbar__nav a:hover { color: var(--accent2); }
.topbar__cta {
  border: 1px solid var(--border-strong);
  padding: 0.45rem 0.9rem;
  border-radius: 2px;
  letter-spacing: 0.04em;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.topbar__cta:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 720px) {
  .topbar__nav { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}
#signal-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 75%);
  pointer-events: none;
}
.hero__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 38%, transparent 0%, var(--bg) 92%),
    linear-gradient(180deg, transparent 60%, var(--bg) 100%);
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(6rem, 14vh, 9rem) var(--gutter) 2.5rem;
  text-align: left;
}
.hero__headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
  max-width: 17ch;
}
.hero__headline em {
  font-style: italic;
  color: var(--accent2);
}
.hero__sub {
  margin-top: 1.75rem;
  max-width: 52ch;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  color: var(--text-muted);
  line-height: 1.65;
}
.hero__actions {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__cue {
  position: absolute;
  left: var(--gutter);
  bottom: 5.5rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.hero__cue span:first-child {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--text-faint);
  writing-mode: vertical-rl;
}
.hero__cue-line {
  position: relative;
  width: 1px;
  height: 46px;
  background: var(--border-strong);
  overflow: hidden;
}
.hero__cue-dot {
  position: absolute;
  left: -1.5px;
  top: -8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent2);
  animation: cue-drop 2.2s ease-in-out infinite;
}
@keyframes cue-drop {
  0% { transform: translateY(-4px); opacity: 0; }
  25% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateY(50px); opacity: 0; }
}
@media (max-width: 720px) {
  .hero__cue { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__cue-dot { animation: none; top: 20px; opacity: 1; }
}

.hero__strip {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  overflow: hidden;
  padding: 1rem 0;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
}
.hero__strip-track {
  display: flex;
  gap: 1.25rem;
  white-space: nowrap;
  width: max-content;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  animation: scroll-strip 32s linear infinite;
}
.hero__strip-track span:nth-child(4n+1) { color: var(--accent); }
@keyframes scroll-strip {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__strip-track { animation: none; overflow-x: auto; }
}

/* ---------- Sweep divider ---------- */
.sweep-divider {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.sweep-divider__line {
  display: block;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.55;
}
.sweep-divider__line.is-drawn { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .sweep-divider__line { transform: scaleX(1); }
}

/* ---------- Readout / stats ---------- */
.readout {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(5rem, 10vh, 8rem) var(--gutter) clamp(3rem, 6vh, 4rem);
}
.readout__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  max-width: 760px;
  margin: 0 auto;
}
.stat {
  background: var(--panel);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 500;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}
@media (max-width: 640px) {
  .readout__stats { grid-template-columns: 1fr; }
}

/* ---------- Transmission (cinematic pull-quote) ---------- */
.transmission {
  position: relative;
  background: var(--bg-2);
  overflow: hidden;
}
.transmission::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px);
  background-size: 100% 48px;
  opacity: 0.5;
  pointer-events: none;
}
.transmission__inner {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(6rem, 14vh, 10rem) var(--gutter);
}
.transmission__quote {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.6vw, 2.7rem);
  line-height: 1.42;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.transmission__quote .word {
  display: inline-block;
  opacity: 0.16;
  filter: blur(2px);
  transition: opacity 0.6s ease, filter 0.6s ease;
  transition-delay: calc(var(--wi, 0) * 14ms);
}
.transmission__quote.is-visible .word {
  opacity: 1;
  filter: blur(0);
}
.transmission__quote em.hl {
  font-style: italic;
  color: var(--accent2);
}
@media (prefers-reduced-motion: reduce) {
  .transmission__quote .word { opacity: 1; filter: none; transition: none; }
}

/* ---------- Build / case study ---------- */
.tilt { will-change: transform; }

/* ---------- Track record / proof points ---------- */
.proof {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(4rem, 8vh, 6rem) var(--gutter) clamp(5rem, 10vh, 8rem);
}
.proof__head { max-width: 62ch; margin-bottom: clamp(2.5rem, 6vh, 4rem); }
.proof__intro {
  margin-top: 1.4rem;
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 58ch;
}
.proof__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.proof__card {
  background: var(--panel);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
}
.proof__card--ai { background: var(--accent2-soft); }
.proof__card-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.proof__card-label--ai { color: var(--accent2); }
.proof__card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  margin-bottom: 0.9rem;
}
.proof__card p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.96rem;
}
.proof__card .chip-row { margin-top: 1.3rem; }
@media (max-width: 720px) {
  .proof__grid { grid-template-columns: 1fr; }
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.chip-row li {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text-muted);
  transition: border-color 0.25s ease, color 0.25s ease;
}
.chip-row li:hover { border-color: var(--accent2); color: var(--accent2-strong); }
.chip-row--static li {
  opacity: 1;
  transform: none;
  font-size: 0.74rem;
  padding: 0.4rem 0.7rem;
}

/* ---------- Service log / timeline ---------- */
.log {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(4rem, 8vh, 6rem) var(--gutter) clamp(5rem, 10vh, 8rem);
  position: relative;
}
.log__head { max-width: 60ch; margin-bottom: clamp(3rem, 7vh, 4.5rem); }

.timeline {
  --tl-col: clamp(7.5rem, 14vw, 9.5rem);
  --tl-gap: clamp(1.5rem, 3vw, 2.5rem);
  --tl-line: calc(var(--tl-col) + var(--tl-gap) / 2);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vh, 3.5rem);
}
.timeline::before {
  content: "";
  position: absolute;
  left: var(--tl-line);
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: var(--border-strong);
}
.timeline__pulse {
  position: absolute;
  left: var(--tl-line);
  top: 0.5rem;
  width: 9px;
  height: 9px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 0 4px var(--accent2-soft), 0 0 16px 2px var(--accent2);
  opacity: 0;
  transition: opacity 0.4s ease, top 0.05s linear;
  pointer-events: none;
  z-index: 1;
}
.timeline__pulse.is-active { opacity: 1; }
@media (max-width: 640px) {
  .timeline__pulse { left: 0.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .timeline__pulse { display: none; }
}
.timeline__item {
  display: grid;
  grid-template-columns: var(--tl-col) 1fr;
  gap: var(--tl-gap);
  position: relative;
}
.timeline__item::before {
  content: "";
  position: absolute;
  left: var(--tl-line);
  top: 0.4rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-4px);
  box-shadow: 0 0 0 4px var(--bg);
}
.timeline__item--major::before { background: var(--accent2); width: 11px; height: 11px; }
.timeline__when {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-faint);
  padding-top: 0.15rem;
  text-align: right;
}
.timeline__body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 400;
}
.timeline__org {
  margin-top: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.timeline__body > p:not(.timeline__org) {
  margin-top: 0.9rem;
  color: var(--text-muted);
  max-width: 62ch;
  line-height: 1.7;
}
.timeline__milestones {
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 62ch;
}
.timeline__milestones li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.timeline__milestones li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  background: var(--border-strong);
}
.timeline__milestones li span { color: var(--text); font-weight: 600; }
.timeline__milestones-ai {
  color: var(--text);
  background: var(--accent2-soft);
  margin: 0.3rem -0.75rem 0;
  padding: 0.6rem 0.75rem 0.6rem 1.85rem !important;
  border-radius: 4px;
}
.timeline__milestones-ai::before { background: var(--accent2); }
.timeline__milestones-ai span { color: var(--accent2-strong); }

@media (max-width: 640px) {
  .timeline::before { left: 0.4rem; }
  .timeline__item, .timeline__item::before { grid-template-columns: 1fr; }
  .timeline__item { padding-left: 1.4rem; }
  .timeline__item::before { left: 0.4rem; top: 0.4rem; }
  .timeline__when { text-align: left; margin-bottom: 0.4rem; }
}

/* ---------- Instrument panel / skills ---------- */
.panel {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(4rem, 8vh, 6rem) var(--gutter) clamp(5rem, 10vh, 8rem);
}
.panel__head { max-width: 60ch; margin-bottom: clamp(2.5rem, 6vh, 4rem); }
.panel__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.panel__card {
  background: var(--panel);
  padding: clamp(1.6rem, 2.5vw, 2.1rem);
  display: flex;
  flex-direction: column;
}
.panel__card-top { margin-bottom: 1.1rem; }
.panel__code {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  border: 1px solid var(--border-strong);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}
.panel__code--ai { color: var(--accent2-strong); border-color: var(--accent2); }
.panel__card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 1.1rem;
}
.panel__card--ai { background: var(--accent2-soft); }
.tag-list { display: flex; flex-direction: column; gap: 0.55rem; }
.tag-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding-left: 0.9rem;
  position: relative;
}
.tag-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 1px;
  background: var(--accent);
}
.panel__card--ai .tag-list li::before { background: var(--accent2); }

@media (max-width: 900px) {
  .panel__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .panel__grid { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
.contact {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
#contact-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}
.contact__inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(5rem, 12vh, 8rem) var(--gutter);
}
.contact__headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  max-width: 14ch;
  text-wrap: balance;
}
.contact__sub {
  margin-top: 1.5rem;
  max-width: 56ch;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}
.contact__cta {
  margin-top: clamp(2.5rem, 5vh, 3.5rem);
  display: inline-flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 1.6rem 2.2rem;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.contact__cta:hover {
  background: var(--accent2-soft);
  border-color: var(--accent2);
  transform: translateY(-2px);
}
.contact__cta-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.contact__cta-value {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 400;
  color: var(--accent2-strong);
}
.contact__status {
  margin-top: 2.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 0 0 var(--accent2-soft);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(99, 210, 200, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(99, 210, 200, 0); }
  100% { box-shadow: 0 0 0 0 rgba(99, 210, 200, 0); }
}
/* ---------- Footer ---------- */
.footer {
  max-width: var(--container);
  margin: 0 auto;
  padding: 2rem var(--gutter) 3rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-faint);
}
