:root {
  color-scheme: light;
  --brand: #4f63e7;
  --brand-600: #3f52d6;
  --brand-700: #3242b5;
  --brand-ink: #3446c4;
  --brand-50: #eef0fd;
  --brand-100: #dfe3fb;
  --brand-on-dark: #a3adff;
  --teal: #0f9a91;
  --teal-ink: #0b6f68;
  --teal-50: #e5f6f4;
  --violet: #7b5ce0;
  --green: #2fbf71;
  --green-ink: #1b7f47;
  --green-50: #e8f9ef;
  --amber: #f2a93b;
  --amber-ink: #8a5a00;
  --amber-50: #fdf3e2;
  --red: #e5484d;
  --red-ink: #b42318;
  --red-50: #fdeceb;
  --ink: #151a22;
  --ink-2: #2b3138;
  --muted: #5a6470;
  --faint: #8b95a1;
  --line: rgba(21, 26, 34, 0.08);
  --line-2: rgba(21, 26, 34, 0.14);
  --line-strong: #8a939c;
  --bg: #ffffff;
  --surface: #f4f6f9;
  --surface-2: #f8f9fb;
  --card: #ffffff;
  --card-2: #fbfcfd;
  --ui-fill: #eef1f5;
  --ui-fill-2: #e3e7ed;
  --header-bg: rgba(255, 255, 255, 0.92);
  --grid-line: rgba(21, 26, 34, 0.055);
  --glow-a: rgba(79, 99, 231, 0.2);
  --glow-a-2: rgba(79, 99, 231, 0.06);
  --glow-b: rgba(15, 154, 145, 0.15);
  --glow-b-2: rgba(15, 154, 145, 0.05);
  --night: #0a0d13;
  --night-2: #121722;
  --night-3: #171d29;
  --night-head: #eef1f5;
  --night-text: #a9b2bd;
  --night-faint: #8a949f;
  --night-line: rgba(255, 255, 255, 0.08);
  --gradient: linear-gradient(100deg, #4f63e7 8%, #2f7fd6 52%, #0f9a91 96%);
  --gradient-soft: linear-gradient(100deg, var(--brand-600), var(--teal));
  --gradient-text: linear-gradient(100deg, #4352dc 8%, #2a74c7 52%, #0b8a82 96%);

  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --header-now: var(--header-h);
  --radius: 14px;
  --radius-lg: 24px;
  --radius-card: 26px;

  --shadow-s: 0 1px 2px rgba(16, 24, 40, 0.05), 0 1px 3px rgba(16, 24, 40, 0.07);
  --shadow-m: 0 2px 4px rgba(16, 24, 40, 0.04), 0 12px 24px -8px rgba(16, 24, 40, 0.12);
  --shadow-l: 0 2px 6px rgba(16, 24, 40, 0.04), 0 24px 48px -16px rgba(16, 24, 40, 0.2);
  --shadow-xl: 0 4px 12px rgba(16, 24, 40, 0.05), 0 48px 96px -32px rgba(16, 24, 40, 0.32);
  --shadow-brand: 0 1px 2px rgba(16, 24, 40, 0.2), 0 8px 20px -8px rgba(63, 82, 214, 0.7);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --brand-ink: #aab4ff;
    --brand-50: rgba(79, 99, 231, 0.16);
    --brand-100: rgba(79, 99, 231, 0.26);
    --teal-ink: #5fd3c8;
    --teal-50: rgba(15, 154, 145, 0.16);
    --green-ink: #6fdc9f;
    --green-50: rgba(47, 191, 113, 0.15);
    --amber-ink: #f5c26f;
    --amber-50: rgba(242, 169, 59, 0.15);
    --red-ink: #ff8f8a;
    --red-50: rgba(229, 72, 77, 0.15);
    --ink: #e9edf2;
    --ink-2: #c9d0d9;
    --muted: #9ba5b1;
    --faint: #6f7984;
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.14);
    --line-strong: #5d6772;
    --bg: #0b0e14;
    --surface: #12161e;
    --surface-2: #0e1219;
    --card: #121720;
    --card-2: #151b25;
    --ui-fill: #1c2330;
    --ui-fill-2: #252d3c;
    --header-bg: rgba(11, 14, 20, 0.78);
    --grid-line: rgba(255, 255, 255, 0.045);
    --glow-a: rgba(79, 99, 231, 0.28);
    --glow-a-2: rgba(79, 99, 231, 0.08);
    --glow-b: rgba(15, 154, 145, 0.2);
    --glow-b-2: rgba(15, 154, 145, 0.06);
    --night: #07090e;
    --night-2: #10141d;
    --night-3: #151a25;
    --gradient-text: linear-gradient(100deg, #93a0ff 8%, #6fb0f2 52%, #4fd1c5 96%);
    --shadow-s: 0 1px 2px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.02);
    --shadow-m: 0 2px 4px rgba(0, 0, 0, 0.3), 0 12px 24px -8px rgba(0, 0, 0, 0.5);
    --shadow-l: 0 2px 6px rgba(0, 0, 0, 0.3), 0 24px 48px -16px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 4px 12px rgba(0, 0, 0, 0.3), 0 48px 96px -32px rgba(0, 0, 0, 0.7);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --brand-ink: #aab4ff;
  --brand-50: rgba(79, 99, 231, 0.16);
  --brand-100: rgba(79, 99, 231, 0.26);
  --teal-ink: #5fd3c8;
  --teal-50: rgba(15, 154, 145, 0.16);
  --green-ink: #6fdc9f;
  --green-50: rgba(47, 191, 113, 0.15);
  --amber-ink: #f5c26f;
  --amber-50: rgba(242, 169, 59, 0.15);
  --red-ink: #ff8f8a;
  --red-50: rgba(229, 72, 77, 0.15);
  --ink: #e9edf2;
  --ink-2: #c9d0d9;
  --muted: #9ba5b1;
  --faint: #6f7984;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --line-strong: #5d6772;
  --bg: #0b0e14;
  --surface: #12161e;
  --surface-2: #0e1219;
  --card: #121720;
  --card-2: #151b25;
  --ui-fill: #1c2330;
  --ui-fill-2: #252d3c;
  --header-bg: rgba(11, 14, 20, 0.78);
  --grid-line: rgba(255, 255, 255, 0.045);
  --glow-a: rgba(79, 99, 231, 0.28);
  --glow-a-2: rgba(79, 99, 231, 0.08);
  --glow-b: rgba(15, 154, 145, 0.2);
  --glow-b-2: rgba(15, 154, 145, 0.06);
  --night: #07090e;
  --night-2: #10141d;
  --night-3: #151a25;
  --gradient-text: linear-gradient(100deg, #93a0ff 8%, #6fb0f2 52%, #4fd1c5 96%);
  --shadow-s: 0 1px 2px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.02);
  --shadow-m: 0 2px 4px rgba(0, 0, 0, 0.3), 0 12px 24px -8px rgba(0, 0, 0, 0.5);
  --shadow-l: 0 2px 6px rgba(0, 0, 0, 0.3), 0 24px 48px -16px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 4px 12px rgba(0, 0, 0, 0.3), 0 48px 96px -32px rgba(0, 0, 0, 0.7);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  overflow-x: clip;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

html.is-locked,
html.is-locked body {
  overflow: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul[class],
ol[class] {
  padding: 0;
  list-style: none;
}

b,
strong {
  font-weight: 600;
}

a {
  color: var(--brand-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(79, 99, 231, 0.22);
}

:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 3px;
  border-radius: 6px;
}

[data-theme="dark"] :focus-visible,
.on-dark :focus-visible,
.site-footer :focus-visible,
.dark-panel :focus-visible,
.cta-panel :focus-visible {
  outline-color: var(--brand-on-dark);
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--brand-600);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  translate: 0 -200%;
  transition: translate 0.3s var(--ease-out);
}

.skip-link:focus {
  translate: 0 0;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: calc(860px + var(--gutter) * 2);
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--fill {
  fill: currentColor;
  stroke: none;
}

.mono {
  font-family: var(--mono);
  font-size: 0.92em;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Type */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--brand-ink);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(2.125rem, 1.35rem + 3vw, 3.5rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.section-lead {
  max-width: 640px;
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.6;
  text-wrap: pretty;
}

.section {
  position: relative;
  padding-block: clamp(76px, 9.5vw, 128px);
}

.section--tight {
  padding-block: clamp(56px, 7vw, 96px);
}

.section--wash {
  background: linear-gradient(180deg, var(--bg), var(--surface-2) 25%, var(--surface-2) 75%, var(--bg));
}

.section-head {
  max-width: 780px;
  margin: 0 auto clamp(40px, 6vw, 72px);
  text-align: center;
}

.section-head .section-lead {
  margin-inline: auto;
}

.section-head--left {
  margin-inline: 0;
  text-align: left;
}

.section-head--left .section-lead {
  margin-inline: 0;
}

.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 24px 48px;
  align-items: end;
  max-width: none;
  text-align: left;
}

.section-head--split .section-lead {
  margin: 0;
}

@media (max-width: 859.98px) {
  .section-head--split {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Buttons */

.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 44px;
  padding: 0 1.2em;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 12px;
  background: none;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s, box-shadow 0.35s var(--ease-out), color 0.25s, translate 0.15s;
}

.btn--lg {
  min-height: 52px;
  padding: 0 1.5em;
  border-radius: 14px;
  font-size: 1rem;
}

.btn--sm {
  min-height: 40px;
  padding: 0 1em;
  border-radius: 10px;
  font-size: 0.875rem;
}

.btn--primary {
  background: var(--brand-600);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), var(--shadow-brand);
}

.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  translate: -120% 0;
  transition: translate 0.8s var(--ease-out);
}

.btn--primary:hover {
  background: var(--brand-700);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(16, 24, 40, 0.2), 0 14px 28px -10px rgba(63, 82, 214, 0.85);
}

.btn--primary:hover::after {
  translate: 120% 0;
}

.btn--secondary {
  border-color: var(--line-2);
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow-s);
}

.btn--secondary:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-m);
}

.btn--quiet {
  color: var(--ink-2);
}

.btn--quiet:hover {
  background: var(--ui-fill);
}

.btn--on-dark {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.btn--on-dark:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

.btn--icon {
  width: 44px;
  padding: 0;
}

.btn__arrow {
  transition: translate 0.3s var(--ease-out);
}

.btn:hover .btn__arrow {
  translate: 3px 0;
}

.btn:active {
  translate: 0 1px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-ink);
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.text-link .icon {
  width: 1em;
  height: 1em;
  transition: translate 0.3s var(--ease-out);
}

.text-link:hover .icon {
  translate: 2px 0;
}

/* Pills */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--ui-fill);
  color: var(--ink-2);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.pill--brand {
  background: var(--brand-50);
  color: var(--brand-ink);
}

.pill--teal {
  background: var(--teal-50);
  color: var(--teal-ink);
}

.pill--live {
  background: var(--green-50);
  color: var(--green-ink);
}

.pill--amber {
  background: var(--amber-50);
  color: var(--amber-ink);
}

.pill--outline {
  border: 1px solid var(--line-2);
  background: transparent;
}

.live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--green);
}

@media (prefers-reduced-motion: no-preference) {
  .live-dot::after {
    animation: ping 2s var(--ease-out) infinite;
  }
}

@keyframes ping {
  from {
    opacity: 0.6;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(2.6);
  }
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: height 0.4s var(--ease-out);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  opacity: 0;
  transition: opacity 0.35s;
}

.site-header.is-scrolled::before,
html.menu-open .site-header::before {
  opacity: 1;
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}

.brand__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--brand-100);
}

.brand__name {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.brand__role {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0;
}

.nav {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 2px;
  translate: -50% -50%;
}

.nav__link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.nav__link:hover,
.nav__link.is-current {
  color: var(--ink);
}

.nav__link.is-current::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
}

.nav__pill {
  position: absolute;
  top: 50%;
  left: 0;
  width: var(--w, 0px);
  height: 36px;
  border-radius: 10px;
  background: var(--ui-fill);
  opacity: 0;
  translate: var(--x, 0px) -50%;
  transition: translate 0.4s var(--ease-out), width 0.4s var(--ease-out), opacity 0.25s;
  pointer-events: none;
}

.nav__pill.is-snap {
  transition: opacity 0.25s;
}

.nav.is-hovering .nav__pill {
  opacity: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.theme-toggle .i-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .i-sun {
  display: block;
}

[data-theme="dark"] .theme-toggle .i-moon {
  display: none;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: none;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px auto;
  border-radius: 2px;
  background: var(--ink);
  transition: translate 0.35s var(--ease-out), rotate 0.35s var(--ease-out);
}

html.menu-open .burger span:first-child {
  translate: 0 2.5px;
  rotate: 45deg;
}

html.menu-open .burger span:last-child {
  translate: 0 -2.5px;
  rotate: -45deg;
}

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 49;
  display: flex;
  flex-direction: column;
  padding: 16px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  overflow-y: auto;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0s linear 0.3s;
}

html.menu-open .mobile-menu {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s, visibility 0s;
}

.mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-decoration: none;
  opacity: 0;
  translate: 0 10px;
  transition: opacity 0.4s, translate 0.5s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 45ms + 40ms);
}

html.menu-open .mobile-menu__link {
  opacity: 1;
  translate: 0 0;
}

.mobile-menu__foot {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

@media (min-width: 1024px) {
  :root {
    --header-h: 76px;
    --header-now: var(--header-h);
  }

  .site-header.is-scrolled {
    height: 64px;
  }

  html.header-scrolled {
    --header-now: 64px;
  }

  .mobile-menu {
    display: none;
  }
}

@media (max-width: 1023.98px) {
  .nav,
  .header-actions .header-cta {
    display: none;
  }

  .burger {
    display: block;
  }
}

@media (max-width: 399.98px) {
  .brand__role {
    display: none;
  }
}

/* Hero */

.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(32px, 5.5vw, 68px)) 0 clamp(48px, 7vw, 96px);
  overflow: clip;
}

.hero__bg,
.case-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 0%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 60% at 50% 0%, #000 20%, transparent 72%);
}

.bg-glow {
  position: absolute;
  left: 50%;
  border-radius: 50%;
  will-change: transform;
}

.bg-glow--a {
  top: -340px;
  width: 1100px;
  height: 760px;
  margin-left: -860px;
  background: radial-gradient(closest-side, var(--glow-a), var(--glow-a-2) 55%, transparent);
}

.bg-glow--b {
  top: -300px;
  width: 1000px;
  height: 700px;
  margin-left: -140px;
  background: radial-gradient(closest-side, var(--glow-b), var(--glow-b-2) 55%, transparent);
}

@media (prefers-reduced-motion: no-preference) {
  .bg-glow--a {
    animation: drift-a 22s ease-in-out infinite alternate;
  }

  .bg-glow--b {
    animation: drift-b 26s ease-in-out infinite alternate;
  }
}

@keyframes drift-a {
  to {
    transform: translate3d(160px, 60px, 0) scale(1.08);
  }
}

@keyframes drift-b {
  to {
    transform: translate3d(-180px, 80px, 0) scale(0.94);
  }
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.announce {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  margin-bottom: 28px;
  padding: 4px 14px 4px 6px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 70%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: var(--shadow-s);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.announce:hover {
  border-color: rgba(79, 99, 231, 0.4);
  box-shadow: 0 0 0 4px rgba(79, 99, 231, 0.08), var(--shadow-s);
}

.announce__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--green-50);
  color: var(--green-ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.announce .icon {
  width: 1em;
  height: 1em;
  transition: translate 0.3s var(--ease-out);
}

.announce:hover .icon {
  translate: 2px 0;
}

.hero__title {
  max-width: 15.5em;
  font-size: clamp(2.5rem, 1.1rem + 5.2vw, 4.75rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero__lead {
  max-width: 660px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.25rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.hero__lead strong {
  color: var(--ink);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__meta .icon {
  width: 1.1em;
  height: 1.1em;
  color: var(--brand-ink);
}

@media (prefers-reduced-motion: no-preference) {
  .hero__in {
    animation: hero-in 1.1s var(--ease-out) both;
    animation-delay: calc(var(--d, 0) * 90ms + 80ms);
  }

  .hero__stage.hero__in {
    animation-name: stage-in;
    animation-duration: 1.4s;
  }
}

@keyframes hero-in {
  from {
    opacity: 0;
    translate: 0 18px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes stage-in {
  from {
    opacity: 0;
    translate: 0 56px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@media (max-width: 479.98px) {
  .hero__actions .btn {
    flex: 1 1 100%;
  }
}

/* Hero stage: real HTML mocks scaled with container units */

.hero__stage {
  position: relative;
  margin-top: clamp(44px, 6vw, 72px);
  perspective: 2200px;
}

.hero__stage::before {
  content: "";
  position: absolute;
  inset: 10% 8% -4%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow-a), transparent);
  filter: blur(20px);
}

.scene-tilt {
  container: scene / inline-size;
  transform: rotateY(calc(var(--mx, 0) * 3deg)) rotateX(calc(var(--my, 0) * -2.4deg));
  transform-style: preserve-3d;
  transition: transform 1s var(--ease-out);
}

.scene {
  --n: 80;
  position: relative;
  height: 44em;
  font-size: calc(100cqi / var(--n));
  line-height: 1.35;
}

.scene__label {
  position: absolute;
  top: -2.3em;
  left: 0.2em;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--muted);
  font-size: 0.95em;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.scene__label i {
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--c, var(--brand));
}

.scene__win {
  position: absolute;
  top: 2.6em;
  left: 13em;
  width: 50em;
}

.scene__phone {
  position: absolute;
  top: 6em;
  right: 1.5em;
  width: 17em;
}

.scene__phone .scene__label {
  left: auto;
  right: 0.2em;
}

.scene__chat {
  position: absolute;
  top: 17em;
  left: 0;
  width: 22em;
}

.scene__toast {
  position: absolute;
  bottom: 0.6em;
  left: 27em;
}

@container scene (max-width: 899.98px) {
  .scene {
    --n: 64;
    height: 42em;
  }

  .scene__win {
    left: 0;
    width: 46em;
  }

  .scene__phone {
    right: 0;
    width: 17em;
  }

  .scene__chat {
    display: none;
  }

  .scene__toast {
    left: 2em;
  }
}

@container scene (max-width: 559.98px) {
  .scene {
    --n: 36;
    height: 62em;
  }

  .scene__win {
    top: 2.4em;
    width: 36em;
  }

  .scene__win .till__grid {
    display: none;
  }

  .scene__win .till {
    grid-template-columns: minmax(0, 1fr);
  }

  .scene__phone {
    top: 31em;
    right: 0.5em;
    width: 14em;
  }

  .scene__toast {
    left: 0;
    bottom: 4em;
  }
}

.float {
  --depth: 14;
  transform: translate3d(calc(var(--mx, 0) * var(--depth) * 1px), calc(var(--my, 0) * var(--depth) * 1px), 0);
  transition: transform 1s var(--ease-out);
}

@media (prefers-reduced-motion: no-preference) {
  .float--bob > * {
    animation: bob 5s ease-in-out infinite alternate;
  }

  .float--bob-late > * {
    animation: bob 6s ease-in-out -2s infinite alternate;
  }
}

@keyframes bob {
  from {
    translate: 0 -0.25em;
  }
  to {
    translate: 0 0.35em;
  }
}

/* Browser window frame (reusable for any mock) */

.win {
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 1.1em;
  background: var(--card);
  box-shadow: var(--shadow-xl), 0 0 0 0.45em color-mix(in srgb, var(--card) 55%, transparent);
}

.win__bar {
  display: flex;
  align-items: center;
  gap: 0.8em;
  height: 2.6em;
  padding: 0 1em;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.win__dots {
  display: flex;
  gap: 0.4em;
}

.win__dots i {
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  background: var(--ui-fill-2);
}

.win__url {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  margin-inline: auto;
  padding: 0.3em 1em;
  border-radius: 999px;
  background: var(--ui-fill);
  color: var(--muted);
  font-size: 0.85em;
}

.win__url .icon {
  width: 1em;
  height: 1em;
  color: var(--green);
}

.win__body {
  padding: 1.2em;
}

/* Phone frame */

.phone {
  position: relative;
  padding: 0.55em;
  border-radius: 2.4em;
  background: #0f1319;
  box-shadow: var(--shadow-xl), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone::before {
  content: "";
  position: absolute;
  top: 1.05em;
  left: 50%;
  z-index: 2;
  width: 4.4em;
  height: 1.2em;
  border-radius: 999px;
  background: #0f1319;
  translate: -50% 0;
}

.phone__screen {
  overflow: hidden;
  min-height: 30em;
  border-radius: 1.95em;
  background: var(--card);
  padding: 2.8em 0.9em 1em;
}

/* UI primitives for mocks */

.ui-row {
  display: flex;
  align-items: center;
  gap: 0.7em;
}

.ui-line {
  display: block;
  width: var(--w, 100%);
  height: 0.55em;
  border-radius: 999px;
  background: var(--ui-fill-2);
}

.ui-line--dark {
  background: color-mix(in srgb, var(--ink) 70%, transparent);
}

.ui-title {
  color: var(--ink);
  font-size: 1.05em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.ui-sub {
  color: var(--muted);
  font-size: 0.82em;
}

.ui-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.2em 0.6em;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c, var(--brand)) 13%, transparent);
  color: var(--c-ink, var(--c, var(--brand-ink)));
  font-size: 0.75em;
  font-weight: 700;
  white-space: nowrap;
}

.ui-avatar {
  display: grid;
  place-items: center;
  width: 2.3em;
  height: 2.3em;
  flex: none;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c, var(--brand)) 16%, var(--card));
  color: var(--c, var(--brand-ink));
  font-size: 0.85em;
  font-weight: 700;
}

.ui-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.3em 0.7em;
  border: 1px solid var(--line-2);
  border-radius: 0.6em;
  background: var(--surface-2);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 0.78em;
  white-space: nowrap;
}

.ui-chip::before {
  content: "";
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--c, var(--teal));
}

.ui-bubble {
  max-width: 88%;
  padding: 0.65em 0.9em;
  border-radius: 1.1em 1.1em 1.1em 0.35em;
  background: var(--ui-fill);
  color: var(--ink);
  font-size: 0.9em;
  line-height: 1.4;
}

.ui-bubble--me {
  margin-left: auto;
  border-radius: 1.1em 1.1em 0.35em 1.1em;
  background: var(--brand-600);
  color: #fff;
}

.ui-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.35em;
  height: var(--h, 4em);
}

.ui-bars i {
  flex: 1;
  height: calc(var(--v, 0.5) * 100%);
  border-radius: 0.3em 0.3em 0.1em 0.1em;
  background: var(--c, var(--brand));
  opacity: 0.85;
  transform-origin: 50% 100%;
}

.ui-bars i:nth-child(even) {
  opacity: 0.55;
}

.ui-tile {
  padding: 0.7em;
  border: 1px solid var(--line);
  border-radius: 0.8em;
  background: var(--card-2);
}

.ui-tile b {
  display: block;
  color: var(--ink);
  font-size: 1.15em;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.ui-tile span {
  color: var(--muted);
  font-size: 0.75em;
}

.ui-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  min-height: 2.4em;
  padding: 0 1em;
  border-radius: 0.7em;
  background: var(--brand-600);
  color: #fff;
  font-size: 0.85em;
  font-weight: 700;
}

.ch {
  width: 0.7em;
  height: 0.7em;
  flex: none;
  border-radius: 50%;
}

.ch--wa {
  background: #25d366;
}

.ch--ig {
  background: linear-gradient(135deg, #f9a03f, #d62976 55%, #962fbf);
}

.ch--fb {
  background: #1877f2;
}

/* Hero mock pieces */

.till {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 19em;
  gap: 1em;
}

.till__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6em;
  align-content: start;
}

.till__grid .ui-tile {
  display: grid;
  gap: 0.45em;
  min-height: 5.4em;
}

.till__grid .ui-tile i {
  width: 1.8em;
  height: 1.8em;
  border-radius: 0.5em;
  background: color-mix(in srgb, var(--c, var(--brand)) 18%, transparent);
}

.till__sale {
  display: grid;
  gap: 0.55em;
  padding: 0.9em;
  border: 1px solid var(--line);
  border-radius: 0.9em;
  background: var(--surface-2);
}

.till__line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.2em 0.8em;
  padding-bottom: 0.55em;
  border-bottom: 1px dashed var(--line-2);
  font-size: 0.86em;
}

.till__line b {
  color: var(--ink);
  font-weight: 600;
}

.till__line small {
  grid-column: 1;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.85em;
}

.till__line span {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.till__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: var(--ink);
  font-weight: 700;
}

.till__total b {
  font-size: 1.5em;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.till__pay {
  justify-content: space-between;
  min-height: 2.8em;
  background: var(--green);
  color: #06341b;
}

@media (prefers-reduced-motion: no-preference) {
  .till__line {
    animation: row-in 0.6s var(--ease-out) both;
    animation-delay: calc(1.2s + var(--k, 0) * 0.45s);
  }

  .till__pay {
    animation: pop 0.6s var(--ease-spring) both;
    animation-delay: 2.8s;
  }

  .scene__toast > * {
    animation: card-in 0.8s var(--ease-out) both;
    animation-delay: 3.4s;
  }

  .scene__chat .ui-chip,
  .scene__chat .ui-bubble:not(.ui-bubble--me) {
    animation: row-in 0.6s var(--ease-out) both;
    animation-delay: calc(1.6s + var(--k, 0) * 0.5s);
  }
}

@keyframes row-in {
  from {
    opacity: 0;
    translate: 0 10px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes pop {
  from {
    opacity: 0;
    scale: 0.85;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}

@keyframes card-in {
  from {
    opacity: 0;
    translate: 0 16px;
    scale: 0.98;
  }
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

.glass {
  border: 1px solid var(--line-2);
  border-radius: 1.1em;
  background: color-mix(in srgb, var(--card) 86%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: var(--shadow-l);
}

.chat-card {
  display: grid;
  gap: 0.6em;
  padding: 1em;
}

.chat-card__head {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding-bottom: 0.6em;
  border-bottom: 1px solid var(--line);
}

.chat-card__head .ui-avatar {
  background: var(--gradient);
  color: #fff;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.8em;
  padding: 0.8em 1.1em;
  white-space: nowrap;
}

.toast b {
  display: block;
  color: var(--ink);
  font-size: 0.95em;
}

.inbox {
  display: grid;
  gap: 0.15em;
}

.inbox__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6em;
}

.inbox__tabs {
  display: flex;
  gap: 0.4em;
  margin-bottom: 0.6em;
}

.inbox__tabs span {
  padding: 0.25em 0.7em;
  border-radius: 999px;
  background: var(--ui-fill);
  color: var(--muted);
  font-size: 0.72em;
  font-weight: 600;
}

.inbox__tabs span:first-child {
  background: var(--ink);
  color: var(--bg);
}

.inbox__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.6em;
  align-items: center;
  padding: 0.55em 0.3em;
  border-bottom: 1px solid var(--line);
}

.inbox__row > div {
  display: grid;
  gap: 0.35em;
}

.inbox__row .ui-avatar {
  position: relative;
}

.inbox__row .ui-avatar .ch {
  position: absolute;
  right: -0.1em;
  bottom: -0.1em;
  width: 0.8em;
  height: 0.8em;
  box-shadow: 0 0 0 0.15em var(--card);
}

.inbox__count {
  display: grid;
  place-items: center;
  min-width: 1.5em;
  height: 1.5em;
  padding: 0 0.35em;
  border-radius: 999px;
  background: var(--brand-600);
  color: #fff;
  font-size: 0.68em;
  font-weight: 700;
}

.inbox__pin {
  color: var(--faint);
  font-size: 0.7em;
}

/* Proof strip */

.strip {
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg), var(--surface-2));
}

.strip__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.strip__item {
  padding: clamp(22px, 3vw, 34px) clamp(14px, 2vw, 28px);
  border-left: 1px solid var(--line);
}

.strip__item:first-child {
  border-left: 0;
}

.metric__value {
  display: block;
  color: var(--ink);
  font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.metric__value small {
  font-size: 0.55em;
  letter-spacing: -0.01em;
}

.metric__label {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.metric__label b {
  color: var(--ink-2);
}

@media (max-width: 1023.98px) {
  .strip__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .strip__item:nth-child(3) {
    border-left: 0;
  }

  .strip__item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 379.98px) {
  .strip__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .strip__item {
    border-left: 0;
  }

  .strip__item + .strip__item {
    border-top: 1px solid var(--line);
  }
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.metric {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow-s);
}

.metric .metric__value {
  font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem);
}

.metric .metric__label {
  margin-top: 8px;
  font-size: 0.875rem;
}

/* Cards and spotlight */

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow-s);
  transition: translate 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.3s;
}

.card--spot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: radial-gradient(480px circle at var(--sx, 50%) var(--sy, 50%), rgba(79, 99, 231, 0.08), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.card--spot::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  padding: 1px;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--sx, 50%) var(--sy, 50%), rgba(79, 99, 231, 0.6), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.card--spot > * {
  position: relative;
  z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
  .card--spot:hover::before,
  .card--spot:hover::after {
    opacity: 1;
  }

  .card--lift:hover {
    translate: 0 -4px;
    box-shadow: var(--shadow-l);
  }
}

/* Work grid */

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.work-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.work-card--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
}

@supports (grid-template-rows: subgrid) {
  .work-card:not(.work-card--wide) {
    display: grid;
    grid-row: span 2;
    grid-template-rows: subgrid;
    row-gap: 0;
  }
}

.work-card--wide .work-card__stage {
  order: 2;
  min-height: 100%;
  margin: 12px 12px 12px 0;
}

.work-card__stage {
  --c: var(--brand);
  position: relative;
  container-type: inline-size;
  display: grid;
  place-items: center;
  min-height: 250px;
  margin: 12px 12px 0;
  padding: clamp(16px, 3vw, 32px);
  overflow: hidden;
  border-radius: 18px;
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--c) 14%, transparent), transparent 60%), radial-gradient(90% 80% at 0% 100%, color-mix(in srgb, var(--c-2, var(--teal)) 10%, transparent), transparent 60%), var(--surface-2);
}

.work-card__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 12%, transparent) 1.1px, transparent 1.3px);
  background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 10%, transparent 75%);
  opacity: 0.6;
}

.work-card__stage > * {
  position: relative;
}

.mini {
  width: 100%;
  font-size: clamp(9.5px, 2.75cqi, 14px);
  line-height: 1.35;
  transition: translate 0.6s var(--ease-out), rotate 0.6s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .work-card:hover .mini {
    translate: 0 -4px;
  }
}

.card--spot > .work-card__body {
  position: static;
}

.work-card__body > :not(.work-card__title) {
  position: relative;
  z-index: 1;
}

.work-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: clamp(20px, 2.6vw, 30px);
}

.work-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.work-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.work-card--wide .work-card__title {
  font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem);
  letter-spacing: -0.03em;
}

.work-card__title a {
  color: inherit;
  text-decoration: none;
}

.work-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: var(--radius-card);
}

.work-card__title a:focus-visible {
  outline: none;
}

.work-card__title a:focus-visible::after {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
}

.work-card__kind {
  margin-top: -6px;
  color: var(--brand-ink);
  font-size: 0.9375rem;
  font-weight: 600;
}

.work-card__text {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.work-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  color: var(--muted);
  font-size: 0.875rem;
}

.work-card__facts b {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.work-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 8px;
}

.work-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-ink);
  font-size: 0.9375rem;
  font-weight: 600;
}

.work-card__more .icon {
  width: 1em;
  height: 1em;
  transition: translate 0.3s var(--ease-out);
}

.work-card:hover .work-card__more .icon {
  translate: 3px 0;
}

.work-card__ext {
  position: relative;
  z-index: 3;
}

.work-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 3;
}

@media (max-width: 899.98px) {
  .work-card--wide {
    display: flex;
  }

  .work-card--wide .work-card__stage {
    order: 0;
    min-height: 250px;
    margin: 12px 12px 0;
  }
}

@media (max-width: 759.98px) {
  .work-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.stack-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stack-chips li {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
}

.stack-chips--lg li {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.9375rem;
}

/* More projects list */

.project-list {
  border-top: 1px solid var(--line);
}

.project-list__item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.4fr) auto;
  gap: 8px 24px;
  align-items: center;
  padding: 22px 8px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s;
}

.project-list__item:hover {
  background: var(--surface-2);
}

.project-list__name {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.project-list__name a {
  color: var(--ink);
  text-decoration: none;
}

.project-list__name a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.project-list__name small {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0;
}

.project-list__role {
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.project-list__role span {
  display: block;
  color: var(--muted);
  font-size: 0.8125rem;
}

.project-list__stack {
  color: var(--muted);
  font-size: 0.875rem;
}

.project-list__arrow {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--ink-2);
  transition: background-color 0.3s, color 0.3s, translate 0.3s var(--ease-out);
}

.project-list__item:hover .project-list__arrow {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
  translate: 3px 0;
}

@media (max-width: 759.98px) {
  .project-list__item {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .project-list__role,
  .project-list__stack {
    grid-column: 1;
  }

  .project-list__arrow {
    grid-column: 2;
    grid-row: 1 / span 3;
  }
}

/* Dark panel */

.dark-panel,
.cta-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--night);
  color: var(--night-text);
}

.dark-panel {
  margin-inline: clamp(8px, 1.6vw, 24px);
  border-radius: clamp(24px, 3vw, 40px);
}

.dark-panel__bg,
.cta-panel__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.dark-panel__bg::before,
.cta-panel__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 10%, transparent 75%);
}

.dark-panel__bg::after,
.cta-panel__bg::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 900px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(79, 99, 231, 0.36), rgba(15, 154, 145, 0.18) 50%, transparent);
}

@media (prefers-reduced-motion: no-preference) {
  .dark-panel__bg::after,
  .cta-panel__bg::after {
    animation: drift-b 24s ease-in-out infinite alternate;
  }
}

.on-dark .eyebrow,
.dark-panel .eyebrow,
.cta-panel .eyebrow {
  color: var(--brand-on-dark);
}

.on-dark .section-title,
.dark-panel .section-title,
.cta-panel .section-title {
  color: var(--night-head);
}

.on-dark .section-lead,
.dark-panel .section-lead,
.cta-panel .section-lead {
  color: var(--night-text);
}

.on-dark .text-gradient,
.dark-panel .text-gradient,
.cta-panel .text-gradient {
  background-image: linear-gradient(100deg, #93a0ff 8%, #6fb0f2 52%, #4fd1c5 96%);
}

.ai {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.ai__points {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.ai__point {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.ai__point-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--brand-on-dark);
}

.ai__point-icon .icon {
  width: 18px;
  height: 18px;
}

.ai__point b {
  display: block;
  color: var(--night-head);
  font-size: 1rem;
}

.ai__point p {
  color: var(--night-text);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.ai__point .pill {
  min-height: 20px;
  margin-left: 6px;
  padding: 0 8px;
  font-size: 0.6875rem;
  vertical-align: 2px;
}

.dark-panel .pill {
  background: rgba(255, 255, 255, 0.08);
  color: #d5dbe1;
}

.on-dark .pill--live,
.dark-panel .pill--live {
  background: rgba(47, 191, 113, 0.14);
  color: #7ee2a8;
}

.dark-panel .pill--amber {
  background: rgba(242, 169, 59, 0.14);
  color: #f5c26f;
}

@media (max-width: 959.98px) {
  .ai {
    grid-template-columns: minmax(0, 1fr);
  }
}

.ai-demo {
  position: relative;
  padding: clamp(16px, 2.4vw, 24px);
  border-radius: 24px;
  background: linear-gradient(180deg, #141a24, #0f131a);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
  color: #d5dbe1;
}

.ai-demo::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(163, 173, 255, 0.55), rgba(255, 255, 255, 0.07) 38%, rgba(255, 255, 255, 0.05) 62%, rgba(79, 209, 197, 0.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

.ai-demo__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.ai-demo__tab {
  position: relative;
  min-height: 36px;
  padding: 0 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #d5dbe1;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

.ai-demo__tab:hover {
  border-color: rgba(255, 255, 255, 0.24);
}

.ai-demo__tab[aria-pressed="true"] {
  border-color: rgba(163, 173, 255, 0.45);
  background: rgba(79, 99, 231, 0.2);
  color: #fff;
}

.ai-demo__tab .ai-demo__progress {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #a3adff, #4fd1c5);
  transform: scaleX(0);
  transform-origin: 0 50%;
  opacity: 0;
}

.ai-demo.is-auto .ai-demo__tab[aria-pressed="true"] .ai-demo__progress {
  opacity: 1;
  animation: tab-progress var(--turn-ms, 8000ms) linear forwards;
}

.ai-demo.is-paused .ai-demo__tab[aria-pressed="true"] .ai-demo__progress {
  animation-play-state: paused;
}

@keyframes tab-progress {
  to {
    transform: scaleX(1);
  }
}

.ai-demo__stage {
  display: grid;
}

.ai-turn {
  grid-area: 1 / 1;
  display: grid;
  align-content: start;
  gap: 12px;
  visibility: hidden;
  opacity: 0;
  translate: 0 12px;
  transition: opacity 0.4s, translate 0.6s var(--ease-out), visibility 0s linear 0.4s;
}

.ai-turn.is-active {
  visibility: visible;
  opacity: 1;
  translate: 0 0;
  transition: opacity 0.5s 0.05s, translate 0.7s var(--ease-out), visibility 0s;
}

.ai-turn__product {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--night-faint);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ai-turn__q {
  justify-self: end;
  max-width: 88%;
  padding: 12px 16px;
  border-radius: 18px 18px 6px 18px;
  background: var(--brand-600);
  color: #fff;
  font-size: 0.9875rem;
  line-height: 1.45;
}

.ai-turn__q.is-typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  background: currentColor;
  vertical-align: -2px;
  animation: blink 0.9s steps(2, jump-none) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.ai-turn__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ai-turn__tools .ui-chip {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #c8d0da;
  font-size: 0.78rem;
}

.ai-turn__a {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px 18px 18px 6px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.ai-turn__tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ai-turn__tiles div {
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.ai-turn__tiles b {
  display: block;
  color: #fff;
  font-size: 1.125rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.ai-turn__tiles span {
  color: var(--night-faint);
  font-size: 0.75rem;
}

.ai-turn__bars {
  display: grid;
  gap: 8px;
}

.ai-turn__bars div {
  display: grid;
  grid-template-columns: 6.5em minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  font-size: 0.8125rem;
}

.ai-turn__bars i {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #a3adff, #4fd1c5);
  transform: scaleX(var(--v, 0.5));
  transform-origin: 0 50%;
}

.ai-turn__bars span:last-child {
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.ai-turn__note {
  color: var(--night-faint);
  font-size: 0.8125rem;
}

.ai-dots {
  display: inline-flex;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  justify-self: start;
}

.ai-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c8d0da;
  animation: dot 1.2s ease-in-out infinite;
}

.ai-dots i:nth-child(2) {
  animation-delay: 0.15s;
}

.ai-dots i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes dot {
  0%,
  60%,
  100% {
    translate: 0 0;
    opacity: 0.5;
  }
  30% {
    translate: 0 -5px;
    opacity: 1;
  }
}

.ai-turn [data-step] {
  transition: opacity 0.45s, translate 0.6s var(--ease-out);
}

.ai-demo.is-playing .ai-turn.is-active [data-step]:not(.is-shown) {
  opacity: 0;
  translate: 0 8px;
}

.ai-demo:not(.is-playing) .ai-dots,
.ai-turn .ai-dots:not(.is-shown) {
  display: none;
}

.ai-demo__foot {
  margin-top: 16px;
  color: var(--night-faint);
  font-size: 0.8125rem;
}

/* Skills */

.skills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 20px);
}

.skill-group {
  padding: clamp(20px, 2.4vw, 28px);
}

.skill-group__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--brand-ink);
  box-shadow: var(--shadow-s);
}

.icon-tile .icon {
  width: 20px;
  height: 20px;
}

.skill-group h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.skill-group p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

@media (max-width: 959.98px) {
  .skills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 599.98px) {
  .skills {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Timeline */

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 11px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand), var(--teal) 70%, var(--line-2));
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 8px 32px;
  padding-left: 44px;
}

.timeline__item::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 4px;
  width: 16px;
  height: 16px;
  border: 3px solid var(--bg);
  border-radius: 50%;
  background: var(--brand-600);
  box-shadow: 0 0 0 1px var(--brand-100);
}

.timeline__item--past::before {
  background: var(--card);
  box-shadow: 0 0 0 2px var(--line-strong);
}

.timeline__when {
  padding-top: 22px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.timeline__when .pill {
  margin-top: 8px;
}

.timeline__card {
  padding: clamp(20px, 2.4vw, 28px);
}

.timeline__card h3 {
  font-size: 1.3125rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.timeline__role {
  margin-top: 2px;
  color: var(--brand-ink);
  font-size: 0.9375rem;
  font-weight: 600;
}

.timeline__card ul:not([class]) {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-left: 0;
  list-style: none;
}

.timeline__card ul:not([class]) li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-2);
  font-size: 0.9875rem;
  line-height: 1.55;
}

.timeline__card ul:not([class]) li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.timeline__card .stack-chips {
  margin-top: 16px;
}

.timeline__card .stack-chips a {
  color: inherit;
  text-decoration: none;
}

.timeline__card .stack-chips a:hover {
  color: var(--brand-ink);
}

@media (max-width: 759.98px) {
  .timeline__item {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 36px;
  }

  .timeline::before {
    left: 7px;
  }

  .timeline__item::before {
    top: 4px;
    left: 0;
  }

  .timeline__when {
    padding-top: 0;
  }
}

/* Check list */

.check-list {
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--ink-2);
  line-height: 1.55;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-50);
}

.check-list li::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 7px;
  width: 6px;
  height: 9px;
  border: solid var(--brand-ink);
  border-width: 0 2px 2px 0;
  rotate: 45deg;
}

/* CTA / contact */

.cta-panel {
  padding-block: clamp(80px, 10vw, 136px);
  text-align: center;
}

.cta-panel .section-lead {
  margin-inline: auto;
}

.contact-email {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
  padding: 8px 8px 8px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.contact-email a {
  color: #fff;
  font-size: clamp(1.0625rem, 0.9rem + 0.9vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-email a:hover {
  text-decoration: underline;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.contact-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-top: 28px;
  color: var(--night-faint);
  font-size: 0.9375rem;
}

.contact-meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Footer */

.site-footer {
  padding: clamp(48px, 6vw, 72px) 0 calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--night-line);
  background: var(--night);
  color: var(--night-text);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
}

.site-footer .brand {
  color: #fff;
}

.site-footer .brand__avatar {
  box-shadow: 0 0 0 2px var(--night), 0 0 0 3.5px rgba(163, 173, 255, 0.35);
}

.site-footer .brand__role {
  color: var(--night-faint);
}

.site-footer__about {
  max-width: 380px;
  margin-top: 14px;
  font-size: 0.9375rem;
}

.site-footer h2 {
  margin-bottom: 10px;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 0 24px;
}

.site-footer__links--one {
  grid-template-columns: minmax(0, 1fr);
}

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--night-text);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer__links a:hover {
  color: #fff;
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--night-line);
  color: var(--night-faint);
  font-size: 0.875rem;
}

@media (max-width: 859.98px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .site-footer__grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 479.98px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Case page components */

.case-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(28px, 5vw, 64px)) 0 clamp(40px, 6vw, 80px);
  overflow: clip;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.back-link:hover {
  color: var(--ink);
}

.back-link .icon {
  width: 1em;
  height: 1em;
  transition: translate 0.3s var(--ease-out);
}

.back-link:hover .icon {
  translate: -3px 0;
}

.case-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.case-hero__grid--stacked {
  grid-template-columns: minmax(0, 1fr);
}

.case-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.case-hero__title {
  font-size: clamp(2.5rem, 1.4rem + 4.2vw, 4.25rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.case-hero__lead {
  max-width: 600px;
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.25rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.case-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.case-hero__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px 24px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.case-hero__meta dt {
  color: var(--faint);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case-hero__meta dd {
  margin-top: 4px;
  color: var(--ink);
  font-size: 0.9875rem;
  font-weight: 600;
  text-wrap: balance;
}

.case-hero__visual {
  container-type: inline-size;
  font-size: clamp(10px, 2.4cqi, 15px);
}

@media (max-width: 899.98px) {
  .case-hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.case-nav {
  position: sticky;
  top: calc(var(--header-now) - 1px);
  z-index: 20;
  transition: top 0.4s var(--ease-out);
  border-block: 1px solid var(--line);
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
}

.case-nav__list {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.case-nav__list::-webkit-scrollbar {
  display: none;
}

@media (max-width: 899.98px) {
  .case-nav__list {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 36px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 36px), transparent);
  }
}

.case-nav__list a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.case-nav__list a:hover,
.case-nav__list a.is-current {
  color: var(--ink);
  border-bottom-color: var(--brand);
}

.case-section {
  padding-block: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--line);
}

.case-section:first-of-type {
  border-top: 0;
}

.case-section__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
  gap: 24px clamp(32px, 5vw, 72px);
}

.case-section__head {
  align-self: start;
}

@media (min-width: 900px) {
  .case-section__head {
    position: sticky;
    top: calc(var(--header-h) + 72px);
  }
}

.case-section__title {
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.case-section__body {
  display: grid;
  gap: 20px;
  color: var(--ink-2);
}

.case-section__body > p {
  max-width: 680px;
  line-height: 1.65;
}

.case-section__body h3 {
  margin-top: 8px;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.case-section--dark {
  margin-inline: clamp(8px, 1.6vw, 24px);
  padding-inline: 0;
  border: 0;
  border-radius: clamp(24px, 3vw, 40px);
}

@media (max-width: 899.98px) {
  .case-section__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 32px;
}

.feature-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature h3,
.feature__title {
  margin-top: 14px;
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.feature p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

@media (max-width: 899.98px) {
  .feature-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 559.98px) {
  .feature-grid,
  .feature-grid--3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.gallery--1 {
  grid-template-columns: minmax(0, 1fr);
}

.gallery--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery figure {
  container-type: inline-size;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-2);
}

.gallery figure > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.gallery__mock {
  padding: clamp(14px, 4cqi, 28px);
  font-size: clamp(9.5px, 2.6cqi, 14px);
}

.gallery figcaption {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

.gallery figcaption b {
  color: var(--ink);
}

@media (max-width: 759.98px) {
  .gallery,
  .gallery--3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.note {
  padding: 18px 20px;
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--amber);
  border-radius: 14px;
  background: var(--amber-50);
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.note b {
  color: var(--ink);
}

.next-project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: clamp(24px, 4vw, 44px);
  color: var(--ink);
  text-decoration: none;
}

.next-project__label {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.next-project__title {
  margin-top: 6px;
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.next-project__text {
  margin-top: 8px;
  color: var(--muted);
}

.next-project__arrow {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-600);
  color: #fff;
  transition: translate 0.4s var(--ease-out);
}

.next-project:hover .next-project__arrow {
  translate: 4px 0;
}

/* Reveal */

.reveal-ready [data-reveal] {
  opacity: 0;
  translate: 0 28px;
  transition: opacity 0.9s var(--ease-out), translate 1.1s var(--ease-out);
}

.reveal-ready [data-reveal].is-in {
  opacity: 1;
  translate: 0 0;
}

.reveal-ready [data-stagger]:not(.is-done) > * {
  opacity: 0;
  translate: 0 24px;
  transition: opacity 0.8s var(--ease-out), translate 1s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.3s;
  transition-delay: calc(var(--i, 0) * 80ms);
}

.reveal-ready [data-stagger].is-in:not(.is-done) > * {
  opacity: 1;
  translate: 0 0;
}

.scroll-progress {
  display: none;
}

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .scroll-progress {
      display: block;
      position: fixed;
      inset: 0 0 auto;
      z-index: 60;
      height: 2px;
      background: var(--gradient);
      transform-origin: 0 50%;
      animation: grow-x linear both;
      animation-timeline: scroll(root block);
    }
  }
}

@keyframes grow-x {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }

  .bg-glow,
  .dark-panel__bg::after,
  .cta-panel__bg::after,
  .float,
  .float > *,
  .live-dot::after,
  .ai-dots i {
    animation: none !important;
  }

  .scene-tilt,
  .float {
    transform: none !important;
  }
}

@media print {
  .site-header,
  .mobile-menu,
  .scroll-progress,
  .hero__stage,
  .bg-glow {
    display: none !important;
  }

  .reveal-ready [data-reveal],
  .reveal-ready [data-stagger] > * {
    opacity: 1 !important;
    translate: none !important;
  }
}

/* Mini mocks inside work cards and galleries */

.chat-card .ui-chip {
  justify-self: start;
}

.chat-card .ui-bubble {
  max-width: 92%;
}

.mini .win {
  border-radius: 0.9em;
  box-shadow: var(--shadow-l);
}

.mini .win__bar {
  height: 2.2em;
}

.mini .win__body {
  padding: 0.9em;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
  gap: 0.7em;
}

.mini-stack {
  display: grid;
  gap: 0.5em;
  align-content: start;
}

.mini-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6em;
}

.mini-table {
  display: grid;
  font-size: 0.86em;
}

.mini-table > div {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 0.6em;
  align-items: center;
  padding: 0.55em 0.2em;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.mini-table > div:first-child {
  color: var(--faint);
  font-size: 0.8em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mini-table .ui-badge {
  justify-self: start;
}

.mini-lane {
  display: grid;
  align-content: start;
  gap: 0.45em;
  padding: 0.55em;
  border-radius: 0.8em;
  background: var(--ui-fill);
}

.mini-lane__head {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mini-lane__head b {
  color: var(--ink);
}

.mini-ticket {
  display: grid;
  gap: 0.3em;
  padding: 0.5em 0.6em;
  border: 1px solid var(--line);
  border-radius: 0.6em;
  background: var(--card);
  box-shadow: var(--shadow-s);
  font-size: 0.8em;
}

.mini-ticket b {
  color: var(--ink);
  font-weight: 700;
}

.mini-meter {
  height: 0.5em;
  overflow: hidden;
  border-radius: 999px;
  background: var(--ui-fill-2);
}

.mini-meter i {
  display: block;
  width: calc(var(--v, 0.5) * 100%);
  height: 100%;
  border-radius: inherit;
  background: var(--gradient);
}

.mini-screen {
  position: relative;
  display: grid;
  gap: 0.3em;
  padding: 0.5em;
  aspect-ratio: 16 / 8;
  border-radius: 0.5em;
  background: var(--ui-fill);
}

.redact {
  display: grid;
  place-items: center;
  padding: 0.3em;
  border-radius: 0.3em;
  background: #0b0e14;
  color: #fff;
  font-size: 0.62em;
  font-weight: 600;
  text-align: center;
}

.rack {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.3em;
}

.rack i {
  aspect-ratio: 1;
  border-radius: 0.25em;
  background: var(--c, var(--brand));
  opacity: var(--v, 0.18);
}

.flow {
  display: grid;
  align-content: center;
}

.flow__node {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.5em 0.7em;
  border: 1px solid var(--line-2);
  border-radius: 0.6em;
  background: var(--card);
  box-shadow: var(--shadow-s);
  color: var(--ink);
  font-size: 0.8em;
  font-weight: 600;
}

.flow__node i {
  width: 0.65em;
  height: 0.65em;
  flex: none;
  border-radius: 0.2em;
  background: var(--c, var(--brand));
}

.flow__link {
  width: 2px;
  height: 0.8em;
  margin-left: 1.05em;
  background: var(--line-strong);
  opacity: 0.6;
}

.mini .phone {
  padding: 0.4em;
  border-radius: 1.8em;
}

.mini .phone::before {
  top: 0.8em;
  width: 3.4em;
  height: 0.9em;
}

.mini .phone__screen {
  min-height: 0;
  padding: 2.1em 0.6em 0.8em;
  border-radius: 1.45em;
}

.hub {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5em;
}

.hub__item {
  display: grid;
  gap: 0.25em;
  justify-items: start;
  padding: 0.55em 0.65em;
  border: 1px solid var(--line);
  border-radius: 0.7em;
  background: var(--card);
  box-shadow: var(--shadow-s);
}

.hub__item b {
  color: var(--ink);
  font-size: 0.85em;
}

.hub__core {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.8em;
  border-radius: 0.8em;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
}

.hub__core i {
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  background: var(--c, var(--brand));
}
