/* ── Reset & Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d0d0d;
  --bg2: #111111;
  --bg3: #161616;
  --border: rgba(255,255,255,0.08);
  --text: #f0ede8;
  --muted: #888;
  --accent: #4f98a3;
  --accent-dim: rgba(79,152,163,0.15);
  --aws: #FF9900;
  --aws-dim: rgba(255,153,0,0.12);
  --radius: 12px;
  --nav-h: 64px;

  --font-display: 'Cabinet Grotesk', sans-serif;
  --font-body: 'Satoshi', sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-hover: cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg: #f7f6f3;
  --bg2: #eeede9;
  --bg3: #e5e3de;
  --border: rgba(0,0,0,0.08);
  --text: #1a1a1a;
  --muted: #666;
  --accent-dim: rgba(79,152,163,0.12);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.65;
  cursor: none;
  overflow-x: hidden;
  transition: background 0.35s var(--ease-hover), color 0.35s var(--ease-hover);
}

a { color: inherit; text-decoration: none; cursor: none; }

/* ── Custom Cursor ────────────────────────────────────────────────── */
#cursor-dot {
  position: fixed; top: 0; left: 0; width: 10px; height: 10px;
  background: var(--text); border-radius: 50%; pointer-events: none;
  z-index: 9999; transform: translate(-50%, -50%);
  transition: transform 0.1s var(--ease-hover), background 0.2s, width 0.2s var(--ease-hover), height 0.2s var(--ease-hover);
}
#cursor-ring {
  position: fixed; top: 0; left: 0; width: 32px; height: 32px;
  border: 1.5px solid rgba(255,255,255,0.3); border-radius: 50%;
  pointer-events: none; z-index: 9998; transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-hover), height 0.3s var(--ease-hover), border-color 0.3s;
}
body.cursor-hover #cursor-ring { width: 48px; height: 48px; border-color: var(--accent); }
body.cursor-hover #cursor-dot { background: var(--accent); }

/* ── Navbar ───────────────────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 80px);
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease-out), background 0.4s var(--ease-hover), backdrop-filter 0.4s;
}
#navbar.visible { transform: translateY(0); }
#navbar.scrolled {
  background: rgba(13,13,13,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
[data-theme="light"] #navbar.scrolled { background: rgba(247,246,243,0.88); }

.nav-logo {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.35rem; letter-spacing: -0.03em;
  color: var(--text);
}
.nav-links {
  display: flex; align-items: center; gap: 8px;
  position: relative;
}
.nav-link {
  padding: 6px 14px; font-size: 0.82rem; letter-spacing: 0.02em;
  color: var(--muted); transition: color 0.2s; position: relative;
  text-transform: uppercase;
}
.nav-link.active, .nav-link:hover { color: var(--text); }

#nav-indicator {
  position: absolute; bottom: -2px; height: 1.5px; background: var(--accent);
  transition: left 0.35s var(--ease-out), width 0.35s var(--ease-out);
  border-radius: 2px;
}

.nav-toggle {
  background: none; border: 1px solid var(--border); color: var(--text);
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  cursor: none; transition: border-color 0.2s, background 0.2s; margin-left: 12px;
}
.nav-toggle:hover { border-color: var(--accent); background: var(--accent-dim); }

/* ── Dot Grid Background ──────────────────────────────────────────── */
#dot-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0;
  transition: opacity 1.2s var(--ease-out);
}
[data-theme="light"] #dot-grid {
  background-image: radial-gradient(circle, rgba(0,0,0,0.07) 1px, transparent 1px);
}
#dot-grid.visible { opacity: 1; }

/* ── Layout ───────────────────────────────────────────────────────── */
main { position: relative; z-index: 1; }
section { padding: clamp(64px, 8vw, 120px) clamp(20px, 8vw, 120px); }
.section-label {
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 48px; display: flex; align-items: center; gap: 12px;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.section-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.03em;
  line-height: 1.15; margin-bottom: 48px;
}

/* ── Hero ─────────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; padding-top: calc(var(--nav-h) + 40px);
  max-width: 920px;
}
.hero-name {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3.2rem, 8vw, 7.5rem); letter-spacing: -0.04em;
  line-height: 1; margin-bottom: 24px; overflow: hidden;
}
.hero-name .char {
  display: inline-block; opacity: 0;
  transform: translateY(32px); filter: blur(6px);
}
.hero-name .char.space { width: 0.28em; }

.hero-subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  color: var(--muted); margin-bottom: 16px;
  opacity: 0; transform: translateY(20px);
}
.hero-tagline {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  letter-spacing: -0.02em; margin-bottom: 40px;
  opacity: 0; transform: translateY(20px);
}
.hero-tagline em { color: var(--accent); font-style: normal; }

.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 12px;
  opacity: 0; transform: scale(0.96);
}

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 8px; font-size: 0.9rem;
  font-family: var(--font-body); font-weight: 500; cursor: none;
  transition: transform 0.2s var(--ease-hover), box-shadow 0.2s, background 0.2s, border-color 0.2s;
  position: relative;
}
.btn-primary {
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(79,152,163,0.3); }
.btn-outline {
  background: transparent; color: var(--text); border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); background: var(--accent-dim); transform: translateY(-2px); }
.btn-arrow-span { display: inline-block; transition: transform 0.2s var(--ease-hover); }
.btn:hover .btn-arrow-span { transform: translateX(4px); }

/* ── Featured AIdeaS Card ─────────────────────────────────────────── */
#featured {
  padding-top: 0;
}
.aideas-card {
  position: relative; padding: clamp(28px, 4vw, 48px);
  border-radius: 16px;
  background: var(--bg3);
  border: 1px solid var(--border);
  overflow: hidden;
  opacity: 0; transform: translateY(24px);
}
.aideas-card.revealed { opacity: 1; transform: translateY(0); }

/* Tracing border animation */
.aideas-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 16px;
  background: conic-gradient(from var(--angle, 0deg), transparent 80%, rgba(255,153,0,0.5) 90%, transparent 100%);
  padding: 1px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
}
.aideas-card.border-active::before { opacity: 1; animation: border-trace 2.4s linear infinite; }
@property --angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes border-trace { to { --angle: 360deg; } }

.aideas-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--aws-dim); border: 1px solid rgba(255,153,0,0.25);
  border-radius: 6px; padding: 5px 12px; margin-bottom: 20px;
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--aws); font-weight: 600;
}
.aideas-badge img { width: 18px; height: 18px; }

.aideas-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -0.04em;
  line-height: 1.1; margin-bottom: 8px;
}
.aideas-competition {
  color: var(--aws); font-size: 0.85rem; letter-spacing: 0.06em;
  text-transform: uppercase; font-weight: 600; margin-bottom: 16px;
}
.aideas-desc {
  color: var(--muted); max-width: 600px; margin-bottom: 28px;
  font-size: clamp(0.9rem, 1.2vw, 1rem);
}
.btn-aws {
  background: var(--aws); color: #000; border: 1px solid var(--aws); font-weight: 600;
}
.btn-aws:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,153,0,0.3); }

.aideas-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }

.retainiq-preview {
  border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 8px; max-width: 560px;
}
.preview-bar {
  background: var(--bg2); padding: 8px 14px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--border);
}
.preview-dots { display: flex; gap: 5px; }
.preview-dots i { display: block; width: 9px; height: 9px; border-radius: 50%; }
.preview-dots i:nth-child(1) { background: #ff5f57; }
.preview-dots i:nth-child(2) { background: #febc2e; }
.preview-dots i:nth-child(3) { background: #28c840; }
.preview-url { font-size: 0.72rem; color: var(--muted); font-family: var(--font-body); }
.retainiq-preview iframe {
  width: 100%; height: 240px; border: none; display: block;
  background: #fff; pointer-events: none;
}

.aideas-deco {
  position: absolute; right: 48px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(5rem, 10vw, 12rem); letter-spacing: -0.06em;
  color: rgba(255,153,0,0.04); pointer-events: none; line-height: 1;
  user-select: none;
}

/* ── About ────────────────────────────────────────────────────────── */
.about-bio {
  max-width: 680px; font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.75; margin-bottom: 56px;
  color: var(--text);
}
.tools-label {
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 20px;
}
.pills-grid {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 100px;
  border: 1px solid var(--border); font-size: 0.82rem;
  color: var(--muted); background: var(--bg2);
  opacity: 0; transform: scale(0.85);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.pill:hover { border-color: var(--accent); color: var(--text); background: var(--accent-dim); }
.pill img { width: 14px; height: 14px; }

/* ── Pill Groups ──────────────────────────────────────────────────── */
.pills-groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}
.pill-group {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px;
  transition: border-color 0.2s;
}
.pill-group:hover { border-color: rgba(79,152,163,0.2); }
.pill-group-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px; font-weight: 600;
}
.pill-group-label svg { opacity: 0.8; flex-shrink: 0; }

/* ── Experience Timeline ──────────────────────────────────────────── */
.timeline {
  position: relative; padding-left: 32px;
}
.timeline-line {
  position: absolute; left: 6px; top: 0; bottom: 0;
  width: 1px; background: var(--border);
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 1.2s var(--ease-out);
}
.timeline-line.drawn { transform: scaleY(1); }

.timeline-entry {
  position: relative; margin-bottom: 56px;
  opacity: 0; transform: translateX(-24px);
}
.timeline-entry.revealed { opacity: 1; transform: translateX(0); }

.timeline-dot {
  position: absolute; left: -29px; top: 6px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
  transition: transform 0.3s var(--ease-out);
}
.timeline-dot.pulse { animation: dot-pulse 0.5s var(--ease-out); }
@keyframes dot-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.8); box-shadow: 0 0 0 4px var(--accent-dim); }
  100% { transform: scale(1); }
}

.entry-header {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 8px 16px; margin-bottom: 6px;
}
.entry-company {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.1rem, 2vw, 1.4rem); letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 10px;
}
.entry-company img { width: 20px; height: 20px; border-radius: 4px; }
.entry-role {
  color: var(--accent); font-size: 0.9rem; font-weight: 500;
}
.entry-meta {
  font-size: 0.78rem; color: var(--muted); letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.entry-bullets {
  list-style: none; display: flex; flex-direction: column; gap: 7px;
}
.entry-bullets li {
  font-size: 0.9rem; color: var(--muted); line-height: 1.55;
  padding-left: 16px; position: relative;
}
.entry-bullets li::before {
  content: ''; position: absolute; left: 0; top: 0.65em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); opacity: 0.5;
}

/* ── Accomplishments ──────────────────────────────────────────────── */
.acc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 768px) { .acc-grid { grid-template-columns: 1fr; } }
.acc-card {
  padding: 24px; border-radius: var(--radius);
  background: var(--bg2); border: 1px solid var(--border);
  transition: transform 0.25s var(--ease-hover), box-shadow 0.25s var(--ease-hover), border-color 0.25s;
  opacity: 0; transform: translateY(24px);
}
.acc-card.revealed { opacity: 1; transform: translateY(0); }
.acc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(79,152,163,0.12);
  border-color: rgba(79,152,163,0.3);
}
.acc-icon {
  font-size: 1.5rem; margin-bottom: 12px;
  display: inline-block; width: 2rem; text-align: left;
  transition: transform 0.2s var(--ease-hover);
  line-height: 1; transform-origin: left center;
}
.acc-card:hover .acc-icon { transform: scale(1.2); }
.acc-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1rem; letter-spacing: -0.01em; margin-bottom: 4px;
}
.acc-issuer {
  font-size: 0.75rem; color: var(--accent); letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: 8px; font-weight: 600;
}
.acc-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }

/* ── Education ────────────────────────────────────────────────────── */
.edu-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px;
}
.edu-card {
  padding: 28px 32px; border-radius: var(--radius);
  background: var(--bg2); border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s var(--ease-hover);
  opacity: 0; transform: translateY(24px);
}
.edu-card.revealed { opacity: 1; transform: translateY(0); }
.edu-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.edu-school {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.25rem; letter-spacing: -0.02em; margin-bottom: 6px;
}
.edu-degree { color: var(--muted); font-size: 0.88rem; margin-bottom: 10px; }
.edu-years {
  font-size: 0.75rem; color: var(--accent); letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 600;
}

/* ── Projects ─────────────────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 768px) { .projects-grid { grid-template-columns: 1fr; } }

.project-card {
  position: relative; overflow: hidden;
  padding: clamp(24px, 3vw, 36px); border-radius: var(--radius);
  background: var(--bg2); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 0;
  transition: transform 0.25s var(--ease-hover), box-shadow 0.25s, border-color 0.25s;
  opacity: 0; transform: translateY(24px);
}
.project-card.revealed { opacity: 1; transform: translateY(0); }
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(79,152,163,0.14);
  border-color: rgba(79,152,163,0.35);
}

.project-card-hero {
  grid-column: 1 / -1;
  border-left: 3px solid var(--accent);
}
.project-card-inner {
  display: flex; flex-direction: column; gap: 24px; position: relative; z-index: 1;
}
.project-hero-deco {
  position: absolute; right: 32px; bottom: -16px;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(4rem, 8vw, 9rem); letter-spacing: -0.06em;
  color: rgba(79,152,163,0.05); pointer-events: none;
  line-height: 1; user-select: none; z-index: 0;
}

.project-tag {
  display: inline-block; font-size: 0.65rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); font-weight: 600;
  background: var(--accent-dim); border: 1px solid rgba(79,152,163,0.25);
  border-radius: 4px; padding: 4px 10px; margin-bottom: 14px; width: fit-content;
}
.project-name {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -0.04em;
  line-height: 1.1; margin-bottom: 12px;
}
.project-name-sm {
  font-size: clamp(1.4rem, 3vw, 2rem);
}
.project-desc {
  color: var(--muted); margin-bottom: 20px;
  font-size: clamp(0.88rem, 1.1vw, 0.96rem); line-height: 1.7;
}
.project-stack {
  display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 24px;
}
.project-pill {
  font-size: 0.75rem; padding: 4px 13px; border-radius: 100px;
  border: 1px solid var(--border); background: var(--bg3);
  color: var(--muted); transition: border-color 0.2s, color 0.2s;
}
.project-card:hover .project-pill { border-color: rgba(79,152,163,0.35); color: var(--text); }
.project-links { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Writing ──────────────────────────────────────────────────────── */
.writing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.writing-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 28px; border-radius: var(--radius);
  background: var(--bg2); border: 1px solid var(--border);
  text-decoration: none; color: var(--text);
  transition: transform 0.25s var(--ease-hover), box-shadow 0.25s, border-color 0.25s;
}
.writing-card:not(.writing-soon):hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(79,152,163,0.1);
  border-color: rgba(79,152,163,0.3);
}
.writing-soon { opacity: 0.55 !important; cursor: default; }
.writing-soon-label {
  display: inline-block; font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--border); border-radius: 4px;
  padding: 3px 8px; width: fit-content;
}
.writing-meta { font-size: 0.75rem; color: var(--accent); letter-spacing: 0.05em; font-weight: 500; }
.writing-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1rem, 1.4vw, 1.15rem); letter-spacing: -0.02em; line-height: 1.3;
}
.writing-excerpt { font-size: 0.85rem; color: var(--muted); line-height: 1.6; flex: 1; }
.writing-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.writing-tags span {
  font-size: 0.7rem; padding: 3px 10px; border-radius: 100px;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--muted); letter-spacing: 0.04em;
}
.writing-arrow { font-size: 0.82rem; color: var(--accent); font-weight: 500; margin-top: 4px; }
.writing-coming-soon {
  margin-top: 20px; font-size: 0.82rem; color: var(--muted); line-height: 1.6;
}
.writing-coming-soon a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ── Freelance ─────────────────────────────────────────────────────── */
.freelance-sub {
  max-width: 560px; color: var(--muted);
  font-size: clamp(0.9rem, 1.2vw, 1rem); margin-bottom: 48px; line-height: 1.7;
}
.freelance-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-bottom: 48px;
}
@media (max-width: 900px) { .freelance-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .freelance-grid { grid-template-columns: 1fr; } }
.freelance-card {
  padding: 24px; border-radius: var(--radius);
  background: var(--bg2); border: 1px solid var(--border);
  transition: transform 0.25s var(--ease-hover), box-shadow 0.25s, border-color 0.25s;
  opacity: 0; transform: translateY(24px);
}
.freelance-card.revealed { opacity: 1; transform: translateY(0); }
.freelance-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(79,152,163,0.12);
  border-color: rgba(79,152,163,0.4);
}
.freelance-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent-dim); border: 1px solid rgba(79,152,163,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); margin-bottom: 14px;
  transition: background 0.25s, border-color 0.25s;
}
.freelance-card:hover .freelance-icon {
  background: rgba(79,152,163,0.18);
  border-color: rgba(79,152,163,0.45);
}
.freelance-service {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1rem; letter-spacing: -0.02em; margin-bottom: 10px;
}
.freelance-tags-row { display: flex; flex-wrap: wrap; gap: 5px; }
.freelance-tag {
  font-size: 0.67rem; padding: 3px 8px; border-radius: 100px;
  background: var(--bg3); border: 1px solid var(--border); color: var(--muted);
  transition: border-color 0.25s, color 0.25s;
}
.freelance-card:hover .freelance-tag { border-color: rgba(79,152,163,0.3); color: var(--text); }
.freelance-reveal {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.freelance-card:hover .freelance-reveal { grid-template-rows: 1fr; }
.freelance-reveal > p {
  overflow: hidden;
  font-size: 0.82rem; color: var(--muted); line-height: 1.6;
  padding-top: 12px; margin: 0;
}
.freelance-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.freelance-note { font-size: 0.8rem; color: var(--muted); }

/* ── Contact ──────────────────────────────────────────────────────── */
#contact { text-align: center; }
.contact-email {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 2.5rem); letter-spacing: -0.03em;
  color: var(--text); margin-bottom: 32px; display: block;
  transition: color 0.2s;
}
.contact-email:hover { color: var(--accent); }
.contact-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
}

/* ── Contact form ─────────────────────────────────────────────────── */
.contact-form {
  max-width: 520px; margin: 0 auto 48px; text-align: left;
  display: flex; flex-direction: column; gap: 14px;
}
.contact-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .contact-form-row { grid-template-columns: 1fr; } }
.cf-field { display: flex; flex-direction: column; gap: 6px; }
.cf-field label { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.cf-field input, .cf-field textarea {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 16px; color: var(--text);
  font-family: var(--font-body); font-size: 0.9rem;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
  resize: none;
}
.cf-field input:focus, .cf-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,152,163,0.12);
}
.cf-field textarea { min-height: 110px; }
#contact-status {
  font-size: 0.85rem; border-radius: 8px; padding: 10px 14px;
  display: none; text-align: center;
}
#contact-status.success { background: rgba(16,185,129,0.1); color: #34d399; border: 1px solid rgba(16,185,129,0.25); display: block; }
#contact-status.error { background: rgba(239,68,68,0.1); color: #f87171; border: 1px solid rgba(239,68,68,0.25); display: block; }
.btn-magnetic { transition: transform 0.3s var(--ease-hover), box-shadow 0.3s; }

/* ── Footer ───────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: clamp(28px, 4vw, 48px) clamp(20px, 8vw, 120px);
  display: flex; flex-direction: column; gap: 20px;
  font-size: 0.78rem; color: var(--muted);
}
.footer-nav {
  display: flex; flex-wrap: wrap; gap: 4px 8px;
}
.footer-nav a {
  padding: 4px 10px; border-radius: 6px; font-size: 0.75rem;
  color: var(--muted); transition: color 0.2s, background 0.2s;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.footer-nav a:hover { color: var(--text); background: var(--border); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px;
}
.footer-available {
  font-size: 0.75rem; color: #34d399; letter-spacing: 0.02em;
}

/* ── Scroll reveal base ───────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); }
.reveal.in {
  animation: revealUp 0.6s var(--ease-out) forwards;
}
@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Reduced motion ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .hero-name .char { opacity: 1; transform: none; filter: none; }
  .hero-subtitle, .hero-tagline, .hero-ctas { opacity: 1; transform: none; }
}

/* ── Mobile ───────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-links .nav-link { display: none; }
  .nav-links .nav-link:last-child { display: flex; }
  .aideas-deco { display: none; }
  footer { gap: 16px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
  body { cursor: auto; }
  #cursor-dot, #cursor-ring { display: none; }
}
