/* =====================================================================
   Alfa — Design system v2 "Pearl"
   Luxury monochrome · floating white cards on pearl · glass accents
   Giant lowercase display · pill controls · mobile-first
   ===================================================================== */

/* ---- Fonts -------------------------------------------------------- */
/* Onest (display + body) · Fragment Mono (labels/data) */
@import url('https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700&family=Fragment+Mono&display=swap');

/* ---- Tokens ------------------------------------------------------- */
:root {
  --ink:      #0B0B0A;
  --ink-soft: #1C1C1A;
  --pearl:    #F1F0ED;   /* page canvas */
  --card:     #FFFFFF;   /* floating surfaces */
  --mist:     #F7F6F4;   /* subtle inner surfaces */
  --graphite: #565550;
  --silver:   #8F8E88;
  --line:     #E3E2DD;
  --line-soft:#ECEBE7;

  --font-display: 'Onest', system-ui, sans-serif;
  --font-body: 'Onest', system-ui, -apple-system, sans-serif;
  --font-mono: 'Fragment Mono', ui-monospace, monospace;

  --step--1: clamp(0.80rem, 0.77rem + 0.15vw, 0.88rem);
  --step-0:  clamp(1.00rem, 0.95rem + 0.25vw, 1.13rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2:  clamp(1.55rem, 1.35rem + 1vw, 2.2rem);
  --step-3:  clamp(2.1rem, 1.6rem + 2.4vw, 3.4rem);
  --step-4:  clamp(2.9rem, 2rem + 4.6vw, 6rem);

  --container: 1240px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(4rem, 9vw, 8.5rem);

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-pill: 999px;

  --shadow-card: 0 1px 2px rgba(11, 11, 10, 0.04), 0 18px 44px -16px rgba(11, 11, 10, 0.12);
  --shadow-float: 0 2px 6px rgba(11, 11, 10, 0.05), 0 28px 64px -20px rgba(11, 11, 10, 0.16);
  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-line: rgba(255, 255, 255, 0.75);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Reset -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--pearl);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; background: none; border: none; }
ul { list-style: none; padding: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

::selection { background: var(--ink); color: var(--card); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

/* ---- Layout helpers ---------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 5rem); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before { content: ""; width: 1.6rem; height: 1px; background: var(--silver); }

.section-head { max-width: 46ch; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head h2 { font-size: var(--step-3); margin-top: 1rem; }
.section-head p { color: var(--graphite); margin-top: 1.1rem; font-size: var(--step-1); }

/* ---- Buttons (pill) ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.7rem;
  font-weight: 500;
  font-size: var(--step-0);
  border-radius: var(--r-pill);
  border: 1px solid var(--ink);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
              color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--primary { background: var(--ink); color: var(--card); }
.btn--primary:hover { background: var(--ink-soft); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: var(--card); color: var(--ink); border-color: var(--card); }
.btn--light:hover { background: transparent; color: var(--card); border-color: var(--card); }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.textlink {
  font-weight: 500; color: var(--graphite);
  border-bottom: 1px solid var(--line); padding-bottom: 2px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.textlink:hover { color: var(--ink); border-color: var(--ink); }

/* ---- Header: floating glass pill ---------------------------------- */
.site-header {
  position: sticky;
  top: 0.8rem;
  z-index: 100;
  padding-inline: var(--gutter);
}
.site-header__inner {
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  height: 62px;
  padding-inline: clamp(1rem, 2.5vw, 1.6rem);
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--glass-line);
  box-shadow: 0 1px 2px rgba(11,11,10,0.04), 0 12px 32px -14px rgba(11,11,10,0.14);
  border-radius: var(--r-pill);
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand__mark { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; letter-spacing: -0.04em; }
.brand__logo { height: 34px; width: auto; display: block; }
.brand__logo--footer { height: 44px; }
.brand__tag { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--silver); }

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: 0.35rem; }
.nav__link {
  font-size: 0.92rem; color: var(--graphite);
  padding: 0.45rem 0.85rem; border-radius: var(--r-pill);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav__link:hover { color: var(--ink); background: rgba(11, 11, 10, 0.05); }
.nav__link[aria-current="page"] { color: var(--card); background: var(--ink); }

.header__actions { display: flex; align-items: center; gap: 0.6rem; }
.lang-toggle {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--graphite);
  background: rgba(255, 255, 255, 0.5);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.lang-toggle:hover { border-color: var(--ink); color: var(--ink); }
.header__cta { display: none; padding: 0.55rem 1.2rem; font-size: 0.92rem; }

.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px;
  width: 42px; height: 42px; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.5);
}
.nav-toggle span { width: 16px; height: 1.5px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu: glass sheet */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(241, 240, 237, 0.82);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  padding: calc(62px + 2.5rem) var(--gutter) 2rem;
  display: flex; flex-direction: column; gap: 0.4rem;
  transform: translateY(-10px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
body.menu-open .mobile-menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-menu a:not(.btn) {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em;
  font-size: var(--step-2); padding-block: 0.65rem;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu .btn { margin-top: 1.75rem; justify-content: center; }

/* ---- Intro: full-screen workflow ---------------------------------- */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.intro {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  position: relative;
  margin-top: calc(-62px - 0.8rem);
  will-change: opacity, transform;
}
.intro.is-done { visibility: hidden; }
.intro__inner {
  width: min(92vw, 880px);
  display: grid;
  justify-items: center;
  gap: clamp(1.5rem, 5vw, 3rem);
  padding-bottom: clamp(2rem, 8vh, 4rem);
}
.intro__brand {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver);
  opacity: 0;
  animation: hero-rise 0.7s var(--ease) 0.1s forwards;
}
.intro__hint {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver);
  opacity: 0;
  animation: hero-rise 0.7s var(--ease) 2s forwards;
}
.intro__hint::after {
  content: "";
  width: 1px;
  height: 36px;
  background: var(--silver);
  transform-origin: top;
  animation: hint-drop 2s var(--ease) infinite;
}
@keyframes hint-drop {
  0%   { transform: scaleY(0); opacity: 1; }
  55%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* Live system workflow */
.flow { width: 100%; height: auto; color: var(--ink); }
.flow--intro { max-height: 52vh; }
.flow--h { display: none; }
.flow--v { max-width: 400px; max-height: 58vh; }
.flow--v .flow__label { font-size: 14px; }
@media (min-width: 640px) {
  .flow--h { display: block; }
  .flow--v { display: none; }
}

@keyframes flow-draw { to { stroke-dashoffset: 0; } }
.flow__line {
  fill: none; stroke: var(--silver); stroke-width: 1.25;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: flow-draw 0.8s var(--ease) forwards;
}
.flow__line:nth-of-type(1) { animation-delay: 0.9s; }
.flow__line:nth-of-type(2) { animation-delay: 1.15s; }
.flow__line:nth-of-type(3) { animation-delay: 1.3s; }

@keyframes flow-pop {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.flow__node { opacity: 0; animation: flow-pop 0.55s var(--ease) forwards; }
.flow__node--in  { animation-delay: 0.7s; }
.flow__node--ai  { animation-delay: 1.0s; }
.flow__node--out { animation-delay: 1.35s; }
.flow__node--out:last-of-type { animation-delay: 1.5s; }

.flow__node rect {
  fill: var(--card); stroke: var(--line); stroke-width: 1;
  filter: drop-shadow(0 10px 18px rgba(11, 11, 10, 0.09));
  transition: stroke 0.3s var(--ease);
}
.flow__node:hover rect { stroke: var(--ink); }
.flow__label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; fill: var(--graphite); }

.flow__node--ai rect:not(.flow__pulse) { fill: var(--ink); stroke: var(--ink); }
.flow__node--ai .flow__label { fill: var(--card); }
@keyframes flow-breathe { 0%,100% { opacity: 0; } 50% { opacity: 0.5; } }
.flow__pulse {
  fill: none !important; stroke: var(--silver) !important; stroke-width: 1 !important;
  filter: none !important;
  opacity: 0; animation: flow-breathe 3.6s ease-in-out 2s infinite;
}
.flow__dot { fill: var(--ink); opacity: 0; animation: flow-pop 0.3s var(--ease) 1.7s forwards; }
@media (prefers-reduced-motion: reduce) { .flow__dots { display: none; } }

/* ---- Hero: giant lowercase + live chat demo ----------------------- */
.hero { position: relative; padding-top: clamp(2.5rem, 7vw, 6rem); padding-bottom: clamp(3rem, 7vw, 6rem); }
.hero__grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.hero__title { font-size: var(--step-4); font-weight: 700; margin-top: 1.25rem; max-width: 13ch; }
.hero__sub { color: var(--graphite); font-size: var(--step-1); margin-top: 1.4rem; max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-top: 2.25rem; }

/* Chat demo — the system working, live */
.chat {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-float);
  overflow: hidden;
  max-width: 460px;
  width: 100%;
}
.chat__head {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.85rem; font-weight: 500;
}
.chat__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); flex: none; }
.chat__status {
  margin-left: auto;
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--silver);
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.chat__status::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink);
  animation: status-pulse 2.4s ease-in-out infinite;
}
@keyframes status-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

.chat__body { padding: 1.2rem; display: grid; gap: 0.65rem; }
.chat__msg {
  max-width: 85%;
  padding: 0.65rem 0.95rem;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.5;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.chat__msg--in { background: var(--mist); border: 1px solid var(--line-soft); border-bottom-left-radius: 6px; justify-self: start; }
.chat__msg--out { background: var(--ink); color: var(--card); border-bottom-right-radius: 6px; justify-self: end; }
.chat__route {
  margin-top: 0.35rem;
  display: inline-flex; align-items: center; gap: 0.5rem;
  justify-self: center;
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--graphite);
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--glass-bg);
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.reveal.is-visible .chat__msg, .reveal.is-visible .chat__route { opacity: 1; transform: none; }
.reveal.is-visible .chat__msg:nth-of-type(1) { transition-delay: 0.2s; }
.reveal.is-visible .chat__msg:nth-of-type(2) { transition-delay: 0.7s; }
.reveal.is-visible .chat__msg:nth-of-type(3) { transition-delay: 1.2s; }
.reveal.is-visible .chat__msg:nth-of-type(4) { transition-delay: 1.7s; }
.reveal.is-visible .chat__route { transition-delay: 2.3s; }

/* ---- Services: floating cards ------------------------------------- */
.svc-list { display: grid; gap: 1.1rem; }
.svc-item {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 3.5vw, 2.4rem);
  display: grid; gap: 0.8rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.svc-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); }
.svc-item__head { display: flex; align-items: baseline; gap: 0.9rem; }
.svc-item__idx { font-family: var(--font-mono); font-size: var(--step--1); color: var(--silver); }
.svc-item h3 { font-size: var(--step-2); }
.svc-item__body { color: var(--graphite); max-width: 58ch; }
.svc-item__points { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; }
.chip {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.04em;
  color: var(--graphite); padding: 0.35rem 0.8rem;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--mist);
}

/* ---- Case (inverted, rounded) -------------------------------------- */
.case {
  background: var(--ink); color: var(--card);
  border-radius: clamp(20px, 3vw, 32px);
  overflow: hidden;
  box-shadow: var(--shadow-float);
}
.case__inner { padding: clamp(2rem, 5vw, 4.5rem); }
.case .eyebrow { color: var(--silver); }
.case .eyebrow::before { background: var(--silver); }
.case__client { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.1em; color: var(--silver); margin-top: 1.25rem; }
.case__title { font-size: var(--step-3); margin-top: 0.75rem; max-width: 22ch; }
.case__desc { color: rgba(255, 255, 255, 0.72); margin-top: 1.5rem; max-width: 60ch; font-size: var(--step-1); }
.case__meta { display: grid; gap: 1.25rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.case__meta dt { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--silver); }
.case__meta dd { font-size: var(--step-1); margin-top: 0.3rem; }
.case__cta { margin-top: 2.5rem; }

/* ---- Process ------------------------------------------------------- */
.steps { display: grid; gap: 0; counter-reset: step; }
.step {
  display: grid; gap: 0.5rem;
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num { font-family: var(--font-mono); font-size: var(--step--1); color: var(--silver); }
.step h3 { font-size: var(--step-2); }
.step p { color: var(--graphite); max-width: 55ch; }

/* ---- Positioning card ---------------------------------------------- */
.pos {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow-card);
}
.pos__inner { padding: clamp(2rem, 5vw, 4rem); display: grid; gap: 2rem; }
.pos h2 { font-size: var(--step-3); max-width: 18ch; }
.pos p { color: var(--graphite); font-size: var(--step-1); max-width: 55ch; }
.pos__points { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pos__points li {
  display: inline-flex; align-items: center;
  font-weight: 500; font-size: 0.92rem;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--mist);
}

/* ---- CTA band: ink card -------------------------------------------- */
.ctaband {
  background: var(--ink); color: var(--card);
  border-radius: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow-float);
  text-align: center;
}
.ctaband__inner {
  max-width: 44ch; margin-inline: auto;
  display: grid; gap: 1.25rem; justify-items: center;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 4vw, 3rem);
}
.ctaband h2 { font-size: var(--step-3); font-weight: 700; }
.ctaband p { color: rgba(255, 255, 255, 0.7); font-size: var(--step-1); }

/* ---- Team ----------------------------------------------------------- */
.team { display: grid; gap: 1.5rem; }
.member {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 1.1rem 1.1rem 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.member:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); }
.member__photo {
  aspect-ratio: 1 / 1; background: var(--mist); border-radius: var(--r-md);
  overflow: hidden; filter: grayscale(1);
}
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member__ph {
  width: 100%; height: 100%; display: grid; place-items: center;
  color: var(--silver); font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.1em; text-align: center; padding: 1rem;
}
.member h3 { font-size: var(--step-1); margin-top: 1.2rem; padding-inline: 0.3rem; }
.member__role { font-family: var(--font-mono); font-size: 0.72rem; color: var(--silver); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.35rem; padding-inline: 0.3rem; }
.member__bio { color: var(--graphite); margin-top: 0.75rem; padding-inline: 0.3rem; }

/* ---- Values --------------------------------------------------------- */
.values { display: grid; gap: 1.1rem; }
.value {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}
.value h3 { font-size: var(--step-1); margin-bottom: 0.6rem; }
.value p { color: var(--graphite); }

/* ---- Blog ----------------------------------------------------------- */
.posts { display: grid; gap: 1.1rem; }
.post {
  display: grid; gap: 0.75rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); }
.post__meta { display: flex; gap: 0.75rem; align-items: center; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; color: var(--silver); text-transform: uppercase; }
.post__meta .tag { color: var(--ink); }
.post h3 { font-size: var(--step-1); }
.post p { color: var(--graphite); }

/* ---- FAQ ------------------------------------------------------------ */
.faq { display: grid; gap: 0.8rem; }
.faq__item {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  padding-inline: clamp(1.2rem, 3vw, 1.8rem);
  transition: box-shadow 0.3s var(--ease);
}
.faq__item[open] { box-shadow: var(--shadow-float); }
.faq__q {
  width: 100%; text-align: left; display: flex; justify-content: space-between; gap: 1rem;
  align-items: center; padding-block: 1.25rem;
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em;
  font-size: var(--step-1); cursor: pointer; list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q .sign { flex: none; width: 1.2rem; height: 1.2rem; position: relative; }
.faq__q .sign::before, .faq__q .sign::after { content: ""; position: absolute; background: var(--ink); inset: 0; margin: auto; }
.faq__q .sign::before { width: 100%; height: 1.5px; }
.faq__q .sign::after { width: 1.5px; height: 100%; transition: transform 0.3s var(--ease); }
.faq__item[open] .sign::after { transform: scaleY(0); }
.faq__a { overflow: hidden; color: var(--graphite); max-width: 65ch; padding-bottom: 1.35rem; }

/* ---- Contact -------------------------------------------------------- */
.contact-grid { display: grid; gap: 2.5rem; }
.contact-grid > * { min-width: 0; }
.form {
  display: grid; gap: 1.15rem;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.field { display: grid; gap: 0.4rem; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field label { font-size: var(--step--1); font-weight: 500; color: var(--graphite); }
.field input, .field textarea {
  width: 100%; min-width: 0;
  font: inherit; font-size: var(--step-0); color: var(--ink);
  background: var(--mist); border: 1px solid var(--line-soft); border-radius: var(--r-sm);
  padding: 0.85rem 1.05rem;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--card); }
.field textarea { resize: vertical; min-height: 130px; }
.form__status { font-size: var(--step--1); font-family: var(--font-mono); min-height: 1.2em; }
.form__status.is-ok { color: var(--ink); }
.form__status.is-err { color: #9a2b2b; }

.methods { display: grid; gap: 0.8rem; align-content: start; }
.methods > * { min-width: 0; }
.method {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-width: 0;
  padding: 1.1rem 1.35rem;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.method:hover { transform: translateY(-3px); box-shadow: var(--shadow-float); }
.method > span:first-child { min-width: 0; }
.method__label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--silver); }
.method__value { font-weight: 600; font-size: clamp(1rem, 0.85rem + 0.75vw, 1.4rem); font-family: var(--font-display); letter-spacing: -0.02em; }

/* ---- Footer --------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); margin-top: var(--section-y); background: var(--pearl); }
.site-footer__inner { display: grid; gap: 2.5rem; padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer__brand .brand__mark { font-size: 2rem; }
.footer__tag { color: var(--graphite); margin-top: 1rem; max-width: 34ch; }
.footer__col h4 { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--silver); margin-bottom: 1rem; }
.footer__col li { margin-bottom: 0.6rem; }
.footer__col a { color: var(--graphite); transition: color 0.25s var(--ease); }
.footer__col a:hover { color: var(--ink); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding-block: 1.5rem; border-top: 1px solid var(--line-soft); font-size: var(--step--1); color: var(--silver); }

/* ---- Page hero (inner pages) --------------------------------------- */
.pagehero { padding-top: clamp(3rem, 6vw, 5.5rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.pagehero h1 { font-size: var(--step-4); font-weight: 700; margin-top: 1.25rem; max-width: 16ch; }
.pagehero p { color: var(--graphite); font-size: var(--step-1); margin-top: 1.4rem; max-width: 50ch; }

/* ---- Reveal animations ---------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---- Responsive up-scaling ------------------------------------------ */
@media (min-width: 720px) {
  .team { grid-template-columns: repeat(3, 1fr); }
  .values { grid-template-columns: repeat(3, 1fr); }
  .posts { grid-template-columns: repeat(3, 1fr); }
  .case__meta { grid-template-columns: repeat(3, 1fr); }
  .pos__inner { grid-template-columns: 1fr 1fr; align-items: center; }
  .svc-list { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .nav { display: block; }
  .header__cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
  .hero__demo { justify-self: end; }
  .steps { grid-template-columns: repeat(2, 1fr); column-gap: 3rem; }
  .contact-grid { grid-template-columns: 1.3fr 0.7fr; align-items: start; }
  .site-footer__inner { grid-template-columns: 1.4fr 0.6fr 0.9fr; gap: 3rem; }
}

/* ---- Reduced motion -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .chat__msg, .chat__route { opacity: 1 !important; transform: none !important; }
}
