:root {
  color-scheme: light;
  --bg: #f6f8fc;
  --panel: rgba(255, 255, 255, 0.84);
  --line: rgba(20, 37, 63, 0.08);
  --text: #101828;
  --muted: #556274;
  --soft: #77849a;
  --accent: #1b67ff;
  --accent-2: #7d58ff;
  --shadow: 0 28px 70px rgba(26, 45, 80, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(27, 103, 255, 0.06), transparent 24%),
    radial-gradient(circle at 84% 16%, rgba(125, 88, 255, 0.06), transparent 18%),
    linear-gradient(180deg, #fbfcff 0%, #f4f7fb 100%);
  color: var(--text);
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }

.page-shell {
  min-height: 100vh;
}

.site-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(248, 250, 253, 0.84);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(16, 24, 40, 0.04);
}

.nav-shell {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  font-weight: 900;
  letter-spacing: -0.05em;
}

.top-nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
  flex-wrap: wrap;
}

.top-nav a:hover,
.project-actions a:hover,
.contact-links a:hover {
  color: var(--accent);
}

.panel {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.nav-button,
.button,
.pill,
.text-link {
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 11px 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-button,
.button.secondary,
.pill,
.text-link {
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
}

.nav-button:hover,
.button:hover,
.pill:hover,
.text-link:hover {
  transform: translateY(-1px);
  border-color: rgba(27, 103, 255, 0.16);
  box-shadow: 0 10px 28px rgba(27, 103, 255, 0.06);
}

.button.primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  border-color: transparent;
  font-weight: 800;
}

.demo-thumb.active,
.demo-category.active {
  background: rgba(27, 103, 255, 0.1);
  border-color: rgba(27, 103, 255, 0.18);
  color: var(--accent);
}

.main-shell {
  padding: 42px 0 90px;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: stretch;
  padding: 16px 0 44px;
}

.hero-copy,
.showcase-card,
.intro-band,
.feature-project,
.compact-project,
.skill-card,
.experience-item,
.callout-band,
.contact-panel,
.modal-card {
  border-radius: 28px;
}

.hero-copy {
  padding: 42px;
  position: relative;
  overflow: hidden;
}

.hero-copy::before {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  right: -120px;
  top: -120px;
  background: radial-gradient(circle, rgba(27, 103, 255, 0.14) 0%, rgba(27, 103, 255, 0) 72%);
  pointer-events: none;
}

.hero-badges,
.hero-actions,
.project-highlights,
.callout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.status-pill,
.muted-pill,
.card-label,
.case-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-pill {
  background: rgba(27, 103, 255, 0.1);
  color: var(--accent);
  border: 1px solid rgba(27, 103, 255, 0.1);
}

.status-pill::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0fba7a;
}

.muted-pill,
.card-label,
.case-label {
  background: rgba(255, 255, 255, 0.9);
  color: var(--soft);
  border: 1px solid rgba(16, 24, 40, 0.06);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  color: var(--soft);
  margin: 16px 0 14px;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  font-size: clamp(3.3rem, 6vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.075em;
  margin-bottom: 18px;
  max-width: 10ch;
}

h2 {
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.05em;
  margin-bottom: 0;
}

h3 {
  font-size: 1.18rem;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.lead,
.hero-sublead,
.intro-band p,
.project-item p,
.skill-card p,
.experience-item p,
.contact-panel p,
.modal-card p,
.showcase-copy p,
.section-note,
.callout-copy,
.demo-caption {
  color: var(--muted);
  font-size: 1.04rem;
}

.hero-sublead {
  max-width: 58ch;
  margin-top: -2px;
  margin-bottom: 0;
}

.hero-visual {
  display: grid;
}

.showcase-card {
  overflow: hidden;
}

.showcase-image {
  min-height: 360px;
}

.showcase-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-copy {
  padding: 24px;
}

.section {
  padding: 20px 0;
}

.section-divider {
  border-top: 1px solid rgba(16, 24, 40, 0.06);
  margin-top: 18px;
  padding-top: 38px;
}

.intro-band,
.callout-band,
.contact-panel {
  padding: 30px;
  display: grid;
  gap: 24px;
  grid-template-columns: 1.08fr 0.92fr;
}

.text-stack {
  display: grid;
  gap: 14px;
}

.section-head {
  margin-bottom: 20px;
}

.work-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  flex-wrap: wrap;
}

.curated-project-list,
.curated-skills-grid,
.curated-experience-list {
  display: grid;
  gap: 18px;
}

.project-item {
  transition: opacity 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
}

.project-item:hover,
.skill-card:hover,
.experience-item:hover,
.hero-copy:hover,
.showcase-card:hover,
.intro-band:hover,
.callout-band:hover,
.contact-panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 60px rgba(26, 45, 80, 0.1);
}

.feature-project {
  overflow: hidden;
}

.project-spotlight {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 100%;
}

.app-showcase-layout {
  align-items: start;
}

.spotlight-copy {
  padding: 32px;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 8px;
}

.case-grid > div {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(16, 24, 40, 0.06);
}

.case-label {
  margin-bottom: 10px;
  padding: 6px 10px;
}

.app-demo-shell {
  padding: 28px 28px 32px 0;
  display: grid;
  gap: 18px;
  align-content: start;
}

.demo-header {
  display: grid;
  gap: 10px;
}

.phone-demo-frame {
  position: relative;
  width: min(100%, 290px);
  margin: 0 auto;
  padding: 16px;
  border-radius: 38px;
  background: linear-gradient(180deg, #111827 0%, #1f2937 100%);
  box-shadow: 0 24px 48px rgba(17, 24, 39, 0.2);
}

.phone-notch {
  width: 92px;
  height: 18px;
  border-radius: 999px;
  background: #0b1220;
  margin: 0 auto 14px;
}

.phone-demo-frame img {
  width: 100%;
  border-radius: 26px;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  transition: opacity 0.35s ease;
}

.slideshow-shell {
  align-content: start;
}

.static-frame {
  margin-bottom: 8px;
}

.slideshow-controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
}

.slide-button {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  cursor: pointer;
}

.slide-indicators {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.slide-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0;
  background: rgba(27, 103, 255, 0.16);
  cursor: pointer;
  padding: 0;
}

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

.compact-project {
  padding: 24px;
}

.project-type {
  color: var(--soft);
  font-size: 0.92rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.project-highlights span {
  border: 1px solid rgba(16, 24, 40, 0.08);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.9rem;
  background: rgba(27, 103, 255, 0.04);
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
  color: var(--accent);
}

.two-column {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 24px;
}

.curated-skills-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.skill-card,
.experience-item {
  padding: 24px;
}

.experience-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.experience-top span {
  color: var(--soft);
}

.callout-actions {
  align-items: center;
  justify-content: flex-start;
}

.callout-copy {
  margin-top: 14px;
  max-width: 52ch;
}

.contact-links {
  display: flex;
  gap: 12px;
}

.contact-stack {
  flex-direction: column;
  align-items: flex-start;
}

.modal {
  border: 0;
  padding: 0;
  background: transparent;
  width: min(92vw, 680px);
}

.modal::backdrop {
  background: rgba(19, 28, 43, 0.22);
}

.modal-card {
  padding: 24px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.modal-close {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  cursor: pointer;
}

.modal-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

@media (max-width: 980px) {
  .hero,
  .intro-band,
  .callout-band,
  .contact-panel,
  .two-column,
  .curated-skills-grid,
  .project-spotlight,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .top-nav {
    display: none;
  }

  .app-demo-shell {
    padding: 0 28px 32px;
  }
}

@media (max-width: 720px) {
  .site-inner {
    width: min(1180px, calc(100% - 24px));
  }

  .nav-shell {
    min-height: auto;
    padding: 14px 0;
    flex-wrap: wrap;
  }

  .main-shell {
    padding-top: 18px;
  }

  h1 {
    font-size: 2.8rem;
  }

  .hero-copy,
  .showcase-copy,
  .intro-band,
  .compact-project,
  .skill-card,
  .experience-item,
  .callout-band,
  .contact-panel,
  .spotlight-copy,
  .modal-card {
    padding: 22px;
  }

  .showcase-image {
    min-height: 240px;
  }

  .app-demo-shell {
    padding: 0 22px 22px;
  }
}
