/* ============================================================
   UpMelo Agency — Design tokens
   ============================================================ */
:root {
  --paper: #F7F5FB;
  --paper-raised: #FFFFFF;
  --ink: #14101B;
  --ink-soft: #5C5069;
  --line: #E4DCF0;
  --line-dark: rgba(247, 245, 251, 0.14);

  --violet: #5B2A9E;
  --violet-bright: #7C4CC4;
  --violet-deep: #1E0F3A;
  --violet-deep-2: #150A29;
  --magenta: #C0286B;
  --lilac: #C9B6E8;
  --lilac-pale: #EFE9F9;
  --gold: #C79A4B;

  --font-display: 'General Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Public Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body { line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--violet); color: #fff; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 48px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--violet);
  display: inline-block;
}
.on-dark .eyebrow { color: var(--lilac); }
.on-dark .eyebrow::before { background: var(--lilac); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p { color: var(--ink-soft); margin: 0; }
.on-dark p, .on-dark .ink-soft-dark { color: rgba(247, 245, 251, 0.68); }
.on-dark { color: var(--paper); }

/* reveal split-line utility (js adds .split-line spans) */
.reveal-line { overflow: hidden; display: block; }

/* ============================================================
   Layout skeleton
   ============================================================ */
#lenis-wrapper { }

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 26px 0;
  mix-blend-mode: normal;
  transition: background 0.4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.nav.scrolled {
  transform: scale(0.985) translateY(-2px);
  background: rgba(20, 16, 27, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-dark);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-brand img { height: 26px; width: auto; filter: brightness(0) invert(1); }
.nav-brand span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247,245,251,0.55);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-links a:not(.btn) {
  font-size: 13.5px;
  color: rgba(247, 245, 251, 0.72);
  transition: color 0.25s var(--ease);
  position: relative;
}
.nav-links a:not(.btn):hover { color: #fff; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 100px;
  border: 1px solid rgba(247,245,251,0.16);
}
.lang-flag {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: none;
  border-radius: 4px;
  overflow: hidden;
  width: 24px;
  height: 17px;
  opacity: 0.45;
  transform: scale(0.94);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.lang-flag svg { width: 100%; height: 100%; display: block; }
.lang-flag:hover { opacity: 0.8; }
.lang-flag.is-active { opacity: 1; transform: scale(1); box-shadow: 0 0 0 2px rgba(247,245,251,0.7); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 13px 24px;
  border-radius: 100px;
  border: 1px solid rgba(247,245,251,0.3);
  color: #fff;
  transition: border-color .35s var(--ease), background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.btn:hover { border-color: #fff; background: #fff; color: var(--ink); transform: translateY(-1px); }
.btn-solid {
  background: var(--violet);
  border-color: var(--violet);
}
.btn-solid:hover { background: var(--violet-bright); border-color: var(--violet-bright); color: #fff; }
.btn-dark {
  border-color: rgba(20,16,27,0.25);
  color: var(--ink);
}
.btn-dark:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn svg { width: 13px; height: 13px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translate(2px, -2px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  background: radial-gradient(120% 100% at 50% 0%, var(--violet-deep) 0%, var(--violet-deep-2) 58%, #0D0716 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--paper);
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 100px;
}
.hero-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lilac);
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-kicker::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(199,154,75,0.18);
}
.hero-headline {
  font-size: clamp(34px, 5.6vw, 84px);
  line-height: 1.04;
  max-width: 17ch;
  font-weight: 600;
}
.hero-headline em {
  font-style: normal;
  color: var(--gold);
}
.hero-sub {
  margin-top: 30px;
  max-width: 46ch;
  font-size: clamp(15px, 1.15vw, 18px);
  color: rgba(247,245,251,0.68);
  line-height: 1.65;
}
.hero-foot {
  margin-top: 56px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line-dark);
  padding-top: 24px;
}
.hero-cta-row { display: flex; gap: 16px; align-items: center; }
.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247,245,251,0.5);
}
.scroll-cue .line {
  width: 1px; height: 34px;
  background: linear-gradient(var(--gold), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue .line i {
  position: absolute; left: 0; top: -100%;
  width: 100%; height: 100%;
  background: var(--gold);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { to { top: 100%; } }

/* ============================================================
   PROOF / STATS BAR
   ============================================================ */
.proof {
  background: var(--paper);
  padding: 110px 0;
  border-bottom: 1px solid var(--line);
}
.proof-head { max-width: 640px; margin-bottom: 64px; }
.proof-head h2 { font-size: clamp(24px, 2.6vw, 32px); margin-top: 14px; }
.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.proof-item {
  padding: 0 32px;
  border-left: 1px solid var(--line);
  position: relative;
}
.proof-item:first-child { padding-left: 0; border-left: none; }
.proof-num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(34px, 3.4vw, 52px);
  color: var(--gold);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.proof-label {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--ink-soft);
  max-width: 22ch;
  line-height: 1.5;
}

/* ============================================================
   MARKET PAIN
   ============================================================ */
.pain {
  background: var(--ink);
  color: var(--paper);
  padding: 130px 0;
}
.pain-head { max-width: 720px; }
.pain-head h2 { font-size: clamp(26px, 3.4vw, 40px); margin-top: 16px; color: #fff; }
.pain-body {
  max-width: 640px;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.pain-body p { color: rgba(247,245,251,0.68); font-size: 16.5px; line-height: 1.7; }

.pain-list {
  list-style: none;
  margin: 64px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 40px;
  max-width: 920px;
  border-top: 1px solid var(--line-dark);
  padding-top: 40px;
}
.pain-list li {
  font-size: 15px;
  color: rgba(247,245,251,0.82);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  line-height: 1.5;
}
.pain-list li::before {
  content: "✕";
  color: var(--magenta);
  font-family: var(--font-mono);
  font-size: 13px;
  flex: none;
  margin-top: 1px;
}
.pain-caption {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247,245,251,0.4);
}

.pain-quote {
  margin: 70px 0 0;
  max-width: 680px;
  padding: 40px 0 0;
  border-top: 1px solid var(--line-dark);
}
.pain-quote p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(19px, 2.1vw, 25px);
  line-height: 1.5;
  color: #fff;
  letter-spacing: -0.005em;
}
.pain-quote footer {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.pain-quote footer svg { width: 26px; height: 26px; flex: none; }
.pain-quote footer span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(247,245,251,0.55);
}

/* ============================================================
   SERVICES — radial orbital layout
   ============================================================ */
.services-orbit {
  background: var(--ink);
  color: var(--paper);
  padding: 130px 0 150px;
  position: relative;
  overflow: hidden;
}
.services-orbit-head { max-width: 680px; margin-bottom: 70px; }
.services-orbit-head h2 { font-size: clamp(30px, 4vw, 50px); margin-top: 16px; color: #fff; }

.orbit-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.orbit-stage {
  position: relative;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orbit-ring {
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
}
.orbit-core {
  position: absolute;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--magenta), var(--violet));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}
.orbit-core svg { width: 22px; height: 22px; }
.orbit-core-ping {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(247,245,251,0.25);
  animation: orbit-ping 2.4s cubic-bezier(0,0,0.2,1) infinite;
}
.orbit-core-ping.p1 { width: 78px; height: 78px; }
.orbit-core-ping.p2 { width: 98px; height: 98px; animation-delay: 0.6s; }
@keyframes orbit-ping {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

.orbit-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: opacity 0.5s var(--ease);
}
.orbit-dot {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--ink);
  border: 1.5px solid rgba(247,245,251,0.3);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.orbit-dot svg { width: 19px; height: 19px; }
.orbit-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  color: rgba(247,245,251,0.62);
  transition: color 0.3s var(--ease);
}
.orbit-node:hover .orbit-dot { border-color: #fff; }
.orbit-node.is-related .orbit-dot {
  border-color: var(--gold);
  animation: orbit-pulse 1.4s ease-in-out infinite;
}
@keyframes orbit-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(199,154,75,0.35); }
  50% { box-shadow: 0 0 0 6px rgba(199,154,75,0); }
}
.orbit-node.is-active .orbit-dot {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
  transform: scale(1.18);
}
.orbit-node.is-active .orbit-label { color: #fff; }

.orbit-detail {
  background: rgba(247,245,251,0.03);
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  padding: 40px;
  min-height: 360px;
  display: flex;
  align-items: center;
}
.orbit-detail-empty p:last-child {
  color: rgba(247,245,251,0.5);
  font-size: 15px;
  max-width: 34ch;
  line-height: 1.6;
}
.orbit-detail-content { width: 100%; }
.orbit-detail-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.05em;
}
.orbit-detail-title {
  font-size: clamp(24px, 2.6vw, 32px);
  color: #fff;
  margin-top: 10px;
}
.orbit-detail-desc {
  margin-top: 16px;
  color: rgba(247,245,251,0.65);
  font-size: 15px;
  line-height: 1.65;
}
.orbit-detail-includes {
  list-style: none;
  margin: 26px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.orbit-detail-includes li {
  font-size: 13.5px;
  color: rgba(247,245,251,0.78);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.orbit-detail-includes li::before {
  content: "—";
  color: var(--violet-bright);
  font-family: var(--font-mono);
}
.orbit-detail-related {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.orbit-detail-related > span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(247,245,251,0.4);
}
.related-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.related-chips button {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(247,245,251,0.75);
  background: rgba(247,245,251,0.06);
  border: 1px solid var(--line-dark);
  border-radius: 100px;
  padding: 6px 14px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.related-chips button:hover { background: var(--violet); color: #fff; border-color: var(--violet); }

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  background: var(--lilac-pale);
  padding: 150px 0;
  overflow: hidden;
}
.about .wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 90px;
  align-items: center;
}
.about-photo {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 4px;
  overflow: hidden;
  clip-path: inset(0 0 100% 0);
}
.about-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.15);
  filter: grayscale(0.15) contrast(1.02);
}
.about-photo .frame {
  position: absolute; inset: 14px;
  border: 1px solid rgba(255,255,255,0.5);
  pointer-events: none;
}
.about-copy p { font-size: 17px; line-height: 1.75; color: var(--ink); }
.about-copy p + p { margin-top: 20px; }
.about-sig {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.about-sig .rocket { width: 30px; height: 30px; flex: none; }
.about-sig-name { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.about-sig-role { font-family: var(--font-mono); font-size: 11.5px; color: var(--violet); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  background: var(--violet-deep-2);
  color: var(--paper);
  padding: 130px 0 110px;
  position: relative;
  overflow: hidden;
}
.testimonials-head { max-width: 620px; margin-bottom: 70px; }
.testimonials-head h2 { font-size: clamp(28px, 3.4vw, 44px); margin-top: 16px; color: #fff; }
.t-track-wrap { overflow: hidden; }
.t-track {
  display: flex;
  gap: 28px;
  width: max-content;
}
.t-card {
  width: min(420px, 82vw);
  flex: none;
  background: rgba(247,245,251,0.04);
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
}
.t-quote {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.t-meta { margin-top: 32px; display: flex; align-items: center; gap: 14px; }
.t-stars { color: var(--gold); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; }
.t-who { font-size: 13px; color: rgba(247,245,251,0.6); }
.t-who b { color: #fff; font-weight: 500; display: block; font-size: 13.5px; margin-bottom: 2px; }

/* ============================================================
   CLIENT LOGOS
   ============================================================ */
.clients {
  background: var(--paper-raised);
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.clients-head { text-align: center; margin-bottom: 40px; }
.clients-head .eyebrow { justify-content: center; }
.clients-head .eyebrow::before { display: none; }
.clients-track-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.clients-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
}
.client-logo {
  flex: none;
  height: 56px;
  min-width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  filter: grayscale(1);
  opacity: 0.5;
  transition: opacity 0.3s var(--ease), filter 0.3s var(--ease);
}
.client-logo:hover { filter: grayscale(0); opacity: 1; }
.client-logo img {
  max-height: 100%;
  max-width: 140px;
  width: auto;
  object-fit: contain;
}
/* personal-brand clients: circular avatar crop instead of a logo tile */
.client-logo-round { min-width: 56px; }
.client-logo-round img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}
/* placeholder styling — remove once real logos are dropped in */
.client-logo span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 16px 28px;
}

/* ============================================================
   CTA
   ============================================================ */
.cta {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: 190px 0 140px;
  overflow: hidden;
  text-align: center;
}
.cta-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; }
.cta-content { position: relative; z-index: 2; }
.cta .eyebrow { justify-content: center; }
.cta .eyebrow::before { display: none; }
.cta h2 {
  margin: 24px auto 0;
  font-size: clamp(32px, 5.4vw, 68px);
  max-width: 16ch;
  color: #fff;
  line-height: 1.08;
}
.cta p {
  margin: 26px auto 0;
  max-width: 46ch;
  color: rgba(247,245,251,0.62);
  font-size: 16px;
}
.cta-actions { margin-top: 46px; display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--ink);
  color: rgba(247,245,251,0.5);
  padding: 40px 0 48px;
  border-top: 1px solid var(--line-dark);
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}
.foot-legal { display: flex; flex-direction: column; gap: 6px; }
footer .foot-links { display: flex; align-items: center; gap: 26px; }
footer a:hover { color: #fff; }
.footer-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  transition: color 0.25s var(--ease);
}
.footer-link-btn:hover { color: #fff; }

/* ============================================================
   CONTACT MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 16, 27, 0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.modal-overlay.is-open { opacity: 1; pointer-events: auto; }
.modal-panel {
  position: relative;
  width: min(480px, 100%);
  background: var(--paper-raised);
  border-radius: 10px;
  padding: 44px;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.4s var(--ease);
}
.modal-overlay.is-open .modal-panel { transform: translateY(0) scale(1); }
.modal-panel h3 { font-size: 24px; margin-top: 12px; margin-bottom: 28px; }
.modal-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.modal-close:hover { background: var(--ink); color: #fff; }
.modal-close svg { width: 15px; height: 15px; }

#contact-form { display: flex; flex-direction: column; gap: 18px; }
#contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
#contact-form input,
#contact-form textarea {
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  resize: vertical;
}
#contact-form input:focus,
#contact-form textarea:focus {
  outline: none;
  border-color: var(--violet);
}
.btn-form-submit {
  border: none;
  margin-top: 6px;
  justify-content: center;
}
.form-status {
  font-size: 13px;
  color: var(--ink-soft);
  min-height: 18px;
}
.form-status.ok { color: var(--violet); }
.form-status.err { color: var(--magenta); }

/* ============================================================
   FLOATING AI CHAT
   ============================================================ */
.chat-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}
.chat-toggle {
  width: 58px; height: 58px;
  border-radius: 50%;
  border: none;
  background: var(--violet);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(91, 42, 158, 0.4);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.chat-toggle:hover { background: var(--violet-bright); transform: translateY(-2px); }
.chat-toggle svg { width: 24px; height: 24px; position: absolute; transition: opacity 0.25s var(--ease), transform 0.25s var(--ease); }
.chat-toggle .ico-close { opacity: 0; transform: rotate(-45deg); }
.chat-toggle.is-open .ico-chat { opacity: 0; transform: rotate(45deg); }
.chat-toggle.is-open .ico-close { opacity: 1; transform: rotate(0); }

.chat-panel {
  width: min(340px, calc(100vw - 48px));
  height: min(440px, calc(100vh - 140px));
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(20, 16, 27, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-panel[hidden] {
  display: none;
}
.chat-panel-head {
  background: var(--ink);
  color: #fff;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-panel-name { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; }
.chat-panel-status {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: rgba(247,245,251,0.55);
  display: flex;
  align-items: center;
  gap: 6px;
}
.chat-panel-status i { width: 6px; height: 6px; border-radius: 50%; background: #4ADE80; display: inline-block; }
.chat-panel-head button {
  background: none;
  border: none;
  color: rgba(247,245,251,0.6);
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-panel-head button:hover { color: #fff; }
.chat-panel-head button svg { width: 15px; height: 15px; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-msg {
  max-width: 85%;
  font-size: 13.5px;
  line-height: 1.5;
  padding: 11px 14px;
  border-radius: 12px;
}
.chat-msg.bot {
  align-self: flex-start;
  background: var(--lilac-pale);
  color: var(--ink);
  border-bottom-left-radius: 3px;
}
.chat-msg.user {
  align-self: flex-end;
  background: var(--violet);
  color: #fff;
  border-bottom-right-radius: 3px;
}
.chat-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid var(--line);
}
.chat-input-row input {
  flex: 1;
  border: none;
  background: var(--paper);
  border-radius: 8px;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--ink);
}
.chat-input-row input:focus { outline: 2px solid var(--violet); outline-offset: 1px; }
.chat-input-row button {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--violet);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.chat-input-row button:hover { background: var(--violet-bright); }
.chat-input-row button svg { width: 15px; height: 15px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .wrap { padding: 0 28px; }
  .about .wrap { grid-template-columns: 1fr; gap: 50px; }
  .about-photo { max-width: 420px; }
  .proof-strip { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .proof-item:nth-child(3) { border-left: none; padding-left: 0; }
  .pain-list { grid-template-columns: 1fr; max-width: 560px; }
  .orbit-wrap { grid-template-columns: 1fr; gap: 60px; }
  .orbit-stage { height: 400px; }
}
@media (max-width: 680px) {
  .nav-links a:not(.btn) { display: none; }
  .nav .btn { padding: 11px 16px; font-size: 10.5px; white-space: nowrap; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 30px; }
  .proof-strip { grid-template-columns: 1fr; row-gap: 36px; }
  .proof-item { border-left: none; padding-left: 0; }
  .pain { padding: 90px 0; }
  .services-orbit { padding: 90px 0 110px; }
  .orbit-stage { height: 340px; }
  .orbit-ring { width: 280px; height: 280px; }
  .orbit-detail { padding: 28px; min-height: 280px; }
  footer .wrap { flex-direction: column; gap: 18px; text-align: center; }
  .foot-legal { align-items: center; }
  footer .foot-links { flex-wrap: wrap; justify-content: center; gap: 16px 22px; }
  .chat-widget { right: 16px; bottom: 16px; }
  .chat-panel { width: calc(100vw - 32px); }
  .modal-panel { padding: 32px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
