/* =============================================================================
   Novaryn — built on the Untitled UI design system (Tailwind-derived palette,
   deep-green brand accent). The token block mirrors the design system's
   colors_and_type.css; everything below it is the site's own composition.
   ============================================================================= */

:root {
  color-scheme: light;

  /* ---- Neutral (gray) — primary text + surfaces ---- */
  --neutral-25:  #fafafa;
  --neutral-50:  #fafafa;
  --neutral-100: #f5f5f5;
  --neutral-200: #e5e5e5;
  --neutral-300: #d4d4d4;
  --neutral-400: #a3a3a3;
  --neutral-500: #737373;
  --neutral-600: #525252;
  --neutral-700: #404040;
  --neutral-800: #262626;
  --neutral-900: #171717;
  --neutral-950: #0a0a0a;

  /* ---- Brand — Untitled UI deep green ---- */
  --brand-25:  #f6fef9;
  --brand-50:  #ecfdf3;
  --brand-100: #dcfae6;
  --brand-200: #abefc6;
  --brand-300: #75e0a7;
  --brand-400: #47cd89;
  --brand-500: #17b26a;
  --brand-600: #079455;
  --brand-700: #067647;
  --brand-800: #017346; /* primary brand action */
  --brand-900: #00633c;
  --brand-950: #053321;

  /* ---- Semantic: text ---- */
  --text-primary:         var(--neutral-900);
  --text-secondary:       var(--neutral-700);
  --text-tertiary:        var(--neutral-600);
  --text-quaternary:      var(--neutral-500);
  --text-disabled:        var(--neutral-400);
  --text-brand-primary:   var(--brand-900);
  --text-white:           #ffffff;

  /* ---- Semantic: background ---- */
  --bg-primary:           #ffffff;
  --bg-primary-hover:     var(--neutral-50);
  --bg-secondary:         var(--neutral-50);
  --bg-brand-primary:     var(--brand-50);
  --bg-brand-solid:       var(--brand-800);
  --bg-brand-solid-hover: var(--brand-900);

  /* ---- Semantic: border ---- */
  --border-primary:       var(--neutral-300);
  --border-secondary:     var(--neutral-200);
  --border-tertiary:      var(--neutral-100);

  /* ---- Radius ---- */
  --radius-md:   8px;
  --radius-lg:   10px;
  --radius-xl:   12px;
  --radius-2xl:  16px;
  --radius-full: 9999px;

  /* ---- Elevation ---- */
  --shadow-xs:  0 1px 2px 0 rgba(10, 13, 18, .05);
  --shadow-lg:  0 12px 16px -4px rgba(10, 13, 18, .08),
                0 4px 6px -2px rgba(10, 13, 18, .03);
  --shadow-2xl: 0 24px 48px -12px rgba(10, 13, 18, .18);
  --shadow-skeuo-primary:   0 1px 2px 0 rgba(0, 0, 0, .05), inset 0 0 0 1px rgba(0, 0, 0, .2);
  --shadow-skeuo-secondary: 0 1px 2px 0 rgba(0, 0, 0, .05), inset 0 -2px 0 0 rgba(0, 0, 0, .05);
  --focus-ring: 0 0 0 4px rgba(1, 115, 70, .24);

  /* ---- Type ---- */
  --font-body:    "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: "Archivo", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, Menlo, monospace;

  /* ---- Layout ---- */
  --container: 1280px;
  --gutter: 32px;

  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* =============================================================================
   Base
   ============================================================================= */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  position: relative;
  min-height: 100vh;
  font-family: var(--font-body);
  font-feature-settings: "ss01", "cv11";
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--text-brand-primary);
  text-decoration: none;
  transition: color .12s var(--ease);
}

a:hover { color: var(--brand-800); }

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-md);
}

h1, h2, h3 { margin: 0; }
p { margin: 0; }
img, canvas { display: block; }

/* =============================================================================
   Keyframes
   ============================================================================= */

@keyframes nv-marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

@keyframes nv-drift-a {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(6vw, -4vh, 0) scale(1.15); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes nv-drift-b {
  0%   { transform: translate3d(0, 0, 0) scale(1.1); }
  50%  { transform: translate3d(-7vw, 5vh, 0) scale(.9); }
  100% { transform: translate3d(0, 0, 0) scale(1.1); }
}

@keyframes nv-drift-c {
  0%   { transform: translate3d(0, 0, 0) scale(.95); }
  50%  { transform: translate3d(4vw, 6vh, 0) scale(1.2); }
  100% { transform: translate3d(0, 0, 0) scale(.95); }
}

@keyframes nv-spin { to { transform: rotate(360deg); } }

@keyframes nv-pulse {
  0%, 100% { opacity: .35; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.35); }
}

/* =============================================================================
   Buttons
   ============================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  transition: background-color .12s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--bg-brand-solid);
  color: var(--text-white);
  box-shadow: var(--shadow-skeuo-primary);
}

.btn-primary:hover {
  background: var(--bg-brand-solid-hover);
  color: var(--text-white);
}

.btn-secondary {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-primary);
  box-shadow: var(--shadow-skeuo-secondary);
}

.btn-secondary:hover {
  background: var(--bg-primary-hover);
  color: var(--text-primary);
}

.btn-lg { font-size: 16px; padding: 14px 22px; gap: 10px; }
.btn-xl { font-size: 17px; padding: 16px 28px; gap: 10px; }

.btn-glyph { font-size: 15px; }

/* =============================================================================
   Header
   ============================================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-secondary);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gutter);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}

.logo:hover { color: var(--text-primary); }
.logo img { width: 26px; height: 26px; }

.logo-word {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.02em;
}

.logo-word-sm { font-size: 16px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  color: var(--text-tertiary);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  transition: background-color .12s var(--ease), color .12s var(--ease);
}

.nav-link:hover {
  background: var(--bg-primary-hover);
  color: var(--text-primary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Hamburger — the design drops the nav below 900px; this keeps those four
   links reachable on phones, drawn from the same tokens. */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 0 9px;
  background: var(--bg-primary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-skeuo-secondary);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  border-radius: 2px;
  background: var(--text-primary);
  transition: transform .18s var(--ease), opacity .18s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 8px var(--gutter) 20px;
  border-top: 1px solid var(--border-secondary);
  background: rgba(255, 255, 255, .96);
}

.mobile-nav[hidden] { display: none; }

.mobile-nav a {
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-tertiary);
  border-bottom: 1px solid var(--border-tertiary);
}

.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav a:hover { color: var(--text-primary); }

/* =============================================================================
   Hero
   ============================================================================= */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-secondary);
}

.hero-orbs {
  position: absolute;
  inset: -10%;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: var(--radius-full);
}

.orb-a {
  top: 4%;
  left: 2%;
  width: 46vw;
  height: 46vw;
  background: radial-gradient(circle, rgba(1, 115, 70, .1), rgba(1, 115, 70, 0) 68%);
  filter: blur(30px);
  animation: nv-drift-a 26s ease-in-out infinite;
}

.orb-b {
  bottom: -6%;
  right: 6%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(23, 178, 106, .12), rgba(23, 178, 106, 0) 68%);
  filter: blur(34px);
  animation: nv-drift-b 33s ease-in-out infinite;
}

.orb-c {
  top: 30%;
  left: 42%;
  width: 34vw;
  height: 34vw;
  background: radial-gradient(circle, rgba(23, 23, 23, .06), rgba(23, 23, 23, 0) 70%);
  filter: blur(40px);
  animation: nv-drift-c 41s ease-in-out infinite;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 96px var(--gutter) 104px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--border-secondary);
  background: rgba(255, 255, 255, .7);
  border-radius: var(--radius-full);
  margin-bottom: 28px;
}

.pulse-dot {
  position: relative;
  display: inline-flex;
  width: 8px;
  height: 8px;
}

.pulse-ring,
.pulse-core {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
}

.pulse-ring {
  background: var(--brand-500);
  animation: nv-pulse 2.4s ease-in-out infinite;
}

.pulse-core { background: var(--brand-800); }

.hero-badge-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: -.01em;
}

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

.hero-title {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 100;
  font-size: clamp(40px, 5.2vw, 78px);
  line-height: .9;
  letter-spacing: -.026em;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-primary);
  text-wrap: balance;
}

.accent-dot { color: var(--brand-800); }

.hero-lede {
  margin-top: 28px;
  max-width: 500px;
  font-size: 19px;
  line-height: 31px;
  letter-spacing: -.011em;
  font-weight: 400;
  color: var(--text-secondary);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.hero-hint {
  margin-top: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-disabled);
}

/* ---- Orbital figure ---- */

.hero-figure {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1;
}

.ring,
.ring-spin {
  position: absolute;
  border-radius: var(--radius-full);
}

.ring-1 { inset: 2%;  border: 1px solid var(--border-tertiary); }
.ring-2 { inset: 17%; border: 1px solid var(--border-tertiary); }
.ring-3 { inset: 32%; border: 1px solid var(--border-secondary); }

.ring-spin { border: 1.5px solid transparent; }

.ring-spin-a {
  inset: 2%;
  border-top-color: rgba(1, 115, 70, .55);
  border-right-color: rgba(1, 115, 70, .14);
  animation: nv-spin 22s linear infinite;
}

.ring-spin-b {
  inset: 32%;
  border-bottom-color: rgba(1, 115, 70, .35);
  animation: nv-spin 13s linear infinite reverse;
}

.figure-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.crosshair-v,
.crosshair-h {
  position: absolute;
  pointer-events: none;
}

.crosshair-v {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--neutral-100) 22%, var(--neutral-100) 78%, transparent);
}

.crosshair-h {
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--neutral-100) 22%, var(--neutral-100) 78%, transparent);
}

.figure-core-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.figure-core {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: var(--brand-800);
  box-shadow: 0 0 0 8px rgba(1, 115, 70, .08), 0 0 0 18px rgba(1, 115, 70, .04);
}

/* =============================================================================
   Marquee
   ============================================================================= */

.marquee-band {
  overflow: hidden;
  border-bottom: 1px solid var(--border-secondary);
  background: var(--bg-secondary);
  padding: 18px 0;
}

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

.marquee-group {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
}

.marquee-item {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  white-space: nowrap;
}

.marquee-dot {
  width: 5px;
  height: 5px;
  border-radius: var(--radius-full);
  background: var(--brand-800);
  flex: none;
}

/* =============================================================================
   Section shell
   ============================================================================= */

.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 120px var(--gutter);
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head-wide { margin-bottom: 64px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.eyebrow-center { justify-content: center; }

.eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: var(--radius-full);
  background: var(--brand-800);
}

.eyebrow-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.section-title {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 108;
  font-size: clamp(31px, 3.5vw, 46px);
  line-height: 1.1;
  letter-spacing: -.025em;
  font-weight: 700;
  color: var(--text-primary);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* =============================================================================
   Services
   ============================================================================= */

.service-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-xs);
  transition: box-shadow .18s var(--ease), border-color .18s var(--ease);
}

.service-card:hover {
  border-color: var(--border-primary);
  box-shadow: var(--shadow-lg);
}

.service-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 44px;
}

.service-icon {
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  color: var(--brand-800);
}

.service-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--text-disabled);
}

.service-card h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 30px;
  letter-spacing: -.02em;
  font-weight: 600;
  color: var(--text-primary);
}

.service-card p {
  font-size: 15px;
  line-height: 24px;
  color: var(--text-tertiary);
}

/* =============================================================================
   Metrics band
   ============================================================================= */

.metrics {
  border-top: 1px solid var(--border-secondary);
  border-bottom: 1px solid var(--border-secondary);
  background: var(--bg-secondary);
}

.metrics-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.metric {
  padding: 48px 24px;
  border-left: 1px solid var(--border-secondary);
}

.metric:first-child {
  padding: 48px 24px 48px 0;
  border-left: 0;
}

.metric:last-child { padding: 48px 0 48px 24px; }

.metric-num {
  font-size: clamp(34px, 3.4vw, 46px);
  line-height: 1.05;
  letter-spacing: -.03em;
  font-weight: 600;
  color: var(--text-primary);
}

.metric-num-accent { color: var(--brand-800); }

.metric-label {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-tertiary);
}

/* =============================================================================
   Work
   ============================================================================= */

.work-feature {
  display: block;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: box-shadow .2s var(--ease), border-color .2s var(--ease);
}

.work-feature:hover {
  color: var(--text-primary);
  border-color: var(--border-primary);
  box-shadow: var(--shadow-2xl);
}

.work-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.work-feature-body { padding: 44px; }

.tag-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border: 1px solid var(--brand-200);
  background: var(--bg-brand-primary);
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  font-size: 12px;
  font-weight: 500;
  color: var(--brand-700);
}

.tag-live-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--brand-500);
}

.work-feature h3 {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 108;
  font-size: clamp(27px, 2.7vw, 37px);
  line-height: 1.12;
  letter-spacing: -.025em;
  font-weight: 700;
}

.work-feature-body > p {
  margin-bottom: 28px;
  max-width: 420px;
  font-size: 17px;
  line-height: 28px;
  color: var(--text-secondary);
}

.work-stats {
  display: flex;
  gap: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-secondary);
}

.stat-value {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -.02em;
}

.stat-value-accent { color: var(--brand-800); }

.stat-unit {
  margin-left: 2px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0;
}

.stat-label {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-tertiary);
}

.work-cta {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-800);
}

.work-cta .btn-glyph { font-size: 14px; }

.work-visual {
  position: relative;
  min-height: 380px;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-secondary);
  overflow: hidden;
}

.work-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.work-hint {
  position: absolute;
  bottom: 16px;
  right: 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-disabled);
  pointer-events: none;
}

.work-mini-grid { margin-top: 20px; }

.work-mini {
  background: var(--bg-primary);
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-xs);
  transition: box-shadow .18s var(--ease), border-color .18s var(--ease);
}

.work-mini:hover {
  border-color: var(--border-primary);
  box-shadow: var(--shadow-lg);
}

/* Linked variant keeps the card's own text colours rather than the global link green. */
a.work-mini,
a.work-mini:hover { color: var(--text-primary); }

/* inline-block on the heading's own line-height: the arrow glyph falls back to a
   font with taller metrics, which would otherwise grow the h3 line box by 3px and
   knock this card's divider out of line with its neighbour's. */
.work-go {
  display: inline-block;
  vertical-align: top;
  line-height: 32px;
  margin-left: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-disabled);
  transition: color .12s var(--ease);
}

a.work-mini:hover .work-go { color: var(--brand-800); }

.work-mini h3 {
  margin-bottom: 8px;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -.02em;
  font-weight: 600;
  color: var(--text-primary);
}

.work-mini > p {
  margin-bottom: 28px;
  font-size: 15px;
  line-height: 24px;
  color: var(--text-tertiary);
}

.mini-metric {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--border-secondary);
  /* Fixed row height (24px padding + a 34px big-number line) so cards sitting
     side by side keep their dividers and baselines aligned whatever fills them. */
  min-height: 58px;
}

.big-accent {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--brand-800);
}

.mini-label {
  font-size: 14px;
  color: var(--text-tertiary);
}

/* =============================================================================
   Process
   ============================================================================= */

.process {
  border-top: 1px solid var(--border-secondary);
  background: var(--bg-secondary);
  padding: 120px 0;
}

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

.process-list {
  position: relative;
  display: flex;
  flex-direction: column;
}

.process-line,
.process-progress {
  position: absolute;
  left: 21px;
  top: 12px;
  bottom: 12px;
  width: 2px;
}

.process-line { background: var(--border-secondary); }

.process-progress {
  background: var(--brand-800);
  transform: scaleY(0);
  transform-origin: top center;
}

.process-step {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 28px;
  padding-bottom: 48px;
}

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

.step-num {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-primary);
  border: 1px solid var(--border-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
}

.step-body { padding-top: 8px; }

.step-body h3 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 30px;
  letter-spacing: -.02em;
  font-weight: 600;
  color: var(--text-primary);
}

.step-body p {
  max-width: 620px;
  font-size: 16px;
  line-height: 26px;
  color: var(--text-tertiary);
}

/* =============================================================================
   CTA
   ============================================================================= */

.cta {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-secondary);
  padding: 140px 0;
}

.cta-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
}

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

.cta-title {
  margin: 0 auto;
  max-width: 720px;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 110;
  font-size: clamp(35px, 4.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -.028em;
  font-weight: 700;
  color: var(--text-primary);
  text-wrap: balance;
}

.cta-lede {
  margin: 24px auto 0;
  max-width: 480px;
  font-size: 18px;
  line-height: 30px;
  color: var(--text-secondary);
}

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

/* =============================================================================
   Footer
   ============================================================================= */

.site-footer {
  border-top: 1px solid var(--border-secondary);
  background: var(--bg-secondary);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px var(--gutter) 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo img { width: 24px; height: 24px; }

.footer-brand p {
  max-width: 300px;
  font-size: 14px;
  line-height: 22px;
  color: var(--text-tertiary);
}

.footer-col-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-tertiary);
}

.footer-links a:hover { color: var(--brand-800); }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border-secondary);
}

.footer-copy {
  font-size: 13px;
  color: var(--text-quaternary);
}

.footer-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-disabled);
}

/* =============================================================================
   Responsive
   ============================================================================= */

@media (max-width: 900px) {
  :root { --gutter: 20px; }

  .hero-grid,
  .grid-2,
  .work-feature-grid,
  .footer-grid { grid-template-columns: 1fr; }

  .metrics-grid { grid-template-columns: 1fr 1fr; }

  .main-nav { display: none; }
  .nav-toggle { display: flex; }

  .hero-inner { padding: 64px var(--gutter) 72px; }
  .section { padding: 72px var(--gutter); }
  .process { padding: 72px 0; }
  .cta { padding: 96px 0; }

  .work-feature-body { padding: 32px; }

  /* Stacked: the divider between copy and canvas turns horizontal. Clearing the
     mirrored card's explicit placement lets both cards stack copy-first. */
  .work-visual {
    border-left: 0;
    border-top: 1px solid var(--border-secondary);
    min-height: 320px;
  }

  /* Two-up metrics: the third cell starts a new row, so it loses its divider
     and the band gets symmetric padding instead of flush outer edges. */
  .metric,
  .metric:first-child,
  .metric:last-child { padding: 36px 20px; }
  .metric:nth-child(odd) { border-left: 0; }
  .metric:nth-child(n + 3) { border-top: 1px solid var(--border-secondary); }

  .footer-grid { gap: 32px; }
  .footer-base { margin-top: 40px; }
}

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

  .orb,
  .ring-spin,
  .pulse-ring { animation: none; }

  .marquee-track { animation-duration: 180s; }
}
