/* =========================================================
   LOOMX Design System
========================================================= */

:root {
  /* Colors */
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --bg-elevated: #ffffff;
  --accent: #4360e0;
  --accent-2: #4360e0;
  --accent-soft: rgba(67, 96, 224, 0.08);
  /* Ambient wash for the hero background and cursor orb: a couple of
     shades lighter than the logo blue, kept faint so it reads as
     atmosphere rather than as a second brand colour. */
  --accent-ambient: 140, 165, 255;
  --text: #14162b;
  --text-dim: #565b73;
  --text-faint: #6b7280;
  --border: rgba(20, 22, 43, 0.09);
  --border-strong: rgba(20, 22, 43, 0.16);
  --glass: rgba(20, 22, 43, 0.03);
  --glass-hover: rgba(20, 22, 43, 0.05);
  --success: #16a34a;
  --ink: #13122c;

  /* Type */
  /* Playfair Display carries the display headlines; Poppins handles
     body copy and all functional UI text. */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display-track: -0.035em;

  /* Spacing / sizing */
  --container: 1180px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* Visible keyboard focus. Mouse users never see it; keyboard and
   screen-reader users need it to know where they are. */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow { max-width: 760px; }

/* =========================================================
   Texture / global fx layers
========================================================= */

.grain {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.02;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-orb {
  position: fixed;
  top: 0;
  left: 0;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(var(--accent-ambient), 0.10) 0%, rgba(var(--accent-ambient), 0.045) 45%, transparent 70%);
  transform: translate(-50%, -50%);
  filter: blur(14px);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  will-change: transform;
}
.cursor-orb.visible { opacity: 1; }

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 10001;
  transition: width 0.1s linear;
}

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

.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0s);
}
.reveal-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-soft), box-shadow 0.25s var(--ease-soft), background 0.25s var(--ease-soft), border-color 0.25s var(--ease-soft), color 0.25s var(--ease-soft);
}
.btn svg { transition: transform 0.25s var(--ease-soft); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  box-shadow: 0 0 0 rgba(67, 96, 224, 0);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(67, 96, 224, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-outline {
  background: var(--glass);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 16px 30px; font-size: 15.5px; }
.btn-block { width: 100%; }

/* =========================================================
   Nav
========================================================= */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: background 0.3s var(--ease-soft), border-color 0.3s var(--ease-soft), padding 0.3s var(--ease-soft);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
  padding: 13px 0;
  box-shadow: 0 1px 0 rgba(20, 22, 43, 0.03);
}

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

.logo {
  display: flex;
  align-items: center;
}
.brand-logo {
  display: block;
  height: 30px;
  width: auto;
}
.brand-icon {
  display: block;
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dim);
}
.nav-links a { transition: color 0.2s; position: relative; }
.nav-links a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
}
.nav-toggle span {
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
}

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

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Bottom padding clears the absolutely-positioned scroll indicator. */
  padding: 140px 0 140px;
  overflow: hidden;
}

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

.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  max-width: 160vw;
  background: radial-gradient(circle, rgba(var(--accent-ambient), 0.10) 0%, rgba(var(--accent-ambient), 0.04) 40%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}
.hero-logo .brand-logo {
  height: clamp(46px, 7vw, 66px);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6.4vw, 80px);
  font-weight: 700;
  letter-spacing: var(--display-track);
  line-height: 1.08;
  max-width: 15ch;
  margin-bottom: 28px;
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}
.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(110%) rotate(3deg);
  animation: word-up 0.9s var(--ease) forwards;
}
/* Plain color, not background-clip:text. A clipped background only
   fills the inline box, which leaves descenders (the "g") unpainted. */
.accent-word {
  color: var(--accent);
}
@keyframes word-up {
  to { opacity: 1; transform: translateY(0) rotate(0deg); }
}

.hero-sub {
  max-width: 640px;
  font-size: 19px;
  color: var(--text-dim);
  margin-bottom: 20px;
}

/* Capability line: one notch quieter than the subhead. */
.hero-capabilities {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 720px;
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-faint);
  margin-bottom: 40px;
}
.hero-capabilities .sep { opacity: 0.45; }

/* Staggered hero entrance. Each element carries its own --i, so the
   cadence is one 80ms step per element rather than hand-tuned delays. */
.hero-rise {
  opacity: 0;
  animation: hero-rise 0.72s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 80ms);
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-rise { animation-delay: 0s !important; }
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 56px;
}

.hero-trust {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-faint);
}
.trust-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  color: var(--text-dim);
  font-weight: 500;
}
.trust-tags .sep { opacity: 0.4; }

.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--border-strong);
  position: relative;
  overflow: hidden;
}
.scroll-dot {
  position: absolute;
  top: -10px;
  left: -1.5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px 2px var(--accent);
  animation: scroll-fall 2s ease-in-out infinite;
}
@keyframes scroll-fall {
  0% { top: -10px; opacity: 0; }
  30% { opacity: 1; }
  100% { top: 44px; opacity: 0; }
}

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

.marquee-strip {
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
  overflow: hidden;
  background: var(--bg-alt);
}
.marquee-strip::before,
.marquee-strip::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.marquee-strip::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-alt), transparent);
}
.marquee-strip::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg-alt), transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  /* Slow: the strip is ~3x longer than it was, so the duration scales
     with it to keep the drift subtle rather than speeding up. */
  animation: marquee-scroll 95s linear infinite;
}
.marquee-track.marquee-reverse {
  animation-name: marquee-scroll-reverse;
  animation-duration: 105s;
}
.marquee-strip:hover .marquee-track { animation-play-state: paused; }

.marquee-group {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-right: 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
}
.marquee-group .sep { color: var(--accent); opacity: 0.6; font-size: 12px; }

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

/* Reduced motion: hold the strip still and let it be scrolled by hand
   rather than letting the global animation shortcut jump it off-centre. */
@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none !important;
    transform: none !important;
    width: auto;
  }
  .marquee-track .marquee-group:last-child { display: none; }
  .marquee-strip { overflow-x: auto; }
  .marquee-strip::before,
  .marquee-strip::after { display: none; }
}

/* =========================================================
   Who We Help - static buyer grid
   Two tiers: four lead cards, then an editorial index of the rest.
   Deliberately not a marquee - this is where a visitor finds
   themselves, so every item stays visible and still.
========================================================= */

.buyer-lead {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 46px;
}
.buyer-lead-item {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 132px;
  padding: 24px 22px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(var(--accent-ambient), 0.05), transparent 62%),
    var(--bg);
  transition: border-color 0.3s var(--ease-soft),
              transform 0.3s var(--ease-soft),
              box-shadow 0.3s var(--ease-soft);
}
/* Accent rule along the top edge, clipped to the card's rounded corners. */
.buyer-lead-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0.3;
  transition: opacity 0.3s var(--ease-soft);
}
.buyer-lead-item:hover {
  border-color: rgba(67, 96, 224, 0.34);
  transform: translateY(-3px);
  box-shadow: 0 18px 38px -26px rgba(20, 22, 43, 0.4);
}
.buyer-lead-item:hover::before { opacity: 1; }

.buyer-lead-name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

/* Remaining buyers as an index: hairline rules, no boxes, so a ragged
   final row reads as intentional rather than as gaps in a grid. */
.buyer-index {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 34px;
}
.buyer-index-item {
  border-top: 1px solid var(--border);
  padding: 16px 2px 15px;
  font-size: 15.5px;
  color: var(--text-dim);
  transition: color 0.22s var(--ease-soft), border-color 0.22s var(--ease-soft);
}
.buyer-index-item:hover {
  color: var(--text);
  border-top-color: var(--accent);
}

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

.section {
  padding: 120px 0;
  position: relative;
}
.section-alt { background: var(--bg-alt); }

.section-head {
  max-width: 640px;
  margin: 0 auto 64px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: var(--display-track);
  line-height: 1.18;
  margin-bottom: 16px;
}
.section-head p {
  color: var(--text-dim);
  font-size: 17.5px;
}

/* =========================================================
   Grid / Cards
========================================================= */

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.glass-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(20, 22, 43, 0.04), 0 16px 32px -26px rgba(20, 22, 43, 0.16);
  transition: transform 0.35s var(--ease-soft), border-color 0.35s var(--ease-soft), box-shadow 0.35s var(--ease-soft);
}
.glass-card:hover {
  transform: translateY(-6px);
  border-color: rgba(67, 96, 224, 0.3);
  box-shadow: 0 24px 48px -20px rgba(67, 96, 224, 0.22), 0 4px 14px rgba(20, 22, 43, 0.06);
}

.card { padding: 34px 30px; }
.card h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.card p { color: var(--text-dim); font-size: 15.5px; }

/* =========================================================
   What We Do - two service groups
   "How we build" runs research through shipped product; "The AI
   layer" is a set of parallel entry points, tinted so the two read
   as different kinds of engagement rather than one flat list.
========================================================= */

.svc-group + .svc-group { margin-top: 64px; }

.svc-group-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}
.svc-group-head h3 {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.svc-rule {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.svc-card {
  position: relative;
  overflow: hidden;
  padding: 30px 28px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  transition: border-color 0.3s var(--ease-soft),
              transform 0.3s var(--ease-soft),
              box-shadow 0.3s var(--ease-soft);
}
.svc-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0.28;
  transition: opacity 0.3s var(--ease-soft);
}
.svc-card:hover {
  border-color: rgba(67, 96, 224, 0.34);
  transform: translateY(-3px);
  box-shadow: 0 20px 42px -28px rgba(20, 22, 43, 0.42);
}
.svc-card:hover::before { opacity: 1; }

/* Pointer tilt and ambient glow. The transform stays off until JS adds
   .is-tilting, so touch and reduced-motion users keep the flat hover. */
.svc-card,
.buyer-lead-item {
  --rx: 0deg;
  --ry: 0deg;
  --mx: 50%;
  --my: 50%;
}
.svc-card::after,
.buyer-lead-item::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(260px circle at var(--mx) var(--my),
              rgba(var(--accent-ambient), 0.22), transparent 68%);
  opacity: 0;
  transition: opacity 0.35s var(--ease-soft);
}
.svc-card > *,
.buyer-lead-item > * {
  position: relative;
  z-index: 1;
}
.svc-card.is-tilting,
.buyer-lead-item.is-tilting {
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-3px);
  transition: transform 0.14s linear, border-color 0.3s var(--ease-soft),
              box-shadow 0.3s var(--ease-soft);
}
.svc-card.is-tilting::after,
.buyer-lead-item.is-tilting::after { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .svc-card.is-tilting,
  .buyer-lead-item.is-tilting { transform: none; }
  .svc-card::after,
  .buyer-lead-item::after { display: none; }
}

/* The AI layer sits on a faint wash so it reads as a distinct offer. */
.svc-card-ai {
  background:
    linear-gradient(180deg, rgba(var(--accent-ambient), 0.07), transparent 55%),
    var(--bg);
}

.svc-name {
  font-size: 19.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 12px;
  text-wrap: balance;
}
.svc-desc {
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.62;
}
/* Marks the low-commitment entry point without a separate badge. */
.svc-lead {
  color: var(--accent);
  font-weight: 600;
}

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

.proc {
  max-width: 820px;
  margin: 0 auto;
}
.proc-prompt {
  text-align: center;
  color: var(--text-dim);
  font-size: 15.5px;
  margin-bottom: 20px;
}

/* Tabs wrap rather than scroll, so no option is ever hidden off-edge. */
.proc-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}
.proc-tab {
  padding: 11px 21px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-dim);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.22s var(--ease-soft), border-color 0.22s var(--ease-soft),
              background 0.22s var(--ease-soft), box-shadow 0.22s var(--ease-soft);
}
.proc-tab:hover {
  color: var(--text);
  border-color: var(--border-strong);
}
.proc-tab[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(19, 18, 44, 0.45);
}

.proc-panel:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: var(--radius-sm);
}
.proc-panel[hidden] { display: none; }
.proc-panel:not([hidden]) { animation: proc-fade 0.32s var(--ease) both; }
@keyframes proc-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .proc-panel:not([hidden]) { animation: none; }
}

/* Ordered list for semantics (these are sequential steps), but the
   visible numbering is the "01" label, so suppress native markers. */
/* Steps as a horizontal beam: a track with a light pulse running its
   length, numbered nodes sitting on the line. Solid accent dots. */
.proc-beam { position: relative; }
.proc-track {
  position: relative;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.proc-pulse {
  position: absolute;
  inset: 0;
  width: 24%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: proc-beam 5.5s linear infinite;
}
@keyframes proc-beam {
  from { transform: translateX(-110%); }
  to { transform: translateX(460%); }
}
@keyframes proc-beam-v {
  from { transform: translateY(-110%); }
  to { transform: translateY(460%); }
}

.proc-steps {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.proc-step {
  flex: 1;
  padding: 0 26px 0 0;
  border: none;
}
.proc-step:last-child { padding-right: 0; }
.proc-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin: -19px 0 16px;
  position: relative;
  z-index: 1;
}
.proc-title {
  font-size: 17.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 6px;
  text-wrap: balance;
}
.proc-desc {
  color: var(--text-dim);
  font-size: 15px;
}

@media (prefers-reduced-motion: reduce) {
  .proc-pulse { animation: none; opacity: 0.5; }
}

.proc-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  margin-top: 44px;
}
.proc-cta-text {
  color: var(--text-dim);
  font-size: 16px;
  max-width: 46ch;
}

/* =========================================================
   Why us
========================================================= */

.why-grid {
  display: grid;
  grid-template-columns: minmax(240px, 280px) 1fr;
  gap: 72px;
  align-items: start;
}
.why-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 700;
  letter-spacing: var(--display-track);
  line-height: 1.16;
  margin: 12px 0 18px;
  text-wrap: balance;
}
.why-intro p {
  color: var(--text-dim);
  font-size: 16.5px;
  line-height: 1.65;
}

/* Points are marked by a single-sided accent rule, so they intentionally
   keep square corners: no border-radius, no boxes, no fills. */
.why-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 44px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.why-point {
  border-left: 2px solid var(--accent);
  border-radius: 0;
  padding: 2px 0 2px 22px;
}
.why-point-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 8px;
  text-wrap: balance;
}
.why-point-desc {
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.62;
}

/* =========================================================
   FAQ
========================================================= */

.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--glass);
  padding: 6px 26px;
  transition: border-color 0.3s var(--ease-soft), background 0.3s var(--ease-soft),
              box-shadow 0.3s var(--ease-soft);
}
/* Accent rail down the left edge, drawn on open. */
.faq-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-item[open] {
  border-color: rgba(67, 96, 224, 0.3);
  background: var(--glass-hover);
  box-shadow: 0 14px 30px -24px rgba(20, 22, 43, 0.5);
}
.faq-item[open]::before { transform: scaleY(1); }
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  transition: color 0.25s var(--ease-soft);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-item[open] summary { color: var(--accent); }
.faq-q { text-wrap: pretty; }
.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.45s var(--ease), background 0.3s var(--ease-soft),
              border-color 0.3s var(--ease-soft), color 0.3s var(--ease-soft);
}
.faq-item summary:hover .faq-icon { border-color: var(--accent); }
.faq-item[open] .faq-icon {
  transform: rotate(135deg);
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
/* Height is animated in JS, so the box itself carries no padding. */
.faq-answer {
  overflow: hidden;
  color: var(--text-dim);
  font-size: 15.5px;
  max-width: 65ch;
}
.faq-answer p { padding-bottom: 22px; }
.faq-item[open] .faq-answer p { animation: faq-answer-in 0.45s var(--ease) 0.06s both; }
@keyframes faq-answer-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   Contact
========================================================= */

.contact-section { position: relative; overflow: hidden; }
.contact-glow {
  position: absolute;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 700px;
  background: radial-gradient(circle, rgba(var(--accent-ambient), 0.10), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}
.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: flex-start;
}
.contact-copy h2 { font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; letter-spacing: var(--display-track); line-height: 1.18; margin: 12px 0 18px; }
.contact-copy > p { color: var(--text-dim); font-size: 17.5px; margin-bottom: 36px; }
.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.contact-detail a { color: var(--accent); font-weight: 600; }
.contact-label { font-size: 13px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; }

.contact-form { padding: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
/* Grid and flex items default to min-width:auto, so a long <option>
   would widen the whole column past the container on small screens. */
.contact-grid > *,
.form-row > *,
.form-group > * { min-width: 0; }
.form-group label { font-size: 13.5px; font-weight: 600; color: var(--text-dim); }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 14px;
  transition: border-color 0.2s, background 0.2s;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(67, 96, 224, 0.04);
}
.form-group select { color-scheme: light; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-faint); }
.form-note { text-align: center; font-size: 13px; color: var(--text-faint); margin-top: 16px; transition: color 0.25s var(--ease-soft); }
.form-botcheck { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

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

.footer { padding: 80px 0 32px; border-top: 1px solid var(--border); background: var(--bg-alt); }
.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  padding-bottom: 56px;
}
.footer-brand p { color: var(--text-dim); font-size: 15px; margin-top: 14px; max-width: 26ch; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); margin-bottom: 4px; }
.footer-col a { color: var(--text-dim); font-size: 15px; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-faint);
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a:hover { color: var(--accent); }

/* =========================================================
   Back to top
========================================================= */

.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  box-shadow: 0 8px 24px -8px rgba(20, 22, 43, 0.18);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, border-color 0.3s;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { border-color: var(--accent); color: var(--accent); }

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

@media (max-width: 980px) {
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(3, 1fr); }
  .buyer-lead { grid-template-columns: repeat(2, 1fr); }
  .buyer-index { grid-template-columns: repeat(3, 1fr); column-gap: 26px; }
}

@media (max-width: 760px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    padding: 24px 32px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px -12px rgba(20, 22, 43, 0.15);
  }
  .grid-3 { grid-template-columns: 1fr; }
  .why-points { grid-template-columns: 1fr; gap: 36px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
  .hero { padding-top: 120px; }
  .section { padding: 88px 0; }

  .buyer-lead { grid-template-columns: 1fr; gap: 12px; margin-bottom: 36px; }
  .buyer-lead-item { min-height: 0; padding: 20px 20px 18px; }
  .buyer-lead-name { font-size: 19px; }
  .buyer-index { grid-template-columns: repeat(2, 1fr); column-gap: 20px; }
  .buyer-index-item { font-size: 14.5px; padding: 14px 2px 13px; }

  .svc-group + .svc-group { margin-top: 48px; }
  .svc-group-head { gap: 14px; margin-bottom: 22px; }
  .svc-group-head h3 { font-size: 22px; }
  .svc-card { padding: 26px 24px 28px; }

  .proc-tabs { gap: 8px; margin-bottom: 30px; }
  .proc-tab { padding: 10px 16px; font-size: 13.5px; }

  /* Beam turns vertical: the track becomes a left spine and the pulse
     runs downward, so the same idea survives the stack. */
  .proc-beam { padding-left: 52px; }
  .proc-track {
    position: absolute;
    left: 17px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    height: auto;
  }
  .proc-pulse {
    width: 100%;
    height: 24%;
    background: linear-gradient(180deg, transparent, var(--accent), transparent);
    animation-name: proc-beam-v;
  }
  .proc-steps { flex-direction: column; gap: 26px; }
  .proc-step { position: relative; padding: 0; }
  .proc-dot { position: absolute; left: -52px; top: 0; margin: 0; }
  .proc-title { font-size: 17px; }
  .proc-desc { font-size: 15px; }
  .proc-cta { margin-top: 36px; }
  .proc-cta .btn { width: 100%; max-width: 320px; }
}
