/* ROBOMATICS site prototype - RIFT system (same as business card R1/R2):
   black field, acid-lime diagonal "rift", white Inter, JetBrains Mono for labels.
   Fonts: fonts.css (Inter, JetBrains Mono, OFL). */
/* fonts.css is linked from the HTML before this file */

:root {
  --bg: #0e0f10;
  --bg-2: #141618;
  --bg-3: #1b1e21;
  --line: #262a2f;
  --line-2: #33383e;
  --text: #f2f3f1;
  --soft: #c4c8cc;
  --mute: #8b9197;
  --lime: #d4ff2a;
  --lime-ink: #0e0f10;
  --radius: 4px;
  --max: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --sans: Inter, "Segoe UI", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --rift-k: .38;            /* slope of every diagonal (dx/dy) */
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.65 var(--sans); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--sans); text-wrap: balance; }
::selection { background: var(--lime); color: var(--lime-ink); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--lime); color: var(--lime-ink); padding: 10px 14px; font: 600 .9rem var(--sans); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); }
.label { font: 400 .86rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.label.lime { color: var(--lime); }
.idx { font: 400 .88rem/1 var(--mono); color: var(--lime); letter-spacing: .1em; }
.lead { font-size: clamp(1.05rem, 1.55vw, 1.25rem); line-height: 1.6; color: var(--soft); max-width: 60ch; }
.mute { color: var(--mute); }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 16px 22px; font: 600 .95rem/1 var(--sans);
  text-decoration: none; border: 1px solid var(--lime); background: var(--lime); color: var(--lime-ink);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: background .25s, color .25s, transform .25s var(--ease); cursor: pointer; }
.btn:hover { background: #e6ff6e; transform: translateY(-2px); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-2); clip-path: none; }
.btn.ghost:hover { border-color: var(--lime); color: var(--lime); background: transparent; }

/* ---------------------------------------------------------------- header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s, transform .35s var(--ease); border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(14, 15, 16, .86); backdrop-filter: blur(14px); border-color: var(--line); }
.site-header.hide { transform: translateY(-100%); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand img { height: 18px; width: auto; }
.brand .slash { width: 10px; height: 26px; background: var(--lime); transform: skewX(-21deg); }
.menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.menu a { display: block; padding: 10px 14px; text-decoration: none; font: 500 .92rem/1 var(--sans); color: var(--soft); position: relative; }
.menu a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.menu a:hover, .menu a[aria-current="page"] { color: var(--text); }
.menu a:hover::after, .menu a[aria-current="page"]::after { transform: none; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; font: 500 .74rem/1 var(--mono); letter-spacing: .1em; background: var(--bg); }
.lang a { padding: 8px 9px; text-decoration: none; color: var(--mute); border: 1px solid transparent; }
.lang span[aria-current="true"] { padding: 8px 9px; color: var(--lime); border: 1px solid var(--line-2); }
.lang a:hover { color: var(--text); }
/* 5 languages: inline on wide screens, a compact dropdown on narrow ones */
.lang-dd { display: none; position: relative; font: 500 .74rem/1 var(--mono); letter-spacing: .1em; }
.lang-dd summary { list-style: none; cursor: pointer; padding: 0 12px; height: 46px; display: flex; align-items: center; gap: 6px; color: var(--lime); border: 1px solid var(--line-2); background: var(--bg); }
.lang-dd summary::-webkit-details-marker { display: none; }
.lang-dd summary::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.lang-dd[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.lang-dd ul { position: absolute; right: 0; top: calc(100% + 6px); min-width: 170px; list-style: none; margin: 0; padding: 6px; background: var(--bg); border: 1px solid var(--line-2); z-index: 60; }
.lang-dd a { display: flex; gap: 10px; padding: 11px 10px; text-decoration: none; color: var(--soft); font: 500 .9rem/1 var(--sans); letter-spacing: 0; }
.lang-dd a b { font: 500 .74rem/1 var(--mono); letter-spacing: .1em; color: var(--mute); width: 22px; padding-top: 2px; }
.lang-dd a:hover, .lang-dd a[aria-current="true"] { color: var(--text); background: rgba(255, 255, 255, .04); }
.lang-dd a[aria-current="true"] b { color: var(--lime); }
@media (max-width: 1240px) { .lang { display: none; } .lang-dd { display: block; } }
.nav .btn { padding: 12px 16px; font-size: .86rem; }
.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; background: currentColor; margin: 5px auto; transition: transform .3s, opacity .3s; }
.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1020px) {
  .burger { display: block; }
  .nav .btn.cta-top { display: none; }
  .menu { position: fixed; inset: 78px 0 auto 0; flex-direction: column; align-items: stretch; padding: 10px var(--gutter) 26px;
    background: rgba(14, 15, 16, .98); border-bottom: 1px solid var(--line); transform: translateY(-10px); opacity: 0; pointer-events: none; transition: .3s var(--ease); }
  .menu a { padding: 16px 0; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
  .menu a::after { display: none; }
  .nav-open .menu { transform: none; opacity: 1; pointer-events: auto; }
  .nav-open .site-header { background: rgba(14, 15, 16, .98); }
}

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: min(100svh, 940px); display: flex; flex-direction: column; justify-content: flex-end; padding: 120px 0 0; overflow: hidden; isolation: isolate; }
.rift { position: absolute; z-index: -1; top: -10%; bottom: -10%; width: clamp(56px, 7vw, 110px); left: 46%; background: var(--lime);
  transform: skewX(-21deg); transform-origin: bottom; animation: rift-in 1.1s .15s var(--ease) both; }
.rift.sheen { width: clamp(120px, 16vw, 250px); left: calc(46% + clamp(56px, 7vw, 110px)); background: linear-gradient(90deg, #1c1f23, #121416 70%, transparent); animation-delay: .3s; }
@keyframes rift-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
.hero-top { display: flex; justify-content: space-between; gap: 20px; margin-bottom: auto; padding-top: 28px; }
.hero h1 { position: relative; font-weight: 800; letter-spacing: -.035em; line-height: .9; font-size: clamp(3.1rem, 11.2vw, 10.4rem); margin: 0 0 clamp(18px, 3vw, 34px); }
.hero h1 .w { display: block; }
.hero h1 .mv, .hero h1 .o-l { display: inline-block; }
.hero h1 .mv { will-change: translate, scale; }
.hero h1 .ink { position: absolute; inset: 0; color: var(--lime-ink); pointer-events: none; clip-path: polygon(0 0, 0 0, 0 0); }
.hero-sub { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 30px 60px; align-items: end; padding-bottom: clamp(28px, 5vw, 56px); }
.hero-sub .lead { margin: 0; color: var(--text); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.hero-robot { position: absolute; z-index: -1; right: calc(var(--gutter) * -.3); top: 4%; width: min(42vw, 600px); color: #6b7177; opacity: .9; }
.hero-strip { border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); background: var(--bg); position: relative; }
.hero-strip::before { content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); background: var(--bg); z-index: -1; }
.hero-strip div { padding: 18px 20px 22px 0; border-right: 1px solid var(--line); }
.hero-strip div + div { padding-left: 20px; }
.hero-strip div:last-child { border-right: 0; }
.hero-strip b { display: block; font: 700 1.15rem/1.25 var(--sans); }
.hero-strip span { font: 400 .84rem/1.4 var(--mono); color: var(--mute); letter-spacing: .06em; }
.bottom-line { height: 3px; background: var(--lime); }
.hero.robot-front .hero-robot { z-index: 2; }
.hero-robot svg { overflow: visible; }
.hero.robot-grab { cursor: grab; user-select: none; }
.hero.robot-front h1 .mv { position: relative; z-index: 5; }
.hero.robot-grab:active { cursor: grabbing; }
.hero-game { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }   /* canvas: inset alone keeps its intrinsic size */
/* game: lime fills the carried N from the baseline up; +1/+2/+3 burst on the letter */
@property --fill { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
.hero h1 .h1-txt .mv { --fill: 0%; transition: --fill .35s var(--ease), filter .4s;
  background: linear-gradient(to top, var(--lime) var(--fill), var(--text) var(--fill)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero h1 .h1-txt .mv.full { filter: drop-shadow(0 0 14px rgba(212, 255, 42, .75)); animation: n-full 1.2s ease-in-out infinite alternate; }
@keyframes n-full { to { filter: drop-shadow(0 0 30px rgba(212, 255, 42, .95)); } }
.pop { position: absolute; z-index: 6; pointer-events: none; display: grid; place-items: center;
  filter: drop-shadow(0 0 10px rgba(212, 255, 42, .9)) drop-shadow(0 0 26px rgba(212, 255, 42, .6));
  animation: pop 1.25s cubic-bezier(.2, .7, .2, 1) forwards; }
.pop i, .pop b { grid-area: 1 / 1; }
.pop i { width: 100%; height: 100%; background: var(--lime);
  clip-path: polygon(50% 0, 61% 30%, 93% 18%, 72% 45%, 100% 62%, 66% 66%, 72% 100%, 50% 76%, 28% 100%, 34% 66%, 0 62%, 28% 45%, 7% 18%, 39% 30%); }
.pop b { position: relative; font: 800 1em/1 var(--mono); color: var(--lime-ink); letter-spacing: -.04em; }
.pop.big i { background: #fff; }
.pop.big { filter: drop-shadow(0 0 12px #fff) drop-shadow(0 0 34px rgba(212, 255, 42, .9)); }
.pop.neg i { background: #ff3b3b; }
.pop.neg b { color: #fff; }
.pop.neg { filter: drop-shadow(0 0 10px rgba(255, 59, 59, .9)) drop-shadow(0 0 24px rgba(255, 59, 59, .5)); }
@keyframes pop { 0% { transform: scale(.2) rotate(-25deg); } 12% { transform: scale(1.3) rotate(6deg); } 24% { transform: scale(1) rotate(0); }
  62% { transform: scale(1) translateY(-6px); opacity: 1; } 100% { transform: scale(.85) translateY(-60px); opacity: 0; } }
.game-hud { position: absolute; z-index: 4; left: var(--gutter); top: 92px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px;
  font: 400 .86rem/1.3 var(--mono); letter-spacing: .08em; color: var(--soft); background: rgba(14, 15, 16, .85); border: 1px solid var(--line-2);
  padding: 10px 14px; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; pointer-events: none; }
.game-hud.on { opacity: 1; transform: none; }
.game-hud b { color: var(--text); font-weight: 400; font-size: 1.1rem; }
.game-hud b.ok { color: var(--lime); }
.game-hud b.bad { color: #ff4d4d; }
.game-hud b.pw { color: #ff5ce1; }
.robot path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.8s .4s var(--ease) forwards; }
.robot path.e { animation-delay: .9s; stroke: #4d5258; }
.robot path.j { animation-delay: 1.5s; stroke: var(--lime); stroke-width: 2.6; transition: stroke .25s; }
.robot path.j.on-lime { stroke: var(--lime-ink); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (max-width: 900px) {
  .hero { min-height: auto; padding-top: 100px; }
  .rift { left: 34%; top: 70px; bottom: auto; height: 330px; width: 48px; } .rift.sheen { left: calc(34% + 48px); top: 70px; bottom: auto; height: 330px; width: 110px; }
  .hero-top .label.lime { display: none; }
  .proto { font-size: .6rem; padding: 6px 8px; }
  .hero-robot { position: relative; right: auto; top: auto; width: 82%; margin: 10px 0 -30px auto; }
  .hero-sub { grid-template-columns: 1fr; }
  .hero-cta { justify-content: flex-start; }
  .hero-strip { grid-template-columns: 1fr 1fr; }
  .hero-strip div:nth-child(2) { border-right: 0; }
  .hero-strip div:nth-child(3) { padding-left: 0; }
  .hero-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------------------------------------------------------------- sections */
section { position: relative; }
.sec { padding: clamp(80px, 11vw, 150px) 0; border-top: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px 40px; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head h2 { font-weight: 800; letter-spacing: -.025em; line-height: 1.02; font-size: clamp(2rem, 4.8vw, 4rem); max-width: 18ch; }
.sec-head p { grid-column: 2; color: var(--soft); max-width: 62ch; margin: 0; }
@media (max-width: 820px) { .sec-head { grid-template-columns: 1fr; } .sec-head p { grid-column: 1; } }

/* vision -> action */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.flow > div { padding: 26px 24px 30px 0; position: relative; }
.flow > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.flow h3 { font: 700 1.25rem/1.25 var(--sans); margin: 18px 0 10px; }
.flow p { color: var(--soft); font-size: 1.02rem; margin: 0; }
.flow .bar { position: absolute; top: -1px; left: 0; height: 3px; width: 0; background: var(--lime); transition: width 1.2s var(--ease); }
.flow > div + div .bar { left: 24px; }
.in .flow .bar, .flow.in .bar { width: 46px; }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr 1fr; } .flow > div:nth-child(3) { border-left: 0; padding-left: 0; } .flow > div:nth-child(3) .bar { left: 0; } }
@media (max-width: 540px) { .flow { grid-template-columns: 1fr; } .flow > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } .flow > div + div .bar { left: 0; } }

/* services list (big rows) */
.svc-list { border-top: 1px solid var(--line-2); }
.svc-row { display: grid; grid-template-columns: 90px minmax(0, 1.1fr) minmax(0, 1fr) 40px; gap: 24px; align-items: start; padding: 30px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; position: relative; transition: padding .35s var(--ease); }
.svc-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--lime); transition: width .35s var(--ease); z-index: -1; }
.svc-row h3 { font: 700 clamp(1.3rem, 2.6vw, 2.1rem)/1.1 var(--sans); letter-spacing: -.02em; }
.svc-row p { color: var(--soft); margin: 0; font-size: 1.02rem; }
.svc-row .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.svc-row .tags span { font: 400 .8rem/1 var(--mono); padding: 7px 9px; border: 1px solid var(--line-2); color: var(--soft); }
.svc-row .go { justify-self: end; font: 400 1.6rem/1 var(--mono); color: var(--mute); transition: transform .3s var(--ease), color .3s; }
.svc-row:hover .go { color: var(--lime); transform: translate(4px, -4px); }
.svc-row:hover h3 { color: var(--lime); }
@media (max-width: 820px) { .svc-row { grid-template-columns: 50px minmax(0, 1fr); } .svc-row > p, .svc-row .desc { grid-column: 2; } .svc-row .go { display: none; } }

/* projects / gallery */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.filters button { font: 400 .78rem/1 var(--mono); letter-spacing: .06em; padding: 11px 14px; border: 1px solid var(--line-2); background: transparent; color: var(--soft); cursor: pointer; transition: .2s; }
.filters button[aria-pressed="true"] { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.filters button:hover { border-color: var(--lime); }
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.tile { grid-column: span 4; display: flex; flex-direction: column; text-align: left; padding: 0; color: inherit; font: inherit; border: 1px solid var(--line); background: var(--bg-2); cursor: zoom-in; position: relative; overflow: hidden; }
.tile.wide { grid-column: span 8; grid-row: span 2; }
.tile .media { aspect-ratio: 4 / 3; overflow: hidden; background: #08090a; position: relative; }
.tile.wide .media { aspect-ratio: auto; flex: 1; min-height: 260px; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .6s; filter: grayscale(.35) contrast(1.05); }
.tile:hover img { transform: scale(1.04); filter: none; }
.tile .media::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--lime); transition: width .5s var(--ease); }
.tile:hover .media::after { width: 100%; }
.tile .cap { padding: 16px 18px 18px; }
.tile .cap b { display: block; font: 600 1.02rem/1.35 var(--sans); }
.tile .cap span { font: 400 .82rem/1.5 var(--mono); color: var(--mute); }
.tile .badge { position: absolute; top: 12px; left: 12px; z-index: 2; font: 400 .74rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; background: rgba(14, 15, 16, .8); color: var(--soft); padding: 7px 9px; border: 1px solid var(--line-2); }
.tile[hidden] { display: none; }
@media (max-width: 980px) { .tile, .tile.wide { grid-column: span 6; grid-row: auto; } .tile.wide { grid-column: span 12; } .tile.wide .media { aspect-ratio: 16 / 9; } }
@media (max-width: 620px) { .tile, .tile.wide { grid-column: span 12; } }
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: rgba(6, 7, 8, .94); opacity: 0; pointer-events: none; transition: opacity .3s; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1200px, 100%); }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; }
.lightbox figcaption { color: var(--soft); text-align: center; margin-top: 14px; font: 400 .85rem/1.5 var(--mono); }
.lightbox button { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font-size: 22px; cursor: pointer; }

/* split / checks / stats */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-2); }
.checks li { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.checks li b { display: block; font-weight: 700; font-size: 1.05rem; margin-bottom: 4px; }
.checks li span { color: var(--soft); font-size: 1rem; }
.stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-2); }
.stats div { padding: 26px 20px 26px 0; border-bottom: 1px solid var(--line); }
.stats div:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
.stats b { display: block; font: 800 clamp(2.2rem, 4.5vw, 3.6rem)/1 var(--sans); letter-spacing: -.03em; }
.stats b em { font-style: normal; color: var(--lime); }
.stats span { font: 400 .84rem/1.5 var(--mono); color: var(--mute); }
.tech { display: flex; flex-wrap: wrap; gap: 8px; }
.tech span { font: 400 .84rem/1 var(--mono); padding: 13px 15px; border: 1px solid var(--line-2); color: var(--soft); }

/* process */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; padding: 0; margin: 0; border-top: 1px solid var(--line-2); }
.steps li { list-style: none; padding: 22px 20px 24px 0; }
.steps li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.steps li::before { counter-increment: s; content: counter(s, decimal-leading-zero); display: block; font: 400 .9rem/1 var(--mono); color: var(--lime); margin-bottom: 26px; }
.steps h3 { font: 700 1.05rem/1.3 var(--sans); margin-bottom: 8px; }
.steps p { font-size: .98rem; color: var(--soft); margin: 0; }
@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; } .steps li:nth-child(odd) { border-left: 0; padding-left: 0; } .steps li { border-bottom: 1px solid var(--line); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .steps li + li { border-left: 0; padding-left: 0; } }

/* FAQ */
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 22px 0; font-weight: 600; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.4rem/1 var(--mono); color: var(--lime); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; margin: 0; color: var(--soft); max-width: 75ch; }

/* CTA band */
.cta { position: relative; overflow: hidden; overflow: clip; background: var(--lime); color: var(--lime-ink); padding: clamp(56px, 9vw, 120px) 0; isolation: isolate; }
.cta::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; right: 12%; width: 22%; background: rgba(14, 15, 16, .07); transform: skewX(-21deg); }
.cta h2 { font-weight: 800; letter-spacing: -.03em; line-height: .98; font-size: clamp(2.3rem, 6.4vw, 5.6rem); max-width: 15ch; }
.cta p { max-width: 56ch; margin: 22px 0 30px; font-size: 1.1rem; }
.cta .btn { background: var(--lime-ink); color: var(--text); border-color: var(--lime-ink); }
.cta .btn:hover { background: #24282c; }
.cta .btn.ghost { background: transparent; color: var(--lime-ink); border-color: rgba(14, 15, 16, .5); }
.cta .label { color: var(--lime-ink); }

/* duty-agent chat inside the lime CTA band */
.cta-grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.45fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .cta-grid { grid-template-columns: minmax(0, 1fr); } }
.chat { min-width: 0; background: var(--bg); color: var(--text); border: 1px solid #000; display: flex; flex-direction: column; min-height: 460px; max-height: 620px;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px)); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.chat-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(212, 255, 42, .15); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(212, 255, 42, 0); } }
.chat-head span.mono { margin-left: auto; font-size: .78rem; color: var(--mute); }
.chat-head .new-chat { display: flex; align-items: center; gap: 6px; margin-left: 6px; padding: 6px 9px; font: 400 .72rem/1 var(--mono); color: var(--soft); background: transparent; border: 1px solid var(--line-2); cursor: pointer; }
.chat-head .new-chat svg { width: 14px; height: 14px; }
.chat-head .new-chat:hover, .chat-head .new-chat:focus-visible { color: var(--lime); border-color: var(--lime); outline: none; }
@media (max-width: 600px) { .chat-head .new-chat span { display: none; } .chat-head span.mono { font-size: .7rem; } }
.chat-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.msg { max-width: 86%; padding: 11px 14px; font-size: .98rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.bot { background: var(--bg-3); border-left: 2px solid var(--lime); align-self: flex-start; }
.msg.me { background: var(--lime); color: var(--lime-ink); align-self: flex-end; }
.msg.typing { color: var(--mute); }
/* ready-made questions: topic tabs + one group under the log; a side column with all groups on wide screens */
.chat-topics { padding: 0 18px 12px; min-width: 0; }
.chat-topics > b { display: none; }
.q-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-bottom: 8px; }
.q-tabs::-webkit-scrollbar { display: none; }
.q-tabs button { flex: none; font: 400 .72rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 7px 9px; background: transparent; color: var(--mute); border: 0; border-bottom: 2px solid transparent; cursor: pointer; }
.q-tabs button[aria-selected="true"] { color: var(--lime); border-bottom-color: var(--lime); }
.q-group { display: none; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.q-group::-webkit-scrollbar { display: none; }
.q-group.on { display: flex; }
.q-group h3 { display: none; }
.q-group button { flex: none; font: 400 .8rem/1.2 var(--mono); padding: 8px 10px; background: transparent; color: var(--soft); border: 1px solid var(--line-2); cursor: pointer; text-align: left; }
.q-group button:hover, .q-group button:focus-visible { border-color: var(--lime); color: var(--lime); outline: none; }
@media (min-width: 1100px) {
  .cta-grid { grid-template-columns: minmax(0, .6fr) minmax(0, 1.65fr); }
  .chat { display: grid; grid-template-columns: minmax(0, 1fr) 270px; grid-template-rows: auto minmax(0, 1fr) auto auto; height: 620px; max-height: none; }
  .chat-head { grid-column: 1 / -1; }
  .chat-log, .chat form, .cta .chat-note { grid-column: 1; }
  .chat-topics { grid-column: 2; grid-row: 2 / 5; border-left: 1px solid var(--line); padding: 14px 14px 18px; overflow-y: auto; }
  .chat-topics > b { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }
  .q-tabs { display: none; }
  .q-group, .q-group.on { display: flex; flex-direction: column; overflow: visible; margin-bottom: 14px; }
  .q-group h3 { display: block; font: 600 .78rem/1 var(--mono); color: var(--lime); letter-spacing: .08em; text-transform: uppercase; margin: 4px 0 2px; }
  .q-group button { white-space: normal; }
}
.chat form { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); }
.chat-files { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.chat-files:empty { display: none; }
.chat-files figure, .msg .att-row figure { position: relative; margin: 0; width: 64px; height: 64px; border: 1px solid var(--line-2); background: #08090a; }
.chat-files img, .msg .att-row img { width: 100%; height: 100%; object-fit: cover; }
.chat-files figure b { position: absolute; left: 3px; bottom: 3px; font: 400 .62rem/1 var(--mono); background: rgba(14, 15, 16, .85); color: var(--lime); padding: 2px 4px; }
.chat-files button { position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: var(--text); color: var(--bg); font: 700 .75rem/1 var(--sans); cursor: pointer; }
.msg .att-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chat .att { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); cursor: pointer; }
.chat .att svg { width: 20px; height: 20px; }
.chat .att:hover, .chat .mic:hover { border-color: var(--lime); color: var(--lime); }
.chat textarea { resize: none; font: inherit; color: var(--text); background: var(--bg-2); border: 1px solid #60666d; padding: 11px 12px; min-height: 48px; }
.chat textarea:focus { outline: none; border-color: var(--lime); }
.chat .mic, .chat .send { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); cursor: pointer; font: 400 1.2rem/1 var(--mono); }
.chat .mic svg { width: 20px; height: 20px; }
.chat .mic.on { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); animation: pulse 1.2s infinite; }
.chat .send { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.chat .send:disabled { opacity: .5; }
.cta .chat-note { font: 400 .74rem/1.5 var(--mono); color: var(--mute); padding: 0 18px 14px; margin: 0; max-width: none; }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(30px, 6vw, 90px); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-2); }
.contact-list li { border-bottom: 1px solid var(--line); }
.contact-list a, .contact-list div { display: grid; grid-template-columns: minmax(120px, 11em) minmax(0, 1fr); gap: 14px; padding: 18px 0; text-decoration: none; align-items: baseline; }
.contact-list small { font: 400 .74rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.contact-list b { font-weight: 600; font-size: 1.12rem; overflow-wrap: anywhere; }
.contact-list a:hover b { color: var(--lime); }
form.brief { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font: 400 .74rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.field input, .field textarea, .field select { width: 100%; font: inherit; color: var(--text); background: var(--bg-2); border: 1px solid #60666d; border-radius: 0; padding: 14px; transition: border-color .2s; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--lime); outline: none; }
.field textarea { min-height: 140px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.form-note { font: 400 .76rem/1.5 var(--mono); color: var(--mute); margin: 0; }
.form-ok { display: none; border: 1px solid var(--lime); padding: 16px; color: var(--lime); font: 400 .85rem/1.5 var(--mono); }

/* inner page hero */
.page-hero { position: relative; overflow: hidden; padding: 160px 0 70px; isolation: isolate; border-bottom: 1px solid var(--line); }
.page-hero .rift { left: auto; right: 14%; width: clamp(40px, 5vw, 80px); }
.page-hero .rift.sheen { right: calc(14% - clamp(110px, 14vw, 220px)); left: auto; width: clamp(110px, 14vw, 220px); background: linear-gradient(90deg, transparent, #121416 30%, #1c1f23); }
.page-hero h1 { font-weight: 800; letter-spacing: -.035em; line-height: .95; font-size: clamp(2.6rem, 8vw, 7rem); margin: 18px 0 24px; max-width: 14ch; }
.crumbs { font: 400 .76rem/1 var(--mono); color: var(--mute); letter-spacing: .08em; }
.crumbs a { color: var(--soft); text-decoration: underline; text-underline-offset: 3px; }

/* service detail blocks */
.svc { display: grid; grid-template-columns: 220px minmax(0, 1fr) minmax(0, .8fr); gap: 24px 48px; padding: 60px 0; border-bottom: 1px solid var(--line); }
.svc h2 { font: 800 clamp(1.7rem, 3.4vw, 2.7rem)/1.05 var(--sans); letter-spacing: -.025em; margin-bottom: 18px; }
.svc p { color: var(--soft); }
.svc ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.svc li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; color: var(--soft); display: grid; grid-template-columns: 22px 1fr; }
.svc li::before { content: "/"; color: var(--lime); font-family: var(--mono); }
@media (max-width: 980px) { .svc { grid-template-columns: 1fr; } }

/* robot brands */
.brands { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border-top: 1px solid var(--line-2); }
.brand-card { padding: 28px 24px 30px 0; border-bottom: 1px solid var(--line); position: relative; }
.brand-card + .brand-card { padding-left: 24px; border-left: 1px solid var(--line); }
.brand-card b { display: block; font: 800 clamp(1.6rem, 3vw, 2.4rem)/1 var(--sans); letter-spacing: -.03em; margin-bottom: 12px; }
.brand-card p { color: var(--soft); margin: 14px 0 0; font-size: .98rem; }
.brand-card::before { content: ""; position: absolute; top: -1px; left: 0; width: 46px; height: 3px; background: var(--lime); }
.brand-card + .brand-card::before { left: 24px; }
@media (max-width: 760px) { .brand-card + .brand-card { padding-left: 0; border-left: 0; } .brand-card + .brand-card::before { left: 0; } }

/* project cases */
.cases { border-top: 1px solid var(--line-2); }
.case { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px 48px; padding: 38px 0; border-bottom: 1px solid var(--line); }
.case h3 { font: 800 clamp(1.4rem, 2.6vw, 2.1rem)/1.1 var(--sans); letter-spacing: -.02em; margin: 12px 0 8px; }
.case p { color: var(--soft); }
.case .mono { font-size: .82rem; }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; } }

/* video tiles */
.tile video { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(.35) contrast(1.05); transition: filter .6s; }
.tile:hover video { filter: none; }
.tile .play { position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 40px; height: 40px; display: grid; place-items: center; font: 400 .9rem/1 var(--mono); font-style: normal;
  background: var(--lime); color: var(--lime-ink); clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); }
.lightbox video { max-height: 80vh; max-width: 100%; margin: 0 auto; display: none; }
.lightbox.vid video { display: block; } .lightbox.vid img { display: none; }

/* slim CTA band on inner pages */
.cta-slim { padding: clamp(48px, 7vw, 90px) 0; }
.cta-slim h2 { font-size: clamp(2rem, 4.6vw, 3.8rem); }
.cta-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 28px; }

/* about */
.portrait { aspect-ratio: 4 / 5; background: var(--bg-2); border: 1px solid var(--line); position: relative; overflow: hidden; display: grid; place-items: end start; padding: 22px; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait .label { position: relative; }
.req { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 22px; font-size: .95rem; margin: 0; }
.req dt { font: 400 .74rem/1.9 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.req dd { margin: 0; }
.note { border: 1px dashed var(--line-2); padding: 14px 16px; font: 400 .8rem/1.6 var(--mono); color: var(--mute); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 0; background: #0a0b0c; color: var(--soft); font-size: .93rem; }
.foot { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 50px; }
.foot .fh { font: 400 .72rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); margin-bottom: 18px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot a { text-decoration: none; } .foot a:hover { color: var(--lime); }
.foot .brand img { height: 20px; }
.foot .tag { font: 400 .78rem/1.6 var(--mono); color: var(--mute); margin-top: 18px; letter-spacing: .08em; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 20px 0 22px; border-top: 1px solid var(--line); color: var(--mute); font: 400 .74rem/1.5 var(--mono); }
@media (max-width: 900px) { .foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot { grid-template-columns: 1fr; } }

.proto { position: fixed; right: 12px; bottom: 12px; z-index: 60; font: 400 .68rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  background: rgba(14, 15, 16, .9); border: 1px solid var(--line-2); color: var(--mute); padding: 8px 10px; }
.proto b { color: var(--lime); font-weight: 400; }

/* reveal */
.rv { opacity: 1; }
.no-js .rv { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
  .robot path { stroke-dashoffset: 0; }
}

/* audit 002 (VS-I9): menu readable over the lime rift; mobile hero/badge spacing */
@media (min-width: 1021px) { .menu { background: rgba(14, 15, 16, .78); backdrop-filter: blur(8px); } }
@media (max-width: 1020px) { .menu { visibility: hidden; } .nav-open .menu { visibility: visible; } }
@media (max-width: 700px) {
  .proto { display: none; }
  .page-hero .rift { right: 70px; width: 22px; top: 96px; bottom: auto; height: 120px; } .page-hero .rift.sheen { display: none; }
  .page-hero .lead, .page-hero h1 { max-width: calc(100% - 34px); }
}
.cta-grid h2 { font-size: clamp(2.1rem, 4vw, 3.7rem); }
.portrait .label { background: rgba(14, 15, 16, .82); padding: 7px 10px; }
.portrait.slides img { opacity: 0; transform: scale(1.06); transition: opacity 1.4s ease, transform 6s linear; }
.portrait.slides img.on { opacity: 1; transform: scale(1); }

/* about: principles as cards */
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.pr { position: relative; padding: 30px 26px 34px 0; display: flex; flex-direction: column; gap: 12px; }
.pr + .pr { padding-left: 26px; border-left: 1px solid var(--line); }
.pr::before { content: ""; position: absolute; top: -1px; left: 0; width: 46px; height: 3px; background: var(--lime); transition: width .5s var(--ease); }
.pr + .pr::before { left: 26px; }
.pr:hover::before { width: calc(100% - 26px); }
.pr-n { font: 800 clamp(3rem, 5.4vw, 4.6rem)/.9 var(--sans); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px var(--lime); margin-bottom: 14px; }
.pr h3 { font: 700 clamp(1.25rem, 1.9vw, 1.5rem)/1.2 var(--sans); letter-spacing: -.015em; }
.pr p { color: var(--soft); margin: 0; font-size: 1rem; }
@media (max-width: 980px) { .principles { grid-template-columns: 1fr 1fr; } .pr:nth-child(3) { padding-left: 0; border-left: 0; } .pr:nth-child(3)::before { left: 0; } .pr { border-bottom: 1px solid var(--line); } }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } .pr + .pr { padding-left: 0; border-left: 0; } .pr + .pr::before { left: 0; } .pr:hover::before { width: 100%; } }
.tile.pano { grid-column: span 12; }
.tile.pano .media { aspect-ratio: 1280 / 826; }
.gallery { grid-auto-flow: row dense; }
.msg.human { border-left-color: #fff; }
.msg .who { display: block; font: 400 .7rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--lime); margin-bottom: 6px; }
.msg.sys { background: transparent; border: 1px dashed var(--line-2); color: var(--soft); font-size: .9rem; }
.chat[data-status="offline"] .chat-head .dot, .chat[data-status="queued"] .chat-head .dot { background: #ffb020; box-shadow: none; animation: none; }

/* P15 local: offline status pulses red */
.chat[data-status="offline"] .chat-head span.mono { color: #ff4d4d; animation: offline-pulse 1.6s ease-in-out infinite; }
.chat[data-status="offline"] .chat-head .dot { background: #ff3b3b; box-shadow: 0 0 0 4px rgba(255, 59, 59, .2); animation: offline-pulse 1.6s ease-in-out infinite; }
@keyframes offline-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

/* responsive audit 30.10 (5 languages, 320 px ... 4K): long words in PL/LV/RU headings, company details on phones */
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
@media (min-width: 1100px) {
  .cta-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.6fr); }
  .cta-grid h2 { font-size: clamp(1.9rem, 2.3vw, 2.6rem); max-width: none; }
}
@media (max-width: 420px) {
  .page-hero h1 { font-size: 2.15rem; }
  .cta h2 { font-size: 1.95rem; }
}
@media (max-width: 560px) {
  .req { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .req dd { margin-bottom: 12px; overflow-wrap: anywhere; }
}
/* very wide screens (QHD/4K at 100 %): wider column, larger type, the robot stays next to the content */
@media (min-width: 1800px) {
  :root { --max: 1520px; }
  .hero-robot { right: calc((100vw - var(--max)) / 2 - 80px); width: 640px; }
}
@media (min-width: 2400px) { html { font-size: 125%; } :root { --max: 1900px; } .hero-robot { width: 820px; } }
@media (min-width: 3200px) { html { font-size: 150%; } :root { --max: 2300px; } .hero-robot { width: 1000px; } }
