/* ===== Portfolio hub — design tokens ===== */
:root {
  --bg: #06070e;
  --bg-soft: #0b0e1a;
  --ink: #eef2fb;
  --ink-dim: #97a3bd;
  --teal: #36e0c0;     /* GeoHub */
  --blue: #6f8cff;     /* route */
  --violet: #b06cff;   /* Aurora */
  --magenta: #ff6ca6;
  --line: rgba(255,255,255,0.09);
  --panel: rgba(15,19,33,0.62);
  --panel-2: rgba(20,25,42,0.78);
  --radius: 18px;
  --maxw: 1160px;
  --grad: linear-gradient(100deg, var(--teal), var(--blue) 48%, var(--violet) 82%, var(--magenta));
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.6; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
h1, h2, h3 { font-family: "Space Grotesk", "Inter", sans-serif; line-height: 1.08; letter-spacing: -0.02em; margin: 0; }

/* ===== Aurora backdrop ===== */
.aurora { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: radial-gradient(120% 120% at 50% -10%, #0c1124 0%, var(--bg) 60%); }
.band { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.45; mix-blend-mode: screen; }
.band-1 { width: 60vw; height: 60vw; left: -10vw; top: -18vw; background: radial-gradient(circle, var(--teal), transparent 62%); animation: drift1 22s ease-in-out infinite; }
.band-2 { width: 55vw; height: 55vw; right: -12vw; top: -8vw; background: radial-gradient(circle, var(--violet), transparent 62%); animation: drift2 26s ease-in-out infinite; }
.band-3 { width: 50vw; height: 50vw; left: 25vw; top: 6vw; background: radial-gradient(circle, var(--blue), transparent 60%); animation: drift3 30s ease-in-out infinite; }
@keyframes drift1 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(8vw,6vw) scale(1.12)} }
@keyframes drift2 { 0%,100%{transform:translate(0,0) scale(1.05)} 50%{transform:translate(-7vw,9vw) scale(0.92)} }
@keyframes drift3 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-5vw,-4vw) scale(1.1)} }
.grain { position: absolute; inset: 0; opacity: 0.05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ===== Nav ===== */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 56px);
  transition: background .3s ease, backdrop-filter .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
#nav.scrolled { background: rgba(6,7,14,0.72); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.brand-mark { width: 26px; height: 26px; border-radius: 8px; background: var(--grad); box-shadow: 0 0 22px -4px var(--violet); }
.brand-name { font-family: "Space Grotesk", sans-serif; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--ink-dim); font-size: 14.5px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.cta {
  text-decoration: none; font-size: 14px; font-weight: 600; color: #06070e;
  padding: 9px 18px; border-radius: 999px; background: var(--grad);
  box-shadow: 0 8px 30px -10px var(--violet); transition: transform .18s, box-shadow .18s;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 14px 38px -10px var(--violet); }

/* ===== Layout primitives ===== */
main { position: relative; z-index: 2; }
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(70px, 11vw, 140px) clamp(20px, 5vw, 40px) 0; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.22em; font-size: 12px; font-weight: 700; color: var(--teal); margin: 0 0 18px; }
.tag {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-dim); border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; margin-bottom: 18px;
  background: var(--panel);
}
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ===== Hero ===== */
.hero { max-width: var(--maxw); margin: 0 auto; padding: clamp(140px, 20vh, 220px) clamp(20px, 5vw, 40px) 0; }
.hero h1 { font-size: clamp(38px, 6.4vw, 78px); font-weight: 700; max-width: 16ch; margin: 0 0 22px; }
.lead { font-size: clamp(16px, 1.6vw, 20px); color: var(--ink-dim); max-width: 56ch; margin: 0 0 30px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn { text-decoration: none; font-weight: 600; font-size: 15px; padding: 13px 24px; border-radius: 999px; transition: transform .18s, box-shadow .18s, border-color .18s; }
.btn.solid { background: var(--grad); color: #06070e; box-shadow: 0 12px 36px -12px var(--violet); }
.btn.solid:hover { transform: translateY(-3px); box-shadow: 0 18px 46px -12px var(--violet); }
.btn.ghost { border: 1px solid var(--line); color: var(--ink); background: var(--panel); }
.btn.ghost:hover { border-color: var(--teal); transform: translateY(-3px); }
.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 64px); margin-top: 56px; padding-top: 30px; border-top: 1px solid var(--line); }
.hstat { display: flex; flex-direction: column; }
.hstat .n { font-family: "Space Grotesk", sans-serif; font-size: clamp(30px, 4vw, 44px); font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hstat .l { font-size: 13.5px; color: var(--ink-dim); }

/* ===== Section headers ===== */
.sec-head { max-width: 640px; margin: 0 0 44px; }
.sec-head h2 { font-size: clamp(28px, 4vw, 44px); margin: 0 0 14px; }
.sec-head p { color: var(--ink-dim); font-size: 16px; margin: 0; }

/* ===== Studios ===== */
.studios { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.studio {
  position: relative; overflow: hidden; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 32px 30px;
  background: var(--panel); backdrop-filter: blur(12px);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
  display: flex; flex-direction: column;
}
.studio:hover { transform: translateY(-6px); }
.studio-geo:hover { border-color: rgba(54,224,192,0.55); box-shadow: 0 30px 70px -34px rgba(54,224,192,0.5); }
.studio-aurora:hover { border-color: rgba(176,108,255,0.55); box-shadow: 0 30px 70px -34px rgba(176,108,255,0.5); }
.studio-orb {
  position: absolute; top: 50%; right: -46px; transform: translateY(-50%);
  width: 230px; height: 230px; object-fit: cover; object-position: 50% 36%;
  mix-blend-mode: screen; opacity: 0.55; pointer-events: none; z-index: 0;
  transition: opacity .3s ease, transform .3s ease;
}
.studio-aurora:hover .studio-orb { opacity: 0.8; transform: translateY(-50%) scale(1.05); }
.studio > *:not(.studio-orb):not(.studio-glow) { position: relative; z-index: 1; }
.studio-glow { position: absolute; inset: 0; opacity: 0; transition: opacity .3s; pointer-events: none; }
.studio-geo .studio-glow { background: radial-gradient(80% 60% at 80% 0%, rgba(54,224,192,0.18), transparent 70%); }
.studio-aurora .studio-glow { background: radial-gradient(80% 60% at 80% 0%, rgba(176,108,255,0.2), transparent 70%); }
.studio:hover .studio-glow { opacity: 1; }
.studio-kind { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.studio-geo .studio-kind { color: var(--teal); }
.studio-aurora .studio-kind { color: var(--violet); }
.studio h3 { font-size: clamp(30px, 4vw, 40px); margin: 10px 0 12px; }
.studio p { color: var(--ink-dim); font-size: 15px; margin: 0 0 18px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 22px; }
.chips li { font-size: 12.5px; color: var(--ink-dim); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; }
.studio-go { margin-top: auto; font-weight: 600; font-size: 15px; }
.studio-geo .studio-go { color: var(--teal); }
.studio-aurora .studio-go { color: var(--violet); }

/* ===== Products grid ===== */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); backdrop-filter: blur(12px);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  text-decoration: none; color: inherit;
}
.product:hover { transform: translateY(-6px); border-color: rgba(111,140,255,0.5); box-shadow: 0 30px 70px -34px rgba(111,140,255,0.5); }
.shot { width: 100%; height: 172px; object-fit: cover; object-position: 50% 22%; display: block; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.shot-ph { display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.ph-glyph { font-family: "Space Grotesk", sans-serif; font-size: 40px; font-weight: 700; color: rgba(255,255,255,0.92); text-shadow: 0 4px 24px rgba(0,0,0,0.35); z-index: 1; }
.ph-orb  { background: radial-gradient(120% 120% at 30% 20%, #2bd3c0, #2e6bff 55%, #7b3bff); }
.ph-afi  { background: radial-gradient(120% 120% at 70% 20%, #ff7eb6, #b06cff 55%, #5a6bff); }
.ph-heat { background: radial-gradient(120% 120% at 50% 18%, #ffd36b, #ff7a3d 52%, #ff4d6d); }
.product-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.product-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.kind { font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-dim); }
.product h3 { font-size: 21px; margin: 0 0 8px; }
.product p { font-size: 14px; color: var(--ink-dim); margin: 0 0 14px; }
.meta { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.meta li { position: relative; font-size: 12.5px; color: var(--ink-dim); padding-left: 14px; }
.meta li::before { content: ""; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }
.product-go { margin-top: auto; font-weight: 600; font-size: 14.5px; color: var(--blue); }
.product-link:hover .product-go { text-decoration: underline; }

/* badges */
.badge { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.badge-soon { color: #ffd36b; background: rgba(255,211,107,0.12); border: 1px solid rgba(255,211,107,0.35); }
.badge-build { color: var(--violet); background: rgba(176,108,255,0.12); border: 1px solid rgba(176,108,255,0.35); }
.badge-app { color: var(--blue); background: rgba(111,140,255,0.12); border: 1px solid rgba(111,140,255,0.35); }
.badge-live { color: var(--teal); background: rgba(54,224,192,0.12); border: 1px solid rgba(54,224,192,0.4); display: inline-flex; align-items: center; gap: 6px; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(54,224,192,0.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(54,224,192,0.55)} 70%{box-shadow:0 0 0 8px rgba(54,224,192,0)} 100%{box-shadow:0 0 0 0 rgba(54,224,192,0)} }

/* ===== About ===== */
.about { max-width: 760px; }
.about h2 { font-size: clamp(28px, 4vw, 44px); margin: 0 0 16px; }
.about p { color: var(--ink-dim); font-size: 16.5px; margin: 0 0 24px; }
.about-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.about-tags span { font-size: 13px; color: var(--ink); border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 7px 14px; }

/* ===== Contact ===== */
.contact { max-width: 640px; }
.contact h2 { font-size: clamp(30px, 5vw, 52px); margin: 0 0 16px; }

/* ===== Footer ===== */
footer { position: relative; z-index: 2; margin-top: clamp(80px, 12vw, 150px); padding: 36px clamp(20px,5vw,56px); border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; color: var(--ink-dim); font-size: 14px; background: rgba(6,7,14,0.6); backdrop-filter: blur(10px); }
.foot-links { display: flex; gap: 22px; }
.foot-links a { text-decoration: none; color: var(--ink-dim); transition: color .2s; }
.foot-links a:hover { color: var(--teal); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .studios { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .studio-orb { opacity: 0.35; width: 170px; height: 170px; right: -50px; }
}
@media (prefers-reduced-motion: reduce) {
  .band, .pulse { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
