:root {
  color-scheme: dark;
  --bg: #070A08;
  --panel: #0D1210;
  --text: #F4F1E8;
  --muted: #A8B2A8;
  --emerald: #00A86B;
  --emerald-bright: #00D18A;
  --gold: #C9A44C;
  --border: rgba(255, 255, 255, 0.06);
  --mono: 'Courier New', 'Courier', monospace;
}

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

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Sora', Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  line-height: 1.65;
}

a { color: var(--emerald); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Navigation ── */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(7, 10, 8, 0.85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-inner {
  width: min(1280px, calc(100% - 3rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none !important;
}

.nav-mark { width: 28px; height: 28px; object-fit: contain; }

.nav-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.86rem;
  color: var(--muted);
  transition: color 0.18s;
}

.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ── Shell ── */
.shell {
  width: min(1280px, calc(100% - 3rem));
  margin: 0 auto;
}

/* ── Photo slots ── */
.photo-slot {
  position: relative;
  overflow: hidden;
  background: #090D0B;
}

.photo-slot::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}

.photo-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 116px 0 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 65% at 65% 35%, rgba(0, 168, 107, 0.055) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 15% 90%, rgba(33, 22, 52, 0.4) 0%, transparent 55%),
    #070A08;
}

.orbital-bg {
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-52%);
  width: min(48vw, 600px);
  height: min(48vw, 600px);
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
}

.orb-1 { inset: 16%; border: 1px solid rgba(0, 168, 107, 0.1); }
.orb-2 { inset: 2%;  border: 1px solid rgba(201, 164, 76, 0.045); }
.orb-3 {
  inset: 32%;
  border: 1px solid rgba(0, 168, 107, 0.14);
  background: rgba(0, 168, 107, 0.02);
}

.orb-cross {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
}

.orb-cross::before,
.orb-cross::after {
  content: '';
  position: absolute;
  background: rgba(201, 164, 76, 0.4);
}

.orb-cross::before { width: 1px; height: 100%; left: 50%; }
.orb-cross::after  { height: 1px; width: 100%; top: 50%; }

.orb-line {
  position: absolute;
  top: 50%;
  left: -15%;
  right: -15%;
  height: 1px;
  background: rgba(0, 168, 107, 0.05);
  transform-origin: center;
  transform: rotate(-20deg);
}

/* Hero layout — text left, portrait right */
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-text { display: flex; flex-direction: column; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--mono);
  margin-bottom: 2.5rem;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.hero h1 {
  font-size: clamp(3.6rem, 6vw, 6.4rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.hero h1 .faint { color: rgba(244, 241, 232, 0.28); }

.hero-sub {
  margin-top: 1.75rem;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--muted);
  line-height: 1.62;
  max-width: 50ch;
  font-weight: 400;
}

.hero-actions {
  margin-top: 2.75rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-cta {
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #00A86B 0%, #00C27A 100%);
  color: #040905 !important;
  font-weight: 600;
  font-size: 0.93rem;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none !important;
}

.hero-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 36px rgba(0, 168, 107, 0.25);
}

.hero-link {
  font-size: 0.88rem;
  color: var(--muted);
  transition: color 0.18s;
  text-decoration: none;
}

.hero-link:hover { color: var(--text); }

/* Hero portrait slot */
.hero-portrait {
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  border: 1px solid var(--border);
  width: 100%;
}

/* Small info block below portrait */
.hero-meta {
  margin-top: 0.85rem;
  display: flex;
  gap: 1.25rem;
  justify-content: center;
}

.hero-meta-item {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(168, 178, 168, 0.45);
  font-family: var(--mono);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.35;
  z-index: 1;
}

.scroll-line {
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, transparent, var(--muted));
}

/* ── Section base ── */
.section {
  padding: 5.5rem 0;
}

.section + .section {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--mono);
}

.section-label::before {
  content: '';
  display: block;
  width: 18px;
  height: 1px;
  background: var(--gold);
  opacity: 0.45;
}

.section h2 {
  font-size: clamp(2.1rem, 3.2vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.06;
}

/* ── Systems / Framework ── */
.systems-section {
  background: rgba(0, 0, 0, 0.16);
}

.systems-intro {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 50ch;
  line-height: 1.65;
}

.systems-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 3.5rem;
}

.system-card {
  padding: 2.25rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.018);
  position: relative;
  overflow: hidden;
}

.system-card::after {
  content: '';
  position: absolute;
  top: -48px;
  right: -48px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 1px solid rgba(0, 168, 107, 0.065);
  pointer-events: none;
}

.system-n {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  color: var(--gold);
  font-family: var(--mono);
  margin-bottom: 1.5rem;
}

.system-card h3 {
  margin-bottom: 0.85rem;
  font-size: 1.2rem;
}

.system-card p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.72;
}

/* ── Domains ── */
.domains-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.055);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.055);
  margin-top: 3.5rem;
}

.domain-tile {
  padding: 2.5rem;
  background: var(--bg);
}

.domain-tile:last-child:nth-child(odd) { grid-column: span 2; }

.domain-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(0, 168, 107, 0.07);
  border: 1px solid rgba(0, 168, 107, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
}

.domain-icon svg {
  width: 15px;
  height: 15px;
  stroke: var(--emerald);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.domain-tile h3 { font-size: 1.06rem; margin-bottom: 0.6rem; }
.domain-tile p { color: var(--muted); font-size: 0.91rem; line-height: 1.68; }

/* ── Projects ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 3.5rem;
}

.project-card {
  padding: 2rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.018);
  display: flex;
  flex-direction: column;
  transition: border-color 0.22s, transform 0.22s;
}

.project-card:hover {
  border-color: rgba(0, 168, 107, 0.2);
  transform: translateY(-2px);
}

.project-role {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--mono);
  margin-bottom: 0.65rem;
}

.project-card h3 { font-size: 1.1rem; margin-bottom: 0.65rem; }

.project-card p {
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.68;
  flex: 1;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 1rem;
  gap: 0.5rem;
}

.project-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.ptag {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  background: rgba(0, 168, 107, 0.055);
  border: 1px solid rgba(0, 168, 107, 0.13);
  color: var(--emerald);
}

.project-link {
  font-size: 0.875rem;
  color: var(--emerald);
  font-weight: 600;
  white-space: nowrap;
}

.project-link:hover { text-decoration: underline; }

.section-more {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.section-more a { font-size: 0.86rem; color: var(--muted); }
.section-more a:hover { color: var(--text); text-decoration: none; }

/* ── Milestones ── */
.milestones-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(201, 164, 76, 0.28) 0%, transparent 70%);
  margin-bottom: 3rem;
}

.milestones-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 3rem;
}

.milestone-year {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--mono);
  display: block;
  margin-bottom: 0.35rem;
}

.milestone-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  display: block;
  margin-bottom: 0.35rem;
}

.milestone-desc { font-size: 0.86rem; color: var(--muted); line-height: 1.56; }

/* ── Contact ── */
.contact-section {
  padding: 9rem 0 6rem;
  background: linear-gradient(180deg, var(--bg) 0%, #09100D 60%, var(--bg) 100%);
}

.contact-statement {
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.32;
  max-width: 680px;
  margin-bottom: 2.5rem;
}

.contact-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}

.contact-link {
  font-size: 0.93rem;
  color: var(--muted);
  transition: color 0.18s;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.contact-link:hover { color: var(--text); }

.contact-link.primary {
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #00A86B 0%, #00C27A 100%);
  color: #040905 !important;
  font-weight: 600;
  font-size: 0.93rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-link.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 36px rgba(0, 168, 107, 0.24);
}

/* ── Footer ── */
.footer {
  padding: 2.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
  width: min(1280px, calc(100% - 3rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand { display: flex; align-items: center; gap: 0.7rem; }

.footer-mark {
  width: 20px;
  height: 20px;
  object-fit: contain;
  opacity: 0.6;
}

.footer-name { font-size: 0.86rem; color: var(--muted); font-weight: 600; }

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a { font-size: 0.8rem; color: var(--muted); transition: color 0.18s; }
.footer-links a:hover { color: var(--text); text-decoration: none; }

.footer-copy { font-size: 0.75rem; color: rgba(168, 178, 168, 0.38); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-portrait { aspect-ratio: 16 / 9; max-height: 340px; }
  .systems-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .orbital-bg { opacity: 0.3; }
}

@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .contact-section { padding: 4rem 0 3rem; }
  .hero { padding: 100px 0 64px; }
  .projects-grid { grid-template-columns: 1fr; }
  .domains-grid { grid-template-columns: 1fr; }
  .domain-tile:last-child:nth-child(odd) { grid-column: auto; }
  .milestones-grid { grid-template-columns: 1fr 1fr; }
  .footer-copy { display: none; }
}

@media (max-width: 560px) {
  .milestones-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
