:root {
  --shl-bg: #00061d;
  --shl-bg-card: rgba(6, 12, 42, 0.72);
  --shl-border: rgba(140, 160, 230, 0.22);
  --shl-border-strong: rgba(140, 160, 230, 0.45);
  --shl-text: #ffffff;
  --shl-muted: #b3bbe0;
  --shl-accent: #8f9ff7;
  --shl-mono: #7f8fe6;
  --shl-font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shl-mono-font: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --bs-body-bg: var(--shl-bg);
  --bs-body-color: var(--shl-text);
  --bs-body-font-family: var(--shl-font);
  --bs-link-color: var(--shl-accent);
  --bs-link-hover-color: #b4bfff;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--shl-bg);
  color: var(--shl-text);
  font-family: var(--shl-font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

/* Hero artwork starts below the nav and spans hero + first section on the home page. */
body.page-home main {
  background-image: url("../img/background-hero.png");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: max(100%, 1400px) auto;
}

.text-muted-soft { color: var(--shl-muted); }
.mono {
  font-family: var(--shl-mono-font);
  color: var(--shl-mono);
  letter-spacing: 0.02em;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: #000;
  border-bottom: 1px solid rgba(140, 160, 230, 0.12);
}
.site-header.is-scrolled {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}
.navbar-brand img { height: 44px; width: auto; }
.navbar .nav-link {
  color: var(--shl-text);
  font-size: 1.05rem;
  padding-inline: .85rem;
  opacity: .9;
}
.navbar .nav-link:hover,
.navbar .nav-link.active { opacity: 1; color: #fff; }
.navbar-toggler { border-color: var(--shl-border-strong); }
.btn-talk {
  border-color: rgba(255, 255, 255, 0.55);
  border-radius: .55rem;
  padding: .55rem 1.35rem;
  font-size: 1.05rem;
}
.btn-talk:hover { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: #fff; }

@media (max-width: 991.98px) {
  .navbar-collapse {
    background: #000;
    border: 1px solid var(--shl-border);
    border-radius: .75rem;
    padding: .75rem 1rem 1rem;
    margin-top: .75rem;
  }
}

/* ---------- Buttons ---------- */
.btn-gradient {
  color: #fff;
  border: 0;
  border-radius: .5rem;
  font-weight: 500;
  padding: .8rem 2.2rem;
  background-color: #3a57d6;
  background-image: url("../img/button-gradient.png"),
    linear-gradient(90deg, #7a4fcf 0%, #2f57d4 55%, #4aa9ec 100%);
  background-size: cover, cover;
  background-position: center;
  box-shadow: 0 8px 28px rgba(60, 90, 220, 0.28);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn-gradient:hover,
.btn-gradient:focus-visible {
  color: #fff;
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 12px 32px rgba(60, 90, 220, 0.4);
}
.btn-gradient.btn-lg { font-size: 1.1rem; }

.link-arrow {
  color: var(--shl-accent);
  text-decoration: none;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.link-arrow span { transition: transform .15s ease; }
.link-arrow:hover { color: #c1caff; }
.link-arrow:hover span { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero { padding: clamp(2rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero-title {
  font-size: clamp(2.5rem, 5.6vw, 4.6rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}
.hero-lead {
  color: var(--shl-muted);
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: 1.5;
  max-width: 34rem;
  margin-bottom: 2rem;
}
.hero-prompt { margin: 2.25rem 0 0; font-size: .95rem; }

/* ---------- Inner page hero ---------- */
.page-hero { padding: clamp(2rem, 5vw, 4rem) 0 clamp(1rem, 3vw, 2rem); }
.eyebrow { font-size: .9rem; margin-bottom: .75rem; }
.page-title {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 1rem;
}
.content-section { padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 5rem); }

/* ---------- Projects ---------- */
.projects { padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(3rem, 6vw, 5rem); }
.section-title {
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  font-weight: 500;
  margin-bottom: 1.25rem;
}
.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--shl-bg-card);
  border: 1px solid var(--shl-border);
  border-radius: .6rem;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.project-card:hover {
  color: inherit;
  border-color: var(--shl-border-strong);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.project-card-media {
  aspect-ratio: 5 / 2;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(90, 110, 220, 0.25), transparent 60%),
    linear-gradient(180deg, #0a1236 0%, #060c2a 100%);
  border-bottom: 1px solid var(--shl-border);
}
.project-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-card-body { padding: 1.1rem 1.15rem 1.35rem; }
.project-card-title { font-size: 1.35rem; font-weight: 500; margin-bottom: .4rem; }
.project-card-text { color: var(--shl-muted); font-size: 1rem; line-height: 1.45; margin: 0; }

/* ---------- Forms ---------- */
.form-control {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--shl-border-strong);
  color: var(--shl-text);
  padding: .7rem .9rem;
}
.form-control::placeholder { color: rgba(179, 187, 224, 0.6); }
.form-control:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--shl-accent);
  box-shadow: 0 0 0 .2rem rgba(143, 159, 247, 0.25);
  color: var(--shl-text);
}
.form-label { color: var(--shl-muted); }
.subscribe-form .btn-gradient { padding-inline: 1.4rem; border-radius: 0 .5rem .5rem 0; }
.subscribe-form .form-control { border-radius: .5rem 0 0 .5rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--shl-border);
  padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem;
  background: linear-gradient(180deg, rgba(0, 6, 29, 0) 0%, rgba(4, 9, 36, 0.6) 100%);
}
.footer-heading {
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--shl-muted);
  margin-bottom: 1rem;
}
.footer-links li + li { margin-top: .5rem; }
.footer-links a { color: var(--shl-text); text-decoration: none; opacity: .85; }
.footer-links a:hover { opacity: 1; color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--shl-border);
  margin-top: 2.5rem;
  padding-top: 1.25rem;
}

.hero-title-soft {
  display: block;
  margin-top: .12em;
  color: #9aa4d6;
  font-weight: 400;
}
