:root{
  --bg: #0b1220;
  --bg-2: #0e172a;
  --panel: #101a2b;
  --card: #0f1a2c;
  --text: #e6edf6;
  --muted: #9db2ce;
  --brand-a: #22d3ee; /* cyan-400 */
  --brand-b: #60a5fa; /* blue-400 */
  --accent: #31c4ff;
  --ring: 0 0 0 2px rgba(49,196,255,.25);
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 16px;
}

* { box-sizing: border-box; }
html, body { height: 100%; scroll-behavior: smooth; }
body{
  margin:0; font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text); background: radial-gradient(1200px 600px at 70% -10%, #12203a 0%, var(--bg) 60%), var(--bg);
  line-height:1.6;
}

/* Low-poly floaters */
.bg-polys{
  position: fixed; inset: -100px -100px auto -100px; height: 100vh; width: 100vw; pointer-events:none; z-index: 0;
  opacity:.25; filter: blur(.2px);
}
.bg-polys .poly{ fill: url(#g1); opacity:.5; transform-origin:center; animation: float 18s ease-in-out infinite; }
.bg-polys .poly:nth-child(1){ animation-duration: 22s; }
.bg-polys .poly:nth-child(2){ animation-duration: 26s; }
.bg-polys .poly:nth-child(3){ animation-duration: 28s; }
.bg-polys .poly:nth-child(4){ animation-duration: 24s; }
@keyframes float{ 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(12px) } }

.site-header{
  position: sticky; top:0; z-index: 50; background: linear-gradient(0deg, rgba(11,18,32,.0), rgba(11,18,32,.75));
  backdrop-filter: blur(6px);
}
.site-header .wrap{
  max-width: 1100px; margin:0 auto; padding: 14px 20px; display:flex; align-items:center; justify-content:space-between;
}
.brand{ display:flex; align-items:center; gap:10px; color: var(--text); text-decoration:none; }
.brand .mark{ display:grid; place-items:center; width:38px; height:38px; border-radius:12px;
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b)); color:#001221; font-weight:800; }
.brand-text{ font-weight:700; letter-spacing:.2px; }

.nav{ display:flex; gap:18px; }
.nav a{ color: var(--muted); text-decoration:none; padding:6px 8px; border-radius:8px; }
.nav a:hover{ color: var(--text); background: rgba(49,196,255,.08); }

.nav-toggle{ display:none; font: inherit; color:var(--text); background:transparent; border:1px solid rgba(255,255,255,.15); padding:6px 10px; border-radius:10px; }

.section{ position:relative; z-index:1; padding: 80px 20px; }
.wrap{ max-width: 1100px; margin:0 auto; }

.grid-2{ display:grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
.grid-3{ display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }

.title{ font-size: clamp(32px, 4vw, 56px); line-height:1.1; margin: 0 0 12px; }
.subtitle{ color: var(--muted); font-size: clamp(16px, 2vw, 18px); }

.btn{
  display:inline-block; border:0; padding:12px 16px; border-radius:12px; text-decoration:none; font-weight:600;
  background: rgba(255,255,255,.05); color: var(--text); transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover{ transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.primary{ background: linear-gradient(135deg, var(--brand-a), var(--brand-b)); color:#001221; }
.btn.ghost{ background: rgba(255,255,255,.05); color: var(--text); border:1px solid rgba(255,255,255,.08); }
.btn.small{ padding:10px 12px; font-size: 14px; }

.hero .cta{ margin-top:18px; display:flex; gap:12px; flex-wrap:wrap; }
.hero-art{ display:grid; place-items:center; }
.mountains{ width:100%; max-width: 560px; }
.mountains .shine{ fill: rgba(49,196,255,.28); filter: drop-shadow(0 8px 18px rgba(49,196,255,.18)); }

h2{ font-size: clamp(22px, 3vw, 30px); margin: 0 0 14px; }
h3{ margin: 0 0 8px; }

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border:1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.card.glow{ box-shadow: 0 0 0 1px rgba(49,196,255,.18), var(--shadow); }

.tags{ list-style:none; margin:18px 0 0; padding:0; display:flex; flex-wrap:wrap; gap:8px; }
.tags li{
  font-size: 14px; color: var(--text);
  background: linear-gradient(135deg, rgba(34,211,238,.15), rgba(96,165,250,.15));
  border:1px solid rgba(49,196,255,.25);
  border-radius: 999px; padding:6px 10px;
}

.list{ list-style:none; padding:0; margin:0; display:grid; gap:10px; }
.list strong{ color:#cfe6ff; }

.timeline{ counter-reset: step; list-style:none; padding:0; margin:20px 0 0; display:grid; gap:22px; }
.timeline li{ position:relative; padding-left:28px; }
.timeline .dot{
  position:absolute; left:0; top:.35rem; width:12px; height:12px; border-radius:999px;
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b)); box-shadow: 0 0 0 3px rgba(49,196,255,.18);
}
.t-card{ background: rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.08); padding:14px 16px; border-radius:12px; }

.project .p-thumb{
  height: 140px; border-radius:12px; margin-bottom:12px;
  background:
    radial-gradient(200px 80px at 60% 20%, rgba(49,196,255,.35), transparent 60%),
    radial-gradient(200px 120px at 30% 70%, rgba(96,165,250,.35), transparent 60%),
    linear-gradient(135deg, #101a2b, #0b1220);
  border:1px solid rgba(255,255,255,.06);
}

.meta{ display:flex; gap:8px; margin:10px 0 0; }
.chip{
  font-size: 12px; padding:4px 8px; border-radius:999px;
  background: rgba(49,196,255,.12); border:1px solid rgba(49,196,255,.25); color:#dff4ff;
}

.form label{ display:grid; gap:8px; margin-bottom:12px; }
.form input, .form textarea{
  width:100%; color: var(--text); background: #0b1322; border:1px solid rgba(255,255,255,.1);
  border-radius: 10px; padding:12px; outline:none;
}
.form input:focus, .form textarea:focus{ box-shadow: var(--ring); border-color: rgba(49,196,255,.45); }
.form-note{ margin-top:10px; font-size:14px; color: var(--muted); min-height: 1.2em; }

.site-footer{ padding: 24px 20px; border-top: 1px solid rgba(255,255,255,.06); background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.00)); }
.site-footer .wrap{ max-width: 1100px; margin:0 auto; color: var(--muted); }

@media (max-width: 900px){
  .grid-2{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
  .nav{ display:none; position:absolute; right:20px; top:58px; flex-direction:column; background: rgba(16,26,43,.9); padding:10px; border:1px solid rgba(255,255,255,.08); border-radius:12px; }
  .nav[aria-expanded="true"]{ display:flex; }
  .nav-toggle{ display:inline-block; }
}

/* Reduce animation for those who prefer it */
@media (prefers-reduced-motion: reduce){
  .bg-polys .poly, .mountains .shine { animation: none !important; }
  html, body { scroll-behavior: auto; }
}
