/* ============================================================
   WASMIA — clean premium agency site
   White-dominant · purple identity · gold accents
   ============================================================ */

:root {
  /* Brand */
  --white: #FFFFFF;
  --soft: #FDFDFD;
  --purple: #761DEE;
  --purple-royal: #630FE0;
  --purple-bright: #9B43F7;
  --purple-med: #892FF3;
  --purple-deep: #5309C7;
  --gold: #ECB64A;
  --gold-light: #F5CB6F;
  --lavender: #DEBFF3;
  --ink: #111111;
  --gray: #666666;

  --grad-main: linear-gradient(135deg, #9B43F7 0%, #761DEE 45%, #5309C7 100%);
  --grad-gold: linear-gradient(135deg, #F5CB6F 0%, #ECB64A 100%);

  /* Type */
  --font-display: 'Sora', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;

  /* Rhythm */
  --container: 1160px;
  --gutter: clamp(20px, 4vw, 44px);
  --section-pad: clamp(80px, 10vw, 140px);
  --radius: 20px;
  --radius-lg: 30px;

  --border: 1px solid rgba(118, 29, 238, 0.13);
  --shadow-soft: 0 8px 30px -12px rgba(83, 9, 199, 0.12);
  --shadow-lift: 0 24px 50px -18px rgba(83, 9, 199, 0.25);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html.lenis { height: auto; scroll-behavior: auto; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

:focus-visible { outline: 2.5px solid var(--purple); outline-offset: 3px; border-radius: 6px; }

.container { width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }
.section { padding-block: var(--section-pad); position: relative; }

/* ---------- Shared ---------- */
.grad-text {
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Editorial serif accent — one meaningful word inside major headings */
.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.09em;
  line-height: 1;
  letter-spacing: 0;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 18px;
}

/* Editorial, left-aligned section heads */
.section__head { max-width: 100%; margin-bottom: clamp(48px, 7vw, 84px); }
.section__head--center { margin-inline: 0; text-align: left; }
.section__title {
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 6vw, 6rem);
  font-weight: 700; line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.section__text {
  color: var(--gray);
  font-size: clamp(1.05rem, 1.5vw, 1.19rem);
  line-height: 1.55;
  max-width: 680px;
  margin-top: 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 15px;
  padding: 15px 30px; border-radius: 100px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.btn svg { transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--grad {
  color: #fff;
  background: var(--grad-main);
  box-shadow: 0 10px 26px -10px rgba(99, 15, 224, 0.5);
}
.btn--grad:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(99, 15, 224, 0.6); }

.btn--ghost {
  color: var(--ink);
  background: #fff;
  border: 1.5px solid rgba(118, 29, 238, 0.2);
}
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--purple); color: var(--purple-deep); box-shadow: var(--shadow-soft); }

.btn--white {
  background: #fff; color: var(--purple-deep);
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.3);
}
.btn--white:hover { transform: translateY(-2px); }

.btn--sm { padding: 11px 22px; font-size: 13.5px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.6);
  transition: background 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px -12px rgba(83, 9, 199, 0.14);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.nav__brand { display: inline-flex; align-items: center; gap: 12px; }
.nav__logo { width: 42px; height: 42px; border-radius: 12px; box-shadow: 0 4px 12px -4px rgba(83, 9, 199, 0.45); }
.nav__wordmark {
  height: 19px; width: auto;
  transform: translateY(1px); /* optically centers the lowercase wordmark next to the tile */
}
.nav__links { display: flex; gap: 4px; }
.nav__links a {
  font-weight: 600; font-size: 14.5px; color: var(--ink);
  padding: 9px 15px; border-radius: 100px;
  transition: color 0.25s, background 0.25s;
}
.nav__links a:hover { color: var(--purple-deep); background: rgba(118, 29, 238, 0.07); }
.nav__actions { display: flex; align-items: center; gap: 10px; }

.nav__burger {
  display: none;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(118, 29, 238, 0.08);
  position: relative;
}
.nav__burger span {
  position: absolute; left: 12px; right: 12px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.nav__burger span:nth-child(1) { top: 17px; }
.nav__burger span:nth-child(2) { top: 24px; }
.nav__burger.is-open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

/* Mobile menu */
.mmenu {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 0 var(--gutter);
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.mmenu.is-open { opacity: 1; pointer-events: auto; }
.mmenu__links { display: flex; flex-direction: column; gap: 4px; margin-bottom: 34px; }
.mmenu__links a {
  font-family: var(--font-display);
  font-size: clamp(30px, 8vw, 40px); font-weight: 700;
  padding: 7px 0; letter-spacing: -0.02em;
  transform: translateY(22px); opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
}
.mmenu.is-open .mmenu__links a { transform: translateY(0); opacity: 1; }
.mmenu.is-open .mmenu__links a:nth-child(1) { transition-delay: 0.05s; }
.mmenu.is-open .mmenu__links a:nth-child(2) { transition-delay: 0.1s; }
.mmenu.is-open .mmenu__links a:nth-child(3) { transition-delay: 0.15s; }
.mmenu.is-open .mmenu__links a:nth-child(4) { transition-delay: 0.2s; }
.mmenu.is-open .mmenu__links a:nth-child(5) { transition-delay: 0.25s; }
.mmenu__btn { opacity: 0; transition: opacity 0.5s 0.3s; }
.mmenu.is-open .mmenu__btn { opacity: 1; }
/* Hero ribbon */
.ribbon {
  position: relative;
  padding: 16px 0;
  border-block: var(--border);
  background: var(--soft);
  overflow: hidden;
}
.ribbon__track { display: flex; width: max-content; }
.ribbon__group {
  display: flex; align-items: center;
  gap: clamp(22px, 3vw, 40px);
  padding-right: clamp(22px, 3vw, 40px);
  animation: roll 30s linear infinite;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(12.5px, 1.4vw, 15px);
  font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(83, 9, 199, 0.75);
}
.ribbon__group i { font-style: normal; color: var(--gold); font-size: 0.8em; }
@keyframes roll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* ============================================================
   BIG MARQUEE
   ============================================================ */
.marquee {
  padding: clamp(28px, 4.5vw, 50px) 0;
  border-bottom: var(--border);
  background: var(--white);
  overflow: hidden;
}
.marquee__track { display: flex; width: max-content; }
.marquee__group {
  display: flex; align-items: center;
  gap: clamp(26px, 3.6vw, 48px);
  padding-right: clamp(26px, 3.6vw, 48px);
  animation: roll 38s linear infinite;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(30px, 4.6vw, 58px);
  font-weight: 800;
  letter-spacing: 0.01em; text-transform: uppercase;
}
.marquee__group .fill {
  background: var(--grad-main);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.marquee__group .outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(118, 29, 238, 0.45);
}
.marquee__group i { font-style: normal; color: var(--gold); font-size: 0.5em; }

/* ============================================================
   DIVIDER IMAGE — visual barrier into services
   ============================================================ */
/* Full-bleed horizontal barrier between sections — same treatment on
   every device: edge to edge, native 4:1 ratio, nothing cropped */
.divider { background: var(--white); }
.divider__frame {
  position: relative;
  overflow: hidden;
  border-bottom: var(--border);
}
.divider__frame img {
  display: block;
  width: 100%;
  height: auto; /* native ratio — the full image is always visible */
}
.divider__frame::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(83, 9, 199, 0.14), transparent 28%, transparent 72%, rgba(83, 9, 199, 0.14));
}

/* Bare variant: just the image, edge to edge — no border, no tint */
.divider--bare .divider__frame { border-bottom: 0; }
.divider--bare .divider__frame::after { display: none; }

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--soft); }
/* ---- Services: one mobile-style stacked card, every screen size ----
   Image panel on top (16:9, fully visible), diagonal seam with the
   service icon riding it, then title / description / Learn more. */
.cards4 {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 30px);
  max-width: 680px;
  margin-inline: auto;
}

.scard {
  position: relative;
  background: #fff;
  border: 1px solid rgba(118, 29, 238, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s;
}
.scard:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(118, 29, 238, 0.32);
}

/* Image panel — matches the 16:9 artwork exactly, so nothing is cropped */
.scard__media { position: relative; aspect-ratio: 16 / 9; }
.scard__media-clip {
  position: absolute; inset: 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), 0 100%);
  background: #E6D8F8; /* visible only while the image loads */
}
.scard__media-clip img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transition: transform 0.5s var(--ease);
}
.scard:hover .scard__media-clip img { transform: scale(1.02); }

/* Diagonal seam blade */
.scard__slash {
  position: absolute;
  left: -4%; bottom: 11px;
  width: 108%; height: 2.5px;
  background: linear-gradient(90deg, var(--lavender), var(--purple) 45%, var(--purple-bright));
  transform: rotate(-2.3deg);
  transform-origin: bottom left;
  border-radius: 2px;
  opacity: 0.85;
}

/* Service icon riding the seam */
.scard__badge {
  position: absolute;
  right: 24px; bottom: -17px;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #fff;
  border: 1.5px solid rgba(118, 29, 238, 0.3);
  color: var(--purple-deep);
  box-shadow: 0 10px 22px -10px rgba(83, 9, 199, 0.45);
  z-index: 2;
}
.scard__spark {
  position: absolute; top: -7px; right: -3px;
  font-style: normal; font-size: 13px; color: var(--gold);
  text-shadow: 0 2px 8px rgba(236, 182, 74, 0.5);
}

/* Content */
.scard__body { padding: clamp(26px, 3.4vw, 32px) clamp(20px, 3vw, 30px) clamp(20px, 2.8vw, 28px); }
.scard h3 {
  font-family: var(--font-display);
  font-size: clamp(16.5px, 1.9vw, 20px); font-weight: 700; letter-spacing: -0.015em;
  margin-bottom: 9px;
}
.scard p { color: var(--gray); font-size: clamp(13.5px, 1.5vw, 15px); }

.scard__more {
  display: inline-flex; align-items: center; gap: 11px;
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(13px, 1.4vw, 14px); font-weight: 700;
  color: var(--ink);
  transition: color 0.3s;
}
.scard__arrow {
  width: clamp(34px, 3.6vw, 38px); height: clamp(34px, 3.6vw, 38px); border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid rgba(118, 29, 238, 0.35);
  color: var(--purple-deep);
  transition: background 0.35s var(--ease), color 0.35s, border-color 0.35s, transform 0.35s var(--ease), box-shadow 0.35s;
}
.scard__more:hover { color: var(--purple-deep); }
.scard__more:hover .scard__arrow {
  background: var(--grad-main); color: #fff; border-color: transparent;
  transform: translateX(3px);
  box-shadow: 0 10px 22px -8px rgba(99, 15, 224, 0.55);
}
.scard--featured .scard__arrow {
  background: var(--grad-main); color: #fff; border-color: transparent;
  box-shadow: 0 8px 20px -8px rgba(99, 15, 224, 0.55);
}

/* Small phones: same design, gently tightened */
@media (max-width: 640px) {
  .scard__media-clip { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), 0 100%); }
  .scard__slash { bottom: 10px; transform: rotate(-3.5deg); }
  .scard__badge { right: 18px; bottom: -16px; width: 40px; height: 40px; }
  .scard__badge svg { width: 18px; height: 18px; }
}

/* ============================================================
   TESTIMONIALS — two opposing marquee rows of framed screenshots
   ============================================================ */
.tst { background: #FDFDFD; overflow: hidden; }
.tst__label { color: var(--purple); }
.tst__title { color: var(--ink); }

.tst__rows {
  display: flex; flex-direction: column;
  gap: clamp(22px, 3.5vw, 38px);
  mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}
.tst__row { overflow: hidden; width: 100%; padding-block: 6px; }
.tst__track {
  display: flex; align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  width: max-content;
  will-change: transform;
}

/* Premium card: white backing + open-capsule cadre, moves as one unit */
.tst__item {
  position: relative;
  flex-shrink: 0;
  padding: clamp(20px, 2.2vw, 28px);
  background: #fff;
  border: 1px solid rgba(118, 29, 238, 0.16);
  border-radius: 20px;
  box-shadow: 0 16px 36px -20px rgba(83, 9, 199, 0.22);
}
.tst__track img {
  position: relative;
  height: clamp(150px, 16vw, 225px);
  width: auto;
  object-fit: contain;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 22px -12px rgba(83, 9, 199, 0.14);
}

.tst__glow {
  position: absolute; inset: 12%;
  background: radial-gradient(closest-side, rgba(222, 191, 243, 0.42), transparent 78%);
  pointer-events: none;
}

/* Open-capsule cadre strokes with dot endpoints */
.tst__cadre { position: absolute; pointer-events: none; }
.tst__cadre--top {
  top: 6px; left: 11%; right: 6px; height: 44%;
  border-top: 2px solid var(--purple);
  border-right: 2px solid var(--purple);
  border-top-right-radius: clamp(20px, 2.4vw, 34px);
}
.tst__cadre--top::before {
  content: ""; position: absolute; left: -5px; top: -5px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--purple-bright);
}
.tst__cadre--bottom {
  bottom: 6px; right: 11%; left: 6px; height: 44%;
  border-bottom: 2px solid var(--purple);
  border-left: 2px solid var(--purple);
  border-bottom-left-radius: clamp(20px, 2.4vw, 34px);
}
.tst__cadre--bottom::after {
  content: ""; position: absolute; right: -5px; bottom: -5px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--purple-bright);
}
.tst__accent {
  position: absolute; height: 2px; border-radius: 2px;
  background: var(--purple-bright); opacity: 0.5;
  pointer-events: none;
}
.tst__accent--top { top: 0; left: 24%; width: clamp(30px, 3.4vw, 54px); }
.tst__accent--bottom { bottom: 0; right: 24%; width: clamp(30px, 3.4vw, 54px); }
.tst__accent--bottom i {
  position: absolute; right: -9px; top: -1px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold); /* the section's single tiny gold detail */
}

@media (max-width: 760px) {
  .tst__item { padding: clamp(12px, 3.2vw, 18px); border-radius: 16px; }
  .tst__track img { height: clamp(118px, 30vw, 150px); }
  .tst__track { gap: clamp(10px, 2.6vw, 16px); }
  .tst__cadre--top, .tst__cadre--bottom { border-width: 1.5px; }
  .tst__accent--top, .tst__accent--bottom { width: clamp(22px, 6vw, 34px); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--soft); }
.about__inner { text-align: left; }
.about__inner .eyebrow { margin-bottom: 18px; }
.about__text {
  max-width: 680px;
  margin: 24px 0 0;
  font-size: clamp(1.05rem, 1.5vw, 1.19rem);
  line-height: 1.55;
  color: var(--gray);
}
.about__note {
  max-width: 620px;
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-size: 13.5px; font-weight: 600;
  color: var(--gray);
}
.about__note-star { color: var(--gold); margin-right: 8px; font-style: normal; }
.pillars {
  display: flex; justify-content: flex-start; flex-wrap: wrap;
  gap: 16px;
  margin-top: clamp(36px, 5vw, 52px);
}
.pillar {
  display: flex; align-items: center; gap: 12px;
  background: #fff;
  border: var(--border);
  border-radius: 100px;
  padding: 16px 30px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.pillar__star { color: var(--gold); font-style: normal; font-size: 15px; }
.pillar h3 { font-family: var(--font-display); font-size: 15.5px; font-weight: 700; }

/* ============================================================
   INDUSTRIES
   ============================================================ */
/* Industry showcase — cinematic stage + editorial selector */
.ind__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: clamp(20px, 2.4vw, 30px);
  overflow: hidden;
  background: var(--lavender);
  box-shadow: 0 34px 80px -26px rgba(22, 7, 57, 0.38);
  will-change: transform;
}
.ind__canvas {
  position: absolute; inset: 0;
  will-change: transform;
}
.ind__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 0.5s ease, transform 0.65s var(--ease);
  will-change: opacity, transform;
}
.ind__img.is-active { opacity: 1; transform: scale(1); }
.ind__stage:hover .ind__img.is-active { transform: scale(1.03); }

.ind__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 44%, rgba(22, 7, 57, 0.16) 62%, rgba(22, 7, 57, 0.74) 100%);
  pointer-events: none;
}
.ind__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: clamp(20px, 3.4vw, 44px);
  color: #fff;
  pointer-events: none;
}
/* Line-by-line caption reveal — number, title, then description */
.ind__caption-inner .ind__num,
.ind__caption-inner .ind__title,
.ind__caption-inner .ind__desc {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.55s var(--ease);
}
.ind__caption-inner.in .ind__num { opacity: 1; transform: none; transition-delay: 0.04s; }
.ind__caption-inner.in .ind__title { opacity: 1; transform: none; transition-delay: 0.12s; }
.ind__caption-inner.in .ind__desc { opacity: 1; transform: none; transition-delay: 0.2s; }
.ind__num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--gold-light);
  margin-bottom: 8px;
}
.ind__title {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.8vw, 34px);
  font-weight: 700; letter-spacing: -0.015em;
  margin-bottom: 7px;
}
.ind__desc {
  font-size: clamp(13.5px, 1.5vw, 16px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
}

/* Selector — a thin editorial rail under the stage */
.ind__selector {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0 16px;
  margin-top: clamp(26px, 3.4vw, 40px);
  border-top: 1px solid rgba(118, 29, 238, 0.14);
}
.ind__indicator {
  position: absolute; top: -1px;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--purple-bright), var(--purple-deep));
  transition: left 0.45s var(--ease), width 0.45s var(--ease);
}
.ind__item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
  padding: 18px 0 6px;
  text-align: left;
  cursor: pointer;
}
.ind__item-num {
  font-family: var(--font-display);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(118, 29, 238, 0.45);
  transition: color 0.3s;
}
.ind__item-title {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 600;
  color: var(--gray);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: color 0.3s, background-size 0.35s var(--ease);
  padding-bottom: 3px;
}
.ind__item:hover .ind__item-num { color: var(--purple); }
.ind__item:hover .ind__item-title { color: var(--purple-deep); background-size: 100% 1.5px; }
.ind__item.is-active .ind__item-num { color: var(--gold); }
.ind__item.is-active .ind__item-title { color: var(--ink); }

/* ============================================================
   PROCESS — connected journey flow
   ============================================================ */
.process { background: var(--soft); }
.pflow { position: relative; }
.pflow__path {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 240px;
  overflow: visible;
  pointer-events: none;
}
.pflow__base {
  fill: none;
  stroke: rgba(118, 29, 238, 0.2);
  stroke-width: 2;
  stroke-dasharray: 2 9;
  stroke-linecap: round;
}
.pflow__draw {
  fill: none;
  stroke: url(#flowGrad);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.pflow__steps {
  list-style: none;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.pstep { position: relative; }
.pstep:nth-child(odd) { padding-top: 205px; }
.pstep:nth-child(even) { padding-top: 95px; }

.pstep__node {
  position: absolute; left: 50%;
  width: 18px; height: 18px; margin-left: -9px;
  background: #fff;
  border: 2px solid var(--purple);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(118, 29, 238, 0.08);
  z-index: 1;
  transition: box-shadow 0.35s;
}
.pstep:nth-child(odd) .pstep__node { top: 161px; }
.pstep:nth-child(even) .pstep__node { top: 51px; }
.pstep__node::after {
  content: "";
  position: absolute; inset: 4px;
  border-radius: 50%;
  background: var(--grad-gold);
  transform: scale(0);
  transition: transform 0.45s var(--ease);
}
.pstep__node.is-lit::after,
.pstep:hover .pstep__node::after { transform: scale(1); }
.pstep:hover .pstep__node { box-shadow: 0 0 0 8px rgba(236, 182, 74, 0.18); }

.pstep__ghost {
  position: absolute; right: 2px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(64px, 7.5vw, 100px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(118, 29, 238, 0.13);
  user-select: none;
  z-index: 0;
}
.pstep:nth-child(odd) .pstep__ghost { top: 116px; }
.pstep:nth-child(even) .pstep__ghost { top: 6px; }

.pstep__card {
  position: relative; z-index: 1;
  background: #fff;
  border: var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
}
.pstep:hover .pstep__card {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(118, 29, 238, 0.28);
}
.pstep__top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.pstep__icon {
  width: 42px; height: 42px; border-radius: 13px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(222, 191, 243, 0.5), rgba(155, 67, 247, 0.14));
  color: var(--purple-deep);
}
.pstep__chip {
  font-family: var(--font-display);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--purple-deep);
  background: rgba(222, 191, 243, 0.35);
  padding: 5px 11px; border-radius: 100px;
}
.pstep__card h3 {
  font-family: var(--font-display);
  font-size: 18.5px; font-weight: 700;
  margin-bottom: 7px;
}
.pstep__card p { color: var(--gray); font-size: 14px; }

/* ============================================================
   CONTACT CTA
   ============================================================ */
.contact { padding-bottom: clamp(70px, 9vw, 120px); }
.contact__panel {
  position: relative;
  background:
    radial-gradient(ellipse 70% 90% at 80% -5%, rgba(222, 191, 243, 0.35), transparent 55%),
    radial-gradient(ellipse 55% 75% at 10% 110%, rgba(17, 0, 60, 0.35), transparent 60%),
    var(--grad-main);
  border-radius: clamp(26px, 4vw, 40px);
  padding: clamp(56px, 8vw, 100px) clamp(24px, 6vw, 80px);
  text-align: center;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 34px 80px -26px rgba(83, 9, 199, 0.5);
}
.contact__star { position: absolute; }
.contact__star--1 { top: 14%; left: 12%; filter: drop-shadow(0 4px 14px rgba(236, 182, 74, 0.5)); }
.contact__star--2 { bottom: 16%; right: 11%; opacity: 0.85; }
.contact__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.025em;
  margin-bottom: 18px;
}
.contact__text {
  max-width: 540px; margin: 0 auto 34px;
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(15px, 1.8vw, 17px);
}

/* ============================================================
   FOOTER — brand palette: royal purple / gold / lavender
   ============================================================ */
.footer {
  --f-royal: #28135A;
  --f-purple: #3E217C;
  --f-highlight: #532F9A;
  --f-gold: #D8B382;
  --f-lavender: #BFB4D4;
  background: #FDFDFD;
  border-top: 1px solid rgba(40, 19, 90, 0.1);
  padding: clamp(56px, 8vw, 96px) 0 0; /* the ending artwork sits flush at the very bottom */
  color: var(--f-royal);
}
.footer__bottom { padding-bottom: clamp(28px, 4vw, 40px); }

/* ============================================================
   ENDING BARRIER — full-width repeating brand artwork after the
   footer; the last visible element of the site
   ============================================================ */
.ending {
  position: relative;
  width: 100%;
  aspect-ratio: 2172 / 724; /* one full tile spans the viewport exactly */
  background-color: #160739;
  background-image: url("../assets/footer-ending.jpg");
  background-image: image-set(
    url("../assets/footer-ending.webp") type("image/webp"),
    url("../assets/footer-ending.jpg") type("image/jpeg")
  );
  background-repeat: repeat-x;      /* identical copies, edge to edge, no seams */
  background-size: auto 100%;       /* proportions preserved at every width */
  background-position: left top;
  overflow: hidden;
  will-change: transform;
}
.ending__sheen {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(242, 215, 173, 0.12) 48%, rgba(83, 47, 154, 0.10) 55%, transparent 66%);
  transform: translateX(-130%);
  pointer-events: none;
}
.ending.is-missing { display: none; }

.footer__top {
  display: flex; align-items: center;
  gap: clamp(36px, 6vw, 80px);
  margin-bottom: clamp(40px, 6vw, 64px);
}
.footer__lockup { flex-shrink: 0; }
.footer__lockup--min {
  display: inline-flex; align-items: center; gap: 12px;
  transition: opacity 0.3s;
}
.footer__lockup--min > img:first-child {
  border-radius: 12px;
  box-shadow: 0 4px 12px -4px rgba(22, 7, 57, 0.4);
}
.footer__wordmark-min { height: 18px; width: auto; }
.footer__lockup--min:hover { opacity: 0.82; }

.footer__side {
  border-left: 1px solid var(--f-lavender);
  padding-left: clamp(28px, 4vw, 56px);
}
.footer__statement {
  font-family: var(--font-display);
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 600; line-height: 1.45;
  color: var(--f-royal);
  max-width: 380px;
  margin-bottom: 14px;
}
.footer__email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 14.5px; font-weight: 600;
  color: var(--f-highlight);
  margin-bottom: 20px;
  transition: color 0.25s;
}
.footer__email:hover { color: var(--f-royal); }

.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(40, 19, 90, 0.2);
  color: var(--f-royal);
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.footer__social a:hover {
  background: var(--f-royal); border-color: var(--f-royal);
  color: #FDFDFD; transform: translateY(-3px);
}

/* Thin premium divider with gold diamond tips */
.footer__rule {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(40, 19, 90, 0.32) 8%, rgba(40, 19, 90, 0.32) 92%, transparent);
  margin-bottom: clamp(24px, 3.5vw, 34px);
}
.footer__rule::before, .footer__rule::after {
  content: "";
  position: absolute; top: -3px;
  width: 7px; height: 7px;
  background: var(--f-gold);
  transform: rotate(45deg);
}
.footer__rule::before { left: 8%; margin-left: -4px; }
.footer__rule::after { right: 8%; margin-right: -4px; }

.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px 28px;
}
.footer__legal {
  font-size: 13.5px;
  color: var(--f-purple);
}
.footer__tag {
  font-family: var(--font-display);
  font-size: 13.5px; font-weight: 600;
  color: var(--f-highlight);
}
.footer__tag span { color: var(--f-gold); margin-right: 8px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.footer__nav a {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--f-royal);
  padding: 8px 10px;
  transition: color 0.25s;
}
.footer__nav a:hover { color: var(--f-highlight); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1023px) {
  /* Process: stacked cards on a central dashed timeline (phone + tablet) */
  .pflow__path { display: none; }
  .pflow__steps {
    --pgap: clamp(70px, 10vw, 100px);
    grid-template-columns: 1fr;
    gap: var(--pgap);
    padding: calc(var(--pgap) / 2 + 12px) 0 8px;
  }
  .pflow__steps::before {
    content: "";
    position: absolute; left: 50%; top: 0; bottom: 4px;
    width: 0;
    border-left: 2px dashed rgba(83, 47, 154, 0.28);
    transform: translateX(-1px);
  }
  .pstep:nth-child(odd), .pstep:nth-child(even) { padding-top: 0; }
  .pstep {
    width: calc(100% - 8px); /* container gutters already provide side margin */
    max-width: 680px;
    margin-inline: auto;
  }

  /* Outlined nodes on the line, centered in each gap */
  .pstep:nth-child(odd) .pstep__node,
  .pstep:nth-child(even) .pstep__node {
    top: calc(var(--pgap) / -2 - 9px);
    left: 50%;
    margin-left: -9px;
    border-color: rgba(83, 47, 154, 0.4);
    box-shadow: 0 0 0 5px rgba(253, 253, 253, 0.92);
  }
  .pstep__ghost { display: none; }

  /* Thick white frame with a pale lavender inner panel, softly tilted */
  .pstep__card {
    --tilt: 0deg;
    background: #FFFFFF;
    border: 0;
    border-radius: clamp(28px, 4vw, 36px);
    padding: calc(12px + clamp(28px, 4.5vw, 34px));
    box-shadow: 0 18px 45px rgba(22, 7, 57, 0.10);
    transform: rotate(var(--tilt));
  }
  .pstep__card::before {
    content: "";
    position: absolute; inset: 12px;
    background: rgba(191, 180, 212, 0.14);
    border-radius: clamp(18px, 3vw, 26px);
    pointer-events: none;
  }
  .pstep__card > * { position: relative; }
  .pstep:nth-child(1) .pstep__card { --tilt: -1.5deg; }
  .pstep:nth-child(2) .pstep__card { --tilt: 1.5deg; }
  .pstep:nth-child(3) .pstep__card { --tilt: -1deg; }
  .pstep:nth-child(4) .pstep__card { --tilt: 1deg; }
  .pstep:hover .pstep__card { transform: rotate(var(--tilt)); }

  .pstep__icon { display: none; }
  .pstep__top { justify-content: flex-start; margin-bottom: 12px; }
  .pstep__chip {
    background: none; padding: 0;
    font-size: 13px; letter-spacing: 0.16em;
    color: rgba(83, 47, 154, 0.78);
  }
  .pstep__card h3 {
    font-size: clamp(24px, 3.4vw, 30px);
    color: #28135A;
    margin-bottom: 10px;
  }
  .pstep__card p {
    font-size: clamp(15.5px, 2vw, 17px);
    line-height: 1.55;
    color: rgba(40, 19, 90, 0.82);
  }
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav__actions .btn { display: none; }

  /* Industry selector becomes a one-thumb swipe rail */
  .ind__selector {
    display: flex;
    gap: 10px;
    border-top: 0;
    margin-top: 22px;
    padding: 4px 2px 14px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  }
  .ind__selector::-webkit-scrollbar { display: none; }
  .ind__indicator { display: none; }
  .ind__item {
    flex: 0 0 auto;
    flex-direction: row; align-items: center; gap: 9px;
    scroll-snap-align: center;
    background: #fff;
    border: 1.5px solid rgba(118, 29, 238, 0.18);
    border-radius: 100px;
    padding: 12px 18px;
    min-height: 44px;
    transition: background 0.3s, border-color 0.3s;
  }
  .ind__item-title { padding-bottom: 0; background: none; font-size: 14px; }
  .ind__item.is-active {
    background: var(--grad-main);
    border-color: transparent;
    box-shadow: 0 10px 24px -10px rgba(99, 15, 224, 0.5);
  }
  .ind__item.is-active .ind__item-num { color: var(--gold-light); }
  .ind__item.is-active .ind__item-title { color: #fff; }

  /* Footer stacks, centered */
  .footer__top {
    flex-direction: column; align-items: center;
    text-align: center;
    gap: 32px;
  }
  .footer__wordmark { width: min(320px, 74vw); }
  .footer__side {
    border-left: 0; padding-left: 0;
    display: flex; flex-direction: column; align-items: center;
  }
  .footer__statement { max-width: 420px; }
  .footer__bottom {
    flex-direction: column; justify-content: center;
    text-align: center; gap: 16px;
  }
  .footer__nav { justify-content: center; }
  .footer__rule::before { left: 4%; }
  .footer__rule::after { right: 4%; }
}

@media (max-width: 720px) {
  .cards4 { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 640px) {
  :root { --section-pad: 72px; --gutter: 24px; }

  .section__title { font-size: clamp(2.65rem, 12.5vw, 4.2rem); }
  .section__text { font-size: 1.15rem; }



  .ribbon { margin-top: 44px; }
  .ind__desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  /* Contact panel: keep the star tucked in the corner, clear of all text */
  .contact__panel { padding: 66px 22px 56px; }
  .contact__star--1 { top: 18px; left: 18px; width: 21px; opacity: 0.9; }
  .contact__star--2 { display: none; }
  .contact__title { font-size: 26px; padding-inline: 4px; }
}

/* ============================================================
   MOTION SAFETY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ribbon__group, .marquee__group { animation: none; }
  html { scroll-behavior: auto; }
}
