:root {
  color-scheme: dark;
  --bg: #05070d;
  --surface: rgba(13, 17, 28, 0.72);
  --surface-strong: rgba(16, 22, 37, 0.9);
  --border: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(125, 211, 252, 0.3);
  --text: #eef3ff;
  --muted: #9aa7c2;
  --purple: #8b5cf6;
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --teal: #2dd4bf;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.42);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1120px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 50% -20%, rgba(59, 130, 246, 0.18), transparent 32rem), linear-gradient(135deg, var(--bg), #03040a 48%, #05070d);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(148, 163, 184, 0.032) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, 0.032) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 82%);
}
::selection { color: #fff; background: rgba(34, 211, 238, 0.35); }
a { color: inherit; text-decoration: none; }
code { color: #c7d2fe; }

.page-shell { position: relative; min-height: 100vh; isolation: isolate; }
.noise { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.18; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.22'/%3E%3C/svg%3E"); }
.aurora { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; filter: blur(10px); }
.aurora span { position: absolute; width: 36rem; height: 36rem; border-radius: 999px; opacity: .2; filter: blur(36px); animation: floatBlob 16s var(--ease) infinite alternate; }
.aurora span:nth-child(1) { top: -12rem; left: -8rem; background: var(--purple); }
.aurora span:nth-child(2) { top: 18rem; right: -14rem; background: var(--cyan); animation-delay: -5s; }
.aurora span:nth-child(3) { bottom: -16rem; left: 28%; background: var(--blue); animation-delay: -9s; }
.cursor-glow { position: fixed; top: 0; left: 0; width: 22rem; height: 22rem; z-index: -1; pointer-events: none; border-radius: 999px; background: radial-gradient(circle, rgba(34, 211, 238, 0.12), transparent 62%); transform: translate3d(-50%, -50%, 0); opacity: 0; transition: opacity 220ms ease; }

.site-header, .hero, .section, .footer { width: min(var(--max-width), calc(100% - 40px)); margin-inline: auto; }
.site-header { padding: 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand, .nav { display: inline-flex; align-items: center; }
.brand { gap: 10px; font-weight: 760; letter-spacing: -0.03em; }
.brand__mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(34, 211, 238, 0.9)); box-shadow: 0 0 38px rgba(34, 211, 238, 0.22); }
.brand__text { font-size: 1.05rem; }
.nav { gap: 6px; padding: 6px; border: 1px solid var(--border); border-radius: 999px; background: rgba(8, 11, 20, 0.54); backdrop-filter: blur(18px); }
.nav a { padding: 9px 14px; border-radius: 999px; color: var(--muted); font-size: 0.92rem; transition: color 180ms ease, background 180ms ease, transform 180ms ease; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.065); transform: translateY(-1px); }

.hero { min-height: calc(100vh - 100px); display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(300px, 0.72fr); align-items: center; gap: 36px; padding: 48px 0 84px; }
.eyebrow { margin: 0 0 18px; color: var(--cyan); font-size: 0.78rem; font-weight: 760; letter-spacing: 0.18em; text-transform: uppercase; }
.hero h1, .section__heading h2 { margin: 0; letter-spacing: -0.07em; line-height: 0.95; }
.hero h1 { font-size: clamp(4.2rem, 14vw, 9.2rem); background: linear-gradient(110deg, #fff, #c7d2fe 30%, #7dd3fc 68%, #ccfbf1); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { margin: 16px 0 0; font-size: clamp(1.15rem, 2.2vw, 1.55rem); color: rgba(238, 243, 255, 0.96); }
.hero__description, .section__heading p, .project-card p, .footer p, .asset-note { color: var(--muted); line-height: 1.7; }
.hero__description { max-width: 640px; margin: 22px 0 0; font-size: 1.06rem; }
.stack { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.stack span { padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(125, 211, 252, 0.18); background: rgba(255, 255, 255, 0.03); color: var(--muted); font-size: 0.95rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 20px; border-radius: 999px; font-weight: 700; transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button--primary { background: linear-gradient(135deg, rgba(139, 92, 246, .92), rgba(59, 130, 246, .9)); box-shadow: 0 14px 42px rgba(59, 130, 246, .22); }
.button--ghost { border: 1px solid rgba(125, 211, 252, .22); background: rgba(255,255,255,.035); }

.info-card, .project-card { position: relative; border: 1px solid var(--border); border-radius: var(--radius-xl); background: linear-gradient(180deg, rgba(13,17,28,.9), rgba(14,23,39,.74)); backdrop-filter: blur(18px); box-shadow: var(--shadow); }
.info-card { padding: 24px; }
.info-card__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid rgba(148,163,184,.08); }
.info-card__row:last-child { border-bottom: 0; }
.info-card__label { color: var(--muted); }

.section { padding: 20px 0 96px; }
.section__heading { max-width: 720px; margin-bottom: 34px; }
.section__heading h2 { font-size: clamp(2.5rem, 7vw, 5rem); }
.section__heading p { margin: 18px 0 0; font-size: 1.06rem; }
.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.project-card { min-height: 100%; display: flex; flex-direction: column; overflow: hidden; transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease; }
.project-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: 0 24px 90px rgba(0,0,0,.5), 0 0 0 1px rgba(125,211,252,.1); }
.project-card--featured { border-color: rgba(139, 92, 246, .28); }
.project-card__media { margin: 22px 22px 0; width: 76px; height: 76px; border-radius: 24px; overflow: hidden; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); box-shadow: 0 18px 52px rgba(0,0,0,.25); }
.project-card__media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.project-card__content { padding: 20px 28px 20px; flex: 1; }
.project-card h3 { margin: 0 0 16px; font-size: 1.5rem; letter-spacing: -0.04em; }
.project-card p { margin: 0; font-size: 1rem; }
.project-card__link { display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 66px; margin: 0 18px 18px; padding: 0 18px; border-radius: 18px; border: 1px solid rgba(125,211,252,.16); background: rgba(255,255,255,.03); color: var(--text); font-weight: 600; }
.project-card__link svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.8; fill: none; }
.asset-note { margin: 24px 0 0; font-size: .95rem; }
.footer { display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 0 0 40px; }
.footer p { margin: 0; font-size: .96rem; }

.not-found { width: min(720px, calc(100% - 40px)); min-height: 100vh; margin-inline: auto; display: grid; place-items: center; padding: 36px 0; }
.not-found__card { width: 100%; padding: clamp(30px, 7vw, 58px); border: 1px solid var(--border); border-radius: var(--radius-xl); background: linear-gradient(180deg, rgba(13,17,28,.9), rgba(14,23,39,.74)); backdrop-filter: blur(18px); box-shadow: var(--shadow); text-align: center; }
.not-found h1 { margin: 0; font-size: clamp(5rem, 20vw, 10rem); line-height: .9; letter-spacing: -.08em; background: linear-gradient(110deg, #fff, #c7d2fe 30%, #7dd3fc 68%, #ccfbf1); -webkit-background-clip: text; background-clip: text; color: transparent; }
.not-found p { max-width: 520px; margin: 22px auto 0; color: var(--muted); line-height: 1.7; }
.not-found__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@keyframes floatBlob { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(4rem,-3rem,0) scale(1.08); } }

@media (max-width: 980px) {
  .hero { min-height: auto; grid-template-columns: 1fr; padding: 36px 0 64px; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card { display: grid; grid-template-columns: auto 1fr; align-items: start; }
  .project-card__media { grid-row: 1 / 3; margin: 22px 0 22px 22px; }
  .project-card__content { padding-right: 22px; }
  .project-card__link { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .site-header { flex-direction: column; align-items: stretch; padding-top: 18px; }
  .brand { justify-content: center; }
  .nav { justify-content: center; flex-wrap: wrap; border-radius: 24px; }
  .nav a { flex: 1 1 auto; text-align: center; min-width: 92px; }
  .hero, .section, .footer, .site-header { width: min(100% - 28px, var(--max-width)); }
  .hero h1 { font-size: clamp(3.6rem, 19vw, 6rem); }
  .hero__actions .button { width: 100%; }
  .info-card__row { gap: 8px; flex-direction: column; align-items: flex-start; }
  .section { padding-bottom: 72px; }
  .project-card { display: flex; }
  .project-card__media { margin: 20px 20px 0; width: 64px; height: 64px; border-radius: 20px; }
  .project-card__content { padding: 18px 20px; }
  .project-card__link { min-height: 58px; margin: 0 14px 14px; }
}
@media (max-width: 420px) {
  .nav a { min-width: 44%; padding: 9px 10px; }
  .hero__description, .section__heading p { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal.is-visible { opacity: 1; transform: none; }
}
