/* ============ Base ============ */
:root {
  --bg: #070a14;
  --bg-soft: #0c1120;
  --card: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e7ebf5;
  --muted: #98a2b6;
  --grad: linear-gradient(120deg, #7c5cff 0%, #38bdf8 60%, #22d3ee 100%);
  --grad-soft: linear-gradient(120deg, rgba(124,92,255,.16), rgba(56,189,248,.16));
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

a { color: inherit; }

.container {
  width: min(1120px, 90%);
  margin: 0 auto;
}

section { position: relative; padding: 110px 0; }

::selection { background: #7c5cff; color: #fff; }

/* ============ Starfield ============ */
#stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

/* ============ Gradient text ============ */
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ============ Kickers & headings ============ */
.kicker {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.2;
  margin-bottom: 48px;
}

/* ============ Reveal animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ============ Nav ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4%;
  transition: background 0.35s ease, padding 0.35s ease;
}
.nav.scrolled {
  background: rgba(7, 10, 20, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 12px 4%;
}
.nav-brand { display: flex; align-items: center; }
.nav-links { display: flex; gap: 34px; }
.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s ease;
}
.nav-links a:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Monogram */
.monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
/* ============ Avatar ============ */
.avatar { display: inline-block; border-radius: 50%; object-fit: cover; }
.nav-avatar { width: 40px; height: 40px; box-shadow: 0 6px 22px -6px rgba(124,92,255,.55); }
.hero-avatar {
  width: 96px; height: 96px;
  box-shadow: 0 22px 60px -18px rgba(124,92,255,.6);
  margin-bottom: 26px;
  animation: float 5s ease-in-out infinite;
}
.footer .avatar { width: 40px; height: 40px; margin-bottom: 14px; }

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 34px -10px rgba(124, 92, 255, 0.55);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 44px -10px rgba(124, 92, 255, 0.7); }
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.3); }
.btn-lg { padding: 18px 38px; font-size: 1.05rem; }

/* ============ Hero ============ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 90px;
  background-image:
    radial-gradient(60% 50% at 50% 0%, var(--grad-soft), transparent 70%),
    radial-gradient(40% 40% at 80% 90%, rgba(34, 211, 238, 0.07), transparent 70%);
}
.hero-inner { position: relative; z-index: 1; }

.hero-monogram {
  width: 96px; height: 96px;
  border-radius: 26px;
  background: var(--grad);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.3rem;
  color: #fff;
  box-shadow: 0 22px 60px -18px rgba(124, 92, 255, 0.6);
  margin-bottom: 26px;
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: "—"; margin: 0 10px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.8;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 9vw, 5.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 26px;
  line-height: 1.5;
}
.hero-text {
  max-width: 640px;
  margin: 0 auto 38px;
  color: var(--muted);
  font-size: 1.05rem;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 42px; }

.hero-social { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; }
.hero-social a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.25s ease;
}
.hero-social a:hover { color: #fff; }

.scroll-hint { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); }
.mouse {
  width: 26px; height: 42px;
  border: 2px solid var(--muted);
  border-radius: 14px;
  display: flex; justify-content: center;
  padding-top: 8px;
  opacity: 0.6;
}
.mouse span {
  width: 4px; height: 8px; border-radius: 4px;
  background: var(--text);
  animation: wheel 1.6s ease-in-out infinite;
}
@keyframes wheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ============ About ============ */
.about { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.about-text p { margin-bottom: 20px; color: var(--muted); font-size: 1.04rem; }
.about-text p strong { color: var(--text); }
.about-text a { color: #9bd7ff; text-decoration: none; border-bottom: 1px solid transparent; }
.about-text a:hover { border-color: #9bd7ff; }

.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 22px;
  display: flex; flex-direction: column; gap: 8px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.stat:hover { transform: translateY(-4px); border-color: rgba(124, 92, 255, 0.5); }
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 0.86rem; color: var(--muted); }

/* ============ Family ============ */
.family { margin-top: 64px; padding-top: 52px; border-top: 1px solid var(--border); }
.family-head { margin-bottom: 30px; }
.family-head h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; margin-bottom: 8px; }
.family-head p { color: var(--muted); }
.family-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.family-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.family-card:hover { transform: translateY(-5px); border-color: rgba(124, 92, 255, 0.5); }
.photo-ph {
  aspect-ratio: 3 / 4;
  margin: 16px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: radial-gradient(70% 90% at 50% 0%, rgba(56, 189, 248, 0.06), transparent 70%);
  transition: border-color 0.3s ease, color 0.3s ease;
}
.photo-ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.family-card:hover .photo-ph img { transform: scale(1.05); }
.photo-ph.ph-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px dashed rgba(255, 255, 255, 0.18);
  color: var(--muted);
}
.family-card:hover .photo-ph.ph-empty { border-color: rgba(56, 189, 248, 0.5); color: #9bd7ff; }
.photo-ph.ph-empty svg { width: 34px; height: 34px; opacity: 0.85; }
.photo-ph.ph-empty span { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; }

/* ============ Gallery ============ */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.g-item {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
}
.g-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.g-item:hover img { transform: scale(1.05); }
.g-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 14px 10px;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(7, 10, 20, 0.85));
}
.family-card figcaption { padding: 8px 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.family-card figcaption strong { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.family-card figcaption span { color: var(--muted); font-size: 0.86rem; }

/* ============ Expertise ============ */
.skill-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.skill-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 34px 30px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.skill-card:hover { transform: translateY(-5px); border-color: rgba(56, 189, 248, 0.45); background: rgba(255, 255, 255, 0.05); }
.skill-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin-bottom: 12px; }
.card-ico { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.skill-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 18px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: #cfd6e4;
  background: rgba(255, 255, 255, 0.03);
}

/* ============ Aturi / The Venture ============ */
.aturi { background-image: radial-gradient(60% 70% at 90% 20%, rgba(34, 211, 238, 0.08), transparent 70%), radial-gradient(50% 60% at 5% 90%, rgba(124, 92, 255, 0.1), transparent 70%); }
.aturi-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.aturi-badge {
  background: #fff;
  border-radius: 22px;
  padding: 26px 22px 22px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  max-width: 320px;
  box-shadow: 0 18px 50px -18px rgba(124, 92, 255, 0.35);
}
.aturi-badge img { width: 112px; height: 112px; object-fit: contain; }
.aturi-tagline {
  font-family: var(--font-display) !important;
  font-size: 0.82rem !important;
  color: #1c2f55 !important;
  text-align: center;
  margin: 0 !important;
  letter-spacing: 0.02em;
}
.aturi-story p { color: var(--muted); font-size: 1.04rem; margin-bottom: 20px; }
.aturi-story p strong { color: var(--text); }
.aturi-story a { color: #9bd7ff; text-decoration: none; border-bottom: 1px solid transparent; }
.aturi-story a:hover { border-color: #9bd7ff; }
.aturi-story blockquote {
  margin: 30px 0 10px;
  padding: 22px 26px;
  border-left: 3px solid #7c5cff;
  background: rgba(124, 92, 255, 0.08);
  border-radius: 0 16px 16px 0;
}
.aturi-story blockquote p { margin: 0; color: var(--text); font-family: var(--font-display); font-size: 1.05rem; line-height: 1.6; }
.aturi-cite { font-size: 0.9rem !important; color: var(--muted) !important; margin-bottom: 0 !important; }
.aturi-chips {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.aturi-chips li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 15px;
  font-size: 0.88rem;
  color: #cfd6e4;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.aturi-chips li:hover { transform: translateY(-3px); border-color: rgba(124, 92, 255, 0.5); }
.aturi-chips li::before { content: "◈ "; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.aturi-cta { margin-top: 42px; text-align: center; }

/* ============ Ventures ============ */
.venture-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
}
.venture-card + .venture-card { margin-top: 28px; }
.venture-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.venture-head h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; }
.venture-meta {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}
.venture-link {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: #9bd7ff;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.venture-link:hover { border-color: #9bd7ff; }
.venture-card > p { color: var(--muted); font-size: 1.02rem; margin-bottom: 20px; }
.venture-card > p strong { color: var(--text); }
.venture-card .tags { margin-bottom: 4px; }

/* ============ Projects ============ */
.proj-group-head { display: flex; align-items: center; gap: 16px; margin-top: 56px; margin-bottom: 14px; }
.proj-group-head::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(124, 92, 255, 0.4), transparent); }
.section-head + .proj-group-head { margin-top: 0; }
.proj-group-head h3 { font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.proj-group-desc { color: var(--muted); font-size: 0.95rem; margin-bottom: 26px; }
.project-feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 34px 32px;
  margin-bottom: 22px;
  background-image: radial-gradient(80% 120% at 0% 0%, rgba(124, 92, 255, 0.12), transparent 60%);
  transition: border-color 0.3s ease;
}
.project-feature:hover { border-color: rgba(124, 92, 255, 0.5); }
.pf-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.pf-count { font-size: 0.85rem; color: var(--muted); }
.project-feature a { text-decoration: none; }
.project-feature h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 12px; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.project-feature p { color: var(--muted); max-width: 760px; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 20px;
}
.proj {
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px 24px;
  text-decoration: none;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.proj::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.proj::after {
  content: "↗";
  position: absolute;
  top: 18px; right: 20px;
  font-size: 1rem;
  color: #9bd7ff;
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.proj:hover { transform: translateY(-5px); border-color: rgba(56, 189, 248, 0.45); background: rgba(255, 255, 255, 0.05); }
.proj:hover::before { opacity: 1; }
.proj:hover::after { opacity: 1; transform: none; }
.proj-lang {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9bd7ff;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
  background: rgba(56, 189, 248, 0.06);
}
.ldot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; }
.ldot.rust { background: #dea584; box-shadow: 0 0 8px rgba(222, 165, 132, 0.7); }
.ldot.java { background: #b07219; box-shadow: 0 0 8px rgba(176, 114, 25, 0.7); }
.proj h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 8px;
  line-height: 1.35;
}
.proj p { color: var(--muted); font-size: 0.92rem; flex: 1; }
.projects-cta {
  text-align: center;
  margin-top: 38px;
}
.projects-cta a.btn { box-shadow: none; }
.projects-cta a.btn:hover { border-color: rgba(255, 255, 255, 0.35); }

/* ============ Experience / Timeline ============ */
.experience { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.timeline { position: relative; max-width: 820px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, #7c5cff, #38bdf8, transparent);
  opacity: 0.5;
}
.tl-item { position: relative; padding-left: 44px; padding-bottom: 40px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute;
  left: 0; top: 6px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 2px solid #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}
.tl-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px; margin-bottom: 6px; }
.tl-head h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.tl-meta { font-size: 0.85rem; color: var(--muted); font-family: var(--font-display); letter-spacing: 0.03em; }
.tl-body p { color: var(--muted); font-size: 0.98rem; }

/* ============ Writing ============ */
.writing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post {
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px 28px;
  text-decoration: none;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.post:hover { transform: translateY(-5px); border-color: rgba(124, 92, 255, 0.5); }
.post-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9bd7ff;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 16px;
}
.post h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin-bottom: 10px; line-height: 1.35; }
.post p { color: var(--muted); font-size: 0.93rem; margin-bottom: 20px; flex: 1; }
.post-link { font-size: 0.9rem; font-weight: 600; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ============ Project Groups ============ */
.proj-group {
  position: relative;
  background:
    radial-gradient(70% 50% at 15% 0%, rgba(124, 92, 255, 0.10), transparent 55%),
    radial-gradient(60% 60% at 90% 100%, rgba(56, 189, 248, 0.07), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  padding: 40px 40px 44px;
  margin: 0 0 44px;
  box-shadow: 0 24px 54px -22px rgba(0, 0, 0, 0.65);
}
.proj-group:last-child { margin-bottom: 8px; }
.proj-group .proj-group-head { margin-top: 0; }
.proj-group .proj-group-desc { margin-bottom: 28px; }
.proj-group .table-wrap { margin-bottom: 28px; }

/* ============ Project Tables ============ */
.table-wrap { margin-bottom: 32px; overflow-x: auto; border-radius: 20px; }
.site-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}
.site-table thead th {
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 20px 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.07), rgba(56, 189, 248, 0.04));
  white-space: nowrap;
}
.th-link { text-align: right; }
.site-table tbody td {
  padding: 22px 26px;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}
.site-table tbody td:first-child { white-space: nowrap; min-width: 216px; }
.site-table thead th:first-child { min-width: 216px; }
.site-table tbody td:last-child { text-align: right; }
.site-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.02); }
.site-table tbody tr:last-child td { border-bottom: none; }
.site-table tbody tr { transition: background 0.3s ease; }
.site-table tbody tr:hover { background: rgba(255, 255, 255, 0.05); }
.site-table td[data-label="Project"] h3,
.site-table td[data-label="Venture"] h3,
.site-table td[data-label="Work"] h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0;
  color: var(--text);
}
.site-table .post-tag { margin-bottom: 0; }
.t-link {
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  white-space: nowrap;
}
.t-link:hover { text-decoration: underline; }

/* ============ Quote ============ */
.quote { background-image: radial-gradient(55% 60% at 50% 50%, rgba(124, 92, 255, 0.1), transparent 70%); }
.quote blockquote { text-align: center; max-width: 820px; margin: 0 auto; }
.quote blockquote p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  line-height: 1.6;
  margin-bottom: 24px;
}
.quote cite { font-style: normal; color: var(--muted); font-size: 0.95rem; }

/* ============ Lightbox ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 10, 20, 0.92);
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 30px 90px -20px rgba(0, 0, 0, 0.9);
  transform: scale(0.92);
  transition: transform 0.3s ease;
}
.lightbox.open img { transform: scale(1); }
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.14); transform: scale(1.05); }
main img { cursor: zoom-in; }

/* ============ Contact ============ */
.contact { background: var(--bg-soft); border-top: 1px solid var(--border); }
.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 70px 60px;
  text-align: center;
  background-image: radial-gradient(70% 90% at 50% 0%, rgba(124, 92, 255, 0.12), transparent 70%);
}
.contact-card h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 20px;
}
.contact-text { max-width: 520px; margin: 0 auto 34px; color: var(--muted); }
.contact-card .btn { margin-bottom: 34px; }
.contact-card .hero-social { justify-content: center; }

/* ============ Footer ============ */
.footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  text-align: center;
}
.footer .monogram { margin-bottom: 14px; }
.footer p { font-size: 0.9rem; color: var(--muted); }
.footer-note { font-size: 0.82rem; margin-top: 4px; opacity: 0.75; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  section { padding: 80px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .family-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .aturi-grid { grid-template-columns: 1fr; gap: 32px; }
  .aturi-chips { grid-template-columns: 1fr; }
  .skill-grid, .writing-grid { grid-template-columns: 1fr; }
  .site-table thead { display: none; }
  .site-table, .site-table tbody, .site-table tr, .site-table td { display: block; width: 100%; }
  .site-table tbody tr {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 16px;
    background: var(--card);
  }
  .site-table td { border: none; padding: 0 0 8px 0; text-align: left !important; }
  .site-table td:last-child { text-align: left !important; padding-bottom: 0; }
  .site-table td::before {
    content: attr(data-label) " :";
    display: block;
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
    opacity: 0.7;
  }
  .contact-card { padding: 50px 26px; }
  .proj-group { padding: 32px 20px 36px; }
  .nav-toggle { display: block; z-index: 51; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(7, 10, 20, 0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .nav-links a { font-size: 1.2rem; font-family: var(--font-display); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}