/* ============================================================
   Webnet — component layer. Consumes tokens.css variables only.
   Motion contract: ONE global transition (all 150ms var(--ease));
   transform exceptions at 300ms. Hover lifts gated behind
   @media (hover:hover); press states for touch; reduced-motion
   kill switch at the end of this file.
   ============================================================ */

/* ---------- reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  overscroll-behavior-y: none;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: var(--bg);
  color: var(--gray-1000);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: 'tnum' 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--nav-space); /* clearance for mobile action bar */
}
@media (min-width: 768px) { body { padding-bottom: 0; } }

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
ul[class], ol[class] { list-style: none; padding: 0; }

::selection { background: var(--accent-tint); color: var(--gray-1000); }

/* Focus: Vercel double ring, accent-swapped */
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
  border-radius: var(--r-sm);
}

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}

.display {
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.041em;   /* -0.02em × (72/14) scaled: display flips to weight 400 */
  font-weight: 400;
  max-width: 18ch;
}

.display--md { font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.032em; font-weight: 400; }

.h-section { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.037em; line-height: 1.05; max-width: 22ch; }
h3 { font-size: 18px; letter-spacing: -0.024em; }

.lead {
  color: var(--gray-700);
  font-size: clamp(16px, 1.4vw, 19px);
  max-width: 56ch;
  text-wrap: pretty;
}

.muted { color: var(--gray-500); }
.body-text { color: var(--gray-700); }

/* Mono eyebrow — one scale for the whole site */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray-500);
  font-feature-settings: 'tnum';
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }

/* Links: 1px underline 5px below in gray-500 — color never changes */
.link {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color var(--dur) var(--ease);
}
.link:hover { text-decoration-color: var(--gray-500); }
.link--accent { color: var(--accent); }
.link--accent:hover { text-decoration-color: var(--accent); }

/* ---------- layout ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--alt { background: var(--gray-100); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: clamp(36px, 5vw, 56px);
  max-width: 720px;
}
.section-head--center { align-items: center; text-align: center; margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding-inline: 20px;
  border: 0;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--dur) var(--ease);
}
.btn:active { transform: scale(.97); }

.btn--primary {
  background: var(--btn1-bg);
  color: var(--btn1-fg);
  box-shadow: inset 0 -1px 1px rgba(0,0,0,.11), 0 1px 1px rgba(0,0,0,.07);
  position: relative;
  overflow: hidden;
}
.btn--primary::after {
  content: "";
  position: absolute;
  top: -40%; bottom: -40%; left: -70%;
  width: 45%;
  transform: skewX(-22deg) translateX(0);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  opacity: 0;
  pointer-events: none;
}
.btn--primary:hover::after {
  opacity: 1;
  transition: transform .7s var(--ease), opacity .15s var(--ease);
  transform: skewX(-22deg) translateX(430%);
}
:root[data-theme="light"] .btn--primary::after {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent);
}
@media (hover: hover) {
  .btn--primary:hover { filter: brightness(1.07); box-shadow: inset 0 -1px 1px rgba(0,0,0,.11), 0 1px 1px rgba(0,0,0,.07), var(--glow-accent); }
}

.btn--secondary {
  background: var(--btn2-bg);
  color: var(--gray-1000);
  box-shadow: var(--btn2-ring);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
@media (hover: hover) {
  .btn--secondary:hover { background: var(--wash); }
}

.btn--ghost {
  background: transparent;
  color: var(--gray-700);
}
@media (hover: hover) {
  .btn--ghost:hover { background: var(--gray-100); color: var(--gray-1000); }
}

.btn--danger { background: transparent; color: var(--err); box-shadow: 0 0 0 1px color-mix(in srgb, var(--err) 40%, transparent); }
.btn--danger:hover { background: color-mix(in srgb, var(--err) 9%, transparent); }

.btn--lg { height: 48px; padding-inline: 24px; font-size: 15px; }
.btn--sm { height: 32px; padding-inline: 12px; font-size: 13px; }

/* The deploy pill — product-UI-as-CTA (Vercel signature) */
.deploy-pill {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  height: 96px;
  padding-left: 36px;
  padding-right: 18px;
  border-radius: var(--r-pill);
  background: var(--pill-bg);
  box-shadow: var(--pill-ring);
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
.deploy-pill .dp-label {
  display: flex; flex-direction: column; gap: 2px; text-align: left;
}
.deploy-pill .dp-title { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; color: var(--gray-1000); }
.deploy-pill .dp-sub { font-family: var(--font-mono); font-size: 12px; color: var(--gray-500); font-feature-settings: 'tnum'; }
.deploy-pill .dp-circle {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid; place-items: center;
  flex: none;
  box-shadow: 0 0 24px rgba(186, 0, 111, .45);
  transition: all var(--dur) var(--ease);
}
.deploy-pill .dp-circle svg { width: 22px; height: 22px; }
@media (hover: hover) {
  .deploy-pill:hover { transform: translateY(-2px); box-shadow: var(--pill-ring), 0 18px 44px rgba(0,0,0,.3); }
  .deploy-pill:hover .dp-circle { background: var(--accent-hover); transform: translateX(2px); box-shadow: 0 0 36px rgba(186, 0, 111, .6); }
}
.deploy-pill:active { transform: scale(.98); }

/* ---------- header: floating glass pill ---------- */
.site-header {
  position: fixed;
  top: calc(12px + var(--safe-t));
  left: 0; right: 0;
  padding-inline: 12px;
  z-index: 100;
}
.nav-pill-wrap { max-width: var(--container); margin-inline: auto; }
.nav-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 60px;
  padding: 0 10px 0 18px;
  border-radius: var(--r-pill);
  background: var(--header-glass);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  box-shadow: var(--ring), 0 8px 24px rgba(0, 0, 0, .07);
  transition: box-shadow var(--dur) var(--ease);
}
.nav-pill::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,.4), rgba(255,255,255,.04) 40%, rgba(255,255,255,.22));
  -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, linear-gradient(#000 0 0);
          mask-composite: exclude;
  pointer-events: none;
}
:root[data-theme="light"] .nav-pill::before {
  background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(0,0,0,.05) 40%, rgba(255,255,255,.5));
}
body.is-scrolled .nav-pill {
  box-shadow: var(--ring), 0 14px 40px rgba(0, 0, 0, .14);
}
.site-header__inner {
  display: contents;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.brand-logo { height: 38px; width: auto; display: block; }
.brand-logo--light { display: none; }
:root[data-theme="light"] .brand-logo--light { display: block; }
:root[data-theme="light"] .brand-logo--dark { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .brand-logo--light { display: block; }
  :root:not([data-theme="dark"]) .brand-logo--dark { display: none; }
}

.nav-desktop { display: none; align-items: center; gap: 4px; }
@media (min-width: 900px) { .nav-desktop { display: flex; } }

.nav-desktop a {
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--gray-700);
  transition: all var(--dur) var(--ease);
}
@media (hover: hover) {
  .nav-desktop a:hover { background: var(--gray-100); color: var(--gray-1000); }
}
.nav-desktop a[aria-current="page"] { color: var(--gray-1000); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; text-decoration-color: var(--accent); }

.header-cta { display: none; }
@media (min-width: 900px) { .header-cta { display: inline-flex; } }

.nav-burger {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 0; background: transparent; cursor: pointer;
  border-radius: var(--r-sm);
}
@media (min-width: 900px) { .nav-burger { display: none; } }
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  content: ""; display: block; width: 18px; height: 1.5px;
  background: var(--gray-1000);
  transition: all var(--dur) var(--ease);
}
.nav-burger span { position: relative; }
.nav-burger span::before { position: absolute; top: -6px; }
.nav-burger span::after { position: absolute; top: 6px; }
body.nav-open .nav-burger span { background: transparent; }
body.nav-open .nav-burger span::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-burger span::after { top: 0; transform: rotate(-45deg); }

/* Mobile sheet */
.nav-sheet {
  position: fixed;
  top: calc(12px + var(--safe-t) + var(--header-h) + 10px);
  left: 12px; right: 12px;
  background: var(--header-glass);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  box-shadow: var(--ring), 0 14px 40px rgba(0, 0, 0, .14);
  border-radius: var(--r-lg);
  padding: 10px var(--gutter) 18px;
  z-index: 99;
  opacity: 0;
  transform: translateY(-10px);
  visibility: hidden;
  transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 0s linear 200ms;
}
body.nav-open .nav-sheet {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
}
.nav-sheet a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 48px;
  padding-inline: 8px;
  font-size: 16px;
  color: var(--gray-700);
  border-radius: var(--r-sm);
  transition: all var(--dur) var(--ease);
}
.nav-sheet a:active { background: var(--gray-100); transform: scale(.98); }
.nav-sheet a[aria-current="page"] { color: var(--gray-1000); font-weight: 500; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + var(--safe-t) + clamp(56px, 9vw, 112px));
  padding-bottom: clamp(56px, 9vw, 112px);
}
/* Vercel grid pattern */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 100%);
  pointer-events: none;
}
/* ambient bloom + accent edge glow */
.hero::after {
  content: "";
  position: absolute;
  top: -20%; left: 50%;
  width: 90vw; height: 60vh;
  transform: translateX(-50%);
  background:
    radial-gradient(340px circle at var(--mx, 50%) var(--my, 30%), var(--accent-tint), transparent 68%),
    radial-gradient(ellipse 50% 50% at 50% 0%, var(--accent-tint), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 10%, var(--bloom), transparent 90%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }

/* split hero: copy left, 3D stage right */
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.hero__copy .lead { text-align: left; }
.hero__stage { position: relative; }
.hero__stage::before {
  content: "";
  position: absolute; inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(186, 0, 111, .22), transparent 62%);
  filter: blur(46px);
  pointer-events: none;
}
.hero3d { position: relative; z-index: 1; width: 100%; max-width: 560px; aspect-ratio: 1 / 1; margin-inline: auto; }
.hero3d:empty { display: none; }
@media (max-width: 899px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero3d { max-width: 340px; }
}

/* entrance animation (the exception to the 150ms motion contract) */
@keyframes hero-in {
  from { opacity: 0; transform: translateY(18px); filter: blur(10px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
html.js [data-enter] { animation: hero-in .8s cubic-bezier(.22, 1, .36, 1) both; animation-delay: var(--d, 0s); }
@media (prefers-reduced-motion: reduce) {
  html.js [data-enter] { animation: none; }
}

/* film grain over the hero (subtle, multiply on white) */
.hero-noise {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}
.hero__grad {
  background: linear-gradient(120deg, var(--accent), #e6198f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin-top: 8px; }

/* Hero terminal mockup (product-UI-as-hero) */
.hero-window {
  position: relative; z-index: 1;
  margin-top: clamp(40px, 6vw, 72px);
  max-width: 780px;
  margin-inline: auto;
  border-radius: var(--r-lg);
  background: var(--surface-ink-2);
  isolation: isolate;
}
.hero-window::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 50% 36% at 0% 0%, rgba(255, 255, 255, .07), transparent 70%),
    linear-gradient(135deg, rgba(255,255,255,.28), rgba(255,255,255,.03) 45%, rgba(255,255,255,.14));
  -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, linear-gradient(#000 0 0);
          mask-composite: exclude;
  padding: 1px;
  pointer-events: none;
}
.hero-window {
  color: #e6e6e6;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.4), 0 16px 48px 8px rgba(0,0,0,.18), 0 12px 32px rgba(0,0,0,.8);
  overflow: hidden;
  text-align: left;
}
.hero-window__bar {
  display: flex; align-items: center; gap: 10px;
  height: 40px; padding-inline: 14px;
  background: rgba(255,255,255,.04);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.06);
}
.hero-window__dots { width: 11px; height: 11px; border-radius: 50%; background: #3a3a3f; box-shadow: 17px 0 #3a3a3f, 34px 0 #3a3a3f; }
.hero-window__title { margin-inline: auto; font-family: var(--font-mono); font-size: 11px; color: #8a8f98; }
.hero-window__body {
  padding: 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.9;
  color: #b4bcd0;
  white-space: pre-wrap;
}
.hero-window__body .ln-ok { color: #4cc38a; }
.hero-window__body .ln-accent { color: #ff4da6; }
.hero-window__body .ln-dim { color: #6a7080; }

/* ---------- spotlight: mouse-tracked glow (JS sets --mx/--my) ---------- */
.spotlight { position: relative; overflow: hidden; }
.spotlight::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), var(--accent-tint), transparent 65%);
  opacity: 0;
  transition: opacity 300ms var(--ease);
  pointer-events: none;
  z-index: 0;
}
@media (hover: hover) {
  .spotlight:hover::before { opacity: 1; }
}
.spotlight > * { position: relative; z-index: 1; }

/* ---------- cards ---------- */
.card {
  background: var(--card-bg);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease), background var(--dur) var(--ease);
}
@media (hover: hover) {
  .card--hover:hover { transform: translateY(-4px); background: var(--card-bg-hover); box-shadow: 0 0 0 1px rgba(255,255,255,.16), 0 12px 32px rgba(0,0,0,.4); }
  .card--hover:hover .card__arrow { transform: translate(3px, -3px); color: var(--accent-hover); }
}
:root[data-theme="light"] .card--hover:hover { box-shadow: 0 0 0 1px rgba(0,0,0,.12), 0 12px 24px rgba(0,0,0,.08); }
.card:active { transform: scale(.985); }

.card__pad { padding: 24px; }
.card__arrow { transition: all var(--dur) var(--ease); }

/* icon chip — tinted accent fill */
.chip {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-tint);
  color: var(--accent);
  flex: none;
}
.chip svg { width: 18px; height: 18px; }

/* grids */
.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1023px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 639px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ---------- service card ---------- */
.service-card { display: flex; flex-direction: column; gap: 14px; min-height: 200px; }
.service-card .chip { margin-bottom: 2px; }
.service-card p { color: var(--gray-700); font-size: 14.5px; flex: 1; }
.service-card .card-foot {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--gray-500);
  font-family: var(--font-mono); font-feature-settings: 'tnum';
}

/* ---------- bento grid (why Webnet) ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bento-tile { display: flex; flex-direction: column; gap: 10px; }
.bento-tile .chip { margin-bottom: 4px; }
.bento-tile .b-stat {
  font-size: clamp(38px, 4.5vw, 52px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, var(--gray-1000) 10%, var(--accent) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bento-tile h3 { font-size: 17px; }
.bento-tile p { color: var(--gray-700); font-size: 14.5px; }
.bento-tile--wide { grid-column: span 2; }
@media (max-width: 899px) { .bento { grid-template-columns: 1fr 1fr; } .bento-tile--wide { grid-column: span 2; } }
@media (max-width: 639px) { .bento { grid-template-columns: 1fr; } .bento-tile--wide { grid-column: auto; } }

/* ---------- stats band ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 767px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; padding: 8px; }
.stat b {
  display: block;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat span { display: block; margin-top: 8px; font-size: 13px; color: var(--gray-500); }

/* ---------- process timeline ---------- */
.timeline { display: grid; gap: 0; }
.tl-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding-block: 20px;
  box-shadow: 0 1px 0 var(--line);
}
.tl-row:last-child { box-shadow: none; }
.tl-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  font-feature-settings: 'tnum';
  padding-top: 3px;
}
.tl-body h3 { margin-bottom: 6px; }
.tl-body p { color: var(--gray-700); font-size: 15px; max-width: 64ch; }
@media (min-width: 768px) {
  .tl-row { grid-template-columns: 88px 1fr; }
}

/* ---------- testimonials ---------- */
.quote-card { display: flex; flex-direction: column; gap: 16px; }
.quote-card blockquote { font-size: 15.5px; color: var(--gray-700); flex: 1; text-wrap: pretty; }
.quote-card figcaption { display: flex; flex-direction: column; gap: 2px; }
.quote-card .q-name { font-weight: 600; font-size: 14px; letter-spacing: -0.01em; }
.quote-card .q-role { font-size: 12.5px; color: var(--gray-500); }
.stars { display: inline-flex; gap: 3px; color: var(--accent); }
.stars svg { width: 15px; height: 15px; fill: currentColor; stroke: none; }

/* ---------- blog cards ---------- */
.post-card { display: flex; flex-direction: column; gap: 12px; min-height: 190px; }
.post-meta {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11.5px;
  color: var(--gray-500); font-feature-settings: 'tnum';
}
.post-tag { color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
.post-card h3 { font-size: 17px; line-height: 1.3; }
.post-card p { color: var(--gray-700); font-size: 14px; flex: 1; }

/* ---------- feature rows (about / service detail) ---------- */
.feature-row {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px;
  border-radius: var(--r-md);
  box-shadow: var(--ring);
  background: var(--card-bg);
  transition: all var(--dur) var(--ease);
}
@media (hover:hover) { .feature-row:hover { box-shadow: var(--ring-strong); } }
.feature-row .fr-body b { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 2px; }
.feature-row .fr-body span { color: var(--gray-500); font-size: 13.5px; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; color: var(--gray-700); }
.field .hint { font-size: 12px; color: var(--gray-500); }

.input, .textarea, .select {
  width: 100%;
  height: 40px;
  padding-inline: 12px;
  border-radius: var(--r-sm);
  border: 0;
  box-shadow: var(--ring);
  background: var(--bg);
  color: var(--gray-1000);
  font-size: 14.5px;
  transition: box-shadow var(--dur) var(--ease);
}
.textarea { height: auto; min-height: 120px; padding-block: 10px; resize: vertical; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gray-500) 50%), linear-gradient(135deg, var(--gray-500) 50%, transparent 50%); background-position: calc(100% - 18px) 18px, calc(100% - 13px) 18px; background-size: 5px 5px; background-repeat: no-repeat; }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
}
.input::placeholder, .textarea::placeholder { color: var(--gray-500); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 639px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid .field--full { grid-column: 1 / -1; }

.form-actions { display: flex; align-items: center; gap: 14px; margin-top: 22px; flex-wrap: wrap; }

.form-note { font-size: 12.5px; color: var(--gray-500); }

/* alerts */
.alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  font-size: 14px;
  box-shadow: var(--ring);
}
.alert--ok { background: color-mix(in srgb, var(--ok) 9%, transparent); color: var(--ok); }
.alert--err { background: color-mix(in srgb, var(--err) 8%, transparent); color: var(--err); }
.dark-alert-fix { color: inherit; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 0;
  box-shadow: var(--ring);
  background: var(--footer-bg);
  padding: clamp(48px, 7vw, 88px) 0 32px;
  margin-top: var(--section);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 1023px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px) { .site-footer__grid { grid-template-columns: 1fr; gap: 28px; } }
.site-footer h4 { font-size: 12px; font-family: var(--font-mono); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 14px; }
.site-footer li { margin-bottom: 10px; }
.site-footer li a { font-size: 14px; color: var(--gray-700); }
.site-footer li a:hover { color: var(--gray-1000); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--gray-500); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 13px; color: var(--gray-500);
  box-shadow: 0 1px 0 var(--line);
}
.social-row { display: flex; gap: 8px; }
.social-row a {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: var(--ring);
  color: var(--gray-700);
  transition: all var(--dur) var(--ease);
}
.social-row a:hover { color: var(--gray-1000); box-shadow: var(--ring-strong); }
.social-row svg { width: 15px; height: 15px; }

/* newsletter */
.newsletter { display: flex; gap: 8px; margin-top: 4px; }
.newsletter .input { flex: 1; min-width: 0; }

/* ---------- mobile bottom action bar (device-ux recipe) ---------- */
.mobile-bar {
  position: fixed;
  z-index: 90;
  left: 14px; right: 14px;
  bottom: calc(14px + var(--safe-b));
  height: var(--mobilenav-h);
  border-radius: var(--r-pill);
  background: var(--bar-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--bar-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 10px;
}
@media (min-width: 768px) { .mobile-bar { display: none; } }
.mobile-bar__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  width: 76px; height: 100%;
  font-size: 10.5px; color: var(--gray-500);
  border-radius: var(--r-pill);
  transition: all var(--dur) var(--ease);
}
.mobile-bar__item svg { width: 20px; height: 20px; }
.mobile-bar__item:active { transform: scale(.94); }
.mobile-bar__fab {
  width: 58px; height: 58px;
  margin-top: -26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(186, 0, 111, .4), 0 0 0 4px var(--bg);
  transition: all var(--dur) var(--ease);
  flex: none;
}
.mobile-bar__fab svg { width: 24px; height: 24px; }
.mobile-bar__fab:active { transform: scale(.92); }

/* ---------- testimonial marquee rows ---------- */
.tm { display: flex; flex-direction: column; gap: 16px; }
.tm .marquee { overflow: hidden; }
.tm__row { gap: 16px; animation-duration: 46s; }
.tm__row--rev { animation-direction: reverse; }
.tm-card {
  width: 420px;
  flex: none;
  display: flex; flex-direction: column; gap: 14px;
}
@media (max-width: 767px) { .tm-card { width: 320px; } }

/* ---------- marquee (edge-masked, pauses on hover) ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent); }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: marquee 30s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track > span { font-family: var(--font-mono); font-size: 13px; color: var(--gray-500); letter-spacing: .06em; white-space: nowrap; font-feature-settings: 'tnum'; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- page hero (sub-pages) ---------- */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + var(--safe-t) + clamp(40px, 6vw, 72px));
  padding-bottom: clamp(32px, 5vw, 56px);
}
.page-hero .eyebrow { margin-bottom: 16px; }

/* ---------- prose (article body) ---------- */
.prose { max-width: 70ch; }
.prose p { color: var(--gray-700); margin-bottom: 1.1em; }
.prose h2 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.025em; margin: 1.6em 0 .6em; }
.prose ul, .prose ol { color: var(--gray-700); margin: 0 0 1.1em 1.2em; }
.prose li { margin-bottom: .4em; }
.prose strong { color: var(--gray-1000); font-weight: 600; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; text-decoration-color: rgba(186,0,111,.35); }
.prose a:hover { text-decoration-color: var(--accent); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--surface-ink);
  color: #ededed;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 24px 64px rgba(0, 0, 0, .4);
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 36% at 0% 0%, rgba(255,255,255,.08), transparent 90%);
  pointer-events: none;
}
.cta-band h2 { color: #ededed; font-size: clamp(28px, 4vw, 44px); font-weight: 400; letter-spacing: -0.03em; line-height: 1.05; max-width: 18ch; position: relative; }
.cta-band p { color: #b4b4b4; max-width: 52ch; position: relative; }
.cta-band .btn--primary { background: #ededed; color: #171717; }
.cta-band .deploy-pill { box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 12px 32px rgba(0,0,0,.3); }
.cta-band .deploy-pill .dp-title { color: #ededed; }
.cta-band .deploy-pill .dp-sub { color: #8a8f98; }

/* ---------- breadcrumb ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--gray-500); font-feature-settings: 'tnum'; }
.crumbs a:hover { color: var(--gray-1000); }
.crumbs .sep { opacity: .5; }

/* ---------- tables (admin + lists) ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--r-md); box-shadow: var(--ring); background: var(--bg); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th {
  text-align: left;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--gray-500);
  padding: 12px 16px;
  box-shadow: 0 1px 0 var(--line);
  white-space: nowrap;
}
table.data td { padding: 12px 16px; box-shadow: 0 1px 0 var(--line); vertical-align: middle; }
table.data tr:last-child td { box-shadow: none; }
@media (hover:hover) { table.data tbody tr:hover { background: var(--gray-100); } }

.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding-inline: 10px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: 11px; font-feature-settings: 'tnum';
  box-shadow: var(--ring);
  background: var(--bg);
}
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; }
.status-pill--new::before { background: var(--accent); }
.status-pill--contacted::before { background: #e8a30c; }
.status-pill--won::before { background: #1c9b58; }
.status-pill--lost::before { background: #d41111; }

/* ---------- admin ---------- */
.admin-shell { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
@media (min-width: 900px) { .admin-shell { grid-template-columns: 240px 1fr; } }
.admin-side {
  box-shadow: var(--ring);
  padding: 20px 14px;
  background: var(--gray-100);
}
@media (min-width: 900px) { .admin-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; } }
.admin-side nav { display: flex; flex-direction: column; gap: 2px; margin-top: 20px; }
.admin-side nav a {
  display: flex; align-items: center; gap: 10px;
  min-height: 40px; padding-inline: 12px;
  border-radius: var(--r-sm);
  font-size: 14px; color: var(--gray-700);
  transition: all var(--dur) var(--ease);
}
.admin-side nav a:hover { background: var(--hover-wash); color: var(--gray-1000); }
.admin-side nav a.active { background: var(--accent-tint); color: var(--accent); font-weight: 500; }
.admin-main { padding: 24px var(--gutter) 64px; }
@media (min-width: 900px) { .admin-main { padding: 32px 40px; } }
.admin-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 28px; }

.kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 32px; }
@media (min-width: 768px) { .kpi-grid { grid-template-columns: repeat(6, 1fr); } }
.kpi { padding: 16px; border-radius: var(--r-md); box-shadow: var(--shadow-card); background: var(--bg); }
.kpi b { display: block; font-size: 24px; font-weight: 400; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 12px; color: var(--gray-500); }

/* ---------- inline field validation ---------- */
.input.is-invalid, .textarea.is-invalid, .select.is-invalid {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--err);
}
.field-msg { color: var(--err); font-size: 12px; }

/* ---------- flash ---------- */
.flash-wrap { position: fixed; top: calc(var(--header-h) + var(--safe-t) + 12px); left: 50%; transform: translateX(-50%); z-index: 200; width: min(480px, calc(100vw - 32px)); }
.flash-wrap .alert { box-shadow: var(--ring), 0 12px 32px rgba(0,0,0,.12); background: var(--bg); }
.flash-wrap .alert--ok { color: var(--ok); }
.flash-wrap .alert--err { color: var(--err); }

/* ---------- kinetic word rise (motion-micro R5) ---------- */
@keyframes word-rise {
  from { opacity: 0; transform: translateY(.6em) rotate(2deg); }
  to { opacity: 1; transform: none; }
}
html.js .hero-title .w {
  display: inline-block;
  opacity: 0;
  animation: word-rise .55s cubic-bezier(.2, .6, .2, 1) forwards;
  animation-delay: calc(.12s + var(--i) * 55ms);
}
html.js .hero-title .w.hero__w-grad {
  background: linear-gradient(120deg, var(--accent), var(--accent-hover));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}


/* ---------- accordion smooth height (R8, progressive) ---------- */
.faq details::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size .3s var(--ease), content-visibility .3s allow-discrete;
}
.faq details[open]::details-content { block-size: auto; }

/* ---------- reveal on scroll (entrance exception to motion contract)
   Hidden state only applies when JS is available (html.js) — without JS
   all content stays visible. ---------- */
html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
html.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- utilities ---------- */
.stack-8 > * + * { margin-top: 8px; }
.stack-16 > * + * { margin-top: 16px; }
.stack-24 > * + * { margin-top: 24px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; } .mt-64 { margin-top: 64px; }
.hidden { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- plans / pricing cards ---------- */
.plan-card {
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px 24px;
  background: var(--card-bg);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
.plan-card--featured { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent), var(--shadow-card); }
/* gradient ring (worldclass.md — never fake gradient borders with color alone) */
.plan-card--featured::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: calc(var(--r-md) + 1px);
  padding: 1.5px;
  background: linear-gradient(135deg, var(--accent), #e6198f 55%, color-mix(in srgb, var(--accent) 25%, transparent));
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
          mask-composite: exclude;
  pointer-events: none;
}
.plan-card .plan-tag {
  position: absolute; top: -11px; left: 24px;
  height: 22px; padding-inline: 10px;
  display: inline-flex; align-items: center;
  border-radius: var(--r-pill);
  background: var(--accent); color: #fff;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
}
.plan-card .plan-name { font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.plan-card .price { font-size: 32px; font-weight: 400; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-card .price small { display: block; margin-top: 6px; font-size: 12.5px; color: var(--gray-500); letter-spacing: 0; font-weight: 400; }
.plan-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 9px; margin: 4px 0 8px; }
.plan-list li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; color: var(--gray-700); }
.plan-list svg { width: 15px; height: 15px; color: var(--accent); flex: none; margin-top: 3px; }
.plan-card .btn { margin-top: auto; width: 100%; }

/* ---------- FAQ accordion ---------- */
.faq { display: flex; flex-direction: column; }
.faq details { box-shadow: 0 1px 0 var(--line); padding: 4px 0; }
.faq details:last-child { box-shadow: none; }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 52px;
  font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .faq-x { transition: transform var(--dur) var(--ease); color: var(--gray-500); flex: none; }
.faq details[open] summary .faq-x { transform: rotate(45deg); color: var(--accent); }
.faq .faq-a { padding: 2px 0 18px; color: var(--gray-700); font-size: 14.5px; max-width: 68ch; }

/* ---------- checklists ---------- */
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 28px; list-style: none; padding: 0; }
@media (max-width: 639px) { .check-grid { grid-template-columns: 1fr; } }
.check-grid li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; color: var(--gray-700); }
.check-grid svg { width: 15px; height: 15px; color: var(--accent); flex: none; margin-top: 3px; }

/* ---------- product price row ---------- */
.product-price { font-family: var(--font-mono); font-size: 13px; color: var(--accent); font-feature-settings: 'tnum'; }

/* ---------- incident band ---------- */
.alert-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 22px;
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--err) 6%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--err) 30%, transparent);
}
.alert-band b { color: var(--err); }

/* ---------- reduced motion kill switch (device-ux.md) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  html.js .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- theme toggle (light / dark / auto) ---------- */
.theme-toggle {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border: 0; border-radius: 50%;
  background: transparent;
  color: var(--gray-700);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  flex: none;
}
.theme-toggle:hover { background: var(--hover-wash); color: var(--gray-1000); }
.theme-toggle:active { transform: scale(.94); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle span { display: grid; place-items: center; }
.theme-toggle .tt-moon { display: none; }
.theme-toggle .tt-auto { display: none; }
.theme-toggle[data-mode="dark"] .tt-sun { display: none; }
.theme-toggle[data-mode="dark"] .tt-moon { display: block; }
.theme-toggle[data-mode="auto"] .tt-sun { display: none; }
.theme-toggle[data-mode="auto"] .tt-moon { display: none; }
.theme-toggle[data-mode="auto"] .tt-auto { display: block; }

.admin-theme { display: grid; place-items: center; width: 100%; margin-top: 8px; }

/* ---------- back to top (desktop) ---------- */
.back-top {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 80;
  width: 44px; height: 44px;
  border: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg);
  color: var(--gray-1000);
  box-shadow: var(--ring), 0 8px 24px rgba(0,0,0,.12);
  cursor: pointer;
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform 300ms var(--ease), background var(--dur) var(--ease);
}
.back-top.is-in { opacity: 1; transform: none; pointer-events: auto; }
.back-top:hover { box-shadow: var(--ring-strong), 0 10px 28px rgba(0,0,0,.16); }
.back-top:active { transform: scale(.94); }
@media (max-width: 767px) { .back-top { display: none; } }

/* ---------- article reading progress ---------- */
.read-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 120;
  background: transparent;
  pointer-events: none;
}
.read-progress span {
  display: block; height: 100%;
  width: var(--progress, 0%);
  background: var(--accent);
  transition: width 80ms linear;
}

/* ---------- skip link reveal ---------- */
.visually-hidden:focus-visible {
  position: fixed;
  top: 12px; left: 12px;
  width: auto; height: auto;
  clip: auto;
  z-index: 300;
  background: var(--bg);
  color: var(--gray-1000);
  padding: 10px 14px;
  border-radius: var(--r-sm);
  box-shadow: var(--ring-strong);
  font-size: 14px;
  white-space: nowrap;
}

/* ---------- anchored sections clear the fixed header ---------- */
[id] { scroll-margin-top: calc(var(--header-h) + 20px); }

/* ---------- staggered reveals inside grids ---------- */
.grid > .reveal:nth-child(2) { transition-delay: 60ms; }
.grid > .reveal:nth-child(3) { transition-delay: 120ms; }
.grid > .reveal:nth-child(4) { transition-delay: 180ms; }
.grid > .reveal:nth-child(5) { transition-delay: 120ms; }
.grid > .reveal:nth-child(6) { transition-delay: 180ms; }
.grid > .reveal:nth-child(n+7) { transition-delay: 240ms; }

/* ---------- cross-document view transitions (progressive) ---------- */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---------- billing toggle (hosting plans) ---------- */
.billing-toggle-row { display: flex; justify-content: center; margin-top: 26px; }
.billing-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px;
  border-radius: var(--r-pill);
  background: var(--hover-wash);
  box-shadow: var(--ring);
  position: relative;
}
.bt-option {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding-inline: 18px;
  border: 0; border-radius: var(--r-pill);
  background: transparent;
  color: var(--gray-500);
  font-size: 14px; font-weight: 500;
  cursor: pointer;
  transition: color var(--dur) var(--ease);
}
.bt-option:hover { color: var(--gray-1000); }
.bt-option.is-active { color: #fff; }
.bt-option::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: var(--r-pill);
  background: var(--accent);
  box-shadow: 0 0 18px rgba(186, 0, 111, .35);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.bt-option.is-active::before { opacity: 1; }
.bt-option > * { position: relative; }
.bt-save {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .18);
}
.bt-option:not(.is-active) .bt-save { background: var(--accent-tint); color: var(--accent); }

/* animated price swap */
.price-num { display: inline-block; }
.price-was { display: none; }
.plan-card[data-period="yearly"] .price-num.is-swapping { animation: price-in .28s var(--ease); }
.plan-card[data-period="monthly"] .price-num.is-swapping { animation: price-in .28s var(--ease); }
@keyframes price-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: none; }
}
.plan-card .price-was { text-decoration: line-through; opacity: .55; font-size: 15px; letter-spacing: 0; }
.plan-card[data-period="monthly"] .price-was { display: none; }
.plan-card[data-period="yearly"] .price-was { display: inline-block; }

/* ---------- bento micro-visuals (21st.dev-style live tiles) ---------- */
.b-viz { position: relative; height: 34px; margin-top: 2px; }
/* uptime: heartbeat pulse */
.b-viz--pulse { display: flex; align-items: center; gap: 8px; }
.b-viz--pulse i {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--ok);
  animation: b-pulse 2.2s ease-in-out infinite;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 45%, transparent);
}
@keyframes b-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 45%, transparent); }
  70% { box-shadow: 0 0 0 12px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.b-viz--pulse em { font-style: normal; font-family: var(--font-mono); font-size: 11px; color: var(--gray-500); }
/* speed: progress sweep */
.b-viz--speed {
  border-radius: var(--r-pill);
  background: var(--hover-wash);
  overflow: hidden;
}
.b-viz--speed i {
  display: block; height: 100%; width: 34%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  animation: b-sweep 2.6s cubic-bezier(.22, 1, .36, 1) infinite;
}
@keyframes b-sweep {
  0% { width: 12%; }
  55% { width: 88%; }
  75%, 100% { width: 88%; opacity: .45; }
}
/* ai: thinking dots */
.b-viz--dots { display: flex; align-items: center; gap: 6px; }
.b-viz--dots i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  animation: b-dots 1.3s ease-in-out infinite;
}
.b-viz--dots i:nth-child(2) { animation-delay: .18s; }
.b-viz--dots i:nth-child(3) { animation-delay: .36s; }
@keyframes b-dots {
  0%, 60%, 100% { transform: none; opacity: .45; }
  30% { transform: translateY(-6px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .b-viz--speed i, .b-viz--dots i, .b-viz--pulse i { animation: none; }
}

/* ---------- admin: 7-day lead chart ---------- */
.chart { display: flex; align-items: flex-end; gap: 10px; height: 120px; }
.chart-col {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: flex-end; gap: 8px; height: 100%;
}
.chart-col i {
  display: block; width: 100%; max-width: 46px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 45%, transparent));
  min-height: 4px;
  transition: filter var(--dur) var(--ease);
}
.chart-col:hover i { filter: brightness(1.2); }
.chart-col span { font-family: var(--font-mono); font-size: 10.5px; color: var(--gray-500); }

/* ---------- admin: table quick search ---------- */
.table-search { margin-bottom: 14px; max-width: 320px; }

/* ---------- subpage hero entrance (consistent, subtle) ---------- */
html.js .page-hero > .container { animation: word-rise-softer .6s cubic-bezier(.2, .6, .2, 1) both; }
@keyframes word-rise-softer {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* liquid glass: solid fallback when blur unsupported (trend-ui-2026 #2) */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav-pill, .mobile-bar, .hero-window { background: var(--surface-ink); }
  :root[data-theme="light"] .nav-pill, :root[data-theme="light"] .mobile-bar { background: #ffffff; }
}

/* ---------- selected work: 3D-tilt browser frames ---------- */
.work-card {
  display: flex; flex-direction: column;
  transform-style: preserve-3d;
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease), background var(--dur) var(--ease);
}
.work-frame {
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 60% at 30% 20%, var(--accent-tint), transparent 70%),
    var(--gray-100);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
:root[data-theme="light"] .work-frame { box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.work-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 400ms var(--ease); }
.work-frame-ph {
  display: grid; place-content: center; gap: 6px;
  height: 100%; text-align: center;
}
.work-frame-ph b { font-size: 17px; letter-spacing: -0.01em; }
.work-frame-ph i { font-style: normal; font-family: var(--font-mono); font-size: 11px; color: var(--gray-500); }
.work-meta { display: flex; flex-direction: column; gap: 6px; }
.work-meta b { font-size: 17px; letter-spacing: -0.02em; }
.work-meta .muted { font-size: 14px; }
@media (hover: hover) {
  .work-card:hover { transform: translateY(-5px) perspective(900px) rotateX(2deg); }
  .work-card:hover .work-frame img { transform: scale(1.04); }
}
