 /* ---------- Design tokens ---------- */
 :root {
  --bg: #0B1220;
  --bg-elev: #101a2e;
  --bg-card: #0f1729;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --text: #E6ECF5;
  --text-dim: #9AA6BC;
  --text-mute: #6B7691;
  --accent: #4F8CFF;
  --accent-2: #7FB3FF;
  --accent-glow: rgba(79,140,255,0.35);
  --success: #22C55E;
  --success-bg: rgba(34,197,94,0.12);
  --warn: #F59E0B;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-soft: 0 1px 0 rgba(255,255,255,0.04) inset, 0 20px 40px -20px rgba(0,0,0,0.5);
  --maxw: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --step-1: clamp(14px, 1.6vw, 15px);
  --step-2: clamp(16px, 1.8vw, 17px);
  --step-3: clamp(20px, 2.2vw, 24px);
  --step-4: clamp(28px, 3.6vw, 40px);
  --step-5: clamp(40px, 6vw, 72px);
  --step-6: clamp(52px, 8vw, 96px);
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--step-2);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(79,140,255,0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(127,179,255,0.06), transparent 60%);
  background-attachment: fixed;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { color: #A8CCFF; }

::selection { background: rgba(79,140,255,0.35); color: #fff; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: rgba(11,18,32,0.72);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 62px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: -0.01em; color: var(--text);
}
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, #4F8CFF, #22C55E);
  display: grid; place-items: center; color: #071023; font-family: var(--font-mono); font-weight: 700; font-size: 14px;
}
.nav ul { display: flex; gap: 22px; list-style: none; padding: 0; margin: 0; }
.nav a.navlink { color: var(--text-dim); font-size: 14px; font-weight: 500; }
.nav a.navlink:hover { color: var(--text); }
.nav .cta-mini {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  background: var(--accent); color: #06111f; font-weight: 600; font-size: 10px;
  box-shadow: 0 8px 24px -10px var(--accent-glow);
}

.nav .cta-mini:hover { color: #06111f; filter: brightness(1.08); }
.nav-mobile-toggle { display: none; background: transparent; border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 8px 10px; cursor: pointer; }

@media (max-width: 780px) {
  .nav ul.primary { display: none; }
  .nav-mobile-toggle { display: inline-flex; }
  .nav.open ul.primary {
    display: flex; position: absolute; top: 62px; left: 0; right: 0;
    background: var(--bg-elev); flex-direction: column; padding: 16px var(--gutter);
    gap: 14px; border-bottom: 1px solid var(--border);
  }
}

/* ---------- Sections ---------- */
section { padding: var(--step-5) 0; border-bottom: 1px solid var(--border); }
section:last-of-type { border-bottom: none; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 20px; height: 1px; background: var(--accent-2);
}
h1, h2, h3 { margin: 0 0 12px; letter-spacing: -0.02em; line-height: 1.15; font-weight: 700; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-3); }
p.lede { color: var(--text-dim); font-size: var(--step-2); max-width: 62ch; }

/* ---------- Hero ---------- */
.hero { padding-top: var(--step-5); padding-bottom: var(--step-5); }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--success-bg); color: #7EE1A6;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  border: 1px solid rgba(34,197,94,0.25); margin-bottom: 22px;
}
.status .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--success);
  box-shadow: 0 0 0 4px rgba(34,197,94,0.18); animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.25); } }

.hero h1 {
  font-size: clamp(38px, 5.8vw, 62px);
  line-height: 1.03; letter-spacing: -0.035em; margin: 0 0 14px;
}
.hero h1 .accent {
  background: linear-gradient(120deg, #4F8CFF 10%, #7FB3FF 60%, #A8CCFF 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .role {
  font-family: var(--font-mono); color: var(--text-dim);
  font-size: var(--step-2); margin: 0 0 22px;
}
.hero .value {
  font-size: clamp(17px, 1.9vw, 20px); color: var(--text);
  max-width: 58ch; margin: 0 0 28px;
}
.hero .value strong { color: #fff; font-weight: 600; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 12px;
  font-weight: 600; font-size: 15px;
  border: 1px solid var(--border-strong); background: transparent; color: var(--text);
  transition: transform .12s ease, background .2s ease, border-color .2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,0.04); color: var(--text); }
.btn.primary {
  background: var(--accent); color: #06111f; border-color: transparent;
  box-shadow: 0 12px 28px -12px var(--accent-glow);
}
.btn.primary:hover { color: #06111f; filter: brightness(1.08); }
.btn svg { width: 16px; height: 16px; }

/* Signal chips row */
.signals {
  display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--text-mute);
  font-size: 13px; font-family: var(--font-mono);
}
.signals span { display: inline-flex; align-items: center; gap: 6px; }
.signals svg { width: 14px; height: 14px; color: var(--accent-2); }

/* ---------- Photo card ---------- */
.photo-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.photo-frame {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, #4F8CFF, #22C55E);
  box-shadow: 0 20px 50px -20px var(--accent-glow);
  margin-bottom: 20px;
}
.photo-frame::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px dashed rgba(127,179,255,0.25);
  animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.photo-inner {
  width: 100%; height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(180deg, #101a2e 0%, #0B1220 100%);
  display: grid; place-items: center;
  position: relative;
  z-index: 1;
}
/* Replace the <img> src below with the real photo of Stenio.
   Image will auto-fit the circle via object-fit: cover. */
.photo-inner img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.photo-placeholder {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  width: 100%; height: 100%;
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px;
  text-align: center;
}
.photo-placeholder svg {
  width: 48px; height: 48px;
  color: var(--accent-2);
  margin-bottom: 10px;
  opacity: 0.7;
}
.photo-name {
  font-size: 20px; font-weight: 700; color: #fff;
  letter-spacing: -0.01em; margin: 0 0 4px;
}
.photo-role {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-2);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.photo-tags {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
}
.photo-tags span {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(79,140,255,0.10);
  color: var(--accent-2);
  border: 1px solid rgba(79,140,255,0.22);
  letter-spacing: 0.04em;
}

/* ---------- About ---------- */
.about-grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

.bullets { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 12px; }
.bullets li {
  position: relative; padding-left: 28px;
  color: var(--text); line-height: 1.55;
}
.bullets li::before {
  content: ""; position: absolute; left: 4px; top: 10px;
  width: 8px; height: 8px;
  background: var(--accent); border-radius: 2px; transform: rotate(45deg);
  box-shadow: 0 0 0 4px rgba(79,140,255,0.14);
}

.side-card {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}
.side-card h4 {
  margin: 0 0 12px; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-mute); font-family: var(--font-mono); font-weight: 600;
}
.side-card .kv { display: grid; grid-template-columns: 140px 1fr; gap: 10px 14px; font-size: 14px; }
.side-card .kv dt { color: var(--text-mute); }
.side-card .kv dd { margin: 0; color: var(--text); }

/* ---------- Metrics ---------- */
.metric-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px; margin-top: 26px;
}
.metric {
  background: rgba(255,255,255,0.02); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
}
.metric .n { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; color: #fff; line-height: 1.1; }
.metric .n .u { color: var(--accent-2); font-size: 18px; margin-left: 2px; }
.metric .l { font-size: 12px; color: var(--text-dim); margin-top: 4px; }

/* ---------- Tech Stack ---------- */
.stack-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px; margin-top: 22px;
}
.stack-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-card); padding: 18px;
}
.stack-card h4 {
  margin: 0 0 8px; font-size: 13px; font-family: var(--font-mono);
  color: var(--accent-2); letter-spacing: 0.12em; text-transform: uppercase;
}
.stack-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.stack-card li {
  font-size: 13px; padding: 5px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  color: var(--text);
}

/* ---------- Project ---------- */
.project {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 48px);
  align-items: center; margin-top: 22px;
}
@media (max-width: 900px) { .project { grid-template-columns: 1fr; } }

.project-copy .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.project-copy .tags span {
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
  background: rgba(79,140,255,0.12); color: var(--accent-2);
  border: 1px solid rgba(79,140,255,0.28); font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.project-copy ul.impact {
  list-style: none; padding: 0; margin: 16px 0 22px; display: flex; flex-direction: column; gap: 10px;
}
.project-copy ul.impact li {
  position: relative; padding-left: 24px; line-height: 1.55;
}
.project-copy ul.impact li::before {
  content: "\2192"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 700;
}

/* Device mockup */
.device-wrap {
  position: relative; display: grid; place-items: center;
  padding: 20px; border-radius: var(--radius-lg);
  background: radial-gradient(600px 300px at 50% 50%, rgba(79,140,255,0.18), transparent 60%);
}
.device {
  width: 260px; height: 540px; border-radius: 44px;
  background: linear-gradient(180deg, #0f172a, #0b1220);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04) inset;
  padding: 12px; position: relative;
}
.device::before {
  content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 26px; border-radius: 999px; background: #06111f;
  border: 1px solid rgba(255,255,255,0.06);
}
.device .screen {
  width: 100%; height: 100%; border-radius: 34px; overflow: hidden;
  background: linear-gradient(180deg, #0B1220 0%, #101a2e 100%);
  display: flex; flex-direction: column;
}
.device .status-bar {
  height: 42px; display: flex; align-items: end; justify-content: space-between;
  padding: 0 22px 6px; font-family: var(--font-mono); font-size: 11px; color: var(--text-dim);
}
.device .app-head { padding: 14px 18px 8px; }
.device .app-head .greet { font-size: 11px; color: var(--text-mute); font-family: var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; }
.device .app-head .title { font-size: 18px; font-weight: 700; color: #fff; margin-top: 4px; letter-spacing: -0.01em; }
.device .cards { padding: 10px 14px; display: grid; gap: 8px; }
.device .talent {
  display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center;
  padding: 10px; border-radius: 12px; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}
.device .talent .avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, #4F8CFF, #22C55E);
}
.device .talent .name { font-size: 12px; color: #fff; font-weight: 600; }
.device .talent .role { font-size: 10px; color: var(--text-mute); font-family: var(--font-mono); }
.device .talent .badge {
  font-size: 9px; padding: 3px 6px; border-radius: 6px;
  background: rgba(79,140,255,0.16); color: var(--accent-2); font-family: var(--font-mono);
}
.device .tab {
  margin: auto 12px 12px; padding: 10px; border-radius: 14px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  display: flex; justify-content: space-around;
}
.device .tab span { font-size: 9px; color: var(--text-mute); font-family: var(--font-mono); }
.device .tab span.on { color: var(--accent-2); }

.device-caption {
  text-align: center; margin-top: 14px;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-mute);
}

/* ---------- Experience ---------- */
.timeline { margin-top: 18px; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 4px; bottom: 4px;
  width: 2px; background: linear-gradient(180deg, var(--accent), transparent 90%);
  border-radius: 2px; opacity: 0.5;
}
.job {
  position: relative; padding: 8px 0 24px 34px;
}
.job::before {
  content: ""; position: absolute; left: 2px; top: 16px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(79,140,255,0.14);
}
.job .row {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 6px 16px;
}
.job h3 { margin: 0; font-size: 18px; font-weight: 600; }
.job h3 .company { color: var(--accent-2); }
.job .meta {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-mute);
  letter-spacing: 0.04em;
}
.job .type {
  display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text-dim); font-family: var(--font-mono);
  margin-left: 8px; letter-spacing: 0.06em;
}
.job ul {
  list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px;
}
.job ul li {
  color: var(--text-dim); font-size: 15px; padding-left: 16px; position: relative;
}
.job ul li::before {
  content: "▸"; position: absolute; left: 0; top: 0; color: var(--accent-2); font-size: 11px;
}

/* ---------- Principles ---------- */
.principles-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px; margin-top: 22px;
}
.principle {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-card); padding: 20px;
}
.principle .num {
  font-family: var(--font-mono); font-size: 12px; color: var(--accent-2);
  letter-spacing: 0.14em;
}
.principle h4 { margin: 6px 0 8px; font-size: 17px; }
.principle p { margin: 0; font-size: 14px; color: var(--text-dim); }

/* ---------- Contact ---------- */
.contact-card {
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(79,140,255,0.10), rgba(79,140,255,0.02));
  padding: clamp(24px, 4vw, 36px);
  margin-top: 22px;
}
.contact-card h3 { margin: 0 0 8px; font-size: var(--step-3); }
.contact-card p { color: var(--text-dim); margin: 0 0 20px; max-width: 80ch; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-meta {
  margin-top: 20px; padding-top: 20px; border-top: 1px dashed var(--border);
  display: flex; flex-wrap: wrap; gap: 20px 32px; font-size: 13px; color: var(--text-mute);
  font-family: var(--font-mono);
}
.contact-meta span { display: inline-flex; align-items: center; gap: 8px; }
.contact-meta svg { width: 14px; height: 14px; color: var(--accent-2); }

/* ---------- Footer ---------- */
footer.site {
  padding: 32px 0 40px; border-top: 1px solid var(--border);
  color: var(--text-mute); font-size: 13px;
}
footer.site .row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  align-items: center;
}
footer.site .links { display: flex; gap: 18px; }
footer.site a { color: var(--text-mute); }
footer.site a:hover { color: var(--text); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .status .dot { animation: none; }
  .photo-frame::after { animation: none; }
  html { scroll-behavior: auto; }
}