:root {
  --bg: #0a0a0c;
  --fg: #f0eeff;
  --muted: #9a99a8;
  --line: rgba(255, 255, 255, .22);
  --silver: linear-gradient(180deg, #c9ced9 0%, #8d94a3 60%, #6b7280 100%);
  --grad: linear-gradient(90deg, #5b0a7a 0%, #b0147a 60%, #e0463a 100%);
  --pad: clamp(20px, 3vw, 44px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Onest', system-ui, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

.caps { text-transform: uppercase; letter-spacing: .06em; font-size: 14px; color: #cfcfdc; }

/* huge metallic headings */
.mega {
  font-family: 'Unbounded', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -.02em;
  font-size: clamp(40px, 9vw, 150px);
  background: var(--silver);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mega-s { font-size: clamp(30px, 5.6vw, 84px); }

/* NAV */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: center; gap: clamp(22px, 3.2vw, 48px);
  padding: 22px var(--pad);
  font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  mix-blend-mode: difference;
}
.nav a { transition: opacity .2s; }
.nav a:hover { opacity: .6; }

/* BUTTON */
.btn {
  display: inline-block;
  padding: 16px 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, #4a4b55, #2f3038);
  border: 2px solid #8d8e9a;
  font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15);
  transition: transform .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-3px); background: linear-gradient(180deg, #5a5b66, #383943); box-shadow: 0 0 24px rgba(255, 255, 255, .12), inset 0 1px 0 rgba(255, 255, 255, .2); }
.pill {
  display: inline-block; padding: 11px 26px; border: 1.5px solid #fff; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  transition: background .2s, color .2s;
}
.pill:hover { background: #fff; color: #000; }

/* HERO */
.hero { position: relative; min-height: 100svh; overflow: hidden; background: #040408; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hero-cards {
  position: absolute; left: 0; right: 0; top: 13%; height: 56svh; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.75) 45%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.75) 45%, transparent 100%);
}
.hero-track { display: flex; gap: 22px; width: max-content; height: 100%; animation: slide 60s linear infinite; }
.hc { flex: none; height: 100%; aspect-ratio: 4 / 5; background: var(--c); overflow: hidden; }
.hc img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.55) saturate(1.05); }
@keyframes slide { to { transform: translateX(calc(-50% - 11px)); } }
.hero-title {
  position: relative; z-index: 2; margin-top: -8svh; text-align: center; pointer-events: none;
  font-size: clamp(28px, 6vw, 108px); letter-spacing: 0;
  background: linear-gradient(180deg, #fff 0%, #cfd3de 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 30px rgba(0, 0, 0, .55));
}
.hero-bottom { position: absolute; left: 0; right: 0; bottom: 6svh; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 0 var(--pad); text-align: center; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.btn-gray { background: linear-gradient(180deg, #4a4b55, #2f3038); border-color: #8d8e9a; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15); }
.btn-gray:hover { background: linear-gradient(180deg, #5a5b66, #383943); box-shadow: 0 0 24px rgba(255, 255, 255, .12), inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn-ghost { background: rgba(0, 0, 0, .35); border-color: rgba(255, 255, 255, .35); box-shadow: none; }
.btn-ghost:hover { border-color: #fff; box-shadow: none; }

/* ABOUT */
.about { position: relative; min-height: 100svh; padding: 140px var(--pad) 120px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; overflow: hidden; }
.about .mega { margin-bottom: 26px; }
.about-text { max-width: 640px; font-size: 16px; color: #dcdbe8; }
.about .btn { margin-top: 26px; }
.float { position: absolute; width: clamp(60px, 9vw, 130px); filter: drop-shadow(0 0 24px rgba(120, 100, 255, .45)); animation: bob 7s ease-in-out infinite; }
.f-moon { top: 12%; left: 5%; }
.f-cube { top: 10%; right: 5%; animation-delay: -2s; }
.f-smile { bottom: 8%; left: 10%; animation-delay: -4s; }
.f-cursor { bottom: 8%; right: 12%; animation-delay: -1s; }
@keyframes bob { 50% { transform: translateY(-18px) rotate(6deg); } }

/* SERVICES */
.services { padding: 100px var(--pad); max-width: 1200px; margin: 0 auto; }
.services .mega { text-align: center; margin-bottom: 60px; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc {
  padding: 30px 26px 28px; border: 1px solid var(--line); border-radius: 26px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01));
  transition: transform .3s, border-color .3s;
}
.svc:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, .5); }
.svc-n { font-family: 'Unbounded', sans-serif; font-weight: 900; font-size: 44px; background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.svc h3 { font-family: 'Unbounded', sans-serif; font-size: 18px; font-weight: 700; margin: 14px 0 12px; text-transform: uppercase; }
.svc p { color: #bdbccb; font-size: 15px; margin-bottom: 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 12px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; color: #cfcfdc; }

/* PROJECTS (stacking cards) */
.projects { padding: 100px var(--pad) 140px; }
.projects .mega { text-align: center; margin-bottom: 70px; }
.stack { max-width: 960px; margin: 0 auto; }
.p-card {
  position: sticky; top: calc(84px + var(--i) * 26px);
  margin-bottom: 70px;
  padding: 22px 26px 26px;
  border: 1.5px solid rgba(255, 255, 255, .55); border-radius: 34px;
  background: #0b0b0e;
  box-shadow: 0 -18px 50px rgba(0, 0, 0, .8);
}
.p-head { display: flex; align-items: center; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.p-num { font-family: 'Unbounded', sans-serif; font-weight: 900; font-size: clamp(34px, 5vw, 56px); background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.p-title { flex: 1; }
.p-title small { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.p-title h3 { font-family: 'Unbounded', sans-serif; font-size: clamp(18px, 2.4vw, 28px); text-transform: uppercase; font-weight: 700; }
.p-body { display: grid; grid-template-columns: 1fr 1.25fr; gap: 16px; }
.p-img { background: var(--c); border-radius: 22px; aspect-ratio: 4 / 3; overflow: hidden; }
.p-img img { width: 100%; height: 100%; object-fit: contain; }
.p-info {
  border-radius: 22px; padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  background: radial-gradient(ellipse at 80% 10%, rgba(110, 70, 255, .35), transparent 60%), radial-gradient(ellipse at 10% 100%, rgba(30, 190, 255, .22), transparent 60%), #101018;
}
.p-info p { font-size: clamp(16px, 1.8vw, 22px); line-height: 1.45; }

/* CTA */
.cta { padding: 110px var(--pad) 90px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; border-top: 1px solid rgba(255, 255, 255, .08); max-width: 1100px; margin: 0 auto; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 10px; }
.chip {
  min-width: 270px; text-align: left; padding: 18px 26px; border-radius: 22px; cursor: pointer;
  background: rgba(255, 255, 255, .04); border: 1.5px solid var(--line); color: var(--fg); font-family: inherit;
  transition: border-color .25s, transform .25s, background .25s;
}
.chip:hover { border-color: #fff; transform: translateY(-3px); background: rgba(255, 255, 255, .08); }
.chip-k { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.chip-v { display: block; font-size: 16px; font-weight: 500; margin-top: 4px; }
.chip.open .chip-v { background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 600; }

footer { padding: 30px var(--pad) 40px; text-align: center; }
footer .caps { font-size: 12px; color: #6f6e7c; }

/* reveal */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.mega.reveal.in { transition-delay: .05s; }

@media (max-width: 900px) {
  .svc-grid { grid-template-columns: 1fr; }
  .p-body { grid-template-columns: 1fr; }
  .p-img { aspect-ratio: 16 / 10; }
  .p-card { top: calc(70px + var(--i) * 18px); }
}
@media (max-width: 700px) {
  .nav { font-size: 10px; letter-spacing: .04em; padding: 16px 12px 0; gap: 16px; }
  .hero-cards { top: 16%; height: 46svh; }
  .hero-title { font-size: 8.4vw; }
  .hero-bottom { bottom: 4svh; }
  .f-moon, .f-cube { top: 5%; }
  .p-head { flex-wrap: wrap; }
  .chip { min-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}


/* project cards: website covers + soft purple hover glow */
.p-img.shot img { object-fit: cover; object-position: top left; }
.p-card[data-href] { cursor: pointer; transition: border-color .4s, box-shadow .5s; }
.p-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(124, 92, 255, .22), transparent 70%), radial-gradient(ellipse 60% 50% at 50% 100%, rgba(90, 60, 220, .14), transparent 70%);
}
.p-card[data-href]:hover { border-color: rgba(200, 180, 255, .9); box-shadow: 0 0 0 1px rgba(140, 110, 255, .3), 0 0 60px rgba(124, 92, 255, .35), 0 24px 90px rgba(80, 50, 200, .28); }
.p-card[data-href]:hover::before { opacity: 1; }
.p-img img { transition: transform .7s ease; }
.p-card[data-href]:hover .p-img img { transform: scale(1.05); }
