:root {
  --ink: #05070c;
  --ink-2: #0a1220;
  --navy: #0d1f3c;
  --blue: #1d6fd8;
  --blue-bright: #3b8cff;
  --blue-deep: #0f4db5;
  --fog: #dce7f5;
  --fog-2: #a8bdd6;
  --paper: #eef3f9;
  --white: #ffffff;
  --muted: #6b7f99;
  --font-display: "Instrument Serif", Georgia, serif;
  --font: "IBM Plex Sans", system-ui, sans-serif;
  --radius: 6px;
  --shadow: 0 18px 50px rgba(5, 7, 12, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  overflow-x: hidden;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.vault-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(1100px 560px at 8% -8%, rgba(29, 111, 216, 0.14), transparent 55%),
    radial-gradient(800px 480px at 95% 15%, rgba(59, 140, 255, 0.08), transparent 50%),
    var(--paper);
}
.ledger-grid {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(13, 31, 60, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 31, 60, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}
.blue-wash {
  position: absolute;
  top: -18%;
  right: -12%;
  width: 52vw;
  height: 52vw;
  background: radial-gradient(circle, rgba(29, 111, 216, 0.22), transparent 65%);
  animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-4%, 6%) scale(1.08); }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(238, 243, 249, 0.9);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.site-header.scrolled {
  border-color: var(--fog-2);
  box-shadow: 0 8px 24px rgba(5, 7, 12, 0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}
.logo-photo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--blue);
}
.logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-link {
  text-decoration: none;
  color: var(--navy);
  font-weight: 500;
  font-size: 0.86rem;
  padding: 0.4rem 0.55rem;
  border-radius: 4px;
}
.nav-link:hover,
.nav-link.active { color: var(--ink); background: rgba(29, 111, 216, 0.1); }
.nav-cta {
  background: var(--ink) !important;
  color: var(--white) !important;
  margin-left: 0.25rem;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 0 3rem;
  overflow: hidden;
}
.hero-plane {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(145deg, #05070c 0%, #0a1220 42%, #0d1f3c 100%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 40px,
      rgba(29, 111, 216, 0.05) 40px,
      rgba(29, 111, 216, 0.05) 41px
    );
}
.hero-plane::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 72% 28%, rgba(29, 111, 216, 0.35), transparent 48%);
  animation: glowPulse 6s ease-in-out infinite alternate;
}
@keyframes glowPulse {
  from { opacity: 0.55; }
  to { opacity: 1; }
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 2.25rem;
  align-items: end;
  color: var(--white);
  padding-bottom: 2.25rem;
}
.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 0.95;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}
.hero-role {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 3px;
}
.chip-blue {
  background: var(--blue);
  color: var(--white);
}
.chip-line {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.9);
}
.hero-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-style: italic;
  margin: 0 0 1rem;
  max-width: 18ch;
}
.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 38ch;
  color: rgba(220, 231, 245, 0.88);
  font-size: 1.05rem;
}
.hero-lead em {
  color: var(--blue-bright);
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.15em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-blue {
  background: var(--blue);
  color: var(--white);
}
.btn-blue:hover { background: var(--blue-bright); }
.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}
.btn-text {
  background: none;
  color: rgba(255, 255, 255, 0.85);
  padding-inline: 0.35rem;
}
.btn-small {
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  background: var(--blue);
  color: var(--white);
  border: none;
}
.btn-block { width: 100%; }

.hero-visual {
  display: grid;
  gap: 1rem;
  justify-items: end;
}
.photo-frame {
  position: relative;
  width: min(280px, 70vw);
}
.hero-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--blue);
  display: block;
  box-shadow: var(--shadow);
}
.photo-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(59, 140, 255, 0.45);
  animation: ringPulse 3.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.04); opacity: 1; }
}

.hero-ledger {
  width: min(320px, 100%);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(59, 140, 255, 0.4);
  border-radius: 8px;
  padding: 1.15rem 1.25rem;
  backdrop-filter: blur(8px);
  animation: ledgerIn 1s ease-out both;
}
@keyframes ledgerIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.ledger-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.ledger-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-bright);
}
.ledger-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-bright);
  box-shadow: 0 0 0 0 rgba(59, 140, 255, 0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.ledger-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.ledger-rows li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  padding-bottom: 0.45rem;
}
.ledger-rows strong {
  color: var(--white);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ledger-foot {
  margin: 0.85rem 0 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1rem;
  padding: 1.25rem 1.5rem;
  background: rgba(5, 7, 12, 0.65);
  border: 1px solid rgba(29, 111, 216, 0.35);
  border-radius: 8px;
  color: var(--white);
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--blue-bright);
  line-height: 1.1;
}
.stat-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}

.section { padding: 5.25rem 0; }
.section-stone { background: var(--paper); }
.section-vault,
.section-dark {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 55%, var(--navy) 100%);
  color: var(--white);
}
.section-contact {
  background: var(--ink);
  color: var(--white);
}
.section-head { margin-bottom: 2.25rem; max-width: 40rem; }
.section-head-light .section-sub { color: rgba(255, 255, 255, 0.7); }
.kicker {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}
.section-head-light .kicker { color: var(--blue-bright); }
.section-head h2,
.section-contact h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.85rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.section-sub {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 2rem;
}
.about-prose p { color: var(--navy); font-size: 1.05rem; }
.facts {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.facts li {
  padding: 0.65rem 0;
  border-top: 1px solid var(--fog-2);
  font-size: 0.95rem;
}
.facts a { color: var(--blue-deep); font-weight: 600; }
.signal-cards { display: grid; gap: 1rem; }
.signal {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--fog-2);
  border-left: 4px solid var(--blue);
}
.signal-blue { border-left-color: var(--ink); background: #f4f8fd; }
.signal h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
}
.signal p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.deal-grid,
.speak-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.deal, .speak-card, .project-card {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.25s, transform 0.25s;
}
.speak-card, .project-card {
  background: var(--white);
  border-color: var(--fog-2);
  color: var(--ink);
}
.section-dark .project-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--white);
}
.deal:hover, .speak-card:hover, .project-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
}
.deal-code {
  font-family: var(--font-display);
  color: var(--blue-bright);
  font-size: 1.4rem;
}
.deal h3, .speak-card h3, .project-card h3 {
  margin: 0.45rem 0 0.45rem;
  font-size: 1.1rem;
}
.deal p, .speak-card p, .project-card p {
  margin: 0;
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.72);
}
.speak-card p, .project-card p { color: var(--muted); }
.section-dark .project-card p { color: rgba(255, 255, 255, 0.72); }
.speak-when {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}
.speak-where { font-size: 0.9rem !important; }

.triple-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.subhead {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.45rem;
  color: var(--blue-deep);
}
.clean-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--navy);
  display: grid;
  gap: 0.45rem;
  font-size: 0.95rem;
}

.timeline { display: grid; gap: 0.5rem; }
.tl-item {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.tl-item.active { border-color: var(--blue); }
.tl-trigger {
  width: 100%;
  display: flex;
  gap: 1rem;
  align-items: baseline;
  text-align: left;
  background: none;
  border: none;
  padding: 1rem 1.15rem;
  cursor: pointer;
  font: inherit;
  color: var(--white);
}
.tl-year {
  font-weight: 700;
  color: var(--blue-bright);
  min-width: 4.5rem;
}
.tl-title { font-weight: 600; }
.tl-body {
  padding: 0 1.15rem 1.1rem;
  color: rgba(255, 255, 255, 0.75);
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}
.tl-body p { margin: 0.85rem 0 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.contact-lead { color: rgba(255, 255, 255, 0.72); max-width: 36ch; }
.contact-email-block { margin: 1.5rem 0; }
.contact-email-block label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 0.4rem;
}
.email-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}
#emailText {
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  font-size: 1.05rem;
}
.contact-links { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.social-link {
  color: var(--blue-bright);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.social-link:hover { border-color: var(--blue-bright); }
.contact-form {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 1.5rem;
  display: grid;
  gap: 0.85rem;
}
.contact-form h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 0.65rem 0.8rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(5, 7, 12, 0.45);
  color: var(--white);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.site-footer {
  background: #02040a;
  color: rgba(255, 255, 255, 0.65);
  padding: 1.75rem 0;
  border-top: 3px solid var(--blue);
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; }
.footer-note { margin: 0; color: rgba(59, 140, 255, 0.8); font-size: 0.88rem; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 960px) {
  .hero-inner,
  .about-grid,
  .deal-grid,
  .speak-grid,
  .project-grid,
  .triple-grid,
  .contact-grid,
  .stats-strip {
    grid-template-columns: 1fr;
  }
  .speak-grid, .project-grid, .deal-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-visual { justify-items: start; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    padding: 1rem;
    border-bottom: 2px solid var(--blue);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
  }
  .nav-links.open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .hero { min-height: auto; padding-top: 4rem; }
}

@media (max-width: 560px) {
  .speak-grid, .project-grid, .deal-grid {
    grid-template-columns: 1fr;
  }
}
