/* Nexivia Solutions LLP — black, off-white, one hot accent. */
:root {
  --black: #000;
  --ink-2: #0b0b0b;
  --fg: #f2f2f2;
  --fg-fade: rgba(242, 242, 242, .24);
  --mid: #7d7d7d;
  --line: rgba(242, 242, 242, .14);
  --accent: #2bea1a;
  --m: clamp(14px, 1.6vw, 28px);           /* page margin */
  --gap: 8px;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wide: "Saira", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--black); color: var(--fg); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; font-family: var(--sans); font-weight: 400; font-size: 16px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip;
}
::selection { background: var(--accent); color: #000; }
a { color: inherit; text-decoration: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

.label {
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--mid);
}

/* film grain */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 14px var(--m);
}
.nav::before { content: ""; position: absolute; inset: 0 0 -40px 0; z-index: -1; pointer-events: none; background: linear-gradient(#000 0%, rgba(0,0,0,.85) 45%, rgba(0,0,0,0)); opacity: 0; transition: opacity .6s; }
body.past-hero .nav::before, body.n-docked .nav::before { opacity: 1; }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; }
.nav__mark { width: 24px; height: 27px; opacity: 0; transform: translateY(6px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.nav__word { font-family: var(--wide); font-stretch: 125%; font-weight: 600; font-size: 14px; letter-spacing: .04em; opacity: 0; transition: opacity .6s var(--ease-out); }
body.past-hero .nav__mark, body.past-hero .nav__word, body.n-docked .nav__mark, body.n-docked .nav__word { opacity: 1; transform: none; }
.nav__links { display: flex; gap: 28px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.nav__links a { display: inline-flex; gap: 6px; opacity: .9; transition: opacity .3s; }
.nav__links a i { font-style: normal; color: var(--mid); }
.nav__links a:hover { opacity: 1; }
.nav__right { justify-self: end; display: flex; align-items: center; gap: 18px; }
.pill {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  padding: 9px 14px; border: 1px solid var(--fg-fade); border-radius: 100px; transition: background .35s, color .35s, border-color .35s;
}
.pill:hover { background: var(--fg); color: #000; border-color: var(--fg); }
.nav__menu { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.nav__menu-icon { position: relative; width: 18px; height: 10px; }
.nav__menu-icon i { position: absolute; left: 0; right: 0; height: 1px; background: var(--fg); transition: transform .5s var(--ease-out), top .5s var(--ease-out); }
.nav__menu-icon i:first-child { top: 2px; } .nav__menu-icon i:last-child { top: 8px; }
body.menu-open .nav__menu-icon i:first-child { top: 5px; transform: rotate(45deg); }
body.menu-open .nav__menu-icon i:last-child { top: 5px; transform: rotate(-45deg); }

/* ---------- MENU ---------- */
.menu { position: fixed; inset: 0; z-index: 45; pointer-events: none; }
.menu::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .6); backdrop-filter: blur(8px); opacity: 0; transition: opacity .6s var(--ease-out); }
.menu__panel {
  position: absolute; top: 8px; right: 8px; bottom: 8px; width: min(460px, calc(100vw - 16px));
  background: #0d0d0d; border: 1px solid var(--line); display: flex; flex-direction: column; padding: 76px 0 0;
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-io);
}
body.menu-open .menu { pointer-events: auto; }
body.menu-open .menu::before { opacity: 1; }
body.menu-open .menu__panel { clip-path: inset(0 0 0 0); }
.menu__list li { border-top: 1px solid var(--line); }
.menu__list a { position: relative; display: flex; align-items: baseline; gap: 18px; padding: 14px 20px; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.03em; overflow: hidden; transition: color .35s; }
.menu__list a i { font-family: var(--mono); font-size: 11px; font-style: normal; color: var(--mid); letter-spacing: .06em; }
.menu__list a::before { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease-out); z-index: -1; }
.menu__list a:hover { color: #000; } .menu__list a:hover i { color: #000; }
.menu__list a:hover::before { transform: scaleY(1); }
.menu__ascii { flex: 1; width: 100%; min-height: 120px; border-top: 1px solid var(--line); display: block; }
.menu__foot { display: flex; justify-content: space-between; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--mid); }
.menu__foot a { color: var(--fg); text-transform: none; }

/* circuit infection layer (behind content, in front of the void) */
.infect { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, .foot { position: relative; z-index: 1; }

/* ---------- HERO ---------- */
.hero { position: relative; height: 480vh; }
.hero__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__ascii { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__n {
  position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform, clip-path;
  clip-path: inset(0 0 100% 0);
}
.hero__ascii { z-index: 0; } .wordmark { z-index: 1; } .hud { z-index: 1; }
.hero__next { position: absolute; inset: 0; z-index: 2; clip-path: path('M0 0Z'); background: #030303; display: flex; align-items: center; }
.hero__edge { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
.hero__n { z-index: 4; }
.next__bg { position: absolute; inset: 0; overflow: hidden; }
.next__bg i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.next__bg i:nth-child(1) { width: 70vw; height: 22vw; left: -10vw; top: 18%; background: linear-gradient(90deg, rgba(43,234,26,.0), rgba(43,234,26,.22), rgba(220,255,214,.08)); transform: rotate(-18deg); }
.next__bg i:nth-child(2) { width: 60vw; height: 14vw; right: -12vw; bottom: 12%; background: linear-gradient(90deg, rgba(255,255,255,.07), rgba(43,234,26,.16), transparent); transform: rotate(-24deg); animation-duration: 23s; }
.next__bg i:nth-child(3) { width: 40vw; height: 40vw; left: 46%; top: -20%; background: radial-gradient(rgba(43,234,26,.10), transparent 70%); animation-duration: 29s; }
@keyframes drift { to { translate: 6vw -4vh; rotate: 8deg; } }
.next__inner { position: relative; width: 100%; padding: 0 var(--m); }
.next__inner .statement { max-width: 24ch; }
.next__inner .sec__head { margin-bottom: clamp(28px, 5vh, 60px); }
.next__hint { position: absolute; right: var(--m); bottom: calc(-1 * clamp(60px, 14vh, 160px)); }
.statement .w { opacity: .16; transition: none; }
.hud { position: absolute; left: var(--m); right: var(--m); display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; pointer-events: none; }
.hud--top { top: 64px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--mid); }
.hud__item { opacity: 0; }
.hud__count b { color: var(--fg); font-weight: 400; }
.hud__count em { font-family: var(--mono); font-style: normal; letter-spacing: .06em; }
.hud__count.is-done b, .hud__count.is-done em { color: var(--accent); }
.hud--bottom { bottom: 22px; }
.hero__tag { max-width: 380px; font-size: 15px; line-height: 1.4; color: var(--fg); opacity: 0; }
.hud__scroll { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--mid); opacity: 0; }
.hud__scroll i { position: relative; width: 1px; height: 38px; background: var(--line); overflow: hidden; }
.hud__scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--fg); animation: drip 1.8s var(--ease-io) infinite; }
@keyframes drip { to { top: 100%; } }

.wordmark {
  position: absolute; left: var(--m); right: var(--m); top: 50%; transform: translateY(-50%);
  font-family: var(--wide); font-stretch: 125%; font-weight: 600; font-size: min(15.5vw, 30vh); line-height: .8; letter-spacing: .01em;
  pointer-events: none; display: flex; flex-direction: column; align-items: center;
}
.wordmark__row { display: block; white-space: nowrap; }
.wordmark__n { display: inline-block; width: .623em; height: .707em; margin-right: .07em; }
.wm { display: inline-block; }
.wm--main .wm-i { color: #f4f4f4; }
.wordmark__row--2 { align-self: stretch; display: flex; justify-content: center; align-items: baseline; gap: 18px; margin-top: .22em; padding-left: .69em; }
.wm--sub { font-family: var(--sans); font-weight: 300; font-size: .2em; letter-spacing: .62em; color: #c9ccd0; margin-right: -.62em; }
.wm-c { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .06em .03em .12em; margin: -.06em -.03em -.12em; }
.wm-i { display: inline-block; transform: translateY(135%); will-change: transform; }
.wordmark__llp { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; font-weight: 400; color: var(--accent); opacity: 0; }

/* ---------- SECTIONS ---------- */
.sec { position: relative; padding: clamp(96px, 14vh, 180px) var(--m); }
.sec__head { display: flex; align-items: center; gap: 16px; margin-bottom: clamp(40px, 7vh, 90px); }
.sec__head .label:first-child { color: var(--accent); }
.sec__rule { flex: 1; height: 1px; background: var(--line); transform-origin: left; }
.sec__title { font-size: clamp(40px, 6.4vw, 112px); font-weight: 400; letter-spacing: -.05em; line-height: .95; max-width: 14ch; margin-bottom: clamp(40px, 7vh, 90px); }
.sec__title em { font-size: 1.06em; color: var(--fg); }

.statement { font-size: clamp(30px, 4.3vw, 76px); line-height: 1.04; letter-spacing: -.045em; font-weight: 400; max-width: 22ch; }
.statement em { font-size: 1.08em; }
.statement .w { opacity: .16; transition: opacity .2s linear; }
.facts { display: grid; grid-template-columns: repeat(16, 1fr); gap: var(--gap); }
.fact { grid-column: span 4; border-top: 1px solid var(--line); padding-top: 14px; }
.fact:nth-child(1) { grid-column: 5 / span 4; }
.fact p { margin-top: 20px; font-size: 17px; line-height: 1.35; max-width: 26ch; }

/* services */
.svc { border-bottom: 1px solid var(--line); }
.svc__row {
  position: relative; display: grid; grid-template-columns: repeat(16, 1fr); gap: var(--gap); align-items: center;
  padding: clamp(18px, 3vh, 34px) 0; border-top: 1px solid var(--line); cursor: default; isolation: isolate;
}
.svc__row::before {
  content: ""; position: absolute; inset: 0 calc(var(--m) * -1); background: var(--accent); z-index: -1;
  transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease-out);
}
.svc__num { grid-column: span 2; font-family: var(--mono); font-size: 11px; color: var(--mid); letter-spacing: .06em; transition: color .3s; }
.svc__name { grid-column: span 7; font-size: clamp(32px, 4.6vw, 82px); font-weight: 400; letter-spacing: -.05em; line-height: 1; transition: transform .55s var(--ease-out), color .3s; }
.svc__desc { grid-column: span 5; font-size: 15px; line-height: 1.4; color: var(--mid); max-width: 36ch; transition: color .3s; }
.svc__arrow { grid-column: span 2; justify-self: end; font-size: 28px; transform: translateX(-12px); opacity: .3; transition: transform .55s var(--ease-out), opacity .3s, color .3s; }
@media (hover: hover) {
  .svc__row:hover::before { transform: scaleY(1); }
  .svc__row:hover .svc__name { transform: translateX(14px); color: #000; }
  .svc__row:hover .svc__num, .svc__row:hover .svc__desc, .svc__row:hover .svc__arrow { color: #000; }
  .svc__row:hover .svc__arrow { transform: none; opacity: 1; }
}

/* approach */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.step { border-top: 1px solid var(--line); padding: 16px 0 0; min-height: 260px; display: flex; flex-direction: column; position: relative; }
.step__n { font-family: var(--serif); font-style: italic; font-size: 64px; line-height: 1; color: var(--accent); }
.step h3 { font-size: 26px; font-weight: 400; letter-spacing: -.03em; margin-top: auto; padding-top: 40px; }
.step p { margin-top: 10px; font-size: 15px; color: var(--mid); max-width: 30ch; }

/* founders */
.people { display: grid; grid-template-columns: repeat(16, 1fr); gap: var(--gap); }
.person { grid-column: span 8; }
.person__ascii { display: block; width: 100%; aspect-ratio: 4 / 3; background: var(--ink-2); border: 1px solid var(--line); }
.person__meta { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; }
.person h3 { font-size: clamp(24px, 2.4vw, 40px); font-weight: 400; letter-spacing: -.04em; }

/* contact */
.contact { padding-bottom: clamp(80px, 12vh, 140px); }
.contact__title { font-size: clamp(56px, 11.5vw, 220px); font-weight: 400; letter-spacing: -.06em; line-height: .88; }
.contact__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.contact__title .line > span { display: inline-block; }
.contact__title em { font-size: 1.06em; }
.contact__mail {
  margin-top: clamp(48px, 8vh, 100px); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; isolation: isolate;
}
.contact__mail::before { content: ""; position: absolute; inset: 0 calc(var(--m) * -1); background: var(--fg); z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease-out); }
.contact__mail:hover::before { transform: scaleY(1); }
.contact__mail:hover { color: #000; }
.contact__mail-label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.contact__mail-addr { font-size: clamp(22px, 3.4vw, 56px); letter-spacing: -.04em; overflow-wrap: anywhere; }
.contact__mail-arrow { font-size: clamp(28px, 3vw, 48px); transition: transform .55s var(--ease-out); }
.contact__mail:hover .contact__mail-arrow { transform: translate(6px, -6px) rotate(45deg); }

/* footer */
.foot { position: relative; border-top: 1px solid var(--line); }
.foot__ascii { display: block; width: 100%; height: clamp(180px, 34vh, 360px); }
.foot__row { display: flex; justify-content: space-between; gap: 16px; padding: 16px var(--m) 20px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--mid); border-top: 1px solid var(--line); }
.foot__row a { color: var(--fg); }

/* services: every row is a link; Websites opens by default onto live work */
.svc__item { border-top: 1px solid var(--line); }
.svc__item .svc__row { border-top: 0; cursor: pointer; }
.svc__show { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(10px, 1.4vw, 20px); padding: 4px 0 clamp(28px, 5vh, 56px); }
.shot { display: flex; flex-direction: column; gap: 12px; min-width: 0; transition: transform .5s var(--ease-out); }
.shot:hover { transform: translateY(-2px); }
.shot--main { grid-column: span 8; }
.shot--side { grid-column: span 4; }
.shot--side .browser__body { aspect-ratio: auto; flex: 1; min-height: 0; }
.shot--side .browser { height: 100%; display: flex; flex-direction: column; }
.shot__meta { display: flex; align-items: baseline; gap: 12px; font-size: 15px; }
.shot__meta b { margin-left: auto; font-weight: 400; transition: transform .4s var(--ease-out), color .3s; }
.shot:hover .shot__meta b { transform: translate(3px, -3px); color: var(--accent); }
.svc__showfoot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 8px; }
.svc__showfoot .label::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: blink 1.6s infinite; vertical-align: 1px; }

/* browser frame */
.browser { display: block; border: 1px solid rgba(242,242,242,.16); border-radius: 12px; overflow: hidden; background: #0c0c0c; box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(43,234,26,.05); }
.browser__bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #141414; border-bottom: 1px solid rgba(242,242,242,.08); }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #2c2c2c; }
.browser__bar b { margin: 0 auto; transform: translateX(-14px); padding: 3px 12px; border-radius: 6px; background: #0b0b0b; font: 400 11px var(--mono); color: var(--mid); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70%; }
.browser__body { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #050505; }
.browser__body video, .browser__body img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: scale .8s var(--ease-out); }
.shot:hover .browser__body video, .shot:hover .browser__body img:not(.pan) { scale: 1.025; }
/* full-page screenshots pan from top to bottom inside the frame */
.pan { object-position: 50% 0%; animation: pan 26s ease-in-out infinite alternate; }
@keyframes pan { 0%, 6% { object-position: 50% 0%; } 94%, 100% { object-position: 50% 100%; } }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 12px; height: 48px; padding: 0 22px; border-radius: 999px; font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; transition: background .3s, color .3s, border-color .3s, transform .2s var(--ease-out); }
.btn b { font-weight: 400; transition: transform .4s var(--ease-out); }
.btn:hover b { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn--solid { background: var(--accent); color: #000; }
.btn--solid:hover { background: var(--fg); }
.btn--ghost { border: 1px solid var(--line); background: rgba(0,0,0,.5); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* founder links */
.person__links { list-style: none; margin-top: 14px; border-top: 1px solid var(--line); }
.person__links li { border-bottom: 1px solid var(--line); }
.person__links a { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 12px 0; font-size: 15px; isolation: isolate; transition: color .3s, padding .45s var(--ease-out); }
.person__links a::before { content: ""; position: absolute; inset: 0 -10px; background: var(--accent); z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease-out); }
.person__links a::after { content: "↗"; margin-left: 12px; opacity: .4; transition: opacity .3s; }
.person__links a span:last-child { margin-left: auto; }
.person__links a:hover { color: #000; padding-left: 8px; }
.person__links a:hover .label { color: #000; }
.person__links a:hover::before { transform: scaleY(1); }
.person__links a:hover::after { opacity: 1; }
[data-linkedin]:has(a[href=""]) { display: none; }

/* phone lines under the contact email */
.contact__lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: 28px; }
.contact__lines a { display: flex; flex-direction: column; gap: 8px; padding: 16px 0; border-top: 1px solid var(--line); font-size: clamp(18px, 1.8vw, 28px); letter-spacing: -.03em; transition: color .3s; }
.contact__lines a:hover { color: var(--accent); }
.contact__wa span:last-child { color: var(--accent); }

/* floating dock */
.dock { position: fixed; right: var(--m); bottom: var(--m); z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.dock__btn {
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--fg);
  background: rgba(8, 8, 8, .78); border: 1px solid var(--line); backdrop-filter: blur(10px);
  transition: background .3s, color .3s, border-color .3s, transform .5s var(--ease-out);
}
.dock__btn:hover { transform: translateY(-2px); border-color: var(--accent); }
.dock__btn svg { width: 18px; height: 18px; fill: var(--accent); transition: fill .3s; }
.dock__btn--wa:hover, .dock__btn--wa[aria-expanded="true"] { background: var(--accent); color: #000; }
.dock__btn--wa:hover svg, .dock__btn--wa[aria-expanded="true"] svg { fill: #000; }
.dock__btn--chat { background: var(--fg); color: #000; border-color: var(--fg); }
.dock__btn--chat:hover { background: var(--accent); border-color: var(--accent); }
.dock__pulse { position: relative; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.dock__pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--accent); animation: ping 1.8s var(--ease-out) infinite; }
.dock__btn--chat .dock__pulse { background: #0b8a00; }
.dock__btn--chat .dock__pulse::after { border-color: #0b8a00; }
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.dock__wa { display: flex; flex-direction: column; gap: 6px; }
.dock__wa[hidden] { display: none; }
.dock__wa a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 16px; min-width: 220px;
  font-family: var(--mono); font-size: 12px; background: rgba(8,8,8,.9); border: 1px solid var(--line); border-radius: 12px;
  animation: popIn .45s var(--ease-out) both; transition: border-color .3s, color .3s;
}
.dock__wa a:nth-child(2) { animation-delay: .05s; }
.dock__wa a:hover { border-color: var(--accent); color: var(--accent); }
@keyframes popIn { from { opacity: 0; transform: translateY(8px) scale(.97); } }
body.chat-open .dock { opacity: 0; pointer-events: none; }
.wipe { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 300; pointer-events: none; display: none; }
html.wipe-in::after { content: ""; position: fixed; inset: 0; background: #000; z-index: 299; }
.dock { transition: opacity .3s; animation: dockIn .9s var(--ease-out) 4.2s both; }
@keyframes dockIn { from { opacity: 0; transform: translateY(16px); } }
.hud--bottom .hud__scroll { position: absolute; left: 50%; bottom: 0; translate: -50% 0; }   /* keep clear of the dock */

/* chatbot */
.chat {
  position: fixed; right: var(--m); bottom: var(--m); z-index: 61; width: min(400px, calc(100vw - 2 * var(--m))); height: min(620px, calc(100svh - 2 * var(--m) - 60px));
  display: flex; flex-direction: column; background: rgba(6, 6, 6, .94); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  backdrop-filter: blur(14px); box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(43,234,26,.06);
  clip-path: inset(100% 0 0 0 round 18px); visibility: hidden; transition: clip-path .7s var(--ease-io), visibility 0s .7s;
}
.chat::before { /* faint circuit grid */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(43,234,26,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(43,234,26,.05) 1px, transparent 1px);
  background-size: 22px 22px; mask-image: linear-gradient(#000, transparent 40%);
}
body.chat-open .chat { clip-path: inset(0 0 0 0 round 18px); visibility: visible; transition: clip-path .7s var(--ease-io), visibility 0s; }
.chat__head { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; border-bottom: 1px solid var(--line); }
.chat__mark { width: 26px; height: 30px; flex: none; }
.chat__head div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.chat__head b { font-weight: 500; font-size: 15px; letter-spacing: -.01em; }
.chat__head .label { display: flex; align-items: center; gap: 8px; font-size: 10px; }
.chat__x { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--fg); font-size: 20px; line-height: 1; cursor: pointer; transition: background .3s, color .3s; }
.chat__x:hover { background: var(--fg); color: #000; }
.chat__log { position: relative; flex: 1; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; scrollbar-width: thin; }
.msg { max-width: 88%; font-size: 14.5px; line-height: 1.45; animation: popIn .4s var(--ease-out) both; }
.msg--bot { align-self: flex-start; padding: 12px 14px; background: #111; border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; }
.msg--bot::before { content: "NEXIVIA"; display: block; margin-bottom: 6px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; color: var(--accent); }
.msg--me { align-self: flex-end; padding: 10px 14px; background: var(--fg); color: #000; border-radius: 14px 4px 14px 14px; }
.msg a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.msg__acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.msg__acts a { text-decoration: none; display: inline-flex; padding: 7px 11px; border-radius: 999px; border: 1px solid rgba(43,234,26,.45); font-family: var(--mono); font-size: 11px; color: var(--accent); transition: background .3s, color .3s; }
.msg__acts a:hover { background: var(--accent); color: #000; }
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
.chat__chips { display: flex; gap: 6px; padding: 8px 16px 10px; overflow-x: auto; scrollbar-width: none; }
.chat__chips::-webkit-scrollbar { display: none; }
.chat__chips button { flex: none; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--fg); font: 12px var(--mono); cursor: pointer; transition: border-color .3s, color .3s; }
.chat__chips button:hover { border-color: var(--accent); color: var(--accent); }
.chat__form { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; border-top: 1px solid var(--line); }
.chat__prompt { font-family: var(--mono); color: var(--accent); }
.chat__form input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--fg); font: 16px var(--sans, inherit); }
.chat__form input::placeholder { color: var(--mid); }
.chat__form button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--accent); color: #000; font-size: 16px; cursor: pointer; }

/* reveal base (JS animates) */
.js [data-reveal] { opacity: 0; transform: translateY(40px); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__links { display: none; }
  .pill { display: none; }
  .hud__right { display: none; }
  .facts { grid-template-columns: 1fr; gap: 28px; }
  .fact, .fact:nth-child(1) { grid-column: auto; }
  .svc__row { grid-template-columns: 40px 1fr; row-gap: 10px; }
  .svc__num { grid-column: 1; align-self: start; padding-top: 10px; }
  .svc__name { grid-column: 2; }
  .svc__desc { grid-column: 2; }
  .svc__arrow { display: none; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .step { min-height: 220px; }
  .person { grid-column: span 16; }
  .contact__mail { grid-template-columns: 1fr auto; }
  .contact__mail-label { grid-column: 1 / -1; }
  .foot__row span:nth-child(2) { display: none; }
  .shot--main, .shot--side { grid-column: 1 / -1; }
  .shot--side .browser__body { aspect-ratio: 16 / 10; flex: none; }
  .svc__showfoot { flex-direction: column; align-items: flex-start; }
  .contact__lines { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 560px) {
  .hud--top { top: 58px; }
  .hud__item:first-child { display: none; }
  .hud--bottom { flex-direction: column; align-items: flex-start; }
  .hud__scroll { display: none; }
  .wordmark { font-size: 19vw; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 0; }
  .step h3 { padding-top: 24px; }
  .dock__btn { height: 44px; padding: 0 15px; }
  .dock__btn--wa span { display: none; }
  .chat { right: 8px; left: 8px; bottom: 8px; width: auto; height: calc(100svh - 80px); }
}

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .dock__pulse::after { animation: none; }
  .hud__scroll i::after { animation: none; }
}

/* accessibility + footer links */
.skip { position: fixed; left: 12px; top: 12px; z-index: 400; padding: 10px 16px; border-radius: 999px; background: var(--accent); color: #000; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; transform: translateY(-160%); transition: transform .3s var(--ease-out); }
.skip:focus { transform: none; }
.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; }
.foot__links { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px var(--gap); padding: 40px var(--m); border-top: 1px solid var(--line); }
.foot__links div { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.foot__links .label { margin-bottom: 6px; }
.foot__links a { font-size: 15px; color: var(--fg); background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 100% / 0 1px; transition: background-size .45s var(--ease-out), color .3s; padding: 4px 0; }
.foot__links a:hover { background-size: 100% 1px; color: var(--accent); }
@media (max-width: 700px) { .foot__links { grid-template-columns: 1fr; } }
/* 404 */
.nf { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 80px var(--m); }
.nf__n { width: 64px; margin-bottom: 18px; }
.nf h1 { font-size: clamp(52px, 9vw, 160px); font-weight: 400; letter-spacing: -.06em; line-height: .9; }
.nf__lede { max-width: 40ch; color: var(--mid); font-size: 18px; }
