:root {
  --bg: #070510;
  --bg-soft: #0e0a1a;
  --panel: #110c20;
  --panel-2: #171027;
  --purple: #a855f7;
  --purple-bright: #c084fc;
  --purple-soft: #8b5cf6;
  --text: #f7f3ff;
  --muted: #a9a1ba;
  --line: rgba(192,132,252,.16);
  --line-strong: rgba(192,132,252,.34);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 80% 10%, rgba(139,92,246,.12), transparent 28%),
    radial-gradient(circle at 10% 50%, rgba(168,85,247,.08), transparent 25%),
    var(--bg);
  color: var(--text);
  font-family: "Montserrat", system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: rgba(168,85,247,.4); color: #fff; }

.noise {
  position: fixed; inset: 0; pointer-events: none; opacity: .035; z-index: 50;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  height: 78px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw;
  background: rgba(255,255,255,.97); backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(16,5,37,.12);
  box-shadow: 0 8px 30px rgba(16,5,37,.08);
}
.brand { display: flex; align-items: center; width: 150px; }
.brand-logo { display: block; width: 150px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 28px; font-size: 13px; color: #5f5868; }
.main-nav a { transition: color .2s ease; }
.main-nav a:hover { color: var(--bg); }
.nav-cta { color: var(--bg) !important; border: 1px solid rgba(137,75,210,.55); padding: 9px 15px; }
.nav-cta:hover { background: rgba(137,75,210,.08); }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--bg); width: 42px; height: 42px; }
.menu-toggle span { display:block; height:1px; background:var(--bg); margin:6px 0; }

.section { width: min(var(--max), 90vw); margin: 0 auto; padding: 58px 0; position: relative; }
.hero { min-height: 78vh; display: grid; align-content: center; grid-template-columns: 1.1fr .9fr; gap: 60px; padding-top: 98px; padding-bottom: 52px; }
.hero-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .28;
  background-image: linear-gradient(rgba(192,132,252,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192,132,252,.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}
.hero-content { position: relative; z-index: 1; }
.eyebrow, .kicker, .section-label, .project-type, .edu-status {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 700;
}
.eyebrow { color: var(--purple-bright); display: flex; align-items: center; gap: 9px; }
.pulse { width: 7px; height: 7px; background: var(--purple-bright); border-radius: 50%; box-shadow: 0 0 14px var(--purple); }
h1, h2, h3 { font-family: "Montserrat", sans-serif; line-height: 1.03; margin: 0; }
h1 { font-size: clamp(54px, 7vw, 94px); letter-spacing: -.055em; margin: 22px 0; }
h1 span, h2 span { color: var(--purple-bright); }
.hero-copy { max-width: 640px; color: var(--muted); font-size: 17px; }
.hero-actions, .contact-actions { display:flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.button {
  display: inline-flex; align-items: center; gap: 16px; min-height: 48px; padding: 0 18px;
  border: 1px solid var(--line-strong); font-size: 13px; font-weight: 700;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.45); }
.button-primary { background: linear-gradient(135deg, #8b5cf6, #a855f7); color: #fff; border-color: transparent; }
.button-ghost { background: rgba(255,255,255,.02); }

.hero-terminal {
  align-self: center; justify-self: end; width: min(100%, 430px);
  border: 1px solid var(--line); background: rgba(13,9,25,.85);
  box-shadow: 0 35px 100px rgba(0,0,0,.45), 0 0 80px rgba(139,92,246,.09);
}
.terminal-top { height: 38px; display:flex; align-items:center; gap:7px; padding:0 13px; border-bottom:1px solid var(--line); }
.terminal-top > span { width:7px; height:7px; border-radius:50%; background:#4a4257; }
.terminal-top small { margin-left:auto; color:#766e83; font-size:10px; }
.terminal-body { padding: 24px; font: 13px/2.05 "SFMono-Regular", Consolas, monospace; color:#d9d1e8; }
.terminal-body p { margin:0; }
.code-purple { color:var(--purple-bright); }
.terminal-result { color:#91899e; padding-left: 18px; }
.status { color:#b7f7d1; }
.cursor { color:var(--purple-bright); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity:0; } }
.scroll-cue { position:absolute; bottom:18px; left:0; font-size:9px; color:#766e83; letter-spacing:.2em; display:flex; align-items:center; gap:10px; }
.scroll-cue span { width:30px; height:1px; background:var(--line-strong); }

.section-label { color:#756c83; border-top:1px solid var(--line); padding-top:10px; margin-bottom:26px; }
.about-layout { display:grid; grid-template-columns:.85fr 1.15fr; gap:72px; }
.kicker { color:var(--purple-bright); margin:0 0 18px; }
.about h2, .section-heading h2, .lab h2, .journey h2, .contact h2 { font-size: clamp(38px, 5vw, 66px); letter-spacing:-.045em; }
.about-copy { color:var(--muted); font-size:16px; max-width:680px; }
.about-copy .lead { color:#ece6f7; font-size:20px; line-height:1.55; }
.signature-line { border-top:1px solid var(--line); margin-top:35px; padding-top:14px; display:flex; justify-content:space-between; color:#786f86; font-size:10px; letter-spacing:.18em; }

.capabilities { margin-top:46px; display:grid; grid-template-columns:repeat(4,1fr); border-top:1px solid var(--line); }
.capability { padding:22px 22px 8px 0; border-right:1px solid var(--line); min-height:142px; }
.capability:not(:first-child) { padding-left:22px; }
.capability:last-child { border-right:0; }
.cap-number { color:var(--purple-bright); font: 11px "SFMono-Regular", Consolas, monospace; }
.capability h3 { font-size:23px; margin:20px 0 8px; }
.capability p { margin:0; color:var(--muted); font-size:13px; }

.section-heading { display:flex; justify-content:space-between; gap:40px; align-items:end; margin-bottom:26px; }
.section-note { max-width:330px; color:#7e758c; font-size:13px; margin:0; }
.project-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
.project-card {
  position:relative; min-height:310px; padding:28px; overflow:hidden;
  background:linear-gradient(145deg, rgba(23,16,39,.92), rgba(12,8,22,.96));
  border:1px solid var(--line);
  transition: transform .25s ease, border-color .25s ease;
}
.project-card:hover { transform:translateY(-5px); border-color:var(--line-strong); }
.project-featured { grid-row:span 2; min-height:636px; }
.project-number { color:#6d6578; font:11px monospace; }
.project-icon { position:absolute; top:22px; right:28px; font-size:46px; color:var(--purple); opacity:.75; }
.project-content { position:absolute; left:28px; right:28px; bottom:24px; }
.project-type { color:#8e82a0; margin-bottom:12px; }
.project-card h3 { font-size:30px; margin-bottom:12px; }
.project-card p { color:var(--muted); font-size:13px; max-width:620px; }
.tags { display:flex; flex-wrap:wrap; gap:7px; margin-top:18px; }
.tags span { padding:5px 9px; border:1px solid var(--line); color:#a99fb5; font-size:10px; }

.lab { border-top:1px solid var(--line); }
.lab-layout { display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:center; }
.lab-copy > p:not(.kicker) { color:var(--muted); max-width:550px; margin-top:20px; }
.lab-command { margin-top:22px; font:13px monospace; color:#a59ab3; }
.prompt { color:var(--purple-bright); margin-right:10px; }
.lab-cards { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.lab-card { min-height:132px; padding:22px; border:1px solid var(--line); background:rgba(255,255,255,.015); display:flex; flex-direction:column; justify-content:space-between; }
.lab-card span { color:#6e657a; font:10px monospace; }
.lab-card strong { font:23px "Space Grotesk", sans-serif; }
.lab-card small { color:#777080; font-size:11px; }

.note-placeholder { display:flex; align-items:center; gap:24px; padding:26px; border:1px dashed var(--line-strong); background:rgba(255,255,255,.015); }
.note-symbol { width:48px; height:48px; display:grid; place-items:center; border:1px solid var(--line-strong); color:var(--purple-bright); font-size:26px; }
.note-placeholder h3 { font-size:26px; }
.note-placeholder p { margin:7px 0 0; color:var(--muted); font-size:13px; }
.coming { margin-left:auto; color:#6f667a; font:10px monospace; letter-spacing:.12em; }

.journey { overflow:hidden; }
.journey-head { max-width:720px; }
.timeline { display:flex; align-items:stretch; margin-top:30px; }
.timeline-item { flex:1; min-height:132px; padding:18px; border:1px solid var(--line); background:rgba(255,255,255,.012); }
.timeline-item span { color:var(--purple-bright); font:10px monospace; }
.timeline-item strong { display:block; margin-top:24px; font:18px "Space Grotesk", sans-serif; }
.timeline-item small { display:block; color:#766e80; margin-top:5px; }
.timeline-line { width:28px; align-self:center; height:1px; background:var(--line-strong); flex:0 0 28px; }
.timeline-item.future { border-color:rgba(168,85,247,.35); box-shadow: inset 0 0 40px rgba(139,92,246,.06); }

.education-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.edu-card { border:1px solid var(--line); padding:24px; min-height:190px; background:rgba(255,255,255,.012); }
.edu-status { color:#8c8396; }
.edu-status.active { color:var(--purple-bright); }
.edu-card h3 { font-size:24px; margin:28px 0 12px; }
.edu-card p { color:var(--muted); font-size:13px; }

.contact { text-align:center; min-height:500px; display:grid; place-items:center; }
.contact-glow { position:absolute; width:500px; height:500px; border-radius:50%; background:radial-gradient(circle, rgba(168,85,247,.16), transparent 65%); filter:blur(15px); }
.contact-content { position:relative; max-width:780px; }
.contact-content > p:not(.kicker) { color:var(--muted); max-width:600px; margin:25px auto 0; }
.contact-actions { justify-content:center; }

.footer { width:min(var(--max),90vw); margin:auto; padding:22px 0 30px; border-top:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; gap:20px; color:#71697c; font-size:11px; }
.footer-brand { display:flex; align-items:center; gap:10px; }
.footer-brand strong { display:block; color:#bcb4c6; letter-spacing:.14em; font-size:11px; }
.footer-brand small { font-size:8px; letter-spacing:.12em; }
.footer p { margin:0; }
.footer > a { color:#a39aa9; }

.reveal { opacity:0; transform:translateY(20px); transition:opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity:1; transform:none; }

@media (max-width: 900px) {
  .site-header { padding:0 5vw; }
  .menu-toggle { display:block; }
  .main-nav {
    position:absolute; top:78px; left:0; right:0; display:none; flex-direction:column; align-items:stretch;
    padding:18px 5vw 25px; background:rgba(255,255,255,.98); border-bottom:1px solid rgba(16,5,37,.12); box-shadow:0 15px 35px rgba(16,5,37,.08);
  }
  .main-nav.open { display:flex; }
  .main-nav a { padding:11px 0; }
  .nav-cta { text-align:center; margin-top:6px; }
  .hero { grid-template-columns:1fr; min-height:auto; padding-top:150px; }
  .hero-terminal { justify-self:start; width:100%; max-width:540px; }
  .scroll-cue { display:none; }
  .about-layout, .lab-layout { grid-template-columns:1fr; gap:45px; }
  .capabilities { grid-template-columns:1fr 1fr; }
  .capability:nth-child(2) { border-right:0; }
  .capability:nth-child(3), .capability:nth-child(4) { border-top:1px solid var(--line); }
  .project-featured { grid-row:auto; min-height:430px; }
  .project-grid { grid-template-columns:1fr; }
  .section-heading { align-items:start; flex-direction:column; }
  .timeline { display:grid; grid-template-columns:1fr; gap:8px; }
  .timeline-line { width:1px; height:18px; justify-self:start; margin-left:22px; }
  .education-grid { grid-template-columns:1fr; }
}

@media (max-width: 600px) {
  .section { padding:52px 0; }
  .brand { width: 128px; }
  .brand-logo { width: 128px; }
  h1 { font-size:52px; }
  .hero-copy { font-size:15px; }
  .capabilities, .lab-cards { grid-template-columns:1fr; }
  .capability, .capability:not(:first-child) { border-right:0; padding-left:0; }
  .capability + .capability { border-top:1px solid var(--line); }
  .note-placeholder { align-items:flex-start; flex-wrap:wrap; padding:24px; }
  .coming { width:100%; margin-left:72px; }
  .footer { flex-direction:column; align-items:flex-start; }
  .signature-line { flex-direction:column; gap:8px; }
}

/* Minimal project imagery — brand-aligned, self-contained, no external image dependency */
.project-card { overflow:hidden; isolation:isolate; }
.project-visual { position:absolute; inset:0; z-index:0; opacity:.9; pointer-events:none; }
.project-visual::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(8,3,15,.02) 0%, rgba(8,3,15,.10) 35%, rgba(8,3,15,.94) 78%, #08030f 100%); }
.project-visual img { width:100%; height:100%; object-fit:cover; display:block; transform:scale(1.02); filter:saturate(.92) contrast(1.02); }
.project-content, .project-number, .project-icon { z-index:2; }
.project-number { position:relative; }
.project-icon { text-shadow:0 0 24px rgba(137,75,210,.45); }
.project-card:hover .project-visual img { transform:scale(1.045); transition:transform .45s ease; }
.project-featured .project-visual::after { background:linear-gradient(180deg, rgba(8,3,15,.02) 0%, rgba(8,3,15,.08) 42%, rgba(8,3,15,.72) 70%, #08030f 94%); }
@media (max-width: 820px){
  .project-visual { opacity:.82; }
}
