/* ============ FONTS ============ */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@300;400;500;600&family=Instrument+Serif:ital@0;1&display=swap');

/* ============ TOKENS ============ */
:root {
  --bg:        #060810;
  --surface:   #0c1120;
  --surface-2: #131a2c;
  --glass:     rgba(255,255,255,0.04);
  --border:    rgba(255,255,255,0.08);
  --border-2:  rgba(255,255,255,0.14);
  --cyan:      #38bdf8;
  --violet:    #8b5cf6;
  --emerald:   #10b981;
  --text:      #fafafa;
  --muted:     #94a3b8;
  --dim:       #475569;
  --red:       #ef4444;
  --amber:     #f59e0b;
  --green:     #22c55e;

  --font-sans: 'Geist', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-serif:'Instrument Serif', Georgia, serif;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  line-height: 1.55;
}
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ============ BACKGROUND FX ============ */
.world-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 20% 10%, rgba(56,189,248,.12), transparent 60%),
    radial-gradient(50% 40% at 90% 30%, rgba(139,92,246,.12), transparent 60%),
    radial-gradient(60% 50% at 50% 100%, rgba(56,189,248,.08), transparent 70%),
    var(--bg);
}
.world-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
}
.noise {
  position: fixed; inset: 0; z-index: -1; opacity: .04; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .7 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* spotlight that follows cursor — applied to sections that opt in */
.spotlight {
  position: relative;
  --mx: 50%; --my: 50%;
}
.spotlight::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 320px at var(--mx) var(--my), rgba(56,189,248,.12), transparent 60%);
  z-index: 0;
}
.spotlight > * { position: relative; z-index: 1; }

/* ============ LAYOUT ============ */
.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
section { padding: 120px 0; position: relative; }
@media (max-width: 720px) { section { padding: 80px 0; } }

.kicker {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--cyan); display: inline-flex; align-items: center; gap: 10px;
}
.kicker::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 12px var(--cyan);
}
h2.section-title {
  font-family: var(--font-sans);
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 14px 0 16px;
  text-wrap: balance;
}
.section-sub {
  color: var(--muted); font-size: 17px; max-width: 720px;
  text-wrap: pretty;
}

/* ============ GLASS ============ */
.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 18px;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}
.glass-strong {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--border-2);
  border-radius: 18px;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px;
  font-family: var(--font-sans); font-size: 14px; font-weight: 500;
  border: 1px solid transparent;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, border-color .25s, background .25s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(180deg, #5cc8ff 0%, var(--cyan) 100%);
  color: #021622;
  box-shadow: 0 8px 24px rgba(56,189,248,.35), inset 0 1px 0 rgba(255,255,255,.6);
}
.btn-primary:hover { box-shadow: 0 12px 32px rgba(56,189,248,.5), inset 0 1px 0 rgba(255,255,255,.6); }
.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border-color: var(--border-2);
  backdrop-filter: blur(20px);
}
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(139,92,246,.5); }
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ============ CUSTOM CURSOR ============ */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  border-radius: 50%; mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px; background: var(--cyan);
  transform: translate(-50%, -50%);
  transition: width .15s, height .15s, background .15s;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid var(--cyan);
  transform: translate(-50%, -50%);
  transition: width .2s, height .2s, border-color .2s, border-radius .15s;
}
.cursor-ring.hover { width: 56px; height: 56px; border-color: var(--violet); }
.cursor-ring.text {
  width: 4px; height: 28px; border-radius: 2px;
  border-color: var(--cyan); background: var(--cyan);
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============ NAV ============ */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 100; width: calc(100% - 32px); max-width: 1180px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-radius: 999px;
  background: rgba(12,17,32,0.55);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  transition: padding .25s ease, background .25s ease, top .25s;
}
.nav.scrolled {
  padding: 8px 14px;
  background: rgba(6,8,16,0.75);
  top: 10px;
}
.nav-logo { font-weight: 600; letter-spacing: -.02em; padding: 0 8px; }
.nav-logo span { color: var(--cyan); }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  font-size: 13px; color: var(--muted); padding: 8px 14px; border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 0; padding: 4px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255,255,255,.03);
  font-family: var(--font-mono); font-size: 11px;
}
.lang-toggle button {
  background: transparent; color: var(--muted); border: 0;
  padding: 4px 10px; border-radius: 999px;
}
.lang-toggle button.active { background: var(--cyan); color: #021622; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--border-2);
  font-size: 13px;
}
.nav-cta:hover { border-color: var(--cyan); color: var(--cyan); }
.nav-burger {
  display: none; background: transparent; border: 0; color: var(--text); padding: 6px;
}
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
}
.nav-drawer {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(6,8,16,0.96);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  font-size: 24px; transform: translateY(-100%); transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.nav-drawer.open { transform: translateY(0); }
.nav-drawer a { padding: 8px 16px; color: var(--text); }

/* ============ MAGNETIC (applied via JS) ============ */
.magnetic { transition: transform .25s cubic-bezier(.2,.8,.2,1); }

/* ============ HERO ============ */
.hero { padding-top: 160px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: center; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  font-size: 12px; color: var(--muted);
  font-family: var(--font-mono);
}
.badge .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(16,185,129,0.7);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16,185,129,0.6); }
  70% { box-shadow: 0 0 0 10px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

.hero h1 {
  font-size: clamp(40px, 6.2vw, 78px);
  line-height: 1; letter-spacing: -0.03em; font-weight: 600;
  margin: 20px 0 0; text-wrap: balance;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--violet) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .rotator {
  font-family: var(--font-mono); color: var(--muted); font-size: 18px;
  margin: 22px 0 18px; min-height: 28px; display: flex; align-items: center; gap: 8px;
}
.hero .rotator .caret {
  display: inline-block; width: 9px; height: 18px; background: var(--cyan);
  animation: blink 1s steps(2) infinite; vertical-align: middle;
}
@keyframes blink { 50% { opacity: 0; } }
.hero p.blurb { color: var(--muted); font-size: 18px; max-width: 540px; }
.hero-ctas { display: flex; gap: 12px; margin: 32px 0 18px; flex-wrap: wrap; }
.hero-socials { display: flex; gap: 16px; color: var(--muted); font-size: 14px; }
.hero-socials a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; }
.hero-socials a:hover { color: var(--cyan); background: rgba(56,189,248,.06); }

/* Photo */
.hero-photo-wrap {
  position: relative; width: 100%; max-width: 380px; margin-left: auto; aspect-ratio: 1;
}
@media (max-width: 880px) { .hero-photo-wrap { margin: 0 auto; max-width: 320px; } }
.hero-photo {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  position: relative; z-index: 2;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.hero-ring {
  position: absolute; inset: -12px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--cyan), var(--violet), var(--cyan));
  filter: blur(2px); z-index: 1;
  animation: spin 14s linear infinite;
  mask: radial-gradient(transparent 64%, black 66%);
  -webkit-mask: radial-gradient(transparent 64%, black 66%);
}
.hero-ring.outer {
  inset: -28px; opacity: .35; filter: blur(8px);
  animation-duration: 28s; animation-direction: reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ ABOUT + NOW ============ */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; } }
.about-bio p { color: var(--muted); font-size: 17px; margin: 0 0 16px; max-width: 580px; }
.about-bio p:first-of-type::first-letter {
  font-family: var(--font-serif); font-size: 60px; line-height: .8;
  float: left; padding: 6px 12px 0 0; color: var(--text);
}

.now-card { padding: 24px; }
.now-card h3 {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--cyan); margin: 0 0 16px;
  display: inline-flex; align-items: center; gap: 10px;
}
.now-card h3 .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(16,185,129,0.7);
  animation: pulse 1.8s infinite;
}
.now-list { list-style: none; padding: 0; margin: 0 0 22px; }
.now-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0; border-bottom: 1px dashed var(--border);
  font-size: 14px;
}
.now-list li:last-child { border-bottom: 0; }
.now-list li .ico { font-size: 16px; flex-shrink: 0; }

.gh-card { padding: 16px; background: rgba(0,0,0,.25); border-radius: 14px; border: 1px solid var(--border); font-family: var(--font-mono); font-size: 12px; }
.gh-card h4 { margin: 0 0 12px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.gh-row { padding: 8px 0; border-top: 1px dashed var(--border); display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.gh-row:first-of-type { border-top: 0; }
.gh-row .repo { color: var(--cyan); }
.gh-row .msg { color: var(--text); display: block; margin-top: 2px; opacity: .85; }
.gh-row .when { color: var(--dim); font-size: 11px; white-space: nowrap; }

/* ============ ANGELO OS ============ */
.os-frame {
  position: relative;
  border-radius: 18px;
  border: 1px solid var(--border-2);
  overflow: hidden;
  background:
    radial-gradient(80% 60% at 30% 20%, rgba(56,189,248,.18), transparent 60%),
    radial-gradient(80% 60% at 80% 80%, rgba(139,92,246,.18), transparent 60%),
    var(--surface);
  box-shadow: 0 30px 100px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.05);
  min-height: 640px;
}
.os-menubar {
  display: flex; align-items: center; gap: 18px;
  padding: 8px 16px;
  background: rgba(0,0,0,.4);
  border-bottom: 1px solid var(--border);
  font-size: 12px; font-family: var(--font-mono);
  color: var(--muted);
}
.os-menubar .os-logo { color: var(--text); font-weight: 600; }
.os-menubar .os-spacer { flex: 1; }
.os-menubar .os-meta { color: var(--muted); display: flex; gap: 14px; align-items: center; }

.os-desktop {
  position: relative; min-height: 560px;
  padding: 28px;
}
.os-icons {
  display: grid;
  grid-template-columns: repeat(auto-fill, 104px);
  gap: 18px 22px;
}
.os-icon {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 14px 8px 12px; border-radius: 12px;
  cursor: pointer; user-select: none;
  background: rgba(12, 17, 32, 0.55);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  color: var(--text);
  transition: background .2s, border-color .2s, transform .15s, box-shadow .2s;
  text-align: center;
}
.os-icon:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--cyan);
  box-shadow: 0 8px 24px rgba(56,189,248,0.18);
  transform: translateY(-1px);
}
.os-icon:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.os-icon.selected {
  background: rgba(139,92,246,0.14);
  border-color: rgba(139,92,246,0.6);
  box-shadow: 0 8px 24px rgba(139,92,246,0.2);
}
.os-icon .glyph {
  font-size: 38px; line-height: 1;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.5));
}
.os-icon .label {
  font-size: 11px; font-family: var(--font-mono);
  color: #fafafa; font-weight: 500;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
  word-break: break-word; hyphens: auto;
  line-height: 1.25;
}

/* Window */
.os-window {
  position: absolute;
  width: min(640px, 90%);
  height: min(440px, 80%);
  background: rgba(12,17,32,.92);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.7);
  display: flex; flex-direction: column;
  backdrop-filter: blur(20px);
  animation: winIn .18s cubic-bezier(.2,.8,.2,1);
}
@keyframes winIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
.os-window.terminal { background: rgba(0,0,0,.95); width: min(580px, 90%); height: min(360px, 70%); }
.os-titlebar {
  display: flex; align-items: center; padding: 10px 14px;
  background: rgba(0,0,0,.4); border-bottom: 1px solid var(--border);
  font-size: 12px; user-select: none; cursor: grab;
}
.os-titlebar:active { cursor: grabbing; }
.os-dots { display: flex; gap: 7px; margin-right: 14px; }
.os-dots span { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.os-dots .r { background: #ff5f57; cursor: pointer; }
.os-dots .y { background: #febc2e; }
.os-dots .g { background: #28c840; }
.os-title { color: var(--muted); font-family: var(--font-mono); font-size: 11px; flex: 1; text-align: center; }
.os-toolbar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
  background: rgba(255,255,255,.02);
}
.os-toolbar .nav-arrow { padding: 2px 6px; border-radius: 4px; border: 1px solid var(--border); }
.os-toolbar .path { background: rgba(0,0,0,.4); padding: 3px 10px; border-radius: 5px; color: var(--cyan); }

.os-body { flex: 1; display: grid; grid-template-columns: 180px 1fr; min-height: 0; }
.os-sidebar { background: rgba(0,0,0,.3); border-right: 1px solid var(--border); padding: 8px; overflow-y: auto; }
.os-sidebar .file-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 6px;
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
  cursor: pointer; transition: background .12s, color .12s;
}
.os-sidebar .file-item:hover { background: rgba(255,255,255,.04); color: var(--text); }
.os-sidebar .file-item.active { background: rgba(56,189,248,.14); color: var(--cyan); }
.os-pane {
  padding: 16px 20px; overflow: auto; font-family: var(--font-mono);
  font-size: 12px; line-height: 1.7; color: var(--text);
  white-space: pre-wrap;
}
.os-pane .empty { color: var(--dim); }

/* Terminal */
.term { padding: 14px 16px; flex: 1; overflow-y: auto; font-family: var(--font-mono); font-size: 12px; color: #cbd5e1; }
.term .line { margin: 0; }
.term .prompt { color: var(--emerald); }
.term .out { color: var(--text); }
.term .dim { color: var(--dim); }
.term .err { color: #f87171; }
.term .accent { color: var(--cyan); }
.term-input-row { display: flex; gap: 6px; padding: 0 16px 12px; align-items: center; }
.term-input-row input {
  background: transparent; border: 0; outline: 0; flex: 1;
  font-family: var(--font-mono); color: var(--text); font-size: 12px;
}

.os-mobile {
  padding: 16px;
  display: none;
}
.os-mobile details {
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; margin: 8px 0;
  background: rgba(0,0,0,.25);
}
.os-mobile summary {
  cursor: pointer; font-family: var(--font-mono); font-size: 13px;
  display: flex; align-items: center; gap: 10px;
}
.os-mobile pre { font-family: var(--font-mono); font-size: 11px; color: var(--muted); white-space: pre-wrap; margin: 10px 0 0; line-height: 1.6; }
@media (max-width: 720px) {
  .os-desktop { display: none; }
  .os-mobile { display: block; }
  .os-frame { min-height: auto; }
}

/* ============ EXPERIENCE TIMELINE ============ */
.timeline { position: relative; padding: 20px 0; }
.timeline::before {
  content: ""; position: absolute; top: 0; bottom: 0;
  left: 50%; transform: translateX(-50%);
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--border-2), transparent);
}
.tl-item { display: grid; grid-template-columns: 1fr 60px 1fr; gap: 0; margin: 28px 0; }
.tl-item .dot {
  grid-column: 2; align-self: center; justify-self: center;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 6px rgba(56,189,248,.15), 0 0 24px var(--cyan);
}
.tl-item.featured .dot { background: var(--violet); box-shadow: 0 0 0 6px rgba(139,92,246,.18), 0 0 24px var(--violet); }
.tl-card { padding: 18px 22px; max-width: 460px; }
.tl-card.right { grid-column: 3; }
.tl-card.left { grid-column: 1; justify-self: end; }
.tl-card .head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.tl-card .avatar {
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, rgba(56,189,248,.25), rgba(139,92,246,.25));
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  border: 1px solid var(--border-2);
}
.tl-card h4 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.tl-card .meta { font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-top: 2px; }
.tl-card ul { padding: 0; margin: 8px 0 0; list-style: none; }
.tl-card ul li {
  display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin: 6px 0;
}
.tl-card ul li::before { content: "→"; color: var(--cyan); flex-shrink: 0; }
.tl-card.featured .badge-feat {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  background: rgba(139,92,246,.18); color: #c4b5fd;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  margin-left: auto;
}
@media (max-width: 720px) {
  .timeline::before { left: 16px; }
  .tl-item { grid-template-columns: 32px 1fr; }
  .tl-item .dot { grid-column: 1; }
  .tl-card { grid-column: 2 !important; max-width: none; justify-self: stretch !important; }
}

/* ============ PROJECTS ============ */
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 40px; }
.chip {
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--border-2);
  background: rgba(255,255,255,0.03); color: var(--muted);
  font-size: 13px;
  transition: all .2s;
}
.chip:hover { color: var(--text); border-color: rgba(56,189,248,.5); }
.chip.active {
  background: rgba(56,189,248,.16); border-color: var(--cyan); color: var(--cyan);
}

.proj-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
@media (max-width: 980px) { .proj-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .proj-grid { grid-template-columns: 1fr; } }
.proj-card {
  grid-column: span 2;
  padding: 0; overflow: hidden;
  cursor: pointer; position: relative;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
  transform-style: preserve-3d;
}
.proj-card.featured { grid-column: span 3; }
@media (max-width: 980px) { .proj-card, .proj-card.featured { grid-column: span 1; } }

.proj-thumb {
  position: relative; padding-top: 58%;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.proj-thumb .browser-bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px; background: rgba(0,0,0,.5); backdrop-filter: blur(8px);
}
.proj-thumb .browser-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.proj-thumb .browser-bar .url { margin-left: 8px; font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.proj-thumb img {
  position: absolute; inset: 32px 0 0 0; width: 100%; height: calc(100% - 32px); object-fit: cover; object-position: top;
  transition: transform .5s;
}
.proj-card:hover .proj-thumb img { transform: scale(1.04); }
/* ============ GENERATIVE PROJECT COVERS ============ */
.gen-cover {
  position: absolute; inset: 32px 0 0 0;
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(56,189,248,0.22), transparent 55%),
    radial-gradient(120% 90% at 90% 90%, rgba(139,92,246,0.25), transparent 55%),
    linear-gradient(180deg, #0c1120 0%, #060810 100%);
  overflow: hidden;
  display: flex; flex-direction: column;
  padding: 18px 20px;
}
.gen-cover::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.025) 0 1px,
    transparent 1px 22px
  );
  pointer-events: none;
}
.gen-cover .gc-glyph {
  position: absolute; right: -10px; bottom: -14px;
  width: 180px; height: 180px;
  display: grid; place-items: center;
  color: rgba(255,255,255,0.06);
  pointer-events: none;
}
.gen-cover .gc-glyph svg { width: 100%; height: 100%; }
.gen-cover .gc-name {
  font-family: var(--font-mono); font-size: 11px;
  color: rgba(255,255,255,0.55);
  letter-spacing: .04em;
  display: inline-flex; align-items: center; gap: 8px;
}
.gen-cover .gc-name::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
}
.gen-cover .gc-chips {
  position: absolute; left: 20px; bottom: 18px; right: 20px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.gen-cover .gc-chip {
  padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono); font-size: 10px; color: rgba(255,255,255,0.75);
}

/* DHT11 mini-dashboard cover */
.dht-cover {
  position: absolute; inset: 32px 0 0 0;
  background:
    radial-gradient(80% 60% at 80% 0%, rgba(56,189,248,0.18), transparent 60%),
    radial-gradient(80% 60% at 0% 100%, rgba(139,92,246,0.22), transparent 60%),
    linear-gradient(180deg, #0c1120 0%, #060810 100%);
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
  overflow: hidden;
}
.dht-cover .dht-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.dht-stat {
  padding: 9px 11px; border-radius: 9px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
}
.dht-stat .lbl {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  display: flex; align-items: center; gap: 5px;
}
.dht-stat .lbl .pulse {
  width: 5px; height: 5px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan); animation: pulse 1.5s infinite;
}
.dht-stat .lbl.violet .pulse { background: var(--violet); box-shadow: 0 0 6px var(--violet); }
.dht-stat .val {
  font-family: var(--font-mono); font-weight: 600; font-size: 18px;
  margin-top: 2px;
}
.dht-stat .val.temp { color: var(--cyan); }
.dht-stat .val.hum  { color: var(--violet); }
.dht-chart {
  flex: 1; position: relative;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 9px;
  min-height: 90px;
  padding: 10px;
}
.dht-chart svg { width: 100%; height: 100%; display: block; }
.dht-chart .grid-line { stroke: rgba(255,255,255,0.05); stroke-width: 0.5; }
.dht-chart .axis { stroke: rgba(255,255,255,0.1); stroke-width: 0.5; }
.dht-chart .line-temp {
  fill: none; stroke: var(--cyan); stroke-width: 1.4;
  filter: drop-shadow(0 0 4px rgba(56,189,248,0.7));
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: dhtDraw 6s ease-in-out infinite alternate;
}
.dht-chart .line-hum {
  fill: none; stroke: var(--violet); stroke-width: 1.4;
  filter: drop-shadow(0 0 4px rgba(139,92,246,0.7));
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: dhtDraw 6s 0.4s ease-in-out infinite alternate;
}
.dht-chart .area-temp { fill: url(#dhtTempGrad); opacity: 0.35; }
.dht-chart .area-hum  { fill: url(#dhtHumGrad);  opacity: 0.25; }
@keyframes dhtDraw {
  0%   { stroke-dashoffset: 200; }
  60%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0; }
}
.dht-chart .legend {
  position: absolute; top: 6px; right: 8px;
  display: flex; gap: 8px;
  font-family: var(--font-mono); font-size: 8px;
  color: rgba(255,255,255,0.5); letter-spacing: .08em;
}
.dht-chart .legend span { display: inline-flex; align-items: center; gap: 4px; }
.dht-chart .legend i {
  width: 6px; height: 2px; border-radius: 1px; display: inline-block;
}
.proj-body { padding: 18px 20px 22px; }
.proj-body .row1 { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.proj-body h3 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.proj-body .type { font-family: var(--font-mono); font-size: 11px; color: var(--cyan); text-transform: uppercase; letter-spacing: .12em; }
.proj-body p { color: var(--muted); font-size: 14px; margin: 8px 0 14px; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.proj-tag {
  padding: 3px 9px; border-radius: 6px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 10px; color: var(--muted);
}

/* Modal */
.modal-bd { position: fixed; inset: 0; background: rgba(6,8,16,.85); backdrop-filter: blur(8px); z-index: 200; display: grid; place-items: center; padding: 20px; }
.modal {
  width: min(820px, 100%); max-height: 86vh; overflow: auto;
  padding: 28px;
}
.modal h3 { font-size: 28px; margin: 6px 0 4px; letter-spacing: -.02em; }
.modal .modal-close {
  position: absolute; top: 16px; right: 18px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.06); border: 1px solid var(--border);
  display: grid; place-items: center; cursor: pointer; color: var(--text);
}
.metric-row { display: flex; gap: 18px; flex-wrap: wrap; margin: 18px 0; }
.metric { padding: 12px 16px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,.02); }
.metric .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.metric .v { font-size: 18px; margin-top: 4px; }

/* ============ AURA ============ */
.aura-top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; margin-top: 50px; align-items: stretch; }
@media (max-width: 980px) { .aura-top { grid-template-columns: 1fr; } }
.aura-photo-card { padding: 14px; position: relative; overflow: hidden; }
.aura-photo-card .frame {
  position: relative; border-radius: 12px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.aura-photo-card .frame::before {
  content: ""; position: absolute; inset: -1px; border-radius: 13px;
  background: linear-gradient(135deg, var(--cyan), var(--violet), var(--cyan));
  z-index: 0; opacity: .55; filter: blur(8px);
}
.aura-photo-card .frame img {
  position: relative; z-index: 1;
  width: 100%; height: 360px; object-fit: cover; display: block;
  border-radius: 12px;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.aura-photo-card:hover .frame img { transform: scale(1.03); }
.aura-photo-card .caption {
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px; padding: 0 6px;
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
}
.aura-photo-card .caption .live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald); animation: pulse 1.8s infinite;
}

.chess-trophy {
  display: flex; flex-direction: column; gap: 16px;
  padding: 26px; position: relative; overflow: hidden;
}
.chess-trophy .acad-eyebrow {
  font-family: var(--font-serif); font-style: italic;
  font-size: 14px; color: var(--cyan);
  letter-spacing: .04em;
}
.chess-trophy h3 {
  margin: 4px 0 6px; font-size: 24px; font-weight: 600;
  letter-spacing: -.01em; line-height: 1.15; text-wrap: balance;
}
.chess-trophy .medal {
  position: absolute; top: 22px; right: 22px;
  width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d6d9e0, #8a8f9c 70%, #4a4f5a);
  display: grid; place-items: center; font-size: 28px;
  box-shadow: 0 0 0 4px rgba(255,255,255,.05), 0 10px 30px rgba(192,192,200,.25);
}
.chess-trophy .medal::after {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  background: radial-gradient(circle, rgba(192,192,200,.35), transparent 60%);
  z-index: -1;
}
.chess-trophy p { color: var(--muted); font-size: 14px; margin: 4px 0 0; max-width: 480px; line-height: 1.6; }
.chess-trophy .standings {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px;
}
.chess-trophy .standing {
  padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
}
.chess-trophy .standing.us { color: var(--cyan); border-color: rgba(56,189,248,.4); background: rgba(56,189,248,.08); }
.chess-trophy .venue {
  display: flex; align-items: center; gap: 8px; margin-top: 4px;
  font-family: var(--font-mono); font-size: 11px; color: var(--dim);
}

.aura-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; margin-top: 28px; }
@media (max-width: 980px) { .aura-grid { grid-template-columns: 1fr; } }

.chess-card { padding: 24px; }
.chess-status {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  margin-bottom: 14px;
}
.chess-status .state { color: var(--cyan); display: inline-flex; align-items: center; gap: 8px; }
.chess-status .state .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.chess-status .state.thinking .dot { background: var(--violet); box-shadow: 0 0 12px var(--violet); animation: pulse 1s infinite; }

.board {
  display: grid; grid-template-columns: repeat(8, 1fr);
  aspect-ratio: 1; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border-2);
  box-shadow: 0 16px 50px rgba(0,0,0,.5);
  position: relative;
}
.sq {
  display: grid; place-items: center;
  font-size: clamp(20px, 4.5vw, 36px);
  cursor: pointer; user-select: none;
  position: relative;
}
.sq.light { background: rgba(56,189,248,.08); }
.sq.dark { background: rgba(139,92,246,.12); }
.sq.sel { background: rgba(56,189,248,.35); box-shadow: inset 0 0 0 2px var(--cyan); }
.sq.move::after {
  content: ""; position: absolute; width: 22%; height: 22%; border-radius: 50%;
  background: rgba(56,189,248,.4); box-shadow: 0 0 18px var(--cyan);
}
.sq.cap { box-shadow: inset 0 0 0 3px rgba(239,68,68,.7); }
.sq.last { background: rgba(34,197,94,.18); }
.sq.last.dark { background: rgba(34,197,94,.22); }
.piece { line-height: 1; filter: drop-shadow(0 4px 8px rgba(0,0,0,.7)); }
.piece.b { color: #0b0f1c; }
.piece.w { color: #f1f5f9; text-shadow: 0 0 2px #0b0f1c; }

.chess-foot { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-top: 14px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.chess-foot .depth { display: flex; align-items: center; gap: 6px; }
.chess-foot .bars { display: flex; gap: 2px; }
.chess-foot .bars span { width: 4px; height: 10px; background: rgba(56,189,248,.2); border-radius: 1px; }
.chess-foot .bars span.on { background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }
.chess-foot button {
  background: transparent; color: var(--cyan); border: 1px solid var(--border-2);
  padding: 6px 12px; border-radius: 999px; font-family: var(--font-mono); font-size: 11px;
}

.pipeline { display: flex; flex-direction: column; gap: 14px; }
.pipeline-step {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px;
  position: relative;
}
.pipeline-step::after {
  content: ""; position: absolute; left: 40px; bottom: -14px;
  width: 2px; height: 14px;
  background: linear-gradient(180deg, var(--cyan), transparent);
}
.pipeline-step:last-child::after { display: none; }
.pipeline-step .num {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(56,189,248,.12); border: 1px solid rgba(56,189,248,.3);
  display: grid; place-items: center; font-family: var(--font-mono); font-weight: 600;
  color: var(--cyan); flex-shrink: 0; font-size: 18px;
}
.pipeline-step h4 { margin: 0; font-size: 15px; font-weight: 600; }
.pipeline-step p { margin: 2px 0 0; font-size: 13px; color: var(--muted); font-family: var(--font-mono); }

/* ============ STACK CONSTELLATION ============ */
.stack-wrap { position: relative; min-height: 480px; }
.stack-node {
  position: absolute;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border-2);
  backdrop-filter: blur(20px);
  font-family: var(--font-mono); font-size: 12px;
  transition: transform .3s, border-color .3s, background .3s, box-shadow .3s;
  animation: drift 12s ease-in-out infinite;
  cursor: default;
}
.stack-node:hover {
  border-color: var(--cyan); background: rgba(56,189,248,.1);
  box-shadow: 0 0 24px rgba(56,189,248,.25);
}
.stack-node .glyph { width: 18px; height: 18px; display: inline-grid; place-items: center; border-radius: 4px; font-size: 11px; background: rgba(255,255,255,.06); }
@keyframes drift {
  0%,100% { transform: translate(0,0); }
  50%     { transform: translate(0, -10px); }
}

/* ============ CAFÉ TEC ============ */
.cafe-card { display: grid; grid-template-columns: 1fr 1.4fr; gap: 0; overflow: hidden; }
@media (max-width: 880px) { .cafe-card { grid-template-columns: 1fr; } }
.cafe-cover {
  background:
    linear-gradient(135deg, rgba(56,189,248,.3), rgba(139,92,246,.3)),
    var(--surface-2);
  display: grid; place-items: center; min-height: 280px; position: relative; overflow: hidden;
}
.cafe-cover img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: .85; }
.cafe-cover .ovl {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(56,189,248,.4), rgba(139,92,246,.4), transparent 80%);
  mix-blend-mode: color-dodge;
}
.cafe-cover .icon {
  position: relative; font-size: 60px; z-index: 2;
  background: rgba(0,0,0,.4); width: 100px; height: 100px; border-radius: 24px; display: grid; place-items: center;
  border: 1px solid var(--border-2); backdrop-filter: blur(10px);
}
.cafe-body { padding: 36px; }
.cafe-body h3 { font-size: 32px; margin: 10px 0 12px; letter-spacing: -.02em; }
.cafe-roles { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 22px; }
.cafe-role { padding: 4px 10px; border-radius: 6px; background: rgba(255,255,255,.04); border: 1px solid var(--border); font-family: var(--font-mono); font-size: 11px; color: var(--muted); }

/* ============ MAP ============ */
.map-wrap { position: relative; height: 480px; border-radius: 18px; overflow: hidden; border: 1px solid var(--border-2); background: #060810; }
@media (max-width: 720px) { .map-wrap { height: 360px; } }
.map-svg { width: 100%; height: 100%; }
.map-marker { position: absolute; transform: translate(-50%, -100%); }
.map-pin {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 999px;
  background: rgba(12,17,32,.85); border: 1px solid var(--border-2); backdrop-filter: blur(14px);
  font-family: var(--font-mono); font-size: 11px; cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,.5);
  transition: all .2s;
}
.map-pin:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 8px 20px rgba(56,189,248,.4); }
.map-pin .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(56,189,248,.6);
  animation: pulse 1.8s infinite;
}
.map-marker .tail {
  width: 2px; height: 18px; background: linear-gradient(180deg, var(--cyan), transparent);
  margin: 0 auto;
}
.map-popup {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  width: 220px; padding: 14px 16px;
  border-radius: 12px; background: rgba(12,17,32,.95);
  border: 1px solid var(--border-2); backdrop-filter: blur(14px);
  font-family: var(--font-sans); font-size: 12px; color: var(--text);
  box-shadow: 0 16px 40px rgba(0,0,0,.6);
}
.map-popup .title { font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.map-popup .desc { color: var(--muted); font-size: 11px; }

/* ============ TESTIMONIALS ============ */
.test-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
@media (max-width: 720px) { .test-grid { grid-template-columns: 1fr; } }
.test-card { padding: 28px; position: relative; }
.test-card .quote-mark { position: absolute; top: 14px; right: 22px; font-family: var(--font-serif); font-size: 64px; line-height: 1; color: var(--cyan); opacity: .25; }
.test-card .stars { color: #fbbf24; font-size: 13px; margin-bottom: 12px; letter-spacing: 2px; }
.test-card .q { font-size: 17px; color: var(--text); margin: 0 0 18px; line-height: 1.55; text-wrap: pretty; }
.test-card .who { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px dashed var(--border); }
.test-card .who .av { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--cyan), var(--violet)); display: grid; place-items: center; font-weight: 600; font-size: 13px; color: #021622; }
.test-card .who .name { font-weight: 600; font-size: 14px; }
.test-card .who .ctx { font-family: var(--font-mono); font-size: 10px; color: var(--muted); }

/* ============ CONTACT ============ */
.contact-card { padding: 60px; text-align: center; max-width: 760px; margin: 40px auto 0; }
@media (max-width: 720px) { .contact-card { padding: 36px 24px; } }
.contact-card h2 { margin: 14px 0 12px; font-size: clamp(36px, 5vw, 56px); }
.contact-ctas { display: flex; gap: 12px; justify-content: center; margin: 28px 0 22px; flex-wrap: wrap; }
.contact-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.contact-chip {
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255,255,255,.03);
  font-size: 13px; color: var(--muted); transition: all .2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.contact-chip:hover { color: var(--cyan); border-color: var(--cyan); }

/* ============ FOOTER ============ */
.footer { padding: 60px 0 30px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.footer-col h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.footer-col a { color: var(--muted); font-size: 14px; display: block; padding: 4px 0; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bot { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 11px; color: var(--dim); flex-wrap: wrap; }

/* ============ BOOT SCREEN ============ */
.boot {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: grid; place-items: center;
  font-family: var(--font-mono); color: var(--emerald);
  transition: opacity .5s;
}
.boot.gone { opacity: 0; pointer-events: none; }
.boot pre { font-size: 13px; line-height: 1.8; margin: 0; max-width: 500px; padding: 0 20px; }
.boot .cap { display: inline-block; width: 8px; height: 14px; background: var(--emerald); margin-left: 4px; animation: blink 1s steps(2) infinite; vertical-align: middle; }

/* ============ MOTION ============ */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.fade-up.in { opacity: 1; transform: translateY(0); }
.fade-up.d1 { transition-delay: .08s; }
.fade-up.d2 { transition-delay: .16s; }
.fade-up.d3 { transition-delay: .24s; }
.fade-up.d4 { transition-delay: .32s; }
.fade-up.d5 { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .hero-ring { display: none; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* Print/focus polish */
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(56,189,248,.35); }
