/* ============================================================
   Muhammad Rizwan — AI Automation Specialist
   Global design system. Every page uses this one file.
   Do not fork styles per page; extend here.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* Surface */
  --bg:           #08090B;
  --bg-2:         #0B0D11;
  --panel:        #101319;
  --panel-2:      #14171E;
  --panel-3:      #191D25;

  /* Line */
  --line:         rgba(255, 255, 255, 0.075);
  --line-2:       rgba(255, 255, 255, 0.12);
  --line-3:       rgba(255, 255, 255, 0.20);

  /* Ink */
  --text:         #F1F2F4;
  --text-2:       #A5AAB4;
  --text-3:       #767C88;

  /* Accent */
  --accent:       #5C6BF2;
  --accent-hi:    #93A2FF;
  --accent-dim:   rgba(92, 107, 242, 0.16);
  --accent-line:  rgba(92, 107, 242, 0.38);
  --ok:           #3FBF87;

  /* Radius */
  --r-xs: 6px;
  --r-sm: 9px;
  --r:    13px;
  --r-lg: 18px;
  --r-pill: 999px;

  /* Type scale */
  --f-display: clamp(2.15rem, 4.3vw, 3.35rem);
  --f-h2:      clamp(1.75rem, 3.1vw, 2.5rem);
  --f-h3:      1.0625rem;
  --f-body:    1rem;
  --f-sm:      0.875rem;
  --f-xs:      0.8125rem;

  /* Layout */
  --wrap: 1140px;
  --gut: 24px;
  --sec-y: 112px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --fast: 140ms;
  --med:  260ms;

  --nav-h: 64px;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: var(--f-body);
  line-height: 1.62;
  font-feature-settings: "cv05" 1, "cv11" 1, "ss03" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.028em; line-height: 1.14; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(92, 107, 242, 0.34); color: #fff; }

/* ---------- 3. Layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.band { padding-block: var(--sec-y); position: relative; }
.band--tight { padding-block: calc(var(--sec-y) * 0.66); }
.band--edge { border-top: 1px solid var(--line); }

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  padding: 10px 16px;
  border-radius: var(--r-sm);
}
.skip:focus { left: 16px; }

/* ---------- 4. Section heading ---------- */
.head { max-width: 640px; margin-bottom: 48px; }
.head h2 { font-size: var(--f-h2); }
.head p {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 1.0625rem;
  max-width: 58ch;
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.012em;
  white-space: nowrap;
  transition: background var(--fast) var(--ease),
              border-color var(--fast) var(--ease),
              transform var(--fast) var(--ease),
              box-shadow var(--fast) var(--ease);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 1px 2px rgba(0, 0, 0, 0.4);
}
.btn--primary:hover { background: #6877ff; transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  border: 1px solid var(--line-2);
  color: var(--text);
  background: rgba(255, 255, 255, 0.018);
}
.btn--ghost:hover { border-color: var(--line-3); background: rgba(255, 255, 255, 0.05); }

.btn--sm { height: 36px; padding: 0 14px; font-size: 0.875rem; }
.btn--wide { width: 100%; }

/* Quiet inline link */
.qlink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent-hi);
  font-size: 0.9375rem;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.qlink:hover { border-bottom-color: var(--accent-line); }
.qlink svg { flex: none; transition: transform var(--fast) var(--ease); }
.qlink:hover svg { transform: translateX(3px); }

/* ---------- 6. Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(8, 9, 11, 0.72);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--med) var(--ease), background var(--med) var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--line); background: rgba(8, 9, 11, 0.88); }

.nav__in {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 0.9688rem;
  margin-right: auto;
}
.brand__mark { flex: none; }
.brand__mark circle, .brand__mark path { transition: opacity var(--med) var(--ease); }
.brand:hover .brand__mark .pulse { opacity: 1; }
.brand__name { color: var(--text); }
.brand__role {
  color: var(--text-3);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  padding: 7px 12px;
  border-radius: var(--r-xs);
  font-size: 0.9063rem;
  color: var(--text-2);
  letter-spacing: -0.012em;
  transition: color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.nav__links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.045); }
.nav__links a[aria-current="page"] { color: var(--text); }

.nav__cta { margin-left: 12px; }

.burger {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xs);
  align-items: center;
  justify-content: center;
}
.burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  position: relative;
  transition: background var(--fast) var(--ease);
}
.burger span::before, .burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  transition: transform var(--med) var(--ease);
}
.burger span::before { top: -5px; }
.burger span::after { top: 5px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  padding-block: 88px 104px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -320px;
  left: 50%;
  width: 1000px;
  height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(92, 107, 242, 0.20), rgba(92, 107, 242, 0) 62%);
  pointer-events: none;
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translateX(-50%) translateY(0) scale(1); opacity: 0.85; }
  to   { transform: translateX(-46%) translateY(26px) scale(1.06); opacity: 1; }
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 60px;
  align-items: center;
  position: relative;
}

.hero h1 {
  font-size: var(--f-display);
  letter-spacing: -0.038em;
  line-height: 1.03;
}
.hero__sub {
  margin-top: 22px;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 50ch;
}
.hero__acts {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero__note {
  margin-top: 26px;
  font-size: var(--f-sm);
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 9px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  flex: none;
  box-shadow: 0 0 0 3px rgba(63, 191, 135, 0.16);
}

/* ---------- 8. Hero run panel (the one bold moment) ---------- */
.run {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.run__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.014);
}
.run__title { font-size: var(--f-xs); color: var(--text-2); letter-spacing: -0.008em; }
.run__tag {
  margin-left: auto;
  font-size: 0.6875rem;
  color: var(--text-3);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: var(--r-pill);
}
.run__list { padding: 10px 8px 14px; }

.run__step {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--r-sm);
  opacity: 0.22;
  transform: translateY(5px);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease), background 420ms var(--ease);
}
.run__step.is-on { opacity: 1; transform: none; }
.run__step.is-live { background: rgba(92, 107, 242, 0.075); }

.run__ico {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  background: var(--panel-3);
  color: var(--text-2);
}
.run__step.is-on .run__ico { border-color: var(--accent-line); color: var(--accent-hi); }
.run__label { display: block; font-size: 0.875rem; font-weight: 500; letter-spacing: -0.014em; line-height: 1.4; }
.run__detail { display: block; font-size: var(--f-xs); color: var(--text-3); margin-top: 2px; line-height: 1.45; }

.run__foot {
  border-top: 1px solid var(--line);
  padding: 12px 16px;
  font-size: var(--f-xs);
  color: var(--text-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- 9. Card grids ---------- */
.grid { display: grid; gap: 16px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  padding: 24px;
  transition: border-color var(--med) var(--ease), background var(--med) var(--ease);
}
.card:hover { border-color: var(--line-2); background: var(--panel-2); }
.card__ico {
  width: 34px;
  height: 34px;
  border-radius: var(--r-xs);
  display: grid;
  place-items: center;
  background: var(--accent-dim);
  color: var(--accent-hi);
  border: 1px solid var(--accent-line);
  margin-bottom: 16px;
}
.card h3 { font-size: var(--f-h3); }
.card p { margin-top: 8px; color: var(--text-2); font-size: 0.9375rem; line-height: 1.58; }

.after-grid { margin-top: 32px; }

/* ---------- 9b. Card bullet list (services) ---------- */
.card__list { margin-top: 15px; display: grid; gap: 7px; }
.card__list li {
  font-size: 0.8125rem;
  color: var(--text-3);
  line-height: 1.5;
  padding-left: 15px;
  position: relative;
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 1px;
  background: var(--accent-line);
}

/* ---------- 9c. Service group heading ---------- */
.gr { margin-bottom: 28px; max-width: 620px; }
.gr h2 { font-size: 1.375rem; letter-spacing: -0.03em; }
.gr p { margin-top: 10px; color: var(--text-2); font-size: 0.9375rem; }
.gr + .grid { margin-bottom: 0; }
.band--stack { padding-block: 0; }
.band--stack + .band--stack { padding-top: 64px; }

/* ---------- 10. System (video) cards ---------- */
.sys {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--med) var(--ease);
}
.sys:hover { border-color: var(--line-2); }

.sys__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #05060a;
  border-bottom: 1px solid var(--line);
}
.sys__media video { width: 100%; height: 100%; object-fit: cover; }

.sys__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(6, 8, 12, 0.18), rgba(6, 8, 12, 0.66));
  transition: opacity var(--med) var(--ease);
}
.sys__play.is-hidden { opacity: 0; pointer-events: none; }
.sys__play i {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(14, 16, 22, 0.82);
  border: 1px solid var(--line-3);
  backdrop-filter: blur(6px);
  transition: transform var(--med) var(--ease), background var(--med) var(--ease);
}
.sys__play:hover i { transform: scale(1.07); background: var(--accent); border-color: transparent; }

.sys__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.sys__kind {
  font-size: 0.6875rem;
  color: var(--accent-hi);
  background: var(--accent-dim);
  border: 1px solid var(--accent-line);
  padding: 3px 9px;
  border-radius: var(--r-pill);
  align-self: flex-start;
  margin-bottom: 12px;
}
.sys h3 { font-size: var(--f-h3); }
.sys p { margin-top: 8px; color: var(--text-2); font-size: 0.9375rem; line-height: 1.58; }
.sys__stack {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sys__stack span {
  font-size: 0.6875rem;
  color: var(--text-3);
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  padding: 3px 8px;
}

/* ---------- 10b. Case rows (AI Agents page) ---------- */
.case {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  overflow: hidden;
  transition: border-color var(--med) var(--ease);
}
.case:hover { border-color: var(--line-2); }
.case + .case { margin-top: 24px; }

.case__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #05060a;
  border-bottom: 1px solid var(--line);
}
/* Screen recordings are letterboxed rather than cropped, so no part of
   the interface being demonstrated is cut off. */
.case__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.case__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 46px;
  padding: 30px 32px 34px;
}
.case__body h3 { font-size: 1.25rem; letter-spacing: -0.03em; }
.case__lede { margin-top: 10px; color: var(--text-2); font-size: 0.9375rem; line-height: 1.6; }

.case__flow { display: grid; gap: 11px; counter-reset: c; align-content: start; }
.case__flow li {
  position: relative;
  padding-left: 30px;
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.55;
  counter-increment: c;
}
.case__flow li::before {
  content: counter(c);
  position: absolute;
  left: 0;
  top: 1px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  font-size: 0.6875rem;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

/* Honest note strip */
.note {
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent-line);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.018);
  padding: 18px 22px;
  color: var(--text-2);
  font-size: 0.9063rem;
  line-height: 1.6;
  max-width: 70ch;
}

/* ---------- 11. Process (real sequence, so numbered) ---------- */
.steps { display: grid; gap: 0; counter-reset: s; }
.step {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__n {
  counter-increment: s;
  font-size: 0.8125rem;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  padding-top: 3px;
}
.step__n::before { content: counter(s, decimal-leading-zero); }
.step h3 { font-size: var(--f-h3); }
.step p { margin-top: 7px; color: var(--text-2); font-size: 0.9375rem; max-width: 62ch; }

/* ---------- 12. Audience row ---------- */
.aud {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.aud__item {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), transparent);
}
.aud__item h3 { font-size: 1rem; }
.aud__item ul { margin-top: 12px; display: grid; gap: 8px; }
.aud__item li {
  font-size: 0.875rem;
  color: var(--text-2);
  padding-left: 18px;
  position: relative;
}
.aud__item li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid var(--accent-line);
  background: var(--accent-dim);
}

/* ---------- 13. About strip ---------- */
.about {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 52px;
  align-items: start;
}
/* Wider photo column on the About page itself */
.about--page { grid-template-columns: 380px minmax(0, 1fr); gap: 56px; }

.about__photo {
  border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
  overflow: hidden;
  background: var(--panel);
  position: relative;
  line-height: 0;
}
/* height: auto is required — the img tag's height attribute would
   otherwise override the aspect ratio and stretch the photo. */
.about__photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
}
.about__body h2 { font-size: var(--f-h2); }
.about__body p { margin-top: 18px; color: var(--text-2); max-width: 60ch; }
.about__body p strong { color: var(--text); font-weight: 500; }

/* ---------- 13b. Pill row ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills span {
  font-size: 0.8125rem;
  color: var(--text-2);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), transparent);
  border-radius: var(--r-pill);
  padding: 7px 15px;
  letter-spacing: -0.008em;
  transition: border-color var(--med) var(--ease), color var(--med) var(--ease);
}
.pills span:hover { border-color: var(--line-2); color: var(--text); }

/* Small fact row under the portrait */
.facts { margin-top: 18px; display: grid; gap: 9px; }
.facts li {
  font-size: var(--f-sm);
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 9px;
}
.facts svg { flex: none; color: var(--accent-hi); }

/* ---------- 14. CTA band ---------- */
.cta {
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 52px 48px;
  background:
    radial-gradient(900px 300px at 50% -60%, rgba(92, 107, 242, 0.20), transparent 70%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  text-align: center;
}
.cta h2 { font-size: var(--f-h2); }
.cta p { margin: 16px auto 0; color: var(--text-2); max-width: 52ch; }
.cta__acts {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta__meta {
  margin-top: 26px;
  display: flex;
  gap: 10px 28px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: var(--f-sm);
  color: var(--text-3);
}
.cta__meta a { color: var(--text-2); }
.cta__meta a:hover { color: var(--accent-hi); }

/* ---------- 15. Footer ---------- */
.foot {
  border-top: 1px solid var(--line);
  padding-block: 48px 40px;
  background: var(--bg-2);
}
.foot__top {
  display: grid;
  grid-template-columns: 1.6fr repeat(2, 1fr);
  gap: 40px;
}
.foot__blurb { color: var(--text-3); font-size: 0.9063rem; max-width: 34ch; margin-top: 14px; }
.foot h4 {
  font-size: var(--f-xs);
  color: var(--text-3);
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
}
.foot ul { display: grid; gap: 10px; }
.foot li a { font-size: 0.9063rem; color: var(--text-2); transition: color var(--fast) var(--ease); }
.foot li a:hover { color: var(--text); }
.foot__base {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: var(--f-xs);
  color: var(--text-3);
}

/* ---------- 16. Page header (inner pages) ---------- */
.phead { padding-block: 72px 8px; position: relative; }
.phead::before {
  content: "";
  position: absolute;
  top: -260px;
  left: 50%;
  width: 820px;
  height: 500px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(92, 107, 242, 0.15), transparent 64%);
  pointer-events: none;
}
.phead h1 { font-size: clamp(2.1rem, 4.2vw, 3.15rem); letter-spacing: -0.034em; position: relative; }
.phead p {
  margin-top: 18px;
  color: var(--text-2);
  font-size: 1.0625rem;
  max-width: 58ch;
  position: relative;
}

/* ---------- 16b. Contact page ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  padding: 30px 32px 32px;
}
.panel h2 { font-size: 1.25rem; letter-spacing: -0.03em; }
.panel__lede { margin-top: 10px; color: var(--text-2); font-size: 0.9375rem; line-height: 1.6; }
.panel + .panel { margin-top: 20px; }

/* Form */
.form { margin-top: 24px; display: grid; gap: 17px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.field { display: grid; gap: 7px; }
.field > span { font-size: var(--f-xs); color: var(--text-2); }
.field > span i { color: var(--text-3); font-style: normal; }

.input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 0.9375rem;
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
textarea.input { height: auto; min-height: 120px; padding: 11px 13px; line-height: 1.55; resize: vertical; }
select.input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5 6 7.5l3-3' stroke='%2371767F' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}
select.input option { background: var(--panel-2); color: var(--text); }
.input::placeholder { color: var(--text-3); }
.input:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-dim); }
.input[aria-invalid="true"] { border-color: #B8554F; }

.err { font-size: var(--f-xs); color: #E38A83; display: none; }
.err.is-on { display: block; }

.formfoot { margin-top: 3px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.formnote { font-size: var(--f-xs); color: var(--text-3); max-width: 42ch; line-height: 1.5; }

.ok {
  display: none;
  margin-top: 22px;
  border: 1px solid rgba(63, 191, 135, 0.34);
  background: rgba(63, 191, 135, 0.07);
  border-radius: var(--r-sm);
  padding: 18px 20px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text);
}
.ok.is-on { display: block; }

/* Direct contact rows */
.direct { display: grid; gap: 2px; margin-top: 14px; }
.direct a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 12px;
  margin-inline: -12px;
  border-radius: var(--r-sm);
  transition: background var(--fast) var(--ease);
}
.direct a:hover { background: rgba(255, 255, 255, 0.04); }
.direct i {
  width: 34px;
  height: 34px;
  border-radius: var(--r-xs);
  border: 1px solid var(--accent-line);
  background: var(--accent-dim);
  color: var(--accent-hi);
  display: grid;
  place-items: center;
  flex: none;
}
.direct b { display: block; font-size: 0.9375rem; font-weight: 500; letter-spacing: -0.012em; }
.direct small { display: block; font-size: var(--f-xs); color: var(--text-3); }

/* ---------- 17. Placeholder panel (pages not built yet) ---------- */
.soon {
  border: 1px dashed var(--line-2);
  border-radius: var(--r-lg);
  background: var(--panel);
  padding: 56px 40px;
  text-align: center;
}
.soon h2 { font-size: 1.375rem; }
.soon p { margin: 14px auto 0; color: var(--text-2); max-width: 48ch; }
.soon__acts { margin-top: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- 18. Scroll reveal ---------- */
.rv {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}
.rv.is-in { opacity: 1; transform: none; }
.rv[data-d="1"] { transition-delay: 70ms; }
.rv[data-d="2"] { transition-delay: 140ms; }
.rv[data-d="3"] { transition-delay: 210ms; }

/* ---------- 19. Responsive ---------- */
@media (max-width: 900px) {
  .contact { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

@media (max-width: 860px) {
  .case__body { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px 22px 28px; }
}

@media (max-width: 980px) {
  :root { --sec-y: 84px; }

  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px var(--gut) 22px;
    background: rgba(8, 9, 11, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--med) var(--ease), transform var(--med) var(--ease);
  }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { padding: 13px 10px; font-size: 1rem; border-radius: var(--r-sm); }
  .burger { display: inline-flex; }
  .nav__cta { display: none; }

  .hero { padding-block: 60px 76px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .hero__sub { max-width: none; }

  .grid--3, .aud, .foot__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .about__photo { max-width: 260px; }
  .foot__top > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  :root { --gut: 18px; --sec-y: 68px; }
  .brand__role { display: none; }
  .grid--3, .grid--2, .aud, .foot__top { grid-template-columns: minmax(0, 1fr); }
  .cta { padding: 40px 22px; }
  .row2 { grid-template-columns: minmax(0, 1fr); }
  .panel { padding: 24px 22px 26px; }
  .step { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
  .head { margin-bottom: 34px; }
  .hero__acts .btn { flex: 1 1 auto; }
  .soon { padding: 40px 22px; }
}

/* ---------- 20. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .rv { opacity: 1; transform: none; }
  .run__step { opacity: 1; transform: none; }
}
