/* Engineering hub landing: hero with the live sync diagram, page navigation, discipline
   pillars, workbench intro, industrial automation, process and the command palette.
   The workbench below keeps its own design layer (engineering-sota.css). */
body.tt-engineering {
  --hub-bg: #0a0f13;
  --hub-surface: #0f161b;
  --hub-surface-2: #141d23;
  --hub-surface-3: #1a252c;
  --hub-line: rgba(220, 235, 245, 0.09);
  --hub-line-strong: rgba(220, 235, 245, 0.17);
  --hub-ink: #eaf1f4;
  --hub-ink-2: #b6c3ca;
  --hub-ink-3: #8a99a2;
  --hub-e: #2cc8f6;
  --hub-m: #f7a541;
  --hub-c: #34e39d;
  --hub-a: #a99bff;
  --hub-pass: #34e39d;
  --hub-warn: #f5c84b;
  --hub-fail: #ff6f6f;
  --hub-grad: linear-gradient(135deg, #34e39d, #2cc8f6);
  --hub-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --hub-radius: 18px;
}
html:has(body.tt-engineering) { scroll-padding-top: 76px; }

/* Buttons */
.eng-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 20px; border-radius: 999px;
  border: 1px solid var(--hub-line-strong); background: rgba(255, 255, 255, 0.03);
  color: var(--hub-ink); font: 600 15px/1.2 Inter, system-ui, sans-serif; text-decoration: none; white-space: nowrap;
  transition: transform 0.14s ease-out, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.eng-btn i { font-size: 18px; }
.eng-btn:hover { border-color: rgba(220, 235, 245, 0.38); background: rgba(255, 255, 255, 0.07); color: var(--hub-ink); }
.eng-btn:active { transform: scale(0.97); }
.eng-btn--primary { border-color: transparent; background: var(--hub-grad); color: #04140e; box-shadow: 0 10px 30px rgba(44, 200, 246, 0.18); }
.eng-btn--primary:hover { background: linear-gradient(135deg, #4cefae, #4cd3fa); color: #04140e; box-shadow: 0 12px 34px rgba(44, 200, 246, 0.28); }
.eng-btn--ghost { border-color: transparent; background: transparent; color: var(--hub-ink-2); }
.eng-btn--ghost:hover { background: rgba(255, 255, 255, 0.05); border-color: transparent; color: var(--hub-ink); }
body.tt-engineering :is(.eng-btn, .eng-pagenav a, .eng-pagenav button, .eng-pillar__links a, .eng-stagestrip a, [data-eng-node]):focus-visible {
  outline: 2px solid var(--hub-e); outline-offset: 3px;
}

/* Shared section heading */
.eng-eyebrow {
  display: inline-block; font-family: var(--hub-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--hub-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eng-sechead { display: grid; gap: 12px; max-width: 820px; margin-bottom: 28px; }
body.tt-engineering .eng-sechead h2 { margin: 0; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -0.028em; font-weight: 700; color: var(--hub-ink); text-wrap: balance; }
body.tt-engineering .eng-sechead p { margin: 0; color: var(--hub-ink-2); font-size: 17px; line-height: 1.6; max-width: 72ch; }

/* Hero */
.eng-landing {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr); gap: clamp(24px, 4vw, 64px); align-items: center;
  margin: 8px 0 0; padding: clamp(28px, 4.6vw, 64px) 0 clamp(28px, 4vw, 48px);
}
.eng-landing::before {
  content: ''; position: absolute; inset: -40px -10vw auto; height: 520px; z-index: -1; pointer-events: none;
  background: radial-gradient(48% 60% at 78% 34%, rgba(44, 200, 246, 0.12), transparent 70%), radial-gradient(40% 50% at 18% 20%, rgba(52, 227, 157, 0.08), transparent 70%);
}
.eng-kicker {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 7px 14px 7px 10px;
  border: 1px solid var(--hub-line-strong); border-radius: 999px; background: rgba(15, 22, 27, 0.8);
  font-size: 13px; font-weight: 500; color: var(--hub-ink-2); line-height: 1.35;
}
.eng-kicker__pulse { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--hub-c); }
.eng-kicker__pulse::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--hub-c); opacity: 0; animation: hub-ping 2.4s ease-out infinite; }
@keyframes hub-ping { 0% { transform: scale(0.6); opacity: 0.8; } 100% { transform: scale(1.8); opacity: 0; } }
body.tt-engineering .eng-landing h1 {
  margin: 22px 0 0; font-size: clamp(38px, 5.2vw, 70px); line-height: 1.02; letter-spacing: -0.036em; font-weight: 750; color: var(--hub-ink); text-wrap: balance;
}
body.tt-engineering .eng-landing__lead { margin: 22px 0 0; max-width: 60ch; color: var(--hub-ink-2); font-size: clamp(16px, 1.35vw, 19px); line-height: 1.62; }
.eng-landing__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.eng-landing__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 36px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--hub-line); }
.eng-landing__facts li { display: grid; gap: 4px; padding: 16px 14px 0 0; }
.eng-landing__facts li + li { padding-left: 14px; border-left: 1px solid var(--hub-line); }
.eng-landing__facts strong { font-family: var(--hub-mono); font-size: 22px; font-weight: 600; color: var(--hub-ink); letter-spacing: -0.01em; }
.eng-landing__facts span { font-size: 13px; line-height: 1.4; color: var(--hub-ink-3); }
.eng-landing__visual { margin: 0; display: grid; gap: 10px; }
.eng-landing__visual figcaption { font-size: 13px; color: var(--hub-ink-3); text-align: center; }

/* Live sync diagram */
.eng-sync { display: block; width: 100%; height: auto; overflow: visible; }
.eng-sync text { font-family: Inter, system-ui, sans-serif; }
.eng-sync .ln { fill: none; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 3 7; opacity: 0.7; animation: hub-dash 1.6s linear infinite; }
.eng-sync .ln--e { stroke: var(--hub-e); }
.eng-sync .ln--m { stroke: var(--hub-m); }
.eng-sync .ln--c { stroke: var(--hub-c); }
@keyframes hub-dash { to { stroke-dashoffset: -20; } }
.eng-sync.is-off * { animation-play-state: paused !important; }
.eng-sync .lb { font-family: var(--hub-mono); font-size: 14px; font-weight: 600; }
.eng-sync .lb__v { transition: fill 0.3s ease; }
.eng-sync .lb__k { font-family: Inter, system-ui, sans-serif; font-size: 11.5px; font-weight: 500; fill: var(--hub-ink-3); }
.eng-sync .lb--e { fill: var(--hub-e); }
.eng-sync .lb--m { fill: var(--hub-m); }
.eng-sync .lb--c { fill: var(--hub-c); }
.eng-sync .lb__v.is-flash { fill: #fff; }
.eng-sync .pk { stroke: #0a0f13; stroke-width: 1.5; }
.eng-sync .pk--e { fill: var(--hub-e); }
.eng-sync .pk--m { fill: var(--hub-m); }
.eng-sync .pk--c { fill: var(--hub-c); }
.eng-sync__node { cursor: pointer; outline: none; }
.eng-sync__node rect { fill: #0f161b; stroke-width: 1.5; transition: stroke-width 0.18s ease, filter 0.18s ease; }
.eng-sync__node--e rect { stroke: var(--hub-e); }
.eng-sync__node--m rect { stroke: var(--hub-m); }
.eng-sync__node--c rect { stroke: var(--hub-c); }
.eng-sync__node:hover rect, .eng-sync__node:focus-visible rect { stroke-width: 3; filter: drop-shadow(0 0 12px rgba(44, 200, 246, 0.35)); }
.eng-sync__node:focus-visible rect { stroke: #fff; }
.eng-sync .nd__title { font-size: 16px; font-weight: 700; fill: var(--hub-ink); letter-spacing: -0.01em; }
.eng-sync .nd__v { font-family: var(--hub-mono); font-size: 17px; font-weight: 500; fill: var(--hub-ink); }
.eng-sync .nd__s { font-size: 13px; fill: var(--hub-ink-2); }
.eng-sync .nd__dot { fill: var(--hub-pass); }
.eng-sync .nd__dot[data-state="warn"] { fill: var(--hub-warn); }
.eng-sync .nd__dot[data-state="fail"] { fill: var(--hub-fail); }
.eng-sync .core__track { fill: #0b1216; stroke: #1a252c; stroke-width: 8; }
.eng-sync .core__arc { fill: none; stroke: url(#eng-sync-glow); stroke-width: 8; stroke-linecap: round; transform: rotate(-90deg); transform-box: fill-box; transform-origin: center; transition: stroke-dasharray 0.5s ease; }
.eng-sync__core[data-state="warn"] .core__arc { stroke: var(--hub-warn); }
.eng-sync__core[data-state="fail"] .core__arc { stroke: var(--hub-fail); }
.eng-sync .core__n { font-family: var(--hub-mono); font-size: 18px; font-weight: 700; fill: var(--hub-ink); }
.eng-sync .core__s { font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; fill: var(--hub-pass); }
.eng-sync__core[data-state="warn"] .core__s { fill: var(--hub-warn); }
.eng-sync__core[data-state="fail"] .core__s { fill: var(--hub-fail); }

/* Page navigation (tucks away while the workbench, with its own navigation, is on screen) */
.eng-pagenav {
  position: sticky; top: 0; z-index: 40; margin: 0 calc(-1 * clamp(0px, 2vw, 24px)) 8px;
  padding: 10px clamp(0px, 2vw, 24px); background: #0b1013; border-bottom: 1px solid var(--hub-line); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
  transition: transform 0.28s ease, opacity 0.28s ease;
}
.eng-pagenav.is-tucked { transform: translateY(-110%); opacity: 0; pointer-events: none; }
.eng-pagenav__inner { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.eng-pagenav__inner::-webkit-scrollbar { display: none; }
.eng-pagenav a, .eng-pagenav button {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid transparent; background: transparent; color: var(--hub-ink-2); font: 500 14px/1 Inter, system-ui, sans-serif; text-decoration: none; cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.eng-pagenav a:hover, .eng-pagenav button:hover { color: var(--hub-ink); background: rgba(255, 255, 255, 0.05); }
.eng-pagenav a[aria-current="true"] { color: var(--hub-ink); background: rgba(255, 255, 255, 0.08); }
.eng-pagenav__cmd { margin-left: auto; border-color: var(--hub-line-strong) !important; }
.eng-pagenav__cmd kbd { padding: 2px 6px; border: 1px solid var(--hub-line-strong); border-radius: 6px; font: 500 11px var(--hub-mono); color: var(--hub-ink-3); }
.eng-pagenav .eng-pagenav__cta { background: var(--hub-grad); color: #04140e; font-weight: 650; }
.eng-pagenav .eng-pagenav__cta:hover { color: #04140e; background: linear-gradient(135deg, #4cefae, #4cd3fa); }

/* Discipline pillars */
.eng-disciplines { padding: clamp(36px, 5vw, 72px) 0 8px; scroll-margin-top: 70px; }
.eng-pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.eng-pillar {
  --accent: var(--hub-e);
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px 20px 20px;
  border: 1px solid var(--hub-line); border-radius: var(--hub-radius);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, var(--hub-surface)), var(--hub-surface) 60%);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.eng-pillar::before { content: ''; position: absolute; left: 20px; right: 20px; top: -1px; height: 2px; border-radius: 2px; background: var(--accent); }
.eng-pillar:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.eng-pillar--m { --accent: var(--hub-m); }
.eng-pillar--c { --accent: var(--hub-c); }
.eng-pillar--a { --accent: var(--hub-a); }
.eng-pillar__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); font-size: 24px; }
body.tt-engineering .eng-pillar h3 { margin: 4px 0 0; font-size: 20px; font-weight: 700; letter-spacing: -0.015em; color: var(--hub-ink); }
body.tt-engineering .eng-pillar p { margin: 0; color: var(--hub-ink-2); font-size: 15px; line-height: 1.55; }
.eng-pillar ul { display: grid; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.eng-pillar li { position: relative; padding-left: 20px; color: var(--hub-ink-2); font-size: 14px; line-height: 1.45; }
.eng-pillar li::before { content: ''; position: absolute; left: 2px; top: 7px; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); opacity: 0.85; }
.eng-pillar__links { display: grid; gap: 2px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--hub-line); }
.eng-pillar__links a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; padding: 8px 10px; margin: 0 -10px; border-radius: 10px;
  color: var(--hub-ink); font-size: 14px; font-weight: 600; text-decoration: none;
}
.eng-pillar__links a::after { content: '→'; color: var(--accent); transition: transform 0.15s ease; }
.eng-pillar__links a:hover { background: rgba(255, 255, 255, 0.05); color: var(--hub-ink); }
.eng-pillar__links a:hover::after { transform: translateX(3px); }

/* Workbench intro */
.eng-workbench-head { padding: clamp(36px, 5vw, 64px) 0 18px; scroll-margin-top: 16px; }
.eng-workbench-head .eng-sechead { margin-bottom: 20px; }
.eng-stagestrip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; counter-reset: none; }
.eng-stagestrip a {
  display: grid; gap: 2px; height: 100%; padding: 12px 14px; border: 1px solid var(--hub-line); border-radius: 14px; background: var(--hub-surface);
  color: var(--hub-ink); font-weight: 650; font-size: 15px; text-decoration: none; transition: border-color 0.18s ease, background-color 0.18s ease;
}
.eng-stagestrip a:hover { border-color: rgba(52, 227, 157, 0.45); background: var(--hub-surface-2); color: var(--hub-ink); }
.eng-stagestrip b { font-family: var(--hub-mono); font-size: 12px; font-weight: 500; color: var(--hub-c); }
.eng-stagestrip span { font-size: 12.5px; font-weight: 400; color: var(--hub-ink-3); line-height: 1.4; }
body.tt-engineering .eng-workbench-head .eng-notice { margin: 0 0 18px; }

/* Industrial automation */
.eng-automation {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  margin: clamp(40px, 6vw, 80px) 0 0; padding: clamp(24px, 3.4vw, 44px);
  border: 1px solid var(--hub-line); border-radius: 24px; scroll-margin-top: 70px;
  background: radial-gradient(80% 90% at 100% 0%, rgba(169, 155, 255, 0.1), transparent 60%), var(--hub-surface);
}
body.tt-engineering .eng-automation h2 { margin: 12px 0 0; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.08; letter-spacing: -0.028em; font-weight: 700; color: var(--hub-ink); }
body.tt-engineering .eng-automation p { margin: 14px 0 0; color: var(--hub-ink-2); font-size: 16.5px; line-height: 1.6; }
.eng-checklist { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.eng-checklist li { display: flex; gap: 10px; align-items: flex-start; color: var(--hub-ink); font-size: 15px; line-height: 1.45; }
.eng-checklist i { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(169, 155, 255, 0.16); color: var(--hub-a); font-size: 13px; }
.eng-automation__visual { margin: 0; display: grid; gap: 8px; }
.eng-automation__visual figcaption { font-size: 12.5px; color: var(--hub-ink-3); text-align: center; }
.eng-line { width: 100%; height: auto; border-radius: 16px; background: #08121a; border: 1px solid var(--hub-line); }
.eng-line text { font-family: var(--hub-mono); font-size: 11px; fill: var(--hub-ink-2); }
.eng-line__floor { fill: #1a252c; }
.eng-line__plc rect:first-child { fill: #0f161b; stroke: rgba(169, 155, 255, 0.7); stroke-width: 1.5; }
.eng-line__io circle { fill: #1f2a31; animation: hub-io 1.8s steps(1, end) infinite; }
.eng-line__io circle:nth-child(3n) { animation-delay: -0.6s; } .eng-line__io circle:nth-child(3n+1) { animation-delay: -1.2s; } .eng-line__io circle:nth-child(4) { animation-duration: 0.9s; }
@keyframes hub-io { 0%, 49% { fill: #34e39d; } 50%, 100% { fill: #1f2a31; } }
.eng-line__screen { fill: #0a1a14; stroke: rgba(52, 227, 157, 0.5); }
.eng-line .eng-line__kpi { fill: var(--hub-c); font-size: 10.5px; }
.eng-line__bus { fill: none; stroke: rgba(169, 155, 255, 0.55); stroke-width: 1.5; stroke-dasharray: 4 4; animation: hub-dash 1.2s linear infinite; }
.eng-line__belt > rect { fill: #141d23; stroke: #26343d; }
.eng-line__rollers circle { fill: #1f2a31; stroke: #3a4a55; stroke-dasharray: 3 3; animation: hub-spin 1.1s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes hub-spin { to { transform: rotate(360deg); } }
.eng-line__legs rect { fill: #26343d; }
.eng-line__items .it { fill: rgba(44, 200, 246, 0.25); stroke: var(--hub-e); stroke-width: 1.2; animation: hub-belt 8s linear infinite; }
.eng-line__items .it--2 { animation-delay: -2s; } .eng-line__items .it--3 { animation-delay: -4s; } .eng-line__items .it--4 { animation-delay: -6s; }
.eng-line__items .it--bad { animation-name: hub-belt-reject; }
@keyframes hub-belt { from { transform: translateX(150px); } to { transform: translateX(470px); } }
@keyframes hub-belt-reject {
  0% { transform: translateX(150px); fill: rgba(44, 200, 246, 0.25); stroke: var(--hub-e); }
  40% { fill: rgba(255, 111, 111, 0.35); stroke: var(--hub-fail); }
  64% { transform: translateX(355px) translateY(0); opacity: 1; fill: rgba(255, 111, 111, 0.35); stroke: var(--hub-fail); }
  76% { transform: translateX(370px) translateY(46px); opacity: 0; }
  100% { transform: translateX(470px) translateY(46px); opacity: 0; }
}
.eng-line__camera rect { fill: #0f161b; stroke: var(--hub-e); stroke-width: 1.4; }
.eng-line__beam { fill: rgba(44, 200, 246, 0.14); animation: hub-scan 2s ease-in-out infinite; }
@keyframes hub-scan { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.9; } }
.eng-line__arm rect { fill: #1a252c; stroke: var(--hub-m); stroke-width: 1.3; }
.eng-line__link1 { transform-box: view-box; transform-origin: 412px 154px; animation: hub-arm 4s ease-in-out infinite; }
.eng-line__link2 { transform-box: view-box; transform-origin: 412px 97px; animation: hub-arm2 4s ease-in-out infinite; }
@keyframes hub-arm { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(12deg); } }
@keyframes hub-arm2 { 0%, 100% { transform: rotate(8deg); } 50% { transform: rotate(-14deg); } }
.eng-line:not(.is-playing) * { animation-play-state: paused !important; }

/* Real hardware band (the existing photo brief, restyled) */
.eng-hardware { margin: clamp(40px, 6vw, 80px) 0 0; }
body.tt-engineering .eng-hardware .tt-photo-brief {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 56px); align-items: center;
  margin: 0; padding: 0; border: 0; background: none;
}
body.tt-engineering .eng-hardware .tt-photo-panel { margin: 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--hub-line); }
body.tt-engineering .eng-hardware .tt-photo-panel img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
body.tt-engineering .eng-hardware .tt-photo-panel figcaption { padding: 10px 14px; font-size: 12.5px; color: var(--hub-ink-3); background: var(--hub-surface); }
body.tt-engineering .eng-hardware h2 { margin: 12px 0 0; font-size: clamp(26px, 3vw, 38px); line-height: 1.1; letter-spacing: -0.025em; font-weight: 700; color: var(--hub-ink); }
body.tt-engineering .eng-hardware p { color: var(--hub-ink-2); font-size: 16px; line-height: 1.6; }

/* Process and closing call to action */
.eng-process { padding: clamp(44px, 6vw, 88px) 0 clamp(28px, 4vw, 48px); scroll-margin-top: 70px; }
.eng-steps { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.eng-steps::before { content: ''; position: absolute; left: 24px; right: 24px; top: 23px; height: 2px; background: linear-gradient(90deg, var(--hub-e), var(--hub-m), var(--hub-c), var(--hub-a)); opacity: 0.4; }
.eng-steps li { position: relative; display: grid; align-content: start; gap: 8px; }
.eng-steps__n {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--hub-line-strong); background: var(--hub-bg);
  font-family: var(--hub-mono); font-size: 14px; font-weight: 600; color: var(--hub-ink);
}
body.tt-engineering .eng-steps h3 { margin: 8px 0 0; font-size: 18px; font-weight: 700; color: var(--hub-ink); }
body.tt-engineering .eng-steps p { margin: 0; color: var(--hub-ink-2); font-size: 14.5px; line-height: 1.55; }
.eng-steps small { font-family: var(--hub-mono); font-size: 11.5px; color: var(--hub-ink-3); letter-spacing: 0.02em; }
.eng-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: clamp(36px, 5vw, 64px);
  padding: clamp(22px, 3vw, 36px); border-radius: 24px; border: 1px solid rgba(52, 227, 157, 0.28);
  background: radial-gradient(70% 120% at 0% 0%, rgba(52, 227, 157, 0.12), transparent 60%), radial-gradient(60% 120% at 100% 100%, rgba(44, 200, 246, 0.12), transparent 60%), var(--hub-surface);
}
body.tt-engineering .eng-cta h3 { margin: 0; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.02em; color: var(--hub-ink); }
body.tt-engineering .eng-cta p { margin: 8px 0 0; color: var(--hub-ink-2); font-size: 16px; max-width: 56ch; }
.eng-cta .eng-landing__actions { margin-top: 0; }

/* Command palette */
.eng-palette { position: fixed; inset: 0; z-index: 90; display: grid; place-items: start center; padding: 12vh 16px 16px; background: rgba(4, 8, 11, 0.62); }
.eng-palette[hidden] { display: none; }
.eng-palette__panel {
  width: min(640px, 100%); max-height: 70vh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden;
  border: 1px solid var(--hub-line-strong); border-radius: 18px; background: #10181d; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.eng-palette__search { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--hub-line); }
.eng-palette__search i { font-size: 20px; color: var(--hub-ink-3); }
.eng-palette__search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--hub-ink); font: 500 17px Inter, system-ui, sans-serif; outline: none; }
.eng-palette__list { overflow: auto; margin: 0; padding: 8px; list-style: none; }
.eng-palette__group { padding: 10px 10px 4px; font-family: var(--hub-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hub-ink-3); }
.eng-palette__item { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 10px; border-radius: 10px; cursor: pointer; color: var(--hub-ink); }
.eng-palette__item i { flex: none; width: 24px; text-align: center; font-size: 18px; color: var(--hub-ink-3); }
.eng-palette__item span { display: grid; gap: 1px; min-width: 0; }
.eng-palette__item small { color: var(--hub-ink-3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eng-palette__item[aria-selected="true"] { background: rgba(44, 200, 246, 0.12); }
.eng-palette__item[aria-selected="true"] i { color: var(--hub-e); }
.eng-palette__empty { padding: 18px 12px; color: var(--hub-ink-3); }
.eng-palette__foot { display: flex; flex-wrap: wrap; gap: 14px; padding: 10px 16px; border-top: 1px solid var(--hub-line); font-size: 12px; color: var(--hub-ink-3); }
.eng-palette__foot kbd { padding: 1px 6px; border: 1px solid var(--hub-line-strong); border-radius: 5px; font: 500 11px var(--hub-mono); }

/* Gentle entrance as sections scroll into view (only when motion is welcome) */
.eng-reveal-ready .eng-reveal { transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.eng-reveal-ready .eng-reveal:not(.is-in) { opacity: 0; transform: translateY(16px); }

/* Responsive. The site's fixed menu button sits top-right (top-left from 700 px down): keep the sticky nav clear of it. */
@media (max-width: 1400px) { .eng-pagenav__inner { padding-right: 84px; } }
@media (max-width: 1180px) {
  .eng-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eng-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  .eng-steps::before { display: none; }
}
@media (max-width: 1100px) {
  .eng-landing { grid-template-columns: minmax(0, 1fr); }
  .eng-landing__visual { max-width: 620px; width: 100%; justify-self: center; }
  .eng-automation { grid-template-columns: minmax(0, 1fr); }
  .eng-stagestrip { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; scrollbar-width: none; }
  body.tt-engineering .eng-hardware .tt-photo-brief { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .eng-landing { padding-top: 18px; }
  .eng-kicker { font-size: 12px; border-radius: 14px; }
  .eng-landing__actions .eng-btn { flex: 1 1 100%; }
  .eng-landing__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .eng-landing__facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .eng-pillars { grid-template-columns: minmax(0, 1fr); }
  .eng-steps { grid-template-columns: minmax(0, 1fr); }
  .eng-pagenav__cmd span, .eng-pagenav__cmd kbd { display: none; }
  .eng-pagenav__cmd { margin-left: 0; }
  .eng-pagenav__inner { padding-right: 0; padding-left: 84px; -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent); }
  .eng-cta { flex-direction: column; align-items: stretch; }
  .eng-cta .eng-btn { flex: 1 1 100%; }
  .eng-palette { padding-top: 8vh; }
}
@media (prefers-reduced-motion: reduce) {
  .eng-kicker__pulse::after, .eng-sync .ln, .eng-line *, .eng-line__bus { animation: none !important; }
  .eng-reveal-ready .eng-reveal:not(.is-in) { opacity: 1; transform: none; }
  .eng-btn, .eng-pagenav, .eng-pillar, .eng-sync .core__arc { transition: none; }
}
