@font-face {
  font-family: "Bricolage";
  src: url("/fonts/bricolage.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --bg: #fbfaff;
  --surface: #ffffff;
  --ink: #120f2b;
  --muted: #55526e;
  --line: #e9e6f5;
  --cyan: #00b8f0;
  --violet: #7a5cff;
  --coral: #ff5f6d;
  --sun: #ffc23d;
  --mint: #12c99b;
  --violet-ink: #5a3df0;
  --grad: linear-gradient(100deg, var(--cyan), var(--violet) 50%, var(--coral));
  --display: "Bricolage", ui-sans-serif, system-ui, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--violet-ink); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 12px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0 0 .5em; letter-spacing: -.025em; }
h1 { font-size: clamp(2.7rem, 7.5vw, 5.6rem); font-weight: 800; max-width: 14ch; }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
p { margin: 0 0 1em; }

.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; z-index: 20; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(251, 250, 255, .78); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid rgba(233, 230, 245, .7); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.mark { width: 38px; height: 38px; transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.brand:hover .mark { transform: rotate(-8deg) scale(1.08); }
nav { display: flex; align-items: center; gap: 2px; }
nav a { color: var(--muted); text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .95rem; transition: background .2s, color .2s; }
nav a:hover { color: var(--ink); background: rgba(122, 92, 255, .08); }
nav .nav-cta { background: var(--ink); color: #fff; margin-left: 6px; }
nav .nav-cta:hover { background: var(--violet-ink); color: #fff; }
@media (max-width: 600px) { nav a:not(.nav-cta) { display: none; } }

/* Hero */
.hero { position: relative; padding: clamp(64px, 11vw, 132px) 0 0; overflow: hidden; }
.hero-inner { position: relative; z-index: 1; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; z-index: 0; animation: drift 14s ease-in-out infinite alternate; }
.b1 { width: 460px; height: 460px; background: var(--cyan); top: -140px; right: -80px; opacity: .35; }
.b2 { width: 380px; height: 380px; background: var(--coral); top: 160px; right: 18%; opacity: .3; animation-delay: -5s; }
.b3 { width: 320px; height: 320px; background: var(--sun); top: 40px; right: 34%; opacity: .28; animation-delay: -9s; }
@keyframes drift { to { transform: translate(-40px, 30px) scale(1.12); } }

.pill { display: inline-flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px 7px 12px; font-size: .9rem; font-weight: 600; box-shadow: 0 6px 20px -10px rgba(18, 15, 43, .25); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(18, 201, 155, .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(18, 201, 155, 0); } 100% { box-shadow: 0 0 0 0 rgba(18, 201, 155, 0); } }
.hero-inner { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.15fr .85fr; } }
.hero-art { margin: 0; justify-self: center; max-width: 300px; width: 100%; }
@media (min-width: 900px) { .hero-art { max-width: 480px; } }
.hero-art img { display: block; width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(90, 61, 240, .25)); animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-12px) rotate(-1deg); } }
.hero h1 { margin-top: 22px; }
.lede { font-size: clamp(1.08rem, 1.8vw, 1.28rem); color: var(--muted); max-width: 58ch; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 15px 26px; border-radius: 999px; font-weight: 700; text-decoration: none; transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s, background .2s; overflow-wrap: anywhere; }
.btn:hover { transform: translateY(-3px); }
.btn.primary { background: var(--ink); color: #fff; box-shadow: 0 12px 28px -12px rgba(90, 61, 240, .7); }
.btn.primary:hover { background: var(--violet-ink); box-shadow: 0 16px 34px -12px rgba(90, 61, 240, .8); }
.btn.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--violet); }
.btn.light { background: #fff; color: var(--ink); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .35); }

.marquee { position: relative; z-index: 1; margin-top: clamp(56px, 8vw, 96px); border-block: 1px solid var(--line); background: rgba(255, 255, 255, .6); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.track { display: flex; gap: 44px; width: max-content; list-style: none; margin: 0; padding: 20px 0; animation: scroll 38s linear infinite; }
.track li { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--muted); white-space: nowrap; }
.track li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 3px; background: var(--grad); margin-right: 44px; transform: translateY(-3px) rotate(45deg); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.kicker { display: inline-block; font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--violet-ink); background: rgba(122, 92, 255, .1); padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
.section-lede { color: var(--muted); font-size: 1.12rem; max-width: 60ch; margin-bottom: 44px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s, border-color .3s; }
.card:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: 0 24px 50px -24px rgba(18, 15, 43, .3); border-color: transparent; }
.card p { color: var(--muted); margin: 0; }
.icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; margin-bottom: 20px; color: #fff; }
.icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.c1 .icon { background: linear-gradient(135deg, #00b8f0, #3d8bff); }
.c2 .icon { background: linear-gradient(135deg, #7a5cff, #b25cff); }
.c3 .icon { background: linear-gradient(135deg, #ff5f6d, #ff9a5c); }
.c4 .icon { background: linear-gradient(135deg, #12c99b, #00b8f0); }
.c5 .icon { background: linear-gradient(135deg, #ffb020, #ff6d5c); }
.c6 .icon { background: linear-gradient(135deg, #5a3df0, #ff5f9e); }

.work-section { background: var(--ink); color: #fff; border-radius: clamp(28px, 4vw, 48px); margin: 0 clamp(8px, 1.5vw, 20px); position: relative; overflow: hidden; }
.work-section::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; background: radial-gradient(circle, rgba(122, 92, 255, .55), transparent 65%); }
.work-section .wrap { position: relative; }
.work-section .kicker { color: #fff; background: rgba(255, 255, 255, .12); }
.work-section .section-lede { color: #bdb8dc; }
.work { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
@media (min-width: 900px) {
  .work { grid-template-columns: repeat(6, 1fr); }
  .work li { grid-column: span 2; }
  .work li.feature { grid-column: span 3; }
}
.work li { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); padding: 26px; transition: background .3s, transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.work li:hover { background: rgba(255, 255, 255, .1); transform: translateY(-4px); }
.work li.feature { background: linear-gradient(140deg, rgba(0, 184, 240, .22), rgba(122, 92, 255, .22) 50%, rgba(255, 95, 109, .22)); border-color: rgba(255, 255, 255, .18); }
.work p { color: #c9c5e6; margin: 0; }
.work .tag { display: inline-block; color: var(--ink); background: var(--sun); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; margin-bottom: 14px; }

.about { display: grid; gap: 48px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); align-items: center; }
.about p { color: var(--muted); font-size: 1.08rem; }
.about strong { color: var(--ink); }
.link { font-weight: 700; text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.stack { margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.stack div { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.stack dt { font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--violet-ink); }
.stack dd { margin: 4px 0 0; font-weight: 600; font-size: .95rem; }

.cta { text-align: center; background: var(--grad); color: #fff; border-radius: clamp(28px, 4vw, 44px); padding: clamp(48px, 8vw, 88px) 24px; position: relative; overflow: hidden; display: grid; gap: 24px; align-items: center; justify-items: center; }
.cta-art { position: relative; z-index: 1; width: min(100%, 340px); height: auto; filter: drop-shadow(0 24px 36px rgba(18, 15, 43, .35)); }
@media (min-width: 900px) {
  .cta { grid-template-columns: 1.2fr .8fr; text-align: left; justify-items: start; padding-inline: clamp(40px, 6vw, 80px); }
  .cta p { margin-left: 0; }
  .cta-art { justify-self: center; }
}
.cta::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 0%, rgba(255, 255, 255, .28), transparent 45%); pointer-events: none; }
.cta h2 { color: #fff; position: relative; }
.cta p { max-width: 50ch; margin: 0 auto 30px; font-size: 1.15rem; color: #fff; position: relative; text-shadow: 0 1px 2px rgba(18, 15, 43, .25); }
.cta .btn { position: relative; }

.site-footer { padding: 8px 0 40px; color: var(--muted); font-size: .9rem; text-align: center; }
.site-footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
