:root {
  --bg: #060906;
  --bg-soft: #0b110b;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(117, 209, 10, 0.28);
  --text: #f5f8f3;
  --muted: #b4c1b2;
  --accent: #75d10a;
  --accent-soft: #c6e49b;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(117, 209, 10, 0.12), transparent 30%),
    radial-gradient(circle at 82% 10%, rgba(198, 228, 155, 0.08), transparent 24%),
    linear-gradient(180deg, #050705 0%, #091009 42%, #050705 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), transparent 20%, transparent 80%, rgba(0, 0, 0, 0.18));
  pointer-events: none;
}

img {
  display: block;
  max-width: 100%;
}

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

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.035;
  background-image:
    linear-gradient(rgba(255,255,255,0.65) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.65) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: soft-light;
}

.ambient {
  position: fixed;
  border-radius: 999px;
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
}

.ambient-a {
  top: 90px;
  left: 40px;
  width: 260px;
  height: 260px;
  background: rgba(117, 209, 10, 0.14);
}

.ambient-b {
  right: 40px;
  bottom: 120px;
  width: 320px;
  height: 320px;
  background: rgba(198, 228, 155, 0.08);
}

.site-shell {
  width: min(calc(100% - 36px), var(--max));
  margin: 0 auto;
  padding: 18px 0 36px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(117, 209, 10, 0.16));
}

.brand-copy {
  display: grid;
  gap: 4px;
}

.brand-copy strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.82rem;
  max-width: 250px;
  line-height: 1.35;
}

.main-nav,
.top-actions,
.hero-actions,
.tag-row,
.contact-links,
.footer-nav,
.footer-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.main-nav {
  justify-content: center;
}

.main-nav a,
.social-link,
.footer-nav a,
.footer-socials a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 180ms ease, transform 180ms ease;
}

.main-nav a:hover,
.social-link:hover,
.footer-nav a:hover,
.footer-socials a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.top-actions {
  justify-content: flex-end;
}

.panel-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.panel-button {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
}

.button.primary {
  background: linear-gradient(135deg, var(--accent) 0%, #def5b5 100%);
  color: #071006;
  border-color: transparent;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.04);
}

.panel-button:hover,
.button:hover,
.contact-item:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 24px;
  align-items: stretch;
  min-height: calc(100vh - 104px);
  padding: 14px 0 24px;
}

.hero-copy,
.hero-visual,
.contact-card {
  border-radius: var(--radius-xl);
}

.hero-copy,
.hero-visual,
.contact-card,
.highlight-card,
.pillar-card,
.project-card,
.rich-text {
  padding: clamp(24px, 4vw, 40px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
}

h1 {
  margin: 16px 0 6px;
  font-size: clamp(3.1rem, 7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

h3 {
  margin: 0 0 12px;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.hero-title {
  max-width: 12ch;
}

.lead,
.rich-text p,
.highlight-card p,
.pillar-card p,
.project-card p,
.section-intro,
.contact-copy p,
.portrait-caption span,
.footer p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

.lead {
  max-width: 64ch;
  margin: 18px 0 0;
}

.tag-row {
  margin-top: 22px;
}

.tag-row span {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent-soft);
  font-size: 0.92rem;
}

.hero-actions {
  margin-top: 24px;
}

.hero-quote {
  margin: 28px 0 0;
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  border-radius: 0 18px 18px 0;
  background: rgba(117, 209, 10, 0.06);
}

.hero-quote p,
.support-quote,
.section-note {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}

.portrait-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  min-height: 520px;
  background: linear-gradient(180deg, rgba(117, 209, 10, 0.08), rgba(255, 255, 255, 0.02));
}

.portrait-wrap::before {
  content: "";
  position: absolute;
  inset: auto -40px -60px auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: rgba(117, 209, 10, 0.18);
  filter: blur(28px);
}

.portrait {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(100%) contrast(1.04);
}

.portrait-caption {
  display: grid;
  gap: 6px;
}

.section {
  padding: 40px 0;
}

.section-heading {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}

.section-heading.narrow {
  max-width: 820px;
}

.about-grid,
.methodology-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
}

.highlight-grid,
.pillar-grid,
.project-grid {
  display: grid;
  gap: 18px;
}

.highlight-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pillar-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.support-quote,
.section-note {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(117, 209, 10, 0.15);
  background: rgba(117, 209, 10, 0.06);
}

.pillar-card,
.project-card,
.highlight-card {
  border-radius: var(--radius-lg);
}

.pillar-index,
.project-number {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent-soft);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.85fr);
  gap: 24px;
  align-items: center;
}

.contact-links {
  justify-content: flex-start;
  align-content: flex-start;
}

.contact-item {
  display: grid;
  gap: 6px;
  min-width: 220px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.contact-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-soft);
}

.footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 24px 0 10px;
  color: var(--muted);
}

.footer strong {
  color: var(--text);
}

.footer p {
  margin: 6px 0 0;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .topbar,
  .footer,
  .hero,
  .about-grid,
  .methodology-layout,
  .contact-card,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .top-actions,
  .footer-socials {
    justify-content: flex-start;
  }

  .portrait-wrap,
  .portrait {
    min-height: 460px;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(calc(100% - 20px), var(--max));
  }

  .topbar {
    padding: 12px 0 14px;
  }

  .brand {
    align-items: flex-start;
  }

  .brand-copy span {
    max-width: none;
  }

  .highlight-grid,
  .pillar-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-visual,
  .contact-card,
  .highlight-card,
  .pillar-card,
  .project-card,
  .rich-text {
    padding: 22px;
  }

  h1 {
    font-size: clamp(2.8rem, 15vw, 4.2rem);
  }

  h2 {
    font-size: clamp(1.6rem, 7vw, 2.3rem);
  }

  .button,
  .panel-button,
  .contact-item {
    width: 100%;
  }

  .hero-actions,
  .contact-links,
  .top-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav {
    gap: 10px 14px;
  }

  .portrait-wrap,
  .portrait {
    min-height: 360px;
  }
}
