@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #000000;
  --obsidian: #0c0c0c;
  --obsidian-elevated: #141414;
  --lime: #ccff00;
  --emerald: #10b981;
  --text: #ebebeb;
  --text-muted: rgba(235, 235, 235, 0.6);
  --text-dim: rgba(235, 235, 235, 0.3);
  --white: #ffffff;
  --ring: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.1);
  --method-bg: #e5e5e5;
  --method-text: #000000;
  --method-muted: rgba(0, 0, 0, 0.6);
  --radius-shell: 2.5rem;
  --radius-panel: 2rem;
  --radius-card: 1.5rem;
  --radius-row: 1rem;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-base: 0ms;
    --transition-slow: 0ms;
  }
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--text);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  border-radius: 0 0 0.5rem 0.5rem;
  z-index: 10000;
  transition: top var(--transition-fast);
}
.skip-link:focus { top: 0; }

.viewport {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(204, 255, 0, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(16, 185, 129, 0.03) 0%, transparent 50%),
    var(--ink);
  position: relative;
}
.viewport::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)' opacity='0.15'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}
.viewport::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.shell {
  position: relative;
  max-width: 1600px;
  margin: 0 auto;
  background: var(--obsidian);
  border: 1px solid var(--ring);
  border-radius: var(--radius-shell);
  box-shadow: 0 0 0 1px var(--ring), 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  z-index: 1;
}

.mono-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}
.mono-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-dim);
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}
:focus:not(:focus-visible) { outline: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  gap: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  text-decoration: none;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-fast), color var(--transition-fast);
}
.btn-primary {
  position: relative;
  overflow: hidden;
  background-color: var(--lime);
  background-image: linear-gradient(var(--white), var(--white));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 0%;
  color: var(--ink);
  padding: 1rem 2rem;
  box-shadow: 0 0 30px rgba(204, 255, 0, 0.3);
  transition: transform var(--transition-base), box-shadow var(--transition-base), background-size var(--transition-slow), color var(--transition-fast);
}
.btn-primary:hover { transform: scale(1.05); background-size: 100% 100%; box-shadow: 0 0 40px rgba(204, 255, 0, 0.5); }
.btn-primary:active { transform: scale(0.98); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  padding: 1rem 1.5rem;
  border: 1px solid var(--ring);
}
.btn-ghost:hover { background: var(--glass-bg); border-color: var(--lime); color: var(--lime); }
.btn-dark {
  background: var(--obsidian-elevated);
  color: var(--text);
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--ring);
}
.btn-dark:hover { border-color: var(--lime); background: var(--obsidian); }
.btn-lg { padding: 1.25rem 2.5rem; font-size: 1.125rem; }

.nav {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: 1560px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1rem;
  z-index: 100;
}
@media (max-width: 768px) { .nav { top: 1rem; width: calc(100% - 2rem); padding: 0 0.5rem; } }

.monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--lime);
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.monogram-static { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--lime); color: var(--ink); font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.875rem; border-radius: 0.5rem; }

.nav-pill {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 9999px;
}
.nav-pill a {
  padding: 0.5rem 1rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 9999px;
  transition: color var(--transition-fast), background var(--transition-fast);
}
.nav-pill a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
@media (max-width: 768px) { .nav-pill { display: none; } }

.nav-right { display: flex; align-items: center; gap: 1rem; }
.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(204, 255, 0, 0.5); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(204, 255, 0, 0); }
}
@media (prefers-reduced-motion: reduce) { .status-dot { animation: none; opacity: 1; box-shadow: 0 0 0 2px rgba(204, 255, 0, 0.3); } }
.nav-cta {
  padding: 0.5rem 1rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text);
  text-decoration: none;
  background: transparent;
  border: 1px solid var(--ring);
  border-radius: 9999px;
  transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}
.nav-cta:hover { border-color: var(--lime); color: var(--lime); background: var(--glass-bg); }
@media (max-width: 768px) { .nav-cta { display: none; } }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.nav-toggle-icon { display: flex; flex-direction: column; justify-content: space-between; width: 20px; height: 16px; }
.nav-toggle-icon span { display: block; width: 100%; height: 2px; background: var(--text); border-radius: 2px; transition: transform var(--transition-base), opacity var(--transition-fast); }
@media (max-width: 768px) { .nav-toggle { display: flex; } }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 320px;
  background: var(--obsidian);
  border-left: 1px solid var(--ring);
  padding: 6rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  z-index: 200;
}
.nav-menu[hidden] { display: none; }
.nav-menu:not([hidden]) { transform: translateX(0); }
@media (min-width: 769px) { .nav-menu { display: none !important; } }
.nav-menu a { display: flex; align-items: center; min-height: 44px; font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 1.25rem; color: var(--text-muted); text-decoration: none; transition: color var(--transition-fast); }
.nav-menu a:hover { color: var(--lime); }

main { padding-top: 6rem; }
@media (max-width: 768px) { main { padding-top: 5rem; } }

.section-head {
  padding: 0 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 768px) { .section-head { padding: 0 1rem; } }
.section-head h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.04em; margin-bottom: 0.5rem; }
.section-head p { font-size: 1rem; color: var(--text-muted); max-width: 50ch; }

.hero { display: grid; grid-template-columns: 7fr 5fr; gap: 2rem; padding: 4rem 2rem 6rem; align-items: start; }

.hero-copy {
  grid-column: 1;
  min-width: 0;
}
.hero-tag { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.15em; color: var(--lime); margin-bottom: 1rem; }
.hero-title { font-size: clamp(3rem, 7.5vw, 7.5rem); font-weight: 700; line-height: 1.0; letter-spacing: -0.06em; margin-bottom: 1.5rem; }
.hero-title-accent { background: linear-gradient(90deg, var(--lime) 0%, var(--white) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lede { font-size: clamp(1rem, 1.5vw, 1.125rem); color: var(--text-muted); line-height: 1.7; max-width: 55ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.hero-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-dim); }
.hero-meta dt { font-weight: 500; color: var(--text-muted); margin-bottom: 0.25rem; }
.hero-meta dd { font-weight: 400; color: var(--text); }
@media (max-width: 768px) { .hero-meta { grid-template-columns: 1fr; gap: 1rem; } }

.hero-panel {
  grid-column: 2;
  position: relative;
  min-width: 0;
  min-height: 420px;
}
.panel-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(204, 255, 0, 0.12) 0%, transparent 70%);
  filter: blur(120px);
  pointer-events: none;
}
.panel-shell {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-panel);
  padding: 1.5rem;
  min-height: 460px;
}
.panel-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--glass-border); }
.panel-state { color: var(--lime); }
.ecg { width: 100%; height: 160px; display: block; }
.ecg-base { stroke: var(--ring); stroke-width: 1; }
.ecg-trace {
  fill: none;
  stroke: var(--lime);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 0;
}

.float-card {
  position: absolute;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  animation: float 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-24px); }
}
@keyframes float-center {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-24px); }
}
@media (prefers-reduced-motion: reduce) { .float-card { animation: none; transform: none; } }
.float-c { bottom: 0%; left: 50%; transform: translateX(-50%); animation: float-center 3s cubic-bezier(0.4, 0, 0.6, 1) infinite backwards; animation-delay: 3s; }
.float-a { top: 12%; left: 5%; animation-delay: 0s; }
.float-b { top: 12%; right: 5%; animation-delay: 1.5s; }
.float-img {
  width: 170px;
  height: 170px;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 1px solid var(--glass-border);
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .hero-copy { display: contents; }
  .hero-tag { order: 1; }
  .hero-title { order: 2; }
  .hero-lede { order: 3; }
  .hero-actions { order: 4; margin-bottom: 1.5rem; }
  .hero-panel { order: 5; grid-column: 1; min-height: 0; margin-bottom: 2rem; }
  .hero-meta { order: 6; }
  .panel-shell {
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }
  .float-card {
    position: static;
    transform: none;
    min-width: 0;
    padding: 0.375rem;
    border-radius: 0.875rem;
    animation: none;
  }
  .float-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
}

.panel-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
}
.panel-photos img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-card);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .panel-photos img { width: 120px; height: 120px; }
}
@media (max-width: 480px) {
  .panel-photos img { width: 100px; height: 100px; }
}

.work { padding: 4rem 2rem 6rem; }
@media (max-width: 768px) { .work { padding: 3rem 1.5rem 4rem; } }
@media (max-width: 768px) {
  .card {
    padding: 1.5rem;
  }
  .card .btn {
    width: 100%;
    justify-content: center;
  }
  .card p {
    overflow-wrap: anywhere;
    word-wrap: break-word;
  }
  .stack-list li {
    flex-wrap: wrap;
  }
  .stack-list li > :last-child {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}
.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}
@media (max-width: 768px) { .bento { grid-template-columns: 1fr; } }
.card-accent { background: var(--lime); color: var(--ink); }

.card {
  display: flex;
  flex-direction: column;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-panel);
  padding: 1.75rem;
  min-width: 0;
  overflow: hidden;
  transition: border-color var(--transition-base);
}

.card:hover { border-color: rgba(204, 255, 0, 0.4); }

.card-accent {
  background: var(--lime);
  color: var(--ink);
}

.card-accent:hover { border-color: rgba(0, 0, 0, 0.3); }

.card .mono-label { display: block; margin-bottom: 0.75rem; color: var(--text-dim); }
.card-accent .mono-label { color: rgba(0, 0, 0, 0.5); }

.card h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.2; margin-bottom: 0.75rem; }
.card-accent h3 { color: var(--ink); }

.card p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  flex: 1;
  min-height: 0;
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

.card-accent p { color: rgba(0, 0, 0, 0.7); }

.stack-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.stack-list li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  min-width: 0;
  flex-wrap: wrap;
}
.stack-list span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.card-accent .stack-list span { color: rgba(0, 0, 0, 0.4); }

.card .btn { align-self: flex-start; width: 100%; max-width: fit-content; }

.capabilities { padding: 4rem 2rem 6rem; background: var(--obsidian); }
@media (max-width: 768px) { .capabilities { padding: 3rem 1.5rem 4rem; } }
.ledger-layout { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; align-items: start; padding: 0 2rem; }
@media (max-width: 1024px) { .ledger-layout { grid-template-columns: 1fr; gap: 2rem; padding: 0 1.5rem; } }
@media (max-width: 768px) { .ledger-layout { padding: 0 1rem; } }

.ledger { display: flex; flex-direction: column; }
.ledger-row { display: grid; grid-template-columns: 180px 1fr; gap: 2rem; padding: 1.25rem 0; border-bottom: 1px solid var(--ring); align-items: start; }
@media (max-width: 640px) { .ledger-row { grid-template-columns: 1fr; gap: 0.5rem; } }
.ledger-row dt { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1rem; color: var(--text); }
.ledger-row dd { color: var(--text-muted); line-height: 1.7; font-size: 0.9375rem; }
.ledger-row:last-child { border-bottom: none; }

.record { background: var(--obsidian-elevated); border: 1px solid var(--ring); border-radius: var(--radius-panel); padding: 1.5rem; height: fit-content; }
.record h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--ring); }
.record-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.record-list li { padding-bottom: 1rem; border-bottom: 1px solid var(--ring); }
.record-list li:last-child { padding-bottom: 0; border-bottom: none; }
.record-list .mono-label { display: block; margin-bottom: 0.25rem; color: var(--lime); }
.record-list p { color: var(--text-muted); font-size: 0.875rem; line-height: 1.6; margin: 0; }
.record-list .mono-sub { display: block; margin-top: 0.25rem; }

.method { padding: 6rem 2rem; background: var(--method-bg); position: relative; }
@media (max-width: 768px) { .method { padding: 4rem 1.5rem; } }
.method::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  width: 80%;
  height: 40%;
  background: radial-gradient(ellipse, rgba(204, 255, 0, 0.06) 0%, transparent 70%);
  filter: blur(120px);
  pointer-events: none;
}
.method-copy { max-width: 520px; margin: 0 auto 4rem; text-align: center; }
@media (max-width: 768px) { .method-copy { max-width: 100%; margin-bottom: 3rem; } }
.method-copy h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.04em; color: var(--method-text); margin-bottom: 1rem; }
.method-lede { color: var(--method-muted); font-size: 1.125rem; line-height: 1.7; }
.method-steps { list-style: none; display: flex; flex-direction: column; gap: 2rem; text-align: left; margin-top: 2rem; }
.method-steps li { display: flex; gap: 1.5rem; align-items: flex-start; position: relative; }
.method-steps li:not(:last-child)::before { content: ''; position: absolute; left: 20px; top: 60px; bottom: -2rem; width: 1px; background: var(--ring); }
.step-number { flex-shrink: 0; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--ink); color: var(--lime); font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 14px; border-radius: 50%; border: 1px solid var(--ring); }
.method-steps h3 { font-size: 1.125rem; font-weight: 700; color: var(--method-text); margin-bottom: 0.25rem; }
.method-steps p { color: var(--method-muted); font-size: 0.9375rem; line-height: 1.6; }

.method-visual { display: flex; flex-direction: column; align-items: center; gap: 2rem; position: relative; }
.dial { width: 320px; height: 320px; }
.dial-ring { fill: none; stroke: var(--ring); stroke-width: 2; }
.dial-ring-inner { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 8 4; }
.dial-arc { fill: none; stroke: var(--lime); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(204, 255, 0, 0.5)); }
.dial-tick line { stroke: var(--ink); stroke-width: 2; }
.dial-hub { fill: var(--ink); stroke: var(--lime); stroke-width: 2; }
.dial-node { font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 500; fill: var(--ink); text-anchor: middle; }
.dial-node rect { fill: var(--obsidian-elevated); stroke: var(--ring); }
.dial-node text { dominant-baseline: middle; }

.flowchart { width: 100%; max-width: 800px; height: 140px; }
.flow-node { font-family: 'JetBrains Mono', monospace; fill: var(--method-text); text-anchor: middle; }
.flow-node-bg { fill: var(--ink); stroke: var(--glass-border); stroke-width: 1.5; filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.3)); transition: stroke-color var(--transition-base), filter var(--transition-base); }
.flow-node:hover .flow-node-bg { stroke: var(--lime); filter: drop-shadow(0 0 12px rgba(204, 255, 0, 0.4)) drop-shadow(0 4px 16px rgba(0, 0, 0, 0.3)); }
.flow-node-label { font-size: 9px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; fill: var(--lime); }
.flow-node-title { font-size: 13px; font-weight: 700; fill: var(--white); }
.flow-node-sub { font-size: 9px; fill: var(--lime); opacity: 0.8; }
.flow-arrow { stroke: var(--glass-border); stroke-width: 2; transition: stroke-color var(--transition-base); }
.flow-arrow:hover { stroke: var(--lime); }
@media (max-width: 768px) {
  .flowchart { height: 280px; }
  .flow-node { transform: translate(0, 0) !important; }
  .flow-arrow { display: none; }
}

.field-note {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 360px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  color: var(--method-text);
}
@media (max-width: 640px) { .field-note { position: static; transform: none; width: 100%; max-width: none; } }
.field-note .mono-label { color: var(--lime); margin-bottom: 0.5rem; display: block; }
.field-note p { font-weight: 600; margin-bottom: 0.5rem; }
.field-note ul { list-style: none; display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.875rem; color: var(--method-muted); }
.field-note li::before { content: '— '; }

.contact { padding: 6rem 2rem; }
@media (max-width: 768px) { .contact { padding: 4rem 1.5rem; } }
.contact-copy { max-width: 520px; margin: 0 auto 3rem; text-align: center; }
.contact-copy h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.04em; margin-bottom: 1rem; }
.contact-copy p { color: var(--text-muted); line-height: 1.7; margin-bottom: 2rem; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: 1rem; }
.copy-feedback { min-height: 1.5rem; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--lime); text-align: center; opacity: 0; transition: opacity var(--transition-fast); }
.copy-feedback.visible { opacity: 1; }
.contact-links { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.contact-links a { display: flex; flex-direction: column; gap: 0.25rem; text-decoration: none; color: var(--text-muted); transition: color var(--transition-fast); }
.contact-links a:hover { color: var(--lime); }
.contact-links .mono-label { color: var(--text-dim); }
.contact-links .link-name { font-family: 'Space Grotesk', sans-serif; font-weight: 500; color: var(--text); }

.footer {
  position: relative;
  background: var(--ink);
  padding: 8rem 2rem 4rem;
  border-top: 1px solid var(--ring);
}
@media (max-width: 768px) { .footer { padding: 6rem 1.5rem 3rem; } }
.watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(6rem, 15vw, 10rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
  width: 100%;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1;
  user-select: none;
}
.footer-cta { position: relative; text-align: center; margin-bottom: 4rem; z-index: 1; }
.footer-cta .mono-label { color: var(--text-dim); margin-bottom: 0.5rem; }
.footer-cta h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.04em; margin-bottom: 1.5rem; }
.btn-primary:hover { color: var(--ink); }
.footer-bottom { display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem; align-items: start; position: relative; z-index: 1; }
@media (max-width: 768px) { .footer-bottom { grid-template-columns: 1fr; gap: 2rem; text-align: center; } }
.footer-brand { display: flex; flex-direction: column; gap: 0.5rem; }
@media (max-width: 768px) { .footer-brand { align-items: center; } }
.footer-brand .monogram-static { margin-bottom: 0.5rem; }
.footer-brand p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
@media (max-width: 768px) { .footer-links { flex-direction: column; gap: 0.75rem; } }
.footer-links a { font-family: 'Space Grotesk', sans-serif; font-weight: 500; color: var(--text-muted); text-decoration: none; transition: color var(--transition-fast); }
.footer-links a:hover { color: var(--lime); }
.footer-social { display: flex; justify-content: flex-end; gap: 1rem; }
@media (max-width: 768px) { .footer-social { justify-content: center; } }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ring);
  border-radius: 50%;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: none;
  transition: border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}
.footer-social a:hover { border-color: var(--lime); color: var(--lime); transform: translateY(-2px); }
.copyright { grid-column: 1 / -1; text-align: center; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--ring); }
@media (max-width: 768px) { .copyright { grid-column: auto; } }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 600ms cubic-bezier(0.4, 0, 0.2, 1), transform 600ms cubic-bezier(0.4, 0, 0.2, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 480px) {
  :root { --space-16: 3rem; --space-20: 4rem; }
  .hero-title { font-size: clamp(2.5rem, 9vw, 4rem); }
  .panel-readouts { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .hero-copy,
  .hero-panel,
  .card,
  .ledger-layout,
  .method-copy,
  .method-visual,
  .contact-copy,
  .contact-links {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .shell {
    border-radius: 1.25rem;
  }

  .nav {
    width: calc(100% - 1.25rem);
    top: 0.625rem;
  }

  .nav-right { gap: 0.5rem; }
  .status-tag { max-width: 10rem; line-height: 1.3; }
  .nav-menu { max-width: none; padding: 5.5rem 1.5rem 2rem; }

  .hero {
    gap: 0;
    padding: 1.5rem 1rem 3rem;
  }

  .hero-tag {
    max-width: 30ch;
    line-height: 1.5;
  }

  .hero-title {
    line-height: 1.05;
    margin-bottom: 1.25rem;
  }

  .hero-actions,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .btn,
  .contact-actions .btn,
  .card .btn,
  .footer-cta .btn {
    width: 100%;
  }

  .hero-panel {
    padding-bottom: 0;
  }

  .panel-shell {
    padding: 0.75rem;
    border-radius: 1.25rem;
  }

  .panel-head {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .ecg { height: 112px; }

  .float-card {
    position: static;
    min-width: 0;
    padding: 0.375rem;
    border-radius: 0.875rem;
    animation: none;
  }

  .float-card strong {
    overflow-wrap: anywhere;
  }

  .work,
  .capabilities,
  .contact {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section-head {
    padding: 0;
  }

  .bento {
    gap: 1rem;
  }

  .card {
    padding: 1.25rem;
    border-radius: 1.25rem;
  }

  .card .btn {
    width: 100%;
    justify-content: center;
  }

  .stack-list li {
    min-width: 0;
    flex-wrap: wrap;
  }

  .stack-list li > :last-child {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .ledger-layout {
    padding: 0;
  }

  .record {
    padding: 1.25rem;
    border-radius: 1.25rem;
  }

  .method {
    padding: 3rem 1rem;
  }

  .method-copy {
    margin-bottom: 2rem;
  }

  .method-lede {
    font-size: 1rem;
  }

  .method-steps {
    gap: 1.5rem;
  }

  .method-steps li {
    gap: 1rem;
  }

  .method-steps p {
    font-size: 0.875rem;
  }

  .dial {
    width: min(320px, 100%);
    height: auto;
  }

  .contact-links {
    align-items: stretch;
    flex-direction: column;
    gap: 0.5rem;
  }

  .contact-links li,
  .contact-links a {
    width: 100%;
  }

  .contact-links a {
    min-height: 44px;
    justify-content: center;
    padding: 0.5rem 0;
  }

  .footer {
    padding: 4rem 1rem 2rem;
  }

  .footer-cta {
    margin-bottom: 3rem;
  }
}