/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #05070c;
  --bg-elevated: #0a0e18;
  --bg-elevated-2: #0e1320;
  --surface: rgba(255,255,255,0.035);
  --surface-hover: rgba(255,255,255,0.06);
  --glass: rgba(15,18,28,0.55);
  --border: rgba(255,255,255,0.09);
  --border-strong: rgba(255,255,255,0.16);

  --text: #edf0f7;
  --text-mute: #9aa2b8;
  --text-faint: #5c6379;

  --accent: #6d7bff;
  --accent-2: #35d7e8;
  --accent-3: #4fd69c;
  --accent-soft: rgba(109,123,255,0.14);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Space Grotesk", var(--sans);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 16px;
  --radius-sm: 10px;
  --nav-h: 76px;
}

@property --mesh-x { syntax: "<percentage>"; inherits: false; initial-value: 30%; }
@property --mesh-y { syntax: "<percentage>"; inherits: false; initial-value: 30%; }

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.08; letter-spacing: -0.02em; font-family: var(--display); font-weight: 600; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: #05070c; }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

.mono { font-family: var(--mono); }

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .7rem 1.1rem; background: var(--text); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 600; font-size: .9rem;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { position: relative; padding-block: clamp(4.5rem, 9vw, 8rem); }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.015) 15%, rgba(255,255,255,0.015) 85%, transparent); }

.eyebrow {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: .9rem;
}
.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  margin-bottom: clamp(2rem, 5vw, 3.2rem);
  max-width: 26ch;
}

[data-reveal] {
  opacity: 0; transform: translateY(32px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }
/* elements that ALSO split their text must stay visible — the split spans animate themselves */
[data-reveal][data-split] { opacity: 1; transform: none; }

.split-char, .split-word {
  display: inline-block;
  opacity: 0; transform: translateY(22px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.is-split-revealed .split-char,
.is-split-revealed .split-word { opacity: 1; transform: none; }

/* =============================================================
   4. Components
   ============================================================= */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600; font-size: .92rem;
  border: 1px solid transparent;
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft), background .3s var(--ease-out), border-color .3s var(--ease-out), color .3s var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #4b5cff);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(109,123,255,0.55);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 36px -10px rgba(109,123,255,0.65); }
.btn-outline {
  background: var(--surface);
  border-color: var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn-outline:hover { border-color: var(--border-strong); background: var(--surface-hover); transform: translateY(-3px); }
.btn-ghost { color: var(--text-mute); }
.btn-ghost:hover { color: var(--text); }
.btn-sm { padding: .55rem 1.1rem; font-size: .82rem; }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.05rem; }
.btn:active { transform: translateY(-1px); transition-duration: .12s; }

.has-magnetic { display: inline-flex; position: relative; isolation: isolate; }
.magnetic-inner { display: inline-flex; align-items: center; justify-content: center; gap: inherit; will-change: transform; transition: transform .8s var(--ease-soft); }

/* Glass surfaces */
.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
@supports not (backdrop-filter: blur(1px)) {
  .glass { background: #0d1119; }
}

/* Pills / badges */
.tech-pill {
  font-family: var(--mono); font-size: .82rem;
  padding: .45rem .9rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-mute);
}
.badge {
  font-family: var(--mono); font-size: .76rem;
  padding: .4rem .8rem;
  border-radius: 8px;
  background: var(--accent-soft);
  color: #c3caff;
  border: 1px solid rgba(109,123,255,0.28);
}
.badge-sm { font-size: .72rem; padding: .32rem .65rem; }

/* =============================================================
   5. Nav
   ============================================================= */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 200;
  transition: background-color .4s var(--ease-out), backdrop-filter .4s var(--ease-out), border-color .4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(5,7,12,0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav-inner {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.nav-brand { display: flex; align-items: center; gap: .65rem; font-weight: 600; }
.nav-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #05070c; font-family: var(--display); font-weight: 700; font-size: .82rem;
}
.nav-name { font-family: var(--display); font-size: .98rem; }
.nav-links { display: none; align-items: center; gap: 2rem; }
.nav-links a {
  position: relative; font-size: .92rem; color: var(--text-mute);
  padding-block: .3rem;
  transition: color .3s var(--ease-out);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--accent-2);
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-soft);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { display: none; align-items: center; gap: .9rem; }
.nav-icon-link { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; color: var(--text-mute); transition: color .3s, background .3s; }
.nav-icon-link:hover { color: var(--text); background: var(--surface); }

.nav-burger {
  display: grid; gap: 5px; padding: .5rem;
}
.nav-burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease-out), opacity .3s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 190;
  background: rgba(5,7,12,0.98);
  backdrop-filter: blur(20px);
  display: grid; place-content: center; gap: 1.6rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease-soft);
}
.nav-mobile[data-open="true"] { clip-path: inset(0); }
.nav-mobile a { font-family: var(--display); font-size: 1.5rem; text-align: center; color: var(--text-mute); }
.nav-mobile a:hover { color: var(--text); }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-actions { display: flex; }
  .nav-burger { display: none; }
}

/* =============================================================
   6. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: var(--nav-h);
  overflow: clip;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-gradient {
  position: absolute; inset: -10%;
  background:
    radial-gradient(38rem 30rem at var(--mesh-x, 30%) var(--mesh-y, 30%), rgba(109,123,255,0.30), transparent 60%),
    radial-gradient(34rem 30rem at calc(var(--mesh-x, 30%) + 30%) calc(var(--mesh-y, 30%) + 25%), rgba(53,215,232,0.18), transparent 60%),
    radial-gradient(30rem 26rem at calc(var(--mesh-x, 30%) - 10%) calc(var(--mesh-y, 30%) + 40%), rgba(79,214,156,0.10), transparent 60%);
  filter: blur(10px);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 40%, transparent 90%);
}
.hero-particles { position: absolute; inset: 0; }

.hero-content {
  position: relative;
  padding-block: clamp(3rem, 8vw, 5rem);
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  gap: 1rem;
}
.hero-text { min-width: 0; }

.hero-portrait {
  order: -1;
  position: relative;
  justify-self: center;
  align-self: center;
  margin-bottom: -0.5rem;
}
.hero-portrait img {
  display: block;
  width: auto;
  max-width: 60vw;
  height: auto;
  max-height: 34svh;
  margin-inline: auto;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,0.55));
}
.hero-portrait::after {
  content: "";
  position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%);
  width: 72%; height: 10%;
  background: radial-gradient(closest-side, rgba(109,123,255,0.5), transparent 72%);
  filter: blur(24px);
  z-index: -1;
}

@media (min-width: 1024px) {
  .hero-content { grid-template-columns: 1fr 1fr; align-items: end; gap: 1.5rem; }
  .hero-text { order: 1; padding-bottom: 2vh; }
  .hero-portrait {
    order: 2; justify-self: end; align-self: end;
    width: 100%; max-width: 620px; margin-bottom: 0;
  }
  .hero-portrait img { max-height: 88svh; width: auto; margin-left: auto; display: block; }
  .hero-portrait::after { width: 65%; height: 8%; bottom: 3%; }
}
@media (min-width: 1600px) {
  .hero-portrait { max-width: 700px; }
  .hero-portrait img { max-height: 92svh; }
}

.hero-kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--mono); font-size: .82rem; letter-spacing: .04em;
  color: var(--text-mute);
  margin-bottom: 1.6rem;
}
.hero-kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-3); box-shadow: 0 0 0 3px rgba(79,214,156,0.18); }

.hero-title {
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  line-height: .98;
  max-width: 12ch;
  margin-bottom: 1.4rem;
}
.split-char { display: inline-block; }

.hero-subtitle { font-size: clamp(1rem, 1.6vw, 1.25rem); color: var(--text-mute); margin-bottom: 1.6rem; }
.hero-subtitle .mono { color: var(--text); }

.hero-tagline {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  max-width: 22ch;
  color: var(--text);
  margin-bottom: 2.2rem;
  text-wrap: balance;
}

.hero-tech-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.6rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }

.hero-scroll-cue {
  position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%);
  width: 24px; height: 38px; border: 1px solid var(--border-strong); border-radius: 999px;
}
.hero-scroll-cue span {
  display: block; width: 4px; height: 8px; border-radius: 2px; background: var(--accent-2);
  margin: 7px auto 0; animation: scrollCue 1.8s ease-in-out infinite;
}
@keyframes scrollCue { 0%, 100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(10px); opacity: .3; } }

/* =============================================================
   7. About
   ============================================================= */
.about-grid { display: grid; gap: 3rem; }
.about-avatar { display: flex; justify-content: center; }
.avatar-badge {
  position: relative; width: 132px; height: 132px; border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(109,123,255,0.22), rgba(53,215,232,0.10));
  border: 1px solid var(--border-strong);
}
.avatar-badge img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.avatar-ring { position: absolute; inset: -10px; border-radius: 34px; border: 1px dashed var(--border); animation: spinSlow 22s linear infinite; }
@keyframes spinSlow { to { transform: rotate(360deg); } }

.about-lead { font-family: var(--display); font-size: clamp(1.2rem, 2.2vw, 1.55rem); margin-bottom: 1.2rem; text-wrap: balance; }
.about-body { color: var(--text-mute); max-width: 62ch; margin-bottom: 1.6rem; }
.about-quote {
  font-family: var(--display); font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  padding-left: 1.2rem; border-left: 2px solid var(--accent-2);
  color: var(--text); margin-bottom: 1.8rem;
}
.about-tags { display: flex; flex-wrap: wrap; gap: .55rem; }
.about-tags li { font-family: var(--mono); font-size: .78rem; color: var(--text-mute); padding: .4rem .8rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }

@media (min-width: 720px) {
  .about-grid { grid-template-columns: 200px 1fr; align-items: start; }
}

/* =============================================================
   8. Experience
   ============================================================= */
.timeline { display: grid; gap: 1.4rem; }
.exp-card {
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.exp-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .6rem; margin-bottom: 1.6rem; }
.exp-card-head h3 { font-size: 1.25rem; margin-bottom: .3rem; }
.exp-company { color: var(--accent-2); font-size: .92rem; }
.exp-dates { color: var(--text-faint); font-size: .8rem; }

.exp-categories { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.exp-cat {
  padding: 1.1rem 1.2rem; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border);
  transform: perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));
  transition: transform .55s var(--ease-soft), border-color .3s;
}
.exp-cat:hover { border-color: var(--border-strong); transition-duration: .15s; }
.exp-cat-label { font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-2); margin-bottom: .6rem; }
.exp-cat ul li { font-size: .88rem; color: var(--text-mute); margin-bottom: .35rem; padding-left: 1rem; position: relative; }
.exp-cat ul li::before { content: "—"; position: absolute; left: 0; color: var(--text-faint); }

.exp-card-secondary { opacity: .88; }
.exp-secondary-desc { color: var(--text-mute); max-width: 68ch; font-size: .94rem; }

/* =============================================================
   9. Stack
   ============================================================= */
.stack-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.stack-group {
  padding: 1.4rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
}
.stack-group-title {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--display); font-weight: 600; font-size: 1rem; margin-bottom: 1rem;
}
.stack-icon { width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); position: relative; flex: none; }
.stack-icon::before { content: ""; position: absolute; inset: 7px; background: var(--accent-2); }
.stack-icon[data-icon="backend"]::before { clip-path: polygon(20% 0, 80% 0, 100% 50%, 80% 100%, 20% 100%, 0 50%); }
.stack-icon[data-icon="frontend"]::before { border-radius: 3px; clip-path: polygon(0 0, 100% 0, 100% 20%, 0 20%, 0 100%, 20% 100%, 20% 40%, 100% 40%, 100% 100%, 0 100%); }
.stack-icon[data-icon="database"]::before { border-radius: 50% / 25%; }
.stack-icon[data-icon="infra"]::before { clip-path: polygon(0 0,100% 0,100% 35%,0 35%,0 65%,100% 65%,100% 100%,0 100%); }
.stack-icon[data-icon="tools"]::before { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }

.stack-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.stack-pill {
  font-family: var(--mono); font-size: .8rem;
  padding: .45rem .85rem; border-radius: 8px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  color: var(--text-mute);
  transform: perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));
  transition: transform .5s var(--ease-soft), color .3s, border-color .3s;
}
.stack-pill:hover { color: var(--text); border-color: var(--accent); transition-duration: .15s; }

/* =============================================================
   10. GitHub intro
   ============================================================= */
.github-intro { max-width: 760px; }
.github-copy { color: var(--text-mute); margin-bottom: 2rem; font-size: 1.02rem; }

/* =============================================================
   11. Featured project
   ============================================================= */
.featured-sub { color: var(--text-mute); max-width: 60ch; margin-bottom: 2.6rem; font-size: 1.02rem; }
.featured-card {
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(109,123,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid var(--border-strong);
  padding: clamp(1.6rem, 4vw, 3rem);
  margin-bottom: 3rem;
  position: relative;
  overflow: clip;
}
.featured-card::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 60%;
  background: radial-gradient(50% 60% at 50% 0%, rgba(109,123,255,0.18), transparent 70%);
  filter: blur(60px); pointer-events: none;
}
.featured-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 2.2rem; }
.featured-badges { display: flex; flex-wrap: wrap; gap: .5rem; }
.featured-body { display: grid; gap: 2.4rem; }
.featured-desc h3, .featured-arch h3 { font-size: 1.05rem; margin-bottom: .7rem; margin-top: 1.6rem; }
.featured-desc h3:first-child, .featured-arch h3:first-child { margin-top: 0; }
.featured-desc p { color: var(--text-mute); }
.featured-desc ul li {
  color: var(--text-mute); font-size: .95rem; padding-left: 1.2rem; position: relative; margin-bottom: .55rem;
}
.featured-desc ul li::before { content: "▹"; position: absolute; left: 0; color: var(--accent-2); }

.module-flow {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem;
  margin-bottom: 1.8rem;
}
.module-node {
  font-size: .82rem; text-align: center; padding: .8rem 1rem;
  border-radius: var(--radius-sm); background: var(--bg-elevated); border: 1px solid var(--border);
  flex: 1 1 130px;
}
.module-node small { color: var(--text-faint); font-family: var(--mono); }
.module-arrow { color: var(--accent-2); font-size: 1.1rem; flex: none; }

.module-grid { display: flex; flex-wrap: wrap; gap: .55rem; }
.module-chip { font-size: .8rem; padding: .45rem .85rem; border-radius: 999px; background: var(--accent-soft); color: #c3caff; border: 1px solid rgba(109,123,255,0.25); }

@media (min-width: 960px) {
  .featured-body { grid-template-columns: 1.1fr 1fr; }
}

/* Secondary project cards */
.projects-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.project-card {
  padding: 1.6rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transform: perspective(900px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));
  transition: transform .55s var(--ease-soft), border-color .3s, box-shadow .3s;
}
.project-card:hover { border-color: var(--border-strong); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6); transition-duration: .15s; }
.project-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .7rem; }
.project-card-head h3 { font-size: 1.08rem; }
.project-card-head a { color: var(--text-faint); font-size: 1.1rem; transition: color .3s, transform .3s; }
.project-card-head a:hover { color: var(--accent-2); transform: translate(2px,-2px); }
.project-desc { color: var(--text); font-size: .95rem; margin-bottom: .7rem; }
.tag-early { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: #f5b563; background: rgba(245,181,99,0.12); border: 1px solid rgba(245,181,99,0.3); padding: .15rem .5rem; border-radius: 999px; margin-left: .4rem; }
.project-problem { font-size: .86rem; color: var(--text-mute); margin-bottom: .9rem; }
.project-problem strong { color: var(--text); }
.project-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .9rem; }
.project-arch { font-size: .8rem; color: var(--text-faint); }
.project-arch strong { color: var(--text-mute); }

/* =============================================================
   12. Method
   ============================================================= */
.method-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.method-card {
  padding: 1.6rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color .3s, transform .4s var(--ease-soft);
}
.method-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.method-num { display: block; color: var(--accent-2); font-size: .85rem; margin-bottom: .8rem; }
.method-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.method-card p { font-size: .88rem; color: var(--text-mute); }

/* =============================================================
   13. Architecture diagram
   ============================================================= */
.arch-note { color: var(--text-mute); max-width: 62ch; margin-bottom: 2.6rem; }
.arch-diagram { overflow-x: auto; overflow-y: visible; padding-block: 1rem; }
.arch-svg { width: 100%; min-width: 720px; height: auto; overflow: visible; }
.arch-line { stroke: var(--border-strong); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease-soft); }
.arch-diagram.is-revealed .arch-line { stroke-dashoffset: 0; }
.arch-node circle { fill: var(--bg-elevated); stroke: var(--border-strong); stroke-width: 1.5; }
.arch-node text { fill: var(--text); font-family: var(--sans); font-size: 14px; font-weight: 600; text-anchor: middle; }
.arch-node text.small { fill: var(--text-faint); font-family: var(--mono); font-size: 11px; font-weight: 400; }

/* =============================================================
   14. Evidence block
   ============================================================= */
.evidence-block { max-width: 760px; }
.evidence-copy { color: var(--text-mute); font-size: 1.05rem; }

/* =============================================================
   15. Education
   ============================================================= */
.education-list { display: grid; gap: 1rem; }
.education-item {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .4rem;
  padding: 1.2rem 0; border-bottom: 1px solid var(--border);
}
.education-item:last-child { border-bottom: none; }
.education-title { font-size: 1rem; max-width: 42ch; }
.education-school { color: var(--text-faint); font-size: .82rem; }

/* =============================================================
   16. Manifesto
   ============================================================= */
.manifesto { position: relative; padding-block: clamp(5rem, 12vw, 9rem); overflow: clip; }
.manifesto-bg {
  position: absolute; inset: -20% -5%;
  background: radial-gradient(45% 55% at 50% 50%, rgba(109,123,255,0.16), transparent 70%);
  filter: blur(90px);
}
.manifesto-text {
  position: relative; text-align: center; margin-inline: auto; max-width: 20ch;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.6rem, 4.4vw, 3rem); line-height: 1.18;
}

/* =============================================================
   17. Contact
   ============================================================= */
.contact { text-align: center; }
.contact-copy { color: var(--text-mute); max-width: 52ch; margin-inline: auto; margin-bottom: 2.6rem; }
.contact-actions { display: grid; gap: 1.2rem; justify-items: center; margin-bottom: 1.6rem; }
.contact-secondary { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.contact-location { color: var(--text-faint); font-size: .8rem; }

/* =============================================================
   18. Footer
   ============================================================= */
.footer { padding-block: 2.2rem; border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; color: var(--text-faint); }
.footer-links { display: flex; gap: 1.4rem; }
.footer-links a { transition: color .3s; }
.footer-links a:hover { color: var(--text); }

/* =============================================================
   19. Cursor
   ============================================================= */
.cursor {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  display: none;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity .25s var(--ease-out);
}
.cursor.is-ready { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; will-change: transform; }
.cursor-dot { width: 5px; height: 5px; margin: -2.5px; background: #fff; border-radius: 50%; }
.cursor-ring { width: 30px; height: 30px; margin: -15px; border: 1px solid #fff; border-radius: 50%; transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out); }
.cursor.is-interactive .cursor-ring { width: 46px; height: 46px; margin: -23px; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }

/* =============================================================
   20. Responsive breakpoints
   ============================================================= */
@media (min-width: 540px) {
  .hero-actions { gap: 1rem; }
}
@media (min-width: 720px) { }
@media (min-width: 960px) {
  .exp-categories { grid-template-columns: repeat(3, 1fr); }
  .contact-actions { grid-template-columns: auto; }
}
@media (min-width: 1280px) {
  .exp-categories { grid-template-columns: repeat(5, 1fr); }
}

/* =============================================================
   21. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-cue span { animation: none; }
  .avatar-ring { animation: none; }
  .hero-particles { display: none; }
}
