:root {
  --bg: #0f1720;
  --surface: #16212d;
  --surface-2: #1a2836;
  --text: #f4f7fa;
  --muted: #a9b7c5;
  --accent: #8ecdf4;
  --accent-light: #cbeaff;
  --line: rgba(203, 234, 255, 0.12);
  --line-strong: rgba(142, 205, 244, 0.32);
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
  --radius: 22px;
  --shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

::selection { background: var(--accent); color: #07111a; }

.shell { width: min(calc(100% - 40px), var(--shell)); margin: 0 auto; }
.section-pad { padding: 100px 0; }
.section-divider { border-top: 1px solid var(--line); }

.ambient {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.09;
  pointer-events: none;
  z-index: -1;
  background: var(--accent);
}
.ambient-one { right: -120px; top: 80px; }
.ambient-two { left: -180px; top: 620px; width: 520px; height: 520px; opacity: 0.05; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(15, 23, 32, 0.78);
  border-bottom: 1px solid rgba(203, 234, 255, 0.08);
}
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; }
.brand-mark {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px;
  background: linear-gradient(145deg, var(--accent-light), var(--accent)); color: #0b1722;
  font-family: Manrope, sans-serif; font-size: 13px; font-weight: 800; letter-spacing: -0.02em;
  box-shadow: 0 8px 30px rgba(142, 205, 244, 0.14);
}
.brand-name { font-family: Manrope, sans-serif; letter-spacing: -0.02em; }
.primary-nav { display: flex; align-items: center; gap: 30px; color: var(--muted); font-size: 14px; }
.primary-nav a { transition: color .2s ease; }
.primary-nav a:hover { color: var(--accent-light); }
.menu-toggle { display: none; padding: 6px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span:not(.sr-only) { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--text); }

.hero { min-height: 670px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.eyebrow { margin: 0 0 18px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { font-family: Manrope, Inter, sans-serif; letter-spacing: -0.04em; line-height: 1.08; margin-top: 0; }
h1 { font-size: clamp(62px, 10vw, 122px); margin-bottom: 24px; max-width: 1000px; }
h2 { font-size: clamp(38px, 5vw, 64px); margin-bottom: 18px; }
h3 { font-size: 28px; margin-bottom: 16px; }
.hero-copy { max-width: 780px; margin: 0; color: #d7e1ea; font-size: clamp(21px, 2.8vw, 34px); line-height: 1.35; letter-spacing: -0.025em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 38px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 20px;
  border-radius: 999px; border: 1px solid var(--line-strong); font-weight: 700; font-size: 14px; transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: #09141d; border-color: var(--accent); }
.button-primary:hover { background: var(--accent-light); }
.button-secondary { background: rgba(255,255,255,.02); color: var(--text); }
.button-secondary:hover { border-color: var(--accent); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 68px; }
.hero-meta span { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; }

.section-heading { display: grid; grid-template-columns: 1fr minmax(280px, 480px); gap: 50px; align-items: end; margin-bottom: 42px; }
.compact-heading { grid-template-columns: 1fr; }
.section-intro { color: var(--muted); margin: 0; font-size: 17px; }

.project {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(22,33,45,.95), rgba(18,28,38,.95));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.project-featured { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 560px; overflow: hidden; }
.project-visual { min-height: 100%; padding: 26px; position: relative; overflow: hidden; background: #121e29; }
.project-visual::after {
  content: ""; position: absolute; inset: auto -100px -160px auto; width: 360px; height: 360px; border-radius: 50%;
  background: var(--accent); filter: blur(100px); opacity: .12;
}
.visual-topbar { display: flex; gap: 7px; margin-bottom: 26px; }
.visual-topbar span { width: 7px; height: 7px; border-radius: 50%; background: rgba(244,247,250,.35); }
.visual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; height: calc(100% - 34px); }
.visual-card { position: relative; z-index: 1; padding: 24px; border-radius: 18px; border: 1px solid rgba(203,234,255,.12); background: rgba(255,255,255,.025); }
.visual-card-wide { grid-column: 1 / -1; display: flex; flex-direction: column; justify-content: space-between; min-height: 250px; }
.visual-card small { color: var(--accent); font-weight: 700; letter-spacing: .14em; font-size: 10px; }
.visual-card strong { display: block; font-family: Manrope, sans-serif; font-size: clamp(24px, 3vw, 42px); margin-top: 8px; letter-spacing: -.04em; }
.metric span { color: var(--muted); font-size: 12px; }
.sparkline { height: 108px; display: flex; gap: 9px; align-items: flex-end; margin-top: 30px; }
.sparkline span { flex: 1; max-width: 34px; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--accent-light), var(--accent)); opacity: .9; }
.project-content { padding: 42px; display: flex; flex-direction: column; justify-content: center; }
.project-topline { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.status { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.status-complete { background: rgba(142,205,244,.12); color: var(--accent-light); border: 1px solid rgba(142,205,244,.25); }
.status-dev { background: rgba(244,247,250,.06); color: #dbe6ee; border: 1px solid rgba(244,247,250,.12); }
.status-soon { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.project-number { color: #657788; font-size: 12px; font-family: Manrope, sans-serif; font-weight: 800; }
.project-lead { color: #dfe7ed; font-size: 18px; }
.project-content p, .project-compact p { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tags span { padding: 7px 10px; border-radius: 8px; background: rgba(142,205,244,.06); color: #bfd2df; font-size: 11px; border: 1px solid rgba(142,205,244,.08); }
.project-actions { display: flex; align-items: center; gap: 12px; margin-top: 34px; }
.text-link { color: var(--accent-light); font-weight: 700; font-size: 14px; }
.link-note { color: #617383; font-size: 11px; }
.disabled-link { opacity: .65; cursor: not-allowed; }

.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.project-compact { padding: 32px; min-height: 340px; display: flex; flex-direction: column; }
.compact-icon { width: 50px; height: 50px; display: grid; place-items: center; margin: 8px 0 28px; border-radius: 14px; color: var(--accent); background: rgba(142,205,244,.07); border: 1px solid rgba(142,205,244,.12); font-size: 25px; }
.project-compact .tags { margin-top: auto; padding-top: 20px; }
.project-soon { background: linear-gradient(180deg, rgba(18,28,38,.85), rgba(15,23,32,.98)); box-shadow: none; }

.focus-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.focus-grid article { padding: 26px 24px; min-height: 250px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.018); }
.focus-grid article > span { color: var(--accent); font-size: 11px; font-weight: 800; }
.focus-grid h3 { font-size: 20px; margin-top: 56px; }
.focus-grid p { color: var(--muted); font-size: 14px; margin-bottom: 0; }
.tech-strip { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.tech-strip span { color: #bdcad4; font-size: 13px; }
.tech-strip span:not(:last-child)::after { content: " /"; color: #435666; margin-left: 12px; }

.about-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.about-copy p { color: #c6d2dc; font-size: 19px; margin: 0 0 20px; }
.resume-section, .contact-section { display: flex; align-items: flex-end; justify-content: space-between; gap: 50px; }
.resume-section .section-intro, .contact-section .section-intro { max-width: 620px; }
.contact-links { display: flex; flex-direction: column; min-width: 280px; border-top: 1px solid var(--line); }
.contact-links a { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); color: #dbe5ec; }
.contact-links span { color: var(--accent); }

.site-footer { border-top: 1px solid var(--line); }
.footer-wrap { min-height: 110px; display: flex; align-items: center; justify-content: space-between; color: #728291; font-size: 12px; }
.footer-wrap a:hover { color: var(--accent-light); }

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

@media (max-width: 900px) {
  .section-pad { padding: 76px 0; }
  .hero { min-height: 600px; }
  .project-featured { grid-template-columns: 1fr; }
  .project-visual { min-height: 420px; }
  .section-heading { grid-template-columns: 1fr; gap: 12px; }
  .focus-grid { grid-template-columns: 1fr 1fr; }
  .about-layout { grid-template-columns: 1fr; gap: 30px; }
  .resume-section, .contact-section { align-items: flex-start; flex-direction: column; }
  .contact-links { width: 100%; }
}

@media (max-width: 680px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .brand-name { display: none; }
  .menu-toggle { display: block; }
  .primary-nav {
    position: absolute; top: 76px; left: 14px; right: 14px; display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: rgba(15,23,32,.98); box-shadow: var(--shadow);
  }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 12px; }
  h1 { font-size: clamp(54px, 17vw, 78px); }
  .hero-copy { font-size: 21px; }
  .hero-meta { margin-top: 46px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-content { padding: 30px 24px; }
  .project-visual { min-height: 360px; padding: 18px; }
  .visual-grid { grid-template-columns: 1fr; }
  .visual-card-wide { grid-column: auto; min-height: 200px; }
  .metric { display: none; }
  .focus-grid { grid-template-columns: 1fr; }
  .focus-grid article { min-height: 210px; }
  .focus-grid h3 { margin-top: 40px; }
  .about-copy p { font-size: 17px; }
  .footer-wrap { flex-direction: column; justify-content: center; gap: 6px; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
