/* ============================================================
   J PARK & ASSOCIATES — scroll-cinematic site
   Palette + type from Branding/design-reference.md
   ============================================================ */
:root {
  --navy-900: #1B2A4A;
  --navy-950: #111c33;
  --navy-700: #2E4A7A;
  --gold-500: #C9A84C;
  --gold-300: #e0c87e;
  --cream-50: #F5F0E8;
  --slate-600: #3A4660;
  --grey-500: #5C6577;
  --white: #FFFFFF;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", "Liberation Sans", Arial, sans-serif;
  --radius: 14px;
  --shadow-soft: 0 10px 40px rgba(27, 42, 74, 0.10);
  --shadow-lift: 0 18px 60px rgba(27, 42, 74, 0.16);
}

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

html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

body {
  background: var(--cream-50);
  color: var(--slate-600);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: var(--gold-500); color: var(--navy-900); }

h1, h2, h3 { color: var(--navy-900); font-family: var(--serif); line-height: 1.15; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Fixed nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(20px, 4vw, 44px);
  transition: background 0.45s ease, box-shadow 0.45s ease, padding 0.45s ease;
}
.nav .logo { display: block; height: 52px; }
.nav .logo img { height: 100%; width: auto; display: block; }
.nav .logo .logo-dark { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 30px);
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.85);
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--gold-300); }

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 999px;
  padding: 13px 26px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: var(--gold-500);
  color: var(--navy-900);
  box-shadow: 0 6px 24px rgba(201, 168, 76, 0.35);
}
.btn-gold:hover { background: var(--gold-300); }
.btn-ghost-light {
  color: var(--cream-50);
  border-color: rgba(245, 240, 232, 0.5);
}
.btn-ghost-light:hover { border-color: var(--gold-300); color: var(--gold-300); }
.btn-ghost-dark {
  color: var(--navy-900);
  border-color: rgba(27, 42, 74, 0.35);
}
.btn-ghost-dark:hover { border-color: var(--gold-500); }
.nav .btn { padding: 10px 22px; font-size: 0.85rem; white-space: nowrap; }
.nav-cta .label-short { display: none; }

/* Nav over light sections */
.nav.on-light {
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(27, 42, 74, 0.08);
  padding-top: 10px;
  padding-bottom: 10px;
}
.nav.on-light .logo .logo-light { display: none; }
.nav.on-light .logo .logo-dark { display: block; }
.nav.on-light .nav-links a { color: var(--navy-900); }
.nav.on-light .nav-links a:hover { color: var(--navy-700); }

/* ---------- Cinematic scrub sections ---------- */
.cinematic { position: relative; }
.cinematic .sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  width: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--navy-950);
  /* Isolate per-frame style/layout invalidation to the stage */
  contain: layout paint;
}
.cinematic canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* Own compositing layer: the color grade (CSS filter, set from the
     scrub config in JS) and frame blits stay off the page raster */
  will-change: transform;
}
.cinematic .vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 48%, rgba(10, 16, 30, 0.62) 100%),
    linear-gradient(180deg, rgba(10, 16, 30, 0.5) 0%, transparent 24%, transparent 72%, rgba(10, 16, 30, 0.65) 100%);
}

#hero { height: 312vh; }
#order { height: 264vh; }

.overlay { position: relative; z-index: 10; width: 100%; text-align: center; padding: 0 24px; }
.reveal-line {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 1100px);
  opacity: 0;
  will-change: opacity, transform;
}
/* Scrim: keeps overlay copy legible over bright frames (gold ring, white paper).
   A child of the line, so it fades in/out with the text. */
.reveal-line::before {
  content: "";
  position: absolute;
  inset: -22% -28%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    55% 60% at 50% 50%,
    rgba(11, 17, 32, 0.88) 0%,
    rgba(11, 17, 32, 0.62) 45%,
    rgba(11, 17, 32, 0) 78%
  );
}
.reveal-line h1, .reveal-line h2 {
  color: var(--cream-50);
  font-size: clamp(2.4rem, 6.5vw, 5.4rem);
  font-weight: 700;
  text-shadow:
    0 2px 10px rgba(10, 16, 30, 0.9),
    0 4px 50px rgba(10, 16, 30, 0.85);
}
.reveal-line .kicker {
  display: block;
  font-family: var(--sans);
  font-size: clamp(0.72rem, 1.2vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 18px;
  text-shadow: 0 1px 6px rgba(10, 16, 30, 0.95), 0 2px 18px rgba(10, 16, 30, 0.9);
}
.reveal-line .sub {
  font-family: var(--sans);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  color: #f7f3ec;
  max-width: 620px;
  margin: 20px auto 0;
  text-shadow: 0 1px 6px rgba(10, 16, 30, 0.95), 0 3px 22px rgba(10, 16, 30, 0.9);
}
.reveal-line .gold-i { color: var(--gold-300); font-style: italic; }

.hero-final .emblem { width: clamp(74px, 9vw, 108px); height: auto; margin: 0 auto 22px; display: block; }
.hero-final h2 { font-size: clamp(2.2rem, 5.4vw, 4.4rem); }
.hero-final .cta-row { margin-top: 34px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.scroll-hint {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.65);
  animation: bob 2s ease-in-out infinite;
  transition: opacity 0.4s;
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(7px); }
}

.gold-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  z-index: 12;
  background: rgba(245, 240, 232, 0.1);
}
.gold-progress span {
  display: block;
  height: 100%;
  width: 100%;
  /* Scrubbed via transform (compositor-only) — animating width here
     invalidated layout on every scroll frame */
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
  background: var(--gold-500);
  box-shadow: 0 0 14px rgba(201, 168, 76, 0.8);
}

/* ---------- Shared section layout ---------- */
.section { padding: clamp(80px, 11vw, 150px) clamp(20px, 5vw, 48px); }
.container { max-width: 1180px; margin: 0 auto; }
.container-narrow { max-width: 880px; margin: 0 auto; }

.eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 34px;
  height: 2px;
  background: var(--gold-500);
  vertical-align: middle;
  margin-right: 14px;
}
.section-title {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 700;
  max-width: 760px;
  margin-bottom: 18px;
}
.section-lede { max-width: 640px; font-size: 1.1rem; color: var(--grey-500); }

.dark-zone { background: var(--navy-900); }
.dark-zone .section-title, .dark-zone h3 { color: var(--cream-50); }
.dark-zone .eyebrow { color: rgba(245, 240, 232, 0.6); }
.dark-zone .section-lede, .dark-zone p { color: rgba(245, 240, 232, 0.78); }

/* Scroll reveals */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }

/* ---------- Pain-point navigator ---------- */
.pain-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 48px 0 0;
}
.pain-card {
  text-align: left;
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--navy-900);
  background: var(--white);
  border: 1.5px solid rgba(27, 42, 74, 0.1);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
  cursor: pointer;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.pain-card .q { color: var(--gold-500); font-size: 2rem; display: block; line-height: 1; margin-bottom: 14px; font-style: italic; }
.pain-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.pain-card[aria-selected="true"] {
  border-color: var(--gold-500);
  box-shadow: var(--shadow-lift);
  transform: translateY(-4px);
}
.pain-card[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 26px; right: 26px; bottom: 16px;
  height: 3px;
  background: var(--gold-500);
  border-radius: 2px;
}

.pain-panel {
  margin-top: 26px;
  background: var(--navy-900);
  color: var(--cream-50);
  border-radius: var(--radius);
  padding: clamp(30px, 4vw, 52px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  box-shadow: var(--shadow-lift);
}
.pain-panel[hidden] { display: none; }
.pain-panel h3 { color: var(--gold-300); font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 14px; }
.pain-panel p { color: rgba(245, 240, 232, 0.85); }
.pain-panel ul { list-style: none; display: grid; gap: 12px; }
.pain-panel li {
  padding-left: 26px;
  position: relative;
  color: rgba(245, 240, 232, 0.85);
  font-size: 0.98rem;
}
.pain-panel li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.52em;
  width: 14px; height: 2px;
  background: var(--gold-500);
}
.panel-fade { animation: panelIn 0.45s ease; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Before / After ---------- */
.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 48px;
}
.ba-col {
  border-radius: var(--radius);
  padding: clamp(28px, 3.5vw, 44px);
}
.ba-col.before { background: var(--white); border: 1.5px solid rgba(27, 42, 74, 0.1); }
.ba-col.after { background: var(--navy-900); }
.ba-col h3 {
  font-size: 1.35rem;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(27, 42, 74, 0.1);
}
.ba-col.after h3 { color: var(--gold-300); border-bottom-color: rgba(201, 168, 76, 0.4); }
.ba-col ul { list-style: none; display: grid; gap: 18px; }
.ba-col li { padding-left: 30px; position: relative; }
.ba-col.before li { color: var(--grey-500); }
.ba-col.after li { color: rgba(245, 240, 232, 0.88); }
.ba-col li::before {
  position: absolute;
  left: 0; top: 0;
  font-family: var(--serif);
  font-weight: 700;
}
.ba-col.before li::before { content: "\2715"; color: rgba(92, 101, 119, 0.55); font-size: 0.85rem; top: 0.2em; }
.ba-col.after li::before { content: "\2713"; color: var(--gold-500); }

/* ---------- Industries ---------- */
.industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.industry-card {
  background: var(--white);
  border: 1.5px solid rgba(27, 42, 74, 0.1);
  border-radius: var(--radius);
  padding: clamp(26px, 2.6vw, 36px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.industry-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: var(--gold-500); }
.industry-card .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--gold-500);
  display: block;
  margin-bottom: 14px;
}
.industry-card h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); margin-bottom: 12px; }
.industry-card p { color: var(--grey-500); margin-bottom: 18px; font-size: 0.96rem; }
.industry-card .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.industry-card .tags span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--navy-700);
  background: rgba(46, 74, 122, 0.08);
  border-radius: 999px;
  padding: 6px 14px;
}

/* ---------- Proof (dark) ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.case-card {
  background: rgba(245, 240, 232, 0.045);
  border: 1px solid rgba(245, 240, 232, 0.12);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: grid;
  gap: 18px;
  align-content: start;
}
.case-card .who {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--cream-50);
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.35);
}
.case-card dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 6px;
}
.case-card dd { font-size: 0.95rem; color: rgba(245, 240, 232, 0.78); }
.proof-note {
  margin-top: 30px;
  font-size: 0.85rem;
  color: rgba(245, 240, 232, 0.66);
  font-style: italic;
}

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; counter-reset: step; }
.step {
  background: var(--white);
  border: 1.5px solid rgba(27, 42, 74, 0.1);
  border-radius: var(--radius);
  padding: 34px 28px;
  position: relative;
}
.step .n {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.6rem;
  color: var(--gold-500);
  line-height: 1;
  display: block;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.25rem; margin-bottom: 10px; }
.step p { color: var(--grey-500); font-size: 0.98rem; }

/* ---------- Stress test ---------- */
.stress { background: var(--white); }
.stress-box {
  margin-top: 44px;
  background: var(--cream-50);
  border: 1.5px solid rgba(27, 42, 74, 0.1);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 50px);
}
.stress-q { display: grid; gap: 14px; padding: 20px 0; border-bottom: 1px solid rgba(27, 42, 74, 0.08); }
.stress-q:first-child { padding-top: 0; }
.stress-q p { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--navy-900); }
.stress-q .opts { display: flex; gap: 10px; }
.stress-q .opts button {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 44px;
  padding: 10px 30px;
  border-radius: 999px;
  border: 1.5px solid rgba(27, 42, 74, 0.25);
  background: var(--white);
  color: var(--navy-900);
  cursor: pointer;
  transition: all 0.25s ease;
}
.stress-q .opts button:hover { border-color: var(--navy-700); }
.stress-q .opts button[aria-pressed="true"] {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--cream-50);
}
.stress-result {
  margin-top: 28px;
  border-radius: var(--radius);
  background: var(--navy-900);
  padding: clamp(26px, 3.5vw, 40px);
}
.stress-result[hidden] { display: none; }
.stress-result h3 { color: var(--gold-300); font-size: 1.5rem; margin-bottom: 10px; }
.stress-result p { color: rgba(245, 240, 232, 0.85); max-width: 640px; }
.stress-meter {
  height: 8px;
  border-radius: 99px;
  background: rgba(245, 240, 232, 0.15);
  margin: 22px 0;
  overflow: hidden;
}
.stress-meter span { display: block; height: 100%; width: 0; background: var(--gold-500); border-radius: 99px; transition: width 0.9s cubic-bezier(0.2, 0.6, 0.2, 1); }
.stress-email { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.stress-email input {
  flex: 1 1 240px;
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(245, 240, 232, 0.3);
  background: rgba(245, 240, 232, 0.08);
  color: var(--cream-50);
}
.stress-email input::placeholder { color: rgba(245, 240, 232, 0.5); }
.stress-email .note { flex-basis: 100%; font-size: 0.8rem; color: rgba(245, 240, 232, 0.66); }
.form-msg { flex-basis: 100%; font-size: 0.9rem; }
.form-msg.ok { color: var(--gold-300); }
.form-msg.err { color: #e8a0a0; }

/* ---------- Trust strip ---------- */
.trust { background: var(--cream-50); border-top: 1px solid rgba(27, 42, 74, 0.08); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.trust-item .stat-num {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 700;
  color: var(--navy-900);
  display: block;
}
.trust-item .stat-word {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  font-style: italic;
  color: var(--navy-900);
  display: block;
  padding: 0.35em 0;
}
.trust-item .lbl {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin-top: 8px;
  display: block;
}

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; }
.final-cta .section-title { margin-left: auto; margin-right: auto; }
.final-cta .cta-row { margin-top: 36px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.final-cta .quiet { margin-top: 22px; font-size: 0.92rem; color: rgba(245, 240, 232, 0.6); }
.final-cta .quiet a { color: var(--gold-300); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: rgba(245, 240, 232, 0.75); padding: 70px clamp(20px, 5vw, 48px) 40px; }
.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(245, 240, 232, 0.12);
}
.footer .f-logo { height: 52px; width: auto; margin-bottom: 18px; }
.footer h4 {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 16px;
}
.footer p, .footer li { font-size: 0.95rem; line-height: 1.8; }
.footer ul { list-style: none; }
.footer a { color: rgba(245, 240, 232, 0.75); text-decoration: none; transition: color 0.25s; }
.footer ul a { display: inline-block; padding: 3px 0; }
.footer a:hover { color: var(--gold-300); }
.footer .legal {
  max-width: 1180px;
  margin: 28px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: rgba(245, 240, 232, 0.6);
}
.placeholder-chip {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(245, 240, 232, 0.45);
  border: 1px dashed rgba(245, 240, 232, 0.3);
  border-radius: 6px;
  padding: 1px 8px;
}

/* ---------- Contact form ---------- */
.contact-divider {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 56px auto 40px;
  max-width: 640px;
  color: rgba(245, 240, 232, 0.38);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.contact-divider::before,
.contact-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(245, 240, 232, 0.14);
}
.contact-form {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}
.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.cf-group {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}
.cf-group label {
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.65);
}
.cf-group .opt {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.65;
}
.cf-group input,
.cf-group textarea {
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 13px 18px;
  border-radius: 10px;
  border: 1.5px solid rgba(245, 240, 232, 0.18);
  background: rgba(245, 240, 232, 0.07);
  color: var(--cream-50);
  transition: border-color 0.25s, background 0.25s;
  width: 100%;
}
.cf-group input::placeholder,
.cf-group textarea::placeholder { color: rgba(245, 240, 232, 0.32); }
.cf-group input:focus,
.cf-group textarea:focus { outline: none; border-color: var(--gold-500); background: rgba(245, 240, 232, 0.1); }
.cf-group textarea { resize: vertical; min-height: 110px; }
.cf-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.cf-msg { font-size: 0.88rem; color: rgba(245, 240, 232, 0.72); }
.cf-msg.ok { color: var(--gold-300); }
.cf-msg.err { color: #e8a0a0; }
.cf-note {
  margin-top: 14px;
  font-size: 0.82rem;
  color: rgba(245, 240, 232, 0.62);
}
.cf-note strong { color: rgba(245, 240, 232, 0.85); font-weight: 600; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; box-shadow: none; }

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

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint { animation: none; }
  .panel-fade { animation: none; }
  .stress-meter span { transition: none; }
  .btn:hover { transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .pain-cards, .case-grid, .steps { grid-template-columns: 1fr; }
  .pain-panel, .ba-grid { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 38px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 1060px) {
  .nav-links { display: none; }
}
@media (max-width: 760px) {
  .nav .logo { height: 46px; }
  .industry-grid { grid-template-columns: 1fr; }
  #hero { height: 420vh; }
  #order { height: 360vh; }

  /* Pain-point navigator: horizontal chip strip */
  .pain-cards {
    display: flex;
    flex-direction: row;
    gap: 0;
    margin: 20px 0 0;
    background: var(--white);
    border: 1.5px solid rgba(27, 42, 74, 0.1);
    border-radius: var(--radius);
    overflow: hidden;
  }
  .pain-card {
    flex: 1;
    padding: 12px 4px;
    border-radius: 0;
    border: none;
    border-right: 1px solid rgba(27, 42, 74, 0.1);
    font-size: 0;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: none !important;
    box-shadow: none !important;
  }
  .pain-card:last-child { border-right: none; }
  .pain-card .q { display: none; }
  .pain-card::before {
    content: attr(data-short);
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--navy-900);
    text-align: center;
    line-height: 1.3;
    padding: 0 4px;
  }
  .pain-card[aria-selected="true"] { background: var(--navy-900); }
  .pain-card[aria-selected="true"]::before { color: var(--gold-300); }
  .pain-card[aria-selected="true"]::after { display: none; }
  .pain-panel { margin-top: 10px; }

  /* Before/After: restore side-by-side comparison */
  .ba-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 28px;
  }
  .ba-col { padding: 14px 12px; }
  .ba-col h3 { font-size: 0.95rem; margin-bottom: 12px; padding-bottom: 10px; }
  .ba-col ul { gap: 10px; }
  .ba-col li { font-size: 0.8rem; padding-left: 20px; }

}
@media (max-width: 580px) {
  .nav { padding-left: 16px; padding-right: 16px; }
  .nav-cta .label-full { display: none; }
  .nav-cta .label-short { display: inline; }
}
@media (max-width: 360px) {
  .nav .logo { height: 36px; }
  .nav .btn { padding: 10px 16px; font-size: 0.8rem; }
}
