/* =====================================================================
   Chkdin AI - Global stylesheet
   Design tokens per Technical Brief §2 (dark DeepTech aesthetic)
   ===================================================================== */
:root {
  --bg: #020617;
  --bg-2: #0F172A;
  --bg-3: #111c33;
  --line: rgba(148, 163, 184, .12);
  --line-2: rgba(148, 163, 184, .22);
  --text: #F8FAFC;
  --muted: #94A3B8;
  --dim: #64748B;
  --cyan: #06B6D4;
  --cyan-2: #22D3EE;
  --cyan-3: #67E8F9;
  --cyan-glow: rgba(6, 182, 212, .35);
  --violet: #818CF8;
  --ok: #34D399;

  --f-display: 'Outfit', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  --r: 16px;
  --r-lg: 24px;
  --max: 1240px;
  --nav-h: 72px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.12; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
address { font-style: normal; }
::selection { background: var(--cyan); color: var(--bg); }
:focus-visible { outline: 2px solid var(--cyan-2); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--cyan); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 12px; }
.mono { font-family: var(--f-mono); }
.center { text-align: center; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 24px; }
.container.narrow { max-width: 860px; }
@media (max-width: 600px) { .container { padding-inline: 16px; } }

.grad-text {
  background: linear-gradient(100deg, var(--cyan-3) 0%, var(--cyan) 45%, var(--violet) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: 12px;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s, color .25s;
  position: relative; isolation: isolate;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-sm { --h: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn-lg { --h: 54px; padding: 0 28px; font-size: 16px; }
.btn-primary {
  background: linear-gradient(180deg, var(--cyan-2), var(--cyan));
  color: #001018;
  box-shadow: 0 0 0 1px rgba(103, 232, 249, .4) inset, 0 8px 30px -8px var(--cyan-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(103, 232, 249, .6) inset, 0 14px 40px -8px rgba(6, 182, 212, .6); }
.btn-ghost { border: 1px solid var(--line-2); background: rgba(15, 23, 42, .5); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan-3); transform: translateY(-2px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--cyan-2);
  margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; }

.pulse-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: pulse 2s infinite; flex-shrink: 0; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h);
  background: rgba(15, 23, 42, .8); border-bottom: 1px solid #1E293B;
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  transition: background .3s, box-shadow .3s;
}
.site-header.scrolled { background: rgba(15, 23, 42, .88); box-shadow: 0 10px 40px -20px rgba(0, 0, 0, .8); }
.nav-wrap { height: 100%; display: flex; align-items: center; gap: 28px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); flex-shrink: 0; }
.brand-logo { height: 32px; width: auto; display: block; }
.logo-invert .brand-logo { filter: brightness(0) invert(1); }
.ai-badge {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px;
  font: 600 11.5px/1 var(--f-mono); letter-spacing: .12em; color: #001018;
  background: linear-gradient(135deg, var(--cyan-3), var(--cyan));
  box-shadow: 0 0 0 1px rgba(103, 232, 249, .5), 0 0 18px -2px var(--cyan-glow);
  position: relative; overflow: hidden;
}
.ai-badge::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-120%); animation: shine 4.5s ease-in-out infinite; }
@keyframes shine { 60%, 100% { transform: translateX(120%); } }
.brand-mark { width: 32px; height: 32px; color: var(--cyan); filter: drop-shadow(0 0 10px var(--cyan-glow)); }
.brand-text { font: 800 19px/1 var(--f-display); letter-spacing: .06em; }
.brand-ai { color: var(--cyan); margin-left: 6px; }

.primary-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 10px;
  font-size: 14.5px; font-weight: 500; color: #CBD5E1; transition: color .2s, background .2s; white-space: nowrap;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--text); background: rgba(148, 163, 184, .08); }
.nav-link[aria-current="page"] { color: var(--cyan-3); }
.chev { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .25s var(--ease); }
.dd-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }

.has-dd { position: relative; }
.dd-panel {
  position: absolute; top: calc(100% + 12px); left: 50%; width: 360px;
  transform: translate(-50%, 8px) scale(.98); opacity: 0; visibility: hidden; pointer-events: none;
  background: rgba(15, 23, 42, .96); backdrop-filter: blur(20px);
  border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 10px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(6, 182, 212, .05);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s .22s;
}
.dd-panel::before { content: ''; position: absolute; inset: -14px 0 auto; height: 14px; } /* hover bridge */
.dd-wide { width: 720px; }
.has-dd.open .dd-panel { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0) scale(1); transition-delay: 0s; }
.dd-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 10px; }
.dd-feature {
  display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 12px;
  background: radial-gradient(120% 100% at 0 0, rgba(6, 182, 212, .18), transparent 60%), var(--bg-3);
  border: 1px solid var(--line); font-size: 13.5px; color: var(--muted); transition: border-color .2s;
}
.dd-feature:hover { border-color: rgba(6, 182, 212, .5); }
.dd-feature strong { font: 700 20px var(--f-display); color: var(--text); }
.dd-eyebrow { font: 500 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan-2); }
.dd-more { margin-top: auto; color: var(--cyan-3); font-weight: 600; }
.dd-links { display: flex; flex-direction: column; gap: 2px; }
.dd-item { display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; border-radius: 10px; transition: background .2s; }
.dd-item:hover { background: rgba(6, 182, 212, .08); }
.dd-item strong { display: block; font-size: 14px; font-weight: 600; color: var(--text); }
.dd-item small { display: block; font-size: 12.5px; color: var(--dim); line-height: 1.4; margin-top: 2px; }
.dd-ico { width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; border-radius: 9px; background: rgba(6, 182, 212, .1); color: var(--cyan-2); }
.dd-ico svg { width: 18px; height: 18px; }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-login { white-space: nowrap; font-size: 14px; color: var(--muted); font-weight: 500; transition: color .2s; }
.nav-login:hover { color: var(--text); }

.burger { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-2); position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.6px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 14px; } .burger span:nth-child(2) { top: 20px; } .burger span:nth-child(3) { top: 26px; }
.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.drawer {
  position: fixed; inset: var(--nav-h) 0 0; z-index: 99; background: rgba(2, 6, 23, .97); backdrop-filter: blur(20px);
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  overflow-y: auto; overscroll-behavior: contain;
}
.menu-open .drawer { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.menu-open { overflow: hidden; }
.drawer-inner { padding: 16px 16px 40px; display: flex; flex-direction: column; }
.drawer-link, .drawer-group summary { display: flex; justify-content: space-between; align-items: center; padding: 16px 4px; font: 600 18px var(--f-display); border-bottom: 1px solid var(--line); cursor: pointer; list-style: none; }
.drawer-group summary::-webkit-details-marker { display: none; }
.drawer-group summary::after { content: '+'; color: var(--cyan); font-size: 22px; transition: transform .25s; }
.drawer-group[open] summary::after { transform: rotate(45deg); }
.drawer-group a { display: block; padding: 11px 14px; color: var(--muted); font-size: 15px; border-left: 1px solid var(--line-2); margin-left: 6px; }
.drawer-group a:hover { color: var(--cyan-3); border-color: var(--cyan); }
.drawer-group[open] { padding-bottom: 10px; }
.drawer-cta { display: grid; gap: 10px; margin-top: 24px; }

@media (max-width: 1320px) { .nav-login { display: none; } }
@media (max-width: 1140px) {
  .primary-nav, .nav-login { display: none; }
  .burger { display: block; }
  .nav-actions { margin-left: auto; }
}
@media (max-width: 520px) { .nav-actions .btn { display: none; } }

/* =====================================================================
   SECTIONS
   ===================================================================== */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(15, 23, 42, .55) 18%, rgba(15, 23, 42, .55) 82%, transparent); }
.section-head { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-head.left { text-align: left; margin-inline: 0; }
.section-head h2 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 700; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: clamp(16px, 1.4vw, 18px); margin-top: 18px; }

.card {
  position: relative; background: linear-gradient(180deg, rgba(30, 41, 59, .5), rgba(15, 23, 42, .6));
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px;
  transition: border-color .35s, transform .35s var(--ease), box-shadow .35s;
  overflow: hidden; isolation: isolate;
}
.card::before { /* cursor spotlight */
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(6, 182, 212, .14), transparent 45%);
}
.card:hover { border-color: rgba(6, 182, 212, .45); box-shadow: 0 20px 60px -30px rgba(6, 182, 212, .5); }
.card:hover::before { opacity: 1; }

.badge-glow {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 99px;
  font: 500 11.5px var(--f-mono); color: var(--cyan-3); background: rgba(6, 182, 212, .1);
  border: 1px solid rgba(6, 182, 212, .35); box-shadow: 0 0 18px -4px var(--cyan-glow);
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 12px; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan-3); font-weight: 600; margin-top: 40px; }
.link-arrow svg { width: 18px; transition: transform .25s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero { position: relative; min-height: 100vh; min-height: 100svh; padding: calc(var(--nav-h) + 40px) 0 40px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .7; }
.hero-grid-bg {
  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(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
  opacity: .5;
}
.hero-orb { position: absolute; width: 900px; height: 900px; right: -300px; top: -250px; border-radius: 50%; background: radial-gradient(circle, rgba(6, 182, 212, .22), transparent 60%); filter: blur(40px); animation: float 14s ease-in-out infinite; }
@keyframes float { 50% { transform: translate(-60px, 50px); } }

.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(15, 23, 42, .6); backdrop-filter: blur(8px); font-size: 13px; color: #CBD5E1; margin-bottom: 28px; }
.hero-title { font-size: clamp(38px, 5.2vw, 72px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
.hero-brand { display: block; font-size: .42em; letter-spacing: .02em; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.hero-sub { margin-top: 26px; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 620px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

/* HUD */
.hero-hud { position: relative; }
.hud-frame { position: relative; aspect-ratio: 4/4.4; border-radius: var(--r-lg); background: radial-gradient(80% 70% at 50% 40%, rgba(6, 182, 212, .12), rgba(2, 6, 23, .6)); border: 1px solid var(--line); overflow: hidden; color: var(--cyan-2); }
.hud-corner { position: absolute; width: 26px; height: 26px; border: 2px solid var(--cyan); }
.hud-corner.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.hud-corner.tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.hud-corner.bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; border-radius: 0 0 0 8px; }
.hud-corner.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }
.hud-face { position: absolute; inset: 10% 18% 8%; width: 64%; height: 82%; filter: drop-shadow(0 0 12px var(--cyan-glow)); }
.hud-points circle { animation: pt 2.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.hud-points circle:nth-child(2n) { animation-delay: .4s; } .hud-points circle:nth-child(3n) { animation-delay: .9s; }
@keyframes pt { 50% { opacity: .3; transform: scale(.6); } }
.hud-mesh { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 3s var(--ease) .6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hud-scan { position: absolute; left: 0; right: 0; height: 90px; top: -90px; background: linear-gradient(180deg, transparent, rgba(6, 182, 212, .28), transparent); border-bottom: 1px solid var(--cyan-2); animation: scan 3.6s cubic-bezier(.6, 0, .4, 1) infinite; }
@keyframes scan { to { top: 100%; } }
.hud-tag { position: absolute; font: 500 11.5px var(--f-mono); padding: 7px 11px; border-radius: 8px; background: rgba(2, 6, 23, .85); border: 1px solid rgba(6, 182, 212, .45); color: var(--cyan-3); display: flex; gap: 8px; align-items: center; white-space: nowrap; animation: tagIn .6s var(--ease) both; }
.hud-tag b { color: var(--ok); font-weight: 600; }
.hud-tag-1 { top: 18%; right: 8%; animation-delay: 1.2s; }
.hud-tag-2 { top: 50%; left: 7%; animation-delay: 1.5s; }
.hud-tag-3 { bottom: 8%; left: 50%; transform: translateX(-50%); animation-name: tagInC; animation-delay: 1.8s; color: var(--text); }
@keyframes tagIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes tagInC { from { opacity: 0; transform: translate(-50%, 8px); } to { transform: translate(-50%, 0); } }
.hud-log { margin-top: 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(2, 6, 23, .6); padding: 12px 16px; font: 500 11.5px var(--f-mono); color: var(--dim); }
.hud-log-row { display: flex; justify-content: space-between; padding: 4px 0; }
.hud-log-row + .hud-log-row { border-top: 1px dashed var(--line); }
.hud-log .ok { color: var(--ok); }

.proof-bar { position: relative; margin-top: clamp(48px, 7vw, 80px); display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(15, 23, 42, .55); backdrop-filter: blur(12px); overflow: hidden; }
.proof-bar::before { content: ''; position: absolute; inset: 0 auto auto 0; height: 1px; width: 100%; background: linear-gradient(90deg, transparent, var(--cyan), transparent); animation: sweep 5s linear infinite; }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.proof-bar li { padding: 28px 24px; text-align: center; }
.proof-bar li + li { border-left: 1px solid var(--line); }
.stat { display: block; font: 700 clamp(34px, 4.2vw, 52px)/1 var(--f-display); color: var(--text); text-shadow: 0 0 30px rgba(6, 182, 212, .55); letter-spacing: -.02em; }
.proof-bar li > span { display: block; margin-top: 10px; font-size: 14px; color: var(--muted); }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-hud { max-width: 440px; width: 100%; margin-inline: auto; }
}
@media (max-width: 640px) {
  .proof-bar { grid-template-columns: 1fr; }
  .proof-bar li + li { border-left: 0; border-top: 1px solid var(--line); }
  .proof-bar li { padding: 20px; }
  .hero-ctas .btn { flex: 1 1 100%; }
}

/* Ticker */
.ticker { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.ticker-track span { font: 500 13px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding: 0 32px; display: inline-flex; align-items: center; gap: 32px; white-space: nowrap; }
.ticker-track span::after { content: '◆'; color: var(--cyan); font-size: 8px; opacity: .7; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =====================================================================
   ARCHITECTURE
   ===================================================================== */
.arch { display: grid; grid-template-columns: 1fr 80px 1.1fr 80px 1fr; align-items: center; }
.arch-col { display: flex; flex-direction: column; gap: 10px; }
.arch-label { font: 500 11.5px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; display: flex; gap: 10px; align-items: center; }
.arch-label span { color: var(--cyan-2); }
.arch-node { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(15, 23, 42, .7); font-size: 14.5px; color: #CBD5E1; transition: border-color .3s, transform .3s var(--ease); }
.arch-node:hover { border-color: rgba(6, 182, 212, .5); transform: translateX(4px); }
.arch-node svg { width: 20px; height: 20px; color: var(--cyan-2); flex-shrink: 0; }
.arch-node strong { display: block; font-size: 14.5px; font-weight: 600; color: var(--text); line-height: 1.35; }
.arch-node small { display: block; font-size: 12.5px; color: var(--dim); margin-top: 2px; }
.arch-node:focus-visible, .arch-col:hover .arch-node:hover { border-color: rgba(6, 182, 212, .6); background: rgba(6, 182, 212, .06); }
.arch[data-active="1"] .arch-link:first-of-type span, .arch[data-active="3"] .arch-link:last-of-type span { animation-duration: 1.1s; }
.core-specs em { font-style: normal; color: var(--cyan-3); }
.arch-link { height: 2px; position: relative; background: linear-gradient(90deg, rgba(6, 182, 212, .1), rgba(6, 182, 212, .5), rgba(6, 182, 212, .1)); }
.arch-link span { position: absolute; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan-2); box-shadow: 0 0 12px var(--cyan); animation: flow 2.2s linear infinite; }
.arch-link span:nth-child(2) { animation-delay: .73s; } .arch-link span:nth-child(3) { animation-delay: 1.46s; }
@keyframes flow { from { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { left: calc(100% - 8px); opacity: 0; } }
.arch-core { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.core-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(6, 182, 212, .3); }
.core-ring.r1 { inset: 0; border-style: dashed; animation: spin 40s linear infinite; }
.core-ring.r2 { inset: 9%; border-color: rgba(129, 140, 248, .3); animation: spin 26s linear infinite reverse; }
.core-ring.r2::after { content: ''; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 12px var(--violet); }
.core-ring.r3 { inset: 18%; background: radial-gradient(circle, rgba(6, 182, 212, .2), rgba(2, 6, 23, .9) 70%); box-shadow: 0 0 80px -10px var(--cyan-glow), inset 0 0 40px rgba(6, 182, 212, .15); border-color: rgba(6, 182, 212, .55); }
@keyframes spin { to { transform: rotate(360deg); } }
.core-body { position: relative; text-align: center; padding: 0 22%; }
.core-body .arch-label { justify-content: center; }
.core-body h3 { font-size: clamp(20px, 2vw, 26px); }
.core-specs { margin-top: 12px; font-size: 13px; color: var(--muted); }
.core-specs li { padding: 2px 0; }
.core-specs li::before { content: '▸ '; color: var(--cyan); }

@media (max-width: 980px) {
  .arch { grid-template-columns: 1fr; gap: 0; }
  .arch-link { width: 2px; height: 56px; margin: 8px auto; background: linear-gradient(180deg, rgba(6, 182, 212, .1), rgba(6, 182, 212, .5), rgba(6, 182, 212, .1)); }
  .arch-link span { left: -3px !important; animation-name: flowV; }
  @keyframes flowV { from { top: 0; opacity: 0; } 15%, 85% { opacity: 1; } to { top: calc(100% - 8px); opacity: 0; } }
  .arch-core { max-width: 340px; width: 100%; margin-inline: auto; }
}

/* =====================================================================
   HARDWARE
   ===================================================================== */
.hw { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.hw-visual { position: relative; aspect-ratio: 1; border-radius: 28px; background: radial-gradient(70% 60% at 50% 45%, #13213a, #050b1a 75%); border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; }
.hw-visual::after { content: ''; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(0deg, rgba(2, 6, 23, .8), transparent); pointer-events: none; }
.hw-photo img { width: 100%; height: 100%; object-fit: cover; }
.hw-render { margin: 0; width: 78%; position: relative; }
.hw-glow { position: absolute; inset: 20% 15%; background: radial-gradient(circle, var(--cyan-glow), transparent 65%); filter: blur(30px); animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .5; transform: scale(.9); } }
.hw-svg { position: relative; animation: hover 6s ease-in-out infinite; }
@keyframes hover { 50% { transform: translateY(-10px); } }
.blink { animation: blink 1.6s steps(2) infinite; } .blink.b2 { animation-delay: .8s; }
@keyframes blink { 50% { opacity: .2; } }
.lens-ring { stroke-dasharray: 6 10; animation: spin 12s linear infinite; transform-origin: 160px 205px; }
.hw-badge { position: absolute; top: 20px; left: 20px; z-index: 2; font: 500 11.5px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; padding: 7px 12px; border-radius: 99px; background: rgba(2, 6, 23, .7); border: 1px solid rgba(6, 182, 212, .4); color: var(--cyan-3); }
.hw-copy .section-head { margin-bottom: 32px; }
.spec-list { display: flex; flex-direction: column; gap: 10px; }
.spec { cursor: default; display: grid; grid-template-columns: 44px 1fr; gap: 2px 18px; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: rgba(15, 23, 42, .55); transition: border-color .3s, background .3s; }
.spec:hover, .spec.is-on, .spec:focus-visible { border-color: rgba(6, 182, 212, .55); background: rgba(6, 182, 212, .07); }
.spec-num { grid-row: span 2; align-self: center; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; font: 600 13px var(--f-mono); color: var(--cyan-3); border: 1px solid rgba(6, 182, 212, .5); box-shadow: 0 0 14px -4px var(--cyan-glow); transition: background .3s, color .3s; }
.spec.is-on .spec-num, .spec:hover .spec-num { background: var(--cyan); color: #001018; }

/* Hotspots on hardware visual */
.hotspot { position: absolute; left: var(--x); top: var(--y); z-index: 3; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; display: grid; place-items: center; }
.hotspot span { position: relative; z-index: 1; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; font: 600 11.5px var(--f-mono); color: #001018; background: var(--cyan-2); box-shadow: 0 0 0 3px rgba(2, 6, 23, .7), 0 0 20px 2px var(--cyan); transition: transform .3s var(--ease); }
.hotspot::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--cyan-2); animation: ping 2.4s cubic-bezier(0, 0, .2, 1) infinite; }
.hotspot:nth-of-type(2)::before { animation-delay: .5s; } .hotspot:nth-of-type(3)::before { animation-delay: 1s; } .hotspot:nth-of-type(4)::before { animation-delay: 1.5s; }
.hotspot.is-on span, .hotspot:hover span { transform: scale(1.25); background: #fff; }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 80%, 100% { transform: scale(1.8); opacity: 0; } }
.spec-tag { grid-row: span 2; align-self: center; font: 500 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--cyan-2); }
.spec strong { font: 600 16.5px var(--f-display); }
.spec > span:last-child { font-size: 14px; color: var(--muted); }
@media (max-width: 980px) { .hw { grid-template-columns: 1fr; } .hw-visual { max-width: 520px; width: 100%; margin-inline: auto; } }
@media (max-width: 480px) { .spec { grid-template-columns: 40px 1fr; padding: 16px; } }

/* =====================================================================
   PRODUCTS
   ===================================================================== */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.prod { display: flex; flex-direction: column; gap: 16px; min-height: 360px; transform-style: preserve-3d; }
.prod-top { display: flex; justify-content: space-between; align-items: center; }
.prod-ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(140deg, rgba(6, 182, 212, .22), rgba(129, 140, 248, .12)); border: 1px solid rgba(6, 182, 212, .3); color: var(--cyan-3); }
.prod-ico svg { width: 26px; height: 26px; }
.prod h3 { font-size: 23px; }
.prod p { color: var(--muted); font-size: 14.5px; }
.prod .chips { margin-top: auto; }
.card-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--cyan-3); }
.card-more svg { width: 16px; transition: transform .25s; }
.prod:hover .card-more svg { transform: translateX(4px); }
.stretched::after { content: ''; position: absolute; inset: 0; z-index: 1; }
@media (max-width: 1100px) { .prod-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .prod-grid { grid-template-columns: 1fr; } .prod { min-height: 0; } }

/* =====================================================================
   TABS / CASE STUDIES
   ===================================================================== */
.tab-list { position: relative; display: flex; width: max-content; max-width: 100%; margin: 0 auto 40px; padding: 5px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(15, 23, 42, .7); }
.tab { position: relative; z-index: 1; min-height: 44px; padding: 8px 22px; line-height: 1.25; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: var(--muted); transition: color .3s; white-space: normal; }
.tab[aria-selected="true"] { color: #001018; }
.tab-ind { position: absolute; top: 5px; bottom: 5px; left: 5px; border-radius: 10px; background: linear-gradient(180deg, var(--cyan-2), var(--cyan)); box-shadow: 0 6px 24px -6px var(--cyan-glow); transition: transform .4s var(--ease), width .4s var(--ease); }
.tab-panel.is-active { animation: fadeUp .5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }
.cs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.cs-grid.cs-3 { grid-template-columns: repeat(3, 1fr); }
.cs-grid.cs-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .cs-grid.cs-3, .cs-grid.cs-4 { grid-template-columns: repeat(2, 1fr); } }
.cs { display: flex; flex-direction: column; gap: 12px; min-height: 220px; }
.cs-tag { font: 500 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan-2); }
.cs h3 { font-size: 24px; }
.cs p { color: var(--muted); }
.cs-prod { margin-top: auto; align-self: flex-start; font-size: 12.5px; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line-2); color: #CBD5E1; }
@media (max-width: 760px) { .cs-grid, .cs-grid.cs-3, .cs-grid.cs-4 { grid-template-columns: 1fr; } .tab { padding: 0 14px; font-size: 13.5px; } }

/* =====================================================================
   PRIVACY
   ===================================================================== */
.priv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.priv { padding: 34px 30px; }
.priv-ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; border: 1px solid rgba(6, 182, 212, .35); color: var(--cyan-2); background: rgba(6, 182, 212, .08); }
.priv-ico svg { width: 24px; height: 24px; }
.priv-metric { margin-top: 28px; font: 800 56px/1 var(--f-display); letter-spacing: -.03em; background: linear-gradient(180deg, var(--text), rgba(248, 250, 252, .35)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.priv h3 { margin-top: 14px; font-size: 21px; }
.priv p:last-child { margin-top: 10px; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .priv-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   INDUSTRIES
   ===================================================================== */
.ind-list { border-top: 1px solid var(--line); }
.ind-row { position: relative; display: grid; grid-template-columns: 70px 1.1fr 1.4fr 48px; gap: 20px; align-items: center; padding: 28px 8px; border-bottom: 1px solid var(--line); overflow: hidden; }
.ind-row::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 182, 212, .1), transparent 70%); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.ind-row:hover::before { transform: scaleX(1); }
.ind-num { color: var(--dim); font-size: 13px; }
.ind-title { font: 600 clamp(19px, 2vw, 26px) var(--f-display); transition: color .3s, transform .4s var(--ease); }
.ind-row:hover .ind-title { color: var(--cyan-3); transform: translateX(6px); }
.ind-desc { color: var(--muted); font-size: 15px; }
.ind-arrow { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); transition: all .3s var(--ease); }
.ind-arrow svg { width: 18px; }
.ind-row:hover .ind-arrow { background: var(--cyan); border-color: var(--cyan); color: #001018; transform: rotate(-45deg); }
@media (max-width: 800px) { .ind-row { grid-template-columns: 40px 1fr 44px; } .ind-desc { grid-column: 2 / 3; grid-row: 2; } .ind-arrow { grid-row: 1 / 3; grid-column: 3; } }

/* =====================================================================
   EVENT TECH
   ===================================================================== */
.ev { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.ev .section-head { margin-bottom: 0; }
.ev .btn { margin-top: 28px; }
.ev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ev-grid li { padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: rgba(15, 23, 42, .55); transition: border-color .3s, transform .3s var(--ease); }
.ev-grid li:hover { border-color: rgba(6, 182, 212, .45); transform: translateY(-3px); }
.ev-grid strong { display: block; font: 600 17px var(--f-display); }
.ev-grid span { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }
.ev-wide { grid-column: 1 / -1; background: linear-gradient(100deg, rgba(6, 182, 212, .14), rgba(15, 23, 42, .55)) !important; }
@media (max-width: 900px) { .ev { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .ev-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   FAQ
   ===================================================================== */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: 16px; background: rgba(15, 23, 42, .55); transition: border-color .3s; }
.faq-item[open] { border-color: rgba(6, 182, 212, .4); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 24px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item h3 { font: 600 17px/1.4 var(--f-body); letter-spacing: 0; }
.faq-plus { position: relative; width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line-2); }
.faq-plus::before, .faq-plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; background: var(--cyan-2); transform: translate(-50%, -50%); transition: transform .3s var(--ease); }
.faq-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-plus::after { transform: translate(-50%, -50%) rotate(0); }
.faq-a { padding: 0 24px 22px; color: var(--muted); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { position: relative; padding-top: 80px; border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg), #01040f); overflow: hidden; }
.footer-glow { position: absolute; left: 50%; top: -300px; width: 900px; height: 500px; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(6, 182, 212, .15), transparent 65%); pointer-events: none; }
.footer-cta { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding: clamp(28px, 4vw, 48px); border-radius: 28px; border: 1px solid rgba(6, 182, 212, .3); background: radial-gradient(120% 140% at 0% 0%, rgba(6, 182, 212, .18), transparent 55%), rgba(15, 23, 42, .7); margin-bottom: 72px; }
.footer-cta-title { font-size: clamp(26px, 3.2vw, 38px); max-width: 560px; }
.footer-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; padding-bottom: 56px; }
.footer-brand p { margin-top: 18px; color: var(--muted); font-size: 14.5px; max-width: 320px; }
.footer-addr { margin-top: 18px; font-size: 14px; color: var(--dim); line-height: 1.8; }
.footer-addr a:hover { color: var(--cyan-3); }
.social { display: flex; gap: 8px; margin-top: 20px; }
.social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-2); font: 600 11px var(--f-mono); color: var(--muted); transition: all .25s; }
.social a:hover { border-color: var(--cyan); color: var(--cyan-3); }
.footer-col h3 { font: 500 12px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text); margin-bottom: 18px; }
.footer-col li + li { margin-top: 11px; }
.footer-col a { font-size: 14.5px; color: var(--muted); transition: color .2s; }
.footer-col a:hover { color: var(--cyan-3); }
.footer-portal { color: var(--cyan-2) !important; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 26px 0 32px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.footer-status { display: inline-flex; align-items: center; gap: 10px; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; } }

/* =====================================================================
   REVEAL ANIMATIONS (JS adds .in)
   ===================================================================== */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hud-mesh { stroke-dashoffset: 0; }
}

/* Case study metric chips (latency / capability benchmarks) */
.cs-metrics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.cs-metrics li { font: 500 11.5px var(--f-mono); padding: 5px 10px; border-radius: 8px; color: var(--cyan-3); background: rgba(6, 182, 212, .08); border: 1px solid rgba(6, 182, 212, .28); }
.cs h3 { font-size: 22px; }

/* =====================================================================
   v1.3 - REAL PHOTOGRAPHY + ANIMATIONS
   ===================================================================== */
picture { display: block; }
picture img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Hero device (real photo + live overlays) ---------- */
.hero-device { position: relative; perspective: 1200px; }
.hd-frame {
  position: relative; aspect-ratio: 3 / 4; max-height: 74vh; margin-left: auto; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid rgba(6, 182, 212, .25); background: #020617;
  box-shadow: 0 40px 120px -40px rgba(6, 182, 212, .45), 0 0 0 1px rgba(255, 255, 255, .03) inset;
  transform: rotateY(calc(var(--px, 0) * 6deg)) rotateX(calc(var(--py, 0) * -6deg)); transition: transform .4s var(--ease);
}
.hd-photo { position: absolute; inset: -4%; animation: kenburns 22s ease-in-out infinite alternate; transform: translate(calc(var(--px, 0) * -10px), calc(var(--py, 0) * -10px)); }
@keyframes kenburns { from { scale: 1; } to { scale: 1.08; } }
.hd-frame::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(2, 6, 23, .25), transparent 30%, transparent 55%, rgba(2, 6, 23, .85)); }
.hd-frame .hud-corner { z-index: 3; }
.hd-scan { position: absolute; left: 0; right: 0; height: 120px; top: -120px; z-index: 2; background: linear-gradient(180deg, transparent, rgba(34, 211, 238, .16), transparent); border-bottom: 1px solid rgba(34, 211, 238, .6); animation: scan 5s cubic-bezier(.6, 0, .4, 1) infinite; mix-blend-mode: screen; }
.hd-sweep { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .09) 50%, transparent 60%); transform: translateX(-100%); animation: sweepX 7s ease-in-out 2s infinite; }
@keyframes sweepX { 0% { transform: translateX(-100%); } 35%, 100% { transform: translateX(100%); } }
.hd-lens { position: absolute; left: 73%; top: 48.5%; z-index: 2; width: 0; height: 0; }
.hd-lens i { position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--cyan-2); box-shadow: 0 0 18px var(--cyan); animation: ping 2.6s cubic-bezier(0, 0, .2, 1) infinite; }
.hd-lens i:nth-child(2) { animation-delay: .85s; } .hd-lens i:nth-child(3) { animation-delay: 1.7s; }
.hd-lens::before { content: ''; position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan-3); box-shadow: 0 0 20px 6px var(--cyan); }
.hd-tag-1, .hd-tag-2, .hd-tag-3 { z-index: 4; }
.hd-tag-1 { top: 7%; left: 7%; color: var(--text); }
.hd-tag-2 { top: 36%; right: 6%; animation-delay: 1.4s; }
.hd-tag-3 { top: 58%; left: 7%; animation-delay: 1.7s; }
.hd-tag-3 b { color: var(--ok); }
.hd-feed { position: absolute; right: 5%; bottom: 5%; z-index: 4; width: 42%; border-radius: 14px; overflow: hidden; background: rgba(2, 6, 23, .82); border: 1px solid rgba(6, 182, 212, .45); backdrop-filter: blur(10px); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .9); animation: tagIn .7s var(--ease) 2s both; }
.hd-feed-head, .hd-feed-foot { font: 500 10px var(--f-mono); letter-spacing: .08em; padding: 7px 10px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.hd-feed-foot { color: var(--cyan-3); border-top: 1px solid var(--line); white-space: nowrap; overflow: hidden; }
.hd-feed-foot b { color: var(--ok); font-weight: 600; }
.rec { width: 7px; height: 7px; border-radius: 50%; background: #F43F5E; animation: blink 1.2s steps(2) infinite; }
.hd-feed-view { position: relative; aspect-ratio: 4 / 3; background: radial-gradient(80% 80% at 50% 45%, rgba(6, 182, 212, .14), #020617); color: var(--cyan-2); overflow: hidden; }
.hd-feed-view .hud-face { inset: 6% 22%; width: 56%; height: 88%; }
.hd-feed-view .hud-scan { height: 40px; top: -40px; }
@media (max-width: 980px) { .hd-frame { max-height: none; } .hero-device { max-width: 460px; width: 100%; margin-inline: auto; } }
@media (max-width: 480px) { .hd-feed { width: 52%; } .hud-tag { font-size: 10px; padding: 5px 8px; } }

/* ---------- Hardware viewer (Internals <-> Enclosure) ---------- */
.hw-visual { aspect-ratio: 3 / 4; background: #020617; }
.hw-visual::after { z-index: 1; }
.hw-views, .hw-view { position: absolute; inset: 0; margin: 0; }
.hw-view { clip-path: inset(0 0 0 100%); transition: clip-path 1.1s cubic-bezier(.77, 0, .18, 1); }
.hw-view.is-active { clip-path: inset(0 0 0 0); z-index: 1; }
.hw-view.is-leaving { clip-path: inset(0 0 0 0); z-index: 0; }
.hw-view picture { height: 100%; transform: scale(1.06); transition: transform 6s ease-out; }
.hw-view.is-active picture { transform: scale(1); }
.hw-sweep { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(100deg, transparent 42%, rgba(103, 232, 249, .12) 50%, transparent 58%); transform: translateX(-100%); }
.hw-visual.swapping .hw-sweep { animation: sweepX 1.2s ease-out; }
.hotspots { position: absolute; inset: 0; z-index: 3; transition: opacity .5s; }
.hw-visual[data-state="enclosure"] .hotspots { opacity: 0; pointer-events: none; }
.hw-badge { z-index: 4; }
.hw-toggle { position: absolute; z-index: 4; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; padding: 4px; border-radius: 12px; background: rgba(2, 6, 23, .75); border: 1px solid var(--line-2); backdrop-filter: blur(10px); }
.hw-toggle button { height: 34px; padding: 0 14px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); transition: background .3s, color .3s; white-space: nowrap; }
.hw-toggle button.is-on { background: var(--cyan); color: #001018; }
@media (max-width: 980px) { .hw-visual { max-width: 460px; } }

/* ---------- Field gallery ---------- */
.gal-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; gap: 14px; }
.gal-item { position: relative; margin: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #020617; }
.gal-item.g-tall { grid-row: span 2; }
.gal-item picture { height: 100%; }
.gal-item img { transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.9); }
.gal-item:hover img { transform: scale(1.07); filter: saturate(1.1); }
.gal-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(2, 6, 23, .9)); pointer-events: none; }
.gal-item figcaption { position: absolute; left: 16px; bottom: 14px; z-index: 1; font-size: 14px; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.gal-item figcaption .mono { font-size: 11px; color: var(--cyan-2); }
/* Reveal wipe runs on the inner photo, never on the observed box itself
   (a fully clipped element never reports as visible, so it would stay hidden). */
.js .gal-item.reveal { opacity: 1; transform: none; }
.js .gal-item.reveal picture { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s cubic-bezier(.77, 0, .18, 1) var(--d, 0ms); }
.js .gal-item.reveal figcaption { opacity: 0; transform: translateY(10px); transition: opacity .6s ease calc(var(--d, 0ms) + .6s), transform .6s ease calc(var(--d, 0ms) + .6s); }
.js .gal-item.reveal.in picture { clip-path: inset(0 0 0 0); }
.js .gal-item.reveal.in figcaption { opacity: 1; transform: none; }
.gal-item.g-tall:nth-child(4) { grid-column: 3; grid-row: 1 / span 2; }
@media (max-width: 900px) { .gal-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; } .gal-item.g-tall:nth-child(4) { grid-column: auto; grid-row: span 2; } }
@media (max-width: 520px) { .gal-grid { grid-auto-rows: 180px; gap: 10px; } }

/* ---------- Field bands (Ken Burns on scroll) ---------- */
.bands { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 0 14px; max-width: 1600px; margin: 0 auto; }
.band { position: relative; min-height: 520px; border-radius: 24px; overflow: hidden; display: flex; align-items: flex-end; border: 1px solid var(--line); isolation: isolate; }
.band-img { position: absolute; inset: 0; z-index: -2; }
.band-img picture { height: 100%; transform: scale(calc(1.18 - var(--kb, 0) * .18)); transition: transform .1s linear; }
.band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(2, 6, 23, .1) 20%, rgba(2, 6, 23, .92) 85%); }
.band-copy { padding: clamp(24px, 4vw, 44px); max-width: 520px; }
.band-copy .eyebrow { margin-bottom: 12px; }
.band-copy h3 { font-size: clamp(26px, 3vw, 38px); font-weight: 700; }
.band-copy p:last-child { margin-top: 12px; color: #CBD5E1; }
@media (max-width: 900px) { .bands { grid-template-columns: 1fr; } .band { min-height: 420px; } }

/* Case study 2-col */
.cs-grid.cs-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .cs-grid.cs-2 { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { .js .gal-item.reveal picture { clip-path: none; } .js .gal-item.reveal figcaption { opacity: 1; } .hw-view { transition: none; } }

/* =====================================================================
   v1.4 - EVENT TECH SUITE MEGA-MENU (legacy SEO routes)
   ===================================================================== */
.nav-wrap { position: relative; }
.nav-link { padding: 0 12px; }
.has-dd.has-mega { position: static; }
.dd-panel.dd-mega { width: min(980px, calc(100vw - 48px)); left: 50%; top: calc(100% - 4px); padding: 0; overflow: hidden; }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.mega-col { padding: 22px 22px 18px; }
.mega-col + .mega-col { border-left: 1px solid var(--line); }
.mega-head { font: 500 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan-2); margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.mega-link { display: block; padding: 9px 10px; margin: 0 -10px; border-radius: 8px; font-size: 14px; color: #CBD5E1; line-height: 1.4; transition: background .2s, color .2s, padding .2s; }
.mega-link:hover { background: rgba(6, 182, 212, .08); color: var(--text); padding-left: 14px; }
.mega-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 22px; border-top: 1px solid var(--line); background: rgba(2, 6, 23, .5); font-size: 13px; color: var(--dim); }
.mega-foot a { color: var(--cyan-3); font-weight: 600; white-space: nowrap; }
.drawer-sub { font: 500 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--cyan-2); padding: 14px 6px 6px; }
@media (max-width: 1240px) { .primary-nav, .nav-login { display: none; } .burger { display: block; } .nav-actions { margin-left: auto; } }
.footer-grid { grid-template-columns: 1.5fr repeat(5, 1fr); gap: 32px; }
@media (max-width: 1100px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr 1fr; } }


/* Numbered lists (spec list etc.) align with headings */
ol { margin: 0; padding: 0; list-style: none; }
