/* Cinematic — full-screen slides, one idea per screen */

:root {
  --bg: #0a0a0b;
  --bg-2: #111114;
  --text: #f0f0f2;
  --muted: #7a7a88;
  --dim: #3a3a44;
  --border: rgba(255,255,255,0.07);
  --accent: #e8e0cc;
  --font: "Inter", -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: rgba(10,10,11,0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-name {
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-dots {
  display: flex;
  gap: 10px;
  align-items: center;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dim);
  border: none;
  cursor: pointer;
  transition: background 200ms, transform 200ms;
  padding: 0;
}

.dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

.nav-cta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all 150ms;
}

.nav-cta:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.14);
}

/* ─── SLIDES ─── */
.slides {
  width: 100%;
}

.slide {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 44px 65px 20px;
  position: relative;
  border-bottom: 1px solid var(--border);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.slide.slide-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── INTRO SLIDE ─── */
.slide-intro {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.slide-eyebrow {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
  display: block;
}

.slide-intro h1 {
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.96;
  color: var(--text);
}

.slide-intro h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 300;
}

.slide-sub {
  margin-top: 28px;
  font-size: 1rem;
  line-height: 1.72;
  color: var(--muted);
  max-width: 46ch;
}

.slide-scroll-hint {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
}

.slide-scroll-hint span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.scroll-line {
  width: 40px;
  height: 1px;
  background: var(--dim);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

.slide-aside {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.aside-block {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.aside-block:last-child { border-bottom: none; }

.aside-block span {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 6px;
}

.aside-block p {
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--muted);
}

/* ─── PROJECT SLIDES ─── */
.slide-project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.slide-project-alt {
  direction: ltr;
}

.slide-inner h2 {
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.97;
  margin-bottom: 20px;
}

.slide-body {
  font-size: 0.95rem;
  line-height: 1.78;
  color: var(--muted);
  max-width: 48ch;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.chips li {
  font-size: 0.74rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
}

.slide-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.slide-links a {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent);
  transition: opacity 150ms;
}

.slide-links a:hover { opacity: 0.65; }

/* Visual frames */
.slide-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-frame {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-2);
}

.visual-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.visual-flow {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 320px;
  justify-content: center;
}

.flow-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.fnode {
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--bg);
  color: var(--muted);
}

.fnode-active {
  background: rgba(232,224,204,0.1);
  border-color: rgba(232,224,204,0.3);
  color: var(--accent);
}

.farrow { color: var(--dim); font-size: 1rem; }

.fstatus {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

.fdot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
}

.visual-ui {
  padding: 28px;
  min-height: 320px;
}

.ui-panel {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  height: 100%;
}

.ui-panel span {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 8px;
}

.ui-panel strong {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.ui-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 120px;
  margin-top: 16px;
}

.ubar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: var(--bg-2);
  border: 1px solid var(--border);
}

.ubar-accent {
  background: rgba(232,224,204,0.15);
  border-color: rgba(232,224,204,0.3);
}

/* ─── ABOUT SLIDE ─── */
.slide-about {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.slide-inner-about h2 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.97;
  margin-bottom: 24px;
}

.github-graph {
  margin-top: 28px;
  opacity: 0.8;
  overflow: hidden;
  padding-bottom: 4px;
}

.github-graph-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 8px;
}

.github-graph img {
  width: 100%;
  height: auto;
  margin-top: -16px;
}

.github-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 150ms, border-color 150ms;
}

.github-link:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.15);
}

.slide-aside-about {
  align-self: center;
}

/* ─── CONNECT SLIDE ─── */
.slide-connect {
  justify-content: center;
  align-items: center;
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
  flex-direction: column;
}

.slide-inner-connect {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slide-inner-connect h2 {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.97;
  margin-bottom: 20px;
  text-align: center;
}

.slide-inner-connect .slide-body {
  text-align: center;
  max-width: 48ch;
}

.connect-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
  width: 100%;
  max-width: 420px;
}

.connect-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-2);
  transition: border-color 150ms;
}

.connect-links a:hover {
  border-color: rgba(255,255,255,0.14);
}

.connect-links a span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.connect-links a strong {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
}

.slide-footer {
  font-size: 0.74rem;
  color: var(--dim);
  margin-top: 40px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .slide { padding: 90px 24px 48px; }
  .nav { padding: 16px 24px; }
  .slide-intro,
  .slide-project,
  .slide-about { grid-template-columns: 1fr; gap: 40px; }
  .slide-intro h1 { font-size: clamp(3rem, 14vw, 5rem); }
}
