/* ============================================================
   JustWork · premium AI virtual-employee service
   Palette derived from the brand mark: warm cream + luminous white
   ============================================================ */

:root {
  /* warm neutrals */
  --cream:        #e8e2d5;
  --cream-2:      #ede8dd;
  --paper:        #faf7f0;
  --paper-warm:   #f3eee4;
  --ink:          #1d1a13;
  --ink-soft:     #4b463c;
  --muted:        #8b8478;
  --line:         rgba(29, 26, 19, 0.12);
  --line-strong:  rgba(29, 26, 19, 0.22);

  /* premium accent: bronzed gold pulled from the cream */
  --gold:         #b29355;
  --gold-deep:    #8d723c;
  --gold-soft:    rgba(178, 147, 85, 0.16);

  /* dark espresso for contrast moments */
  --espresso:     #16130d;
  --espresso-2:   #211d15;
  --espresso-card:#262119;
  --on-dark:      #efe9dd;
  --on-dark-soft: #b7ae9d;

  --glow:         rgba(255, 253, 244, 0.95);

  --serif: "Fraunces", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --r-lg: 26px;
  --r-md: 16px;
  --r-sm: 10px;
  --shadow-soft: 0 24px 60px -28px rgba(45, 38, 22, 0.35);
  --shadow-card: 0 30px 80px -40px rgba(45, 38, 22, 0.5);
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  background-image:
    radial-gradient(1200px 700px at 78% -8%, var(--paper) 0%, transparent 60%),
    radial-gradient(900px 600px at 8% 18%, var(--paper-warm) 0%, transparent 55%);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* grain + ambient layers */
#ambient {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; opacity: 0.5;
}
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 460px; height: 460px;
  margin: -230px 0 0 -230px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,253,244,0.55) 0%, rgba(178,147,85,0.10) 35%, transparent 70%);
  pointer-events: none; z-index: 1; mix-blend-mode: soft-light;
  transition: opacity 0.4s ease; opacity: 0;
  will-change: transform;
}
body > *:not(#ambient):not(.cursor-glow):not(.float-cta):not(.ava-launcher):not(.ava-panel):not(.ava-intro) { position: relative; z-index: 2; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- type ---------- */
h1, h2, h3 { font-weight: 400; line-height: 1.08; letter-spacing: -0.02em; }
.serif-em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--gold-deep); }

.eyebrow {
  font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 500; display: inline-block; margin-bottom: 1.1rem;
}

/* ---------- brand mark (exact uploaded logo) ---------- */
/* the mark is a white glowing pill; a warm golden glow matches the logo's neon halo */
.logo-img { display: block; width: auto; height: auto;
  filter: drop-shadow(0 0 5px rgba(244,210,122,0.28)); }
.logo-img--sm { height: 34px; }
.logo-img--lg { height: 76px; margin-inline: auto;
  filter: drop-shadow(0 0 12px rgba(244,210,122,0.3)); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-size: 0.92rem; font-weight: 500; border-radius: 999px;
  padding: 0.85em 1.5em; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s, color 0.3s;
  white-space: nowrap;
}
.btn--solid {
  background: var(--ink); color: var(--paper);
  box-shadow: 0 14px 30px -14px rgba(29,26,19,0.7);
}
.btn--solid:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -16px rgba(29,26,19,0.8); }
.btn--ghost {
  background: transparent; border-color: var(--line-strong); color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--text { background: transparent; color: var(--ink-soft); padding-left: 0.4em; }
.btn--text:hover { color: var(--ink); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 2rem;
  padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
  transition: background 0.4s, box-shadow 0.4s, padding 0.4s;
}
.nav.is-stuck {
  background: rgba(245, 241, 232, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
  padding-top: 0.8rem; padding-bottom: 0.8rem;
}
.nav__brand { margin-inline-end: auto; }
.nav__links { display: flex; gap: 1.8rem; font-size: 0.9rem; color: var(--ink-soft); }
.nav__links a { position: relative; padding: 0.2em 0; transition: color 0.25s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--gold-deep); transition: width 0.3s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }

/* ---------- hero ---------- */
.hero { padding: 9.5rem clamp(1.2rem, 4vw, 3rem) 0; max-width: var(--maxw); margin: 0 auto; }
.hero__halo {
  position: absolute; top: 4%; right: 6%; width: 520px; height: 520px; z-index: 0;
  background: radial-gradient(circle, rgba(255,253,244,0.9) 0%, rgba(178,147,85,0.12) 40%, transparent 70%);
  filter: blur(10px); pointer-events: none;
}
.hero__inner {
  display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__title {
  font-size: clamp(2.6rem, 6vw, 4.6rem); margin: 0.4rem 0 1.4rem;
}
.hero__lede {
  font-size: clamp(1.02rem, 1.5vw, 1.22rem); color: var(--ink-soft);
  max-width: 30em; margin-bottom: 2.1rem;
}
.hero__lede strong { color: var(--ink); font-weight: 600; }
.hero__actions { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.hero__ticks {
  list-style: none; display: flex; gap: 1.6rem; flex-wrap: wrap; margin-top: 2.4rem;
  font-size: 0.85rem; color: var(--muted);
}
.hero__ticks li { position: relative; padding-left: 1.1rem; }
.hero__ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px;
  border-radius: 50%; background: var(--gold);
}

/* hero employee profile card */
.emp-card {
  background: linear-gradient(165deg, var(--espresso-2), var(--espresso));
  color: var(--on-dark); border-radius: var(--r-lg); padding: 1.5rem;
  box-shadow: var(--shadow-card); border: 1px solid rgba(255,255,255,0.07);
  position: relative; overflow: hidden;
}
.emp-card::before {
  content: ""; position: absolute; top: -45%; right: -15%; width: 60%; height: 85%;
  background: radial-gradient(circle, rgba(178,147,85,0.28), transparent 70%); pointer-events: none;
}
.emp-card > * { position: relative; }
.emp-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; }
.emp-card__badge { font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold);
  border: 1px solid rgba(178,147,85,0.4); border-radius: 999px; padding: 0.4em 0.85em; }
.emp-card__online { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.76rem; color: #8fd9a8; }
.emp-card__online i { width: 8px; height: 8px; border-radius: 50%; background: #7fd49a; animation: pulse 2.4s infinite; }

.emp-card__id { display: flex; align-items: center; gap: 1.1rem; padding-bottom: 1.3rem; margin-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.09); }
.emp-card__avatar { position: relative; width: 64px; height: 64px; flex: none; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 32%, #4a4133, #241f17); border: 1.5px solid rgba(178,147,85,0.5); }
.emp-card__avatar::after { content: ""; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
  width: 46px; height: 28px; border-radius: 23px 23px 0 0; background: linear-gradient(160deg, var(--gold), var(--gold-deep)); z-index: 1; }
.emp-card__face { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); width: 31px; height: 32px;
  border-radius: 50% 50% 48% 48%; background: linear-gradient(160deg, #f3d4ab, #e1b585); z-index: 2; }
.emp-card__hair { position: absolute; left: 50%; top: 9px; transform: translateX(-50%); width: 35px; height: 18px;
  border-radius: 18px 18px 5px 5px; background: #3a2c20; z-index: 3; }
.emp-card__who { display: flex; flex-direction: column; gap: 0.12rem; }
.emp-card__name { font-family: var(--serif); font-size: 1.4rem; color: #fffdf6; line-height: 1.1; }
.emp-card__role { font-size: 0.84rem; color: var(--on-dark); }
.emp-card__email { font-size: 0.8rem; color: var(--on-dark-soft); }

.emp-card__now { display: flex; align-items: center; gap: 0.7rem; background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.06); border-radius: var(--r-md); padding: 0.85rem 1rem; margin-bottom: 1.2rem; }
.emp-card__now-label { font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
  background: var(--gold-soft); border-radius: 6px; padding: 0.4em 0.6em; flex: none; }
.emp-card__now-task { font-size: 0.9rem; color: var(--on-dark); }
.emp-card__now-task::after { content: "▍"; color: var(--gold); margin-left: 1px; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.emp-card__stats { display: flex; gap: 0.6rem; }
.emp-card__stat { flex: 1; text-align: center; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06); border-radius: var(--r-sm); padding: 0.8rem 0.3rem; }
.emp-card__stat b { display: block; font-family: var(--serif); font-size: 1.5rem; color: #fffdf6; font-variant-numeric: tabular-nums; }
.emp-card__stat small { font-size: 0.64rem; color: var(--on-dark-soft); text-transform: uppercase; letter-spacing: 0.07em; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(127,212,154,0.6); }
  70% { box-shadow: 0 0 0 10px rgba(127,212,154,0); }
  100% { box-shadow: 0 0 0 0 rgba(127,212,154,0); }
}

/* marquee */
.marquee {
  margin-top: 5rem; padding: 1.1rem 0; border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex; gap: 1.4rem; white-space: nowrap; width: max-content;
  animation: scroll 32s linear infinite; font-size: 0.95rem; color: var(--ink-soft);
  align-items: center;
}
.marquee__track span:nth-child(even) { color: var(--gold); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- generic section ---------- */
section { padding: clamp(4.5rem, 9vw, 8rem) clamp(1.2rem, 4vw, 3rem); max-width: var(--maxw); margin: 0 auto; }
.section-head { max-width: 44rem; margin-bottom: 3.4rem; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: 1.1rem; }
.section-head p { color: var(--ink-soft); font-size: 1.06rem; max-width: 38em; }

/* ---------- concept ---------- */
.concept__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.feature {
  background: rgba(255,255,255,0.45); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 1.8rem 1.5rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); background: var(--paper); }
.feature__icon {
  font-size: 1.5rem; display: grid; place-items: center; width: 50px; height: 50px;
  border-radius: 14px; background: var(--gold-soft); margin-bottom: 1.1rem;
}
.feature h3 { font-size: 1.18rem; margin-bottom: 0.5rem; }
.feature p { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- use cases ---------- */
.tabs { display: inline-flex; gap: 0.3rem; padding: 0.35rem; background: rgba(255,255,255,0.5);
  border: 1px solid var(--line); border-radius: 999px; margin-bottom: 2.6rem; }
.tab {
  font-family: var(--sans); font-size: 0.92rem; border: none; cursor: pointer;
  padding: 0.7em 1.4em; border-radius: 999px; color: var(--ink-soft); background: transparent;
  transition: background 0.3s, color 0.3s; font-weight: 500;
}
.tab.is-active { background: var(--ink); color: var(--paper); }
.uc-panel { display: none; }
.uc-panel.is-active { display: block; animation: fade 0.5s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.uc-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.uc {
  background: rgba(255,255,255,0.4); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 1.4rem 1.3rem; transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.uc:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow-soft); }
.uc h4 { font-size: 1.02rem; font-weight: 600; margin-bottom: 0.4rem; }
.uc p { font-size: 0.86rem; color: var(--ink-soft); }

/* ---------- use-case full-flow viewer ---------- */
.usecases__sub { text-align: center; max-width: 47rem; margin: 0 auto 1.6rem; color: var(--ink-soft); line-height: 1.6; }
.uc-flow { display: grid; grid-template-columns: 290px 1fr; gap: 1.3rem; align-items: start; }

.uc-flow__list { display: flex; flex-direction: column; gap: 0.5rem; }
.uc-role { text-align: start; cursor: pointer; font: inherit; display: flex; flex-direction: column; gap: 0.12rem;
  padding: 0.7rem 0.95rem; border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(255,255,255,0.45);
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease); }
.uc-role:hover { border-color: var(--gold); transform: translateX(3px); }
.uc-role.is-active { background: var(--ink); border-color: var(--ink); }
.uc-role__name { font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.uc-role__line { font-size: 0.75rem; color: var(--muted); }
.uc-role.is-active .uc-role__name { color: #fffdf6; }
.uc-role.is-active .uc-role__line { color: rgba(239,233,221,0.6); }

.uc-flow__detail { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper);
  padding: clamp(1.3rem, 3vw, 2rem); box-shadow: var(--shadow-soft); }
.uc-detail__head { display: flex; flex-direction: column; gap: 0.3rem; }
.uc-detail__role { font-family: var(--serif); font-weight: 400; font-size: clamp(1.4rem, 3vw, 2rem); color: var(--ink); line-height: 1.1; }
.uc-detail__line { font-family: var(--serif); font-style: italic; color: var(--gold-deep); font-size: 1.05rem; }
.uc-detail__badge { align-self: flex-start; margin-top: 0.3rem; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 600; color: var(--gold-deep); background: var(--gold-soft); padding: 0.32em 0.85em; border-radius: 999px; }

.uc-steps { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.uc-step { display: grid; grid-template-columns: 26px 1fr; gap: 0.9rem; padding-bottom: 1.15rem; }
.uc-step:last-child { padding-bottom: 0; }
.uc-step__rail { position: relative; width: 26px; }
.uc-step__rail::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
  background: var(--line); transform: translateX(-50%); }
.uc-step:first-child .uc-step__rail::before { top: 7px; }
.uc-step:last-child .uc-step__rail::before { bottom: auto; height: 7px; }
.uc-step__dot { position: absolute; top: 3px; left: 50%; transform: translateX(-50%); width: 12px; height: 12px;
  border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--line); }
.uc-step--judge .uc-step__dot { background: var(--gold-deep); box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px rgba(141,114,60,0.5); }
.uc-step--done .uc-step__dot { background: #5f8f63; box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px rgba(95,143,99,0.45); }
.uc-step__body { padding-top: 0; }
.uc-step__top { display: flex; align-items: center; flex-wrap: wrap; gap: 0.45rem; }
.uc-step__tool { font-size: 0.64rem; letter-spacing: 0.07em; text-transform: uppercase; font-weight: 600;
  color: var(--gold-deep); background: var(--gold-soft); padding: 0.18em 0.55em; border-radius: 6px; }
.uc-step__tag { font-size: 0.62rem; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 600;
  padding: 0.14em 0.6em; border-radius: 999px; border: 1px solid; }
.uc-step__tag--judge { color: var(--gold-deep); border-color: rgba(178,147,85,0.55); background: rgba(178,147,85,0.08); }
.uc-step__tag--done { color: #4f7a52; border-color: rgba(95,143,99,0.5); background: rgba(95,143,99,0.08); }
.uc-step__text { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.5; margin: 0.28rem 0 0; }

.uc-detail__foot { margin-top: 1.3rem; padding-top: 1rem; border-top: 1px solid var(--line);
  font-family: var(--serif); font-style: italic; font-size: 0.98rem; color: var(--ink-soft); line-height: 1.5; }

/* "don't see your role" entry + panel */
.uc-role--more { border-style: dashed; border-color: var(--line-strong); background: transparent; }
.uc-role--more .uc-role__name { color: var(--gold-deep); }
.uc-role--more:hover { border-color: var(--gold); background: var(--gold-soft); }
.uc-role--more.is-active { background: var(--gold-soft); border-color: var(--gold); border-style: solid; }
.uc-role--more.is-active .uc-role__name { color: var(--gold-deep); }
.uc-role--more.is-active .uc-role__line { color: var(--ink-soft); }

.uc-more__lead { font-size: 0.96rem; color: var(--ink-soft); line-height: 1.6; margin: 1.3rem 0 0; }
.uc-more__also { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
  color: var(--muted); margin: 1.4rem 0 0.7rem; }
.uc-more__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.4rem; padding: 0; }
.uc-more__tags li { font-size: 0.82rem; color: var(--ink-soft); padding: 0.4em 0.85em; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.5); }
.uc-more__cta-line { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--ink); margin: 0 0 1rem; }
.uc-more__cta { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.uc-more.play .uc-more__lead, .uc-more.play .uc-more__also, .uc-more.play .uc-more__tags li,
.uc-more.play .uc-more__cta-line, .uc-more.play .uc-more__cta { animation: ucStep 0.5s var(--ease) both; }
.uc-more.play .uc-more__also { animation-delay: 0.08s; }
.uc-more.play .uc-more__tags li { animation-delay: calc(0.12s + var(--n, 0) * 0.03s); }
.uc-more.play .uc-more__cta-line { animation-delay: 0.5s; }
.uc-more.play .uc-more__cta { animation-delay: 0.58s; }

/* staggered step reveal */
.uc-steps .uc-step { opacity: 0; transform: translateY(10px); }
.uc-steps.play .uc-step { animation: ucStep 0.5s var(--ease) both; animation-delay: calc(var(--i) * 0.07s); }
@keyframes ucStep { to { opacity: 1; transform: none; } }

@media (max-width: 880px) {
  .uc-flow { grid-template-columns: 1fr; }
  .uc-flow__list { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 0.5rem; padding-bottom: 0.4rem; -webkit-overflow-scrolling: touch; }
  .uc-role { flex: 0 0 auto; min-width: 13rem; }
}
@media (prefers-reduced-motion: reduce) {
  .uc-steps .uc-step { opacity: 1; transform: none; animation: none !important; }
}

/* ---------- architecture builder (dark) ---------- */
.arch { max-width: none; width: 100%; background: var(--espresso); color: var(--on-dark);
  border-radius: 0; margin-top: 2rem; }
.arch > .section-head { max-width: 44rem; margin-left: auto; margin-right: auto; text-align: center; }
.arch .section-head h2 { color: #fffdf6; }
.arch .section-head .serif-em { color: var(--gold); }
.arch .section-head p { color: var(--on-dark-soft); margin: 0 auto; }
.arch__stage {
  max-width: var(--maxw); margin: 0 auto; background: var(--espresso-2);
  border: 1px solid rgba(255,255,255,0.08); border-radius: var(--r-lg); padding: 2rem;
  display: grid; grid-template-columns: 300px 1fr; gap: 2rem; align-items: center;
}
.arch__controls { display: flex; flex-direction: column; gap: 2rem; }
.control__label { display: block; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-soft); margin-bottom: 0.9rem; }
.control input[type=range] { width: 100%; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 4px;
  background: rgba(255,255,255,0.15); outline: none; }
.control input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold); cursor: pointer; box-shadow: 0 0 0 5px rgba(178,147,85,0.2); transition: transform 0.2s; }
.control input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.12); }
.control input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border: none; border-radius: 50%; background: var(--gold); cursor: pointer; }
.control__value { display: inline-block; margin-top: 0.9rem; font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: #fffdf6; }
.arch__readout { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.arch__readout b { display: block; font-family: var(--serif); font-size: 1.9rem; color: #fffdf6; }
.arch__readout small { font-size: 0.72rem; color: var(--on-dark-soft); text-transform: uppercase; letter-spacing: 0.06em; }
.infinity { font-family: var(--serif); color: var(--gold) !important; }
.arch__canvas svg { width: 100%; height: auto; display: block; }
.arch__canvas .edge { stroke: rgba(178,147,85,0.5); stroke-width: 1.5; fill: none; transition: opacity 0.5s; }
.arch__canvas .node-box { fill: var(--espresso-card); stroke: rgba(255,255,255,0.14); }
.arch__canvas .node-box.is-root { stroke: var(--gold); fill: #2c2519; }
.arch__canvas .node-label { fill: var(--on-dark); font-family: var(--sans); font-size: 12px; font-weight: 500; }
.arch__canvas .node-sub { fill: var(--on-dark-soft); font-family: var(--sans); font-size: 9.5px; }

/* ---------- why / stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 3rem; }
.stat { text-align: center; padding: 2rem 1rem; background: rgba(255,255,255,0.4);
  border: 1px solid var(--line); border-radius: var(--r-md); }
.stat b { display: block; font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 3.6rem); color: var(--ink); line-height: 1; }
.stat small { font-size: 0.82rem; color: var(--ink-soft); margin-top: 0.6rem; display: block; }

/* cost justification */
.cost { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.2rem; align-items: stretch; }
.cost__col { background: rgba(255,255,255,0.45); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.6rem 1.6rem 1.7rem; display: flex; flex-direction: column; }
.cost__col--jw { background: var(--paper); border-color: rgba(178,147,85,0.5); box-shadow: var(--shadow-soft); }
.cost__vs { align-self: center; font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--muted); }
.cost__tag { display: inline-block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; margin-bottom: 1.2rem; }
.cost__tag--jw { color: var(--gold-deep); }
.cost__lines { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.cost__lines li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  font-size: 0.9rem; padding-bottom: 0.7rem; border-bottom: 1px solid var(--line); }
.cost__lines li:last-child { border-bottom: none; }
.cost__lines span { color: var(--ink-soft); }
.cost__lines b { font-weight: 600; color: var(--ink); text-align: end; white-space: nowrap; }
.cost__col--human .cost__lines b { color: var(--ink-soft); }
.cost__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 1.3rem; padding-top: 1.1rem;
  border-top: 2px solid var(--line); }
.cost__total span { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.cost__total b { font-family: var(--serif); font-size: 1.9rem; color: var(--ink); }
.cost__col--jw .cost__total { border-top-color: rgba(178,147,85,0.5); }
.cost__col--jw .cost__total b { color: var(--gold-deep); }
.cost__bar { height: 8px; border-radius: 5px; background: rgba(29,26,19,0.08); margin-top: 1.1rem; overflow: hidden; }
.cost__bar i { display: block; height: 100%; width: 0; border-radius: 5px;
  background: var(--muted); transition: width 1.2s var(--ease); }
.cost__bar--jw i { background: linear-gradient(90deg, var(--gold), var(--gold-deep)); }
.cost.is-in .cost__bar i { width: var(--w); }

/* pricing-process column */
.cost__lines--how li { display: flex; align-items: flex-start; justify-content: flex-start; gap: 0.85rem; }
.cost__lines--how .how__n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-soft); color: var(--gold-deep); font-weight: 600; font-size: 0.8rem; font-family: var(--sans); }
.how__txt { display: flex; flex-direction: column; gap: 0.2rem; }
.how__txt b { color: var(--ink); font-weight: 600; font-size: 0.95rem; text-align: start; white-space: normal; }
.how__txt small { color: var(--ink-soft); font-size: 0.84rem; line-height: 1.5; }
.how__tiers { list-style: none; margin: 0.6rem 0 0.45rem; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.how__tiers li { display: flex; justify-content: space-between; align-items: baseline; gap: 0.8rem;
  padding: 0.4rem 0.7rem; border-radius: 9px; background: var(--gold-soft); border: none; }
.how__tiers span { color: var(--ink-soft); font-size: 0.82rem; }
.how__tiers b { color: var(--gold-deep); font-weight: 600; font-size: 0.78rem; text-align: end; }
.how__note { display: block; color: var(--muted); font-style: italic; font-size: 0.8rem !important; }
.cost__total--how b { font-size: 1.4rem; }

.cost__punch { text-align: center; max-width: 40rem; margin: 2.6rem auto 0;
  font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 1.8rem); line-height: 1.4; color: var(--ink); }
.cost__punch b { font-weight: 400; color: var(--gold-deep); }
.cost__punch span { display: block; margin-top: 0.6rem; font-family: var(--sans); font-style: normal;
  font-size: 0.98rem; color: var(--ink-soft); }
.cost__fine { text-align: center; max-width: 44rem; margin: 1rem auto 0; font-size: 0.8rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq__list { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { cursor: pointer; list-style: none; padding: 1.3rem 2.6rem 1.3rem 0; position: relative;
  font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--ink); font-weight: 500; transition: color 0.25s; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 0.2rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 300; color: var(--gold-deep); transition: transform 0.35s var(--ease); line-height: 1; }
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item summary:hover { color: var(--gold-deep); }
.faq__item p { padding: 0 2.6rem 1.4rem 0; margin: 0; color: var(--ink-soft); font-size: 1rem; max-width: 64ch;
  animation: faqOpen 0.4s var(--ease); }
@keyframes faqOpen { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- process ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; counter-reset: s; }
.step { padding: 1.8rem 1.5rem; border-top: 2px solid var(--ink); position: relative; }
.step__no { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--gold-deep); display: block; margin-bottom: 0.8rem; }
.step h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- inline section CTAs ---------- */
.inline-cta { margin-top: 3rem; display: flex; flex-direction: column; align-items: center; gap: 1.1rem; text-align: center; }
.inline-cta > p { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2.5vw, 1.7rem); color: var(--ink); margin: 0; }
.inline-cta__actions { display: flex; gap: 0.8rem; flex-wrap: wrap; justify-content: center; }
.inline-cta--dark { margin-top: 2.4rem; }
.inline-cta--dark > p { color: #fffdf6; }
.inline-cta--dark .btn--solid { background: var(--gold); color: #1d1a13; }
.inline-cta--dark .btn--solid:hover { background: #c7a667; }
.inline-cta--dark .btn--ghost { color: var(--on-dark); border-color: rgba(255,255,255,0.28); }
.inline-cta--dark .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- floating sticky CTA ---------- */
.float-cta {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 60;
  display: inline-flex; align-items: center; gap: 0.5em; padding: 0.85em 1.45em; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-size: 0.9rem; font-weight: 500;
  box-shadow: 0 18px 40px -14px rgba(29,26,19,0.65);
  transform: translateY(150%); opacity: 0; pointer-events: none;
  transition: transform 0.5s var(--ease), opacity 0.4s, background 0.3s;
}
.float-cta.is-shown { transform: none; opacity: 1; pointer-events: auto; }
.float-cta:hover { background: var(--gold-deep); }
.float-cta__txt { display: inline-block; }
.float-cta__txt.swap { animation: ctaSwap 0.42s var(--ease); }
@keyframes ctaSwap { 0% { opacity: 0; transform: translateY(7px); } 100% { opacity: 1; transform: none; } }
.float-cta__ic { transition: transform 0.3s var(--ease); }
.float-cta:hover .float-cta__ic { transform: translateX(3px); }

/* ---------- mid-page CTA band ---------- */
.ctaband { max-width: none; width: 100%; padding-top: 0; padding-bottom: 0; }
.ctaband__inner {
  max-width: var(--maxw); margin: 0 auto; padding: clamp(2rem, 4vw, 3rem) clamp(1.6rem, 4vw, 3rem);
  background: linear-gradient(135deg, var(--espresso-2), var(--espresso));
  border-radius: var(--r-lg); color: var(--on-dark); box-shadow: var(--shadow-card);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.ctaband__inner::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(22,19,13,0.78) 0%, rgba(22,19,13,0.25) 42%, transparent 66%),
              radial-gradient(500px 260px at 85% -20%, rgba(178,147,85,0.28), transparent 70%); }
/* interactive workforce grid as the band's living background */
.ctaband__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.7; }
.ctaband__copy, .ctaband__actions { z-index: 2; }
.ctaband__copy { position: relative; }
.ctaband__copy h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); color: #fffdf6; margin-bottom: 0.5rem; }
.ctaband__copy .serif-em { color: var(--gold); }
.ctaband__copy p { color: var(--on-dark-soft); max-width: 34em; font-size: 0.98rem; }
.ctaband__actions { position: relative; display: flex; gap: 0.8rem; flex-wrap: wrap; }
.ctaband__actions .btn--solid { background: var(--gold); color: #1d1a13; }
.ctaband__actions .btn--solid:hover { background: #c7a667; }
.ctaband__actions .btn--ghost { color: var(--on-dark); border-color: rgba(255,255,255,0.28); }
.ctaband__actions .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- pricing anchor ---------- */
.ctaband__pricetag { display: inline-block; margin-top: 1rem; font-size: 0.82rem; color: var(--gold);
  border: 1px solid rgba(178,147,85,0.4); border-radius: 999px; padding: 0.45em 1em; letter-spacing: 0.01em; }

.cta__pricing { margin: 1.5rem auto 0; max-width: 40rem; font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- contact / get started ---------- */
.ord { display: inline-block; color: var(--gold-deep); }
.ord.swap { animation: ordSwap 0.5s var(--ease); }
@keyframes ordSwap { 0% { opacity: 0; transform: translateY(9px); } 100% { opacity: 1; transform: none; } }
.cta__head { max-width: 640px; margin: 0 auto 2.6rem; text-align: center; }
.cta__head .logo-img { margin: 0 auto 1.6rem; }
.cta__head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 1rem; }
.cta__head p { color: var(--ink-soft); font-size: 1.04rem; }
.cta__grid { display: grid; grid-template-columns: 1.4fr 0.85fr; gap: 1.4rem; align-items: stretch; }

/* quote / inquiry form */
.quote {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; gap: 1rem;
}
.quote__intent { display: inline-flex; gap: 0.3rem; padding: 0.32rem; background: var(--paper-warm);
  border: 1px solid var(--line); border-radius: 999px; align-self: flex-start; flex-wrap: wrap; }
.intent { font-family: var(--sans); font-size: 0.86rem; border: none; cursor: pointer; font-weight: 500;
  padding: 0.6em 1.15em; border-radius: 999px; color: var(--ink-soft); background: transparent; transition: background 0.3s, color 0.3s; }
.intent.is-active { background: var(--ink); color: var(--paper); }
.quote__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.quote label { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.78rem; font-weight: 500;
  color: var(--ink-soft); letter-spacing: 0.01em; }
.quote__full { grid-column: 1 / -1; }
.quote input, .quote select, .quote textarea {
  font-family: var(--sans); font-size: 0.95rem; color: var(--ink); padding: 0.8em 1em;
  border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: #fff; width: 100%;
  transition: border-color 0.25s, box-shadow 0.25s; resize: vertical;
}
.quote input::placeholder, .quote textarea::placeholder { color: var(--muted); }
.quote input:focus, .quote select:focus, .quote textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft);
}
.quote select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238b8478' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1em center; padding-right: 2.4em; }
.quote .btn--solid { align-self: flex-start; margin-top: 0.3rem; }
.quote__fine { font-size: 0.76rem; color: var(--muted); }

/* alternate contact methods */
.contactways {
  background: linear-gradient(165deg, var(--espresso-2), var(--espresso)); color: var(--on-dark);
  border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 0.7rem;
}
.contactways h3 { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
  font-weight: 500; margin-bottom: 0.5rem; }
.cway { display: flex; align-items: center; gap: 0.85rem; padding: 0.9rem 1rem; border-radius: var(--r-md);
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
  transition: background 0.3s, transform 0.3s var(--ease), border-color 0.3s; }
.cway:hover { background: rgba(255,255,255,0.08); transform: translateX(4px); border-color: rgba(178,147,85,0.4); }
.cway__ic { width: 38px; height: 38px; flex: none; display: grid; place-items: center; font-size: 1.1rem;
  border-radius: 11px; background: var(--gold-soft); }
.cway__txt { display: flex; flex-direction: column; }
.cway__txt b { font-size: 0.94rem; font-weight: 500; color: #fffdf6; }
.cway__txt small { font-size: 0.78rem; color: var(--on-dark-soft); }
.cway__arrow { margin-left: auto; color: var(--gold); transition: transform 0.3s var(--ease); }
.cway:hover .cway__arrow { transform: translateX(4px); }
.contactways__note { margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.08); }
.contactways__note b { color: var(--gold); font-size: 0.9rem; }
.contactways__note p { font-size: 0.82rem; color: var(--on-dark-soft); margin-top: 0.3rem; }

/* ---------- footer ---------- */
.footer {
  max-width: var(--maxw); margin: 0 auto; padding: 2.5rem clamp(1.2rem, 4vw, 3rem) 3.5rem;
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted);
}
.footer p { margin-right: auto; }
.footer__links { display: flex; gap: 1.4rem; }
.footer__links a:hover { color: var(--ink); }

/* ============================================================
   DASHBOARD · Sims-style live employee view
   ============================================================ */
.dash { }
.dash__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 1.4rem; align-items: start; }

/* --- the sim scene --- */
.sim {
  background: var(--espresso); border-radius: var(--r-lg); padding: 1rem;
  border: 1px solid rgba(255,255,255,0.07); box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
}
.sim__topbar { display: flex; align-items: center; gap: 0.7rem; padding: 0.3rem 0.5rem 0.8rem; color: var(--on-dark-soft); font-size: 0.78rem; }
.sim__clock { font-family: var(--serif); font-size: 1.25rem; color: #fffdf6; font-variant-numeric: tabular-nums; }
.sim__phase { letter-spacing: 0.04em; }
.sim__live { margin-left: auto; display: inline-flex; align-items: center; gap: 0.4rem; color: #8fd9a8; }
.sim__live i { width: 7px; height: 7px; border-radius: 50%; background: #7fd49a; animation: pulse 2.4s infinite; }

.sim__room {
  position: relative; height: 280px; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}
.sim__sky { position: absolute; inset: 0; transition: background 1.4s linear; background: linear-gradient(180deg,#dfe7ef,#f3ead9); }
.sim__window {
  position: absolute; top: 18px; left: 24px; right: 24px; height: 120px; border-radius: 10px;
  border: 3px solid rgba(40,32,20,0.55); overflow: hidden; background: transparent;
}
.sim__window::after { content:""; position:absolute; left:50%; top:0; bottom:0; width:3px; margin-left:-1.5px; background: rgba(40,32,20,0.45); }
.sim__sun { position: absolute; width: 26px; height: 26px; border-radius: 50%; left: 22%; top: 30%;
  transition: left 1.4s linear, top 1.4s linear, background 1.4s, box-shadow 1.4s; }
.sim__stars { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s;
  background-image: radial-gradient(1.4px 1.4px at 30px 30px, #fff, transparent),
                    radial-gradient(1.4px 1.4px at 90px 60px, #fff, transparent),
                    radial-gradient(1.6px 1.6px at 160px 40px, #fff, transparent),
                    radial-gradient(1.2px 1.2px at 220px 80px, #fff, transparent),
                    radial-gradient(1.5px 1.5px at 280px 50px, #fff, transparent);
}
.sim__room.is-night .sim__stars { opacity: 0.8; }

/* floor */
.sim__room::after { content:""; position:absolute; left:0; right:0; bottom:0; height: 86px;
  background: linear-gradient(180deg, rgba(38,30,20,0.0), rgba(38,30,20,0.18)); }

.sim__stage { position: absolute; left: 0; right: 0; bottom: 0; height: 150px; }

/* character */
.sim__char { position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%); width: 64px; height: 84px;
  animation: simType 1.1s ease-in-out infinite; transform-origin: bottom center; z-index: 3; }
@keyframes simType { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(2px); } }
.sim__head { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 34px; height: 34px; border-radius: 50% 50% 46% 46%;
  background: linear-gradient(160deg,#f0cfa6,#e0b483); border: 1.5px solid rgba(40,30,18,0.25); }
.sim__head::after { content:""; position:absolute; left:50%; top:-5px; transform:translateX(-50%); width:30px; height:16px;
  border-radius: 16px 16px 0 0; background:#3a2c20; }
.sim__torso { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 50px; height: 52px;
  border-radius: 18px 18px 8px 8px; background: linear-gradient(165deg, var(--gold), var(--gold-deep)); }
.sim__arm { position: absolute; bottom: 18px; width: 10px; height: 30px; border-radius: 6px; background: var(--gold-deep); transform-origin: top center; }
.sim__arm--l { left: 10px; animation: simArm 0.55s ease-in-out infinite alternate; }
.sim__arm--r { right: 10px; animation: simArm 0.55s ease-in-out infinite alternate-reverse; }
@keyframes simArm { from { transform: rotate(-8deg); } to { transform: rotate(10deg); } }

/* plumbob */
.sim__plumbob { position: absolute; left: 50%; bottom: 128px; transform: translateX(-50%) rotate(45deg);
  width: 13px; height: 13px; background: linear-gradient(135deg,#9be8a8,#39b766); border-radius: 2px; z-index: 4;
  box-shadow: 0 0 12px rgba(80,220,130,0.8); animation: simBob 2.4s ease-in-out infinite; }
@keyframes simBob { 0%,100% { transform: translateX(-50%) rotate(45deg) translateY(0); } 50% { transform: translateX(-50%) rotate(45deg) translateY(-5px); } }

/* speech bubble */
.sim__bubble { position: absolute; left: 50%; bottom: 150px; transform: translateX(-50%); z-index: 5;
  background: var(--paper); color: var(--ink); font-size: 0.72rem; font-weight: 500; padding: 0.4em 0.7em;
  border-radius: 10px; white-space: nowrap; max-width: 70%; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 8px 20px -10px rgba(0,0,0,0.5); }
.sim__bubble::after { content:""; position:absolute; left:50%; bottom:-5px; transform:translateX(-50%) rotate(45deg); width:10px; height:10px; background: var(--paper); }

/* desk + monitor */
.sim__desk { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 200px; height: 40px;
  background: linear-gradient(180deg,#3a2e20,#2a2017); border-radius: 6px; z-index: 4; }
.sim__monitor { position: absolute; left: 18px; bottom: 28px; width: 70px; height: 46px; border-radius: 4px;
  background: #15120c; border: 3px solid #0c0a07; }
.sim__monitor::after { content:""; position:absolute; left:50%; bottom:-9px; transform:translateX(-50%); width:18px; height:9px; background:#0c0a07; }
.sim__screen { position: absolute; inset: 4px; display: flex; flex-direction: column; gap: 3px; justify-content: center;
  background: linear-gradient(160deg,#1d3a4f,#15212c); border-radius: 2px; overflow: hidden; }
.sim__screen span { height: 3px; border-radius: 2px; background: var(--gold); opacity: 0.8; }
.sim__screen span:nth-child(1) { width: 60%; animation: simCode 1.3s steps(4) infinite; }
.sim__screen span:nth-child(2) { width: 40%; background:#7fd49a; animation: simCode 1.7s steps(4) infinite; }
.sim__screen span:nth-child(3) { width: 75%; animation: simCode 1.1s steps(4) infinite; }
.sim__screen span:nth-child(4) { width: 30%; background:#cdd6ff; animation: simCode 1.9s steps(4) infinite; }
@keyframes simCode { 0%{ transform: scaleX(0.4);} 50%{ transform: scaleX(1);} 100%{ transform: scaleX(0.6);} }
.sim__screen span { transform-origin: left; }

.sim__coffee { position: absolute; right: 22px; bottom: 28px; width: 13px; height: 12px; border-radius: 0 0 6px 6px; background: var(--paper); }
.sim__coffee::after { content:""; position:absolute; right:-5px; top:2px; width:6px; height:6px; border:2px solid var(--paper); border-radius:50%; }
.sim__steam { position: absolute; left: 5px; top: -10px; width: 3px; height: 10px; border-radius: 3px; background: rgba(255,255,255,0.5);
  animation: simSteam 1.8s ease-in-out infinite; }
@keyframes simSteam { 0%{ opacity:0; transform: translateY(4px) scaleY(0.6);} 50%{ opacity:0.7;} 100%{ opacity:0; transform: translateY(-6px) scaleY(1.2);} }

.sim__plant { position: absolute; right: 26px; bottom: 36px; width: 22px; height: 30px; z-index: 3; }
.sim__plant::after { content:""; position:absolute; left:50%; bottom:0; transform:translateX(-50%); width:18px; height:14px; border-radius:0 0 6px 6px; background:#7a5a3c; }
.sim__plant i { position: absolute; bottom: 12px; left: 50%; width: 8px; height: 20px; border-radius: 50% 50% 50% 0; background: #4f7d52; transform-origin: bottom center; }
.sim__plant i:nth-child(1){ transform: translateX(-50%) rotate(-22deg);} .sim__plant i:nth-child(2){ transform: translateX(-50%) rotate(0);} .sim__plant i:nth-child(3){ transform: translateX(-50%) rotate(22deg);}

/* motive bars */
.sim__motives { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem 1rem; padding: 1rem 0.5rem 0.3rem; }
.motive { display: flex; align-items: center; gap: 0.6rem; font-size: 0.74rem; color: var(--on-dark-soft); }
.motive span { width: 64px; flex: none; }
.motive__bar { flex: 1; height: 7px; border-radius: 4px; background: rgba(255,255,255,0.1); overflow: hidden; }
.motive__bar i { display: block; height: 100%; width: 100%; border-radius: 4px;
  background: linear-gradient(90deg,#7fd49a,#9be8a8); animation: motivePulse 3s ease-in-out infinite; }
@keyframes motivePulse { 0%,100%{ filter: brightness(1);} 50%{ filter: brightness(1.18);} }
.sim__note { padding: 0 0.5rem 0.4rem; font-size: 0.72rem; color: var(--muted); }

/* --- the live panel --- */
.dash__panel { display: flex; flex-direction: column; gap: 1rem; }
.dash__label { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); font-weight: 500; }
.dash__now { background: rgba(255,255,255,0.45); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.1rem 1.3rem; }
.dash__task { font-family: var(--serif); font-size: 1.25rem; color: var(--ink); margin: 0.4rem 0 0.9rem; min-height: 1.4em; }
.dash__progress { height: 6px; border-radius: 4px; background: rgba(29,26,19,0.1); overflow: hidden; }
.dash__progress i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-deep)); }

.dash__counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.dash__counters > div { text-align: center; background: rgba(255,255,255,0.45); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0.9rem 0.4rem; }
.dash__counters b { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.dash__counters small { font-size: 0.64rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.05em; }
.dash__counters b.pop { animation: countPop 0.4s var(--ease); }
@keyframes countPop { 0%{ transform: scale(1);} 35%{ transform: scale(1.18); color: var(--gold-deep);} 100%{ transform: scale(1);} }

.dash__log { background: rgba(255,255,255,0.45); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem 1.2rem; }
.dash__log ul { list-style: none; margin-top: 0.7rem; display: flex; flex-direction: column; gap: 0.5rem; min-height: 120px; }
.dash__log li { font-size: 0.82rem; color: var(--ink-soft); opacity: 0; transform: translateY(-6px); transition: opacity 0.4s, transform 0.4s; }
.dash__log li.in { opacity: 1; transform: none; }
.dash__log li .t { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 0.5rem; font-size: 0.76rem; }
.dash__log li .ok { color: var(--ok, #3f9d6b); float: right; }

.dash__report { background: linear-gradient(165deg, var(--espresso-2), var(--espresso)); color: var(--on-dark);
  border-radius: var(--r-md); padding: 1.1rem 1.3rem; }
.dash__report-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.dash__report .dash__label { color: var(--gold); }
.btn--xs { padding: 0.45em 0.9em; font-size: 0.76rem; }
.dash__report .btn--ghost { color: var(--on-dark); border-color: rgba(255,255,255,0.25); }
.dash__report .btn--ghost:hover { background: var(--gold); color: #1d1a13; border-color: var(--gold); }
.report-empty { font-size: 0.84rem; color: var(--on-dark-soft); margin-top: 0.8rem; }
.report-table { width: 100%; border-collapse: collapse; margin-top: 0.8rem; }
.report-table tr { opacity: 0; transform: translateY(6px); animation: reportRow 0.5s var(--ease) forwards; border-bottom: 1px solid rgba(255,255,255,0.08); }
.report-table tr:last-child { border-bottom: none; }
.report-table td { padding: 0.5rem 0; font-size: 0.86rem; }
.report-table td:first-child { color: var(--on-dark-soft); }
.report-table td:last-child { text-align: right; color: #fffdf6; font-weight: 500; }
@keyframes reportRow { to { opacity: 1; transform: none; } }

/* --- use case card animations --- */
.uc__viz { display: block; height: 62px; margin-bottom: 0.9rem; border-radius: var(--r-sm);
  background: linear-gradient(165deg, rgba(255,255,255,0.55), rgba(243,238,228,0.4));
  border: 1px solid var(--line); overflow: hidden; }
.uc__viz svg { width: 100%; height: 100%; }
.uc:hover .uc__viz { border-color: var(--gold); }

/* hero sim card sizing */
.sim--hero { width: 100%; max-width: 520px; margin-inline: auto; position: relative; }

/* floating number cards that fade in and out over the hero card */
.sim__stats { position: absolute; inset: 0; pointer-events: none; z-index: 5; overflow: hidden; border-radius: var(--r-lg); }
.stat-card {
  position: absolute; display: flex; flex-direction: column; gap: 1px;
  padding: 0.5rem 0.8rem; border-radius: 13px;
  background: rgba(250, 247, 240, 0.94); border: 1px solid var(--line);
  box-shadow: 0 16px 34px -16px rgba(0, 0, 0, 0.6);
  opacity: 0; transform: translateY(10px) scale(0.94);
  transition: opacity 0.55s var(--ease), transform 0.6s var(--ease);
}
.stat-card.is-in { opacity: 1; transform: none; }
.stat-card b { font-family: var(--serif); font-size: 1.5rem; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-card span { font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }

/* ============================================================
   THE WEB APP WE PROVIDE: work dashboard + chat
   ============================================================ */
.webapp { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-card); }
.webapp__chrome { display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem 1rem;
  background: var(--paper-warm); border-bottom: 1px solid var(--line); }
.webapp__dots { display: flex; gap: 6px; }
.webapp__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(29,26,19,0.16); }
.webapp__dots i:first-child { background: #d99b6c; }
.webapp__url { font-size: 0.78rem; color: var(--muted); background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 0.3em 0.9em; }

.webapp__body { display: grid; grid-template-columns: 1.55fr 1fr; min-height: 470px; }
.webapp__main { padding: 1.5rem 1.6rem; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 1.3rem; }

.webapp__head { display: flex; align-items: center; gap: 0.85rem; }
.webapp__avatar { position: relative; width: 44px; height: 44px; flex: none; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 32%, #4a4133, #241f17); border: 1.5px solid rgba(178,147,85,0.5); }
.webapp__avatar::after { content: ""; position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%);
  width: 32px; height: 18px; border-radius: 16px 16px 0 0; background: linear-gradient(160deg, var(--gold), var(--gold-deep)); z-index: 1; }
.webapp__face { position: absolute; left: 50%; top: 9px; transform: translateX(-50%); width: 21px; height: 22px;
  border-radius: 50% 50% 48% 48%; background: linear-gradient(160deg, #f3d4ab, #e1b585); z-index: 2; }
.webapp__hair { position: absolute; left: 50%; top: 6px; transform: translateX(-50%); width: 24px; height: 12px;
  border-radius: 12px 12px 4px 4px; background: #3a2c20; z-index: 3; }
.webapp__avatar--sm { width: 36px; height: 36px; }
.webapp__avatar--sm .webapp__face { top: 7px; width: 18px; height: 18px; }
.webapp__avatar--sm .webapp__hair { top: 5px; width: 20px; height: 10px; }
.webapp__id { display: flex; flex-direction: column; }
.webapp__id b { font-size: 1rem; color: var(--ink); }
.webapp__id small { font-size: 0.78rem; color: var(--muted); }
.webapp__on { color: #3f9d6b; }
.webapp__clock { margin-left: auto; font-family: var(--serif); font-size: 1rem; color: var(--ink-soft);
  font-variant-numeric: tabular-nums; background: var(--paper-warm); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.3em 0.85em; }

.webapp__kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.webapp__kpis > div { text-align: center; background: rgba(255,255,255,0.6); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 0.85rem 0.4rem; }
.webapp__kpis b { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.webapp__kpis small { font-size: 0.62rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.webapp__kpis b.pop { animation: countPop 0.4s var(--ease); }

.webapp__now .dash__task { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); margin: 0.4rem 0 0.8rem; min-height: 1.4em; }
.webapp__feed { flex: 1; }
.webapp__feed ul { list-style: none; margin-top: 0.7rem; display: flex; flex-direction: column; gap: 0.5rem; }
.webapp__feed li { font-size: 0.84rem; color: var(--ink-soft); opacity: 0; transform: translateY(-6px);
  transition: opacity 0.4s, transform 0.4s; }
.webapp__feed li.in { opacity: 1; transform: none; }
.webapp__feed li .t { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 0.5rem; font-size: 0.76rem; }
.webapp__feed li .ok { color: #3f9d6b; float: right; }

/* chat */
.webapp__chat { display: flex; flex-direction: column; background: var(--paper-warm); min-width: 0; }
.chat__head { display: flex; align-items: center; gap: 0.7rem; padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--line); }
.chat__head b { font-size: 0.95rem; color: var(--ink); display: block; }
.chat__head small { font-size: 0.74rem; color: var(--muted); display: flex; align-items: center; gap: 0.35rem; }
.chat__dot { width: 7px; height: 7px; border-radius: 50%; background: #7fd49a; display: inline-block; }
.chat__log { flex: 1; padding: 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.7rem;
  overflow-y: auto; max-height: 280px; }
.chat__msg { max-width: 84%; padding: 0.6em 0.9em; border-radius: 14px; font-size: 0.86rem; line-height: 1.45; }
.chat__msg--bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 4px; }
.chat__msg--me { align-self: flex-end; background: var(--ink); color: var(--paper); border-bottom-right-radius: 4px; }
.chat__msg--typing { display: flex; gap: 4px; align-items: center; }
.chat__msg--typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: chatType 1.2s infinite; }
.chat__msg--typing span:nth-child(2) { animation-delay: 0.18s; }
.chat__msg--typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes chatType { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.chat__suggest { display: flex; gap: 0.4rem; flex-wrap: wrap; padding: 0 1.3rem 0.8rem; }
.chat__suggest button { font-family: var(--sans); font-size: 0.74rem; color: var(--ink-soft); cursor: pointer;
  background: #fff; border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.4em 0.8em; transition: background 0.25s, color 0.25s; }
.chat__suggest button:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.chat__input { display: flex; gap: 0.5rem; padding: 0.9rem 1.3rem 1.2rem; border-top: 1px solid var(--line); }
.chat__input input { flex: 1; min-width: 0; font-family: var(--sans); font-size: 0.88rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.65em 1em; }
.chat__input input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.chat__input button { flex: none; width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--ink); color: var(--paper); font-size: 1.1rem; transition: background 0.25s; }
.chat__input button:hover { background: var(--gold-deep); }

/* ============================================================
   SCROLL FX (experimental, removable). Inert unless scroll-fx.js
   adds `fx` to <html>. Remove that <script> tag to fully revert.
   ============================================================ */
html.fx .reveal { transition: none; transform: none; opacity: 1; }
html.fx .fx-rise, html.fx .fx-fade { will-change: transform, opacity; }
html.fx .fx-parallax { will-change: transform; }

/* ============================================================
   AVA: live AI sales/CS chat (launcher + panel)
   ============================================================ */
/* ---------- first-visit intro takeover ---------- */
.ava-intro {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: clamp(1.5rem, 5vw, 3rem);
  background: radial-gradient(125% 120% at 50% -10%, var(--espresso-2), var(--espresso) 62%);
  color: var(--on-dark); overflow: hidden;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.6s var(--ease), visibility 0s linear 0.6s;
}
.ava-intro.is-on { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 0.6s var(--ease); }
.ava-intro.is-leaving { opacity: 0; transition: opacity 0.55s var(--ease), visibility 0s linear 0.55s; }

.ava-intro__bg { position: absolute; inset: 0; }
.ava-intro__orb { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; }
.ava-intro__orb--a { width: 50vmax; height: 50vmax; left: -12vmax; top: -16vmax;
  background: radial-gradient(circle, rgba(178,147,85,0.55), transparent 70%); animation: introDrift 17s ease-in-out infinite alternate; }
.ava-intro__orb--b { width: 42vmax; height: 42vmax; right: -10vmax; bottom: -14vmax;
  background: radial-gradient(circle, rgba(120,150,110,0.28), transparent 70%); animation: introDrift 22s ease-in-out infinite alternate-reverse; }
.ava-intro__grid { position: absolute; inset: 0; opacity: 0.5;
  background-image: linear-gradient(rgba(239,233,221,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(239,233,221,0.05) 1px, transparent 1px);
  background-size: 46px 46px; -webkit-mask-image: radial-gradient(circle at 50% 42%, #000 0%, transparent 72%); mask-image: radial-gradient(circle at 50% 42%, #000 0%, transparent 72%); }
@keyframes introDrift { from { transform: translate(0, 0) scale(1); } to { transform: translate(4vmax, 3vmax) scale(1.08); } }

.ava-intro__skip { position: absolute; top: clamp(1rem, 3vw, 1.8rem); right: clamp(1rem, 3vw, 1.8rem); z-index: 3;
  border: 1px solid rgba(239,233,221,0.22); background: transparent; color: var(--on-dark-soft);
  font: inherit; font-size: 0.82rem; padding: 0.5em 1.1em; border-radius: 999px; cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s; }
.ava-intro__skip:hover { color: var(--on-dark); border-color: var(--gold); background: rgba(178,147,85,0.12); }

.ava-intro__stage { position: relative; z-index: 2; max-width: 640px; text-align: center;
  display: flex; flex-direction: column; align-items: center; }

.ava-intro__logo { width: clamp(118px, 16vw, 150px); height: auto; margin-bottom: clamp(1.4rem, 4vh, 2.4rem); opacity: 0.92; }

/* avatar with a ring that draws in */
.ava-intro__avatar { position: relative; width: 132px; height: 132px; display: grid; place-items: center; margin-bottom: 1.6rem; }
.ava-intro__ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.ava-intro__ring circle { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 339; stroke-dashoffset: 339; transform: rotate(-90deg); transform-origin: center;
  filter: drop-shadow(0 0 6px rgba(178,147,85,0.6)); }
.ava-intro__face { display: grid; place-items: center; }
.ava-intro__face .webapp__avatar { transform: scale(2.25); box-shadow: 0 18px 50px -18px rgba(0,0,0,0.7); }
.ava-intro__status { position: absolute; right: 16px; bottom: 16px; width: 16px; height: 16px; border-radius: 50%;
  background: #7fd49a; border: 3px solid var(--espresso); box-shadow: 0 0 0 0 rgba(127,212,154,0.6); animation: pulse 2.4s infinite; }

.ava-intro__eyebrow { font-size: 0.74rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); margin: 0 0 0.9rem; }
.ava-intro__title { font-family: var(--serif); font-weight: 400; color: #fffdf6; line-height: 1.05;
  font-size: clamp(2.4rem, 6vw, 3.6rem); margin: 0 0 1.1rem; }
.ava-intro__title .serif-em { color: var(--gold) !important; }
.ava-intro__lead { font-family: var(--serif); font-weight: 300; color: #fffdf6; line-height: 1.32;
  font-size: clamp(1.25rem, 3vw, 1.95rem); margin: 0 0 1rem; min-height: 2.6em; }
.ava-intro__caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -0.12em;
  background: var(--gold); animation: introCaret 1s steps(1) infinite; }
@keyframes introCaret { 50% { opacity: 0; } }
.ava-intro__sub { font-size: clamp(0.95rem, 1.6vw, 1.08rem); line-height: 1.6; color: var(--on-dark-soft);
  max-width: 30em; margin: 0 auto 1.7rem; }

.ava-intro__chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin: 0 0 2.1rem; padding: 0; }
.ava-intro__chips li { font-size: 0.84rem; font-weight: 500; color: var(--on-dark);
  padding: 0.5em 1.05em; border-radius: 999px; border: 1px solid rgba(178,147,85,0.4); background: rgba(178,147,85,0.1); }

.ava-intro__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; }
.ava-intro__cta .btn--solid { background: var(--gold); color: #1d1a13; }
.ava-intro__cta .btn--solid:hover { background: #c7a667; }
.ava-intro__cta .btn--ghost { color: var(--on-dark); border-color: rgba(239,233,221,0.28); }
.ava-intro__cta .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* sequenced reveals, triggered when .is-on lands */
@keyframes introRise { from { opacity: 0; transform: translateY(24px); filter: blur(7px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes introPop { 0% { opacity: 0; transform: scale(0.6); } 60% { opacity: 1; transform: scale(1.06); } 100% { opacity: 1; transform: scale(1); } }
@keyframes introFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.ava-intro__logo, .ava-intro__avatar, .ava-intro__eyebrow, .ava-intro__title, .ava-intro__lead,
.ava-intro__sub, .ava-intro__chips li, .ava-intro__cta { opacity: 0; }
.ava-intro.is-on .ava-intro__logo { animation: introRise 0.7s var(--ease) 0s both; }
.ava-intro.is-on .ava-intro__avatar { animation: introPop 0.8s var(--ease) 0.25s both; }
.ava-intro.is-on .ava-intro__face { animation: introFloat 4.5s ease-in-out 1.05s infinite; }
.ava-intro.is-on .ava-intro__ring circle { animation: introDraw 1.1s var(--ease) 0.35s forwards; }
@keyframes introDraw { to { stroke-dashoffset: 0; } }
.ava-intro.is-on .ava-intro__eyebrow { animation: introRise 0.6s var(--ease) 0.55s both; }
.ava-intro.is-on .ava-intro__title { animation: introRise 0.6s var(--ease) 0.7s both; }
.ava-intro.is-on .ava-intro__lead { animation: introRise 0.6s var(--ease) 0.9s both; }
.ava-intro.is-on .ava-intro__sub { animation: introRise 0.6s var(--ease) 1.85s both; }
.ava-intro.is-on .ava-intro__chips li { animation: introRise 0.5s var(--ease) both; animation-delay: calc(2.05s + var(--i) * 0.11s); }
.ava-intro.is-on .ava-intro__cta { animation: introRise 0.6s var(--ease) 2.6s both; }

@media (prefers-reduced-motion: reduce) {
  .ava-intro__orb, .ava-intro__status { animation: none; }
  .ava-intro__logo, .ava-intro__avatar, .ava-intro__face, .ava-intro__eyebrow, .ava-intro__title, .ava-intro__lead,
  .ava-intro__sub, .ava-intro__chips li, .ava-intro__cta { opacity: 1; animation: none !important; }
  .ava-intro__ring circle { stroke-dashoffset: 0; }
  .ava-intro__caret { animation: none; }
}

.ava-launcher {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 70;
  display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.5rem 1.15rem 0.5rem 0.5rem;
  border: none; cursor: pointer; font: inherit; font-size: 0.92rem; font-weight: 500;
  color: var(--paper); background: var(--ink); border-radius: 999px;
  box-shadow: 0 18px 40px -14px rgba(29,26,19,0.6);
  transition: transform 0.3s var(--ease), background 0.3s, opacity 0.3s;
}
.ava-launcher:hover { transform: translateY(-2px); background: var(--gold-deep); }
.ava-launcher.is-hidden { opacity: 0; transform: scale(0.9); pointer-events: none; }
.ava-launcher__av { width: 34px; height: 34px; flex: none; }
.ava-launcher__txt { transition: opacity 0.16s ease; white-space: nowrap; }
.ava-launcher__dot { width: 8px; height: 8px; border-radius: 50%; background: #7fd49a;
  box-shadow: 0 0 0 0 rgba(127,212,154,0.7); animation: pulse 2.4s infinite; }

.ava-panel {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 71;
  width: min(384px, calc(100vw - 2rem)); height: min(560px, calc(100vh - 2rem));
  max-width: none; margin: 0; padding: 0;   /* override the generic section { } sizing */
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-card); transform-origin: bottom right;
  transform: translateY(16px) scale(0.98); opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.ava-panel.is-open { transform: none; opacity: 1; pointer-events: auto; }
.ava-panel__head { background: var(--paper-warm); }
.ava-panel__id { display: flex; flex-direction: column; }
.ava-panel__id b { font-size: 0.95rem; color: var(--ink); }
.ava-panel__id small { font-size: 0.74rem; color: var(--muted); display: flex; align-items: center; gap: 0.35rem; }
.ava-panel__close { margin-left: auto; width: 30px; height: 30px; flex: none; cursor: pointer;
  border: none; background: transparent; color: var(--muted); font-size: 1.5rem; line-height: 1; border-radius: 8px;
  transition: background 0.2s, color 0.2s; }
.ava-panel__close:hover { background: rgba(29,26,19,0.06); color: var(--ink); }
.ava-panel__log { flex: 1 1 auto; min-height: 0; max-height: none; }

/* ---------- reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .emp-card { max-width: 460px; }
  .concept__grid, .uc-grid, .stats, .steps { grid-template-columns: repeat(2, 1fr); }
  .arch__stage, .dash__grid, .cta__grid, .cost { grid-template-columns: 1fr; }
  .cost__vs { padding: 0.2rem 0; }
  .webapp__body { grid-template-columns: 1fr; }
  .webapp__main { border-right: none; border-bottom: 1px solid var(--line); }
  .nav__links { display: none; }
}
@media (max-width: 560px) {
  .concept__grid, .uc-grid, .stats, .steps, .quote__row { grid-template-columns: 1fr; }
  .webapp__kpis { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: 7.5rem; }
  .tabs { width: 100%; }
  .tab { flex: 1; text-align: center; }
  .hero__ticks { gap: 1rem; }
}

/* ============================================================
   HEBREW / RTL  (applied on html[lang="he"] and [dir="rtl"])
   ============================================================ */
html[lang="he"] {
  --serif: "Noto Serif Hebrew", "Frank Ruhl Libre", Georgia, serif;
  --sans:  "Rubik", "Assistant", "Heebo", -apple-system, sans-serif;
}
html[lang="he"] body { font-family: var(--sans); -webkit-font-smoothing: antialiased; }
html[lang="he"] h1, html[lang="he"] h2, html[lang="he"] h3 { letter-spacing: -0.01em; }

/* Hebrew has no true italics; faux-oblique looks cheap, so flatten the serif accents */
html[lang="he"] .serif-em,
html[lang="he"] .uc-detail__line,
html[lang="he"] .uc-detail__foot,
html[lang="he"] .uc-more__cta-line,
html[lang="he"] .control__value,
html[lang="he"] .cost__vs,
html[lang="he"] .how__note,
html[lang="he"] .step__no,
html[lang="he"] .inline-cta > p,
html[lang="he"] .ava-intro__lead { font-style: normal; }
/* the serif emphasis carries weight + gold instead of italics in Hebrew */
html[lang="he"] .serif-em { font-weight: 500; }

/* language switch in the nav: a small flag chip, not a wide pill */
.nav .lang-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0; border-radius: 50%;
  font-size: 1.1rem; line-height: 1; font-weight: 600;
  border: 1px solid var(--line); background: transparent; color: var(--ink-soft);
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}
.nav .lang-toggle:hover { border-color: var(--gold); background: var(--gold-soft); transform: translateY(-1px); }
.nav .lang-toggle::after { display: none !important; }

/* Ava lives on the left in RTL */
[dir="rtl"] .ava-launcher,
[dir="rtl"] .ava-panel { right: auto; left: clamp(1rem, 3vw, 2rem); }
[dir="rtl"] .ava-panel { transform-origin: bottom left; }
[dir="rtl"] .ava-launcher { padding: 0.5rem 0.5rem 0.5rem 1.15rem; }
[dir="rtl"] .ava-intro__skip { right: auto; left: clamp(1rem, 3vw, 1.8rem); }

/* directional micro-interactions */
[dir="rtl"] .uc-role:hover { transform: translateX(-3px); }
[dir="rtl"] .ava-launcher:hover { transform: translateY(-2px); }

/* keep the chat typing dots reading left-to-right */
[dir="rtl"] .chat__msg--typing { direction: ltr; }

/* marquee is right-anchored in RTL, so mirror the scroll direction */
[dir="rtl"] .marquee__track { animation-name: scroll-rtl; }
@keyframes scroll-rtl { to { transform: translateX(50%); } }

/* numbers / latin tokens stay LTR inside RTL text where needed */
[dir="rtl"] .sim__clock,
[dir="rtl"] .stat-card b,
[dir="rtl"] .uc-step__tool { unicode-bidi: plaintext; }

/* ============================================================
   LEGAL / PROSE PAGES (privacy, terms)
   ============================================================ */
.legal-page .nav { background: rgba(245, 241, 232, 0.9); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.legal { max-width: 760px; margin: 0 auto; padding: 8rem clamp(1.2rem, 4vw, 2rem) 4.5rem; }
.legal__eyebrow { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
.legal__head { margin-bottom: 2.6rem; }
.legal__head h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.08; margin: 0.7rem 0 0.5rem; }
.legal__head h1 .serif-em { font-style: italic; }
.legal__updated { color: var(--muted); font-size: 0.85rem; }
.legal__body h2 { font-size: 1.22rem; font-weight: 600; color: var(--ink); margin: 2.4rem 0 0.6rem; letter-spacing: -0.01em; }
.legal__body p { color: var(--ink-soft); line-height: 1.75; margin: 0 0 0.9rem; font-size: 0.97rem; }
.legal__body ul { margin: 0.2rem 0 1rem; padding-inline-start: 1.25rem; }
.legal__body li { color: var(--ink-soft); line-height: 1.7; margin-bottom: 0.4rem; font-size: 0.97rem; }
.legal__body a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 2px; }
.legal__body a:hover { color: var(--ink); }
.legal__body strong { color: var(--ink); font-weight: 600; }
.legal__note { margin-top: 2.8rem; padding: 1rem 1.2rem; border: 1px dashed var(--line-strong); border-radius: var(--r-md);
  font-size: 0.84rem; color: var(--muted); line-height: 1.6; background: var(--gold-soft); }
html[lang="he"] .legal__head h1 .serif-em { font-style: normal; }

/* ============================================================
   SECURE / ON-PREMISE PAGE
   ============================================================ */
.sec-page .nav { background: rgba(245, 241, 232, 0.9); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a[aria-current="page"]::after { width: 100%; }

.sec-hero {
  position: relative; overflow: hidden; text-align: center; color: var(--on-dark);
  background: radial-gradient(125% 120% at 50% -10%, var(--espresso-2), var(--espresso) 62%);
  padding: 9.5rem clamp(1.2rem, 4vw, 3rem) 5.5rem;
}
.sec-hero__orb { position: absolute; border-radius: 50%; filter: blur(80px); }
.sec-hero__orb--a { width: 44vmax; height: 44vmax; left: -12vmax; top: -16vmax; background: radial-gradient(circle, rgba(178,147,85,0.5), transparent 70%); }
.sec-hero__orb--b { width: 36vmax; height: 36vmax; right: -10vmax; bottom: -16vmax; background: radial-gradient(circle, rgba(120,150,110,0.22), transparent 70%); }
.sec-hero__inner { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; }
.sec-hero .eyebrow { color: var(--gold); }
.sec-hero h1 { font-size: clamp(2.3rem, 6vw, 3.7rem); line-height: 1.05; color: #fffdf6; margin: 0.85rem 0 1.1rem; }
.sec-hero h1 .serif-em { color: var(--gold) !important; }
.sec-hero__lede { font-size: clamp(1.04rem, 2vw, 1.24rem); color: var(--on-dark-soft); line-height: 1.6; max-width: 40em; margin: 0 auto 2rem; }
.sec-hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
.sec-hero__cta .btn--solid { background: var(--gold); color: #1d1a13; }
.sec-hero__cta .btn--solid:hover { background: #c7a667; }
.sec-hero__cta .btn--ghost { color: var(--on-dark); border-color: rgba(239,233,221,0.28); }
.sec-hero__cta .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

.sec-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0; margin: 1.7rem 0 0; }
.sec-tags li { font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); padding: 0.5em 1em;
  border-radius: 999px; border: 1px solid var(--line); background: var(--paper); }

.sec-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; align-items: end; margin-top: 0.5rem; }
.sec-tier { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); padding: 1.3rem 1.3rem 1.5rem; }
.sec-tier__size { display: block; width: 100%; margin-bottom: 1rem; }
.sec-tier__size .brain-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.sec-tier--s .sec-tier__size { height: 88px; }
.sec-tier--m .sec-tier__size { height: 118px; }
.sec-tier--l .sec-tier__size { height: 154px; }
.sec-tier__meta { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold-deep); font-weight: 600; }
.sec-tier h3 { font-size: 1.05rem; font-weight: 600; margin: 0.5rem 0 0.35rem; }
.sec-tier p { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.5; }

.sec-band { background: var(--espresso); color: var(--on-dark); border-radius: var(--r-lg);
  padding: clamp(2rem, 5vw, 3.4rem); max-width: var(--maxw); margin: 0 auto; }
.sec-band .eyebrow { color: var(--gold); }
.sec-band h2 { color: #fffdf6; font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin: 0.7rem 0 0.8rem; }
.sec-band > p { color: var(--on-dark-soft); max-width: 42em; line-height: 1.6; }
.sec-checks { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem 1.8rem; padding: 0; margin: 1.8rem 0 0; }
.sec-checks li { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--on-dark); line-height: 1.45; font-size: 0.98rem; }
.sec-checks li::before { content: "✓"; color: var(--gold); font-weight: 700; flex: none; }

@media (max-width: 760px) {
  .sec-tiers, .sec-checks { grid-template-columns: 1fr; }
}

/* ---------- secure page: motion ---------- */
.sec-hero__orb--a { animation: secDriftA 18s ease-in-out infinite alternate; will-change: transform; }
.sec-hero__orb--b { animation: secDriftB 22s ease-in-out infinite alternate; will-change: transform; }
@keyframes secDriftA { from { transform: translate(0,0) scale(1); } to { transform: translate(5vmax, 4vmax) scale(1.12); } }
@keyframes secDriftB { from { transform: translate(0,0) scale(1); } to { transform: translate(-4vmax, -3vmax) scale(1.1); } }

/* air-gap diagram */
.sec-diagram { max-width: 600px; margin: 0.5rem auto 2.6rem; }
.sec-diagram__art { width: 100%; }
.sec-diagram svg { width: 100%; height: auto; display: block; overflow: visible; }
.sec-diagram__caption { text-align: center; font-size: 0.84rem; color: var(--muted); margin: 0.9rem 0 0; }

/* tier brains fade up when scrolled into view */
.sec-tier__size .brain-svg { opacity: 0; transform: translateY(10px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.sec-tiers.is-in .sec-tier--s .sec-tier__size .brain-svg { opacity: 1; transform: none; transition-delay: 0.1s; }
.sec-tiers.is-in .sec-tier--m .sec-tier__size .brain-svg { opacity: 1; transform: none; transition-delay: 0.26s; }
.sec-tiers.is-in .sec-tier--l .sec-tier__size .brain-svg { opacity: 1; transform: none; transition-delay: 0.42s; }

/* security checks tick in one by one */
.sec-band .sec-checks li { opacity: 0; transform: translateY(10px); }
.sec-band.is-in .sec-checks li { animation: secCheck 0.5s var(--ease) both; }
.sec-band.is-in .sec-checks li:nth-child(1) { animation-delay: 0.15s; }
.sec-band.is-in .sec-checks li:nth-child(2) { animation-delay: 0.27s; }
.sec-band.is-in .sec-checks li:nth-child(3) { animation-delay: 0.39s; }
.sec-band.is-in .sec-checks li:nth-child(4) { animation-delay: 0.51s; }
.sec-band.is-in .sec-checks li:nth-child(5) { animation-delay: 0.63s; }
.sec-band.is-in .sec-checks li:nth-child(6) { animation-delay: 0.75s; }
@keyframes secCheck { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .sec-hero__orb--a, .sec-hero__orb--b { animation: none; }
  .sec-tier__size .brain-svg { opacity: 1; transform: none; transition: none; }
  .sec-band .sec-checks li { opacity: 1; transform: none; animation: none; }
}

.cta .secure-form { max-width: 600px; margin: 1.6rem auto 0; }

/* secure page: text beside the diagram */
.sec-how { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; margin-bottom: 3rem; }
.sec-how .section-head { margin-bottom: 0; max-width: none; }
.sec-how .sec-diagram { margin: 0; max-width: 540px; }
@media (max-width: 880px) { .sec-how { grid-template-columns: 1fr; } .sec-how .sec-diagram { margin: 1rem auto 0; } }

/* secure page: prominent "ask Ava" band */
.sec-ava { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; gap: clamp(1.4rem, 4vw, 3rem);
  background: radial-gradient(120% 150% at 0% 0%, var(--espresso-2), var(--espresso) 70%); color: var(--on-dark);
  border-radius: var(--r-lg); padding: clamp(1.8rem, 4vw, 3rem); box-shadow: var(--shadow-card); }
.sec-ava__avbox { flex: none; width: 92px; height: 92px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(178,147,85,0.18); border: 1px solid rgba(178,147,85,0.4); position: relative; }
.sec-ava__avbox .webapp__avatar { transform: scale(1.85); }
.sec-ava__avbox::after { content: ""; position: absolute; right: 8px; bottom: 8px; width: 12px; height: 12px; border-radius: 50%;
  background: #7fd49a; border: 2px solid var(--espresso); }
.sec-ava__copy .eyebrow { color: var(--gold); }
.sec-ava__copy h2 { color: #fffdf6; font-size: clamp(1.5rem, 3.2vw, 2.2rem); line-height: 1.12; margin: 0.5rem 0 0.7rem; }
.sec-ava__copy h2 .serif-em { color: var(--gold) !important; }
.sec-ava__copy p { color: var(--on-dark-soft); line-height: 1.6; max-width: 46em; margin: 0 0 1.3rem; }
.sec-ava__copy .btn--solid { background: var(--gold); color: #1d1a13; }
.sec-ava__copy .btn--solid:hover { background: #c7a667; }
@media (max-width: 680px) { .sec-ava { flex-direction: column; text-align: center; } .sec-ava__copy p { margin-inline: auto; } .sec-ava__avbox::after { right: 50%; transform: translateX(34px); } }

/* on-prem nav: solid light bar above the dark hero (matches legal pages) */
.sec-page .nav { background: rgba(245,241,232,0.9); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
/* balance the nav: brand left, links centered, CTA right */
.sec-page .nav__brand { margin-inline-end: 0; }
.sec-page .nav__links { margin-inline: auto; }
.sec-hero { padding-bottom: 4.5rem; }

/* cooler tier section: staggered entrance, shimmer, glow, hover */
.sec-tiers .sec-tier { opacity: 0; transform: translateY(22px); transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s; }
.sec-tiers.is-in .sec-tier { animation: secTierIn 0.6s var(--ease) both; }
.sec-tiers.is-in .sec-tier:nth-child(1) { animation-delay: 0.08s; }
.sec-tiers.is-in .sec-tier:nth-child(2) { animation-delay: 0.22s; }
.sec-tiers.is-in .sec-tier:nth-child(3) { animation-delay: 0.36s; }
@keyframes secTierIn { to { opacity: 1; transform: none; } }
.sec-tier:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: var(--shadow-soft); }
@media (prefers-reduced-motion: reduce) {
  .sec-tiers .sec-tier { opacity: 1; transform: none; animation: none; }
}
