/* TELETEH 2026 — design system (shekhovtsov.me language, teleteh palette) */

:root {
  color-scheme: dark;
  --bg: #07080c;
  --bg2: #0b0d14;
  --card: rgba(13, 16, 28, .34);
  --line: rgba(226, 232, 240, .09);
  --line-strong: rgba(226, 232, 240, .16);
  --tx: #f4f6fb;
  --tx2: #c2c6d0;
  --tx3: #a6adbc;
  --text-small: .875rem;
  --text-body: 1rem;
  --a1: #e6cc76;                       /* gold */
  --a2: #ff2b49;                       /* Montenegrin red */
  --red: #ff2b49;
  --ok: #22d38c;
  --glow1: rgba(212, 175, 55, .30);
  --glow2: rgba(200, 16, 46, .26);
  --glow-red: rgba(200, 16, 46, .25);
  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }

html {
  scroll-padding-block: 76px 64px;
  scroll-behavior: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--a1) transparent;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background-color: var(--a1);
  background-image: linear-gradient(180deg, var(--a1), var(--a2));
  background-clip: padding-box;
  border: 1px solid var(--bg);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background-image: linear-gradient(180deg, var(--a2), var(--a1)); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--tx); text-decoration: none; }
a:hover { color: var(--a2); }
::selection { background: var(--a2); color: #fff; }

button { font:inherit; }

[data-reveal] { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; }
}

@keyframes rise { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
@keyframes wordIn { 0% { opacity: 0; transform: translateY(95%) rotate(3deg); } 100% { opacity: 1; transform: none; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@keyframes blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }

/* background canvas + scroll progress */

#background-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5; }

.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 40;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--a1), var(--a2));
}

.content-wrapper { position: relative; z-index: 1; }

/* nav */

.navbar {
  container-type:inline-size;
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--line);
  transition: background .3s;
}
.navbar .container {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
  padding: 13px 26px;
}
.navbar.scrolled { background: color-mix(in oklab, var(--bg) 88%, transparent); }

.logo { display: inline-flex; align-items: center; gap: 8px; }
.logo-img, .footer-logo-img { display: none; }
.brand-word { font-family: var(--font-mono); font-weight: 700; font-size:var(--text-small); letter-spacing: 0; text-transform: lowercase; }
.brand-word::before { content: '~/'; color: var(--tx3); }
.brand-word::after { content: '_'; color: var(--a2); animation: blink 1.1s steps(1, end) infinite; }

.nav-links { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav-links > a {
  font-family: var(--font-body); font-size:var(--text-small); font-weight:600; letter-spacing:0;
  color: var(--tx2);
}
.nav-links > a:hover { color: var(--a2); }
.nav-links > a.accent {
  padding: 7px 14px; border: 1px solid var(--a1); border-radius: 999px; color: var(--a1);
  transition: all .25s;
}
.nav-links > a.accent:hover { background: var(--a1); color: #07080c; }

.language-selector { display: flex; gap: 4px; }
.language-selector a {
  font-family: var(--font-mono); font-weight: 700; font-size:var(--text-small); letter-spacing:.05em;
  padding: 5px 10px; border-radius: 999px; border: 1px solid transparent; color: var(--tx3);
  transition: all .25s;
}
.language-selector a:hover { color: var(--a2); border-color: var(--line-strong); }
.language-selector a.active { color: var(--tx); border-color: var(--line-strong); }

.mobile-menu-toggle {
  display: none; margin-left: auto; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 8px; cursor: pointer;
}
.mobile-menu-toggle span { width: 22px; height: 1.5px; background: var(--tx); transition: all .3s; }

.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 29;
  width: min(360px, 100%); padding: 90px 28px 32px; overflow-y:auto;
  display: flex; flex-direction: column; gap: clamp(12px, 3svh, 24px);
  background: color-mix(in oklab, var(--bg2) 92%, transparent);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid var(--line);
  visibility: hidden;
  transform: translateX(100%); transition: transform .35s cubic-bezier(.2, .7, .2, 1), visibility .35s;
}
.mobile-menu.open { transform: none; visibility: visible; }
.mobile-menu > a {
  font-family: var(--font-mono); font-size:var(--text-small); letter-spacing:.05em;
  text-transform: uppercase; color: var(--tx2);
}
.mobile-menu > a.accent { color: var(--a1); }
.mobile-menu .language-selector { margin-top: auto; }

@media (max-width: 73em) {
  .nav-links { display: none; }
  .mobile-menu-toggle { display: flex; }
  .navbar .container { padding-inline: 16px; }
}
@container (max-width:73rem) {
  .nav-links { display:none; }
  .mobile-menu-toggle { display:flex; }
  .navbar .container { padding-inline:16px; }
}

/* hero */

.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 130px 24px 70px;
  background:
    radial-gradient(ellipse 60% 45% at 50% 38%, var(--glow2), transparent 70%),
    radial-gradient(ellipse 45% 35% at 72% 72%, var(--glow1), transparent 70%);
}
.hero .container {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  max-width: 1100px; margin: 0 auto;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px;
  font-family: var(--font-mono); font-size:var(--text-small); letter-spacing:.05em;
  text-transform: uppercase; color: var(--tx3);
}
.hero .eyebrow { animation: rise .8s .05s cubic-bezier(.2, .7, .2, 1) both; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--a1); animation: pulse 2.4s infinite; }

.hero-name {
  margin: 0 0 14px; font-family: var(--font-mono); font-size:var(--text-small); letter-spacing:.05em;
  color: var(--tx2); animation: rise .8s .1s cubic-bezier(.2, .7, .2, 1) both;
}

.hero h1 {
  margin: 0; font-family: var(--font-display); font-weight: 800;
  font-size:clamp(1.875rem, 5.2vw, 4.75rem); line-height: 1.1; letter-spacing: -0.01em;
}
.hero-line { display: block; }
.hero-line:nth-child(1) { animation: rise .9s .15s cubic-bezier(.2, .7, .2, 1) both; }
.hero-line:nth-child(2) { animation: rise .9s .3s cubic-bezier(.2, .7, .2, 1) both; }
.hero-word-line { overflow: hidden; padding-bottom: .12em; animation: rise .9s .45s cubic-bezier(.2, .7, .2, 1) both; }

.hero-word {
  display: inline-block;
  animation: wordIn .55s cubic-bezier(.2, .7, .2, 1) both;
  background: linear-gradient(92deg, var(--a1), var(--a2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}

.hero .lead {
  margin: 30px 0 0; max-width: 620px; font-size:1.125rem; line-height: 1.65; color: var(--tx2);
  animation: rise .9s .6s cubic-bezier(.2, .7, .2, 1) both;
}

.cta-row {
  display: flex; gap: 44px; margin-top: 46px; flex-wrap: wrap; justify-content: center;
}
.hero .cta-row { animation: rise .9s .75s cubic-bezier(.2, .7, .2, 1) both; }
.cta {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 2px;
  font-family: var(--font-mono); font-size:var(--text-small); font-weight: 500; letter-spacing:.05em;
  text-transform: uppercase; color: var(--tx);
  border-bottom: 1.5px solid var(--accent, var(--a1));
  transition: gap .3s, color .3s;
}
.cta:hover { gap: 20px; color: var(--accent, var(--a1)); }
.cta .mark { color: var(--accent, var(--a1)); }

.hero-scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size:var(--text-small); letter-spacing:.05em; text-transform: uppercase;
  color: var(--tx3);
}
.hero-scroll .arrow { display: inline-block; animation: bob 1.8s ease-in-out infinite; }

/* marquee */

.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg2) 80%, transparent);
  overflow: hidden; padding: 16px 0;
}
.marquee--partners { display: flex; align-items: center; padding: 0; }
.marquee__label {
  flex: none; margin: 0; padding: 18px 24px;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size:var(--text-small); font-weight: 700; letter-spacing:.05em; text-transform: uppercase;
  color: var(--tx3); border-right: 1px solid var(--line);
}
.marquee__flag {
  padding: 5px 9px; border: 1px solid var(--line-strong); border-radius: 7px;
  color: var(--a1); letter-spacing:.05em; white-space: nowrap;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.marquee__viewport {
  flex: 1; min-width: 0; overflow: hidden; padding: 16px 0;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.marquee__viewport:hover .marquee__track { animation-play-state: paused; }
.marquee__group {
  display: flex; align-items: center; gap: 52px; margin: 0; padding: 0 52px 0 0; list-style: none;
  white-space: nowrap;
}
.partner {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size:var(--text-body); font-weight: 600; letter-spacing: -.01em; color: var(--tx);
}
.partner img { width: auto; height: 24px; display: block; }
.partner--logo img { height: 26px; }
.partner--logo img[src$="webpros.svg"] { height: 22px; }
@media (max-width: 720px) {
  .marquee__label { padding: 14px 12px 14px 16px; }
  .marquee__viewport { padding: 14px 0; }
}


/* sections */

.sec { padding: 110px 24px 60px; }
.sec .container, .reg-brief .container, .ai-section .container { max-width: 1160px; margin: 0 auto; }

.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 44px; }
.section-kicker {
  font-family: var(--font-mono); font-size:var(--text-small); letter-spacing:.05em;
  text-transform: uppercase; color: var(--a2);
}
.section-head h2, .sec h2 {
  margin: 0; font-family: var(--font-display); font-weight: 600; overflow-wrap: break-word; hyphens: auto;
  font-size:clamp(1.5625rem, 3.2vw, 2.625rem); line-height: 1.18;
}
h2 em, h3 em {
  font-style: normal;
  background: linear-gradient(92deg, var(--a1), var(--a2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-head p { margin: 0; max-width: 580px; font-size:var(--text-body); line-height: 1.6; color: var(--tx2); }

/* service cards */

.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.bento > .card { grid-column: span 3; }
.bento > .card.c-mobile { grid-column: 1 / -1; }
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento > .card, .bento > .card.c-mobile { grid-column: auto; }
  .bento > .card.c-mobile { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento > .card.c-mobile { grid-column: auto; }
}
.card {
  display: flex; flex-direction: column; gap: 16px; padding: 32px 28px;
  border: 1px solid var(--line); border-radius: 22px; background: var(--card);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .35s, box-shadow .35s;
}
.card:hover { transform: translateY(-5px); border-color: var(--a2); box-shadow: 0 24px 60px -28px var(--glow2); }
.card.c-consulting:hover, .card.c-mobile:hover, .card.c-cloud:hover { border-color: var(--a1); box-shadow: 0 24px 60px -28px var(--glow1); }
.card .num {
  font-family: var(--font-mono); font-size:var(--text-small); letter-spacing:.05em; text-transform: uppercase;
  background: linear-gradient(92deg, var(--a1), var(--a2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.card h3 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size:1.3125rem; line-height: 1.3; }
.card p { margin: 0; font-size:var(--text-body); line-height: 1.65; color: var(--tx2); }
.card ul { margin: auto 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.card ul li {
  font-family: var(--font-mono); font-size:var(--text-small); letter-spacing:.05em;
  text-transform: uppercase; color: var(--tx3);
}
.card ul li::before { content: '> '; color: var(--a2); }

/* mobile apps card: two phones (iOS + Android), all sizes in em so the art scales with its container */

.card.c-mobile {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: 28px 56px; align-items: center;
  padding: 44px 48px;
}
.card.c-mobile::before {
  content: ''; position: absolute; inset: -20% -10% -20% 40%; pointer-events: none;
  background:
    radial-gradient(40% 50% at 35% 45%, var(--glow1), transparent 70%),
    radial-gradient(40% 50% at 70% 60%, var(--glow2), transparent 70%);
}
.c-mobile__text { position: relative; display: flex; flex-direction: column; gap: 16px; }
.card.c-mobile h3 { font-size:clamp(1.375rem, 2.3vw, 1.9375rem); }
.card.c-mobile p { max-width: 52ch; }
.card.c-mobile ul { margin-top: 8px; }
.c-mobile__art { position: relative; min-width: 0; container-type: inline-size; }

.phones { position: relative; height: 41em; font-size: 10px; font-size: calc(100cqw / 40); }
.phone {
  position: absolute; width: 17em; height: 35em; padding: .55em; border-radius: 3.4em;
  background: linear-gradient(160deg, #1b1f2e, #07080c);
  box-shadow: 0 0 0 .1em var(--line-strong), 0 3em 6em -2em rgba(0, 0, 0, .85), 0 0 9em -3em var(--glow2);
  animation: phoneFloat 8s ease-in-out infinite;
}
.phone--ios { left: 2%; top: 0; rotate: -5deg; }
.phone--android { right: 2%; top: 5em; rotate: 4deg; animation-delay: -4s; animation-direction: reverse; }
@keyframes phoneFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -1.1em; } }

.phone .screen {
  position: relative; height: 100%; overflow: hidden; border-radius: 2.9em; padding: 3em 1.4em 0;
  background:
    radial-gradient(120% 50% at 50% 0, rgba(230, 204, 118, .20), transparent 62%),
    linear-gradient(180deg, #10131f, #07080c);
}
.phone s { text-decoration: none; }
.island, .hole { position: absolute; top: .95em; left: 50%; translate: -50% 0; background: #000; }
.island { width: 5.4em; height: 1.55em; border-radius: 1em; }
.hole { width: 1em; height: 1em; border-radius: 50%; }

.u-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.3em; }
.u-head b { width: 50%; height: 1.5em; border-radius: .6em; background: rgba(244, 246, 251, .9); }
.u-head i { width: 2.5em; height: 2.5em; border-radius: 50%; background: linear-gradient(135deg, var(--a1), var(--a2)); }
.u-hero {
  position: relative; overflow: hidden; height: 8.6em; margin-bottom: 1.2em; padding: 1.3em;
  display: flex; flex-direction: column; justify-content: flex-end; gap: .6em;
  border-radius: 1.8em; background: linear-gradient(135deg, var(--a1), var(--a2));
}
.u-hero::after { content: ''; position: absolute; right: -2.2em; top: -2.2em; width: 8em; height: 8em; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.u-hero b { width: 62%; height: 1.2em; border-radius: .5em; background: rgba(7, 8, 12, .78); }
.u-hero i { width: 38%; height: .8em; border-radius: .4em; background: rgba(7, 8, 12, .38); }
.u-row { display: flex; align-items: center; gap: 1em; padding: .85em 0; border-bottom: .1em solid rgba(255, 255, 255, .06); }
.u-row s { flex: none; width: 2.8em; height: 2.8em; border-radius: .95em; background: var(--c, rgba(255, 255, 255, .1)); }
.u-row span { flex: 1; display: flex; flex-direction: column; gap: .55em; }
.u-row b { width: 72%; height: .95em; border-radius: .4em; background: rgba(244, 246, 251, .7); }
.u-row i { width: 44%; height: .7em; border-radius: .4em; background: rgba(244, 246, 251, .22); }
.u-home { position: absolute; bottom: .7em; left: 50%; translate: -50% 0; width: 6em; height: .4em; border-radius: .2em; background: rgba(255, 255, 255, .45); }

.u-tabs {
  position: absolute; left: 1.3em; right: 1.3em; bottom: 2em; height: 4em; border-radius: 2em;
  display: flex; align-items: center; justify-content: space-around;
  background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 .1em rgba(255, 255, 255, .08);
}
.u-tabs i { width: 1.6em; height: 1.6em; border-radius: .5em; background: rgba(255, 255, 255, .28); }
.u-tabs i.on { background: linear-gradient(135deg, var(--a1), var(--a2)); }

.u-chart {
  height: 9em; margin-bottom: 1em; padding: 1.2em 1.3em; display: flex; align-items: flex-end; gap: .9em;
  border-radius: 1.6em; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 .1em rgba(255, 255, 255, .08);
}
.u-chart i { flex: 1; height: var(--h); border-radius: .5em .5em .2em .2em; background: linear-gradient(180deg, var(--a1), var(--a2)); opacity: .45; }
.u-chart i:last-child { opacity: 1; }
.u-chips { display: flex; gap: .7em; margin-bottom: .8em; }
.u-chips i { flex: 1; height: 2.2em; border-radius: 1.1em; background: rgba(255, 255, 255, .08); }
.u-chips i:first-child { background: color-mix(in oklab, var(--a1) 32%, transparent); }
.u-fab {
  position: absolute; right: 1.4em; bottom: 6.6em; width: 4.4em; height: 4.4em; border-radius: 1.5em;
  background: linear-gradient(135deg, var(--a1), var(--a2)); box-shadow: 0 1em 2em -.6em var(--glow2);
}
.u-fab::before, .u-fab::after { content: ''; position: absolute; left: 50%; top: 50%; translate: -50% -50%; border-radius: .2em; background: #07080c; }
.u-fab::before { width: 1.7em; height: .3em; }
.u-fab::after { width: .3em; height: 1.7em; }
.u-nav {
  position: absolute; left: 0; right: 0; bottom: 0; height: 5em; padding-bottom: .9em;
  display: flex; align-items: center; justify-content: space-around;
  background: rgba(255, 255, 255, .05); box-shadow: inset 0 .1em 0 rgba(255, 255, 255, .07);
}
.u-nav i { width: 1.6em; height: 1.6em; border-radius: .5em; background: rgba(255, 255, 255, .28); }
.u-nav i.on { width: 4.4em; height: 2.4em; border-radius: 1.2em; background: color-mix(in oklab, var(--a1) 40%, transparent); }
.phone--android .u-home { bottom: .5em; width: 7em; }

@media (max-width: 760px) {
  .card.c-mobile { grid-template-columns: minmax(0, 1fr); padding: 32px 28px 36px; }
  .card.c-mobile::before { inset: 45% -10% -10% -10%; }
  .c-mobile__art { width: 100%; max-width: 440px; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) { .phone { animation: none; } }

/* regulatory brief */

.reg-brief { padding: 60px 24px; }
.brief-card {
  border: 1px solid rgba(200, 16, 46, .35); border-radius: 28px;
  background:
    radial-gradient(ellipse 60% 50% at 85% 0%, var(--glow-red), transparent 65%),
    var(--card);
  padding: 52px 48px;
}
.brief-head {
  font-family: var(--font-mono); font-size:var(--text-small); letter-spacing:.05em; text-transform: uppercase;
  color: var(--tx3); margin-bottom: 26px;
}
.brief-h2 {
  margin: 0 0 18px; font-family: var(--font-display); font-weight: 600;
  font-size:clamp(1.5rem, 3vw, 2.5rem); line-height: 1.2;
}
.brief-h2 em { background: linear-gradient(92deg, var(--red), var(--a1)); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: normal; }
.brief-lede { margin: 0 0 40px; max-width: 780px; font-size:var(--text-body); line-height: 1.7; color: var(--tx2); }
.brief-lede strong { color: var(--tx); }

.brief-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 18px; margin-bottom: 40px; }
.brief-fact {
  border: 1px solid var(--line); border-radius: 18px; background: rgba(10, 12, 22, .42);
  padding: 22px 20px;
}
.brief-fact .ref { font-family: var(--font-mono); font-size:var(--text-small); letter-spacing:.05em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.brief-fact h4 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 600; font-size:1.125rem; }
.brief-fact p { margin: 0; font-size:var(--text-body); line-height: 1.6; color: var(--tx2); }

.brief-cite { display: flex; flex-direction: column; gap: 10px; margin-bottom: 44px; }
.cite { display: flex; gap: 12px; align-items: baseline; font-size:var(--text-small); line-height: 1.6; color: var(--tx2); }
.cite .tag {
  flex: none; font-family: var(--font-mono); font-size:var(--text-small); font-weight: 700; letter-spacing:.05em;
  padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line-strong); color: var(--tx3);
}
.cite .body { font-family: var(--font-mono); font-size:var(--text-small); color: var(--tx); }

.brief-bar { border-top: 1px solid var(--line); padding-top: 36px; }
.brief-bar h3 { margin: 0 0 10px; font-family: var(--font-display); font-weight: 600; font-size:clamp(1.1875rem, 2.2vw, 1.625rem); }
.brief-bar > p { margin: 0 0 22px; max-width: 720px; font-size:var(--text-body); line-height: 1.65; color: var(--tx2); }
.bar-list {
  margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 10px 28px;
}
.bar-list li {
  font-family: var(--font-mono); font-size:var(--text-small); letter-spacing:.05em;
  text-transform: uppercase; color: var(--tx2);
}
.bar-list li::before { content: '> '; color: var(--a1); }

/* private AI */

.ai-section {
  padding: 110px 24px 70px;
  background:
    radial-gradient(ellipse 55% 40% at 15% 10%, var(--glow2), transparent 70%),
    transparent;
}
.ai-hero { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(300px, 520px); gap: 56px; align-items: center; margin-bottom: 64px; }
.ai-hero .kicker {
  display: block; font-family: var(--font-mono); font-size:var(--text-small); letter-spacing:.05em;
  text-transform: uppercase; color: var(--a2); margin-bottom: 14px;
}
.ai-hero h2 { margin: 0 0 18px; font-family: var(--font-display); font-weight: 600; font-size:clamp(1.5625rem, 3.2vw, 2.625rem); line-height: 1.18; }
.ai-hero .lede { margin: 0; max-width: 560px; font-size:var(--text-small); line-height: 1.7; color: var(--tx2); }
.ai-hero .lede strong { color: var(--tx); }
.ai-hero .cta-row { margin-top: 34px; justify-content: flex-start; gap: 36px; }

.ai-schema {
  border: 1px solid var(--line); border-radius: 22px; background: rgba(10, 12, 22, .42);
  padding: 14px; overflow: hidden;
}
.ai-schema svg { display: block; width: 100%; height: auto; }

.ai-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 18px; margin-bottom: 64px; }
.ai-use {
  display: flex; flex-direction: column; gap: 14px; padding: 30px 28px;
  border: 1px solid var(--line); border-radius: 22px; background: var(--card);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .35s, box-shadow .35s;
}
.ai-use:hover { transform: translateY(-5px); border-color: var(--a2); box-shadow: 0 24px 60px -28px var(--glow2); }
.ai-use .tag {
  width: fit-content; font-family: var(--font-mono); font-size:var(--text-small); font-weight: 700;
  letter-spacing:.05em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--a2);
}
.ai-use h4 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size:1.125rem; line-height: 1.4; }
.ai-use p { margin: 0; font-size:var(--text-body); line-height: 1.65; color: var(--tx2); }
.ai-use ul { margin: auto 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.ai-use ul li { font-family: var(--font-mono); font-size:var(--text-small); letter-spacing:.05em; color: var(--tx3); }

.ai-stack { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 18px; }
.ai-stack > div {
  border: 1px solid var(--line); border-radius: 22px; background: var(--card); padding: 32px 28px;
}
.ai-stack h3 { margin: 0 0 20px; font-family: var(--font-display); font-weight: 600; font-size:1.1875rem; }
.ai-stack h3 em { font-style: normal; background: linear-gradient(92deg, var(--a1), var(--a2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stack-list { margin: 0; padding: 0; list-style: none; }
.stack-list li {
  display: flex; justify-content: space-between; gap: 18px; padding: 11px 0;
  border-bottom: 1px solid var(--line); font-size:var(--text-small);
}
.stack-list li:last-child { border-bottom: none; }
.stack-list .k { font-family: var(--font-mono); font-size:var(--text-small); letter-spacing:.05em; text-transform: uppercase; color: var(--tx3); }
.stack-list .v { text-align: right; color: var(--tx2); }

/* stats */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 18px; }
.stat {
  display: flex; flex-direction: column; gap: 6px; padding: 30px 26px;
  border: 1px solid var(--line); border-radius: 22px; background: var(--card); text-align: center;
}
.stat .big {
  font-family: var(--font-display); font-weight: 800; font-size:clamp(2.125rem, 4vw, 3rem); line-height: 1.1;
}
.stat .big em {
  font-style: normal;
  background: linear-gradient(92deg, var(--a1), var(--a2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .lbl { font-family: var(--font-mono); font-size:var(--text-small); letter-spacing:.05em; text-transform: uppercase; color: var(--tx3); }

/* contact */

.contact-grid { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(320px, 560px); gap: 56px; align-items: start; }
.contact-intro { display: flex; flex-direction: column; gap: 16px; }
.contact-intro h2 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size:clamp(1.5625rem, 3.2vw, 2.625rem); line-height: 1.18; }
.contact-intro > p { margin: 0; max-width: 460px; font-size:var(--text-body); line-height: 1.65; color: var(--tx2); }

.contact-links { display: flex; flex-direction: column; margin-top: 18px; border-top: 1px solid var(--line); max-width: 460px; }
.contact-link {
  display: flex; align-items: center; gap: 14px; padding: 18px 4px;
  border-bottom: 1px solid var(--line); color: var(--tx);
  font-family: var(--font-display); font-weight: 600; font-size:var(--text-body);
  transition: padding-left .35s cubic-bezier(.2, .7, .2, 1), color .3s, border-color .3s;
}
a.contact-link:hover { padding-left: 18px; color: var(--a2); border-color: var(--a2); }
.contact-link svg { flex: none; color: var(--tx3); }

.offices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 14px; max-width: 460px; margin-top: 10px; }
.office {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 20px 20px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--card);
}
.office__flag {
  margin-bottom: 6px; padding: 4px 8px; border: 1px solid var(--line-strong); border-radius: 7px;
  font-family: var(--font-mono); font-size:var(--text-small); font-weight: 700; letter-spacing:.05em; color: var(--a1);
}
.office__city { margin: 0; font-family: var(--font-display); font-weight: 600; font-size:1.0625rem; }
.office__meta { margin: 0; font-family: var(--font-mono); font-size:var(--text-small); letter-spacing: .04em; color: var(--tx3); }
.office__phone {
  display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px;
  font-family: var(--font-mono); font-size:var(--text-small); font-weight: 700; color: var(--tx); white-space:normal;
  transition: color .2s;
}
.office__phone svg { flex: none; color: #25d366; }
.office__phone:hover { color: #25d366; }

.contact-card {
  display: flex; flex-direction: column; gap: 18px;
  border: 1px solid var(--line); border-radius: 28px; background: var(--card);
  padding: 40px 36px;
}
.fld { display: flex; flex-direction: column; gap: 8px; }
.fld.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fld.row > div { display: flex; flex-direction: column; gap: 8px; }
.fld label {
  font-family: var(--font-mono); font-size:var(--text-small); letter-spacing:.05em;
  text-transform: uppercase; color: var(--tx2);
}
.fld input, .fld select, .fld textarea {
  font-family: var(--font-body); font-size:var(--text-body); color: var(--tx);
  background: rgba(255, 255, 255, .045); border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 12px 14px; outline: none; transition: border-color .25s, box-shadow .25s, background .25s;
  width: 100%;
}
.fld textarea { min-height: 120px; resize: vertical; }
.fld select { appearance: none; -webkit-appearance: none; }
.fld input::placeholder, .fld textarea::placeholder { color: var(--tx3); }
.fld input:hover, .fld select:hover, .fld textarea:hover { border-color: rgba(230, 233, 242, .28); }
.fld input:focus, .fld select:focus, .fld textarea:focus {
  background: rgba(255, 255, 255, .07);
  border-color: var(--a2); box-shadow: 0 0 0 3px rgba(255, 43, 73, .16);
}
.fld select:invalid { color: var(--tx3); }

/* custom select (replaces native <select> — its popup can't be themed cross-browser) */
.cselect { position: relative; }
.cselect-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-family: var(--font-body); font-size:var(--text-body); text-align: left; color: var(--tx);
  background: rgba(255, 255, 255, .045); border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 12px 14px; cursor: pointer; transition: border-color .25s, box-shadow .25s, background .25s;
}
.cselect-trigger:hover { border-color: rgba(230, 233, 242, .28); }
.cselect.open .cselect-trigger, .cselect-trigger:focus-visible {
  background: rgba(255, 255, 255, .07); border-color: var(--a2);
  box-shadow: 0 0 0 3px rgba(255, 43, 73, .16); outline: none;
}
.cselect.invalid .cselect-trigger { border-color: var(--a2); }
.cselect-value[data-placeholder-active] { color: var(--tx3); }
.cselect-arrow { flex: none; color: var(--tx3); transition: transform .25s; }
.cselect.open .cselect-arrow { transform: rotate(180deg); color: var(--a1); }

.cselect-options {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 8px);
  margin: 0; padding: 6px; list-style: none;
  background: var(--bg2); border: 1px solid var(--line-strong); border-radius: 14px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
  max-height: 260px; overflow-y: auto;
}
.cselect-options[hidden] { display: none; }
.cselect-option {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-radius: 9px; font-size:var(--text-body); color: var(--tx2);
  cursor: pointer; transition: background .15s, color .15s;
}
.cselect-option:hover, .cselect-option.active { background: rgba(255, 255, 255, .07); color: var(--tx); }
.cselect-option[aria-selected="true"]::after {
  content: '✓'; font-family: var(--font-mono); font-size:var(--text-small); color: var(--a1);
}

.submit-btn {
  margin-top: 6px; padding: 14px 22px; cursor: pointer;
  font-family: var(--font-mono); font-size:var(--text-small); font-weight: 700; letter-spacing:.05em;
  text-transform: uppercase; color: #07080c;
  background: linear-gradient(92deg, var(--a1), var(--a2));
  border: none; border-radius: 999px;
  transition: opacity .25s, transform .25s, box-shadow .25s;
}
.submit-btn:hover { opacity: .92; transform: translateY(-1px); box-shadow: 0 14px 40px -14px var(--glow2); }
.submit-btn:disabled { opacity: .55; cursor: default; transform: none; }

/* custom models */

.ml-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ml-case--wide { grid-column: span 2; }
.ml-case--wide > p { max-width: 68ch; }
@media (max-width: 1100px) {
  .ml-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ml-grid > .ml-case:last-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .ml-grid { grid-template-columns: minmax(0, 1fr); }
  .ml-case--wide, .ml-grid > .ml-case:last-child { grid-column: auto; }
  .ml-grid .ml-case { padding: 26px 20px; }
}
.ml-note {
  margin-top: 18px; padding: 30px 34px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 40px;
  border: 1px dashed var(--line-strong); border-radius: 22px;
}
.ml-note__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ml-note__tag {
  padding: 4px 9px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-family: var(--font-mono); font-size:var(--text-small); font-weight: 700; letter-spacing:.05em; color: var(--a1);
}
.ml-note h3 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size:1.1875rem; line-height: 1.35; }
.ml-note p { margin: 0; max-width: 68ch; font-size:var(--text-body); line-height: 1.65; color: var(--tx2); }
@media (max-width: 720px) { .ml-note { padding: 24px 20px; } }
.ml-case {
  display: flex; flex-direction: column; gap: 14px; padding: 34px 30px;
  border: 1px solid var(--line); border-radius: 22px; background: var(--card);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .35s, box-shadow .35s;
}
.ml-case .tag {
  width: fit-content; font-family: var(--font-mono); font-size:var(--text-small); font-weight: 700;
  letter-spacing:.05em; text-transform: uppercase;
  padding: 4px 9px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--tx3);
}
.ml-product { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.ml-icon {
  width: 52px; height: 52px; flex: none; border-radius: 14px; object-fit: cover;
  background: var(--bg2);
  box-shadow: 0 0 0 1px var(--line-strong), 0 10px 26px -12px rgba(0, 0, 0, .7);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
@media (hover: hover) {
  .ml-case:hover { transform: translateY(-5px); border-color: var(--a1); box-shadow: 0 24px 60px -28px var(--glow1); }
  .ml-case:hover .ml-icon { transform: scale(1.06) rotate(-2deg); }
}
.ml-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.ml-product .name { font-family: var(--font-display); font-weight: 600; font-size:1.3125rem; }
.ml-product .domain {
  line-height: 1; font-family: var(--font-mono); font-size:var(--text-small); font-weight: 700; letter-spacing: .04em;
  color: var(--a1); padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: 999px;
  transition: background .2s, color .2s, border-color .2s;
}
.ml-product .domain:hover { background: var(--a1); border-color: var(--a1); color: #07080c; }
.ml-case h3 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size:1.125rem; line-height: 1.35; }
.ml-case > p { margin: 0; font-size:var(--text-body); line-height: 1.65; color: var(--tx2); }
.ml-case ul { margin: auto 0 0; padding: 14px 0 0; list-style: none; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.ml-case ul li { font-family: var(--font-mono); font-size:var(--text-small); letter-spacing: .04em; color: var(--tx3); }

/* legal / privacy */

.legal { padding: 150px 24px 80px; }
.legal .container { max-width: 800px; margin: 0 auto; }
.legal h1 {
  margin: 12px 0 8px; font-family: var(--font-display); font-weight: 600;
  font-size:clamp(1.625rem, 3.4vw, 2.75rem); line-height: 1.15;
}
.legal .updated { font-family: var(--font-mono); font-size:var(--text-small); letter-spacing:.05em; text-transform: uppercase; color: var(--tx3); }
.legal .intro { margin: 24px 0 0; font-size:1.125rem; line-height: 1.7; color: var(--tx2); }
.legal-list { display: flex; flex-direction: column; gap: 16px; margin-top: 44px; }
.legal-block {
  border: 1px solid var(--line); border-radius: 18px; background: var(--card);
  padding: 26px 28px;
}
.legal-block .num {
  font-family: var(--font-mono); font-size:var(--text-small); letter-spacing:.05em;
  background: linear-gradient(92deg, var(--a1), var(--a2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.legal-block h2 { margin: 8px 0 8px; font-family: var(--font-display); font-weight: 600; font-size:1.125rem; }
.legal-block p { margin: 0; max-inline-size:68ch; font-size:var(--text-body); line-height: 1.7; color: var(--tx2); }

/* footer */

footer { border-top: 1px solid var(--line); padding: 56px 24px 30px; }
footer .container { max-width: 1160px; margin: 0 auto; }
.footer-content {
  display: grid; grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(140px, 1fr));
  gap: 40px; margin-bottom: 44px;
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-logo { display: inline-flex; }
.footer-brand p { margin: 0; font-size:var(--text-body); line-height: 1.65; color: var(--tx2); max-width: 300px; }
.footer-content h2 {
  margin: 0 0 14px; font-family: var(--font-mono); font-size:var(--text-small); font-weight: 700;
  letter-spacing:.05em; text-transform: uppercase; color: var(--tx3);
}
.footer-content div { display: flex; flex-direction: column; }
.footer-content div > a { padding: 5px 0; font-size:var(--text-small); color: var(--tx2); width: fit-content; }
.footer-content div > a:hover { color: var(--a2); }
.footer-content .footer-directory-badge {
  display: block; padding: 0; margin-block-start: 4px; max-inline-size: 100%;
  border-radius: 12px;
}
.footer-directory-badge img { display: block; max-inline-size: 100%; block-size: auto; }
.footer-directory-badge:is(:hover, :focus-visible) { outline: 2px solid var(--a1); outline-offset: 4px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 10px 28px; padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size:var(--text-small); letter-spacing:.05em; color: var(--tx3);
}

@media (max-width: 900px) {
  .ai-hero { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .footer-content { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .fld.row { grid-template-columns: 1fr; }
  .brief-card { padding: 36px 26px; }
  .contact-card { padding: 30px 24px; }
  .footer-content { grid-template-columns: 1fr; gap: 28px; }
  .cta-row { gap: 24px; }
}

/* Keep translated content within its own track, including on narrow phones. */
body { overflow-wrap:break-word; }
h1,h2,h3,h4 { text-wrap:balance; }
p,li { text-wrap:pretty; }
a,code { overflow-wrap:anywhere; }
:where(.bento,.contact-grid,.footer-content,.fld.row) > * { min-inline-size:0; }
.card,.contact-card,.legal-block { min-inline-size:0; }
.legal h1 { hyphens:manual; }
@media (max-width:560px) {
  .hero h1 { font-size:clamp(1.625rem,8vw,2.5rem); line-height:1.2; }
  .hero .eyebrow { max-width:100%; letter-spacing:.05em; }
  .eyebrow .dot { flex-shrink:0; }
  .hero .cta-row { flex-direction:column; align-items:center; gap:16px; }
  .cta { max-width:100%; text-align:start; line-height:1.6; }
  .cta > span { flex-shrink:0; }
  .sec h2,.contact-intro h2 { font-size:clamp(1.375rem,6.9vw,1.5625rem); line-height:1.3; }
  .legal h1 { font-size:clamp(1.5rem,6.7vw,1.875rem); line-height:1.3; hyphens:auto; }
  .fld input,.fld select,.fld textarea,.cselect-trigger,.cselect-option { font-size:1rem; }
  .cselect-value { min-inline-size:0; }
  .submit-btn { line-height:1.6; letter-spacing:.05em; }
  .footer-bottom { overflow-wrap:anywhere; }
}
