/* Digital Nexus Group: dark tech. Deep navy base, electric blue + cyan. No pink. */
:root {
  --bg: #060b1a;
  --bg-2: #091226;
  --surf: #0e1a33;
  --surf-2: #142342;
  --line: rgba(90, 140, 255, 0.16);
  --line-2: rgba(90, 140, 255, 0.3);
  --fg: #eaf1ff;
  --muted: #9fb0d4;
  --faint: #6a7ca3;
  --cyan: #22e4ff;
  --blue: #2f6bff;
  --blue-hi: #4a80ff;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --grad: linear-gradient(90deg, var(--blue), var(--cyan));
  --glow: 0 0 0 1px rgba(34, 228, 255, 0.35), 0 0 28px rgba(34, 228, 255, 0.25), 0 0 60px rgba(47, 107, 255, 0.18);
  --radius: 16px;
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before { /* ambient neon haze */
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 85% -10%, rgba(47, 107, 255, 0.16), transparent 60%),
    radial-gradient(50vw 50vh at -10% 40%, rgba(34, 228, 255, 0.08), transparent 60%),
    radial-gradient(50vw 40vh at 100% 90%, rgba(47, 107, 255, 0.08), transparent 60%);
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; }
p { margin: 0; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--cyan); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(40px, 6vw, 80px); }
.section--band { background: linear-gradient(180deg, transparent, var(--bg-2) 20%, var(--bg-2) 80%, transparent); }
.stack { display: grid; gap: 20px; align-content: start; }

/* ---------- type ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 12px/1 var(--display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan);
}
.kicker::before { content: ''; width: 22px; height: 2px; background: var(--grad); border-radius: 2px; box-shadow: 0 0 10px var(--cyan); }
.display { font-size: clamp(42px, 7.2vw, 92px); }
.display--page { font-size: clamp(36px, 5.6vw, 68px); max-width: 16ch; }
.h2 { font-size: clamp(30px, 4.2vw, 50px); }
.h3 { font-size: clamp(22px, 2.6vw, 30px); }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); max-width: 60ch; }
.lead--hero { color: #d3d8f5; font-size: clamp(18px, 1.8vw, 21px); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.note { margin-top: 24px; font-size: 13px; color: var(--faint); }
.link { color: var(--cyan); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* ---------- buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 15px/1 var(--body); text-decoration: none; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--glow { color: #fff; background: var(--blue); box-shadow: 0 0 24px rgba(34, 228, 255, 0.3), 0 0 40px rgba(47, 107, 255, 0.2); }
.btn--glow:hover { background: var(--blue-hi); transform: translateY(-2px); box-shadow: 0 0 30px rgba(34, 228, 255, 0.5), 0 0 60px rgba(47, 107, 255, 0.35); }
.btn--ghost { color: var(--fg); background: rgba(14, 19, 51, 0.6); border: 1px solid var(--line-2); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--cyan); box-shadow: var(--glow); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(6, 8, 24, 0.72); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.logo img { height: 34px; width: auto; object-fit: contain; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; position: relative; padding-block: 6px; }
.nav__links a:not(.btn):hover, .nav__links a.is-active { color: var(--fg); }
.nav__links a.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--grad); border-radius: 2px; box-shadow: 0 0 8px var(--cyan); }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); background: transparent; border-radius: 12px; cursor: pointer; position: relative; }
.menu-btn span:not(.sr-only) { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--fg); transition: transform .2s ease; }
.menu-btn span:nth-child(1) { top: 16px; }
.menu-btn span:nth-child(2) { top: 25px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(88vh, 860px); display: grid; align-items: center; overflow: hidden; isolation: isolate; margin-top: -73px; padding-top: 73px; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; filter: grayscale(1) contrast(1.1); }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: linear-gradient(120deg, var(--blue), var(--cyan)); mix-blend-mode: color; opacity: .85; pointer-events: none; }
.hero__shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(6, 8, 24, 0.94) 0%, rgba(6, 8, 24, 0.7) 50%, rgba(6, 8, 24, 0.35) 100%),
  linear-gradient(0deg, var(--bg) 0%, transparent 35%); }
.hero__inner { display: grid; gap: 26px; padding-block: 80px 100px; }
.hero .display { max-width: 13ch; text-shadow: 0 0 40px rgba(6, 8, 24, 0.6); }

.ticker { display: block; overflow: hidden; border-block: 1px solid var(--line-2); background: var(--bg-2); color: var(--fg); text-decoration: none; }
.ticker__track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker:hover .ticker__track, .ticker:focus-visible .ticker__track { animation-play-state: paused; }
.ticker__run { display: flex; align-items: center; gap: 40px; padding: 26px 20px; font: 700 clamp(20px, 2.4vw, 30px)/1 var(--display); letter-spacing: -0.01em; white-space: nowrap; }
.ticker__run > :nth-child(4n+1) { color: var(--fg); }
.ticker__run > :nth-child(4n+3) { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ticker__sep { font-family: var(--mono); font-size: .7em; color: var(--blue-hi); }
.ticker:hover .ticker__run > span:not(.ticker__sep) { text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 6px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- sections & cards ---------- */
.section-head { display: grid; gap: 16px; margin-bottom: 48px; max-width: 760px; }
.section-head--row { max-width: none; display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.section-head--row > div { display: grid; gap: 16px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; display: grid; gap: 14px; align-content: start;
  padding: 28px; border-radius: var(--radius); background: linear-gradient(180deg, var(--surf), rgba(14, 19, 51, 0.5));
  border: 1px solid var(--line); text-decoration: none; transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.grid-brands { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.grid-brands > * { grid-column: span 2; }
.grid-brands > :nth-child(4) { grid-column: 2 / span 2; }
/* Owned-brand cards: solid panels with a terminal-style header bar and corner brackets */
.card--brand {
  min-height: 270px; padding: 0 24px 24px; border-radius: 6px; gap: 12px;
  background: var(--surf); border: 1px solid var(--line-2);
  --br: linear-gradient(var(--cyan), var(--cyan));
  background-image: var(--br), var(--br), var(--br), var(--br), var(--br), var(--br), var(--br), var(--br);
  background-size: 14px 2px, 2px 14px, 14px 2px, 2px 14px, 14px 2px, 2px 14px, 14px 2px, 2px 14px;
  background-position: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%;
  background-repeat: no-repeat;
}
.card--brand:hover { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), 0 0 30px rgba(47, 107, 255, 0.25); }
.brand__bar {
  display: flex; justify-content: space-between; align-items: center;
  margin: 0 -24px 10px; padding: 12px 24px; border-bottom: 1px solid var(--line);
  font: 500 12px/1 var(--mono); letter-spacing: .08em; color: var(--faint);
}
.brand__status { display: inline-flex; align-items: center; gap: 7px; color: var(--cyan); text-transform: uppercase; }
.brand__status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.brand__status.is-soon { color: var(--faint); }
.brand__status.is-soon::before { background: var(--faint); box-shadow: none; }
.brand__kind { font: 700 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--blue-hi); }
.brand__name { font: 700 clamp(28px, 3vw, 36px)/1.05 var(--display); letter-spacing: -0.02em; }
.brand__link {
  margin-top: auto; justify-self: start; display: inline-flex; gap: 8px; align-items: center;
  padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--bg-2);
  font: 500 13px/1 var(--mono); color: var(--cyan); text-decoration: none; transition: border-color .2s, background-color .2s;
}
a.brand__link:hover { border-color: var(--cyan); background: rgba(34, 228, 255, 0.08); }
.brand__link.is-off { color: var(--faint); }
.link--pad { display: inline-flex; align-items: center; min-height: 48px; padding-inline: 8px; }
.card--svc:hover, .card--partner:hover { border-color: rgba(34, 228, 255, 0.5); box-shadow: var(--glow); transform: translateY(-4px); }
.card__title { font: 700 21px/1.2 var(--display); letter-spacing: -0.01em; }
.card__text { color: var(--muted); font-size: 15px; }
.card__more { color: var(--cyan); font-weight: 600; font-size: 14px; margin-top: 6px; }
.card__kicker { font: 700 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }

.node {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  font: 700 15px/1 var(--display); color: var(--cyan);
  background: rgba(34, 228, 255, 0.07); border: 1px solid rgba(34, 228, 255, 0.35);
  box-shadow: inset 0 0 14px rgba(34, 228, 255, 0.15), 0 0 16px rgba(34, 228, 255, 0.12);
}

.card--partner { padding: 0; overflow: hidden; }
.card__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surf-2); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card--partner:hover .card__img img { transform: scale(1.04); }
.card__body { display: grid; gap: 12px; padding: 24px 24px 28px; align-content: start; }
.card__body .btn { justify-self: start; margin-top: 8px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split__media { position: relative; border-radius: var(--radius); }
.split__media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line-2); }
.split__media::after { content: ''; position: absolute; inset: -1px; border-radius: var(--radius); pointer-events: none; box-shadow: 0 0 60px rgba(47, 107, 255, 0.25); }

/* Trinity Sky: talking video (Dsrupt, Seedance 2.5) that plays muted in view; tap for sound */
.trinity { display: grid; grid-template-columns: minmax(240px, 0.8fr) 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.trinity__media { position: relative; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; border: 1px solid rgba(34, 228, 255, 0.45); box-shadow: 0 0 0 1px rgba(47, 107, 255, 0.3), 0 0 60px rgba(34, 228, 255, 0.25); background: var(--bg-2); }
.trinity__video { width: 100%; height: 100%; object-fit: cover; }
.trinity__media::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(6, 11, 26, 0.75), transparent 30%); }
.trinity__tag { position: absolute; z-index: 2; left: 16px; bottom: 16px; font: 500 12px/1 var(--mono); letter-spacing: .12em; color: var(--cyan); }
.trinity__tag::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #2ee59d; box-shadow: 0 0 8px #2ee59d; vertical-align: 1px; }
.trinity__sound { position: absolute; z-index: 2; right: 12px; bottom: 10px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(6, 11, 26, 0.7); backdrop-filter: blur(6px); color: var(--fg); font: 600 13px/1 var(--body); cursor: pointer; }
.trinity__sound:hover { border-color: var(--cyan); }
.trinity__sound-on, .trinity__sound[aria-pressed="true"] .trinity__sound-off { display: none; }
.trinity__sound[aria-pressed="true"] .trinity__sound-on { display: inline; }
.trinity__copy { display: grid; gap: 22px; }
.trinity__quote { font: 700 clamp(28px, 3.8vw, 46px)/1.12 var(--display); letter-spacing: -0.02em; }

.engines { display: grid; gap: 0; margin: 4px 0 8px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.engines li { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.engines__k { font: 700 13px/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--cyan); }

.ventures { display: grid; gap: 14px; margin: 4px 0; padding: 0; list-style: none; }
.ventures li { display: grid; gap: 4px; padding: 16px 18px; border-left: 2px solid; border-image: var(--grad) 1; background: rgba(14, 19, 51, 0.55); }
.ventures strong { font: 700 17px/1.2 var(--display); }
.ventures a { text-decoration: none; }
.ventures a:hover { color: var(--cyan); }
.ventures span { color: var(--muted); font-size: 15px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: s; position: relative; }
.steps::before { content: ''; position: absolute; top: 23px; left: 46px; right: 46px; height: 1px; background: linear-gradient(90deg, rgba(34, 228, 255, .6), rgba(47, 107, 255, .6)); }
.step { position: relative; display: grid; gap: 12px; align-content: start; }
.step .node { background: var(--bg); position: relative; }

.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.logos a { display: grid; place-items: center; min-height: 84px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(14, 19, 51, 0.5); color: var(--muted); text-decoration: none; font: 700 17px/1.1 var(--display); text-align: center; transition: color .2s, border-color .2s, box-shadow .2s; }
.logos a:hover { color: var(--fg); border-color: rgba(34, 228, 255, 0.5); box-shadow: var(--glow); }

.cta {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: clamp(32px, 5vw, 56px); border-radius: 24px; overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, rgba(34, 228, 255, 0.16), transparent 50%), radial-gradient(120% 140% at 100% 100%, rgba(47, 107, 255, 0.2), transparent 50%), var(--surf);
  border: 1px solid var(--line-2);
}
.cta > div { display: grid; gap: 14px; max-width: 640px; }
.cta--split { display: grid; grid-template-columns: 1.1fr 1fr; align-items: start; }
.cta--split > .btn { grid-column: 1 / -1; justify-self: start; }

/* ---------- page hero, services ---------- */
.page-hero { padding-block: clamp(64px, 9vw, 120px) clamp(32px, 5vw, 56px); }
.page-hero .container { display: grid; gap: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.chip { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s, border-color .2s; }
.chip:hover { color: var(--fg); border-color: var(--cyan); }

.svc { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(24px, 5vw, 64px); padding-block: 44px; border-top: 1px solid var(--line); }
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc:target .node { background: var(--cyan); color: var(--bg); }
.svc__head { display: flex; gap: 20px; align-items: flex-start; }
.svc__head > div { display: grid; gap: 8px; }
.svc__tag { font: 700 18px/1.3 var(--display); }
.svc__body { display: grid; gap: 20px; justify-items: start; }
.ticks { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 30px; color: #d3d8f5; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 7px; width: 16px; height: 10px; border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(-45deg); filter: drop-shadow(0 0 4px var(--cyan)); }
.ticks--lg li { display: grid; gap: 4px; color: var(--muted); }
.ticks--lg strong { color: var(--fg); font-family: var(--display); font-size: 18px; }

.prose { display: grid; gap: 18px; color: var(--muted); font-size: 17px; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.direct { display: grid; gap: 18px; margin: 12px 0 0; }
.direct div { display: grid; gap: 4px; padding-left: 16px; border-left: 2px solid var(--line-2); }
.direct dt { font: 700 12px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.direct dd { margin: 0; font-size: 17px; }
.direct a { text-decoration: none; }
.direct a:hover { color: var(--cyan); }
.form { display: grid; gap: 18px; padding: clamp(24px, 4vw, 40px); border-radius: 24px; background: var(--surf); border: 1px solid var(--line-2); box-shadow: 0 0 80px rgba(47, 107, 255, 0.15); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 14px; font-weight: 500; color: #d3d8f5; }
.field em { color: var(--faint); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--bg-2); color: var(--fg); font: inherit; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--cyan) 50%), linear-gradient(135deg, var(--cyan) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 228, 255, 0.18); }
.form__error { color: #ffb4a8; font-size: 14px; }
.form__done { font-size: 17px; text-align: center; padding: 8px 0; }
.form.is-done > :not(.form__done) { display: none; }

/* ---------- footer ---------- */
.footer { margin-top: 40px; border-top: 1px solid var(--line); background: var(--bg-2); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; padding-block: 56px 40px; }
.footer__brand { display: grid; gap: 14px; align-content: start; }
.footer__brand img { height: 32px; width: auto; object-fit: contain; object-position: left; }
.footer__brand p { color: var(--muted); max-width: 30ch; font-size: 15px; }
.footer__col { display: grid; gap: 10px; align-content: start; font-size: 15px; }
.footer__col a, .footer__col address { color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.footer__col a:hover { color: var(--cyan); }
.footer__title { font: 700 12px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--fg); margin-bottom: 6px; }
.footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-block: 20px 28px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-brands { grid-template-columns: repeat(2, 1fr); }
  .grid-brands > *, .grid-brands > :nth-child(4) { grid-column: auto; }
  .grid-brands > :last-child { grid-column: 1 / -1; }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .steps::before { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .cta--split { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav__links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; background: var(--bg); box-shadow: 0 30px 40px rgba(0, 0, 0, 0.5); border-bottom: 1px solid var(--line); display: none; }
  .nav__links.is-open { display: flex; }
  .nav__links a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav__links a.is-active::after { display: none; }
  .nav__links .btn { margin-top: 16px; min-height: 48px; }
  .split, .svc, .contact, .trinity { grid-template-columns: 1fr; }
  .trinity__media { max-width: 360px; }
  .hero__shade { background: linear-gradient(0deg, var(--bg) 0%, rgba(6, 8, 24, 0.78) 45%, rgba(6, 8, 24, 0.55) 100%); }
}
@media (max-width: 560px) {
  .grid-3, .grid-brands, .steps, .form__row { grid-template-columns: 1fr; }
  .card--brand { min-height: 0; }
  .engines li { grid-template-columns: 1fr; gap: 4px; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; }
  .logo img { height: 28px; }
  .btn-row .btn { flex: 1 1 100%; }
  .hero__inner { padding-block: 56px 72px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- chat widget ---------- */
.dnx-chat { position: fixed; right: 20px; bottom: 20px; z-index: 80; }
.dnx-chat__launch { position: relative; width: 64px; height: 64px; padding: 0; border-radius: 50%; border: 2px solid var(--cyan); cursor: pointer; background: var(--surf); box-shadow: 0 0 24px rgba(34, 228, 255, .45), 0 0 50px rgba(47, 107, 255, .3); transition: transform .2s; }
.dnx-chat__launch:hover { transform: scale(1.06); }
.dnx-chat__launch img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.dnx-chat__online { position: absolute; right: 2px; bottom: 2px; width: 14px; height: 14px; border-radius: 50%; background: #2ee59d; border: 2px solid var(--bg); }
.dnx-chat__hint { position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%); padding: 9px 14px; border-radius: 999px; background: var(--surf); border: 1px solid var(--line-2); color: var(--fg); font: 600 14px/1 var(--body); white-space: nowrap; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
@media (max-width: 560px) { .dnx-chat__hint { display: none; } }
.dnx-chat.is-open .dnx-chat__launch { display: none; }
.dnx-chat__panel { display: none; width: min(380px, calc(100vw - 32px)); height: min(600px, calc(100vh - 40px)); flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--surf); border: 1px solid var(--line-2); box-shadow: 0 20px 60px rgba(0, 0, 0, .5), 0 0 50px rgba(47, 107, 255, .25); }
.dnx-chat.is-open .dnx-chat__panel { display: flex; }
.dnx-chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.dnx-chat__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--cyan); flex: none; }
.dnx-chat__head div { display: grid; gap: 2px; flex: 1; }
.dnx-chat__head strong { font: 700 15px/1.2 var(--display); }
.dnx-chat__head small { color: var(--faint); font-size: 12px; }
.dnx-chat__close { width: 36px; height: 36px; border: 0; background: transparent; color: var(--muted); font-size: 24px; cursor: pointer; border-radius: 8px; }
.dnx-chat__close:hover { color: var(--fg); background: var(--surf-2); }
.dnx-chat__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.dnx-chat__msg { max-width: 86%; padding: 10px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
.dnx-chat__msg.is-bot { align-self: flex-start; background: var(--surf-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.dnx-chat__msg.is-user { align-self: flex-end; background: linear-gradient(135deg, rgba(34, 228, 255, .22), rgba(47, 107, 255, .3)); border: 1px solid rgba(34, 228, 255, .3); border-bottom-right-radius: 4px; }
.dnx-chat__msg a { color: var(--cyan); }
.dnx-chat__book { align-self: flex-start; }
.dnx-chat__typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; background: var(--surf-2); border-radius: 14px; }
.dnx-chat__typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); animation: dnx-dot 1s infinite ease-in-out; }
.dnx-chat__typing i:nth-child(2) { animation-delay: .15s; }
.dnx-chat__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dnx-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.dnx-chat__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.dnx-chat__chips:empty { display: none; }
.dnx-chat__chip { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font: 500 13px/1 var(--body); cursor: pointer; }
.dnx-chat__chip:hover { color: var(--fg); border-color: var(--cyan); }
.dnx-chat__form { display: flex; gap: 8px; padding: 12px 12px 6px; border-top: 1px solid var(--line); }
.dnx-chat__form textarea { flex: 1; resize: none; min-height: 44px; max-height: 120px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--fg); font: 14.5px/1.4 var(--body); }
.dnx-chat__form textarea:focus { outline: none; border-color: var(--cyan); }
.dnx-chat__send { width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--blue); color: #fff; font-size: 18px; cursor: pointer; flex: none; }
.dnx-chat__send:disabled { opacity: .5; cursor: wait; }
.dnx-chat__note { padding: 0 14px 10px; font-size: 11px; color: var(--faint); line-height: 1.4; }
@media (max-width: 560px) {
  .dnx-chat { right: 12px; bottom: 12px; }
  .dnx-chat.is-open { inset: 0; }
  .dnx-chat.is-open .dnx-chat__panel { width: 100%; height: 100%; border-radius: 0; }
}
