:root {
  color-scheme: dark;
  --background: #0b0d0c;
  --surface: #121513;
  --surface-2: #171b18;
  --surface-3: #1d221f;
  --foreground: #f4f7f5;
  --muted: #98a39c;
  --border: #2a312d;
  --accent: #b7ff3c;
  --accent-soft: rgba(183, 255, 60, 0.11);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--foreground);
  background:
    radial-gradient(circle at 10% 0%, rgba(183, 255, 60, 0.09), transparent 30rem),
    radial-gradient(circle at 95% 18%, rgba(103, 213, 255, 0.06), transparent 26rem),
    var(--background);
}

.page-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 42px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0 30px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--accent);
  border-radius: 13px;
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 850;
  letter-spacing: -0.06em;
}

.brand-copy strong,
.brand-copy span { display: block; }
.brand-copy strong { font-size: 1rem; }
.brand-copy span { margin-top: 2px; color: var(--muted); font-size: 0.78rem; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}
.status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(183, 255, 60, 0.85);
}

.hero {
  padding: clamp(38px, 7vw, 86px) 0 clamp(42px, 7vw, 80px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3 { margin: 0; }
h1 {
  max-width: 900px;
  font-size: clamp(3.2rem, 10vw, 8.3rem);
  line-height: 0.88;
  letter-spacing: -0.075em;
}

.hero-copy {
  max-width: 720px;
  margin: 28px 0 0;
  color: #c8d0cb;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.7;
}

.projects {
  padding-top: 12px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 20px;
}
.section-head h2 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  letter-spacing: -0.055em;
}
.section-head > span { color: var(--muted); font-size: 0.82rem; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  position: relative;
  min-height: 390px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 22px;
  color: inherit;
  background: linear-gradient(145deg, var(--surface-2), var(--surface));
  box-shadow: 0 14px 45px rgba(0,0,0,0.2);
  overflow: hidden;
}

a.project-card {
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
a.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(183, 255, 60, 0.7);
  box-shadow: var(--shadow);
}

.project-card-featured::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  right: -110px;
  bottom: -150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(183, 255, 60, 0.16), transparent 68%);
  pointer-events: none;
}

.project-topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.project-state { color: var(--accent); }
.project-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 58px 0 26px;
  border: 1px solid rgba(183, 255, 60, 0.42);
  border-radius: 18px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 1.9rem;
}
.project-card h3 {
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  letter-spacing: -0.045em;
}
.project-card p {
  max-width: 570px;
  margin: 15px 0 0;
  color: #bbc5be;
  line-height: 1.65;
}
.project-link {
  position: absolute;
  left: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
}
.project-link b { font-size: 1.1rem; }
.muted { color: var(--muted) !important; }
.project-card-placeholder { background: rgba(255,255,255,0.018); }

.contact-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  align-items: end;
  gap: 28px;
  margin-top: 18px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(183, 255, 60, 0.055), rgba(255,255,255,0.012));
}
.contact-note h2 {
  max-width: 720px;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}
.contact-note > p {
  margin: 0;
  color: #c4cdc7;
  line-height: 1.7;
}
.contact-note a {
  color: var(--accent);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-note a:hover { text-decoration: underline; }

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding: 34px 2px 0;
  color: var(--muted);
  font-size: 0.75rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
}
.footer-links a:hover { color: var(--accent); }

@media (max-width: 760px) {
  .page-shell { width: min(100% - 20px, 1240px); padding-top: 10px; }
  .status { display: none; }
  .hero { padding-top: 46px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 360px; }
  .section-head { align-items: start; }
  .section-head > span { display: none; }
  .contact-note { grid-template-columns: 1fr; padding: 22px; }
  footer { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
