:root {
  --bg: #0b0f17;
  --bg-soft: #0e131d;
  --text: #e9ebf1;
  --muted: #8a92a6;
  --accent: #7aa2f7;
  --accent-strong: #5a86e0;
  --accent-tint: rgba(122, 162, 247, 0.12);
  --card: rgba(255, 255, 255, 0.028);
  --border: rgba(255, 255, 255, 0.08);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
    Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- ambient background ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(122, 162, 247, 0.08), transparent 60%),
    radial-gradient(1000px 700px at 100% 20%, rgba(60, 66, 120, 0.14), transparent 55%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.16;
  will-change: transform;
}

.blob-1 {
  width: 48vw;
  height: 48vw;
  background: var(--accent);
  top: -14vw;
  left: -10vw;
  animation: drift-1 42s ease-in-out infinite alternate;
}

.blob-2 {
  width: 42vw;
  height: 42vw;
  background: #3c4278;
  top: 40vh;
  right: -12vw;
  animation: drift-2 48s ease-in-out infinite alternate;
}

.blob-3 {
  display: none;
}

@keyframes drift-1 {
  to { transform: translate(12vw, 8vh) scale(1.12); }
}
@keyframes drift-2 {
  to { transform: translate(-10vw, -6vh) scale(1.08); }
}

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 25%, #000 5%, transparent 65%);
}

/* ---------- custom cursor ---------- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cursor-dot {
  width: 5px;
  height: 5px;
  background: var(--accent);
}

.cursor-ring {
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(233, 235, 241, 0.45);
  transition: opacity 0.3s ease, width 0.25s ease, height 0.25s ease,
    background-color 0.25s ease, border-color 0.25s ease;
}

.cursor-ring.hover {
  width: 52px;
  height: 52px;
  background: var(--accent-tint);
  border-color: var(--accent);
}

body.cursor-ready .cursor-dot,
body.cursor-ready .cursor-ring {
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  body.cursor-ready * {
    cursor: none;
  }
}

/* ---------- floating nav ---------- */
.floating-nav {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: calc(100vw - 32px);
  padding: 9px 13px 9px 11px;
  background: rgba(11, 15, 23, 0.7);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  animation: bob 7s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-5px); }
}

.brand {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 8px;
  font-family: var(--serif);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--bg);
  background: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 7px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

/* ---------- layout ---------- */
.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 200px 24px 80px;
}

.intro {
  text-align: center;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 20px;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 6vw, 3.3rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.grad {
  color: var(--accent);
}

.tagline {
  color: var(--muted);
  margin: 22px auto 0;
  max-width: 50ch;
  font-size: 1.03rem;
}

.cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 34px;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 12px 26px;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease,
    border-color 0.2s ease;
}

.btn.primary {
  color: var(--bg);
  background: var(--accent);
  box-shadow: 0 8px 24px rgba(122, 162, 247, 0.25);
}

.btn.primary:hover {
  transform: translateY(-2px);
  background: var(--accent-strong);
  box-shadow: 0 12px 32px rgba(122, 162, 247, 0.35);
}

.btn.ghost {
  color: var(--text);
  border: 1px solid var(--border);
}

.btn.ghost:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

/* ---------- sections ---------- */
.section {
  margin-top: 96px;
}

.section > h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.prose p {
  color: var(--muted);
  margin-bottom: 15px;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

/* ---------- chips ---------- */
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.chips li {
  font-size: 0.875rem;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 7px 14px;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.chips li:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-tint);
}

.skill-group {
  margin-bottom: 30px;
}

.skill-group:last-child {
  margin-bottom: 0;
}

.skill-group h3 {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 15px;
}

/* ---------- motto ---------- */
.motto {
  margin: 96px 0 0;
  padding: 26px 30px;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: 8px;
}

/* ---------- footer ---------- */
footer {
  margin-top: 76px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

footer a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--accent);
}

footer .dot {
  margin: 0 10px;
  color: var(--border);
}

footer .fine {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob, .floating-nav { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
