/* ============================================================
   Logo Design - /service/logo-design
   Prefix: lg-   Palette lifted from the owner's art: violet #6D28D9,
   lilac #E9D5FF, lime #A3E635 (hero-art-2 swatch card), coral from
   cta3-bg, cream grid paper from hero-bg.
   ============================================================ */

.lg-page {
  --lg-ink: #160d33;
  --lg-ink-2: #241a4f;
  --lg-violet: #6d28d9;
  --lg-violet-2: #8b5cf6;
  --lg-lilac: #e9d5ff;
  --lg-lilac-2: #f6f1ff;
  --lg-lime: #a3e635;
  --lg-coral: #f2603f;
  --lg-cream: #fbf8f2;
  --lg-text: #4a4366;
  --lg-muted: #6e6889;
  --lg-line: #ebe5f3;
  --lg-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --lg-ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --lg-display: "Bricolage Grotesque", system-ui, sans-serif;
  --lg-serif: "Instrument Serif", Georgia, serif;
  --lg-font: "DM Sans", system-ui, sans-serif;
  --lg-gap: clamp(72px, 9vw, 128px);
  --lg-hdr: 76px;

  font-family: var(--lg-font);
  color: var(--lg-text);
  background: #fff;
  overflow-x: clip;
  interpolate-size: allow-keywords;
}

/* style.css:2845 forces Gabarito !important on headings and p */
.lg-page :is(p, li, dd, dt, button, summary, a, span, small, figcaption) {
  font-family: var(--lg-font) !important;
}

.lg-page :is(h1, h2, h3, b) {
  font-family: var(--lg-display) !important;
}

.lg-page :is(h1, h2, h3) {
  margin: 0;
  color: var(--lg-ink);
  letter-spacing: -0.03em;
}

.lg-page h2 {
  font-size: clamp(30px, 3.6vw, 50px);
  font-weight: 700;
  line-height: 1.08;
  text-wrap: balance;
}

.lg-page h3 {
  font-size: 20px;
  font-weight: 650;
  line-height: 1.25;
}

.lg-page p {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
}

.lg-page :is(ul, ol) {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lg-page img {
  max-width: 100%;
  height: auto;
}

.lg-page section {
  position: relative;
}

.lg-sec {
  padding-block: var(--lg-gap);
}

.lg-wrap {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 24px;
}

.lg-center {
  display: flex;
  justify-content: center;
  margin-top: clamp(36px, 5vw, 56px);
}

.lg-head {
  max-width: 840px;
  margin: 0 auto clamp(40px, 5vw, 64px);
  text-align: center;
}

.lg-head h2 + p {
  margin-top: 18px;
}

.lg-head--left {
  max-width: none;
  margin-inline: 0;
  margin-bottom: 32px;
  text-align: left;
}

@media (min-width: 992px) {
  .lg-head--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(40px, 6vw, 88px);
    align-items: center;
    max-width: none;
    text-align: left;
  }

  .lg-head--split h2 + p {
    margin-top: 0;
  }
}

/* ---------- reveal: animation, not transition, so delays never touch hovers ---------- */
:where(.lg-anim) .lg-reveal {
  opacity: 0;
}

:where(.lg-anim) .lg-reveal.is-in {
  animation: lg-rise 0.9s var(--lg-ease) var(--d, 0s) both;
}

@keyframes lg-rise {
  from {
    opacity: 0;
    translate: 0 30px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes lg-bob {
  50% {
    translate: 0 -10px;
  }
}

@keyframes lg-spin {
  to {
    rotate: 360deg;
  }
}

/* ---------- button: arrow disc crosses to the left on hover ---------- */
.lg-btn {
  --w: 44px;
  --in: 7px;
  --bg: var(--lg-violet);
  --fg: #fff;
  --disc: #fff;
  --disc-fg: var(--lg-violet);
  --glow: rgba(109, 40, 217, 0.32);

  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: calc(var(--w) + 2 * var(--in));
  max-width: 100%;
  padding: 0 calc(var(--w) + var(--in) + 14px) 0 26px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  text-decoration: none;
  box-shadow: 0 14px 30px var(--glow);
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease,
    padding 0.5s var(--lg-ease-io);
}

.lg-btn__label {
  min-width: 0;
  padding-block: 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.lg-btn__icon {
  position: absolute;
  top: 50%;
  right: var(--in);
  display: grid;
  place-items: center;
  width: var(--w);
  height: var(--w);
  border-radius: 50%;
  background: var(--disc);
  color: var(--disc-fg);
  translate: 0 -50%;
  transition: right 0.5s var(--lg-ease-io);
}

.lg-btn__icon svg {
  width: 18px;
  height: 18px;
  transform: rotate(-45deg);
  transition: transform 0.45s var(--lg-ease-io);
}

.lg-btn:hover,
.lg-btn:focus-visible {
  padding-left: calc(var(--w) + var(--in) + 14px);
  padding-right: 26px;
  color: var(--fg);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px var(--glow);
}

.lg-btn:hover .lg-btn__icon,
.lg-btn:focus-visible .lg-btn__icon {
  right: calc(100% - var(--w) - var(--in));
}

.lg-btn:hover .lg-btn__icon svg,
.lg-btn:focus-visible .lg-btn__icon svg {
  transform: rotate(0deg);
}

.lg-btn--lime {
  --bg: var(--lg-lime);
  --fg: var(--lg-ink);
  --disc: var(--lg-ink);
  --disc-fg: var(--lg-lime);
  --glow: rgba(163, 230, 53, 0.28);
}

.lg-page :is(a, button, summary, li):focus-visible {
  outline: 3px solid var(--lg-violet);
  outline-offset: 3px;
}

/* ============================================================
   HERO
   ============================================================ */
.lg-hero {
  --mx: 0;
  --my: 0;

  overflow: hidden;
  background: var(--lg-cream);
}

.lg-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}

.lg-hero::after {
  /* soft violet bloom behind the stage */
  content: "";
  position: absolute;
  right: -10%;
  top: 10%;
  width: 60vw;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(139, 92, 246, 0.16), transparent);
  pointer-events: none;
}

.lg-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
  min-height: min(800px, calc(100vh - 100px));
  padding-block: 56px 72px;
}

.lg-page .lg-hero__title {
  font-size: clamp(44px, 5.6vw, 84px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
}

.lg-mask {
  display: block;
  overflow: hidden;
  padding: 0 0.12em 0.2em 0;
  margin-bottom: -0.2em;
}

.lg-mask > span {
  display: inline-block;
}

.lg-hero__title em {
  position: relative;
  display: inline-block;
  padding-right: 0.06em;
  font-family: var(--lg-serif) !important;
  font-size: 1.14em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--lg-violet);
}

.lg-hero__swash {
  position: absolute;
  left: 2%;
  bottom: -0.02em;
  width: 96%;
  height: 0.18em;
  overflow: visible;
}

.lg-hero__swash path {
  fill: none;
  stroke: var(--lg-lime);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.lg-page .lg-hero__sub {
  margin-top: 26px;
  font-family: var(--lg-serif) !important;
  font-size: clamp(22px, 2vw, 30px);
  font-style: italic;
  line-height: 1.25;
  color: var(--lg-ink-2);
}

.lg-hero__lead {
  max-width: 540px;
  margin: 16px 0 34px !important;
}

:where(.lg-anim) .lg-mask > span {
  translate: 0 110%;
}

:where(.lg-anim) .lg-hero__swash path {
  stroke-dashoffset: 1;
}

:where(.lg-anim) .lg-hero__in {
  opacity: 0;
}

:where(.lg-anim) .is-ready .lg-mask > span {
  animation: lg-up 1.1s var(--lg-ease) both;
}

:where(.lg-anim) .is-ready .lg-mask + .lg-mask > span {
  animation-delay: 0.1s;
}

:where(.lg-anim) .is-ready .lg-hero__swash path {
  animation: lg-draw 0.9s var(--lg-ease) 0.75s both;
}

:where(.lg-anim) .is-ready .lg-hero__in {
  animation: lg-rise 0.9s var(--lg-ease) var(--d, 0s) both;
}

@keyframes lg-up {
  from {
    translate: 0 110%;
  }
  to {
    translate: 0 0;
  }
}

@keyframes lg-draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}

/* ---- stage: construction geometry + card deck ---- */
.lg-stage {
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1;
  margin-inline: auto;
}

.lg-stage__geo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  translate: calc(var(--mx) * 10px) calc(var(--my) * 10px);
  transition: translate 0.6s ease-out;
}

.lg-geo {
  fill: none;
  stroke: rgba(109, 40, 217, 0.28);
  stroke-width: 1.2;
  stroke-dasharray: 1;
  vector-effect: non-scaling-stroke;
}

.lg-geo--spin {
  stroke-dasharray: 0.004 0.008;
  transform-origin: 300px 300px;
  animation: lg-spin 80s linear infinite;
}

.lg-stage__nodes rect {
  fill: #fff;
  stroke: var(--lg-violet);
  stroke-width: 1.5;
}

:where(.lg-anim) .lg-geo:not(.lg-geo--spin) {
  stroke-dashoffset: 1;
}

:where(.lg-anim) .is-ready .lg-geo:not(.lg-geo--spin) {
  animation: lg-draw 1.6s var(--lg-ease-io) calc(0.3s + var(--d, 0s)) both;
}

:where(.lg-anim) .lg-geo--spin,
:where(.lg-anim) .lg-stage__nodes {
  opacity: 0;
}

:where(.lg-anim) .is-ready :is(.lg-geo--spin, .lg-stage__nodes) {
  animation: lg-fade 1s ease 1.2s both;
}

@keyframes lg-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.lg-chip {
  position: absolute;
  z-index: 3;
  border-radius: 50%;
  translate: calc(var(--mx) * var(--z) * 1px) calc(var(--my) * var(--z) * 1px);
  transition: translate 0.5s ease-out;
}

.lg-chip::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  animation: lg-bob 5s ease-in-out infinite;
}

.lg-chip--a {
  --z: 34;
  top: 12%;
  left: 2%;
  width: 54px;
  height: 54px;
}

.lg-chip--b {
  --z: -26;
  right: 4%;
  bottom: 18%;
  width: 40px;
  height: 40px;
}

.lg-chip--b::before {
  animation-delay: -2s;
}

.lg-chip--c {
  --z: 18;
  right: 14%;
  top: 2%;
  width: 26px;
  height: 26px;
}

.lg-chip--c::before {
  animation-delay: -3.5s;
}

.lg-chip--a::before {
  background: var(--lg-lime);
  box-shadow: 0 14px 30px rgba(163, 230, 53, 0.45);
}

.lg-chip--b::before {
  background: var(--lg-coral);
  box-shadow: 0 14px 30px rgba(242, 96, 63, 0.35);
}

.lg-chip--c::before {
  background: var(--lg-violet);
  box-shadow: 0 10px 20px rgba(109, 40, 217, 0.35);
}

.lg-deck {
  position: absolute;
  inset: 15% 17% 17% 13%;
  translate: calc(var(--mx) * -16px) calc(var(--my) * -12px);
  transition: translate 0.6s ease-out;
}

.lg-deck__card {
  --k: 0;

  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 7%;
  border: 1px solid rgba(109, 40, 217, 0.08);
  border-radius: 28px;
  background:
    radial-gradient(circle, rgba(109, 40, 217, 0.08) 1px, transparent 1.5px) 0 0 / 18px 18px,
    #fff;
  box-shadow:
    0 30px 60px -20px rgba(22, 13, 51, 0.28),
    0 2px 6px rgba(22, 13, 51, 0.05);
  z-index: calc(10 - var(--k));
  translate: calc(var(--k) * 6%) calc(var(--k) * -5.5%);
  rotate: calc(var(--k) * 4deg);
  scale: calc(1 - var(--k) * 0.06);
  transition:
    translate 0.9s var(--lg-ease),
    rotate 0.9s var(--lg-ease),
    scale 0.9s var(--lg-ease),
    filter 0.9s ease;
  filter: saturate(calc(1 - var(--k) * 0.25));
}

.lg-deck__card img {
  width: 100%;
  height: 100% !important;
  object-fit: contain;
}

.lg-deck__card.is-toss {
  animation: lg-toss 1s var(--lg-ease-io);
}

@keyframes lg-toss {
  0% {
    z-index: 20;
    translate: 0 0;
    rotate: 0deg;
    scale: 1;
  }
  48% {
    z-index: 20;
    translate: -62% 8%;
    rotate: -14deg;
    scale: 0.94;
  }
  52% {
    z-index: 0;
  }
}

:where(.lg-anim) .lg-deck {
  opacity: 0;
  scale: 0.92;
}

:where(.lg-anim) .is-ready .lg-deck {
  animation: lg-pop 1.1s var(--lg-ease) 0.25s both;
}

@keyframes lg-pop {
  from {
    opacity: 0;
    scale: 0.92;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}

.lg-cursor {
  position: absolute;
  z-index: 15;
  left: 50%;
  top: 6%;
  width: 26px;
  height: 26px;
  fill: var(--lg-ink);
  stroke: #fff;
  stroke-width: 1.6;
  stroke-linejoin: round;
  filter: drop-shadow(0 4px 6px rgba(22, 13, 51, 0.3));
  animation: lg-cursor 12s var(--lg-ease-io) infinite;
  pointer-events: none;
}

@keyframes lg-cursor {
  0%,
  10% {
    left: 50%;
    top: 6%;
  }
  25%,
  35% {
    left: 94%;
    top: 50%;
  }
  50%,
  60% {
    left: 50%;
    top: 94%;
  }
  75%,
  85% {
    left: 5%;
    top: 50%;
  }
  100% {
    left: 50%;
    top: 6%;
  }
}

.lg-deck__dots {
  position: absolute;
  left: 50%;
  bottom: -2%;
  z-index: 16;
  display: flex;
  gap: 8px;
  translate: -50% 0;
}

.lg-deck__dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(109, 40, 217, 0.22);
  cursor: pointer;
  transition:
    width 0.4s var(--lg-ease),
    background 0.3s;
}

.lg-deck__dots button[aria-selected="true"] {
  width: 30px;
  background: var(--lg-violet);
}

@media (max-width: 991.98px) {
  .lg-hero__grid {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-block: 32px 64px;
    text-align: center;
  }

  .lg-stage {
    order: -1;
    max-width: 460px;
  }

  .lg-hero__lead {
    margin-inline: auto !important;
  }
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.lg-port__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(170px, 17vw, 240px);
  grid-auto-flow: dense;
  gap: clamp(12px, 1.4vw, 20px);
}

.lg-tile {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  background: #f3f0ea;
  isolation: isolate;
}

.lg-tile--wide {
  grid-column: span 2;
}

.lg-tile--tall {
  grid-row: span 2;
}

.lg-tile img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  transition: scale 0.9s var(--lg-ease);
}

/* construction grid that lays over a logo on hover */
.lg-tile__grid {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, transparent 29%, rgba(255, 255, 255, 0.8) 29.2%, transparent 29.6%),
    radial-gradient(circle at 50% 50%, transparent 46%, rgba(255, 255, 255, 0.55) 46.2%, transparent 46.6%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.55) 1px, transparent 1px) 50% 0 / 12.5% 100%,
    linear-gradient(rgba(255, 255, 255, 0.55) 1px, transparent 1px) 0 50% / 100% 25%;
  mix-blend-mode: difference;
  opacity: 0;
  scale: 1.15;
  transition:
    opacity 0.5s ease,
    scale 0.9s var(--lg-ease);
  pointer-events: none;
}

.lg-tile figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(22, 13, 51, 0.82);
  backdrop-filter: blur(8px);
  color: #fff;
  translate: 0 calc(100% + 14px);
  transition: translate 0.55s var(--lg-ease);
}

.lg-tile figcaption span {
  font-size: 15px;
  font-weight: 600;
}

.lg-tile figcaption small {
  font-size: 13px;
  color: var(--lg-lilac);
}

.lg-tile:hover img {
  scale: 1.06;
}

.lg-tile:hover .lg-tile__grid {
  opacity: 1;
  scale: 1;
}

.lg-tile:hover figcaption {
  translate: 0 0;
}

@media (hover: none) {
  .lg-tile figcaption {
    translate: 0 0;
  }
}

:where(.lg-anim) .lg-tile::before {
  /* violet curtain lifts off each tile; clip-path on the tile itself would blind the IntersectionObserver */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: var(--lg-violet);
  transform-origin: 50% 0;
  pointer-events: none;
}

:where(.lg-anim) .lg-tile.is-in::before {
  animation: lg-curtain 1s var(--lg-ease-io) var(--d) both;
}

:where(.lg-anim) .lg-tile.is-in img {
  animation: lg-settle 1.4s var(--lg-ease) var(--d) both;
}

@keyframes lg-curtain {
  to {
    scale: 1 0;
  }
}

@keyframes lg-settle {
  from {
    scale: 1.25;
  }
  to {
    scale: 1;
  }
}

@media (max-width: 767.98px) {
  .lg-port__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: clamp(130px, 40vw, 200px);
  }
}

/* ============================================================
   RIBBON
   ============================================================ */
.lg-ribbon {
  position: relative;
  z-index: 2;
  overflow: hidden;
  margin-block: -12px;
  padding-block: 20px;
  background: var(--lg-violet);
  rotate: -1.6deg;
  box-shadow: 0 20px 40px -20px rgba(109, 40, 217, 0.6);
}

.lg-ribbon__track {
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  animation: lg-marquee 40s linear infinite;
}

.lg-ribbon span {
  font-family: var(--lg-display) !important;
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
  white-space: nowrap;
}

.lg-ribbon span.is-serif {
  font-family: var(--lg-serif) !important;
  font-style: italic;
  font-weight: 400;
  color: var(--lg-lime);
}

.lg-ribbon i {
  flex: none;
  width: 18px;
  height: 18px;
  background: var(--lg-lilac);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: lg-spin 6s linear infinite;
}

@keyframes lg-marquee {
  to {
    translate: -50% 0;
  }
}

/* ============================================================
   SERVICES - specimen bento
   ============================================================ */
.lg-svc {
  background:
    radial-gradient(55% 45% at 12% 18%, rgba(109, 40, 217, 0.32), transparent),
    radial-gradient(40% 40% at 92% 88%, rgba(163, 230, 53, 0.07), transparent),
    var(--lg-ink);
  color: rgba(233, 213, 255, 0.74);
}

.lg-svc .lg-head h2,
.lg-svc h3 {
  color: #fff;
}

.lg-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
}

.lg-bento--4 {
  grid-column: span 4;
}

.lg-bento--5 {
  grid-column: span 5;
}

.lg-bento--7 {
  grid-column: span 7;
}

.lg-bento--12 {
  grid-column: span 12;
}

.lg-bento__card {
  --sx: 50%;
  --sy: 0%;

  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  isolation: isolate;
  transition:
    border-color 0.4s ease,
    transform 0.5s var(--lg-ease);
}

/* cursor spotlight (pointer vars come from the shared .js-spot handler) */
.lg-bento__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(380px circle at var(--sx) var(--sy), rgba(139, 92, 246, 0.24), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.lg-bento__card:hover {
  border-color: rgba(233, 213, 255, 0.22);
  transform: translateY(-4px);
}

.lg-bento__card:hover::before {
  opacity: 1;
}

.lg-bento__copy {
  padding: 24px 28px 30px;
}

.lg-bento__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.lg-bento__icon img {
  width: 24px;
}

.lg-bento__copy p {
  margin-top: 8px;
  font-size: 16px;
}

.lg-bento--12 {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
}

.lg-bento--12 .lg-bento__copy {
  order: -1;
  padding: 36px 40px;
}

/* ---- vignette stage ---- */
.lg-art {
  position: relative;
  display: grid;
  place-items: center;
  height: 220px;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: radial-gradient(circle, rgba(233, 213, 255, 0.09) 1px, transparent 1.5px) 0 0 / 20px 20px;
}

.lg-bento--12 .lg-art {
  height: 100%;
  min-height: 240px;
  border-bottom: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.lg-art {
  overflow: hidden;
}

.lg-art > svg {
  position: absolute;
  inset: 18px;
  width: calc(100% - 36px);
  height: calc(100% - 36px);
}

.lg-art svg * {
  transform-box: fill-box;
  transform-origin: center;
}

/* custom: three circles drift apart on hover */
.lg-art__guides {
  fill: none;
  stroke: rgba(233, 213, 255, 0.16);
  stroke-width: 1;
  transform-origin: 160px 104px !important;
  transform-box: view-box !important;
  animation: lg-spin 60s linear infinite;
}

.lg-art__c {
  mix-blend-mode: screen;
  transition: translate 0.8s var(--lg-ease);
}

.lg-art__c--a {
  fill: var(--lg-violet-2);
}

.lg-art__c--b {
  fill: var(--lg-coral);
}

.lg-art__c--c {
  fill: var(--lg-lime);
}

.lg-bento__card:hover .lg-art__c--a {
  translate: -18px -8px;
}

.lg-bento__card:hover .lg-art__c--b {
  translate: 18px -8px;
}

.lg-bento__card:hover .lg-art__c--c {
  translate: 0 16px;
}

/* corporate: monogram card, second card slides out */
.lg-corp {
  position: relative;
  width: 200px;
  height: 128px;
}

.lg-corp > span {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  transition:
    rotate 0.7s var(--lg-ease),
    translate 0.7s var(--lg-ease);
}

.lg-corp__back {
  background: var(--lg-violet);
  rotate: -8deg;
  translate: -12px 6px;
}

.lg-corp__card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 24px;
  background: #fbf8f2;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.5);
}

.lg-corp__card b {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1.5px solid var(--lg-ink);
  font-family: var(--lg-serif) !important;
  font-size: 46px;
  font-weight: 400;
  line-height: 1;
  color: var(--lg-ink);
}

.lg-corp__card > span {
  display: grid;
  flex: 1;
  gap: 8px;
}

.lg-corp__card i {
  height: 6px;
  border-radius: 3px;
  background: var(--lg-ink);
}

.lg-corp__card i + i {
  width: 60%;
  background: #c9c2d9;
}

.lg-bento__card:hover .lg-corp__back {
  rotate: -16deg;
  translate: -34px 14px;
}

.lg-bento__card:hover .lg-corp__card {
  rotate: 4deg;
  translate: 10px -6px;
}

/* startup: mark launches along its trail */
.lg-art__trail {
  fill: none;
  stroke: rgba(163, 230, 53, 0.55);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 2 9;
  animation: lg-trail 1.6s linear infinite;
}

@keyframes lg-trail {
  to {
    stroke-dashoffset: -22;
  }
}

.lg-art__star {
  fill: var(--lg-lilac);
  animation: lg-blink 2.4s ease-in-out infinite;
}

.lg-art__star:nth-of-type(2) {
  animation-delay: -0.8s;
}

.lg-art__star:nth-of-type(3) {
  animation-delay: -1.6s;
}

@keyframes lg-blink {
  50% {
    opacity: 0.2;
  }
}

.lg-art__rocket {
  transition: translate 0.7s var(--lg-ease);
}

.lg-art__rocket circle {
  fill: var(--lg-lime);
}

.lg-art__rocket path {
  fill: none;
  stroke: var(--lg-ink);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lg-bento__card:hover .lg-art__rocket {
  translate: 16px -14px;
}

/* small business: rotating seal */
.lg-art__ring {
  fill: none;
  stroke: rgba(233, 213, 255, 0.2);
  stroke-dasharray: 2 5;
}

.lg-art__spin {
  transform-origin: 100px 100px !important;
  transform-box: view-box !important;
  animation: lg-spin 24s linear infinite;
}

.lg-bento__card:hover .lg-art__spin {
  animation-duration: 8s;
}

.lg-art__spin text {
  fill: var(--lg-lilac);
  font: 700 12.5px/1 var(--lg-font);
  letter-spacing: 0.14em;
}

.lg-art__core {
  fill: var(--lg-coral);
}

.lg-art__shop {
  fill: none;
  stroke: #fff;
  stroke-width: 3.5;
  stroke-linejoin: round;
}

/* redesign: dated mark gives way to the new one */
.lg-redo {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lg-redo > span {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  line-height: 1;
  transition:
    scale 0.6s var(--lg-ease),
    rotate 0.6s var(--lg-ease),
    opacity 0.5s ease,
    filter 0.5s ease;
}

.lg-redo__old {
  border: 2px double rgba(233, 213, 255, 0.5);
  border-radius: 50%;
  outline: 1px solid rgba(233, 213, 255, 0.25);
  outline-offset: 5px;
  font-family: var(--lg-serif) !important;
  font-size: 52px;
  font-style: italic;
  color: rgba(233, 213, 255, 0.7);
}

.lg-redo__new {
  border-radius: 26px;
  background: linear-gradient(140deg, var(--lg-violet-2), var(--lg-violet));
  box-shadow: 0 16px 34px -10px rgba(139, 92, 246, 0.7);
  font-family: var(--lg-display) !important;
  font-size: 54px;
  font-weight: 800;
  color: #fff;
}

.lg-redo svg {
  width: 48px;
  fill: none;
  stroke: var(--lg-lime);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lg-bento__card:hover .lg-redo__old {
  opacity: 0.4;
  scale: 0.86;
  filter: grayscale(1);
}

.lg-bento__card:hover .lg-redo__new {
  scale: 1.1;
  rotate: -6deg;
}

/* identity: lockup, palette, type */
.lg-kit {
  display: grid;
  grid-template-columns: auto auto;
  gap: 22px 34px;
  align-items: center;
}

.lg-kit__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lg-kit__mark {
  width: 46px;
  height: 46px;
  border-radius: 0 50% 50% 50%;
  background: linear-gradient(140deg, var(--lg-lime), #65a30d);
  rotate: 45deg;
  transition: rotate 0.7s var(--lg-ease);
}

.lg-kit__logo b {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
}

.lg-kit__type {
  display: flex;
  align-items: baseline;
  gap: 14px;
  color: #fff;
}

.lg-kit__type b {
  font-size: 54px;
  font-weight: 700;
  line-height: 1;
}

.lg-kit__type em {
  font-family: var(--lg-serif) !important;
  font-size: 58px;
  line-height: 1;
  color: var(--lg-lilac);
}

.lg-kit__sw {
  display: flex;
  grid-column: 1 / -1;
  gap: 10px;
}

.lg-kit__sw span {
  display: flex;
  align-items: flex-end;
  width: 92px;
  height: 74px;
  padding: 8px;
  border-radius: 12px;
  background: var(--c);
  transition: translate 0.6s var(--lg-ease) calc(var(--i) * 0.05s);
}

.lg-kit__sw small {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
  font-size: 10.5px;
  color: rgba(22, 13, 51, 0.75);
}

.lg-kit__sw span:first-child small,
.lg-kit__sw span:last-child small {
  color: rgba(255, 255, 255, 0.85);
}

.lg-bento__card:hover .lg-kit__sw span {
  translate: 0 -10px;
}

.lg-bento__card:hover .lg-kit__mark {
  rotate: 225deg;
}

@media (max-width: 991.98px) {
  .lg-bento > * {
    grid-column: span 6;
  }

  .lg-bento > .lg-bento--12 {
    grid-column: span 12;
  }
}

@media (max-width: 767.98px) {
  .lg-bento > *,
  .lg-bento > .lg-bento--12 {
    grid-column: span 12;
  }

  .lg-bento--12 {
    grid-template-columns: 1fr;
  }

  .lg-bento--12 .lg-bento__copy {
    order: 0;
    padding: 24px 28px 30px;
  }

  .lg-bento--12 .lg-art {
    order: -1;
    border-left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
}

@media (max-width: 479.98px) {
  .lg-kit {
    grid-template-columns: 1fr;
    gap: 16px;
    justify-items: center;
  }

  .lg-kit__sw span {
    width: 62px;
    height: 58px;
  }

  .lg-kit__sw small {
    display: none;
  }
}

/* ============================================================
   PROBLEM / SOLUTION
   ============================================================ */
.lg-fix {
  background: var(--lg-cream);
}

.lg-fix__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 40px);
  align-items: center;
}

/* ---- before/after slider ---- */
@property --pos {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 50%;
}

.lg-compare {
  --pos: 50%;

  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 600 / 660;
  margin: 0 auto;
  overflow: hidden;
  border: 10px solid #fff;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 60px -30px rgba(22, 13, 51, 0.3);
  user-select: none;
}

.lg-compare .lg-compare__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  border-radius: 18px;
}

.lg-compare__before {
  position: absolute;
  inset: 0;
  z-index: 1;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.lg-compare__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  z-index: 2;
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(22, 13, 51, 0.12);
  pointer-events: none;
}

.lg-compare__handle i {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--lg-violet);
  color: #fff;
  font-size: 22px;
  box-shadow:
    0 0 0 5px rgba(255, 255, 255, 0.9),
    0 12px 26px rgba(76, 29, 149, 0.45);
  translate: -50% -50%;
  transition: scale 0.3s var(--lg-ease);
}

.lg-compare:hover .lg-compare__handle i,
.lg-compare:focus-within .lg-compare__handle i {
  scale: 1.1;
}

.lg-compare__tag {
  position: absolute;
  top: 16px;
  z-index: 2;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lg-compare__tag--before {
  left: 16px;
  background: rgba(22, 13, 51, 0.8);
  color: #fff;
}

.lg-compare__tag--after {
  right: 16px;
  background: var(--lg-lime);
  color: var(--lg-ink);
}

/* invisible native range on top: drag, tap, and arrow keys for free */
.lg-compare__range {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}

.lg-compare:has(.lg-compare__range:focus-visible) {
  outline: 3px solid var(--lg-violet);
  outline-offset: 4px;
}

/* one sweep on reveal hints that it drags; stops once the visitor takes over */
:where(.lg-anim) .lg-compare.is-in:not(.is-touched) {
  animation:
    lg-rise 0.9s var(--lg-ease) both,
    lg-sweep 2.6s var(--lg-ease-io) 0.9s both;
}

@keyframes lg-sweep {
  0% {
    --pos: 50%;
  }
  35% {
    --pos: 82%;
  }
  70% {
    --pos: 22%;
  }
  100% {
    --pos: 50%;
  }
}

.lg-fix__side {
  display: grid;
  gap: 18px;
}

.lg-fix__card {
  padding: clamp(24px, 2.6vw, 34px);
  border-radius: 24px;
}

.lg-fix__card h3 {
  margin-bottom: 16px;
  font-size: 24px;
}

.lg-fix__card--problem {
  border: 1px solid var(--lg-line);
  background: #fff;
}

.lg-fix__card--problem li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding-block: 10px;
  font-size: 16px;
  line-height: 1.55;
}

.lg-fix__card--problem li + li {
  border-top: 1px dashed var(--lg-line);
}

.lg-fix__card--problem li i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(242, 96, 63, 0.12);
  color: var(--lg-coral);
  font-size: 16px;
}

:where(.lg-anim) .lg-fix__card--problem li {
  opacity: 0;
}

:where(.lg-anim) .lg-fix__card--problem.is-in li {
  animation: lg-slide 0.7s var(--lg-ease) calc(0.25s + var(--d)) both;
}

:where(.lg-anim) .lg-fix__card--problem.is-in li i {
  animation: lg-twist 0.7s var(--lg-ease) calc(0.4s + var(--d)) both;
}

@keyframes lg-slide {
  from {
    opacity: 0;
    translate: 24px 0;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes lg-twist {
  from {
    rotate: -180deg;
    scale: 0;
  }
  to {
    rotate: 0deg;
    scale: 1;
  }
}

.lg-fix__card--solution {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, var(--lg-violet), #4c1d95);
  color: rgba(255, 255, 255, 0.86);
}

.lg-fix__card--solution h3 {
  color: #fff;
}

.lg-fix__card--solution::after {
  /* quarter-disc mark echoes the process mark */
  content: "";
  position: absolute;
  right: -36px;
  top: -36px;
  width: 104px;
  height: 104px;
  border-radius: 0 0 0 100%;
  background: var(--lg-lime);
  opacity: 0.9;
  rotate: 90deg;
  transition: rotate 0.8s var(--lg-ease);
}

.lg-fix__card--solution:hover::after {
  rotate: 0deg;
}

.lg-fix__card--solution :is(h3, p) {
  position: relative;
  z-index: 1;
  max-width: 88%;
}

@media (max-width: 991.98px) {
  .lg-fix__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   CTA panels (all share one size)
   ============================================================ */
.lg-cta {
  --sx: 50%;
  --sy: 50%;

  position: relative;
  display: grid;
  align-content: center;
  min-height: 300px;
  margin-top: clamp(56px, 7vw, 96px);
  padding: 40px;
  overflow: hidden;
  border-radius: 28px;
  isolation: isolate;
  background: var(--lg-lilac-2);
}

.lg-cta .lg-cta__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: right center;
  transition: scale 1.2s var(--lg-ease);
}

.lg-cta:hover .lg-cta__bg {
  scale: 1.03;
}

.lg-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--sx) var(--sy), rgba(255, 255, 255, 0.35), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.lg-cta:hover::after {
  opacity: 1;
}

.lg-cta__copy {
  max-width: 560px;
}

.lg-page .lg-cta h2 {
  font-size: clamp(28px, 2.8vw, 38px);
}

.lg-cta p {
  margin: 12px 0 26px;
}

.lg-cta--final {
  background: var(--lg-ink);
  text-align: center;
}

.lg-cta--final .lg-cta__bg {
  object-position: center;
}

.lg-cta--final::after {
  background: radial-gradient(420px circle at var(--sx) var(--sy), rgba(139, 92, 246, 0.35), transparent 60%);
}

.lg-cta--final .lg-cta__copy {
  max-width: 660px;
  margin-inline: auto;
}

.lg-cta--final h2 {
  color: #fff;
}

.lg-cta--final p {
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 767.98px) {
  .lg-cta {
    padding: 32px 24px;
  }

  .lg-cta--one::before,
  .lg-cta--two::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(246, 241, 255, 0.95) 55%, rgba(246, 241, 255, 0.55));
  }

  .lg-cta--final .lg-cta__bg {
    opacity: 0.45;
  }
}

/* ============================================================
   APPROACH - selection handles
   ============================================================ */
.lg-appr__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
}

.lg-appr__card {
  padding: clamp(24px, 2.4vw, 32px);
  border: 1px solid var(--lg-line);
  border-radius: 26px;
  background: linear-gradient(180deg, #fff, var(--lg-lilac-2));
  transition:
    transform 0.5s var(--lg-ease),
    box-shadow 0.5s var(--lg-ease),
    border-color 0.4s ease;
}

.lg-appr__card:hover {
  transform: translateY(-6px);
  border-color: var(--lg-lilac);
  box-shadow: 0 30px 60px -30px rgba(109, 40, 217, 0.4);
}

.lg-appr__card p {
  margin-top: 10px;
  font-size: 16px;
}

.lg-sel {
  position: relative;
  width: 132px;
  aspect-ratio: 1;
  margin-bottom: 22px;
}

.lg-sel img {
  width: 100%;
  animation: lg-bob 6s ease-in-out calc(var(--i) * -1s) infinite;
}

.lg-sel__box {
  position: absolute;
  inset: -6px;
  border: 1.5px dashed var(--lg-violet);
  border-radius: 4px;
  opacity: 0;
  scale: 0.86;
  transition:
    opacity 0.35s ease,
    scale 0.5s var(--lg-ease);
}

.lg-sel__box i {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--lg-violet);
  background: #fff;
}

.lg-sel__box i:nth-child(1) {
  left: -6px;
  top: -6px;
}

.lg-sel__box i:nth-child(2) {
  right: -6px;
  top: -6px;
}

.lg-sel__box i:nth-child(3) {
  left: -6px;
  bottom: -6px;
}

.lg-sel__box i:nth-child(4) {
  right: -6px;
  bottom: -6px;
}

.lg-sel__box::after {
  /* dimension tag under the selection */
  content: "132 × 132";
  position: absolute;
  left: 50%;
  bottom: -30px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--lg-violet);
  color: #fff;
  font: 600 11px/1.5 var(--lg-font);
  translate: -50% 0;
  white-space: nowrap;
}

.lg-appr__card:hover .lg-sel__box {
  opacity: 1;
  scale: 1;
}

@media (max-width: 991.98px) {
  .lg-appr__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .lg-appr__grid {
    grid-template-columns: 1fr;
  }

  .lg-sel {
    width: 110px;
  }

  .lg-sel__box::after {
    content: "110 × 110";
  }
}

/* ============================================================
   PROCESS - the mark builds itself
   ============================================================ */
.lg-proc {
  background:
    linear-gradient(rgba(109, 40, 217, 0.05) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(109, 40, 217, 0.05) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--lg-lilac-2);
}

.lg-proc__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.lg-proc__stage {
  position: sticky;
  top: calc(var(--lg-hdr) + 40px);
}

.lg-mark {
  position: relative;
  aspect-ratio: 1;
  max-width: 500px;
  margin-inline: auto;
  padding: 8%;
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 40px 80px -40px rgba(109, 40, 217, 0.45);
}

.lg-mark svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.lg-mark svg :is(g, path, circle, rect) {
  transform-box: fill-box;
  transform-origin: center;
}

.lg-mark svg g {
  transition:
    opacity 0.7s ease,
    scale 0.9s var(--lg-ease);
}

/* Selected by element, not [pathLength]: Chrome skips style invalidation for that
   camelCase SVG attribute selector when .at-N changes on an ancestor. */
.lg-mark :is(.lg-mark__brief path, .lg-mark__guides > *, .lg-mark__sketch path) {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.3s var(--lg-ease-io);
}

/* 1 - brief */
.lg-mark__brief rect {
  fill: var(--lg-cream);
  stroke: var(--lg-line);
  stroke-width: 2;
}

.lg-mark__brief path {
  fill: none;
  stroke: var(--lg-lilac);
  stroke-width: 9;
  stroke-linecap: round;
}

.lg-mark.at-1 .lg-mark__brief path {
  stroke-dashoffset: 0;
}

.lg-mark.at-2 .lg-mark__brief {
  opacity: 0;
  scale: 0.85;
}

/* 2 - research: guides + pencil sketch */
.lg-mark__guides :is(circle, path) {
  fill: none;
  stroke: rgba(109, 40, 217, 0.4);
  stroke-width: 0.7;
}

.lg-mark__sketch path {
  fill: none;
  stroke: #8a84a3;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lg-mark.at-2 :is(.lg-mark__guides > *, .lg-mark__sketch path) {
  stroke-dashoffset: 0;
}

/* 3 - concepts: the mark fills */
.lg-mark__solid {
  opacity: 0;
  scale: 0.8;
}

.lg-mark__dot {
  fill: #c4b5fd;
  transition: fill 0.6s ease;
}

.lg-mark.at-3 .lg-mark__solid {
  opacity: 1;
  scale: 1;
}

.lg-mark.at-3 .lg-mark__sketch {
  opacity: 0;
}

/* 4 - revisions: selection handles, colour tweak */
.lg-mark__sel {
  opacity: 0;
}

.lg-mark__sel rect {
  fill: none;
  stroke: var(--lg-violet);
  stroke-width: 1;
  stroke-dasharray: 4 3;
}

.lg-mark__sel rect.h {
  fill: #fff;
  stroke-dasharray: none;
}

.lg-mark.at-4 .lg-mark__sel {
  opacity: 1;
}

.lg-mark.at-4 .lg-mark__dot {
  fill: var(--lg-lime);
}

.lg-mark.at-4 .lg-mark__leaf {
  animation: lg-nudge 1.2s var(--lg-ease) both;
}

@keyframes lg-nudge {
  40% {
    scale: 1.08;
  }
}

/* 5 - handover: clean mark + files */
.lg-mark.at-5 :is(.lg-mark__guides, .lg-mark__sel) {
  opacity: 0;
}

.lg-mark.at-5 .lg-mark__solid {
  scale: 1.06;
}

.lg-mark__files {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -18px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.lg-mark__files li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--lg-ink);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  opacity: 0;
  translate: 0 14px;
  transition:
    opacity 0.4s ease,
    translate 0.6s var(--lg-ease);
}

.lg-mark__files li:nth-child(2) {
  background: var(--lg-violet);
  transition-delay: 0.08s;
}

.lg-mark__files li:nth-child(3) {
  background: var(--lg-lime);
  color: var(--lg-ink);
  transition-delay: 0.16s;
}

.lg-mark__files li:nth-child(4) {
  background: var(--lg-coral);
  transition-delay: 0.24s;
}

.lg-mark.at-5 .lg-mark__files li {
  opacity: 1;
  translate: 0 0;
}

.lg-proc__meter {
  max-width: 500px;
  height: 4px;
  margin: 44px auto 0;
  overflow: hidden;
  border-radius: 999px;
  background: var(--lg-lilac);
}

.lg-proc__meter span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lg-violet), var(--lg-violet-2));
  transform-origin: left;
  scale: var(--p, 0.2) 1;
  transition: scale 0.3s ease-out;
}

.lg-step {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 20px;
  padding-bottom: 36px;
}

.lg-step::before {
  /* connector between numbers */
  content: "";
  position: absolute;
  left: 23px;
  top: 52px;
  bottom: 4px;
  width: 2px;
  background: var(--lg-lilac);
}

.lg-step:last-child::before {
  display: none;
}

.lg-step__n {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--lg-lilac);
  border-radius: 50%;
  background: #fff;
  color: var(--lg-violet);
  font-family: var(--lg-display) !important;
  font-size: 18px;
  font-weight: 700;
  transition:
    background 0.4s ease,
    color 0.4s ease,
    border-color 0.4s ease,
    scale 0.4s var(--lg-ease);
}

.lg-step h3 {
  margin-top: 10px;
  font-size: 22px;
  transition: color 0.4s ease;
}

.lg-step p {
  margin-top: 8px;
}

.lg-step.is-on .lg-step__n {
  border-color: var(--lg-violet);
  background: var(--lg-violet);
  color: #fff;
  scale: 1.08;
}

@media (min-width: 992px) {
  .lg-step {
    min-height: 28vh;
  }

  .lg-proc.is-js .lg-step:not(.is-on) h3 {
    color: var(--lg-muted);
  }
}

@media (max-width: 991.98px) {
  .lg-proc__grid {
    grid-template-columns: 1fr;
  }

  .lg-proc__stage {
    position: relative;
    top: 0;
  }

  .lg-mark {
    max-width: 380px;
  }

  .lg-proc__meter {
    max-width: 380px;
  }
}

/* ============================================================
   DELIVERABLES - export queue
   ============================================================ */
.lg-recv__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.lg-recv__art {
  position: relative;
  display: grid;
  place-items: center;
  padding: 8%;
}

.lg-recv__art::before {
  content: "";
  position: absolute;
  inset: 4%;
  border-radius: 40px;
  background:
    radial-gradient(circle at 30% 20%, rgba(163, 230, 53, 0.25), transparent 45%),
    linear-gradient(160deg, var(--lg-lilac), var(--lg-lilac-2));
  rotate: -3deg;
}

.lg-recv__ring {
  position: absolute;
  inset: -2%;
  border: 1.5px dashed rgba(109, 40, 217, 0.35);
  border-radius: 50%;
  animation: lg-spin 50s linear infinite;
}

.lg-recv__art img {
  position: relative;
  width: min(100%, 440px);
  border-radius: 24px;
  box-shadow: 0 40px 70px -30px rgba(76, 29, 149, 0.55);
  animation: lg-bob 7s ease-in-out infinite;
}

.lg-queue {
  overflow: hidden;
  border: 1px solid var(--lg-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 60px -40px rgba(22, 13, 51, 0.3);
}

.lg-queue li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 30px;
  gap: 16px;
  align-items: center;
  padding: 16px 22px;
  transition: background 0.3s ease;
}

.lg-queue li + li {
  border-top: 1px solid var(--lg-line);
}

.lg-queue li:hover {
  background: var(--lg-lilac-2);
}

.lg-queue li > i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--lg-lilac-2);
  color: var(--lg-violet);
  font-size: 21px;
}

.lg-queue h3 {
  font-size: 17px;
}

.lg-queue p {
  margin-top: 2px;
  font-size: 15px;
  line-height: 1.5;
}

.lg-queue__bar {
  display: block;
  height: 3px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--lg-line);
}

.lg-queue__bar::after {
  content: "";
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--lg-violet), var(--lg-violet-2));
  transform-origin: left;
}

.lg-queue__tick {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--lg-lime);
  color: var(--lg-ink);
  font-size: 17px;
}

:where(.lg-anim) .lg-queue__bar::after {
  scale: 0 1;
}

:where(.lg-anim) .lg-queue__tick {
  scale: 0;
}

:where(.lg-anim) .lg-queue.is-in .lg-queue__bar::after {
  animation: lg-fill 0.9s var(--lg-ease-io) var(--d) both;
}

:where(.lg-anim) .lg-queue.is-in .lg-queue__tick {
  animation: lg-tick 0.6s var(--lg-ease) calc(var(--d) + 0.8s) both;
}

@keyframes lg-fill {
  from {
    scale: 0 1;
  }
  to {
    scale: 1 1;
  }
}

@keyframes lg-tick {
  0% {
    scale: 0;
  }
  60% {
    scale: 1.25;
  }
  100% {
    scale: 1;
  }
}

@media (max-width: 991.98px) {
  .lg-recv__grid {
    grid-template-columns: 1fr;
  }

  .lg-recv__art {
    max-width: 440px;
    margin-inline: auto;
  }
}

@media (max-width: 575.98px) {
  .lg-queue li {
    grid-template-columns: 38px minmax(0, 1fr) 26px;
    gap: 12px;
    padding: 14px 16px;
  }

  .lg-queue li > i {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
}

/* ============================================================
   INDUSTRIES - 3D tilt cards
   ============================================================ */
.lg-ind {
  background: var(--lg-cream);
}

.lg-ind__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
  perspective: 1000px;
}

.lg-ind__card {
  --rx: 0deg;
  --ry: 0deg;
  --gx: 50%;
  --gy: 0%;

  position: relative;
  overflow: hidden;
  padding: clamp(24px, 2.4vw, 32px);
  border: 1px solid var(--lg-line);
  border-radius: 26px;
  background: #fff;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition:
    transform 0.6s var(--lg-ease),
    box-shadow 0.5s ease;
}

.lg-ind__card.is-tilt {
  transition: box-shadow 0.5s ease;
  box-shadow: 0 30px 60px -30px rgba(109, 40, 217, 0.4);
}

.lg-ind__card img {
  width: 116px;
  margin: -6px 0 16px -8px;
  transform: translateZ(40px);
  transition: scale 0.6s var(--lg-ease);
}

.lg-ind__card:hover img {
  scale: 1.08;
}

.lg-ind__card p {
  margin-top: 10px;
  font-size: 16px;
}

.lg-ind__glare {
  position: absolute;
  inset: 0;
  background: radial-gradient(500px circle at var(--gx) var(--gy), rgba(233, 213, 255, 0.45), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.lg-ind__card.is-tilt .lg-ind__glare {
  opacity: 1;
}

@media (max-width: 991.98px) {
  .lg-ind__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .lg-ind__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   WHY
   ============================================================ */
.lg-why__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.lg-why__photo {
  --p: 1;

  position: relative;
}

.lg-why__photo img {
  display: block;
  width: 100%;
  border-radius: 30px;
  clip-path: inset(calc((1 - var(--p)) * 14%) round 30px);
  scale: calc(1.12 - var(--p) * 0.12);
}

.lg-why__sw {
  position: absolute;
  border-radius: 50%;
  animation: lg-bob 6s ease-in-out infinite;
}

.lg-why__sw--a {
  left: -18px;
  top: 14%;
  width: 56px;
  height: 56px;
  background: var(--lg-lime);
}

.lg-why__sw--b {
  right: -14px;
  top: 46%;
  width: 40px;
  height: 40px;
  background: var(--lg-violet);
  animation-delay: -2s;
}

.lg-why__sw--c {
  left: 18%;
  bottom: -16px;
  width: 32px;
  height: 32px;
  background: var(--lg-coral);
  animation-delay: -4s;
}

.lg-why__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px) clamp(20px, 3vw, 36px);
}

.lg-why__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  border-radius: 18px;
  background: var(--lg-lilac-2);
  box-shadow: inset 0 0 0 1px var(--lg-lilac);
  transition:
    rotate 0.5s var(--lg-ease),
    background 0.3s ease;
}

.lg-why__icon img {
  width: 28px;
}

.lg-why__list li:hover .lg-why__icon {
  rotate: -8deg;
  background: var(--lg-lilac);
}

.lg-why__list h3 {
  font-size: 19px;
}

.lg-why__list p {
  margin-top: 8px;
  font-size: 15.5px;
}

@media (max-width: 991.98px) {
  .lg-why__grid {
    grid-template-columns: 1fr;
  }

  .lg-why__photo {
    max-width: 520px;
    margin-inline: auto;
  }
}

@media (max-width: 575.98px) {
  .lg-why__list {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   FAQ
   ============================================================ */
.lg-faq {
  background: var(--lg-lilac-2);
}

.lg-faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.lg-faq__item {
  border-bottom: 1px solid rgba(109, 40, 217, 0.15);
}

.lg-faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  color: var(--lg-ink);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.lg-faq__item summary::-webkit-details-marker {
  display: none;
}

.lg-faq__mark {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--lg-lilac);
  transition:
    background 0.3s ease,
    rotate 0.4s var(--lg-ease);
}

.lg-faq__mark::before,
.lg-faq__mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: var(--lg-violet);
  transition: rotate 0.4s var(--lg-ease);
}

.lg-faq__mark::after {
  rotate: 90deg;
}

.lg-faq__item[open] .lg-faq__mark {
  background: var(--lg-violet);
  rotate: 180deg;
}

.lg-faq__item[open] .lg-faq__mark::before,
.lg-faq__item[open] .lg-faq__mark::after {
  background: #fff;
}

.lg-faq__item[open] .lg-faq__mark::after {
  rotate: 0deg;
}

.lg-faq__item p {
  padding: 0 56px 22px 0;
  font-size: 16px;
}

.lg-faq__item::details-content {
  block-size: 0;
  overflow: hidden;
  transition:
    block-size 0.45s var(--lg-ease),
    content-visibility 0.45s allow-discrete;
}

.lg-faq__item[open]::details-content {
  block-size: auto;
}

@media (max-width: 767.98px) {
  .lg-faq__grid {
    grid-template-columns: 1fr;
  }

  .lg-faq__item p {
    padding-right: 0;
  }
}

/* ============================================================
   reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .lg-page *,
  .lg-page *::before,
  .lg-page *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .lg-cursor {
    display: none;
  }
}
