/* ============================================================
   Innovo Digital Solutions — "The Quiet Console"
   Near-black canvas, light type, brand blue + green.
   ============================================================ */

:root {
    --bg: #08090a;
    --bg-raised: #0c0d10;
    --panel: #131317;
    --panel-top: #17181c;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.13);
    --text: #f7f8f8;
    --text-2: #d0d3d8;
    --muted: #8a8f98;
    --faint: #62666d;
    --accent-blue: #3b82f6;
    --accent-green: #00ff6a;
    --green: #4cb782; /* muted — semantic success/positive, kept distinct from the brand-bright --accent-green */
    --amber: #f2c94c;
    --mesh-teal: 6, 182, 212; /* r,g,b — bluer teal (cyan-leaning), separate from the green aurora */

    --sans: "Inter", system-ui, -apple-system, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, monospace;

    --xs: 8px; --sm: 16px; --md: 28px; --lg: 56px; --xl: 110px;
    --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --quick: 160ms;
    --shadow-ambient: 0 12px 40px -16px rgba(0,0,0,0.7);
    --shadow-hover: 0 8px 28px -14px rgba(0,0,0,0.6);

    --shell: 1140px;
    --measure: 66ch;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
    font-family: var(--sans);
    font-size: 1.05rem; line-height: 1.6;
    color: var(--text); background: var(--bg);
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
::selection { background: rgba(59,130,246,0.35); color: var(--text); }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--text); color: var(--bg); padding: 12px 18px; z-index: 200; font-size: 0.85rem; border-radius: var(--r-sm); }
.skip-link:focus { left: 16px; top: 16px; }

/* ---------- Neural mesh (teal, behind the green aurora) ---------- */
#bg-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* ---------- Aurora ---------- */
.aurora { position: fixed; top: -260px; left: 50%; transform: translateX(-50%); width: 1100px; height: 760px; pointer-events: none; z-index: 0;
    background: radial-gradient(closest-side, rgba(0,255,106,0.20), rgba(0,255,106,0.08) 45%, transparent 72%);
    filter: blur(20px); opacity: 0.9; }

/* ---------- Shell / sections ---------- */
.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding-inline: 28px; position: relative; z-index: 1; }
.shell-wide { max-width: 1600px; }
.section { padding-block: var(--xl); }
.section.tight { padding-block: var(--lg); }
.measure { max-width: var(--measure); color: var(--muted); font-size: 1.1rem; }

/* ---------- Type ---------- */
.headline { font-weight: 600; font-size: clamp(1.8rem, 3.4vw, 2.85rem); line-height: 1.1; letter-spacing: -0.025em; max-width: 19ch; color: var(--text); }
.headline em { font-style: italic; font-weight: 600; color: var(--text); }
.title { font-weight: 560; font-size: 1.15rem; line-height: 1.35; letter-spacing: -0.012em; color: var(--text); }

.num { font-size: 0.82rem; color: var(--accent-blue); font-weight: 510; }

.section-head { margin-bottom: var(--lg); display: flex; flex-direction: column; gap: var(--sm); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 0.92rem; font-weight: 540; letter-spacing: -0.005em; padding: 11px 24px; border-radius: var(--r-sm); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background var(--quick) var(--ease), border-color var(--quick) var(--ease), color var(--quick) var(--ease), transform var(--quick) var(--ease); white-space: nowrap; }
.btn-primary { background: var(--text); color: var(--bg); }
/* background-size + animation live in this same rule (not a separate one) — a second rule setting
   background-size alone gets silently reset by this rule's "background" shorthand, same issue as
   the .linear-gradient bug earlier. */
.btn-primary:hover { background: linear-gradient(135deg, var(--accent-blue), var(--accent-green), var(--accent-blue), var(--accent-green)); background-size: 300% 300%; animation: gradient-shift 6s ease infinite; color: #fff; border-color: transparent; }
.btn-ghost { background: rgba(255,255,255,0.04); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: linear-gradient(135deg, var(--accent-blue), var(--accent-green), var(--accent-blue), var(--accent-green)); background-size: 300% 300%; animation: gradient-shift 6s ease infinite; color: #fff; border-color: transparent; }
@media (prefers-reduced-motion: reduce) {
    .btn-primary:hover, .btn-ghost:hover { animation: none; }
}
.btn-sm { padding: 8px 14px; font-size: 0.88rem; }
.btn.full { width: 100%; justify-content: center; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 2px; }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: var(--sm); }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.card { position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px; transition: border-color var(--quick) var(--ease), transform var(--quick) var(--ease), box-shadow var(--quick) var(--ease), background var(--quick) var(--ease); overflow: hidden; }
.card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.10), transparent); }
.card .title { margin-bottom: 10px; }
.card p { color: var(--muted); }

/* ---------- Expertise cards (clickable, tonal — precursor to per-service pages) ---------- */
/* two classes here (not just .expertise-grid) so this reliably beats .card-grid's own gap:var(--sm) rule */
.card-grid.expertise-grid { gap: 40px; }
.expertise-card { position: relative; display: flex; min-height: 480px; border-radius: var(--r-lg); border: 1px solid var(--border); overflow: hidden; text-decoration: none; color: inherit; transition: border-color var(--quick) var(--ease), transform var(--quick) var(--ease), box-shadow var(--quick) var(--ease); }
.expertise-card:hover { border-color: var(--border-strong); transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.expertise-card { --ex-text: var(--text); --ex-text-2: var(--text-2); --ex-dot: rgba(255,255,255,0.22); }
.expertise-visual { position: absolute; inset: 0; z-index: 0; background: var(--panel-top); }
.expertise-visual::before { content: ""; position: absolute; inset: 0; }
.expertise-visual::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--ex-dot) 1.2px, transparent 1.6px); background-size: 15px 15px; }
/* lighter scrim + a second glow in the opposite corner than before — lets more of the saturated
   color through for a punchier, less washed-out card while still keeping text legible.
   four distinct hues now (azure/sky/teal/mint), alternating between the two original opacity
   profiles — only the rgb triples changed, every opacity value is untouched. */
.expertise-card[data-tone="azure"] .expertise-visual::before { background: linear-gradient(180deg, rgba(0,0,0,0.32), rgba(0,0,0,0.04) 45%, rgba(0,0,0,0.4)), radial-gradient(circle at 22% 15%, rgba(58,134,242,0.75), transparent 65%), radial-gradient(circle at 88% 92%, rgba(58,134,242,0.4), transparent 60%), linear-gradient(135deg, rgba(58,134,242,0.35), transparent); }
.expertise-card[data-tone="sky"] .expertise-visual::before { background: linear-gradient(180deg, rgba(0,0,0,0.32), rgba(0,0,0,0.04) 45%, rgba(0,0,0,0.4)), radial-gradient(circle at 22% 15%, rgba(44,162,211,0.6), transparent 65%), radial-gradient(circle at 88% 92%, rgba(44,162,211,0.32), transparent 60%), linear-gradient(135deg, rgba(44,162,211,0.3), transparent); }
.expertise-card[data-tone="teal"] .expertise-visual::before { background: linear-gradient(180deg, rgba(0,0,0,0.32), rgba(0,0,0,0.04) 45%, rgba(0,0,0,0.4)), radial-gradient(circle at 22% 15%, rgba(34,176,194,0.75), transparent 65%), radial-gradient(circle at 88% 92%, rgba(34,176,194,0.4), transparent 60%), linear-gradient(135deg, rgba(34,176,194,0.35), transparent); }
.expertise-card[data-tone="mint"] .expertise-visual::before { background: linear-gradient(180deg, rgba(0,0,0,0.32), rgba(0,0,0,0.04) 45%, rgba(0,0,0,0.4)), radial-gradient(circle at 22% 15%, rgba(28,196,170,0.6), transparent 65%), radial-gradient(circle at 88% 92%, rgba(28,196,170,0.32), transparent 60%), linear-gradient(135deg, rgba(28,196,170,0.3), transparent); }
.expertise-body { position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1; padding: 28px; }
/* sizes below are proportioned off the 26px title to match the reference card's type ratios:
   tag ≈ 0.42×title, teaser/expand ≈ 0.55×title */
.expertise-tag { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ex-text-2); margin-bottom: 18px; }
.expertise-title { font-weight: 700; font-size: 26px; line-height: 1.2; letter-spacing: -0.015em; color: var(--ex-text); margin-bottom: 16px; }
/* category + title stay visible; the teaser and "Expand" cue reveal on hover, like the reference cards.
   text color itself never changes on hover — only opacity/position animate in. */
.expertise-teaser { color: var(--ex-text-2); font-size: 14px; line-height: 1.55; margin: 0; opacity: 0; transform: translateY(6px); transition: opacity var(--quick) var(--ease), transform var(--quick) var(--ease); }
.expertise-expand { display: inline-flex; align-items: center; gap: 6px; align-self: flex-end; margin-top: auto; padding-top: 20px; font-weight: 600; font-size: 14px; color: var(--ex-text); opacity: 0; transform: translateY(6px); transition: opacity var(--quick) var(--ease), transform var(--quick) var(--ease); }
.expertise-card:hover .expertise-teaser,
.expertise-card:hover .expertise-expand { opacity: 1; transform: translateY(0); }
@media (hover: none) {
    /* no hover on touch — show the teaser and cue by default so nothing is permanently hidden */
    .expertise-teaser, .expertise-expand { opacity: 1; transform: none; }
}
.card.mini .num { display: block; margin-bottom: 14px; }
.card.mini p { font-size: 0.95rem; }

/* ---------- Engagement steps ---------- */
.steps { list-style: none; display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: var(--sm); padding-block: 18px; border-top: 1px solid var(--border); }
.step:first-child { border-top: none; padding-top: 4px; }
.step:last-child { padding-bottom: 4px; }
.step-num { font-family: var(--mono); font-size: 0.85rem; color: var(--accent-green); padding-top: 2px; }
.step h4 { font-weight: 560; font-size: 1rem; letter-spacing: -0.012em; color: var(--text); margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- Work card outcome ---------- */
.work-card .work-outcome { color: var(--green); font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.01em; margin-top: -10px; margin-bottom: var(--sm); }

/* ---------- FAQ ---------- */
/* flat, divider-separated list (not a grid of card boxes) — full-width rows, one column
   regardless of viewport, each question/answer separated by a hairline rule, grouped under
   its own bold category heading (ir.spacex.com's FAQ page is the reference) */
.faq-group + .faq-group { margin-top: calc(var(--xl) / 2); }
.faq-group-title { font-size: 1.3rem; font-weight: 700; letter-spacing: 0.01em; text-transform: uppercase; margin-bottom: var(--sm); }
.faq-list { border-top: 1px solid var(--border); }
.faq-item { display: block; border-bottom: 1px solid var(--border); }
/* flex (not float) so the icon stays pinned top-right of the first line regardless of how
   many lines the question wraps to — float was dropping it below short single-line questions */
.faq-item summary.title { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 4px; margin-bottom: 0; cursor: pointer; list-style: none; font-weight: 540; }
.faq-item summary:hover { color: var(--text); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex-shrink: 0; color: var(--accent-green); font-weight: 400; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: -8px 4px 22px; max-width: 64ch; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; border-bottom: 1px solid transparent; transition: background var(--quick) var(--ease), border-color var(--quick) var(--ease), backdrop-filter var(--quick); }
.nav.scrolled { background: rgba(8,9,10,0.72); backdrop-filter: blur(12px) saturate(1.2); border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; gap: var(--md); padding-block: 14px; }
.wordmark { display: inline-block; font-weight: 680; font-size: 1.2rem; letter-spacing: -0.03em; text-decoration: none; background: linear-gradient(100deg, var(--accent-blue), var(--accent-green)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.wordmark .dot { background: none; -webkit-text-fill-color: var(--accent-green); color: var(--accent-green); }
.nav-links { display: flex; align-items: center; gap: var(--md); margin-left: var(--sm); }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--muted); text-decoration: none; padding-bottom: 2px; border-bottom: 1.5px solid transparent; transition: color var(--quick), border-color var(--quick); }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); border-bottom-color: var(--accent-green); }
/* About dropdown — opens on hover or keyboard focus. The menu wrapper carries a transparent top
   padding so the pointer can travel from the link to the panel without the menu closing. */
.nav-dropdown { position: relative; display: inline-flex; align-items: center; }
.nav-links a.nav-dd-trigger { display: inline-flex; align-items: center; gap: 5px; }
.nav-dd-caret { flex-shrink: 0; transition: transform var(--quick) var(--ease); }
.nav-dropdown:hover .nav-dd-caret, .nav-dropdown:focus-within .nav-dd-caret { transform: rotate(180deg); }
.nav-dd-menu { position: absolute; top: 100%; left: -14px; min-width: 220px; padding-top: 14px; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity var(--quick) var(--ease), transform var(--quick) var(--ease), visibility var(--quick); z-index: 5; }
.nav-dropdown:hover .nav-dd-menu, .nav-dropdown:focus-within .nav-dd-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dd-panel { display: flex; flex-direction: column; gap: 2px; padding: 6px; background: var(--panel); border: 1px solid var(--border-strong); border-radius: var(--r-md); box-shadow: var(--shadow-ambient); }
.nav-links .nav-dd-panel a { display: block; padding: 9px 12px; border-bottom: none; border-radius: var(--r-sm); font-size: 0.88rem; white-space: nowrap; }
.nav-links .nav-dd-panel a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: var(--sm); }
.nav-toggle { display: none; background: rgba(255,255,255,0.04); border: 1px solid var(--border-strong); color: var(--text); font-size: 0.85rem; padding: 8px 13px; border-radius: var(--r-sm); cursor: pointer; }
.mobile-menu { display: none; flex-direction: column; border-top: 1px solid var(--border); background: rgba(8,9,10,0.96); backdrop-filter: blur(12px); }
.mobile-menu[hidden] { display: none; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 0.95rem; color: var(--muted); text-decoration: none; padding: 15px 28px; border-bottom: 1px solid var(--border); }
.mobile-menu a:last-child { border-bottom: none; color: var(--text); }
.mobile-menu a:hover { color: var(--text); background: rgba(255,255,255,0.03); }
/* sub-links are just in-page anchors (About/Salesforce section jumps) — dropped from the mobile
   menu entirely rather than built out as an accordion, so About/Salesforce/Work/FAQ/Contact are
   all one tap away instead of buried under a 16-row list */
.mobile-menu a.sub { display: none; }

/* ---------- Hero ---------- */
.hero { padding-top: 205px; padding-bottom: 36px; text-align: center; }
/* tightened so the expertise cards peek above the fold on landing — selectors are multi-class
   so they reliably beat the generic .section / .section.tight padding rules regardless of order */
.section.tight.trust-strip { padding-block: 20px; }
.section.expertise-preview { padding-top: 28px; }
.section.tight.engagement { padding-top: 24px; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-title { font-weight: 600; font-size: clamp(2.6rem, 6vw, 4.75rem); line-height: 1.04; letter-spacing: -0.035em; margin-bottom: var(--md); color: var(--text); }

/* recreated from the original site's .gradient-text */
.linear-gradient {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-green), var(--accent-blue), var(--accent-green));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: gradient-shift 24s ease infinite;
}
@keyframes gradient-shift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@media (prefers-reduced-motion: reduce) {
    .linear-gradient { animation: none; }
}
.hero-lede { font-size: 1.2rem; color: var(--muted); max-width: 52ch; margin-bottom: var(--md); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---------- Product mock ---------- */
.mock { margin-top: var(--xl); background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-ambient); overflow: hidden; text-align: left; position: relative; }
.setup-caption { margin-top: var(--sm); font-size: 0.78rem; color: var(--faint); }
.setup-caption a { color: var(--accent-green); text-decoration: none; }
.setup-caption a:hover { text-decoration: underline; }
.mock::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14), transparent); }
.mock-dots { display: inline-flex; gap: 7px; }
.mock-dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.14); }
/* Setup window header */
.setup-bar { display: flex; align-items: center; justify-content: space-between; padding: 11px 16px; border-bottom: 1px solid var(--border); background: var(--panel-top); }
.setup-brand { display: flex; align-items: center; gap: 9px; font-size: 0.86rem; font-weight: 540; color: var(--text); }
.setup-sep { color: var(--faint); }
.setup-grid { width: 16px; height: 16px; border-radius: 4px; background-color: rgba(59,130,246,0.12); background-image: radial-gradient(var(--accent-blue) 1.3px, transparent 1.6px); background-size: 5.5px 5.5px; background-position: 2px 2px; }
.setup-bar-right { display: flex; align-items: center; gap: 10px; }
.setup-pill { font-size: 0.64rem; font-family: var(--mono); color: var(--amber); border: 1px solid rgba(242,201,76,0.35); background: rgba(242,201,76,0.08); border-radius: 999px; padding: 2px 9px; }
.setup-avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--accent-blue); color: #fff; font-size: 0.7rem; font-weight: 540; display: grid; place-items: center; }

/* Setup body + nav */
.setup-body { display: grid; grid-template-columns: 224px 1fr; min-height: 348px; }
.setup-nav { border-right: 1px solid var(--border); padding: 12px; display: flex; flex-direction: column; gap: 2px; background: var(--bg-raised); }
.setup-search { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.04); border: 1px solid var(--border-strong); border-radius: var(--r-sm); padding: 7px 10px; color: var(--faint); margin-bottom: 8px; }
.setup-search input { flex: 1; min-width: 0; background: transparent; border: none; outline: none; color: var(--text); font-family: var(--sans); font-size: 0.82rem; }
.setup-search input::placeholder { color: var(--faint); }
.setup-group { margin-top: 8px; }
.setup-group-label { font-size: 0.62rem; font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); padding: 4px 8px; }
.setup-item { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; background: none; border: none; border-radius: var(--r-sm); padding: 7px 10px; font-family: var(--sans); font-size: 0.84rem; color: var(--muted); cursor: pointer; position: relative; transition: background var(--quick), color var(--quick); }
.setup-item:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.setup-item.active { background: rgba(59,130,246,0.12); color: var(--text); }
.setup-item.active::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--accent-blue); }
.setup-item .ic { width: 13px; height: 13px; border-radius: 3px; background: rgba(255,255,255,0.13); flex: none; }
.setup-item.active .ic { background: var(--accent-blue); }
.setup-empty { color: var(--faint); font-size: 0.82rem; padding: 12px 8px; }

/* Setup main table */
.setup-main { padding: 18px 20px; min-width: 0; overflow-x: auto; }
.setup-crumb { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.setup-crumb .c-path { font-size: 0.78rem; color: var(--faint); }
.setup-crumb .c-path::after { content: " ›"; color: var(--faint); }
.setup-crumb .c-title { font-size: 1.05rem; font-weight: 560; color: var(--text); letter-spacing: -0.01em; }
.setup-count { font-size: 0.72rem; color: var(--faint); margin-left: auto; }
.setup-table { width: 100%; border-collapse: collapse; }
.setup-table thead th { text-align: left; font-size: 0.66rem; font-weight: 540; text-transform: uppercase; letter-spacing: 0.04em; color: var(--faint); padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.setup-table tbody td { font-size: 0.84rem; color: var(--text-2); padding: 10px; border-bottom: 1px solid rgba(255,255,255,0.05); white-space: nowrap; }
.setup-table tbody tr:last-child td { border-bottom: none; }
.setup-table tbody tr:hover td { background: rgba(255,255,255,0.03); }
.setup-table td.api { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.setup-tag { font-size: 0.68rem; border-radius: 999px; padding: 2px 9px; border: 1px solid var(--border); color: var(--muted); }
.setup-tag.custom { color: var(--accent-green); border-color: rgba(0,255,106,0.4); background: rgba(0,255,106,0.1); }
.setup-status { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); font-size: 0.82rem; }
.setup-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

/* Analytics dashboard mock */
.dash-mock .code-bar { justify-content: space-between; }
.dash-range { font-family: var(--mono); font-size: 0.72rem; color: var(--faint); }
.dash-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dash-kpi { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px; display: flex; flex-direction: column; gap: 3px; }
.dash-k-label { font-size: 0.66rem; color: var(--faint); }
.dash-k-val { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.025em; color: var(--text); }
.dash-k-delta { font-size: 0.66rem; font-family: var(--mono); color: var(--green); }
.dash-charts { display: grid; grid-template-columns: 1.5fr 1fr; gap: 10px; }
.dash-card { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px; }
.dash-card-t { font-size: 0.66rem; color: var(--faint); display: block; margin-bottom: 10px; }
.dash-bars { width: 100%; height: 70px; }
.dash-bars rect { fill: rgba(59,130,246,0.55); }
.dash-bars rect.hot { fill: var(--accent-blue); }
.dash-donut-wrap { display: flex; align-items: center; gap: 12px; }
.dash-legend { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 0.7rem; color: var(--muted); }
.dash-legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 7px; }

/* Apex test results mock */
.test-mock .code-bar { justify-content: space-between; }
.test-cov { font-family: var(--mono); font-size: 0.72rem; color: var(--green); }
.test-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.test-summary { display: flex; align-items: center; gap: 12px; }
.test-pass { font-size: 0.85rem; color: var(--text-2); white-space: nowrap; }
.test-pass b { color: var(--green); font-weight: 600; }
.test-bar { flex: 1; height: 6px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; }
.test-bar span { display: block; height: 100%; width: 0; background: var(--accent-blue); border-radius: 999px; transition: width 900ms var(--ease); }
.test-mock.in .test-bar span { width: 92%; }
.test-list { display: flex; flex-direction: column; }
.test-row { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.test-row:last-child { border-bottom: none; }
.test-check { width: 16px; height: 16px; border-radius: 50%; background: rgba(76,183,130,0.16); display: grid; place-items: center; flex: none; }
.test-name { font-family: var(--mono); font-size: 0.78rem; color: var(--text-2); flex: 1; }
.test-time { font-family: var(--mono); font-size: 0.72rem; color: var(--faint); }

/* LWC + AI component mock */

/* ---------- Trust / stats ---------- */
.trust-label { text-align: center; font-size: 0.85rem; color: var(--faint); margin-bottom: var(--md); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sm); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg-raised); overflow: hidden; }
.stat { padding: var(--md); display: flex; flex-direction: column; gap: 5px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat-num { font-weight: 600; font-size: 1.85rem; letter-spacing: -0.025em; color: var(--text); }
.stat-label { font-size: 0.8rem; color: var(--muted); }

/* ---------- Services ---------- */
.spec-list { list-style: none; display: flex; flex-direction: column; }
.spec-list li { font-size: 0.96rem; color: var(--muted); padding: 10px 0; border-bottom: 1px solid var(--border); position: relative; padding-left: 22px; }
.spec-list li:last-child { border-bottom: none; }
.spec-list li::before { content: ""; position: absolute; left: 2px; top: 50%; transform: translateY(-50%); width: 5px; height: 5px; border-radius: 50%; background: var(--accent-blue); }

/* ---------- Salesforce ---------- */
.sf-layout { display: grid; grid-template-columns: 1.55fr 1fr; gap: var(--lg); align-items: start; }
.sf-main .headline { margin-bottom: var(--md); max-width: 15ch; }
.sf-points { margin-top: var(--lg); }
.sf-point { padding: var(--md) 0; border-top: 1px solid var(--border); }
.sf-point:first-child { border-top-color: var(--border-strong); }
.sf-point dt { font-weight: 560; font-size: 1.02rem; margin-bottom: 6px; color: var(--text); }
.sf-point dd { color: var(--muted); max-width: 52ch; }
.sf-side { position: sticky; top: 96px; align-self: start; }

/* ---------- Work ---------- */
.work-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--md); }
.work-filter { font-family: var(--sans); font-size: 0.8rem; color: var(--muted); background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; cursor: pointer; transition: background var(--quick) var(--ease), border-color var(--quick) var(--ease), color var(--quick) var(--ease); }
.work-filter:hover { color: var(--text); border-color: var(--border-strong); }
.work-filter.active { color: #fff; background: var(--accent-blue); border-color: var(--accent-blue); }
.work-filter:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 2px; }
.work-empty { grid-column: 1 / -1; color: var(--faint); font-size: 0.9rem; padding: var(--md) 0; }
.work-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.work-card[hidden] { display: none; } /* .work-card's own "display: flex" would otherwise override the browser's default [hidden] rule */
/* featured cards span 2 of the grid's 3 columns — alternates which side they sit on
   (wide-left: cols 1-2, wide-right: cols 2-3) so the row still fills out to 3 columns with
   exactly one normal card alongside it. Relies on default (sparse) grid auto-placement to
   slot normal cards into the remaining gaps — see the card order in index.html. */
.work-card.wide-left { grid-column: 1 / 3; }
.work-card.wide-right { grid-column: 2 / 4; }
.work-card:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow-hover); background: var(--panel-top); }
.work-card .num { display: block; margin-bottom: 14px; }
.work-card h3 { font-weight: 560; font-size: 1.12rem; letter-spacing: -0.012em; margin-bottom: 8px; color: var(--text); }
.work-card p { color: var(--muted); font-size: 0.94rem; flex: 1; margin-bottom: var(--md); }
.work-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.work-tags span { font-size: 0.68rem; color: var(--faint); background: rgba(255,255,255,0.04); border: 1px solid var(--border); padding: 3px 8px; border-radius: var(--r-sm); }
.work-card:hover .num { color: var(--accent-green); }

/* ---------- Work detail modal (mobile-only trigger, see initWorkModal in script.js) ---------- */
.work-modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: flex-end; justify-content: center; }
.work-modal[hidden] { display: none; } /* same display-vs-[hidden] specificity issue as .work-card above */
.work-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); opacity: 0; transition: opacity 220ms var(--ease); }
.work-modal.open .work-modal-backdrop { opacity: 1; }
.work-modal-panel {
    position: relative; width: 100%; max-width: 480px; max-height: 82vh; overflow-y: auto;
    background: var(--panel); border: 1px solid var(--border-strong); border-radius: var(--r-xl) var(--r-xl) 0 0;
    padding: 30px 24px calc(24px + env(safe-area-inset-bottom, 0px));
    box-shadow: var(--shadow-ambient);
    transform: translateY(100%); transition: transform 280ms cubic-bezier(.22,.8,.25,1);
}
.work-modal.open .work-modal-panel { transform: translateY(0); }
.work-modal-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--border); background: var(--panel-top); color: var(--text-2); cursor: pointer; }
.work-modal-close:hover { color: var(--text); border-color: var(--border-strong); }
.work-modal-panel .num { display: block; margin-bottom: 12px; }
.work-modal-panel h3 { font-weight: 560; font-size: 1.25rem; letter-spacing: -0.012em; margin-bottom: 12px; padding-right: 30px; }
.work-modal-panel p#workModalDesc { color: var(--muted); font-size: 0.96rem; margin-bottom: var(--sm); }
.work-modal-panel .work-outcome { margin-top: 0; margin-bottom: var(--md); }
.work-modal-panel .work-tags { margin-bottom: var(--lg); }
.work-modal-panel .btn { width: 100%; justify-content: center; }
body.modal-open { overflow: hidden; }

/* ---------- Contact ---------- */
.cta-panel { position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-xl); padding: var(--lg); box-shadow: var(--shadow-ambient); overflow: hidden; }
.cta-panel::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14), transparent); }
.contact-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--lg); align-items: start; }
.contact-intro .headline { margin-bottom: var(--sm); }
.contact-direct { margin-top: var(--md); font-size: 0.92rem; color: var(--muted); }
.contact-direct a { color: var(--accent-green); text-decoration: none; }
.contact-direct a:hover { text-decoration: underline; }
.contact-form { display: flex; flex-direction: column; gap: var(--sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sm); }
.field { display: flex; flex-direction: column; }
.field > span { font-size: 0.8rem; color: var(--muted); margin-bottom: 7px; }
.field .req { color: var(--accent-green); font-weight: 600; margin-left: 2px; }
.field input, .field select, .field textarea { font-family: var(--sans); font-size: 1rem; color: var(--text); background: rgba(255,255,255,0.03); border: 1px solid var(--border-strong); border-radius: var(--r-sm); padding: 12px 14px; transition: border-color var(--quick), box-shadow var(--quick); }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-blue); box-shadow: 0 0 0 1px var(--accent-blue); }
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%238a8f98' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.field select option { background: var(--panel); color: var(--text); }
.form-status { font-size: 0.85rem; min-height: 1em; color: var(--muted); }
.form-status.success { color: var(--green); }
.form-status.error { color: var(--accent-green); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding-block: var(--lg) var(--md); margin-top: var(--lg); }
.footer-inner { display: flex; flex-wrap: wrap; gap: var(--md); justify-content: space-between; align-items: baseline; padding-bottom: var(--md); border-bottom: 1px solid var(--border); }
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-brand .wordmark { font-size: 1.1rem; }
.footer-tag { font-size: 0.82rem; color: var(--faint); }
.footer-links { display: flex; gap: var(--md); flex-wrap: wrap; }
.footer-links a { font-size: 0.88rem; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-mail { font-size: 0.88rem; color: var(--text-2); text-decoration: none; }
.footer-mail:hover { color: var(--accent-green); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: var(--md); font-size: 0.8rem; color: var(--faint); }

/* ---------- Dot-grid texture ---------- */
.grid-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,0.045) 1px, transparent 1px);
    background-size: 34px 34px; background-position: center -1px;
    -webkit-mask-image: radial-gradient(125% 78% at 50% 0%, #000 0%, transparent 68%);
    mask-image: radial-gradient(125% 78% at 50% 0%, #000 0%, transparent 68%); }

/* ---------- Gradient hairline divider ---------- */
.divider { border: 0; height: 1px; margin: 0; background: linear-gradient(90deg, transparent, var(--border-strong) 25%, var(--border-strong) 75%, transparent); }

/* ---------- Alternating feature rows ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1.05fr; gap: var(--lg); align-items: center; padding-block: var(--lg); }
.feature-row.reverse .feature-copy { order: 2; }
/* grid items default to a min-width equal to their unwrapped content's max-content width —
   without this, a long check-list line (e.g. "Bulk-safe Apex triggers & batch jobs") refuses
   to shrink/wrap and pushes the column past its track on narrow screens */
.feature-copy { min-width: 0; }
.feature-copy h3.title { font-size: 1.45rem; margin-bottom: 14px; }
.feature-copy p { color: var(--muted); max-width: 46ch; margin-bottom: var(--md); }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 11px; min-width: 0; }
.check-list li { position: relative; padding-left: 26px; color: var(--text-2); font-size: 0.95rem; min-width: 0; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: rgba(0,255,106,0.18);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' viewBox='0 0 24 24' fill='none' stroke='%2300ff6a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; }

.feature-visual .code-mock, .feature-visual .flow-mock, .feature-visual .slack-mock { position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-ambient); overflow: hidden; }
.feature-visual .code-mock::before, .feature-visual .flow-mock::before, .feature-visual .slack-mock::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent); }

/* code editor mock */
.code-bar { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--border); background: var(--panel-top); }
.code-file { font-family: var(--mono); font-size: 0.76rem; color: var(--faint); }

/* Data 360 mock — sources merging into one profile */
/* Data 360 mock — a field-level stream mapping diagram: source rows on the left,
   curved lines mapping into two destination objects on the right */
.stream-mock { padding: 16px; }
.stream-diagram { width: 100%; height: auto; display: block; }
.stream-line { fill: none; stroke: var(--accent-blue); stroke-width: 1.2; opacity: 0.55; }
.stream-panel { fill: var(--panel-top); stroke: var(--border-strong); stroke-width: 1; }
.stream-header { font-family: var(--sans); font-size: 11px; font-weight: 700; fill: var(--text); }
.stream-row { fill: var(--bg-raised); stroke: var(--border); stroke-width: 1; }
.stream-row-label { font-family: var(--sans); font-size: 9.5px; font-weight: 600; fill: var(--text-2); }
.stream-dot { fill: var(--panel); stroke: var(--accent-blue); stroke-width: 1.3; }
.stream-dot--blue { stroke: var(--accent-blue); }
.stream-dot--green { stroke: var(--accent-green); }
.stream-dest { fill: var(--panel-top); stroke: var(--border-strong); stroke-width: 1; }
.stream-dest--blue { stroke: rgba(59,130,246,0.4); }
.stream-dest--green { stroke: rgba(0,255,106,0.35); }
.stream-dest-icon--blue { fill: var(--accent-blue); }
.stream-dest-icon--green { fill: var(--accent-green); }
.stream-dest-title { font-family: var(--sans); font-size: 11px; font-weight: 700; fill: var(--text); }
.stream-field { font-family: var(--sans); font-size: 9.5px; font-weight: 500; fill: var(--text-2); }
.stream-unmapped { font-family: var(--mono); font-size: 9px; fill: var(--accent-blue); }
.stream-unmapped--green { fill: var(--accent-green); }

/* Custom Integrations mock — external system <-> middleware <-> Salesforce */
/* network diagram: external systems -> n8n (primary, solid line) -> Salesforce,
   with Zapier/Make.com as alternate middleware (dashed lines) below the main path */
.integration-mock { padding: 20px 16px; }
.integration-diagram { width: 100%; height: auto; display: block; }
.int-line { fill: none; stroke: var(--border-strong); stroke-width: 1.5; }
.int-line--primary { stroke: var(--accent-green); stroke-width: 2; }
.int-box { fill: var(--panel-top); stroke: var(--border-strong); stroke-width: 1; }
.int-hub { fill: rgba(0,255,106,0.1); stroke: var(--accent-green); stroke-width: 1.5; }
.int-box--sf { stroke: var(--accent-blue); }
.int-box--amber { stroke: var(--amber); }
.int-label { font-family: var(--sans); font-size: 11px; font-weight: 600; fill: var(--text-2); text-anchor: middle; dominant-baseline: middle; }
.int-label--hub { font-size: 13px; fill: var(--text); }
.int-label--sm { font-size: 10px; font-weight: 500; fill: var(--faint); }
.int-label--amber { fill: var(--amber); }
/* motion tilt: nodes sit still normally. initIntegrationTilt() in script.js tracks the cursor
   over each node and sets its rotate/translateY/scale directly via style.transform on mousemove —
   this transition is what makes those per-frame style changes feel like continuous motion instead
   of snapping between values; it also handles the return to rest on mouseleave. */
.int-node { cursor: default; transform-box: fill-box; transform-origin: center; transition: transform 150ms ease-out; }
@media (prefers-reduced-motion: reduce) {
    .int-node { transition: none; }
}

/* hub label cycles n8n -> Zapier -> Make.com: four stacked text rows (the 4th repeats the 1st)
   inside a clipped window, scrolled by animating the group's transform — a vertical carousel */
.hub-carousel { animation: hub-cycle 6s ease-in-out infinite; }
@keyframes hub-cycle {
    0%, 27%  { transform: translateY(0); }
    33%, 60% { transform: translateY(-22px); }
    66%, 93% { transform: translateY(-44px); }
    100%     { transform: translateY(-66px); }
}
@media (prefers-reduced-motion: reduce) {
    .hub-carousel { animation: none; }
}

/* Business Analysis mock — Discover / Define / Deliver board */
/* Business Analysis mock — a horizontal journey map: one spine, five numbered stages,
   labels alternating above/below like a real journey-map zigzag */
.analysis-mock { padding: 20px 16px; }
.journey-map { width: 100%; height: auto; display: block; }
.journey-line { stroke: var(--accent-green); stroke-width: 1.5; }
.journey-stem { stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 2 3; }
.journey-node { fill: var(--panel-top); stroke: var(--accent-green); stroke-width: 2; }
.journey-node--end { fill: var(--accent-green); }
.journey-num { font-family: var(--mono); font-size: 9px; font-weight: 600; fill: var(--text); text-anchor: middle; dominant-baseline: middle; }
.journey-node--end + .journey-num { fill: var(--bg); }
.journey-title { font-family: var(--sans); font-size: 12px; font-weight: 700; fill: var(--text); text-anchor: middle; }
.journey-sub { font-family: var(--sans); font-size: 9.5px; fill: var(--faint); text-anchor: middle; }

/* Slack mock — real Slack UI shape (channel header, message, Block-Kit-style attachment card
   with its signature colored left rail), restyled entirely in this site's own palette */
.slack-top { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--panel-top); }
.slack-hash { color: var(--faint); font-weight: 700; font-size: 0.95rem; }
.slack-channel { font-family: var(--sans); font-weight: 700; font-size: 0.88rem; color: var(--text); }
.slack-thread { padding: 16px; }
.slack-msg { display: flex; gap: 11px; align-items: flex-start; }
.slack-avatar { flex-shrink: 0; width: 34px; height: 34px; border-radius: var(--r-sm); background: linear-gradient(135deg, var(--accent-blue), var(--accent-green)); display: grid; place-items: center; font-family: var(--sans); font-weight: 700; font-size: 0.72rem; color: #fff; }
.slack-msg-main { min-width: 0; flex: 1; }
.slack-msg-head { display: flex; align-items: baseline; gap: 7px; margin-bottom: 3px; }
.slack-name { font-family: var(--sans); font-weight: 700; font-size: 0.86rem; color: var(--text); }
.slack-appbadge { font-family: var(--sans); font-size: 0.62rem; font-weight: 600; color: var(--faint); border: 1px solid var(--border-strong); border-radius: 3px; padding: 1px 4px; }
.slack-time { font-family: var(--sans); font-size: 0.7rem; color: var(--faint); }
.slack-text { font-family: var(--sans); font-size: 0.84rem; line-height: 1.5; color: var(--text-2); margin: 0 0 10px; }
.slack-attachment { border-left: 3px solid var(--accent-blue); background: var(--panel-top); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 10px 12px; }
.slack-attach-title { font-family: var(--sans); font-weight: 700; font-size: 0.86rem; color: var(--text); margin-bottom: 8px; }
.slack-attach-fields { display: flex; flex-wrap: wrap; gap: 5px 18px; margin-bottom: 10px; }
.slack-attach-field { display: flex; flex-direction: column; gap: 1px; font-family: var(--sans); font-size: 0.72rem; }
.slack-attach-field span { color: var(--faint); }
.slack-attach-field b { color: var(--text-2); font-weight: 600; }
.slack-attach-actions { display: flex; gap: 8px; }
.slack-btn { font-family: var(--sans); font-size: 0.76rem; font-weight: 600; padding: 6px 12px; border-radius: var(--r-sm); border: 1px solid var(--border-strong); background: rgba(255,255,255,0.03); color: var(--text-2); cursor: default; }
.slack-btn--primary { background: var(--accent-blue); border-color: var(--accent-blue); color: #fff; }
.code-body { padding: 14px 16px; font-family: var(--mono); font-size: 0.78rem; line-height: 1.75; overflow-x: auto; }
.code-body .ln { display: grid; grid-template-columns: 22px 1fr; gap: 14px; }
.code-body .gutter { color: var(--faint); text-align: right; user-select: none; }
.code-body .src { white-space: pre; color: var(--text-2); }
.tok-kw { color: var(--accent-green); }
.tok-str { color: var(--green); }
.tok-num { color: var(--amber); }
.tok-com { color: var(--faint); font-style: italic; }
.tok-pun { color: var(--muted); }

/* Flow Builder mock — modeled on the real Salesforce Flow Builder canvas: a fixed diagram (pill
   labels, colored-icon element cards, "+" connectors) that you pan by dragging the canvas itself,
   rather than dragging the elements (see initFlowCanvas in script.js). */
/* touch-action: pan-y (not none) lets a plain vertical swipe scroll the page natively — the
   horizontal-drag detection in initFlowCanvas (script.js) is what claims the gesture for
   panning once it's clearly intentional, calling preventDefault itself at that point */
.flow-canvas { position: relative; height: 420px; background-color: #1c1d21; background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1.4px); background-size: 18px 18px; overflow: hidden; cursor: grab; touch-action: pan-y; }
.flow-canvas.grabbing { cursor: grabbing; }
.flow-canvas-inner { position: absolute; top: 0; left: 0; } /* actual size set inline per diagram */
.flow-canvas-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.flow-canvas-lines path { stroke: var(--border-strong); stroke-width: 1.5; fill: none; }

/* branch pills size to their own text (no fixed width), so they're centered via translateX(-50%)
   against the raw center-x coordinate in "left" — not pre-offset in JS, since JS can't know the
   pill's actual rendered width ahead of time. The Start pill is the one exception: it has an
   explicit fixed width (below), so its "left" IS pre-offset (centerX - width/2) and needs no transform. */
.flow-pill { position: absolute; transform: translateX(-50%); padding: 8px 18px; background: var(--panel-top); border: 1px solid var(--border-strong); border-radius: 999px; font-family: var(--sans); font-size: 0.78rem; font-weight: 700; color: var(--text); white-space: nowrap; box-shadow: 0 4px 10px -6px rgba(0,0,0,0.6); }

/* Start card — modeled on Salesforce's real "Record-Triggered Flow" header */
.flow-start { position: absolute; background: #2b2c31; border: 1px solid var(--border-strong); border-radius: var(--r-md); box-shadow: 0 6px 16px -8px rgba(0,0,0,0.6); overflow: hidden; }
.flow-start-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.flow-start-icon { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: #2e844a; display: grid; place-items: center; }
.flow-start-head b { font-family: var(--sans); font-size: 0.88rem; font-weight: 700; color: var(--text); }
.flow-start-body { padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--border); }
.flow-start-row { display: flex; align-items: baseline; gap: 5px; font-family: var(--sans); font-size: 0.78rem; }
.flow-start-row span { color: var(--faint); flex-shrink: 0; }
.flow-start-row b { min-width: 0; color: var(--text-2); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flow-start-editlink { margin-left: auto; color: var(--accent-blue); font-size: 0.74rem; font-weight: 600; text-decoration: none; }
.flow-start-links { padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; }
.flow-start-link { display: flex; align-items: center; gap: 7px; color: var(--accent-blue); font-family: var(--sans); font-size: 0.78rem; font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Zoom controls — bottom-left, matching Salesforce Flow Builder's own toolbar placement */
.flow-zoom { position: absolute; left: 14px; bottom: 14px; z-index: 2; display: flex; flex-direction: column; background: var(--panel-top); border: 1px solid var(--border-strong); border-radius: var(--r-sm); box-shadow: var(--shadow-ambient); overflow: hidden; }
.flow-zoom-btn { width: 30px; height: 30px; display: grid; place-items: center; background: none; border: none; border-bottom: 1px solid var(--border); color: var(--text-2); cursor: pointer; transition: background var(--quick) var(--ease), color var(--quick) var(--ease); }
.flow-zoom-btn:last-child { border-bottom: none; }
.flow-zoom-btn:hover { background: rgba(255,255,255,0.06); color: var(--text); }

.flow-add { position: absolute; transform: translate(-50%, -50%); width: 26px; height: 26px; display: grid; place-items: center; background: var(--bg-raised); border: 1.5px solid var(--border-strong); border-radius: 999px; color: var(--faint); cursor: default; }

.flow-elem { position: absolute; width: 300px; display: flex; align-items: center; gap: 11px; padding: 12px 14px; background: #2b2c31; border: 1px solid var(--border-strong); border-radius: var(--r-md); box-shadow: 0 6px 16px -8px rgba(0,0,0,0.6); }
.flow-elem-icon { flex-shrink: 0; width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; }
/* colors follow Salesforce Flow Builder's own element categories, not per-element:
   Data (Get/Create/Update/Delete Records) = red, Interaction (Screen) = blue,
   Logic (Decision/Loop/Assignment) = orange, Action (Apex/Email) = navy, End = red */
.flow-elem-icon--data { background: #c23934; }
.flow-elem-icon--screen { background: #0b5cab; }
.flow-elem-icon--logic { background: #dd7a01; }
.flow-elem-icon--action { background: #04629c; }
.flow-elem-icon--end { background: #c23934; }
.flow-elem--end { width: auto !important; display: inline-flex; gap: 9px; padding: 8px 12px; }
.flow-elem--end .flow-elem-icon { width: 24px; height: 24px; border-radius: 6px; }
.flow-elem--end .flow-elem-text { font-size: 0.82rem; }
.flow-elem--end .flow-elem-text b { font-size: 0.82rem; }
.flow-elem-text { display: flex; flex-direction: column; gap: 2px; font-family: var(--sans); font-size: 0.84rem; line-height: 1.25; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; }
.flow-elem-text b { font-weight: 600; color: var(--text); font-size: 0.88rem; }
.flow-elem-caret { flex-shrink: 0; width: 18px; height: 18px; display: grid; place-items: center; background: none; border: none; color: var(--faint); cursor: default; margin-left: -4px; }

.flow-end { position: absolute; transform: translate(-50%, -50%); width: 12px; height: 12px; border-radius: 50%; background: var(--faint); }

/* expertise strip below feature rows */
.sf-expertise { position: relative; overflow: hidden; padding: 24px var(--md); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg-raised); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sm) var(--md); }
.sf-expertise::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.10), transparent); }
.sf-cta-text { margin: 0; font-size: 1.15rem; font-weight: 540; color: var(--text); letter-spacing: -0.01em; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 650ms var(--ease), transform 650ms var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
/* bigger/slower variant for each page's top hero moment (index's hero, about/salesforce's
   top section-head) — same IntersectionObserver + sibling-stagger logic as .reveal (see
   initReveal in script.js), just a more deliberate entrance than the card-reveal motion */
.reveal-hero { opacity: 0; transform: translateY(22px); transition: opacity 750ms var(--ease), transform 750ms var(--ease); }
.reveal-hero.visible { opacity: 1; transform: none; }

/* ---------- Nav entrance (page load, not scroll-triggered) ---------- */
@keyframes nav-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.nav { animation: nav-in 550ms var(--ease) both; }

/* ---------- Chart entrance animations ---------- */
.dash-bars rect { transform: scaleY(0); transform-box: fill-box; transform-origin: center bottom; transition: transform 700ms var(--ease); }
.dash-bars rect:nth-of-type(1) { transition-delay: 0ms; }
.dash-bars rect:nth-of-type(2) { transition-delay: 55ms; }
.dash-bars rect:nth-of-type(3) { transition-delay: 110ms; }
.dash-bars rect:nth-of-type(4) { transition-delay: 165ms; }
.dash-bars rect:nth-of-type(5) { transition-delay: 220ms; }
.dash-bars rect:nth-of-type(6) { transition-delay: 275ms; }
.dash-bars rect:nth-of-type(7) { transition-delay: 330ms; }
.dash-mock.in .dash-bars rect { transform: scaleY(1); }

.dash-donut .seg { stroke-dasharray: 0 188.5; transition: stroke-dasharray 900ms var(--ease); }
.dash-donut .seg-med { transition-delay: 160ms; }
.dash-donut .seg-low { transition-delay: 320ms; }
.dash-mock.in .dash-donut .seg-high { stroke-dasharray: 84.8 188.5; }
.dash-mock.in .dash-donut .seg-med { stroke-dasharray: 56.5 188.5; }
.dash-mock.in .dash-donut .seg-low { stroke-dasharray: 28.3 188.5; }

/* parallax targets */
.feature-visual { will-change: transform; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
    .sf-layout { grid-template-columns: 1fr; gap: var(--lg); }
    .sf-side { position: static; }
    .contact-layout { grid-template-columns: 1fr; gap: var(--md); }
    .card-grid.three { grid-template-columns: repeat(2, 1fr); }
    .card-grid.four { grid-template-columns: repeat(2, 1fr); }
    .expertise-card { min-height: 360px; }
    /* at 2 columns, "2 of 3" doesn't apply — wide cards just take the full row instead of
       trying to span a column line (4) that no longer exists at this track count */
    .work-card.wide-left, .work-card.wide-right { grid-column: 1 / -1; }
    .feature-row { grid-template-columns: minmax(0, 1fr); gap: var(--md); }
    .feature-row.reverse .feature-copy { order: 0; }
}
@media (max-width: 680px) {
    .shell { padding-inline: 20px; }
    .section { padding-block: var(--lg); }
    .hero { padding-top: 96px; }
    .nav-links, .nav-right { display: none; }
    .nav-toggle { display: inline-block; margin-left: auto; }
    .card-grid.two, .card-grid.three, .card-grid.four { grid-template-columns: 1fr; }
    .expertise-card { min-height: 300px; }
    /* filtering doesn't make sense against a compact tappable list (vs. a card grid) — show
       every engagement instead (see the isMobile check in applyWorkFilter, script.js) */
    .work-filters { display: none; }
    /* bigger tap area without changing visual size — padding offset by a matching negative
       margin so these don't shift surrounding layout */
    .footer-links a, .footer-mail { display: inline-block; padding-block: 10px; margin-block: -10px; }
    /* Recent Engagements: a tappable list instead of full cards — description, outcome line,
       and tags move into the work-modal (initWorkModal in script.js) instead of stacking here */
    #workGrid { gap: 0; }
    .work-card {
        flex-direction: row; align-items: center; gap: 14px;
        padding: 16px 2px; border-radius: 0; border-left: none; border-right: none; border-top: none;
        background: transparent;
    }
    .work-card:first-of-type { border-top: 1px solid var(--border); }
    .work-card:hover { transform: none; box-shadow: none; background: rgba(255,255,255,0.03); }
    .work-card .num { margin-bottom: 0; flex-shrink: 0; }
    .work-card h3 { flex: 1; margin-bottom: 0; font-size: 0.98rem; }
    .work-card p, .work-card .work-outcome, .work-card .work-tags { display: none; }
    .work-card::after {
        content: ""; width: 8px; height: 8px; flex-shrink: 0;
        border-right: 1.5px solid var(--faint); border-bottom: 1.5px solid var(--faint);
        transform: rotate(-45deg);
    }
    /* swipe carousel on mobile: horizontal scroll-snap instead of a stacked column,
       bleeding past .shell's own padding so cards peek off both edges */
    .card-grid.expertise-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: var(--sm);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        margin-inline: -20px;
        padding-inline: 20px;
        padding-bottom: 6px;
        scrollbar-width: none;
    }
    .card-grid.expertise-grid::-webkit-scrollbar { display: none; }
    .expertise-grid .expertise-card { flex: 0 0 82%; min-width: 82%; min-height: 340px; scroll-snap-align: center; }
    /* text stays visible regardless of hover capability — a carousel card can't rely on :hover */
    .expertise-teaser, .expertise-expand { opacity: 1; transform: none; }
    .form-grid { grid-template-columns: 1fr; }
    .stat-row { grid-template-columns: 1fr; gap: 0; }
    .stat { border-right: none; border-bottom: 1px solid var(--border); }
    .stat:last-child { border-bottom: none; }
    .setup-body { grid-template-columns: 1fr; }
    .setup-nav { display: none; }
    .mock { margin-top: var(--lg); }
    .dash-charts { grid-template-columns: 1fr; }
    .dash-kpis { grid-template-columns: 1fr; }
    .cta-panel { padding: var(--md); }
    .footer-bottom { flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; scroll-behavior: auto; transition: none !important; }
    .reveal, .reveal-hero { opacity: 1; transform: none; }
    .aurora { opacity: 0.6; }
}
