/* nx.css: the Nexsas-style layer (2026-11-16, branch redesign/nexsas-hero-motion).
   Glass pill header that reads the ground under it, a dark centred hero with running light beams and a
   purple glow, blur-in reveals, mono buttons. Loaded after the page's own <style>, so it wins on ties.
   Content, languages (GE root, EN /en) and the light/dark switch are untouched. */

:root {
  /* 2026-11-23: one face everywhere (Niko): headings, buttons and labels use the menu font */
  --nx-sans: "Inter Tight", "Noto Sans Georgian", system-ui, sans-serif;
  --nx-serif: var(--nx-sans);
  --nx-mono: var(--nx-sans);
  --nx-ease: cubic-bezier(.2, .8, .2, 1);
  --nx-dark: #11141d;
  --font-display: var(--nx-serif);
  --font-text: var(--nx-sans);
  --display-weight: 500;
  --display-tracking: -0.02em;
  --display-tracking-xl: -0.03em;
}
:root[lang="ka"] { --display-tracking: 0; --display-tracking-xl: 0; }
/* the wordmark keeps the brand face */
.nav__logo, .footer .nav__logo { font-family: "Outfit", var(--nx-sans); }
/* headings in the menu font, medium weight */
h1, h2, h3, .pcard__name { font-weight: 500; }
.pcard__name { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.1; }
:root[lang="ka"] .pcard__name { font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); font-weight: 500; }
/* English serif reads small next to the old sans: one step up */
:root[lang="en"] h2 { font-size: clamp(2.1rem, 1.5rem + 2vw, 3.25rem); line-height: 1.1; }

/* ---------------------------------------------------------------- buttons: mono label, soft corners */
.btn { font-family: var(--nx-mono); font-weight: 500; letter-spacing: -.01em; border-radius: 12px; }
:root[lang="ka"] .btn { letter-spacing: 0; }
.nx-arr { display: inline-grid; place-items: center; width: 26px; height: 26px; margin: 0 -8px 0 4px; border-radius: 50%; background: currentColor; flex: none; }
.nx-arr svg { width: 12px; height: 12px; color: var(--nx-arr-ink, #7c3aed); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--nx-ease); }
.btn:hover .nx-arr svg { transform: translateX(2px); }

/* ---------------------------------------------------------------- header: floating glass pill */
.nav { background: transparent; border-bottom: 0; pointer-events: none; }
.nav > .nav__bar {
  pointer-events: auto; position: relative;
  width: min(1180px, 100% - 32px); max-width: none; margin: 14px auto 0; height: calc(var(--nav) - 20px);
  padding: 0 7px 0 16px; border-radius: 16px;
  background: var(--nx-glass); border: 1px solid var(--nx-edge); color: var(--nx-ink); box-shadow: var(--nx-shadow, none);
  -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
  transition: margin-top .5s var(--nx-ease), background-color .35s ease, border-color .35s ease, color .35s ease, box-shadow .35s ease;
}
.nav.is-scrolled > .nav__bar { margin-top: 8px; }
/* the ground under the bar: light (default) or dark */
.nav { --nx-glass: rgba(255, 255, 255, .72); --nx-edge: rgba(13, 10, 31, .09); --nx-ink: #0d0a1f; --nx-shadow: 0 10px 30px -14px rgba(13, 10, 31, .22); }
.nav[data-over="dark"], :root:has(main > .nxh:first-child) .nav:not([data-over]) {
  --nx-glass: rgba(24, 27, 40, .5); --nx-edge: rgba(255, 255, 255, .12); --nx-ink: #fff; --nx-shadow: 0 10px 30px -14px rgba(0, 0, 0, .5);
}
.nav__bar :is(.nav__logo, .nav__link, .nav__toggle) { color: inherit; }
.nav__link { font-family: var(--nx-mono); font-size: 14.5px; letter-spacing: -.01em; }
:root[lang="ka"] .nav__link { letter-spacing: 0; }
.nav__bar :is(.lang__btn, .nav__theme) { color: inherit; background: transparent; border-color: color-mix(in srgb, currentColor 22%, transparent); }
.nav__bar :is(.lang__btn, .nav__theme):hover, .nav__bar .lang.is-open .lang__btn { background: color-mix(in srgb, currentColor 9%, transparent); }
.nav__bar .lang__btn { font-family: var(--nx-mono); font-weight: 500; }
.nav__bar .nav__book { height: 40px; border-radius: 11px; }
.nav[data-over="dark"] .nav__book, :root:has(main > .nxh:first-child) .nav:not([data-over]) .nav__book { background: #fff; color: #0d0a1f; }
.nav[data-over="dark"] .nav__book:hover { background: #ece9f8; }
/* phone menu open: a solid sheet, the bar turns solid with it */
.nav.is-open > .nav__bar { --nx-glass: var(--bg); --nx-edge: var(--line); --nx-ink: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (max-width: 1023px) {
  .nav.is-open .nav__links, .nav.is-open .nav__actions { pointer-events: auto; }
}
@media (max-width: 639px) {
  .nav > .nav__bar { width: calc(100% - 20px); margin-top: 10px; padding: 0 6px 0 12px; border-radius: 14px; }
}

/* ---------------------------------------------------------------- the home hero */
main > .hero.nxh {
  position: relative; isolation: isolate; overflow: hidden;
  height: auto; min-height: 100svh;
  padding: calc(var(--nav) + clamp(40px, 7vh, 88px)) 0 clamp(56px, 8vh, 96px);
  background: var(--nx-dark); color: #fff;
  --ink: #fff; --muted: rgba(255, 255, 255, .64); --line: rgba(255, 255, 255, .12); --line-strong: rgba(255, 255, 255, .22);
}
:root[data-theme="dark"] main > .hero.nxh { background: #0b0d14; }
.nxh > .wrap { height: auto; display: block; }
.nxh__in { position: relative; z-index: 2; }
.nxh__text { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 980px; margin: 0 auto; }
.nxh__kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); color: rgba(255, 255, 255, .78);
  font: 500 13px/1.2 var(--nx-mono); letter-spacing: -.01em; }
.nxh__kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: #a78bfa; box-shadow: 0 0 10px #a78bfa; }
.nxh h1 { margin: 24px 0 0; font: 500 clamp(46px, 4.4vw + 12px, 84px)/1.04 var(--nx-serif); letter-spacing: -0.03em; color: rgba(255, 255, 255, .95); text-wrap: balance; max-width: 15ch; }
:root[lang="ka"] .nxh h1 { font-size: clamp(1.8rem, 1.1rem + 2.2vw, 2.6rem); line-height: 1.22; letter-spacing: 0; max-width: 22ch; font-weight: 500; }
.nxh__lead { margin: 22px 0 0; max-width: 60ch; font-size: clamp(16px, .3vw + 15px, 18.5px); line-height: 1.55; color: rgba(255, 255, 255, .64); text-wrap: pretty; }
.nxh .btn-row { margin-top: 34px; justify-content: center; gap: 12px; }
.nxh .btn { height: 52px; padding-inline: 22px; font-size: 15px; }
.nxh .btn--primary { background: #fff; color: #0d0a1f; --nx-arr-ink: #fff; }
.nxh .btn--primary:hover { background: #ece9f8; }
.nxh .btn--primary .nx-arr { background: #0d0a1f; }
.nxh .btn--primary .nx-arr svg { color: #fff; }
.nxh .btn--secondary { background: rgba(28, 31, 44, .85); color: #fff; border: 1px solid rgba(255, 255, 255, .18); }
.nxh .btn--secondary:hover { background: rgba(44, 47, 62, .95); }
.nxh .btn-row .btn { position: relative; z-index: 1; }

/* the ground: funnel lines with light running down them, a purple glow rising from the bottom */
.nxh__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.nxh__beams { position: absolute; left: 50%; top: 0; width: max(1440px, 100%); height: 100%; transform: translateX(-50%); }
.nxh__lines path { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 1; }
.nxh__streaks path { fill: none; stroke: rgba(225, 214, 255, .9); stroke-width: 1.4; stroke-linecap: round;
  stroke-dasharray: .07 2; stroke-dashoffset: .07; filter: drop-shadow(0 0 4px rgba(196, 170, 255, .9));
  animation: nx-beam calc(4.2s + var(--b) * .45s) cubic-bezier(.45, 0, .7, 1) calc(var(--b) * -1.3s) infinite; }
@keyframes nx-beam { 0% { stroke-dashoffset: .07; opacity: 0; } 8% { opacity: 1; } 85% { opacity: 1; } 100% { stroke-dashoffset: -1; opacity: 0; } }
.nxh__glow { position: absolute; left: 50%; bottom: 0; width: 160%; height: 72%; transform: translateX(-50%);
  background:
    radial-gradient(34% 30% at 50% 100%, rgba(253, 250, 255, 1) 0%, rgba(240, 228, 255, .85) 35%, transparent 75%),
    radial-gradient(46% 62% at 50% 100%, rgba(196, 167, 255, .95) 0%, rgba(150, 100, 250, .8) 30%, rgba(124, 58, 237, .5) 55%, transparent 80%),
    radial-gradient(60% 90% at 50% 100%, rgba(91, 33, 182, .45) 0%, rgba(76, 29, 149, .18) 55%, transparent 85%); }
/* the bottom melts into the page below (white in light mode, night in dark mode) */
.nxh::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; z-index: 1; background: linear-gradient(to bottom, transparent, var(--p-bg)); pointer-events: none; }

/* our work rising out of the glow: three windows fanned, the chatbot phone in front */
.nxh__stage { position: relative; z-index: 2; width: min(1040px, 100%); aspect-ratio: 16 / 7.4; margin: clamp(44px, 7vh, 76px) auto 0; container-type: inline-size; }
.nxh .stk { position: absolute; inset: 0; overflow: visible; background: none; }
.nxh .stk__win { width: 50%; box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .1); }
.nxh .stk__win--1 { left: 0; top: 17%; }
.nxh .stk__win--3 { left: auto; right: 0; top: 17%; }
.nxh .stk__win--2 { left: 25%; top: 0; z-index: 2; }
.nxh__phonebox { position: absolute; z-index: 3; right: 3%; top: 12%; width: 54%; container-type: inline-size; pointer-events: none; }
.nxh .stk__phone { position: relative; left: auto; bottom: auto; width: 35%; margin-left: auto; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14) inset, 0 34px 70px -18px rgba(0, 0, 0, .8); }
@media (hover: hover) {
  .nxh__stage:hover .stk__win--1 { transform: translate(-8px, 4px); }
  .nxh__stage:hover .stk__win--3 { transform: translate(8px, 4px); }
  .nxh__stage:hover .stk__win--2 { transform: translateY(-6px); }
}
@media (max-width: 639px) {
  .nxh__stage { aspect-ratio: 4 / 3.6; }
  .nxh .stk__win { width: 74%; }
  .nxh .stk__win--1 { left: 0; top: 0; }
  .nxh .stk__win--2 { left: 13%; top: 22%; }
  .nxh .stk__win--3 { left: 26%; right: auto; top: 44%; }
  .nxh__phonebox { right: -2%; top: 14%; width: 100%; }
  .nxh .stk__phone { width: 32%; }
  .nxh .btn-row { width: 100%; }
  .nxh .btn { flex: 1 1 auto; justify-content: center; }
}

/* entrance: label, heading, lead, buttons blur in one after another, then the work rises */
.nxh [data-nx-in] { animation: nx-in 1s var(--nx-ease) both; animation-delay: calc(var(--i, 0) * 110ms + 80ms); }
.nxh .stk__win, .nxh__phonebox { animation: nx-rise 1.2s var(--nx-ease) both; }
.nxh .stk__win--1 { animation-delay: .55s; } .nxh .stk__win--3 { animation-delay: .62s; } .nxh .stk__win--2 { animation-delay: .5s; } .nxh__phonebox { animation-delay: .8s; }
.nxh__glow { animation: nx-glow 1.6s ease-out both; }
@keyframes nx-in { from { opacity: 0; filter: blur(12px); translate: 0 22px; } }
@keyframes nx-rise { from { opacity: 0; filter: blur(8px); translate: 0 60px; } }
@keyframes nx-glow { from { opacity: 0; translate: 0 18%; } }

/* ---------------------------------------------------------------- reveals on scroll (set by nx.js) */
html.nx-js .nx-r { opacity: 0; filter: blur(10px); translate: 0 30px; transition: opacity .9s var(--nx-ease), filter .9s var(--nx-ease), translate .9s var(--nx-ease); transition-delay: var(--nx-d, 0ms); }
html.nx-js .nx-r.is-in { opacity: 1; filter: blur(0); translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  .nxh [data-nx-in], .nxh .stk__win, .nxh__phonebox, .nxh__glow { animation: none; }
  .nxh__streaks { display: none; }
  html.nx-js .nx-r { opacity: 1; filter: none; translate: none; transition: none; }
  .nav > .nav__bar { transition: none; }
}

/* ---- fixes after the first look (2026-11-16) */
/* the old picture-panel grid must not paint behind the fanned windows, in either theme */
:root .nxh .nxh__stage .stk { background: none; }
/* Georgian: the mono face has no Georgian letters, and its wide space gaps the words; use the Georgian sans */
:root[lang="ka"] :is(.btn, .nav__link, .nav__bar .lang__btn, .nxh__kicker) { font-family: var(--nx-sans); font-weight: 600; }
:root[lang="ka"] .nav__link { font-weight: 500; }
:root[lang="ka"] .nxh h1 { max-width: 30ch; }
/* the page-crossfade name made .nav a backdrop root, so the glass blurred nothing; the bar carries it now */
.nav { view-transition-name: none; }
.nav > .nav__bar { view-transition-name: site-nav; }
.nav[data-over="dark"], :root:has(main > .nxh:first-child) .nav:not([data-over]) { --nx-glass: rgba(20, 23, 34, .55); }
.nav > .nav__bar { -webkit-backdrop-filter: blur(28px) saturate(1.6); backdrop-filter: blur(28px) saturate(1.6); }
/* phones: the pill holds logo, language, theme and the menu; booking lives in the hero and the menu sheet */
@media (max-width: 639px) {
  .nav:not(.is-open) .nav__actions > .nav__book { display: none; }
  .nav > .nav__bar { gap: 8px; }
  .nav__toggle { flex: none; }
}
@media (max-width: 380px) { .nav:not(.is-open) .nav__name { display: none; } }
.nxh .btn, .nxh .btn:hover { text-decoration: none; }
.nav__bar .nav__toggle { height: 40px; width: 40px; border-radius: 11px; color: inherit; border-color: color-mix(in srgb, currentColor 22%, transparent); background: transparent; }

/* ---- 2026-11-16 round 2 */
/* hero: two windows (film festival, whisky days) + the chatbot phone; Formula118 left the home page */
.nxh .stk__win { width: 56%; }
.nxh .stk__win--1 { left: 2%; top: 18%; }
.nxh .stk__win--2 { left: 30%; top: 0; z-index: 2; }
.nxh__phonebox { right: 0; top: 14%; }
@media (hover: hover) { .nxh__stage:hover .stk__win--2 { transform: translate(6px, -6px); } }
@media (max-width: 639px) {
  .nxh__stage { aspect-ratio: 4 / 3; }
  .nxh .stk__win { width: 80%; }
  .nxh .stk__win--1 { left: 0; top: 0; }
  .nxh .stk__win--2 { left: 20%; top: 30%; }
}

/* SAVED BACKGROUND: "DC grid" (the Sanex / Formula118 card ground): deep night with a purple glow in the
   top right corner and a fine square grid that fades out downward. Use on any section:
     <section class="section ground-inverse bg-dc-grid"> … </section>
   Owner's names for it: "chess-like lines", "cross background", "our design choice background". */
.bg-dc-grid {
  position: relative; isolation: isolate; color: #fff;
  background:
    radial-gradient(65% 55% at 88% 0%, rgba(124, 58, 237, .5) 0%, rgba(91, 33, 182, .22) 45%, transparent 75%),
    radial-gradient(45% 40% at 0% 100%, rgba(76, 29, 149, .18), transparent 70%),
    linear-gradient(180deg, #1a1240 0%, #0f0c26 50%, #0a0918 100%);
}
.bg-dc-grid::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 85%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 85%);
}

/* project cards: the bold brand face for names (as before the serif), and the site's address on a
   browser bar across the top of the card */
.pcard__name { font: 600 clamp(1.35rem, 1.1rem + .8vw, 1.75rem)/1.15 "Outfit", "Noto Sans Georgian", system-ui, sans-serif; letter-spacing: -.01em; }
:root[lang="ka"] .pcard__name { font: 700 clamp(1.15rem, 1rem + .6vw, 1.45rem)/1.25 "Outfit", "Noto Sans Georgian", system-ui, sans-serif; letter-spacing: 0; }
.pcard__desc { font-family: "Outfit", "Noto Sans Georgian", system-ui, sans-serif; }
.pcard__tag {
  top: 0; left: 0; right: 0; height: 48px; padding: 0 44px 0 78px; border-radius: 0;
  justify-content: center; gap: 0;
  background: rgba(13, 10, 31, .74); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  font: 600 .9375rem/1 "Outfit", system-ui, sans-serif; letter-spacing: .01em; color: #fff;
  transition: background .3s ease;
}
.pcard__tag::before { content: ""; position: absolute; left: 20px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%;
  background: #ff5f57; box-shadow: 16px 0 #febc2e, 32px 0 #28c840; }
.pcard__tag svg { position: absolute; right: 18px; top: 50%; width: 14px; height: 14px; margin-top: -7px; opacity: .85; }
.pcard:hover .pcard__tag { background: rgba(124, 58, 237, .88); }
.pcard:hover .pcard__tag svg { transform: translate(2px, -2px); }
.pcard img { top: 48px; height: calc(100% - 48px); }
/* the bar reads as the top of a window on any ground: its own tone, and a hairline round the card */
.pcard { box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 18px 40px -22px rgba(13, 10, 31, .5); }
.pcard__tag { background: linear-gradient(#2a2545, #1f1b36); -webkit-backdrop-filter: none; backdrop-filter: none; }
.pcard:hover .pcard__tag { background: linear-gradient(#8b4cf5, #7c3aed); }
