

/* ═══════════════════════════════════════
   RESET
═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ═══════════════════════════════════════
   TOKENS
═══════════════════════════════════════ */
:root {
  --bg:      #F5F0E6;
  --bg-alt:  #EDE8DE;
  --bg-card: #FDFAF5;
  --ink:     #0C0C0C;
  --ink-2:   #5A5550;
  --ink-3:   #6A6560;
  --red:     #C0282E;
  --red-dk:  #961E23;
  --red-lt:  #D84B51;
  --rule:    #D0C9BC;
  --rule-2:  #A09890;
  --rule-soft: #E8E3DB;
  --live:    #4A9B6E;

  --xl:  clamp(3.5rem, 8vw, 6.5rem);
  --lg:  clamp(2.5rem, 5vw, 4rem);
  --md:  clamp(1.8rem, 3.5vw, 2.8rem);
  --gap: clamp(5rem, 10vw, 9rem);
  --w:   1200px;
}

/* ═══════════════════════════════════════
   BASE — Space Grotesk replaces Inter
═══════════════════════════════════════ */
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--ink); color: var(--bg);
  padding: 0.5rem 1rem; font-size: 0.8rem;
  font-family: 'Space Grotesk', sans-serif;
  z-index: 9999; text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* Paper grain — adds depth, removes digital flatness */
.grain {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 900;
  opacity: 0.03;
}

/* Scroll progress — thin crimson line, fills as you read */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: var(--red);
  z-index: 950;
  transition: width 0.1s linear;
}

/* Selection + scrollbar — small details that read as deliberate */
::selection { background: var(--red); color: var(--bg); }
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--rule-2); border: 2px solid var(--bg); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }
html { scrollbar-width: thin; scrollbar-color: var(--rule-2) var(--bg); }

/* ═══════════════════════════════════════
   TYPE HELPERS
═══════════════════════════════════════ */
em.r {
  font-style: italic;
  color: var(--red);
  font-weight: 400;
  font-family: 'Cormorant Garamond', serif;
}
.sec-h {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.lbl {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 0.67rem;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  margin-bottom: 1.75rem;
}

/* ═══════════════════════════════════════
   LAYOUT
═══════════════════════════════════════ */
.wrap {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}
.sec     { padding: var(--gap) 0; }
.sec-alt { background: var(--bg-alt); }

/* ═══════════════════════════════════════
   REVEALS
═══════════════════════════════════════ */
.ry { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.ry.on { opacity: 1; transform: translateY(0); }
.rx { opacity: 0; transform: translateX(-18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.rx.on { opacity: 1; transform: translateX(0); }

/* ═══════════════════════════════════════
   BUTTONS — unified language, arrow-slide on hover
═══════════════════════════════════════ */
.arrow { display: inline-block; transition: transform 0.25s cubic-bezier(0.4,0,0.2,1); }
.arrow.down { display: inline-block; transition: transform 0.25s cubic-bezier(0.4,0,0.2,1); }

.btn-dk {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--ink); color: var(--bg);
  border: 1px solid var(--ink);
  padding: 15px 32px; text-decoration: none;
  transition: background 0.22s, border-color 0.22s, transform 0.15s;
  white-space: nowrap;
}
.btn-dk:hover { background: var(--red); border-color: var(--red); }
.btn-dk:hover .arrow { transform: translateX(4px); }
.btn-dk:active { transform: scale(0.98); }

.btn-lt {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: transparent; color: var(--ink);
  border: 1px solid var(--rule-2);
  padding: 15px 32px; text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn-lt:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-lt:hover .arrow.down { transform: translateY(3px); }
.btn-lt:active { transform: scale(0.98); }

.link-r {
  display: inline-flex; align-items: center; gap: 0.45em;
  color: var(--red); font-size: 0.9rem; text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.link-r:hover { border-bottom-color: var(--red); }
.link-r:hover .arrow { transform: translateX(4px); }

/* ═══════════════════════════════════════
   NAV
═══════════════════════════════════════ */
nav {
  position: fixed; inset: 0 0 auto 0;
  height: 64px;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  z-index: 800;
  transition: border-color 0.3s, background 0.3s, backdrop-filter 0.3s;
}
nav.stuck {
  border-bottom-color: var(--rule);
  background: rgba(245, 240, 230, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav-logo {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: 'DM Mono', monospace;
  font-weight: 500; font-size: 0.8rem; letter-spacing: 0.25em;
  color: var(--ink); text-decoration: none; flex-shrink: 0;
}
.nav-links {
  display: flex; align-items: center; gap: 2.25rem;
  list-style: none;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.nav-links a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem; letter-spacing: 0.02em;
  color: var(--ink-2); text-decoration: none; transition: color 0.18s;
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
/* Scroll-spy active state — small crimson dot beneath the current section's link */
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: '';
  position: absolute; left: 50%; bottom: -10px;
  transform: translateX(-50%);
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--red);
}
.nav-r { display: flex; align-items: center; gap: 1rem; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.04em;
  color: var(--ink); border: 1px solid var(--ink);
  padding: 8px 18px; background: transparent; text-decoration: none;
  transition: background 0.2s, color 0.2s; white-space: nowrap;
}
.nav-cta:hover { background: var(--ink); color: var(--bg); }
.nav-cta:hover .arrow { transform: translateX(3px); }
.ham-btn {
  display: none; background: none; border: none;
  color: var(--ink); line-height: 0;
  min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
}

/* ═══════════════════════════════════════
   MOBILE MENU
═══════════════════════════════════════ */
.mob-menu {
  position: fixed; inset: 0;
  background: var(--bg); z-index: 850;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2rem; opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.mob-menu.open { opacity: 1; pointer-events: all; }
.mob-menu a {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-size: 2.2rem;
  color: var(--ink); text-decoration: none;
  transition: color 0.2s;
}
.mob-menu a:hover { color: var(--red); }
.mob-x {
  position: absolute; top: 18px;
  right: clamp(1.5rem, 4vw, 3rem);
  background: none; border: none;
  color: var(--ink); font-size: 1.1rem; line-height: 1;
  min-width: 44px; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
}

/* ═══════════════════════════════════════
   STICKY BOTTOM BAR
═══════════════════════════════════════ */
.sticky-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  min-height: 52px;
  background: var(--ink);
  border-top: 1px solid rgba(245, 240, 230, 0.08);
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: max(clamp(1.5rem, 4vw, 3rem), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(1.5rem, 4vw, 3rem), env(safe-area-inset-right, 0px));
  z-index: 700;
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}
.sticky-bar.vis { transform: translateY(0); }
.sticky-bar-l {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem; letter-spacing: 0.14em;
  color: rgba(245, 240, 230, 0.62);
  background: none; border: none; cursor: pointer;
  padding: 0; transition: color 0.2s;
}
.sticky-bar-l:hover { color: rgba(245, 240, 230, 0.95); }
.sticky-bar-l .arrow.up {
  display: inline-block; font-size: 0.85rem;
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
}
.sticky-bar-l:hover .arrow.up { transform: translateY(-3px); }
.sticky-bar-r {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.02em;
  color: var(--bg); text-decoration: none;
  border: 1px solid rgba(245, 240, 230, 0.28);
  padding: 7px 18px;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.sticky-bar-r:hover { background: var(--red); border-color: var(--red); }
.sticky-bar-r:hover .arrow { transform: translateX(3px); }

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 64px;
}
.hero-in {
  width: 100%; max-width: var(--w);
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1.5rem, 4vw, 3rem) 0;
}
.hero-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.67rem; letter-spacing: 0.18em;
  color: var(--ink-3); margin-bottom: 2.5rem;
  opacity: 0; animation: fu 0.6s ease forwards 0.1s;
}
.hero-h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: var(--xl); font-weight: 500;
  line-height: 1.0; letter-spacing: -0.018em;
  margin-bottom: 2rem; text-wrap: balance;
  opacity: 0; animation: fu 0.85s ease forwards 0.22s;
}
.hero-h1 em.r { font-size: 1.08em; }
.hero-p {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem; line-height: 1.78;
  color: var(--ink-2); max-width: 560px;
  margin-bottom: 2.75rem;
  opacity: 0; animation: fu 0.8s ease forwards 0.4s;
}
.hero-ctas {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 4rem;
  opacity: 0; animation: fu 0.8s ease forwards 0.52s;
}
.hero-metrics {
  border-top: 1px solid var(--rule);
  padding-top: 2.25rem; padding-bottom: 3rem;
  display: grid; grid-template-columns: repeat(4, 1fr);
  opacity: 0; animation: fu 0.8s ease forwards 0.7s;
}
.hm { padding-right: 2rem; }
.hm + .hm { padding-left: 2rem; border-left: 1px solid var(--rule); }
.hm-n {
  font-family: 'DM Mono', monospace; font-weight: 500;
  font-size: 1.5rem; color: var(--ink);
  display: block; margin-bottom: 0.3rem;
}
.hm-l { font-size: 0.79rem; color: var(--ink-3); line-height: 1.55; }

@keyframes fu {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════
   MARQUEE
═══════════════════════════════════════ */
.mq-wrap {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--bg-alt);
  height: 52px; overflow: hidden;
  display: flex; align-items: center;
}
.mq-track {
  display: flex; white-space: nowrap;
  animation: mq 35s linear infinite;
  will-change: transform;
}
.mq-set { display: flex; align-items: center; }
.mq-w {
  font-family: 'DM Mono', monospace;
  font-size: 0.67rem; letter-spacing: 0.14em;
  color: var(--ink-3); padding: 0 1.2rem;
}
.mq-d { font-family: 'DM Mono', monospace; font-size: 0.67rem; color: var(--ink-3); }
@keyframes mq { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ═══════════════════════════════════════
   PROBLEM
═══════════════════════════════════════ */
.prob-layout {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 5rem; align-items: start;
}
.prob-sticky { position: sticky; top: 88px; }
.prob-sub {
  font-size: 1rem; line-height: 1.78;
  color: var(--ink-2);
}
.prob-point {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 1rem; align-items: start;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--rule);
}
.prob-point:first-child { border-top: 1px solid var(--rule); }
.prob-num {
  font-family: 'DM Mono', monospace;
  font-size: 0.67rem; letter-spacing: 0.14em;
  color: var(--red); padding-top: 0.2rem;
}
.prob-txt { font-size: 0.93rem; line-height: 1.72; color: var(--ink-2); }

/* ═══════════════════════════════════════
   PHILOSOPHY STRIP
═══════════════════════════════════════ */
.phil-strip {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--bg-alt);
  padding: clamp(4rem, 8vw, 7rem) 0;
}
.phil-in {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  gap: 2rem; max-width: var(--w);
  margin: 0 auto; padding: 0 clamp(1.5rem, 4vw, 3rem);
}
.phil-rule {
  display: block; width: 36px; height: 1px;
  background: var(--rule-2);
}
.phil-q {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-weight: 400;
  font-size: clamp(1.65rem, 3.2vw, 2.5rem);
  color: var(--ink); line-height: 1.42;
  letter-spacing: -0.01em; max-width: 700px;
}

/* ═══════════════════════════════════════
   SERVICES
═══════════════════════════════════════ */
.svc-layout {
  display: grid;
  grid-template-columns: 1fr 1.65fr;
  gap: 5rem; align-items: start;
}
.svc-sticky { position: sticky; top: 88px; }
.svc-sticky p {
  font-size: 1.05rem; line-height: 1.78;
  color: var(--ink-2); margin-bottom: 1.75rem;
}
.svc-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--rule);
}
.sc {
  background: var(--bg-card); padding: 28px 24px;
  position: relative; overflow: hidden;
  transition: background 0.15s;
}
.sc:hover { background: var(--bg); }
.sc::after {
  content: ''; position: absolute; inset: 0;
  border: 1.5px solid transparent;
  pointer-events: none; transition: border-color 0.15s;
}
.sc:hover::after { border-color: var(--ink); }
.sc-n {
  font-family: 'DM Mono', monospace; font-size: 0.7rem;
  color: var(--red); display: block; margin-bottom: 0.6rem;
  position: relative; z-index: 1;
}
.sc-t { font-size: 0.93rem; font-weight: 500; color: var(--ink); margin-bottom: 0.5rem; line-height: 1.35; position: relative; z-index: 1; }
.sc-d { font-size: 0.83rem; line-height: 1.72; color: var(--ink-2); position: relative; z-index: 1; }
/* Ghost serif numeral — editorial depth marker, faint background texture */
.sc-ghost {
  position: absolute; top: -0.4rem; right: 0.4rem;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-weight: 600;
  font-size: 5.5rem; line-height: 1;
  color: var(--ink); opacity: 0.045;
  pointer-events: none; user-select: none; z-index: 0;
}
/* Custom Automation closer card — same dashed-border language as REST API / Any Industry */
.sc-custom {
  background: var(--bg);
  border: 1px dashed var(--rule-2);
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 1.5rem;
}
.sc-custom:hover { background: var(--bg-card); }
.sc-custom::after { display: none; }
.sc-custom .sc-n { color: var(--ink-3); font-size: 1.3rem; margin-bottom: 0; flex-shrink: 0; }
.sc-custom .sc-t { color: var(--ink); margin-bottom: 0.3rem; }
.sc-custom-body { flex: 1; }

/* ═══════════════════════════════════════
   INTEGRATIONS
═══════════════════════════════════════ */
.integ-sub {
  font-size: 1rem; line-height: 1.72;
  color: var(--ink-2); max-width: 540px;
  margin-bottom: 2rem;
}
/* Reinforcement stat row — small credibility signal before the stack */
.integ-stats {
  display: flex; flex-wrap: wrap; gap: 0.5rem 0;
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem; letter-spacing: 0.11em;
  color: var(--ink-2);
  padding: 1rem 0 1.75rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.75rem;
}
.integ-stats-d { color: var(--ink-3); margin: 0 0.85rem; }

/* Categorized groups */
.integ-cat { margin-bottom: 2.25rem; }
.integ-cat:last-of-type { margin-bottom: 0; }
.integ-cat-lbl {
  display: flex; align-items: baseline; gap: 0.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.63rem; letter-spacing: 0.16em;
  color: var(--red);
  margin-bottom: 0.9rem;
}
.integ-cat-ct {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem; letter-spacing: 0.08em;
  color: var(--ink-3);
}
/* Flex-based grid — adapts cleanly to categories of any size, no empty gaps */
.integ-grid {
  display: flex; flex-wrap: wrap;
  gap: 1px; background: var(--rule);
}
.integ-item {
  flex: 1 1 230px;
  background: var(--bg-card);
  padding: 16px 18px;
  display: flex; gap: 13px; align-items: center;
  position: relative;
  text-decoration: none;
  transition: background 0.15s;
}
.integ-item::after {
  content: ''; position: absolute; inset: 0;
  border: 1px solid transparent;
  pointer-events: none; transition: border-color 0.15s;
}
.integ-item:hover { background: var(--bg); }
.integ-item:hover::after { border-color: var(--ink); }
.ii {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 7px; overflow: hidden; display: block;
  position: relative;
}
.ii svg { display: block; width: 34px; height: 34px; }
.ii-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ii-n {
  font-size: 0.84rem; font-weight: 500;
  color: var(--ink); line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ii-c {
  font-family: 'DM Mono', monospace;
  font-size: 0.57rem; letter-spacing: 0.1em;
  color: var(--ink-3);
}
/* Live-status dot — reinforces these are real, active integrations */
.ii-status {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--live); flex-shrink: 0;
  position: relative; margin-left: auto;
}
.ii-status::after {
  content: ''; position: absolute; inset: -3px;
  border-radius: 50%; background: var(--live);
  opacity: 0.35;
  animation: statusPulse 2.4s ease-in-out infinite;
}
@keyframes statusPulse {
  0%, 100% { transform: scale(0.85); opacity: 0.35; }
  50% { transform: scale(1.5); opacity: 0; }
}
.integ-cat-last .integ-item { flex: 1 1 100%; }
.integ-note {
  font-family: 'DM Mono', monospace;
  font-size: 0.63rem; letter-spacing: 0.12em;
  color: var(--ink-3); margin-top: 0.5rem;
}

/* ═══════════════════════════════════════
   PROCESS
═══════════════════════════════════════ */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 4rem; position: relative;
}
.steps::before {
  content: ''; position: absolute;
  top: 6px; left: 0; right: 0;
  height: 1px; background: var(--rule); z-index: 0;
}
.step { padding-right: 2rem; position: relative; }
.step + .step { padding-left: 1.5rem; }
.step-dot {
  width: 13px; height: 13px; background: var(--red);
  display: block; margin-bottom: 1.5rem;
  position: relative; z-index: 1;
}
.step-n {
  font-family: 'DM Mono', monospace;
  font-size: 0.67rem; letter-spacing: 0.18em;
  color: var(--ink-3); display: block; margin-bottom: 0.55rem;
}
.step-t { font-size: 0.93rem; font-weight: 600; color: var(--ink); margin-bottom: 0.55rem; }
.step-d { font-size: 0.83rem; line-height: 1.72; color: var(--ink-2); }

/* ═══════════════════════════════════════
   IMPACT
═══════════════════════════════════════ */
.imp-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: 4rem 0 3.5rem;
}
.imp-item { padding: 1.5rem 2rem; position: relative; }
.imp-item + .imp-item::before {
  content: ''; position: absolute;
  left: 0; top: 1.25rem; bottom: 1.25rem;
  width: 1px; background: var(--rule);
}
.imp-n {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 500;
  color: var(--ink); line-height: 1;
  display: block; margin-bottom: 0.7rem;
  letter-spacing: -0.02em;
}
.imp-l {
  font-family: 'DM Mono', monospace;
  font-size: 0.67rem; letter-spacing: 0.1em;
  color: var(--ink-3); line-height: 1.9;
}
.imp-quote-wrap {
  border-top: 1px solid var(--rule);
  padding-top: 3rem; max-width: 680px;
  margin: 0 auto; text-align: center;
}
.imp-q {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-size: 1.42rem;
  color: var(--ink-2); line-height: 1.6;
  margin-bottom: 0.9rem;
}
/* <p> not <footer> — no CSS bleed */
.imp-attr { font-size: 0.8rem; color: var(--ink-3); }

/* ═══════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════ */
.test-feature {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 3.5rem 0;
  margin-bottom: 3rem;
  text-align: center;
}
.test-big {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-weight: 400;
  font-size: clamp(1.65rem, 3.2vw, 2.4rem);
  color: var(--ink); line-height: 1.42;
  letter-spacing: -0.01em;
  max-width: 820px; margin: 0 auto 1rem;
}
.test-big-attr {
  font-family: 'DM Mono', monospace;
  font-size: 0.67rem; letter-spacing: 0.1em; color: var(--ink-3);
}
.test-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--rule);
}
.test-card { background: var(--bg-card); padding: 28px 24px; }
.test-q {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-size: 1.05rem;
  color: var(--ink-2); line-height: 1.7;
  margin-bottom: 1rem;
}
.test-attr {
  font-family: 'DM Mono', monospace;
  font-size: 0.63rem; letter-spacing: 0.1em; color: var(--ink-3);
}

/* ═══════════════════════════════════════
   INDUSTRIES — numbered rows, not cards
═══════════════════════════════════════ */
.industry-rows { margin-top: 4rem; }
.ir {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  gap: 0 2.5rem; align-items: center;
  padding: 1.6rem clamp(1.5rem, 4vw, 3rem);
  border-bottom: 1px solid var(--rule);
  margin: 0 calc(-1 * clamp(1.5rem, 4vw, 3rem));
  transition: background 0.15s;
}
.ir:first-child { border-top: 1px solid var(--rule); }
.ir:hover { background: var(--bg-card); }
.ir-num {
  font-family: 'DM Mono', monospace;
  font-size: 0.67rem; letter-spacing: 0.12em;
  color: var(--ink-3); flex-shrink: 0;
}
.ir-center { display: flex; flex-direction: column; gap: 0.28rem; }
.ir-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.3rem, 2.4vw, 1.85rem); font-weight: 500;
  color: var(--ink); letter-spacing: -0.01em; line-height: 1.1;
}
.ir-svcs {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem; letter-spacing: 0.1em;
  color: var(--ink-3); line-height: 1.6;
}
.ir-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem; letter-spacing: 0.14em;
  color: var(--red); min-width: 5.5rem;
  text-align: right; flex-shrink: 0;
}

/* ═══════════════════════════════════════
   WORK — Cormorant titles
═══════════════════════════════════════ */
#work { border-top: 1px solid var(--rule); }
.wk-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--rule); margin-top: 4rem;
}
.wc {
  background: var(--bg-card); padding: 30px 28px;
  min-height: 400px; display: flex;
  flex-direction: column; transition: background 0.15s;
}
.wc:hover { background: var(--bg); }
.wc-meta { display: flex; flex-wrap: wrap; margin-bottom: 1.25rem; }
.wc-m {
  font-family: 'DM Mono', monospace;
  font-size: 0.63rem; letter-spacing: 0.08em; color: var(--ink-3);
}
.wc-m + .wc-m::before { content: ' ·· '; letter-spacing: 0; color: var(--ink-3); }
.wc-t {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.22rem; font-weight: 600;
  color: var(--ink); margin-bottom: 0.85rem;
  line-height: 1.28; letter-spacing: -0.01em;
}
.wc-b { font-size: 0.875rem; line-height: 1.75; color: var(--ink-2); flex: 1; }
.wc-foot {
  margin-top: 1.4rem; padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}
.wc-r {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem; color: var(--red);
  letter-spacing: 0.06em; display: block; margin-bottom: 0.3rem;
}
.wc-s {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem; color: var(--ink-3); letter-spacing: 0.1em;
}

/* ═══════════════════════════════════════
   FAQ
═══════════════════════════════════════ */
.faq-layout {
  display: grid; grid-template-columns: 1fr 1.8fr;
  gap: 5rem; align-items: start;
}
.faq-left { position: sticky; top: 88px; }
.faq-left p { font-size: 1rem; line-height: 1.75; color: var(--ink-2); margin-top: 1rem; }
/* .faq-list — single-column FAQ wrapper used on industry pages (no sticky sidebar) */
.faq-list { max-width: 720px; margin-top: 1rem; }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item:first-child { border-top: 1px solid var(--rule); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between;
  align-items: center; padding: 1.4rem 0;
  background: none; border: none; text-align: left; gap: 2rem;
}
.faq-q:hover .faq-qt { color: var(--red); }
.faq-qt {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.97rem; font-weight: 500;
  color: var(--ink); line-height: 1.4;
  transition: color 0.2s;
}
.faq-ic {
  font-family: 'DM Mono', monospace; font-size: 1.1rem;
  color: var(--red); flex-shrink: 0;
  transition: transform 0.3s ease; line-height: 1;
}
.faq-item.open .faq-ic { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-body {
  font-size: 0.875rem; line-height: 1.82;
  color: var(--ink-2); padding-bottom: 1.5rem;
  max-width: 620px;
}

/* ═══════════════════════════════════════
   ROI CALCULATOR
═══════════════════════════════════════ */
.roi-box {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--rule); background: var(--bg-card);
  margin-top: 3rem;
}
.roi-inputs {
  padding: 2.75rem; border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 2.25rem; justify-content: center;
}
.roi-field label {
  display: block; font-size: 0.8rem; color: var(--ink-2);
  margin-bottom: 0.9rem; font-family: 'Space Grotesk', sans-serif;
}
.roi-field input[type="range"] {
  width: 100%; -webkit-appearance: none; appearance: none;
  height: 2px; background: var(--rule-2); outline: none;
  margin-bottom: 0.7rem; cursor: pointer;
}
.roi-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--red); cursor: pointer; border: 2px solid var(--bg-card);
  box-shadow: 0 0 0 1px var(--red);
}
.roi-field input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--bg-card);
  background: var(--red); cursor: pointer; box-shadow: 0 0 0 1px var(--red);
}
.roi-val { font-family: 'DM Mono', monospace; font-size: 0.9rem; color: var(--ink); }
.roi-output { padding: 2.75rem; display: flex; flex-direction: column; gap: 1.35rem; justify-content: center; }
.roi-out-item {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 1.15rem; border-bottom: 1px solid var(--rule);
}
.roi-out-item:last-child { border-bottom: none; padding-bottom: 0; }
.roi-out-l { font-size: 0.85rem; color: var(--ink-2); }
.roi-out-n { font-family: 'DM Mono', monospace; font-size: 1.4rem; color: var(--ink); font-weight: 500; }
.roi-out-s { font-size: 0.72rem; color: var(--ink-3); font-weight: 400; margin-left: 2px; }
.roi-out-item.hi .roi-out-n { color: var(--red); font-size: 1.7rem; }
.roi-out-item.hi .roi-out-l { color: var(--ink); font-weight: 600; }
.roi-disclaimer {
  font-family: 'DM Mono', monospace; font-size: 0.74rem;
  color: var(--ink-3); margin-top: 1.25rem; max-width: 560px;
}

/* ═══════════════════════════════════════
   PRICING — two productized systems + custom
═══════════════════════════════════════ */
.pr-sub {
  font-size: 0.93rem; color: var(--ink-2);
  max-width: 555px; line-height: 1.75; margin-bottom: 3.5rem;
}
.pr-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--rule);
  align-items: stretch;
}
.pc {
  background: var(--bg-card); padding: 32px;
  border: 1px solid var(--rule);
  position: relative; transition: border-color 0.2s, transform 0.2s;
}
.pc.feat {
  border-color: var(--ink);
  z-index: 1;
  transform: scale(1.035);
  padding-top: 36px;
}
/* Crimson accent bar — signals "this is the recommended tier" */
.pc.feat::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--red);
}
.pc:hover { border-color: var(--ink); }
.pop {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem; letter-spacing: 0.16em;
  color: var(--red); display: block; margin-bottom: 0.85rem;
}
.pc-name { font-size: 0.97rem; font-weight: 600; color: var(--ink); margin-bottom: 0.2rem; }
.pc-tier {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem; letter-spacing: 0.14em;
  color: var(--ink-3); margin-bottom: 1.35rem; display: block;
}
.pc-pr { display: flex; align-items: baseline; gap: 0.2rem; margin-bottom: 1.35rem; }
.pc-amt {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.75rem; font-weight: 500;
  line-height: 1; color: var(--ink); letter-spacing: -0.02em;
}
.pc-amt.custom { font-size: 2rem; }
.pc-per { font-size: 0.83rem; color: var(--ink-3); }
.pc-hr { border: none; border-top: 1px solid var(--rule); margin-bottom: 1.35rem; }
.pc-feats { list-style: none; margin-bottom: 1.4rem; }
.pc-feats li {
  font-size: 0.875rem; color: var(--ink-2);
  line-height: 2; padding-left: 0.85rem; position: relative;
}
.pc-feats li::before { content: '·'; position: absolute; left: 0; }
.pc-best { font-size: 0.78rem; color: var(--ink-3); margin-bottom: 1.4rem; line-height: 1.5; }
.pc-btn {
  display: block; text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem; font-weight: 500; letter-spacing: 0.02em;
  padding: 11px 20px; text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.pc-btn.dk { background: var(--ink); color: var(--bg); border: 1px solid var(--ink); }
.pc-btn.dk:hover { background: var(--red); border-color: var(--red); }
.pc-btn.lt { background: transparent; color: var(--ink); border: 1px solid var(--rule-2); }
.pc-btn.lt:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pr-note {
  font-family: 'DM Mono', monospace;
  font-size: 0.67rem; letter-spacing: 0.1em;
  color: var(--ink-3); margin-top: 1.9rem;
}

/* ═══════════════════════════════════════
   ABOUT
═══════════════════════════════════════ */
.ab-layout {
  display: grid; grid-template-columns: 1.3fr 1fr;
  gap: 6rem; align-items: start;
}
.ab-text p {
  font-size: 0.93rem; line-height: 1.85;
  color: var(--ink-2); margin-bottom: 1.3rem;
}
.ab-text p:last-child { margin-bottom: 0; }
.fo-block { position: sticky; top: 88px; }
.fo-img {
  width: 100%; aspect-ratio: 3 / 4;
  background: var(--bg); border: 1px solid var(--rule);
  display: flex; align-items: center;
  justify-content: center; margin-bottom: 1.1rem;
}
.fo-img span {
  font-family: 'DM Mono', monospace;
  font-size: 1.3rem; color: var(--ink-3); letter-spacing: 0.1em;
}
.fo-name { font-size: 1rem; font-weight: 600; color: var(--ink); margin-bottom: 0.2rem; }
.fo-role { font-size: 0.84rem; color: var(--ink-3); margin-bottom: 1rem; }
.chips { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.chip {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem; letter-spacing: 0.12em;
  color: var(--ink-3); border: 1px solid var(--rule);
  padding: 4px 9px; border-radius: 2px;
}

/* ═══════════════════════════════════════
   GUARANTEE — ghost numeral + coverage breakdown
═══════════════════════════════════════ */
#guarantee {
  background: var(--ink); text-align: center;
  padding: clamp(4.5rem, 9vw, 8rem) clamp(1.5rem, 4vw, 3rem);
  position: relative; overflow: hidden;
  border-top: 1px solid rgba(245,240,230,.08);
}
/* Giant faint serif numeral — editorial "stamp" texture behind the headline */
.guar-ghost {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -52%);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-weight: 600;
  font-size: clamp(14rem, 34vw, 28rem);
  color: rgba(245,240,230,.028);
  line-height: 1;
  pointer-events: none; user-select: none;
  z-index: 0; white-space: nowrap;
}
.guar-wrap { position: relative; z-index: 1; }
.guar-rule {
  display: block; width: 32px; height: 1.5px;
  background: var(--red-lt);
  margin: 0 auto 1.5rem;
}
.guar-lbl {
  font-family: 'DM Mono', monospace;
  font-size: 0.67rem; letter-spacing: 0.18em;
  color: rgba(245,240,230,.5);
  display: block; margin-bottom: 1.75rem;
}
.guar-h {
  font-family: 'Cormorant Garamond', serif;
  font-size: var(--lg); font-weight: 500;
  line-height: 1.08; letter-spacing: -0.01em;
  color: #F5F0E6; margin-bottom: 1.5rem; text-wrap: balance;
}
.guar-h em.r { color: var(--red-lt); }
.guar-p {
  font-size: 0.97rem; line-height: 1.78; font-weight: 400;
  color: rgba(245,240,230,.78);
  max-width: 560px; margin: 0 auto;
}
/* Structured coverage breakdown — turns flat text into a "warranty card" */
.guar-cover {
  display: flex; justify-content: center;
  max-width: 580px; margin: 2.75rem auto 2.25rem;
  border-top: 1px solid rgba(245,240,230,.14);
  border-bottom: 1px solid rgba(245,240,230,.14);
}
.guar-cover-item {
  flex: 1; padding: 1.4rem 1rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.guar-cover-item + .guar-cover-item { border-left: 1px solid rgba(245,240,230,.14); }
.guar-cover-n {
  font-family: 'DM Mono', monospace;
  font-size: 0.63rem; letter-spacing: 0.14em;
  color: var(--red-lt);
}
.guar-cover-t {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem; font-weight: 500; line-height: 1.3;
  color: rgba(245,240,230,.88);
}
.guar-note {
  font-family: 'DM Mono', monospace;
  font-size: 0.67rem; letter-spacing: 0.1em;
  color: rgba(245,240,230,.48);
}

/* ═══════════════════════════════════════
   CTA
═══════════════════════════════════════ */
#cta {
  text-align: center;
  padding: clamp(5rem, 10vw, 10rem) clamp(1.5rem, 4vw, 3rem);
}
.cta-h {
  font-family: 'Cormorant Garamond', serif;
  font-size: var(--lg); font-weight: 500;
  line-height: 1.08; letter-spacing: -0.012em;
  margin-bottom: 1.5rem; text-wrap: balance;
}
.cta-p {
  font-size: 0.97rem; line-height: 1.75;
  color: var(--ink-2); max-width: 490px;
  margin: 0 auto 2.75rem;
}
/* Primary CTA — large, ALL CAPS, high contrast */
.cta-actions { display: flex; align-items: center; gap: 2.5rem; justify-content: center; flex-wrap: wrap; }
.cta-big-btn {
  display: inline-flex; align-items: center; gap: 0.7em;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.92rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--ink); color: var(--bg);
  padding: 20px 52px; text-decoration: none;
  transition: background 0.22s, transform 0.15s;
  white-space: nowrap;
}
.cta-big-btn:hover { background: var(--red); }
.cta-big-btn:hover .arrow { transform: translateX(5px); }
.cta-big-btn:active { transform: scale(0.98); }
/* Secondary ghost text link — underline style */
.cta-ghost {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.cta-ghost:hover { color: var(--red); border-color: var(--red); }
/* "What happens next" 3-step sequence */
.cta-steps {
  display: flex; align-items: center;
  justify-content: center; gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.75rem;
  padding: 1.5rem 2rem;
  border: 1px solid var(--rule);
  max-width: 560px; margin-left: auto; margin-right: auto;
}
.cta-step { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.cta-step-n {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem; letter-spacing: 0.14em;
  color: var(--red);
}
.cta-step-t {
  font-size: 0.78rem; line-height: 1.5;
  color: var(--ink-2); text-align: center;
}
.cta-step-div {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem; color: var(--ink-3);
  flex-shrink: 0;
}
.cta-note {
  font-family: 'DM Mono', monospace;
  font-size: 0.67rem; letter-spacing: 0.1em;
  color: var(--ink-3); margin-top: 1.5rem;
}
.cta-pp-note {
  font-family: 'DM Mono', monospace;
  font-size: 0.63rem; letter-spacing: 0.08em;
  color: var(--ink-3); margin-top: 0.75rem;
}
.cta-pp-link {
  color: var(--ink-3); text-decoration: underline;
  text-underline-offset: 3px; transition: color 0.2s;
}
.cta-pp-link:hover { color: var(--ink); }

/* ═══════════════════════════════════════
   PRIVACY POLICY MODAL
═══════════════════════════════════════ */
.pp-overlay {
  position: fixed; inset: 0;
  background: rgba(12,12,12,.72);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.pp-overlay.open { opacity: 1; pointer-events: all; }
.pp-modal {
  background: var(--bg);
  max-width: 640px; width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: clamp(2rem, 5vw, 3rem);
  position: relative;
  transform: translateY(16px);
  transition: transform 0.25s ease;
}
.pp-overlay.open .pp-modal { transform: translateY(0); }
.pp-close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  background: none; border: none; cursor: pointer;
  color: var(--ink-3); font-size: 1rem; line-height: 1;
  transition: color 0.2s;
}
.pp-close:hover { color: var(--ink); }
.pp-meta {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem; letter-spacing: 0.1em;
  color: var(--ink-3); margin-bottom: 2rem;
}
.pp-h3 {
  font-size: 0.85rem; font-weight: 600;
  color: var(--ink); margin: 1.5rem 0 0.5rem;
}
.pp-h3:first-of-type { margin-top: 0; }
.pp-p {
  font-size: 0.875rem; line-height: 1.78;
  color: var(--ink-2);
}
.pp-content::-webkit-scrollbar { width: 6px; }
.pp-content::-webkit-scrollbar-thumb { background: var(--rule); }

/* ═══════════════════════════════════════
   VERTICAL-PAGE TIER SUMMARY — condensed 3-tier
   pricing block used on industry pages. Full tier
   detail lives in the homepage pricing cards (.pc);
   this is a lighter-weight pointer to it.
═══════════════════════════════════════ */
.vt-tiers {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
  margin-top: 2rem;
}
.vt-tier {
  background: var(--bg-card); padding: 1.75rem 1.5rem;
  border: 1px solid var(--rule); text-align: left;
  position: relative; transition: border-color 0.2s, transform 0.2s;
}
.vt-tier:hover { border-color: var(--ink); transform: translateY(-2px); }
.vt-tier.feat { border-color: var(--ink); }
.vt-tier.feat:hover { transform: translateY(-2px); }
.vt-tier.feat::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--red);
}
.vt-tier-pop {
  font-family: 'DM Mono', monospace; font-size: 0.6rem; letter-spacing: 0.14em;
  color: var(--red); display: block; margin-bottom: 0.6rem;
}
.vt-tier-name { font-weight: 700; font-size: 1.05rem; display: block; }
.vt-tier-price {
  font-size: 1.9rem; font-weight: 700; margin: 0.5rem 0 0.15rem;
}
.vt-tier-price span { font-size: 0.85rem; font-weight: 400; color: var(--ink-3); }
.vt-tier-setup {
  font-family: 'DM Mono', monospace; font-size: 0.68rem;
  color: var(--ink-3); margin-bottom: 0.9rem;
}
.vt-tier-d { font-size: 0.85rem; line-height: 1.6; color: var(--ink-2); }
.vt-tier-note {
  font-size: 0.85rem; color: var(--ink-2); margin-top: 1.5rem; line-height: 1.7;
}
.vt-tier-note a { color: var(--red); text-decoration: none; }
.vt-tier-note a:hover { text-decoration: underline; }
@media (max-width: 768px) {
  .vt-tiers { grid-template-columns: 1fr; }
  .vt-tier.feat { order: -1; }
}

/* ═══════════════════════════════════════
   COMMAND PALETTE — ⌘K quick nav
═══════════════════════════════════════ */
.cmdk-trigger {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem; color: var(--ink-2);
  border: 1px solid var(--rule); background: transparent;
  padding: 7px 10px; cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.cmdk-trigger:hover { border-color: var(--ink); color: var(--ink); }
.cmdk-trigger kbd {
  font-family: 'DM Mono', monospace; font-size: 0.68rem;
  background: var(--bg-alt); border: 1px solid var(--rule);
  padding: 1px 5px; border-radius: 3px; color: var(--ink-3);
}
@media (max-width: 1024px) { .cmdk-trigger { display: none; } }

.cmdk-overlay {
  position: fixed; inset: 0;
  background: rgba(12,12,12,.72);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  z-index: 1100;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 12vh 1.5rem 1.5rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.cmdk-overlay.open { opacity: 1; pointer-events: all; }
.cmdk-box {
  background: var(--bg); width: 100%; max-width: 560px;
  border: 1px solid var(--rule);
  max-height: 70vh; display: flex; flex-direction: column;
  transform: translateY(-10px); transition: transform 0.2s ease;
  overflow: hidden;
}
.cmdk-overlay.open .cmdk-box { transform: translateY(0); }
.cmdk-input-row {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--rule);
  flex-shrink: 0;
}
.cmdk-search-ic { color: var(--ink-3); flex-shrink: 0; }
.cmdk-input {
  flex: 1; border: none; background: none; outline: none;
  font-family: 'Space Grotesk', sans-serif; font-size: 1rem;
  color: var(--ink);
}
.cmdk-input::placeholder { color: var(--ink-3); }
.cmdk-esc {
  font-family: 'DM Mono', monospace; font-size: 0.65rem;
  color: var(--ink-3); border: 1px solid var(--rule);
  padding: 2px 6px; border-radius: 3px; flex-shrink: 0;
}
.cmdk-results { overflow-y: auto; padding: 0.5rem; }
.cmdk-group-lbl {
  font-family: 'DM Mono', monospace; font-size: 0.62rem; letter-spacing: 0.14em;
  color: var(--ink-3); padding: 0.65rem 0.75rem 0.35rem;
  display: block;
}
.cmdk-item {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 0.65rem 0.75rem; cursor: pointer; text-decoration: none;
  color: var(--ink); border-radius: 2px;
}
.cmdk-item-t { font-size: 0.92rem; font-weight: 500; }
.cmdk-item-d { font-size: 0.78rem; color: var(--ink-3); flex-shrink: 0; text-align: right; }
.cmdk-item.active, .cmdk-item:hover { background: var(--bg-alt); }
.cmdk-item.active .cmdk-item-t, .cmdk-item:hover .cmdk-item-t { color: var(--red); }
.cmdk-empty { padding: 2rem 1.25rem; text-align: center; color: var(--ink-3); font-size: 0.88rem; }
.cmdk-results::-webkit-scrollbar { width: 6px; }
.cmdk-results::-webkit-scrollbar-thumb { background: var(--rule); }

/* ═══════════════════════════════════════
   SITE FOOTER — scoped class, not bare footer
═══════════════════════════════════════ */
.site-footer { background: var(--ink); padding: clamp(3rem, 6vw, 5rem) 0 0; }
.ft-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1.1fr;
  gap: 4rem; padding-bottom: clamp(3rem, 5vw, 4.5rem);
}
.ft-logo {
  font-family: 'DM Mono', monospace; font-weight: 500;
  font-size: 0.8rem; letter-spacing: 0.25em;
  color: var(--bg); display: block; margin-bottom: 0.4rem;
}
.ft-sub {
  font-family: 'DM Mono', monospace;
  font-size: 0.63rem; letter-spacing: 0.14em;
  color: rgba(245,240,230,.48);
  display: block; margin-bottom: 1rem;
}
.ft-line { font-size: 0.875rem; color: rgba(245,240,230,.72); line-height: 1.7; font-weight: 400; }
.ft-col-lbl {
  font-family: 'DM Mono', monospace;
  font-size: 0.63rem; letter-spacing: 0.16em;
  color: rgba(245,240,230,.48);
  display: block; margin-bottom: 1.1rem;
}
.ft-nav { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.ft-nav a { font-size: 0.875rem; color: rgba(245,240,230,.68); text-decoration: none; transition: color 0.2s; font-weight: 400; }
.ft-nav a:hover { color: rgba(245,240,230,1); }
.ft-contact { font-size: 0.875rem; color: rgba(245,240,230,.68); font-weight: 400; display: flex; flex-direction: column; gap: 0.55rem; }
.ft-wa { color: inherit; text-decoration: none; transition: color 0.2s; display: block; width: fit-content; }
.ft-wa:hover { color: rgba(245,240,230,1); }
.ft-social { display: flex; gap: 1rem; margin-top: 1.1rem; }
.ft-social-link {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-size: 0.8rem; color: rgba(245,240,230,.5);
  text-decoration: none; transition: color 0.2s;
}
.ft-social-link:hover { color: rgba(245,240,230,.9); }
.ft-whatsapp-link:hover { color: #4DC559; }
.ft-contact-note {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem; letter-spacing: 0.1em;
  color: rgba(245,240,230,.3); margin: 0.4rem 0 0.75rem;
}
.ft-tz {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem; letter-spacing: 0.12em;
  color: rgba(245,240,230,.5); margin-top: 0.75rem;
}
.ft-bottom {
  border-top: 1px solid rgba(160,152,144,.22);
  padding: 1.4rem 0;
  display: flex; justify-content: space-between;
  align-items: center; gap: 1rem; flex-wrap: wrap;
}
.ft-legal { font-size: 0.78rem; color: rgba(245,240,230,.5); font-weight: 400; }
.ft-legal a { color: rgba(245,240,230,.5); text-decoration: none; transition: color 0.2s; }
.ft-legal a:hover { color: rgba(245,240,230,.9); }
.ft-legal-r { display: flex; gap: 1.5rem; align-items: center; }

/* ═══════════════════════════════════════
   FOCUS
═══════════════════════════════════════ */
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .prob-layout, .svc-layout, .faq-layout, .ab-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .prob-sticky, .svc-sticky, .faq-left, .fo-block { position: static; }
  .integ-item { flex-basis: 200px; }
  .ir { grid-template-columns: 2.5rem 1fr; }
  .ir-tag { display: none; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta.d { display: none; }
  .ham-btn { display: inline-flex; }

  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .hero-metrics { grid-template-columns: repeat(2, 1fr); }
  .hm { padding: 1rem 1.5rem 1rem 0; }
  .hm + .hm { border-left: none; padding-left: 0; }
  .hm:nth-child(odd)  { border-right: 1px solid var(--rule); padding-right: 1.5rem; }
  .hm:nth-child(even) { padding-left: 1.5rem; padding-right: 0; }
  .hm:nth-child(n+3)  { border-top: 1px solid var(--rule); padding-top: 1.25rem; }

  .steps { grid-template-columns: 1fr; margin-top: 3rem; }
  .steps::before { display: none; }
  .step { padding: 0 0 2rem 2.25rem; border-left: 1px solid var(--rule); }
  .step + .step { padding-left: 2.25rem; }
  .step-dot { position: absolute; left: -7px; top: 0; margin-bottom: 0; }

  .imp-grid { grid-template-columns: repeat(2, 1fr); }
  .imp-item:nth-child(2n+1):not(:first-child)::before { display: none; }
  .imp-item:nth-child(n+3) { border-top: 1px solid var(--rule); padding-top: 1.5rem; }

  .ir { grid-template-columns: 2rem 1fr; gap: 0 1.25rem; }
  .ir-svcs { display: none; }

  .test-grid { grid-template-columns: 1fr; }
  .wk-grid  { grid-template-columns: 1fr; }
  .pr-grid  { grid-template-columns: 1fr; }
  .pc.feat { transform: none; padding-top: 32px; }
  .integ-item { flex-basis: 100%; }
  .ft-grid  { grid-template-columns: 1fr; gap: 2.25rem; }
  .ft-bottom { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .sticky-bar-l { display: none; }
  .cta-actions { flex-direction: column; gap: 1.5rem; }
  .cta-big-btn { padding: 18px 36px; font-size: 0.84rem; }
  .guar-cover-t { font-size: 0.74rem; }
  .guar-cover-item { padding: 1.1rem 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ry, .rx { transition: none; }
  .hero-tag, .hero-h1, .hero-p, .hero-ctas, .hero-metrics { animation: none; opacity: 1; transform: none; }
  .mq-track { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════════════
   ADDITIONAL RESPONSIVE FIXES — appended only.
   Nothing above this block has been changed or removed, so desktop
   (1024px and up) renders exactly as before. Everything below is scoped
   to max-width / min-width ranges under 1024px only.
═══════════════════════════════════════════════════════════════════════ */

/* Belt-and-braces: guarantee zero horizontal scroll on any device */
html { overflow-x: hidden; max-width: 100%; }

/* ── TABLET (769px – 1023px) ──────────────────────────────────────────
   The existing @media (max-width:1024px) rule already stacks the sticky
   two-column sections. These rules fix the pieces that are still dense
   or overlapping at tablet widths specifically. */
@media (min-width: 769px) and (max-width: 1024px) {

  /* At ~769–900px the centered .nav-links block and the right-aligned
     .nav-cta button run into each other (nav-links is centered on the
     full nav width while the CTA is pinned right — the math only works
     out above ~900px). Switch to the hamburger menu to avoid overlap. */
  .nav-links { display: none; }
  .nav-cta.d { display: none; }
  .ham-btn   { display: inline-flex; }

  /* Four text-heavy process columns are too narrow at tablet widths —
     reuse the vertical timeline treatment already built for mobile. */
  .steps         { grid-template-columns: 1fr; margin-top: 3rem; }
  .steps::before { display: none; }
  .step          { padding: 0 0 2rem 2.25rem; border-left: 1px solid var(--rule); }
  .step + .step  { padding-left: 2.25rem; }
  .step-dot      { position: absolute; left: -7px; top: 0; margin-bottom: 0; }

  /* 3-column card grids get cramped between 769–1023px — drop to a
     clean 2-up layout, with the leftover card spanning the full row
     (same pattern already used by .sc-custom in Services). */
  .wk-grid, .test-grid, .pr-grid { grid-template-columns: repeat(2, 1fr); }
  .wk-grid > .wc:last-child,
  .test-grid > .test-card:last-child,
  .pr-grid  > .pc:last-child { grid-column: 1 / -1; }
  .pc.feat { transform: none; }
}

/* From ~900px up there's enough room for the full desktop-style nav —
   restore it before hitting the existing 1024px desktop breakpoint. */
@media (min-width: 901px) and (max-width: 1024px) {
  .nav-links { display: flex; }
  .nav-cta.d { display: inline-flex; }
  .ham-btn   { display: none; }
}

/* ── MOBILE (up to 768px) — extra fixes beyond the existing rules ───── */
@media (max-width: 768px) {

  /* Service cards were still 2-up here and too narrow for the copy. */
  .svc-grid { grid-template-columns: 1fr; }

  /* ROI calculator: stack inputs above outputs on phones */
  .roi-box { grid-template-columns: 1fr; }
  .roi-inputs { border-right: none; border-bottom: 1px solid var(--rule); padding: 2rem; }
  .roi-output { padding: 2rem; }

  /* The "what happens next" step row wraps awkwardly as a horizontal
     flex row on narrow phones — stack it vertically instead, with the
     divider arrow rotated to point down between steps. */
  .cta-steps    { flex-direction: column; padding: 1.5rem; }
  .cta-step     { flex-direction: row; justify-content: flex-start; gap: 0.85rem; }
  .cta-step-t   { text-align: left; }
  .cta-step-div { transform: rotate(90deg); }

  /* Larger tap target already guaranteed on .ham-btn and .mob-x via min-width/min-height */
  .mob-menu { overflow-y: auto; padding: 2rem 0; }
}

/* ── SMALL PHONES (≤400px) ────────────────────────────────────────────
   A handful of buttons use white-space:nowrap for crisp desktop framing.
   On the narrowest phones, let them wrap instead of forcing overflow. */
@media (max-width: 400px) {
  .btn-dk, .btn-lt, .nav-cta, .cta-big-btn, .cta-ghost, .sticky-bar-r {
    white-space: normal;
    text-align: center;
  }
}
