/* ==========================================================================
   lolatasa.com — design system
   Palette taken from the LinkedIn banner: deep indigo ink, violet, lavender,
   sunshine yellow underline.
   ========================================================================== */

:root {
  --ink: #16133a;
  --ink-2: #4a4772;
  --ink-3: #7d7a9e;
  --violet: #6646f5;
  --violet-2: #8d78ff;
  --violet-soft: #ece8ff;
  --lav: #f4f1ff;
  --lav-2: #e7e1ff;
  --sun: #ffcf4a;
  --sun-soft: #fff5d6;
  --pink: #ff8fb1;
  --mint: #22b98b;
  --mint-soft: #dcf7ee;
  --bg: #fcfbff;
  --card: #ffffff;
  --line: #e6e2f5;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(22, 19, 58, .06), 0 2px 8px rgba(22, 19, 58, .04);
  --shadow: 0 2px 4px rgba(22, 19, 58, .04), 0 12px 32px -8px rgba(22, 19, 58, .14);
  --shadow-lg: 0 30px 80px -20px rgba(54, 30, 160, .35);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.1; letter-spacing: -.025em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.35rem; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
em.serif, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 999; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; gap: .55em;
  padding: .9em 1.4em; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--bg); color: var(--fg);
  font: 700 .95rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--primary { --bg: var(--violet); box-shadow: 0 10px 24px -10px rgba(102, 70, 245, .8); }
.btn--primary:hover { --bg: #5636e6; box-shadow: 0 16px 30px -10px rgba(102, 70, 245, .9); }
.btn--sun { --bg: var(--sun); --fg: var(--ink); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--violet); color: var(--violet); }
.btn--ghost-light { --bg: transparent; --fg: #fff; border-color: rgba(255, 255, 255, .25); }
.btn--ghost-light:hover { border-color: #fff; }
.btn--sm { padding: .7em 1.1em; font-size: .88rem; }

/* ---------- Bits ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--violet);
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--sun); }
.chip {
  display: inline-flex; align-items: center; gap: .4em;
  padding: .38em .85em; border-radius: 999px; font-size: .8rem; font-weight: 600;
  background: var(--violet-soft); color: var(--violet); border: 1px solid transparent; white-space: nowrap;
}
.chip--sun { background: var(--sun-soft); color: #8a6200; }
.chip--mint { background: var(--mint-soft); color: #0b7d5b; }
.chip--outline { background: #fff; color: var(--ink-2); border-color: var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.u-line { background: linear-gradient(transparent 62%, var(--sun) 62%, var(--sun) 90%, transparent 90%); padding: 0 .08em; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--ink-3); }
.section { padding: clamp(72px, 10vw, 130px) 0; position: relative; }
.section--tight { padding: clamp(48px, 7vw, 80px) 0; }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: clamp(32px, 5vw, 56px); flex-wrap: wrap; }
.section__head h2 { margin: .35em 0 0; max-width: 18ch; }
.section__head p { max-width: 44ch; color: var(--ink-2); margin: 0; }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--violet), var(--pink), var(--sun)); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.nav.is-scrolled { background: rgba(252, 251, 255, .82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav__inner { display: flex; align-items: center; gap: 1.5rem; height: 74px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; font-weight: 800; letter-spacing: -.02em; font-size: 1.12rem; margin-right: auto; }
.brand__mark {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px;
  background: var(--ink); color: #fff; font-size: .85rem; letter-spacing: .02em;
  box-shadow: inset 0 -3px 0 var(--sun); transition: transform .4s var(--ease);
}
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.05); }
.brand__dot { color: var(--violet); }
.nav__links { display: flex; align-items: center; gap: .3rem; }
.nav__links a:not(.btn) {
  text-decoration: none; font-weight: 600; font-size: .93rem; color: var(--ink-2);
  padding: .5em .85em; border-radius: 999px; transition: color .2s, background .2s;
}
.nav__links a:not(.btn):hover { color: var(--ink); background: var(--lav); }
.nav__links a[aria-current="page"] { color: var(--violet); background: var(--violet-soft); }
.nav__cv { margin-left: .5rem; }
.nav__toggle { display: none; width: 44px; height: 44px; border: 0; background: var(--lav); border-radius: 12px; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease); }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav.is-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 74px 0 auto; flex-direction: column; align-items: stretch; gap: .25rem;
    padding: 1rem var(--gutter) 1.5rem; background: var(--bg); box-shadow: 0 20px 40px -20px rgba(22, 19, 58, .3);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .3s var(--ease);
  }
  .nav.is-open .nav__links { transform: none; opacity: 1; pointer-events: auto; }
  .nav.is-open { background: var(--bg); }
  .nav__links a:not(.btn) { font-size: 1.1rem; padding: .8em 1em; }
  .nav__cv { margin: .5rem 0 0; justify-content: center; }
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; padding: clamp(28px, 5vw, 60px) 0 clamp(60px, 8vw, 110px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(141, 120, 255, .28), transparent 70%); z-index: -1;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: radial-gradient(rgba(22, 19, 58, .09) 1px, transparent 1px);
  background-size: 26px 26px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__hello { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.4rem; }
.hero__avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: var(--shadow); }
.hero__status { display: inline-flex; align-items: center; gap: .5em; font-size: .85rem; font-weight: 600; color: var(--ink-2); background: #fff; border: 1px solid var(--line); padding: .45em .9em; border-radius: 999px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); position: relative; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--mint); animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.hero h1 { margin: 0 0 .45em; }
.hero h1 .name { display: block; font-size: .32em; letter-spacing: .02em; font-weight: 700; color: var(--ink-2); margin-bottom: .7em; }
.hero h1 .amp { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--violet); }
.hero h1 .hl { color: var(--violet); }
.hero .lead { margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.2rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .9rem; color: var(--ink-2); font-weight: 600; }
.hero__meta span { display: inline-flex; align-items: center; gap: .45em; }
.hero__meta svg { color: var(--violet); }

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
}

/* ---------- SERP widget ---------- */
.serp-stage { position: relative; perspective: 1400px; }
.serp {
  position: relative; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); padding: 18px; transform-style: preserve-3d;
  transition: transform .5s var(--ease);
}
.serp__bar { display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem; border: 1px solid var(--line); border-radius: 999px; font-size: .95rem; font-weight: 600; margin-bottom: .9rem; }
.serp__bar svg { color: var(--ink-3); flex: none; }
.serp__q::after { content: "|"; color: var(--violet); margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.serp__tabs { display: flex; gap: .4rem; margin-bottom: .9rem; flex-wrap: wrap; }
.serp__tab { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .38em .9em; font: 600 .78rem var(--font); color: var(--ink-2); cursor: pointer; transition: .2s; }
.serp__tab[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.serp__list { position: relative; height: calc(var(--row) * 10); --row: 34px; }
.serp__row {
  position: absolute; left: 0; right: 0; height: calc(var(--row) - 6px);
  display: flex; align-items: center; gap: .7rem; padding: 0 .7rem; border-radius: 10px;
  transform: translateY(calc(var(--i) * var(--row))); transition: transform 1.1s var(--ease), background .4s, box-shadow .4s;
}
.serp__pos { width: 26px; font-size: .72rem; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.serp__fav { width: 16px; height: 16px; border-radius: 50%; background: var(--lav-2); flex: none; }
.serp__lines { flex: 1; display: grid; gap: 5px; }
.serp__lines i { display: block; height: 6px; border-radius: 4px; background: #eceaf4; }
.serp__lines i:first-child { width: var(--w, 70%); background: #dcd8ee; }
.serp__lines i:last-child { width: calc(var(--w, 70%) - 18%); }
.serp__row--me { background: var(--violet); color: #fff; box-shadow: 0 12px 28px -10px rgba(102, 70, 245, .7); z-index: 2; }
.serp__row--me .serp__pos { color: #fff; }
.serp__row--me .serp__fav { background: #fff; display: grid; place-items: center; font: 700 10px/1 var(--serif); color: var(--ink); }
.serp__me-text { flex: 1; min-width: 0; font-size: .78rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.serp__me-text small { display: block; font-weight: 500; opacity: .75; font-size: .68rem; }
.serp__badge { font-size: .7rem; font-weight: 800; background: var(--sun); color: var(--ink); padding: .25em .6em; border-radius: 999px; font-variant-numeric: tabular-nums; }
.serp__foot { display: flex; justify-content: space-between; align-items: center; gap: .8rem; margin-top: .6rem; padding-top: .9rem; border-top: 1px dashed var(--line); font-size: .8rem; color: var(--ink-2); flex-wrap: wrap; }
.serp__foot b { color: var(--ink); }
.serp__replay { border: 0; background: none; color: var(--violet); font: 700 .8rem var(--font); cursor: pointer; padding: .3em 0; }

.float {
  position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  padding: .55rem .8rem; font-size: .78rem; font-weight: 700; display: flex; align-items: center; gap: .5rem; z-index: 3;
  animation: bob 6s ease-in-out infinite;
}
.float small { display: block; font-weight: 500; color: var(--ink-3); font-size: .7rem; }
.float__ico { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.float--a { top: -22px; right: -14px; }
.float--b { bottom: 70px; left: -34px; animation-delay: -2s; }
.float--c { top: 46%; right: -30px; animation-delay: -4s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 560px) {
  .float--b { left: -6px; bottom: 90px; }
  .float--a { right: -4px; }
  .float--b, .float--c { display: none; }
  .serp__list { --row: 30px; }
}

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: #fff; overflow: hidden; padding: 18px 0; }
.marquee__track { display: flex; gap: 1rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: .7rem; font-weight: 700; color: var(--ink-2); white-space: nowrap; padding: .55rem 1.1rem .55rem .6rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); transition: border-color .3s, transform .3s var(--ease); }
.marquee__item:hover { border-color: var(--lav-2); transform: translateY(-2px); }
.marquee__logo { width: 28px; height: 28px; padding: 5px; box-sizing: border-box; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); flex: none; }
.marquee__mono { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: .7rem; font-weight: 800; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: #fff; padding: clamp(22px, 3vw, 34px); position: relative; transition: background .3s; }
.stat:hover { background: var(--lav); }
.stat__num { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; margin-bottom: .5rem; font-variant-numeric: tabular-nums; }
.stat__num .unit { color: var(--violet); }
.stat__label { font-size: .92rem; color: var(--ink-2); margin: 0; line-height: 1.45; }
.stat__src { display: block; margin-top: .7rem; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .stats { grid-template-columns: 1fr; } }

/* ---------- Service / skill cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 900px) { .cards-3 { grid-template-columns: 1fr; } }
.skill {
  --x: 50%; --y: 50%;
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.skill::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
  background: radial-gradient(400px circle at var(--x) var(--y), rgba(141, 120, 255, .14), transparent 45%);
}
.skill:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--lav-2); }
.skill:hover::before { opacity: 1; }
.skill > * { position: relative; }
.skill__ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 1.4rem; }
.skill h3 { margin-bottom: .5rem; }
.skill p { color: var(--ink-2); font-size: .97rem; }
.skill__proof { margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px dashed var(--line); font-size: .88rem; font-weight: 600; display: flex; gap: .6rem; align-items: baseline; }
.skill__proof b { color: var(--violet); font-size: 1.25rem; letter-spacing: -.02em; white-space: nowrap; }
.ico--violet { background: var(--violet-soft); color: var(--violet); }
.ico--sun { background: var(--sun-soft); color: #b78300; }
.ico--pink { background: #ffe8f0; color: #d94a7b; }
.ico--mint { background: var(--mint-soft); color: #0b7d5b; }

/* ---------- Dark band / case cards ---------- */
.dark { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.dark::before { content: ""; position: absolute; width: 900px; height: 900px; left: -300px; top: -400px; background: radial-gradient(closest-side, rgba(102, 70, 245, .45), transparent); pointer-events: none; }
.dark::after { content: ""; position: absolute; width: 700px; height: 700px; right: -260px; bottom: -360px; background: radial-gradient(closest-side, rgba(255, 143, 177, .18), transparent); pointer-events: none; }
.dark .container { position: relative; z-index: 1; }
.dark .eyebrow { color: var(--violet-2); }
.dark .section__head p, .dark .lead { color: #c5c1e6; }

.case-feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(24px, 3.5vw, 44px); border-radius: var(--r-lg); text-decoration: none;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1);
  transition: background .4s, border-color .4s, transform .5s var(--ease);
}
.case-feature + .case-feature { margin-top: 1.4rem; }
.case-feature:hover { background: rgba(255, 255, 255, .07); border-color: rgba(141, 120, 255, .5); transform: translateY(-4px); }
.case-feature:nth-child(even) .case-feature__media { order: -1; }
.case-feature__kicker { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.case-feature__kicker .chip { background: rgba(255, 255, 255, .08); color: #ddd8ff; }
.case-feature h3 { font-size: clamp(1.5rem, 2.6vw, 2.15rem); margin-bottom: .6rem; }
.case-feature p { color: #c5c1e6; }
.case-feature__metric { display: flex; align-items: baseline; gap: .4rem 1rem; margin: 1.4rem 0; flex-wrap: wrap; }
.case-feature__metric b { white-space: nowrap; font-size: clamp(2.4rem, 4.6vw, 3.6rem); letter-spacing: -.04em; color: var(--sun); line-height: 1; }
.case-feature__metric span { color: #c5c1e6; font-size: .95rem; max-width: 22ch; line-height: 1.4; }
.case-feature__link { font-weight: 700; display: inline-flex; gap: .5em; align-items: center; }
.case-feature__link .arrow { transition: transform .3s var(--ease); }
.case-feature:hover .case-feature__link .arrow { transform: translateX(6px); }
.case-feature__media { border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 11; background: #231f55; position: relative; }
.case-feature__media img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .8s var(--ease); }
.case-feature:hover .case-feature__media img { transform: scale(1.04); }
.media-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; height: 100%; padding: 8px; }
.media-trio img { border-radius: 10px; }
@media (max-width: 860px) {
  .case-feature { grid-template-columns: 1fr; }
  .case-feature:nth-child(even) .case-feature__media { order: 0; }
}

/* ---------- Automation demo ---------- */
.flow { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3.5vw, 40px); box-shadow: var(--shadow); }
.flow__nodes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; margin-bottom: 1.8rem; }
.flow__node { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .6rem; position: relative; z-index: 1; padding: 0 .4rem; }
.flow__dot {
  width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  box-shadow: 0 10px 24px -10px currentColor; transition: transform .4s var(--ease), box-shadow .4s;
}
.flow__node.is-active .flow__dot { transform: scale(1.12); box-shadow: 0 0 0 8px rgba(102, 70, 245, .12), 0 10px 24px -10px currentColor; }
.flow__node b { font-size: .92rem; }
.flow__node small { font-size: .78rem; color: var(--ink-3); line-height: 1.35; display: block; }
.flow__line { position: absolute; top: 37px; left: 12.5%; right: 12.5%; height: 3px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); z-index: 0; }
.flow__line span { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--violet), var(--pink)); border-radius: 3px; }
.flow__packet { position: absolute; top: 31px; left: 12.5%; width: 15px; height: 15px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgba(255, 207, 74, .35); opacity: 0; z-index: 2; }
.flow__panel { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.2rem; align-items: stretch; }
.flow__console { background: var(--ink); color: #d7d3ff; border-radius: var(--r); padding: 18px; font: 500 .8rem/1.7 ui-monospace, "SF Mono", Menlo, monospace; min-height: 170px; max-height: 190px; overflow: hidden; position: relative; }
.flow__console::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: linear-gradient(transparent, var(--ink)); }
.flow__console .ok { color: #7ef0c6; }
.flow__console .k { color: var(--sun); }
.flow__console .dim { color: #8a86b8; }
.flow__compare { display: grid; gap: .9rem; align-content: center; }
.bar { display: grid; gap: .35rem; }
.bar__top { display: flex; justify-content: space-between; font-size: .85rem; font-weight: 700; }
.bar__track { height: 14px; border-radius: 999px; background: var(--lav); overflow: hidden; }
.bar__fill { height: 100%; border-radius: inherit; width: 0; transition: width 1.4s var(--ease); }
.bar__fill--before { background: #c9c4e4; }
.bar__fill--after { background: linear-gradient(90deg, var(--violet), var(--violet-2)); }
.flow__result { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.4rem; flex-wrap: wrap; }
.flow__saved { font-weight: 700; }
.flow__saved b { font-size: 1.6rem; color: var(--violet); letter-spacing: -.03em; }
@media (max-width: 760px) {
  .flow__nodes { grid-template-columns: repeat(2, 1fr); row-gap: 1.6rem; }
  .flow__line, .flow__packet { display: none; }
  .flow__panel { grid-template-columns: 1fr; }
}

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline__fill { position: absolute; left: 9px; top: 6px; width: 2px; height: calc(var(--tl, 0) * (100% - 12px)); background: linear-gradient(var(--violet), var(--pink)); }
.tl-item { position: relative; padding: 0 0 2rem; }
.tl-item::before { content: ""; position: absolute; left: -31px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--lav-2); transition: border-color .4s, transform .4s var(--ease); }
.tl-item.is-in::before { border-color: var(--violet); transform: scale(1.1); }
.tl-item__date { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); }
.tl-item h3 { margin: .25rem 0 .2rem; font-size: 1.15rem; }
.tl-item__org { color: var(--ink-2); font-weight: 600; font-size: .95rem; margin-bottom: .4rem; }
.tl-item p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.tl-item a { color: var(--violet); font-weight: 700; text-decoration: none; font-size: .9rem; }

/* ---------- Certifications ---------- */
.certs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 960px) { .certs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .certs { grid-template-columns: 1fr; } }
.cert { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: .5rem; text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s, border-color .3s; }
.cert:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: var(--shadow); border-color: var(--lav-2); }
.cert__logo { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: .9rem; color: #fff; margin-bottom: .4rem; }
.cert b { font-size: 1rem; line-height: 1.3; }
.cert span { font-size: .85rem; color: var(--ink-3); }
.cert__verify { margin-top: auto; padding-top: .6rem; font-size: .85rem; font-weight: 700; color: var(--violet); }
.cert-strip { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.cert-strip__label { font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-right: .6rem; }
.cert-pill { display: inline-flex; align-items: center; gap: .55rem; padding: .5rem .95rem .5rem .5rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; font-size: .88rem; text-decoration: none; transition: border-color .2s, transform .3s var(--ease); }
.cert-pill:hover { border-color: var(--violet); transform: translateY(-2px); }
.cert-pill i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; color: #fff; font-size: .7rem; font-weight: 800; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; border-radius: var(--r-lg); padding: clamp(36px, 6vw, 72px); background: linear-gradient(135deg, var(--violet) 0%, #4c2fd8 60%, #2b1c8f 100%); color: #fff; overflow: hidden; display: grid; grid-template-columns: 1.3fr .7fr; gap: 2rem; align-items: center; }
.cta-band::before { content: ""; position: absolute; right: -80px; top: -80px; width: 340px; height: 340px; border-radius: 50%; border: 60px solid rgba(255, 207, 74, .9); opacity: .9; }
.cta-band::after { content: ""; position: absolute; right: 140px; bottom: -60px; width: 140px; height: 140px; border-radius: 50%; background: var(--pink); opacity: .55; filter: blur(2px); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { margin: .3em 0 .4em; }
.cta-band p { color: #e3deff; max-width: 46ch; }
.cta-band .eyebrow { color: #fff; }
.cta-band__actions { display: flex; flex-direction: column; gap: .7rem; align-items: flex-start; }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; } .cta-band::before { width: 220px; height: 220px; border-width: 40px; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(40px, 7vw, 90px) 0 clamp(36px, 5vw, 60px); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; right: -10%; top: -40%; width: 700px; height: 700px; background: radial-gradient(closest-side, rgba(141, 120, 255, .22), transparent); z-index: -1; }
.page-hero h1 { max-width: 20ch; margin: .4em 0 .35em; }
.page-hero h1 em { font-family: var(--serif); font-weight: 400; color: var(--violet); }

/* ---------- About ---------- */
.about-intro { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.portrait { position: relative; max-width: 420px; }
.portrait__img { border-radius: 50%; overflow: hidden; aspect-ratio: 1; background: var(--lav-2); box-shadow: var(--shadow-lg); }
.portrait__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.portrait__tag { position: absolute; bottom: 22px; left: -18px; background: #fff; border-radius: 14px; padding: .7rem 1rem; box-shadow: var(--shadow); font-weight: 700; font-size: .85rem; display: flex; align-items: center; gap: .5rem; }
.portrait__tag--2 { left: auto; right: -18px; bottom: auto; top: 26px; }
.portrait::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border-radius: 50%; border: 2px solid var(--sun); z-index: -1; }
.about-intro__text p { font-size: 1.08rem; color: var(--ink-2); }
.about-intro__text p:first-of-type { font-size: 1.3rem; color: var(--ink); font-weight: 600; line-height: 1.5; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.pillar { background: var(--lav); border-radius: var(--r); padding: 18px; }
.pillar b { display: block; font-size: 1.05rem; margin-bottom: .2rem; }
.pillar span { font-size: .88rem; color: var(--ink-2); line-height: 1.45; display: block; }
@media (max-width: 860px) { .about-intro { grid-template-columns: 1fr; } .portrait { margin: 0 auto 1rem; } .pillars { grid-template-columns: 1fr; } }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; margin-bottom: 1rem; }
.info-card b { display: block; font-size: 1.05rem; }
.info-card span { color: var(--ink-2); font-size: .93rem; }
.info-card .chip { margin-top: .6rem; }
.skill-bars { display: grid; gap: .6rem; }

/* ---------- Case study index ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .6em 1.15em; font: 700 .88rem var(--font); color: var(--ink-2); cursor: pointer; transition: .2s; }
.filter:hover { border-color: var(--violet); color: var(--violet); }
.filter[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
@media (max-width: 800px) { .case-grid { grid-template-columns: 1fr; } }
.case-card {
  --x: 50%; --y: 50%;
  position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; text-decoration: none; transition: transform .45s var(--ease), box-shadow .45s var(--ease), opacity .4s, border-color .3s;
}
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--lav-2); }
.case-card.is-hidden { display: none; }
.case-card__top { position: relative; aspect-ratio: 16 / 8; display: grid; place-items: center; overflow: hidden; }
.case-card__top img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .7s var(--ease); }
.case-card:hover .case-card__top img { transform: scale(1.05); }
.case-card__big { font-size: clamp(3rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; transition: transform .6s var(--ease); }
.case-card:hover .case-card__big { transform: scale(1.06) rotate(-2deg); }
.case-card__big small { display: block; font-size: .2em; letter-spacing: .1em; text-transform: uppercase; text-align: center; margin-top: .6em; font-weight: 700; opacity: .75; }
.case-card__body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.case-card__meta { font-size: .8rem; color: var(--ink-3); font-weight: 600; }
.case-card h3 { font-size: 1.3rem; margin: 0; }
.case-card p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.case-card__more { margin-top: auto; padding-top: .9rem; font-weight: 700; color: var(--violet); font-size: .92rem; }
.bg-violet { background: linear-gradient(135deg, var(--violet), #3f25c9); color: #fff; }
.bg-sun { background: linear-gradient(135deg, #ffe08a, var(--sun)); color: var(--ink); }
.bg-pink { background: linear-gradient(135deg, #ffc2d5, var(--pink)); color: var(--ink); }
.bg-ink { background: linear-gradient(135deg, #2a2563, var(--ink)); color: #fff; }
.bg-mint { background: linear-gradient(135deg, #b8f0dd, #5fd3ad); color: var(--ink); }
.bg-lav { background: linear-gradient(135deg, var(--lav), var(--lav-2)); color: var(--ink); }

.mini-card { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: center; background: #fff; border: 1px dashed var(--lav-2); border-radius: var(--r-lg); padding: 24px; }
.mini-card__ico { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; font-size: 1.8rem; }
.mini-card h3 { margin: .2rem 0 .3rem; font-size: 1.2rem; }
.mini-card p { margin: 0; color: var(--ink-2); font-size: .95rem; }
@media (max-width: 560px) { .mini-card { grid-template-columns: 1fr; } }

/* ---------- Case study page ---------- */
.cs-hero { padding: clamp(36px, 6vw, 80px) 0 clamp(30px, 4vw, 50px); position: relative; overflow: hidden; }
.cs-hero::before { content: ""; position: absolute; right: -10%; top: -50%; width: 800px; height: 800px; background: radial-gradient(closest-side, rgba(141, 120, 255, .2), transparent); z-index: -1; }
.crumbs { font-size: .85rem; font-weight: 600; color: var(--ink-3); margin-bottom: 1.4rem; }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { color: var(--violet); }
.cs-hero h1 { font-size: clamp(2.2rem, 5vw, 3.9rem); max-width: 22ch; margin: .35em 0 .4em; }
.cs-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: 2.2rem; }
.cs-facts div { background: #fff; padding: 16px 20px; }
.cs-facts dt { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .25rem; }
.cs-facts dd { margin: 0; font-weight: 600; font-size: .93rem; line-height: 1.4; }
@media (max-width: 820px) { .cs-facts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .cs-facts { grid-template-columns: 1fr; } }

.cs-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 2rem 0; }
.kpi { background: var(--ink); color: #fff; border-radius: var(--r); padding: 22px; position: relative; overflow: hidden; }
.kpi::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 100px; height: 100px; border-radius: 50%; background: rgba(141, 120, 255, .35); }
.kpi b { display: block; font-size: 2.3rem; letter-spacing: -.04em; line-height: 1.05; color: var(--sun); font-variant-numeric: tabular-nums; }
.kpi > span { font-size: .88rem; color: #cfcaf0; display: block; margin-top: .4rem; line-height: 1.4; position: relative; z-index: 1; }

.cs-layout { display: grid; grid-template-columns: 220px 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: 100px; display: grid; gap: .2rem; }
.toc p { font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 .6rem; }
.toc a { text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--ink-3); padding: .45em .8em; border-left: 2px solid var(--line); transition: .2s; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--violet); border-color: var(--violet); background: linear-gradient(90deg, var(--violet-soft), transparent); }
@media (max-width: 900px) { .cs-layout { grid-template-columns: 1fr; } .toc { display: none; } }

.cs-body { max-width: 760px; min-width: 0; }
.cs-body section { padding-bottom: clamp(36px, 5vw, 60px); scroll-margin-top: 100px; }
.cs-body h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); display: flex; align-items: baseline; gap: .7rem; }
.cs-body h2 .num { font-size: .5em; font-weight: 800; color: var(--violet); background: var(--violet-soft); border-radius: 8px; padding: .25em .55em; letter-spacing: 0; transform: translateY(-.25em); }
.cs-body p, .cs-body li { color: var(--ink-2); }
.cs-body ul.ticks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: .8rem; }
.cs-body ul.ticks li { position: relative; padding-left: 2rem; }
.cs-body ul.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.2rem; height: 1.2rem; border-radius: 6px; background: var(--violet-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236646f5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 70% no-repeat; }
.cs-body strong { color: var(--ink); }
.callout { background: var(--sun-soft); border-left: 4px solid var(--sun); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 18px 22px; margin: 1.5rem 0; }
.callout p { color: var(--ink); margin: 0; }
.callout b { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .3rem; }
.quote-learn { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.4vw, 1.85rem); line-height: 1.35; color: var(--ink); border: 0; margin: 0 0 1.2rem; padding: 0 0 0 1.4rem; border-left: 3px solid var(--violet); }

.figure { margin: 1.6rem 0; }
.figure__frame { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; cursor: zoom-in; position: relative; }
.figure__frame::after { content: "⤢"; position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(22, 19, 58, .75); color: #fff; display: grid; place-items: center; opacity: 0; transition: opacity .3s; font-size: 1rem; }
.figure__frame:hover::after { opacity: 1; }
.figure figcaption { font-size: .85rem; color: var(--ink-3); margin-top: .7rem; }
.figure figcaption .chip { margin-right: .4rem; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.6rem 0; }
.gallery .figure { margin: 0; }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr 1fr; } }
.img-slot { border: 2px dashed var(--lav-2); border-radius: var(--r); background: repeating-linear-gradient(45deg, var(--lav) 0 12px, #fff 12px 24px); aspect-ratio: 4 / 5; display: grid; place-items: center; text-align: center; padding: 1rem; font-size: .8rem; font-weight: 600; color: var(--ink-3); }

.cs-next { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 32px; border-radius: var(--r-lg); background: var(--lav); text-decoration: none; transition: background .3s; flex-wrap: wrap; }
.cs-next:hover { background: var(--lav-2); }
.cs-next small { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--violet); margin-bottom: .3rem; }
.cs-next b { font-size: clamp(1.2rem, 2.4vw, 1.6rem); letter-spacing: -.02em; }
.cs-next .arrow-circle { width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 1.3rem; transition: transform .4s var(--ease); flex: none; }
.cs-next:hover .arrow-circle { transform: translateX(6px) rotate(-45deg); }

/* Slope chart (rank climb) */
.rank-viz { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 30px); box-shadow: var(--shadow); margin: 1.6rem 0; }
.rank-viz__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.rank-viz__head b { font-size: 1rem; }
.rank-viz svg { width: 100%; height: auto; overflow: visible; }
.rank-viz .axis text { font: 600 11px var(--font); fill: var(--ink-3); }
.rank-viz .grid line { stroke: var(--line); }
.rank-viz .top3 { fill: var(--mint-soft); }
.rank-viz .slope { fill: none; stroke-width: 4; stroke-linecap: round; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 1.6s var(--ease); }
.rank-viz.is-in .slope { stroke-dashoffset: 0; }
.rank-viz .pt { transition: opacity .4s 1.4s; opacity: 0; }
.rank-viz.is-in .pt { opacity: 1; }
.rank-viz .pt-start { opacity: 1; transition: none; }
.rank-viz__legend { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: .85rem; font-weight: 600; color: var(--ink-2); margin-top: .8rem; }
.rank-viz__legend i { display: inline-block; width: 14px; height: 4px; border-radius: 2px; margin-right: .4rem; vertical-align: middle; }

.post-table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 1.4rem 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.post-table th, .post-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.post-table th { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); background: var(--lav); }
.post-table tr:last-child td { border-bottom: 0; }
.post-table td b { color: var(--ink); }

/* Before / after compare (AI visualiser) */
.compare-time { display: grid; gap: .9rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; margin: 1.4rem 0; box-shadow: var(--shadow-sm); }

/* ---------- Blog coming soon ---------- */
.soon { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 0 100px; }
.soon__screen { width: min(320px, 80vw); margin: 0 auto 2.4rem; animation: bob 5s ease-in-out infinite; }
.soon h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 16ch; margin: 0 auto .4em; }
.soon .lead { margin: 0 auto 1.6rem; }
.soon .chips { justify-content: center; margin-bottom: 2rem; }
.cursor-blink { animation: blink 1s steps(1) infinite; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-tile { display: flex; align-items: center; gap: 1rem; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; margin-bottom: .8rem; transition: border-color .3s, transform .3s var(--ease); width: 100%; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.contact-tile:hover { border-color: var(--violet); transform: translateX(4px); }
.contact-tile__ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.contact-tile b { display: block; }
.contact-tile span { font-size: .9rem; color: var(--ink-2); word-break: break-word; }
.contact-tile em { margin-left: auto; font-style: normal; font-size: .78rem; font-weight: 700; color: var(--violet); white-space: nowrap; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .4rem; margin-bottom: 1.1rem; }
.field label { font-weight: 700; font-size: .88rem; }
.field input, .field textarea, .field select { font: inherit; font-size: 1rem; padding: .85em 1em; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); transition: border-color .2s, box-shadow .2s; width: 100%; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(102, 70, 245, .12); background: #fff; }
.topic-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.topic-pills label { cursor: pointer; position: relative; }
.topic-pills input { position: absolute; opacity: 0; pointer-events: none; }
.topic-pills span { display: inline-block; padding: .55em 1em; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; font-size: .88rem; transition: .2s; }
.topic-pills input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.topic-pills input:focus-visible + span { outline: 3px solid var(--violet); outline-offset: 2px; }
.form__note { font-size: .82rem; color: var(--ink-3); margin: 1rem 0 0; }
.form__success { display: none; text-align: center; padding: 2rem 0; }
.form.is-sent .form__fields { display: none; }
.form.is-sent .form__success { display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #fff; padding: clamp(60px, 8vw, 100px) 0 28px; margin-top: 0; }
.footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer__kicker { color: var(--violet-2); font-weight: 700; font-size: .85rem; letter-spacing: .06em; }
.footer__brand { display: flex; align-items: center; gap: .65rem; font-weight: 800; font-size: 1.2rem; text-decoration: none; margin-bottom: 1rem; }
.footer__brand .brand__mark { background: #fff; color: var(--ink); }
.footer__line { color: #c5c1e6; max-width: 38ch; }
.footer__big { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; max-width: 20ch; }
.footer__big em { font-family: var(--serif); font-weight: 400; color: var(--sun); }
.footer__actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.footer__nav { display: grid; gap: .5rem; align-content: start; }
.footer__nav p { font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #8a86b8; margin: 0 0 .4rem; }
.footer__nav a { text-decoration: none; color: #d7d3ff; font-weight: 600; transition: color .2s; }
.footer__nav a:hover { color: var(--sun); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 24px; font-size: .82rem; color: #8a86b8; }
@media (max-width: 760px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__top > div:first-child { grid-column: 1 / -1; } }

/* ---------- Lightbox / toast ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(14, 12, 40, .88); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 4vw; opacity: 0; pointer-events: none; transition: opacity .3s; }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-height: 88vh; width: auto; max-width: 100%; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox button { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; font-size: 1.3rem; cursor: pointer; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: .8rem 1.3rem; border-radius: 999px; font-weight: 600; font-size: .9rem; opacity: 0; pointer-events: none; transition: .35s var(--ease); z-index: 120; box-shadow: var(--shadow-lg); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}

.h2-sm { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.org-list { display: grid; gap: .8rem; }
.org { display: flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; transition: transform .35s var(--ease), border-color .3s; }
.org:hover { transform: translateX(6px); border-color: var(--lav-2); }
.org__mark { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; flex: none; }
.org b { display: block; }
.org span { font-size: .9rem; color: var(--ink-2); }
.compare-time.is-in .bar__fill { width: var(--w); }
.gallery--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .gallery--2 { grid-template-columns: 1fr; } }

/* ---------- Contact: email card ---------- */
.mail-card { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: clamp(28px, 4vw, 48px); position: relative; overflow: hidden; }
.mail-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 170px; height: 170px; border-radius: 50%; border: 32px solid var(--sun); opacity: .9; }
.mail-card > * { position: relative; z-index: 1; }
.mail-card__address { display: block; margin: .6rem 0 1rem; font-size: clamp(1.25rem, 2.5vw, 2rem); font-weight: 800; letter-spacing: -.02em; color: #fff; text-decoration: none; overflow-wrap: anywhere; width: fit-content; background: linear-gradient(transparent 70%, rgba(255, 207, 74, .55) 70%) no-repeat 0 0 / 0 100%; transition: background-size .5s var(--ease); }
.mail-card__address:hover { background-size: 100% 100%; }
.mail-card p { color: #c5c1e6; max-width: 40ch; }
.mail-card__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }

/* ---------- CV viewer ---------- */
.cv-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.cv-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.cv-viewer { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.cv-viewer__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fff; }
.cv-viewer__file { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: .92rem; min-width: 0; }
.cv-viewer__ico { font-size: .66rem; font-weight: 800; letter-spacing: .04em; background: #e5484d; color: #fff; padding: .35em .55em; border-radius: 6px; }
.cv-viewer__zoom { display: inline-flex; align-items: center; gap: .3rem; background: var(--lav); border-radius: 999px; padding: 4px; }
.cv-viewer__zoom button { border: 0; background: #fff; color: var(--ink); width: 36px; height: 36px; border-radius: 50%; font: 700 1.1rem var(--font); cursor: pointer; box-shadow: var(--shadow-sm); }
.cv-viewer__zoom .cv-viewer__fit { width: auto; padding: 0 .9rem; border-radius: 999px; font-size: .82rem; }
.cv-viewer__zoom [data-zoom-label] { min-width: 3.2em; text-align: center; font-size: .85rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.cv-viewer__stage { background: repeating-linear-gradient(45deg, var(--lav) 0 14px, #f7f5ff 14px 28px); padding: clamp(16px, 4vw, 48px); overflow: auto; max-height: 86vh; }
.cv-viewer__page { width: min(100%, var(--cv-w, 820px)); max-width: none; margin: 0 auto; border-radius: 4px; box-shadow: 0 30px 60px -20px rgba(22, 19, 58, .35); background: #fff; transition: width .35s var(--ease); }
.cv-viewer__stage.is-zoomed .cv-viewer__page { width: var(--cv-w); }
.cv-viewer__pdf { display: block; width: 100%; height: 86vh; border: 0; background: #fff; }
.cv-viewer.has-pdf .cv-viewer__stage { padding: 0; max-height: none; background: #525659; }
.cv-viewer.has-pdf .cv-viewer__zoom { display: none; }

/* ---------- About: CV promo ---------- */
.cv-promo { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.cv-promo__sheet { position: relative; display: block; max-width: 360px; margin: 0 auto; border-radius: 10px; background: #fff; padding: 10px; box-shadow: 0 30px 60px -20px rgba(22, 19, 58, .35); transform: rotate(-3deg); transition: transform .5s var(--ease); }
.cv-promo__sheet:hover { transform: rotate(0) translateY(-6px) scale(1.02); }
.cv-promo__sheet img { border-radius: 4px; }
.cv-promo__badge { position: absolute; top: -12px; right: -12px; background: var(--sun); color: var(--ink); font-weight: 800; font-size: .78rem; padding: .45em .9em; border-radius: 999px; box-shadow: var(--shadow-sm); }
@media (max-width: 760px) { .cv-promo { grid-template-columns: 1fr; } }

.gallery--1 { grid-template-columns: 1fr; }
/* Instagram-style carousel */
.ig-carousel { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.ig-carousel__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.ig-carousel__track::-webkit-scrollbar { display: none; }
.ig-carousel__slide { flex: 0 0 100%; scroll-snap-align: center; }
.ig-carousel__slide img { width: 100%; aspect-ratio: 1162 / 1458; object-fit: cover; }
.ig-carousel__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--ink); font: 700 1.4rem/1 var(--font); cursor: pointer; box-shadow: var(--shadow-sm); transition: opacity .2s, transform .2s; }
.ig-carousel__btn:hover { transform: translateY(-50%) scale(1.08); }
.ig-carousel__btn[disabled] { opacity: 0; pointer-events: none; }
.ig-carousel__btn--prev { left: 10px; }
.ig-carousel__btn--next { right: 10px; }
.ig-carousel__dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.ig-carousel__dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(22, 19, 58, .25); transition: background .2s, transform .2s; }
.ig-carousel__dots span.is-on { background: var(--violet); transform: scale(1.25); }
/* Phone frames (TikTok covers) */
.phones { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; margin: 1.6rem 0; }
.phone { margin: 0; width: min(260px, 100%); text-align: center; }
.phone__screen { border-radius: 34px; border: 10px solid var(--ink); overflow: hidden; aspect-ratio: 9 / 16; box-shadow: var(--shadow-lg); background: var(--ink); }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; }
.phone figcaption { margin-top: .9rem; font-size: .88rem; color: var(--ink-3); font-weight: 600; }
/* Podcast posters */
.posters { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: .6rem; }
.posters .figure { margin: 0; }
.posters .figure__frame img { aspect-ratio: 1; object-fit: cover; }
.posters figcaption { font-size: .78rem; }
@media (max-width: 760px) { .posters { grid-template-columns: repeat(2, 1fr); } }

.phone__screen video { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--ink); }
.creative { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; margin: 1.6rem 0; }
.creative .phone { width: 240px; }
@media (max-width: 640px) { .creative { grid-template-columns: 1fr; justify-items: center; text-align: center; } }

/* ---------- Cookie banner ---------- */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 110; max-width: 520px; margin-left: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 20px 22px; transform: translateY(20px); opacity: 0; transition: .4s var(--ease); }
.cookie.is-on { transform: none; opacity: 1; }
.cookie__title { display: flex; align-items: center; gap: .5rem; font-weight: 800; margin: 0 0 .3rem; }
.cookie p { font-size: .9rem; color: var(--ink-2); margin: 0 0 1rem; line-height: 1.5; }
.cookie__actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.cookie__actions .btn { flex: 1 1 auto; justify-content: center; }
.footer__legal { display: inline-flex; gap: 1.2rem; flex-wrap: wrap; }
.footer__legal a, .footer__legal button { color: #9d99c8; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.footer__legal a:hover, .footer__legal button:hover { color: var(--sun); }
.legal { max-width: 760px; }
.legal h2 { font-size: 1.35rem; margin: 2rem 0 .6rem; }
.legal p { color: var(--ink-2); }
.legal code { background: var(--lav); padding: .1em .4em; border-radius: 6px; font-size: .9em; }

/* ---------- Blog ---------- */
.post-card__top img { object-position: center; }
.post-card__label, .post-feature__img .post-card__label { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.03em; padding: 0 1.2rem; text-align: center; }
.post-feature { display: grid; grid-template-columns: 1.15fr 1fr; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; text-decoration: none; color: inherit; margin-bottom: 1.4rem; transition: transform .5s var(--ease), box-shadow .5s, border-color .5s; }
.post-feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--lav-2); }
.post-feature.is-hidden { display: none; }
.post-feature__img { min-height: 280px; display: grid; place-items: center; overflow: hidden; }
.post-feature__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.post-feature:hover .post-feature__img img { transform: scale(1.04); }
.post-feature__body { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: .7rem; align-items: flex-start; }
.post-feature__body h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: .1em 0 0; }
.post-feature__body p { color: var(--ink-2); margin: 0; }
@media (max-width: 800px) { .post-feature { grid-template-columns: 1fr; } .post-feature__img { min-height: 0; aspect-ratio: 16 / 8; } }
.post-follow { margin-top: 2.4rem; text-align: center; color: var(--ink-2); font-size: .95rem; }

.post-hero h1 { max-width: 24ch; }
.post-byline { display: flex; align-items: center; gap: .8rem; margin-top: 1.6rem; }
.post-byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: var(--shadow); }
.post-byline a { display: block; font-weight: 700; color: var(--ink); text-decoration: none; }
.post-byline small { display: block; color: var(--ink-3); font-size: .85rem; font-weight: 600; }
.post-cover { margin-bottom: clamp(8px, 2vw, 24px); }
.post-cover img { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow); }
.post-section { padding-top: clamp(24px, 4vw, 48px); }
.post-layout { max-width: 760px; }

.post-body { max-width: 760px; min-width: 0; font-size: 1.06rem; }
.post-body > :first-child { margin-top: 0; }
.post-body h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin: 2em 0 .5em; scroll-margin-top: 100px; }
.post-body h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); margin: 1.6em 0 .4em; scroll-margin-top: 100px; }
.post-body p, .post-body li { color: var(--ink-2); line-height: 1.75; }
.post-body strong { color: var(--ink); }
.post-body a { color: var(--violet); text-underline-offset: 3px; }
.post-body ul, .post-body ol { padding-left: 1.3em; display: grid; gap: .4rem; margin: 0 0 1.2em; }
.post-body li::marker { color: var(--violet); font-weight: 700; }
.post-body blockquote { margin: 1.8rem 0; padding: 18px 24px; border-left: 4px solid var(--violet); background: var(--lav); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.post-body blockquote p { color: var(--ink); font-size: 1.1rem; margin: 0; }
.post-body blockquote p + p { margin-top: .6em; }
.post-body code { font-size: .9em; background: var(--lav); padding: .15em .4em; border-radius: 6px; }
.post-body pre { background: var(--ink); color: #f4f1ff; padding: 18px 22px; border-radius: var(--r); overflow-x: auto; font-size: .9rem; }
.post-body pre code { background: none; padding: 0; color: inherit; }
.post-body hr { border: 0; border-top: 2px dashed var(--line); margin: 2.4rem 0; }
.post-body img { max-width: 100%; height: auto; border-radius: var(--r-sm); }
.post-body .figure__frame img { display: block; width: 100%; border-radius: 0; }
.post-body .table-wrap { overflow-x: auto; }

.post-author { display: flex; gap: 1.2rem; align-items: flex-start; margin-top: 3rem; padding: 26px; border-radius: var(--r-lg); background: var(--lav); }
.post-author img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.post-author small { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--violet); }
.post-author b { display: block; font-size: 1.15rem; margin: .1em 0 .3em; }
.post-author p { margin: 0 0 .8rem; font-size: .95rem; }
.post-author__links { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.post-author__links a { font-weight: 700; font-size: .92rem; text-decoration: none; }
@media (max-width: 520px) { .post-author { flex-direction: column; } }
.case-card h2 { font-size: 1.3rem; margin: 0; }

/* ---------- Language switch (EN | ES) ---------- */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: #fff; text-decoration: none; flex: none; transition: border-color .2s; }
.lang-switch:hover { border-color: var(--violet); }
.lang-switch__opt { font-size: .74rem; font-weight: 800; letter-spacing: .06em; color: var(--ink-3); padding: .38em .62em; border-radius: 999px; line-height: 1; transition: color .2s, background .2s; }
.lang-switch:hover .lang-switch__opt:not([aria-current]) { color: var(--violet); }
.lang-switch__opt[aria-current] { background: var(--ink); color: #fff; }
@media (max-width: 920px) { .lang-switch { margin-left: auto; } }
/* Spanish headlines run longer: scale the home hero down a little */
html[lang="es"] .hero h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); }
