/* Cortex Tech
   Palette sampled from the logo: cyan #5fd8ea is the single accent,
   blue / indigo / violet appear only as ambient tints taken from the emblem.
   Radius rule: containers 20px, interactive elements are full pills. */

:root {
  --bg: #05080e;
  --bg-2: #070c14;
  --surface: #0a111b;
  --surface-2: #0e1724;
  --line: rgba(130, 200, 240, 0.1);
  --line-strong: rgba(130, 200, 240, 0.2);

  --text: #e8f1f7;
  --muted: #93a5b7;
  --dim: #5e7084;

  --accent: #5fd8ea;
  --accent-ink: #04121a;
  --blue: #3a8fd0;
  --indigo: #5d64d8;
  --violet: #9c6ae0;

  --r-box: 20px;
  --r-pill: 999px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --f-display: "Unbounded", "Onest", system-ui, sans-serif;
  --f-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  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.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
svg { fill: currentColor; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: rgba(95, 216, 234, 0.3); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* grain, fixed layer only */
body::after {
  content: "";
  position: fixed; inset: 0;
  z-index: 90; pointer-events: none;
  opacity: 0.05;
  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");
}

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: var(--r-pill);
  background: var(--accent); color: var(--accent-ink); font-weight: 600;
}
.skip:focus { top: 12px; }

.i { width: 18px; height: 18px; flex: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px;
  border-radius: var(--r-pill);
  font-weight: 500; font-size: 0.98rem; white-space: nowrap;
  transition: transform 0.35s var(--ease), background-color 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.35s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn--primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 30px -12px rgba(95, 216, 234, 0.55);
}
.btn--primary:hover { background: #7fe3f1; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 14px 36px -12px rgba(95, 216, 234, 0.7); }
.btn--primary .i { transition: transform 0.35s var(--ease); }
.btn--primary:hover .i { transform: translate(2px, -2px); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--text); background: rgba(14, 23, 36, 0.4); }
.btn--ghost:hover { border-color: rgba(95, 216, 234, 0.5); background: rgba(95, 216, 234, 0.06); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 0.9rem; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(5, 8, 14, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner { height: 72px; display: flex; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand__mark { width: 36px; height: 36px; filter: drop-shadow(0 0 10px rgba(95, 216, 234, 0.35)); }
.brand__name {
  font-family: var(--f-display); font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.brand__name span { color: var(--accent); margin-left: 0.35em; font-weight: 400; }

.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a {
  padding: 8px 14px; border-radius: var(--r-pill);
  color: var(--muted); font-size: 0.92rem;
  transition: color 0.25s, background-color 0.25s;
}
.nav__links a:hover { color: var(--text); background: rgba(130, 200, 240, 0.06); }
.nav__actions { display: flex; align-items: center; gap: 12px; }

.lang {
  position: relative; display: inline-grid; grid-template-columns: repeat(3, 1fr);
  padding: 3px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: rgba(10, 17, 27, 0.6);
}
.lang__btn {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 40px; height: 32px; border: 0; background: none; cursor: pointer;
  font-family: var(--f-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.04em;
  color: var(--muted); border-radius: var(--r-pill);
  transition: color 0.3s;
}
.lang__btn[aria-current="page"] { color: var(--accent-ink); }
.lang__btn:hover:not([aria-current="page"]) { color: var(--text); }
.lang__thumb {
  position: absolute; top: 3px; left: 3px; width: 40px; height: 32px;
  border-radius: var(--r-pill); background: var(--accent);
  transform: translateX(calc(var(--idx, 1) * 40px));
  transition: transform 0.45s var(--ease);
}

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100dvh;
  display: flex; align-items: center;
  padding: 104px 0 64px;
  overflow: hidden;
}
.hero__net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__glow {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(40rem 30rem at 78% 48%, rgba(58, 143, 208, 0.16), transparent 70%),
    radial-gradient(26rem 22rem at 86% 70%, rgba(156, 106, 224, 0.1), transparent 70%),
    radial-gradient(50rem 30rem at 10% 110%, rgba(95, 216, 234, 0.06), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 160px; z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center; gap: clamp(24px, 4vw, 64px);
}

.eyebrow {
  display: inline-flex; max-width: 100%; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.6; }

.hero__title {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(2rem, 4.1vw, 3.5rem);
  line-height: 1.1; letter-spacing: -0.025em;
  max-width: 15ch;
  text-wrap: balance;
}
.hero__sub {
  margin-top: 24px; max-width: 46ch;
  color: var(--muted); font-size: clamp(1rem, 1.2vw, 1.13rem); line-height: 1.65;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero__visual {
  position: relative; aspect-ratio: 1; width: 100%; max-width: 540px; justify-self: end;
  display: grid; place-items: center;
}
.hero__emblem {
  position: relative; width: 92%;
  filter: drop-shadow(0 0 40px rgba(58, 143, 208, 0.35));
}
.orbit {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--line);
}
.orbit--a { inset: 4%; border-style: dashed; border-color: rgba(95, 216, 234, 0.14); }
.orbit--b { inset: -6%; }
.orbit--b::before, .orbit--a::before {
  content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%;
  top: -4px; left: calc(50% - 4px);
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
}
.orbit--a::before { background: var(--violet); box-shadow: 0 0 12px var(--violet); top: auto; bottom: -4px; }

/* ---------- marquee ---------- */
.stack { border-block: 1px solid var(--line); background: var(--bg-2); }
.marquee {
  overflow: hidden; padding: 22px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; gap: 48px; width: max-content; }
.marquee__track li {
  display: inline-flex; align-items: center; gap: 12px; flex: none;
  color: var(--dim); font-size: 0.95rem; font-weight: 500;
  transition: color 0.3s;
}
.marquee__track li:hover { color: var(--text); }
.marquee__track i {
  width: 22px; height: 22px; background: currentColor;
  -webkit-mask-position: center; -webkit-mask-size: contain; -webkit-mask-repeat: no-repeat;
  mask-position: center; mask-size: contain; mask-repeat: no-repeat;
}

/* ---------- sections ---------- */
.section { padding: clamp(80px, 11vw, 144px) 0; position: relative; }
.section__head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__title {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(1.7rem, 3.2vw, 2.7rem);
  line-height: 1.15; letter-spacing: -0.02em;
  text-wrap: balance;
}
.section__lead { margin-top: 18px; color: var(--muted); font-size: 1.05rem; max-width: 60ch; }
.section__head--center .section__lead { margin-inline: auto; }

/* ---------- bento ---------- */
.bento {
  display: grid; gap: 16px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-areas:
    "automation automation automation automation funnel funnel"
    "automation automation automation automation android android"
    "web web bots bots bots bots"
    "seo seo support support support support";
}
.cell--auto { grid-area: automation; }
.cell--funnel { grid-area: funnel; }
.cell--android { grid-area: android; }
.cell--web { grid-area: web; }
.cell--bots { grid-area: bots; }
.cell--seo { grid-area: seo; }
.cell--support { grid-area: support; }

.cell {
  --mx: 50%; --my: 0%;
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(24px, 2.6vw, 34px);
  border-radius: var(--r-box);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.4s, transform 0.5s var(--ease);
}
.cell::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(95, 216, 234, 0.1), transparent 60%);
  transition: opacity 0.4s;
}
.cell:hover { border-color: rgba(95, 216, 234, 0.28); }
.cell:hover::before { opacity: 1; }
.cell__icon { width: 34px; height: 34px; color: var(--accent); margin-bottom: 28px; }
.cell h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.12rem; line-height: 1.3; letter-spacing: -0.01em; }
.cell p { margin-top: 12px; color: var(--muted); font-size: 0.97rem; max-width: 48ch; }

.cell--auto {
  display: flex; flex-direction: column;
  background:
    radial-gradient(90% 70% at 100% 100%, rgba(58, 143, 208, 0.22), transparent 60%),
    radial-gradient(60% 50% at 0% 100%, rgba(93, 100, 216, 0.14), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
}
.cell--auto h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
.cell--auto p { font-size: 1.02rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips li {
  padding: 6px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: rgba(5, 8, 14, 0.4);
  font-family: var(--f-mono); font-size: 0.78rem; color: var(--muted);
}
.flow {
  margin-top: auto; padding-top: 40px;
  display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; position: relative;
}
.flow::before {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 11px; height: 1px;
  background: linear-gradient(90deg, rgba(95, 216, 234, 0.1), rgba(95, 216, 234, 0.5), rgba(156, 106, 224, 0.4));
}
.flow::after {
  content: ""; position: absolute; bottom: 9px; left: 12px; width: 40px; height: 5px; border-radius: 4px;
  background: linear-gradient(90deg, transparent, var(--accent));
  animation: flow 3.2s var(--ease) infinite;
}
.flow span {
  justify-self: center; width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid rgba(95, 216, 234, 0.5); background: var(--bg);
  position: relative; z-index: 1;
}
.flow span:first-child { justify-self: start; }
.flow span:last-child { justify-self: end; border-color: rgba(156, 106, 224, 0.6); }
.flow span::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--accent); opacity: 0.8; }
.flow span:last-child::after { background: var(--violet); }
@keyframes flow { from { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { transform: translateX(calc(var(--w, 400px) - 64px)); opacity: 0; } }

.cell--funnel { background: radial-gradient(80% 90% at 100% 0%, rgba(95, 216, 234, 0.1), transparent 60%), linear-gradient(180deg, var(--surface-2), var(--surface)); }
.cell--android { background: radial-gradient(80% 90% at 100% 100%, rgba(93, 100, 216, 0.14), transparent 60%), linear-gradient(180deg, var(--surface-2), var(--surface)); }

.cell--bots, .cell--support { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cell--bots {
  background:
    radial-gradient(70% 120% at 100% 50%, rgba(156, 106, 224, 0.14), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
}
.bots { display: flex; gap: 12px; flex: none; }
.bots__item {
  width: 64px; height: 64px; border-radius: 18px;
  border: 1px solid var(--line-strong); background: rgba(5, 8, 14, 0.5);
  position: relative;
  transition: transform 0.5s var(--ease), border-color 0.3s;
}
.bots__item i {
  position: absolute; inset: 18px; background: var(--text);
  -webkit-mask-position: center; -webkit-mask-size: contain; -webkit-mask-repeat: no-repeat;
  mask-position: center; mask-size: contain; mask-repeat: no-repeat;
}
.cell--bots:hover .bots__item { border-color: rgba(95, 216, 234, 0.35); }
.cell--bots:hover .bots__item:nth-child(1) { transform: translateY(-6px); }
.cell--bots:hover .bots__item:nth-child(2) { transform: translateY(-6px); transition-delay: 0.05s; }
.cell--bots:hover .bots__item:nth-child(3) { transform: translateY(-6px); transition-delay: 0.1s; }

.pulse {
  flex: none; display: grid; place-items: center; gap: 10px;
  width: 120px; height: 120px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: radial-gradient(circle, rgba(95, 216, 234, 0.08), transparent 70%);
  position: relative;
}
.pulse::before {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid rgba(95, 216, 234, 0.5);
  animation: ring 2.6s var(--ease) infinite;
}
.pulse__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(95, 216, 234, 0.15); align-self: end; }
.pulse__label { font-family: var(--f-mono); font-size: 0.95rem; color: var(--text); align-self: start; }
@keyframes ring { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.35); opacity: 0; } }

/* ---------- priorities ---------- */
.priorities { background: linear-gradient(180deg, var(--bg), var(--bg-2) 30%, var(--bg-2) 70%, var(--bg)); }
.priorities__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.priorities__aside { position: sticky; top: 120px; }
.pillars { display: grid; }
.pillar {
  display: grid; grid-template-columns: 56px 1fr; gap: 24px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.pillar:first-child { border-top: 0; padding-top: 8px; }
.pillar__icon {
  width: 56px; height: 56px; padding: 13px; border-radius: 16px;
  color: var(--accent); border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(95, 216, 234, 0.08), transparent);
  transition: transform 0.5s var(--ease), border-color 0.3s;
}
.pillar:hover .pillar__icon { transform: rotate(-6deg) scale(1.05); border-color: rgba(95, 216, 234, 0.5); }
.pillar__title {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.15; letter-spacing: -0.02em;
}
.pillar p { margin-top: 12px; color: var(--muted); font-size: 1.02rem; max-width: 52ch; }

/* ---------- experience ---------- */
.process {
  --line-pos: 11px;
  position: relative;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px;
}
.process::before {
  content: ""; position: absolute; top: var(--line-pos); left: 12px; right: 12px; height: 1px;
  background: linear-gradient(90deg, rgba(95, 216, 234, 0.5), rgba(58, 143, 208, 0.4), rgba(156, 106, 224, 0.4));
}
.process::after {
  content: ""; position: absolute; top: calc(var(--line-pos) - 2px); left: 12px; width: 80px; height: 5px; border-radius: 4px;
  background: linear-gradient(90deg, transparent, var(--accent));
  animation: travel 5s linear infinite;
}
@keyframes travel { from { transform: translateX(0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { transform: translateX(calc(var(--w, 1000px) - 104px)); opacity: 0; } }
.step { position: relative; }
.step__node {
  display: block; width: 23px; height: 23px; border-radius: 50%; margin-bottom: 28px;
  background: var(--bg); border: 1px solid rgba(95, 216, 234, 0.6);
  position: relative; z-index: 1;
}
.step__node::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--accent); }
.step:last-child .step__node { border-color: rgba(156, 106, 224, 0.7); }
.step:last-child .step__node::after { background: var(--violet); }
.step h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.05rem; letter-spacing: -0.01em; }
.step p { margin-top: 10px; color: var(--muted); font-size: 0.95rem; }

/* ---------- contact ---------- */
.contact { padding-bottom: clamp(64px, 8vw, 104px); }
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(36rem 22rem at 22% 58%, rgba(58, 143, 208, 0.1), transparent 70%);
}
.contact__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.channels {
  display: grid; gap: 12px;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "main email" "main web" "main git";
}
.channel {
  position: relative; display: grid; align-content: center; gap: 2px;
  padding: 20px 56px 20px 22px; min-height: 84px;
  border-radius: var(--r-box);
  border: 1px solid var(--line); background: var(--surface);
  transition: border-color 0.3s, background-color 0.3s, transform 0.5s var(--ease);
}
.channel:nth-child(2) { grid-area: email; }
.channel:nth-child(3) { grid-area: web; }
.channel:nth-child(4) { grid-area: git; }
.channel:hover { border-color: rgba(95, 216, 234, 0.4); background: var(--surface-2); transform: translateY(-2px); }
.channel__icon { display: none; }
.channel__label { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.channel__value { font-size: 1rem; font-weight: 500; overflow-wrap: anywhere; }
.channel__arrow {
  position: absolute; right: 20px; top: 50%; width: 20px; height: 20px; margin-top: -10px;
  color: var(--dim); transition: transform 0.4s var(--ease), color 0.3s;
}
.channel:hover .channel__arrow { color: var(--accent); transform: translate(3px, -3px); }

.channel--main {
  grid-area: main; align-content: end; gap: 6px;
  padding: 28px; min-height: 280px;
  background:
    radial-gradient(100% 80% at 100% 0%, rgba(95, 216, 234, 0.16), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  border-color: rgba(95, 216, 234, 0.25);
}
.channel--main .channel__icon { display: block; position: absolute; top: 28px; left: 28px; width: 44px; height: 44px; color: var(--accent); }
.channel--main .channel__value { font-family: var(--f-display); font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 500; letter-spacing: -0.01em; }
.channel__note { color: var(--muted); font-size: 0.92rem; }
.channel--main .channel__arrow { top: 28px; right: 28px; margin: 0; width: 24px; height: 24px; color: var(--accent); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand--footer .brand__mark { width: 28px; height: 28px; }
.brand--footer .brand__name { font-size: 0.8rem; }
.legal { text-align: right; font-size: 0.76rem; line-height: 1.7; color: var(--dim); }
.legal p + p { display: flex; flex-wrap: wrap; justify-content: flex-end; column-gap: 18px; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.in { opacity: 1; transform: none; }

.js .hero__copy > * { opacity: 0; transform: translateY(18px); animation: rise 1s var(--ease) forwards; }
.js .hero__copy > :nth-child(2) { animation-delay: 0.08s; }
.js .hero__copy > :nth-child(3) { animation-delay: 0.16s; }
.js .hero__copy > :nth-child(4) { animation-delay: 0.24s; }
.js .hero__visual { opacity: 0; transform: scale(0.94); animation: rise 1.4s var(--ease) 0.15s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  .hero__emblem { animation: float 8s ease-in-out infinite; }
  .orbit--a { animation: spin 60s linear infinite; }
  .orbit--b { animation: spin 90s linear infinite reverse; }
  .marquee__track { animation: marquee 50s linear infinite; }
  .marquee:hover .marquee__track { animation-play-state: paused; }
}
@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(calc(-50% - 24px)); } }


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js .reveal, .js .hero__copy > *, .js .hero__visual { opacity: 1; transform: none; }
  .marquee__track { flex-wrap: wrap; justify-content: center; width: auto; row-gap: 16px; }
  .marquee__track [aria-hidden="true"] { display: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__actions { margin-left: auto; }
}

@media (max-width: 900px) {
  .hero { padding: 96px 0 48px; min-height: auto; }
  .hero__inner { grid-template-columns: 1fr; gap: 8px; }
  .hero__visual { order: -1; justify-self: center; max-width: 240px; margin-bottom: 8px; }
  .hero__title { max-width: 18ch; }

  .bento {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "automation automation"
      "funnel android"
      "web seo"
      "bots bots"
      "support support";
  }

  .priorities__grid, .contact__grid { grid-template-columns: 1fr; }
  .priorities__aside { position: static; }

  .process { grid-template-columns: 1fr; gap: 0; max-width: 520px; margin-inline: auto; }
  .process::before { top: 12px; bottom: 12px; left: 11px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, rgba(95, 216, 234, 0.5), rgba(156, 106, 224, 0.4)); }
  .process::after { display: none; }
  .step { display: grid; grid-template-columns: 23px 1fr; column-gap: 20px; padding-bottom: 28px; }
  .step__node { grid-row: span 2; margin: 0; }
  .step p { margin-top: 4px; }
  .step:last-child { padding-bottom: 0; }
  .section__head--center { text-align: left; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .nav__inner { height: 64px; gap: 12px; }
  .brand__mark { width: 30px; height: 30px; }
  .brand__name { font-size: 0.82rem; }
  .nav__cta { display: none; }
  .lang__btn { width: 36px; height: 30px; }
  .lang__thumb { width: 36px; height: 30px; transform: translateX(calc(var(--idx, 1) * 36px)); }

  .hero { padding-top: 84px; }
  .hero__visual { max-width: 200px; }
  .hero__ctas .btn { flex: 1 1 auto; }

  .bento { grid-template-columns: 1fr; grid-template-areas: "automation" "funnel" "android" "web" "seo" "bots" "support"; gap: 12px; }
  .cell--bots, .cell--support { flex-direction: column; align-items: flex-start; }
  .pulse { display: none; }
  .bots__item { width: 56px; height: 56px; }
  .bots__item i { inset: 16px; }
  .cell__icon { margin-bottom: 20px; }

  .pillar { grid-template-columns: 1fr; gap: 16px; padding: 32px 0; }
  .pillar__icon { width: 48px; height: 48px; padding: 11px; }

  .channels { grid-template-columns: 1fr; grid-template-areas: "main" "email" "web" "git"; }
  .channel--main { min-height: 200px; }

  .footer__inner { flex-direction: column; align-items: flex-start; }
  .legal { text-align: left; }
  .legal p + p { justify-content: flex-start; }
}
