/* Horns Sentinel Group: site styles. Mobile first; larger screens add on top. */

@font-face {
  font-family: 'Geist';
  src: url('/assets/fonts/geist-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Mono';
  src: url('/assets/fonts/geist-mono-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #07090c;
  --bg-raised: #0b0f14;
  --surface: #10151c;
  --surface-2: #161c25;
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.28);
  --text: #e9eef4;
  --text-muted: #a3afbd;
  --text-faint: #8491a0;
  --accent: #d97544;
  --accent-hover: #e8834f;
  --accent-text: #f08a54;
  --accent-soft: rgba(217, 117, 68, 0.12);
  --accent-line: rgba(217, 117, 68, 0.45);
  --signal: #3ddc97;
  --signal-soft: rgba(61, 220, 151, 0.14);
  --danger: #ff8a8a;
  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 1180px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-space: clamp(64px, 9vw, 104px);
  --header-height: 64px;
  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  /* Motion scale. Entrances ease out hard and settle; exits are half as long
     and ease in; anything anchored at both ends uses the in-out curve. */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-both: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-instant: 110ms;
  --dur-quick: 180ms;
  --dur-standard: 280ms;
  --dur-deliberate: 460ms;
  color-scheme: dark;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-menu-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

a {
  color: inherit;
}

p {
  margin: 0 0 1em;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.35rem, 8.2vw, 4.2rem);
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.9rem, 5.6vw, 3rem);
}

h3 {
  font-size: clamp(1.25rem, 3.4vw, 1.5rem);
  letter-spacing: -0.02em;
}

ul {
  margin: 0;
  padding: 0;
}

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

::selection {
  background: var(--accent);
  color: var(--bg);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  padding: 12px 16px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.section--raised {
  background: var(--bg-raised);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.accent {
  color: var(--accent-text);
}

/* ---------- Eyebrow labels ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.eyebrow--status::before {
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px var(--signal-soft);
  animation: pulse 2.4s ease-in-out infinite;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 7vw, 64px);
}

.section-head p:not(.eyebrow) {
  margin: 20px 0 0;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 2.6vw, 1.2rem);
}

.section-index {
  font-family: var(--font-mono);
  color: var(--accent-text);
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 1rem/1 var(--font-sans);
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease),
    color 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.button:active {
  transform: translateY(1px);
}

.button--primary {
  background: var(--accent);
  color: #0a0c0f;
}

.button--primary:hover {
  background: var(--accent-hover);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--line-strong);
  color: var(--text);
}

.button--ghost:hover {
  border-color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
}

.button--block {
  width: 100%;
}

.button[disabled],
.button[aria-busy='true'] {
  opacity: 0.7;
  cursor: progress;
}

.button .arrow {
  transition: transform 0.2s var(--ease);
}

.button:hover .arrow {
  transform: translateX(3px);
}

.button-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  /* 46 rather than 44: a card scales very slightly while it reveals, and a
     link sized exactly to the minimum would dip under it mid-animation. */
  min-height: 46px;
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Header and navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 12, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
}

.brand__mark {
  width: 28px;
  height: 28px;
  flex: none;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linejoin: round;
}

.brand__name {
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand__name span {
  color: var(--accent-text);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle__lines {
  position: relative;
  width: 22px;
  height: 14px;
}

.nav-toggle__lines::before,
.nav-toggle__lines::after,
.nav-toggle__lines span {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition:
    transform 0.25s var(--ease),
    opacity 0.2s;
}

.nav-toggle__lines::before {
  top: 0;
}

.nav-toggle__lines span {
  top: 6px;
}

.nav-toggle__lines::after {
  top: 12px;
}

.nav-toggle[aria-expanded='true'] .nav-toggle__lines::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] .nav-toggle__lines span {
  opacity: 0;
}

.nav-toggle[aria-expanded='true'] .nav-toggle__lines::after {
  transform: translateY(-6px) rotate(-45deg);
}

.site-nav {
  position: fixed;
  inset: var(--header-height) 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px var(--gutter) 32px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity 0.2s var(--ease),
    transform 0.25s var(--ease),
    visibility 0s linear 0.25s;
}

.site-nav[data-open='true'] {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.2s var(--ease),
    transform 0.25s var(--ease);
}

.site-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 550;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-nav__link[aria-current='page'] {
  color: var(--accent-text);
}

.site-nav__cta {
  margin-top: 24px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 10vw, 104px) 0 clamp(64px, 11vw, 120px);
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 75%);
}

.hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: -220px;
  right: -180px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(217, 117, 68, 0.2), transparent 62%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  max-width: 15em;
}

.hero__lede {
  max-width: 34em;
  margin: 24px 0 32px;
  color: var(--text-muted);
  font-size: clamp(1.08rem, 2.8vw, 1.25rem);
}

.page-hero {
  padding-bottom: clamp(48px, 8vw, 88px);
}

.page-hero h1 {
  max-width: 16em;
  font-size: clamp(2.2rem, 7vw, 3.8rem);
}

/* Illustrative "site check" panel */

.check-panel {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(22, 28, 37, 0.92), rgba(12, 16, 21, 0.96));
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  overflow: hidden;
}

.check-panel__frame {
  position: relative;
  margin: 0;
  padding: 10px;
}

.check-panel__frame::before,
.check-panel__frame::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--accent);
  border-style: solid;
  pointer-events: none;
}

.check-panel__frame::before {
  top: 0;
  left: 0;
  border-width: 2px 0 0 2px;
  border-top-left-radius: 6px;
}

.check-panel__frame::after {
  right: 0;
  bottom: 0;
  border-width: 0 2px 2px 0;
  border-bottom-right-radius: 6px;
}

.check-panel__chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.check-panel__dots {
  display: flex;
  gap: 6px;
}

.check-panel__dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}

.check-panel__url {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.check-panel__url svg {
  width: 12px;
  height: 12px;
  flex: none;
  color: var(--signal);
}

.check-panel__body {
  position: relative;
  padding: 20px 18px 22px;
}

.check-panel__body::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -40%;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(217, 117, 68, 0.1) 70%, rgba(217, 117, 68, 0.28));
  border-bottom: 1px solid var(--accent-line);
  animation: scan 5.5s var(--ease) 0.6s infinite;
  pointer-events: none;
}

.check-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--signal-soft);
  color: var(--signal);
  letter-spacing: 0.08em;
}

.status-pill::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2.4s ease-in-out infinite;
}

.check-list {
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 0.98rem;
  animation: check-in 0.5s var(--ease) both;
}

.check-list li:nth-child(1) {
  animation-delay: 0.15s;
}
.check-list li:nth-child(2) {
  animation-delay: 0.3s;
}
.check-list li:nth-child(3) {
  animation-delay: 0.45s;
}
.check-list li:nth-child(4) {
  animation-delay: 0.6s;
}
.check-list li:nth-child(5) {
  animation-delay: 0.75s;
}

.check-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 6px;
  background: var(--signal-soft);
  color: var(--signal);
}

.check-icon svg {
  width: 13px;
  height: 13px;
}

.check-panel__meter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.meter {
  position: relative;
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.meter::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--signal));
  transform-origin: left;
  animation: meter-fill 1.4s var(--ease) 0.3s both;
}

/* ---------- Proof strip ---------- */

.proof-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-raised);
}

.proof-strip__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
}

.proof-strip__item {
  padding: 20px 12px 20px 0;
  border-bottom: 1px solid var(--line);
}

.proof-strip__item:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.proof-strip__value {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.proof-strip__label {
  display: block;
  margin-top: 2px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  gap: 16px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition:
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease),
    background-color 0.25s var(--ease);
}

.card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 24px;
  right: 24px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease);
}

.card:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.card:hover::before {
  transform: scaleX(1);
}

.card__index {
  position: absolute;
  top: 30px;
  right: 24px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-faint);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-text);
}

.card__icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  margin-bottom: 12px;
}

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

.card__footer {
  margin-top: auto;
  padding-top: 12px;
}

.tick-list {
  display: grid;
  gap: 10px;
  margin: 8px 0 20px;
  list-style: none;
}

.tick-list li {
  position: relative;
  padding-left: 26px;
  color: var(--text);
  font-size: 0.98rem;
}

.tick-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--accent-text);
  border-bottom: 2px solid var(--accent-text);
  transform: rotate(-45deg);
}

.note-line {
  margin: 28px 0 0;
  color: var(--text-muted);
}

/* ---------- Why us ---------- */

.why-grid {
  display: grid;
  gap: 16px;
}

.why-item {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), transparent);
}

.why-item h3 {
  margin: 0 0 10px;
}

.why-item p {
  margin: 0;
  color: var(--text-muted);
}

/* ---------- Work ---------- */

.work-card {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.work-card + .work-card {
  margin-top: 20px;
}

.work-card__media {
  position: relative;
  padding: 20px 20px 0;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(217, 117, 68, 0.18), transparent 60%),
    var(--bg-raised);
  border-bottom: 1px solid var(--line);
}

.browser-frame {
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: #0d1117;
  overflow: hidden;
}

.browser-frame__bar {
  display: flex;
  gap: 5px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}

.browser-frame__bar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
}

.browser-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}

.phone-frame {
  position: absolute;
  right: 14px;
  bottom: 0;
  width: 26%;
  max-width: 120px;
  padding: 5px 5px 0;
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  background: #0d1117;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.5);
}

.phone-frame img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  border-radius: 11px 11px 0 0;
}

.work-card__body {
  padding: 26px 24px 28px;
}

.work-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.work-card h3 {
  margin-bottom: 10px;
  font-size: clamp(1.4rem, 4vw, 1.9rem);
}

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

.placeholder-shot {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  border: 1px dashed var(--line-strong);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 12px, transparent 12px 24px),
    #0d1117;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-align: center;
}

/* ---------- Platform teaser ---------- */

.platform {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(217, 117, 68, 0.16), transparent 60%),
    linear-gradient(180deg, var(--surface), var(--bg-raised));
}

.platform__grid {
  display: grid;
  gap: 40px;
  padding: clamp(28px, 6vw, 56px) clamp(22px, 5vw, 56px);
}

.platform h2 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
}

.platform h2 + p {
  margin-top: 16px;
}

.demo-links {
  display: grid;
  gap: 8px;
  list-style: none;
}

.platform__demos {
  padding-top: 8px;
}

.platform__demos-title {
  margin-bottom: 16px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.demo-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
  text-decoration: none;
  transition:
    border-color 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

.demo-link:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.demo-link__name {
  font-weight: 600;
}

.demo-link__desc {
  display: block;
  color: var(--text-faint);
  font-size: 0.85rem;
}

.demo-link__go {
  flex: none;
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* ---------- Forms ---------- */

.form-card {
  padding: clamp(22px, 5vw, 36px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(7, 9, 12, 0.6);
}

.form-card h3 {
  margin-bottom: 8px;
}

.form-card > p {
  color: var(--text-muted);
}

.form-grid {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 0.95rem;
  font-weight: 550;
}

.field .optional {
  color: var(--text-faint);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.4 var(--font-sans);
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.field select {
  appearance: none;
  padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 50%,
    calc(100% - 16px) 50%;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-faint);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field [aria-invalid='true'] {
  border-color: var(--danger);
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.turnstile-slot:empty {
  display: none;
}

.form-note {
  margin: 0;
  color: var(--text-faint);
  font-size: 0.85rem;
}

.form-note a {
  color: var(--text-muted);
}

.form-error {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 138, 138, 0.4);
  border-radius: var(--radius-sm);
  background: rgba(255, 138, 138, 0.08);
  color: var(--danger);
}

.form-success {
  padding: 28px 24px;
  border: 1px solid rgba(61, 220, 151, 0.35);
  border-radius: var(--radius);
  background: var(--signal-soft);
}

.form-success:focus {
  outline: none;
}

.form-success h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.form-success p {
  margin: 0;
  color: var(--text);
}

/* ---------- Services page ---------- */

.jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  list-style: none;
}

.jump-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.95rem;
  text-decoration: none;
}

.jump-links a:hover {
  border-color: var(--accent-line);
  color: var(--accent-text);
}

.service-block {
  display: grid;
  gap: 32px;
  padding: clamp(40px, 7vw, 72px) 0;
  border-top: 1px solid var(--line);
}

.service-block:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.service-block h2 {
  margin: 8px 0 16px;
}

.service-block__intro p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.price-card {
  padding: 28px 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.price-card__label {
  margin: 0 0 4px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.price-card__price {
  margin: 0 0 20px;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 650;
  letter-spacing: -0.03em;
}

.price-card h3 {
  margin: 8px 0 14px;
  font-size: 1rem;
  letter-spacing: 0;
}

/* ---------- About ---------- */

.founder {
  display: grid;
  gap: 32px;
}

.founder__photo {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  max-width: 420px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at 50% 100%, rgba(217, 117, 68, 0.2), transparent 60%),
    var(--surface);
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-align: center;
  overflow: hidden;
}

.founder__caption {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.prose {
  max-width: 42rem;
}

.prose p,
.prose li {
  color: var(--text-muted);
  font-size: 1.08rem;
}

.prose h2 {
  margin: 48px 0 16px;
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  color: var(--text);
}

.prose h3 {
  margin: 28px 0 10px;
  font-size: 1.15rem;
  color: var(--text);
}

.prose ul {
  margin: 0 0 1.2em;
  padding-left: 1.2em;
}

.prose li {
  margin-bottom: 6px;
}

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

.prose a {
  color: var(--accent-text);
}

.lead-quote {
  margin: 0 0 28px;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
  color: var(--text);
  font-size: clamp(1.25rem, 3.6vw, 1.6rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

/* ---------- Contact ---------- */

.contact-layout {
  display: grid;
  gap: 24px;
}

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

.contact-item {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.contact-item__label {
  margin: 0 0 4px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-item__value {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 550;
  text-decoration: none;
  word-break: break-word;
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 8vw, 72px) clamp(22px, 6vw, 64px);
  border: 1px solid var(--accent-line);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(ellipse 70% 90% at 0% 100%, rgba(217, 117, 68, 0.22), transparent 60%),
    var(--surface);
}

.cta-band h2 {
  max-width: 16em;
}

.cta-band p:not(.eyebrow) {
  max-width: 36em;
  margin: 16px 0 28px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ---------- Footer ---------- */

.site-footer {
  /* The floating ask button sits in the bottom 68px of the viewport. Without
     room to scroll past it, the button lands squarely on the LinkedIn and X
     links once a reader reaches the end of the page. */
  padding: 64px 0 116px;
  border-top: 1px solid var(--line);
  background: var(--bg-raised);
}

@media (min-width: 760px) {
  /* Wide enough that the button is clear of the footer columns. */
  .site-footer {
    padding-bottom: 40px;
  }
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 20px;
}

.site-footer__about {
  grid-column: 1 / -1;
}

.site-footer__about p {
  max-width: 26em;
  margin-top: 14px;
  color: var(--text-muted);
}

.footer-col h2 {
  margin-bottom: 8px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-muted);
  text-decoration: none;
}

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

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 4px;
  list-style: none;
}

.social-links a {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: -12px;
  color: var(--text-muted);
}

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

.social-links svg {
  width: 18px;
  height: 18px;
}

/* ---------- 404 ---------- */

.not-found {
  min-height: 60vh;
  display: grid;
  align-content: center;
}

.not-found__code {
  font-family: var(--font-mono);
  color: var(--accent-text);
}

/* ---------- Motion ---------- */

.reveal-pending {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(4px);
}

/* The scale part of the focus pull goes on big surfaces only. On a block that
   contains a link it would shrink the tap target while the animation runs. */
.card.reveal-pending,
.work-card.reveal-pending,
.platform.reveal-pending,
.cta-band.reveal-pending,
.mini-panel.reveal-pending,
.live-panel.reveal-pending {
  transform: translateY(16px) scale(0.985);
}

.reveal-in {
  opacity: 1;
  transform: none;
  filter: blur(0);
  transition:
    opacity var(--dur-deliberate) var(--ease-out),
    transform 620ms var(--ease-out),
    filter 520ms var(--ease-out);
}

/* Children of a revealed group arrive one after another, 60ms apart. Past the
   eighth the rest land together, so a long list does not crawl. */
.reveal-in > * {
  animation: reveal-child 560ms var(--ease-out) both;
}

.reveal-in > *:nth-child(1) { animation-delay: 0ms; }
.reveal-in > *:nth-child(2) { animation-delay: 60ms; }
.reveal-in > *:nth-child(3) { animation-delay: 120ms; }
.reveal-in > *:nth-child(4) { animation-delay: 180ms; }
.reveal-in > *:nth-child(5) { animation-delay: 240ms; }
.reveal-in > *:nth-child(6) { animation-delay: 300ms; }
.reveal-in > *:nth-child(7) { animation-delay: 360ms; }
.reveal-in > *:nth-child(n + 8) { animation-delay: 420ms; }

@keyframes reveal-child {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

@keyframes scan {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  60% {
    transform: translateY(350%);
    opacity: 1;
  }
  70%,
  100% {
    transform: translateY(350%);
    opacity: 0;
  }
}

@keyframes check-in {
  from {
    opacity: 0;
    transform: translateX(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes meter-fill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .check-panel__body::after {
    display: none;
  }

  .reveal-pending {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .reveal-in > * {
    animation: none;
  }
}

/* ---------- Larger screens ---------- */

@media (min-width: 560px) {
  .button-row {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .form-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid--two .field--full {
    grid-column: 1 / -1;
  }

  .demo-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 760px) {
  .proof-strip__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .proof-strip__item {
    padding: 26px 20px;
    border-bottom: 0;
    border-left: 1px solid var(--line);
  }

  .proof-strip__item:first-child {
    border-left: 0;
    padding-left: 0;
  }

  .card-grid--3,
  .why-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* Four columns do not fit until 960px: "Threat intelligence" wraps and the
     description runs into the link columns. Keep the description on its own
     row above three link columns until then. */
  .site-footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 40px;
  }

  .contact-layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: start;
  }

  .founder {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
    gap: 56px;
  }
}

@media (min-width: 960px) {
  :root {
    --header-height: 72px;
  }

  /* Brand, spacer, accent rule, then the three menus spread evenly across the
     rest: each menu has an equal gap before it (a 1fr track plus its padding)
     and Legal ends at the container edge. The spacer before the rule takes
     1.5fr, so the rule sits closer to the description than to the menus. */
  .site-footer__grid {
    grid-template-columns:
      minmax(0, 22em) 1.5fr 2px
      1fr max-content 1fr max-content 1fr max-content;
    column-gap: 0;
  }

  .site-footer__grid::after {
    content: "";
    grid-row: 1;
    grid-column: 3;
    background: var(--accent);
  }

  .site-footer__about {
    grid-column: 1;
  }

  .footer-col {
    grid-row: 1;
  }

  .footer-col:nth-child(2) { grid-column: 5; }
  .footer-col:nth-child(3) { grid-column: 7; }
  .footer-col:nth-child(4) { grid-column: 9; }

  .footer-col {
    padding-left: calc(128px / 3);
  }

  .site-footer__about p {
    max-width: 22em;
  }

  /* As tall as the brand row beside it, so the headings line up with the
     logo instead of floating above it. */
  .footer-col h2 {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin-bottom: 0;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 0;
    background: transparent;
    border: 0;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .site-nav__link {
    min-height: 44px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0;
  }

  .site-nav__link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
  }

  .site-nav__link[aria-current='page'] {
    color: var(--text);
  }

  .site-nav__cta {
    margin: 0 0 0 12px;
    min-height: 44px;
    padding: 0 18px;
    font-size: 0.95rem;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 64px;
  }

  .work-card {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .work-card__media {
    padding: 32px 32px 0;
    border-bottom: 0;
    border-right: 1px solid var(--line);
    display: flex;
    align-items: flex-end;
  }

  .work-card__media > * {
    width: 100%;
  }

  .work-card__body {
    padding: 40px 36px;
    align-self: center;
  }

  .platform__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: 48px 56px;
    align-items: start;
  }

  .platform__demos {
    grid-column: 1 / -1;
    padding-top: 32px;
    border-top: 1px solid var(--line);
  }

  .platform__demos .demo-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-block {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 56px;
    align-items: start;
  }
}

/* ---------- Small additions ---------- */

.site-footer__bottom p {
  margin: 0;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  list-style: none;
}

.inline-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-muted);
  text-decoration: none;
}

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

.legal-meta {
  margin-top: 16px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.callout {
  margin: 24px 0;
  padding: 16px 18px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--text);
}

.table-scroll {
  overflow-x: auto;
  margin: 0 0 1.2em;
}

.prose table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.prose th,
.prose td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  color: var(--text-muted);
}

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

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

.link-list {
  margin: 8px 0 20px;
  list-style: none;
}

.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-weight: 550;
  text-decoration: none;
}

.link-list a span {
  color: var(--accent-text);
  transition: transform 0.2s var(--ease);
}

.link-list a:hover {
  color: var(--accent-text);
}

.link-list a:hover span {
  transform: translateX(3px);
}

.footer-col a,
.inline-links a {
  min-width: 44px;
}

.form-card__title {
  margin-bottom: 8px;
  font-size: clamp(1.25rem, 3.4vw, 1.5rem);
  letter-spacing: -0.02em;
}

/* ---------- Product demo cards (Work page) ---------- */

.product-demo-card {
  padding-top: 0;
  overflow: hidden;
}

.product-demo-card__shot {
  display: block;
  margin: 0 -24px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-raised);
}

.product-demo-card__shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
}

.product-demo-card .card__index {
  position: static;
  margin-bottom: 10px;
}

/* ---------- Process steps, cost section, client quotes (Work page) ---------- */

.step-grid {
  display: grid;
  gap: 16px;
  list-style: none;
  counter-reset: step;
}

.step {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.step__number {
  margin: 0 0 16px;
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.step p:last-child {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.cost-layout {
  display: grid;
  gap: 32px;
}

.cost-layout h2 {
  margin-bottom: 20px;
}

.cost-card {
  padding: 28px 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  align-self: start;
}

.cost-card h3 {
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.quote-card {
  margin: 0;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

/* One testimonial on its own. Without a grid beside it a full width quote
   reads as a banner, so it keeps the measure of a column. */
.quote-solo {
  max-width: 640px;
  margin-inline: auto;
}

.quote-card blockquote {
  margin: 0 0 20px;
  color: var(--text);
  font-size: clamp(1.1rem, 2.6vw, 1.3rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.quote-card blockquote::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  margin-bottom: 18px;
  background: var(--accent);
}

.quote-card figcaption {
  display: grid;
  gap: 2px;
}

.quote-card__name {
  font-weight: 600;
}

.quote-card__business {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

  .card-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cost-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 56px;
    align-items: start;
  }
}

/* ---------- Website assistant ---------- */

.assistant-launcher {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #0a0c0f;
  font: 600 0.98rem/1 var(--font-sans);
  cursor: pointer;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.8);
  transition: background-color 0.2s var(--ease);
}

.assistant-launcher:hover {
  background: var(--accent-hover);
}

.assistant-launcher svg {
  width: 20px;
  height: 20px;
}

.assistant-panel {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 130;
  display: flex;
  flex-direction: column;
  max-height: min(78vh, 620px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}

.assistant-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 12px 14px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-raised);
}

.assistant-panel__title {
  margin: 0;
  font-weight: 600;
}

.assistant-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.assistant-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.assistant-close svg {
  width: 18px;
  height: 18px;
}

.assistant-messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 18px;
  overflow-y: auto;
  list-style: none;
}

.assistant-msg {
  max-width: 85%;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.97rem;
  line-height: 1.55;
}

.assistant-msg p {
  margin: 0;
  white-space: pre-wrap;
}

.assistant-msg--bot {
  align-self: flex-start;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
}

.assistant-msg--user {
  align-self: flex-end;
  background: var(--accent);
  color: #0a0c0f;
  font-weight: 500;
}

.assistant-msg--pending {
  color: var(--text-muted);
}

.assistant-msg--error {
  border-color: rgba(255, 138, 138, 0.4);
  background: rgba(255, 138, 138, 0.08);
  color: var(--danger);
}

.assistant-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.assistant-suggestion {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font: 400 0.9rem/1 var(--font-sans);
  cursor: pointer;
}

.assistant-suggestion:hover {
  border-color: var(--accent-line);
  color: var(--accent-text);
}

.assistant-form {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}

.assistant-input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.4 var(--font-sans);
}

.assistant-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.assistant-send {
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #0a0c0f;
  font: 600 0.95rem/1 var(--font-sans);
  cursor: pointer;
}

.assistant-note {
  padding: 0 16px 14px;
  color: var(--text-faint);
  font-size: 0.78rem;
  line-height: 1.5;
}

.assistant-note a {
  color: var(--text-muted);
}

body.assistant-open .assistant-launcher {
  display: none;
}

@media (min-width: 560px) {
  .assistant-panel {
    left: auto;
    width: 400px;
  }
}

/* ---------- Depth, light and motion ----------
   The pages were flat: one dark tone, hairline borders, no light source. This
   layer adds the material that current security software uses, without
   touching the palette: glass over a soft glow, gradient edges, a lift on
   hover, and movement that stops when the visitor asks for less of it. */

:root {
  --radius-lg: 22px;
  --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  --edge: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --shadow-soft: 0 24px 60px -36px rgba(0, 0, 0, 0.95);
  --shadow-lift: 0 34px 70px -30px rgba(0, 0, 0, 0.95);
  --glow-accent: 0 22px 60px -30px rgba(217, 117, 68, 0.65);
}

/* A hairline that fades out at both ends, instead of a rule across the page. */
.section--raised {
  border-top-color: transparent;
  border-bottom-color: transparent;
  background-image:
    radial-gradient(ellipse 60% 50% at 12% 0%, rgba(217, 117, 68, 0.07), transparent 70%),
    radial-gradient(ellipse 50% 40% at 92% 100%, rgba(61, 220, 151, 0.05), transparent 70%);
}

.section--raised::before,
.section--raised::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 25%, var(--line-strong) 75%, transparent);
  pointer-events: none;
}

.section--raised::before {
  top: 0;
}

.section--raised::after {
  bottom: 0;
}

/* ---------- Surfaces ---------- */

.card,
.why-item,
.work-card,
.faq-item,
.platform__item,
.contact-panel,
.step-card,
.demo-card {
  border-radius: var(--radius-lg);
  background-image: var(--glass);
  box-shadow: var(--edge), var(--shadow-soft);
}

.card:hover,
.demo-card:hover,
.platform__item:hover {
  transform: translateY(-3px);
  border-color: var(--accent-line);
  box-shadow: var(--edge), var(--shadow-lift), var(--glow-accent);
}

.card__icon {
  background: linear-gradient(180deg, rgba(217, 117, 68, 0.24), rgba(217, 117, 68, 0.05));
  box-shadow: inset 0 0 0 1px rgba(217, 117, 68, 0.35);
}

/* ---------- Buttons ---------- */

.button--primary {
  background: linear-gradient(180deg, #e8834f, #c9663a);
  box-shadow: var(--edge), 0 12px 30px -16px rgba(217, 117, 68, 0.95);
}

.button--primary:hover {
  background: linear-gradient(180deg, #f2966b, #d97544);
  box-shadow: var(--edge), 0 16px 38px -14px rgba(217, 117, 68, 1);
  transform: translateY(-1px);
}

.button--ghost {
  background: var(--glass);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.button--ghost:hover {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 4px var(--accent-soft);
  transform: translateY(-1px);
}

/* ---------- Header ---------- */

.site-header {
  border-bottom-color: transparent;
  box-shadow: 0 1px 0 var(--line);
  transition: box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}

.site-header[data-scrolled='true'] {
  background: rgba(7, 9, 12, 0.92);
  box-shadow: 0 1px 0 var(--line-strong), 0 18px 40px -34px rgba(0, 0, 0, 1);
}

/* ---------- Headline accent ---------- */

h1 .accent {
  background: linear-gradient(110deg, #f7a273, var(--accent) 65%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Hero panel ---------- */

.check-panel__frame {
  box-shadow: var(--edge), 0 40px 90px -40px rgba(0, 0, 0, 1), 0 0 0 1px rgba(217, 117, 68, 0.14);
}

/* ---------- Proof strip ---------- */

.proof-strip__value {
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  .button--primary:hover,
  .button--ghost:hover,
  .card:hover,
  .demo-card:hover,
  .platform__item:hover {
    transform: none;
  }
}

/* ---------- Bento grid ----------
   Three identical boxes in a row read like a template. Giving one card more
   room, and turning the loose line underneath into a tile, gives the section a
   shape and fills the gap that used to sit under it. */

.card-grid--bento {
  gap: 16px;
}

.card--feature {
  background-image:
    linear-gradient(180deg, rgba(217, 117, 68, 0.14), rgba(217, 117, 68, 0.03)),
    var(--glass);
  border-color: var(--accent-line);
}

.card--feature h3 {
  max-width: 18em;
}

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

  .card--wide {
    grid-column: span 2;
  }

  /* A wider card would otherwise leave its list stranded on one side. */
  .card--wide .tick-list {
    columns: 2;
    column-gap: 32px;
  }

  .card--wide .tick-list li {
    break-inside: avoid;
  }

  .card--feature {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      'icon title'
      '.    body'
      '.    link';
    align-content: center;
    column-gap: 20px;
  }

  .card--feature .card__icon {
    grid-area: icon;
    margin-bottom: 0;
  }

  .card--feature h3 {
    grid-area: title;
    align-self: center;
  }

  .card--feature p {
    grid-area: body;
    max-width: 46em;
  }

  .card--feature .card__footer {
    grid-area: link;
  }
}

@media (min-width: 900px) {
  /* A wide card with a short list left a hole under the text, so the list
     moves alongside it instead of under it. */
  .card--wide:not(.card--feature) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    grid-template-areas:
      'icon  list'
      'title list'
      'body  list'
      'link  list';
    grid-template-rows: auto auto auto minmax(0, 1fr);
    column-gap: 40px;
  }

  .card--wide:not(.card--feature) .card__icon {
    grid-area: icon;
  }

  .card--wide:not(.card--feature) h3 {
    grid-area: title;
  }

  .card--wide:not(.card--feature) > p:not(.card__index) {
    grid-area: body;
  }

  .card--wide:not(.card--feature) .tick-list {
    grid-area: list;
    align-self: center;
    columns: 1;
    margin: 0;
    padding-left: 32px;
    border-left: 1px solid var(--line);
  }

  .card--wide:not(.card--feature) .card__footer {
    grid-area: link;
    align-self: end;
  }
}

/* ---------- Proof strip and demo tiles ----------
   Both were plain rows with hairlines, which is what made the page feel like a
   document rather than a product site. */

.proof-strip__item {
  position: relative;
}

.proof-strip__value {
  font-size: 1.1rem;
}

.demo-link {
  border-radius: var(--radius);
  background-image: var(--glass);
  box-shadow: var(--edge);
  transition:
    border-color 0.2s var(--ease),
    background-color 0.2s var(--ease),
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.demo-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--edge), var(--glow-accent);
}

.demo-link__go {
  transition: transform 0.2s var(--ease);
}

.demo-link:hover .demo-link__go {
  transform: translateX(3px);
}

@media (min-width: 760px) {
  /* Six demos in one column made the list scroll past the point where anyone
     would try one. Two columns keep them all in view. */
  .demo-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .proof-strip__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .proof-strip__item {
    padding: 22px 20px;
    border-bottom: 0;
    border-radius: var(--radius);
    background-image: var(--glass);
    box-shadow: var(--edge);
  }

  /* The divider layout zeroed the first item's left padding to align it with
     the page edge. Now that each item is a box, it needs the same inset. */
  .proof-strip__item:first-child {
    padding-left: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .demo-link:hover {
    transform: none;
  }
}

/* ---------- Demo gallery ----------
   A column of text links asked people to imagine the products. Showing the
   actual screens, which is what the demos are for, does that work instead. */

.demo-links--gallery {
  gap: 14px;
}

.demo-tile {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.25);
  background-image: var(--glass);
  box-shadow: var(--edge);
  color: var(--text);
  text-decoration: none;
  transition:
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.demo-tile__shot {
  display: block;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.demo-tile__shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 880 / 480;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s var(--ease);
}

.demo-tile__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 12px 16px;
}

.demo-tile__name {
  display: block;
  font-weight: 600;
}

.demo-tile__desc {
  display: block;
  color: var(--text-faint);
  font-size: 0.85rem;
}

.demo-tile__go {
  flex: none;
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  transition: transform 0.2s var(--ease);
}

.demo-tile:hover {
  transform: translateY(-3px);
  border-color: var(--accent-line);
  box-shadow: var(--edge), var(--glow-accent);
}

.demo-tile:hover .demo-tile__shot img {
  transform: scale(1.04);
}

.demo-tile:hover .demo-tile__go {
  transform: translateX(3px);
}

@media (min-width: 620px) {
  .demo-links--gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .demo-links--gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .demo-tile:hover {
    transform: none;
  }

  .demo-tile:hover .demo-tile__shot img {
    transform: none;
  }
}

/* ---------- Split section ----------
   Every section had the same shape: heading on top, a row of equal boxes under
   it. Here the heading holds its place while the points move past it, so the
   page has more than one rhythm. */

.why-stack {
  display: grid;
}

.why-stack .why-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    'icon title'
    'icon body';
  align-items: start;
  column-gap: 18px;
  row-gap: 8px;
  padding: 26px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.why-stack .why-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.why-stack .why-item .card__icon {
  grid-area: icon;
  margin: 0;
}

.why-stack .why-item h3 {
  grid-area: title;
  margin: 0;
}

.why-stack .why-item p {
  grid-area: body;
  margin: 0;
  max-width: 46em;
  color: var(--text-muted);
}

@media (min-width: 900px) {
  .section-split {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(40px, 6vw, 80px);
    align-items: start;
  }

  .section-head--sticky {
    position: sticky;
    top: calc(var(--header-height) + 40px);
    margin-bottom: 0;
  }

  .why-stack .why-item {
    padding: 32px 0;
  }
}

/* ---------- Status rail and ticker ----------
   Security products put a readout under the hero: label first in mono, then
   the value. The strip below it names what we actually set up and moves
   slowly, which is what makes the top of the page feel live. */

.proof-strip__label {
  margin: 0 0 4px;
  order: -1;
}

.proof-strip__value {
  font-size: 1.05rem;
}

.proof-strip__item {
  display: flex;
  flex-direction: column;
}

.ticker {
  position: relative;
  overflow: hidden;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker__list {
  display: flex;
  gap: 10px;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: ticker-slide 46s linear infinite;
}

.ticker:hover .ticker__list {
  animation-play-state: paused;
}

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background-image: var(--glass);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker__item::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 3px var(--signal-soft);
}

@keyframes ticker-slide {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__list {
    animation: none;
  }
}

/* ---------- Technical section headers ----------
   A label with a rule running off to the right, the way a console groups a
   block. It marks where a section starts without another heading. */

.eyebrow {
  display: flex;
  width: 100%;
}

.eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  margin-left: 6px;
  background: linear-gradient(90deg, var(--line-strong), transparent 85%);
}

/* The eyebrow inside a narrow panel keeps its rule short. */
.cta-band .eyebrow::after,
.platform .eyebrow::after {
  max-width: 220px;
}

/* ---------- Corner ticks ----------
   The small L marks at the corners of a panel, borrowed from the demo screens,
   so the marketing pages and the products look like the same system. */

.platform::before,
.platform::after,
.cta-band::before,
.cta-band::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid var(--accent-line);
  pointer-events: none;
}

.platform::before,
.cta-band::before {
  top: 14px;
  left: 14px;
  border-right: 0;
  border-bottom: 0;
}

.platform::after,
.cta-band::after {
  right: 14px;
  bottom: 14px;
  border-left: 0;
  border-top: 0;
}

/* ---------- Hero grid drift ----------
   The grid behind the hero moves one cell every twenty seconds. It is slow
   enough to read as a system doing something rather than an animation. */

@media (min-width: 760px) {
  .hero::before {
    animation: grid-drift 24s linear infinite;
  }
}

@keyframes grid-drift {
  to {
    background-position: -44px -44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before {
    animation: none;
  }
}

/* ---------- Process rail ----------
   Six boxes in a grid did not read as an order. A rail with a line through it
   does, and it matches the way the demo screens show a sequence. */

.step-grid {
  position: relative;
  gap: 0;
}

.step {
  position: relative;
  padding: 0 0 32px 42px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.step:last-child {
  padding-bottom: 0;
}

/* the line runs between the markers, not past the last one */
.step::before {
  content: '';
  position: absolute;
  top: 26px;
  bottom: -6px;
  left: 11px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent-line), var(--line));
}

.step:last-child::before {
  display: none;
}

.step::after {
  content: '';
  position: absolute;
  top: 7px;
  left: 6px;
  width: 11px;
  height: 11px;
  border: 1px solid var(--accent);
  border-radius: 3px;
  background: var(--bg);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.step__number {
  margin: 0 0 4px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (min-width: 900px) {
  /* Two columns of three keeps the rail from running off the screen. */
  .step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 56px;
  }

  /* In two columns the rail ends at the bottom of each one, not just the last
     step in the source order. */
  .step:nth-last-child(-n + 2)::before {
    display: none;
  }

  .step:nth-last-child(-n + 2) {
    padding-bottom: 0;
  }
}

/* ---------- Ask bar ----------
   The assistant used to live behind a floating button, which is easy to miss
   and easy to mistake for an ad. It now sits under the first section of every
   page as a command bar, with a few questions people actually ask. */

.ask-bar {
  position: relative;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 140% at 12% 50%, rgba(217, 117, 68, 0.08), transparent 70%),
    var(--bg-raised);
}

.ask-bar__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.ask-bar__form {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 6px 6px 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background-image: var(--glass);
  box-shadow: var(--edge);
}

.ask-bar__form:focus-within {
  border-color: var(--accent);
  box-shadow: var(--edge), 0 0 0 4px var(--accent-soft);
}

.ask-bar__label {
  flex: none;
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ask-bar__input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  border: 0;
  background: none;
  color: var(--text);
  font: 400 1rem/1.4 var(--font-sans);
}

.ask-bar__input::placeholder {
  color: var(--text-faint);
}

.ask-bar__input:focus {
  outline: none;
}

.ask-bar__send {
  flex: none;
  min-height: 44px;
  padding: 0 20px;
}

.ask-bar__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ask-chip {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font: 500 0.88rem/1 var(--font-sans);
  cursor: pointer;
  transition:
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

.ask-chip:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--text);
}

.assistant-launcher.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.25s var(--ease),
    transform 0.25s var(--ease),
    visibility 0s linear 0.25s;
}

@media (min-width: 760px) {
  .ask-bar__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
  }

  .ask-bar__chips {
    justify-content: flex-end;
  }
}

/* ---------- Mini panels ----------
   Small illustrative panels in the same frame as the hero site check, one per
   service, so the pages without a demo still show something happening. All of
   them are decorative: aria-hidden, no claims, and still under
   prefers-reduced-motion they simply sit in their finished state. */

.mini-panel {
  position: relative;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-raised));
  box-shadow: var(--edge), var(--shadow-soft);
}

.mini-panel__chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.mini-panel__dots {
  display: flex;
  gap: 5px;
}

.mini-panel__dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
}

.mini-panel__body {
  padding: 18px 16px;
}

/* Cybersecurity: a sweep moves down the rows and each finding appears as it
   passes, which is what a scan actually looks like from the outside. */

.mini-scan {
  position: relative;
  overflow: hidden;
}

.mini-scan::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -30%;
  height: 30%;
  background: linear-gradient(180deg, transparent, rgba(217, 117, 68, 0.1) 70%, rgba(217, 117, 68, 0.26));
  border-bottom: 1px solid var(--accent-line);
  animation: scan 9s var(--ease) infinite;
  pointer-events: none;
}

.mini-scan__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.mini-scan__row:first-child {
  border-top: 0;
}

.mini-scan__port {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-faint);
}

.mini-scan__flag {
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  animation: build-in 9s var(--ease) infinite;
}

.mini-scan__flag--ok {
  background: var(--signal-soft);
  color: var(--signal);
  animation-delay: 0.6s;
}

.mini-scan__flag--high {
  background: rgba(255, 138, 138, 0.14);
  color: var(--danger);
  animation-delay: 1.5s;
}

.mini-scan__flag--medium {
  background: var(--accent-soft);
  color: var(--accent-text);
  animation-delay: 2.4s;
}

.mini-scan__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-faint);
}

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

  .mini-scan__flag {
    opacity: 1;
    animation: none;
  }
}

/* ---------- Work screenshots ----------
   The site shots sat still, which made them read as stock images. Hovering a
   project scrolls the page inside the frame, the way you would if you opened
   it, and the phone beside it lifts slightly. */

.browser-frame img {
  transition: object-position 2.4s var(--ease);
}

.work-card:hover .browser-frame img {
  object-position: center bottom;
}

.phone-frame {
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.work-card:hover .phone-frame {
  transform: translateY(-8px);
}

@media (prefers-reduced-motion: reduce) {
  .browser-frame img,
  .phone-frame,
  .work-card:hover .browser-frame img,
  .work-card:hover .phone-frame {
    transition: none;
    transform: none;
    object-position: center top;
  }
}

/* ---------- Motion borrowed from the product ----------
   These are the patterns our own dashboards use, so the marketing site moves
   the way the software does: a glowing leading edge on a progress bar, a ring
   that expands off a live dot, severity-tinted rows that nudge on hover, and a
   check that pops when a step completes. Durations follow the product: 150 to
   200ms for hover, 300ms for entrances, 2s for anything that breathes. */

/* The leading edge of a filling bar, from the scan progress tracker. */
.meter::before,
.mini-build__track::before {
  content: '';
  position: absolute;
  top: -1px;
  bottom: -1px;
  width: 3px;
  border-radius: 2px;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  animation: meter-edge 1.4s var(--ease) 0.3s both;
  z-index: 1;
}

.mini-build__track::before {
  animation: meter-edge 9s var(--ease) 1.8s infinite;
}

@keyframes meter-edge {
  from {
    left: 0;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  to {
    left: 100%;
    opacity: 0;
  }
}

/* A live dot sends out a ring, the way the agent panels show a running job.
   The ring is a box-shadow on the dot itself, so there is nothing extra to
   position. */
.eyebrow--status::before,
.status-pill::before {
  animation: signal-ring 2s ease-in-out infinite;
}

@keyframes signal-ring {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(61, 220, 151, 0);
  }
}

/* Findings carry their severity on the left edge and nudge when you point at
   them, which is how the scanner lists them. */
.mini-scan__row {
  padding-left: 10px;
  border-left: 3px solid transparent;
  transition:
    transform 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

.mini-scan__row:has(.mini-scan__flag--high) {
  border-left-color: var(--danger);
  background: linear-gradient(90deg, rgba(255, 138, 138, 0.09), transparent 60%);
}

.mini-scan__row:has(.mini-scan__flag--medium) {
  border-left-color: var(--accent);
  background: linear-gradient(90deg, rgba(217, 117, 68, 0.09), transparent 60%);
}

.mini-scan__row:has(.mini-scan__flag--ok) {
  border-left-color: var(--signal);
}

.mini-scan__row:hover {
  transform: translateX(4px);
}

/* A completed check pops instead of just appearing. */
.check-icon svg {
  animation: check-pop 0.4s var(--ease) both;
  animation-delay: inherit;
}

@keyframes check-pop {
  0% {
    transform: scale(0);
  }
  60% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .meter::before,
  .mini-build__track::before,
  .eyebrow--status::before,
  .status-pill::before,
  .check-icon svg {
    animation: none;
  }

  .mini-scan__row:hover {
    transform: none;
  }
}

/* ---------- Flow diagram ----------
   Six products feeding one platform, drawn the way the workflow builder draws
   a running job: dashes marching along each path with a dot travelling behind
   them. Pure SVG, no library. */

.flow-diagram {
  width: 100%;
  max-width: 470px;
  height: auto;
  margin-top: 28px;
  overflow: visible;
}

.flow-diagram__line {
  fill: none;
  stroke: var(--accent-line);
  stroke-width: 1.5;
  stroke-dasharray: 6 8;
  animation: flow-march 2s linear infinite;
}

.flow-diagram__node {
  fill: var(--accent);
}

.flow-diagram__label {
  fill: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.flow-diagram__dot {
  fill: var(--signal);
  filter: drop-shadow(0 0 4px rgba(61, 220, 151, 0.8));
}

.flow-diagram__hub {
  fill: rgba(217, 117, 68, 0.1);
  stroke: var(--accent-line);
  stroke-width: 1;
}

.flow-diagram__hub-label {
  fill: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
}

.flow-diagram__hub-sub {
  fill: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

@keyframes flow-march {
  to {
    stroke-dashoffset: -14;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flow-diagram__line {
    animation: none;
  }

  .flow-diagram__dot {
    display: none;
  }
}

/* ---------- Shot strip ----------
   A slow pass of the screens we have built, running edge to edge under the
   heading. It moves by transform only, so it costs the compositor and nothing
   else, and it stops when you point at it or if you have asked for less
   motion. */

.shot-strip {
  overflow: hidden;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg-raised);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.shot-strip__track {
  display: flex;
  gap: 16px;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: shot-slide 52s linear infinite;
}

.shot-strip:hover .shot-strip__track {
  animation-play-state: paused;
}

.shot-strip__item {
  flex: none;
  width: clamp(220px, 28vw, 340px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--edge), var(--shadow-soft);
}

.shot-strip__item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}

@keyframes shot-slide {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .shot-strip__track {
    animation: none;
  }
}

/* ---------- Record rail ----------
   The about page opened with three lines of text and nothing else. The same
   three facts now arrive in order along a line that draws itself, which gives
   the page a first screen worth looking at. */

.record-rail {
  position: relative;
  max-width: 520px;
  margin-top: 32px;
  padding-left: 26px;
}

.record-rail__line {
  position: absolute;
  top: 6px;
  left: 5px;
  width: 2px;
  height: calc(100% - 18px);
}

.record-rail__line path {
  stroke: var(--accent-line);
  stroke-width: 2;
  stroke-dasharray: 210;
  stroke-dashoffset: 210;
  animation: rail-draw 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.record-rail__items {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.record-rail__items li {
  position: relative;
  display: grid;
  gap: 2px;
  opacity: 0;
  animation: rail-item 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.record-rail__items li:nth-child(1) { animation-delay: 0.5s; }
.record-rail__items li:nth-child(2) { animation-delay: 0.75s; }
.record-rail__items li:nth-child(3) { animation-delay: 1s; }

.record-rail__items li::before {
  content: '';
  position: absolute;
  top: 7px;
  left: -26px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--accent);
  border-radius: 4px;
  background: var(--bg);
}

.record-rail__items li:last-child::before {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.record-rail__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.record-rail__text {
  color: var(--text);
  font-size: 1.02rem;
}

@keyframes rail-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes rail-item {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .record-rail__line path,
  .record-rail__items li {
    animation: none;
    opacity: 1;
    stroke-dashoffset: 0;
  }
}

/* ---------- Panels run only while you can see them ----------
   The script adds .is-playing when a panel scrolls into view. With no
   JavaScript every panel simply runs, which is the old behaviour. */

.js-motion .mini-panel:not(.is-playing) *,
.js-motion .live-panel:not(.is-playing) *,
.js-motion .hero-visual:not(.is-playing) *,
.js-motion .flow-diagram:not(.is-playing) * {
  animation-play-state: paused;
}

/* ---------- Live panel ----------
   A run in progress: modules light up, results arrive one after another, and
   the count climbs. Used in the hero of the product pages so the first screen
   shows the product working rather than describing itself. */

.live-panel {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--surface), var(--bg-raised));
  box-shadow: var(--edge), 0 30px 70px -40px rgba(0, 0, 0, 1);
  overflow: hidden;
}

.live-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.live-panel__state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--signal-soft);
  color: var(--signal);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.live-panel__state::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: signal-ring 2s ease-in-out infinite;
}

.live-panel__modules {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.live-panel__modules span {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: module-run 8s ease-in-out infinite;
}

.live-panel__modules span:nth-child(1) { animation-delay: 0ms; }
.live-panel__modules span:nth-child(2) { animation-delay: 80ms; }
.live-panel__modules span:nth-child(3) { animation-delay: 160ms; }
.live-panel__modules span:nth-child(4) { animation-delay: 240ms; }
.live-panel__modules span:nth-child(5) { animation-delay: 320ms; }
.live-panel__modules span:nth-child(6) { animation-delay: 400ms; }
.live-panel__modules span:nth-child(7) { animation-delay: 480ms; }
.live-panel__modules span:nth-child(8) { animation-delay: 560ms; }

@keyframes module-run {
  0%,
  100% {
    border-color: var(--line);
    color: var(--text-faint);
    background: transparent;
  }
  8%,
  30% {
    border-color: var(--accent-line);
    color: var(--accent-text);
    background: var(--accent-soft);
  }
}

.live-panel__rows {
  margin: 0;
  padding: 6px 0;
  list-style: none;
}

.live-panel__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13px;
  opacity: 0;
  transform: translateX(18px);
  animation: row-arrive 8s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.live-panel__row:nth-child(1) { animation-delay: 0.9s; }
.live-panel__row:nth-child(2) { animation-delay: 1.5s; }
.live-panel__row:nth-child(3) { animation-delay: 2.1s; }

@keyframes row-arrive {
  0% {
    opacity: 0;
    transform: translateX(16px) scale(0.99);
    filter: blur(3px);
  }
  7%,
  88% {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: none;
    filter: blur(0);
  }
}

.live-panel__src {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
}

.live-panel__text {
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-panel__meta {
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 11px;
}

.live-panel__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.live-panel__foot strong {
  color: var(--accent-text);
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  .live-panel__modules span,
  .live-panel__row,
  .live-panel__state::before {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Findings in the live panel carry their severity, same as the scanner. */

.live-panel__row--high,
.live-panel__row--medium,
.live-panel__row--ok {
  border-left: 3px solid transparent;
  padding-left: 11px;
}

.live-panel__row--high {
  border-left-color: var(--danger);
  background: linear-gradient(90deg, rgba(255, 138, 138, 0.1), transparent 55%);
}

.live-panel__row--high .live-panel__src,
.live-panel__row--high .live-panel__meta {
  color: var(--danger);
}

.live-panel__row--medium {
  border-left-color: var(--accent);
  background: linear-gradient(90deg, rgba(217, 117, 68, 0.1), transparent 55%);
}

.live-panel__row--medium .live-panel__src,
.live-panel__row--medium .live-panel__meta {
  color: var(--accent-text);
}

.live-panel__row--ok {
  border-left-color: var(--signal);
}

/* In a page hero the live panel sits beside the text rather than under it. */

.page-hero .container:has(.live-panel--hero) {
  display: grid;
  gap: clamp(28px, 5vw, 56px);
}

.live-panel--hero {
  max-width: 560px;
}

@media (min-width: 900px) {
  .page-hero .container:has(.live-panel--hero) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    align-items: center;
  }

  .page-hero .container:has(.live-panel--hero) .eyebrow,
  .page-hero .container:has(.live-panel--hero) h1,
  .page-hero .container:has(.live-panel--hero) .hero__lede {
    grid-column: 1;
  }

  .live-panel--hero {
    grid-column: 2;
    grid-row: 1 / span 3;
  }
}

/* ---------- Hero entrance ----------
   Four things move on four different clocks: the lede and the buttons rise,
   the panel comes up to size and into focus, and a light sweeps across it once
   it has landed. The headline is deliberately left alone: it is the largest
   thing on the page, so hiding it even briefly would delay the measurement
   browsers use to decide when the page became useful. */

@media (prefers-reduced-motion: no-preference) {
  .hero__lede {
    animation: hero-rise var(--dur-deliberate) var(--ease-out) 80ms both;
  }

  .hero .button-row {
    animation: hero-rise var(--dur-deliberate) var(--ease-out) 160ms both;
  }

  .check-panel__frame {
    animation: hero-panel 820ms var(--ease-out) 120ms both;
  }

  /* The sweep is a translated gradient, not a moving background position, so
     it stays on the compositor. */
  .check-panel__frame::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.1) 50%, transparent 58%);
    transform: translateX(-100%);
    animation: panel-sweep 6s var(--ease-both) 1.4s infinite;
    pointer-events: none;
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@keyframes hero-panel {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
    filter: blur(6px);
  }
}

@keyframes panel-sweep {
  0% {
    transform: translateX(-100%);
  }
  22%,
  100% {
    transform: translateX(100%);
  }
}

/* ---------- Between pages ----------
   Same-origin navigations crossfade instead of flashing white. Two lines, no
   script, and browsers without it simply navigate as before. */

@view-transition {
  navigation: auto;
}

/* ---------- Websites panel ----------
   A page assembles, the same page arrives on a phone, then the score fills.
   Something is moving through the whole cycle rather than appearing once and
   sitting still for the rest of it. */

.mini-panel__url {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0.04em;
}

.mini-panel__caret {
  display: inline-block;
  width: 6px;
  height: 12px;
  margin-left: 3px;
  background: var(--accent);
  animation: caret-blink 1s steps(1, end) infinite;
}

@keyframes caret-blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.build {
  position: relative;
  min-height: 210px;
  overflow: hidden;
}

.build__page {
  display: grid;
  gap: 9px;
}

.build__nav {
  display: flex;
  gap: 6px;
  align-items: center;
}

.build__nav span {
  height: 9px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  transform: scaleX(0);
  transform-origin: left;
  animation: snap-x 7s var(--ease-out) infinite;
}

.build__nav span:nth-child(1) { width: 34px; background: var(--accent); }
.build__nav span:nth-child(2) { width: 26px; animation-delay: 80ms; }
.build__nav span:nth-child(3) { width: 22px; animation-delay: 160ms; }
.build__nav span:nth-child(4) { width: 30px; animation-delay: 240ms; }

.build__hero {
  display: grid;
  gap: 7px;
  padding: 14px;
  border-radius: 8px;
  background: linear-gradient(120deg, rgba(217, 117, 68, 0.26), rgba(217, 117, 68, 0.05));
  transform: scaleY(0);
  transform-origin: top;
  animation: snap-y 7s var(--ease-out) 380ms infinite;
}

.build__line {
  height: 8px;
  width: 58%;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.24);
  opacity: 0;
  animation: line-in 7s var(--ease-out) 620ms infinite;
}

.build__line--wide {
  width: 78%;
  height: 11px;
  animation-delay: 540ms;
}

.build__cta {
  width: 62px;
  height: 16px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0;
  animation: pop-in 7s cubic-bezier(0.34, 1.3, 0.64, 1) 760ms infinite;
}

.build__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.build__cards span {
  height: 42px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  opacity: 0;
  animation: pop-in 7s cubic-bezier(0.34, 1.3, 0.64, 1) infinite;
}

.build__cards span:nth-child(1) { animation-delay: 900ms; }
.build__cards span:nth-child(2) { animation-delay: 980ms; }
.build__cards span:nth-child(3) { animation-delay: 1060ms; }

/* The same page, on a phone, sliding in over the layout. */
.build__phone {
  position: absolute;
  right: 6px;
  bottom: 42px;
  display: grid;
  gap: 5px;
  width: 74px;
  padding: 8px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg);
  box-shadow: -14px 0 40px -18px rgba(0, 0, 0, 1);
  transform: translateX(120%);
  animation: phone-in 7s var(--ease-out) 1.6s infinite;
}

.build__phone-bar {
  height: 6px;
  width: 60%;
  border-radius: 2px;
  background: var(--accent);
}

.build__phone-hero {
  height: 26px;
  border-radius: 5px;
  background: linear-gradient(120deg, rgba(217, 117, 68, 0.3), rgba(217, 117, 68, 0.06));
}

.build__phone-card {
  height: 14px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
}

.build__meter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-faint);
}

.build__track {
  position: relative;
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.build__track::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--signal));
  transform-origin: left;
  transform: scaleX(0);
  animation: meter-run 7s var(--ease-out) 2.3s infinite;
}

.build__score {
  color: var(--signal);
  opacity: 0;
  animation: pop-in 7s cubic-bezier(0.34, 1.3, 0.64, 1) 3.1s infinite;
}

@keyframes snap-x {
  0% {
    transform: scaleX(0);
  }
  6%,
  92% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(0);
  }
}

@keyframes snap-y {
  0% {
    transform: scaleY(0);
  }
  7%,
  92% {
    transform: scaleY(1);
  }
  100% {
    transform: scaleY(0);
  }
}

@keyframes line-in {
  0% {
    opacity: 0;
    transform: translateY(5px);
  }
  6%,
  92% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
  }
}

@keyframes pop-in {
  0% {
    opacity: 0;
    transform: scale(0.88);
  }
  5% {
    opacity: 1;
  }
  8%,
  92% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

@keyframes phone-in {
  0% {
    transform: translateX(120%);
  }
  9%,
  92% {
    transform: none;
  }
  100% {
    transform: translateX(120%);
  }
}

@keyframes meter-run {
  0% {
    transform: scaleX(0);
  }
  14%,
  92% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .build__nav span,
  .build__hero,
  .build__line,
  .build__cta,
  .build__cards span,
  .build__phone,
  .build__track::after,
  .build__score,
  .mini-panel__caret {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ---------- Brand panel ----------
   The palette lands, the mark draws itself, the name sets one letter at a
   time, then the brand gets applied to the places a customer sees it. Four
   beats, so the panel is never sitting still for long. */

.kit {
  display: grid;
  gap: 16px;
  min-height: 200px;
  align-content: center;
}

.kit__swatches {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.kit__swatches span {
  height: 36px;
  border-radius: 7px;
  transform: translateY(-14px) scale(0.9);
  opacity: 0;
  animation: swatch-drop 8s cubic-bezier(0.34, 1.3, 0.64, 1) infinite;
}

.kit__swatches span:nth-child(1) { background: #d97544; animation-delay: 0ms; }
.kit__swatches span:nth-child(2) { background: #8a4b2c; animation-delay: 70ms; }
.kit__swatches span:nth-child(3) { background: #e9eef4; animation-delay: 140ms; }
.kit__swatches span:nth-child(4) { background: #3ddc97; animation-delay: 210ms; }
.kit__swatches span:nth-child(5) { background: #10151c; border: 1px solid var(--line-strong); animation-delay: 280ms; }

.kit__lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.kit__mark {
  width: 44px;
  height: 44px;
  flex: none;
  color: var(--accent);
  animation: mark-glow 8s ease-in-out 1.9s infinite;
}

.kit__mark path {
  stroke-dasharray: 64;
  stroke-dashoffset: 64;
  animation: mark-stroke 8s var(--ease-out) 900ms infinite;
}

.kit__name {
  display: flex;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.kit__name span {
  opacity: 0;
  transform: translateY(8px);
  animation: letter-set 8s var(--ease-out) infinite;
}

.kit__name span:nth-child(1) { animation-delay: 1.5s; }
.kit__name span:nth-child(2) { animation-delay: 1.54s; }
.kit__name span:nth-child(3) { animation-delay: 1.58s; }
.kit__name span:nth-child(4) { animation-delay: 1.62s; }
.kit__name span:nth-child(5) { animation-delay: 1.66s; }
.kit__name span:nth-child(6) { animation-delay: 1.7s; }
.kit__name span:nth-child(7) { animation-delay: 1.74s; }
.kit__name span:nth-child(8) { animation-delay: 1.78s; }
.kit__name span:nth-child(9) { animation-delay: 1.82s; }
.kit__name span:nth-child(10) { animation-delay: 1.86s; }
.kit__name span:nth-child(11) { animation-delay: 1.9s; }
.kit__name span:nth-child(12) { animation-delay: 1.94s; }
.kit__name span:nth-child(13) { animation-delay: 1.98s; }

.kit__name-accent {
  color: var(--accent-text);
}

.kit__applied {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.kit__chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0;
  animation: chip-apply 8s cubic-bezier(0.34, 1.3, 0.64, 1) infinite;
}

.kit__chip::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
}

.kit__chip:nth-child(1) { animation-delay: 2.7s; }
.kit__chip:nth-child(2) { animation-delay: 2.86s; }
.kit__chip:nth-child(3) { animation-delay: 3.02s; }
.kit__chip:nth-child(4) { animation-delay: 3.18s; }

@keyframes swatch-drop {
  0% {
    opacity: 0;
    transform: translateY(-14px) scale(0.9);
  }
  5%,
  90% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
    transform: translateY(-14px) scale(0.9);
  }
}

@keyframes mark-stroke {
  0% {
    stroke-dashoffset: 64;
  }
  12%,
  90% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 64;
  }
}

@keyframes mark-glow {
  0%,
  100% {
    filter: none;
  }
  8% {
    filter: drop-shadow(0 0 10px rgba(217, 117, 68, 0.75));
  }
  20%,
  90% {
    filter: drop-shadow(0 0 3px rgba(217, 117, 68, 0.35));
  }
}

@keyframes letter-set {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  4%,
  90% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes chip-apply {
  0% {
    opacity: 0;
    transform: scale(0.86);
  }
  4%,
  90% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
    transform: scale(0.86);
  }
}

@media (prefers-reduced-motion: reduce) {
  .kit__swatches span,
  .kit__mark,
  .kit__mark path,
  .kit__name span,
  .kit__chip {
    animation: none;
    opacity: 1;
    transform: none;
    stroke-dashoffset: 0;
    filter: none;
  }
}

/* ---------- Click-to-detail, shared ----------
   These styles started on the demo pages. They live here now so any page can
   use the same behaviour: a card or row opens a panel explaining what it is.
*/

[data-demo] {
  cursor: pointer;
}

[data-demo]:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
}

[data-demo="detail"]:hover,
[data-demo="filter"]:hover {
  border-color: var(--accent-line);
}

[data-demo="filter"].is-filtering {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.is-filtered-out {
  display: none !important;
}

[data-demo-filter-status] {
  display: block;
  min-height: 18px;
  margin-top: 8px;
  color: var(--accent-text);
  font-size: 0.8rem;
}

/* Detail panel: sits inside the app frame, like a drawer in the real product. */
.demo-panel {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  justify-content: flex-end;
}

.app-mockup {
  position: relative;
}

.demo-panel__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 9, 0.6);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.demo-panel__sheet {
  /* Sticky, so the panel stays in view and clear of the site header even when
     the app mockup is taller than the screen. */
  position: sticky;
  top: calc(var(--header-height) + 12px);
  align-self: flex-start;
  width: min(420px, 100%);
  max-height: min(100%, calc(100vh - var(--header-height) - 24px));
  padding: 24px;
  overflow-y: auto;
  border-left: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: -24px 0 60px -20px rgba(0, 0, 0, 0.8);
  animation: demo-panel-in 0.22s var(--ease);
}

@keyframes demo-panel-in {
  from {
    transform: translateX(16px);
    opacity: 0;
  }
}

.demo-panel__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.demo-panel__close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.demo-panel__close svg {
  width: 18px;
  height: 18px;
}

.demo-panel__body h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.demo-panel__body .demo-panel__sub {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.demo-panel__rows {
  display: grid;
  gap: 0;
  margin: 0 0 18px;
  list-style: none;
}

.demo-panel__rows li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.demo-panel__rows li span:last-child {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-align: right;
}

.demo-panel__note {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.5;
}

/* Short note after an action, in the corner of the app frame. */
.demo-note {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 6;
  max-width: min(360px, calc(100% - 32px));
  padding: 12px 16px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.5;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.8);
  animation: demo-note-in 0.2s var(--ease);
}

.demo-note.is-leaving {
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

@keyframes demo-note-in {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
}

@media (max-width: 559px) {
  .demo-panel__sheet {
    width: 100%;
    padding: 20px 16px;
  }
}

@media (max-width: 720px) {
  /* On a phone the assistant button floats over the bottom of the screen, so
     the panel keeps its last line clear of it. */
  .demo-panel__sheet {
    padding-bottom: 96px;
  }
}

@media (max-width: 520px) {
  /* On a narrow phone the row's three columns could not all fit, so the label
     moved under the text instead of being clipped by the panel edge. */
  .live-panel__row {
    grid-template-columns: auto minmax(0, 1fr);
    row-gap: 2px;
  }

  .live-panel__meta {
    grid-column: 2;
    justify-self: start;
  }

  .live-panel__text {
    white-space: normal;
  }
}

/* A table wider than a phone scrolls inside its own box rather than pushing
   the whole page sideways. */

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-wrap table {
  min-width: 34em;
}

/* ---------- Card screenshot ----------
   A card that is selling a screen should show the screen. The image is the top
   of the card, bleeding to its edges, and it is hidden from screen readers
   because the card's own heading and link already say what it is. */

.card__shot {
  display: block;
  margin: -28px -24px 20px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--bg);
}

.card__shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s var(--ease-out);
}

.card:hover .card__shot img {
  transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .card:hover .card__shot img {
    transform: none;
  }
}

/* With a screenshot at the top of the card, the category label cannot float in
   the corner any more: it sits in the flow, under the icon. */

.card:has(.card__shot) .card__index {
  position: static;
  margin: 0 0 6px;
}

/* ---------- Cost factors ----------
   The question everyone actually has is "what makes it cost more". A list of
   five bullets answers it weakly. These are the same five, each one openable,
   with a bar showing roughly how often it moves a quote. The bars grow when the
   card comes into view, and they are labelled as frequency, not price, because
   we do not publish prices. */

.cost-factors {
  display: grid;
  gap: 2px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.cost-factor {
  display: grid;
  gap: 8px;
  padding: 14px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    background-color var(--dur-quick) var(--ease-both),
    transform var(--dur-quick) var(--ease-both);
}

.cost-factor:hover,
.cost-factor:focus-visible {
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(3px);
}

.cost-factor:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
}

.cost-factor__name {
  font-size: 0.98rem;
}

.cost-factor__bar {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

/* The widths live here rather than in a style attribute: our CSP is
   style-src 'self', so an inline style is refused and every bar renders full
   width. The QA suite caught exactly that. */
.cost-factor__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  transform: scaleX(0);
  transform-origin: left;
}

.reveal-in .cost-factor__bar span,
.cost-card:not(.reveal-pending) .cost-factor__bar span {
  animation: factor-grow 700ms var(--ease-out) both;
}

.cost-factor:nth-child(1) .cost-factor__bar span { width: 92%; }
.cost-factor:nth-child(2) .cost-factor__bar span { width: 78%; }
.cost-factor:nth-child(3) .cost-factor__bar span { width: 60%; }
.cost-factor:nth-child(4) .cost-factor__bar span { width: 46%; }
.cost-factor:nth-child(5) .cost-factor__bar span { width: 34%; }

.cost-factor:nth-child(1) .cost-factor__bar span { animation-delay: 60ms; }
.cost-factor:nth-child(2) .cost-factor__bar span { animation-delay: 120ms; }
.cost-factor:nth-child(3) .cost-factor__bar span { animation-delay: 180ms; }
.cost-factor:nth-child(4) .cost-factor__bar span { animation-delay: 240ms; }
.cost-factor:nth-child(5) .cost-factor__bar span { animation-delay: 300ms; }

@keyframes factor-grow {
  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cost-factor__bar span {
    transform: scaleX(1);
    animation: none;
  }

  .cost-factor:hover,
  .cost-factor:focus-visible {
    transform: none;
  }
}

/* Anything that can host a detail panel has to be a positioning context, or the
   panel escapes to the page and opens where the reader is not looking. */

.live-panel,
.mini-panel,
.cost-card {
  position: relative;
}

/* The 404 offers places to start, so it should list a few rather than say so. */

.not-found__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

/* ---------- Mini list ----------
   Rows that tick off one after another. These styles were deleted by accident
   when the websites and brand panels were rebuilt, which left the consulting
   and insurance panels as run-together text. Nothing caught it: unstyled text
   still sits inside the gutter and still passes every layout check. */

.mini-list {
  display: grid;
}

.mini-list__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.mini-list__row:first-child {
  border-top: 0;
}

.mini-list__dot {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--signal);
  font-size: 0.7rem;
  animation: list-tick 9s steps(1, end) infinite;
}

.mini-list__tag {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: list-tag 9s steps(1, end) infinite;
}

.mini-list__row:nth-child(2) .mini-list__dot,
.mini-list__row:nth-child(2) .mini-list__tag {
  animation-delay: 1.4s;
}

.mini-list__row:nth-child(3) .mini-list__dot,
.mini-list__row:nth-child(3) .mini-list__tag {
  animation-delay: 2.8s;
}

@keyframes list-tick {
  0%,
  10% {
    background: rgba(255, 255, 255, 0.06);
    color: transparent;
  }
  14%,
  100% {
    background: var(--signal-soft);
    color: var(--signal);
  }
}

@keyframes list-tag {
  0%,
  10% {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-faint);
  }
  14%,
  100% {
    background: var(--signal-soft);
    color: var(--signal);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mini-list__dot,
  .mini-list__tag {
    animation: none;
  }
}
