:root {
  --bg: #f7f7f8;
  --surface: #ffffff;
  --surface-2: #f0f1f3;
  --text: #16181d;
  --muted: #5b616e;
  --border: #e4e5e9;
  --accent: #2f6fed;
  --accent-text: #ffffff;
  --shadow: 0 1px 2px rgba(16, 17, 20, 0.04), 0 8px 24px rgba(16, 17, 20, 0.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101114;
    --surface: #17181c;
    --surface-2: #1d1f24;
    --text: #eceef1;
    --muted: #9aa0ab;
    --border: #2a2c32;
    --accent: #5b8dfb;
    --accent-text: #0b0e14;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: inherit; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- shared shell ---- */
.shell {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}
nav.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 0;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}
nav.top .brand {
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
}
nav.top a.back {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
}
nav.top a.back:hover { color: var(--text); }

footer {
  text-align: center;
  padding: 1.5rem 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}
footer a { color: var(--muted); }

/* ---- hero / about me ---- */
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.6rem;
}
h1 {
  font-size: clamp(2rem, 5vw, 2.6rem);
  margin: 0 0 0.6rem;
  line-height: 1.15;
}
.tagline {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 1.1rem;
  max-width: 52ch;
  line-height: 1.55;
}
.hero-links {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}
.hero-links a {
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
}
.hero-links a:hover { text-decoration: underline; }

section { margin-top: 2.75rem; }
h2.section-title {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}

/* ---- featured project split-card ---- */
.feature-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface);
  aspect-ratio: 16 / 9;
}
.feature-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.feature-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.1rem 1.25rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.72), rgba(0,0,0,0));
  pointer-events: none;
  z-index: 2;
}
.feature-overlay .card-label {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #bcd0ff;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.feature-overlay h3 {
  margin: 0 0 0.25rem;
  color: #fff;
  font-size: 1.3rem;
}
.feature-overlay p {
  margin: 0;
  color: #dfe3ea;
  font-size: 0.88rem;
  max-width: 46ch;
}
.zone {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  text-decoration: none;
  transition: background 0.15s ease;
}
.zone-demo {
  left: 0;
  width: 75%;
}
.zone-demo:hover { background: rgba(255,255,255,0.06); }
.zone-demo .hint {
  margin: 0.9rem 0.9rem 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: rgba(0,0,0,0.45);
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.zone-demo:hover .hint { opacity: 1; transform: translateY(0); }
.zone-about {
  right: 0;
  width: 25%;
  border-left: 1px dashed rgba(255,255,255,0.35);
  background: rgba(15, 17, 21, 0.32);
  align-items: flex-end;
  justify-content: flex-start;
  flex-direction: column;
  padding: 0.9rem;
}
.zone-about:hover { background: rgba(15, 17, 21, 0.5); }
.zone-about .badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  text-align: right;
  line-height: 1.35;
}
.zone-about .badge small {
  display: block;
  font-weight: 500;
  color: #c9cfda;
  font-size: 0.68rem;
  margin-top: 0.15rem;
}

/* ---- mock screenshot ---- */
.mock-shot {
  width: 100%;
  height: 100%;
  background: var(--surface-2);
}

/* ---- other projects ---- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.project-tile {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 1.1rem;
  color: var(--muted);
}
.project-tile h4 {
  margin: 0 0 0.35rem;
  color: var(--text);
  font-size: 0.98rem;
}
.project-tile p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
}

/* ---- about-project page ---- */
.about-hero {
  margin-bottom: 2rem;
}
.about-hero h1 { margin-bottom: 0.5rem; }
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
}
.pill {
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}
.about-section { margin-top: 2.25rem; }
.about-section h2 {
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
}
.about-section p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 0.75rem;
}
.about-section ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.7;
}
.cta-row {
  display: flex;
  gap: 0.8rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  font-weight: 600;
  padding: 0.65rem 1.1rem;
  border-radius: 8px;
  font-size: 0.92rem;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}
.btn-primary:hover { opacity: 0.9; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--surface-2); }
