/* ==========================================================================
   The ASK Company - site design system
   ========================================================================== */

:root {
  --bg: #06070a;
  --bg-2: #0a0c11;
  --surface: #0f1218;
  --surface-2: #141822;
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eceef3;
  --muted: #9aa3b5;
  --dim: #687083;

  --teal: #22c7e0;
  --blue: #5b8def;
  --indigo: #7c6fe0;
  --accent: var(--teal);
  --grad: linear-gradient(115deg, #22c7e0 0%, #5b8def 52%, #8b78ec 100%);

  --font-sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 18px;
  --radius-sm: 12px;
  --max: 1240px;
  --gutter: 24px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(34, 199, 224, .3); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 128px 0; position: relative; }
.section--tight { padding: 88px 0; }
.section--line { border-top: 1px solid var(--line); }
.grid { display: grid; gap: 20px; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); }
.eyebrow b { color: var(--accent); font-weight: 500; }

.display {
  font-size: clamp(44px, 7.2vw, 104px);
  line-height: .98; letter-spacing: -0.045em; font-weight: 600;
}
.h1 { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -0.04em; }
.h2 { font-size: clamp(32px, 4vw, 54px); line-height: 1.05; letter-spacing: -0.035em; }
.h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.02em; }
.serif { font-family: var(--font-serif); font-weight: 400; font-style: italic; letter-spacing: -0.02em; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--muted); line-height: 1.6; max-width: 62ch; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }

.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 64px; align-items: end; margin-bottom: 64px; }
.section-head .eyebrow { grid-column: 1 / -1; }
.section-head p { color: var(--muted); max-width: 52ch; justify-self: end; }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--text); --b-fg: var(--bg);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  background: var(--b-bg); color: var(--b-fg); font-weight: 600; font-size: 15px; letter-spacing: -0.005em;
  cursor: pointer; white-space: nowrap; transition: transform .25s var(--ease), background .25s, border-color .25s, color .25s;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:hover { transform: translateY(-1px); }
.btn--ghost { --b-bg: transparent; --b-fg: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--text); }
.btn--grad { --b-fg: #04121a; background: var(--grad); }
.btn--sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--text); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow:hover { color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, .nav-open .site-header {
  background: rgba(6, 7, 10, .78); border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
}
/* backdrop-filter would make the header the containing block of the fixed mobile menu */
.nav-open .site-header { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: -0.02em; flex-shrink: 0; }
.brand img { width: 34px; height: 30px; object-fit: contain; }
.brand span { font-size: 17px; }
.brand small { display: block; font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); line-height: 1.2; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-group { position: relative; }
.nav-trigger {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px 8px 14px; border: 0; border-radius: 999px; background: none;
  font-size: 14.5px; font-weight: 500; color: var(--muted); cursor: pointer; white-space: nowrap; transition: color .2s, background .2s;
}
.nav-trigger svg { width: 14px; height: 14px; opacity: .7; transition: transform .3s var(--ease); }
.nav-trigger:hover, .nav-group.is-open .nav-trigger { color: var(--text); }
.nav-group.is-open .nav-trigger svg { transform: rotate(180deg); }
.nav-group.is-current .nav-trigger { color: var(--text); background: rgba(255,255,255,.06); }
.nav-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; z-index: 10; min-width: 290px; padding: 0 0 6px;
  background: #0c0e13; border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 18px 40px rgba(0,0,0,.45);
  opacity: 0; visibility: hidden; transform: translate(-50%, 4px);
  transition: opacity .18s ease, transform .22s var(--ease), visibility 0s linear .22s;
}
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }   /* hover bridge to the trigger */
.nav-group.is-open .nav-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .18s ease, transform .22s var(--ease), visibility 0s; }
.nav-menu__label { padding: 12px 18px 10px; margin-bottom: 6px; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.nav-menu ul { display: grid; }
.nav .nav-item {
  position: relative; display: grid; grid-template-columns: 1fr auto; column-gap: 16px; align-items: center;
  padding: 11px 18px; border-radius: 0; background: none; color: var(--text); white-space: normal; transition: background .2s;
}
.nav .nav-item::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; background: var(--accent); transform: scaleY(0); transition: transform .22s var(--ease); }
.nav .nav-item:hover, .nav .nav-item:focus-visible { background: rgba(255,255,255,.03); }
.nav .nav-item:hover::before, .nav .nav-item:focus-visible::before { transform: scaleY(1); }
.nav-item b { grid-column: 1; display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; letter-spacing: -0.005em; }
.nav-item small { grid-column: 1; margin-top: 2px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.nav .nav-item[aria-current="page"] b::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.nav-go { grid-column: 2; grid-row: 1 / span 2; display: grid; color: var(--dim); opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .25s var(--ease), color .2s; }
.nav-go svg { width: 15px; height: 15px; }
.nav .nav-item:hover .nav-go, .nav .nav-item:focus-visible .nav-go { opacity: 1; transform: none; color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 10px; }

.account { position: relative; }
.account-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px 0 10px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--muted);
  max-width: 200px; transition: border-color .2s, color .2s;
}
.account-btn:hover { color: var(--text); border-color: var(--text); }
.account-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.account-btn img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.account-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 240px; padding: 8px;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.account-menu[hidden] { display: none; }
.account-menu .who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; font-size: 13px; color: var(--muted); word-break: break-all; }
.account-menu .who strong { display: block; color: var(--text); font-size: 14px; }
.account-menu button { width: 100%; text-align: left; padding: 10px 12px; border: 0; background: none; border-radius: 8px; cursor: pointer; font-size: 14px; color: #ff8a8a; }
.account-menu button:hover { background: rgba(255,255,255,.05); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent;
  cursor: pointer; align-items: center; justify-content: center; padding: 0;
}
.nav-toggle span { position: relative; display: block; width: 18px; height: 1.5px; background: var(--text); transition: background .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--text); transition: transform .3s var(--ease); }
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after { transform: translateY(6px); }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: rotate(45deg); }
.nav-open .nav-toggle span::after { transform: rotate(-45deg); }

/* ---------- Page hero ---------- */
.page-hero { position: relative; padding: calc(var(--header-h) + 112px) 0 96px; overflow: hidden; }
.page-hero .eyebrow { margin-bottom: 28px; }
.page-hero h1 { max-width: 15ch; }
.page-hero .lead { margin-top: 28px; }
.page-hero .btn-row { margin-top: 40px; }
.hero-glow {
  position: absolute; pointer-events: none; z-index: -1;
  width: 900px; height: 900px; border-radius: 50%; filter: blur(40px); opacity: .5;
  background: radial-gradient(closest-side, rgba(34,199,224,.22), rgba(91,141,239,.10) 50%, transparent 72%);
  top: -420px; right: -260px;
}
.grid-bg {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 20%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 20%, #000 10%, transparent 70%);
}
.breadcrumb { display: flex; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--dim); margin-bottom: 20px; letter-spacing: .04em; }
.breadcrumb a:hover { color: var(--text); }

/* ---------- Home hero: ASK, filled with the logo's colours ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 56px; overflow-x: clip; }   /* the glow may spread, but never widen the page */
.hero-inner { width: 100%; }
.ask { position: relative; }
.ask-canvas { display: block; opacity: 0; transition: opacity .6s var(--ease); }   /* JS sets size and a negative margin for the glow bleed */
.ask-canvas.is-ready { opacity: 1; }
.ask-fallback {                                   /* shown only without JavaScript */
  display: block; font-weight: 700; font-size: min(30vw, 48vh); line-height: .8; letter-spacing: -0.04em;
  background: linear-gradient(115deg, #16e0f2, #1477f2 45%, #6b5cf0 75%, #a35cf5); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.js .ask-fallback { display: none; }
.hero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-top: clamp(40px, 7vh, 80px); }
.hero-title { font-size: clamp(26px, 2.5vw, 36px); line-height: 1.18; letter-spacing: -0.03em; font-weight: 500; }
.hero-title .serif { display: block; color: var(--muted); font-size: 1.08em; }
.hero-foot .btn-row { flex-shrink: 0; }
/* first visit: copy and header wait for the letters to fill */
[data-hero-in] { transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
html.intro-on [data-hero-in] { opacity: 0; transform: translateY(18px); }
.site-header { transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s, opacity .8s var(--ease), transform .8s var(--ease); }
html.intro-on .site-header { opacity: 0; transform: translateY(-10px); pointer-events: none; }
html.intro-on body { overflow: hidden; }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: var(--bg-2); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 50s linear infinite; }
.marquee span { display: inline-flex; align-items: center; gap: 48px; font-size: 15px; color: var(--muted); white-space: nowrap; }
.marquee span::after { content: "✦"; color: var(--accent); font-size: 12px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cards ---------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; transition: border-color .3s, transform .3s var(--ease), background .3s;
}
a.card:hover, .card--hover:hover { border-color: var(--line-2); background: var(--surface-2); transform: translateY(-3px); }

/* Group / division cards */
.group-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.group-card--holding { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center; padding: 40px; overflow: hidden; }
.group-card--holding::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .5; pointer-events: none; }
.group-card--holding img { width: 88px; height: 78px; object-fit: contain; }
.group-card .tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; display: block; }
.group-card h3 { font-size: 28px; margin-bottom: 12px; }
.group-card p { color: var(--muted); }
.division-card { display: flex; flex-direction: column; min-height: 420px; padding: 40px; overflow: hidden; }
.division-card .art { position: absolute; inset: 0; z-index: 0; opacity: .9; pointer-events: none; }
.division-card > *:not(.art) { position: relative; z-index: 1; }
.division-card .focus { font-size: 14px; color: var(--text); margin: 4px 0 16px; font-weight: 500; }
.division-card .bottom { margin-top: auto; padding-top: 32px; display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.division-card .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.division-card--studios .art { background: radial-gradient(600px 300px at 100% 0%, rgba(34,199,224,.16), transparent 70%); }
.division-card--studios .art::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(34,199,224,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(34,199,224,.08) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: linear-gradient(200deg, #000, transparent 60%); mask-image: linear-gradient(200deg, #000, transparent 60%); }
.division-card--games .art { background: radial-gradient(500px 320px at 100% 0%, rgba(255,225,77,.14), transparent 70%); }
.division-card--games .art::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 1px solid rgba(255,225,77,.25); box-shadow: 0 0 0 40px rgba(255,225,77,.04), 0 0 0 80px rgba(255,225,77,.03); }
.division-card--games:hover { border-color: rgba(255,225,77,.35) !important; }
.division-card--studios:hover { border-color: rgba(34,199,224,.35) !important; }

/* Service grid */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.svc {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 36px 32px 32px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .3s;
  min-height: 300px;
}
.svc:hover { background: var(--surface); }
.svc .num { font-family: var(--font-mono); font-size: 12px; color: var(--dim); }
.svc .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--accent); background: rgba(34,199,224,.05); }
.svc .ico svg { width: 22px; height: 22px; }
.svc-top { display: flex; justify-content: space-between; align-items: start; }
.svc h3 { font-size: 20px; letter-spacing: -0.015em; line-height: 1.25; }
.svc p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.svc .from { margin-top: auto; padding-top: 10px; font-size: 13px; color: var(--dim); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.svc .from strong { color: var(--text); font-weight: 600; }
.svc .go { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background .25s, border-color .25s, color .25s; flex-shrink: 0; }
.svc .go svg { width: 15px; height: 15px; }
.svc:hover .go { background: var(--text); color: var(--bg); border-color: var(--text); }
.svc--cta { justify-content: center; background: linear-gradient(160deg, rgba(34,199,224,.08), rgba(124,111,224,.08)); }
.svc--cta h3 { font-size: 24px; }

/* Process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { padding: 28px 0 0; border-top: 1px solid var(--line-2); position: relative; }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 1px; background: var(--accent); }
.step .k { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: .1em; }
.step h3 { font-size: 22px; margin: 14px 0 10px; }
.step p { color: var(--muted); font-size: 15px; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.principle { padding: 36px 32px; }
.principle .ico { width: 44px; height: 44px; color: var(--accent); margin-bottom: 28px; }
.principle h3 { font-size: 22px; margin-bottom: 10px; }
.principle p { color: var(--muted); font-size: 15.5px; }

/* Quote */
.quote { position: relative; max-width: 980px; }
.quote blockquote { margin: 0; font-family: var(--font-serif); font-size: clamp(30px, 3.6vw, 50px); line-height: 1.15; letter-spacing: -0.02em; }
.quote blockquote::before { content: "\201C"; display: block; font-size: 1.8em; line-height: .6; color: var(--accent); margin-bottom: 16px; }
.quote figcaption { margin-top: 32px; display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 15px; }
.quote figcaption img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: top; border: 1px solid var(--line-2); }
.quote figcaption strong { display: block; color: var(--text); font-weight: 600; }

/* Pricing */
.price-teaser { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.price-teaser .card { padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.price-teaser .svc-name { font-size: 13px; color: var(--dim); }
.price-teaser .plan { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.price-teaser .amt { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; margin-top: 18px; }

.filter-bar { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 16px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.filter-bar::-webkit-scrollbar { display: none; }
.filter-btn {
  flex-shrink: 0; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent;
  color: var(--muted); font-size: 14px; font-weight: 500; cursor: pointer; transition: all .2s;
}
.filter-btn:hover { color: var(--text); border-color: var(--text); }
.filter-btn[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.filter-sticky { position: sticky; top: var(--header-h); z-index: 20; background: rgba(6,7,10,.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); padding-top: 16px; border-bottom: 1px solid var(--line); }

.price-group { display: grid; grid-template-columns: 340px 1fr; gap: 48px; padding: 64px 0; border-bottom: 1px solid var(--line); }
.price-group[hidden] { display: none; }
.price-group-head .num { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.price-group-head h2 { font-size: 26px; letter-spacing: -0.02em; line-height: 1.2; margin: 12px 0 14px; }
.price-group-head p { color: var(--muted); font-size: 15px; }
.price-group-head .by { margin-top: 20px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan-card { display: flex; flex-direction: column; padding: 32px; }
.plan-card .tier { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.plan-card h3 { font-size: 21px; margin: 10px 0 0; letter-spacing: -0.015em; }
.plan-card .amount { margin: 22px 0 4px; font-size: 38px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; }
.plan-card .amount small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan-card .amount.quote { font-size: 30px; }
.plan-card .note { font-size: 13px; color: var(--dim); min-height: 20px; }
.plan-card ul { margin: 24px 0 28px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.plan-card li { display: flex; gap: 12px; font-size: 15px; color: var(--muted); }
.plan-card li svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--accent); margin-top: 3px; }
.plan-card .btn { margin-top: auto; width: 100%; }
.plan-card--feature { background: linear-gradient(180deg, rgba(34,199,224,.07), var(--surface) 55%); border-color: rgba(34,199,224,.22); }

.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 0; display: flex; justify-content: space-between; gap: 24px; font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--accent); font-size: 22px; line-height: 1; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 26px; color: var(--muted); max-width: 70ch; }

/* Service detail rows */
.svc-layout { display: grid; grid-template-columns: 260px 1fr; gap: 64px; align-items: start; }
.svc-index { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 2px; }
.svc-index a { display: flex; gap: 12px; padding: 8px 12px; border-radius: 10px; font-size: 14px; color: var(--dim); transition: color .2s, background .2s; }
.svc-index a span { font-family: var(--font-mono); font-size: 11px; padding-top: 3px; }
.svc-index a:hover, .svc-index a.is-active { color: var(--text); background: rgba(255,255,255,.04); }
.svc-index a.is-active span { color: var(--accent); }
.svc-row { padding: 56px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 72px 1fr; gap: 28px; }
.svc-row:first-child { border-top: 0; padding-top: 0; }
.svc-row .ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--accent); background: rgba(34,199,224,.05); }
.svc-row .ico svg { width: 26px; height: 26px; }
.svc-row .num { font-family: var(--font-mono); font-size: 12px; color: var(--dim); }
.svc-row h2 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.03em; margin: 8px 0 14px; }
.svc-row > div > p { color: var(--muted); font-size: 17px; max-width: 64ch; }
.svc-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 28px 0; }
.svc-meta .card { padding: 20px 22px; border-radius: 14px; }
.svc-meta .k { font-size: 12px; color: var(--dim); font-family: var(--font-mono); letter-spacing: .06em; }
.svc-meta .v { font-weight: 600; font-size: 16px; margin-top: 4px; }
.svc-meta .p { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin-top: 6px; }
.by { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding: 6px 12px 6px 8px; border: 1px solid var(--line-2); border-radius: 999px; }
.by i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.by--games i { background: #ffe14d; }
.by--group i { background: var(--grad); }

/* About */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.prose p { color: var(--muted); font-size: 18px; line-height: 1.7; }
.prose p + p { margin-top: 20px; }
.prose p strong { color: var(--text); font-weight: 600; }
.timeline { position: relative; display: grid; gap: 0; }
.tl-item { display: grid; grid-template-columns: 140px 1fr; gap: 32px; padding: 36px 0; border-top: 1px solid var(--line); }
.tl-item .when { font-family: var(--font-mono); font-size: 13px; color: var(--accent); letter-spacing: .06em; padding-top: 6px; }
.tl-item h3 { font-size: 24px; margin-bottom: 10px; }
.tl-item p { color: var(--muted); max-width: 62ch; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fact { padding: 32px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact .v { font-size: 34px; font-weight: 600; letter-spacing: -0.03em; }
.fact .k { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 40px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 500; color: var(--muted); }
.field label em { font-style: normal; color: var(--dim); font-weight: 400; }
.input, .select, .textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 16px; font-size: 16px; color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.input::placeholder, .textarea::placeholder { color: var(--dim); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(34,199,224,.12); }
.select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%239aa3b5' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px; }
.select option { background: var(--surface-2); }
.textarea { min-height: 160px; resize: vertical; line-height: 1.6; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }
.form-foot p { font-size: 13px; color: var(--dim); max-width: 46ch; }
.form-status { grid-column: 1 / -1; font-size: 14px; color: var(--accent); min-height: 1px; }
.form-status a { text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }   /* spam trap, invisible to people */
.btn.is-busy { opacity: .7; cursor: progress; }
.form.is-sent { display: block; }
.form-done { display: grid; justify-items: start; gap: 10px; padding: 24px 4px; outline: none; }
.form-done__icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 8px;
  background: rgba(34,199,224,.1); border: 1px solid rgba(34,199,224,.35); color: var(--accent); }
.form-done__icon svg { width: 24px; height: 24px; }
.form-done h3 { font-size: 26px; letter-spacing: -0.02em; }
.form-done p { color: var(--muted); max-width: 46ch; }
.form-done .form-done__ref { margin-top: 6px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.contact-side { display: grid; gap: 16px; }
.contact-side .card { padding: 28px; }
.contact-side .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.contact-side a.mail { display: block; font-size: 18px; font-weight: 600; margin-top: 8px; word-break: break-all; }
.contact-side a.mail + a.mail { margin-top: 2px; }
.contact-side a.mail:hover { color: var(--accent); }
.contact-side p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.next-steps { display: grid; gap: 16px; margin: 18px 0 0; padding: 0; list-style: none; counter-reset: ns; }
.next-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: 14.5px; color: var(--muted); }
.next-steps li::before { counter-increment: ns; content: counter(ns); width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; color: var(--accent); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: 28px; padding: 88px 64px; border: 1px solid var(--line-2); background: radial-gradient(700px 360px at 85% 0%, rgba(34,199,224,.18), transparent 70%), radial-gradient(600px 360px at 0% 100%, rgba(124,111,224,.16), transparent 70%), var(--surface); display: grid; grid-template-columns: 1.4fr auto; gap: 40px; align-items: end; }
.cta-band h2 { max-width: 16ch; }
.cta-band p { color: var(--muted); margin-top: 20px; max-width: 52ch; font-size: 18px; }

/* ---------- Footer ---------- */
/* own layer, so full-screen page effects (e.g. the UniqERP vignette) never paint over the footer */
.site-footer { position: relative; z-index: 1; overflow: hidden; border-top: 1px solid var(--line); padding: 88px 0 40px; margin-top: 64px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 48px; }
.footer-brand p { color: var(--muted); font-size: 15px; margin-top: 20px; max-width: 40ch; }
.footer-brand .mail { display: table; margin-top: 20px; font-weight: 600; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.footer-brand .mail + .mail { margin-top: 10px; }
.footer-brand .mail:hover { color: var(--accent); border-color: var(--accent); }
.footer-col h4 { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: var(--muted); font-size: 15px; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--dim); }
/* The wordmark is ~7.97em wide; sizing it from the container width (cqi) guarantees it always fits.
   background-clip:text only paints inside the box, so any overflow would vanish. */
.site-footer .container { container-type: inline-size; }
.footer-wordmark { font-size: clamp(36px, 9.6vw, 140px); font-size: 12.3cqi; padding-bottom: .12em; font-weight: 600; letter-spacing: -0.06em; line-height: .8; margin-top: 72px; background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,0)); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; white-space: nowrap; }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Legal / prose page ---------- */
.legal { max-width: 780px; }
.legal h2 { font-size: 28px; margin: 56px 0 16px; padding-top: 32px; border-top: 1px solid var(--line); }
.legal h3 { font-size: 21px; margin: 36px 0 12px; }
.legal h4 { font-size: 17px; margin: 28px 0 10px; color: var(--text); }
.legal p, .legal li { color: var(--muted); font-size: 16.5px; line-height: 1.75; }
.legal p + p { margin-top: 14px; }
.legal ul { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 10px; }
.legal li { position: relative; padding-left: 22px; }
.legal li::before { content: ""; position: absolute; left: 2px; top: .75em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.legal li p { margin: 0; }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--accent); border-bottom: 1px solid rgba(34,199,224,.35); }
.legal-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 28px; }
.app-badge { display: inline-flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border: 1px solid var(--line-2); border-radius: 14px; }
.app-badge img { width: 40px; height: 40px; border-radius: 10px; background: #fff; padding: 5px; }
.app-badge b { display: block; font-size: 15px; }
.app-badge span { font-size: 12px; color: var(--dim); }
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 64px; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 4px; font-size: 14px; }
.toc b { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-weight: 500; margin-bottom: 10px; }
.toc a { color: var(--muted); padding: 4px 0; }
.toc a:hover { color: var(--text); }

/* ---------- Status pages ---------- */
.status-page { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter) 80px; position: relative; overflow: hidden; }
.status-page .code { font-family: var(--font-mono); color: var(--accent); font-size: 13px; letter-spacing: .2em; }
.status-page h1 { margin: 20px 0 16px; }
.status-page p { color: var(--muted); max-width: 46ch; margin: 0 auto; }
.status-page .btn-row { justify-content: center; margin-top: 36px; }
.spinner { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent); animation: spin .8s linear infinite; margin: 0 auto 28px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .price-teaser { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .header-actions .btn { display: none; }
  /* Mobile menu: always rendered, hidden with opacity/transform so opening and closing animate
     on the GPU (display can't be transitioned). visibility flips only after the fade-out ends. */
  .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 26px;
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; padding: 28px var(--gutter) 40px;
    background: var(--bg); overflow-y: auto; margin: 0; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-14px); pointer-events: none; will-change: opacity, transform;
    transition: opacity .28s var(--ease), transform .32s var(--ease), visibility 0s linear .32s;
  }
  .nav-open .nav {
    opacity: 1; visibility: visible; transform: none; pointer-events: auto;
    transition: opacity .38s var(--ease), transform .48s var(--ease), visibility 0s;
  }
  .nav > * { opacity: 0; transform: translateY(10px); transition: opacity .2s var(--ease), transform .2s var(--ease); }
  .nav-open .nav > * { opacity: 1; transform: none; transition: opacity .45s var(--ease), transform .55s var(--ease); }
  .nav-open .nav > :nth-child(1) { transition-delay: .06s; }
  .nav-open .nav > :nth-child(2) { transition-delay: .11s; }
  .nav-open .nav > :nth-child(3) { transition-delay: .16s; }
  .nav-open .nav > :nth-child(4) { transition-delay: .21s; }
  .nav-open .nav > :nth-child(5) { transition-delay: .26s; }
  .nav-trigger {
    width: 100%; padding: 0 0 10px; border-radius: 0; border-bottom: 1px solid var(--line); background: none !important;
    font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim) !important;
    pointer-events: none; cursor: default;
  }
  .nav-trigger svg { display: none; }
  .nav-menu, .nav-group.is-open .nav-menu {
    position: static; min-width: 0; padding: 0; background: none; border: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .nav-menu::before { display: none; }
  .nav .nav-item { display: block; padding: 10px 0; border-radius: 0; background: none !important; }
  .nav-menu__label, .nav-go, .nav-item small { display: none; }
  .nav .nav-item::before { display: none; }
  .nav-item b { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
  .nav .nav-item[aria-current="page"] b { color: var(--accent); }
  .nav .nav-cta { display: inline-flex; margin-top: 28px; font-size: 16px; border: 0; padding: 0 24px; background: var(--text); color: var(--bg); border-radius: 999px; height: 54px; justify-content: center; align-items: center; }
  .nav-open { overflow: hidden; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .price-group { grid-template-columns: 1fr; gap: 28px; }
  .svc-layout, .legal-layout { grid-template-columns: 1fr; }
  .svc-index, .toc { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (min-width: 1101px) { .nav .nav-cta { display: none; } }

@media (max-width: 820px) {
  .hero { min-height: 0; padding: calc(var(--header-h) + 64px) 0 52px; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 26px; margin-top: 44px; }
  .hero-title { font-size: clamp(26px, 7vw, 32px); }
  .hero-foot .btn-row { width: 100%; }
  :root { --gutter: 20px; --header-h: 64px; }
  body { font-size: 16px; }
  .section { padding: 88px 0; }
  .section--tight { padding: 64px 0; }
  .section-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 44px; }
  .section-head p { justify-self: start; }
  .page-hero { padding: calc(var(--header-h) + 64px) 0 64px; }
  .group-grid { grid-template-columns: 1fr; }
  .group-card--holding { grid-template-columns: 1fr; gap: 24px; padding: 32px 28px; }
  .division-card { min-height: 0; padding: 32px 28px; }
  .principles { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .plans { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; padding: 28px 22px; }
  .cta-band { grid-template-columns: 1fr; padding: 56px 28px; border-radius: 22px; }
  .tl-item { grid-template-columns: 1fr; gap: 10px; }
  .svc-meta { grid-template-columns: 1fr; }
  .svc-row { grid-template-columns: 1fr; gap: 18px; }
  .card { padding: 28px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .price-teaser { grid-template-columns: 1fr; }
  :root { --gutter: 16px; }
  .brand small { display: none; }
  .account-btn span { display: none; }
  .account-btn { padding: 0; width: 42px; justify-content: center; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc { min-height: 0; padding: 30px 24px; }
  .process { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid var(--line); }
  .fact:last-child { border-bottom: 0; }
  .chip { font-size: 11.5px; padding: 5px 10px; }
  .btn { height: 50px; }
  .btn-row .btn { flex: 1 1 auto; }
  .plan-card { padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Utilities ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: #ff7a7a; }
.select:disabled { opacity: .5; cursor: not-allowed; }
