/* ============================================================
   SurgiSoft Solutions — stylesheet
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

:root {
  --amber: #B4253C;
  --deep-amber: #962339;
  --amber-soft: #D64B62;
  --black: #0A0A0A;
  --carbon: #141414;
  --carbon-2: #1A1A1A;
  --white: #FFFFFF;
  --muted: rgba(255,255,255,0.6);
  --muted-2: rgba(255,255,255,0.45);
  --line: rgba(255,255,255,0.08);
  --line-soft: rgba(255,255,255,0.05);
  --line-dark: rgba(255,255,255,0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  touch-action: manipulation;
  overflow-x: clip;
  overscroll-behavior-x: none;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--black);
  color: var(--black);
  overflow-x: clip;
  overscroll-behavior-x: none;
  -webkit-overflow-scrolling: touch;
  -webkit-tap-highlight-color: transparent;
}

::selection { background: rgba(180,37,60,0.3); color: var(--white); }
::-moz-selection { background: rgba(180,37,60,0.3); color: var(--white); }

/* keyboard focus — visible for a11y, hidden for mouse users */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible,
.nav-cta:focus-visible,
.btn-text:focus-visible {
  outline-offset: 4px;
}
.audience-tile:focus-visible,
.portfolio-card:focus-visible,
.feature-card:focus-visible {
  outline-offset: 2px;
}

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

/* ── LAYOUT ── */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(24px, 5vw, 64px); }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 clamp(24px, 5vw, 64px); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 18px;
  border: 2px solid transparent; border-radius: 100px;
  font-family: inherit; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer;
  transition: color 0.25s, background 0.35s var(--ease), box-shadow 0.35s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--amber); color: var(--white); border-color: var(--amber);
  box-shadow: 0 2px 8px rgba(180,37,60,0.2);
}
.btn-primary:hover {
  background: var(--white); color: var(--amber);
  box-shadow: 0 12px 36px rgba(180,37,60,0.3), 0 4px 12px rgba(180,37,60,0.15);
}
/* on the red contact scene: original white-on-red coloring */
.section-amber .btn-primary {
  background: var(--white); color: var(--deep-amber); border-color: var(--white);
}
.section-amber .btn-primary:hover {
  background: transparent; color: var(--white); border-color: var(--white);
}
.btn-ghost {
  background: transparent; color: var(--white); border-color: rgba(255,255,255,0.2);
}
.btn-ghost:hover {
  background: var(--white); color: var(--black); border-color: var(--white);
  transform: translateY(-3px);
}
.btn-text {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--deep-amber); text-decoration: none;
  transition: gap 0.3s var(--ease), color 0.3s;
}
.btn-text:hover { gap: 14px; color: var(--amber); }
.section-dark .btn-text,
.section-amber .btn-text,
.hero .btn-text { color: var(--amber); }
.section-dark .btn-text:hover,
.hero .btn-text:hover { color: #D64B62; }
.btn-text .arrow { display: inline-block; transition: transform 0.3s var(--ease); }
.btn-text:hover .arrow { transform: translateX(4px); }

/* ── LABELS & BARS ── */
.label {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--amber); display: block;
}
.bar { height: 4px; border-radius: 2px; }
.bar-56 { width: 56px; }
.bar-amber { background: var(--amber); }

/* ── REVEAL — static. Premium = no slide-in theatrics. ── */
.reveal { opacity: 1; transform: none; transition: none; }
.reveal.visible { opacity: 1; transform: none; }
.stagger > *.reveal { transition-delay: 0 !important; }

/* hero entrance — single graceful fade on page load, no stagger */
.hero-anim { opacity: 0; animation: heroFade 0.7s var(--ease) 0.1s forwards; }
@keyframes heroFade { to { opacity: 1; } }

/* ══════════════════════════════════════════════════ NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10000;  /* above mobile menu so toggle is always clickable */
  padding: calc(16px + env(safe-area-inset-top, 0px)) max(clamp(32px, 6vw, 80px), env(safe-area-inset-right, 0px)) 16px max(clamp(32px, 6vw, 80px), env(safe-area-inset-left, 0px));
  display: flex; align-items: center;
  background: rgba(10,10,10,0.85);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.4s, box-shadow 0.4s;
}
nav.scrolled {
  background: rgba(10,10,10,0.98);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.nav-inner {
  width: 100%; max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--white);
  font-weight: 800; font-size: 0.95rem; letter-spacing: 0.01em;
}
.nav-logo-mark {
  width: 34px; height: 34px;
  display: inline-block;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(180,37,60,0.35));
  transition: transform 0.3s var(--ease), filter 0.3s;
}
.nav-logo:hover .nav-logo-mark {
  transform: translateY(-1px);
  filter: drop-shadow(0 4px 14px rgba(180,37,60,0.5));
}
.nav-logo-mark img,
.nav-logo-mark svg { width: 100%; height: 100%; display: block; }
.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none;
  padding: 5px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 4px 24px rgba(0,0,0,0.25);
}
.nav-links a {
  display: inline-block;
  color: rgba(255,255,255,0.65); text-decoration: none;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 9px 18px; border-radius: 100px;
  transition: color 0.25s, background 0.35s var(--ease), box-shadow 0.35s;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.07); }
.nav-links a.active {
  color: var(--white);
  background: linear-gradient(180deg, rgba(180,37,60,0.4), rgba(180,37,60,0.22));
  box-shadow: 0 0 16px rgba(180,37,60,0.28), inset 0 1px 0 rgba(255,255,255,0.12);
}
.nav-cta.active {
  background: var(--amber); color: var(--white);
  box-shadow: 0 4px 20px rgba(180,37,60,0.45);
}
/* CTA — nav-pill geometry, original amber-outline coloring */
.nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 18px; border: 2px solid var(--amber);
  border-radius: 100px;
  background: transparent;
  color: var(--white); font-family: inherit; font-size: 0.78rem;
  font-weight: 600; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: color 0.25s, background 0.35s var(--ease), box-shadow 0.35s;
}
.nav-cta:hover {
  background: var(--amber); color: var(--white);
  box-shadow: 0 8px 28px rgba(180,37,60,0.35), 0 2px 8px rgba(180,37,60,0.15);
}
/* hamburger / close — instant tap, zero layout shift, zero iOS tap delay */
.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  position: relative;
  width: 44px; height: 44px;
  padding: 0; margin: 0;
  background: none; border: 0; outline: 0;
  color: var(--white);
  cursor: pointer;
  appearance: none; -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none; -webkit-user-select: none;
  touch-action: manipulation;         /* kills iOS 300ms tap delay */
  flex-shrink: 0;
}
/* Explicitly lock: zero transform/bg/shadow on any state so it never moves */
.nav-toggle:hover,
.nav-toggle:active,
.nav-toggle:focus,
.nav-toggle:focus-visible {
  transform: none;
  background: none;
  box-shadow: none;
  outline: 0;
}
.nav-toggle svg {
  position: absolute;
  top: 50%; left: 50%;
  width: 22px; height: 22px;
  transform: translate(-50%, -50%);
  transition: opacity 0.12s linear;
  pointer-events: none;
  display: block;
}
.nav-toggle .icon-close { opacity: 0; }
.nav-toggle.open .icon-open { opacity: 0; }
.nav-toggle.open .icon-close { opacity: 1; }

/* mobile menu — snappy overlay below nav, no iOS delay */
/* bottom sheet — native-app menu: grabber, drag-to-dismiss, safe-area padding */
.nav-mobile {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.55);             /* solid overlay, no blur (mobile perf) */
  z-index: 9999;                            /* below nav (10000), above feedback widget */
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s linear;
  touch-action: manipulation;
}
.nav-mobile.open { opacity: 1; pointer-events: auto; }
.nav-mobile .sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: #121212;
  border: 1px solid rgba(255,255,255,0.08); border-bottom: 0;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -20px 60px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.06);
  padding: 10px 20px max(env(safe-area-inset-bottom, 0px), 20px);
  transform: translateY(104%);
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0.22, 1);
  will-change: transform;
}
.nav-mobile.open .sheet { transform: translateY(0); }
.nav-mobile .sheet.dragging { transition: none; }
.sheet-grabber {
  width: 40px; height: 5px; border-radius: 3px;
  background: rgba(255,255,255,0.22);
  margin: 4px auto 14px;
}
.nav-mobile ul {
  list-style: none; display: flex; flex-direction: column; gap: 8px;
}
/* rows in the same glass-pill language as the desktop nav */
.nav-mobile a {
  display: flex; align-items: center;
  min-height: 54px; padding: 0 22px;
  color: rgba(255,255,255,0.72); text-decoration: none;
  font-size: 1.02rem; font-weight: 600; letter-spacing: 0;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  transition: color 0.2s, background 0.25s, transform 0.15s;
}
.nav-mobile a:active { transform: scale(0.97); background: rgba(255,255,255,0.09); }
.nav-mobile a.active {
  color: var(--white);
  background: linear-gradient(180deg, rgba(180,37,60,0.4), rgba(180,37,60,0.22));
  box-shadow: 0 0 16px rgba(180,37,60,0.28), inset 0 1px 0 rgba(255,255,255,0.12);
}
.nav-mobile .nav-cta {
  margin-top: 10px; justify-content: center;
  min-height: 54px; font-size: 1.02rem;
  background: var(--amber); border-color: var(--amber); color: var(--white);
}

/* ══════════════════════════════════════════════════ HERO */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  background: var(--black); color: var(--white);
  padding: 168px 0 120px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(180,37,60,0.03) 1px, transparent 1px);
  background-size: 20px 20px; pointer-events: none; z-index: 1;
}

/* hero glow orbs */
.hero-glow-wrap { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-glow { position: absolute; pointer-events: none; will-change: transform, opacity; }
.hero-glow i {
  display: block; width: 100%; height: 100%; border-radius: 50%;
  filter: blur(80px); font-style: normal;
}
.hero-glow::before {
  content: ''; position: absolute; inset: -20px;
  background-image: radial-gradient(rgba(180,37,60,0.45) 1px, transparent 1px);
  background-size: 20px 20px;
  mask-image: radial-gradient(circle at center, black 0%, black 25%, transparent 65%);
  -webkit-mask-image: radial-gradient(circle at center, black 0%, black 25%, transparent 65%);
  border-radius: 50%;
}
/* static ambient glow orbs — no drift */
.hero-glow-1 { width: 800px; height: 800px; top: 5%; left: -5%; opacity: 0.7; }
.hero-glow-1 i { background: radial-gradient(circle, rgba(180,37,60,0.16) 0%, rgba(150,35,57,0.04) 50%, transparent 70%); }
.hero-glow-2 { width: 600px; height: 600px; bottom: 0; right: -5%; opacity: 0.65; }
.hero-glow-2 i { background: radial-gradient(circle, rgba(180,37,60,0.12) 0%, rgba(120,25,45,0.03) 50%, transparent 70%); }
.hero-glow-3 { width: 500px; height: 500px; top: 40%; left: 35%; opacity: 0.55; }
.hero-glow-3 i { background: radial-gradient(circle, rgba(180,37,60,0.10) 0%, transparent 60%); }
.hero-inner { position: relative; z-index: 2; max-width: 900px; }

/* two-column hero: text left, 3D dashboard right */
.hero-grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 120px);
  align-items: center;
  width: 100%;
}
.hero-grid .hero-inner { max-width: none; }
.hero-grid .hero-inner h1 {
  text-wrap: balance;
  hyphens: manual;
}
.hero-visual { min-width: 0; display: flex; justify-content: flex-end; align-items: center; }

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { justify-content: center; }
}

.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 800;
  line-height: 1.08; color: var(--white); letter-spacing: -0.035em;
}
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .bar { margin: 36px 0 32px; }
.hero-desc {
  font-size: clamp(1rem, 1.4vw, 1.15rem); font-weight: 400;
  color: rgba(255,255,255,0.62); line-height: 1.75;
  max-width: 620px; margin-bottom: 44px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* compact hero for subpages */
.hero.compact { min-height: 70vh; padding: 148px 0 80px; }
.hero.compact h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }

/* ══════════════════════════════════════════════════ SECTIONS */
/* true white — alternates black / white / red for section rhythm */
.section-light {
  background: linear-gradient(180deg, #FAFAFA 0%, var(--white) 40%, #F8F7F6 100%);
  color: var(--black); padding: 160px 0;
  position: relative; overflow: hidden;
}
.section-light::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(180,37,60,0.10) 1px, transparent 1px);
  background-size: 20px 20px; pointer-events: none; z-index: 0;
}
.section-light::after {
  content: ''; position: absolute;
  width: 900px; height: 900px; border-radius: 50%;
  background: radial-gradient(circle, rgba(180,37,60,0.09) 0%, transparent 55%);
  top: 0; left: 50%; transform: translate(-50%, -20%);
  pointer-events: none;
}
.section-dark {
  background: var(--black); color: var(--white); padding: 160px 0;
  position: relative; overflow: hidden;
}
.section-dark::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(180,37,60,0.05) 1px, transparent 1px);
  background-size: 20px 20px; pointer-events: none;
}
.section-dark::after {
  content: ''; position: absolute;
  width: 800px; height: 800px; border-radius: 50%;
  background: radial-gradient(circle, rgba(150,35,57,0.1) 0%, transparent 60%);
  top: 0; left: 50%; transform: translate(-50%, -20%);
  pointer-events: none;
}
.section-light .wrap, .section-dark .wrap { position: relative; z-index: 1; }
.section-light .sec-head p,
.section-light .prose p { color: #5F5F5F; }
.section-light .label { color: var(--amber); }
.section-light h2 { color: var(--black); }

/* CTA / amber section */
/* CTA section — monochromatic red */
.section-amber {
  background: linear-gradient(180deg, #8C1F32 0%, var(--deep-amber) 40%, #7A1B2D 100%);
  padding: 120px 0; text-align: center; position: relative; overflow: hidden;
  color: var(--white);
}
.section-amber::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(0,0,0,0.15) 1px, transparent 1px);
  background-size: 22px 22px; pointer-events: none;
}
.section-amber::after {
  content: ''; position: absolute;
  width: 900px; height: 900px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  pointer-events: none;
}
.section-amber .wrap { position: relative; z-index: 1; }
.section-amber h2 { color: var(--white); }
.section-amber p { color: rgba(255,255,255,0.85); }
.section-amber .label { color: rgba(255,255,255,0.55); }
.section-amber .bar { background: rgba(255,255,255,0.4); }

/* section edge accent */
.section-edge { height: 0; position: relative; z-index: 10; overflow: visible; }
.section-edge::after {
  content: ''; position: absolute; left: 50%; top: -0.5px;
  transform: translateX(-50%); width: min(500px, 70%); height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(180,37,60,0.35) 35%, rgba(180,37,60,0.45) 50%, rgba(180,37,60,0.35) 65%, transparent 95%);
}

/* ══════════════════════════════════════════════════ SECTION HEAD */
.sec-head { margin-bottom: 60px; text-align: center; }
.sec-head.left { text-align: left; }
.sec-head .label {
  font-size: clamp(1.5rem, 3.2vw, 2.3rem); font-weight: 700;
  line-height: 1.15; letter-spacing: 0.06em;
}
.sec-head h2 {
  font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800;
  line-height: 1.1; margin-top: 20px; letter-spacing: -0.035em;
}
.sec-head .bar { margin: 32px auto 0; }
.sec-head.left .bar { margin-left: 0; margin-right: auto; }
.sec-head p {
  font-size: 1rem; line-height: 1.8;
  max-width: 640px; margin: 28px auto 0; color: var(--muted);
}
.sec-head.left p { margin-left: 0; }
.section-dark .sec-head p { color: rgba(255,255,255,0.55); }

/* ══════════════════════════════════════════════════ PROSE */
.prose { max-width: 680px; margin: 0 auto; text-align: center; }
.prose p {
  font-size: clamp(1rem, 1.3vw, 1.08rem); line-height: 1.85;
  margin-bottom: 20px;
}
.prose p:last-child { margin-bottom: 0; }
.section-light .prose p { color: #5F5F5F; }
.section-light .prose strong { color: var(--black); }
.section-dark .prose p { color: rgba(255,255,255,0.62); }

/* ══════════════════════════════════════════════════ FEATURE CARDS */
.feature-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px;
}
.feature-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 48px 40px;
  transition: background 0.4s, border-color 0.4s, transform 0.4s var(--ease), box-shadow 0.4s;
  position: relative;
  text-align: left;
}
.feature-card::before {
  content: ''; position: absolute; inset: 0; border-radius: var(--radius);
  background: radial-gradient(ellipse at 50% 0%, rgba(180,37,60,0.06) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.4s;
  pointer-events: none;
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(180,37,60,0.25);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3), 0 4px 16px rgba(180,37,60,0.08), 0 0 0 1px rgba(180,37,60,0.1);
}
.feature-card .icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(180,37,60,0.18), rgba(150,35,57,0.08));
  border: 1px solid rgba(180,37,60,0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--amber); margin-bottom: 28px;
  font-weight: 700; font-size: 0.75rem; letter-spacing: 0.1em;
  transition: filter 0.4s var(--ease);
}
.feature-card .icon svg {
  width: 24px; height: 24px; stroke: currentColor;
  filter: drop-shadow(0 0 6px rgba(180,37,60,0.2));
  transition: filter 0.3s;
}
.feature-card:hover .icon svg { animation: iconGlow 1s var(--ease) forwards; }
@keyframes iconGlow {
  0%   { filter: drop-shadow(0 0 6px rgba(180,37,60,0.2)); }
  40%  { filter: drop-shadow(0 0 18px rgba(180,37,60,0.5)) drop-shadow(0 0 4px rgba(180,37,60,0.3)); }
  100% { filter: drop-shadow(0 0 8px rgba(180,37,60,0.2)); }
}
.feature-card h3 {
  font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em;
  color: var(--white); margin-bottom: 14px;
}
.feature-card .card-bar {
  width: 40px; height: 3px;
  background: linear-gradient(90deg, var(--amber), var(--deep-amber));
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(180,37,60,0.2);
  margin-bottom: 18px;
}
.feature-card p {
  font-size: 0.98rem; line-height: 1.75; color: rgba(255,255,255,0.6);
}

/* light-section feature card — same dark card, slightly brighter background */
.section-light .feature-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.section-light .feature-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(180,37,60,0.3);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 4px 16px rgba(180,37,60,0.1);
}

/* ══════════════════════════════════════════════════ SCREENSHOT FRAME */
.screenshot {
  position: relative; border-radius: 14px; overflow: hidden;
  background: #151515;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 10px 30px rgba(0,0,0,0.3);
  aspect-ratio: 16 / 10;
  display: flex; flex-direction: column;
}
.screenshot-chrome {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px;
  background: rgba(0,0,0,0.4);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.screenshot-chrome .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
}
.screenshot-body {
  flex: 1; display: flex; align-items: center; justify-content: center;
  background:
    linear-gradient(180deg, rgba(180,37,60,0.04) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(180,37,60,0.12), transparent 60%),
    #101010;
  color: rgba(255,255,255,0.35);
  font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 600;
  padding: 40px; text-align: center;
  position: relative;
}
.screenshot-body::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(180,37,60,0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at center, black 0%, transparent 70%);
  pointer-events: none;
}
.screenshot-body span { position: relative; z-index: 1; max-width: 80%; }

/* .section-light is dark now — no light-mode screenshot overrides */

/* ══════════════════════════════════════════════════ STATS STRIP */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; text-align: center;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  padding: 40px 0;
}
.stat { padding: 20px 16px; position: relative; }
.stat + .stat::before {
  content: ''; position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 1px; background: var(--line-dark);
}
.stat-num {
  font-size: clamp(2rem, 3.5vw, 2.6rem); font-weight: 800;
  color: var(--amber); letter-spacing: -0.03em; line-height: 1;
}
.stat-label {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.55); margin-top: 12px; font-weight: 600;
}
/* section-light (dark-elevated) keeps the same borders as section-dark */

.stats-context {
  text-align: center; margin-top: 24px;
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.45); font-weight: 600;
}
.section-light .stats-context { color: #5F5F5F; }

/* ══════════════════════════════════════════════════ AUDIENCE TILES (home) */
.audience-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 24px;
}
.audience-tile {
  display: block; text-decoration: none; color: var(--white);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 44px 40px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.3s, background 0.4s;
  position: relative; overflow: hidden;
}
.audience-tile::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(180,37,60,0.08), transparent 60%);
  opacity: 0; transition: opacity 0.4s;
}
.audience-tile:hover::before { opacity: 1; }
.audience-tile:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.05);
  border-color: rgba(180,37,60,0.3);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3), 0 4px 16px rgba(180,37,60,0.12);
}
.audience-tile > * { position: relative; z-index: 1; }
.audience-tile .tag {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 16px;
}
.audience-tile h3 {
  font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 14px; line-height: 1.2;
}
.audience-tile p {
  font-size: 0.95rem; line-height: 1.65; color: rgba(255,255,255,0.6);
  margin-bottom: 28px;
}
.audience-tile.primary {
  background: linear-gradient(135deg, rgba(180,37,60,0.12) 0%, rgba(180,37,60,0.03) 60%, transparent 100%);
  border-color: rgba(180,37,60,0.2);
}
.audience-tile.primary h3 { font-size: 1.8rem; }
.audience-tile.primary p { color: rgba(255,255,255,0.7); }
.audience-tile.primary::before {
  background: linear-gradient(135deg, rgba(180,37,60,0.2), transparent 60%);
}

/* ══════════════════════════════════════════════════ STEP / COMPARE */
.compare-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
}
.compare-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius); padding: 44px 40px;
  position: relative; color: var(--white);
}
.compare-card.bad { border-top: 3px solid rgba(217,80,80,0.55); }
.compare-card.good {
  border-top: 3px solid var(--amber);
  background: linear-gradient(135deg, rgba(180,37,60,0.06) 0%, rgba(255,255,255,0.02) 60%);
  border-color: rgba(180,37,60,0.2);
}
.compare-card .tag {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; margin-bottom: 18px;
}
.compare-card.bad .tag { color: rgba(217,80,80,0.9); }
.compare-card.good .tag { color: var(--amber); }
.compare-card h3 {
  font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 18px; line-height: 1.25; color: var(--white);
}
.compare-card ul { list-style: none; margin-top: 8px; }
.compare-card li {
  font-size: 0.98rem; line-height: 1.65; color: rgba(255,255,255,0.62);
  padding: 10px 0 10px 26px; position: relative;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.compare-card li:first-child { border-top: 0; }
.compare-card li::before {
  position: absolute; left: 0; top: 12px;
  font-weight: 700; font-size: 0.9rem;
}
.compare-card.bad li::before { content: '✕'; color: rgba(217,80,80,0.8); }
.compare-card.good li::before { content: '✓'; color: var(--amber); }

/* ══════════════════════════════════════════════════ STEP / NUMBERED */
.outcome-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.outcome {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius); padding: 32px 28px;
  display: flex; gap: 20px; align-items: flex-start;
  color: var(--white);
  transition: background 0.3s var(--ease), border-color 0.3s;
}
.outcome:hover { background: rgba(255,255,255,0.05); border-color: rgba(180,37,60,0.2); }
.outcome-num {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(180,37,60,0.15); color: var(--amber);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.9rem;
  border: 1px solid rgba(180,37,60,0.3);
}
.outcome h4 {
  font-size: 1.05rem; font-weight: 700; margin-bottom: 8px;
  letter-spacing: -0.015em; color: var(--white);
}
.outcome p { font-size: 0.92rem; line-height: 1.65; color: rgba(255,255,255,0.62); }

/* ══════════════════════════════════════════════════ PORTFOLIO (about) */
.portfolio {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 48px;
}
.portfolio-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius); padding: 36px 32px;
  display: flex; flex-direction: column; gap: 16px;
  color: var(--white);
  transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.3s, background 0.4s;
}
.portfolio-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.05);
  border-color: rgba(180,37,60,0.25);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3), 0 4px 16px rgba(180,37,60,0.08);
}
.portfolio-card .name {
  font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em; color: var(--white);
}
.portfolio-card .role {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--amber);
}
.portfolio-card p {
  font-size: 0.92rem; line-height: 1.65; color: rgba(255,255,255,0.62); flex: 1;
}
.portfolio-card .link {
  font-size: 0.78rem; font-weight: 600; color: var(--amber);
  text-decoration: none; letter-spacing: 0.02em;
}
.portfolio-card .link:hover { color: var(--deep-amber); }
.portfolio-card.self {
  background: var(--black); color: var(--white);
  border-color: transparent;
}
.portfolio-card.self .name { color: var(--white); }
.portfolio-card.self p { color: rgba(255,255,255,0.55); }

/* ══════════════════════════════════════════════════ CONTACT FORM */
.form {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius); padding: 44px 44px;
  max-width: 560px; margin: 0 auto;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
  backdrop-filter: blur(12px);
}
.form-row { margin-bottom: 20px; }
.form label {
  display: block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-bottom: 8px;
}
.form input, .form textarea {
  width: 100%; font-family: inherit;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 10px;
  padding: 14px 16px; font-size: 16px;          /* 16px: prevents iOS Safari auto-zoom on focus */
  color: var(--white); transition: border 0.2s, background 0.2s;
}
.form input::placeholder, .form textarea::placeholder { color: rgba(255,255,255,0.3); }
.form input:focus, .form textarea:focus {
  outline: none; border-color: var(--amber);
  background: rgba(0,0,0,0.6);
  box-shadow: 0 0 0 4px rgba(180,37,60,0.12);
}
.form textarea { resize: vertical; min-height: 120px; }
.form .form-submit {
  width: 100%; margin-top: 8px;
  height: 54px;
}
.form-note {
  text-align: center; font-size: 0.82rem; color: rgba(255,255,255,0.5);
  line-height: 1.7; margin-bottom: 32px;
  max-width: 540px; margin-left: auto; margin-right: auto;
}

/* ══════════════════════════════════════════════════ FOOTER */
footer {
  background: var(--black); color: rgba(255,255,255,0.6);
  padding: 80px 0 60px;
  padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255,255,255,0.05);
  position: relative; overflow: hidden;
}
footer::before {
  content: ''; position: absolute; top: -1px; left: 50%;
  transform: translateX(-50%); width: 140px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(180,37,60,0.6), transparent);
}
footer::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(180,37,60,0.04) 1px, transparent 1px);
  background-size: 20px 20px; pointer-events: none;
}
.foot-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px;
  position: relative; z-index: 1;
}
.foot-brand .nav-logo { color: var(--white); }
.foot-brand p {
  font-size: 0.82rem; line-height: 1.7; color: rgba(255,255,255,0.45);
  margin-top: 18px; max-width: 280px;
}
.foot-col h5 {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(255,255,255,0.55);
  margin-bottom: 18px;
}
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-col a {
  color: rgba(255,255,255,0.75); text-decoration: none;
  font-size: 0.9rem; transition: color 0.2s;
}
.foot-col a:hover { color: var(--amber); }
.foot-bottom {
  margin-top: 60px; padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; justify-content: space-between; align-items: center;
  position: relative; z-index: 1; gap: 20px; flex-wrap: wrap;
}
.foot-bottom p {
  font-size: 0.76rem; color: rgba(255,255,255,0.35); letter-spacing: 0.02em;
}
.foot-bottom .parent {
  color: rgba(255,255,255,0.5); font-weight: 600; font-size: 0.82rem;
}
.foot-bottom .parent a { color: var(--amber); text-decoration: none; }

/* ══════════════════════════════════════════════════ SCROLL PROGRESS */
.scroll-progress { display: none; }

/* ══════════════════════════════════════════════════ RESPONSIVE */
@media (hover: none) {
  .feature-card:hover { transform: none; box-shadow: none; background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.06); }
  .feature-card:hover::before { opacity: 0; }
  .feature-card:hover .icon svg { animation: none; }
  .btn:hover { transform: none; }
  .btn-primary:hover { background: var(--amber); color: var(--white); box-shadow: 0 2px 8px rgba(180,37,60,0.2); }
  .section-amber .btn-primary:hover { background: var(--white); color: var(--deep-amber); }
  .nav-cta:hover { background: transparent; color: var(--white); box-shadow: none; }
  .audience-tile:hover, .portfolio-card:hover { transform: none; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-glow, .section-amber::after { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

@media (max-width: 1024px) {
  .section-light, .section-dark { padding: 120px 0; }
  .section-amber { padding: 100px 0; }
  .hero { padding: 148px 0 100px; }
  .feature-grid { gap: 20px; }
  .feature-card { padding: 40px 32px; }
  .audience-grid { grid-template-columns: 1fr 1fr; }
  .audience-tile.primary { grid-column: 1 / -1; }
  .compare-grid { grid-template-columns: 1fr; }
  .outcome-list { grid-template-columns: 1fr; }
  .portfolio { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .foot-brand { grid-column: 1 / -1; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  nav {
    background: rgba(10,10,10,0.96);
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }

  /* Mobile nav: ONLY logo + hamburger. CTA lives inside the menu overlay.
     (Hides header CTA so nav doesn't overflow; keeps the CTA inside .nav-mobile.) */
  nav .nav-inner > .nav-cta { display: none; }
}

@media (max-width: 768px) {
  nav { padding: calc(12px + env(safe-area-inset-top, 0px)) 20px 12px; }
  .wrap { padding: 0 24px; }
  .section-light, .section-dark { padding: 96px 0; }
  .section-amber { padding: 80px 0; }
  .hero { min-height: 100svh; padding: 120px 0 80px; }
  .hero.compact { min-height: auto; padding: 120px 0 60px; }
  .hero h1 { font-size: clamp(1.9rem, 7vw, 2.8rem); }
  .hero-desc { font-size: 1rem; margin-bottom: 32px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .sec-head { margin-bottom: 44px; }
  .sec-head .label { font-size: clamp(1.2rem, 4.6vw, 1.75rem); }
  .sec-head h2 { font-size: clamp(1.7rem, 6vw, 2.3rem); }
  .feature-grid { grid-template-columns: 1fr; gap: 16px; }
  .feature-card { padding: 32px 26px; }
  .audience-grid { grid-template-columns: 1fr; }
  .audience-tile { padding: 36px 30px; }
  .audience-tile.primary h3 { font-size: 1.5rem; }
  .stats { grid-template-columns: repeat(2, 1fr); padding: 28px 0; gap: 20px 0; }
  .stat + .stat::before { display: none; }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid var(--line-dark); padding-top: 28px; }
  .section-light .stat:nth-child(3), .section-light .stat:nth-child(4) { border-top-color: var(--line); }
  .compare-card, .outcome { padding: 28px 24px; }
  .portfolio-card { padding: 30px 26px; }
  .form { padding: 32px 28px; }
  .foot-grid { grid-template-columns: 1fr; gap: 36px; }
  .foot-brand { grid-column: 1; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero-actions .btn { width: 100%; }
  .btn { height: 52px; padding: 0 32px; font-size: 0.78rem; }
  .btn-primary, .btn-ghost { width: auto; }
}

@media (max-width: 420px) {
  .wrap { padding: 0 20px; }
  nav { padding-left: 16px; padding-right: 16px; }
  .hero h1, .hero.cinematic h1 { font-size: clamp(1.6rem, 7.5vw, 1.9rem); line-height: 1.12; }
  .sec-head .label { font-size: clamp(1.05rem, 4.4vw, 1.4rem); }
  .sec-head h2 { font-size: clamp(1.45rem, 5.8vw, 1.85rem); }
  .feature-card { padding: 28px 22px; }
  .audience-tile { padding: 32px 26px; }
  .btn { height: 50px; padding: 0 26px; font-size: 0.74rem; }
  .nav-logo-mark { width: 30px; height: 30px; }
  .nav-logo { font-size: 0.88rem; gap: 8px; }
}

/* ══════════════════════════════════════════════════ SINGLE-PAGE (copy-doc rebuild) */

/* Full-viewport sections — each scene owns the screen */
.section-light, .section-dark, .section-amber {
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
}
.section-light > .wrap, .section-dark > .wrap, .section-amber > .wrap { width: 100%; }

/* Rendered text must match the copy document exactly — no CSS case transforms */
.btn { text-transform: none; }
.label {
  text-transform: none;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
}

/* Fixed nav offset for in-page anchors */
/* full-viewport sections land flush at the top of the frame — the fixed nav
   overlays the section's padding zone, never its centered content */
section[id] { scroll-margin-top: 0; }

/* ── Hero workflow motif — four stages activate as one packet flows through ── */
.hero-flow {
  position: relative;
  width: min(390px, 100%);
}
.hero-flow::before {
  content: ''; position: absolute; inset: -40px;
  background: radial-gradient(circle at 50% 45%, rgba(180,37,60,0.16) 0%, transparent 65%);
  animation: flowAmbient 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes flowAmbient {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}
.hero-flow-inner {
  position: relative;
  padding: 44px 40px;
  background: linear-gradient(160deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 60%, rgba(180,37,60,0.04) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(180,37,60,0.07), inset 0 1px 0 rgba(255,255,255,0.06);
  display: flex; flex-direction: column; gap: 34px;
  animation: flowFloat 7s ease-in-out infinite;
}
@keyframes flowFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}
/* spine draws itself on load, then carries the packet */
.flow-spine {
  position: absolute;
  top: 66px; bottom: 66px; left: 50px;
  width: 2px;
  background: linear-gradient(180deg, rgba(180,37,60,0.55), rgba(180,37,60,0.14));
  border-radius: 1px;
  transform: scaleY(0); transform-origin: top;
  animation: spineDraw 0.9s var(--ease) 0.5s forwards;
}
@keyframes spineDraw { to { transform: scaleY(1); } }
/* the case data: one packet, glowing tail, end to end — 6s cycle */
.flow-pulse {
  position: absolute;
  left: 50%; top: 0;
  width: 9px; height: 9px;
  margin-left: -4.5px;
  border-radius: 50%;
  background: #FFDDE2;
  box-shadow: 0 0 14px 4px rgba(214,75,98,0.75), 0 0 34px 10px rgba(180,37,60,0.3);
  opacity: 0;
  animation: flowTravel 6s linear 1.6s infinite;
}
.flow-pulse::before {
  content: ''; position: absolute;
  left: 50%; bottom: 100%; transform: translateX(-50%);
  width: 3px; height: 46px; border-radius: 2px;
  background: linear-gradient(0deg, rgba(214,75,98,0.85), transparent);
}
@keyframes flowTravel {
  0%    { top: 0; opacity: 0; }
  4%    { opacity: 1; }
  76%   { top: 100%; opacity: 1; }
  82%   { top: 100%; opacity: 0; }
  100%  { top: 100%; opacity: 0; }
}
/* stage rows cascade in on load */
.flow-stage {
  position: relative;
  display: flex; align-items: center; gap: 16px;
  opacity: 0; transform: translateX(16px);
  animation: stageIn 0.6s var(--ease) forwards;
}
.flow-stage.fs-1 { animation-delay: 0.55s; }
.flow-stage.fs-2 { animation-delay: 0.7s; }
.flow-stage.fs-3 { animation-delay: 0.85s; }
.flow-stage.fs-4 { animation-delay: 1s; }
@keyframes stageIn {
  to { opacity: 1; transform: translateX(0); }
}
/* nodes sit on the spine; each fires a ripple as the packet arrives */
.flow-node {
  position: relative;
  width: 22px; height: 22px; flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--amber);
  background: var(--black);
  z-index: 1;
}
.flow-node::after {
  content: '';
  position: absolute; inset: 5px; border-radius: 50%;
  background: var(--amber);
  opacity: 0.35;
  animation: nodeHit 6s linear infinite;
}
.flow-node::before {
  content: '';
  position: absolute; inset: -2px; border-radius: 50%;
  border: 2px solid var(--amber-soft);
  opacity: 0;
  animation: nodeRipple 6s linear infinite;
}
.fs-1 .flow-node::after, .fs-1 .flow-node::before { animation-delay: 1.6s; }
.fs-2 .flow-node::after, .fs-2 .flow-node::before { animation-delay: 3.12s; }
.fs-3 .flow-node::after, .fs-3 .flow-node::before { animation-delay: 4.64s; }
.fs-4 .flow-node::after, .fs-4 .flow-node::before { animation-delay: 6.16s; }
@keyframes nodeHit {
  0%, 2%       { opacity: 0.35; transform: scale(0.9); background: var(--amber); }
  5%           { opacity: 1; transform: scale(1.15); background: #FFDDE2; }
  14%, 100%    { opacity: 0.35; transform: scale(0.9); background: var(--amber); }
}
@keyframes nodeRipple {
  0%, 2%     { opacity: 0.9; transform: scale(0.8); }
  16%        { opacity: 0; transform: scale(2.4); }
  17%, 100%  { opacity: 0; transform: scale(0.8); }
}
/* icon chips light up in sync with their node */
.fs-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 11px;
  background: rgba(180,37,60,0.1);
  border: 1px solid rgba(180,37,60,0.28);
  display: flex; align-items: center; justify-content: center;
  animation: iconLive 6s linear infinite;
}
.fs-1 .fs-icon { animation-delay: 1.6s; }
.fs-2 .fs-icon { animation-delay: 3.12s; }
.fs-3 .fs-icon { animation-delay: 4.64s; }
.fs-4 .fs-icon { animation-delay: 6.16s; }
@keyframes iconLive {
  0%, 2%    { background: rgba(180,37,60,0.1); border-color: rgba(180,37,60,0.28); box-shadow: none; }
  6%        { background: rgba(180,37,60,0.32); border-color: var(--amber-soft); box-shadow: 0 0 22px rgba(180,37,60,0.4); }
  18%, 100% { background: rgba(180,37,60,0.1); border-color: rgba(180,37,60,0.28); box-shadow: none; }
}
.fs-icon svg {
  width: 21px; height: 21px;
  stroke: var(--amber-soft); fill: none;
  stroke-linecap: round; stroke-linejoin: round;
}
.flow-label {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--white);
}

/* ── Three pillars ── */
.feature-grid.pillars { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) {
  .feature-grid.pillars { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}

/* ── Contact ── */
.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.contact-email {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.35);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.contact-email:hover { color: var(--white); border-color: var(--white); }

/* ── Simplified footer ── */
.foot-single {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  position: relative;
  z-index: 1;
}
.foot-single .nav-logo { color: var(--white); }
.foot-tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}
.foot-bottom { justify-content: center; text-align: center; }

/* Hero flow on stacked layouts */
@media (max-width: 1024px) {
  .hero-visual { justify-content: center; margin-top: 56px; }
  .hero-flow { width: min(340px, 100%); }
  .hero-flow-inner { padding: 36px 30px; gap: 28px; }
  .flow-spine { left: 40px; top: 56px; bottom: 56px; }
}

/* ── Real brand logo (logo.png variants) ── */
.nav-logo .logo-img {
  height: 32px; width: auto; display: block;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.35));
}
footer .nav-logo .logo-img { height: 36px; }
@media (max-width: 420px) {
  .nav-logo .logo-img { height: 26px; }
}

/* ══════════════════════════════════════════════════ SECTION VISUALS
   Every visual explains its section's copy — no decoration for its own sake. */

.viz { position: relative; }

/* ── THE PROBLEM: data dies at the edge of every disconnected tool ── */
.viz-broken { max-width: 860px; margin: 72px auto 0; }
.pipe { display: flex; align-items: stretch; justify-content: center; }
.pipe-box {
  position: relative; flex: 1; overflow: hidden;
  border: 1.5px solid rgba(10,10,10,0.18); border-radius: 12px;
  padding: 20px 8px; text-align: center; background: var(--white);
}
.pipe-box span {
  font-size: 0.8rem; font-weight: 700; color: var(--black);
  letter-spacing: 0.01em; position: relative; z-index: 1;
}
.pipe-gap {
  width: clamp(20px, 4vw, 44px); flex-shrink: 0; position: relative;
}
.pipe-gap::before {
  content: ''; position: absolute; top: 50%; left: 15%; right: 15%;
  border-top: 2px dashed rgba(180,37,60,0.45);
}
.pipe-gap::after {
  content: '✕'; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.65rem; font-weight: 800; color: var(--amber);
  background: #FDFDFD; padding: 0 2px;
}
/* the case data: keyed in, travels, dies at the box's edge — over and over */
.pipe-dot {
  position: absolute; left: 0; top: 70%;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber);
  opacity: 0;
  animation: dataDies 7s linear infinite;
}
.pipe-box.b2 .pipe-dot { animation-delay: 1.75s; }
.pipe-box.b3 .pipe-dot { animation-delay: 3.5s; }
.pipe-box.b4 .pipe-dot { animation-delay: 5.25s; }
@keyframes dataDies {
  0%    { left: 4%; opacity: 0; }
  3%    { opacity: 1; }
  20%   { left: 88%; opacity: 1; }
  24%   { left: 96%; opacity: 0; }
  100%  { left: 96%; opacity: 0; }
}

/* ── WHAT WE'RE BUILDING: one unbroken pipeline, data flows through all four ── */
.viz-connected { max-width: 860px; margin: 0 auto 72px; }
.pipe.solid { position: relative; }
.pipe.solid .pipe-box {
  background: rgba(255,255,255,0.04);
  border-color: rgba(180,37,60,0.4);
}
.pipe.solid .pipe-box span { color: var(--white); }
.pipe.solid .pipe-box { animation: stageGlow 6s ease-in-out infinite; }
.pipe.solid .pipe-box.s2 { animation-delay: 1.5s; }
.pipe.solid .pipe-box.s3 { animation-delay: 3s; }
.pipe.solid .pipe-box.s4 { animation-delay: 4.5s; }
@keyframes stageGlow {
  0%, 30%, 100% { box-shadow: none; border-color: rgba(180,37,60,0.4); }
  10%           { box-shadow: 0 0 24px rgba(180,37,60,0.35); border-color: var(--amber-soft); }
}
.pipe-link {
  width: clamp(20px, 4vw, 44px); flex-shrink: 0; position: relative;
}
.pipe-link::before {
  content: ''; position: absolute; top: 50%; left: 0; right: 0;
  border-top: 2px solid rgba(180,37,60,0.7);
}
.pipe-runner {
  position: absolute; top: calc(50% - 5px); left: 0;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--amber-soft);
  box-shadow: 0 0 14px 4px rgba(214,75,98,0.5);
  animation: runnerFlow 6s linear infinite;
}
@keyframes runnerFlow {
  0%   { left: 2%; opacity: 0; }
  4%   { opacity: 1; }
  94%  { opacity: 1; }
  100% { left: 97%; opacity: 0; }
}

/* ── WHO IT'S FOR: four actors, one shared case at the center ── */
.viz-eco {
  position: relative; width: min(520px, 100%); height: 300px;
  margin: 64px auto 0;
}
.eco-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.eco-lines .el {
  stroke: rgba(180,37,60,0.35); stroke-width: 1.5;
  stroke-dasharray: 6 8;
  animation: ecoPulse 3.2s linear infinite;
}
.eco-lines .el2 { animation-delay: 0.8s; }
.eco-lines .el3 { animation-delay: 1.6s; }
.eco-lines .el4 { animation-delay: 2.4s; }
@keyframes ecoPulse {
  0%   { stroke-dashoffset: 56; stroke: rgba(180,37,60,0.25); }
  50%  { stroke: rgba(180,37,60,0.65); }
  100% { stroke-dashoffset: 0; stroke: rgba(180,37,60,0.25); }
}
.eco-hub {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--white);
  border: 1.5px solid rgba(180,37,60,0.35);
  box-shadow: 0 8px 32px rgba(180,37,60,0.18);
  display: flex; align-items: center; justify-content: center;
  animation: hubBreathe 4s ease-in-out infinite;
}
.eco-hub img { width: 42px; height: 42px; }
@keyframes hubBreathe {
  0%, 100% { box-shadow: 0 8px 32px rgba(180,37,60,0.15); }
  50%      { box-shadow: 0 8px 44px rgba(180,37,60,0.35); }
}
.eco-node { position: absolute; display: flex; align-items: center; gap: 10px; }
.eco-node i {
  width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--amber); background: var(--white);
}
.eco-node span { font-size: 0.85rem; font-weight: 700; color: var(--black); }
.eco-node.en1 { left: 24px; top: 48px; }
.eco-node.en2 { right: 24px; top: 48px; flex-direction: row-reverse; }
.eco-node.en3 { left: 24px; bottom: 48px; }
.eco-node.en4 { right: 24px; bottom: 48px; flex-direction: row-reverse; }

/* ── ABOUT: the fragmented rhythm resolving into a smooth flow ── */
.viz-ekg { max-width: 640px; margin: 64px auto 0; }
.viz-ekg svg { width: 100%; height: auto; display: block; }
.ekg-base { stroke: rgba(255,255,255,0.1); stroke-width: 2; }
.ekg-draw {
  stroke: var(--amber-soft); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  filter: drop-shadow(0 0 6px rgba(214,75,98,0.5));
  animation: ekgDraw 5s ease-in-out infinite;
}
@keyframes ekgDraw {
  0%   { stroke-dashoffset: 900; }
  70%  { stroke-dashoffset: 0; }
  88%  { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

/* ── CONTACT: two parties, a line connecting them ── */
.viz-talk {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin: 8px 0 40px;
}
.viz-talk svg { width: 200px; height: 20px; }
.talk-node {
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.9); background: transparent;
}
.talk-node.tn2 { background: rgba(255,255,255,0.9); }
.talk-line {
  stroke: rgba(255,255,255,0.8); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 250; stroke-dashoffset: 250;
  animation: talkDraw 3.4s ease-in-out infinite;
}
@keyframes talkDraw {
  0%   { stroke-dashoffset: 250; }
  55%  { stroke-dashoffset: 0; }
  85%  { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

/* ── LEFT SCROLL RAIL: how far into the site you are ── */
.scroll-rail {
  position: fixed; left: 0; top: 0; bottom: 0;
  width: 4px; z-index: 300;
  background: rgba(180,37,60,0.12);
  pointer-events: none;
}
.scroll-rail-fill {
  width: 100%; height: 0%;
  background: linear-gradient(180deg, var(--amber-soft), var(--amber));
  box-shadow: 0 0 10px rgba(180,37,60,0.5);
  border-radius: 0 0 4px 0;
}

/* ── responsive: pipelines stack vertically on small screens ── */
@media (max-width: 640px) {
  .pipe { flex-direction: column; align-items: stretch; }
  .pipe-gap, .pipe-link { width: auto; height: 30px; }
  .pipe-gap::before {
    top: 12%; bottom: 12%; left: 50%; right: auto;
    border-top: none; border-left: 2px dashed rgba(180,37,60,0.45);
  }
  .pipe-link::before {
    top: 0; bottom: 0; left: 50%; right: auto;
    border-top: none; border-left: 2px solid rgba(180,37,60,0.7);
  }
  .pipe-runner { display: none; }
  .pipe.solid .pipe-box { animation-duration: 4.5s; }
  @keyframes dataDies {
    0%    { left: 4%; opacity: 0; }
    3%    { opacity: 1; }
    20%   { left: 88%; opacity: 1; }
    24%   { left: 96%; opacity: 0; }
    100%  { left: 96%; opacity: 0; }
  }
  .viz-eco { height: 340px; }
  .eco-node.en1 { left: 8px; top: 36px; }
  .eco-node.en2 { right: 8px; top: 36px; }
  .eco-node.en3 { left: 8px; bottom: 36px; }
  .eco-node.en4 { right: 8px; bottom: 36px; }
}

/* ══════════════════════════════════════════════════ FILM GRAIN */
/* animated grain over every scene — steps() flicker, transform-only (GPU) */
body::after {
  content: '';
  position: fixed;
  inset: -75%;
  z-index: 2000;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  opacity: 0.045;
  animation: grainShift 0.9s steps(8) infinite;
}
@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  12.5%{ transform: translate(-3%, 2%); }
  25%  { transform: translate(2%, -3%); }
  37.5%{ transform: translate(-2%, -2%); }
  50%  { transform: translate(3%, 3%); }
  62.5%{ transform: translate(-3%, -1%); }
  75%  { transform: translate(1%, 3%); }
  87.5%{ transform: translate(3%, -2%); }
  100% { transform: translate(0, 0); }
}

/* ══════════════════════════════════════════════════ NATIVE-APP FEEL */
html { overscroll-behavior-y: none; }
body { overscroll-behavior-y: none; }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.btn:active, .nav-cta:active, .nav-links a:active { transform: scale(0.96); }
.pillar:active, .audience-tile:active { transform: scale(0.985); }

/* ══════════════════════════════════════════════════ DESKTOP FIT-IN-VIEWPORT */
/* Each full-viewport scene must hold ALL its elements on screen (desktop only;
   mobile keeps its own rhythm). Compression scales with viewport height. */
.prose-lead { margin-bottom: 64px; }
@media (min-width: 881px) {
  .section-light, .section-dark, .section-amber { padding: 56px 0; }
  .sec-head { margin-bottom: clamp(18px, 4vh, 44px); }
  .sec-head h2 { font-size: clamp(1.6rem, 3.2vh, 2.4rem); }
  .sec-head .bar { margin-top: clamp(16px, 2.6vh, 30px); }
  .sec-head p { margin-top: clamp(14px, 2.4vh, 26px); }
  .prose p { font-size: clamp(0.88rem, 1.8vh, 1.04rem); line-height: 1.62; margin-bottom: clamp(8px, 1.6vh, 16px); }
  .prose-lead { margin-bottom: clamp(24px, 5vh, 56px); }
  .viz-broken { margin-top: clamp(28px, 5vh, 60px); }
  .viz-connected { margin-bottom: clamp(18px, 4vh, 48px); }
  .feature-grid { gap: clamp(14px, 2.2vh, 26px); }
  .feature-card { padding: clamp(16px, 3.2vh, 32px) clamp(22px, 2.2vw, 32px); }
  .feature-card .icon { margin-bottom: clamp(12px, 2.2vh, 24px); }
  .feature-card h3 { font-size: clamp(0.98rem, 2vh, 1.15rem); }
  .feature-card p { font-size: clamp(0.82rem, 1.7vh, 0.92rem); line-height: 1.65; }
  .feature-card .icon { width: clamp(38px, 6vh, 52px); height: clamp(38px, 6vh, 52px); }
  .feature-card h3 { margin-bottom: clamp(8px, 1.4vh, 14px); }
  .hero { padding: clamp(84px, 13vh, 150px) 0 clamp(24px, 7vh, 96px); }
  .pipe-box { padding: clamp(10px, 2vh, 16px) 8px; }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .hero-flow-inner { padding: clamp(22px, 4.2vh, 44px) 40px; gap: clamp(15px, 3.2vh, 34px); }
  .flow-spine { top: clamp(48px, 7.4vh, 66px); bottom: clamp(48px, 7.4vh, 66px); }
  .prose-lead { margin-bottom: clamp(14px, 4vh, 48px); }
}

/* short desktop screens: last few px of slack for the densest scene */
@media (min-width: 881px) and (max-height: 780px) {
  .sec-head { margin-bottom: 14px; }
  .prose-lead { margin-bottom: 12px; }
  .viz-connected { margin-bottom: 14px; }
  .feature-card .icon { width: 34px; height: 34px; margin-bottom: 10px; }
  .feature-card .icon svg { width: 18px; height: 18px; }
}
