/* ===========================================================
   Stackforge — agency site styles
   Palette: ink black, acid lime, ice cyan, electric violet
   =========================================================== */
:root {
  --bg: #07070a;
  --bg-2: #0c0d12;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #eeeef3;
  --muted: #9a9cab;
  --dim: #5f6170;
  --lime: #c8ff3d;
  --cyan: #5ce1e6;
  --violet: #8b6cff;
  --grad: linear-gradient(100deg, var(--lime) 0%, var(--cyan) 45%, var(--violet) 100%);
  --radius: 22px;
  --radius-sm: 14px;
  --display: "Clash Display", "Segoe UI", system-ui, sans-serif;
  --body: "General Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --pad: clamp(20px, 5vw, 72px);
  --max: 1320px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--lime); color: #000; }
.mono { font-family: var(--mono); letter-spacing: 0; }
.grad {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--lime); color: #000; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-content: center; justify-items: center; gap: 18px;
  background: var(--bg);
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.loader img { animation: spin-in 1.2s var(--ease) both; filter: drop-shadow(0 0 24px rgba(200, 255, 61, 0.45)); }
.loader-bar { width: 180px; height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.loader-bar span { display: block; height: 100%; width: 0; background: var(--grad); transition: width 0.3s ease; }
.loader p { margin: 0; font-size: 12px; color: var(--muted); }
.loader.done { opacity: 0; visibility: hidden; }
.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes spin-in { from { transform: rotate(-90deg) scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Cursor + grain ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none;
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1px solid rgba(200, 255, 61, 0.7); border-radius: 50%;
  transition: width 0.25s var(--ease), height 0.25s var(--ease), margin 0.25s var(--ease), background 0.25s, border-color 0.25s;
  mix-blend-mode: difference; opacity: 0;
}
.cursor.is-hover { width: 70px; height: 70px; margin: -35px 0 0 -35px; background: rgba(200, 255, 61, 0.9); border-color: transparent; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
.grain {
  position: fixed; inset: 0; z-index: 120; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(8) infinite;
}
@keyframes grain { 0%,100% { background-position: 0 0; } 25% { background-position: -40px 30px; } 50% { background-position: 30px -50px; } 75% { background-position: -30px -10px; } }

/* ---------- Buttons ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: 0.01em; white-space: nowrap;
  border: 1px solid transparent; position: relative; overflow: hidden;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
  will-change: transform;
}
.btn-sm { --h: 40px; padding: 0 18px; font-size: 14px; }
.btn-lg { --h: 58px; padding: 0 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--lime); color: #0a0a0a; box-shadow: 0 0 0 0 rgba(200, 255, 61, 0.5), 0 10px 40px -10px rgba(200, 255, 61, 0.55); }
.btn-primary:hover { box-shadow: 0 0 0 6px rgba(200, 255, 61, 0.15), 0 14px 50px -8px rgba(200, 255, 61, 0.7); }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--text); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn span[aria-hidden] { transition: transform 0.3s var(--ease); }
.btn:hover span[aria-hidden] { transform: translateX(4px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; z-index: 100;
  transform: translateX(-50%);
  width: min(calc(100% - 28px), var(--max));
  display: flex; align-items: center; gap: 24px;
  padding: 10px 10px 10px 20px;
  border: 1px solid transparent; border-radius: 999px;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s, transform 0.5s var(--ease);
}
.nav.scrolled { background: rgba(12, 13, 18, 0.66); border-color: var(--line); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
.nav.hide { transform: translate(-50%, -140%); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; }
.brand i { color: var(--lime); font-style: normal; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 15px; color: var(--muted); transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform 0.3s var(--ease); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: rgba(7, 7, 10, 0.96); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; padding: 0 var(--pad); gap: 6px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { font-family: var(--display); font-size: 44px; font-weight: 600; line-height: 1.2; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: 140px var(--pad) 90px; overflow: hidden; isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 50% at 72% 45%, rgba(139, 108, 255, 0.18), transparent 70%),
    radial-gradient(40% 40% at 20% 80%, rgba(200, 255, 61, 0.07), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  opacity: 0.35;
}
#gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-inner { width: 100%; max-width: var(--max); margin: 0 auto; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 28px;
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface);
  font-size: 14px; color: var(--muted); backdrop-filter: blur(8px);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(200,255,61,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(200,255,61,0); } 100% { box-shadow: 0 0 0 0 rgba(200,255,61,0); } }
.hero-title {
  font-family: var(--display); font-weight: 600; margin: 0;
  font-size: clamp(48px, 9.2vw, 148px); line-height: 0.92; letter-spacing: -0.035em;
  max-width: 12ch;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .line > span { display: inline-block; transform: translateY(110%); }
.hero-title em { font-style: normal; }
.hero-sub { max-width: 560px; margin: 30px 0 0; font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); }
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 48px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.hero-proof li { display: flex; align-items: center; gap: 8px; }
.hero-proof li::before { content: ""; width: 5px; height: 5px; background: var(--lime); transform: rotate(45deg); }
.hero-proof b { color: var(--text); font-weight: 600; }
.hero-hud {
  position: absolute; bottom: 24px; left: var(--pad); right: var(--pad);
  display: flex; justify-content: space-between; font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em;
}
.ok { color: var(--lime); }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 26px 0; background: var(--bg-2); }
.marquee-track { display: flex; gap: 36px; width: max-content; animation: marquee 40s linear infinite; align-items: center; }
.marquee span { font-family: var(--display); font-size: clamp(26px, 3.2vw, 44px); font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; }
.marquee span:nth-child(4n+1) { -webkit-text-stroke: 1px var(--line-2); color: transparent; }
.marquee i { color: var(--lime); font-style: normal; font-size: 20px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(90px, 12vw, 170px) var(--pad) 0; max-width: calc(var(--max) + var(--pad) * 2); margin: 0 auto; }
.section-head { margin-bottom: clamp(40px, 6vw, 80px); max-width: 900px; }
.section-head.row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.kicker { font-size: 13px; color: var(--lime); margin: 0 0 18px; text-transform: uppercase; letter-spacing: 0.12em; }
.h2 { font-family: var(--display); font-weight: 600; font-size: clamp(38px, 5.6vw, 84px); line-height: 0.98; letter-spacing: -0.03em; margin: 0; }
.lead { font-size: clamp(17px, 1.35vw, 20px); color: var(--muted); max-width: 620px; margin: 24px 0 0; }

/* ---------- Tilt cards (shared) ---------- */
.tilt { transform-style: preserve-3d; transition: transform 0.5s var(--ease); will-change: transform; position: relative; }
.tilt::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(200, 255, 61, 0.10), transparent 40%);
  transition: opacity 0.4s;
}
.tilt:hover::after { opacity: 1; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc {
  padding: 34px 30px 30px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.01));
  display: flex; flex-direction: column; min-height: 340px;
}
.svc:hover { border-color: var(--line-2); }
.svc-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: auto;
  background: rgba(200, 255, 61, 0.08); border: 1px solid rgba(200, 255, 61, 0.25); transform: translateZ(40px);
}
.svc-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--lime); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.svc h3 { font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1.1; letter-spacing: -0.01em; margin: 40px 0 12px; transform: translateZ(30px); }
.svc p { color: var(--muted); margin: 0 0 22px; font-size: 16px; }
.svc em { color: var(--text); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.tags li { font-family: var(--mono); font-size: 11.5px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }

/* ---------- Work ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font-size: 14px; transition: all 0.25s; }
.chip:hover { color: var(--text); }
.chip.is-active { background: var(--text); color: #000; border-color: var(--text); }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.work-card {
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); overflow: hidden;
  display: flex; flex-direction: column; transition: transform 0.5s var(--ease), opacity 0.4s, border-color 0.3s;
}
.work-card:hover { border-color: var(--line-2); }
.work-card.span-2 { grid-column: span 2; }
.work-card.is-hidden { display: none; }
.work-visual { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #111; }
.span-2 .work-visual { aspect-ratio: 16 / 8.2; }
.work-visual.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1.2s var(--ease); }
.work-card:hover .work-visual.shot img { transform: scale(1.05); }
.work-visual.shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(12,13,18,0.6)); }
.work-meta { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 16px; flex: 1; justify-content: space-between; }
.work-meta h3 { font-family: var(--display); font-weight: 600; font-size: 26px; margin: 0 0 6px; letter-spacing: -0.01em; }
.work-meta p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* CSS-built product mocks */
.mock { display: grid; place-items: center; padding: 26px; }
.mock-window { width: 100%; max-width: 640px; border-radius: 14px; background: #0f1117; border: 1px solid var(--line-2); box-shadow: 0 40px 80px -30px rgba(0,0,0,0.8); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11px; color: var(--dim); }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2a2c36; }
.mock-bar span { margin-left: 12px; }
.mock-clinic { background: radial-gradient(80% 90% at 30% 20%, rgba(92,225,230,0.22), transparent 60%), radial-gradient(70% 80% at 90% 100%, rgba(139,108,255,0.25), transparent 60%), #0b0c11; }
.mc-body { display: grid; grid-template-columns: 1fr 1.2fr; gap: 18px; padding: 22px; }
.mc-label { margin: 0; font-size: 12px; color: var(--muted); font-family: var(--mono); }
.mc-big { margin: 2px 0; font-family: var(--display); font-size: 84px; line-height: 1; font-weight: 600; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mc-eta { margin: 0 0 14px; font-size: 13px; color: var(--text); }
.mc-progress { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.mc-progress span { display: block; height: 100%; width: 62%; background: var(--grad); animation: grow 3s var(--ease) infinite alternate; }
@keyframes grow { from { width: 30%; } to { width: 72%; } }
.mc-queue { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; }
.mc-queue li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); color: var(--muted); }
.mc-queue b { font-family: var(--mono); color: var(--text); font-size: 12px; }
.mc-queue span { margin-left: auto; font-family: var(--mono); color: var(--lime); }
.mc-queue .now { border-color: rgba(200,255,61,0.4); }
.mc-queue .you { background: rgba(139,108,255,0.16); border-color: rgba(139,108,255,0.5); color: var(--text); }

.mock-aqi { background: radial-gradient(60% 70% at 50% 40%, rgba(255,120,60,0.22), transparent 70%), #0b0c11; }
.aqi-dial { position: relative; width: 170px; height: 170px; display: grid; place-items: center; z-index: 1; }
.aqi-dial svg, .fd-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.aqi-dial circle, .fd-ring circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.trk { stroke: rgba(255,255,255,0.08); }
.aqi-dial .val { stroke: #ff7a3d; stroke-dasharray: 314; stroke-dashoffset: 110; filter: drop-shadow(0 0 8px rgba(255,122,61,0.8)); }
.aqi-dial div, .fd-ring div { text-align: center; position: relative; }
.aqi-dial b, .fd-ring b { display: block; font-family: var(--display); font-size: 48px; line-height: 1; font-weight: 600; }
.aqi-dial span, .fd-ring span { font-size: 11px; color: var(--muted); font-family: var(--mono); }
.aqi-pins { position: absolute; inset: 0; list-style: none; margin: 0; padding: 0; }
.aqi-pins li { position: absolute; left: var(--x); top: var(--y); width: 10px; height: 10px; border-radius: 50%; background: #ff7a3d; box-shadow: 0 0 14px #ff7a3d; animation: pulse-o 2.4s infinite; }
.aqi-pins li:nth-child(2n) { background: #ffd23d; box-shadow: 0 0 14px #ffd23d; animation-delay: 0.8s; }
@keyframes pulse-o { 50% { transform: scale(1.6); opacity: 0.6; } }

.mock-school { background: radial-gradient(70% 80% at 80% 10%, rgba(200,255,61,0.16), transparent 60%), #0b0c11; place-items: stretch; align-content: center; gap: 10px; }
.sg-search { padding: 12px 16px; border-radius: 12px; background: rgba(255,255,255,0.06); border: 1px solid var(--line-2); font-size: 13px; color: var(--muted); }
.sg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.sg-list li { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 9px 14px; border-radius: 12px; background: rgba(255,255,255,0.035); border: 1px solid var(--line); font-size: 13px; }
.sg-list span { grid-column: 1; color: var(--muted); font-size: 11.5px; font-family: var(--mono); }
.sg-list i { grid-row: 1 / 3; grid-column: 2; align-self: center; font-style: normal; color: var(--lime); font-size: 12px; }
.sg-list .sel { border-color: rgba(200,255,61,0.45); background: rgba(200,255,61,0.06); }
.sg-btn { padding: 11px; border-radius: 12px; background: var(--lime); color: #000; font-weight: 600; font-size: 13px; text-align: center; }

.mock-fund { background: radial-gradient(70% 80% at 20% 30%, rgba(139,108,255,0.26), transparent 60%), #0b0c11; grid-template-columns: auto 1fr; gap: 24px; }
.fd-ring { position: relative; width: 140px; height: 140px; display: grid; place-items: center; }
.fd-ring .val { stroke: url(#none); stroke: var(--lime); stroke-dasharray: 302; stroke-dashoffset: 66; filter: drop-shadow(0 0 8px rgba(200,255,61,0.7)); }
.fd-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; width: 100%; }
.fd-bars li { position: relative; height: 30px; border-radius: 8px; background: rgba(255,255,255,0.05); overflow: hidden; }
.fd-bars li::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: linear-gradient(90deg, rgba(139,108,255,0.6), rgba(92,225,230,0.6)); border-radius: 8px; }
.fd-bars span { position: relative; font-size: 12px; font-family: var(--mono); line-height: 30px; padding-left: 10px; }

@keyframes ripple { from { transform: scale(0.3); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }

/* ---------- Founder ---------- */
.founder-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.founder-card {
  border-radius: var(--radius); padding: 32px; border: 1px solid var(--line-2);
  background: radial-gradient(120% 80% at 0% 0%, rgba(200,255,61,0.10), transparent 50%), radial-gradient(100% 80% at 100% 100%, rgba(139,108,255,0.18), transparent 50%), var(--bg-2);
  box-shadow: 0 50px 100px -40px rgba(139,108,255,0.4);
}
.fc-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); padding-bottom: 18px; border-bottom: 1px dashed var(--line-2); }
.founder-card h3 { font-family: var(--display); font-size: clamp(34px, 3.5vw, 48px); font-weight: 600; letter-spacing: -0.02em; margin: 26px 0 2px; transform: translateZ(40px); }
.fc-role { margin: 0 0 22px; color: var(--lime); font-weight: 500; }
.fc-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 13.5px; color: var(--muted); }
.fc-lines span { color: var(--lime); margin-right: 8px; }
.fc-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.fc-links a { font-size: 13px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); transition: all 0.25s; }
.fc-links a:hover { border-color: var(--lime); color: var(--lime); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 40px 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--bg); padding: 22px 22px; }
.stat b { display: block; font-family: var(--display); font-size: clamp(36px, 4vw, 56px); font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.stat span { font-size: 14px; color: var(--muted); }
.why { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.why li { padding-left: 30px; position: relative; color: var(--muted); }
.why li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: rgba(200,255,61,0.14); color: var(--lime); font-size: 11px; display: grid; place-items: center; }
.why b { color: var(--text); font-weight: 600; }

/* ---------- Process ---------- */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; position: relative; }
.process::before { content: ""; position: absolute; top: 26px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, var(--lime), var(--violet), transparent); opacity: 0.5; }
.step { position: relative; padding-top: 70px; }
.step-n { position: absolute; top: 0; left: 0; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg); color: var(--lime); font-size: 14px; }
.step h3 { font-family: var(--display); font-size: 28px; font-weight: 600; margin: 0 0 10px; letter-spacing: -0.01em; }
.step p { color: var(--muted); margin: 0 0 16px; font-size: 16px; }
.step-t { font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.1em; }

/* ---------- Testimonials ---------- */
.t-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.t-card { padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 22px; }
.t-stars { color: var(--lime); letter-spacing: 3px; }
.t-card blockquote { margin: 0; font-size: 18px; line-height: 1.5; }
.t-who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.t-av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #000; font-weight: 700; font-size: 15px; }
.t-who b { display: block; font-weight: 600; } .t-who span { font-size: 14px; color: var(--muted); }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); padding: 34px 30px; display: flex; flex-direction: column; }
.plan-hot { border-color: rgba(200,255,61,0.5); background: radial-gradient(120% 70% at 50% 0%, rgba(200,255,61,0.12), transparent 60%), var(--bg-2); box-shadow: 0 40px 100px -40px rgba(200,255,61,0.35); }
.plan-badge { position: absolute; top: 18px; right: 18px; font-size: 11px; padding: 5px 10px; border-radius: 999px; background: var(--lime); color: #000; }
.plan-name { margin: 0; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; }
.plan-price { font-family: var(--display); font-size: clamp(40px, 4vw, 54px); font-weight: 600; letter-spacing: -0.03em; margin: 14px 0 6px; line-height: 1; }
.plan-price small { font-family: var(--body); font-size: 15px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.plan-desc { color: var(--muted); margin: 0 0 24px; min-height: 3.2em; }
.plan ul { list-style: none; padding: 22px 0 0; margin: 0 0 30px; border-top: 1px solid var(--line); display: grid; gap: 11px; font-size: 15.5px; }
.plan li::before { content: "→ "; color: var(--lime); }
.plan .btn { margin-top: auto; }
.retainer { margin-top: 18px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding: 22px 26px; border-radius: var(--radius); border: 1px dashed var(--line-2); }
.retainer div:first-child { flex: 1; min-width: 260px; color: var(--muted); }
.retainer b { color: var(--text); }
.fineprint { color: var(--dim); font-size: 14px; margin: 18px 0 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 980px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 50px 26px 0; position: relative; font-family: var(--display); font-size: clamp(20px, 2vw, 26px); font-weight: 500; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 30px; font-weight: 300; color: var(--lime); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 26px; color: var(--muted); max-width: 760px; }

/* ---------- Contact ---------- */
.contact { padding-bottom: clamp(90px, 10vw, 140px); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.contact-direct { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 10px; }
.contact-direct a { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); transition: border-color 0.25s, transform 0.3s var(--ease); }
.contact-direct a:hover { border-color: var(--lime); transform: translateX(6px); }
.contact-direct small { margin-left: auto; color: var(--lime); font-family: var(--mono); font-size: 11px; }
.ci { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(200,255,61,0.1); color: var(--lime); }
.form { padding: clamp(24px, 3vw, 38px); border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--bg-2); display: grid; gap: 18px; box-shadow: 0 60px 120px -60px rgba(139,108,255,0.45); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text); background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-2); border-radius: 12px; padding: 13px 14px; transition: border-color 0.2s, background 0.2s;
}
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.form select option { background: #111; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--lime); background: rgba(200,255,61,0.04); }
.form input.invalid { border-color: #ff6b6b; }
.form textarea { resize: vertical; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: block; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; color: var(--muted); transition: all 0.2s; }
.chips input:checked + span { background: var(--lime); color: #000; border-color: var(--lime); }
.chips input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.form-note { margin: 0; font-size: 14px; color: var(--lime); min-height: 1.2em; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 0 var(--pad) 40px; overflow: hidden; }
.footer-big { font-family: var(--display); font-weight: 600; font-size: clamp(56px, 16.5vw, 280px); white-space: nowrap; line-height: 0.8; letter-spacing: -0.05em; text-align: center; margin: 50px 0 40px; background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0)); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
.footer-row { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; font-size: 14px; color: var(--muted); }
.footer-row p { margin: 0; }
.footer-links { display: flex; gap: 18px; }
.footer-links a:hover { color: var(--lime); }
.footer .brand { font-size: 18px; color: var(--text); }

/* ---------- Mobile CTA ---------- */
.mobile-cta { display: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); }
.no-js .reveal, .reduced .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .services, .work-grid, .pricing { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .process::before { display: none; }
  .founder-grid, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: block; }
  .nav { padding: 8px 8px 8px 16px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .services, .work-grid, .pricing, .process { grid-template-columns: 1fr; }
  .work-card.span-2 { grid-column: auto; }
  .span-2 .work-visual { aspect-ratio: 16 / 11; }
  .mc-body { grid-template-columns: 1fr; padding: 14px; gap: 10px; }
  .mc-big { font-size: 54px; }
  .mc-queue li:nth-child(n+3) { display: none; }
  .mock-fund { grid-template-columns: 1fr; justify-items: center; }
  .fd-ring { width: 110px; height: 110px; } .fd-ring b { font-size: 36px; }
  .field-row { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; padding-bottom: 110px; }
  .hero-hud { display: none; }
  .hero-ctas .btn { width: 100%; }
  .svc { min-height: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .mobile-cta {
    display: grid; grid-template-columns: 2fr 1fr; gap: 8px;
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 80;
    padding: 8px; border-radius: 999px; background: rgba(12,13,18,0.8); border: 1px solid var(--line-2); backdrop-filter: blur(16px);
    transform: translateY(150%); transition: transform 0.5s var(--ease);
  }
  .mobile-cta.show { transform: none; }
  .footer { padding-bottom: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .hero-title .line > span { transform: none; }
  .reveal { opacity: 1; transform: none; }
}

/* --- mock tuning --- */
.mock-school { padding: 16px 20px; gap: 7px; }
.mock-school .sg-search { padding: 9px 14px; font-size: 12.5px; }
.mock-school .sg-list li { padding: 6px 12px; }
.mock-school .sg-btn { padding: 9px; font-size: 12.5px; }
.fd-ring span, .aqi-dial span { font-size: 10px; }

/* --- nav entrance (CSS only; uses opacity + top so transform stays free for centering/hide) --- */
.nav { opacity: 0; top: -60px; transition: background 0.4s, border-color 0.4s, transform 0.5s var(--ease), opacity 0.8s var(--ease), top 0.8s var(--ease); }
.nav.ready { opacity: 1; top: 14px; }
.no-js .nav, .reduced .nav { opacity: 1; top: 14px; }

/* --- Open source / repos --- */
.repo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.repo {
  display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: var(--radius);
  border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  transition: border-color 0.3s, transform 0.5s var(--ease);
}
.repo:hover { border-color: var(--line-2); }
.repo p { margin: 0; color: var(--muted); font-size: 15.5px; flex: 1; }
.repo-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.repo-name { font-size: 14px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.repo-name::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; border: 1.5px solid var(--muted); border-radius: 3px; }
.repo-ext { color: var(--dim); transition: color 0.2s, transform 0.3s var(--ease); }
.repo:hover .repo-ext { color: var(--lime); transform: translate(3px, -3px); }
.repo-foot { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); padding-top: 14px; border-top: 1px solid var(--line); }
.lang { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-right: 7px; vertical-align: -1px; }
.star { color: var(--lime); }
.repo-hero {
  grid-column: span 2; grid-row: span 2;
  background: radial-gradient(100% 80% at 100% 0%, rgba(139,108,255,0.22), transparent 60%), radial-gradient(80% 60% at 0% 100%, rgba(200,255,61,0.10), transparent 60%), var(--bg-2);
  border-color: var(--line-2); padding: 34px;
}
.repo-hero h3 { font-family: var(--display); font-size: clamp(30px, 3.4vw, 48px); font-weight: 600; letter-spacing: -0.02em; line-height: 1; margin: 10px 0 0; }
.repo-hero p { flex: 0; font-size: 17px; max-width: 560px; }
.repo-badge { font-size: 12px; color: var(--lime); padding: 6px 12px; border-radius: 999px; background: rgba(200,255,61,0.1); border: 1px solid rgba(200,255,61,0.3); }
.repo-term { margin: auto 0 0; padding: 18px 20px; border-radius: 14px; background: #0a0b10; border: 1px solid var(--line); font-size: 13px; line-height: 1.8; color: var(--text); white-space: pre-wrap; overflow: hidden; }
.repo-term .c { color: var(--lime); } .repo-term .m { color: var(--dim); }
@media (max-width: 1080px) { .repo-grid { grid-template-columns: repeat(2, 1fr); } .repo-hero { grid-row: auto; } }
@media (max-width: 680px) { .repo-grid { grid-template-columns: 1fr; } .repo-hero { grid-column: auto; padding: 26px; } }

/* personal brand: keep name + links on one line */
.brand span, .nav-links a, .nav-cta { white-space: nowrap; }
@media (max-width: 1180px) { .nav-links a { padding: 8px 10px; font-size: 14px; } }
@media (max-width: 400px) { .nav .brand { font-size: 18px; } .nav .brand img { width: 30px; height: 30px; } }

/* ---------- Compact layout: less scrolling ---------- */
.section { padding-top: clamp(64px, 8vw, 112px); }
.section-head { margin-bottom: clamp(26px, 3.5vw, 48px); }
.svc { min-height: 0; padding: 26px 24px; }
.svc-icon { width: 46px; height: 46px; margin-bottom: 0; }
.svc h3 { font-size: 22px; margin: 20px 0 8px; }
.svc p { margin: 0; font-size: 15px; }
.step { padding-top: 62px; }
.step h3 { font-size: 24px; }
.faq summary { padding: 20px 50px 20px 0; }
.footer-big { margin: 36px 0 28px; }
@media (max-width: 1080px) and (min-width: 681px) {
  .services { grid-template-columns: repeat(3, 1fr); }
}

.swipe-hint { display: none; font-family: var(--mono); font-size: 12px; color: var(--dim); margin: -10px 0 14px; }
/* Phones: swipe rows instead of long stacks */
@media (max-width: 680px) {
  .services { grid-template-columns: 1fr 1fr; gap: 10px; }
  .svc { padding: 16px 14px; }
  .svc-icon { width: 38px; height: 38px; border-radius: 12px; }
  .svc-icon svg { width: 20px; height: 20px; }
  .svc h3 { font-size: 16.5px; margin: 12px 0 6px; }
  .svc p { font-size: 13px; line-height: 1.4; }

  .work-grid, .process {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    margin-inline: calc(var(--pad) * -1); padding: 0 var(--pad) 14px; scroll-padding-inline: var(--pad); scrollbar-width: none;
  }
  .work-grid::-webkit-scrollbar, .process::-webkit-scrollbar { display: none; }
  .work-card, .work-card.span-2 { flex: 0 0 84%; scroll-snap-align: center; }
  .work-meta { padding: 16px 18px 18px; gap: 12px; }
  .work-meta h3 { font-size: 21px; }
  .work-meta p { font-size: 14px; }
  .span-2 .work-visual, .work-visual { aspect-ratio: 16 / 10; }
  .step { flex: 0 0 72%; scroll-snap-align: start; padding: 62px 18px 18px; border: 1px solid var(--line); border-radius: var(--radius); }
  .step-n { top: 16px; left: 18px; width: 40px; height: 40px; }
  .swipe-hint { display: block; }
  .founder-card { padding: 22px; }
  .why { gap: 10px; }
}

/* ---------- More builds (compact cards) ---------- */
.more-head { margin: clamp(36px, 5vw, 64px) 0 18px; }
.more-head h3 { margin: 0; font-size: 13px; font-weight: 500; color: var(--lime); text-transform: uppercase; letter-spacing: 0.12em; }
.repo.mini { gap: 10px; padding: 22px; }
.repo.mini h3 { margin: 0; font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
.repo.mini p { font-size: 14.5px; }
.repo.mini .repo-name { color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.repo.mini .repo-name::before { display: none; }
@media (max-width: 680px) {
  .more-grid {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    margin-inline: calc(var(--pad) * -1); padding: 0 var(--pad) 14px; scroll-padding-inline: var(--pad); scrollbar-width: none;
  }
  .more-grid::-webkit-scrollbar { display: none; }
  .repo.mini { flex: 0 0 76%; scroll-snap-align: start; }
}
@media (max-width: 1080px) and (min-width: 681px) {
  .work-card.span-2 { grid-column: auto; }
  .span-2 .work-visual { aspect-ratio: 16 / 10; }
}
