/* Shared frame for every project page. Each page sets --page, --fg, --soft, --line on body. */
body.project { background: var(--page); color: var(--fg); display: flow-root; }
html:has(body.project) { background: var(--page); overscroll-behavior-y: none; }
body.project { overscroll-behavior-y: none; }
body.project ::selection { background: var(--fg); color: var(--page); }

.pnav {
  position: fixed; z-index: 20; top: 22px; left: 22px; right: 22px;
  display: flex; justify-content: space-between; pointer-events: none;
}
.pill {
  pointer-events: auto;
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px 0 12px; border-radius: 99px;
  font-size: 14px; letter-spacing: -.01em;
  background: var(--pill-bg, rgba(255,255,255,.14));
  color: var(--pill-fg, #fff);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: inset 0 0 0 1px var(--pill-line, rgba(255,255,255,.14));
  transition: background .25s;
}
.pill:hover { background: var(--pill-hover, rgba(255,255,255,.22)); }
.pill svg { width: 16px; height: 16px; }
.pill.next { padding: 0 12px 0 16px; }

.hero {
  position: relative;
  margin: 12px;
  min-height: calc(100svh - 24px);
  border-radius: 34px;
  overflow: hidden;
  isolation: isolate;
  container-type: inline-size;
}
.hero-inner {
  position: relative; z-index: 2;
  min-height: inherit;
  padding: 104px clamp(24px, 5vw, 72px) clamp(28px, 4vw, 56px);
  display: flex; flex-direction: column;
}
.hero-id { display: flex; align-items: center; gap: 16px; }
.hero-icon { width: 68px; height: 68px; border-radius: 23%; overflow: hidden; flex: none; }
.hero-id p { margin: 0; font-size: 15px; line-height: 1.35; }
.hero-id p span { display: block; opacity: .62; }

.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.section { padding: clamp(72px, 10vw, 128px) 0 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 28px; }
.section-head h2 { margin: 0; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.05; font-weight: 500; letter-spacing: -.045em; }
.section-head p { margin: 0; max-width: 36ch; color: var(--soft); font-size: 15px; line-height: 1.5; }

/* Skeleton phones used on in-progress pages */
.sk-row { display: flex; justify-content: center; align-items: flex-end; gap: clamp(10px, 2vw, 24px); }
.sk-phone-lg {
  width: clamp(110px, 18vw, 230px); aspect-ratio: 9 / 19;
  border-radius: clamp(20px, 3vw, 38px) clamp(20px, 3vw, 38px) 0 0;
  background: linear-gradient(100deg, var(--sk-a) 30%, var(--sk-b) 50%, var(--sk-a) 70%);
  background-size: 300% 100%;
  animation: shimmer 2.2s ease-in-out infinite;
}
.sk-phone-lg:nth-child(2) { width: clamp(130px, 21vw, 270px); }
.sk-text { display: grid; gap: 14px; max-width: 640px; }
.sk-text i {
  display: block; height: 14px; border-radius: 99px;
  background: linear-gradient(100deg, var(--sk-a) 30%, var(--sk-b) 50%, var(--sk-a) 70%);
  background-size: 300% 100%;
  animation: shimmer 2.2s ease-in-out infinite;
}

/* Icons reused from the home tiles */
.v-icon { background: linear-gradient(145deg, #a78bff, #6d4dff); display: grid; place-items: center; }
.v-icon span { width: 46%; height: 46%; border-radius: 50%; border: 3px solid rgba(255,255,255,.9); border-right-color: transparent; transform: rotate(-30deg); }
.s-icon { background: linear-gradient(160deg, #3f8cff, #1659e0); display: grid; place-items: center; }
.s-icon svg { width: 56%; height: 56%; }

/* Footer */
.site-foot { width: min(1180px, calc(100% - 48px)); margin: clamp(96px, 12vw, 160px) auto 0; padding: 0 0 36px; }
.site-foot-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px;
  padding: 36px 0 56px; border-top: 1px solid var(--line);
}
.site-foot-name { margin: 0; font-size: clamp(34px, 4.4vw, 56px); line-height: .95; font-weight: 500; letter-spacing: -.055em; }
.site-foot-name + p { margin: 14px 0 0; max-width: 30ch; color: var(--soft); font-size: 15px; line-height: 1.5; }
.site-foot h2 { margin: 0 0 14px; font-size: 13px; font-weight: 400; color: var(--soft); }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 17px; letter-spacing: -.02em; }
.site-foot ul a { min-height: 26px; display: inline-flex; align-items: center; gap: 10px; transition: opacity .2s; }
.site-foot ul a:hover { opacity: .6; }
.site-foot ul a[aria-current="page"]::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.foot-icon { width: 22px; height: 22px; border-radius: 6px; overflow: hidden; flex: none; }
.foot-icon img { width: 100%; height: 100%; }
.foot-icon.v-icon span { border-width: 2px; }
.site-foot-base { display: flex; justify-content: space-between; gap: 16px; color: var(--soft); font-size: 13px; }
.site-foot-base a:hover { color: var(--fg); }

@media (max-width: 700px) {
  .pnav { top: 18px; left: 18px; right: 18px; }
  .hero { margin: 8px; border-radius: 26px; min-height: calc(100svh - 16px); }
  .hero-inner { padding-top: 84px; }
  .hero-icon { width: 56px; height: 56px; }
  .wrap, .site-foot { width: calc(100% - 32px); }
  .site-foot-top { grid-template-columns: 1fr 1fr; }
  .site-foot-top > div:first-child { grid-column: 1 / -1; }
  .section-head { flex-direction: column; gap: 10px; }
}
