/* ---------- Liquid glass layer ---------- */
:root { --g-bg: rgba(255,255,255,.055); --g-bg2: rgba(255,255,255,.09); --g-line: rgba(255,255,255,.13); --g-hi: rgba(255,255,255,.32); }

/* ambient light behind the glass */
body { position: relative; overflow-x: hidden; }
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: var(--bg); }
.ambient i { position: absolute; width: 46vw; height: 46vw; border-radius: 50%; filter: blur(90px); opacity: .38; animation: drift 26s ease-in-out infinite alternate; }
.ambient i:nth-child(1) { background: var(--a1,#0F8B60); left: -12vw; top: -10vw; }
.ambient i:nth-child(2) { background: var(--a2,#C9A227); right: -14vw; top: 30vh; opacity: .22; animation-duration: 32s; animation-delay: -8s; }
.ambient i:nth-child(3) { background: var(--a3,#00B8A6); left: 20vw; bottom: -22vw; opacity: .26; animation-duration: 38s; animation-delay: -14s; }
.ambient i:nth-child(4) { background: var(--a4,#4B5BD7); right: 10vw; top: -18vw; opacity: .16; animation-duration: 30s; }
@keyframes drift { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(6vw,4vh) scale(1.12); } 100% { transform: translate(-4vw,8vh) scale(.95); } }
@media (prefers-reduced-motion: reduce) { .ambient i { animation: none; } }
body { background: transparent !important; }

/* the glass material */
.glass, .show, .panel, .flow, .top .wrap, .chip, .seg, .btn, .shotbox, .pbi {
  background: linear-gradient(135deg, var(--g-bg2), var(--g-bg) 45%, rgba(255,255,255,.03)) !important;
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid var(--g-line) !important;
  box-shadow: inset 0 1px 0 var(--g-hi), inset 0 -1px 0 rgba(255,255,255,.05), inset 0 0 24px rgba(255,255,255,.03), 0 18px 50px rgba(0,0,0,.35);
  position: relative;
}
/* specular rim (top-left light) */
.show::after, .panel::after, .flow::after, .pbi::after, .shotbox::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1px;
  background: linear-gradient(140deg, rgba(255,255,255,.55), rgba(255,255,255,0) 28%, rgba(255,255,255,0) 72%, rgba(255,255,255,.18));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
/* cursor-follow sheen */
.show::before, .panel::before, .flow::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx,50%) var(--my,0%), rgba(255,255,255,.10), transparent 45%);
}
.show:hover::before, .panel:hover::before, .flow:hover::before { opacity: 1; }
.show, .panel, .flow { transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.show:hover, .panel:hover, .flow:hover { transform: translateY(-4px); }

/* floating pill nav */
.top { background: transparent !important; border: 0 !important; backdrop-filter: none !important; padding-top: 14px; }
.top .wrap { max-width: 1080px; height: 56px; border-radius: 999px; padding: 0 10px 0 24px; }
.top nav a { color: var(--ink); }

/* pills & buttons */
.chip { color: var(--ink) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.22) !important; }
.seg { border-radius: 999px !important; padding: 3px; box-shadow: inset 0 1px 0 rgba(255,255,255,.2) !important; }
.seg button { border-radius: 999px; }
.seg button.on { background: rgba(255,255,255,.9) !important; color: #0A0B0D !important; box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.btn { color: #fff !important; border-radius: 999px !important; padding: 13px 22px; }
.btn:hover { background: rgba(255,255,255,.16) !important; }
.more { display: inline-flex; padding: 9px 18px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid var(--g-line); box-shadow: inset 0 1px 0 rgba(255,255,255,.25); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

/* glass device bezels */
.laptop, .show .stage .lap { background: rgba(255,255,255,.07) !important; border-color: rgba(255,255,255,.10) !important; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 -10px 90px color-mix(in srgb, var(--p) 40%, transparent) !important; }
.phone, .show .stage .ph { background: rgba(255,255,255,.10) !important; border-color: rgba(255,255,255,.14) !important; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 24px 60px rgba(0,0,0,.55) !important; }
.shotbox { padding: 10px; border-radius: 18px; }
.shotbox img { border: 0 !important; box-shadow: none !important; border-radius: 10px !important; }
.pbi { padding: 10px; border-radius: 22px !important; }
.pbi img { border-radius: 14px; }
.pbi .cta { inset: 10px; border-radius: 14px; }
.role .av { background: linear-gradient(160deg, color-mix(in srgb, var(--p) 70%, #fff), var(--p)); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 6px 18px color-mix(in srgb, var(--p) 50%, transparent); }
.foot { border-top-color: var(--g-line); }
html { background: var(--bg); }
.brand { font-family: Inter, sans-serif !important; letter-spacing: -.01em; }

/* ---------- stats pills ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: -24px auto 64px; max-width: 900px; }
.stat { text-align: center; padding: 22px 12px 18px; border-radius: 22px; background: linear-gradient(135deg, rgba(255,255,255,.09), rgba(255,255,255,.03)); border: 1px solid var(--g-line);
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%); box-shadow: inset 0 1px 0 var(--g-hi), 0 14px 40px rgba(0,0,0,.3); }
.stat .v { font: 600 44px/1 Inter, sans-serif; letter-spacing: -.04em; background: linear-gradient(180deg, #fff 30%, #9a9892); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .l { color: var(--ink2); font-size: 13px; margin-top: 8px; }

/* ---------- TechCore stage ---------- */
.show .stage .win { position: absolute; left: 7%; top: 110px; width: 34%; border-radius: 14px; border: 6px solid rgba(255,255,255,.12); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 30px 70px rgba(0,0,0,.6); }
.show .live { display: inline-block; margin-top: 18px; font: 600 12px Inter; letter-spacing: .08em; padding: 7px 14px; border-radius: 999px; color: #7FF3E6;
  background: rgba(0,184,166,.14); border: 1px solid rgba(127,243,230,.35); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }

/* ---------- scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(36px) scale(.985); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .show.reveal.in:hover, .js .panel.reveal.in:hover { transform: translateY(-4px); }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- parallax devices ---------- */
.lap, .ph, .win, .laptop, .phone { will-change: transform; }

/* ---------- refraction (Chromium only, added by JS) ---------- */
html.refract .top .wrap, html.refract .seg, html.refract .more, html.refract .btn, html.refract .stat {
  -webkit-backdrop-filter: url(#lg) blur(14px) saturate(180%) brightness(1.08); backdrop-filter: url(#lg) blur(14px) saturate(180%) brightness(1.08); }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; margin-top: 0; } .show .stage .win { top: 60px; width: 44%; } }

.show .stage { margin-top: 36px; }

/* ---------- background palettes (?bg=) ---------- */
html[data-bg=midnight] { --bg:#070B18 !important; --surface:#0E1426 !important; --line:#1C2440 !important; --a1:#2F5BFF; --a2:#7A3CFF; --a3:#00A3FF; --a4:#0F8B60; }
html[data-bg=aurora]   { --bg:#04110F !important; --surface:#0A1A17 !important; --line:#16302B !important; --a1:#00C389; --a2:#5B3CFF; --a3:#00D4C0; --a4:#9BE15D; }
html[data-bg=plum]     { --bg:#100A16 !important; --surface:#1A1222 !important; --line:#2C2036 !important; --a1:#B03CFF; --a2:#FF5C8A; --a3:#4B5BD7; --a4:#FF9A3C; }
html, html[data-bg=ocean] { --bg:#06121C !important; --surface:#0C1C2A !important; --line:#183044 !important; --a1:#0077FF; --a2:#00D4C0; --a3:#3CB4FF; --a4:#1BB55C; }

/* ---------- case pages: phones row, 3 cards, next project ---------- */
.phones { display: flex; justify-content: center; gap: 28px; margin-top: 36px; flex-wrap: wrap; }
.phone-cell { width: 220px; text-align: center; }
.phone-cell img { width: 100%; display: block; border-radius: 30px; border: 8px solid rgba(255,255,255,.12); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 24px 60px rgba(0,0,0,.5); }
.phone-cell span { display: block; margin-top: 14px; color: var(--ink2); font-size: 14px; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.cards3 .pp { color: var(--ink2); font-size: 15px; }
.roles.two-roles { grid-template-columns: repeat(2, 1fr); }
.next.show { margin: 0; }
.next .txt { padding: 56px 40px; }
.next h3 { font-size: 44px; }
@media (max-width: 860px) { .cards3, .roles.two-roles { grid-template-columns: 1fr; } .phone-cell { width: 42%; } }
/* shared .show panel (used by home and the next-project card) */
.show { position: relative; border-radius: 28px; overflow: hidden; text-decoration: none; display: block; color: var(--ink); }
.show .glow { position: absolute; inset: -30% -10% auto; height: 120%; background: radial-gradient(ellipse at 50% 0%, var(--p) 0%, transparent 60%); opacity: .55; pointer-events: none; }
.show .txt { position: relative; text-align: center; }
.show .txt .kicker { color: color-mix(in srgb, var(--p) 40%, #fff); }
.show h3 { font-family: Inter, sans-serif; font-weight: 600; letter-spacing: -.03em; margin: 10px 0 14px; }
.show .more { color: #fff; }
