/* VAG World Bold (rounded display face, single weight; served for every weight so no faux-bold is synthesised) */
@font-face {
  font-family: "VAG World";
  src: url("fonts/vag_world_bold.woff2?v=2") format("woff2"), url("fonts/vag_world_bold.woff?v=2") format("woff");
  font-weight: 400 900; font-style: normal; font-display: swap;
}
/* ============================================================
   HAZZE PORTFOLIO — монохром, halftone, пиксельные блоки
   ============================================================ */

:root {
  --bg: #000;
  --fg: #fff;
  --fg-2: #a3a3a3;
  --fg-3: #5c5c5c;
  --line: #1f1f1f;
  --line-2: #2c2c2c;
  --panel: #0b0b0b;
  --panel-2: #141414;
  --bubble: #1c1c1c;
  --bubble-me: #e9e9e9;
  --r: 14px;
  --gutter: clamp(20px, 4vw, 64px);
  --display: "VAG World", "Onest", sans-serif;
  --body: "VAG World", "Onest", "Segoe UI", sans-serif;
  --mono: "VAG World", "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ol, ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: .02em; color: var(--fg-2); }

/* grain overlay */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 50; 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");
  mix-blend-mode: screen;
}

/* halftone fields: dots growing along a diagonal */
.halftone {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(circle, #fff 0 1.6px, transparent 1.7px);
  background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(115deg, transparent 35%, #000 60%, transparent 85%);
          mask-image: linear-gradient(115deg, transparent 35%, #000 60%, transparent 85%);
  opacity: .55;
}
.halftone--a { opacity: .4; -webkit-mask-image: linear-gradient(115deg, transparent 45%, #000 66%, transparent 90%); mask-image: linear-gradient(115deg, transparent 45%, #000 66%, transparent 90%); }
.halftone--b { opacity: .25; -webkit-mask-image: linear-gradient(160deg, transparent 60%, #000 100%); mask-image: linear-gradient(160deg, transparent 60%, #000 100%); }
.halftone--c { opacity: .45; -webkit-mask-image: linear-gradient(250deg, #000 0%, transparent 42%); mask-image: linear-gradient(250deg, #000 0%, transparent 42%); }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  transition: opacity .4s var(--ease), visibility .4s;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  mix-blend-mode: difference;
}
.nav__logo { display: flex; align-items: center; gap: 12px; }
.nav__name { font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .12em; }
.pxlogo { display: grid; grid-template-columns: repeat(3, 6px); grid-auto-rows: 6px; gap: 2px; }
.pxlogo i { background: #fff; border-radius: 1.5px; }
.pxlogo i:nth-child(1) { grid-area: 1/1; } .pxlogo i:nth-child(2) { grid-area: 1/3; }
.pxlogo i:nth-child(3) { grid-area: 2/1; } .pxlogo i:nth-child(4) { grid-area: 2/2; } .pxlogo i:nth-child(5) { grid-area: 2/3; }
.pxlogo i:nth-child(6) { grid-area: 3/1; } .pxlogo i:nth-child(7) { grid-area: 3/3; }
.nav__links { display: flex; gap: 28px; font-family: var(--mono); font-size: 14px; letter-spacing: .02em; }
.nav__links a { position: relative; padding: 4px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: #fff; transition: right .35s var(--ease); }
.nav__links a:hover::after { right: 0; }
.nav__cta { border: 1px solid #fff; padding: 6px 12px !important; border-radius: 999px; }
.nav__cta::after { display: none; }
.nav__cta:hover { background: #fff; color: #000; }
@media (max-width: 640px) { .nav__links { gap: 16px; } .nav__links a:not(.nav__cta) { display: none; } }

/* ---------- HERO: full-screen liquid canvas, logo only ---------- */
.hero {
  position: relative; height: 100svh; min-height: 520px;
  display: grid; place-items: center;
  overflow: hidden;
}
.hero__mark {
  position: relative; z-index: 1;
  width: clamp(200px, min(34vw, 42svh), 460px); aspect-ratio: 1;
  display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: 1fr; gap: 6%;
}
.hero__mark b {
  display: block; background: #fff; border-radius: 22%;
  opacity: 0; transform: translate(var(--dx, 0), var(--dy, 0)) scale(.4);
  animation: pxin .9s var(--ease) forwards; animation-delay: var(--d, 0s);
}
.hero__mark b.ghost { background: transparent; animation: none; }
@keyframes pxin { to { opacity: 1; transform: translate(0,0) scale(1); } }
.hero__scroll {
  position: absolute; left: var(--gutter); bottom: 28px; z-index: 2;
  display: inline-flex; gap: 12px; align-items: center; width: max-content; line-height: 1;
  padding: 8px 8px 8px 20px; border: 1px solid #3a3a3a; border-radius: 999px;
  background: #000; color: #fff; font-size: 14px; letter-spacing: .02em;
  box-shadow: 0 0 0 5px rgba(0, 0, 0, .55);      /* soft dark halo separates the pill from the dots */
  animation: cue-in 1.2s .6s var(--ease) both;   /* soft entrance draws the eye without a jump */
}
.hero__scroll .label { display: block; padding-top: 1px; }   /* optical centre for caps of the rounded face */
.hero__scroll .arrow { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: #000; animation: bob 1.6s ease-in-out infinite; }
.hero__scroll .arrow svg, .intro__scroll .arrow svg { display: block; }
.hero__scroll:hover .arrow { animation-duration: .9s; }
@keyframes cue-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.intro__scroll .arrow { display: inline-block; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

/* ---------- INTRO: tags, headline, lead (revealed on scroll) ---------- */
.intro { padding: clamp(72px, 12vh, 140px) var(--gutter) clamp(48px, 8vh, 96px); display: grid; row-gap: 28px; justify-items: start; }
.intro__meta { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; width: 100%; }
.intro__title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(30px, 4.6vw, 70px); line-height: 1.08; letter-spacing: -.005em;
  max-width: 30ch;
}
.intro__title .line { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.16em; }   /* room for descenders inside the clip box */
.intro__title .line span { display: block; transform: translateY(130%); transition: transform 1s var(--ease); }
.intro__title .line:nth-child(2) span { transition-delay: .1s; }
.intro__title .line:nth-child(3) span { transition-delay: .2s; }
.intro__title .line:nth-child(4) span { transition-delay: .3s; }
.intro__title .line:nth-child(5) span { transition-delay: .4s; }
.intro.in .intro__title .line span { transform: none; }
.intro__lead { max-width: 52ch; color: var(--fg-2); font-size: clamp(15px, 1.4vw, 19px); font-weight: 300; opacity: 0; transition: opacity .9s .5s var(--ease); }
.intro.in .intro__lead { opacity: 1; }
.intro__scroll { display: inline-flex; gap: 10px; align-items: center; color: #fff; width: max-content; line-height: 1; }

/* ---------- SECTIONS ---------- */
section { position: relative; padding: clamp(72px, 10vw, 140px) var(--gutter); }
.section__head { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(28px, 4vw, 56px); }
.section__title { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 4vw, 56px); letter-spacing: 0; line-height: 1; }
.section__title sup { font-size: 12px; margin-left: 10px; vertical-align: top; color: var(--fg-3); }

/* filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-family: var(--mono); font-size: 13px; letter-spacing: .02em; color: var(--fg-2);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 14px; transition: all .25s; }
.chip:hover { color: #fff; border-color: #fff; }
.chip.is-active { background: #fff; color: #000; border-color: #fff; }

/* ---------- CASES (ledger rows) ---------- */
.cases { position: relative; z-index: 1; border-top: 1px solid var(--line); }
.case { border-bottom: 1px solid var(--line); transition: opacity .3s; }
.case.is-hidden { display: none; }
.case__row {
  width: 100%; display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 24px;
  padding: 30px 0; text-align: left; position: relative;
}
.case__row::before { content: ""; position: absolute; inset: 0 -16px; background: #fff; opacity: 0; transition: opacity .25s; border-radius: 8px; z-index: -1; }
.case__row:hover::before, .case.is-open .case__row::before { opacity: .04; }
.case__num { font-family: var(--mono); font-size: 12px; color: var(--fg-3); letter-spacing: .1em; }
.case__title { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.8vw, 40px); letter-spacing: 0; line-height: 1.1; }
.case__tagline { color: var(--fg-2); margin-top: 6px; font-size: clamp(14px, 1.2vw, 17px); font-weight: 300; max-width: 60ch; }
.case__kinds { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.case__kinds span { font-family: var(--mono); font-size: 11px; letter-spacing: .03em; color: var(--fg-2); border: 1px solid var(--line-2); border-radius: 4px; padding: 3px 7px; }
.case__open { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; letter-spacing: .02em; white-space: nowrap; }
.case__open .ico { width: 36px; height: 36px; border: 1px solid #fff; border-radius: 50%; display: grid; place-items: center; transition: all .3s var(--ease); }
.case__open .ico svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.case__row:hover .ico { background: #fff; color: #000; }
.case.is-open .ico svg { transform: rotate(45deg); }
.case__open .lbl::after { content: "ыть"; }
@media (max-width: 720px) { .case__row { grid-template-columns: 40px 1fr; } .case__open .lbl { display: none; } .case__open { grid-column: 2; justify-self: start; } }

/* expandable body */
.case__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.case.is-open .case__body { grid-template-rows: 1fr; }
.case__inner { overflow: hidden; }
.case__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 4vw, 64px); padding: 8px 0 56px; }
@media (max-width: 900px) { .case__grid { grid-template-columns: 1fr; } }
.case__block + .case__block { margin-top: 28px; }
.case__label { font-family: var(--mono); font-size: 12px; letter-spacing: .03em; color: var(--fg-3); margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.case__label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.case__task { font-size: clamp(16px, 1.4vw, 20px); line-height: 1.5; max-width: 60ch; }
.case__sol li { position: relative; padding-left: 22px; color: #d8d8d8; margin-bottom: 10px; font-weight: 300; max-width: 62ch; }
.case__sol li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; background: #fff; border-radius: 2px; }
.case__res { display: grid; grid-template-columns: repeat(3, auto); gap: 24px; justify-content: start; }
.case__res b { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3vw, 44px); letter-spacing: -.01em; line-height: 1; }
.case__res span { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .02em; color: var(--fg-2); margin-top: 6px; }
.case__stack { display: flex; flex-wrap: wrap; gap: 6px; }
.case__stack span { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 10px; color: var(--fg-2); }
.case__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; border-bottom: 1px solid #fff; padding-bottom: 2px; font-size: 14px; }
.case__link:hover { color: var(--fg-2); border-color: var(--fg-2); }
.case__visual { align-self: start; position: sticky; top: 96px; display: grid; place-items: center; padding: 8px 0; }
.case__caption { font-family: var(--mono); font-size: 11px; letter-spacing: .03em; color: var(--fg-3); text-align: center; margin-top: 14px; }

/* ---------- MOCKS ---------- */
.phone {
  width: min(100%, 320px); aspect-ratio: 9 / 18.5; border-radius: 40px; background: #050505;
  border: 1px solid var(--line-2); box-shadow: 0 0 0 6px #0d0d0d, 0 40px 80px -30px rgba(255,255,255,.12);
  padding: 14px; position: relative; overflow: hidden;
}
.phone::before { content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 90px; height: 24px; background: #000; border-radius: 999px; z-index: 3; border: 1px solid var(--line); }
.screen { height: 100%; border-radius: 28px; background: var(--panel); overflow: hidden; display: flex; flex-direction: column; font-size: 12.5px; line-height: 1.4; }
.tg-head { padding: 40px 16px 10px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.tg-head .av { width: 30px; height: 30px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 12px; }
.tg-head b { display: block; font-weight: 600; font-size: 13px; }
.tg-head small { color: var(--fg-3); font-size: 11px; }
.tg-body { flex: 1; padding: 12px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; overflow: hidden; filter: grayscale(1); }
.msg { max-width: 88%; padding: 8px 11px; border-radius: 14px; background: var(--bubble); color: #e6e6e6; white-space: pre-line; position: relative; }
.msg.me { align-self: flex-end; background: var(--bubble-me); color: #000; }
.msg b { font-weight: 600; color: #fff; } .msg.me b { color: #000; }
.msg .t { display: block; text-align: right; font-size: 9px; color: var(--fg-3); margin-top: 4px; }
.msg code { font-family: var(--mono); font-size: 11px; background: rgba(255,255,255,.08); padding: 1px 4px; border-radius: 3px; }
.kb { display: grid; gap: 4px; margin-top: 4px; }
.kb.cols2 { grid-template-columns: 1fr 1fr; }
.kb button, .kb span { display: block; text-align: center; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 8px; font-size: 11px; color: #ddd; }
.reply-kb { padding: 8px 12px 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; border-top: 1px solid var(--line); background: #070707; }
.reply-kb span { text-align: center; font-size: 11px; padding: 8px; background: var(--panel-2); border-radius: 8px; }
.reply-kb span.wide { grid-column: 1 / -1; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #fff; vertical-align: middle; margin-left: 4px; }
.dot.hollow { background: transparent; border: 1.5px solid #fff; }

/* mini app */
.mini { flex: 1; padding: 40px 14px 14px; display: flex; flex-direction: column; gap: 12px; }
.tasks { display: grid; gap: 6px; }
.tasks div { display: flex; justify-content: space-between; align-items: center; background: var(--panel-2); border-radius: 10px; padding: 9px 11px; font-size: 11px; }
.tasks div b { font-family: var(--mono); font-weight: 500; font-size: 10px; }
.mini .bal small { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; color: var(--fg-3); text-transform: uppercase; }
.mini .bal b { font-family: var(--display); font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.coin { width: 130px; height: 130px; margin: 6px auto; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #8a8a8a 60%, #3a3a3a); display: grid; place-items: center; box-shadow: 0 20px 40px -20px #fff; animation: pulse 2.4s ease-in-out infinite; }
.coin i { width: 40px; height: 40px; background: #000; clip-path: polygon(55% 0, 20% 55%, 45% 55%, 40% 100%, 80% 42%, 55% 42%); }
@keyframes pulse { 50% { transform: scale(1.04); } }
.bar { height: 6px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.bar i { display: block; height: 100%; width: 72%; background: #fff; }
.mini .row { display: flex; justify-content: space-between; font-size: 11px; color: var(--fg-2); }
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: auto; }
.tabs span { text-align: center; font-size: 10px; padding: 8px 0; border-radius: 8px; background: var(--panel-2); }
.tabs span.on { background: #fff; color: #000; }

/* browser / admin */
.browser { width: 100%; max-width: 520px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); overflow: hidden; box-shadow: 0 40px 80px -30px rgba(255,255,255,.12); font-size: 12px; }
.browser__bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.browser__bar .url { flex: 1; font-family: var(--mono); font-size: 10px; color: var(--fg-3); background: #000; border-radius: 6px; padding: 5px 10px; margin-left: 8px; }
.admin { display: grid; grid-template-columns: 120px 1fr; min-height: 300px; }
.admin__side { border-right: 1px solid var(--line); padding: 14px 0; }
.admin__side span { display: block; padding: 7px 14px; color: var(--fg-2); font-size: 11px; }
.admin__side span.on { color: #fff; background: rgba(255,255,255,.06); border-left: 2px solid #fff; }
.admin__main { padding: 14px; }
.admin h4 { margin: 0 0 12px; font-family: var(--display); font-weight: 600; font-size: 13px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.tile { background: var(--panel-2); border-radius: 8px; padding: 10px; }
.tile small { display: block; font-family: var(--mono); font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.tile b { font-family: var(--display); font-size: 18px; font-weight: 700; }
table.grid { width: 100%; border-collapse: collapse; font-size: 10.5px; }
table.grid th { text-align: left; font-family: var(--mono); font-weight: 400; font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); padding: 6px 4px; border-bottom: 1px solid var(--line); }
table.grid td { padding: 7px 4px; border-bottom: 1px solid var(--line); color: #ddd; }
.pill { font-family: var(--mono); font-size: 8.5px; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 7px; }
.pill.on { background: #fff; color: #000; border-color: #fff; }

/* extension popup */
.popup { width: min(100%, 340px); border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); padding: 18px; font-size: 12px; box-shadow: 0 40px 80px -30px rgba(255,255,255,.12); }
.popup h4 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 14px; }
.popup .sub { color: var(--fg-3); font-size: 11px; margin: 2px 0 16px; }
.popup label { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 6px; }
.popup .inp { background: #000; border: 1px solid var(--line-2); border-radius: 8px; padding: 9px 10px; font-family: var(--mono); font-size: 10.5px; color: #ccc; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.popup .btn { margin: 12px 0; background: #fff; color: #000; text-align: center; border-radius: 8px; padding: 10px; font-weight: 600; }
.popup .prog { height: 6px; background: var(--line-2); border-radius: 3px; overflow: hidden; }
.popup .prog i { display: block; height: 100%; width: 0; background: #fff; animation: fill 4s var(--ease) infinite; }
@keyframes fill { 0% { width: 0 } 70% { width: 100% } 100% { width: 100% } }
.popup .st { font-family: var(--mono); font-size: 10px; color: var(--fg-2); margin-top: 8px; }

/* ---------- SERVICES ---------- */
.services__grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.services__grid li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 24px 32px; position: relative; transition: background .3s; }
.services__grid li:hover { background: rgba(255,255,255,.04); }
.services__grid .glyph { display: grid; grid-template-columns: repeat(3, 7px); gap: 3px; margin-bottom: 26px; }
.services__grid .glyph i { width: 7px; height: 7px; background: #fff; border-radius: 2px; opacity: .25; }
.services__grid .glyph i.on { opacity: 1; }
.services__grid h3 { font-family: var(--display); font-weight: 600; font-size: 17px; margin-bottom: 8px; letter-spacing: -.01em; }
.services__grid p { color: var(--fg-2); font-weight: 300; font-size: 14px; }

/* ---------- PROCESS ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px 24px; }
.steps li { position: relative; padding-top: 18px; border-top: 1px solid var(--line-2); }
.steps li::before { content: ""; position: absolute; top: -1px; left: 0; width: 40px; height: 1px; background: #fff; }
.steps .n { font-family: var(--mono); font-size: 11px; color: var(--fg-3); letter-spacing: .12em; }
.steps h3 { font-family: var(--display); font-weight: 600; font-size: 18px; margin: 10px 0 8px; }
.steps p { color: var(--fg-2); font-size: 14px; font-weight: 300; }

/* ---------- CONTACT ---------- */
.contact { text-align: left; overflow: hidden; }
.contact__kicker { position: relative; z-index: 1; margin-bottom: 16px; }
.contact__link { position: relative; z-index: 1; display: flex; align-items: center; gap: 24px; font-family: var(--display); font-weight: 700; font-size: clamp(32px, 7vw, 108px); letter-spacing: -.01em; line-height: 1; width: max-content; max-width: 100%; }
.contact__arrow { display: inline-block; transition: transform .4s var(--ease); }
.contact__link:hover .contact__arrow { transform: translateX(18px); }
.contact__link:hover span:first-child { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 10px; }
.contact__note { position: relative; z-index: 1; margin-top: 24px; color: var(--fg-2); font-weight: 300; max-width: 46ch; }

/* ---------- FOOTER ---------- */
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 28px var(--gutter); border-top: 1px solid var(--line); }
.work__note { position: relative; z-index: 1; margin-top: 20px; color: var(--fg-3); }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero__mark b { opacity: 1; transform: none; }
  .intro__title .line span { transform: none; }
  .intro__lead { opacity: 1; }
  .rv { opacity: 1; transform: none; }
}

/* live demo phone */
.phone--live { padding: 10px; }
.phone--live .screen--live { position: relative; background: #0e1621; }
.live__cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; z-index: 2; background: radial-gradient(circle at 50% 30%, #1c2a3a, #0e1621 70%); }
.live__logo { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 26px; background: linear-gradient(135deg, #5a9bf5, #7d6cf0); color: #fff; }
.live__title { font-family: var(--display); font-weight: 600; font-size: 16px; }
.live__sub { color: #8fa3b8; font-size: 12.5px; max-width: 24ch; }
.live__btn { margin-top: 8px; background: #fff; color: #000; border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 13px; }
.live__btn:hover { background: #ddd; }
.live__note { font-family: var(--mono); font-size: 9.5px; letter-spacing: .02em; color: #5c6f83; margin-top: 6px; }
.live__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .4s; }
.phone--live.is-on .live__cover { display: none; }
.phone--live.is-on .live__frame { opacity: 1; }

/* live admin demo in a browser window */
.browser--live { max-width: 100%; width: 100%; }
.browser__body { position: relative; height: 520px; background: #f4f4f4; }
.live__cover--web { background: radial-gradient(circle at 50% 30%, #1a1a1a, #0b0b0b 70%); }
.live__creds { color: #8a8a8a; font-size: 11px; }
.live__creds b { color: #fff; font-weight: 500; }
.browser--live .live__frame { background: #fff; }
.browser--live.is-on .live__cover { display: none; }
.browser--live.is-on .live__frame { opacity: 1; }
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 16px; width: 100%; }
.flow__step { position: relative; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 10px 12px; font-size: 11.5px; line-height: 1.35; color: var(--fg-2); overflow: hidden; }
.flow__step b { display: block; font-family: var(--display); font-size: 16px; color: #fff; margin-bottom: 6px; }
.flow__step::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: #fff; transform: scaleX(0); transform-origin: left; animation: flowbar 10s linear infinite; }
.flow__step:nth-child(1)::after { animation-delay: 0s; } .flow__step:nth-child(2)::after { animation-delay: 2s; } .flow__step:nth-child(3)::after { animation-delay: 4s; } .flow__step:nth-child(4)::after { animation-delay: 6s; } .flow__step:nth-child(5)::after { animation-delay: 8s; }
@keyframes flowbar { 0% { transform: scaleX(0); } 20% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
@media (max-width: 720px) { .flow { grid-template-columns: repeat(2, 1fr); } }

/* web-admin demo takes the full row width */
.case--web .case__grid { grid-template-columns: 1fr; }
.case--web .case__visual { position: static; }
.case--web .browser__body { height: 640px; }

/* live phone = iPhone 16 (393x852 pt), the island is drawn by the emulator page */
.phone--live { aspect-ratio: 393 / 852; border-radius: 58px; padding: 9px; background: #0b0b0b; border-color: #3a3a3c; box-shadow: 0 0 0 2px #1a1a1a, 0 40px 80px -30px rgba(255,255,255,.12); }
.phone--live::before { display: none; }
.phone--live .screen--live { border-radius: 50px; height: auto; }
.phone--live { aspect-ratio: auto; width: min(100%, 340px); }
.phone--live .live__frame { position: absolute; top: 0; left: 0; }

/* ---------- liquid logo (yuga-style goo on hover) ---------- */
.hero__mark { cursor: pointer; transition: filter .2s; }
.hero__mark.is-liquid { filter: url(#liquid); }
.hero__mark.settled b:not(.ghost) { opacity: 1; transform: none; animation: none; }
.hero__mark.settled.is-liquid b:not(.ghost) { animation: wobble 1.4s ease-in-out infinite alternate; animation-delay: calc(var(--d, 0s) * -2); }
@keyframes wobble {
  0%   { transform: translate(0, 0) scale(1); border-radius: 22%; }
  50%  { transform: translate(var(--wx, 4px), var(--wy, -6px)) scale(1.08, .94); border-radius: 40%; }
  100% { transform: translate(calc(var(--wx, 4px) * -1), calc(var(--wy, -6px) * -1)) scale(.95, 1.07); border-radius: 30%; }
}
.nav__logo:hover .pxlogo { filter: url(#liquid-sm); }
.nav__logo:hover .pxlogo i { animation: wobble-sm 1.1s ease-in-out infinite alternate; }
.nav__logo:hover .pxlogo i:nth-child(odd) { animation-delay: -.4s; }
@keyframes wobble-sm { 0% { transform: translate(0,0); } 100% { transform: translate(1px, -1px) scale(1.15); border-radius: 50%; } }
@media (prefers-reduced-motion: reduce) { .hero__mark.is-liquid b, .nav__logo:hover .pxlogo i { animation: none; } .hero__mark.is-liquid, .nav__logo:hover .pxlogo { filter: none; } }

/* ---------- WebGL liquid halftone hero ---------- */
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; pointer-events: none; }
.hero.has-gl .halftone--a { display: none; }
.hero.has-gl .hero__mark { visibility: hidden; }   /* keeps its grid box: the shader draws the logo in that box */
.nav--hidden { opacity: 0; visibility: hidden; pointer-events: none; }   /* nav stays out of the way while the liquid hero is on screen */
/* mock screens keep their own type so they read as Telegram / browser UI; live emulators are iframes and untouched */
.phone, .browser { --body: "Onest", "Segoe UI", sans-serif; --display: "Onest", "Segoe UI", sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace; font-family: var(--body); }
