/* Tokens — must match design/design-spec.md one-to-one (token-drift rule). */
:root {
  /* color: dark bands */
  --night: #0B0A1F;
  --night-2: #14122F;
  --night-3: #1C1940;
  --night-line: #2A2752;
  --on-night: #FFFFFF;
  --on-night-muted: #A9A6C9;

  /* color: light sections */
  --ink: #16133A;
  --paper: #F7F6FC;
  --paper-2: #EFEDF8;
  --surface: #FFFFFF;
  --muted: #5A5779;
  --line: #E6E3F3;

  /* color: accents */
  --violet: #6D4AFF;
  --violet-hover: #5835F0;
  --violet-tint: #EEE9FF;
  --lavender: #B7A6FF;
  --mint: #2FD9A0;
  --mint-ink: #0B7A55;
  --mint-tint: #DDFBF0;
  --coral: #FF6B6B;
  --coral-ink: #C8323A;
  --coral-tint: #FFE8E8;

  /* type */
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-text: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;

  /* spacing */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 5rem;
  --s-9: 7.5rem;

  /* shape */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow: 0 1px 2px rgb(22 19 58 / 5%), 0 10px 30px rgb(22 19 58 / 7%);
  --shadow-lift: 0 2px 6px rgb(22 19 58 / 8%), 0 22px 44px rgb(22 19 58 / 14%);
  --shadow-float: 0 30px 80px rgb(0 0 0 / 45%);

  /* motion (mirrored in main.js) */
  --motion-fast: 150ms;
  --motion-standard: 250ms;
  --motion-slow: 450ms;
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-emphasized: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-display.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-text.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}
/* Only the Vietnamese letters used in partner names; fetched only when they render. */
@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-vi.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
  unicode-range: U+0110, U+01B0, U+1EC7, U+1ECB, U+1ECD;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
  interpolate-size: allow-keywords;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 6px;
}
.night :focus-visible { outline-color: var(--lavender); }

::selection { background: var(--violet); color: var(--on-night); }

.wrap {
  width: min(100% - 2 * var(--s-5), 1180px);
  margin-inline: auto;
}

.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.night {
  position: relative;
  background: var(--night);
  color: var(--on-night);
  isolation: isolate;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 20;
  padding: var(--s-2) var(--s-4);
  background: var(--violet);
  color: var(--on-night);
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: var(--s-4); }

.kicker {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
}
.night .kicker { color: var(--lavender); }

/* Buttons & links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--motion-fast) var(--ease-out),
    border-color var(--motion-fast) var(--ease-out),
    transform var(--motion-fast) var(--ease-out),
    box-shadow var(--motion-standard) var(--ease-out);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }

.btn-primary {
  background: var(--violet);
  color: var(--on-night);
  box-shadow: 0 8px 24px rgb(109 74 255 / 35%), inset 0 1px 0 rgb(255 255 255 / 20%);
}
.btn-primary:hover {
  background: var(--violet-hover);
  box-shadow: 0 12px 32px rgb(109 74 255 / 45%), inset 0 1px 0 rgb(255 255 255 / 20%);
}

.btn-ghost {
  color: var(--on-night);
  border-color: var(--night-line);
  background: rgb(255 255 255 / 4%);
}
.btn-ghost:hover { background: rgb(255 255 255 / 9%); border-color: var(--on-night-muted); }

.btn-sm { padding: 0.55rem 1.05rem; font-size: 0.9375rem; box-shadow: none; }
.btn-lg { padding: 0.95rem 1.6rem; font-size: 1.0625rem; }
.btn-block { width: 100%; }

.btn-arrow { transition: transform var(--motion-fast) var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(3px); }

.text-link {
  color: var(--violet);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--violet) 35%, transparent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color var(--motion-fast) var(--ease-out), text-decoration-color var(--motion-fast) var(--ease-out);
}
.text-link:hover { text-decoration-color: var(--violet); }
.text-link.on-dark { color: var(--on-night); text-decoration-color: var(--night-line); }
.text-link.on-dark:hover { text-decoration-color: var(--mint); }

/* Header — floating glass pill */
.site-header {
  position: fixed;
  inset: var(--s-3) 0 auto;
  z-index: 10;
  pointer-events: none;
}

.header-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: var(--s-6);
  width: min(100% - 2 * var(--s-4), 1180px);
  height: 60px;
  margin-inline: auto;
  padding: 0 var(--s-2) 0 var(--s-4);
  color: var(--on-night);
  background: rgb(20 18 47 / 72%);
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 10px 30px rgb(11 10 31 / 25%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  text-decoration: none;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.wordmark span { color: var(--mint); }

.header-nav {
  position: relative;
  display: flex;
  gap: var(--s-5);
  margin-left: auto;
  font-size: 0.9375rem;
}
.header-nav a {
  padding-block: var(--s-2);
  color: var(--on-night-muted);
  text-decoration: none;
  transition: color var(--motion-fast) var(--ease-out);
}
.header-nav a:hover, .header-nav a[aria-current="true"] { color: var(--on-night); }

/* "You are here" bar; positioned by main.js with transforms only. */
.nav-indicator {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100px;
  height: 2px;
  background: var(--mint);
  border-radius: 2px;
  transform-origin: left;
  transform: scaleX(0);
  opacity: 0;
}

@media (max-width: 720px) {
  .header-nav { display: none; }
  .header-pill > .btn { margin-left: auto; }
}

/* Aurora glow + faint grid behind dark bands */
.aurora {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(42rem 28rem at 78% 22%, rgb(109 74 255 / 38%), transparent 70%),
    radial-gradient(30rem 22rem at 95% 62%, rgb(47 217 160 / 16%), transparent 70%),
    radial-gradient(50rem 30rem at 5% -10%, rgb(109 74 255 / 20%), transparent 70%);
}
.aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 5%) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, #000 20%, transparent 75%);
}
.aurora-low {
  background:
    radial-gradient(40rem 26rem at 10% 90%, rgb(109 74 255 / 30%), transparent 70%),
    radial-gradient(30rem 20rem at 90% 10%, rgb(47 217 160 / 12%), transparent 70%);
}
.aurora-low::after { display: none; }

/* Hero */
.hero { padding-top: 9.5rem; overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: var(--s-8);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.35rem 0.85rem 0.35rem 0.65rem;
  border: 1px solid var(--night-line);
  border-radius: var(--radius-pill);
  background: rgb(255 255 255 / 4%);
  color: var(--on-night-muted);
  font-size: 0.875rem;
  animation: rise .6s var(--ease-emphasized) both;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgb(47 217 160 / 18%);
}

.hero h1 { margin-top: var(--s-5); }

.h1-pre {
  display: block;
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--on-night-muted);
  animation: rise .6s var(--ease-emphasized) .05s both;
}
.h1-pre s {
  text-decoration: none;
  color: var(--coral);
  background: linear-gradient(var(--coral), var(--coral)) no-repeat 0 56% / 100% 3px;
  animation: strike .5s var(--ease-emphasized) .45s both;
}

.h1-main {
  display: block;
  margin-top: var(--s-3);
  font-size: clamp(2.75rem, 6.4vw, 5.5rem);
  letter-spacing: -0.04em;
  line-height: 0.98;
  text-wrap: balance;
  animation: rise .7s var(--ease-emphasized) .15s both;
}

.underline {
  position: relative;
  font-style: normal;
  color: var(--mint);
  white-space: nowrap;
}
.underline svg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.12em;
  width: 100%;
  height: 0.22em;
  overflow: visible;
}
.underline path {
  fill: none;
  stroke: var(--mint);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 200;
  vector-effect: non-scaling-stroke;
  animation: draw .8s var(--ease-emphasized) .9s both;
}

.lede {
  margin-top: var(--s-5);
  max-width: 48ch;
  font-size: 1.1875rem;
  color: var(--on-night-muted);
  animation: rise .6s var(--ease-emphasized) .35s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-6);
  animation: rise .6s var(--ease-emphasized) .45s both;
}

.proof {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  margin-top: var(--s-6);
  font-size: 0.9375rem;
  color: var(--on-night-muted);
  animation: rise .6s var(--ease-emphasized) .55s both;
}
.proof li { display: inline-flex; align-items: center; gap: var(--s-2); }
.proof svg {
  width: 18px;
  height: 18px;
  padding: 2px;
  border-radius: 50%;
  background: rgb(47 217 160 / 15%);
  fill: none;
  stroke: var(--mint);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes strike { from { background-size: 0% 3px; } }
@keyframes draw { from { stroke-dashoffset: 200; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.96); } }

/* Hero visual — a client site assembling, an assistant answering, a demo shipping */
.hero-visual {
  position: relative;
  perspective: 1400px;
  padding: var(--s-6) var(--s-6) var(--s-8) 0;
}

.tilt {
  position: relative;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform .6s var(--ease-out);
}

.browser {
  background: var(--night-2);
  border: 1px solid var(--night-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  overflow: hidden;
  animation: pop .7s var(--ease-emphasized) .2s both;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--night-line);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--on-night-muted);
}
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--night-line); }
.dots i:first-child { background: var(--coral); }
.dots i:nth-child(2) { background: var(--lavender); }
.dots i:last-child { background: var(--mint); }
.url {
  flex: 1;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--night-3);
}
.diffstat { display: flex; gap: var(--s-2); }
.diffstat .del { color: var(--coral); font-weight: 500; }
.diffstat .ins { color: var(--mint); font-weight: 500; }

.browser-body {
  display: grid;
  gap: var(--s-5);
  padding: var(--s-5);
  background:
    radial-gradient(24rem 14rem at 80% 0%, rgb(109 74 255 / 18%), transparent 70%),
    var(--night-2);
}

.build { animation: pop .6s var(--ease-emphasized) both; animation-delay: calc(.45s + var(--i) * .16s); }

.mock-nav { display: flex; align-items: center; gap: var(--s-4); }
.mock-logo { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, var(--violet), var(--mint)); }
.mock-links { display: flex; gap: var(--s-3); margin-left: auto; }
.mock-links i { width: 34px; height: 6px; border-radius: 3px; background: var(--night-line); }
.mock-btn { width: 58px; height: 22px; border-radius: var(--radius-pill); background: var(--violet); }

.mock-hero { display: grid; gap: 10px; padding-block: var(--s-3); }
.mock-line { height: 14px; border-radius: 7px; background: rgb(255 255 255 / 85%); }
.mock-line.w60 { width: 60%; background: rgb(255 255 255 / 55%); }
.mock-line.w85 { width: 85%; }
.mock-line.w70 { width: 70%; }
.mock-line.thin { height: 7px; margin-top: 6px; background: var(--night-line); }
.mock-cta { width: 104px; height: 28px; margin-top: 8px; border-radius: var(--radius-pill); background: var(--mint); }

.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.mock-cards > span {
  display: grid;
  gap: 8px;
  padding: var(--s-3);
  border: 1px solid var(--night-line);
  border-radius: 12px;
  background: var(--night-3);
}
.mock-cards i { width: 24px; height: 24px; border-radius: 8px; background: rgb(109 74 255 / 45%); }
.mock-cards > span:nth-child(2) i { background: rgb(47 217 160 / 45%); }
.mock-cards > span:nth-child(3) i { background: rgb(255 107 107 / 45%); }
.mock-cards b { height: 6px; border-radius: 3px; background: var(--night-line); }
.mock-cards b.short { width: 60%; }

.chat {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(290px, 78%);
  display: grid;
  gap: var(--s-2);
  padding: var(--s-4);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-float);
  font-size: 0.875rem;
  transform: translateZ(40px);
  animation: pop .6s var(--ease-emphasized) 1.4s both;
}
.chat-head { display: flex; align-items: center; gap: var(--s-2); padding-bottom: var(--s-2); border-bottom: 1px solid var(--line); }
.chat-head b { display: block; font-size: 0.875rem; }
.chat-head small { display: block; font-size: 0.75rem; color: var(--muted); }
.chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, var(--violet), var(--mint), var(--violet));
}

.bubble { max-width: 88%; padding: 0.5rem 0.75rem; border-radius: 14px; line-height: 1.4; }
.bubble.user {
  justify-self: end;
  background: var(--violet);
  color: var(--on-night);
  border-bottom-right-radius: 4px;
  animation: pop .4s var(--ease-emphasized) 1.8s both;
}
.bubble-slot { display: grid; }
.bubble-slot > * { grid-area: 1 / 1; }
.bubble.bot { justify-self: start; background: var(--paper-2); border-bottom-left-radius: 4px; }
.bubble.typing {
  display: flex;
  gap: 4px;
  align-self: start;
  padding-block: 0.7rem;
  animation: typing-life 1.2s linear 2.2s both;
}
.bubble.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: bounce .6s ease-in-out 2.2s 2 alternate;
}
.bubble.typing i:nth-child(2) { animation-delay: 2.35s; }
.bubble.typing i:nth-child(3) { animation-delay: 2.5s; }
.bubble.answer { animation: pop .45s var(--ease-emphasized) 3.4s both; }

@keyframes typing-life { 0% { opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; } }
@keyframes bounce { to { transform: translateY(-4px); } }

.toast {
  position: absolute;
  left: -1.5rem;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.55rem 0.95rem 0.55rem 0.55rem;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-float);
  font-size: 0.875rem;
  font-weight: 600;
  transform: translateZ(60px);
  animation: pop .5s var(--ease-emphasized) 4s both;
}
.toast-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--night);
  font-size: 0.8125rem;
}

@media (max-width: 960px) {
  .hero { padding-top: 7.5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .hero-visual { padding: var(--s-5) 0 var(--s-8); max-width: 560px; }
  .toast { left: var(--s-2); top: 0; }
}
@media (max-width: 520px) {
  .mock-links { display: none; }
  .chat { width: 84%; }
  .diffstat { display: none; }
}

/* Partners (inside the hero band) */
.partners { padding-block: var(--s-7) var(--s-8); }

.partners-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s-2) var(--s-4);
  margin-bottom: var(--s-5);
  color: var(--on-night-muted);
  font-size: 0.9375rem;
}

/* Without JS (or with reduced motion) the cards sit in a wrapping row. */
.marquee-track { display: flex; }
.marquee-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-4);
  width: min(100% - 2 * var(--s-5), 1180px);
  margin-inline: auto;
  padding-block: var(--s-2) var(--s-4);
}

/* main.js adds .is-running once it has filled the track and started the loop. */
.marquee.is-running {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee.is-running .marquee-track { width: max-content; will-change: transform; }
.marquee.is-running .marquee-group {
  flex-wrap: nowrap;
  width: auto;
  margin: 0;
  padding-right: var(--s-4);
}

.partner {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  height: 76px;
  padding: 0 var(--s-5);
  background: var(--surface);
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform var(--motion-standard) var(--ease-out),
    box-shadow var(--motion-standard) var(--ease-out),
    border-color var(--motion-standard) var(--ease-out);
}
.partner:hover, .partner:focus-visible {
  transform: translateY(-3px);
  border-color: var(--lavender);
  box-shadow: 0 16px 40px rgb(109 74 255 / 35%);
}
.partner img { height: 44px; width: auto; }
.partner img.partner-wordmark { height: 22px; }

.partner-text { display: grid; line-height: 1.25; }
.partner-name { font-weight: 600; font-size: 1rem; }
.partner-domain { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }

.partner-arrow {
  color: var(--violet);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition:
    opacity var(--motion-fast) var(--ease-out),
    transform var(--motion-fast) var(--ease-out);
}
.partner:hover .partner-arrow, .partner:focus-visible .partner-arrow { opacity: 1; transform: none; }

/* Sections */
.section { padding-block: var(--s-9); }
.section-alt { background: var(--paper-2); }

.section-head { max-width: 720px; margin-bottom: var(--s-7); }
.section-title {
  margin-top: var(--s-3);
  font-size: clamp(2.125rem, 4.6vw, 3.5rem);
  text-wrap: balance;
}
.section-lede { margin-top: var(--s-4); font-size: 1.1875rem; color: var(--muted); max-width: 56ch; }
.night .section-lede { color: var(--on-night-muted); }

/* Services bento */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--s-4);
}

.tile {
  --mx: 50%;
  --my: 50%;
  position: relative;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    transform var(--motion-standard) var(--ease-out),
    box-shadow var(--motion-standard) var(--ease-out),
    border-color var(--motion-standard) var(--ease-out);
}
/* Soft spotlight that follows the pointer (main.js sets --mx/--my). */
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(22rem circle at var(--mx) var(--my), rgb(109 74 255 / 10%), transparent 60%);
  opacity: 0;
  transition: opacity var(--motion-standard) var(--ease-out);
  pointer-events: none;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: color-mix(in srgb, var(--violet) 30%, var(--line)); }
.tile:hover::before { opacity: 1; }

.tile h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.tile p { color: var(--muted); font-size: 1rem; }
.tile .tile-tag {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--violet);
}

.tile-web { grid-column: span 4; grid-row: span 2; justify-content: space-between; }
.tile-web h3 { font-size: clamp(1.625rem, 2.6vw, 2.125rem); max-width: 18ch; }
.tile-web .tile-copy { display: grid; gap: var(--s-2); }
.tile-web .tile-tag { margin-top: var(--s-5); }

.tags { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.tags li {
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--paper);
  font-size: 0.875rem;
}

.tile-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--s-4);
  padding: 11px;
  border-radius: 14px;
  background: var(--violet-tint);
  fill: none;
  stroke: var(--violet);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tile-art { margin-bottom: var(--s-4); }

.art-devices { position: relative; height: 230px; }
.tile-web .art-devices { flex: 1; height: auto; min-height: 230px; margin-bottom: var(--s-6); }
.device-desktop {
  display: grid;
  grid-template-rows: 14px 40px 1fr;
  gap: 10px;
  height: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--violet-tint), var(--surface) 70%);
}
.device-desktop span { border-radius: 6px; background: rgb(109 74 255 / 14%); }
.device-desktop span:nth-child(1) { width: 40%; }
.device-desktop span:nth-child(2) { width: 70%; background: rgb(22 19 58 / 85%); }
.device-desktop span:nth-child(3) { width: 50%; height: 12px; }
.device-desktop span:nth-child(4) {
  background:
    linear-gradient(90deg, rgb(109 74 255 / 14%) 0 31%, transparent 31% 34.5%, rgb(47 217 160 / 22%) 34.5% 65.5%, transparent 65.5% 69%, rgb(255 107 107 / 16%) 69%);
}
.device-phone {
  position: absolute;
  right: 6%;
  bottom: -18px;
  display: grid;
  grid-template-rows: 12px 34px 1fr;
  gap: 8px;
  width: 104px;
  height: 196px;
  padding: 18px 10px 10px;
  border: 4px solid var(--ink);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-lift);
}
.device-phone span { border-radius: 5px; background: rgb(109 74 255 / 14%); }
.device-phone span:nth-child(2) { background: rgb(22 19 58 / 85%); }
.device-phone span:nth-child(3) { background: rgb(47 217 160 / 22%); }

.art-chat { display: grid; gap: var(--s-2); font-size: 0.875rem; }
.art-chat span { max-width: 90%; padding: 0.5rem 0.75rem; border-radius: 14px; line-height: 1.4; }
.art-chat .q { justify-self: end; background: var(--violet); color: var(--on-night); border-bottom-right-radius: 4px; }
.art-chat .a { justify-self: start; background: var(--paper-2); border-bottom-left-radius: 4px; }

.art-flow { display: flex; align-items: center; font-family: var(--font-mono); font-size: 0.8125rem; }
.art-flow span {
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
}
.art-flow span.hl { background: var(--violet); border-color: var(--violet); color: var(--on-night); }
.art-flow i {
  flex: 1;
  min-width: 14px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--lavender) 0 6px, transparent 6px 10px);
  background-size: 20px 2px;
  animation: flow 1.2s linear infinite;
}
@keyframes flow { to { background-position: 20px 0; } }

@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile-web { grid-column: span 1; grid-row: auto; }
  .tile-web { grid-column: span 2; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .tile-web { grid-column: span 1; }
  .art-devices { height: 190px; }
}

/* What you won't get */
.wont .kicker { margin-bottom: var(--s-6); }
.wont-list {
  display: grid;
  gap: var(--s-2);
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4.75rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.08;
}
.wont-list s {
  text-decoration: none;
  color: var(--on-night-muted);
  background: linear-gradient(var(--coral), var(--coral)) no-repeat 0 58% / 100% 0.08em;
  transition:
    background-size .7s var(--ease-emphasized),
    color .7s var(--ease-out);
}
/* main.js sets .is-pending until the list scrolls in, then strikes each line in turn. */
.wont-list.is-pending s { background-size: 0% 0.08em; color: var(--on-night); }
.wont-list li:nth-child(2) s { transition-delay: .2s; }
.wont-list li:nth-child(3) s { transition-delay: .4s; }
.wont-list li:nth-child(4) s { transition-delay: .6s; }

.wont-plus {
  display: flex;
  gap: var(--s-3);
  margin-top: var(--s-7);
  font-size: clamp(1.5rem, 3.6vw, 2.75rem);
  color: var(--mint);
}

/* Process */
.process-wrap { position: relative; }
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
  counter-reset: step;
}
.process li { position: relative; }
.step-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--violet);
  background: var(--violet);
  color: var(--on-night);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  transition:
    background-color .3s var(--ease-out),
    color .3s var(--ease-out),
    border-color .3s var(--ease-out);
}
.step-when {
  margin-top: var(--s-5);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--violet);
}
.process h3 {
  margin: var(--s-1) 0 var(--s-2);
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.process p:not(.step-when) { color: var(--muted); font-size: 1rem; }

.process-track {
  position: absolute;
  top: 23px;
  left: 24px;
  right: calc((100% - 3 * var(--s-6)) / 4 - 24px);
  height: 2px;
  background: var(--line);
}
.process-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--violet), var(--mint));
  transform-origin: left;
  transition: transform 1.4s var(--ease-standard);
}
/* main.js sets .is-pending until the steps scroll in, then fills the track and lights each step. */
.process-wrap.is-pending .process-fill { transform: scaleX(0); }
.process-wrap.is-pending .step-num { background: var(--surface); color: var(--muted); border-color: var(--line); }
.process li:nth-child(1) .step-num { transition-delay: .05s; }
.process li:nth-child(2) .step-num { transition-delay: .5s; }
.process li:nth-child(3) .step-num { transition-delay: .95s; }
.process li:nth-child(4) .step-num { transition-delay: 1.35s; }

@media (max-width: 860px) {
  .process { grid-template-columns: 1fr; gap: var(--s-6); }
  .process li { padding-left: 72px; }
  .step-num { position: absolute; left: 0; top: 0; }
  .step-when { margin-top: 0; }
  .process-track { top: 24px; bottom: 24px; left: 23px; right: auto; width: 2px; height: auto; }
  .process-fill { background: linear-gradient(var(--violet), var(--mint)); transform-origin: top; }
  .process-wrap.is-pending .process-fill { transform: scaleY(0); }
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--s-8);
  align-items: start;
}
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; gap: 0; } }

.faq { display: grid; gap: var(--s-3); }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--motion-standard) var(--ease-out), box-shadow var(--motion-standard) var(--ease-out);
}
.faq details[open] { border-color: color-mix(in srgb, var(--violet) 30%, var(--line)); box-shadow: var(--shadow); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  font-weight: 600;
  font-size: 1.0625rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--violet-tint);
  color: var(--violet);
  font-size: 1.125rem;
  line-height: 1;
  transition: transform var(--motion-standard) var(--ease-standard), background-color var(--motion-standard) var(--ease-out), color var(--motion-standard) var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--violet); color: var(--on-night); }
.faq-body p { padding: 0 var(--s-5) var(--s-5); color: var(--muted); max-width: 62ch; }

/* Smooth open/close where supported (Chromium); other browsers open instantly. */
.faq details::details-content {
  height: 0;
  overflow: clip;
  transition:
    height var(--motion-standard) var(--ease-standard),
    content-visibility var(--motion-standard) allow-discrete;
}
.faq details[open]::details-content { height: auto; }

/* Contact */
.contact { overflow: hidden; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: var(--s-8);
  align-items: start;
}
.contact-grid > * { min-width: 0; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); } }
/* Turnstile's widget needs 300px; keep the card padding small enough on narrow phones. */
@media (max-width: 420px) { .form-card { padding: var(--s-5) 1.25rem; } }

.next-steps { display: grid; gap: var(--s-3); margin-top: var(--s-6); }
.next-steps li { display: flex; align-items: center; gap: var(--s-3); color: var(--on-night); }
.next-steps span {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--night-line);
  background: rgb(255 255 255 / 5%);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--mint);
}
.contact-email { margin-top: var(--s-6); color: var(--on-night-muted); }

.form-card {
  padding: var(--s-6);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
}
.form { display: grid; gap: var(--s-5); }

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: var(--s-5);
}
.field { display: grid; gap: var(--s-2); min-width: 0; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-weight: 600; font-size: 0.9375rem; padding: 0; }
.optional { font-weight: 400; color: var(--muted); }

.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  transition:
    border-color var(--motion-fast) var(--ease-out),
    box-shadow var(--motion-fast) var(--ease-out),
    background-color var(--motion-fast) var(--ease-out);
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: color-mix(in srgb, var(--violet) 30%, var(--line)); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--violet);
  box-shadow: 0 0 0 4px var(--violet-tint);
}
.field [aria-invalid="true"] { border-color: var(--coral-ink); }
.field-error { color: var(--coral-ink); font-size: 0.875rem; }

.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: block;
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  background: var(--paper);
  transition:
    background-color var(--motion-fast) var(--ease-out),
    border-color var(--motion-fast) var(--ease-out),
    transform var(--motion-fast) var(--ease-out);
}
.chip:hover span { border-color: color-mix(in srgb, var(--violet) 45%, var(--line)); }
.chip:active span { transform: scale(0.96); }
.chip input:checked + span {
  border-color: var(--violet);
  background: var(--violet-tint);
  color: var(--violet-hover);
  font-weight: 600;
}
.chip input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 2px; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-slot:empty { display: none; }

.form-status:empty { display: none; }
.form-status { padding: var(--s-3) var(--s-4); border-radius: var(--radius-sm); font-size: 0.9375rem; }
.form-status[data-state="error"] { background: var(--coral-tint); color: var(--coral-ink); }
.form-status[data-state="success"] { background: var(--mint-tint); color: var(--mint-ink); }

.fine-print { font-size: 0.8125rem; color: var(--muted); text-align: center; }

/* Footer */
.site-footer { padding-top: var(--s-8); overflow: hidden; border-top: 1px solid var(--night-line); }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}
.footer-nav { display: flex; flex-wrap: wrap; gap: var(--s-5); }
.footer-nav a { color: var(--on-night-muted); text-decoration: none; transition: color var(--motion-fast) var(--ease-out); }
.footer-nav a:hover { color: var(--on-night); }

.footer-giant {
  margin: var(--s-7) 0 calc(-0.18em);
  font-size: clamp(4rem, 17.5vw, 16rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.9;
  text-align: center;
  color: transparent;
  background: linear-gradient(180deg, rgb(183 166 255 / 32%), rgb(183 166 255 / 0%) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-3);
  padding-block: var(--s-5);
  border-top: 1px solid var(--night-line);
  color: var(--on-night-muted);
  font-size: 0.875rem;
}

/* 404 */
.not-found { min-height: 100vh; display: grid; place-content: center; justify-items: start; gap: var(--s-5); }
.not-found h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 1ms !important;
    transition-delay: 0s !important;
  }
  .tilt { transform: none; }
  .bubble.typing { display: none; }
}
