:root {
  --st-deep-night: #0c111a;
  --st-night-slate: #121826;
  --st-steel-blue: #1e2a3a;
  --st-electric-blue: #0d6efd;
  --st-cyan-accent: #4fc3ff;
  --st-ice-blue: #e6f0ff;
  --st-clean-white: #f2f4f7;
  --st-bg: var(--st-deep-night);
  --st-surface: var(--st-night-slate);
  --st-surface-raised: var(--st-steel-blue);
  --st-text: var(--st-clean-white);
  --st-text-soft: var(--st-ice-blue);
  --st-border: var(--st-steel-blue);
  --st-border-active: var(--st-electric-blue);
  --st-radius-sm: 6px;
  --st-radius-md: 8px;
  --st-radius-lg: 12px;
  --st-max-width: 72rem;
}

* { box-sizing: border-box; }
html { color-scheme: dark; background: var(--st-bg); color: var(--st-text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { margin: 0; min-height: 100vh; line-height: 1.65; background: radial-gradient(circle at 50% -20%, rgba(13,111,253,.14), transparent 34rem), var(--st-bg); }
a { color: var(--st-cyan-accent); text-decoration-thickness: .08em; text-underline-offset: .22em; }
a:hover { color: var(--st-clean-white); }
.shell { width: min(calc(100% - 2rem), var(--st-max-width)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--st-border); background: rgba(12,17,26,.92); backdrop-filter: blur(12px); }
.header-inner { min-height: 4.75rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand, .footer-brand { font-family: "Arial Narrow", Rajdhani, ui-sans-serif, system-ui, sans-serif; font-weight: 900; letter-spacing: .08em; text-decoration: none; }
.brand { font-size: 1.05rem; }
.brand-smurf { color: var(--st-electric-blue); }
.brand-tech { color: var(--st-ice-blue); }
.nav-list { list-style: none; display: flex; gap: .35rem; padding: 0; margin: 0; }
.nav-list a { display: block; padding: .5rem .7rem; border-radius: var(--st-radius-sm); color: var(--st-text-soft); font-family: "Arial Narrow", Rajdhani, ui-sans-serif, system-ui, sans-serif; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .84rem; text-decoration: none; }
.nav-list a:hover { color: var(--st-clean-white); background: var(--st-surface); }

main { padding-block: 4rem 7rem; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(14rem, 22rem); align-items: center; gap: clamp(2rem, 6vw, 6rem); min-height: 34rem; padding-block: 3rem 5rem; }
.hero::after { content: "ST"; display: grid; place-items: center; aspect-ratio: 1; border: 1px solid var(--st-steel-blue); border-radius: var(--st-radius-lg); color: var(--st-cyan-accent); background: linear-gradient(145deg, rgba(79,195,255,.09), rgba(18,24,38,.85)); box-shadow: inset 0 0 0 1px rgba(79,195,255,.04), 0 0 3rem rgba(13,111,253,.08); font-family: "Arial Narrow", Rajdhani, ui-sans-serif, system-ui, sans-serif; font-size: clamp(5rem, 13vw, 9rem); font-weight: 900; letter-spacing: -.08em; }
.page-intro { max-width: 52rem; padding-block: 2rem 4rem; }
h1, h2, h3 { margin-top: 0; line-height: 1.08; color: var(--st-clean-white); font-family: "Arial Narrow", Rajdhani, ui-sans-serif, system-ui, sans-serif; }
h1 { max-width: 13ch; margin-bottom: 1rem; font-size: clamp(2.8rem, 7vw, 5.8rem); letter-spacing: -.055em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); letter-spacing: -.035em; }
h3 { letter-spacing: -.02em; }
.lede { max-width: 42rem; color: #aebbd0; font-size: clamp(1.1rem, 2vw, 1.35rem); }
.eyebrow { margin-bottom: .7rem; color: var(--st-cyan-accent); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; font-size: .74rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.8rem; padding: .72rem 1rem; border: 1px solid var(--st-electric-blue); border-radius: var(--st-radius-sm); background: var(--st-electric-blue); color: white; font-weight: 800; text-decoration: none; }
.button:hover { color: white; background: #2a7fff; }
.button-secondary { border-color: var(--st-steel-blue); background: var(--st-surface); color: var(--st-ice-blue); }
.button-secondary:hover { background: var(--st-surface-raised); }

.lab-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0 0 4rem; border: 1px solid var(--st-border); border-radius: var(--st-radius-md); overflow: hidden; background: var(--st-border); }
.lab-strip div { padding: 1rem; background: var(--st-surface); }
.lab-strip strong { display: block; color: var(--st-clean-white); font-family: "Arial Narrow", Rajdhani, ui-sans-serif, system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.lab-strip span { color: #8fa0b8; font-size: .88rem; }

.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.25rem; }
.section-heading h2 { margin-bottom: 0; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1rem; }
.project-card { position: relative; min-height: 15rem; padding: 1.35rem; border: 1px solid var(--st-border); border-radius: var(--st-radius-md); background: linear-gradient(180deg, rgba(30,42,58,.2), transparent), var(--st-surface); transition: border-color .18s ease, transform .18s ease; }
.project-card:hover { transform: translateY(-2px); border-color: var(--st-border-active); }
.project-card::before { content: "//"; position: absolute; top: 1.15rem; right: 1.2rem; color: var(--st-electric-blue); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.project-card h2, .project-card h3 { margin: .2rem 0 .8rem; padding-right: 2rem; }
.project-card h2 a, .project-card h3 a { color: var(--st-clean-white); text-decoration: none; }
.project-card p:last-child { color: #9dabc0; }

.project-detail { max-width: 60rem; }
.project-detail > h1 { max-width: 16ch; }
.project-meta { display: flex; flex-wrap: wrap; gap: 1px; margin: 2rem 0 3rem; padding: 1px; border: 1px solid var(--st-border); border-radius: var(--st-radius-md); background: var(--st-border); overflow: hidden; }
.project-meta div { flex: 1 1 11rem; display: grid; gap: .15rem; padding: .9rem 1rem; background: var(--st-surface); }
.project-meta dt { color: #8090a8; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.project-meta dd { margin: 0; color: var(--st-clean-white); }
.prose { max-width: 48rem; color: #bdc7d6; }
.prose h2, .prose h3 { margin-top: 2.25rem; }
.prose strong { color: var(--st-clean-white); }

.site-footer { border-top: 1px solid var(--st-border); padding-block: 2rem; color: #7f8da2; font-size: .88rem; background: #0a0e16; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.footer-copy { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .76rem; letter-spacing: .04em; }

@media (max-width: 48rem) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero::after { width: min(70vw, 18rem); }
  .lab-strip { grid-template-columns: 1fr; }
}
@media (max-width: 38rem) {
  .header-inner { align-items: flex-start; flex-direction: column; padding-block: .9rem; gap: .45rem; }
  .nav-list { flex-wrap: wrap; }
  main { padding-top: 2rem; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
