/* ===========================================================
   Solomon Padilla Design — recreation
   Tokens lifted from the live site's computed styles.
   =========================================================== */

/* Font faces are linked from each page's <head> (assets/css/fonts.css)
   so they download in parallel with this stylesheet rather than after it. */

:root {
  /* surfaces */
  --bg:            #0f151f;
  --bg-deep:       #00070d;
  --bg-black:      #000;
  --card:          #0f0f0f;
  --card-2:        #141414;
  --hairline:      rgba(204, 204, 204, 0.1);
  --hairline-soft: rgba(255, 255, 255, 0.06);
  --chip:          rgba(255, 255, 255, 0.04);

  /* text */
  --text:      #d1dae0;
  --text-dim:  #b3c2cb;
  --text-mute: #7d8894;
  --white:     #fff;

  /* accents */
  --accent:      #2d66eb;
  --accent-glow: rgba(45, 102, 235, 0.25);

  /* type */
  --font: 'Satoshi', 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* layout */
  --shell: 1000px;
  --gutter: 24px;
  --nav-h: 72px;
}

* { box-sizing: border-box; }

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

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

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

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell-wide { max-width: 1200px; }

.eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 20px;
}

h1, h2, h3 { font-weight: 500; margin: 0; }

.section { padding-block: 96px; position: relative; }
.section-title {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.18;
  letter-spacing: -1.2px;
  color: var(--text);
  margin: 0 0 40px;
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 20px 0 auto;
  z-index: 60;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.nav-inner {
  pointer-events: auto;
  width: min(1200px, calc(100% - 48px));
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img { width: 44px; height: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.3px;
}
.nav-links a { color: var(--text); opacity: 0.85; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; }

/* pill button — mirrors the site's bordered/glowing CTA */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  color: var(--white);
  font-size: 16px;
  letter-spacing: -0.16px;
  box-shadow: 0 1px 21px 0 var(--accent-glow) inset, 0 8px 24px rgba(0,0,0,0.45);
  transition: transform 0.25s cubic-bezier(.22,1,.36,1), border-color 0.25s, box-shadow 0.25s;
}
.pill:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 1px 28px 2px var(--accent-glow) inset, 0 12px 30px rgba(0,0,0,0.55);
}
.pill-lg { padding: 15px 30px; font-size: 20px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  /* Was 100vh. Shortened so the logo marquee sits just under the fold instead
     of a full screen down; the min() keeps it from getting tall on big
     displays while the min-height floor protects short laptop viewports. */
  min-height: min(72vh, 660px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 148px 24px 56px;
  overflow: hidden;
}
/* WebGL "Mesh drift" field. Sits at the back; the canvas paints its own
   grain, so the old CSS film-grain layer is gone (it would have doubled up).
   If WebGL is unavailable the canvas stays transparent and the hero falls
   back to the page background plus the wash below. */
.hero-shader {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero::before {   /* scrim: keeps hero copy readable over the brightest cells */
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 50% 45%, rgba(6, 10, 18, 0.72), transparent 70%),
    linear-gradient(to bottom, rgba(15, 21, 31, 0.35), rgba(15, 21, 31, 0.1) 40%, rgba(15, 21, 31, 0.55));
}
.hero-inner { position: relative; z-index: 2; max-width: 620px; }

.hero-avatar {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 40px;
  filter: grayscale(1);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 20px 60px rgba(0,0,0,0.6);
}
.hero h1 {
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.2;
  letter-spacing: -1.38px;
  color: var(--text);
  margin: 0 0 28px;
}
.hero p {
  font-size: 20px;
  line-height: 28px;
  color: var(--text-dim);
  margin: 0 auto 14px;
  max-width: 500px;
}
/* Breathing room under the hero copy. Applies to both button styles — the
   CTA became .lm-cta, which silently dropped the old .pill-only margin. */
.hero .pill,
.hero .lm-cta { margin-top: 44px; }

/* gradient blur that fades the hero into the next section */
.gradient-blur {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  /* Shortened with the hero — a 260px fade swallowed most of a 660px hero. */
  height: 150px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  z-index: 3;
}

/* ---------- marquees ---------- */

.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 72px;
  width: max-content;
  animation: slide var(--dur, 46s) linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }

/* No band: the strip used to sit on a --bg-deep panel, which drew a hard seam
   where the hero's gradient fade landed. Transparent now, so the logos read as
   a continuation of the hero rather than a separate container. */
.logo-strip { padding-block: 4px 56px; background: transparent; }
.logo-strip-note {
  margin: 0 0 26px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-mute);
}
.logo-strip img {
  height: 34px;
  width: auto;
  object-fit: contain;
  opacity: 0.55;
  filter: grayscale(1) brightness(1.6);
  transition: opacity 0.3s;
}
.logo-strip img:hover { opacity: 1; }
.logo-strip .tall { height: 58px; }

/* horizontal image gallery */
.gallery { padding-block: 40px; }
.gallery .marquee-track { gap: 24px; --dur: 60s; }
.gallery img,
.gallery .gal-media {
  flex: none;                /* videos would otherwise shrink in the flex track */
  display: block;
  width: 680px;
  height: 400px;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--hairline);
  background: var(--card);   /* covers the frame before the first video frame paints */
}

/* ---------- case studies (sticky stack) ---------- */

.cases { display: flex; flex-direction: column; gap: 48px; }
.case-slot { position: sticky; }
.case-slot:nth-child(1) { top: 100px; }
.case-slot:nth-child(2) { top: 130px; }
.case-slot:nth-child(3) { top: 170px; }
.case-slot:last-child   { position: relative; top: 0; }

.case {
  position: relative;
  display: flex;
  align-items: center;
  gap: 80px;
  padding: 60px 40px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 1px 21px 0 var(--accent-glow) inset;
  transition: transform 0.4s cubic-bezier(.22,1,.36,1);
}
.case:hover { transform: translateY(-4px); }
.case-glow {
  position: absolute;
  left: -120px; top: -120px;
  width: 559px; height: 559px;
  border-radius: 999px;
  background: #4a4a4a;
  filter: blur(100px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}
.case > .case-body,
.case > .case-aside { position: relative; z-index: 1; }

.case-body {
  flex: 1 1 406px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: stretch;
  gap: 32px;
}
.case h3 {
  font-size: 30px;
  line-height: 42px;
  letter-spacing: -0.5px;
  color: var(--white);
  margin: 0 0 20px;
}
.case p {
  font-size: 18px;
  line-height: 25.2px;
  letter-spacing: -0.3px;
  color: rgba(255,255,255,0.72);
  margin: 0;
}
.case .tools {
  display: block;
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-mute);
}
.case-cta {
  align-self: flex-start;
  padding: 12px 24px;
  font-size: 15px;
}
.case-cta.is-soon { opacity: 0.5; pointer-events: none; }

.case-aside {
  flex: 1 1 406px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.case-aside img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--hairline);
}
.stats { display: flex; gap: 40px; }
.stat-label { font-size: 13px; color: var(--text-mute); margin: 0 0 4px; }
.stat-value { font-size: 28px; line-height: 1.1; color: var(--white); letter-spacing: -1px; }

/* ---------- about ---------- */

.about { padding-block: 120px; }
.about-copy {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 2;
  letter-spacing: -0.6px;
  color: var(--text-dim);
}

/* Pill highlights — dark capsules inline in the sentence, as on the live site. */
.pill-link {
  display: inline-block;
  padding: 0.14em 0.7em;
  margin: 0 0.1em;
  border-radius: 999px;
  background: linear-gradient(180deg, #1b1f26 0%, #05070b 100%);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
  transition: border-color .25s, transform .25s cubic-bezier(.22,1,.36,1);
}
.pill-link:hover,
.pill-link:focus-visible { border-color: rgba(255,255,255,0.28); transform: translateY(-2px); }

/* ---------- link preview card ---------- */

.lp-layer {
  position: absolute;
  top: 0; left: 0;
  z-index: 80;
  pointer-events: none;
  transform: translate3d(var(--lp-x, 0), var(--lp-y, 0), 0);
  opacity: 0;
  transition: opacity .18s ease;
}
.lp-layer.is-open { opacity: 1; }
.lp-card {
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 260px;
  padding: 6px;
  border-radius: 14px;
  background: var(--card-2);
  border: 1px solid var(--hairline);
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  transform: translateX(-50%) translateY(14px) scale(0.6) rotate(var(--lp-tilt, 0deg));
  transform-origin: bottom center;
  /* Overshooting curve stands in for the source component's spring. */
  transition: transform .28s cubic-bezier(.34, 1.56, .64, 1);
}
.lp-layer.is-open .lp-card {
  transform: translateX(-50%) translateY(0) scale(1) rotate(var(--lp-tilt, 0deg));
}
.lp-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 9px;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .lp-card, .lp-layer { transition: none; }
}

/* ---------- testimonials ---------- */

.clients { position: relative; text-align: center; overflow: hidden; padding-block: 120px; }
.rings { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); pointer-events: none; }
.rings span {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid var(--hairline-soft);
  border-radius: 50%;
}
.clients-title {
  position: relative;
  z-index: 1;
  font-size: clamp(28px, 3.4vw, 38px);
  letter-spacing: -1px;
  color: var(--text);
  margin: 0 0 56px;
}
/* Three columns, each a client logo above its quote — matching the live site.
   No cards: the quotes sit directly on the concentric-ring backdrop. */
.quotes {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 960px;
  margin-inline: auto;
}
.quote { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.quote-logo {
  height: 44px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  opacity: 0.9;
  filter: grayscale(1) brightness(1.8);
}
.quote blockquote {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.2px;
  color: var(--text-dim);
  max-width: 30ch;
}

.quote-by { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.quote-name { font-size: 15px; color: var(--text); }
.quote-rel  { font-size: 13px; color: var(--text-mute); }

.quote-more {
  margin-top: 4px;
  padding: 8px 16px;
  font: inherit;
  font-size: 14px;
  color: var(--text-dim);
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.quote-more:hover { color: var(--white); border-color: rgba(255,255,255,0.32); }

/* ---------- recommendation modal ---------- */

.rec-modal {
  width: min(640px, calc(100vw - 40px));
  max-height: min(80vh, 760px);
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: 24px;
  background: var(--card-2);
  color: var(--text-dim);
  overflow: visible;
}
.rec-modal::backdrop { background: rgba(3, 6, 12, 0.72); backdrop-filter: blur(4px); }
.rec {
  max-height: min(80vh, 760px);
  overflow-y: auto;
  padding: 40px;
  overscroll-behavior: contain;
}
.rec header { margin-bottom: 24px; }
.rec-logo {
  height: 34px; width: auto; max-width: 180px;
  object-fit: contain; margin-bottom: 18px;
  filter: grayscale(1) brightness(1.8);
}
.rec h3 { font-size: 22px; color: var(--white); letter-spacing: -0.4px; margin: 0 0 6px; }
.rec-title { font-size: 14px; line-height: 1.5; color: var(--text-mute); margin: 0 0 8px; }
.rec-rel { font-size: 13px; color: var(--text-mute); margin: 0; padding-bottom: 20px; border-bottom: 1px solid var(--hairline); }
.rec p { font-size: 16px; line-height: 1.65; margin: 0 0 16px; }
.rec p:last-child { margin-bottom: 0; }

.rec-close {
  position: absolute;
  top: -14px; right: -14px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  font-size: 24px; line-height: 1;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 50%;
  cursor: pointer;
}
.rec-close:hover { color: var(--white); border-color: rgba(255,255,255,0.4); }

@media (max-width: 620px) {
  .rec { padding: 28px 20px; }
  .rec-close { top: 8px; right: 8px; }
}

/* ---------- skills ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 12px; }

/* Grouped skills: four labelled clusters read as a capability map rather than
   an undifferentiated wall of tags. */
.skill-groups { display: grid; gap: 40px; }
.skill-group-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 16px;
}
.chip {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--chip);
  color: var(--text-dim);
  font-size: 15px;
  letter-spacing: -0.2px;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.chip:hover { color: var(--white); border-color: rgba(255,255,255,0.3); transform: translateY(-2px); }
.chip.more { color: var(--text-mute); }

/* ---------- experience ---------- */

.xp-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 26px 0;
  border-top: 1px solid var(--hairline);
}
.xp-row:last-child { border-bottom: 1px solid var(--hairline); }
.xp-role { font-size: 20px; color: var(--white); letter-spacing: -0.4px; }
/* Company over date, both right-aligned — matching the live site. */
.xp-meta { text-align: right; }
.xp-co { font-size: 17px; color: var(--text-dim); }
.xp-date { font-size: 15px; color: var(--text-mute); white-space: nowrap; margin-top: 6px; }

@media (max-width: 620px) {
  .xp-row { grid-template-columns: 1fr; gap: 6px; }
  .xp-meta { text-align: left; }
}

/* ---------- faq ---------- */

.faq-list { border-top: 1px solid var(--hairline); }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  background: none;
  border: 0;
  color: var(--text);
  font-family: inherit;
  font-size: 20px;
  letter-spacing: -0.4px;
  text-align: left;
  cursor: pointer;
}
.faq-q .sign { flex: none; width: 20px; height: 20px; position: relative; opacity: 0.6; }
.faq-q .sign::before,
.faq-q .sign::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 14px; height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.3s cubic-bezier(.22,1,.36,1);
}
.faq-q .sign::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .sign::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s cubic-bezier(.22,1,.36,1);
}
.faq-a p {
  margin: 0 0 26px;
  max-width: 70ch;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-dim);
}

/* ---------- final CTA (capsule) ---------- */

.cta { padding-block: 120px; }
/* The live site ends on a single centred stadium-shaped panel lit from the
   top, not a split layout — no image columns. */
.cta-capsule {
  max-width: 780px;
  margin-inline: auto;
  padding: 88px 64px;
  text-align: center;
  border-radius: 999px;
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(196, 201, 208, 0.85), transparent 62%),
    linear-gradient(to bottom, #4a4f57 0%, #14171d 55%, #05070a 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.cta-capsule h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.3;
  letter-spacing: -1.1px;
  color: var(--white);
  max-width: 18ch;
  margin: 0 auto 28px;
}
.cta-byline { margin: 22px 0 0; font-size: 14px; color: rgba(255,255,255,0.55); }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--hairline);
  padding-block: 36px;
  background: var(--bg-deep);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-mute);
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }

/* ---------- case study pages ---------- */

.cs-hero { padding: 200px 0 64px; }
.cs-hero h1 {
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.14;
  letter-spacing: -1.8px;
  color: var(--white);
  max-width: 16ch;
  margin: 0 0 24px;
}
.cs-hero .lede {
  font-size: 20px;
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 62ch;
  margin: 0;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--text-mute);
  margin-bottom: 28px;
  transition: color 0.2s;
}
.back:hover { color: var(--white); }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  overflow: hidden;
  margin-block: 56px;
}
.fact { background: var(--card); padding: 24px; }
.fact dt { font-size: 13px; color: var(--text-mute); margin-bottom: 6px; }
.fact dd { margin: 0; font-size: 17px; color: var(--white); }

.cs-block { margin-block: 64px; }
.cs-block h2 {
  font-size: 30px;
  letter-spacing: -0.9px;
  color: var(--white);
  margin: 0 0 20px;
}
.cs-block h3 {
  font-size: 19px;
  color: var(--white);
  margin: 32px 0 8px;
}
.cs-block p, .cs-block li {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 72ch;
}
.cs-block p { margin: 0 0 18px; }
.cs-block ul { margin: 0 0 18px; padding-left: 20px; }
.cs-block li { margin-bottom: 10px; }
.cs-block strong { color: var(--white); font-weight: 500; }

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-block: 40px;
}
.metric {
  padding: 32px 28px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  box-shadow: 0 1px 21px 0 var(--accent-glow) inset;
}
.metric .n {
  display: block;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -2px;
  color: var(--white);
  margin-bottom: 10px;
}
.metric .l { font-size: 15px; color: var(--text-dim); }

.pull {
  margin-block: 48px;
  padding: 40px;
  border-left: 2px solid rgba(255,255,255,0.2);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.35;
  letter-spacing: -0.8px;
  color: var(--white);
}

/* Case-study figures. `.panel` reproduces the live site's blue mat that some
   screenshots sit on; plain figures sit directly on the page. */
.cs-figure { margin: 48px 0; }
.cs-figure img { width: 100%; border-radius: 20px; border: 1px solid var(--hairline); }
.cs-figure.panel {
  background: #2f6bf3;
  border-radius: 24px;
  padding: 40px;
}
.cs-figure.panel img { border: 0; border-radius: 12px; }

.cs-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 48px 0;
}
.cs-duo .cs-figure { margin: 0; }
.cs-specimen img { background: var(--card); padding: 24px; }

/* Phone screens: four portrait mockups in a row. */
.cs-screens {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 48px 0;
}
.cs-screens figure { margin: 0; }
.cs-screens img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--hairline);
}

.needs-list { list-style: none; padding: 0; }
.needs-list li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.needs-list img { width: 22px; height: 22px; flex: none; margin-top: 4px; }

.stack-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.stack-icon { height: 28px; width: auto; opacity: 0.9; }

video.cs-shot { background: var(--card); object-fit: cover; }

@media (max-width: 760px) {
  .cs-duo, .cs-screens { grid-template-columns: 1fr 1fr; }
  .cs-figure.panel { padding: 20px; }
}

.cs-shot {
  width: 100%;
  /* Cap the box height so a portrait source can't render taller than the
     viewport — the Welk hero is 526x669 and was painting 952x1210. Landscape
     shots stay untouched because they never reach the cap. */
  max-height: 520px;
  object-fit: cover;
  object-position: center 42%;
  border-radius: 24px;
  border: 1px solid var(--hairline);
  margin-block: 48px;
}

@media (max-width: 700px) { .cs-shot { max-height: 340px; } }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .quotes { grid-template-columns: 1fr; gap: 48px; }
  .cta-capsule { border-radius: 56px; padding: 64px 32px; }
  .case { flex-direction: column; gap: 36px; padding: 36px 24px; }
  .case-slot, .case-slot:nth-child(n) { position: relative; top: 0; }
  .cases { gap: 24px; }
  .nav-links { gap: 18px; font-size: 15px; }
}

@media (max-width: 620px) {
  .section { padding-block: 64px; }
  .case h3 { font-size: 24px; line-height: 32px; }
  .stats { gap: 24px; }
  .nav-links a:not(.pill) { display: none; }
  .pull { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}


/* ---------- liquid metal button ---------- */
/* Base look for the anchor before (or without) JS — the module then adds
   .lm-btn and the layered shader treatment on top. */
.lm-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 40px;
  border-radius: 100px;
  font-size: 18px;
  letter-spacing: -0.2px;
  color: #d7dce2;
  background: linear-gradient(180deg, #202020 0%, #000 100%);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

/* Layered exactly like the source component: shader plate (z0) → dark inner
   pill (z1) → label (z2) → ripple layer. Sizing is driven by padding on the
   host element so it scales with the CTA it replaces. */
.lm-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 40px;
  border-radius: 100px;
  isolation: isolate;
  cursor: pointer;
  border: 0;
  background: transparent;
  text-decoration: none;
  transform: translateZ(0);
  transition: transform .15s cubic-bezier(.4,0,.2,1);
}
.lm-btn.is-pressed { transform: translateY(1px) scale(.98); }

.lm-plate {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 100px;
  overflow: hidden;
  background: #000;
  transition: box-shadow .15s cubic-bezier(.4,0,.2,1);
}
.lm-shader { position: absolute; inset: 0; display: block; border-radius: 100px; }
.lm-shader canvas {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  border-radius: 100px !important;
}

/* The dark pill that leaves the metal visible only as a rim. */
.lm-inner {
  position: absolute;
  inset: 2px;
  z-index: 1;
  border-radius: 100px;
  background: linear-gradient(180deg, #202020 0%, #000 100%);
  transition: box-shadow .15s cubic-bezier(.4,0,.2,1);
}
.lm-btn.is-pressed .lm-inner {
  box-shadow: inset 0 2px 4px rgba(0,0,0,.4), inset 0 1px 2px rgba(0,0,0,.3);
}

.lm-label {
  position: relative;
  z-index: 2;
  font-size: 18px;
  letter-spacing: -0.2px;
  color: #d7dce2;
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
  white-space: nowrap;
  pointer-events: none;
}

.lm-ripples { position: absolute; inset: 0; z-index: 3; border-radius: 100px; overflow: hidden; pointer-events: none; }
.lm-ripple {
  position: absolute;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.4) 0%, rgba(255,255,255,0) 70%);
  animation: lm-ripple .6s ease-out forwards;
}
@keyframes lm-ripple {
  from { transform: translate(-50%,-50%) scale(0); opacity: .6; }
  to   { transform: translate(-50%,-50%) scale(4); opacity: 0; }
}

/* No WebGL: keep a legible metallic-ish pill rather than a black hole. */
.lm-btn.lm-fallback .lm-plate {
  background: linear-gradient(135deg, #6d747e, #cfd5dc 45%, #4a5058 70%, #9aa2ac);
}

@media (max-width: 620px) {
  .lm-btn { padding: 15px 30px; }
  .lm-label { font-size: 16px; }
}


/* ---------- mailto fallback toast ---------- */

.mail-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 90;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 14px 20px;
  border-radius: 999px;
  background: var(--card-2);
  border: 1px solid var(--hairline);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  transform: translateX(-50%) translateY(12px);
  opacity: 0;
  transition: opacity .25s ease, transform .25s cubic-bezier(.22,1,.36,1);
  max-width: calc(100vw - 32px);
}
.mail-toast.is-open { display: flex; opacity: 1; transform: translateX(-50%) translateY(0); }
.mail-toast-msg  { font-size: 14px; color: var(--text-mute); }
.mail-toast-addr { font-size: 15px; color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.mail-toast-copy {
  font: inherit; font-size: 13px;
  padding: 6px 14px; border-radius: 999px;
  color: var(--text); background: none;
  border: 1px solid var(--hairline); cursor: pointer;
}
.mail-toast-copy:hover { color: var(--white); border-color: rgba(255,255,255,0.35); }
.mail-toast-x {
  font: inherit; font-size: 20px; line-height: 1;
  width: 28px; height: 28px;
  color: var(--text-mute); background: none; border: 0; cursor: pointer;
}
.mail-toast-x:hover { color: var(--white); }

@media (max-width: 620px) {
  .mail-toast { flex-wrap: wrap; border-radius: 18px; justify-content: center; text-align: center; }
}


/* ---------- bottom CTA: animated marquee hero ---------- */

.cta-hero { position: relative; padding-block: 120px 0; overflow: hidden; }

/* Combined CTA: copy left, form right, work marquee full-width beneath. */
.cta-combo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.cta-combo-copy { padding-top: 6px; }
.cta-combo .cta-hero-title { font-size: clamp(32px, 4vw, 52px); }
.cta-combo .cta-hero-desc { margin-inline: 0; }
.cta-combo .cf-alt { margin-top: 24px; }

/* The form sits on a subtle card so it reads as a distinct panel next to the
   copy rather than floating in the section. */
.cta-combo-form {
  padding: 32px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--hairline);
  border-radius: 24px;
}
.cta-combo-form .contact-form { max-width: none; }
.cta-combo-form .cf-row { grid-template-columns: 1fr 1fr; }
.cta-combo-form .cf-field:last-of-type { margin-bottom: 12px; }

.cta-tagline {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px;
  margin: 0 0 28px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: rgba(255,255,255,0.03);
  font-size: 14px;
  color: var(--text-dim);
}
.cta-tagline .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74,222,128,.18);
}

/* Word-by-word reveal, the component's signature entrance. */
.cta-hero-title {
  font-size: clamp(34px, 5.4vw, 62px);
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--white);
  margin: 0 0 22px;
}
.cta-hero-title .rv {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  animation: rv-in .7s cubic-bezier(.22,1,.36,1) forwards;
  animation-delay: calc(var(--i) * 80ms);
}
@keyframes rv-in { to { opacity: 1; transform: none; } }

.cta-hero-desc {
  max-width: 60ch;
  margin: 0 auto 34px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-dim);
}

.cta-hero-strip { margin-top: 84px; padding-bottom: 96px; }
.cta-hero-strip .marquee-track { gap: 22px; }
.cta-hero-strip img {
  flex: none;
  width: 420px;
  height: 250px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--hairline);
}

@media (prefers-reduced-motion: reduce) {
  .cta-hero-title .rv { opacity: 1; transform: none; animation: none; }
}
@media (max-width: 620px) {
  .cta-hero-strip img { width: 280px; height: 170px; }
  .cta-hero-strip { margin-top: 56px; padding-bottom: 64px; }
}

/* ---------- contact form ---------- */

.contact { padding-top: 0; }
.contact-form { max-width: 720px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cf-field { display: block; margin-bottom: 20px; }
.cf-field > span {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-dim);
}
.cf-field input,
.cf-field textarea {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  transition: border-color .2s, background .2s;
}
.cf-field textarea { resize: vertical; min-height: 130px; }
.cf-field input:focus,
.cf-field textarea:focus {
  outline: none;
  border-color: rgba(255,255,255,0.34);
  background: rgba(255,255,255,0.05);
}
.cf-field.is-invalid input,
.cf-field.is-invalid textarea { border-color: #d9534f; }
.cf-err { display: none; margin-top: 6px; font-size: 13px; font-style: normal; color: #ff8a85; }
.cf-field.is-invalid .cf-err { display: block; }

/* honeypot — off-screen, never focusable by sighted users */
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.cf-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.cf-status { margin: 0; font-size: 15px; color: var(--text-dim); }
.cf-status.is-ok  { color: #7ee2a8; }
.cf-status.is-err { color: #ff8a85; }
.contact-form.is-sending button { opacity: .6; pointer-events: none; }

.cf-alt { margin-top: 28px; font-size: 15px; color: var(--text-mute); }
.cf-alt a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 620px) { .cf-row { grid-template-columns: 1fr; gap: 0; } }


@media (max-width: 900px) {
  .cta-combo { grid-template-columns: 1fr; gap: 44px; }
  .cta-combo-form { padding: 24px; }
}
@media (max-width: 620px) {
  .cta-combo-form { padding: 20px; border-radius: 18px; }
  .cta-combo-form .cf-row { grid-template-columns: 1fr; gap: 0; }
}


/* ---------- a11y utilities ---------- */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Visible only once focused, so keyboard users can jump the nav. */
.skip-link {
  position: fixed;
  top: 12px; left: 50%;
  z-index: 100;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--card-2);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-size: 15px;
  transform: translate(-50%, -160%);
  transition: transform .2s cubic-bezier(.22,1,.36,1);
}
.skip-link:focus { transform: translate(-50%, 0); }


/* ---------- lottie ---------- */
.lottie {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--hairline);
}
.lottie svg { display: block; width: 100% !important; height: auto !important; }
.lottie-figure figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-mute);
}
