/* ShopDoc Studios — site styles */

/* ============ Tokens ============ */
:root {
  --bg: #0d1213;
  --tile: #151d1e;
  --tile-2: #1b2728;
  --tile-3: #24393d;
  --hair: #24393d;
  --hair-soft: rgba(36, 57, 61, 0.7);
  --text: #eef1f1;
  --text-2: #b1c0c2;
  --text-3: #7b979b;
  --accent: #00f4b9;
  --accent-2: #b5c9fa;
  --grad: linear-gradient(90deg, #00f4b9 0%, #a8e1ea 50%, #b5c9fa 100%);
  --ok: #00f4b9;
  --text-strong: #ffffff;
  --nav-bg: rgba(13, 18, 19, 0.78);
  --nav-link: rgba(238, 241, 241, 0.8);
  --sheet-bg: rgba(13, 18, 19, 0.97);
  --tabbar-bg: rgba(13, 18, 19, 0.9);
  --tabbar-fg: #8ec1c9;
  --ghost-hover: rgba(255, 255, 255, 0.08);
  --statement-dim: #607b7f;
  --list-fg: #d7d7db;
  --prose-fg: #cfd6d7;
  --field-bg: #0a0f10;
  --field-hover: rgba(255, 255, 255, 0.24);
  --option-bg: #1b2728;
  --error-fg: #ffb4ae;
  --scene-drop: 0 3em 8em -2em rgba(0, 0, 0, 0.9);
  --glow-opacity: 0.85;
  --logo-filter: none;
  --img-outline: rgba(255, 255, 255, 0.1);

  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI Variable Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --wide: 1180px;
  --narrow: 820px;
  --gutter: clamp(22px, 5vw, 48px);
  --space: clamp(96px, 13vw, 180px);
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 18px;
  --nav-h: 52px;
  --tabbar-h: 0px;
  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

@media (max-width: 767px) {
  :root {
    --tabbar-h: 64px;
  }
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.35s;
  animation-timing-function: var(--ease);
}

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 20px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.06;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

::selection {
  background: rgba(0, 244, 185, 0.35);
}

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 8px;
}

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

.skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--text);
  color: #000;
  font-size: 14px;
  font-weight: 600;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wide) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow {
  max-width: calc(var(--narrow) + var(--gutter) * 2);
}

.section {
  padding-block: var(--space);
  position: relative;
}

.section--flush-top {
  padding-top: 0;
}

.center {
  text-align: center;
}

.center .actions {
  justify-content: center;
}

.center.stack,
.center .stack {
  justify-items: center;
}

/* ============ Type ============ */
.eyebrow {
  display: block;
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 14px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: fit-content;
}

.center .eyebrow,
.hero .eyebrow,
.page-hero:not(.page-hero--left) .eyebrow {
  margin-inline: auto;
}

.headline-xl {
  font-size: clamp(48px, 8.4vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.headline-lg {
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.04;
  letter-spacing: -0.032em;
}

.headline {
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.headline-sm {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.1;
}

.lede {
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.38;
  font-weight: 500;
  letter-spacing: -0.018em;
  color: var(--text-2);
  max-width: 34em;
}

.center .lede {
  margin-inline: auto;
}

.lede strong,
.statement strong {
  color: var(--text);
  font-weight: 600;
}

.muted {
  color: var(--text-2);
}

.fine {
  font-size: 14px;
  color: var(--text-3);
}

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

.stack {
  display: grid;
  gap: 22px;
}

.stack--lg {
  gap: 32px;
}

/* ============ Buttons & links ============ */
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #0d1213;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.015em;
  white-space: nowrap;
  transition:
    background-color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.btn:hover {
  background: #5dffd2;
}

.btn:active {
  transform: scale(0.97);
}

.btn--sm {
  min-height: 32px;
  padding: 0 15px;
  font-size: 13px;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--hair);
}

.btn--ghost:hover {
  background: var(--ghost-hover);
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--accent-2);
  font-size: 17px;
  font-weight: 500;
  white-space: nowrap;
}

.more::after {
  content: '';
  width: 0.62em;
  height: 0.62em;
  margin-left: 0.28em;
  border-right: 1.6px solid currentColor;
  border-top: 1.6px solid currentColor;
  transform: rotate(45deg) translate(-1px, 1px);
  transition: transform 0.3s var(--ease);
}

.more:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.more:hover::after {
  transform: rotate(45deg) translate(1px, -1px);
}

/* ============ Global nav ============ */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition:
    transform 0.45s var(--ease),
    border-color 0.3s;
}

.nav.is-scrolled {
  border-color: var(--hair-soft);
}

@media (max-width: 767px) {
  .js .nav:not(.is-revealed):not(:focus-within) {
    transform: translateY(-101%);
  }
}

.nav__inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.nav__logo {
  justify-self: start;
}

.nav__inner > nav {
  justify-self: center;
}

.nav__logo img {
  height: 30px;
  width: auto;
}

.nav__logo img,
.sheet__top img,
.hero__brand,
.footer__brand img {
  filter: var(--logo-filter);
}

.nav__links {
  display: none;
  justify-content: center;
  gap: clamp(20px, 2.1vw, 34px);
  padding: 0;
  list-style: none;
}

.nav__links a {
  display: block;
  padding: 6px 0;
  font-size: 14.5px;
  white-space: nowrap;
  color: var(--nav-link);
  letter-spacing: -0.01em;
  transition: color 0.2s;
}

.nav__links a:hover,
.nav__links a[aria-current='page'] {
  color: var(--text-strong);
}

.nav__links a[aria-current='page'] {
  box-shadow: inset 0 -1px 0 currentColor;
}

.nav__end {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__menu {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--nav-link);
}

.nav__menu:hover {
  color: var(--text-strong);
}

.nav__menu span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  box-shadow: 0 -5px 0 currentColor;
  transform: translateY(2.5px);
}

.nav__cta {
  display: none;
}

@media (min-width: 768px) {
  .nav__cta {
    display: inline-flex;
  }
}

@media (min-width: 1100px) {
  .nav__links {
    display: flex;
  }

  .nav__menu {
    display: none;
  }
}

/* Menu sheet */
.sheet {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--sheet-bg);
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
  color: var(--text);
  overflow-y: auto;
}

.sheet::backdrop {
  background: transparent;
}

.sheet[open] {
  animation: sheet-in 0.5s var(--ease-out);
}

@keyframes sheet-in {
  from {
    opacity: 0;
  }
}

.sheet__inner {
  display: grid;
  gap: 40px;
  padding: 10px var(--gutter) calc(40px + env(safe-area-inset-bottom, 0px));
  max-width: 720px;
  margin-inline: auto;
}

.sheet__top {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sheet__close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-right: -8px;
}

.sheet__close span {
  position: relative;
  width: 18px;
  height: 18px;
}

.sheet__close span::before,
.sheet__close span::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transform: rotate(45deg);
}

.sheet__close span::after {
  transform: rotate(-45deg);
}

.sheet__links {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 4px;
}

.sheet__links a {
  display: block;
  padding: 6px 0;
  font-size: clamp(28px, 7vw, 36px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
}

.sheet__links a:hover,
.sheet__links a[aria-current='page'] {
  color: var(--text-strong);
}

.sheet[open] .sheet__links li {
  animation: sheet-item 0.6s var(--ease-out) both;
}

.sheet[open] .sheet__links li:nth-child(2) { animation-delay: 30ms; }
.sheet[open] .sheet__links li:nth-child(3) { animation-delay: 60ms; }
.sheet[open] .sheet__links li:nth-child(4) { animation-delay: 90ms; }
.sheet[open] .sheet__links li:nth-child(5) { animation-delay: 120ms; }
.sheet[open] .sheet__links li:nth-child(6) { animation-delay: 150ms; }
.sheet[open] .sheet__links li:nth-child(7) { animation-delay: 180ms; }
.sheet[open] .sheet__links li:nth-child(8) { animation-delay: 210ms; }

@keyframes sheet-item {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.sheet__meta {
  display: grid;
  gap: 6px;
  color: var(--text-2);
  font-size: 15px;
  border-top: 1px solid var(--hair-soft);
  padding-top: 24px;
}

/* ============ Mobile tab bar (sticky nav) ============ */
.tabbar {
  display: none;
}

@media (max-width: 767px) {
  .tabbar {
    display: block;
    position: fixed;
    inset: auto 0 0;
    z-index: 90;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--tabbar-bg);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid var(--hair-soft);
  }

  .tabbar ul {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: var(--tabbar-h);
    list-style: none;
    padding: 0 6px;
  }

  .tabbar a {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--tabbar-fg);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0;
  }

  .tabbar svg {
    width: 24px;
    height: 24px;
  }

  .tabbar a[aria-current='page'] {
    color: var(--accent);
  }
}

/* ============ Icons ============ */
.ico {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ico-badge {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(0, 244, 185, 0.18), rgba(181, 201, 250, 0.1));
  box-shadow: inset 0 0 0 1px rgba(0, 244, 185, 0.22);
  color: var(--accent);
}

.ico-badge .ico {
  width: 24px;
  height: 24px;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(56px, 9vw, 120px));
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.hero__copy {
  display: grid;
  justify-items: center;
  gap: 26px;
}

.hero__title {
  max-width: 11ch;
}

.hero .lede {
  max-width: 30em;
}

.hero__stage {
  position: relative;
  margin-top: clamp(56px, 8vw, 104px);
  padding-bottom: clamp(40px, 6vw, 80px);
}

.hero__glow {
  position: absolute;
  left: 50%;
  top: 30%;
  z-index: -1;
  width: min(1100px, 130vw);
  aspect-ratio: 2 / 1;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side at 35% 55%, rgba(0, 244, 185, 0.38), transparent),
    radial-gradient(closest-side at 65% 45%, rgba(181, 201, 250, 0.3), transparent),
    radial-gradient(closest-side at 50% 80%, rgba(124, 92, 190, 0.28), transparent);
  filter: blur(60px);
  opacity: var(--glow-opacity);
  pointer-events: none;
}

.hero__brand {
  width: 150px;
  height: auto;
  margin-bottom: 8px;
}

@media (min-width: 768px) {
  .hero__brand {
    display: none;
  }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero__stage .devices {
      animation: rise-in linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 35%;
    }

    .hero__glow {
      animation: glow-drift linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
  }
}

@keyframes rise-in {
  from {
    transform: perspective(1600px) rotateX(12deg) scale(0.92) translateY(24px);
  }
  to {
    transform: none;
  }
}

@keyframes glow-drift {
  from {
    transform: translateX(-50%) scale(0.85);
    opacity: 0.4;
  }
  50% {
    opacity: 0.9;
  }
  to {
    transform: translateX(-50%) scale(1.15);
    opacity: 0.3;
  }
}

/* ============ Statement (scroll-lit words) ============ */
.statement {
  font-size: clamp(30px, 4.4vw, 56px);
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -0.028em;
  color: var(--text);
  text-wrap: balance;
}

.statement .w {
  display: inline;
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .statement .w {
      animation: word-lit linear both;
      animation-timeline: view();
      animation-range: entry 55% cover 52%;
    }
  }
}

@keyframes word-lit {
  from {
    color: var(--statement-dim);
  }
  to {
    color: var(--text);
  }
}

/* ============ Pillars (three columns) ============ */
.pillars {
  display: grid;
  gap: 16px;
  margin-top: clamp(56px, 7vw, 88px);
}

@media (min-width: 900px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: clamp(28px, 3vw, 40px);
  border-radius: var(--r-xl);
  background: var(--tile);
}

.pillar h3 {
  font-size: clamp(28px, 2.6vw, 34px);
  margin-top: 10px;
}

.pillar p {
  color: var(--text-2);
}

.pillar ul {
  list-style: none;
  padding: 0;
  display: grid;
  border-top: 1px solid var(--hair-soft);
  margin-top: 6px;
}

.pillar li {
  padding: 11px 0;
  border-bottom: 1px solid var(--hair-soft);
  font-size: 15px;
  color: var(--list-fg);
}

/* ============ Bento ============ */
.bento {
  display: grid;
  gap: 16px;
  margin-top: clamp(56px, 7vw, 88px);
}

@media (min-width: 900px) {
  .bento {
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
  }

  .bento > :nth-child(1) { grid-column: span 7; }
  .bento > :nth-child(2) { grid-column: span 5; }
  .bento > :nth-child(3) { grid-column: span 5; }
  .bento > :nth-child(4) { grid-column: span 7; }
  .bento > :nth-child(5) { grid-column: span 6; }
  .bento > :nth-child(6) { grid-column: span 6; }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 560px;
  padding: clamp(28px, 3.4vw, 44px) clamp(28px, 3.4vw, 44px) 0;
  border-radius: var(--r-xl);
  background: var(--tile);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.6s var(--ease);
}

@media (hover: hover) {
  .card:hover {
    transform: scale(1.012);
  }
}

@media (max-width: 899px) {
  .card {
    min-height: 0;
  }

  .card__art {
    padding-top: 32px;
  }
}

.card__head {
  display: grid;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.card__kicker {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
}

.card__title {
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.12;
}

.card .more {
  margin-top: 8px;
  font-size: 16px;
}

.card__art {
  position: relative;
  margin-top: auto;
  padding-top: 36px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex: 1;
}

.card__art {
  container-type: inline-size;
}

.card__art .scene {
  font-size: min(9.5px, calc(100cqi / var(--w, 64)));
  margin-bottom: -1px;
}

.card::before {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 70%;
  z-index: -1;
  background: radial-gradient(60% 70% at 50% 100%, rgba(0, 244, 185, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}

@media (hover: hover) {
  .card:hover::before {
    opacity: 1;
  }
}

/* ============ Specs / lists ============ */
.specs {
  display: grid;
  list-style: none;
  padding: 0;
  column-gap: 40px;
}

@media (min-width: 700px) {
  .specs--2 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1000px) {
  .specs--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.specs li {
  position: relative;
  padding: 15px 0 15px 30px;
  border-top: 1px solid var(--hair-soft);
  font-size: 16px;
  line-height: 1.4;
  color: var(--list-fg);
}

.specs li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 19px;
  width: 14px;
  height: 8px;
  border-left: 1.7px solid var(--accent);
  border-bottom: 1.7px solid var(--accent);
  transform: rotate(-45deg);
}

.specs--x li::before {
  width: 12px;
  height: 12px;
  top: 19px;
  border: 0;
  transform: none;
  background:
    linear-gradient(45deg, transparent 45%, #ff6961 45% 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, #ff6961 45% 55%, transparent 55%);
}

.specs--x li {
  color: var(--text-2);
}

/* ============ Steps ============ */
.steps {
  display: grid;
  gap: 16px;
  list-style: none;
  padding: 0;
  counter-reset: step;
  margin-top: clamp(48px, 6vw, 72px);
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.steps li {
  counter-increment: step;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 36px 32px;
  border-radius: var(--r-lg);
  background: var(--tile);
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--text-3);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.steps h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
}

.steps p {
  color: var(--text-2);
  font-size: 16px;
}

/* ============ Split (do/don't, contact) ============ */
.split {
  display: grid;
  gap: 48px;
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
  }

  .split--wide-end {
    grid-template-columns: 0.8fr 1.2fr;
  }
}

.sticky-col {
  position: sticky;
  top: calc(var(--nav-h) + 40px);
}

@media (max-width: 959px) {
  .sticky-col {
    position: static;
  }
}

.label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: -0.005em;
  margin-bottom: 4px;
}

/* ============ FAQ ============ */
.faq {
  border-top: 1px solid var(--hair);
}

.faq details {
  border-bottom: 1px solid var(--hair);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  font-size: clamp(18px, 1.8vw, 21px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  transition: color 0.2s;
}

.faq summary:hover {
  color: var(--text-strong);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background:
    linear-gradient(currentColor, currentColor) center / 16px 1.6px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.6px 16px no-repeat;
  color: var(--text-2);
  transition: transform 0.4s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq__a {
  padding: 0 48px 26px 0;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.55;
  max-width: 68ch;
}

.faq__a strong {
  color: var(--text);
  font-weight: 600;
}

/* Answers open and close with their height and opacity together; browsers without
   ::details-content support simply snap open */
@media (prefers-reduced-motion: no-preference) {
  .faq details {
    interpolate-size: allow-keywords;
  }

  .faq details::details-content {
    block-size: 0;
    overflow: clip;
    transition:
      block-size 0.4s var(--ease-out),
      content-visibility 0.4s allow-discrete;
  }

  .faq details[open]::details-content {
    block-size: auto;
  }

  .faq details[open] .faq__a {
    animation: faq-open 0.4s var(--ease-out);
  }
}

@keyframes faq-open {
  from {
    opacity: 0;
  }
}

/* Search matches, painted with the CSS Custom Highlight API */
::highlight(faq-match) {
  background-color: color-mix(in srgb, var(--accent) 28%, transparent);
  color: var(--text-strong);
}

.faq-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-top: 36px;
}

.search {
  position: relative;
  width: min(100%, 520px);
}

.search input {
  width: 100%;
  height: 52px;
  padding: 0 20px 0 48px;
  border: 0;
  border-radius: 999px;
  background: var(--tile-2);
  box-shadow: inset 0 0 0 1px var(--hair-soft);
  font-size: 17px;
  color: var(--text);
  transition: box-shadow 0.2s;
}

.search input::placeholder {
  color: var(--text-3);
}

.search input:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow:
    inset 0 0 0 1.5px var(--accent-2),
    0 0 0 4px rgba(181, 201, 250, 0.18);
}

.search .ico {
  position: absolute;
  left: 17px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  color: var(--text-3);
}

.chipnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.chipnav a {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--tile-2);
  font-size: 14px;
  color: var(--list-fg);
  transition:
    background-color 0.2s,
    color 0.2s;
}

.chipnav a:hover {
  background: var(--tile-3);
  color: var(--text-strong);
}

.faq-group + .faq-group {
  margin-top: clamp(64px, 8vw, 96px);
}

.faq-group h2 {
  font-size: clamp(28px, 3vw, 40px);
  margin-bottom: 20px;
}

.faq-empty {
  text-align: center;
  color: var(--text-2);
  padding: 48px 0;
}

/* ============ CTA ============ */
.cta {
  position: relative;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.cta__glow {
  position: absolute;
  left: 50%;
  bottom: -40%;
  z-index: -1;
  width: min(1000px, 140vw);
  aspect-ratio: 2 / 1;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side at 40% 60%, rgba(0, 244, 185, 0.32), transparent),
    radial-gradient(closest-side at 62% 50%, rgba(124, 92, 190, 0.26), transparent);
  filter: blur(70px);
  pointer-events: none;
}

.cta .stack {
  justify-items: center;
}

/* ============ Page hero (inner) ============ */
.page-hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(64px, 9vw, 128px));
  padding-bottom: clamp(48px, 6vw, 80px);
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}

.page-hero .stack {
  justify-items: center;
}

.page-hero__title {
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  font-weight: 700;
  max-width: 14ch;
  margin-inline: auto;
}

.page-hero__title .eyebrow {
  font-size: clamp(17px, 1.6vw, 21px);
  letter-spacing: -0.01em;
  font-weight: 600;
  margin-bottom: 16px;
}

.page-hero--left {
  text-align: left;
}

.page-hero--left .stack {
  justify-items: start;
}

.page-hero--left .page-hero__title {
  margin-inline: 0;
  max-width: 16ch;
}

.showcase {
  display: flex;
  justify-content: center;
  margin-top: clamp(56px, 8vw, 96px);
  position: relative;
}

.showcase {
  container-type: inline-size;
}

.showcase > .scene {
  font-size: min(15px, calc(100cqi / var(--w, 64)));
}

.showcase .hero__glow {
  top: 20%;
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .showcase > .scene {
      animation: rise-in linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 40%;
    }
  }
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 8px;
}

.page-hero--left .crumbs {
  justify-content: flex-start;
}

.crumbs li + li::before {
  content: '›';
  margin-right: 6px;
}

.crumbs a:hover {
  color: var(--text);
}

/* In-page nav */
.localnav {
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hair-soft);
}

@media (max-width: 767px) {
  .localnav {
    top: 0;
  }
}

.localnav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 52px;
  overflow-x: auto;
  scrollbar-width: none;
}

.localnav__inner::-webkit-scrollbar {
  display: none;
}

.localnav__title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  margin-right: auto;
}

.localnav a:not(.btn) {
  font-size: 13px;
  color: var(--nav-link);
  white-space: nowrap;
}

.localnav a:not(.btn):hover {
  color: var(--text-strong);
}

@media (max-width: 767px) {
  .localnav__title {
    display: none;
  }

  .localnav .btn {
    display: none;
  }
}

/* Features (service stages) */
.feature {
  display: grid;
  gap: 40px;
  padding-block: clamp(72px, 9vw, 128px);
  border-top: 1px solid var(--hair-soft);
}

.feature:first-child {
  border-top: 0;
  padding-top: 0;
}

@media (min-width: 960px) {
  .feature {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
    align-items: start;
  }
}

.feature__intro {
  display: grid;
  gap: 18px;
  align-content: start;
}

@media (min-width: 960px) {
  .feature__intro {
    position: sticky;
    top: calc(var(--nav-h) + 52px + 40px);
  }
}

.feature__num {
  font-size: 14px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.feature__kicker {
  font-size: 17px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 6px;
}

.feature__title {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.06;
}

.feature__sub {
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--text-2);
  line-height: 1.5;
  max-width: 32em;
}

/* Related services */
.related {
  display: grid;
  gap: 12px;
  margin-top: 40px;
}

@media (min-width: 640px) {
  .related {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .related {
    grid-template-columns: repeat(5, 1fr);
  }
}

.related a {
  display: grid;
  gap: 18px;
  padding: 26px 24px;
  border-radius: var(--r-lg);
  background: var(--tile);
  transition:
    background-color 0.3s,
    transform 0.5s var(--ease);
}

@media (hover: hover) {
  .related a:hover {
    background: var(--tile-2);
    transform: translateY(-3px);
  }
}

.related strong {
  display: block;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.related span:not(.ico-badge) {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.4;
}

/* ============ Contact & forms ============ */
.contact-rows {
  display: grid;
  border-top: 1px solid var(--hair-soft);
}

.contact-rows > * {
  display: grid;
  gap: 2px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hair-soft);
}

.contact-rows small {
  font-size: 13px;
  color: var(--text-3);
}

.contact-rows strong {
  overflow-wrap: anywhere;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  word-break: break-word;
}

.contact-rows a strong {
  color: var(--text);
  transition: color 0.2s;
}

.contact-rows a:hover strong {
  color: var(--accent);
}

.form-panel {
  padding: clamp(28px, 4vw, 48px);
  border-radius: calc(14px + clamp(28px, 4vw, 48px));
  background: var(--tile);
}

.form-panel__title {
  font-size: clamp(26px, 2.6vw, 32px);
}

.form-panel__sub {
  color: var(--text-2);
  margin: 8px 0 32px;
}

.form {
  display: grid;
  gap: 14px;
}

.row {
  display: grid;
  gap: 14px;
}

@media (min-width: 620px) {
  .row {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  position: relative;
}

.field label {
  position: absolute;
  left: 17px;
  top: 17px;
  font-size: 17px;
  color: var(--text-3);
  pointer-events: none;
  transform-origin: left top;
  transition:
    transform 0.25s var(--ease),
    color 0.25s;
}

.field .input {
  width: 100%;
  height: 58px;
  padding: 24px 16px 8px;
  border: 0;
  border-radius: 14px;
  background: var(--field-bg);
  box-shadow: inset 0 0 0 1px var(--hair);
  color: var(--text);
  font-size: 17px;
  transition: box-shadow 0.2s;
  appearance: none;
}

.field textarea.input {
  height: auto;
  min-height: 150px;
  padding-top: 30px;
  resize: vertical;
  line-height: 1.45;
}

.field .input:hover {
  box-shadow: inset 0 0 0 1px var(--field-hover);
}

.field .input:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow:
    inset 0 0 0 1.5px var(--accent-2),
    0 0 0 4px rgba(181, 201, 250, 0.16);
}

.field .input:focus + label,
.field .input:not(:placeholder-shown) + label,
.field--select label {
  transform: translateY(-9px) scale(0.72);
  color: var(--text-2);
}

.field select.input {
  padding-right: 44px;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position:
    calc(100% - 23px) 27px,
    calc(100% - 18px) 27px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.field select.input:invalid {
  color: var(--text-3);
}

.field select option {
  background: var(--option-bg);
  color: var(--text);
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
}

.form__success {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 48px 12px;
  text-align: center;
  outline: none;
}

.form__check {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ok);
  color: #000;
}

.form__check .ico {
  width: 30px;
  height: 30px;
  stroke-width: 2.4;
}

.form__success h3 {
  font-size: 28px;
}

.form__success p {
  color: var(--text-2);
}

.form__errors {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 105, 97, 0.12);
  color: var(--error-fg);
  font-size: 15px;
}

/* ============ Legal ============ */
.legal-list {
  display: grid;
  border-top: 1px solid var(--hair);
  margin-top: 48px;
}

.legal-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--hair);
}

.legal-list strong {
  display: block;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.025em;
  transition: color 0.2s;
}

.legal-list span {
  display: block;
  margin-top: 4px;
  color: var(--text-2);
  font-size: 16px;
}

.legal-list a:hover strong {
  color: var(--accent);
}

.legal-list .more {
  flex-shrink: 0;
}

.doc {
  display: grid;
  gap: 48px;
}

@media (min-width: 1000px) {
  .doc {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 80px;
    align-items: start;
  }
}

.toc {
  display: grid;
  gap: 2px;
  font-size: 14px;
}

@media (min-width: 1000px) {
  .toc {
    position: sticky;
    top: calc(var(--nav-h) + 40px);
    max-height: calc(100vh - var(--nav-h) - 80px);
    overflow-y: auto;
  }
}

@media (max-width: 999px) {
  .toc {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .toc::-webkit-scrollbar {
    display: none;
  }

  .toc a {
    flex-shrink: 0;
    background: var(--tile-2);
    border-radius: 999px;
    padding: 8px 14px !important;
    white-space: nowrap;
  }

  .toc .label {
    display: none;
  }
}

.toc a {
  padding: 7px 0;
  color: var(--text-2);
  line-height: 1.35;
  transition: color 0.2s;
}

.toc a:hover {
  color: var(--text);
}

.prose {
  max-width: 68ch;
  color: var(--prose-fg);
  font-size: 17px;
  line-height: 1.7;
}

.prose > * + * {
  margin-top: 1.05em;
}

.prose h2 {
  margin-top: 2.4em;
  color: var(--text);
  font-size: clamp(24px, 2.6vw, 30px);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.prose h3 {
  margin-top: 1.8em;
  color: var(--text);
  font-size: 19px;
  letter-spacing: -0.015em;
}

.prose > :first-child {
  margin-top: 0;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose a {
  color: var(--accent-2);
  word-break: break-word;
}

.prose a:hover {
  text-decoration: underline;
}

/* ============ 404 ============ */
.lost {
  min-height: calc(100svh - var(--tabbar-h));
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) var(--gutter) 80px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.lost__code {
  font-size: clamp(120px, 24vw, 280px);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.06em;
  background: linear-gradient(180deg, var(--text) 20%, transparent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============ Footer ============ */
.footer {
  background: var(--tile);
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1.5;
  letter-spacing: -0.005em;
}

.footer__top {
  display: grid;
  gap: 28px;
  padding-block: 56px 36px;
  border-bottom: 1px solid var(--hair-soft);
}

@media (min-width: 900px) {
  .footer__top {
    grid-template-columns: 1.4fr repeat(4, 1fr);
    gap: 32px;
  }
}

.footer__brand {
  display: grid;
  gap: 14px;
  align-content: start;
}

.footer__brand img {
  width: 104px;
  height: auto;
}

.footer__brand p {
  max-width: 28em;
  font-size: 13px;
}

.footer h2 {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.005em;
  margin-bottom: 10px;
}

.footer ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer a:hover {
  color: var(--text);
  text-decoration: underline;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 18px 28px;
  color: var(--text-3);
}

.footer__bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
}

.footer__bottom nav a + a::before {
  content: '|';
  margin: 0 10px;
  color: var(--hair);
}

/* ============ Reveal ============ */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition:
      opacity 1.1s var(--ease),
      transform 1.1s var(--ease);
    transition-delay: calc(var(--d, 0) * 110ms);
  }

  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
}

/* =====================================================================
   Scenes — interface illustrations built in HTML/CSS.
   All sizes are in em so a scene scales with its container's font-size.
   ===================================================================== */
.scene {
  --s-bg: #151d1e;
  --s-bg-2: #1d2a2c;
  --s-line: rgba(89, 118, 122, 0.3);
  --s-text: #f5f5f7;
  --s-text-2: #8ec1c9;
  position: relative;
  font-size: 10px;
  text-align: left;
  color: var(--s-text);
  letter-spacing: -0.01em;
  line-height: 1.3;
  user-select: none;
  pointer-events: none;
}

.scene * {
  box-sizing: border-box;
}

/* window chrome */
.win {
  --w: 64;
  width: 64em;
  max-width: 100%;
  border-radius: 1.4em 1.4em 0 0;
  background: var(--s-bg);
  box-shadow:
    inset 0 0 0 1px var(--s-line),
    var(--scene-drop);
  overflow: hidden;
}

.win--round {
  border-radius: 1.4em;
}

.win__bar {
  display: flex;
  align-items: center;
  gap: 0.6em;
  height: 3.6em;
  padding: 0 1.4em;
  border-bottom: 1px solid var(--s-line);
  background: rgba(255, 255, 255, 0.02);
}

.win__bar i {
  width: 1.05em;
  height: 1.05em;
  border-radius: 50%;
  background: #24393d;
}

.win__bar i:nth-child(1) { background: #ff5f57; }
.win__bar i:nth-child(2) { background: #febc2e; }
.win__bar i:nth-child(3) { background: #28c840; }

.win__bar b {
  margin-left: 1em;
  font-size: 1.25em;
  font-weight: 600;
  color: var(--s-text-2);
}

.win__body {
  padding: 2.6em;
}

.pill-s {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.45em 0.95em;
  border-radius: 99em;
  font-size: 1.15em;
  font-weight: 600;
  background: rgba(0, 244, 185, 0.14);
  color: #00f4b9;
  white-space: nowrap;
}

.pill-s::before {
  content: '';
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: currentColor;
}

/* --- Migration --- */
.mig__route {
  display: flex;
  align-items: center;
  gap: 1.4em;
  margin-bottom: 2.4em;
}

.mig__node {
  display: flex;
  align-items: center;
  gap: 0.9em;
  font-size: 1.35em;
  font-weight: 600;
}

.mig__node span {
  display: grid;
  place-items: center;
  width: 2.4em;
  height: 2.4em;
  border-radius: 0.7em;
  background: var(--s-bg-2);
  color: var(--s-text-2);
}

.mig__node--to span {
  background: linear-gradient(145deg, #00f4b9, #b5c9fa);
  color: #000;
}

.mig__node svg {
  width: 1.3em;
  height: 1.3em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mig__line {
  flex: 1;
  height: 0.2em;
  border-radius: 1em;
  background: repeating-linear-gradient(90deg, #356369 0 0.6em, transparent 0.6em 1.1em);
  position: relative;
  overflow: hidden;
}

.mig__line::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 30%;
  background: linear-gradient(90deg, transparent, #00f4b9, transparent);
}

.mig__row {
  display: grid;
  grid-template-columns: 14.5em 1fr 2em;
  align-items: center;
  gap: 1.4em;
  padding: 1.05em 0;
  border-top: 1px solid var(--s-line);
  font-size: 1.3em;
}

.mig__row em {
  font-style: normal;
  color: var(--s-text-2);
}

.bar {
  height: 0.5em;
  border-radius: 1em;
  background: #1d2a2c;
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #00f4b9, #b5c9fa);
  transform-origin: left;
}

.tick {
  display: grid;
  place-items: center;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  background: #00f4b9;
  color: #000;
}

.tick svg {
  width: 0.9em;
  height: 0.9em;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mig__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.8em;
  font-size: 1.2em;
  color: var(--s-text-2);
}

/* --- Automation flow --- */
.flow {
  --w: 44;
  width: 44em;
  max-width: 100%;
  display: grid;
  gap: 0;
  padding: 2.6em 2.6em 0;
  border-radius: 1.6em 1.6em 0 0;
  background: var(--s-bg);
  box-shadow: inset 0 0 0 1px var(--s-line);
}

.flow__step {
  display: flex;
  align-items: center;
  gap: 1.3em;
  padding: 1.35em 1.5em;
  border-radius: 1.1em;
  background: var(--s-bg-2);
  position: relative;
}

.flow__step + .flow__step {
  margin-top: 2.6em;
}

.flow__step + .flow__step::before {
  content: '';
  position: absolute;
  left: 3.1em;
  top: -2.6em;
  width: 0.14em;
  height: 2.6em;
  background: #356369;
}

.flow__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 3.2em;
  height: 3.2em;
  border-radius: 0.8em;
  background: #24393d;
  color: var(--s-text);
}

.flow__icon svg {
  width: 1.6em;
  height: 1.6em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flow__step--trigger .flow__icon {
  background: linear-gradient(145deg, #00f4b9, #b5c9fa);
  color: #000;
}

.flow__text {
  display: grid;
  gap: 0.15em;
}

.flow__text small {
  font-size: 1.05em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--s-text-2);
}

.flow__text b {
  font-size: 1.4em;
  font-weight: 600;
}

.flow__step .pill-s {
  margin-left: auto;
  font-size: 1em;
}

.flow__pulse {
  position: absolute;
  left: 2.85em;
  width: 0.64em;
  height: 0.64em;
  border-radius: 50%;
  background: #00f4b9;
  box-shadow: 0 0 1.2em #00f4b9;
  top: 0;
  opacity: 0;
}

/* --- Integrations hub --- */
.hub {
  --w: 50;
  position: relative;
  width: 50em;
  max-width: 100%;
  aspect-ratio: 1 / 0.78;
}

.hub svg.hub__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hub__lines path {
  fill: none;
  stroke: #5a5a5e;
  stroke-width: 0.5;
  stroke-dasharray: 1.2 1.6;
  vector-effect: non-scaling-stroke;
}

.hub__lines .glow-path {
  stroke: #00f4b9;
  stroke-dasharray: 10 90;
  stroke-width: 2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.hub__core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11em;
  height: 11em;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.5em;
  border-radius: 2.8em;
  background: linear-gradient(145deg, #00f4b9, #b5c9fa 60%, #7c5cbe);
  color: #000;
  box-shadow: 0 0 6em rgba(0, 244, 185, 0.35);
}

.hub__core svg {
  width: 3.4em;
  height: 3.4em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hub__core b {
  font-size: 1.35em;
  font-weight: 700;
}

.hub__node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 0.8em;
  padding: 0.95em 1.3em 0.95em 1em;
  border-radius: 99em;
  background: var(--s-bg-2);
  box-shadow: inset 0 0 0 1px var(--s-line);
  font-size: 1.3em;
  font-weight: 600;
  white-space: nowrap;
}

.hub__node svg {
  width: 1.4em;
  height: 1.4em;
  fill: none;
  stroke: #00f4b9;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Theme editor --- */
.editor {
  --w: 70;
  display: grid;
  grid-template-columns: 19em 1fr;
  width: 70em;
  max-width: 100%;
  height: 40em;
  border-radius: 1.4em 1.4em 0 0;
  background: var(--s-bg);
  box-shadow: inset 0 0 0 1px var(--s-line);
  overflow: hidden;
}

.editor__side {
  padding: 1.8em 1.4em;
  border-right: 1px solid var(--s-line);
  display: grid;
  align-content: start;
  gap: 0.35em;
}

.editor__side small {
  font-size: 1.05em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--s-text-2);
  margin-bottom: 0.6em;
}

.editor__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8em;
  padding: 0.85em 1em;
  border-radius: 0.8em;
  font-size: 1.25em;
  color: var(--list-fg);
}

.editor__item--on {
  background: rgba(0, 244, 185, 0.12);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 244, 185, 0.35);
}

.editor__item em {
  font-style: normal;
  font-size: 0.8em;
  font-weight: 700;
  padding: 0.2em 0.6em;
  border-radius: 99em;
  background: #00f4b9;
  color: #000;
}

.toggle {
  width: 2.6em;
  height: 1.5em;
  border-radius: 99em;
  background: #24393d;
  position: relative;
  flex-shrink: 0;
}

.toggle::after {
  content: '';
  position: absolute;
  top: 0.15em;
  left: 0.15em;
  width: 1.2em;
  height: 1.2em;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.6s var(--ease);
}

.toggle--on {
  background: #00f4b9;
}

.toggle--on::after {
  transform: translateX(1.1em);
}

.editor__canvas {
  padding: 2em;
  background: #0f0f10;
}

/* --- Storefront (light UI used in several scenes) --- */
.store {
  --st-ink: #1d1d1f;
  --st-ink-2: #6e6e73;
  --st-bg: #fff;
  --st-soft: #f5f5f7;
  height: 100%;
  background: var(--st-bg);
  color: var(--st-ink);
  overflow: hidden;
  border-radius: 0.8em;
}

.store__nav {
  display: flex;
  align-items: center;
  gap: 2.2em;
  height: 4em;
  padding: 0 2.4em;
  border-bottom: 1px solid #ececef;
  font-size: 1.05em;
}

.store__logo {
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.5em;
  margin-right: auto;
}

.store__nav span:not(.store__logo) {
  color: var(--st-ink-2);
  font-weight: 500;
}

.store__bag {
  width: 1.9em;
  height: 1.9em;
  border-radius: 50%;
  background: var(--st-ink);
}

.store__hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 1em;
  margin: 1.8em 2.4em 0;
  padding: 2.8em 3em;
  border-radius: 1.4em;
  background: linear-gradient(120deg, #dcfbf1 0%, #e3f3f8 55%, #e9edfd 100%);
}

.store__title {
  font-size: 3.3em;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.store__hero p {
  margin: 0.8em 0 1.4em;
  font-size: 1.2em;
  color: var(--st-ink-2);
}

.store__btn {
  display: inline-block;
  padding: 0.8em 1.6em;
  border-radius: 99em;
  background: var(--st-ink);
  color: #fff;
  font-size: 1.1em;
  font-weight: 600;
}

.store__hero .product {
  height: 17em;
}

.store__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4em;
  padding: 1.8em 2.4em 2.4em;
}

.store__card {
  display: grid;
  gap: 0.7em;
}

.store__card .ph {
  height: 11em;
  border-radius: 1em;
  background: var(--st-soft);
  display: grid;
  place-items: center;
}

.store__card .product {
  height: 8em;
}

.store__card b {
  font-size: 1.15em;
  font-weight: 600;
}

.store__card span {
  font-size: 1.05em;
  color: var(--st-ink-2);
  margin-top: -0.4em;
}

.product {
  width: auto;
  aspect-ratio: 1;
  filter: drop-shadow(0 1em 1.2em rgba(0, 0, 0, 0.18));
}

/* --- Devices --- */
.devices {
  --w: 100;
  position: relative;
  width: 100em;
  max-width: 100%;
  margin-inline: auto;
  font-size: min(12px, calc(100cqi / var(--w)));
}

.hero__stage {
  container-type: inline-size;
}

.laptop {
  width: 86em;
  margin-inline: auto;
  position: relative;
}

.laptop__lid {
  padding: 1.6em 1.6em 2em;
  border-radius: 2.4em 2.4em 0.6em 0.6em;
  background: #0c0c0d;
  box-shadow:
    inset 0 0 0 0.25em #2a2a2d,
    inset 0 0 0 0.35em #0c0c0d,
    var(--scene-drop);
  position: relative;
}

.laptop__lid::before {
  content: '';
  position: absolute;
  top: 0.6em;
  left: 50%;
  width: 0.55em;
  height: 0.55em;
  margin-left: -0.275em;
  border-radius: 50%;
  background: #1f1f22;
}

.laptop__screen {
  aspect-ratio: 16 / 10;
  border-radius: 0.8em;
  overflow: hidden;
  background: #fff;
}

.laptop__screen .store {
  font-size: 1em;
  border-radius: 0;
}

.laptop__base {
  position: relative;
  width: 104%;
  margin-left: -2%;
  height: 2em;
  border-radius: 0 0 2.4em 2.4em / 0 0 1.6em 1.6em;
  background: linear-gradient(180deg, #d1d1d6 0%, #a1a1a6 40%, #636366 100%);
}

.laptop__base::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 14em;
  height: 0.7em;
  transform: translateX(-50%);
  border-radius: 0 0 0.8em 0.8em;
  background: linear-gradient(180deg, #8ec1c9, #aeaeb2);
}

.phone {
  position: absolute;
  right: 2em;
  bottom: -1em;
  width: 24em;
  padding: 0.9em;
  border-radius: 4em;
  background: #1c1c1e;
  box-shadow:
    inset 0 0 0 0.25em #3a3a3c,
    var(--scene-drop);
}

.phone__screen {
  position: relative;
  aspect-ratio: 9 / 19.5;
  border-radius: 3.2em;
  overflow: hidden;
  background: #fff;
}

.phone__screen::before {
  content: '';
  position: absolute;
  top: 1.1em;
  left: 50%;
  z-index: 3;
  width: 7.5em;
  height: 2.2em;
  margin-left: -3.75em;
  border-radius: 99em;
  background: #000;
}

.pdp {
  height: 100%;
  display: grid;
  grid-template-rows: 55% 1fr;
  color: #1d1d1f;
}

.pdp__img {
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #dcfbf1, #e8ecfd);
}

.pdp__img .product {
  height: 70%;
}

.pdp__body {
  padding: 1.8em 1.8em 2em;
  display: grid;
  gap: 0.8em;
  align-content: start;
}

.pdp__body b {
  font-size: 1.7em;
  letter-spacing: -0.03em;
}

.pdp__body span {
  font-size: 1.3em;
  color: #6e6e73;
}

.pdp__swatches {
  display: flex;
  gap: 0.6em;
}

.pdp__swatches i {
  width: 1.9em;
  height: 1.9em;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.pdp__cta {
  margin-top: 0.4em;
  padding: 1.1em;
  border-radius: 99em;
  background: #1d1d1f;
  color: #fff;
  text-align: center;
  font-size: 1.3em;
  font-weight: 600;
}

/* --- Volume pricing (Apps) --- */
.tiers {
  display: grid;
  gap: 0.6em;
}

.tier {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9em 1.1em;
  border-radius: 0.9em;
  box-shadow: inset 0 0 0 1px #e5e5ea;
  font-size: 1.15em;
}

.tier b {
  font-size: 1em;
  letter-spacing: 0;
}

.tier em {
  font-style: normal;
  font-weight: 700;
  color: #00866a;
}

.tier--on {
  box-shadow: inset 0 0 0 0.16em #1d1d1f;
  background: #f5f5f7;
}

.phone--solo {
  position: relative;
  right: auto;
  bottom: auto;
  width: 30em;
  margin-inline: auto;
}

/* --- Health dashboard (Support) --- */
.health {
  display: grid;
  gap: 1.6em;
}

.health__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2em;
}

.health__title {
  font-size: 2.6em;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.health__top small {
  display: block;
  font-size: 1.2em;
  color: var(--s-text-2);
  margin-top: 0.3em;
}

.health__ring {
  flex-shrink: 0;
  width: 7em;
  height: 7em;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(#00f4b9 0 var(--p, 100%), #1d2a2c 0);
  position: relative;
}

.health__ring::after {
  content: '';
  position: absolute;
  inset: 0.8em;
  border-radius: 50%;
  background: var(--s-bg);
}

.health__ring svg {
  position: relative;
  z-index: 1;
  width: 2.4em;
  height: 2.4em;
  fill: none;
  stroke: #00f4b9;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.health__rows {
  display: grid;
  border-top: 1px solid var(--s-line);
}

.health__row {
  display: flex;
  align-items: center;
  gap: 1em;
  padding: 1.15em 0;
  border-bottom: 1px solid var(--s-line);
  font-size: 1.3em;
}

.health__row svg {
  width: 1.4em;
  height: 1.4em;
  fill: none;
  stroke: var(--s-text-2);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.health__row .pill-s {
  margin-left: auto;
  font-size: 0.88em;
}

.spark {
  width: 100%;
  height: 6em;
}

.spark path {
  fill: none;
  stroke: #00f4b9;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.spark .area {
  fill: url(#sparkfill);
  stroke: none;
}

/* Scene motion (runs when revealed, respects reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .js .scene .bar i {
    transform: scaleX(0);
    transition: transform 1.6s var(--ease);
  }

  .js .is-in .scene .bar i,
  .js .scene.is-in .bar i {
    transform: scaleX(1);
  }

  .js .scene .mig__row .tick {
    opacity: 0;
    transform: scale(0.4);
    transition:
      opacity 0.4s var(--ease),
      transform 0.5s var(--ease-out);
  }

  .js .is-in .scene .mig__row .tick,
  .js .scene.is-in .mig__row .tick {
    opacity: 1;
    transform: none;
  }

  .scene .mig__row:nth-child(2) i,
  .scene .mig__row:nth-child(2) .tick { transition-delay: 0.15s; }
  .scene .mig__row:nth-child(3) i,
  .scene .mig__row:nth-child(3) .tick { transition-delay: 0.45s; }
  .scene .mig__row:nth-child(4) i,
  .scene .mig__row:nth-child(4) .tick { transition-delay: 0.75s; }
  .scene .mig__row:nth-child(5) i,
  .scene .mig__row:nth-child(5) .tick { transition-delay: 1.05s; }
  .scene .mig__row:nth-child(6) i,
  .scene .mig__row:nth-child(6) .tick { transition-delay: 1.35s; }

  .scene .mig__row .tick { transition-delay: 1.4s !important; }

  .mig__line::after {
    animation: line-run 2.2s var(--ease) 2;
  }

  .flow__pulse {
    animation: flow-run 3.6s var(--ease) 1;
  }

  .hub__lines .glow-path {
    animation: dash-run 3.2s linear 1;
  }

  .hub__lines .glow-path:nth-of-type(2n) {
    animation-delay: -1.1s;
  }

  .hub__lines .glow-path:nth-of-type(3n) {
    animation-delay: -2.2s;
  }

  .hub__core {
    animation: core-breathe 4s ease-in-out 1;
  }

  .js .scene .toggle--on::after {
    transform: none;
  }

  .js .is-in .scene .toggle--on::after,
  .js .scene.is-in .toggle--on::after {
    transform: translateX(1.1em);
    transition-delay: 0.6s;
  }

  .js .scene .toggle--on {
    background: #24393d;
    transition: background-color 0.6s var(--ease) 0.6s;
  }

  .js .is-in .scene .toggle--on,
  .js .scene.is-in .toggle--on {
    background: #00f4b9;
  }

  .spark path:not(.area) {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
  }

  .js .is-in .spark path:not(.area),
  .js .scene.is-in .spark path:not(.area) {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 2.4s var(--ease);
  }

  .health__ring {
    transition: --p 1.6s var(--ease);
  }
}

@property --p {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 100%;
}

@keyframes line-run {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(340%);
  }
}

@keyframes flow-run {
  0% {
    top: 1.8em;
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  92% {
    opacity: 1;
  }
  100% {
    top: calc(100% - 3.4em);
    opacity: 0;
  }
}

@keyframes dash-run {
  from {
    stroke-dashoffset: 100;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes core-breathe {
  50% {
    box-shadow: 0 0 9em rgba(0, 244, 185, 0.5);
  }
}

.scene--phone {
  --w: 32;
}

.win--health {
  --w: 52;
  width: 52em;
}

/* ============ 3D artwork ============ */
.art {
  display: block;
  width: min(440px, 72vw);
  height: auto;
  margin: 0 auto 12px;
  filter: drop-shadow(0 50px 60px rgba(124, 92, 190, 0.28));
}

.art--sm {
  width: min(320px, 64vw);
}

@media (prefers-reduced-motion: no-preference) {
  .art {
    animation: art-float 3.5s ease-in-out 1;
  }
}

@keyframes art-float {
  50% {
    transform: translateY(-14px) rotate(-1.5deg);
  }
}

/* Service card tints (as on shopify.dev) */
.card--navy { background: #101b2e; box-shadow: inset 0 0 0 1px #1d2f4d; }
.card--plum { background: #25152d; box-shadow: inset 0 0 0 1px #3b2447; }
.card--indigo { background: #1b173a; box-shadow: inset 0 0 0 1px #2d2759; }
.card--teal { background: #091f21; box-shadow: inset 0 0 0 1px #17393c; }
.card--sky { background: #0a1d26; box-shadow: inset 0 0 0 1px #15394a; }
.card--slate { background: #151d1e; box-shadow: inset 0 0 0 1px #24393d; }
.pillar,
.steps li,
.form-panel,
.related a {
  box-shadow: inset 0 0 0 1px var(--hair);
}

/* ============ Light theme (shopify.dev light palette) ============ */
:root[data-theme='light'] {
  color-scheme: light;
  --bg: #ffffff;
  --tile: #fafbfb;
  --tile-2: #eef3f7;
  --tile-3: #dfe6eb;
  --hair: #d2d5d8;
  --hair-soft: #e4e7ea;
  --text: #202223;
  --text-2: #44474a;
  --text-3: #62666a;
  --text-strong: #000000;
  --accent: #007a61;
  --accent-2: #475f91;
  --grad: linear-gradient(90deg, #007a61 0%, #1f7a93 50%, #475f91 100%);
  --ok: #00a47c;
  --nav-bg: rgba(255, 255, 255, 0.8);
  --nav-link: rgba(32, 34, 35, 0.78);
  --sheet-bg: rgba(255, 255, 255, 0.97);
  --tabbar-bg: rgba(250, 251, 251, 0.92);
  --tabbar-fg: #62666a;
  --ghost-hover: rgba(0, 0, 0, 0.05);
  --statement-dim: #868b90;
  --list-fg: #44474a;
  --prose-fg: #44474a;
  --field-bg: #ffffff;
  --field-hover: rgba(0, 0, 0, 0.28);
  --option-bg: #ffffff;
  --error-fg: #b42318;
  --scene-drop: 0 3em 7em -2.5em rgba(16, 40, 50, 0.32);
  --glow-opacity: 0.45;
  --logo-filter: brightness(0.12);
  --img-outline: rgba(0, 0, 0, 0.1);
}

:root[data-theme='light'] .btn {
  background: #00f4b9;
  color: #0d1213;
}

:root[data-theme='light'] .btn:hover {
  background: #00dba6;
}

:root[data-theme='light'] .btn--ghost {
  background: transparent;
  color: var(--text);
}

:root[data-theme='light'] .btn--ghost:hover {
  background: var(--ghost-hover);
}

:root[data-theme='light'] .ico-badge {
  background: linear-gradient(145deg, rgba(0, 164, 124, 0.12), rgba(71, 95, 145, 0.08));
  box-shadow: inset 0 0 0 1px rgba(0, 140, 111, 0.22);
}

:root[data-theme='light'] .card--navy { background: #eef3ff; box-shadow: inset 0 0 0 1px #d9e2fb; }
:root[data-theme='light'] .card--plum { background: #f8f0fd; box-shadow: inset 0 0 0 1px #ecdcf7; }
:root[data-theme='light'] .card--indigo { background: #f2f1ff; box-shadow: inset 0 0 0 1px #e0defc; }
:root[data-theme='light'] .card--teal { background: #e8f9f4; box-shadow: inset 0 0 0 1px #cbeee3; }
:root[data-theme='light'] .card--sky { background: #ddf7fc; box-shadow: inset 0 0 0 1px #bfeaf3; }
:root[data-theme='light'] .card--slate { background: #eef3f7; box-shadow: inset 0 0 0 1px #dde5eb; }

:root[data-theme='light'] .card::before {
  background: radial-gradient(60% 70% at 50% 100%, rgba(0, 164, 124, 0.12), transparent 70%);
}

:root[data-theme='light'] .laptop__base {
  background: linear-gradient(180deg, #e5e5ea 0%, #c7c7cc 40%, #8e8e93 100%);
}

:root[data-theme='light'] ::selection {
  background: rgba(0, 164, 124, 0.22);
}


/* Theme toggle */
.theme-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--nav-link);
  transition:
    color 0.2s,
    background-color 0.2s;
}

.theme-toggle:hover {
  color: var(--text-strong);
  background: var(--ghost-hover);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition:
    transform 0.5s var(--ease-out),
    opacity 0.3s;
}

.theme-toggle .sun {
  position: absolute;
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
}

:root[data-theme='light'] .theme-toggle .sun {
  opacity: 1;
  transform: none;
}

:root[data-theme='light'] .theme-toggle .moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.6);
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--hair);
  color: var(--text-2);
  font-size: 13px;
  transition:
    color 0.2s,
    background-color 0.2s;
}

.theme-switch:hover {
  color: var(--text);
  background: var(--ghost-hover);
}

.theme-switch svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-switch .sun,
:root[data-theme='light'] .theme-switch .moon,
.theme-switch .label-dark,
:root[data-theme='light'] .theme-switch .label-light {
  display: none;
}

:root[data-theme='light'] .theme-switch .sun,
:root[data-theme='light'] .theme-switch .label-dark {
  display: inline;
}

:root[data-theme='light'] .hub__node {
  background: #ffffff;
  color: #202223;
  box-shadow:
    inset 0 0 0 1px #d2d5d8,
    0 0.6em 1.6em -0.6em rgba(16, 40, 50, 0.25);
}

:root[data-theme='light'] .hub__node svg {
  stroke: #008c6f;
}

:root[data-theme='light'] .hub__lines path {
  stroke: #9aa7ab;
}

:root[data-theme='light'] .hub__lines .glow-path {
  stroke: #00c99c;
}

.nav .btn--sm {
  min-height: 34px;
  padding: 0 17px;
  font-size: 14px;
}

/* Pause looping scene animations while off screen */
.js .scene:not(.is-playing) * {
  animation-play-state: paused !important;
}

/* ============ Work / case studies ============ */
.screen-shot {
  display: block;
  width: 100%;
  height: auto;
  background: #0d0d0d;
}

@media (prefers-reduced-motion: no-preference) {
  .screens-scroll .laptop__screen .screen-shot {
    will-change: transform;
    animation: screen-scroll 34s cubic-bezier(0.45, 0, 0.55, 1) infinite;
    --end: -83.33%;
  }

  .screens-scroll .phone__screen .screen-shot {
    will-change: transform;
    animation: screen-scroll 30s cubic-bezier(0.45, 0, 0.55, 1) 3s infinite;
    --end: -79.9%;
  }
}

@keyframes screen-scroll {
  0%,
  8% {
    transform: translateY(0);
  }
  80%,
  88% {
    transform: translateY(var(--end));
  }
  100% {
    transform: translateY(0);
  }
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--hair);
  margin-top: clamp(48px, 6vw, 80px);
}

@media (min-width: 900px) {
  .facts {
    grid-template-columns: repeat(5, 1fr);
  }
}

.facts > div {
  padding: 22px 20px 22px 0;
  border-bottom: 1px solid var(--hair);
  display: grid;
  gap: 4px;
  align-content: start;
}

.facts dt {
  font-size: 13px;
  color: var(--text-3);
}

.facts dd {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
}

.browser {
  border-radius: 14px;
  overflow: hidden;
  background: #0d0d0d;
  box-shadow:
    inset 0 0 0 1px var(--img-outline),
    var(--scene-drop);
}

.browser__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  background: #1b1d1e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.browser__bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}

.browser__bar i:nth-child(2) { background: #febc2e; }
.browser__bar i:nth-child(3) { background: #28c840; }

.browser__bar span {
  margin-left: 12px;
  font-size: 12px;
  color: #8e9396;
}

.browser img {
  display: block;
  width: 100%;
  height: auto;
}

.story {
  display: grid;
  gap: 40px;
  padding-block: clamp(64px, 8vw, 112px);
  border-top: 1px solid var(--hair-soft);
  align-items: center;
}

@media (min-width: 960px) {
  .story {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 72px;
  }

  .story--flip .story__media {
    order: -1;
  }

  .story--text {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.story__copy {
  display: grid;
  gap: 16px;
  align-content: start;
}

.story__media--narrow {
  max-width: 460px;
  margin-inline: auto;
  width: 100%;
}

.numbers {
  display: grid;
  gap: 16px;
  margin-top: 48px;
}

@media (min-width: 760px) {
  .numbers {
    grid-template-columns: repeat(3, 1fr);
  }
}

.numbers > div {
  padding: 32px;
  border-radius: var(--r-lg);
  background: var(--tile);
  box-shadow: inset 0 0 0 1px var(--hair);
}

.numbers strong {
  display: block;
  font-variant-numeric: tabular-nums;
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Count up: the visible digits are a CSS counter animated from 0 to --to, while the real
   number stays in the page text for crawlers and screen readers */
@property --n {
  syntax: '<integer>';
  inherits: false;
  initial-value: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .numbers strong.is-primed {
    position: relative;
    counter-reset: n var(--n);
  }

  .numbers strong.is-primed > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .numbers strong.is-primed::after {
    content: counter(n) / '';
  }

  .numbers strong.is-primed[data-suffix='%']::after {
    content: counter(n) '%' / '';
  }

  .numbers strong.is-counting {
    animation: count-up 1.1s var(--ease-out) var(--delay, 0s) forwards;
  }
}

@keyframes count-up {
  to {
    --n: var(--to);
  }
}

.numbers > div > span {
  display: block;
  margin-top: 10px;
  color: var(--text-2);
}

.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.chips-row a,
.chips-row span {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--tile-2);
  box-shadow: inset 0 0 0 1px var(--hair);
  font-size: 14px;
  color: var(--text);
  transition: background-color 0.2s;
}

.chips-row a:hover {
  background: var(--tile-3);
}

.work-card {
  display: grid;
  gap: 32px;
  padding: clamp(28px, 4vw, 56px);
  border-radius: var(--r-xl);
  background: var(--tile);
  box-shadow: inset 0 0 0 1px var(--hair);
  overflow: hidden;
  align-items: center;
  transition: transform 0.6s var(--ease);
}

@media (hover: hover) {
  .work-card:hover {
    transform: scale(1.006);
  }
}

@media (min-width: 960px) {
  .work-card {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 56px;
  }
}

.work-card__copy {
  display: grid;
  gap: 14px;
  align-content: start;
}

.work-card__art {
  container-type: inline-size;
}

.work-card__art .devices {
  font-size: min(12px, calc(100cqi / var(--w)));
}

.work-next {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
  padding: clamp(40px, 6vw, 72px);
  border-radius: var(--r-xl);
  box-shadow: inset 0 0 0 1px var(--hair);
  border: 1px dashed var(--hair);
}

.mini-case {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: clamp(24px, 3vw, 36px);
  border-radius: calc(14px + clamp(24px, 3vw, 36px));
  background: var(--tile);
  box-shadow: inset 0 0 0 1px var(--hair);
  transition: transform 0.6s var(--ease);
}

@media (hover: hover) {
  .mini-case:hover {
    transform: scale(1.006);
  }
}

@media (min-width: 860px) {
  .mini-case {
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
  }
}

.mini-case .browser {
  box-shadow: inset 0 0 0 1px var(--img-outline);
}

@media (max-width: 899px) {
  .facts > div:last-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .numbers--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery {
  display: grid;
  gap: 24px;
}

@media (min-width: 960px) {
  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .gallery figure:first-child {
    grid-column: 1 / -1;
  }
}

.gallery figure {
  margin: 0;
  display: grid;
  gap: 14px;
}

.gallery figcaption {
  font-size: 15px;
  color: var(--text-2);
  max-width: 60ch;
}

/* Grid children may shrink below their content's min width */
.split > *,
.story > * {
  min-width: 0;
}

/* Phone mockups in case-study stories scale with their column */
.story__media {
  container-type: inline-size;
}

.story__media > .scene--phone {
  font-size: min(10px, calc(100cqi / var(--w)));
}

/* Pause control for the scrolling device showcase */
.motion-toggle {
  position: absolute;
  right: clamp(8px, 2vw, 24px);
  bottom: clamp(8px, 2vw, 24px);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px 0 10px;
  border-radius: 999px;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: inset 0 0 0 1px var(--hair);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
}

.motion-toggle svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.motion-toggle .play,
.is-paused .motion-toggle .pause {
  display: none;
}

.is-paused .motion-toggle .play {
  display: block;
}

.is-paused .screen-shot {
  animation-play-state: paused !important;
}

@media (prefers-reduced-motion: reduce) {
  .motion-toggle {
    display: none;
  }
}

/* Case-study cards: one short link, whole card clickable */
.mini-case,
.work-card {
  position: relative;
}

.stretch {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.mini-case:has(a:focus-visible),
.work-card:has(a:focus-visible) {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

.mini-case a:focus-visible,
.work-card a:focus-visible {
  outline: none;
}

/* Contact form: fields cross-fade into the confirmation in place */
::view-transition-old(contact-form),
::view-transition-new(contact-form) {
  animation-duration: 0.4s;
  animation-timing-function: var(--ease-out);
}
