/* TechFusion Data Labs — site styles. Palette: TechFusion's brand red (#9e0b0f) on a red-black ground. */

:root {
  --bg: #0a0506;
  --bg-2: #100809;
  --panel: rgba(255, 255, 255, 0.025);
  --panel-2: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 190, 190, 0.10);
  --line-2: rgba(255, 190, 190, 0.18);
  --text: #f3ecec;
  --text-2: #bdadad;
  --text-3: #857272;
  --accent: #ff4a50;
  --accent-2: #9e0b0f;
  --accent-ink: #ffffff;
  --brand: #9e0b0f;
  --signal: #ffb547;
  --ok: #5effa8;
  --radius: 18px;
  --radius-sm: 10px;
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; }

/* Ambient background */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ambient::before {
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(40% 35% at 78% 8%, rgba(255, 59, 65, 0.10), transparent 70%),
    radial-gradient(35% 30% at 10% 30%, rgba(158, 11, 15, 0.09), transparent 70%),
    radial-gradient(50% 40% at 50% 110%, rgba(255, 59, 65, 0.06), transparent 70%);
}
.ambient::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 0%, #000 0%, transparent 75%);
  opacity: 0.45;
}
.grain { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Type */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }
.eyebrow.signal { color: var(--signal); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.025em; line-height: 1.04; margin: 0; }
.display { font-size: clamp(44px, 7.6vw, 104px); letter-spacing: -0.045em; font-weight: 600; line-height: 0.98; }
.h2 { font-size: clamp(34px, 4.6vw, 62px); letter-spacing: -0.035em; }
.h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.02em; line-height: 1.15; }
.lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--text-2); max-width: 640px; line-height: 1.55; }
.muted { color: var(--text-2); }
.mono { font-family: var(--font-mono); }
.grad {
  background: linear-gradient(100deg, #ffffff 0%, #ffd3d3 30%, #ff5a5f 65%, #d81e24 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: 999px;
  font-weight: 550; font-size: 15px; letter-spacing: -0.005em;
  border: 1px solid var(--line-2); background: var(--panel); color: var(--text);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(255, 190, 190, 0.35); background: var(--panel-2); }
.btn.primary {
  background: linear-gradient(180deg, #e3343a, #a80f15); color: var(--accent-ink); border-color: transparent;
  box-shadow: 0 0 0 1px rgba(255, 59, 65, 0.45), 0 10px 40px -10px rgba(220, 30, 36, 0.7), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn.primary:hover { box-shadow: 0 0 0 1px rgba(255, 59, 65, 0.7), 0 16px 60px -12px rgba(220, 30, 36, 0.9), inset 0 1px 0 rgba(255,255,255,0.3); }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn.signal { border-color: rgba(255, 181, 71, 0.4); color: #ffd79a; }
.btn.signal .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 rgba(255,181,71,0.7); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,181,71,0.6); } 70% { box-shadow: 0 0 0 10px rgba(255,181,71,0); } 100% { box-shadow: 0 0 0 0 rgba(255,181,71,0); } }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(10, 5, 6, 0.72); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; font-size: 17px; }
.brand-mark { width: 30px; height: 30px; }
.brand small { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; color: var(--text-3); font-weight: 400; text-transform: uppercase; margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--text-2); transition: color 0.2s, background 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--panel-2); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { height: 42px; padding: 0 18px; font-size: 14px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 1.5px; background: var(--text); position: relative; transition: transform 0.3s var(--ease); }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.nav-open .menu-btn span { background: transparent; }
.nav-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 140px 0 80px; overflow: hidden; }
#lattice { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.95; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(180deg, transparent, var(--bg)); z-index: 1; pointer-events: none; }
.hero .wrap { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 48px; align-items: end; }
.hero h1 { margin: 22px 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-panel {
  border: 1px solid var(--line-2); border-radius: var(--radius); padding: 22px;
  background: linear-gradient(180deg, rgba(22, 9, 10, 0.75), rgba(14, 6, 7, 0.6));
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-family: var(--font-mono); font-size: 12px; color: var(--text-2);
  box-shadow: 0 40px 120px -40px rgba(255, 59, 65, 0.25);
}
.hero-panel .row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.hero-panel .row:last-child { border-bottom: 0; }
.hero-panel .k { color: var(--text-3); text-transform: uppercase; letter-spacing: 0.1em; }
.hero-panel .v { color: var(--text); text-align: right; }
.hero-panel .v.ok { color: var(--ok); }
.hero-panel .head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; color: var(--accent); letter-spacing: 0.12em; text-transform: uppercase; }
.dots { display: inline-flex; gap: 5px; } .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); } .dots i:first-child { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 14px; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transition: width 0.6s var(--ease); }
.hexline { margin-top: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: clip; font-size: 11px; }
.scroll-hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 3; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--text-3); text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scroll-hint::after { content: ""; width: 1px; height: 36px; background: linear-gradient(var(--accent), transparent); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Marquee */
.marquee { border-block: 1px solid var(--line); padding: 22px 0; overflow: hidden; position: relative; background: rgba(255,255,255,0.01); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 48s linear infinite; }
.marquee span { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.marquee span::after { content: "◆"; color: var(--accent); opacity: 0.5; font-size: 8px; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
section { position: relative; }
.section { padding: clamp(96px, 12vw, 168px) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head h2 { margin-top: 18px; }
.section-head .lede { justify-self: end; }

/* Frontier: problem statements */
.frontier { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.f-card {
  position: relative; grid-column: span 4; padding: 30px; border-radius: var(--radius);
  border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel-2), var(--panel));
  overflow: hidden; min-height: 300px; display: flex; flex-direction: column; justify-content: space-between;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.f-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.f-card.wide { grid-column: span 8; }
.f-card .num { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); letter-spacing: 0.12em; }
.f-card h3 { margin: 18px 0 12px; }
.f-card p { color: var(--text-2); margin: 0; font-size: 15px; }
.f-card .tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-top: 24px; }
.f-card .glow { position: absolute; width: 340px; height: 340px; right: -120px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(255,59,65,0.16), transparent 65%); pointer-events: none; }
.f-card .art { position: absolute; right: 24px; top: 24px; width: 46%; max-width: 360px; opacity: 0.9; }

/* Spotlight cards follow the pointer */
.spot { --mx: 50%; --my: 50%; }
.spot::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 59, 65, 0.10), transparent 45%);
}
.spot:hover::before { opacity: 1; }

/* Practices */
.practices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.practice { position: relative; padding: 36px 32px 40px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); transition: background 0.4s var(--ease); display: flex; flex-direction: column; }
.practice:nth-child(3n) { border-right: 0; }
.practice:nth-last-child(-n+3) { border-bottom: 0; }
.practice:hover { background: #170a0b; }
.practice .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line-2); background: rgba(255,59,65,0.05); color: var(--accent); margin-bottom: 28px; }
.practice .icon svg { width: 22px; height: 22px; }
.practice h3 { font-size: 22px; margin-bottom: 12px; }
.practice p { color: var(--text-2); font-size: 15px; margin: 0 0 20px; }
.practice ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.practice li { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); display: flex; gap: 10px; }
.practice li::before { content: "›"; color: var(--accent); }
.practice .more { margin-top: auto; font-size: 14px; color: var(--accent); display: inline-flex; align-items: center; gap: 8px; }
.practice .more:hover { gap: 12px; }

/* Method timeline */
.method { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; }
.method::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 1px; background: linear-gradient(90deg, var(--accent), var(--accent-2) 60%, transparent); opacity: 0.5; }
.step { padding-right: 28px; position: relative; }
.step .node { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--accent); color: var(--accent); font-family: var(--font-mono); font-size: 13px; box-shadow: 0 0 30px -6px rgba(255,59,65,0.6); margin-bottom: 30px; position: relative; z-index: 1; }
.step h3 { font-size: 21px; margin-bottom: 10px; }
.step p { color: var(--text-2); font-size: 15px; margin: 0; }
.step .meta { margin-top: 18px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--text-3); text-transform: uppercase; }

/* Case console */
.console { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); border: 1px solid var(--line-2); border-radius: 22px; overflow: hidden; background: linear-gradient(180deg, #160809, #0d0506); box-shadow: 0 60px 160px -60px rgba(255,59,65,0.25); }
.console-list { border-right: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.console-tab { text-align: left; padding: 18px 18px; border-radius: 14px; border: 1px solid transparent; background: transparent; cursor: pointer; transition: background 0.25s, border-color 0.25s; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: baseline; }
.console-tab .idx { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
.console-tab strong { font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.console-tab span:last-child { grid-column: 2; font-size: 13px; color: var(--text-3); }
.console-tab:hover { background: var(--panel); }
.console-tab[aria-selected="true"] { background: rgba(255,59,65,0.06); border-color: rgba(255,59,65,0.25); }
.console-tab[aria-selected="true"] .idx { color: var(--accent); }
.console-view { padding: 34px 36px; font-family: var(--font-mono); font-size: 13px; min-height: 460px; position: relative; }
.console-view .titlebar { display: flex; justify-content: space-between; align-items: center; color: var(--text-3); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.console-view .line { display: flex; gap: 14px; padding: 6px 0; color: var(--text-2); opacity: 0; transform: translateY(4px); animation: lineIn 0.45s var(--ease) forwards; }
.console-view .line .t { color: var(--text-3); min-width: 54px; }
.console-view .line .s { color: var(--accent); min-width: 74px; }
.console-view .line .s.ok { color: var(--ok); }
.console-view .line .s.warn { color: var(--signal); }
.console-view .summary { margin-top: 24px; padding: 18px 20px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); font-family: var(--font-body); font-size: 15px; color: var(--text); line-height: 1.55; opacity: 0; animation: lineIn 0.5s var(--ease) forwards; }
@keyframes lineIn { to { opacity: 1; transform: none; } }

/* Lineage */
.lineage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.era { display: grid; gap: 0; border-left: 1px solid var(--line-2); margin-left: 6px; }
.era-item { padding: 0 0 34px 34px; position: relative; }
.era-item:last-child { padding-bottom: 0; }
.era-item::before { content: ""; position: absolute; left: -6px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1px solid var(--text-3); }
.era-item.now::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 16px var(--accent); }
.era-item .yr { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--text-3); }
.era-item.now .yr { color: var(--accent); }
.era-item h4 { font-size: 20px; margin: 6px 0 6px; letter-spacing: -0.015em; }
.era-item p { margin: 0; color: var(--text-2); font-size: 15px; }
.big-year { font-family: var(--font-display); font-size: clamp(96px, 16vw, 220px); font-weight: 600; letter-spacing: -0.06em; line-height: 0.85; color: transparent; -webkit-text-stroke: 1px rgba(255,190,190,0.25); }

/* Assurance */
.assure { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.a-card { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); position: relative; overflow: hidden; }
.a-card h4 { font-size: 18px; margin: 18px 0 8px; letter-spacing: -0.01em; }
.a-card p { margin: 0; font-size: 14px; color: var(--text-2); }
.a-card .icon { color: var(--accent); width: 26px; height: 26px; }

/* FAQ */
.faq { max-width: 900px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 0; display: flex; justify-content: space-between; gap: 24px; align-items: center; font-family: var(--font-display); font-size: clamp(18px, 1.8vw, 22px); font-weight: 500; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; transition: transform 0.35s var(--ease), border-color 0.3s; }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--text); transform: translate(-50%, -50%); }
.faq summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.35s var(--ease); }
.faq details[open] summary .plus { border-color: var(--accent); }
.faq details[open] summary .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq .answer { padding: 0 60px 28px 0; color: var(--text-2); font-size: 16px; }
.faq .answer p { margin: 0 0 12px; }

/* CTA band */
.cta-band { position: relative; border-radius: 28px; overflow: hidden; padding: clamp(48px, 7vw, 96px); border: 1px solid var(--line-2);
  background: radial-gradient(80% 120% at 100% 0%, rgba(255,59,65,0.18), transparent 60%), radial-gradient(60% 100% at 0% 100%, rgba(158,11,15,0.16), transparent 60%), #120708; }
.cta-band .wrap-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 48px; align-items: end; position: relative; z-index: 1; }
.cta-band .ring { position: absolute; right: -180px; top: -180px; width: 560px; height: 560px; border-radius: 50%; border: 1px solid rgba(255,59,65,0.2); }
.cta-band .ring.r2 { width: 760px; height: 760px; right: -280px; top: -280px; border-color: rgba(255,59,65,0.1); }
.cta-band .actions { display: flex; flex-direction: column; gap: 12px; }
.cta-band .actions .btn { width: 100%; }
.cta-meta { margin-top: 18px; font-family: var(--font-mono); font-size: 12px; color: var(--text-3); letter-spacing: 0.06em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 72px 0 40px; margin-top: clamp(80px, 10vw, 140px); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot-grid h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin: 0 0 16px; font-weight: 500; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; color: var(--text-2); }
.foot-grid a:hover { color: var(--text); }
.foot-grid address { font-style: normal; font-size: 14px; color: var(--text-2); line-height: 1.7; }
.foot-base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); }
.foot-word { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.05em; font-size: clamp(56px, 13vw, 190px); line-height: 0.8; margin-top: 64px; background: linear-gradient(180deg, rgba(243,236,236,0.14), rgba(243,236,236,0)); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; white-space: nowrap; overflow: hidden; }

/* Sub-page hero */
.page-hero { padding: 180px 0 80px; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(42px, 6.4vw, 88px); letter-spacing: -0.045em; line-height: 1; margin: 22px 0 24px; max-width: 14ch; }
.page-hero .lede { max-width: 680px; }
.crumbs { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); letter-spacing: 0.06em; }
.crumbs a:hover { color: var(--text); }
.page-hero .visual { position: absolute; right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); top: 150px; width: min(42vw, 520px); opacity: 0.95; pointer-events: none; }

.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); }
.split .sticky { position: sticky; top: 120px; align-self: start; }
.prose h3 { font-size: 24px; margin: 0 0 12px; }
.prose p { color: var(--text-2); margin: 0 0 18px; }
.prose .block { padding: 32px 0; border-top: 1px solid var(--line); }
.prose .block:first-child { border-top: 0; padding-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { font-family: var(--font-mono); font-size: 12px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); background: var(--panel); }

.callout { border: 1px solid rgba(255,181,71,0.35); background: rgba(255,181,71,0.05); border-radius: var(--radius); padding: 26px 28px; }
.callout h4 { color: #ffd79a; font-size: 18px; margin-bottom: 10px; }
.callout ol, .callout ul { margin: 0; padding-left: 20px; color: var(--text-2); display: grid; gap: 8px; font-size: 15px; }

.compare { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { text-align: left; padding: 18px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); font-weight: 500; }
.compare td:first-child { color: var(--text); font-weight: 500; width: 28%; }
.compare td { color: var(--text-2); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }

/* Contact / intake */
.intake { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 32px; align-items: start; }
.form { border: 1px solid var(--line-2); border-radius: 22px; padding: clamp(24px, 4vw, 40px); background: linear-gradient(180deg, #160809, #0f0607); }
.form .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255,255,255,0.03);
  color: var(--text); font: inherit; font-size: 15px; transition: border-color 0.2s, background 0.2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field select option { background: #1a0b0c; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: rgba(255,59,65,0.04); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.field .seg input { position: absolute; width: 1px; height: 1px; padding: 0; opacity: 0; pointer-events: none; }
.seg label { margin: 0; cursor: pointer; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-family: var(--font-body); font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--text-2); transition: all 0.2s; }
.seg input:checked + label { border-color: var(--accent); color: var(--text); background: rgba(255,59,65,0.08); }
.seg input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.form-foot small { color: var(--text-3); font-size: 13px; max-width: 360px; }
.form-note { margin-top: 16px; font-size: 14px; color: var(--ok); min-height: 1.4em; }
.side-card { border: 1px solid var(--line); border-radius: 22px; padding: 30px; background: var(--panel); }
.side-card + .side-card { margin-top: 16px; }
.side-card h4 { font-size: 18px; margin-bottom: 14px; }
.side-card .tel { font-family: var(--font-display); font-size: 34px; letter-spacing: -0.03em; font-weight: 600; display: block; margin: 6px 0 4px; }
.side-card address { font-style: normal; color: var(--text-2); line-height: 1.7; }
.side-card ul { padding-left: 18px; margin: 0; color: var(--text-2); display: grid; gap: 8px; font-size: 15px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; } .reveal.d3 { transition-delay: 0.24s; } .reveal.d4 { transition-delay: 0.32s; }
.no-js .reveal { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { max-width: 520px; }
  .practices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .practice:nth-child(3n) { border-right: 1px solid var(--line); }
  .practice:nth-child(2n) { border-right: 0; }
  .practice:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .practice:nth-last-child(-n+2) { border-bottom: 0; }
  .assure { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f-card, .f-card.wide { grid-column: span 6; }
  .page-hero .visual { display: none; }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta .btn:not(.menu-keep) { display: none; }
  .menu-btn { display: inline-flex; }
  .nav-open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; position: fixed; top: 76px; left: 0; right: 0;
    background: rgba(10, 5, 6, 0.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    padding: 16px var(--gutter) 28px; border-bottom: 1px solid var(--line); gap: 4px;
  }
  .nav-open .nav-links a { padding: 14px 12px; font-size: 17px; }
  .nav-open .nav-links .mobile-only { display: block; }
  .section-head, .lineage, .split, .intake, .cta-band .wrap-inner, .console { grid-template-columns: 1fr; }
  .section-head .lede { justify-self: start; }
  .split .sticky { position: static; }
  .method { grid-template-columns: 1fr; gap: 36px; }
  .method::before { left: 23px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(180deg, var(--accent), var(--accent-2) 60%, transparent); }
  .step { padding: 0 0 0 72px; }
  .step .node { position: absolute; left: 0; top: 0; margin: 0; }
  .console-list { border-right: 0; border-bottom: 1px solid var(--line); flex-direction: row; overflow-x: auto; }
  .console-tab { min-width: 220px; }
  .console-view { padding: 24px 20px; min-height: 420px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .big-year { display: none; }
}
@media (max-width: 600px) {
  .practices, .assure { grid-template-columns: 1fr; }
  .practice { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .practice:last-child { border-bottom: 0 !important; }
  .f-card, .f-card.wide { grid-column: span 12; min-height: 0; }
  .f-card .art { display: none; }
  .form .grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .foot-grid { grid-template-columns: 1fr; }
  .faq .answer { padding-right: 0; }
  .console-view .line { flex-wrap: wrap; gap: 4px 12px; }
  .scroll-hint { display: none; }
}
.mobile-only { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Inner-page hero with an illustration beside the copy */
@media (min-width: 1081px) {
  .page-hero.has-visual h1, .page-hero.has-visual .lede { max-width: 54%; }
}

/* Spacing and layout helpers (the CSP allows no inline style attributes) */
.pt-0 { padding-top: 0; }
.pt-40 { padding-top: 40px; }
.pb-40 { padding-bottom: 40px; }
.mt-18 { margin-top: 18px; }
.mt-20 { margin-top: 20px; }
.mt-28 { margin-top: 28px; }
.mt-32 { margin-top: 32px; }
.mb-40 { margin: 18px 0 40px; }
.h2-gap { margin: 18px 0 24px; }
.maxw-440 { max-width: 440px; }
.maxw-900 { max-width: 900px; }
.section-head.centered { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.foot-blurb { font-size: 14px; max-width: 320px; margin-top: 16px; }
.foot-blurb a, .link-strong { color: var(--text); }
.callout strong { color: var(--text); }
.a-card h4.flush { margin-top: 0; }
.small-muted { margin: 0; font-size: 14px; }
.side-card .mail { font-size: 14px; margin: 14px 0 0; }
.page-hero.tall { min-height: 70vh; }
.page-hero.short { padding-bottom: 40px; }
.form .error { margin: 0 0 18px; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(255, 74, 80, 0.5); background: rgba(255, 74, 80, 0.08); color: #ffd3d3; font-size: 15px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); }
.check input { margin-top: 4px; accent-color: var(--accent); }
.fine { font-size: 13px; color: var(--text-3); }
.thanks-steps { margin: 28px 0 0; padding-left: 20px; color: var(--text-2); display: grid; gap: 10px; }
.prose-legal { max-width: 760px; }
.prose-legal h2 { font-size: 24px; margin: 36px 0 12px; }
.prose-legal p, .prose-legal li { color: var(--text-2); }
.prose-legal a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* Privacy and terms */
.legal { padding-top: 160px; padding-bottom: 40px; }
.legal h1 { font-size: clamp(40px, 5vw, 64px); letter-spacing: -0.04em; margin-bottom: 12px; }
.legal ul { padding-left: 20px; display: grid; gap: 10px; }

/* Card copy beside an illustration */
.f-card p.maxw-440 { max-width: 46%; }
@media (max-width: 1080px) { .f-card p.maxw-440 { max-width: none; } .f-card .art { display: none; } }

/* The situation choices are a fieldset (one group for screen readers) styled like the other fields */
.seg-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.seg-field legend { padding: 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }

/* TechFusion vs Data Labs */
.split-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.split-cards .side-card + .side-card { margin-top: 0; }
.split-cards .side-card { display: flex; flex-direction: column; align-items: flex-start; }
.split-cards ul { margin-top: 6px; }
.split-cards .btn { margin-top: auto; }
.split-cards h4 { font-size: 22px; }
.accent-card { border-color: rgba(255, 74, 80, 0.4); background: linear-gradient(180deg, rgba(255, 74, 80, 0.07), rgba(255, 74, 80, 0.02)); }
.hero-panel .v.warn { color: var(--signal); }
@media (max-width: 860px) { .split-cards { grid-template-columns: 1fr; } }
.split-cards ul { margin-bottom: 28px; }
.f-card.wide h3 { max-width: 46%; }
@media (max-width: 1080px) { .f-card.wide h3 { max-width: none; } }
