/* Driftamp — company site
   Self-hosted fonts, no third-party requests, no cookies. */

@font-face {
  font-family: "Geist";
  src: url("../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("../fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #07080b;
  --bg-raised: #0c0e13;
  --text: #edf0f5;
  --text-2: #a4adbc;
  --text-3: #7c8595;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --accent: #6d8bff;
  --accent-2: #22d3ee;
  --accent-3: #a78bfa;
  --live: #34d399;
  --radius: 20px;
  --container: 1120px;
  --gutter: clamp(20px, 4vw, 32px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

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

html {
  background: var(--bg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
svg,
canvas {
  display: block;
}

a {
  color: inherit;
}

::selection {
  background: rgba(109, 139, 255, 0.35);
  color: #fff;
}

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip {
  position: absolute;
  left: 16px;
  top: -56px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip:focus {
  top: 16px;
}

/* Film grain over everything, very faint. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 50;
  padding-inline: var(--gutter);
}

.nav-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 7px 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 14, 19, 0.55);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.nav.is-scrolled .nav-inner {
  background: rgba(10, 12, 16, 0.8);
  border-color: var(--line-2);
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.7);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 26px;
  height: 26px;
  flex: none;
}

.nav-links {
  display: flex;
  gap: 2px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

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

.btn {
  --h: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--h);
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 500 15px/1 var(--font);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.25s, color 0.2s;
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  color: #0a0b0e;
  background: linear-gradient(180deg, #ffffff, #dde3ee);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset, 0 10px 28px -10px rgba(109, 139, 255, 0.6);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3) inset, 0 14px 34px -10px rgba(109, 139, 255, 0.8);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-2);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-light {
  color: #0a0b0e;
  background: var(--text);
}

.btn-light:hover {
  background: #fff;
}

.btn-sm {
  --h: 36px;
  padding: 0 16px;
  font-size: 14px;
}

.btn-lg {
  --h: 54px;
  padding: 0 24px;
  font-size: 16px;
}

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

.hero {
  position: relative;
  isolation: isolate;
  padding-top: clamp(140px, 17vw, 196px);
  padding-bottom: clamp(64px, 9vw, 112px);
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0 0 auto 0;
  height: 1100px;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 72% 58% at 50% 0%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 72% 58% at 50% 0%, #000 25%, transparent 78%);
}

.glow {
  position: absolute;
  left: 50%;
  border-radius: 50%;
}

.glow-a {
  top: -260px;
  width: 980px;
  height: 620px;
  background: radial-gradient(closest-side, rgba(109, 139, 255, 0.34), rgba(109, 139, 255, 0) 100%);
  animation: drift-a 18s ease-in-out infinite alternate;
}

.glow-b {
  top: -120px;
  width: 720px;
  height: 460px;
  background: radial-gradient(closest-side, rgba(34, 211, 238, 0.2), rgba(34, 211, 238, 0) 100%);
  animation: drift-b 23s ease-in-out infinite alternate;
}

.glow-c {
  top: 520px;
  width: 900px;
  height: 480px;
  background: radial-gradient(closest-side, rgba(167, 139, 250, 0.14), rgba(167, 139, 250, 0) 100%);
  animation: drift-a 26s ease-in-out infinite alternate-reverse;
}

@keyframes drift-a {
  from { transform: translate(-62%, 0); }
  to { transform: translate(-44%, 36px); }
}

@keyframes drift-b {
  from { transform: translate(-20%, 0); }
  to { transform: translate(-58%, 28px); }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 30px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font: 500 12.5px/1 var(--mono);
  letter-spacing: 0.02em;
  color: var(--text-2);
}

.dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--live);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero-title {
  margin: 0 auto;
  max-width: 11.5em;
  font-size: clamp(2.6rem, 7.2vw, 5.9rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 35%, #8f9ab0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-wrap: balance;
}

.hero-lede {
  margin: 26px auto 0;
  max-width: 35rem;
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  text-wrap: balance;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 38px;
}

/* The telemetry panel under the hero copy. */
.monitor-wrap {
  position: relative;
  max-width: 1040px;
  margin: clamp(60px, 8vw, 92px) auto 0;
}

.monitor-wrap::before {
  content: "";
  position: absolute;
  inset: 12% 6% -6%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(109, 139, 255, 0.28), rgba(34, 211, 238, 0.08) 60%, transparent);
  filter: blur(30px);
}

.monitor {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(22, 26, 35, 0.78), rgba(10, 12, 16, 0.86));
  box-shadow: 0 50px 120px -50px rgba(0, 0, 0, 0.9);
  text-align: left;
}

.monitor::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
}

.monitor-head,
.monitor-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.monitor-head {
  border-bottom: 1px solid var(--line);
}

.monitor-foot {
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px 28px;
  border-top: 1px solid var(--line);
  letter-spacing: 0.04em;
}

.monitor-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
}

.monitor-time {
  font-variant-numeric: tabular-nums;
}

.monitor-canvas {
  width: 100%;
  height: clamp(210px, 27vw, 320px);
}

.readout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.readout b {
  display: inline-block;
  min-width: 5.5ch;
  font-weight: 500;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.swatch {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.s1 { background: var(--accent); }
.s2 { background: var(--accent-2); }
.s3 { background: var(--accent-3); }

/* ---------- Marquee ---------- */

.marquee {
  position: relative;
  overflow: hidden;
  padding: 22px 0;
  border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  padding-right: 32px;
  font: 500 12.5px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}

.marquee-track span::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

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

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding-block: clamp(72px, 10vw, 128px);
}

.eyebrow {
  margin: 0 0 18px;
  font: 500 12.5px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.section-title {
  margin: 0;
  max-width: 17ch;
  font-size: clamp(2.1rem, 4.2vw, 3.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.038em;
  color: var(--text);
  text-wrap: balance;
}

.section-lede {
  margin: 22px 0 0;
  max-width: 30rem;
  font-size: 1.075rem;
  text-wrap: pretty;
}

/* Bento grid of capabilities. */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(44px, 6vw, 68px);
}

.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 290px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  transition: border-color 0.3s, transform 0.4s var(--ease);
}

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

/* Cursor spotlight; site.js feeds --mx and --my. */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 50%), rgba(109, 139, 255, 0.15), transparent 62%);
  transition: opacity 0.35s;
}

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

.card:hover::before {
  opacity: 1;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 40px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  margin: auto 0 8px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.card p {
  margin: 0;
  max-width: 34ch;
  font-size: 1rem;
}

.card-art {
  position: absolute;
  top: 26px;
  right: 26px;
  width: min(46%, 340px);
  height: auto;
  pointer-events: none;
}

/* Fades a chart's ends into the card. */
.card-art-fade {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.flow {
  stroke-dasharray: 3 7;
  animation: flow 1.8s linear infinite;
}

@keyframes flow {
  to { stroke-dashoffset: -20; }
}

/* Approach: sticky heading beside a numbered list. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(40px, 7vw, 104px);
  align-items: start;
}

.split-head {
  position: sticky;
  top: 132px;
}

.split-head .section-title {
  max-width: 12ch;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.step {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.step-num {
  font: 500 13px/1.2 var(--mono);
  color: var(--text-3);
}

.step h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.step p {
  margin: 0;
  max-width: 36rem;
}

/* Contact. */
.contact-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(40px, 7vw, 84px) clamp(24px, 5vw, 64px);
  border: 1px solid var(--line-2);
  border-radius: 28px;
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(109, 139, 255, 0.18), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01));
  text-align: center;
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 20%, transparent 75%);
}

.contact-card .eyebrow {
  margin-bottom: 22px;
}

.contact-title {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--text);
}

.contact-lede {
  margin: 20px auto 34px;
  max-width: 31rem;
  font-size: 1.1rem;
  text-wrap: pretty;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 40px;
  max-width: 620px;
  margin: 48px auto 0;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.facts dt {
  margin-bottom: 8px;
  font: 500 11.5px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.facts dd {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text);
}

.facts a {
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  transition: border-color 0.2s;
}

.facts a:hover {
  border-color: var(--text-2);
}

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

.footer {
  padding: 36px 0 52px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}

.footer .brand {
  font-size: 15px;
}

.footer .brand-mark {
  width: 22px;
  height: 22px;
}

.footer-note {
  margin: 0;
  font-size: 14px;
  color: var(--text-3);
}

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

.notfound {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 120px var(--gutter) 80px;
  text-align: center;
}

.notfound .eyebrow {
  margin-bottom: 20px;
}

.notfound h1 {
  margin: 0 0 16px;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--text);
}

.notfound p {
  margin: 0 auto 32px;
  max-width: 26rem;
}

/* ---------- Reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(8px);
  transition:
    opacity 0.9s var(--ease) var(--d, 0ms),
    transform 0.9s var(--ease) var(--d, 0ms),
    filter 0.9s var(--ease) var(--d, 0ms);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ---------- Responsive ---------- */

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

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

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

  .split-head {
    position: static;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .nav-links {
    display: none;
  }

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

  .card,
  .card-wide {
    grid-column: auto;
    min-height: 0;
  }

  .card-icon {
    margin-bottom: 28px;
  }

  .card-art {
    display: none;
  }

  .monitor-head,
  .monitor-foot {
    padding-inline: 16px;
  }

  .monitor-meta {
    display: none;
  }

  .step {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .facts {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .js .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .glow,
  .dot,
  .flow,
  .marquee-track {
    animation: none;
  }
}

/* ---------- Print: a plain, readable copy of the page ---------- */

@media print {
  :root,
  html {
    color-scheme: light !important;
  }

  html,
  body {
    background: #fff !important;
    color: #1f2328 !important;
  }

  .grain,
  .nav,
  .hero-bg,
  .monitor-wrap,
  .marquee,
  .hero-cta,
  .card-art,
  .skip {
    display: none !important;
  }

  .js .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .hero {
    padding: 24px 0 8px;
  }

  .hero-title,
  .section-title,
  .contact-title,
  .card h3,
  .step h3,
  .facts dd,
  .brand {
    color: #111 !important;
    -webkit-text-fill-color: #111 !important;
    background: none !important;
  }

  .hero-lede,
  .section-lede,
  .card p,
  .step p,
  .contact-lede,
  .footer-note,
  .pill,
  .eyebrow,
  .step-num,
  .facts dt {
    color: #444 !important;
  }

  .section {
    padding-block: 28px;
  }

  .card,
  .contact-card,
  .pill,
  .card-icon {
    background: none !important;
    border-color: #ccc !important;
    box-shadow: none !important;
  }

  .contact-card::before,
  .card::before {
    display: none !important;
  }

  .card,
  .contact-card,
  .step {
    break-inside: avoid;
  }

  .split-head {
    position: static;
  }

  a {
    color: #111 !important;
  }
}
