/* ==========================================================
   DESIGN TOKENS
   ========================================================== */
:root {
  --bg: #14171A;
  --bg-elevated: #1C2024;
  --bg-elevated-2: #20252A;
  --border: #2A2F35;
  --border-bright: #3A4148;

  --text-primary: #ECE9E4;
  --text-secondary: #B4BAC2;
  --text-muted: #7C838D;

  --accent-amber: #FF8A3D;
  --accent-amber-dim: #C96A2C;
  --accent-teal: #4FD1C5;
  --accent-red: #E8604C;

  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1080px;
  --radius: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1, h2, h3 {
  font-family: var(--font-mono);
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

/* ==========================================================
   STATUS DOT — reused motif across the whole page
   ========================================================== */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-dot--ok {
  background: var(--accent-teal);
  box-shadow: 0 0 0 0 rgba(79, 209, 197, 0.6);
  animation: pulse-teal 2.4s infinite;
}
.status-dot--warn {
  background: var(--accent-amber);
  box-shadow: 0 0 0 0 rgba(255, 138, 61, 0.6);
  animation: pulse-amber 2.4s infinite;
}
.status-dot--idle {
  background: var(--text-muted);
}

@keyframes pulse-teal {
  0% { box-shadow: 0 0 0 0 rgba(79, 209, 197, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(79, 209, 197, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 209, 197, 0); }
}
@keyframes pulse-amber {
  0% { box-shadow: 0 0 0 0 rgba(255, 138, 61, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(255, 138, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 138, 61, 0); }
}

/* ==========================================================
   CHROME BAR (top nav, styled like a terminal window)
   ========================================================== */
.chrome-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 23, 26, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.chrome-bar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.chrome-dots {
  display: flex;
  gap: 6px;
}
.chrome-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot--ok { background: var(--accent-teal); }
.dot--warn { background: var(--accent-amber); }
.dot--idle { background: var(--border-bright); }

.chrome-path {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

.chrome-nav {
  margin-left: auto;
  display: flex;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.chrome-nav a {
  color: var(--text-secondary);
  transition: color 0.15s ease;
}
.chrome-nav a:hover { color: var(--accent-amber); }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  padding: 96px 24px 72px;
}
.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--accent-teal);
  background: rgba(79, 209, 197, 0.08);
  border: 1px solid rgba(79, 209, 197, 0.25);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.hero__name {
  font-size: clamp(40px, 7vw, 68px);
  font-weight: 700;
  line-height: 1.05;
}

.hero__role {
  font-family: var(--font-sans);
  font-size: clamp(18px, 2.4vw, 22px);
  color: var(--text-secondary);
  margin-top: 12px;
  font-weight: 500;
}

.hero__keywords {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent-teal);
  margin-top: 14px;
}

.hero__terminal {
  margin-top: 40px;
  max-width: 620px;
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.hero__terminal p { margin-bottom: 10px; }
.hero__terminal p:last-child { margin-bottom: 0; }

.prompt {
  color: var(--accent-amber);
  margin-right: 8px;
}

.hero__bio {
  font-family: var(--font-sans);
  color: var(--text-secondary);
  line-height: 1.7;
  padding-left: 20px;
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--accent-amber);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero__actions {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  display: inline-block;
}
.btn--primary {
  background: var(--accent-amber);
  color: #14171A;
}
.btn--primary:hover {
  transform: translateY(-1px);
  background: #FF9D5C;
}
.btn--ghost {
  border-color: var(--border-bright);
  color: var(--text-primary);
}
.btn--ghost:hover {
  border-color: var(--accent-amber);
  color: var(--accent-amber);
}

.hero__metrics {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}
.metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.metric__value {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--accent-teal);
}
.metric__label {
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================================
   IMPACT LOG — stat grid
   ========================================================== */
.impact-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.impact-stat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-teal);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.impact-stat:hover {
  border-color: var(--border-bright);
  border-left-color: var(--accent-teal);
  transform: translateY(-2px);
}
.impact-stat__tag {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent-teal);
  display: flex;
  align-items: center;
  gap: 6px;
}
.impact-stat__check {
  color: var(--accent-teal);
}
.impact-stat__value {
  font-family: var(--font-mono);
  font-size: clamp(32px, 4vw, 40px);
  font-weight: 700;
  color: var(--text-primary);
}
.impact-stat__label {
  font-size: 13.5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ==========================================================
   SECTION SHARED
   ========================================================== */
.section {
  padding: 88px 24px;
  border-top: 1px solid var(--border);
}
.section--alt {
  background: var(--bg-elevated);
}
.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.section__inner--narrow {
  max-width: 620px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-amber);
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
}

.section__sub {
  color: var(--text-secondary);
  margin-top: 12px;
  font-size: 16px;
  max-width: 520px;
}
.contact-tags {
  font-family: var(--font-mono);
  color: var(--accent-teal);
  font-size: 14px;
}

/* ==========================================================
   STACK — service grid
   ========================================================== */
.service-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.service-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.service-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-2px);
}

.service-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.service-card__head h3 {
  font-size: 16px;
  font-weight: 600;
}
.service-card p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ==========================================================
   BADGES & TAGS (shared)
   ========================================================== */
.badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}
.badge--deployed {
  background: rgba(79, 209, 197, 0.12);
  color: var(--accent-teal);
  border: 1px solid rgba(79, 209, 197, 0.3);
}
.badge--staging {
  background: rgba(255, 138, 61, 0.12);
  color: var(--accent-amber);
  border: 1px solid rgba(255, 138, 61, 0.3);
}

.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 4px 9px;
  border-radius: 5px;
}

/* ==========================================================
   EXPERIENCE — pipeline
   ========================================================== */
.pipeline {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pipeline__stage {
  display: flex;
  gap: 24px;
  padding-bottom: 40px;
  position: relative;
}
.pipeline__stage:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.pipeline__marker {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-bright);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pipeline__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-amber);
  font-weight: 600;
}

.pipeline__content h3 {
  font-size: 18px;
  margin-top: 8px;
  margin-bottom: 6px;
}
.pipeline__org {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.pipeline__content p:last-child {
  color: var(--text-secondary);
  font-size: 14.5px;
  max-width: 560px;
}
.pipeline__content .badge { margin-bottom: 4px; }

.pipeline__list {
  margin: 14px 0 16px;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 14.5px;
  max-width: 560px;
  line-height: 1.8;
}
.pipeline__list li::marker {
  color: var(--accent-amber);
}

/* ==========================================================
   CERTIFICATIONS — grouped bento grid
   ========================================================== */
.cert-group {
  margin-top: 40px;
}
.cert-group:first-of-type {
  margin-top: 44px;
}
.cert-group__label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-teal);
  margin-bottom: 14px;
}
.cert-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.cert-list__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.cert-list__item:hover {
  border-color: var(--border-bright);
  transform: translateY(-2px);
}
.cert-list__name {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.35;
}
.cert-list__issuer {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
}
@media (max-width: 900px) {
  .cert-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .cert-list {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   CONTACT
   ========================================================== */
.contact-terminal {
  margin-top: 40px;
  font-family: var(--font-mono);
  font-size: 14.5px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.contact-terminal p { margin-bottom: 10px; }
.contact-line {
  padding-left: 20px;
  margin-bottom: 22px !important;
}
.contact-line a {
  color: var(--accent-teal);
}
.contact-line a:hover { text-decoration: underline; }

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
  text-align: center;
  padding: 32px 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* ==========================================================
   SCROLL REVEAL
   ========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 640px) {
  .chrome-nav { display: none; }
  .hero { padding: 64px 20px 56px; }
  .section { padding: 64px 20px; }
  .pipeline__stage { gap: 16px; }
}
