:root {
  /* Stillwater palette */
  --charcoal-blue: #2F4A58; /* headings, body */
  --mauve: #9E827A;
  --earth: #7A6A57;
  --forest: #213C31;
  --slate: #534D59;
  --neon: #FAED26;      /* primary neon */
  --coral: #FF5550;     /* CTA */
  --vellum: #F7F4F1;    /* warm overlay */
  --stone: #EDEAE8;     /* light section bg */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--charcoal-blue);
  background: var(--vellum);
  line-height: 1.6;
}

/* =========================
   HEADER
   ========================= */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 2rem;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.site-header .brand { display: flex; align-items: center; gap: .6rem; }
.site-header .brand img { height: 32px; width: auto; display: block; }
.site-header .brand .brand-name { font-weight: 700; letter-spacing: .2px; }
.site-header nav a {
  color: var(--charcoal-blue);
  text-decoration: none;
  margin-left: 1rem; font-weight: 600;
}
.site-header nav a:hover { color: var(--coral); }

/* =========================
   HERO (refined)
   ========================= */
.hero {
  position: relative; height: 90vh; min-height: 560px;
  display: grid; place-items: center; text-align: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  /* Match your actual file: change .png to .jpg if needed */
  background: url("assets/hero-dam.png") center/cover no-repeat;
  filter: brightness(1.05) contrast(1.05) saturate(.98);
}
.hero-overlay {
  position: absolute; inset: 0;
  /* Less frosty: was ~0.60+ — now lighter so the dam shows through */
  background: rgba(255,255,255,0.40);
}
.hero-content { position: relative; z-index: 1; padding: 0 1rem; }

.hero-logo {
  width: 120px; height: auto; margin: 0 auto 1rem;
  opacity: 0.85; /* transparent logo request */
}

.hero-title {
  /* ALL CAPS + stronger presence */
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  line-height: 1.15;
  color: #2E4A53; /* slightly deeper than body for contrast */
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: #2E4A53;
  opacity: 0.9;
  margin-bottom: 2rem; /* more breathing room above CTA */
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.25s ease;
}
.btn-lg { padding: 1rem 1.5rem; }
.btn-coral {
  background: var(--coral); color: #fff;
  box-shadow: 0 0 0 0 rgba(250,237,38,0);
}
.btn-coral:hover {
  box-shadow: 0 0 0 6px rgba(250,237,38,0.30); /* neon halo */
  transform: translateY(-1px);
}

/* Optional classes if you add math/equation text later */
.math-notation {
  color: var(--neon);
  text-shadow: 0 0 8px rgba(250,237,38,0.7), 0 0 16px rgba(250,237,38,0.4);
  font-size: 0.8rem;
  opacity: 0.85;
}

/* =========================
   SECTIONS
   ========================= */
section { padding: 4rem 2rem; }
.inner { max-width: 1100px; margin: 0 auto; }
h2 {
  font-weight: 800; letter-spacing: .02em;
  color: var(--charcoal-blue); margin-bottom: 1.2rem; text-align: center;
}

/* About — with subtle neon signature line */
.about-section { background: #F9F8F7; position: relative; }
.neon-line {
  position: absolute; left: 2rem; top: 3rem; bottom: 3rem; width: 2px;
  background: var(--neon);
  box-shadow: 0 0 10px rgba(250,237,38,.8), 0 0 18px rgba(250,237,38,.45);
  opacity: .8;
}

/* Services */
.services-section { background: var(--stone); }
.cards {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: .5rem;
}
.card {
  background: #fff; padding: 1.5rem; border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  text-align: center; transition: box-shadow .25s ease, transform .25s ease;
}
.card h3 { font-size: 1.05rem; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.08); }

/* CTA (replaces Projects) */
.cta-section {
  background: var(--charcoal-blue); color: #fff; text-align: center;
  border-top: 2px solid var(--neon);
}
.cta-section p {
  max-width: 720px; margin: 0 auto 2rem; color: rgba(255,255,255,0.9);
}

/* Footer */
footer {
  background: var(--forest);
  color: rgba(255,255,255,0.85);
  text-align: center; padding: 1.3rem 0;
  font-size: .95rem;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 900px){
  .site-header nav a:not(.btn){ display: none; } /* cleaner header on mobile */
  .hero { height: 78vh; }
  .hero-logo { width: 96px; }
}
@media (max-width: 560px){
  .hero-title { font-size: clamp(1.8rem, 8vw, 2.2rem); }
  .hero-subtitle { font-size: .98rem; }
}