/* ============================================================
   Tai VONG — Homepage
   Backend & platform engineering · dark navy canvas
   Geist / Geist Mono · restrained cyan + amber signal accents
   ============================================================ */

:root {
  --hb-bg:            #05070b;
  --hb-bg-alt:         #080b12;
  --hb-surface:        #0c1119;
  --hb-surface-2:      #10151f;
  --hb-border:         rgba(148, 197, 255, 0.14);
  --hb-border-strong:  rgba(148, 197, 255, 0.30);
  --hb-line-strong:    rgba(200, 220, 255, 0.55);
  --hb-text:           #f4f7fb;
  --hb-text-dim:       #aab4c8;
  --hb-text-muted:     #758099;
  --hb-cyan:           #49d3ff;
  --hb-cyan-soft:      rgba(73, 211, 255, 0.10);
  --hb-cyan-dim:       rgba(73, 211, 255, 0.35);
  --hb-amber:          #f5a524;
  --hb-amber-soft:     rgba(245, 165, 36, 0.10);
  --hb-font-sans:      'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --hb-font-mono:      'Geist Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  --hb-radius:         14px;
  --hb-radius-sm:      8px;
  --hb-gutter:         clamp(20px, 4vw, 48px);
  --hb-ease:           cubic-bezier(0.16, 1, 0.3, 1);
}

/* === RESET / BASE (scoped to homepage only) === */
body.is-home {
  background: var(--hb-bg);
  color: var(--hb-text-dim);
  font-family: var(--hb-font-sans);
  line-height: 1.5;
  overflow: visible;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body.is-home * { box-sizing: border-box; }
body.is-home img { display: block; max-width: 100%; }
body.is-home ul, body.is-home ol { list-style: none; margin: 0; padding: 0; }
body.is-home h1, body.is-home h2, body.is-home h3, body.is-home p, body.is-home dl, body.is-home dd, body.is-home dt { margin: 0; }
body.is-home a { color: inherit; text-decoration: none; }
body.is-home ::selection { background: var(--hb-cyan); color: #04141c; }

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

body.is-home a:focus-visible,
body.is-home button:focus-visible {
  outline: 2px solid var(--hb-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: fixed;
  top: -60px;
  left: 12px;
  z-index: 999;
  background: var(--hb-cyan);
  color: #04141c;
  font-family: var(--hb-font-mono);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--hb-radius-sm);
  transition: top 0.18s var(--hb-ease);
}
.skip-link:focus { top: 12px; }

/* === SHARED CONTAINER === */
.hb-container,
.hb-nav-inner,
.hb-hero-grid,
.hb-final-cta,
.hb-footer-inner {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--hb-gutter);
  padding-right: var(--hb-gutter);
}

/* === NAV === */
.hb-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 7, 11, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hb-border);
}

.hb-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.hb-wordmark {
  font-family: var(--hb-font-mono);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  color: var(--hb-text);
  flex-shrink: 0;
}
.hb-wordmark-accent { color: var(--hb-cyan); }

.hb-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
}
.hb-nav-links a {
  color: var(--hb-text-dim);
  position: relative;
  padding: 6px 2px;
  transition: color 0.15s ease;
}
.hb-nav-links a:hover { color: var(--hb-text); }
.hb-nav-links a::after {
  content: "";
  position: absolute;
  left: 2px; right: 2px; bottom: 2px;
  height: 1px;
  background: var(--hb-cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--hb-ease);
}
.hb-nav-links a:hover::after { transform: scaleX(1); }

.hb-nav-actions { display: flex; align-items: center; gap: 12px; }
.hb-nav-cta { display: inline-flex; }

.hb-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--hb-radius-sm);
  border: 1px solid var(--hb-border);
  background: transparent;
  flex-shrink: 0;
}
.hb-nav-toggle-bar {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--hb-text-dim);
  transition: transform 0.2s var(--hb-ease), opacity 0.2s var(--hb-ease);
}
.hb-nav-toggle[aria-expanded="true"] .hb-nav-toggle-bar:nth-child(2) { transform: translateY(6.5px) rotate(45deg); }
.hb-nav-toggle[aria-expanded="true"] .hb-nav-toggle-bar:nth-child(3) { opacity: 0; }
.hb-nav-toggle[aria-expanded="true"] .hb-nav-toggle-bar:nth-child(4) { transform: translateY(-6.5px) rotate(-45deg); }

.hb-mobile-nav {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 8px var(--hb-gutter) 20px;
  border-top: 1px solid var(--hb-border);
}
.hb-mobile-nav.is-open { display: flex; }
.hb-mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  color: var(--hb-text-dim);
  border-bottom: 1px solid rgba(148, 197, 255, 0.06);
}
.hb-mobile-nav a:last-child { border-bottom: none; margin-top: 10px; }
.hb-mobile-nav .hb-btn { width: 100%; }

@media (max-width: 900px) {
  .hb-nav-links, .hb-nav-cta, .hb-nav-actions .hb-btn-console { display: none; }
  .hb-nav-toggle { display: flex; }
}

/* === CONSOLE NAV TRIGGER === */
.hb-btn-console {
  background: transparent;
  color: var(--hb-text-dim);
  border-color: var(--hb-border);
  gap: 10px;
}
.hb-btn-console:hover { border-color: var(--hb-cyan-dim); color: var(--hb-cyan); transform: translateY(-1px); }
.hb-kbd {
  font-family: var(--hb-font-mono);
  font-size: 11px;
  line-height: 1;
  color: var(--hb-text-muted);
  border: 1px solid var(--hb-border-strong);
  border-radius: 4px;
  padding: 3px 6px;
  background: rgba(148, 197, 255, 0.05);
}

.hb-mobile-console-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  width: 100%;
  font-family: var(--hb-font-mono);
  font-size: 15px;
  color: var(--hb-text-dim);
  border-bottom: 1px solid rgba(148, 197, 255, 0.06);
  text-align: left;
}
.hb-mobile-console-trigger:hover { color: var(--hb-cyan); }

/* === BUTTONS === */
.hb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--hb-radius-sm);
  font-family: var(--hb-font-mono);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s var(--hb-ease), border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.hb-btn-primary {
  background: var(--hb-cyan);
  color: #04141c;
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(73, 211, 255, 0.4), 0 12px 30px -12px rgba(73, 211, 255, 0.55);
}
body.is-home .hb-btn-primary { color: #04141c; }
.hb-btn-primary:hover { background: #7fe2ff; transform: translateY(-1px); }
.hb-btn-ghost {
  background: transparent;
  color: var(--hb-text);
  border-color: var(--hb-border-strong);
}
.hb-btn-ghost:hover { border-color: var(--hb-cyan); color: var(--hb-cyan); transform: translateY(-1px); }
.hb-btn-lg { padding: 0 28px; min-height: 50px; font-size: 15px; }

/* === HERO === */
.hb-hero {
  position: relative;
  padding-top: clamp(56px, 9vw, 108px);
  padding-bottom: clamp(64px, 9vw, 100px);
  overflow: hidden;
}
.hb-hero::before {
  content: "";
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 640px;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(148, 197, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 197, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 85%);
}
.hb-hero::after {
  content: "";
  position: absolute;
  top: -260px; right: -180px;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(73, 211, 255, 0.14) 0%, transparent 65%);
  z-index: 0;
  pointer-events: none;
}

/* === AMBIENT BACKGROUND === */
.hb-ambient {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0.22;
  pointer-events: none;
}

@media (max-width: 767px) {
  .hb-ambient { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hb-ambient { display: none; }
}

.hb-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.hb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--hb-font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--hb-cyan);
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--hb-border-strong);
  border-radius: 999px;
  background: var(--hb-cyan-soft);
  margin-bottom: 28px;
}
.hb-eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--hb-cyan);
  box-shadow: 0 0 0 3px rgba(73, 211, 255, 0.18);
  animation: hb-pulse 2.4s ease-in-out infinite;
}

.hb-hero-name {
  font-family: var(--hb-font-sans);
  font-weight: 800;
  font-size: clamp(46px, 6.6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--hb-text);
  margin-bottom: 14px;
}

.hb-hero-title {
  font-family: var(--hb-font-mono);
  font-size: clamp(15px, 1.8vw, 19px);
  color: var(--hb-text-dim);
  margin-bottom: 24px;
}
.hb-hero-dot { color: var(--hb-cyan); margin: 0 2px; }

.hb-hero-value {
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.65;
  color: var(--hb-text-dim);
  max-width: 54ch;
  margin-bottom: 36px;
}

.hb-hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 44px; }

/* page-load stagger */
.hb-eyebrow, .hb-hero-name, .hb-hero-title, .hb-hero-value, .hb-hero-ctas, .hb-proof-strip, .hb-hero-visual {
  animation: hb-rise 0.7s var(--hb-ease) both;
}
.hb-eyebrow { animation-delay: 0s; }
.hb-hero-name { animation-delay: 0.05s; }
.hb-hero-title { animation-delay: 0.1s; }
.hb-hero-value { animation-delay: 0.15s; }
.hb-hero-ctas { animation-delay: 0.2s; }
.hb-proof-strip { animation-delay: 0.25s; }
.hb-hero-visual { animation-delay: 0.18s; }

@keyframes hb-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.hb-proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 22px;
  border-top: 1px solid var(--hb-border);
  font-family: var(--hb-font-mono);
  font-size: 13px;
  color: var(--hb-text-muted);
}
.hb-proof-strip li { position: relative; padding-left: 16px; }
.hb-proof-strip li::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  background: var(--hb-cyan-soft);
  border: 1px solid var(--hb-cyan-dim);
  border-radius: 2px;
}

/* === STATUS LINE (tactile detail) === */
.hb-status-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-family: var(--hb-font-mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--hb-text-muted);
}
.hb-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.16);
  animation: hb-status-blink 2.2s ease-in-out infinite;
  flex-shrink: 0;
}
.hb-status-sep { color: var(--hb-border-strong); }
@keyframes hb-status-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* === HERO DIAGRAM === */
.hb-hero-visual { position: relative; z-index: 2; }

.hb-diagram {
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius);
  background: linear-gradient(175deg, rgba(16, 21, 31, 0.7), rgba(8, 11, 17, 0.7));
  padding: clamp(20px, 3vw, 30px);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.65);
}

.hb-diagram-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.hb-diagram-kicker {
  font-family: var(--hb-font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hb-amber);
  font-weight: 600;
}
.hb-diagram-sub { font-size: 12px; color: var(--hb-text-muted); }

.hb-diagram-svg { width: 100%; height: auto; display: block; }

.hb-diagram-stage { position: relative; }

.hb-node rect {
  fill: rgba(148, 197, 255, 0.05);
  stroke: var(--hb-border-strong);
  stroke-width: 1;
}
.hb-node text {
  font-family: var(--hb-font-mono);
  font-size: 11.5px;
  fill: var(--hb-text-dim);
}
.hb-node-signal rect { stroke: var(--hb-amber); fill: var(--hb-amber-soft); }
.hb-node-signal text { fill: var(--hb-amber); font-weight: 600; }
.hb-node-observability rect {
  stroke: var(--hb-cyan-dim);
  stroke-dasharray: 3 3;
  fill: rgba(73, 211, 255, 0.045);
  animation: hb-breathe 4.2s ease-in-out infinite;
}
.hb-node-observability text { fill: var(--hb-text-muted); font-size: 10.5px; letter-spacing: 0.02em; }

.hb-edge { stroke: var(--hb-line-strong); stroke-width: 1.2; }
.hb-tel-path { stroke: rgba(148, 197, 255, 0.22); stroke-width: 1; stroke-dasharray: 2 4; }
.hb-signal-path {
  stroke: var(--hb-amber);
  stroke-width: 1.6;
  stroke-dasharray: 5 5;
  animation: hb-flow 2.6s linear infinite;
}

/* signal pulse traveling API -> Queue -> Store, positioned as a percentage
   of the diagram-stage box so it tracks the svg's viewBox coordinates */
.hb-signal-pulse {
  position: absolute;
  top: 16.5%;
  left: 13.16%;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: var(--hb-cyan);
  box-shadow: 0 0 8px 2px rgba(73, 211, 255, 0.65);
  opacity: 0;
  animation: hb-signal-travel 3.6s var(--hb-ease) infinite;
}

@keyframes hb-signal-travel {
  0%   { left: 13.16%; opacity: 0; }
  4%   { opacity: 1; }
  28%  { left: 13.16%; opacity: 1; }
  40%  { left: 50%;    opacity: 1; }
  64%  { left: 50%;    opacity: 1; }
  76%  { left: 86.84%; opacity: 1; }
  96%  { left: 86.84%; opacity: 1; }
  100% { left: 86.84%; opacity: 0; }
}

.hb-diagram-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--hb-border);
}
.hb-diagram-steps li { display: flex; flex-direction: column; gap: 4px; }
.hb-step-index { font-family: var(--hb-font-mono); font-size: 11px; color: var(--hb-text-muted); }
.hb-step-name {
  font-family: var(--hb-font-mono);
  font-size: 12.5px;
  color: var(--hb-text);
  font-weight: 500;
  animation: hb-step-activate 3.6s ease-in-out infinite;
}
.hb-diagram-steps li:nth-child(1) .hb-step-name { animation-delay: 0s; }
.hb-diagram-steps li:nth-child(2) .hb-step-name { animation-delay: 0.9s; }
.hb-diagram-steps li:nth-child(3) .hb-step-name { animation-delay: 1.8s; }
.hb-diagram-steps li:nth-child(4) .hb-step-name { animation-delay: 2.7s; }

@keyframes hb-step-activate {
  0%, 89%, 100% { color: var(--hb-text); text-shadow: none; }
  4%, 20% { color: var(--hb-cyan); text-shadow: 0 0 12px rgba(73, 211, 255, 0.45); }
}

@keyframes hb-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes hb-flow { to { stroke-dashoffset: -20; } }
@keyframes hb-breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

@media (max-width: 960px) {
  .hb-hero-grid { grid-template-columns: 1fr; }
  .hb-hero-visual { order: 2; margin-top: 8px; }
}

@media (max-width: 480px) {
  .hb-diagram-steps { grid-template-columns: repeat(2, 1fr); row-gap: 14px; }
}

/* === SECTIONS SHARED === */
.hb-section { position: relative; padding-top: clamp(64px, 8vw, 108px); padding-bottom: clamp(64px, 8vw, 108px); }
.hb-section-alt { background: var(--hb-bg-alt); border-top: 1px solid var(--hb-border); border-bottom: 1px solid var(--hb-border); }

.hb-section-head { max-width: 640px; margin-bottom: 48px; }
.hb-section-kicker {
  font-family: var(--hb-font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hb-cyan);
  margin-bottom: 12px;
}
.hb-section-title {
  font-family: var(--hb-font-sans);
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--hb-text);
}

.hb-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--hb-font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--hb-cyan);
  border: 1px solid var(--hb-border-strong);
  background: var(--hb-cyan-soft);
  border-radius: 999px;
  padding: 5px 12px;
}
.hb-badge-amber { color: var(--hb-amber); border-color: rgba(245, 165, 36, 0.4); background: var(--hb-amber-soft); }

/* === SELECTED WORK === */
.hb-work-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
  align-items: stretch;
}

.hb-oss-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius);
  background: var(--hb-surface);
  transition: border-color 0.2s ease, transform 0.2s var(--hb-ease), background 0.2s ease;
}
.hb-oss-card:hover { border-color: var(--hb-cyan-dim); background: var(--hb-surface-2); transform: translateY(-2px); }
.hb-oss-card-top { display: flex; align-items: center; justify-content: space-between; }
.hb-oss-icon { font-size: 20px; color: var(--hb-text-muted); }
.hb-oss-name { font-family: var(--hb-font-mono); font-size: 22px; font-weight: 700; color: var(--hb-text); }
.hb-oss-desc { font-size: 14.5px; line-height: 1.65; color: var(--hb-text-dim); flex-grow: 1; }
.hb-oss-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hb-oss-tags li {
  font-family: var(--hb-font-mono);
  font-size: 11.5px;
  color: var(--hb-text-muted);
  border: 1px solid var(--hb-border);
  border-radius: 999px;
  padding: 3px 10px;
}
.hb-oss-link { font-family: var(--hb-font-mono); font-size: 13.5px; color: var(--hb-cyan); }

.hb-writing-proof {
  padding: 28px;
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius);
  background: var(--hb-surface);
  display: flex;
  flex-direction: column;
}
.hb-writing-proof-label {
  font-family: var(--hb-font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hb-text-muted);
  margin-bottom: 18px;
}
.hb-writing-proof-list { display: flex; flex-direction: column; gap: 4px; }
.hb-writing-proof-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  font-size: 14px;
  color: var(--hb-text);
  border-bottom: 1px solid rgba(148, 197, 255, 0.08);
  transition: color 0.15s ease;
}
.hb-writing-proof-list li:last-child a { border-bottom: none; }
.hb-writing-proof-list a:hover { color: var(--hb-cyan); }
.hb-writing-proof-list a span { color: var(--hb-text-muted); flex-shrink: 0; }
.hb-writing-proof-list a:hover span { color: var(--hb-cyan); }

.hb-case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hb-case-card {
  padding: 24px;
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius);
  background: transparent;
  transition: border-color 0.2s ease;
}
.hb-case-card:hover { border-color: var(--hb-border-strong); }
.hb-case-kicker {
  font-family: var(--hb-font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hb-amber);
  margin-bottom: 10px;
}
.hb-case-title { font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--hb-text); margin-bottom: 16px; }
.hb-case-meta { display: flex; flex-direction: column; gap: 10px; }
.hb-case-meta dt {
  font-family: var(--hb-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hb-text-muted);
  margin-bottom: 2px;
}
.hb-case-meta dd { font-size: 13px; line-height: 1.55; color: var(--hb-text-dim); }
.hb-case-meta dd a { color: var(--hb-cyan); text-decoration: underline; text-decoration-color: var(--hb-cyan-dim); text-underline-offset: 2px; }

@media (max-width: 860px) {
  .hb-work-grid { grid-template-columns: 1fr; }
  .hb-case-grid { grid-template-columns: 1fr; }
}

/* === SERVICES === */
.hb-offer-primary {
  position: relative;
  padding: clamp(28px, 4vw, 40px);
  border: 1px solid var(--hb-border-strong);
  border-radius: var(--hb-radius);
  background: linear-gradient(135deg, rgba(245, 165, 36, 0.06), rgba(73, 211, 255, 0.04));
  margin-bottom: 24px;
}
.hb-offer-primary .hb-badge { margin-bottom: 20px; }
.hb-offer-primary-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  margin-bottom: 28px;
}
.hb-offer-title { font-family: var(--hb-font-sans); font-size: 24px; font-weight: 700; color: var(--hb-text); margin-bottom: 8px; }
.hb-offer-format { font-family: var(--hb-font-mono); font-size: 13px; color: var(--hb-cyan); margin-bottom: 14px; }
.hb-offer-desc { font-size: 15px; line-height: 1.65; color: var(--hb-text-dim); }
.hb-offer-deliverables { display: flex; flex-direction: column; gap: 12px; align-self: start; }
.hb-offer-deliverables li,
.hb-offer-bullets li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--hb-text-dim);
}
.hb-offer-deliverables li::before,
.hb-offer-bullets li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 8px; height: 1.5px;
  background: var(--hb-cyan);
}

.hb-offer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 32px; }
.hb-offer-card {
  padding: 26px;
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius);
  background: var(--hb-surface);
  transition: border-color 0.2s ease;
}
.hb-offer-card:hover { border-color: var(--hb-border-strong); }
.hb-offer-card .hb-offer-title { font-size: 19px; }
.hb-offer-card .hb-offer-desc { font-size: 14px; margin-bottom: 18px; }
.hb-offer-card .hb-offer-bullets { display: flex; flex-direction: column; gap: 10px; }

.hb-offer-footnote { font-size: 14px; color: var(--hb-text-muted); max-width: 62ch; }

@media (max-width: 860px) {
  .hb-offer-primary-grid { grid-template-columns: 1fr; }
  .hb-offer-grid { grid-template-columns: 1fr; }
}

/* === HOW I WORK === */
.hb-loop {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}
.hb-loop-step {
  position: relative;
  padding: 24px 20px 24px 0;
  border-top: 2px solid var(--hb-border-strong);
}
.hb-loop-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: -13px;
  right: -2px;
  color: var(--hb-text-muted);
  font-family: var(--hb-font-mono);
  font-size: 14px;
}
.hb-loop-index { display: block; font-family: var(--hb-font-mono); font-size: 12px; color: var(--hb-cyan); margin-bottom: 12px; }
.hb-loop-name { font-size: 16px; font-weight: 600; color: var(--hb-text); margin-bottom: 8px; }
.hb-loop-desc { font-size: 13px; line-height: 1.6; color: var(--hb-text-muted); }

@media (max-width: 960px) {
  .hb-loop { grid-template-columns: 1fr; gap: 0; }
  .hb-loop-step { padding: 20px 0; border-top: 1px solid var(--hb-border); }
  .hb-loop-step::after { display: none; }
}

/* === WRITING & OPEN SOURCE === */
.hb-writing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.hb-writing-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius);
  background: var(--hb-surface);
  transition: border-color 0.2s ease, transform 0.2s var(--hb-ease);
}
.hb-writing-card:hover { border-color: var(--hb-cyan-dim); transform: translateY(-2px); }
.hb-writing-kicker { font-family: var(--hb-font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--hb-text-muted); }
.hb-writing-title { font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--hb-text); }
.hb-writing-desc { font-size: 13.5px; line-height: 1.6; color: var(--hb-text-dim); flex-grow: 1; }
.hb-writing-link { font-family: var(--hb-font-mono); font-size: 13px; color: var(--hb-cyan); margin-top: 4px; }

@media (max-width: 860px) {
  .hb-writing-grid { grid-template-columns: 1fr; }
}

/* === ABOUT === */
.hb-about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(24px, 5vw, 64px); }
.hb-about-head { margin-bottom: 0; }
.hb-about-body { display: flex; flex-direction: column; gap: 16px; font-size: 16px; line-height: 1.7; color: var(--hb-text-dim); }
.hb-inline-link { color: var(--hb-cyan); text-decoration: underline; text-decoration-color: var(--hb-cyan-dim); text-underline-offset: 3px; }
.hb-about-location { display: flex; align-items: center; gap: 8px; font-family: var(--hb-font-mono); font-size: 13px; color: var(--hb-text-muted); margin-top: 4px; }

@media (max-width: 760px) {
  .hb-about-grid { grid-template-columns: 1fr; }
}

/* === FINAL CTA === */
.hb-final-cta {
  padding-top: clamp(72px, 10vw, 120px);
  padding-bottom: clamp(72px, 10vw, 120px);
  text-align: center;
  position: relative;
}
.hb-final-cta::before {
  content: "";
  position: absolute;
  left: 50%; top: 0;
  transform: translateX(-50%);
  width: min(720px, 100%); height: 420px;
  background: radial-gradient(ellipse at center, rgba(73, 211, 255, 0.10) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hb-final-cta-title {
  position: relative;
  z-index: 1;
  font-family: var(--hb-font-sans);
  font-weight: 800;
  font-size: clamp(28px, 4.4vw, 48px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--hb-text);
  max-width: 20ch;
  margin: 0 auto 18px;
}
.hb-final-cta-sub {
  position: relative;
  z-index: 1;
  font-size: 16px;
  line-height: 1.6;
  color: var(--hb-text-dim);
  max-width: 52ch;
  margin: 0 auto 36px;
}
.hb-final-cta-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* === FOOTER === */
.hb-footer { border-top: 1px solid var(--hb-border); padding-top: 32px; padding-bottom: 32px; }
.hb-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.hb-footer-wordmark { font-size: 14px; }
.hb-footer-social { display: flex; align-items: center; gap: 18px; }
.hb-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  color: var(--hb-text-muted);
  font-size: 16px;
  border-radius: var(--hb-radius-sm);
  transition: color 0.15s ease;
}
.hb-footer-social a:hover { color: var(--hb-cyan); }
.hb-footer-copy { font-size: 12.5px; color: var(--hb-text-muted); }
.hb-footer-copy a { color: var(--hb-text-muted); text-decoration: underline; text-decoration-color: rgba(148, 197, 255, 0.25); }
.hb-footer-copy a:hover { color: var(--hb-cyan); }

@media (max-width: 560px) {
  .hb-footer-inner { flex-direction: column; text-align: center; }
}

/* === BOOT OVERLAY === */
.hb-boot {
  position: fixed;
  inset: 0;
  z-index: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hb-bg);
  padding: var(--hb-gutter);
}
.hb-boot[hidden] { display: none; }
.hb-boot.hb-boot-dismissing { animation: hb-boot-fade-out 0.25s ease forwards; }

.hb-boot-panel {
  width: 100%;
  max-width: 640px;
  font-family: var(--hb-font-mono);
  font-size: 14px;
  line-height: 1.8;
}
.hb-boot-line {
  opacity: 0;
  color: var(--hb-text-dim);
  animation: hb-boot-line-in 0.4s var(--hb-ease) forwards;
}
.hb-boot-line-title {
  color: var(--hb-text);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}
.hb-boot-line:nth-child(1) { animation-delay: 0s; }
.hb-boot-line:nth-child(2) { animation-delay: 0.2s; }
.hb-boot-line:nth-child(3) { animation-delay: 0.38s; }
.hb-boot-line:nth-child(4) { animation-delay: 0.56s; }
.hb-boot-line:nth-child(5) { animation-delay: 0.78s; }
.hb-boot-tag { display: inline-block; width: 80px; white-space: nowrap; }
.hb-boot-ok { color: var(--hb-cyan); }
.hb-boot-ready { color: var(--hb-amber); font-weight: 600; }
.hb-boot-line-ready { margin-top: 6px; }
.hb-boot-hint {
  opacity: 0;
  margin-top: 22px;
  font-size: 12px;
  color: var(--hb-text-muted);
  animation: hb-boot-line-in 0.4s var(--hb-ease) forwards;
  animation-delay: 1.05s;
}

@keyframes hb-boot-line-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
@keyframes hb-boot-fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* === TERMINAL CONSOLE === */
.hb-console {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
}
.hb-console[hidden] { display: none; }

.hb-console-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 10, 0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.hb-console-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 720px;
  height: min(560px, 82vh);
  border: 1px solid var(--hb-border-strong);
  border-radius: var(--hb-radius);
  background: linear-gradient(175deg, rgba(16, 21, 31, 0.97), rgba(6, 9, 14, 0.99));
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(73, 211, 255, 0.06);
  overflow: hidden;
  animation: hb-console-in 0.2s var(--hb-ease) both;
}

@keyframes hb-console-in {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.hb-console-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hb-border);
  flex-shrink: 0;
}
.hb-console-status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--hb-cyan);
  box-shadow: 0 0 0 3px rgba(73, 211, 255, 0.16);
  animation: hb-status-blink 2.2s ease-in-out infinite;
  flex-shrink: 0;
}
.hb-console-title {
  flex: 1;
  font-family: var(--hb-font-mono);
  font-size: 12.5px;
  color: var(--hb-text-muted);
  letter-spacing: 0.02em;
}
.hb-console-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--hb-radius-sm);
  color: var(--hb-text-muted);
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}
.hb-console-close:hover { color: var(--hb-cyan); background: var(--hb-cyan-soft); }

.hb-console-output {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
  font-family: var(--hb-font-mono);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--hb-text-dim);
}
.hb-console-output::-webkit-scrollbar { width: 5px; }
.hb-console-output::-webkit-scrollbar-track { background: transparent; }
.hb-console-output::-webkit-scrollbar-thumb { background: var(--hb-border-strong); border-radius: 3px; }

.hb-console-line { white-space: pre-wrap; margin-bottom: 4px; }
.hb-console-line-echo { color: var(--hb-text); }
.hb-console-line-echo .hb-console-echo-prompt { color: var(--hb-cyan); margin-right: 6px; }
.hb-console-line-muted { color: var(--hb-text-muted); }
.hb-console-line-error { color: #ef7a6b; }
.hb-console-mailto {
  display: inline-flex;
  margin-top: 6px;
  color: var(--hb-cyan);
  text-decoration: underline;
  text-decoration-color: var(--hb-cyan-dim);
  text-underline-offset: 3px;
}

.hb-console-inputrow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid var(--hb-border);
  flex-shrink: 0;
}
.hb-console-prompt {
  font-family: var(--hb-font-mono);
  font-size: 13.5px;
  color: var(--hb-cyan);
  white-space: nowrap;
  flex-shrink: 0;
}
.hb-console-prompt-sep,
.hb-console-prompt-dollar { color: var(--hb-text-muted); }
.hb-console-prompt-path { color: #3ddc84; }
.hb-console-prompt-dollar { margin-right: 8px; }
.hb-console-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--hb-text);
  font-family: var(--hb-font-mono);
  font-size: 13.5px;
  caret-color: var(--hb-cyan);
}
.hb-console-input:focus { outline: none; }

@media (max-width: 640px) {
  .hb-console { padding: 0; }
  .hb-console-panel { max-width: none; height: 100%; border-radius: 0; }
}

html.hb-scroll-lock,
html.hb-scroll-lock body {
  overflow: hidden;
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  body.is-home *,
  body.is-home *::before,
  body.is-home *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* === MOBILE === */
@media (max-width: 640px) {
  .hb-hero-ctas .hb-btn,
  .hb-final-cta-actions .hb-btn { width: 100%; }
  .hb-nav-cta { display: none; }
}
