/* Product-style portfolio — zinc + indigo (Linear-adjacent), no matrix, no serif */
:root {
  --bg: #09090b;
  --bg-elevated: #0f0f12;
  --surface: #141418;
  --surface-hover: #1a1a20;
  --border: rgba(255, 255, 255, 0.075);
  --border-hover: rgba(255, 255, 255, 0.12);
  --text: #fafafa;
  --text-secondary: #a1a1aa;
  --text-tertiary: #71717a;
  --accent: #5e6ad2;
  --accent-dim: rgba(94, 106, 210, 0.14);
  --accent-glow: rgba(94, 106, 210, 0.35);
  --teal: #2dd4bf;
  --amber: #fbbf24;
  --rose: #fb7185;
  --band: #0d0d10;
  --radius: 10px;
  --radius-lg: 14px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

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

::selection {
  background: rgba(94, 106, 210, 0.35);
  color: var(--text);
}

html {
  scroll-behavior: smooth;
}

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

.mono {
  font-family: var(--mono);
}

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

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

/* Subtle hero wash */
.hero-bg {
  position: absolute;
  inset: 0;
  top: -80px;
  background: radial-gradient(ellipse 80% 55% at 50% -15%, rgba(94, 106, 210, 0.22), transparent 72%);
  pointer-events: none;
  z-index: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(9, 9, 11, 0.75);
  backdrop-filter: blur(12px) saturate(1.2);
  overflow: visible;
}

.site-header--menu-open {
  z-index: 200;
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

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

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

/* Logo: typographic lockup + slim accent bar (no monogram) */
.header-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  min-width: 0;
  padding: 0.15rem 0;
}

.header-logo__accent-bar {
  width: 3px;
  align-self: stretch;
  min-height: 2.35rem;
  border-radius: 2px;
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--accent) 0%, #818cf8 45%, var(--teal) 100%);
  opacity: 0.95;
  box-shadow: 0 0 14px rgba(94, 106, 210, 0.35);
}

.header-logo__wordmark {
  display: flex;
  flex-direction: column;
  gap: 0.06rem;
  line-height: 1.05;
  min-width: 0;
}

.header-logo__name {
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: -0.038em;
  color: var(--text);
  transition: color 0.2s var(--ease);
}

.header-logo__surname {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(95deg, var(--accent) 0%, #a5b4fc 45%, var(--teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.header-logo:hover .header-logo__name {
  color: #fff;
}

.header-menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: linear-gradient(165deg, rgba(24, 24, 30, 0.95) 0%, rgba(12, 12, 16, 1) 100%);
  color: var(--text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    background 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.header-menu-toggle:hover {
  color: var(--text);
  border-color: rgba(129, 140, 248, 0.4);
  background: rgba(26, 26, 32, 0.98);
  box-shadow: 0 0 20px -4px var(--accent-glow);
}

.header-menu-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.header-menu-toggle__tiles {
  display: grid;
  grid-template-columns: repeat(2, 7px);
  grid-template-rows: repeat(2, 7px);
  gap: 4px;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.header-menu-toggle__dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.header-menu-toggle__x {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.65rem;
  font-weight: 300;
  line-height: 1;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  pointer-events: none;
}

.site-header--menu-open .header-menu-toggle {
  color: var(--text);
  border-color: rgba(94, 106, 210, 0.45);
}

.site-header--menu-open .header-menu-toggle__tiles {
  opacity: 0;
  transform: scale(0.75);
}

.site-header--menu-open .header-menu-toggle__x {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 520px) {
  .header-logo__name {
    font-size: 0.875rem;
  }

  .header-logo__surname {
    font-size: 0.75rem;
  }

  .header-logo__accent-bar {
    min-height: 2.1rem;
  }
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
}

.header-nav a {
  color: var(--text-tertiary);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}

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

.header-nav a:not(.header-nav__cta) {
  position: relative;
}

.header-nav a:not(.header-nav__cta)::after {
  content: "";
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.2rem;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #818cf8);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s var(--ease);
  border-radius: 1px;
  pointer-events: none;
}

.header-nav a:not(.header-nav__cta):hover::after {
  transform: scaleX(1);
}

.header-nav__cta {
  margin-left: 0.35rem;
  background: var(--accent) !important;
  color: #fff !important;
}

.header-nav__cta:hover {
  filter: brightness(1.08);
  background: var(--accent) !important;
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0.75rem 1rem;
    gap: 0.65rem;
  }

  .header-menu-toggle {
    display: inline-flex;
  }

  .header-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    padding: 0.65rem 1rem 1rem;
    margin: 0;
    max-height: min(70vh, 22rem);
    overflow-y: auto;
    background: rgba(8, 8, 11, 0.96);
    backdrop-filter: blur(16px) saturate(1.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.85);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition:
      opacity 0.22s var(--ease),
      transform 0.22s var(--ease),
      visibility 0.22s;
  }

  .site-header--menu-open .header-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .header-nav a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0.65rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: linear-gradient(168deg, rgba(20, 20, 26, 0.98) 0%, rgba(14, 14, 18, 1) 100%);
    color: var(--text-secondary) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  .header-nav a:not(.header-nav__cta)::after {
    display: none;
  }

  .header-nav a:hover {
    color: var(--text) !important;
    border-color: rgba(129, 140, 248, 0.35);
    background: rgba(26, 26, 34, 0.98);
  }

  .header-nav__cta {
    grid-column: 1 / -1;
    margin-left: 0;
    justify-content: center;
    background: var(--accent) !important;
    border-color: rgba(94, 106, 210, 0.55) !important;
    color: #fff !important;
    box-shadow: 0 0 24px -8px var(--accent-glow);
  }

  .header-nav__cta:hover {
    filter: brightness(1.06);
    border-color: rgba(165, 180, 252, 0.55) !important;
  }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .header-nav {
    transition: none;
  }

  .header-menu-toggle__tiles,
  .header-menu-toggle__x {
    transition: none;
  }
}

main {
  position: relative;
}

.section {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 4.25rem 1.5rem;
}

.section--panel {
  border-top: 1px solid var(--border);
}

.section {
  overflow: hidden;
}

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

.section--band-tight {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.section--dark {
  background: #060608;
}

/* Impact section: flowing payment-console background */
.section-impact {
  position: relative;
}

.section-impact .section-head,
.section-impact .grid-two {
  position: relative;
  z-index: 2;
}

.tx-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.tx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
}

.tx-bg__mesh {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(rgba(45, 212, 191, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 106, 210, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: tx-mesh-drift 28s linear infinite;
  opacity: 0.5;
  z-index: 1;
}

@keyframes tx-mesh-drift {
  to {
    transform: translate(-48px, -48px);
  }
}

.tx-bg__vignette {
  position: absolute;
  inset: 0;
  z-index: 4;
  background:
    radial-gradient(ellipse 78% 62% at 50% 48%, transparent 46%, rgba(13, 13, 16, 0.88) 96%),
    linear-gradient(180deg, var(--band) 0%, transparent 8%, transparent 92%, var(--band) 100%),
    linear-gradient(90deg, var(--band) 0%, transparent 5%, transparent 95%, var(--band) 100%);
  pointer-events: none;
}

/* Horizontal success ticker (continuous throughput feel) */
.tx-marquee {
  position: absolute;
  left: 0;
  right: 0;
  overflow: hidden;
  z-index: 2;
  opacity: 0.18;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.tx-marquee--a {
  top: 7%;
}

.tx-marquee--b {
  bottom: 10%;
  opacity: 0.12;
}

.tx-marquee__inner {
  display: flex;
  width: max-content;
  animation: tx-marquee-x 18s linear infinite;
}

.tx-marquee__inner--rev {
  animation: tx-marquee-x 26s linear infinite reverse;
}

@keyframes tx-marquee-x {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.tx-marquee__track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.85rem;
  padding: 0.35rem 1rem;
  flex-shrink: 0;
}

.tx-chip {
  flex-shrink: 0;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(134, 239, 172, 0.9);
  padding: 0.28rem 0.55rem;
  border-radius: 4px;
  border: 1px solid rgba(45, 212, 191, 0.22);
  background: rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}

.tx-chip--soft {
  color: rgba(45, 212, 191, 0.75);
  border-color: rgba(94, 106, 210, 0.15);
  font-size: 0.58rem;
}

/* Three vertical “ledger” columns */
.tx-columns {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 3.5rem 1.25% 2.5rem;
  z-index: 2;
}

.tx-col {
  flex: 1;
  max-width: 30%;
  overflow: hidden;
  opacity: 0.12;
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}

.tx-col--s2 {
  opacity: 0.1;
  max-width: 34%;
}

.tx-col--s3 {
  opacity: 0.09;
}

.tx-col__scroll {
  animation: tx-scroll-up 22s linear infinite;
}

.tx-col__scroll--rev {
  animation: tx-scroll-up 30s linear infinite reverse;
}

.tx-col__scroll--slow {
  animation: tx-scroll-up 40s linear infinite;
}

@keyframes tx-scroll-up {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}

.tx-group {
  padding: 0.15rem 0;
}

.tx-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.45rem;
  padding: 0.28rem 0.4rem;
  font-size: 0.58rem;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: rgba(167, 243, 208, 0.88);
  border-bottom: 1px solid rgba(45, 212, 191, 0.08);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.15);
}

.tx-row__body {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tx-row__badge {
  flex-shrink: 0;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(34, 197, 94, 0.85);
  padding: 0.12rem 0.28rem;
  border-radius: 2px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.tx-ok {
  flex-shrink: 0;
  color: #86efac;
}

@media (max-width: 900px) {
  .tx-columns {
    padding-top: 4.5rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  .tx-col--s3 {
    display: none;
  }

  .tx-col {
    max-width: 48%;
    opacity: 0.1;
  }

  .tx-col--s2 {
    max-width: 48%;
  }

  .tx-marquee {
    opacity: 0.11;
  }

  .tx-marquee--b {
    bottom: 8%;
  }
}

@media (max-width: 560px) {
  .tx-marquee--a {
    top: 4%;
  }

  .tx-chip {
    font-size: 0.52rem;
    padding: 0.22rem 0.4rem;
  }

  .tx-row {
    font-size: 0.5rem;
    margin-bottom: 0.35rem;
  }
}

.section-head--split {
  display: grid;
  gap: 1rem;
  align-items: end;
}

@media (min-width: 720px) {
  .section-head--split {
    grid-template-columns: 1fr 1fr;
  }

  .section-sub--right {
    margin: 0;
    justify-self: end;
    text-align: right;
    max-width: 32ch;
  }
}

.section-title--accent {
  background: linear-gradient(135deg, #fff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-head {
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

.section-kicker {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background: var(--accent-dim);
}

.section-title {
  font-size: clamp(1.65rem, 3.2vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.2;
  color: var(--text);
}

.section-sub {
  margin: 0.65rem 0 0;
  font-size: 1rem;
  max-width: 42ch;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

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

.reveal[data-reveal-delay="80"] {
  transition-delay: 60ms;
}

/* Staggered reveals (same intersection timing, offset transitions) */
.metric-grid--bento > .reveal.metric-card:nth-child(1) {
  transition-delay: 0.04s;
}
.metric-grid--bento > .reveal.metric-card:nth-child(2) {
  transition-delay: 0.1s;
}
.metric-grid--bento > .reveal.metric-card:nth-child(3) {
  transition-delay: 0.16s;
}
.metric-grid--bento > .reveal.metric-card:nth-child(4) {
  transition-delay: 0.22s;
}

.systems-layout > .system-card.reveal:nth-child(1) {
  transition-delay: 0.05s;
}
.systems-pair .system-card.reveal:nth-child(1) {
  transition-delay: 0.14s;
}
.systems-pair .system-card.reveal:nth-child(2) {
  transition-delay: 0.22s;
}

.stack-pillars > .reveal.stack-pillar:nth-child(1) {
  transition-delay: 0.04s;
}
.stack-pillars > .reveal.stack-pillar:nth-child(2) {
  transition-delay: 0.1s;
}
.stack-pillars > .reveal.stack-pillar:nth-child(3) {
  transition-delay: 0.16s;
}
.stack-pillars > .reveal.stack-pillar:nth-child(4) {
  transition-delay: 0.22s;
}

/* Hero */
.hero {
  position: relative;
  padding-top: 2rem;
  padding-bottom: 1rem;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: center;
  width: 100%;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.85fr);
    gap: 3rem;
  }
}

.hero-copy {
  min-width: 0;
}

.hero-copy > * {
  opacity: 0;
}

.hero-grid.is-visible .hero-eyebrow {
  animation: hero-cascade 0.55s var(--ease) 0.07s forwards;
}

.hero-grid.is-visible .hero-name {
  animation: hero-cascade 0.62s var(--ease) 0.14s forwards;
}

.hero-grid.is-visible .hero-lead {
  animation: hero-cascade 0.6s var(--ease) 0.2s forwards;
}

.hero-grid.is-visible .hero-tagline {
  animation: hero-cascade 0.55s var(--ease) 0.28s forwards;
}

.hero-grid.is-visible .hero-chips {
  animation: hero-cascade 0.55s var(--ease) 0.34s forwards;
}

.hero-grid.is-visible .hero-cta {
  animation: hero-cascade 0.55s var(--ease) 0.4s forwards;
}

@keyframes hero-cascade {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.hero-visual {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, var(--surface) 0%, #0a0a0e 100%);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(94, 106, 210, 0.12);
  transform: rotate(-0.8deg);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.hero-visual--animated {
  animation: hero-panel-float 8s ease-in-out infinite;
}

@keyframes hero-panel-float {
  0%,
  100% {
    transform: rotate(-0.8deg) translateY(0);
    box-shadow:
      0 24px 48px rgba(0, 0, 0, 0.45),
      0 0 0 1px rgba(94, 106, 210, 0.12);
  }
  50% {
    transform: rotate(-0.65deg) translateY(-7px);
    box-shadow:
      0 28px 52px rgba(0, 0, 0, 0.5),
      0 0 32px rgba(94, 106, 210, 0.14);
  }
}

.hero-visual__scan {
  position: absolute;
  left: -5%;
  right: -5%;
  top: -30%;
  height: 45%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(94, 106, 210, 0.12) 45%,
    rgba(129, 140, 248, 0.06) 55%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 3;
  animation: scan-sweep 4.5s ease-in-out infinite;
  mix-blend-mode: screen;
}

@keyframes scan-sweep {
  0% {
    transform: translateY(-30%);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  92% {
    opacity: 1;
  }
  100% {
    transform: translateY(320%);
    opacity: 0;
  }
}

@media (min-width: 960px) {
  .hero-visual:hover {
    animation: none;
    transform: rotate(0deg) translateY(-6px);
    box-shadow:
      0 32px 56px rgba(0, 0, 0, 0.5),
      0 0 40px rgba(94, 106, 210, 0.18);
  }
}

.hero-visual__chrome {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  font-size: 0.625rem;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
}

.hero-visual__dots {
  display: flex;
  gap: 5px;
}

.hero-visual__dots i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
  opacity: 0.6;
}

.hero-visual__dots i:nth-child(1) {
  background: #ff5f56;
  opacity: 1;
}
.hero-visual__dots i:nth-child(2) {
  background: #febc2e;
  opacity: 1;
}
.hero-visual__dots i:nth-child(3) {
  background: #28c840;
  opacity: 1;
}

.hero-visual__url {
  margin-left: auto;
  opacity: 0.85;
}

.hero-visual__body {
  position: relative;
  z-index: 1;
  padding: 1rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.6875rem;
}

.hv-metric {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  align-items: center;
  gap: 0.5rem;
}

.hv-metric__k {
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hv-metric__v {
  color: var(--text-secondary);
  text-align: right;
}

.hv-metric__v--ok {
  color: var(--teal);
  font-weight: 600;
}

.hv-bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.hv-bar__fill {
  display: block;
  height: 100%;
  border-radius: 3px;
  animation: hv-pulse 2.8s ease-in-out infinite;
}

.hv-bar__fill--a {
  width: 68%;
  background: linear-gradient(90deg, var(--accent), #818cf8);
}

.hv-bar__fill--b {
  width: 42%;
  background: linear-gradient(90deg, var(--teal), #5eead4);
}

@keyframes hv-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.72;
  }
}

.hv-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.hv-cell {
  padding: 0.55rem 0.6rem;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
}

.hv-cell__k {
  display: block;
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: 0.25rem;
}

.hv-cell__v {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.hv-cell__v--down {
  color: var(--teal);
}

.inline-spark {
  display: block;
  height: 22px;
  border-radius: 4px;
  background: repeating-linear-gradient(
    -60deg,
    var(--accent),
    var(--accent) 1px,
    transparent 1px,
    transparent 4px
  );
  opacity: 0.35;
}

.inline-spark--fast {
  animation: spark-drift 2.2s linear infinite;
}

@keyframes spark-drift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 12px 0;
  }
}

.hero-eyebrow {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
}

.hero-name {
  font-size: clamp(1.85rem, 4.8vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0 0 1.25rem;
}

.hero-lead {
  margin: 0 0 1.25rem;
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 54ch;
}

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

.hero-tagline {
  font-size: 0.875rem;
  color: var(--text-secondary);
  min-height: 1.75em;
  margin: 0 0 1.25rem;
}

.typewriter-label {
  color: var(--text-tertiary);
}

.cursor-blink {
  color: var(--accent);
  animation: blink 1s step-end infinite;
  margin-left: 1px;
}

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

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.chip {
  font-size: 0.6875rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-tertiary);
  background: rgba(255, 255, 255, 0.02);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.2rem;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), filter 0.18s, background 0.18s, box-shadow 0.18s;
}

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

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 0 0 0 var(--accent-glow);
}

.btn-primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 4px 20px var(--accent-dim);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

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

.btn--wide {
  width: 100%;
  max-width: min(100%, 22rem);
  text-align: center;
  font-size: 0.8125rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 540px) {
  .btn--wide {
    width: auto;
  }
}

/* Grid what I do */
.grid-two {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 880px) {
  .grid-two {
    grid-template-columns: 1fr 1.05fr;
    gap: 3rem;
  }
}

@media (min-width: 880px) {
  .grid-two--skew .what-copy {
    border-left: 3px solid var(--accent);
    padding-left: 1.5rem;
    margin-left: -0.25rem;
  }
}

.what-copy p {
  color: var(--text-secondary);
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.75;
  max-width: 52ch;
}

.code-window {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  margin-top: 1.25rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.code-window__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 0.85rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.code-window__bar span:nth-child(1),
.code-window__bar span:nth-child(2),
.code-window__bar span:nth-child(3) {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.code-window__bar span:nth-child(1) {
  background: #ff5f57;
}
.code-window__bar span:nth-child(2) {
  background: #febc2e;
}
.code-window__bar span:nth-child(3) {
  background: #28c840;
}

.code-window__title {
  margin-left: auto;
  font-size: 0.6875rem;
  color: var(--text-tertiary);
}

.code-window__body {
  margin: 0;
  padding: 1rem 1rem 1.15rem;
  font-size: 0.75rem;
  line-height: 1.65;
  color: #93c5fd;
  min-height: 5rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.code-window__body .accent-line {
  color: #fcd34d;
}

/* Metrics */
.metric-grid--bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

@media (max-width: 700px) {
  .metric-grid--bento {
    grid-template-columns: 1fr;
  }
}

.metric-card--lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem 1.25rem;
  padding: 1.35rem 1.2rem;
  background: linear-gradient(135deg, var(--surface) 0%, rgba(94, 106, 210, 0.09) 100%);
  border-color: rgba(94, 106, 210, 0.28);
}

@media (max-width: 700px) {
  .metric-card--lead {
    grid-template-columns: 1fr;
  }
}

.metric-card__lead {
  min-width: 0;
}

.metric-card__viz {
  opacity: 0.95;
}

.metric-card__value--xl {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0.35rem 0;
}

.metric-card__desc--lg {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0;
  max-width: 28ch;
}

.sparkline--tall {
  display: block;
  max-width: 100%;
  height: auto;
}

.metric-grid:not(.metric-grid--bento) {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (max-width: 520px) {
  .metric-grid:not(.metric-grid--bento) {
    grid-template-columns: 1fr;
  }
}

.metric-card {
  padding: 1.15rem 1.1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.metric-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 0 1px var(--accent-dim);
}

.metric-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.45rem;
}

.metric-card__label {
  font-size: 0.625rem;
  color: var(--text-tertiary);
  text-transform: lowercase;
  letter-spacing: 0.03em;
}

.sparkline {
  display: block;
  opacity: 0.85;
}

.metric-card__value {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0 0 0.35rem;
  font-variant-numeric: tabular-nums;
}

.metric-card__desc {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  line-height: 1.4;
}

/* Systems */
.systems-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.systems-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .systems-pair {
    grid-template-columns: 1fr 1fr;
  }
}

.system-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.system-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.system-card--featured {
  border-color: rgba(94, 106, 210, 0.35);
  background: linear-gradient(180deg, rgba(94, 106, 210, 0.07) 0%, var(--surface) 42%);
  box-shadow: 0 0 0 1px rgba(94, 106, 210, 0.08);
}

.system-card--featured:hover {
  border-color: rgba(94, 106, 210, 0.5);
}

.system-card--featured .system-card__role {
  font-size: 1.2rem;
}

.system-card__bar {
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.85;
}

.system-card--featured .system-card__bar {
  height: 3px;
  display: block;
  background: linear-gradient(90deg, var(--accent), var(--teal), transparent);
  opacity: 1;
}

.system-card__head {
  padding: 1.2rem 1.2rem 0;
}

.system-card__role {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}

.system-card__company {
  font-size: 0.8125rem;
  font-family: var(--mono);
  color: var(--text-secondary);
  margin: 0;
}

.system-card__tenure {
  font-size: 0.75rem;
  margin: 0.45rem 0 0;
}

.system-card__list {
  margin: 0.9rem 0 0;
  padding: 0 1.2rem 0 1.15rem;
  font-size: 0.875rem;
  line-height: 1.58;
  color: var(--text-secondary);
  list-style: none;
}

.system-card__list li {
  position: relative;
  margin-bottom: 0.55rem;
}

.system-card__list li::before {
  content: "";
  position: absolute;
  left: -0.75rem;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--accent);
  opacity: 0.85;
}

.system-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.9rem 1.2rem 0;
  margin-top: auto;
}

.tag {
  font-size: 0.625rem;
  font-family: var(--mono);
  padding: 0.22rem 0.45rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--text-tertiary);
  background: var(--bg);
}

.system-card__stat {
  padding: 0.9rem 1.2rem 1.1rem;
  margin: 0.85rem 0 0;
  font-size: 0.6875rem;
  font-family: var(--mono);
  border-top: 1px solid var(--border);
  color: var(--text-tertiary);
  background: rgba(0, 0, 0, 0.2);
}

/* Stack */
.stack-pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 900px) {
  .stack-pillars {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.65rem;
    align-items: stretch;
  }
}

.stack-pillar {
  padding: 1.15rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  border-top: 4px solid var(--pillar, var(--accent));
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}

.stack-pillar:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.stack-pillar--violet {
  --pillar: var(--accent);
}

.stack-pillar--teal {
  --pillar: var(--teal);
}

.stack-pillar--amber {
  --pillar: var(--amber);
}

.stack-pillar--rose {
  --pillar: var(--rose);
}

.stack-group__title {
  font-size: 0.6875rem;
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 0.85rem;
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.stack-tag {
  font-size: 0.6875rem;
  font-family: var(--mono);
  padding: 0.32rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--bg);
  transition: color 0.15s, border-color 0.15s;
}

.stack-tag:hover {
  color: var(--accent);
  border-color: rgba(94, 106, 210, 0.45);
}

/* Contact band */
.section--contact-wrap {
  position: relative;
  background: linear-gradient(180deg, #0a0a0f 0%, #060609 100%);
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.section--contact-wrap::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(94, 106, 210, 0.5), transparent);
}

.section--contact-inner {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 4rem 1.5rem 4.5rem;
}

.contact-band {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.contact-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.contact-title {
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.18;
  margin: 0 0 1rem;
}

.contact-lead {
  font-size: 1.0625rem;
  line-height: 1.6;
  margin: 0 0 1.75rem;
  max-width: 38ch;
}

.contact-actions--lg {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

@media (min-width: 520px) {
  .contact-actions--lg {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.site-footer {
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.6875rem;
  font-family: var(--mono);
  color: var(--text-tertiary);
  border-top: 1px solid var(--border);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-copy > * {
    opacity: 1;
    animation: none !important;
    filter: none !important;
  }

  .cursor-blink {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }

  .metric-card:hover,
  .system-card:hover,
  .stack-pillar:hover {
    transform: none;
  }

  .btn:active {
    transform: none;
  }

  .hero-visual,
  .hero-visual:hover {
    transform: none;
    animation: none;
  }

  .hero-visual__scan {
    animation: none;
    opacity: 0;
  }

  .metric-grid--bento > .reveal.metric-card,
  .systems-layout > .system-card.reveal,
  .systems-pair .system-card.reveal,
  .stack-pillars > .reveal.stack-pillar {
    transition-delay: 0s !important;
  }

  .header-nav a:not(.header-nav__cta)::after {
    display: none;
  }

  .hv-bar__fill,
  .inline-spark--fast {
    animation: none;
  }

  .tx-col__scroll,
  .tx-col__scroll--rev,
  .tx-col__scroll--slow {
    animation: none;
  }

  .tx-marquee__inner,
  .tx-marquee__inner--rev {
    animation: none;
    transform: none;
  }

  .tx-bg__mesh {
    animation: none;
  }

  .tx-col {
    opacity: 0.05;
  }
}
