/* ============ fonts (self-hosted, OFL) ============ */
@font-face { font-family: "Unbounded"; font-weight: 400 800; font-display: swap; src: url("/fonts/unbounded-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Unbounded"; font-weight: 400 800; font-display: swap; src: url("/fonts/unbounded-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 400 700; font-display: swap; src: url("/fonts/manrope-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-weight: 400 700; font-display: swap; src: url("/fonts/manrope-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JetBrains Mono"; font-weight: 400 600; font-display: swap; src: url("/fonts/jetbrainsmono-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-weight: 400 600; font-display: swap; src: url("/fonts/jetbrainsmono-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

/* ============ tokens ============ */
:root {
  --paper:   #f3eee5;
  --paper-2: #e9e2d4;
  --ink:     #0d1321;
  --ink-2:   #1b2335;
  --muted:   #5f6474;
  --line:    rgba(13, 19, 33, .14);
  --coral:   #ff5b45;
  --coral-d: #e8432e;
  --sea:     #0f6f6a;
  --sand:    #e9a23b;
  --c-lake:  #ff5b45;
  --c-etl:   #0f6f6a;
  --c-dwh:   #2b4c7e;
  --c-olap:  #d48a1f;
  --c-bi:    #7a4fc0;
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body:    "Manrope", "Segoe UI", Roboto, system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --maxw: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* paper grain */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .32; mix-blend-mode: multiply;
  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%3CfeColorMatrix values='0 0 0 0 0.05 0 0 0 0 0.07 0 0 0 0 0.13 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ i18n ============ */
html[data-lang="en"] body [lang="ru"], html[data-lang="en"] body [lang="uz"],
html[data-lang="ru"] body [lang="en"], html[data-lang="ru"] body [lang="uz"],
html[data-lang="uz"] body [lang="en"], html[data-lang="uz"] body [lang="ru"] { display: none !important; }

.wrap { width: min(100% - 48px, var(--maxw)); margin-inline: auto; }
.mono { font-family: var(--mono); }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -.025em; line-height: 1.08; }
p { margin: 0; }
a { color: inherit; }
::selection { background: var(--coral); color: #fff; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 200; }
.skip:focus { left: 8px; }

/* ============ buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 15px/1 var(--body); text-decoration: none;
  padding: 16px 24px; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn b { font-weight: 600; transition: transform .18s ease; }
.btn:hover b { transform: translateX(4px); }
.btn-coral { background: var(--coral); color: #fff; box-shadow: 0 10px 30px -10px rgba(255, 91, 69, .7); }
.btn-coral:hover { background: var(--coral-d); transform: translateY(-2px); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--coral); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn:focus-visible, a:focus-visible, button:focus-visible, .redact:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }

/* ============ header ============ */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 238, 229, .82);
  backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo svg { width: 34px; height: 34px; transition: transform .5s cubic-bezier(.2, .9, .3, 1.4); }
.logo:hover svg { transform: rotate(-12deg) scale(1.06); }
.logo span { font: 700 19px/1 var(--display); letter-spacing: -.03em; }
.logo i { font-style: normal; color: var(--coral); margin: 0 1px; }
.nav { display: flex; gap: 30px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: var(--coral); transition: right .25s ease; }
.nav a:hover::after { right: 0; }
.top-right { display: flex; align-items: center; gap: 14px; }
.lang { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; }
.lang button { font: 600 12px/1 var(--mono); padding: 8px 11px; background: transparent; color: var(--ink); border: 0; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* ============ SQL rail ============ */
.rail {
  position: fixed; left: 22px; top: 50%; transform: translateY(-50%); z-index: 40;
  display: none; flex-direction: column; gap: 14px;
  font: 500 11px/1 var(--mono); letter-spacing: .06em;
}
.rail a { text-decoration: none; color: rgba(13, 19, 33, .35); writing-mode: vertical-rl; transform: rotate(180deg); padding: 4px 0; transition: color .2s ease; }
.rail a:hover { color: var(--ink); }
.rail a.on { color: var(--coral); }
.rail.dark a { color: rgba(243, 238, 229, .4); }
.rail.dark a.on { color: var(--coral); }
@media (min-width: 1360px) { .rail { display: flex; } }

/* ============ hero ============ */
.hero { position: relative; padding: 64px 0 0; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
  opacity: .55;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; min-height: min(78vh, 680px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 28px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .35); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 rgba(255, 91, 69, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 91, 69, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 91, 69, 0); } }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); font-weight: 700; line-height: 1.02; }
html[data-lang="ru"] .hero h1, html[data-lang="uz"] .hero h1 { font-size: clamp(2rem, 4.4vw, 3.6rem); }
html[data-lang="uz"] .hero h1 em { white-space: normal; }
.hero h1 em {
  font-style: normal; color: var(--coral); position: relative; white-space: nowrap;
}
.hero h1 em::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .04em; height: .16em; z-index: -1;
  background: rgba(255, 91, 69, .22); transform: skewX(-12deg);
}
.lead { margin-top: 28px; font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--muted); max-width: 52ch; }
.cta { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }

/* cube viewport */
.cube-frame { position: relative; margin: 0; aspect-ratio: 56 / 52; width: 100%; max-width: 580px; justify-self: end; }
.cube-frame canvas { width: 100%; height: 100%; display: block; }
.corner { position: absolute; width: 22px; height: 22px; border: 0 solid var(--ink); }
.corner.tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.corner.tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.corner.bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.corner.br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.hud { position: absolute; left: 18px; right: 18px; font-size: 11.5px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; pointer-events: none; }
.hud-top { top: 14px; }
.hud-bottom { bottom: 16px; flex-direction: column; gap: 4px; }
.hud-bottom strong { font-weight: 600; color: var(--coral); font-size: 15px; letter-spacing: .06em; }
.op-label { display: inline-block; padding: 2px 6px; border: 1px solid var(--line); border-radius: 4px; margin-right: 4px; }
#op-sql { color: var(--ink); font-size: 12.5px; min-height: 1.4em; }
#op-sql::after { content: "▌"; color: var(--coral); animation: blink 1s steps(1) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }
.op-dots { position: absolute; right: 18px; bottom: 18px; display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.op-dots li { width: 18px; height: 3px; border-radius: 2px; background: var(--line); transition: background .3s ease; }
.op-dots li.on { background: var(--coral); }

/* ticker */
.ticker { margin-top: 56px; border-block: 1.5px solid var(--ink); overflow: hidden; background: var(--ink); color: var(--paper); }
.ticker-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker-track span { padding: 16px 26px; font-size: 14px; letter-spacing: .04em; display: inline-flex; align-items: center; gap: 26px; }
.ticker-track span::after { content: "◆"; color: var(--coral); font-size: 9px; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ============ sections ============ */
.sec { padding: 120px 0; position: relative; }
.sec-tight { padding: 96px 0; }
.sec-paper2 { background: var(--paper-2); }
.sec-ink { background: var(--ink); color: var(--paper); }
.sec-ink .sec-lead { color: rgba(243, 238, 229, .66); }
.sh { display: flex; align-items: baseline; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.sh-n { font-size: 12px; color: var(--muted); }
.sec-ink .sh-n { color: rgba(243, 238, 229, .5); }
.sh-k { font: 600 clamp(1rem, 1.6vw, 1.15rem)/1 var(--mono); color: var(--coral); letter-spacing: .04em; padding: 6px 10px; border: 1.5px solid currentColor; border-radius: 6px; }
.sh-t { font-size: 14px; color: var(--muted); }
.sec-ink .sh-t { color: rgba(243, 238, 229, .6); }
.sec h2 { font-size: clamp(1.9rem, 4.2vw, 3.3rem); max-width: 22ch; }
.sec-lead { margin-top: 22px; max-width: 62ch; color: var(--muted); font-size: 1.08rem; }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ============ services bento ============ */
.bento { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile {
  position: relative; overflow: hidden;
  background: rgba(255, 255, 255, .42); border: 1.5px solid var(--ink); border-radius: 22px;
  padding: 28px 26px 26px; display: flex; flex-direction: column; gap: 14px;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease;
}
.tile:hover { transform: translate(-4px, -4px); box-shadow: 6px 6px 0 var(--ink); }
.tile h3 { font-size: 1.22rem; line-height: 1.18; }
.tile p { color: var(--muted); font-size: .97rem; }
.tile-k { font-size: 11.5px; color: var(--coral); letter-spacing: .04em; }
.tile-xl { grid-column: span 2; grid-row: span 3; padding: 34px 32px; }
.tile-wide { grid-column: span 2; }
.tile-xl h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); max-width: 14ch; }
.tile-xl p { font-size: 1.04rem; max-width: 40ch; }
.tile-art { width: min(78%, 360px); margin-top: auto; align-self: flex-end; color: var(--ink); }
.tile-dark { background: var(--ink); color: var(--paper); }
.tile-dark p { color: rgba(243, 238, 229, .68); }
.tile-dark:hover { box-shadow: 6px 6px 0 var(--coral); }
.tile-coral { background: var(--coral); color: #fff; border-color: var(--coral); }
.tile-coral .tile-k { color: var(--ink); }
.tile-coral p { color: rgba(255, 255, 255, .88); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tags span { font-size: 11.5px; padding: 4px 9px; border: 1px solid currentColor; border-radius: 999px; opacity: .78; }

/* ============ pipeline ============ */
.pipe {
  --pipe-y: 46px;
  list-style: none; margin: 72px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; position: relative;
}
.pipe::before, .pipe::after {
  content: ""; position: absolute; left: calc(100% / 14); right: calc(100% / 14); top: var(--pipe-y); height: 4px; margin-top: -2px; border-radius: 4px;
}
.pipe::before { background: rgba(243, 238, 229, .14); }
.pipe::after {
  background: repeating-linear-gradient(90deg, var(--coral) 0 14px, transparent 14px 46px);
  animation: flow 1.6s linear infinite; opacity: .95;
}
@keyframes flow { to { background-position: 46px 0; } }
@media (prefers-reduced-motion: reduce) { .pipe::after { animation: none; } }
.stage { position: relative; padding: 0 10px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.st-n { font-size: 11px; color: rgba(243, 238, 229, .45); height: 24px; }
.node {
  position: relative; z-index: 2; width: 44px; height: 44px; margin-bottom: 26px; order: 1;
  border-radius: 12px; background: var(--ink); border: 2px solid rgba(243, 238, 229, .7);
  transform: rotate(45deg); transition: background .25s ease, border-color .25s ease, transform .35s ease;
}
.node::after { content: ""; position: absolute; inset: 11px; border-radius: 4px; background: rgba(243, 238, 229, .7); transition: background .25s ease; }
.stage .st-n { order: 0; }
.stage h3 { order: 2; font-size: 1.02rem; margin-bottom: 10px; }
.stage p { order: 3; font-size: 11.5px; line-height: 1.6; color: rgba(243, 238, 229, .6); }
.stage:hover .node, .stage-end .node { border-color: var(--coral); transform: rotate(135deg); }
.stage:hover .node::after, .stage-end .node::after { background: var(--coral); }
.stage-end .node { background: var(--coral); }
.stage-end .node::after { background: var(--ink); }

/* ============ periodic table ============ */
.legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 40px; font-size: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend span::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--c); }
.c-lake { --c: var(--c-lake); } .c-etl { --c: var(--c-etl); } .c-dwh { --c: var(--c-dwh); } .c-olap { --c: var(--c-olap); } .c-bi { --c: var(--c-bi); }
.ptable { margin-top: 26px; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.el {
  position: relative; aspect-ratio: 1; padding: 10px 12px; border-radius: 10px;
  border: 1.5px solid var(--c); background: color-mix(in srgb, var(--c) 7%, transparent);
  display: flex; flex-direction: column; justify-content: space-between;
  transition: background .2s ease, color .2s ease, transform .2s ease;
  cursor: default;
}
.el i { font: 500 11px/1 var(--mono); font-style: normal; opacity: .6; }
.el b { font: 700 2rem/1 var(--display); letter-spacing: -.03em; color: var(--c); transition: color .2s ease; }
.el span { font: 500 11.5px/1.2 var(--mono); overflow-wrap: anywhere; }
.el:hover { background: var(--c); color: #fff; transform: translateY(-3px) rotate(-1.5deg); }
.el:hover b { color: #fff; }

/* ============ industries ============ */
.cases { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.case {
  position: relative; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 22px;
  padding: 28px 26px 30px;
  background-image: repeating-linear-gradient(0deg, transparent 0 31px, rgba(13, 19, 33, .06) 31px 32px);
}
.case-head { display: flex; align-items: center; gap: 14px; }
.case-ico { width: 48px; height: 48px; border-radius: 14px; background: var(--ink); display: grid; place-items: center; flex: none; }
.case-ico svg { width: 26px; height: 26px; fill: none; stroke: var(--paper); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.case h3 { font-size: 1.5rem; }
.stamp {
  margin-left: auto; font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--coral);
  border: 2px solid var(--coral); border-radius: 6px; padding: 4px 8px; transform: rotate(-8deg);
  box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 3px rgba(255, 91, 69, .35);
}
.client { margin-top: 22px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.redact { position: relative; display: inline-block; color: var(--ink); cursor: help; }
.redact-bar { letter-spacing: -.08em; transition: opacity .25s ease; }
.redact-txt { position: absolute; left: 0; top: 50%; transform: translateY(-50%); white-space: nowrap; color: var(--coral); opacity: 0; transition: opacity .25s ease; font-weight: 600; }
.redact:hover .redact-bar, .redact:focus .redact-bar { opacity: .08; }
.redact:hover .redact-txt, .redact:focus .redact-txt { opacity: 1; }
.scope { list-style: none; margin: 22px 0 0; padding: 0; }
.scope li { padding: 9px 0 9px 26px; position: relative; border-top: 1px dashed rgba(13, 19, 33, .2); font-size: .96rem; }
.scope li::before { content: "→"; position: absolute; left: 0; color: var(--coral); font-family: var(--mono); }
.nda-note { margin-top: 30px; font-size: 13px; color: var(--muted); }

/* ============ process gantt ============ */
.gantt { margin-top: 56px; border-top: 1.5px solid var(--ink); }
.g-row { display: grid; grid-template-columns: 210px 1fr 1.1fr; gap: 28px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); }
.g-name { font: 600 1.12rem/1.2 var(--display); }
.g-name .mono { font-size: 12px; color: var(--coral); margin-right: 6px; font-weight: 500; }
.g-track {
  position: relative; height: 34px; border-radius: 8px;
  background: repeating-linear-gradient(90deg, rgba(13, 19, 33, .09) 0 1px, transparent 1px 10%);
}
.g-bar {
  position: absolute; top: 6px; bottom: 6px; left: calc(var(--s) * 1%); width: 0;
  background: var(--ink); border-radius: 6px; transition: width 1.1s cubic-bezier(.2, .8, .2, 1) .2s;
}
.gantt.in .g-bar { width: calc(var(--w) * 1%); }
.g-bar-coral { background: var(--coral); }
.g-bar-sea { background: var(--sea); }
.g-inf { position: absolute; right: -4px; top: 50%; transform: translate(100%, -50%); color: var(--sea); font-size: 18px; }
.g-desc { color: var(--muted); font-size: .97rem; }
@media (prefers-reduced-motion: reduce) { .g-bar { width: calc(var(--w) * 1%); transition: none; } }

/* ============ principles ============ */
.principles { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.principles li { padding: 28px 26px 8px 0; border-left: 1px solid rgba(243, 238, 229, .16); padding-left: 24px; display: flex; flex-direction: column; gap: 18px; }
.principles li:first-child { border-left: 0; padding-left: 0; }
.pr-n { font-size: 54px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--coral); font-weight: 600; }
.principles h3 { font-size: 1.12rem; line-height: 1.25; margin-bottom: 10px; }
.principles p { color: rgba(243, 238, 229, .64); font-size: .96rem; }

/* ============ contact ============ */
.contact { padding-bottom: 140px; }
.contact-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: end; margin-top: 10px; }
.contact h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); max-width: 18ch; }
.contact-side p { color: var(--muted); font-size: 1.05rem; }
.mail-big {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 26px;
  font: 600 clamp(1.15rem, 2.4vw, 1.7rem)/1.1 var(--display); letter-spacing: -.02em;
  text-decoration: none; padding-bottom: 6px;
  background: linear-gradient(var(--coral), var(--coral)) left bottom / 100% 3px no-repeat;
  transition: background-size .3s ease, color .2s ease;
}
.mail-big:hover { color: var(--coral); }
.mail-big b { transition: transform .2s ease; }
.mail-big:hover b { transform: translate(3px, -3px); }

/* ============ footer ============ */
.foot { background: var(--ink); color: rgba(243, 238, 229, .7); }
.foot-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 26px 0; font-size: 12.5px; }
.foot a { text-decoration: none; color: var(--paper); }
.foot a:hover { color: var(--coral); }

/* ============ responsive ============ */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile-xl { grid-row: auto; }
  .ptable { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .principles { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .principles li:nth-child(3) { border-left: 0; padding-left: 0; }
  .g-row { grid-template-columns: 170px 1fr; }
  .g-desc { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 24px; }
  .cube-frame { justify-self: center; max-width: 520px; }
  .cases { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .pipe { grid-template-columns: 1fr; gap: 0; --pipe-x: 22px; }
  .pipe::before, .pipe::after { left: var(--pipe-x); right: auto; top: 22px; bottom: 22px; width: 4px; height: auto; margin: 0 0 0 -2px; }
  .pipe::after { background: repeating-linear-gradient(180deg, var(--coral) 0 14px, transparent 14px 46px); animation-name: flow-v; }
  @keyframes flow-v { to { background-position: 0 46px; } }
  .stage { display: grid; grid-template-columns: 44px 1fr; column-gap: 22px; text-align: left; align-items: start; padding: 0 0 28px; }
  .node { grid-column: 1; grid-row: 1 / span 3; margin: 0; order: 0; }
  .stage .st-n, .stage h3, .stage p { grid-column: 2; order: 0; }
  .st-n { height: auto; }
  .stage h3 { margin: 2px 0 6px; }
}
@media (max-width: 620px) {
  .wrap { width: min(100% - 32px, var(--maxw)); }
  .sec { padding: 84px 0; }
  .bento { grid-template-columns: 1fr; }
  .tile-xl { grid-column: auto; grid-row: auto; }
  .principles { grid-template-columns: 1fr; }
  .principles li { border-left: 0; padding-left: 0; border-top: 1px solid rgba(243, 238, 229, .16); }
  .g-row { grid-template-columns: 1fr; gap: 12px; }
  .top-right .btn { display: none; }
  .hud-top span:last-child { display: none; }
  .ptable { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .el { padding: 8px; }
  .el span { font-size: 9.5px; }
  .tile-wide { grid-column: auto; }
  .el b { font-size: 1.6rem; }
}
html[data-lang="uz"] .contact h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); max-width: 22ch; }
