:root {
  color-scheme: dark;
  --black: #070706;
  --ink: #f4f0e8;
  --paper: #f6f2ea;
  --muted: #b8b1a8;
  --muted-strong: #8f887f;
  --line: rgba(246, 242, 234, 0.15);
  --line-strong: rgba(246, 242, 234, 0.28);
  --panel: rgba(18, 17, 16, 0.86);
  --panel-soft: rgba(246, 242, 234, 0.055);
  --champagne: #c8ad73;
  --champagne-soft: #eadbb9;
  --danger: #f2a399;
  --radius: 8px;
  --max: 1248px;
  --grid-size: 64px;
  --media-fit: contain;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "IBM Plex Sans", Inter, sans-serif;
  font-family: var(--font-body);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(246, 242, 234, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, transparent 0 42%, rgba(200, 173, 115, 0.045) 42% 43%, transparent 43% 100%),
    linear-gradient(180deg, var(--black) 0%, var(--panel) 48%, var(--black) 100%);
  background-size: var(--grid-size) var(--grid-size), 420px 420px, auto;
  color: var(--ink);
  text-rendering: geometricPrecision;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 40;
  width: 0%;
  height: 3px;
  background: var(--champagne);
  transition: width 120ms linear;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 72px;
  padding: 12px max(16px, env(safe-area-inset-left)) 12px max(16px, env(safe-area-inset-right));
  border-bottom: 1px solid rgba(246, 242, 234, 0.1);
  background: rgba(7, 7, 6, 0.88);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.nav-action,
.hero-actions,
.contact-links {
  display: flex;
  align-items: center;
}

.brand {
  min-width: 0;
  gap: 10px;
  text-decoration: none;
}

.brand-symbol {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-left: 8px solid var(--paper);
  border-bottom: 4px solid var(--champagne);
  position: relative;
}

.brand-symbol::after {
  content: "";
  position: absolute;
  inset: 7px 8px 7px 12px;
  border-right: 7px solid var(--champagne);
  transform: skew(-20deg);
}

.brand-copy {
  display: grid;
  min-width: 0;
}

.brand-copy strong {
  font-family: "IBM Plex Sans", Inter, sans-serif;
  font-size: 0.98rem;
  line-height: 1;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
}

.nav {
  display: none;
}

.nav-action {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.nav-action:hover {
  border-color: var(--champagne);
  background: rgba(200, 173, 115, 0.12);
  transform: translateY(-1px);
}

main {
  padding-bottom: 86px;
}

.hero,
.section {
  width: min(var(--max), calc(100% - 28px));
  margin: 0 auto;
}

.hero {
  display: grid;
  gap: 20px;
  padding: 24px 0 22px;
}

.hero-copy {
  animation: heroIn 620ms ease both;
}

.hero-visual {
  display: grid;
  gap: 14px;
  animation: heroIn 760ms 120ms ease both;
}

.announcement-line {
  margin: 0 0 18px;
  padding: 12px 0;
  border-top: 1px solid var(--champagne);
  border-bottom: 1px solid var(--line);
  color: var(--champagne-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  line-height: 1.5;
}

.eyebrow,
.tag {
  color: var(--champagne);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 12px;
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.hero-kicker span,
.quick-proof span {
  border: 1px solid var(--line);
  background: rgba(246, 242, 234, 0.055);
  color: var(--champagne-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-kicker span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  letter-spacing: 0;
}

h1 {
  margin-bottom: 10px;
  max-width: 7ch;
  font-size: 3rem;
  line-height: 0.88;
}

h2 {
  margin-bottom: 12px;
  font-size: 2.08rem;
  line-height: 1;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
}

.signature {
  margin: 0 0 14px;
  color: var(--champagne-soft);
  font-family: Manrope, Inter, sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
}

.lead,
.section-heading p,
.editorial p:last-child,
.service-card p,
.system-card p,
.process-step p,
.contact-copy p,
.mobile-brief p,
.faq-list p,
.video-card p {
  color: var(--muted);
  line-height: 1.68;
}

.lead {
  max-width: 58ch;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  line-height: 1.55;
}

.quick-proof {
  display: flex;
  gap: 8px;
  max-width: 560px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
}

.quick-proof span {
  flex: 0 0 min(82%, 320px);
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border-radius: var(--radius);
  padding: 9px 12px;
  scroll-snap-align: start;
}

.quick-proof strong {
  color: var(--paper);
  font-family: var(--font-heading);
  font-size: 0.92rem;
}

.hero-actions,
.contact-links {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.button.primary {
  background: var(--paper);
  color: var(--black);
}

.button.primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.56) 46%, transparent 72%);
  transform: translateX(-120%);
}

.button.primary:hover::after {
  animation: buttonShine 760ms ease;
}

.button.secondary {
  border-color: var(--line-strong);
  color: var(--paper);
}

.button:hover {
  transform: translateY(-2px);
}

.button.secondary:hover {
  border-color: var(--champagne);
  background: rgba(200, 173, 115, 0.1);
}

.button:disabled,
.button[aria-disabled="true"] {
  opacity: 0.52;
  pointer-events: none;
}

.mobile-brief,
.system-showcase,
.mini-showcase,
.impact-card,
.service-card,
.system-card,
.video-card,
.journey-step,
.contact-form,
.process-step,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.hero-media-stack {
  position: relative;
  display: grid;
  gap: 8px;
  overflow: hidden;
  padding: 10px;
  border: 1px solid rgba(246, 242, 234, 0.18);
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(180deg, rgba(246, 242, 234, 0.08), rgba(246, 242, 234, 0.025)),
    rgba(7, 7, 6, 0.46);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

.hero-media-stack::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0 38%, rgba(200, 173, 115, 0.16) 46%, transparent 56% 100%);
  transform: translateX(-80%);
  animation: ambientScan 7800ms ease-in-out infinite;
}

.media-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 26px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.64rem;
  text-transform: uppercase;
}

.media-topline span:last-child {
  color: var(--champagne);
}

.mobile-brief {
  padding: 18px;
}

.hero-visual .mobile-brief {
  display: none;
}

.mobile-brief h2 {
  font-size: 1.4rem;
}

.system-showcase {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.system-showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(200, 173, 115, 0.12);
}

.showcase-media {
  margin: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.showcase-media img {
  width: 100%;
  aspect-ratio: 16 / 6.3;
  object-fit: var(--media-fit);
  transition:
    opacity 220ms ease,
    transform 420ms ease;
}

.showcase-media img.is-switching {
  animation: imageSwitch 520ms ease both;
}

.showcase-copy {
  padding: 12px;
}

.showcase-copy h2 {
  font-size: 1.22rem;
  margin-bottom: 8px;
}

.showcase-copy p {
  display: none;
  overflow: hidden;
  margin-bottom: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  line-height: 1.45;
}

.showcase-dots {
  display: flex;
  gap: 8px;
  padding: 0 12px 12px;
}

.mini-showcase-grid {
  position: relative;
  z-index: 1;
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mini-showcase {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  overflow: hidden;
  margin: 0;
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.mini-showcase img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: var(--media-fit);
  background: var(--paper);
  transition: transform 420ms ease;
}

.mini-showcase:hover img {
  transform: scale(1.025);
}

.mini-showcase figcaption {
  border-top: 1px solid var(--line);
  padding: 10px 12px;
  color: var(--champagne-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
}

.dot {
  width: 24px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(246, 242, 234, 0.2);
  cursor: pointer;
}

.dot.active {
  background: var(--champagne);
  animation: dotPulse 1600ms ease-in-out infinite;
}

.section {
  padding: 58px 0;
}

.impact-rail {
  display: grid;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 26px;
}

.impact-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  overflow: hidden;
  min-height: 194px;
  padding: 18px;
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.impact-card::after,
.journey-step::after,
.magnetic-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}

.impact-card::after,
.journey-step::after {
  border-radius: inherit;
  background: linear-gradient(180deg, transparent, rgba(200, 173, 115, 0.07));
  transition: opacity 180ms ease;
}

.impact-card:hover,
.journey-step:hover {
  border-color: rgba(200, 173, 115, 0.62);
  background: rgba(24, 22, 19, 0.92);
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(-3px);
  box-shadow: 0 20px 64px rgba(0, 0, 0, 0.26);
}

.impact-card:hover::after,
.journey-step:hover::after {
  opacity: 1;
}

.impact-card span,
.journey-step span {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--champagne);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.impact-card h2 {
  max-width: 13ch;
  font-size: 1.88rem;
}

.impact-card p,
.journey-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.metric {
  min-height: 106px;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.metric:hover {
  background: rgba(200, 173, 115, 0.08);
  transform: translateY(-2px);
}

.metric strong {
  display: block;
  margin-bottom: 8px;
  font-family: "IBM Plex Sans", Inter, sans-serif;
  font-size: 1.44rem;
}

.metric span {
  color: var(--muted);
  font-size: 0.92rem;
}

.editorial {
  display: grid;
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 26px;
}

.section-heading.compact {
  max-width: 920px;
}

.journey-map {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.journey-grid {
  display: grid;
  gap: 12px;
}

.journey-step {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  overflow: hidden;
  min-height: 206px;
  padding: 18px;
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.journey-step h3 {
  font-size: 1.2rem;
}

.magnetic-panel {
  --pointer-x: 50%;
  --pointer-y: 50%;
  position: relative;
}

.magnetic-panel::before {
  border-radius: inherit;
  background: radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(200, 173, 115, 0.18), transparent 34%);
  transition: opacity 180ms ease;
}

.magnetic-panel:hover::before,
.magnetic-panel:focus-within::before {
  opacity: 1;
}

.pill-row,
.filter-row,
.stack-cloud,
.feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-row span,
.stack-cloud span,
.feature-row span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--paper);
  background: var(--panel-soft);
  font-size: 0.85rem;
}

.service-grid,
.systems-grid,
.video-grid,
.process-list,
.faq-list {
  display: grid;
  gap: 14px;
}

.systems .section-heading,
.demos .section-heading {
  max-width: 860px;
}

.service-card {
  padding: 20px;
}

.service-card,
.video-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.service-card:hover,
.video-card:hover {
  border-color: rgba(200, 173, 115, 0.62);
  background: rgba(24, 22, 19, 0.92);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.service-card ul {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.service-card li {
  color: var(--champagne-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
}

.filter-row {
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.filter-button {
  flex: 0 0 auto;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--paper);
  padding: 0 14px;
  font-weight: 700;
  cursor: pointer;
}

.filter-button.active {
  border-color: var(--champagne);
  background: rgba(200, 173, 115, 0.18);
}

.system-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  overflow: hidden;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    background 180ms ease;
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
}

.system-card:hover {
  border-color: var(--champagne);
  background: rgba(24, 22, 19, 0.92);
  box-shadow: 0 22px 62px rgba(0, 0, 0, 0.3);
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(-4px);
}

.system-card > div {
  display: grid;
  height: 100%;
}

.system-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: var(--media-fit);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: transform 320ms ease;
}

.system-card:hover img {
  transform: scale(1.018);
}

.system-card h3,
.system-card p,
.feature-row,
.system-meta {
  margin-left: 18px;
  margin-right: 18px;
}

.system-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  margin-bottom: 12px;
}

.status-pill {
  border: 1px solid rgba(200, 173, 115, 0.42);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--champagne-soft);
  font-size: 0.72rem;
}

.feature-row {
  margin-top: 8px;
  margin-bottom: 18px;
}

.stack-cloud span {
  min-height: 38px;
  font-family: "IBM Plex Mono", monospace;
}

.process-step {
  padding: 18px;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.process-step.active {
  border-color: var(--champagne);
  background: rgba(200, 173, 115, 0.1);
}

.process-step:hover {
  transform: translateY(-2px);
}

.process-number {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--champagne);
  font-family: "IBM Plex Mono", monospace;
}

.video-card {
  overflow: hidden;
}

.video-card video,
.video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  border-bottom: 1px solid var(--line);
}

.video-card video {
  object-fit: cover;
}

.video-placeholder {
  position: relative;
  overflow: hidden;
}

.video-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: var(--media-fit);
  opacity: 0.9;
  transition:
    opacity 180ms ease,
    transform 420ms ease;
}

.demo-preview::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(200, 173, 115, 0.28);
  border-radius: var(--radius);
  pointer-events: none;
  animation: previewPulse 2400ms ease-in-out infinite;
}

.video-card:hover .video-placeholder img {
  opacity: 1;
  transform: scale(1.025);
}

.video-placeholder span {
  position: absolute;
  inset: auto 14px 14px auto;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(7, 7, 6, 0.76);
  color: var(--champagne-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
}

.video-card h3 {
  margin: 0;
  padding: 18px 18px 8px;
}

.video-card p {
  margin: 0;
  padding: 0 18px 18px;
}

.reveal {
  opacity: 0.94;
  transform: translateY(8px);
  transition:
    opacity 540ms ease,
    transform 540ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.client-grid span {
  display: grid;
  place-items: center;
  min-height: 92px;
  padding: 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-weight: 800;
  text-align: center;
}

.faq-list details {
  padding: 0;
}

.faq-list summary {
  cursor: pointer;
  padding: 18px;
  font-family: "IBM Plex Sans", Inter, sans-serif;
  font-weight: 800;
}

.faq-list p {
  margin: 0;
  padding: 0 18px 18px;
}

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

.visitor-panel {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.visitor-panel p:last-of-type {
  margin-bottom: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.visitor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.visitor-actions button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(246, 242, 234, 0.06);
  color: var(--paper);
  padding: 0 12px;
  font-weight: 800;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.visitor-actions button:hover,
.visitor-actions button:focus-visible {
  border-color: var(--champagne);
  background: rgba(200, 173, 115, 0.16);
  transform: translateY(-1px);
}

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

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(246, 242, 234, 0.06);
  color: var(--paper);
  padding: 14px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(200, 173, 115, 0.42);
  outline-offset: 1px;
}

.contact-form select option {
  color: #111;
}

.contact-form textarea {
  resize: vertical;
}

.hidden-field {
  position: absolute;
  left: -10000px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--champagne-soft);
}

.footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 16px 104px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

.bottom-nav {
  position: fixed;
  inset: auto 10px max(10px, env(safe-area-inset-bottom));
  z-index: 28;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  max-width: 430px;
  margin: 0 auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 7, 6, 0.9);
  backdrop-filter: blur(16px);
}

.bottom-nav a {
  display: grid;
  place-items: center;
  min-height: 42px;
  border-radius: 6px;
  color: var(--paper);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.bottom-nav a:focus,
.bottom-nav a:hover {
  background: rgba(246, 242, 234, 0.08);
}

.floating-cta {
  position: fixed;
  right: 16px;
  bottom: 72px;
  z-index: 29;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  max-width: calc(100vw - 32px);
  border: 1px solid rgba(200, 173, 115, 0.46);
  border-radius: 999px;
  background: var(--paper);
  color: var(--black);
  padding: 0 16px;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.34);
  font-weight: 900;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.floating-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

body[data-card-style="outlined"] .mobile-brief,
body[data-card-style="outlined"] .system-showcase,
body[data-card-style="outlined"] .mini-showcase,
body[data-card-style="outlined"] .impact-card,
body[data-card-style="outlined"] .service-card,
body[data-card-style="outlined"] .system-card,
body[data-card-style="outlined"] .video-card,
body[data-card-style="outlined"] .journey-step,
body[data-card-style="outlined"] .contact-form,
body[data-card-style="outlined"] .process-step,
body[data-card-style="outlined"] .faq-list details {
  background: transparent;
  box-shadow: none;
}

body[data-card-style="elevated"] .service-card,
body[data-card-style="elevated"] .system-card,
body[data-card-style="elevated"] .video-card,
body[data-card-style="elevated"] .contact-form,
body[data-card-style="elevated"] .system-showcase,
body[data-card-style="elevated"] .mini-showcase,
body[data-card-style="elevated"] .impact-card,
body[data-card-style="elevated"] .journey-step {
  box-shadow: 0 22px 72px rgba(0, 0, 0, 0.32);
}

body[data-motion="off"] *,
body[data-motion="off"] *::before,
body[data-motion="off"] *::after {
  animation: none !important;
  transition: none !important;
}

body[data-motion="subtle"] .demo-preview::after,
body[data-motion="subtle"] .hero-media-stack::before,
body[data-motion="subtle"] .dot.active {
  animation: none;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ambientScan {
  0%,
  24% {
    transform: translateX(-80%);
    opacity: 0;
  }
  36% {
    opacity: 0.95;
  }
  58%,
  100% {
    transform: translateX(82%);
    opacity: 0;
  }
}

@keyframes imageSwitch {
  from {
    opacity: 0.38;
    transform: scale(0.985);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes dotPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(200, 173, 115, 0.36);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(200, 173, 115, 0);
  }
}

@keyframes buttonShine {
  to {
    transform: translateX(120%);
  }
}

@keyframes previewPulse {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 380px) {
  .hero,
  .section {
    width: min(var(--max), calc(100% - 20px));
  }

  h1 {
    font-size: 2.82rem;
  }

  h2 {
    font-size: 1.84rem;
  }

  .media-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

@media (min-width: 760px) {
  main {
    padding-bottom: 0;
  }

  .topbar {
    padding-inline: clamp(22px, 5vw, 72px);
  }

  .nav {
    display: flex;
    gap: 20px;
    color: var(--muted);
    font-size: 0.92rem;
  }

  .nav a {
    text-decoration: none;
  }

  .nav a:hover {
    color: var(--paper);
  }

  h1 {
    font-size: 5.8rem;
  }

  h2 {
    font-size: 2.72rem;
  }

  .signature {
    margin-bottom: 22px;
    font-size: 1.16rem;
  }

  .hero-kicker {
    margin-bottom: 22px;
  }

  .hero-kicker span {
    min-height: 32px;
    padding: 0 11px;
  }

  .hero-actions,
  .contact-links {
    margin-top: 24px;
  }

  .button {
    min-height: 48px;
    padding: 0 17px;
  }

  .quick-proof {
    display: grid;
    overflow: visible;
    padding-bottom: 0;
  }

  .quick-proof span {
    flex-basis: auto;
  }

  .hero {
    grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
    align-items: center;
    gap: 34px;
    padding-top: 70px;
    padding-bottom: 42px;
  }

  .lead {
    display: block;
    overflow: visible;
    line-clamp: unset;
    -webkit-line-clamp: unset;
  }

  .hero-visual {
    align-self: center;
  }

  .hero-media-stack {
    gap: 12px;
    padding: 12px;
  }

  .media-topline {
    min-height: 34px;
    font-size: 0.72rem;
  }

  .showcase-media img {
    aspect-ratio: 16 / 9;
  }

  .showcase-copy {
    padding: 18px;
  }

  .showcase-copy h2 {
    font-size: 1.55rem;
  }

  .showcase-copy p {
    display: block;
    overflow: visible;
    line-clamp: unset;
    -webkit-line-clamp: unset;
  }

  .showcase-dots {
    padding: 0 18px 18px;
  }

  .dot {
    width: 28px;
    height: 8px;
  }

  .mini-showcase-grid {
    display: grid;
  }

  .hero-visual .mobile-brief {
    display: block;
  }

  .impact-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-top: 22px;
  }

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

  .service-grid,
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .systems-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .process-list {
    grid-template-columns: repeat(4, 1fr);
  }

  .client-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .contact-form {
    grid-template-columns: repeat(2, 1fr);
    padding: 24px;
  }

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

  .bottom-nav {
    display: none;
  }

  .floating-cta {
    bottom: 22px;
  }

  .footer {
    flex-direction: row;
    justify-content: space-between;
    padding: 30px clamp(22px, 7vw, 92px);
  }
}

@media (min-width: 1100px) {
  h1 {
    font-size: 8.4rem;
  }

  h2 {
    font-size: 3.25rem;
  }

  .hero {
    width: min(1340px, calc(100% - 88px));
    min-height: 690px;
    padding: 78px 0 60px;
    grid-template-columns: minmax(430px, 0.82fr) minmax(600px, 1.18fr);
    gap: 64px;
  }

  .section {
    padding: 66px 0;
  }

  .hero-copy {
    align-self: center;
  }

  .hero-visual {
    grid-template-columns: minmax(0, 1fr) 250px;
    align-items: stretch;
    gap: 18px;
  }

  .hero-media-stack {
    padding: 14px;
  }

  .system-showcase {
    min-height: 398px;
  }

  .system-showcase .showcase-media img {
    aspect-ratio: 16 / 10;
  }

  .hero-visual .mobile-brief {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: end;
    min-height: 398px;
  }

  .metric-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .impact-card {
    min-height: 224px;
    padding: 22px;
  }

  .impact-card h2 {
    font-size: 2.08rem;
  }

  .editorial {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
    gap: 54px;
    align-items: end;
  }

  .systems-grid {
    grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 0.9fr));
    gap: 18px;
  }

  .system-card:first-child {
    grid-row: span 2;
  }

  .system-card:first-child img {
    aspect-ratio: 16 / 11;
  }

  .system-card:first-child h3 {
    font-size: 1.36rem;
  }

  .video-grid {
    gap: 18px;
  }

  .client-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}
