/* ============================================================
   REGALIS ACQUISITION — Design System
   Palette: Ink / Stone / Bone / Metallic Gold
   Display: Zuume Rough Bold (fallback: Anton) · Body: Archivo
   Labels: JetBrains Mono
   ============================================================ */

:root {
  /* Surfaces */
  --ink:        #0C0A09;   /* page background */
  --ink-2:      #14110F;   /* raised surface */
  --stone:      #1C1917;   /* cards */
  --stone-2:    #29251f;   /* borders / hover */
  --line:       rgba(231, 229, 228, 0.10);
  --line-strong:rgba(231, 229, 228, 0.18);

  /* Text */
  --bone:       #E7E5E4;
  --bone-dim:   #A8A29E;
  --bone-faint: #57534E;

  /* Gold */
  --gold:       #D4AF37;
  --gold-deep:  #A67C00;
  --gold-light: #F4D679;
  --gold-soft:  rgba(212, 175, 55, 0.12);

  /* System */
  --maxw: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* z-scale */
  --z-nav: 50;
  --z-overlay: 40;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink);
  color: var(--bone);
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--gold); color: var(--ink); }

/* ---------- Typography ---------- */
.display {
  font-family: 'Zuume Rough', 'Anton', 'Archivo', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0.005em;
}
.mono {
  font-family: 'Archivo', ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 500;
}
.eyebrow {
  font-family: 'Archivo', ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.7rem;
  color: var(--gold);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--gold);
  display: inline-block;
}

/* Fluid display sizes */
.h-hero   { font-size: clamp(3.4rem, 14vw, 12rem); }
.h-xl     { font-size: clamp(2.6rem, 8vw, 6.5rem); }
.h-lg     { font-size: clamp(2rem, 5.5vw, 4.25rem); }
.h-md     { font-size: clamp(1.6rem, 3.5vw, 2.75rem); }

/* Gold foil sheen — the signature treatment */
.foil {
  background: linear-gradient(
    100deg,
    var(--gold-deep) 0%,
    var(--gold) 22%,
    var(--gold-light) 38%,
    #fff7df 46%,
    var(--gold-light) 54%,
    var(--gold) 72%,
    var(--gold-deep) 100%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: foil-sweep 7s linear infinite;
}
@keyframes foil-sweep {
  to { background-position: -250% 0; }
}

/* green shine (same animated sweep as .foil) */
.foil-green {
  background: linear-gradient(
    100deg,
    #069a52 0%,
    #00bf63 22%,
    #4ee08f 38%,
    #daffe8 46%,
    #4ee08f 54%,
    #00bf63 72%,
    #069a52 100%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: foil-sweep 7s linear infinite;
}

.text-gold { color: var(--gold); }
.text-dim  { color: var(--bone-dim); }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(4.5rem, 11vw, 9rem); }
.section--tight { padding-block: clamp(3rem, 7vw, 5rem); }

/* Ridgeline divider — roof ridge motif */
.ridge {
  width: 100%;
  height: 26px;
  color: var(--line-strong);
}
.ridge svg { width: 100%; height: 100%; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--gold);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.6rem;
  font-family: 'Archivo', monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
  will-change: transform;
}
.btn:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover {
  background: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px var(--gold-light),
              0 0 22px 2px rgba(212,175,55,.65),
              0 10px 26px rgba(212,175,55,.35);
}

/* mini animated trophy emerging from behind the top-right */
.btn__trophy {
  position: absolute;
  top: 0; right: 12px;
  width: 22px; height: 22px;
  color: var(--gold-light);
  opacity: 0;
  transform: translateY(8px) scale(.5) rotate(-12deg);
  z-index: -1;
  pointer-events: none;
  filter: drop-shadow(0 2px 7px rgba(212,175,55,.6));
}
.btn__trophy svg { width: 100%; height: 100%; }
.btn--gold:hover .btn__trophy { animation: trophy-pop .55s var(--ease) forwards; }
@keyframes trophy-pop {
  0%   { opacity: 0; transform: translateY(8px) scale(.5) rotate(-12deg); z-index: 2; }
  55%  { opacity: 1; transform: translateY(-25px) scale(1.15) rotate(8deg); }
  100% { opacity: 1; transform: translateY(-18px) scale(1) rotate(0); }
}
.btn--ghost {
  background: transparent;
  color: var(--bone);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-nav);
  transition: background-color .35s var(--ease), border-color .35s var(--ease),
              backdrop-filter .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(12, 10, 9, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand__mark { width: 38px; height: 38px; }
.brand__name {
  font-family: 'Zuume Rough', 'Anton', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.2rem;
  line-height: 1;
  white-space: nowrap;
}

.nav__links { display: flex; align-items: center; gap: 2.2rem; }
.nav__link {
  font-family: 'Archivo', monospace;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  color: var(--bone-dim);
  position: relative;
  padding: 4px 0;
  transition: color .25s var(--ease);
}
.nav__link::after {
  content:""; position:absolute; left:0; bottom:0; height:1px; width:0;
  background: var(--gold); transition: width .3s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--bone); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { width:100%; }

.nav__toggle { display:none; background:none; border:0; color:var(--bone); padding:8px; }

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: var(--z-overlay);
  background: var(--ink);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--gutter);
  transform: translateY(-100%);
  transition: transform .5s var(--ease);
  visibility: hidden;
}
.menu.open { transform: translateY(0); visibility: visible; }
.menu a {
  font-family: 'Zuume Rough', 'Anton', sans-serif;
  text-transform: uppercase;
  font-size: clamp(2.5rem, 12vw, 4rem);
  line-height: 1.05;
  color: var(--bone-dim);
  padding: 0.3rem 0;
  transition: color .25s var(--ease);
}
.menu a:hover { color: var(--gold); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(212,175,55,0.10), transparent 55%),
    radial-gradient(80% 60% at 10% 100%, rgba(212,175,55,0.05), transparent 60%),
    var(--ink);
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 75%);
          mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 75%);
  opacity: .5;
}

/* ---------- Stats / counters ---------- */
.stat__num {
  font-family: 'Zuume Rough', 'Anton', sans-serif;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0.01em;
}
.stat__label { color: var(--bone-dim); margin-top: .5rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--stone);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.5rem);
  transition: border-color .3s var(--ease), background-color .3s var(--ease), transform .3s var(--ease);
}
.card:hover { border-color: var(--line-strong); background: var(--ink-2); }
.card__idx {
  font-family: 'Archivo', monospace;
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
}

/* Service row (editorial) */
.srv {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: clamp(1rem, 3vw, 3rem);
  align-items: center;
  padding: clamp(1.8rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--line);
  transition: background-color .3s var(--ease), padding-left .3s var(--ease);
}
.srv:last-child { border-bottom: 1px solid var(--line); }
.srv:hover { background: linear-gradient(90deg, var(--gold-soft), transparent 40%); }
.srv__idx { font-family:'Archivo',monospace; color: var(--gold); font-size:.85rem; letter-spacing:.2em; }
.srv__plus { color: var(--bone-dim); transition: transform .3s var(--ease), color .3s var(--ease); }
.srv:hover .srv__plus { color: var(--gold); transform: rotate(90deg); }

/* GOAL / RESULT editorial block */
.gr {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.gr__cell { padding: clamp(1.8rem, 4vw, 3.5rem); }
.gr__cell + .gr__cell { border-left: 1px solid var(--line); }

/* ---------- Process steps ---------- */
.step { border-top: 1px solid var(--line); padding-block: clamp(1.5rem,3vw,2.5rem); }
.step__n {
  font-family:'Zuume Rough','Anton',sans-serif;
  font-size: clamp(2rem,4vw,3rem); color: var(--bone-faint); line-height:1;
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.footer__big {
  font-family:'Zuume Rough','Anton',sans-serif;
  text-transform: uppercase;
  font-size: clamp(3rem, 13vw, 11rem);
  line-height: .9;
  color: var(--stone-2);
  letter-spacing: .01em;
  user-select: none;
}

/* ---------- Booking embed ---------- */
.booking {
  width: 100%;
  min-height: 720px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--stone);
}

/* booking loading skeleton */
.booking-wrap { position: relative; min-height: 720px; }
.booking-skel {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--stone);
  background-image: linear-gradient(100deg, transparent 25%, rgba(255,255,255,.05) 45%, transparent 65%);
  background-size: 220% 100%;
  animation: skel-shimmer 1.5s linear infinite;
  transition: opacity .45s var(--ease), visibility .45s var(--ease);
}
.booking-wrap.loaded .booking-skel { opacity: 0; visibility: hidden; }
.booking-spinner {
  width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid var(--line-strong); border-top-color: var(--gold);
  animation: skel-spin .8s linear infinite;
}
@keyframes skel-spin { to { transform: rotate(360deg); } }
@keyframes skel-shimmer { to { background-position: -220% 0; } }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }

/* ---------- Utilities ---------- */
.grid-2 { display:grid; grid-template-columns: repeat(2,1fr); gap: clamp(1rem,2.5vw,2rem); }
.grid-3 { display:grid; grid-template-columns: repeat(3,1fr); gap: clamp(1rem,2.5vw,2rem); }
.flow > * + * { margin-top: 1.1rem; }
.measure { max-width: 60ch; }
.see-more {
  display: none; background: none; border: 0; padding: 0; margin-top: .55rem;
  font-family: 'Archivo', sans-serif; font-size: .82rem; font-weight: 600;
  color: var(--gold); cursor: pointer;
}
.see-more:hover { color: var(--gold-light); }
.m-only { display: none; }
.center { text-align: center; }
.divider { height:1px; background: var(--line); width:100%; }
.badge {
  display:inline-flex; align-items:center; gap:.5rem;
  border:1px solid var(--line-strong); border-radius:100px;
  padding:.45rem .9rem; font-family:'Archivo',monospace;
  font-size:.68rem; letter-spacing:.16em; text-transform:uppercase; color:var(--bone-dim);
}
.dot { width:8px; height:8px; border-radius:50%; background:#00bf63; animation: live-blink 1.4s ease-in-out infinite; }
@keyframes live-blink {
  0%   { box-shadow: 0 0 0 0 rgba(0,191,99,.55); }
  70%  { box-shadow: 0 0 0 7px rgba(0,191,99,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,191,99,0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__links { display:none; }
  .nav__toggle { display:inline-flex; }
  .grid-3 { grid-template-columns: 1fr; }
  .gr { grid-template-columns: 1fr; }
  .gr__cell + .gr__cell { border-left:0; border-top:1px solid var(--line); }
  .srv { grid-template-columns: 60px 1fr auto; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .grid-2 { grid-template-columns: 1fr; }
  .srv__idx { font-size: .72rem; }

  /* keep hero content clear of the fixed nav on mobile (esp. tall headings) */
  .hero { padding-top: 104px; }

  /* scale headings/text/buttons/stats to match desktop proportions */
  .h-hero { font-size: clamp(3.5rem, 19.5vw, 5rem); }      /* (1) bigger hero */
  .h-xl   { font-size: clamp(2.05rem, 10.5vw, 3rem); }
  .h-lg   { font-size: clamp(1.8rem, 8.5vw, 2.5rem); }
  .h-md   { font-size: 1.4rem; }
  .eyebrow { font-size: .62rem; letter-spacing: .16em; }
  .eyebrow::before { width: 16px; }
  .hero .measure { font-size: 1rem !important; }
  .stat__num { font-size: clamp(2.3rem, 12vw, 3.1rem); }
  .btn { padding: .8rem 1.2rem; font-size: .72rem; }
  .section { padding-block: clamp(3rem, 11vw, 4.5rem); }
  .footer__big { font-size: clamp(2.6rem, 18vw, 5rem); }

  /* (3) problem header matches "The Regalis System" (h-xl) size */
  .problem-h { font-size: clamp(2.05rem, 10.5vw, 3rem) !important; }
  /* (7) "Claim your territory" hero-sized */
  .cta-title { font-size: clamp(3.2rem, 18vw, 4.6rem) !important; }

  /* (2) trust bar stacked neatly */
  .trust-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 1.1rem !important;
  }

  /* (4) hide elements not wanted on mobile */
  .hide-mobile { display: none !important; }

  /* (5) clamp pillar text with see-more */
  .clampable {
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }
  .clampable.is-expanded { display: block; -webkit-line-clamp: unset; overflow: visible; }
  .see-more { display: inline-block; }

  /* why-regalis header matches the journey header size */
  .why-title { font-size: clamp(2.05rem, 10.5vw, 3rem) !important; }
  /* about hero: nearly home-hero size, slightly smaller */
  .about-hero-title { font-size: clamp(3rem, 16.5vw, 4.4rem) !important; }
  /* mobile/desktop hint text swap */
  .d-only { display: none; }
  .m-only { display: inline; }
  /* footer: more space above the big REGALIS word */
  .footer__big { margin-top: 1.6rem; }

  /* (6) journey end cap starts neutral, turns green only when reached */
  .jmap__cap--end {
    background: var(--ink) !important; color: var(--bone-dim) !important;
    border-color: var(--line-strong) !important; font-weight: 500 !important;
  }
  .jmap.is-won .jmap__cap--end {
    background: #00bf63 !important; color: var(--ink) !important; border-color: #00bf63 !important;
    box-shadow: 0 0 16px rgba(0,191,99,.5);
  }
}

/* ---------- "The Problem" headline ---------- */
.problem-head { position: relative; }
.problem-h { color: #ffffff; }
.problem-h .ph-line { display: block; }

/* thick red bar layered behind the middle of "shitty leads" */
.u-red { position: relative; display: inline-block; }
.u-red::before {
  content: "";
  position: absolute;
  left: -0.04em; right: -0.04em;
  top: 50%;
  height: 0.62em;          /* ~3/4 of letter height */
  transform: translateY(-50%);
  background: #e23b2e;
  z-index: -1;             /* sits behind the text */
}

/* "profitable" in brand green */
.text-green { color: #00bf63; }

/* ---------- Journey / process map ---------- */
.jmap { position: relative; margin-top: clamp(3rem, 7vw, 5rem); }

/* center rail + scroll-fill */
.jmap__rail {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 3px; transform: translateX(-50%);
  background: var(--line-strong); border-radius: 3px; overflow: hidden;
}
.jmap__fill {
  position: absolute; left: 0; top: 0; width: 100%; height: 0;
  background: linear-gradient(180deg, var(--gold), var(--gold-light));
  box-shadow: 0 0 14px rgba(212,175,55,.5);
}

/* start / end caps */
.jmap__cap {
  display: block; width: max-content; margin: 0 auto;
  position: relative; z-index: 2;
  font-family: 'Archivo', monospace; text-transform: uppercase;
  letter-spacing: .2em; font-size: .7rem; padding: .55rem 1rem;
  border: 1px solid var(--line-strong); border-radius: 100px;
  background: var(--ink); color: var(--bone-dim);
}
.jmap__cap--end { background: var(--ink); color: var(--bone-dim); border-color: var(--line-strong); font-weight: 500; }
.jmap.is-won .jmap__cap--end {
  background: #00bf63; color: var(--ink); border-color: #00bf63;
  box-shadow: 0 0 16px rgba(0,191,99,.5);
}

.jmap__steps { list-style: none; padding: 0; margin: 1.5rem 0; position: relative; }

.jstep {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 72px 1fr;
  align-items: center;
  margin-block: clamp(1.25rem, 3.5vw, 2.25rem);
}

/* the node on the rail */
.jstep__node {
  grid-column: 2; justify-self: center; z-index: 2;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink-2); border: 2px solid var(--line-strong);
  color: var(--bone-dim);
  font-family: 'Archivo', monospace; font-size: .82rem; letter-spacing: .04em;
  transition: transform .4s var(--ease), border-color .4s var(--ease),
              color .4s var(--ease), box-shadow .4s var(--ease), background-color .4s var(--ease);
}
.jstep__node:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }

/* card */
.jstep__card {
  grid-column: 1; text-align: right; padding-right: clamp(1rem, 2vw, 2rem);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.jstep:nth-child(even) .jstep__card { grid-column: 3; text-align: left; padding-right: 0; padding-left: clamp(1rem, 2vw, 2rem); }

.jstep__ic {
  display: inline-flex; width: 44px; height: 44px; margin-bottom: .8rem;
  align-items: center; justify-content: center; border-radius: 10px;
  background: var(--stone); border: 1px solid var(--line);
  color: var(--bone-dim); transition: color .4s var(--ease), border-color .4s var(--ease), background-color .4s var(--ease);
}
.jstep:nth-child(even) .jstep__ic { } /* icon stays left-aligned naturally */
.jstep__ic svg { width: 22px; height: 22px; }
.jstep__card h3 { line-height: 1; }
.jstep__card p { margin-top: .5rem; max-width: 38ch; margin-left: auto; }
.jstep:nth-child(even) .jstep__card p { margin-left: 0; }

/* active (scrolled-through) + hover states */
.jstep.is-active .jstep__node {
  border-color: var(--gold); color: var(--gold);
  box-shadow: 0 0 0 7px var(--gold-soft); transform: scale(1.08);
}
.jstep.is-active .jstep__ic { color: var(--gold); border-color: rgba(212,175,55,.4); background: var(--gold-soft); }
.jstep__node:hover { transform: scale(1.12); border-color: var(--gold); color: var(--gold); cursor: pointer; }
.jstep.is-sel .jstep__node { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.jstep.is-sel .jstep__card { transform: translateY(-2px); }

/* the winning step */
.jstep--win.is-active .jstep__node { box-shadow: 0 0 0 7px rgba(0,191,99,.18); border-color: #00bf63; color: #00bf63; }
.jstep--win.is-active .jstep__ic { color: #00bf63; border-color: rgba(0,191,99,.4); background: rgba(0,191,99,.12); }

@media (max-width: 760px) {
  .jmap__rail { left: 27px; }
  .jmap__cap { margin: 0; }
  .jstep { grid-template-columns: 56px 1fr; column-gap: 1rem; }
  .jstep__node { grid-column: 1; justify-self: center; width: 48px; height: 48px; }
  .jstep__card,
  .jstep:nth-child(even) .jstep__card {
    grid-column: 2; text-align: left; padding: 0;
  }
  .jstep__card p,
  .jstep:nth-child(even) .jstep__card p { margin-left: 0; }
}

/* ---------- Why Regalis: roofing poker cards ---------- */
.deck {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(.75rem, 1.5vw, 1.4rem);
  perspective: 1600px;
}
.pcard {
  aspect-ratio: 5 / 7;
  cursor: pointer;
  animation: pcard-float 5.5s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * .45s);
  outline: none;
}
@keyframes pcard-float {
  0%, 100% { transform: translateY(0) rotate(-.4deg); }
  50%      { transform: translateY(-12px) rotate(.4deg); }
}
.pcard__inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .8s cubic-bezier(0.22, 1, 0.36, 1);
}
.pcard:hover .pcard__inner,
.pcard:focus-visible .pcard__inner { transform: rotateY(180deg); }

.pcard__face {
  position: absolute; inset: 0;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  border-radius: 14px;
  display: flex; flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(212,175,55,.55);
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.03), 0 18px 40px rgba(0,0,0,.5);
}
/* FRONT */
.pcard__front {
  align-items: center; justify-content: center;
  background:
    radial-gradient(60% 45% at 50% 40%, rgba(212,175,55,.16), transparent 70%),
    linear-gradient(160deg, var(--stone), var(--ink-2) 70%);
  color: var(--gold);
}
.pcard__front::before {           /* inner gold frame */
  content: ""; position: absolute; inset: 9px;
  border: 1px solid rgba(212,175,55,.35); border-radius: 8px;
  pointer-events: none;
}
.pcard__sym { width: 42%; color: var(--gold); filter: drop-shadow(0 2px 10px rgba(212,175,55,.35)); }
.pcard__sym svg { width: 100%; height: 100%; }
.pcard__pip { position: absolute; width: 26px; height: 26px; color: var(--gold-light); opacity: .9; }
.pcard__pip svg { width: 100%; height: 100%; }
.pcard__pip--tl { top: 12px; left: 12px; }
.pcard__pip--br { bottom: 12px; right: 12px; transform: rotate(180deg); }
/* BACK */
.pcard__back {
  transform: rotateY(180deg);
  justify-content: center; gap: .5rem;
  padding: clamp(.7rem, 1.3vw, 1.2rem);
  text-align: center;
  background:
    radial-gradient(70% 50% at 50% 0%, rgba(212,175,55,.12), transparent 70%),
    linear-gradient(160deg, var(--ink-2), var(--stone));
}
.pcard__back h3 {
  color: #fff; line-height: 1;
  font-size: clamp(1rem, .6rem + 1vw, 1.4rem);
  letter-spacing: .01em;
  overflow-wrap: break-word; word-break: break-word; hyphens: auto;
}
.pcard__back p {
  font-size: clamp(.72rem, .5rem + .55vw, .9rem);
  line-height: 1.45;
}
.pcard__back::after {            /* gold top accent */
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 46px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

@media (max-width: 1000px) { .deck { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px)  { .deck { grid-template-columns: repeat(2, 1fr); } }

/* ---------- "The Problem" interactive roof ---------- */
.proof {
  position: relative;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
  min-height: clamp(440px, 46vw, 580px);
}

/* animated hint arrow: subtext -> roof */
.hint-arrow {
  position: absolute;
  top: -2.4rem; left: 33%;
  width: 36%; height: 175px;
  color: var(--gold);
  overflow: visible;
  pointer-events: none;
  z-index: 4;
}
.hint-arrow path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.hint-arrow .ha-line { stroke-dasharray: 360; stroke-dashoffset: 360; }
.hint-arrow .ha-head { stroke-dasharray: 70; stroke-dashoffset: 70; }
.proof.in .hint-arrow .ha-line { animation: ha-draw 1s var(--ease) .35s forwards; }
.proof.in .hint-arrow .ha-head { animation: ha-draw .3s var(--ease) 1.2s forwards; }
@keyframes ha-draw { to { stroke-dashoffset: 0; } }
@media (max-width: 860px) { .hint-arrow { display: none; } }

/* left: cards stage */
.proof__cards { position: relative; }
.proof__hint {
  position: absolute; top: 50%; left: 0; transform: translateY(-50%);
  transition: opacity .4s var(--ease);
}
.proof.is-active .proof__hint { opacity: 0; }

.prcard {
  position: absolute; left: 0; right: 0; top: 50%;
  max-width: 440px;
  background: var(--stone);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.4vw, 2.2rem);
  opacity: 0; pointer-events: none;
  transform: translate(58%, -50%) scale(.5) rotate(8deg) skewX(-10deg);
  transform-origin: right center;
  transition: opacity .5s var(--ease), transform .55s cubic-bezier(0.22,1,0.36,1);
  box-shadow: 0 24px 50px rgba(0,0,0,.55);
}
.prcard.is-on { opacity: 1; pointer-events: auto; transform: translate(0, -50%) scale(1) rotate(0) skewX(0); }
.prcard__tag { display: block; margin-bottom: .8rem; }
.prcard h3 { color: #fff; line-height: 1.02; }
.prcard p { margin-top: .7rem; }

/* right: roof sketch */
.proof__roof { position: relative; min-height: 360px; }
.roof-sketch { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(231,229,228,.32); }
.roof-tag { position: absolute; bottom: 4px; right: 6px; font-size: .62rem; opacity: .7; }

/* hoverable roof facets (top-view) */
.facet {
  fill: rgba(231,229,228,.06);
  stroke: rgba(231,229,228,.32);
  stroke-width: 1.3;
  stroke-linejoin: round;
  cursor: pointer;
  transition: fill .35s var(--ease), filter .35s var(--ease), stroke .35s var(--ease);
}
.facet:hover, .facet.is-active {
  fill: rgba(212,175,55,.38);
  stroke: var(--gold-light);
  filter: drop-shadow(0 0 9px rgba(212,175,55,.55));
}
.facet:focus-visible { outline: none; fill: rgba(212,175,55,.38); stroke: var(--gold-light); }

@media (max-width: 860px) {
  .proof { grid-template-columns: 1fr; min-height: 0; }
  .proof__roof { display: none; }
  .proof__cards { position: static; display: flex; flex-direction: column; gap: 1rem; }
  .proof__hint { display: none; }
  .prcard {
    position: static; opacity: 1; pointer-events: auto; max-width: none;
    transform: none; box-shadow: none;
  }
}

/* ---------- Video embed ---------- */
.video-wrap {
  width: 100%;
  max-width: 1500px;
  margin: clamp(2rem, 4vw, 3.5rem) auto 0;
  padding-inline: var(--gutter);
}
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--stone);
}
.video-embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; z-index: 1;
}
.video-embed iframe[src=""] { display: none; }
.video-embed__ph {
  position: absolute; inset: 0; z-index: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1rem;
  background: radial-gradient(60% 60% at 50% 45%, rgba(212,175,55,.08), transparent 70%), var(--stone);
}
.video-embed__play {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); color: var(--gold);
  background: var(--ink-2);
}
.video-embed__play svg { width: 26px; height: 26px; margin-left: 3px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity:1; transform:none; }
  /* keep subtle, non-disorienting brand animations running */
  .foil, .foil-green { animation: foil-sweep 7s linear infinite !important; }
  .dot { animation: live-blink 1.4s ease-in-out infinite !important; }
}
