:root {
  --bg: #0b1120;
  --bg-alt: #111a2e;
  --text: #e7e9ee;
  --text-muted: #9aa4b8;
  --accent: #c9a227;
  --border: #1f2a44;
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.15;
}

a { color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / nav */
header.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(11, 17, 32, 0.9);
  backdrop-filter: blur(6px);
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid rgba(201, 162, 39, 0.35);
  background: #f6f2ea;
  padding: 2px;
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.6);
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  position: relative;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

nav.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--accent);
}

nav.main-nav a:hover::after,
nav.main-nav a.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 1rem;
  cursor: pointer;
}

/* Eyebrow label (echoes the logo's arc + hairline motif) */
.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.28em;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}

.eyebrow::after {
  background: linear-gradient(90deg, var(--accent), transparent);
}

/* Hero */
.hero {
  position: relative;
  padding: 120px 0 80px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(201, 162, 39, 0.14), transparent 65%);
  pointer-events: none;
}

.hero h1 {
  position: relative;
  z-index: 1;
  font-size: 2.75rem;
  margin: 0 0 20px;
}

.hero .eyebrow {
  position: relative;
  z-index: 1;
}

.hero .subhead {
  position: relative;
  z-index: 1;
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 32px;
}

.hero .body-copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto 40px;
  color: var(--text-muted);
}

.cta-group {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #0b1120;
}

.btn-primary:hover {
  background: #dfb838;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(201, 162, 39, 0.5);
}

.btn-secondary {
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* Page header (non-home pages) */
.page-header {
  position: relative;
  padding: 90px 0 50px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 760px;
  height: 420px;
  background: radial-gradient(ellipse at center, rgba(201, 162, 39, 0.12), transparent 65%);
  pointer-events: none;
}

.page-header h1 {
  position: relative;
  z-index: 1;
  font-size: 2.25rem;
  margin: 0 0 16px;
}

.page-header .eyebrow {
  position: relative;
  z-index: 1;
}

.page-header .lede {
  position: relative;
  z-index: 1;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
}

/* Section */
section.content {
  padding: 64px 0;
}

section.content + section.content {
  border-top: 1px solid var(--border);
}

.section-title {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.text-block {
  max-width: 720px;
  color: var(--text-muted);
}

.text-block p + p {
  margin-top: 16px;
}

/* Card grid (about "what we look for", portfolio, interests) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 162, 39, 0.5);
  box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.55);
}

.card-logo {
  display: inline-block;
  max-height: 30px;
  max-width: 140px;
  object-fit: contain;
  margin-bottom: 20px;
  padding: 10px 16px;
  background: #f6f2ea;
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 8px;
  box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.5);
}

.card h3 {
  font-size: 1.15rem;
  margin: 0 0 12px;
  color: var(--accent);
}

.card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

.card .tag {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
}

/* Partner cards */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 32px;
  max-width: 900px;
}

.partner-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.partner-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 162, 39, 0.5);
  box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.55);
}

.avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--border);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 auto 18px;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.partner-card h3 {
  font-size: 1.1rem;
  margin: 0 0 4px;
}

.partner-card .role {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0 0 18px;
}

.linkedin-btn {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 6px;
  transition: border-color 0.15s ease;
}

.linkedin-btn:hover {
  border-color: var(--accent);
}

/* Contact form */
form.contact-form {
  max-width: 560px;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

form.contact-form label {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

form.contact-form input,
form.contact-form textarea {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

form.contact-form input:focus,
form.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

form.contact-form button {
  align-self: flex-start;
  border: none;
  cursor: pointer;
}

.alt-contact {
  margin-top: 40px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.alt-contact a {
  color: var(--accent);
  text-decoration: none;
}

/* Footer */
footer.site-footer {
  position: relative;
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 40px;
}

footer.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.card-grid .card:nth-child(2),
.partner-grid .partner-card:nth-child(2) {
  transition-delay: 0.08s;
}

.card-grid .card:nth-child(3),
.partner-grid .partner-card:nth-child(3) {
  transition-delay: 0.16s;
}

.footer-tagline {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
  margin: 0 0 20px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

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

/* Responsive */
@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }

  nav.main-nav {
    display: none;
    width: 100%;
  }

  nav.main-nav.open {
    display: block;
  }

  nav.main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 12px 0 0;
  }

  nav.main-nav li {
    border-top: 1px solid var(--border);
  }

  nav.main-nav a {
    display: block;
    padding: 14px 0;
  }

  .nav-inner {
    flex-wrap: wrap;
  }

  .hero { padding: 90px 0 60px; }
  .hero h1 { font-size: 2rem; }

  nav.main-nav a::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
