/* ============================================================
   Dvlprr — home page
   Dark, premium, brand-forward (Slash Purple + Canvas).
   Static CSS, no build step.
   ============================================================ */

:root {
  --canvas: #06080a;
  --surface: #0e1118;
  --surface-2: #14171f;
  --snow: #f5f7ff;
  --muted: #9aa1ad;
  --muted-2: #6b7280;
  --purple: #7c3aed;
  --purple-bright: #9d5cff;
  --purple-soft: rgba(124, 58, 237, 0.16);
  --line: rgba(245, 247, 255, 0.08);
  --line-strong: rgba(245, 247, 255, 0.14);
  --radius: 20px;
  --radius-lg: 32px;
  --max: 72rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Animated gradient mesh custom props (interpolatable) */
@property --mx1 { syntax: "<percentage>"; inherits: false; initial-value: 18%; }
@property --my1 { syntax: "<percentage>"; inherits: false; initial-value: 12%; }
@property --mx2 { syntax: "<percentage>"; inherits: false; initial-value: 82%; }
@property --my2 { syntax: "<percentage>"; inherits: false; initial-value: 28%; }
@property --mx3 { syntax: "<percentage>"; inherits: false; initial-value: 50%; }
@property --my3 { syntax: "<percentage>"; inherits: false; initial-value: 88%; }

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

html {
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  color: var(--snow);
  background: var(--canvas);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--purple);
  color: #fff;
}

/* ---------- Floating glass nav ---------- */
.site-nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: calc(100% - 2rem);
  max-width: 56rem;
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.6rem 0.55rem 1.1rem;
  border-radius: 999px;
  background: rgba(20, 23, 31, 0.55);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.brand__mark {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  flex-shrink: 0;
}

.brand__word {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  color: var(--snow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--snow);
  background: rgba(245, 247, 255, 0.05);
}

.nav-cta {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--canvas);
  background: var(--snow);
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 247, 255, 0.18);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem 5rem;
  overflow: hidden;
}

.hero__mesh {
  position: absolute;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38% 38% at var(--mx1) var(--my1), rgba(124, 58, 237, 0.45), transparent 70%),
    radial-gradient(34% 34% at var(--mx2) var(--my2), rgba(99, 102, 241, 0.32), transparent 70%),
    radial-gradient(40% 40% at var(--mx3) var(--my3), rgba(157, 92, 255, 0.28), transparent 72%);
  filter: blur(40px);
  animation: meshDrift 22s ease-in-out infinite alternate;
  opacity: 0.85;
}

@keyframes meshDrift {
  0% {
    --mx1: 18%; --my1: 12%;
    --mx2: 82%; --my2: 28%;
    --mx3: 50%; --my3: 88%;
  }
  50% {
    --mx1: 32%; --my1: 30%;
    --mx2: 68%; --my2: 14%;
    --mx3: 40%; --my3: 70%;
  }
  100% {
    --mx1: 12%; --my1: 22%;
    --mx2: 88%; --my2: 40%;
    --mx3: 60%; --my3: 92%;
  }
}

/* Subtle grain + vignette over the mesh */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(120% 80% at 50% 0%, transparent 40%, rgba(6, 8, 10, 0.7) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 52rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple-bright);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple-bright);
  box-shadow: 0 0 12px var(--purple-bright);
}

.hero h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 1.4rem 0 0;
}

.hero h1 em {
  font-style: italic;
  color: var(--purple-bright);
}

.hero .lede {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  font-weight: 300;
  color: var(--muted);
  max-width: 36rem;
  margin: 1.5rem auto 0;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn--primary {
  background: var(--snow);
  color: var(--canvas);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(245, 247, 255, 0.16);
}

.btn--glass {
  background: rgba(245, 247, 255, 0.04);
  border-color: var(--line-strong);
  color: var(--snow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn--glass:hover {
  transform: translateY(-2px);
  background: rgba(245, 247, 255, 0.08);
}

.scroll-cue {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.scroll-cue svg {
  width: 16px;
  height: 16px;
  animation: bob 1.8s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ---------- Section scaffolding ---------- */
.section {
  position: relative;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 6rem 2rem;
}

.section__label {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.section__label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ---------- Projects ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 30rem;
  padding: 2.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.card__glow {
  position: absolute;
  z-index: -1;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  transition: transform 0.6s var(--ease), opacity 0.45s;
  pointer-events: none;
}

.card:hover .card__glow {
  transform: scale(1.15);
  opacity: 0.75;
}

/* Pickaloo — warm */
.card--pickaloo {
  background: linear-gradient(160deg, #1a1410 0%, #120e0c 60%, var(--surface) 100%);
}

.card--pickaloo .card__glow {
  bottom: -8rem;
  right: -8rem;
  background: radial-gradient(circle, #f5a623 0%, #e0622d 50%, transparent 70%);
}

/* BHV — purple/civic */
.card--bhv {
  background: linear-gradient(160deg, #160f24 0%, #0d0a14 55%, var(--surface) 100%);
}

.card--bhv .card__glow {
  top: -8rem;
  right: -6rem;
  background: radial-gradient(circle, var(--purple-bright) 0%, var(--purple) 50%, transparent 70%);
}

.pill {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
}

.pill--warm {
  color: #f5c07a;
  background: rgba(245, 166, 35, 0.14);
  border: 1px solid rgba(245, 166, 35, 0.28);
}

.pill--purple {
  color: #c9a9ff;
  background: var(--purple-soft);
  border: 1px solid rgba(124, 58, 237, 0.32);
}

.card__body {
  padding-top: 2.5rem;
}

.card h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 0.9rem;
}

.card p {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 30ch;
  margin-bottom: 1.6rem;
}

.card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.link-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: rgba(245, 247, 255, 0.06);
  border: 1px solid var(--line-strong);
  color: var(--snow);
  transition: background 0.2s, transform 0.2s var(--ease);
}

.link-pill:hover {
  background: rgba(245, 247, 255, 0.12);
  transform: translateY(-1px);
}

.link-pill svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s var(--ease);
}

.link-pill:hover svg {
  transform: translate(2px, -2px);
}

.link-pill--purple {
  background: var(--purple);
  border-color: transparent;
  color: #fff;
}

.link-pill--purple:hover {
  background: var(--purple-bright);
}

.link-pill--purple:hover svg {
  transform: none;
}

.link-pill--disabled {
  cursor: not-allowed;
  background: rgba(245, 247, 255, 0.03);
  border-color: var(--line);
  color: var(--muted-2);
}

.link-pill--disabled::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f5a623;
  box-shadow: 0 0 8px rgba(245, 166, 35, 0.6);
}

.link-pill--disabled:hover {
  background: rgba(245, 247, 255, 0.03);
  transform: none;
}

.card__note {
  margin-top: 1.4rem;
  font-size: 0.72rem;
  color: var(--muted-2);
  max-width: 34ch;
}

/* ---------- Philosophy ---------- */
.philosophy {
  max-width: 56rem;
  margin: 0 auto;
  padding: 7rem 2rem 8rem;
  text-align: center;
}

.philosophy p {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.8rem, 4.2vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.philosophy .word {
  color: rgba(245, 247, 255, 0.18);
  transition: color 0.4s var(--ease);
}

.philosophy .word.lit {
  color: var(--snow);
}

.philosophy .word.accent.lit {
  color: var(--purple-bright);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--canvas);
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 2rem 1.5rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-grid h4 {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 26ch;
  margin-top: 0.9rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.6rem;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--snow);
}

.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 2rem 2.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--muted-2);
}

.footer-bottom a {
  color: var(--muted-2);
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: var(--snow);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(4px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  html { font-size: 16px; }
  .nav-links { display: none; }
  .section { padding: 4.5rem 1.25rem; }
  .card { padding: 1.8rem; min-height: 26rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__mesh,
  .scroll-cue svg {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
