/* ============================================================
   WAHAB AZHAR — Production AI
   Brand kit: Deep Plum / Blush / Lilac
   60% Blush · 30% Deep Plum · 10% Lilac (accent only)
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* Core */
  --plum:        #2A1E3D;
  --plum-dk:     #1C1428;
  --plum-panel:  #3E2E56;
  --blush:       #F6F1F4;
  --soft-white:  #241B34;
  --lilac:       #9B7EBD;
  --lilac-deep:  #7E5CA8;
  --lilac-soft:  #C9B6DE;
  --mauve:       #A99BB8;
  --bg:          #14101E;
  --bg-soft:     #1A1426;
  --surface:     #221A31;
  --surface-2:   #2C2140;
  --text:        #F4EFF6;
  --text-muted:  #B7A8C6;
  --border:      rgba(246,241,244,.10);

  /* Type — Bricolage Grotesque (display) + Inter (body) */
  --font-display: 'Bricolage Grotesque', 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --fs-hero:  clamp(2.35rem, 4.4vw, 4.15rem);
  --fs-h2:    clamp(1.95rem, 3.4vw, 2.95rem);
  --fs-h3:    clamp(1.12rem, 1.6vw, 1.38rem);
  --fs-lede:  clamp(1.04rem, 1.35vw, 1.2rem);
  --fs-body:  1rem;
  --fs-sm:    0.875rem;
  --fs-xs:    0.78rem;

  /* Layout */
  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --sec-y: clamp(5rem, 10vw, 8.5rem);
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;

  /* Soft, diffuse lilac-tinted shadows — never hard black */
  --sh-sm: 0 1px 2px rgba(0,0,0,.35), 0 10px 26px -14px rgba(0,0,0,.6);
  --sh-md: 0 3px 8px rgba(0,0,0,.4), 0 26px 50px -22px rgba(0,0,0,.65);
  --sh-lg: 0 6px 16px rgba(0,0,0,.45), 0 50px 90px -36px rgba(0,0,0,.7);
  --sh-plum: 0 24px 60px -28px rgba(28,20,40,.75);

  --ease: cubic-bezier(.22,.68,.32,1);
  --dur: .55s;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.68;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.022em;
  text-wrap: balance;
  font-optical-sizing: auto;
}

::selection { background: var(--lilac); color: var(--blush); }

:focus-visible {
  outline: 2.5px solid var(--lilac-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 50%; top: -100px;
  transform: translateX(-50%);
  background: var(--plum); color: var(--blush);
  padding: .75rem 1.25rem; border-radius: 0 0 var(--r-sm) var(--r-sm);
  z-index: 200; font-size: var(--fs-sm); font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- 3. Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--rd, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

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

/* ---------- 4. Shared atoms ---------- */
.eyebrow, .section__eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--lilac-deep);
  margin-bottom: 1.15rem;
}
.eyebrow__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--lilac);
  box-shadow: 0 0 0 4px rgba(155,126,189,.22);
}

/* Lilac signal highlight — one per view.
   Painted as a background on the element itself so it survives on dark sections
   (a z-index:-1 pseudo-element gets swallowed by the section background). */
.mark {
  --mark-c: rgba(155,126,189,.40);
  white-space: nowrap;
  padding-inline: .04em;
  border-radius: 3px;
  background-image: linear-gradient(var(--mark-c), var(--mark-c));
  background-repeat: no-repeat;
  background-position: 0 90%;
  background-size: 0 .26em;
  animation: markIn .95s var(--ease) .5s forwards;
}
.mark--light { --mark-c: rgba(155,126,189,.62); }
@keyframes markIn { to { background-size: 100% .26em; } }
@media (prefers-reduced-motion: reduce) {
  .mark { background-size: 100% .26em; animation: none; }
}

/* Star glyphs stay lilac — never near-black */
.star { color: var(--lilac); font-size: .82em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .005em;
  padding: .92rem 1.65rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: background .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
  white-space: nowrap;
}
.btn__arrow { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--primary { background: var(--plum); color: var(--blush); box-shadow: var(--sh-sm); }
.btn--primary:hover { background: var(--lilac-deep); transform: translateY(-2px); box-shadow: var(--sh-md); }

.btn--ghost { border-color: var(--lilac); color: var(--text); background: transparent; }
.btn--ghost:hover { background: var(--lilac); color: var(--blush); border-color: var(--lilac); transform: translateY(-2px); }

.btn--lilac { background: var(--lilac); color: #fff; }
.btn--lilac:hover { background: var(--lilac-deep); transform: translateY(-2px); box-shadow: 0 20px 40px -18px rgba(126,92,168,.8); }

.btn--sm { padding: .68rem 1.25rem; font-size: var(--fs-xs); }
.btn--full { width: 100%; padding-block: 1.1rem; font-size: var(--fs-body); }

/* Pills */
.pill {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .38rem .78rem;
  border-radius: 999px;
  background: rgba(155,126,189,.16);
  color: var(--lilac-deep);
  border: 1px solid rgba(155,126,189,.3);
}
.pill__pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--lilac-deep);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(126,92,168,.55); }
  50% { opacity: .65; box-shadow: 0 0 0 6px rgba(126,92,168,0); }
}

/* ---------- 5. Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 1.1rem;
  transition: padding .35s var(--ease), background .35s var(--ease),
              box-shadow .35s var(--ease), backdrop-filter .35s var(--ease);
}
.nav.is-stuck {
  padding-block: .6rem;
  background: rgba(18,14,26,.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 1px 0 rgba(246,241,244,.07), 0 14px 34px -26px rgba(155,126,189,.6);
}
.nav__inner {
  width: 100%; max-width: var(--wrap);
  margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}

.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand__mark { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 11px; box-shadow: var(--sh-sm); }
.brand__mark svg { width: 100%; height: 100%; border-radius: 11px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: .98rem; letter-spacing: -.015em; }
.brand__role { font-size: .68rem; color: var(--mauve); letter-spacing: .06em; text-transform: uppercase; font-weight: 500; }

.nav__links { display: flex; align-items: center; gap: 1.5rem; }
.nav__links > a:not(.btn) {
  font-size: var(--fs-sm); font-weight: 500; color: var(--text);
  position: relative; padding-block: .3rem;
  white-space: nowrap;
  transition: color .25s var(--ease);
}
.nav__links > a:not(.btn)::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1.5px; background: var(--lilac);
  transform: scaleX(0); transform-origin: right;
  transition: transform .32s var(--ease);
}
.nav__links > a:not(.btn):hover { color: var(--lilac-deep); }
.nav__links > a:not(.btn):hover::after,
.nav__links > a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__links > a.is-active { color: var(--lilac-deep); }

.nav__toggle { display: none; width: 42px; height: 42px; position: relative; border-radius: var(--r-sm); }
.nav__toggle span {
  display: block; position: absolute; left: 11px; width: 20px; height: 1.8px;
  background: var(--plum); border-radius: 2px;
  transition: transform .32s var(--ease), opacity .2s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 15px; }
.nav__toggle span:nth-child(2) { top: 20.5px; }
.nav__toggle span:nth-child(3) { top: 26px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(7rem, 11vw, 9.25rem);
  padding-bottom: 0;
  overflow: hidden;
  isolation: isolate;
}
.hero__grid-motif {
  position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(to right, rgba(246,241,244,.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(246,241,244,.055) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 90% 65% at 50% 25%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% 25%, #000 25%, transparent 78%);
}
.hero__glow {
  position: absolute; z-index: -1;
  top: -18%; right: -10%;
  width: min(760px, 78vw); aspect-ratio: 1;
  background: radial-gradient(circle, rgba(155,126,189,.32) 0%, rgba(155,126,189,.10) 42%, transparent 68%);
  filter: blur(24px);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, .74fr);
  gap: clamp(2.25rem, 3.6vw, 3.5rem);
  align-items: center;
  padding-bottom: clamp(4rem, 8vw, 6.5rem);
}

.hero__title {
  font-size: var(--fs-hero);
  margin-bottom: 1.5rem;
  text-wrap: pretty;
}
.hero__lede {
  font-size: var(--fs-lede);
  color: var(--text-muted);
  max-width: 56ch;
  margin-bottom: 2.15rem;
}
.hero__lede strong { color: var(--text); font-weight: 600; }

.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 3rem; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  padding-top: 1.9rem;
  border-top: 1px solid rgba(246,241,244,.12);
}
.hero__stats li { display: flex; flex-direction: column; gap: .18rem; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.stat__label { font-size: var(--fs-xs); color: var(--mauve); line-height: 1.4; }

/* Flagship card — overlapping, layered */
.hero__card { position: relative; }
.flagship {
  position: relative;
  background: var(--plum);
  background-image: linear-gradient(158deg, var(--plum) 0%, var(--plum-dk) 100%);
  color: var(--blush);
  border-radius: var(--r-xl);
  padding: clamp(1.7rem, 2.6vw, 2.25rem);
  box-shadow: var(--sh-plum), 0 60px 90px -50px rgba(155,126,189,.7);
  overflow: hidden;
}
.flagship::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(246,241,244,.12) 1px, transparent 0);
  background-size: 20px 20px;
  opacity: .5; pointer-events: none;
}
.flagship::after {
  content: ''; position: absolute;
  top: -55%; right: -35%; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(155,126,189,.42), transparent 68%);
  pointer-events: none;
}
.flagship > * { position: relative; }

.flagship__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.35rem; }
.flagship .pill { background: rgba(155,126,189,.22); color: var(--lilac-soft); border-color: rgba(201,182,222,.35); }
.flagship .pill__pulse { background: var(--lilac-soft); }
@keyframes pulseLight { 0%,100% { box-shadow: 0 0 0 0 rgba(201,182,222,.6);} 50% { box-shadow: 0 0 0 6px rgba(201,182,222,0);} }
.flagship .pill__pulse { animation-name: pulseLight; }
.flagship__kicker { font-size: var(--fs-xs); color: var(--mauve); letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }

.flagship__title { font-size: clamp(1.3rem, 2.1vw, 1.6rem); margin-bottom: .8rem; color: var(--blush); }
.flagship__desc { font-size: var(--fs-sm); color: rgba(246,241,244,.74); line-height: 1.62; margin-bottom: 1.7rem; }

.flagship__metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-bottom: 1.5rem; }
.flagship__metrics dt { font-size: .68rem; letter-spacing: .11em; text-transform: uppercase; color: var(--mauve); margin-bottom: .2rem; }
.flagship__metrics dd {
  font-family: var(--font-display); font-size: 1.28rem; font-weight: 600;
  letter-spacing: -.02em; color: var(--blush); font-variant-numeric: tabular-nums;
}

.flagship__bar { height: 5px; border-radius: 999px; background: rgba(246,241,244,.13); overflow: hidden; margin-bottom: .7rem; }
.flagship__bar span {
  display: block; height: 100%; width: var(--w); border-radius: 999px;
  background: linear-gradient(90deg, var(--lilac-deep), var(--lilac-soft));
  transform-origin: left; animation: barIn 1.6s var(--ease) .6s both;
}
@keyframes barIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.flagship__foot { font-size: var(--fs-xs); color: var(--mauve); }

/* Floating chips (layered depth) */
.hero__chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--soft-white);
  color: var(--text);
  font-size: var(--fs-xs); font-weight: 600;
  padding: .6rem .95rem;
  border-radius: 999px;
  box-shadow: var(--sh-md);
  border: 1px solid rgba(155,126,189,.22);
  animation: float 6s ease-in-out infinite;
}
.hero__chip svg { width: 15px; height: 15px; color: var(--lilac-deep); }
.hero__chip--1 { top: -18px; left: -26px; }
.hero__chip--2 { bottom: -20px; right: -18px; animation-delay: -3s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Marquee */
.marquee {
  border-block: 1px solid rgba(246,241,244,.1);
  background: var(--soft-white);
  padding-block: 1rem;
  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);
}
.marquee__track {
  display: flex; align-items: center; gap: 2.2rem;
  width: max-content;
  animation: scroll 42s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display); font-size: .92rem; font-weight: 500;
  color: var(--text); letter-spacing: -.01em; white-space: nowrap;
}
.marquee__track i { color: var(--lilac); font-size: .55rem; font-style: normal; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- 7. Sections ---------- */
.section { padding-block: var(--sec-y); position: relative; }
.section--tight { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--soft { background: var(--bg-soft); }

.section--plum {
  background: var(--plum);
  background-image: linear-gradient(170deg, var(--plum) 0%, var(--plum-dk) 100%);
  color: var(--blush);
  position: relative;
  overflow: hidden;
}
.section--plum .section__title { color: var(--blush); }
.section--plum .section__lede { color: rgba(246,241,244,.68); }
.section--plum .section__eyebrow { color: var(--lilac-soft); }
.section__lattice {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(246,241,244,.13) 1px, transparent 0);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000, transparent 72%);
}
.section--plum .container { position: relative; }

.section__head { max-width: 60ch; margin-bottom: clamp(2.75rem, 5vw, 4rem); }
.section__head--wide { max-width: 78ch; }

.inline-link {
  color: var(--lilac-deep); font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(155,126,189,.5);
  transition: color .25s var(--ease), text-decoration-color .25s var(--ease);
}
.inline-link:hover { color: var(--text); text-decoration-color: var(--text); }
.section__title { font-size: var(--fs-h2); margin-bottom: 1.1rem; }
.section__lede { font-size: var(--fs-lede); color: var(--text-muted); max-width: 58ch; }

/* ---------- 8. Compare (before / after) ---------- */
.compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}
.compare__col {
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 2.8vw, 2.25rem);
  border: 1px solid;
}
.compare__col--before {
  background: rgba(138,127,146,.07);
  border-color: rgba(138,127,146,.24);
  color: var(--mauve);
}
.compare__col--after {
  background: var(--soft-white);
  border-color: rgba(155,126,189,.3);
  box-shadow: var(--sh-md);
  color: var(--text);
}
.compare__tag {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; margin-bottom: 1.2rem;
}
.compare__col--before .compare__tag { color: var(--mauve); }
.compare__col--after .compare__tag { color: var(--lilac-deep); }

.compare__list li {
  position: relative;
  padding-left: 1.6rem;
  padding-block: .52rem;
  font-size: var(--fs-sm);
  line-height: 1.55;
  border-bottom: 1px solid rgba(246,241,244,.07);
}
.compare__list li:last-child { border-bottom: 0; }
.compare__list li::before {
  content: ''; position: absolute; left: 0; top: 1.02rem;
  width: 8px; height: 8px; border-radius: 2px;
}
.compare__col--before li::before { background: var(--mauve); opacity: .45; }
.compare__col--after li::before { background: var(--lilac); }

.compare__arrow { color: var(--lilac); width: 64px; }
.compare__arrow svg { width: 100%; }

/* ---------- 9. Capability cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: clamp(1rem, 1.8vw, 1.4rem);
}
.card {
  position: relative;
  background: rgba(62,46,86,.55);
  border: 1px solid rgba(201,182,222,.16);
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 2.4vw, 2rem);
  transition: transform .45s var(--ease), border-color .45s var(--ease), background .45s var(--ease);
  overflow: hidden;
}
.card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(155,126,189,.16), transparent 62%);
  opacity: 0; transition: opacity .45s var(--ease); pointer-events: none;
}
.card:hover { transform: translateY(-5px); border-color: rgba(155,126,189,.5); background: rgba(62,46,86,.8); }
.card:hover::after { opacity: 1; }

.card__idx {
  position: absolute; top: 1.5rem; right: 1.6rem;
  font-family: var(--font-display); font-size: .78rem; font-weight: 600;
  letter-spacing: .1em; color: var(--lilac); opacity: .55;
}
.card__icon {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 13px;
  background: rgba(155,126,189,.16);
  border: 1px solid rgba(155,126,189,.3);
  color: var(--lilac-soft);
  margin-bottom: 1.25rem;
}
.card__icon svg { width: 23px; height: 23px; }
.card h3 { font-size: var(--fs-h3); color: var(--blush); margin-bottom: .7rem; }
.card p { font-size: var(--fs-sm); color: rgba(246,241,244,.66); line-height: 1.62; margin-bottom: 1.25rem; }

.card__tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.card__tags li {
  font-size: .69rem; font-weight: 600; letter-spacing: .04em;
  padding: .3rem .6rem; border-radius: 999px;
  background: rgba(246,241,244,.07);
  color: var(--lilac-soft);
  border: 1px solid rgba(246,241,244,.09);
}

/* ---------- 10. Diagram ---------- */
.diagram {
  background: var(--soft-white);
  border: 1px solid rgba(155,126,189,.22);
  border-radius: var(--r-xl);
  padding: clamp(1.25rem, 2.5vw, 2.25rem);
  box-shadow: var(--sh-lg);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.diagram__hint { display: none; }
@media (max-width: 980px) {
  .diagram__hint {
    display: block;
    margin-bottom: .9rem;
    font-size: var(--fs-xs); font-weight: 600;
    letter-spacing: .06em; color: var(--lilac-deep);
  }
}
.diagram__scroll { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
.diagram__svg { min-width: 900px; width: 100%; height: auto; }
.diagram__cap {
  margin-top: 1.4rem; padding-top: 1.15rem;
  border-top: 1px solid rgba(246,241,244,.09);
  font-size: var(--fs-sm); color: var(--mauve); max-width: 70ch;
}

.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.4rem; }
.metric { padding-left: 1.25rem; border-left: 2.5px solid var(--lilac); }
.metric__k {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--lilac-deep); margin-bottom: .5rem;
}
.metric__v { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.6; }

/* ---------- 10b. System classes (reference map) ---------- */
.disclaimer {
  display: flex; align-items: flex-start; gap: .7rem;
  margin-top: 1.5rem;
  padding: .95rem 1.1rem;
  border-radius: var(--r-md);
  background: rgba(155,126,189,.09);
  border: 1px solid rgba(155,126,189,.26);
  font-size: var(--fs-sm);
  line-height: 1.58;
  color: var(--text-muted);
}
.disclaimer svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: .18rem; color: var(--lilac-deep); }
.disclaimer strong { color: var(--text); font-weight: 600; }
.disclaimer a { color: var(--lilac-deep); text-decoration: underline; text-underline-offset: 2px; }
.disclaimer a:hover { color: var(--text); }

.domains {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(1rem, 1.8vw, 1.5rem);
}
.domain {
  background: var(--surface);
  border: 1px solid rgba(246,241,244,.09);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 2.3vw, 1.9rem);
  display: flex; flex-direction: column;
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease);
}
.domain:hover { border-color: rgba(155,126,189,.42); box-shadow: var(--sh-md); transform: translateY(-4px); }

.domain__head { display: flex; align-items: flex-start; gap: .9rem; margin-bottom: 1.4rem; }
.domain__icon {
  display: grid; place-items: center; flex: 0 0 42px;
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(155,126,189,.14);
  border: 1px solid rgba(155,126,189,.3);
  color: var(--lilac-deep);
}
.domain__icon svg { width: 21px; height: 21px; }
.domain h3 { font-size: var(--fs-h3); margin-bottom: .45rem; }
.domain__what { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.58; }

.domain__ref {
  display: flex; align-items: center; gap: .5rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--mauve);
  padding-top: 1rem; margin-bottom: .7rem;
  border-top: 1px solid rgba(246,241,244,.09);
}
.domain__ref::after {
  content: 'live examples ↗';
  margin-left: auto; letter-spacing: .04em; color: var(--lilac-deep);
  text-transform: none; font-weight: 600; font-size: .66rem;
}
.domain__list { display: grid; gap: .45rem; margin-top: auto; }
.domain__list a {
  position: relative;
  display: flex; flex-direction: column; gap: .12rem;
  padding: .68rem 2rem .68rem .85rem;
  border-radius: 12px;
  border: 1px solid rgba(246,241,244,.1);
  background: var(--soft-white);
  font-size: var(--fs-sm); font-weight: 600; color: var(--text);
  transition: border-color .25s var(--ease), background .25s var(--ease),
              transform .25s var(--ease), box-shadow .25s var(--ease);
}
.domain__list a::after {
  content: '↗';
  position: absolute; right: .8rem; top: 50%; transform: translateY(-50%);
  font-size: .95rem; font-weight: 700; color: var(--lilac-deep);
  transition: transform .25s var(--ease);
}
.domain__list a span {
  font-size: var(--fs-xs); font-weight: 400; color: var(--mauve); line-height: 1.4;
}
.domain__list a:hover {
  border-color: rgba(155,126,189,.55);
  background: #fff;
  box-shadow: var(--sh-sm);
  transform: translateX(2px);
  color: var(--lilac-deep);
}
.domain__list a:hover::after { transform: translate(2px, -55%); }

.domain__go {
  display: inline-flex; align-items: center; gap: .45rem;
  margin-top: 1.3rem; padding-top: 1.1rem;
  border-top: 1px solid rgba(246,241,244,.09);
  font-size: var(--fs-sm); font-weight: 600; color: var(--lilac-deep);
  transition: gap .25s var(--ease), color .25s var(--ease);
}
.domain__go svg { width: 17px; height: 17px; }
.domain__go:hover { gap: .75rem; color: var(--text); }
.domain:hover .domain__go { color: var(--text); }

/* System classes as a dark dramatic band (#domains uses .section--plum) */
#domains .domain {
  background: rgba(246,241,244,.045);
  border-color: rgba(246,241,244,.1);
}
#domains .domain:hover { background: rgba(246,241,244,.07); border-color: rgba(155,126,189,.5); }
#domains .domain h3 { color: var(--blush); }
#domains .domain__what { color: rgba(246,241,244,.66); }
#domains .domain__icon { color: var(--lilac-soft); background: rgba(155,126,189,.2); border-color: rgba(155,126,189,.4); }
#domains .domain__ref { color: var(--lilac-soft); border-top-color: rgba(246,241,244,.14); }
#domains .domain__ref::after { color: var(--lilac-soft); }
#domains .domain__list a {
  background: rgba(246,241,244,.05);
  border-color: rgba(246,241,244,.12);
  color: var(--blush);
}
#domains .domain__list a span { color: rgba(246,241,244,.6); }
#domains .domain__list a::after { color: var(--lilac-soft); }
#domains .domain__list a:hover {
  background: rgba(155,126,189,.2);
  border-color: rgba(155,126,189,.55);
  color: var(--blush); box-shadow: none;
}
#domains .domain__go { color: var(--lilac-soft); border-top-color: rgba(246,241,244,.12); }
#domains .domain__go:hover { color: var(--blush); }
#domains .disclaimer { background: rgba(155,126,189,.14); border-color: rgba(155,126,189,.34); color: rgba(18,14,26,.72); }
#domains .disclaimer svg { color: var(--lilac-soft); }
#domains .disclaimer strong { color: var(--blush); }
#domains .disclaimer a { color: var(--lilac-soft); }
#domains .disclaimer a:hover { color: var(--blush); }

/* ---------- 11. Work ---------- */
.work {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1rem, 1.8vw, 1.5rem);
}
.work__item {
  background: var(--soft-white);
  border: 1px solid rgba(246,241,244,.09);
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 2.5vw, 2.1rem);
  display: flex; flex-direction: column;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.work__item:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-md);
  border-color: rgba(155,126,189,.4);
}
.work__item--feature {
  grid-column: 1 / -1;
  background: var(--soft-white);
  border-color: rgba(155,126,189,.35);
  box-shadow: var(--sh-md);
  position: relative; overflow: hidden;
}
.work__item--feature::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--lilac-deep), var(--lilac), var(--lilac-soft));
}
.work__item--feature .work__title { font-size: clamp(1.45rem, 2.6vw, 2rem); }
.work__item--feature .work__body { max-width: 68ch; font-size: var(--fs-lede); }

.work__meta { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; margin-bottom: 1.05rem; }
.work__sector {
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--mauve);
}
.work__title { font-size: var(--fs-h3); margin-bottom: .8rem; }
.work__body { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.65; margin-bottom: 1.35rem; }

.work__stats {
  display: flex; flex-wrap: wrap; gap: 1.9rem;
  padding-block: 1.15rem; margin-bottom: 1.2rem;
  border-block: 1px solid rgba(246,241,244,.08);
}
.work__stats li { display: flex; flex-direction: column; }
.work__stats strong {
  font-family: var(--font-display); font-size: 1.42rem; font-weight: 600;
  letter-spacing: -.028em; color: var(--text); font-variant-numeric: tabular-nums;
}
.work__stats span { font-size: var(--fs-xs); color: var(--mauve); }

.work__quote {
  position: relative;
  font-size: var(--fs-sm); font-style: italic; line-height: 1.62;
  color: var(--text);
  padding: .95rem 1.1rem;
  background: rgba(155,126,189,.09);
  border-left: 2.5px solid var(--lilac);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin-bottom: 1.25rem;
}
.work__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; }
.work__tags li {
  font-size: .69rem; font-weight: 600;
  padding: .3rem .62rem; border-radius: 999px;
  background: rgba(246,241,244,.05); color: var(--text-muted);
  border: 1px solid rgba(246,241,244,.07);
}
.work__more {
  margin-top: 2rem; padding-top: 1.6rem;
  border-top: 1px solid rgba(246,241,244,.1);
  font-size: var(--fs-sm); color: var(--mauve); max-width: 72ch;
}

/* ---------- 12. Quotes ---------- */
.quotes {
  columns: 3 300px;
  column-gap: clamp(1rem, 1.8vw, 1.5rem);
  margin-bottom: 3rem;
}
.quote {
  break-inside: avoid;
  margin-bottom: clamp(1rem, 1.8vw, 1.5rem);
  background: var(--soft-white);
  border: 1px solid rgba(246,241,244,.08);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 2.2vw, 1.85rem);
  box-shadow: var(--sh-sm);
  position: relative;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.quote:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.quote::before {
  content: '“';
  position: absolute; top: .3rem; right: 1.1rem;
  font-family: var(--font-display); font-size: 4.2rem; line-height: 1;
  color: var(--lilac); opacity: .22;
}
.quote blockquote { font-size: var(--fs-sm); line-height: 1.68; color: var(--text); margin-bottom: 1.15rem; position: relative; }
.quote figcaption { display: flex; flex-direction: column; gap: .32rem; padding-top: .9rem; border-top: 1px solid rgba(246,241,244,.08); }
.quote__who { font-size: var(--fs-xs); color: var(--mauve); font-weight: 500; }
.quote__rating { font-size: .78rem; color: var(--lilac-deep); letter-spacing: .12em; }

.badges { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center; }
.badge {
  font-size: var(--fs-xs); font-weight: 600;
  padding: .5rem 1rem; border-radius: 999px;
  border: 1.5px solid rgba(155,126,189,.42);
  color: var(--text); background: transparent;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.badge:hover { background: var(--lilac); color: var(--blush); border-color: var(--lilac); }
.badges__note { text-align: center; margin-top: 1.1rem; font-size: var(--fs-xs); color: var(--mauve); }

/* ---------- 13. Process ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: clamp(1.2rem, 2.4vw, 2.2rem); }
.step { position: relative; padding-top: 2.4rem; }
.step::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1.5px; background: rgba(246,241,244,.16);
}
.step::after {
  content: ''; position: absolute; top: -3.5px; left: 0;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lilac);
  box-shadow: 0 0 0 5px rgba(155,126,189,.2);
}
.step__n {
  display: block; font-family: var(--font-display);
  font-size: .8rem; font-weight: 600; letter-spacing: .14em;
  color: var(--lilac); margin-bottom: .8rem;
}
.step h3 { font-size: var(--fs-h3); color: var(--blush); margin-bottom: .7rem; }
.step p { font-size: var(--fs-sm); color: rgba(246,241,244,.66); line-height: 1.65; }

/* ---------- 14. About ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .8fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}
.about__copy .section__title { margin-bottom: 1.5rem; }
.about__copy p { font-size: var(--fs-body); color: var(--text-muted); line-height: 1.75; margin-bottom: 1.15rem; max-width: 60ch; }

.about__facts { margin-top: 2.2rem; border-top: 1px solid rgba(246,241,244,.1); }
.about__facts li {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  justify-content: space-between; align-items: baseline;
  padding-block: 1rem;
  border-bottom: 1px solid rgba(246,241,244,.08);
}
.about__facts strong {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--lilac-deep);
}
.about__facts span { font-size: var(--fs-sm); color: var(--text); }

.about__stack {
  background: var(--soft-white);
  border: 1px solid rgba(155,126,189,.24);
  border-radius: var(--r-xl);
  padding: clamp(1.6rem, 2.6vw, 2.1rem);
  box-shadow: var(--sh-md);
  position: sticky; top: 110px;
}
.stack__title {
  font-size: 1.05rem; margin-bottom: 1.5rem;
  padding-bottom: .9rem; border-bottom: 1px solid rgba(246,241,244,.09);
}
.stack__group {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--mauve);
  margin-bottom: .65rem;
}
.stack__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.5rem; }
.stack__tags:last-child { margin-bottom: 0; }
.stack__tags li {
  font-size: .74rem; font-weight: 500;
  padding: .35rem .7rem; border-radius: 8px;
  background: rgba(246,241,244,.045);
  border: 1px solid rgba(246,241,244,.07);
  color: var(--text);
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.stack__tags li:hover { background: rgba(155,126,189,.16); border-color: rgba(155,126,189,.35); color: var(--lilac-deep); }

/* ---------- 15. CTA ---------- */
.section--cta {
  background: var(--plum);
  background-image: linear-gradient(155deg, var(--plum) 0%, var(--plum-dk) 100%);
  color: var(--blush);
  position: relative; overflow: hidden;
}
.cta__glow {
  position: absolute; bottom: -45%; left: 50%; transform: translateX(-50%);
  width: min(900px, 100vw); aspect-ratio: 2/1;
  background: radial-gradient(ellipse at center, rgba(155,126,189,.34), transparent 66%);
  pointer-events: none;
}
.cta {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .82fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
  position: relative;
}
.section--cta .section__eyebrow { color: var(--lilac-soft); }
.cta__title { font-size: var(--fs-h2); color: var(--blush); margin-bottom: 1.25rem; }
.cta__title .mark::after { opacity: .4; }
.cta__lede { font-size: var(--fs-lede); color: rgba(246,241,244,.72); max-width: 52ch; margin-bottom: 1.9rem; }

.cta__list { display: grid; gap: .7rem; }
.cta__list li {
  position: relative; padding-left: 1.7rem;
  font-size: var(--fs-sm); color: rgba(246,241,244,.8);
}
.cta__list li::before {
  content: ''; position: absolute; left: 0; top: .52rem;
  width: 9px; height: 9px; border-radius: 50%;
  border: 2px solid var(--lilac);
}

.cta__actions { display: grid; gap: .7rem; }
.contact-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.05rem 1.25rem;
  border-radius: var(--r-md);
  background: rgba(246,241,244,.05);
  border: 1px solid rgba(246,241,244,.1);
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.contact-row:hover {
  background: rgba(155,126,189,.16);
  border-color: rgba(155,126,189,.45);
  transform: translateX(4px);
}
.contact-row--primary {
  background: rgba(155,126,189,.14);
  border-color: rgba(155,126,189,.4);
}
.contact-row--primary .contact-row__icon { background: rgba(155,126,189,.3); color: #fff; }
.contact-row__icon {
  display: grid; place-items: center; flex: 0 0 40px;
  width: 40px; height: 40px; border-radius: 11px;
  background: rgba(155,126,189,.18);
  color: var(--lilac-soft);
}
.contact-row__icon svg { width: 20px; height: 20px; }
.contact-row__text { display: flex; flex-direction: column; min-width: 0; }
.contact-row__text strong { font-size: var(--fs-sm); font-weight: 600; color: var(--blush); }
.contact-row__text span { font-size: var(--fs-xs); color: var(--mauve); overflow: hidden; text-overflow: ellipsis; }
.contact-row__go { margin-left: auto; color: var(--lilac); font-size: 1.1rem; transition: transform .3s var(--ease); }
.contact-row:hover .contact-row__go { transform: translateX(3px); }

.cta__note { text-align: center; font-size: var(--fs-xs); color: var(--mauve); margin-top: .5rem; }

/* ---------- 16. Footer ---------- */
.footer { background: var(--plum-dk); color: var(--blush); padding-block: 3rem 2.25rem; }
.footer__inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1.75rem;
}
.footer__brand { display: flex; align-items: center; gap: .8rem; }
.footer__name { font-family: var(--font-display); font-weight: 600; font-size: .98rem; }
.footer__tag { font-size: var(--fs-xs); color: var(--mauve); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer__nav a { font-size: var(--fs-sm); color: rgba(246,241,244,.62); transition: color .25s var(--ease); }
.footer__nav a:hover { color: var(--lilac-soft); }
.footer__copy {
  font-size: var(--fs-xs); color: var(--mauve);
  width: 100%; padding-top: 1.6rem;
  border-top: 1px solid rgba(246,241,244,.09);
}

/* ---------- 17. Responsive ---------- */
@media (max-width: 1024px) {
  .hero__inner, .cta, .about { grid-template-columns: 1fr; }
  .hero__card { max-width: 560px; }
  .hero__chip--1 { left: 0; }
  .hero__chip--2 { right: 0; }
  .about__stack { position: static; }
}

@media (max-width: 1000px) {
  .nav__toggle { display: block; }
  .nav { padding-block: .75rem; background: rgba(18,14,26,.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
  .nav__links {
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--soft-white);
    padding: .5rem var(--gutter) 1.5rem;
    box-shadow: var(--sh-lg);
    border-top: 1px solid rgba(246,241,244,.08);
    clip-path: inset(0 0 100% 0);
    opacity: 0; pointer-events: none;
    transition: clip-path .4s var(--ease), opacity .3s var(--ease);
  }
  .nav__links.is-open { clip-path: inset(0 0 0 0); opacity: 1; pointer-events: auto; }
  .nav__links > a:not(.btn) { padding-block: .95rem; border-bottom: 1px solid rgba(246,241,244,.07); font-size: 1rem; }
  .nav__links > a:not(.btn)::after { display: none; }
  .nav__links .btn { margin-top: 1rem; }

  .compare { grid-template-columns: 1fr; }
  .compare__arrow { transform: rotate(90deg); justify-self: center; width: 44px; }
}

@media (max-width: 600px) {
  :root { --fs-body: .97rem; --fs-hero: clamp(1.95rem, 8.6vw, 2.5rem); }

  /* The highlight must be allowed to wrap on narrow screens or it overflows */
  .mark { white-space: normal; }
  .eyebrow, .section__eyebrow { font-size: .7rem; letter-spacing: .11em; }

  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
  .flagship__metrics { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
  .flagship__metrics dd { font-size: 1.08rem; }
  .hero__chip { display: none; }
  .work__stats { gap: 1.2rem; }
  .quotes { columns: 1; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .diagram { padding-inline: .85rem; }
}

/* ============================================================
   19. ENHANCEMENTS
   Grain, scroll progress, status pill, line-mask headline,
   interactive diagram, FAQ, case study, back-to-top, magnetics.
   ============================================================ */

/* ---------- Grain texture (very subtle "designed" feel) ---------- */
.grain {
  position: fixed; inset: 0; z-index: 90;
  pointer-events: none; opacity: .32;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.36'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
@media (prefers-reduced-motion: reduce) { .grain { opacity: .18; } }

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; z-index: 120;
  height: 2px; pointer-events: none;
}
.progress span {
  display: block; height: 100%; width: 100%;
  transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, var(--lilac-deep), var(--lilac), var(--lilac-soft));
}

/* ---------- Availability status ---------- */
.status {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: .55rem;
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .04em;
  color: var(--text);
  padding: .45rem .9rem .45rem .75rem;
  border-radius: 999px;
  background: var(--soft-white);
  border: 1px solid rgba(155,126,189,.34);
  box-shadow: var(--sh-sm);
  margin-bottom: 1.5rem;
}
.status__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4FB477;
  box-shadow: 0 0 0 3px rgba(79,180,119,.2);
  animation: pulseOk 2.4s ease-in-out infinite;
}
@keyframes pulseOk {
  0%,100% { box-shadow: 0 0 0 0 rgba(79,180,119,.5); }
  50% { box-shadow: 0 0 0 6px rgba(79,180,119,0); }
}
.status__sep { color: var(--lilac); }
.status__muted { color: var(--mauve); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Nav: Upwork link + separator ---------- */
.nav__sep { width: 1px; height: 18px; background: rgba(246,241,244,.16); }
.nav__upwork {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: var(--fs-sm); font-weight: 600; color: var(--lilac-deep);
  transition: color .25s var(--ease);
}
.nav__upwork svg { width: 16px; height: 16px; }
.nav__upwork:hover { color: var(--text); }

/* ---------- Section index marker ---------- */
.section__idx {
  display: inline-grid; place-items: center;
  min-width: 1.55rem; height: 1.55rem;
  margin-right: .2rem;
  border-radius: 6px;
  background: rgba(155,126,189,.16);
  border: 1px solid rgba(155,126,189,.3);
  font-size: .66rem; font-weight: 700; letter-spacing: .02em;
  color: var(--lilac-deep);
}
.section--plum .section__idx,
.section--cta .section__idx {
  background: rgba(155,126,189,.2);
  border-color: rgba(201,182,222,.32);
  color: var(--lilac-soft);
}

/* ---------- Headline line-mask reveal ---------- */
.lines .line {
  display: block;
  overflow: hidden;
  padding-bottom: .1em;
  margin-bottom: -.1em;
}
.lines .line > span {
  display: block;
  transform: translateY(108%);
  transition: transform 1s var(--ease);
}
.lines.is-in .line > span { transform: none; }
.lines.is-in .line:nth-child(1) > span { transition-delay: .06s; }
.lines.is-in .line:nth-child(2) > span { transition-delay: .16s; }
.lines.is-in .line:nth-child(3) > span { transition-delay: .26s; }
@media (prefers-reduced-motion: reduce) {
  .lines .line > span { transform: none; transition: none; }
}

/* ---------- Interactive diagram ---------- */
.dnode { cursor: pointer; outline: none; }
.dnode__box {
  fill: var(--plum);
  stroke: transparent; stroke-width: 2.5;
  transition: fill .3s var(--ease), stroke .3s var(--ease);
}
.dnode__box--panel { fill: var(--plum-panel); }
.dnode__ring {
  fill: none; stroke: var(--lilac-soft); stroke-width: 1.4;
  opacity: 0; transition: opacity .3s var(--ease);
}
.dnode__t {
  font-family: var(--font-display); font-size: 16px; font-weight: 600;
  fill: var(--blush); text-anchor: middle; pointer-events: none;
}
.dnode__s { font-family: var(--font-body); font-size: 11.5px; fill: var(--lilac-soft); text-anchor: middle; pointer-events: none; }
.dnode__m {
  font-family: var(--font-body); font-size: 10.5px; font-weight: 600;
  fill: var(--lilac); text-anchor: middle; letter-spacing: 1.1px; pointer-events: none;
}
.dnode:hover .dnode__box { stroke: rgba(155,126,189,.55); }
.dnode.is-active .dnode__box { stroke: var(--lilac); filter: url(#glow); }
.dnode.is-active .dnode__ring { opacity: .7; }
.dnode:focus-visible .dnode__ring { opacity: 1; stroke: var(--lilac-deep); stroke-width: 2.4; }

.dnode__band {
  fill: rgba(201,182,222,.22);
  stroke: var(--lilac-deep); stroke-width: 1.5; stroke-dasharray: 8 7;
  transition: fill .3s var(--ease);
}
.dnode--band:hover .dnode__band { fill: rgba(201,182,222,.36); }
.dnode--band.is-active .dnode__band { fill: rgba(201,182,222,.42); stroke-width: 2.2; stroke-dasharray: none; }
.dnode--band .dnode__ring { display: none; }

/* stage chips */
.dchips {
  display: flex; flex-wrap: wrap; gap: .4rem;
  margin-top: 1.4rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(246,241,244,.09);
}
.dchip {
  font-size: var(--fs-xs); font-weight: 600;
  padding: .42rem .8rem; border-radius: 999px;
  border: 1px solid rgba(246,241,244,.1);
  background: var(--surface); color: var(--text-muted);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.dchip:hover { border-color: rgba(155,126,189,.5); color: var(--lilac-deep); }
.dchip.is-active { background: var(--plum); color: var(--blush); border-color: var(--text); }

/* detail panel */
.dpanel {
  margin-top: 1.25rem;
  background: var(--surface);
  border: 1px solid rgba(155,126,189,.28);
  border-radius: var(--r-lg);
  padding: clamp(1.25rem, 2.2vw, 1.75rem);
}
.dpanel__head {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem 1rem;
  padding-bottom: 1.1rem; margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(246,241,244,.09);
}
.dpanel__step {
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--mauve);
  order: -1; width: 100%;
}
.dpanel__step b { color: var(--lilac-deep); }
.dpanel__title { font-size: clamp(1.2rem, 1.9vw, 1.5rem); }
.dpanel__nav { margin-left: auto; display: flex; gap: .4rem; }
.dpanel__btn {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(246,241,244,.14);
  color: var(--text); font-size: .95rem;
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.dpanel__btn:hover { background: var(--lilac); border-color: var(--lilac); color: var(--blush); }

.dpanel__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; }
.dpanel__k {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .11em;
  text-transform: uppercase; color: var(--lilac-deep); margin-bottom: .5rem;
}
.dpanel__cell--risk .dpanel__k { color: #A8556B; }
.dpanel__v { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.65; }
.dpanel.is-swapping .dpanel__v,
.dpanel.is-swapping .dpanel__title { opacity: 0; }
.dpanel__v, .dpanel__title { transition: opacity .18s var(--ease); }

/* ---------- Flagship case study ---------- */
.case {
  position: relative;
  background: var(--soft-white);
  border: 1px solid rgba(155,126,189,.3);
  border-radius: var(--r-xl);
  padding: clamp(1.7rem, 3vw, 2.6rem);
  box-shadow: var(--sh-md);
  margin-bottom: clamp(1rem, 1.8vw, 1.5rem);
  overflow: hidden;
}
.case__bar {
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--lilac-deep), var(--lilac), var(--lilac-soft));
}
.case__top {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .9fr);
  gap: clamp(1.5rem, 3vw, 3rem); align-items: start;
  padding-bottom: 1.75rem; margin-bottom: 1.75rem;
  border-bottom: 1px solid rgba(246,241,244,.09);
}
.case__title { font-size: clamp(1.5rem, 2.7vw, 2.15rem); margin-bottom: .8rem; }
.case__lede { font-size: var(--fs-lede); color: var(--text-muted); line-height: 1.62; max-width: 60ch; }
.case__stats { display: grid; gap: 1.1rem; }
.case__stats li { display: flex; flex-direction: column; }
.case__stats strong {
  font-family: var(--font-display); font-size: clamp(1.6rem, 2.4vw, 2rem); font-weight: 600;
  letter-spacing: -.03em; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1.1;
}
.case__stats span { font-size: var(--fs-xs); color: var(--mauve); margin-top: .15rem; }

.case__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: clamp(1.5rem, 2.6vw, 2.4rem); margin-bottom: 1.75rem; }
.case__col p:not(.case__k) { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.68; }
.case__k {
  display: flex; align-items: center; gap: .6rem;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .11em;
  text-transform: uppercase; color: var(--text); margin-bottom: .75rem;
}
.case__n {
  display: grid; place-items: center;
  width: 1.5rem; height: 1.5rem; border-radius: 6px;
  background: var(--plum); color: var(--blush);
  font-size: .62rem; letter-spacing: 0;
}

/* "and 50 more" tile */
.work__item--more {
  background: linear-gradient(158deg, var(--plum) 0%, var(--plum-dk) 100%);
  border-color: transparent;
  justify-content: center;
}
.work__item--more .work__title { color: var(--blush); }
.work__item--more .work__body { color: rgba(246,241,244,.66); }
.work__item--more .btn--ghost { border-color: rgba(201,182,222,.5); color: var(--blush); align-self: flex-start; }
.work__item--more .btn--ghost:hover { background: var(--lilac); border-color: var(--lilac); color: var(--blush); }

/* ---------- FAQ ---------- */
.faq__wrap { max-width: 900px; }
.faq { border-top: 1px solid rgba(246,241,244,.11); }
.faq__item { border-bottom: 1px solid rgba(246,241,244,.11); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.35rem 0;
  cursor: pointer; list-style: none;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  font-weight: 600; letter-spacing: -.015em;
  color: var(--text);
  transition: color .25s var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--lilac-deep); }
.faq__ic {
  position: relative; flex: 0 0 26px; width: 26px; height: 26px;
  border-radius: 50%; border: 1.5px solid rgba(155,126,189,.45);
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.faq__ic::before, .faq__ic::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 10px; height: 1.7px; background: var(--lilac-deep);
  transform: translate(-50%, -50%);
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.faq__ic::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__ic { background: var(--lilac); border-color: var(--lilac); transform: rotate(180deg); }
.faq__item[open] .faq__ic::before,
.faq__item[open] .faq__ic::after { background: var(--surface); }
.faq__item[open] .faq__ic::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__a { padding: 0 0 1.5rem; max-width: 72ch; }
.faq__a p { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.72; }
.faq__item[open] .faq__a { animation: faqIn .4s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- "What to send" brief card ---------- */
.brief {
  padding: 1.25rem 1.35rem;
  border-radius: var(--r-md);
  background: rgba(246,241,244,.05);
  border: 1px solid rgba(246,241,244,.1);
}
.brief__k {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .11em;
  text-transform: uppercase; color: var(--lilac-soft); margin-bottom: .85rem;
}
.brief__list { display: grid; gap: .55rem; margin-bottom: 1rem; }
.brief__list li {
  position: relative; padding-left: 1.5rem;
  font-size: var(--fs-sm); color: rgba(18,14,26,.72); line-height: 1.5;
}
.brief__list li::before {
  content: ''; position: absolute; left: 0; top: .5rem;
  width: 7px; height: 7px; border-radius: 2px; background: var(--lilac);
}
.brief__foot {
  font-size: var(--fs-xs); color: var(--mauve); line-height: 1.5;
  padding-top: .85rem; border-top: 1px solid rgba(246,241,244,.09);
}

/* ---------- Back to top ---------- */
.totop {
  position: fixed; right: clamp(1rem, 2.5vw, 2rem); bottom: clamp(1rem, 2.5vw, 2rem);
  z-index: 95;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--plum); color: var(--blush);
  box-shadow: var(--sh-md);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .35s var(--ease), transform .35s var(--ease),
              visibility .35s var(--ease), background .25s var(--ease);
}
.totop svg { width: 19px; height: 19px; }
.totop.is-in { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: var(--lilac-deep); }

/* ---------- Magnetic buttons ---------- */
.magnetic { will-change: transform; }

/* ---------- Footer note ---------- */
.footer__note { display: block; margin-top: .35rem; opacity: .72; }

/* ============================================================
   20. LIVE RAG DEMO
   ============================================================ */
.section__head--center { margin-inline: auto; text-align: center; max-width: 62ch; }
.section__eyebrow--center { justify-content: center; }

.rag-sec { position: relative; }
.rag {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: stretch;
}

/* ----- Ask panel ----- */
.rag__ask {
  display: flex; flex-direction: column;
  background: linear-gradient(162deg, var(--plum) 0%, var(--plum-dk) 100%);
  border-radius: var(--r-xl);
  padding: clamp(1.35rem, 2.2vw, 1.9rem);
  box-shadow: var(--sh-plum);
  position: relative; overflow: hidden;
}
.rag__ask::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(246,241,244,.09) 1px, transparent 0);
  background-size: 22px 22px; pointer-events: none;
}
.rag__ask > * { position: relative; }

.rag__bar { display: flex; align-items: center; gap: .55rem; margin-bottom: 1.5rem; }
.rag__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lilac); box-shadow: 0 0 0 3px rgba(155,126,189,.25); }
.rag__barlabel {
  font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 500;
  color: var(--lilac-soft); letter-spacing: .02em;
}
.rag__stat {
  margin-left: auto; font-size: .66rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--mauve);
  padding: .28rem .6rem; border-radius: 999px;
  background: rgba(246,241,244,.06); border: 1px solid rgba(246,241,244,.1);
  transition: color .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}
.rag__stat[data-on="run"] { color: var(--lilac-soft); background: rgba(155,126,189,.16); border-color: rgba(155,126,189,.4); }
.rag__stat[data-on="done"] { color: #8FD9AE; background: rgba(79,180,119,.14); border-color: rgba(79,180,119,.34); }
.rag__stat[data-on="refuse"] { color: #E7B4C2; background: rgba(168,85,107,.18); border-color: rgba(168,85,107,.4); }

.rag__inputlabel {
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--mauve); margin-bottom: .55rem;
}
.rag__inputrow { display: flex; gap: .5rem; margin-bottom: 1.5rem; }
.rag__input {
  flex: 1; min-width: 0;
  font-family: var(--font-body); font-size: var(--fs-sm); color: var(--blush);
  background: rgba(246,241,244,.06);
  border: 1px solid rgba(246,241,244,.14);
  border-radius: 999px; padding: .72rem 1.1rem;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.rag__input::placeholder { color: var(--mauve); }
.rag__input:focus-visible { outline: none; border-color: var(--lilac); background: rgba(155,126,189,.14); }
.rag__go {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--lilac); color: #fff;
  transition: background .25s var(--ease), transform .25s var(--ease), opacity .25s var(--ease);
}
.rag__go svg { width: 19px; height: 19px; }
.rag__go:hover:not(:disabled) { background: var(--lilac-soft); color: var(--plum); }
.rag__go:disabled { opacity: .4; cursor: not-allowed; }
.rag__go.is-run { pointer-events: none; }
.rag__go.is-run svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.rag__try {
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--mauve); margin-bottom: .7rem;
}
.rag__chips { display: flex; flex-direction: column; gap: .5rem; margin-bottom: auto; }
.rag__chip {
  text-align: left;
  font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 500;
  color: var(--blush); line-height: 1.4;
  padding: .72rem .95rem;
  border-radius: var(--r-md);
  background: rgba(246,241,244,.05);
  border: 1px solid rgba(246,241,244,.1);
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.rag__chip:hover { background: rgba(155,126,189,.18); border-color: rgba(155,126,189,.45); transform: translateX(3px); }
.rag__chip.is-active { background: rgba(155,126,189,.22); border-color: var(--lilac); }
.rag__chip b { color: var(--lilac-soft); font-weight: 600; }

.rag__pipe {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  margin-top: 1.6rem; padding-top: 1.3rem;
  border-top: 1px solid rgba(246,241,244,.1);
}
.rag__step {
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--mauve);
  padding: .35rem .7rem; border-radius: 999px;
  border: 1px solid rgba(246,241,244,.12);
  transition: color .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}
.rag__step.is-on {
  color: var(--plum); background: var(--lilac-soft); border-color: var(--lilac-soft);
}
.rag__step.is-done { color: var(--lilac-soft); border-color: rgba(155,126,189,.4); }
.rag__pipearrow { color: var(--mauve); font-size: .8rem; }

/* ----- Output panel ----- */
.rag__out { display: flex; flex-direction: column; gap: clamp(1rem, 1.8vw, 1.4rem); }
.rag__outk {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .11em;
  text-transform: uppercase; color: var(--lilac-deep); margin-bottom: .8rem;
}
.rag__outk span { color: var(--mauve); font-weight: 500; letter-spacing: .02em; text-transform: none; }

.rag__sources {
  background: var(--soft-white);
  border: 1px solid rgba(155,126,189,.24);
  border-radius: var(--r-lg);
  padding: clamp(1.2rem, 2vw, 1.5rem);
  box-shadow: var(--sh-sm);
}
.rag__srclist { display: grid; gap: .6rem; }
.rag__src {
  position: relative;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .75rem;
  padding: .8rem .95rem;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid rgba(246,241,244,.09);
  opacity: .5;
  transition: opacity .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease);
}
.rag__src.is-hit { opacity: 1; border-color: rgba(155,126,189,.5); background: var(--soft-white); box-shadow: var(--sh-sm); }
.rag__src.is-top { border-color: var(--lilac); box-shadow: 0 0 0 1px var(--lilac), var(--sh-sm); }
.rag__src.is-cited { transform: translateX(2px); }
.rag__srcrank {
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 8px;
  background: rgba(246,241,244,.06); color: var(--mauve);
  font-family: var(--font-display); font-size: .74rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.rag__src.is-hit .rag__srcrank { background: var(--plum); color: var(--blush); }
.rag__src.is-top .rag__srcrank { background: var(--lilac); color: #fff; }
.rag__srcmeta { min-width: 0; }
.rag__srctitle { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--text); line-height: 1.3; }
.rag__srcsource { display: block; font-size: var(--fs-xs); color: var(--mauve); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rag__srcscore {
  font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 600;
  color: var(--lilac-deep); font-variant-numeric: tabular-nums;
  opacity: 0; transition: opacity .4s var(--ease);
}
.rag__src.is-hit .rag__srcscore { opacity: 1; }

.rag__answer {
  background: linear-gradient(160deg, var(--plum) 0%, var(--plum-dk) 100%);
  border-radius: var(--r-lg);
  padding: clamp(1.2rem, 2vw, 1.5rem);
  box-shadow: var(--sh-plum);
  flex: 1;
}
.rag__answer .rag__outk { color: var(--lilac-soft); }
.rag__answerbody { font-size: var(--fs-body); line-height: 1.72; color: var(--blush); min-height: 4.5rem; }
.rag__idle { color: rgba(246,241,244,.6); font-size: var(--fs-sm); }
.rag__citeeg, .rag__cite {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.15rem; height: 1.15rem; padding: 0 .28rem;
  margin: 0 .08rem; border-radius: 5px; vertical-align: baseline;
  font-family: var(--font-body); font-size: .68rem; font-weight: 700;
  background: var(--lilac); color: #fff;
  font-variant-numeric: tabular-nums;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.rag__cite { cursor: pointer; }
.rag__cite:hover, .rag__cite:focus-visible { background: var(--lilac-soft); color: var(--plum); transform: translateY(-1px); outline: none; }
.rag__caret {
  display: inline-block; width: 2px; height: 1.05em; vertical-align: text-bottom;
  background: var(--lilac-soft); margin-left: 1px;
  animation: caret 1s step-end infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.rag__refuse {
  display: flex; align-items: flex-start; gap: .7rem;
  color: var(--lilac-soft); font-size: var(--fs-sm);
}
.rag__refuse svg { flex: 0 0 20px; width: 20px; height: 20px; margin-top: .1rem; }
.rag__refuse b { color: var(--blush); font-weight: 600; }

.rag__note {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  text-align: center; max-width: 66ch; margin-inline: auto;
  font-size: var(--fs-sm); color: var(--mauve);
}

@media (prefers-reduced-motion: reduce) {
  .rag__go.is-run svg { animation: none; }
  .rag__caret { animation: none; }
}
@media (max-width: 940px) {
  .rag { grid-template-columns: 1fr; }
}

/* ============================================================
   21. CAPABILITY LANDING PAGES (/rag, /agents, …)
   ============================================================ */
.lhero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-top: clamp(7.5rem, 12vw, 10rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.lhero__inner { position: relative; max-width: 62rem; }
.lback {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: var(--fs-sm); font-weight: 600; color: var(--lilac-deep);
  margin-bottom: 1.6rem;
  transition: gap .25s var(--ease), color .25s var(--ease);
}
.lback:hover { gap: .7rem; color: var(--text); }
.lhero__title { font-size: var(--fs-hero); margin-bottom: 1.4rem; max-width: 20ch; }
.lhero__lede { font-size: var(--fs-lede); color: var(--text-muted); max-width: 60ch; margin-bottom: 2rem; }
.lhero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.lhero__metrics {
  display: flex; flex-wrap: wrap; gap: 2.5rem;
  margin-top: 2.75rem; padding-top: 2rem;
  border-top: 1px solid rgba(246,241,244,.12);
}
.lmetric { display: flex; flex-direction: column; }
.lmetric strong {
  font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 700;
  letter-spacing: -.03em; color: var(--text); line-height: 1.05; font-variant-numeric: tabular-nums;
}
.lmetric span { font-size: var(--fs-xs); color: var(--mauve); margin-top: .3rem; }

/* what I build */
.caps { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(1rem, 1.8vw, 1.5rem); }
.cap {
  position: relative;
  background: var(--soft-white);
  border: 1px solid rgba(246,241,244,.09);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 2.4vw, 2rem);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.cap:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: rgba(155,126,189,.4); }
.cap__n {
  display: inline-grid; place-items: center;
  width: 2rem; height: 2rem; margin-bottom: 1rem;
  border-radius: 9px; background: rgba(155,126,189,.16); border: 1px solid rgba(155,126,189,.3);
  font-family: var(--font-display); font-size: .78rem; font-weight: 700; color: var(--lilac-deep);
  font-variant-numeric: tabular-nums;
}
.cap h3 { font-size: var(--fs-h3); margin-bottom: .65rem; }
.cap p { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.65; }

/* reference systems */
.refsyss { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(.85rem, 1.5vw, 1.15rem); }
.refsys {
  display: flex; flex-direction: column; gap: .35rem;
  padding: clamp(1.25rem, 2vw, 1.6rem);
  background: var(--surface);
  border: 1px solid rgba(246,241,244,.09);
  border-radius: var(--r-lg);
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
}
.refsys:hover { transform: translateY(-4px); border-color: rgba(155,126,189,.45); box-shadow: var(--sh-md); background: var(--soft-white); }
.refsys__name {
  display: flex; align-items: center; gap: .35rem;
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--text);
}
.refsys__name svg { width: 15px; height: 15px; color: var(--lilac-deep); opacity: .55; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.refsys:hover .refsys__name svg { opacity: 1; transform: translate(2px,-2px); }
.refsys__desc { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.5; }
.refsys__dom { font-size: var(--fs-xs); color: var(--mauve); margin-top: auto; padding-top: .5rem; }

/* Sibling reference cards on a dark band */
.refsyss--dark .refsys {
  background: rgba(246,241,244,.05);
  border-color: rgba(246,241,244,.12);
}
.refsyss--dark .refsys:hover { background: rgba(246,241,244,.08); border-color: rgba(155,126,189,.5); }
.refsyss--dark .refsys__name { color: var(--blush); }
.refsyss--dark .refsys__name svg { color: var(--lilac-soft); }
.refsyss--dark .refsys__desc { color: rgba(246,241,244,.66); }
.refsyss--dark .refsys__dom { color: var(--lilac-soft); }

/* Disclaimer / refnote on a dark plum band */
.section--plum .disclaimer {
  background: rgba(155,126,189,.14); border-color: rgba(155,126,189,.34); color: rgba(18,14,26,.72);
}
.section--plum .disclaimer svg { color: var(--lilac-soft); }
.section--plum .disclaimer strong { color: var(--blush); }
.section--plum .disclaimer a { color: var(--lilac-soft); }

/* landing CTA */
.lcta__inner { max-width: 60rem; text-align: center; margin-inline: auto; position: relative; }
.lcta .cta__title { font-size: var(--fs-h2); margin-bottom: 1.1rem; }
.lcta .cta__lede { margin-inline: auto; margin-bottom: 1.9rem; }
.lcta .lhero__cta { justify-content: center; }
.btn--ghost-light { border-color: rgba(201,182,222,.5); color: var(--blush); }
.btn--ghost-light:hover { background: var(--lilac); border-color: var(--lilac); color: var(--blush); }

@media (max-width: 600px) {
  .lhero__metrics { gap: 1.5rem 2rem; }
}

/* ---------- Company page: split hero + site preview frame ---------- */
.lhero--split .lhero__inner {
  max-width: var(--wrap);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 4vw, 4rem); align-items: center;
}
.lhero--split .lhero__title { max-width: 16ch; }

.siteframe {
  border-radius: 16px; overflow: hidden;
  background: var(--plum);
  border: 1px solid rgba(246,241,244,.14);
  box-shadow: var(--sh-lg);
  transform: perspective(1400px) rotateY(-4deg) rotateX(1.5deg);
  transition: transform .5s var(--ease);
}
.siteframe:hover { transform: perspective(1400px) rotateY(0deg) rotateX(0deg); }
.siteframe__bar {
  display: flex; align-items: center; gap: .7rem;
  padding: .6rem .85rem; background: var(--plum);
}
.siteframe__dots { display: inline-flex; gap: .35rem; }
.siteframe__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(246,241,244,.28); }
.siteframe__dots i:first-child { background: #E5799B; }
.siteframe__dots i:nth-child(2) { background: #E8C07A; }
.siteframe__dots i:nth-child(3) { background: #8FD9AE; }
.siteframe__url {
  flex: 1; min-width: 0;
  font-family: var(--font-body); font-size: var(--fs-xs); color: var(--lilac-soft);
  background: rgba(246,241,244,.06); border: 1px solid rgba(246,241,244,.08);
  padding: .32rem .7rem; border-radius: 999px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.siteframe__open {
  flex: 0 0 auto; font-size: var(--fs-xs); font-weight: 600; color: var(--blush);
  padding: .3rem .7rem; border-radius: 999px; background: rgba(155,126,189,.3);
  border: 1px solid rgba(155,126,189,.4);
  transition: background .25s var(--ease);
}
.siteframe__open:hover { background: var(--lilac); }
.siteframe__shot {
  display: block; position: relative; aspect-ratio: 1360 / 850;
  background:
    linear-gradient(110deg, rgba(155,126,189,.1), rgba(201,182,222,.06)) ,
    repeating-linear-gradient(45deg, rgba(246,241,244,.03) 0 12px, transparent 12px 24px);
  background-color: var(--soft-white);
}
.siteframe__shot img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
}
.siteframe__note {
  font-size: var(--fs-xs); color: var(--mauve); text-align: center;
  margin-top: .8rem;
}

/* honest reference note */
.refnote {
  display: flex; align-items: flex-start; gap: .7rem;
  margin: 1.5rem 0;
  padding: .9rem 1.05rem;
  border-radius: var(--r-md);
  background: rgba(155,126,189,.1);
  border: 1px solid rgba(155,126,189,.28);
  font-size: var(--fs-sm); line-height: 1.55; color: var(--text-muted);
  max-width: 56ch;
}
.refnote svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: .12rem; color: var(--lilac-deep); }
.refnote strong { color: var(--text); font-weight: 600; }
.refnote a { color: var(--lilac-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.refnote a:hover { color: var(--text); }

.lhero__like { color: var(--lilac-deep); }

@media (max-width: 900px) {
  .lhero--split .lhero__inner { grid-template-columns: 1fr; }
  .siteframe { transform: none; order: -1; }
  .siteframe:hover { transform: none; }
}

/* ---------- Enhancement responsive ---------- */
@media (max-width: 1024px) {
  .case__top { grid-template-columns: 1fr; }
  .case__stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
@media (max-width: 1000px) {
  .nav__sep { display: none; }
  .nav__upwork { padding-block: .95rem; border-bottom: 1px solid rgba(246,241,244,.07); font-size: 1rem; }
}
@media (max-width: 860px) {
  .dpanel__nav { margin-left: 0; }
}
@media (max-width: 600px) {
  .status { font-size: .68rem; }
  .status__muted { display: none; }
  .case__stats { grid-template-columns: 1fr 1fr; }
  .totop { width: 42px; height: 42px; }
  .dchips { gap: .35rem; }
  .dchip { font-size: .68rem; padding: .38rem .65rem; }
}

/* ============================================================
   23. DARK-PREMIUM POLISH — depth, glass, glow, light relief
   ============================================================ */

/* Layered ambient ground — never a flat slab. Fixed so it parallaxes subtly. */
body {
  background-color: var(--bg);
  background-image:
    radial-gradient(58vw 46vh at 84% -8%, rgba(155,126,189,.20), transparent 60%),
    radial-gradient(50vw 40vh at 2% 8%,  rgba(126,92,168,.14), transparent 55%),
    radial-gradient(80vw 55vh at 50% 112%, rgba(62,46,86,.4), transparent 62%),
    linear-gradient(180deg, #16111F 0%, #14101E 55%, #100B18 100%);
  background-attachment: fixed;
}
.grain { mix-blend-mode: soft-light; opacity: .5; }

/* Section rhythm — alternate grounds + a faint lilac seam between bands. */
.section { position: relative; }
.section--soft { background: var(--bg-soft); }
.section + .section::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(155,126,189,.28), transparent);
  opacity: .6;
}

/* Glass nav */
.nav.is-stuck {
  background: rgba(18,14,26,.62);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 1px 0 rgba(246,241,244,.06), 0 20px 40px -30px rgba(0,0,0,.8);
}

/* Edge-lit glass surfaces — hairline top highlight reads premium on dark. */
.card, .work__item, .quote, .about__stack, .compare__col--after, .flagship,
.cap, .refsys, .rag__sources, .dpanel, .domain, .work__item--feature, .metric, .brief {
  box-shadow: var(--sh-sm), inset 0 1px 0 rgba(246,241,244,.06);
}
.card, .cap, .refsys, .domain, .work__item {
  background:
    linear-gradient(180deg, rgba(246,241,244,.055), rgba(246,241,244,.02));
  border: 1px solid rgba(246,241,244,.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.card:hover, .cap:hover, .refsys:hover, .domain:hover, .work__item:hover {
  border-color: rgba(155,126,189,.55);
  box-shadow: var(--sh-md), inset 0 1px 0 rgba(246,241,244,.09), 0 0 40px -18px rgba(155,126,189,.5);
}

/* Bigger, richer glows */
.hero__glow { background: radial-gradient(circle, rgba(155,126,189,.4) 0%, rgba(155,126,189,.12) 44%, transparent 70%); }
.cta__glow  { background: radial-gradient(ellipse at center, rgba(155,126,189,.42), transparent 66%); }

/* Signal CTA — lilac gradient pops off the dark ground */
.btn--primary {
  background: linear-gradient(135deg, var(--lilac) 0%, var(--lilac-deep) 100%);
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(155,126,189,.75);
}
.btn--primary:hover {
  background: linear-gradient(135deg, var(--lilac-soft) 0%, var(--lilac) 100%);
  color: var(--plum);
  box-shadow: 0 16px 40px -12px rgba(201,182,222,.8);
}
.nav__upwork { color: var(--lilac-soft); }
.nav__upwork:hover { color: #fff; }

/* Headline highlight → gradient bar */
.mark { --mark-c: rgba(155,126,189,.55); }

/* Muted copy rides the token */
.hero__lede, .section__lede, .lhero__lede { color: var(--text-muted); }
.hero__lede strong { color: var(--text); }
.faq__a p, .about__copy p, .cap p, .work__body, .domain__what, .refsys__desc,
.metric__v, .dpanel__v, .case__lede, .case__col p:not(.case__k) { color: var(--text-muted); }
.compare__col--before { background: rgba(246,241,244,.03); border-color: rgba(246,241,244,.1); }
.stack__tags li, .work__tags li, .card__tags li { background: rgba(246,241,244,.05); }
.rag__input { color: var(--text); }
.marquee { background: var(--bg-soft); }

/* ---- LIGHT-RELIEF ISLANDS (so it isn't fully dark) ---- */

/* 1 · The architecture diagram keeps its light card — its SVG is drawn
      plum-on-blush and must stay readable. It doubles as a bright focal panel. */
.diagram { background: #F7F3F6; box-shadow: var(--sh-lg), 0 0 60px -20px rgba(201,182,222,.5); }
.diagram__cap { color: #6b6076; border-top-color: rgba(42,30,61,.12); }

/* 2 · The RAG demo "Sources" panel goes bright — a light card paired with the
      dark answer panel, giving the section a live light/dark contrast. */
.rag__sources { background: #F7F3F6; border-color: rgba(201,182,222,.5); }
.rag__src { background: #fff; border-color: rgba(42,30,61,.1); }
.rag__srctitle { color: var(--plum); }
.rag__srcsource { color: #8A7F92; }
.rag__srcrank { background: rgba(42,30,61,.06); color: #8A7F92; }
.rag__src.is-hit .rag__srcrank { background: var(--plum); color: var(--blush); }
.rag__src.is-top .rag__srcrank { background: var(--lilac); color: #fff; }
.rag__outk { color: var(--lilac-deep); }
.rag__answer .rag__outk { color: var(--lilac-soft); }

/* 3 · Site-preview frames are inherently bright imagery — leave as focal light. */

/* Back-to-top + totop on dark */
.totop { background: linear-gradient(135deg, var(--lilac), var(--lilac-deep)); color:#fff; }
.totop:hover { background: var(--lilac-soft); color: var(--plum); }

.footer__note { display: block; margin-top: .35rem; opacity: .72; }

/* ---- LIGHT-BAND SECTIONS (white touches for balance) ---- */
.section--light {
  background: #F4EFF3;
  background-image:
    radial-gradient(50vw 40vh at 90% 0%, rgba(155,126,189,.12), transparent 60%),
    radial-gradient(40vw 34vh at 0% 100%, rgba(201,182,222,.14), transparent 60%);
  color: var(--plum);
}
.section--light .section__title { color: var(--plum); }
.section--light .section__lede { color: #56495f; }
.section--light .section__eyebrow { color: var(--lilac-deep); }
.section--light .section__idx { background: rgba(155,126,189,.16); border-color: rgba(155,126,189,.3); color: var(--lilac-deep); }

/* Proof — white quote cards */
.section--light .quote { background: #fff; border-color: rgba(42,30,61,.08); box-shadow: var(--sh-sm), inset 0 1px 0 rgba(255,255,255,.6); }
.section--light .quote blockquote { color: var(--plum); }
.section--light .quote__who { color: #8A7F92; }
.section--light .quote figcaption { border-top-color: rgba(42,30,61,.08); }
.section--light .badge { color: var(--plum); border-color: rgba(155,126,189,.42); background: rgba(255,255,255,.5); }
.section--light .badge:hover { background: var(--lilac); color: #fff; border-color: var(--lilac); }
.section--light .badges__note { color: #8A7F92; }

/* About — light copy + white stack card */
.section--light .about__copy p { color: #56495f; }
.section--light .about__facts { border-top-color: rgba(42,30,61,.1); }
.section--light .about__facts li { border-bottom-color: rgba(42,30,61,.08); }
.section--light .about__facts strong { color: var(--lilac-deep); }
.section--light .about__facts span { color: var(--plum); }
.section--light .about__stack { background: #fff; border-color: rgba(42,30,61,.08); box-shadow: var(--sh-md), inset 0 1px 0 rgba(255,255,255,.6); }
.section--light .stack__title { color: var(--plum); border-bottom-color: rgba(42,30,61,.09); }
.section--light .stack__group { color: #8A7F92; }
.section--light .stack__tags li { background: rgba(42,30,61,.045); border-color: rgba(42,30,61,.07); color: var(--plum); }
.section--light .stack__tags li:hover { background: rgba(155,126,189,.16); border-color: rgba(155,126,189,.35); color: var(--lilac-deep); }

/* ---------- 18. Print ---------- */
@media print {
  .nav, .marquee, .hero__glow, .hero__grid-motif, .cta__glow, .section__lattice,
  .grain, .progress, .totop, .dchips, .dpanel__nav { display: none !important; }
  .faq__a { display: block !important; }
  .lines .line > span { transform: none !important; }
  body { background: #fff; color: #000; }
  .section--plum, .section--cta { background: #fff !important; color: #000 !important; }
  .card, .step, .card h3, .step h3 { color: #000 !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   24. ART DIRECTION PASS — editorial type, one surface language
   Appended last: wins the cascade on all 28 pages.
   ============================================================ */

/* -- Type scale: confident, oversized display -- */
:root {
  --fs-hero: clamp(2.9rem, 7vw, 6.2rem);
  --fs-h2:   clamp(2.2rem, 4.4vw, 3.7rem);
  --fs-h3:   clamp(1.16rem, 1.7vw, 1.45rem);
  --sec-y:   clamp(6.5rem, 12vw, 11rem);
}
h1, h2 { letter-spacing: -0.038em; }
.hero__title { line-height: 1.01; }
.section__title { line-height: 1.04; max-width: 22ch; }

/* -- Crafted scrollbar -- */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: #14101E; }
::-webkit-scrollbar-thumb { background: #3E2E56; border-radius: 6px; border: 3px solid #14101E; }
::-webkit-scrollbar-thumb:hover { background: var(--lilac-deep); }

/* -- Nav: editorial uppercase tracking -- */
.nav__links > a:not(.btn) {
  font-size: .72rem; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase;
}
.nav__upwork { font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; }
.footer__nav a { font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; }

/* -- Hero v2: full-bleed headline, dimmed opening line, stats strip -- */
.hero__inner--v2 { display: block; }
.hero__inner--v2 .status { margin-bottom: 2.2rem; }
.hero__inner--v2 .hero__title {
  max-width: 15ch;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.hero__title-dim { color: var(--text-muted); opacity: .55; }
.hero__row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.hero__inner--v2 .hero__lede { font-size: clamp(1.05rem, 1.5vw, 1.28rem); max-width: 52ch; }
.hero__inner--v2 .hero__stats {
  display: flex; flex-wrap: wrap; gap: 0;
  border-top: 1px solid rgba(246,241,244,.12);
  padding-top: 0; margin-top: .5rem;
}
.hero__inner--v2 .hero__stats li {
  padding: 1.6rem 2.2rem 0 0; margin-right: 2.2rem;
  border-right: 1px solid rgba(246,241,244,.1);
}
.hero__inner--v2 .hero__stats li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero__inner--v2 .stat__num { font-size: clamp(1.9rem, 3vw, 2.7rem); font-weight: 700; letter-spacing: -.035em; }
.hero__inner--v2 .stat__label {
  font-size: .68rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--text-muted); margin-top: .3rem;
}

/* -- Section headers: ghost numeral + hairline rule -- */
.section__eyebrow, .eyebrow { align-items: baseline; width: 100%; }
.section__idx {
  display: inline-block; min-width: 0; height: auto;
  background: none !important; border: none !important;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 700; line-height: .9;
  color: rgba(155,126,189,.28);
  margin-right: .85rem;
  font-variant-numeric: tabular-nums;
}
@supports (-webkit-text-stroke: 1px black) {
  .section__idx { color: transparent; -webkit-text-stroke: 1.5px rgba(155,126,189,.45); }
  .section--light .section__idx { -webkit-text-stroke: 1.5px rgba(42,30,61,.3); }
}
.section__eyebrow::after {
  content: ''; flex: 1 1 3rem; height: 1px; align-self: center;
  margin-left: 1.1rem;
  background: linear-gradient(90deg, rgba(155,126,189,.45), transparent);
}
.section__head { margin-bottom: clamp(3.25rem, 6vw, 5rem); }

/* -- ONE surface language: flat panel, hairline border, lift on hover -- */
.card, .work__item, .domain, .cap, .refsys, .dpanel, .work__item--feature, .case {
  background: #1D1630;
  background-image: none;
  border: 1px solid rgba(246,241,244,.08);
  border-radius: 20px;
  box-shadow: 0 1px 0 rgba(246,241,244,.04) inset, 0 12px 32px -18px rgba(0,0,0,.55);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.card:hover, .work__item:hover, .domain:hover, .cap:hover, .refsys:hover {
  background: #221A38;
  border-color: rgba(155,126,189,.5);
  box-shadow: 0 1px 0 rgba(246,241,244,.06) inset, 0 22px 48px -20px rgba(0,0,0,.7),
              0 0 44px -18px rgba(155,126,189,.45);
  transform: translateY(-5px);
}
.section--light .quote, .section--light .about__stack { background: #fff; }

/* Cards inside the dark #domains band match the single language too */
#domains .domain { background: #241B3A; border-color: rgba(246,241,244,.1); }
#domains .domain:hover { background: #2A2044; }

/* -- Marquee: quiet, uppercase, technical -- */
.marquee { border-block-color: rgba(246,241,244,.08); }
.marquee__track span {
  font-family: var(--font-body); font-size: .68rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted);
}
.marquee__track i { color: var(--lilac); }

/* -- Larger, more deliberate primary CTA -- */
.btn--primary { padding: 1.02rem 1.9rem; }
.btn--lilac { padding: 1.02rem 1.9rem; }

/* -- Company/category hero inherits the big scale -- */
.lhero__title { line-height: 1.02; }

/* -- Mobile discipline -- */
@media (max-width: 900px) {
  .hero__row { grid-template-columns: 1fr; }
  .hero__inner--v2 .hero__stats li { padding-right: 1.4rem; margin-right: 1.4rem; }
}
@media (max-width: 600px) {
  :root { --fs-hero: clamp(2.3rem, 10vw, 2.9rem); }
  .hero__inner--v2 .hero__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 1rem; border-top: 0; }
  .hero__inner--v2 .hero__stats li { border-right: 0; padding: 0; margin: 0; }
  .section__idx { font-size: 1.9rem; }
}

/* ============================================================
   25. PORTFOLIO PAGES — project cards with designed cover plates
   ============================================================ */
.lstats {
  display: flex; flex-wrap: wrap; gap: 0;
  border-top: 1px solid rgba(246,241,244,.12);
  margin-top: 2.4rem;
}
.lstats li {
  display: flex; flex-direction: column;
  padding: 1.5rem 2.2rem 0 0; margin-right: 2.2rem;
  border-right: 1px solid rgba(246,241,244,.1);
}
.lstats li:last-child { border-right: 0; }
.lstats .stat__num { font-size: clamp(1.8rem, 2.8vw, 2.5rem); font-weight: 700; letter-spacing: -.03em; color: var(--text); font-family: var(--font-display); }
.lstats .stat__label { font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; color: var(--text-muted); margin-top: .3rem; }

.pfs { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.pf {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 0; overflow: hidden;
  background: #1D1630;
  border: 1px solid rgba(246,241,244,.08);
  border-radius: 24px;
  box-shadow: 0 1px 0 rgba(246,241,244,.04) inset, 0 16px 40px -20px rgba(0,0,0,.6);
  transition: border-color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
}
.pf:hover {
  border-color: rgba(155,126,189,.5);
  transform: translateY(-4px);
  box-shadow: 0 1px 0 rgba(246,241,244,.06) inset, 0 26px 56px -22px rgba(0,0,0,.75),
              0 0 50px -20px rgba(155,126,189,.45);
}
.pf:nth-child(even) { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
.pf:nth-child(even) .pf__cover { order: 2; }

.pf__cover {
  position: relative; min-height: 300px;
  border-right: 1px solid rgba(246,241,244,.07);
}
.pf:nth-child(even) .pf__cover { border-right: 0; border-left: 1px solid rgba(246,241,244,.07); }
.pf__cover svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pf__num {
  position: absolute; top: 1.25rem; left: 1.5rem;
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 700;
  color: transparent; -webkit-text-stroke: 1.3px rgba(246,241,244,.4);
  line-height: 1;
}
.pf__body { padding: clamp(1.75rem, 3vw, 2.75rem); display: flex; flex-direction: column; }
.pf__title { font-size: clamp(1.35rem, 2.2vw, 1.8rem); letter-spacing: -.025em; margin: .8rem 0; color: var(--text); }
.pf__desc { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.7; margin-bottom: 1.35rem; max-width: 58ch; }
.pf__stats { margin-bottom: 1.25rem; }
.pf .work__quote { margin-bottom: 1.25rem; }
.pf .work__tags { margin-top: auto; }

.pf__note {
  margin-top: 2.25rem; padding: 1.1rem 1.3rem;
  border-left: 2.5px solid var(--lilac);
  background: rgba(155,126,189,.08);
  border-radius: 0 12px 12px 0;
  font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.65; max-width: 72ch;
}

@media (max-width: 860px) {
  .pf, .pf:nth-child(even) { grid-template-columns: 1fr; }
  .pf__cover, .pf:nth-child(even) .pf__cover { order: -1; min-height: 220px; border: 0; border-bottom: 1px solid rgba(246,241,244,.07); }
  .lstats li { padding-right: 1.4rem; margin-right: 1.4rem; }
}
