:root {
  --bg: #050607;
  --fg: #f1f4f2;
  --muted: #8d9792;
  --line: rgba(255, 255, 255, .08);
  --line-hi: rgba(255, 255, 255, .16);
  --card: rgba(12, 15, 14, .6);
  --g1: #2a9d76;
  --g2: #4fd69f;
  --g3: #8fe6bf;
  --grad: linear-gradient(100deg, #f4f8f6 0%, var(--g3) 50%, var(--g2) 100%);
  --pad: clamp(18px, 5vw, 56px);
  --font: "Segoe UI Variable Display", "SF Pro Display", Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 clamp(15px, 1.05vw + 11px, 17px)/1.65 var(--font);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--g3); outline-offset: 3px; border-radius: 6px; }

.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--fg); color: #07100c; padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- 3D canvas ---------- */
#gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; background: var(--bg); }
.veil { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(5,6,7,.6), transparent 22%, transparent 74%, rgba(5,6,7,.7)); }
.no-webgl #gl { display: none; }
.no-webgl body { background:
  radial-gradient(60vmax 40vmax at 78% 20%, rgba(79,214,159,.16), transparent 60%),
  radial-gradient(50vmax 30vmax at 10% 90%, rgba(255,255,255,.04), transparent 60%), var(--bg); }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--pad); }
.sec { padding-block: clamp(80px, 14vh, 150px); position: relative; }
.sec-tight { padding-bottom: clamp(60px, 10vh, 110px); }
.eyebrow { display: inline-flex; align-items: center; gap: 14px; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 22px; }
.dot { width: 28px; height: 1px; background: linear-gradient(90deg, var(--g2), transparent); }
.eyebrow { color: var(--g2); }
h1 { font-size: clamp(2.5rem, 7.2vw + .4rem, 5.6rem); line-height: 1.02; letter-spacing: -.04em; font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw + .5rem, 3.3rem); line-height: 1.1; letter-spacing: -.035em; font-weight: 680; max-width: 18ch; }
h3 { font-size: 1.15rem; letter-spacing: -.01em; font-weight: 650; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: clamp(1rem, .6vw + .9rem, 1.2rem); max-width: 52ch; margin-top: 22px; }
.sec-head { margin-bottom: clamp(32px, 6vh, 64px); }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--pad); transition: background .3s, backdrop-filter .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(5,6,7,.7); border-color: var(--line); }
@supports (backdrop-filter: blur(1px)) { .nav.solid { backdrop-filter: blur(14px); } }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 760; font-size: 1.35rem; letter-spacing: -.04em; }
.brand .mark { width: 30px; height: 26px; filter: drop-shadow(0 0 10px rgba(79,214,159,.28)); }
.menu { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 36px); font-size: .95rem; color: var(--muted); }
.menu a:not(.btn) { transition: color .25s; }
.menu a:not(.btn):hover { color: var(--fg); }
.burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.burger i { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform .3s, top .3s; }
.burger i:first-child { top: 18px; } .burger i:last-child { top: 25px; }
.burger[aria-expanded="true"] i:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; min-height: 48px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 .96rem/1 var(--font); letter-spacing: -.005em; color: #07100c; background: #eef3f0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 10px 30px -14px rgba(255,255,255,.35);
  transition: transform .25s, box-shadow .25s, background .25s; }
.btn:hover { transform: translateY(-2px); background: #fff; box-shadow: inset 0 1px 0 #fff, 0 16px 40px -14px rgba(255,255,255,.5); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 10px 20px; min-height: 40px; font-size: .88rem; color: #07100c !important; }
.btn-ghost { background: rgba(255,255,255,.03); color: var(--fg); border: 1px solid var(--line-hi); box-shadow: none; }
.btn-ghost:hover { background: rgba(255,255,255,.08); box-shadow: none; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-lg { width: 30px; height: 30px; fill: none; stroke: var(--g3); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 24px; opacity: .9; }

/* ---------- hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; position: relative; padding-top: 90px; }
.hero-inner { padding-block: 40px 70px; }
.hero h1 { max-width: 11ch; }
.hero .lead { max-width: 46ch; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 38px; }
.chips li { font-size: .82rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; background: rgba(255,255,255,.025); }
.scroll-hint { position: absolute; bottom: 22px; left: 50%; width: 22px; height: 36px; border: 1.5px solid rgba(255,255,255,.28); border-radius: 12px; transform: translateX(-50%); }
.scroll-hint span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--g3); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { position: relative; padding: 32px 28px 34px; border-radius: 20px; background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.008)), var(--card); border: 1px solid var(--line); overflow: hidden; transition: transform .35s, border-color .35s; }
.card::after { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent); opacity: .6; pointer-events: none; }
.card::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .35s; pointer-events: none;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(79,214,159,.12), transparent 65%); }
.card:hover { transform: translateY(-4px); border-color: rgba(79,214,159,.3); }
.card:hover::before { opacity: 1; }
.card p { color: var(--muted); margin-top: 10px; font-size: .96rem; }
@media (min-width: 900px) and (hover: hover) {
  .card, .form, .steps li { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
}

/* ---------- approach ---------- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; }
.steps { display: grid; gap: 14px; }
.steps li { display: flex; gap: 22px; padding: 24px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.steps b { font-size: .85rem; font-weight: 600; letter-spacing: .08em; color: var(--g2); font-variant-numeric: tabular-nums; padding-top: 3px; }
.steps p { color: var(--muted); margin-top: 6px; font-size: .96rem; }

/* ---------- stack marquee ---------- */
.marquee { overflow: hidden; padding-block: 4px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
/* spacing lives on the items (not flex gap) so -50% is an exact, seamless loop */
.track { display: flex; width: max-content; animation: slide 60s linear infinite; will-change: transform; }
.track span { flex: none; margin-right: 12px; padding: 12px 24px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.03); color: #c9d2cd; white-space: nowrap; font-weight: 500; letter-spacing: -.005em; transition: color .25s, border-color .25s, background .25s; }
.track span:hover { color: #fff; border-color: var(--line-hi); background: rgba(255,255,255,.07); }
@keyframes slide { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
.marquee:hover .track { animation-play-state: paused; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.form { display: grid; gap: 16px; padding: clamp(22px, 3vw, 34px); border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.form label { display: grid; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.form input, .form textarea { width: 100%; font: 400 1rem/1.4 var(--font); color: var(--fg); background: rgba(255,255,255,.045); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; transition: border-color .25s, background .25s; resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: #5d6863; }
.form input:focus, .form textarea:focus { outline: none; border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.06); }
.form .btn { justify-self: start; }
.form-note { min-height: 1.4em; font-size: .88rem; color: var(--g3); }
.form-note.err { color: #ff8d7a; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); background: rgba(5,6,7,.75); padding-block: 34px calc(34px + env(safe-area-inset-bottom)); }
.foot-in { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; color: var(--muted); font-size: .9rem; }
.foot .brand { color: var(--fg); font-size: 1.15rem; }
.foot .mark { width: 24px; height: 21px; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split-space { display: none; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .burger { display: block; }
  .menu { position: fixed; inset: 0 0 auto 0; top: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 84px var(--pad) 28px;
    background: rgba(5,6,7,.97); border-bottom: 1px solid var(--line); transform: translateY(-105%); transition: transform .4s cubic-bezier(.2,.7,.2,1); z-index: -1; font-size: 1.15rem; }
  .menu.open { transform: none; }
  .menu a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); color: var(--fg); }
  .menu .btn { margin-top: 14px; min-height: 52px; }
  .grid { grid-template-columns: 1fr; }
  /* object sits in the top half on phones; copy anchors to the bottom */
  .hero { align-items: flex-end; }
  .hero-inner { padding-block: 0 56px; }
  .hero h1 { font-size: clamp(2.4rem, 11.5vw, 3.4rem); }
  .scroll-hint, .chips { display: none; }
  .hero .lead { margin-top: 16px; }
  .cta { margin-top: 26px; }
  .veil { background: linear-gradient(180deg, rgba(5,6,7,.4), transparent 20%, transparent 40%, rgba(5,6,7,.55) 75%, rgba(5,6,7,.75)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-hint span { animation: none; }
  /* keep the stack ticker moving (slowly): with Windows "animation effects" off it would otherwise freeze and clip */
  .track { animation-duration: 120s; }
  .js .reveal { transition: none; opacity: 1; transform: none; }
}
