/* ============================================================
   DEALT — Hero scene + animation utilities
   Replaces the previous cosmic starfield with a grounded
   paper-flood illustration. Solid dark navy bg only.
   ============================================================ */

:root {
  /* Tones used inside the paper-flood */
  --paper-1:  #2B3543;
  --paper-2:  #36414F;
  --paper-3:  #424E5D;
  --paper-4:  #1F2935;
  --paper-line: #4A5564;
  --glow-warm: #FFB68E;
  --glow-deep: #B57144;
}

/* Solid dark navy body — no cosmic background */
body {
  background: var(--bg);
}

/* Body stacking still needed since the old z-index:1 hack was relying on
   .cosmos as z-index:0. With cosmos gone, no extra rule needed. */

/* ── Animation utilities reused by pillar icons ───────────── */
.float-slow    { animation: floatY 7s ease-in-out infinite; transform-origin: center; }
.float-med     { animation: floatY 5s ease-in-out infinite; transform-origin: center; }
.float-fast    { animation: floatY 3.6s ease-in-out infinite; transform-origin: center; }
.spin-slow     { animation: spin 28s linear infinite; transform-origin: center; transform-box: fill-box; }
.spin-rev      { animation: spin 20s linear infinite reverse; transform-origin: center; transform-box: fill-box; }
.pulse         { animation: pulseScale 4.5s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.sway-slow     { animation: sway 8s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.sway-med      { animation: sway 5.5s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.glow-pulse    { animation: glowPulse 6s ease-in-out infinite; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes pulseScale {
  0%, 100% { transform: scale(1); opacity: 0.45; }
  50%      { transform: scale(1.12); opacity: 0.7; }
}
@keyframes sway {
  0%, 100% { transform: rotate(-1.5deg); }
  50%      { transform: rotate(1.5deg); }
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1; }
}

/* ── Hero scene — phone takes the right column ───────────── */
.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ─────────────────────────────────────────────────────────────
   SIGNATURE MOMENT — the pay-reveal
   The job card's pay value enters blurred + dimmed, then resolves
   to crisp copper. This is "the whole thesis in one gesture."
   Played once on load + replayed each time the hero card enters
   view from below (scroll up + return).
 ───────────────────────────────────────────────────────────── */
.pay-reveal {
  animation: pay-reveal 1.4s cubic-bezier(.2, .7, .2, 1) 0.5s both;
}
@keyframes pay-reveal {
  0%   { filter: blur(10px); color: var(--text-faint);  letter-spacing: 0.35em; opacity: 0.55; }
  40%  { filter: blur(6px);  color: var(--text-muted);  letter-spacing: 0.18em; opacity: 0.8; }
  80%  { filter: blur(0);    color: var(--copper);      letter-spacing: 0.02em; opacity: 1; }
  100% { filter: blur(0);    color: var(--copper);      letter-spacing: 0;      opacity: 1; }
}
/* Scroll-driven replay for browsers that support it */
@supports (animation-timeline: view()) {
  .pay-reveal {
    animation: pay-reveal-scroll 1s linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
  }
  @keyframes pay-reveal-scroll {
    from { filter: blur(10px); color: var(--text-faint); letter-spacing: 0.35em; opacity: 0.55; }
    to   { filter: blur(0);    color: var(--copper);     letter-spacing: 0;      opacity: 1; }
  }
}

/* Hero card sits at rest (no swipe deck rotation cycle, no overlays). */
.hero-card { transform-origin: center; }

/* ── Pillar icon container ────────────────────────────────── */
.pillar { grid-template-columns: 100px 1fr 1.4fr; }
@media (max-width: 900px) {
  .pillar { grid-template-columns: 80px 1fr; }
}
.pillar .num { display: none; }
.pillar-icon {
  width: 80px; height: 80px;
  display: grid; place-items: center;
}
.pillar-icon svg { width: 100%; height: 100%; overflow: visible; }

/* ── Typography rebalance ─────────────────────────────────── */
/* Cap the hero h1 — was 132px, now 108px. Lead bumps to 20px. */
.hero h1 { font-size: clamp(48px, 6.6vw, 108px) !important; letter-spacing: -0.045em; }
.hero h1 .serif { font-weight: 500; font-size: 0.92em; }
.hero p.lead {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.5;
  max-width: 520px;
  color: var(--text-dim);
}

/* Section h2 — tone down a touch */
.problem h2, .fix h2, .tiers-head h2, .employer-copy h2, .founding h2 {
  font-size: clamp(36px, 4.6vw, 64px) !important;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.final h2 {
  font-size: clamp(44px, 5.6vw, 88px) !important;
  font-weight: 800;
  letter-spacing: -0.04em;
}
/* Lede paragraphs read at a respectable size */
.problem .lede, .tiers-head .lede {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--text-dim);
}
/* Pillar body bumped */
.pillar .body { font-size: clamp(16px, 1.2vw, 18px); line-height: 1.6; }

/* Stat-hero captions a hair bigger */
.stat-hero .cap { font-size: clamp(15px, 1.2vw, 17px); line-height: 1.5; }

/* ── Reduce motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .float-slow, .float-med, .float-fast, .spin-slow, .spin-rev,
  .pulse, .sway-slow, .sway-med, .glow-pulse,
  .amb-pool, .hero-glow-pulse, .hero-light-rays,
  .hero-dust span { animation: none !important; }
}

/* ─────────────────────────────────────────────────────────── *
   AMBIENT BACKGROUND
   Three large drifting radial gradient pools (jade + copper).
   No stars. Sits fixed behind everything at very low alpha.
 * ─────────────────────────────────────────────────────────── */
.ambient-bg {
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.amb-pool {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}
.amb-pool.jade {
  width: 60vw; height: 60vw;
  top: -15vw; left: -10vw;
  background: radial-gradient(circle, rgba(69,184,136,0.10), transparent 60%);
  animation: ambient-drift-a 38s ease-in-out infinite alternate;
}
.amb-pool.copper {
  width: 50vw; height: 50vw;
  top: 30vh; right: -15vw;
  background: radial-gradient(circle, rgba(204,139,94,0.08), transparent 60%);
  animation: ambient-drift-b 46s ease-in-out infinite alternate;
}
.amb-pool.jade2 {
  width: 55vw; height: 55vw;
  bottom: -10vh; left: 15vw;
  background: radial-gradient(circle, rgba(69,184,136,0.07), transparent 60%);
  animation: ambient-drift-c 42s ease-in-out infinite alternate;
}
@keyframes ambient-drift-a {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(8vw, 6vh) scale(1.15); }
}
@keyframes ambient-drift-b {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-10vw, -4vh) scale(1.1); }
}
@keyframes ambient-drift-c {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(6vw, -8vh) scale(1.2); }
}

/* Keep all main content above the ambient layer */
body > *:not(.ambient-bg) { position: relative; z-index: 1; }

/* ─────────────────────────────────────────────────────────── *
   HERO BACKGROUND IMAGE — full-bleed, blended edges, light fx
 * ─────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  /* Give hero some room to breathe at the bottom for the image */
  min-height: 720px;
}
.hero .wrap { position: relative; z-index: 2; }
.hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.4fr);
}
@media (max-width: 900px){ .hero-grid { grid-template-columns: 1fr; } }

/* Full-bleed background illustration inside the hero */
.hero-bg-image {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: right center;
  /* Blended edges — radial vignette mask + linear fade on the left
     so headline copy on the left sits on dark navy, not on image */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 35%, #000 80%, transparent 100%),
    radial-gradient(ellipse 75% 95% at 70% 50%, #000 35%, transparent 92%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(to right, transparent 0%, #000 35%, #000 80%, transparent 100%),
    radial-gradient(ellipse 75% 95% at 70% 50%, #000 35%, transparent 92%);
          mask-composite: intersect;
  filter: saturate(1.05) contrast(1.02);
  opacity: 0.92;
}
@media (max-width: 900px){
  .hero-bg-img {
    object-position: center;
    -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 60%, #000 35%, transparent 95%);
            mask-image: radial-gradient(ellipse 100% 80% at 50% 60%, #000 35%, transparent 95%);
    opacity: 0.45;
  }
}

/* Animated light overlays, repositioned over the image's clearing area */
.hero-bg-image .hero-glow-pulse {
  position: absolute;
  left: 70%; top: 60%;
  width: 36%; height: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,178,122,0.55), rgba(255,134,80,0.18) 40%, transparent 70%);
  mix-blend-mode: screen;
  filter: blur(20px);
  animation: heroGlowPulse 5s ease-in-out infinite;
}
.hero-bg-image .hero-light-rays {
  position: absolute;
  inset: 5% 5% 25% 50%;
  background: linear-gradient(160deg, rgba(255,200,150,0) 40%, rgba(255,200,150,0.18) 50%, rgba(255,200,150,0) 60%);
  mix-blend-mode: screen;
  filter: blur(10px);
  animation: heroLightRays 9s ease-in-out infinite;
}
.hero-bg-image .hero-dust {
  position: absolute;
  left: 58%; right: 18%;
  top: 35%; bottom: 18%;
  pointer-events: none;
  mix-blend-mode: screen;
}
.hero-bg-image .hero-dust span {
  position: absolute;
  width: 4px; height: 4px;
  background: #FFE4C5;
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 6px rgba(255,228,197,0.9);
  animation: dustRise 7s linear infinite;
}
.hero-bg-image .hero-dust span:nth-child(1) { left: 10%; animation-delay: 0s;   animation-duration: 8s; }
.hero-bg-image .hero-dust span:nth-child(2) { left: 25%; animation-delay: -1.5s; animation-duration: 7s; width: 3px; height: 3px; }
.hero-bg-image .hero-dust span:nth-child(3) { left: 38%; animation-delay: -3s;  animation-duration: 9s; }
.hero-bg-image .hero-dust span:nth-child(4) { left: 52%; animation-delay: -4.5s; animation-duration: 8s; width: 5px; height: 5px; }
.hero-bg-image .hero-dust span:nth-child(5) { left: 66%; animation-delay: -2s;  animation-duration: 7.5s; width: 3px; height: 3px; }
.hero-bg-image .hero-dust span:nth-child(6) { left: 78%; animation-delay: -5s;  animation-duration: 8.5s; }
.hero-bg-image .hero-dust span:nth-child(7) { left: 20%; animation-delay: -6s;  animation-duration: 9s; width: 3px; height: 3px; }
.hero-bg-image .hero-dust span:nth-child(8) { left: 60%; animation-delay: -3.8s; animation-duration: 7s; width: 4px; height: 4px; }

.hero-bg-image .hero-vignette {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 70% 55%, transparent 50%, rgba(13,17,25,0.55) 100%),
    linear-gradient(to right, rgba(13,17,25,0.45), transparent 40%);
}

/* Headline contrast — slight backdrop to ensure copy reads cleanly even where the image bleeds in */
.hero-copy { position: relative; z-index: 2; }

/* ── Existing hero-image-stage rules below are no longer used,
   but the original definitions are kept for backward-compat. */
.hero-image-stage { display: none; }

/* ─────────────────────────────────────────────────────────── *
   SHOWCASE — app screenshots in iPhone frames (Apple-store style)
 * ─────────────────────────────────────────────────────────── */
.showcase {
  padding: 96px 0 80px;
  position: relative;
  border-top: 1px solid var(--border);
}
.showcase-head { max-width: 720px; margin-bottom: 64px; }
.showcase-head h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.6vw, 64px) !important;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 14px 0 16px;
}
.showcase-head h2 .serif { color: var(--copper); font-weight: 500; }
.showcase-head .lede {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--text-dim);
  line-height: 1.55;
  max-width: 560px;
}

.phone-gallery {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin: 0 auto;
  padding: 40px 0;
  position: relative;
  min-height: 580px;
}

/* iPhone frame */
.iphone-frame {
  position: relative;
  width: 240px;
  flex: 0 0 auto;
  border-radius: 38px;
  padding: 12px;
  background: linear-gradient(180deg, #1c2330, #0f141b);
  box-shadow:
    0 0 0 1.5px #2a3340,
    0 0 0 6px #0a0e15,
    0 30px 60px rgba(0, 0, 0, 0.55),
    0 12px 24px rgba(0, 0, 0, 0.4);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
  margin: 0 -34px;
}
.iphone-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  background: #000;
}
.iphone-notch {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 22px;
  background: #060a10;
  border-radius: 999px;
  z-index: 2;
}
/* Tilted positioning — back phones rotated + slightly recessed */
.iphone-frame.tilt-l        { transform: rotate(-10deg) translateY(30px) scale(0.84); z-index: 1; opacity: 0.92; }
.iphone-frame.tilt-l-soft   { transform: rotate(-4deg)  translateY(18px) scale(0.92); z-index: 2; }
.iphone-frame.front         { transform: translateY(-12px) scale(1.04); z-index: 4; }
.iphone-frame.tilt-r-soft   { transform: rotate(4deg)   translateY(18px) scale(0.92); z-index: 2; }
.iphone-frame.tilt-r        { transform: rotate(10deg)  translateY(30px) scale(0.84); z-index: 1; opacity: 0.92; }

.iphone-frame:hover {
  transform: scale(1.06) translateY(-18px);
  z-index: 10;
  box-shadow:
    0 0 0 1.5px #3a4452,
    0 0 0 6px #0a0e15,
    0 40px 80px rgba(0, 0, 0, 0.6),
    0 0 0 24px rgba(204, 139, 94, 0.10);
}

@media (max-width: 1100px){
  .phone-gallery { flex-wrap: wrap; gap: 16px; min-height: auto; }
  .iphone-frame { margin: 12px; width: 210px; }
  .iphone-frame.tilt-l, .iphone-frame.tilt-l-soft,
  .iphone-frame.front,
  .iphone-frame.tilt-r-soft, .iphone-frame.tilt-r {
    transform: none; opacity: 1;
  }
  /* Hide the 5th (duplicate) phone on narrow viewports */
  .iphone-frame:nth-child(5) { display: none; }
}
@media (max-width: 640px){
  .iphone-frame:nth-child(4) { display: none; }
  .iphone-frame { width: 220px; }
}

.showcase-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 64px;
  flex-wrap: wrap;
}
.showcase-cta .muted {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ─── "Mono" data utility — Space Mono is gone, now DM Sans medium with letter-spacing for that data feel ─── */
.mono,
.eyebrow,
.section-eyebrow,
.section-eyebrow .num,
.swipe-card .org,
.swipe-card .pay,
.swipe-card .commute > span,
.j-card .org,
.j-card .pay,
.j-card .meta,
.tier .label,
.tier .price .alt,
.tier .price .cur,
.tier ul li.soon::after,
.tier-note,
.foot-col h5,
.foot-bottom,
.stat-hero .n,
.stat-hero .cap .src,
.problem-close .label,
.founding .label,
.founding .meta,
.founding-card .ph,
.founding-card .price .alt,
.eu-card .eu-cal-head,
.eu-card .eu-cal-grid .m,
.cur-switch,
.market-badge,
.market-badge .seats,
.applicants .head,
.applicants .info .sk,
.applicant .pc,
.match-card .meta,
.match-card .ticks .t,
.match-card .score-l,
.stat .l {
  font-family: var(--font-body) !important;
  font-feature-settings: 'tnum';
  letter-spacing: 0.04em;
}

/* Big stat numbers keep tight tracking */
.stat-hero .n, .stat .v, .founding-card .price, .tier .price, .pay {
  letter-spacing: -0.025em;
  font-feature-settings: 'tnum';
}

/* Headline descender safety — prevent .serif italic from kissing the next line */
.problem h2, .fix h2, .tiers-head h2, .employer-copy h2, .founding h2,
.showcase-head h2, .turn-card h2, .eu-card h2 {
  padding-bottom: 0.08em;
}

/* ─── END SHOWCASE / TIDY ──────────────────────────────────── */

/* ─────────────────────────────────────────────────────────── *
   PROBLEM STAT — combined dot-grid visualisation
   100 dots = 1 posting. Half copper (real) / half drowned (auto-rejected).
   On scroll-into-view, the drowned half fades out with a stagger.
 * ─────────────────────────────────────────────────────────── */
.problem-stat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
  margin-top: 64px;
}
@media (max-width: 900px) {
  .problem-stat { grid-template-columns: 1fr; gap: 32px; }
}

/* Left: the 10×10 dot grid — reduced footprint */
.ps-vis-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 18px;
  position: relative;
  overflow: hidden;
  max-width: 320px;
  margin: 0 auto;
}
.ps-vis-wrap::before {
  /* Soft inner glow on the dot grid */
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 35%, rgba(204,139,94,0.08), transparent 65%);
  pointer-events: none;
}
.ps-vis-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
  flex-wrap: wrap;
}
.ps-key {
  display: inline-flex; align-items: center; gap: 6px;
}
.ps-key .sw {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block;
}
.ps-key.copper { color: var(--copper); }
.ps-key.copper .sw { background: var(--copper); box-shadow: 0 0 6px rgba(204,139,94,0.5); }
.ps-key.dim    { color: var(--text-muted); }
.ps-key.dim .sw { background: var(--text-faint); }

.ps-vis {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 5px;
  position: relative;
  z-index: 1;
}
.ps-vis .dot {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 8px rgba(204,139,94,0.25);
  transition: background .35s ease, opacity .35s ease, transform .35s ease;
}
.ps-vis .dot.drown {
  /* default state — bright too. Drown anim flips them dim. */
  background: var(--copper);
}
.ps-vis.in .dot.drown {
  animation: dotDrown 0.55s cubic-bezier(.2,.7,.2,1) both;
  animation-delay: calc(var(--i, 0) * 14ms);
}
@keyframes dotDrown {
  0%   { background: var(--copper);    transform: scale(1);   opacity: 1; box-shadow: 0 0 8px rgba(204,139,94,0.25); }
  50%  { background: var(--copper);    transform: scale(0.85); opacity: 0.6; box-shadow: 0 0 12px rgba(204,139,94,0.4); }
  100% { background: var(--text-faint); transform: scale(0.55); opacity: 0.32; box-shadow: 0 0 0 transparent; }
}

.ps-vis-caption {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-top: 14px;
  text-align: center;
}

/* Right: the two big stats stacked */
.ps-side { display: flex; flex-direction: column; gap: 24px; }
.ps-row { display: grid; grid-template-columns: minmax(140px, max-content) 1fr; gap: 24px; align-items: baseline; }
@media (max-width: 600px) { .ps-row { grid-template-columns: 1fr; gap: 8px; } }

.ps-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 6vw, 88px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--text);
  font-feature-settings: 'tnum';
}
.ps-num .plus { color: var(--copper); }
.ps-num .sm { font-size: 0.5em; color: var(--copper); margin-left: 4px; letter-spacing: -0.02em; }

.ps-cap { font-size: clamp(15px, 1.15vw, 17px); line-height: 1.5; color: var(--text-dim); max-width: 36ch; }
.ps-cap b { color: var(--text); font-weight: 600; }

.ps-divider { height: 1px; background: var(--border); margin: 4px 0; }

.ps-source {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 8px;
}

/* ─────────────────────────────────────────────────────────── *
   PROBLEM SECTION — clean two-row layout
   Row 1: headline + lede LEFT, doom-loop RIGHT
   Row 2: stats LEFT, dot-grid RIGHT
 * ─────────────────────────────────────────────────────────── */
.problem-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}
.problem-row.top { margin-bottom: 64px; }
.problem-row.bottom { padding-top: 40px; border-top: 1px solid var(--border); }
@media (max-width: 900px) {
  .problem-row { grid-template-columns: 1fr; gap: 40px; }
  .problem-loop-col, .problem-grid-col { max-width: 340px; margin: 0 auto; }
}

.problem-head { max-width: 640px; }
.problem-head h2 {
  font-family: var(--font-display) !important;
  font-size: clamp(32px, 3.4vw, 48px) !important;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  padding-bottom: 0.08em;
  margin: 0 0 16px;
}
.problem-head h2 .serif { color: var(--copper); font-weight: 500; }
.problem-head .lede {
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--text-dim);
  line-height: 1.55;
  max-width: 580px;
}

.problem-loop-col { display: flex; justify-content: center; }
.problem-loop-col .doom-loop { max-width: 380px; }

.problem-stats-block { display: flex; flex-direction: column; gap: 22px; }
.problem-stats-block .ps-row { gap: 18px; }
.problem-stats-block .ps-num { font-size: clamp(40px, 4.4vw, 64px); }
.problem-stats-block .ps-cap { max-width: 32ch; }

.problem-grid-col { display: flex; justify-content: center; align-items: center; }
.problem-grid-col .ps-vis-wrap {
  max-width: 320px;
  padding: 18px;
  margin: 0;
}

/* Suppress the floating ambient bg orb where it lands behind this section */
.problem { isolation: isolate; }

/* ─────────────────────────────────────────────────────────── */
.problem-intro {
  display: grid;
  grid-template-columns: 1.15fr minmax(280px, 0.85fr);
  gap: 56px;
  align-items: center;
  margin-bottom: 24px;
}
@media (max-width: 900px) {
  .problem-intro { grid-template-columns: 1fr; gap: 32px; }
  .problem-intro-visual { order: 2; max-width: 360px; margin: 0 auto; }
}
.problem-intro-visual {
  position: relative;
  width: 100%;
}
.doom-loop {
  width: 100%;
  height: auto;
  max-width: 360px;
  margin: 0;
  display: block;
  overflow: visible;
}
.doom-loop .dl-pulse {
  filter: drop-shadow(0 0 8px rgba(255,201,160,0.85));
}
.doom-loop .dl-node {
  animation: dlNodePulse 6s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
.doom-loop .dl-node.n1 { animation-delay: 0s; }
.doom-loop .dl-node.n2 { animation-delay: -1.5s; }
.doom-loop .dl-node.n3 { animation-delay: -3s; }
.doom-loop .dl-node.n4 { animation-delay: -4.5s; }
@keyframes dlNodePulse {
  0%, 70%, 100% { opacity: 0.7; }
  10%, 25%      { opacity: 1; filter: drop-shadow(0 0 12px rgba(204,139,94,0.7)); }
}
@media (prefers-reduced-motion: reduce) {
  .doom-loop .dl-node, .doom-loop .dl-pulse { animation: none !important; }
}

/* ─────────────────────────────────────────────────────────── *
   THE PIVOT — combined problem-close + TURN with a hinge graphic
 * ─────────────────────────────────────────────────────────── */
.pivot {
  padding: 96px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg,
    rgba(204,139,94,0.025) 0%,
    transparent 50%,
    rgba(69,184,136,0.04) 100%);
}

/* ─── New manifesto-style pivot ──────────────────────────── */
.pivot-stage {
  text-align: center;
  max-width: 920px;
  margin: 48px auto 0;
}

.pivot-old {
  margin: 0 0 36px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--copper);
  line-height: 1.25;
  max-width: 24ch;
  margin-left: auto;
  margin-right: auto;
}
.strikeover {
  position: relative;
  display: inline-block;
}
.strikeover::after {
  content: '';
  position: absolute;
  left: -1%; right: -1%;
  top: 52%;
  height: 1.5px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left center;
  animation: strikeIn 1.4s ease-out 0.3s both;
}

.pivot-manifesto {
  font-family: var(--font-display) !important;
  font-size: clamp(36px, 5.4vw, 76px) !important;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 24px;
  padding-bottom: 0.08em;
  color: var(--text);
}
.pivot-manifesto .serif {
  color: var(--jade);
  font-weight: 500;
}

.pivot-sub {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--text-dim);
  line-height: 1.5;
  margin: 0 auto 48px;
  max-width: 60ch;
}

.pivot-guarantees {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  padding: 18px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-family: var(--font-body);
}
.pivot-guarantees .pg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
  padding: 4px 16px;
  white-space: nowrap;
}
.pivot-guarantees .pg-ic {
  display: inline-grid;
  place-items: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--jade);
  color: #0D1119;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.pivot-guarantees .pg-sep {
  width: 1px; height: 16px;
  background: var(--border);
}
@media (max-width: 760px) {
  .pivot-guarantees {
    flex-direction: column;
    align-items: flex-start;
    border-radius: var(--r-card);
    padding: 14px 20px;
    gap: 4px;
  }
  .pivot-guarantees .pg { padding: 6px 0; }
  .pivot-guarantees .pg-sep { width: 100%; height: 1px; }
}
.pivot-grid {
  display: grid;
  grid-template-columns: 1fr 120px 1.3fr;
  gap: 24px;
  align-items: center;
  margin-top: 40px;
}
@media (max-width: 900px){
  .pivot-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.pivot-col { padding: 28px 0; }
.pc-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 16px;
}
.pc-eyebrow.jade { color: var(--jade); }

.pivot-col.before { opacity: 0.85; }
.pivot-col.before .pc-big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -0.035em;
  line-height: 0.95;
  color: var(--text-dim);
}
.pc-strike {
  position: relative;
  display: inline-block;
  color: var(--text-dim);
}
.pc-strike::after {
  content: '';
  position: absolute;
  left: -4%; right: -4%; top: 52%;
  height: 4px;
  background: var(--copper);
  transform: rotate(-3deg);
  border-radius: 2px;
  animation: strikeIn 1s ease-out 0.4s both;
  transform-origin: left center;
}
@keyframes strikeIn {
  from { transform: scaleX(0) rotate(-3deg); }
  to   { transform: scaleX(1) rotate(-3deg); }
}
.pivot-col.before .pc-sub {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  color: var(--text-muted);
  margin-left: 12px;
  vertical-align: 0.4em;
}
.pivot-col.before p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 16px 0 0;
  max-width: 40ch;
}
.pivot-col.before p b { color: var(--copper); font-weight: 600; }

/* Simplified BEFORE — no named tools */
.before-head {
  font-family: var(--font-display) !important;
  font-size: clamp(28px, 3.4vw, 40px) !important;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--text-dim);
  margin: 0 0 4px;
}
.before-head .serif { color: var(--copper); font-weight: 500; }
.before-stat {
  margin-top: 22px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.bs-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 5vw, 56px);
  letter-spacing: -0.035em;
  line-height: 0.9;
  font-feature-settings: 'tnum';
}
.bs-strike {
  position: relative;
  color: var(--text-dim);
  display: inline-block;
}
.bs-strike::after {
  content: '';
  position: absolute;
  left: -3%; right: -3%; top: 55%;
  height: 4px;
  background: var(--copper);
  transform: rotate(-3deg) scaleX(0);
  transform-origin: left center;
  border-radius: 2px;
  animation: strikeIn 1s ease-out 0.4s both;
}
.bs-unit {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.pivot-col.after h2 {
  font-family: var(--font-display) !important;
  font-size: clamp(32px, 4vw, 52px) !important;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0 0 16px;
}
.pivot-col.after h2 .serif { color: var(--jade); font-weight: 500; }
.pivot-col.after p {
  font-size: clamp(16px, 1.2vw, 18px);
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0 0 16px;
  max-width: 44ch;
}
.pivot-col.after p b { color: var(--text); font-weight: 600; }

.pivot-checks {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pivot-checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text-dim);
}
.pivot-checks li::before {
  content: '';
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--jade);
  display: inline-block;
  background-image:
    linear-gradient(45deg, transparent 30%, #0D1119 30%, #0D1119 45%, transparent 45%),
    linear-gradient(-45deg, transparent 55%, #0D1119 55%, #0D1119 70%, transparent 70%);
  flex-shrink: 0;
}

/* The hinge SVG — vertical on desktop, horizontal-ish on mobile */
.pivot-hinge {
  display: flex;
  justify-content: center;
  align-items: stretch;
  height: 100%;
  min-height: 320px;
}
.pivot-hinge svg {
  height: 100%;
  width: auto;
}
@media (max-width: 900px){
  .pivot-hinge {
    min-height: 80px;
    margin: 4px 0;
  }
  .pivot-hinge svg {
    width: 100%;
    height: 80px;
    transform: rotate(90deg) scale(0.6);
  }
}

/* ─────────────────────────────────────────────────────────── */

/* PROBLEM-stat — compact on mobile */
@media (max-width: 700px) {
  .ps-vis-wrap { padding: 16px; }
  .ps-vis { gap: 4px; }
  .ps-vis-head { font-size: 10px; margin-bottom: 12px; }
  .ps-vis-caption { font-size: 11px; margin-top: 12px; }
  /* Halve the grid: hide the bottom 5 rows on tight viewports */
  .ps-vis .dot:nth-child(n+51) { display: none; }
  .ps-vis-caption::after { content: ' (showing 50 of 100)'; color: var(--text-faint); }
}

/* ─────────────────────────────────────────────────────────── *
   60-SECOND POST — speed beat between Pricing and Employer
 * ─────────────────────────────────────────────────────────── */
.speed {
  padding: 96px 0;
  border-top: 1px solid var(--border);
  position: relative;
}
.speed-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) { .speed-grid { grid-template-columns: 1fr; gap: 40px; } }

.speed h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.6vw, 60px) !important;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 14px 0 16px;
}
.speed h2 .serif { color: var(--copper); font-weight: 500; }
.speed .lede {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--text-dim);
  line-height: 1.55;
  max-width: 520px;
}

.speed-steps {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  border-top: 1px solid var(--border);
}
.speed-steps li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--text-dim);
  align-items: center;
  position: relative;
  transition: color .25s, background .25s;
}
.speed-steps li .t {
  font-family: var(--font-body);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.speed-steps li .s { color: var(--text); }
.speed-steps li.done .t { color: var(--jade); }
.speed-steps li.done .s { color: var(--jade); font-weight: 600; }
.speed-steps li.done::after {
  content: '';
  position: absolute; left: 0; right: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(69,184,136,0.10), transparent 50%);
  pointer-events: none;
  border-radius: var(--r-sm);
}

/* Visual: progress ring + counter + coffee */
.speed-visual {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1;
  margin: 0 auto;
}
.speed-visual svg { width: 100%; height: 100%; display: block; }
.speed-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.speed-counter {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 5.5vw, 64px);
  letter-spacing: -0.04em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
  line-height: 1;
}
.speed-counter-label {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Progress ring fill — animation triggered when .in is added */
.speed-visual.in .speed-ring {
  animation: ringFill 4s cubic-bezier(.5,.05,.3,1) forwards;
}
@keyframes ringFill {
  to { stroke-dashoffset: 0; }
}

/* Coffee cup floating in the corner of the ring */
.speed-coffee {
  position: absolute;
  bottom: -8px;
  right: -10px;
  width: 64px; height: 64px;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.4));
  animation: floatY 4s ease-in-out infinite;
}
.speed-coffee .steam { opacity: 0; animation: steam 3s ease-in-out infinite; }
.speed-coffee .steam.s1 { animation-delay: 0s; }
.speed-coffee .steam.s2 { animation-delay: -1s; }
.speed-coffee .steam.s3 { animation-delay: -2s; }
@keyframes steam {
  0%   { opacity: 0; transform: translateY(0); }
  30%  { opacity: 0.7; }
  100% { opacity: 0; transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .speed-visual.in .speed-ring { animation: none; stroke-dashoffset: 0; }
  .speed-coffee, .speed-coffee .steam { animation: none !important; }
}
.hero-image-stage {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}
.hero-img-frame {
  position: relative;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--bg-deep, var(--bg));
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    0 10px 28px rgba(0, 0, 0, 0.35),
    0 0 0 1px var(--border);
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  /* a touch of warm-up so it sits in the navy bg */
  filter: saturate(1.05) contrast(1.02);
}

/* Light layer 1 — pulsing copper glow at the clearing centre */
.hero-glow-pulse {
  position: absolute;
  left: 52%;
  top: 60%;
  width: 60%;
  height: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 178, 122, 0.55), rgba(255, 134, 80, 0.18) 40%, transparent 70%);
  mix-blend-mode: screen;
  filter: blur(20px);
  animation: heroGlowPulse 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes heroGlowPulse {
  0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 0.95; transform: translate(-50%, -50%) scale(1.08); }
}

/* Light layer 2 — slow drifting "god ray" highlight */
.hero-light-rays {
  position: absolute;
  inset: -20% 30% 30% 20%;
  background: linear-gradient(160deg, rgba(255, 200, 150, 0) 40%, rgba(255, 200, 150, 0.18) 50%, rgba(255, 200, 150, 0) 60%);
  mix-blend-mode: screen;
  filter: blur(10px);
  animation: heroLightRays 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes heroLightRays {
  0%, 100% { transform: translateY(-12px) translateX(-6px); opacity: 0.35; }
  50%      { transform: translateY(6px)  translateX(8px);   opacity: 0.7; }
}

/* Light layer 3 — drifting dust motes in the warm beam */
.hero-dust {
  position: absolute;
  left: 30%; right: 30%;
  top: 30%; bottom: 10%;
  pointer-events: none;
  mix-blend-mode: screen;
}
.hero-dust span {
  position: absolute;
  width: 4px; height: 4px;
  background: #FFE4C5;
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 6px rgba(255,228,197,0.9);
  animation: dustRise 7s linear infinite;
}
.hero-dust span:nth-child(1) { left: 10%; animation-delay: 0s;   animation-duration: 8s; }
.hero-dust span:nth-child(2) { left: 25%; animation-delay: -1.5s; animation-duration: 7s; width: 3px; height: 3px; }
.hero-dust span:nth-child(3) { left: 38%; animation-delay: -3s;  animation-duration: 9s; }
.hero-dust span:nth-child(4) { left: 52%; animation-delay: -4.5s; animation-duration: 8s; width: 5px; height: 5px; }
.hero-dust span:nth-child(5) { left: 66%; animation-delay: -2s;  animation-duration: 7.5s; width: 3px; height: 3px; }
.hero-dust span:nth-child(6) { left: 78%; animation-delay: -5s;  animation-duration: 8.5s; }
.hero-dust span:nth-child(7) { left: 20%; animation-delay: -6s;  animation-duration: 9s; width: 3px; height: 3px; }
.hero-dust span:nth-child(8) { left: 60%; animation-delay: -3.8s; animation-duration: 7s; width: 4px; height: 4px; }

@keyframes dustRise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 0.65; }
  85%  { opacity: 0.5; }
  100% { transform: translateY(-280px) translateX(var(--dx, 12px)); opacity: 0; }
}

/* Light layer 4 — subtle vignette to deepen the edges */
.hero-vignette {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 55%, rgba(13,17,25,0.45) 100%);
}

@media (max-width: 900px) {
  .hero-img-frame { aspect-ratio: 4 / 3; max-width: 100%; }
  .hero-dust { display: none; }
}

/* ── THE TURN — hinge section that closes the open loop ──── */
.turn { padding: 80px 0; }
.turn-card {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
  max-width: 880px;
}
.turn-card .section-eyebrow { margin-bottom: 24px; }
.turn-card h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.6vw, 64px) !important;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
}
.turn-card h2 .serif {
  color: var(--jade);
  font-weight: 500;
}
.turn-card p {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 60ch;
  margin: 0;
}

/* ── EU directive — dedicated section ─────────────────────── */
.eu-section { padding: 96px 0; border-top: 1px solid var(--border); }
.eu-card {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: center;
  padding-top: 32px;
}
@media (max-width: 900px) { .eu-card { grid-template-columns: 1fr; gap: 32px; } }
.eu-card h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 56px) !important;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}
.eu-card h2 .serif {
  color: var(--copper);  /* this serif refers to PAY — copper allowed */
  font-weight: 500;
}
.eu-card > div > p {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--text-dim);
}
.eu-card .eu-cal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 20px;
}
.eu-card .eu-cal-head {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.14em;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.eu-card .eu-cal-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
.eu-card .eu-cal-grid .m {
  font-family: var(--font-mono);
  font-size: 11px;
  text-align: center;
  padding: 10px 4px;
  border-radius: 6px;
  background: var(--bg-elevated);
  color: var(--text-dim);
}
.eu-card .eu-cal-grid .m.past { opacity: 0.35; }
.eu-card .eu-cal-grid .m.now {
  background: var(--copper);
  color: #1A0F08;
  font-weight: 700;
}
