:root {
  --bg: #06080c;
  --surface: rgba(15, 19, 27, 0.78);
  --surface-hover: rgba(22, 28, 39, 0.94);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --border-hover: rgba(96, 165, 250, 0.4);
  --text: #f1f5f9;
  --text-soft: #cbd5e1;
  --muted: #8b95a5;
  --accent: #60a5fa;
  --accent-soft: rgba(96, 165, 250, 0.1);
  --green: #34d399;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 75% 32% at 50% -8%, rgba(59, 130, 246, 0.16), transparent),
    radial-gradient(ellipse 45% 25% at 85% 15%, rgba(99, 102, 241, 0.07), transparent),
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 42px 42px, 42px 42px;
  color: var(--text);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::selection {
  background: rgba(96, 165, 250, 0.28);
  color: #ffffff;
}

/* Navigation */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(6, 8, 12, 0.8);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 900px;
  margin: 0 auto;
  padding: 0.95rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brand {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.brand-mark {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.7);
}

.brand span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 0.78rem;
  border-radius: 7px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.085);
}

/* Main Container */
main {
  flex: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 1.25rem 5rem;
}

/* Typography & Hero */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(96, 165, 250, 0.24);
  padding: 0.32rem 0.82rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(2.15rem, 5.2vw, 3.15rem);
  font-weight: 700;
  letter-spacing: -0.038em;
  line-height: 1.12;
  margin-bottom: 1.15rem;
  background: linear-gradient(180deg, #ffffff 15%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-title {
  font-size: clamp(1.9rem, 4.2vw, 2.5rem);
  margin-bottom: 0.85rem;
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 700px;
  margin-bottom: 2.2rem;
}

.lead strong {
  color: var(--text);
  font-weight: 500;
}

/* Buttons */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.64rem 1.2rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  transform: translateY(-1px);
}

.btn-primary {
  background: #f1f5f9;
  color: #06080c;
  border-color: #f1f5f9;
  font-weight: 600;
}

.btn-primary:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #06080c;
  box-shadow: 0 6px 24px rgba(96, 165, 250, 0.18);
}

/* Executive Signal Strip */
.signal-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 0.9rem;
  margin-bottom: 3.75rem;
}

.signal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 1.15rem 1.25rem;
  position: relative;
  overflow: hidden;
}

.signal-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.35), transparent);
}

.signal-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.signal-label {
  font-size: 0.81rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Section Headers */
section {
  margin-bottom: 3.85rem;
}

.section-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--accent);
  margin-bottom: 1.45rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Grids & Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 1rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.6rem;
  margin-bottom: 1.2rem;
  backdrop-filter: blur(10px);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.grid-3 .card,
.grid-2 .card {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: var(--border-strong);
}

.card-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.73rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.5rem;
}

.card h2,
.card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.55rem;
  letter-spacing: -0.015em;
}

.card p {
  color: var(--text-soft);
  font-size: 0.94rem;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.role {
  font-weight: 600;
  font-size: 1.14rem;
  color: var(--text);
}

.company {
  color: var(--accent);
  font-weight: 500;
}

.date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--muted);
}

ul {
  padding-left: 1.15rem;
  color: var(--text-soft);
  font-size: 0.94rem;
  margin-top: 0.85rem;
}

li {
  margin-bottom: 0.55rem;
}

li strong {
  color: #f8fafc;
  font-weight: 500;
}

/* Principles Quote Strip */
.principle {
  border-left: 2px solid var(--accent);
  padding-left: 1.2rem;
  margin-bottom: 1.45rem;
}

.principle:last-child {
  margin-bottom: 0;
}

.principle-title {
  font-weight: 600;
  color: var(--text);
  font-size: 0.99rem;
  margin-bottom: 0.25rem;
}

.principle p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Tags & Links */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.15rem;
}

.tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 0.24rem 0.62rem;
  border-radius: 5px;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 1.2rem;
}

.chip-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--accent);
  text-decoration: none;
  padding: 0.36rem 0.76rem;
  border-radius: 6px;
  background: var(--accent-soft);
  border: 1px solid rgba(96, 165, 250, 0.24);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.chip-link:hover {
  background: rgba(96, 165, 250, 0.18);
  border-color: rgba(96, 165, 250, 0.45);
}

/* Architecture Callout */
.arch-flow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.79rem;
  color: #dbeafe;
  background: rgba(10, 16, 30, 0.85);
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 8px;
  padding: 0.95rem 1.15rem;
  margin: 1rem 0;
  overflow-x: auto;
  white-space: nowrap;
}

/* Credentials Strip */
.cred-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}

.cred-row:first-child {
  padding-top: 0;
}

.cred-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cred-degree {
  font-weight: 600;
  color: var(--text);
  font-size: 0.99rem;
}

.cred-inst {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 720px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  main {
    padding: 2.75rem 1.15rem 3.5rem;
  }
}

.form-group {
  margin-bottom: 1.05rem;
}

label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.45rem;
}

input,
textarea,
select {
  width: 100%;
  background: rgba(6, 8, 12, 0.88);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.72rem 0.92rem;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.93rem;
  outline: none;
  transition: border-color 0.15s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
}

textarea {
  min-height: 135px;
  resize: vertical;
}

.form-status {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  min-height: 1.25rem;
}

.form-status.success {
  color: var(--green);
}

.form-status.error {
  color: #f87171;
}

.direct-item {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.direct-item:first-child {
  padding-top: 0.25rem;
}

.direct-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.direct-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.71rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}

.direct-val a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
}

.direct-val a:hover {
  color: var(--accent);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 1.25rem;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-inner a {
  color: var(--muted);
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--text);
}
