/* ===== TOKENS (dark, no toggle) ===== */
:root {
  --bg: #0A0A0B;
  --surface: #131315;
  --surface-2: #1A1A1D;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --ink: #F3F1ED;
  --muted: #9B978F;
  --accent: #A970FF;          /* highlights, small accent text (6.1:1 on --bg) */
  --accent-glow: rgba(139, 61, 255, 0.35);
  --accent-btn: #8B3DFF;      /* button fill: white text passes AA (5.0:1) */
  --accent-btn-hover: #7B2FF7;
  --gold: #E6C25E;            /* warm gold for the money word */
  --grad: linear-gradient(95deg, #CF97FF 0%, #A970FF 45%, #8B3DFF 100%);
  --green: #2FBF71;

  --font-sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --ease-out: cubic-bezier(.22, 1, .36, 1);

  --pad-x: 24px;
  --section-y: 72px;
  --nav-h: 64px;
  color-scheme: dark;
}
@media (min-width: 768px) {
  :root { --pad-x: 40px; --section-y: 120px; --nav-h: 72px; }
}

/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* grain over everything */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px;
  font-size: 15px; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

/* ===== TYPE ===== */
.h1 {
  font-size: clamp(44px, 7vw, 96px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  font-weight: 600;
}
.h2 {
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 600;
  text-wrap: balance;
}
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.h2 .serif {
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  padding: 0 .1em 0 .02em;      /* room for the italic overhang so the clip doesn't cut it */
  margin: 0 -.1em 0 -.02em;
}
.accent { color: var(--accent); }
/* section label: a quiet outlined pill, always secondary to the H2 below it */
.label {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, .02);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 18px;
}
.label::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .7;
  flex-shrink: 0;
}
.lead { color: var(--muted); font-size: 18px; line-height: 1.6; }
.section-head { margin-bottom: 48px; max-width: 760px; }

/* H2 line reveal: words rise out of a mask, staggered by line */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .wi { display: inline-block; transition: transform .8s var(--ease-out); transition-delay: calc(var(--line, 0) * 90ms); }
.js .split:not(.in) .wi { transform: translateY(110%); }

/* ===== BUTTONS & LINKS ===== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: 999px;
  font: 600 16px/1.2 var(--font-sans);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: background-color .2s ease;
}
.btn-primary { background: var(--accent-btn); color: #fff; box-shadow: 0 8px 32px -8px var(--accent-glow); }
.btn-primary:hover { background: var(--accent-btn-hover); }
.btn .arr { display: inline-block; transition: transform .25s var(--ease-out); }
.btn:hover .arr { transform: translateX(4px); }
/* shine that sweeps across on hover */
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn-primary:hover::after { transform: translateX(120%); transition: transform .8s var(--ease-out); }
.magnetic { will-change: transform; transition: transform .35s var(--ease-out), background-color .2s ease; }
.btn-sm { min-height: 40px; padding: 9px 18px; font-size: 14px; box-shadow: none; }
.link-u {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  padding-bottom: 3px;
}
.link-u::before, .link-u::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--line-strong);
}
.link-u::after { background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); }
.link-u:hover::after, .link-u:focus-visible::after { transform: scaleX(1); }

/* ===== NAV ===== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease;
}
.nav.is-scrolled, .nav.is-open {
  /* solid instead of backdrop blur: blurring the page under a fixed bar on every scroll frame is costly on big screens */
  background: rgba(10, 10, 11, 0.94);
  border-bottom-color: var(--line);
}
.nav-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.nav-logo { font-weight: 600; font-size: 18px; text-decoration: none; letter-spacing: -0.01em; margin-right: auto; }
.nav-links { position: relative; display: flex; gap: 4px; }
.nav-links a { position: relative; z-index: 1; font-size: 15px; text-decoration: none; color: var(--muted); padding: 8px 14px; border-radius: 999px; transition: color .2s ease; }
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-pill {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  opacity: 0;
  transition: transform .45s var(--ease-out), width .45s var(--ease-out), opacity .25s ease;
}
.nav-pill.is-on { opacity: 1; }
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface);
  align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 16px; height: 1.5px; background: var(--ink); position: relative;
  transition: transform .2s ease, background-color .2s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; }
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }
.nav.is-open .nav-toggle span { background: transparent; }
.nav.is-open .nav-toggle span::before { transform: translateY(5px) rotate(45deg); }
.nav.is-open .nav-toggle span::after { transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 860px) {
  .nav-inner { gap: 12px; }
  .nav-toggle { display: inline-flex; order: 3; }
  .nav-pill { display: none; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--pad-x) 20px;
    background: rgba(10, 10, 11, 0.97);
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-links a { padding: 14px 0; font-size: 18px; color: var(--ink); border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
}

/* ===== HERO (vertical: floating photo on top, centered copy below) ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--nav-h) + 8px);
  padding-bottom: 56px;
  isolation: isolate;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
/* the backdrop dissolves into the page at the bottom, no hard seam */
.hero-bg::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(to bottom, transparent, var(--bg)); }
/* collage texture: framed at the edges, faded behind the photo and copy. Source is 4K;
   each breakpoint loads the smallest file that still covers the screen at its pixel density
   (AVIF with WebP fallback). The purple tint is baked into the files. */
.hero-texture {
  position: absolute;
  inset: -12px;                 /* just enough room for the cursor drift */
  background-image: url('/images/hero-texture-1920.webp');
  background-image: image-set(url('/images/hero-texture-1920.avif') type('image/avif'), url('/images/hero-texture-1920.webp') type('image/webp'));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  --tex-op: .55;
  opacity: var(--tex-op);
  -webkit-mask-image: radial-gradient(ellipse 62% 58% at 50% 46%, rgba(0, 0, 0, .18) 30%, #000 92%);
          mask-image: radial-gradient(ellipse 62% 58% at 50% 46%, rgba(0, 0, 0, .18) 30%, #000 92%);
  transform: translate3d(calc(var(--px, 0) * -10px), calc(var(--py, 0) * -8px), 0);
  transition: transform 1.4s var(--ease-out);
  animation: textureIn 1.6s ease-out both;
}
@keyframes textureIn { from { opacity: 0; } to { opacity: var(--tex-op); } }
@media (min-width: 1700px), (min-width: 1100px) and (min-resolution: 1.4dppx) {
  .hero-texture { background-image: url('/images/hero-texture-2560.webp'); background-image: image-set(url('/images/hero-texture-2560.avif') type('image/avif'), url('/images/hero-texture-2560.webp') type('image/webp')); }
}
@media (min-width: 2400px), (min-width: 1300px) and (min-resolution: 1.4dppx) {
  .hero-texture { background-image: url('/images/hero-texture-3840.webp'); background-image: image-set(url('/images/hero-texture-3840.avif') type('image/avif'), url('/images/hero-texture-3840.webp') type('image/webp')); }
}
@media (max-width: 860px) {
  .hero-texture {
    background-image: url('/images/hero-texture-1000.webp');
    background-image: image-set(url('/images/hero-texture-1000.avif') type('image/avif'), url('/images/hero-texture-1000.webp') type('image/webp'));
    --tex-op: .45;
  }
}
@media (max-width: 860px) and (min-resolution: 2dppx) {
  .hero-texture { background-image: url('/images/hero-texture-2000.webp'); background-image: image-set(url('/images/hero-texture-2000.avif') type('image/avif'), url('/images/hero-texture-2000.webp') type('image/webp')); }
}
.hero-wash {
  position: absolute; inset: 0;
  /* black stage; only a deep lilac haze creeping in from the edges */
  background:
    radial-gradient(ellipse 75% 70% at 50% 42%, transparent 58%, rgba(64, 28, 140, .30) 100%),
    radial-gradient(40% 45% at 0% 100%, rgba(70, 30, 150, .22), transparent 70%),
    radial-gradient(40% 45% at 100% 100%, rgba(70, 30, 150, .16), transparent 70%);
}

/* the floating photo: enters first, then drifts; the mouse nudges and tilts it */
.float-stage { position: relative; display: flex; justify-content: center; margin-bottom: clamp(-36px, -3vh, -12px); z-index: 1; padding-inline: var(--pad-x); }
.float-glow {
  position: absolute;
  left: 60%; top: 40%;
  width: 52%; aspect-ratio: 2.6 / 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(150, 80, 255, .5), rgba(110, 50, 230, .2) 50%, rgba(110, 50, 230, .06) 78%, rgba(110, 50, 230, 0));
  animation: glow 6s ease-in-out infinite;
}
@keyframes glow { 0%, 100% { opacity: .6; transform: scale(.95); } 50% { opacity: 1; transform: scale(1.05); } }
.float-parallax {
  position: relative;
  /* as large as the viewport height allows while the copy and CTA still fit below;
     the feet and hands tuck slightly behind the headline */
  width: min(100%, 1400px, (100svh - 400px) * 2.05);
  min-width: min(100%, 760px);
  transform: translate3d(calc(var(--px, 0) * 16px), calc(var(--py, 0) * 12px), 0) rotate(calc(var(--px, 0) * 1.6deg));
  transition: transform 1.1s var(--ease-out);
}
.float-bob { animation: bob 7s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(-8px) rotate(-.6deg); }
  50% { transform: translateY(10px) rotate(.5deg); }
}
.float-img {
  width: 100%;
  height: auto;
  opacity: .9;
  filter: drop-shadow(0 0 14px rgba(160, 100, 255, .45)) drop-shadow(0 0 70px rgba(139, 61, 255, .35));
  animation: floatIn 1.3s var(--ease-out) both;
}
@keyframes floatIn {
  from { opacity: 0; transform: translateY(70px) scale(.96); }
  to { opacity: .9; transform: none; }
}

/* copy */
.hero-text { position: relative; z-index: 2; text-align: center; container-type: inline-size; }
.hero h1 { margin: 0 auto 22px; max-width: 1100px; }
.hero-title {
  font-size: clamp(30px, 4.6cqi, 62px);
  line-height: 1.06;
  letter-spacing: -0.035em;
}
.h1-line { display: block; text-wrap: balance; }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .03em .12em; margin: 0 -.03em -.12em; }
.hero h1 .wi { display: inline-block; animation: wordUp .9s var(--ease-out) both; animation-delay: calc(650ms + var(--i) * 45ms); }
@keyframes wordUp { from { transform: translateY(115%); } to { transform: none; } }
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  padding-right: .02em;
}
.hl { position: relative; display: inline-block; padding-right: .04em; }
.hl svg { position: absolute; left: -3%; bottom: -.08em; width: 106%; height: .22em; overflow: visible; }
.hl path { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 220; stroke-dashoffset: 220; animation: draw 1s var(--ease-out) forwards; animation-delay: 1.75s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.lucrar { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--gold); letter-spacing: -0.01em; }
.hero-sub { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 1000px; margin: 0 auto 30px; text-wrap: balance; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 16px 32px; }
.cta-col { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero-actions .link-u { display: inline-flex; align-items: center; min-height: 52px; padding-bottom: 0; }
.hero-actions .link-u::before, .hero-actions .link-u::after { bottom: 13px; }
.micro { font-size: 14px; color: var(--muted); }
.fade-in { animation: fadeUp .8s var(--ease-out) both; animation-delay: var(--delay, 0ms); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* short desktop screens: tighter copy so the photo keeps its size */
@media (min-width: 861px) and (max-height: 820px) {
  .float-parallax { width: min(100%, 1400px, (100svh - 330px) * 2.05); }
  .hero-title { font-size: clamp(30px, min(4.6cqi, 6.2vh), 62px); }
  .hero h1 { margin-bottom: 14px; }
  .hero-sub { font-size: 16px; line-height: 1.5; max-width: 1000px; margin-bottom: 18px; }
  .hero { padding-bottom: 28px; }
}
@media (max-width: 860px) {
  .hero { min-height: 0; justify-content: flex-start; padding-top: calc(var(--nav-h) + 20px); padding-bottom: 48px; }
  .float-stage { margin-bottom: 0; }
  .float-parallax { width: 100%; min-width: 0; transform: none; }
  .hero-title { font-size: clamp(28px, 8.4cqi, 44px); }
  .hero-sub { font-size: 16px; margin-bottom: 24px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 8px; }
  .cta-col { align-items: stretch; }
  .cta-col .btn { justify-content: center; }
  .hero-actions .link-u { align-self: center; }
}

/* ===== LOGOS (full-bleed marquee) ===== */
.logos { padding-block: 8px 0; }
.logos .label { margin-inline: auto; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 35s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-list { display: flex; align-items: center; gap: 64px; padding-right: 64px; flex-shrink: 0; }
.marquee-list li {
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--muted);
  white-space: nowrap;
  transition: color .2s ease;
}
.marquee-list li:hover { color: var(--ink); }
/* G4 Educação: a quiet highlight, brighter ink and a small glowing accent dot */
.marquee-list li.is-key { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.marquee-list li.is-key::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px 2px rgba(139, 61, 255, .55); }
/* logos: ink-colored artwork dimmed to the muted text tone, full ink on hover */
.marquee-list li { display: flex; align-items: center; }
.marquee-list img { height: var(--h); width: auto; opacity: .62; transition: opacity .2s ease; }
.marquee-list li:hover img, .marquee-list li.is-key img { opacity: 1; }
@media (max-width: 860px) { .marquee-track { animation-duration: 24s; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== SPOTLIGHT (shared by bento cards) ===== */
.spot { position: relative; isolation: isolate; }
.spot::before {
  content: '';
  position: absolute; inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 61, 255, .12), transparent 70%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.spot::after {
  content: '';
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(185, 130, 255, .8), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.spot:hover::before, .spot:hover::after { opacity: 1; }
.card-base {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
}

/* ===== SERVICES BENTO ===== */
.bento-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.bcard {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: transform .35s var(--ease-out), border-color .3s ease;
}
.bcard:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.bcard--large { grid-column: span 2; grid-row: span 2; }
.bcard--wide { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
.mock {
  position: relative;
  flex: 1;
  min-height: 220px;
  margin: 12px 12px 0;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.bcard-body { padding: 22px 24px 24px; }
.bcard-body .label { margin-bottom: 12px; }
.bcard-body h3 { font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 8px; }
.bcard-body p { color: var(--muted); font-size: 17px; margin-bottom: 18px; max-width: 46ch; }
.card-link { font-weight: 500; font-size: 16px; display: inline-flex; gap: 6px; }
.card-link .arr { display: inline-block; transition: transform .25s var(--ease-out); }
.bcard:hover .card-link .arr { transform: translateX(4px); }
.badge {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(10, 10, 11, .7); border: 1px solid var(--line-strong);
  font: 400 11px/1.3 var(--font-mono); color: var(--muted); text-transform: lowercase;
}

/* browser mockup (landing pages) */
.mock-browser { background: transparent; border: 0; min-height: 360px; padding: 26px 26px 0 40px; }
.browser {
  position: relative;
  height: 100%;
  min-height: 330px;
  border-radius: 12px 12px 0 0;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
}
.browser--back { position: absolute; inset: 0 40px 0 64px; transform: translate(26px, -14px) scale(.97); opacity: .45; }
.browser--front { position: relative; height: 100%; }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--surface); }
.browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.browser-url { margin-left: 10px; padding: 3px 12px; border-radius: 999px; background: var(--surface-2); font: 400 11px/1.3 var(--font-mono); color: var(--muted); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-view { position: absolute; inset: 34px 0 0 0; overflow: hidden; }
.browser-page { transform: translateY(0); transition: transform 1s var(--ease-out); }
.browser-page img { width: 100%; height: auto; }
.bcard:hover .browser--front .browser-page { transform: translateY(var(--scroll-y, 0px)); transition: transform 6s linear; }

/* landing pages card: the Arbitralis page in a browser, the two G4 pages on phones */
/* phones are sized off the card's width and height (cq units), so they fit wide-and-short cards too */
.mock-show { background: transparent; border: 0; min-height: 360px; padding: 26px 26px 0 40px; container-type: size; }
.show-phones { position: absolute; right: 22px; bottom: 18px; display: flex; align-items: flex-end; justify-content: flex-end; }
.show-phone {
  position: relative; flex: none; width: min(24cqw, 34cqh); aspect-ratio: 9 / 19; padding: 5px; border-radius: 26px;
  background: #0E0E10; box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 26px 50px -16px rgba(0, 0, 0, .95), 0 0 40px -10px var(--accent-glow);
}
.show-phone::before { content: ''; position: absolute; top: 11px; left: 50%; z-index: 2; width: 28%; height: 9px; margin-left: -14%; border-radius: 9px; background: #0E0E10; }
.show-phone--1 { margin-right: -4cqw; transform: translateY(-22%) rotate(-3deg); z-index: 1; }
.show-phone--2 { z-index: 2; transform: rotate(2deg); }
.show-screen { position: relative; height: 100%; overflow: hidden; border-radius: 21px; background: #0A1747; container-type: size; }
.show-screen img { display: block; width: 100%; height: auto; animation: show-scroll 22s ease-in-out infinite alternate; }
.show-phone--2 .show-screen img { animation-duration: 18s; animation-delay: -6s; }
@keyframes show-scroll { 0%, 8% { transform: translateY(0); } 92%, 100% { transform: translateY(calc(-100% + 100cqh)); } }

/* fan of posts */
.mock-fan { display: grid; place-items: center; }
.fan { position: relative; height: 62%; max-height: 170px; aspect-ratio: 1; }
.fan svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .9);
  transition: transform .5s var(--ease-out);
}
.fan svg:nth-child(1) { transform: rotate(-6deg); }
.fan svg:nth-child(2) { transform: rotate(0deg); z-index: 1; }
.fan svg:nth-child(3) { transform: rotate(6deg); z-index: 2; }
.bcard:hover .fan svg:nth-child(1) { transform: translateX(-34%) rotate(-12deg); }
.bcard:hover .fan svg:nth-child(3) { transform: translateX(34%) rotate(12deg); }

/* carousel case cover: slide 1 in front, the rest tucked behind, fan open on hover */
button.card-link { padding: 0; border: 0; background: none; color: inherit; font-family: inherit; cursor: pointer; text-align: left; }
.card-stretch::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.mock-carousel {
  min-height: 360px;
  background: radial-gradient(60% 65% at 50% 58%, rgba(139, 61, 255, .24), transparent 72%), var(--surface-2);
}
.carousel-open {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center;
  padding: 0; border: 0; background: none; color: inherit; font: inherit;
  border-radius: inherit;
  cursor: zoom-in;
}
.carousel-open:focus-visible { outline-offset: -4px; border-radius: 16px; }
.cfan { position: relative; height: 74%; aspect-ratio: 4 / 5; }
.cfan img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 18px 36px -14px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .06);
  transform-origin: 50% 150%;
  transition: transform .6s var(--ease-out), filter .4s ease;
}
.cfan img[data-n="5"] { transform: rotate(-4deg) scale(.9); filter: brightness(.45); }
.cfan img[data-n="4"] { transform: rotate(4deg) scale(.9); filter: brightness(.45); }
.cfan img[data-n="3"] { transform: rotate(-2deg) scale(.94); filter: brightness(.6); }
.cfan img[data-n="2"] { transform: rotate(2deg) scale(.94); filter: brightness(.6); }
.cfan img[data-n="1"] { transform: none; box-shadow: 0 26px 50px -18px rgba(0, 0, 0, .95), 0 0 40px -10px var(--accent-glow), 0 0 0 1px rgba(255, 255, 255, .08); }
.carousel-open:hover .cfan img, .carousel-open:focus-visible .cfan img { filter: none; }
.carousel-open:hover .cfan img[data-n="5"], .carousel-open:focus-visible .cfan img[data-n="5"] { transform: rotate(-22deg) scale(.92); }
.carousel-open:hover .cfan img[data-n="3"], .carousel-open:focus-visible .cfan img[data-n="3"] { transform: rotate(-11deg) scale(.96); }
.carousel-open:hover .cfan img[data-n="2"], .carousel-open:focus-visible .cfan img[data-n="2"] { transform: rotate(11deg) scale(.96); }
.carousel-open:hover .cfan img[data-n="4"], .carousel-open:focus-visible .cfan img[data-n="4"] { transform: rotate(22deg) scale(.92); }
.carousel-open:hover .cfan img[data-n="1"], .carousel-open:focus-visible .cfan img[data-n="1"] { transform: translateY(-3%) scale(1.04); }
@media (hover: none) {
  .cfan img[data-n="5"] { transform: rotate(-10deg) scale(.9); }
  .cfan img[data-n="3"] { transform: rotate(-5deg) scale(.94); }
  .cfan img[data-n="2"] { transform: rotate(5deg) scale(.94); }
  .cfan img[data-n="4"] { transform: rotate(10deg) scale(.9); }
}
.cfan-hint {
  position: absolute; right: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 8px; border-radius: 999px;
  background: rgba(10, 10, 11, .7); border: 1px solid var(--line-strong);
  font: 400 11px/1.3 var(--font-mono); color: var(--ink);
  transition: background-color .3s ease, border-color .3s ease;
}
.cfan-hint svg { width: 12px; height: 12px; }
.carousel-open:hover .cfan-hint { background: var(--accent-btn); border-color: var(--accent-btn); }
.mock-carousel .badge { pointer-events: none; z-index: 3; }

/* video case cover: a plain vertical Reels screen, muted loop running */
.mock-video, .bcard--wide .mock-video { min-height: 440px; background: radial-gradient(55% 70% at 50% 55%, rgba(139, 61, 255, .22), transparent 72%), var(--surface-2); }
.vphone {
  position: relative; height: calc(100% - 100px); aspect-ratio: 9 / 16;
  border-radius: 16px; overflow: hidden; background: #F2EEE8;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .1);
}
.vprev { display: block; width: 100%; height: 100%; object-fit: cover; }
.vmute {
  position: absolute; right: 10px; bottom: 10px;
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(10, 10, 11, .55); color: #fff;
}
.vmute svg { width: 14px; height: 14px; }
.mock-video .cfan-hint svg { width: 11px; height: 11px; }
.mock-video .badge { pointer-events: none; z-index: 3; }
/* authorial work: a label-like tag on the piece itself */
.badge--autoral {
  display: inline-flex; align-items: center; gap: 7px; left: 12px; top: 12px; bottom: auto;
  color: var(--ink); text-transform: uppercase; letter-spacing: .08em; font-size: 10.5px;
  background: rgba(10, 10, 11, .9);
}
.badge--autoral::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.mock-show .badge--autoral { top: auto; left: 52px; bottom: 16px; z-index: 3; }

/* carousel case dialog */
html.modal-open { overflow: hidden; }
.case {
  width: min(1480px, 100% - 48px);
  height: min(960px, 100dvh - 48px);
  max-width: none; max-height: none;
  padding: 0; margin: auto;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: var(--surface);
  color: var(--ink);
  overflow: hidden;
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(169, 112, 255, .08);
}
/* No backdrop blur: re-blurring the whole page every frame made opening and swiping slow. */
.case::backdrop { background: rgba(5, 5, 6, .9); }
/* While a dialog is open, freeze every looping animation behind it (cards, marquee, glows). */
.modal-open body :not(.case, .case *),
.modal-open body :not(.case, .case *)::before,
.modal-open body :not(.case, .case *)::after { animation-play-state: paused !important; }.case[open] { animation: caseIn .5s var(--ease-out); }
.case[open]::backdrop { animation: fadeIn .4s ease; }
@keyframes caseIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } }
.case-shell { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); height: 100%; }

.case-viewer {
  display: flex; flex-direction: column; gap: 18px;
  min-height: 0;
  padding: 32px 32px 24px;
  background: radial-gradient(70% 55% at 50% 42%, rgba(139, 61, 255, .2), transparent 72%), var(--bg);
  border-right: 1px solid var(--line);
}
.case-track {
  flex: 1; min-height: 0;
  display: flex;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  border-radius: 12px;
}
.case-track::-webkit-scrollbar { display: none; }
.case-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; container-type: size; display: grid; place-items: center; }
.case-video {
  display: block; width: min(100cqw, 100cqh * .5625); height: auto; aspect-ratio: 9 / 16;
  border-radius: 14px; background: #000;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .06);
}
.case-slide img {
  width: min(100cqw, 100cqh * .8);
  height: auto;
  border-radius: 10px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .06);
}
.case-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.case-count { font: 400 13px/1 var(--font-mono); color: var(--muted); min-width: 64px; }
.case-count b { color: var(--ink); font-weight: 500; }
.case-thumbs { display: flex; gap: 6px; }
.case-thumbs button {
  width: 36px; aspect-ratio: 4 / 5; padding: 0;
  border: 1px solid var(--line); border-radius: 5px; overflow: hidden;
  background: var(--surface-2); cursor: pointer;
  opacity: .45; transition: opacity .25s ease, border-color .25s ease, transform .25s var(--ease-out);
}
.case-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.case-thumbs button:hover { opacity: .85; }
.case-thumbs button[aria-current="true"] { opacity: 1; border-color: var(--accent); transform: translateY(-3px); }
.case-arrows { display: flex; gap: 8px; min-width: 64px; justify-content: flex-end; }
.case-arrows button, .case-close {
  display: grid; place-items: center;
  width: 40px; height: 40px; padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .03);
  color: var(--ink);
  cursor: pointer;
  transition: background-color .25s ease, border-color .25s ease, opacity .25s ease;
}
.case-arrows button:hover:not(:disabled), .case-close:hover { background: var(--accent-btn); border-color: var(--accent-btn); }
.case-arrows button:disabled { opacity: .3; cursor: default; }
.case-arrows svg, .case-close svg { width: 18px; height: 18px; }
.case-close-form { position: absolute; top: 16px; right: 16px; z-index: 5; margin: 0; }
.case-close { background: rgba(19, 19, 21, .92); }

.case-info { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 44px 48px 40px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.case-info > * + * { margin-top: 28px; }
.case-info .label { margin-bottom: 0; }
.case-info > .case-title { margin-top: 18px; font-size: clamp(26px, 2.3vw, 34px); line-height: 1.12; letter-spacing: -0.025em; padding-right: 32px; text-wrap: balance; }
.case-info > .case-lead { margin-top: 14px; color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 54ch; }
.case-info > .case-context { margin-top: 12px; padding-left: 12px; border-left: 2px solid var(--accent); color: rgba(243, 241, 237, .82); font-size: 14px; line-height: 1.5; max-width: 54ch; }
.case-h { display: block; font: 400 11px/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 12px; }
.case-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; }
.case-facts { margin: 0; display: grid; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); }
.case-facts dt { font: 400 11px/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.case-facts dd { margin: 2px 0 0; font-size: 15px; line-height: 1.45; }
.case-funnel { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); }
.case-funnel { display: flex; flex-direction: column; }
.funnel { display: block; width: 100%; height: auto; margin-top: 2px; overflow: visible; }
.funnel .fl { transform-box: fill-box; transform-origin: center; }
.funnel .fl:not(.is-on) { fill: rgba(255, 255, 255, .035); stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 4; }
.funnel .fl.is-on { stroke: none; filter: drop-shadow(0 8px 22px rgba(150, 80, 255, .7)); }
.fl-t { font: 600 14px var(--font-sans); fill: var(--muted); }
.fl-s { font: 400 7.5px var(--font-mono); letter-spacing: .08em; fill: var(--muted); opacity: .75; }
.fl-text.is-on .fl-t { fill: #fff; font-size: 16px; }
.fl-text.is-on .fl-s { fill: rgba(255, 255, 255, .9); opacity: 1; }
.funnel-drops circle { fill: #CF97FF; opacity: 0; animation: drop 2.4s cubic-bezier(.55, 0, .75, .4) infinite; animation-delay: var(--d); }
.funnel-sweep { animation: sweep 3.6s var(--ease-out) infinite 1s; }
@keyframes drop { 0% { opacity: 0; transform: translateY(-6px); } 25% { opacity: 1; } 80% { opacity: .9; } 100% { opacity: 0; transform: translateY(46px); } }
@keyframes sweep { 0% { transform: translateX(0); } 60%, 100% { transform: translateX(400px); } }
@keyframes flGlow { 50% { filter: drop-shadow(0 8px 26px rgba(169, 112, 255, .85)); } }
/* layers build top-down when the dialog opens */
.case[open] .funnel .fl, .case[open] .fl-text { animation: flIn .7s var(--ease-out) backwards; animation-delay: calc(450ms + var(--k) * 120ms); }
.case[open] .funnel .fl.is-on { animation: flIn .7s var(--ease-out) backwards 450ms; }
@keyframes flIn { from { opacity: 0; transform: translateY(-10px) scaleX(.85); } }

/* info panel: blocks rise in order when the dialog opens */
.case[open] .ci { animation: ciIn .6s var(--ease-out) backwards; animation-delay: calc(120ms + var(--i) * 70ms); }
@keyframes ciIn { from { opacity: 0; transform: translateY(14px); } }

.case-block { padding-top: 28px; border-top: 1px solid var(--line); }
.case-strategy { display: grid; gap: 10px; }
.case-strategy li { display: flex; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); transition: border-color .3s ease, transform .3s var(--ease-out); }
.case-strategy li:hover { border-color: rgba(169, 112, 255, .35); transform: translateX(4px); }
.case-strategy .n { font: 400 12px/1.6 var(--font-mono); color: var(--accent); flex-shrink: 0; }
.case-strategy b { display: block; font-weight: 600; font-size: 15.5px; margin-bottom: 2px; }
.case-strategy p { color: var(--muted); font-size: 14.5px; line-height: 1.5; }

.case-arc { display: grid; gap: 2px; }
.case-arc button, .case-arc .arc-row {
  display: flex; gap: 14px; align-items: baseline; width: 100%;
  padding: 9px 12px; border: 0; border-radius: 10px;
  background: none; color: var(--muted); font: inherit; font-size: 15px; line-height: 1.45; text-align: left;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease;
}
.case-arc .n { font: 400 12px/1.45 var(--font-mono); color: var(--muted); flex-shrink: 0; }
.case-arc .arc-row { cursor: default; }
.case-arc button:hover { color: var(--ink); background: rgba(255, 255, 255, .03); }
.case-arc button.is-active, .case-arc .arc-row.is-active { color: var(--ink); background: rgba(139, 61, 255, .12); }
.case-arc button.is-active .n, .case-arc .arc-row.is-active .n { color: var(--accent); }

.case-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); }
.case-tabs button { position: relative; z-index: 1; padding: 9px 12px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 500 14px/1.2 var(--font-sans); cursor: pointer; transition: color .3s ease; }
.case-tabs button[aria-selected="true"] { color: #fff; }
.case-tabs-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--accent-btn); box-shadow: 0 6px 20px -6px var(--accent-glow); transform: translateX(calc(var(--tab, 0) * 100%)); transition: transform .45s var(--ease-out); }
.case-panel:not([hidden]) { animation: ciIn .45s var(--ease-out); }
.case-metrics { display: grid; gap: 8px; }
.case-metrics li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 16px; align-items: baseline; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.case-metrics b { font-size: 15px; font-weight: 600; line-height: 1.35; }
.case-metrics span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.case-note { margin-top: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(169, 112, 255, .25); background: rgba(139, 61, 255, .07); font-size: 14.5px; line-height: 1.55; }

.case-why {
  padding-top: 28px; border-top: 1px solid var(--line);
  font-family: var(--font-serif); font-style: italic; font-size: clamp(24px, 2vw, 28px); line-height: 1.25; letter-spacing: -0.01em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.case-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding-bottom: 4px; }

@media (max-width: 1100px) {
  .case-grid { grid-template-columns: 1fr; }
  .case-info { padding: 40px 36px 36px; }
}
@media (max-width: 860px) {
  .mock-carousel { min-height: 380px; }
  .mock-video, .bcard--wide .mock-video { min-height: 480px; }
  .vphone { height: calc(100% - 100px); }
  .cfan { height: 66%; margin-top: 6%; }
  .case-metrics li { grid-template-columns: 1fr; }
  .case { width: 100%; height: 100dvh; border-radius: 0; border: 0; }
  .case-shell { display: block; overflow-y: auto; overscroll-behavior: contain; }
  .case--video .case-viewer { height: min(86svh, 178vw + 96px); }
  .case-viewer { height: min(78svh, 128vw + 96px); padding: 56px 16px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .case-thumbs { display: none; }
  .case-info { overflow: visible; padding: 32px 20px 40px; }
  .case-info > .case-title { padding-right: 0; }
  .case-close-form { position: fixed; top: 12px; right: 12px; }
  .funnel { max-width: 320px; margin-inline: auto; }
}

/* phone with feed */
.mock-phone { display: grid; place-items: end center; padding-top: 18px; }
.phone {
  position: relative;
  width: 44%;
  max-width: 170px;
  aspect-ratio: 9 / 16;
  border-radius: 24px 24px 0 0;
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  background: var(--bg);
  overflow: hidden;
  padding: 18px 8px 0;
}
.phone::before { content: ''; position: absolute; top: 7px; left: 50%; width: 34%; height: 5px; margin-left: -17%; border-radius: 9px; background: var(--surface-2); z-index: 2; }
.feed { display: flex; flex-direction: column; gap: 8px; animation: feed 14s linear infinite; }
@keyframes feed { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.post { border-radius: 8px; background: var(--surface); border: 1px solid var(--line); padding: 6px; }
.post-head { display: flex; align-items: center; gap: 5px; margin-bottom: 5px; }
.post-head i { width: 12px; height: 12px; border-radius: 50%; background: var(--surface-2); }
.post-head b { height: 4px; width: 40%; border-radius: 4px; background: var(--line-strong); }
.post-media { aspect-ratio: 1; border-radius: 5px; background: var(--surface-2); }
.post--ad .post-head small { font: 400 8px/1 var(--font-sans); color: var(--muted); margin-left: auto; }
.post--ad svg { display: block; width: 100%; border-radius: 5px; }

/* video timeline */
.bcard--wide .mock { margin: 12px 0 12px 12px; flex: 1.4; min-height: 240px; }
.bcard--wide .bcard-body { flex: 1; align-self: center; }
.mock-timeline { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 20px 24px; }
.frames { position: relative; display: flex; justify-content: center; gap: 10px; }
.frame { width: 21%; max-width: 92px; aspect-ratio: 9 / 16; border-radius: 10px; border: 1px solid var(--line-strong); overflow: hidden; }
.frame svg { width: 100%; height: 100%; display: block; }
.track { position: relative; height: 34px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; display: flex; align-items: center; gap: 3px; padding: 0 10px; }
.track span { flex: 1; height: 70%; border-radius: 2px; background: var(--line-strong); transform-origin: center; animation: wave 1.2s ease-in-out infinite; animation-delay: calc(var(--k) * -97ms); }
@keyframes wave { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
.playhead { position: absolute; top: -6px; bottom: -6px; left: 0; width: 2px; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: playhead 5s linear infinite; }
.timeline-wrap { position: relative; display: flex; flex-direction: column; gap: 14px; }
@keyframes playhead { from { transform: translateX(0); } to { transform: translateX(var(--tl-w, 600px)); } }

@media (max-width: 860px) {
  .bento-services { grid-template-columns: 1fr; }
  .bcard--large, .bcard--wide { grid-column: auto; grid-row: auto; }
  .bcard--wide { flex-direction: column; }
  .bcard--wide .mock { margin: 12px 12px 0; }
  .mock-browser { min-height: 260px; padding: 22px 18px 0 22px; }
  .mock-show { min-height: 300px; padding: 22px 18px 0 22px; }
  .show-phones { right: 12px; bottom: 12px; }
  .show-phone { padding: 3px; border-radius: 11px; }
  .show-phone::before { top: 5px; height: 4px; }
  .show-screen { border-radius: 8px; }
  .browser { min-height: 240px; }
  .browser--back { inset: 0 18px 0 34px; }
}

/* ===== PROCESS (sticky illustrations) ===== */
.process { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; }
.steps-list { position: relative; padding-left: 28px; }
.steps-progress { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--line); border-radius: 2px; }
.steps-progress span { position: absolute; inset: 0; background: var(--accent); border-radius: 2px; transform-origin: top; transform: scaleY(var(--progress, 0)); }
.pstep { min-height: 30vh; display: flex; flex-direction: column; justify-content: center; padding-block: 24px; }
.pstep:first-child { padding-top: 0; }
.steps-ol { padding-block: 8vh 22vh; }
.pstep .step-num { font: 500 13px/1 var(--font-mono); color: var(--muted); display: block; margin-bottom: 16px; transition: color .3s ease; }
.pstep h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 10px; color: var(--muted); transition: color .3s ease; }
.pstep p { color: var(--muted); font-size: 18px; max-width: 36ch; transition: color .3s ease; }
.pstep.is-active .step-num { color: var(--accent); }
.pstep.is-active h3 { color: var(--ink); }
.pstep.is-active p { color: var(--ink); }
.process-panel {
  position: sticky;
  top: calc(50vh - 240px);
  height: 480px;
  overflow: hidden;
}
.ill-stack { position: absolute; inset: 0; }
/* the panel is the desk: the opening's collage texture, quieter, under every scene */
.process-panel::before, .step-ill-m::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: url('/images/hero-texture-1000.webp') center / cover no-repeat;
  opacity: .32;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(0, 0, 0, .25) 35%, #000 100%);
          mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(0, 0, 0, .25) 35%, #000 100%);
}
.step-ill-m { position: relative; overflow: hidden; }
.ill {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 32px;
  opacity: 0;
  transform: scale(.96);
  transition: opacity .5s ease, transform .6s var(--ease-out);
}
.ill.is-active { opacity: 1; transform: none; }
.step-ill-m { display: none; }
.sc * { transform-box: fill-box; transform-origin: center; }
.sc-slide, .sc-paper, .ly { transform-box: border-box; }
.paused, .paused * { animation-play-state: paused !important; }

/* scenes: a 4:3 stage that fits its panel; pieces are sized off the stage width (cqw) */
.ill, .step-ill-m { container-type: size; }
/* text-size-adjust: phones must not boost the tiny print inside the pieces */
.sc { position: relative; width: min(100cqw, 133.33cqh); aspect-ratio: 4 / 3; container-type: inline-size; -webkit-text-size-adjust: none; text-size-adjust: none; }
.sc-paper { position: absolute; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .75)) drop-shadow(0 0 1px rgba(255, 255, 255, .25)); }
/* torn bottom edge on printed pieces; grain sits on top of the print */
.sc-torn { position: relative; overflow: hidden; border-radius: 3px 3px 0 0;
  clip-path: polygon(0 0, 100% 0, 100% 97.2%, 94% 98.6%, 88% 97%, 81% 99.2%, 74% 97.6%, 66% 99%, 59% 97.3%, 51% 98.8%, 44% 97.1%, 37% 99.3%, 29% 97.5%, 22% 98.9%, 15% 97.2%, 8% 99%, 0 97.6%); }
.sc-torn::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .22; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.sc-torn img { display: block; width: 100%; height: auto; }
.mk { fill: none; stroke: var(--gold); stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; stroke-width: 1; }

/* 01 the page is read: a lens travels over a real landing page and stops on the button */
@property --lx { syntax: '<number>'; inherits: true; initial-value: .76; }
@property --ly { syntax: '<number>'; inherits: true; initial-value: .24; }
.sc-look::before { content: ''; position: absolute; left: 6%; top: 4%; width: 60%; height: 90%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(139, 61, 255, .38), transparent); }
.sc-page { left: 9%; top: 5%; width: 50%; transform: rotate(-3deg); container-type: inline-size; }
.sc-marks { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sc-lens {
  --d: 36cqw; --z: 2.2;
  position: absolute; width: var(--d); height: var(--d); border-radius: 50%; overflow: hidden;
  left: calc(var(--lx) * 100cqw - var(--d) / 2); top: calc(var(--ly) * 125cqw - var(--d) / 2);
  background: #fff;
  box-shadow: 0 0 0 1.4cqw #1A1A1D, 0 0 0 calc(1.4cqw + 1px) rgba(255, 255, 255, .22), 0 0 28px 6px rgba(139, 61, 255, .55), 0 16px 26px rgba(0, 0, 0, .7), inset 0 0 18px rgba(0, 0, 0, .35);
  animation: lens 8s var(--ease-out) infinite;
}
.sc-lens img { position: absolute; max-width: none; width: calc(var(--z) * 100cqw);
  left: calc(var(--d) / 2 - var(--lx) * var(--z) * 100cqw); top: calc(var(--d) / 2 - var(--ly) * var(--z) * 125cqw); }
/* glass glint */
.sc-lens::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 30% 26%, rgba(255, 255, 255, .45), transparent 34%); mix-blend-mode: screen; }
@keyframes lens {
  0% { --lx: .76; --ly: .24; opacity: 0; transform: scale(.85); }
  7% { --lx: .76; --ly: .24; opacity: 1; transform: none; }
  30% { --lx: .24; --ly: .3; }
  46%, 64% { --lx: .145; --ly: .388; opacity: 1; transform: none; }
  /* lifts off the button so the gold ring can mark it */
  74%, 100% { --lx: .4; --ly: .56; opacity: 0; transform: scale(.9); }
}
.sc-look .mk-under { animation: draw-under 8s ease infinite; }
.sc-look .mk-ring { animation: draw-ring 8s ease infinite; }
.sc-look .mk-chart { animation: draw-chart 8s ease infinite; }
@keyframes draw-under { 0%, 28% { stroke-dashoffset: 1; opacity: 1; } 36%, 92% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes draw-ring { 0%, 69% { stroke-dashoffset: 1; opacity: 1; } 78%, 94% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes draw-chart { 0%, 74% { stroke-dashoffset: 1; opacity: 1; } 82%, 94% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }

.sc-chart { right: 5%; bottom: 9%; width: 33%; transform: rotate(2.5deg); padding: 3cqw 3cqw 2cqw; border-radius: 1.4cqw;
  background: linear-gradient(160deg, #222226, #161619); }
.sc-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.ch-grid { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 1; }
.ch-area { fill: rgba(169, 112, 255, .2); }
.ch-line { fill: none; stroke: #CF97FF; stroke-width: 3; filter: drop-shadow(0 0 6px rgba(169, 112, 255, .7)); stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; animation: ch-line 8s var(--ease-out) infinite; }
@keyframes ch-line { 0%, 8% { stroke-dashoffset: 1; } 40%, 100% { stroke-dashoffset: 0; } }
.ch-dot { fill: var(--gold); animation: ch-dot 8s ease infinite; }
@keyframes ch-dot { 0%, 38% { opacity: 0; transform: scale(.4); } 44%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.sc-chart .mk { stroke-width: 2.4; }
.sc-note { position: absolute; right: 9%; top: -7cqw; font: italic 400 5.2cqw/1 var(--font-serif); color: var(--gold); white-space: nowrap; animation: note-in 8s ease infinite; }
@keyframes note-in { 0%, 80% { opacity: 0; transform: translateY(4px); } 86%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* 02 the journey: real pieces pinned on the desk, a thread that breaks before the sale */
.sc-p { margin: 0; }
.sc-p figcaption { position: absolute; left: 0; top: calc(100% + 1.4cqw); font: 500 1.7cqw/1 var(--font-mono); color: var(--muted); letter-spacing: .04em; white-space: nowrap; }
.sc-p-ad { left: 3%; top: 32.7%; width: 22%; transform: rotate(-4deg); }
.sc-p-page { left: 27%; top: 24.7%; width: 22%; transform: rotate(2deg); }
.sc-p-chat { left: 51%; top: 34.7%; width: 22%; transform: rotate(-2deg); }
.sc-p-sale { left: 78%; top: 46.7%; width: 18%; transform: rotate(3deg); animation: sale-dim 8s ease infinite; }
@keyframes sale-dim { 0%, 46% { opacity: 1; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .75)); } 56%, 94% { opacity: .38; filter: grayscale(1) drop-shadow(0 18px 22px rgba(0, 0, 0, .75)); } 100% { opacity: 1; } }
/* the campaign's landing page, drawn in the ad's look (dark, orange, same event photo) */
.gm-page { container-type: inline-size; background: #0E0E10; padding-bottom: 2.2cqw; text-align: left; }
.gm-nav { display: flex; align-items: center; justify-content: space-between; padding: 4cqw 5cqw; }
.gm-nav img { width: 17cqw; height: auto; display: block; }
.gm-btn { display: inline-block; background: #F26A1B; color: #fff; font: 700 4.6cqw/1 var(--font-sans); padding: 3.4cqw 6cqw; border-radius: 1.6cqw; margin: 0 5cqw; }
.gm-btn-sm { font-size: 3.4cqw; padding: 2.2cqw 3.6cqw; margin: 0; }
.gm-hero { display: block; width: 100%; height: auto; }
.gm-kick { margin: 5cqw 5cqw 2cqw; font: 600 3.6cqw/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: #F26A1B; }
.gm-h { margin: 0 5cqw 3cqw; font: 800 8.4cqw/1.02 var(--font-sans); letter-spacing: -.02em; text-transform: uppercase; color: #fff; }
.gm-h em { font-style: normal; color: #F26A1B; }
.gm-sub { margin: 0 5cqw 5cqw; font: 400 4.2cqw/1.3 var(--font-sans); color: rgba(255, 255, 255, .72); }
.gm-meta { display: flex; gap: 4cqw; margin: 5cqw 5cqw 0; padding-top: 3.4cqw; border-top: 1px solid rgba(255, 255, 255, .14); font: 500 3.4cqw/1 var(--font-mono); color: rgba(255, 255, 255, .6); }
.chat { border-radius: 1.6cqw; overflow: hidden; background: #0B141A; padding-bottom: 1.6cqw; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 0 22px 2px rgba(139, 61, 255, .35); }
.chat-top { display: flex; align-items: center; gap: 1cqw; padding: 1.4cqw 1.6cqw; background: #1F2C33; margin-bottom: 1.6cqw; }
.chat-top i { width: 3.2cqw; height: 3.2cqw; border-radius: 50%; background: linear-gradient(140deg, #CF97FF, #8B3DFF); flex: none; }
.chat-top b { font: 600 1.7cqw/1.1 var(--font-sans); color: #E9EDEF; }
.chat-top small { font: 400 1.3cqw/1 var(--font-sans); color: #8696A0; margin-left: auto; }
.chat p { width: fit-content; max-width: 86%; margin: 0 1.6cqw 1cqw; padding: 1cqw 1.4cqw; border-radius: 1.2cqw; font: 400 1.65cqw/1.25 var(--font-sans); color: #E9EDEF; background: #202C33; }
.chat .typing { display: flex; gap: .6cqw; margin-left: auto; margin-right: 1.6cqw; background: #005C4B; padding: 1.3cqw 1.5cqw; }
.chat .typing i { width: .9cqw; height: .9cqw; border-radius: 50%; background: #E9EDEF; opacity: .4; animation: typing 1.2s ease-in-out infinite; }
.chat .typing i:nth-child(2) { animation-delay: .15s; }
.chat .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-.4cqw); } }
.receipt { background: #F3F1ED; color: #1A1A1D; padding: 2.4cqw 2cqw 3.4cqw; display: flex; flex-direction: column; gap: .7cqw; }
.receipt b { font: 600 1.75cqw/1.15 var(--font-sans); }
.receipt small { font: 400 1.35cqw/1.2 var(--font-sans); color: #6B6862; margin-bottom: 1cqw; }
.rc-ok { width: 4cqw; height: 4cqw; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 64% no-repeat; margin-bottom: .6cqw; }
.rc-row { height: .7cqw; border-bottom: 1px dashed rgba(26, 26, 29, .3); }
.rc-row.short { width: 60%; }
.sc-thread { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.th { fill: none; stroke: rgba(243, 241, 237, .55); stroke-width: 1.2; stroke-linecap: round; }
.pin { fill: #F3F1ED; stroke: rgba(0, 0, 0, .5); stroke-width: 1; }
.th-pulse { fill: none; stroke: #CF97FF; stroke-width: 5; stroke-linecap: round; stroke-dasharray: .035 2; stroke-dashoffset: .035; filter: drop-shadow(0 0 5px #A970FF); animation: pulse-run 8s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes pulse-run { 0%, 4% { stroke-dashoffset: .035; opacity: 0; } 6% { opacity: 1; } 40% { stroke-dashoffset: -.965; opacity: 1; } 46%, 100% { stroke-dashoffset: -.965; opacity: 0; } }
.th-spark { fill: #CF97FF; filter: drop-shadow(0 0 6px #A970FF); opacity: 0; animation: spark 8s ease infinite; }
@keyframes spark { 0%, 39% { opacity: 0; transform: scale(.4); } 41% { opacity: 1; transform: scale(1.5); } 44% { opacity: .2; transform: scale(.8); } 47% { opacity: .9; transform: scale(1.2); } 52%, 100% { opacity: 0; transform: scale(.4); } }
.sc-path .mk { stroke-width: 2.6; }
.mk-break { animation: draw-break 8s ease infinite; }
@keyframes draw-break { 0%, 46% { stroke-dashoffset: 1; opacity: 1; } 56%, 94% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.sc-note-break { right: auto; left: 63%; top: 17%; animation: note-break 8s ease infinite; }
@keyframes note-break { 0%, 54% { opacity: 0; transform: translateY(4px); } 60%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* 03 a real slide assembles from its layers, then the set fans out */
.sc-deck { position: absolute; left: 16%; top: 16%; width: 38%; aspect-ratio: 4 / 5; }
.sc-slide { position: absolute; inset: 0; }
.sc-slide-1 { z-index: 3; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .75)); }
.ly { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border-radius: 3px; animation: 8s var(--ease-out) infinite; }
.ly-base { background: #0B2A1D; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); animation-name: ly-base; }
.ly-photo { clip-path: inset(40% 0 0 0); animation-name: ly-photo; }
.ly-title { clip-path: inset(0 0 60% 0); animation-name: ly-title; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }
@keyframes ly-base { 0% { opacity: 0; transform: translate(-9cqw, 5cqw) rotate(-7deg); } 6% { opacity: 1; transform: translate(-9cqw, 5cqw) rotate(-7deg); } 16%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes ly-photo { 0%, 4% { opacity: 0; transform: translate(10cqw, 9cqw) rotate(6deg); } 9% { opacity: 1; transform: translate(10cqw, 9cqw) rotate(6deg); } 23%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes ly-title { 0%, 8% { opacity: 0; transform: translate(-7cqw, -8cqw) rotate(-4deg) scale(1.04); } 13% { opacity: 1; transform: translate(-7cqw, -8cqw) rotate(-4deg) scale(1.04); } 30%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
.sc-guides { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; animation: guides 8s ease infinite; }
.sc-guides path { fill: none; stroke: #A970FF; stroke-width: .5; stroke-dasharray: 2 2; opacity: .8; }
@keyframes guides { 0%, 4% { opacity: 0; } 8%, 30% { opacity: 1; } 36%, 100% { opacity: 0; } }
.sc-check { position: absolute; right: -7cqw; top: -5cqw; width: 8cqw; overflow: visible; }
.sc-check .mk { stroke-width: 4.5; }
.sc-build .sc-check .mk { animation: draw-check 8s ease infinite; }
@keyframes draw-check { 0%, 34% { stroke-dashoffset: 1; opacity: 1; } 42%, 94% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.sc-slide-2, .sc-slide-3 { opacity: 0; animation: 8s var(--ease-out) infinite; }
.sc-slide-2 { z-index: 2; --to: translate(17cqw, 1.5cqw) rotate(5deg); animation-name: fan-2; }
.sc-slide-3 { z-index: 1; --to: translate(32cqw, 4cqw) rotate(10deg); animation-name: fan-3; }
@keyframes fan-2 { 0%, 38% { opacity: 0; transform: none; } 42% { opacity: 1; transform: none; } 54%, 94% { opacity: 1; transform: var(--to); } 100% { opacity: 0; transform: var(--to); } }
@keyframes fan-3 { 0%, 42% { opacity: 0; transform: none; } 46% { opacity: 1; transform: none; } 60%, 94% { opacity: 1; transform: var(--to); } 100% { opacity: 0; transform: var(--to); } }
.sc-build::before { content: ''; position: absolute; left: 14%; top: 4%; width: 74%; height: 92%; border-radius: 50%; background: radial-gradient(closest-side, rgba(139, 61, 255, .32), transparent); }

/* 04 two real versions of one campaign; the headline differs and the chosen one steps forward */
.sc-v { width: 36%; container-type: inline-size; }
.sc-v-a { left: 9%; top: 18%; animation: v-a 8s var(--ease-out) infinite; }
.sc-v-b { left: 53%; top: 15%; z-index: 2; animation: v-b 8s var(--ease-out) infinite; }
@keyframes v-a { 0%, 46% { transform: rotate(-3deg); filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .75)); } 56%, 94% { transform: rotate(-3deg) scale(.93); filter: brightness(.45) saturate(.5) drop-shadow(0 18px 22px rgba(0, 0, 0, .75)); } 100% { transform: rotate(-3deg); } }
@keyframes v-b { 0%, 46% { transform: rotate(2.5deg); filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .75)); } 56%, 94% { transform: rotate(1deg) scale(1.05); filter: drop-shadow(0 0 22px rgba(139, 61, 255, .7)) drop-shadow(0 18px 22px rgba(0, 0, 0, .75)); } 100% { transform: rotate(2.5deg); } }
.sc-tag { position: absolute; left: 1cqw; top: calc(100% + 2cqw); font: italic 400 13cqw/1 var(--font-serif); color: var(--gold); }
.sc-ab .mk { stroke-width: 1; }
.mk-a { animation: draw-a 8s ease infinite; }
.mk-b { animation: draw-b 8s ease infinite; }
@keyframes draw-a { 0%, 10% { stroke-dashoffset: 1; opacity: 1; } 18%, 94% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes draw-b { 0%, 18% { stroke-dashoffset: 1; opacity: 1; } 26%, 94% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.sc-arrow .mk { stroke-width: 2.4; animation: draw-arrow 8s ease infinite; }
@keyframes draw-arrow { 0%, 26% { stroke-dashoffset: 1; opacity: 1; } 36%, 94% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.sc-ab .sc-check { right: -12cqw; top: -15cqw; width: 22cqw; }
.sc-ab .sc-check .mk { stroke-width: 4.5; animation: draw-check-ab 8s ease infinite; }
@keyframes draw-check-ab { 0%, 54% { stroke-dashoffset: 1; opacity: 1; } 62%, 94% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.sc-note-ab { right: auto; left: 58%; top: 3%; animation: note-ab 8s ease infinite; }
@keyframes note-ab { 0%, 34% { opacity: 0; transform: translateY(4px); } 40%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }

@media (max-width: 960px) {
  .process { grid-template-columns: 1fr; gap: 0; }
  .process-panel, .steps-progress { display: none; }
  .steps-list { padding-left: 0; }
  .steps-ol { display: flex; flex-direction: column; gap: 40px; padding-block: 0; }
  .pstep, .pstep:first-child, .pstep:last-child { min-height: 0; padding: 0; justify-content: flex-start; }
  .pstep h3, .pstep .step-num { color: var(--ink); }
  .pstep .step-num { color: var(--accent); }
  .pstep p { color: var(--muted); }
  .step-ill-m { height: min(300px, 72vw); margin-bottom: 20px; padding: 12px; }
  .step-ill-m { display: grid; place-items: center; }
}

/* ===== ABOUT ===== */
/* about: the photo in a soft purple glow, copy beside it */
.about-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 80px); align-items: center; }
.about-visual { position: relative; max-width: 640px; }
.about-visual::before { content: ''; position: absolute; left: 6%; top: 12%; width: 88%; height: 76%; border-radius: 50%; background: radial-gradient(closest-side, rgba(139, 61, 255, .45), transparent); }
.about-photo { position: relative; width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .7)); }
.about-copy .h2 { margin-bottom: 32px; font-size: clamp(48px, 6.2vw, 92px); line-height: 1; }
/* the first paragraph opens big in ink; the rest reads a step down, still brighter than body copy */
.about-text p { color: rgba(243, 241, 237, .74); font-size: clamp(18px, 1.35vw, 20px); line-height: 1.7; max-width: 54ch; text-wrap: pretty; }
.about-text p:first-child { color: var(--ink); font-size: clamp(21px, 1.85vw, 26px); line-height: 1.45; letter-spacing: -0.012em; max-width: 30ch; }
.about-text p + p { margin-top: 22px; }
.about-text b { color: var(--ink); font-weight: 600; }
.about-text .hl-acc { color: var(--accent); }
.about-sign { display: flex; align-items: center; gap: 10px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 54ch; font: 400 13px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.about-sign::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px 2px rgba(139, 61, 255, .55); }


@media (max-width: 960px) {
  .about-hero { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { width: min(100%, 480px); margin-inline: auto; }
}
@media (max-width: 600px) {
  .about-text p:first-child { font-size: 20px; }
  .about-text p { font-size: 17px; }
}

/* ===== FINAL CTA ===== */
.cta-block {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 32px;
  padding: clamp(48px, 8vw, 96px) clamp(24px, 6vw, 80px);
  text-align: center;
  isolation: isolate;
}
.cta-block::before {
  content: '';
  position: absolute;
  left: 50%; bottom: -75%;
  width: 120%; aspect-ratio: 2 / 1;
  translate: -50% 0;
  z-index: -1;
  /* a soft gradient instead of filter: blur(90px), which is very costly to paint on big screens */
  background: radial-gradient(closest-side, rgba(139, 61, 255, .34), rgba(139, 61, 255, .16) 55%, rgba(139, 61, 255, 0));
}
.cta-block .h2 { margin-bottom: 20px; }
.cta-block .lead { max-width: 44ch; margin: 0 auto 36px; }
.cta-contacts { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 12px; font-size: 15px; color: var(--muted); }
.cta-contacts a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.cta-contacts a:hover { text-decoration-color: currentColor; }
@media (max-width: 520px) {
  .cta-contacts { gap: 10px 20px; }
  .cta-contacts span { display: none; }
}

/* ===== FLOATING WHATSAPP (mobile) ===== */
.wa-float {
  position: fixed;
  right: 16px; bottom: 16px;
  z-index: 60;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  background: var(--accent-btn);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 12px 30px -8px var(--accent-glow), 0 4px 12px rgba(0, 0, 0, .5);
  opacity: 0;
  transform: translateY(16px) scale(.96);
  pointer-events: none;
  transition: opacity .3s ease, transform .4s var(--ease-out);
}
.wa-float svg { width: 18px; height: 18px; }
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 860px) { .wa-float { display: inline-flex; } }

/* ===== FOOTER ===== */
.footer { padding-block: 32px 40px; font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* ===== SERVICE PAGE ===== */
.pending {
  display: grid; place-items: center;
  width: 100%; height: 100%;
  background: var(--surface);
  border: 1.5px dashed var(--line-strong);
  border-radius: 16px;
  font: 400 12px/1.4 var(--font-mono);
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted);
}
.step { border-top: 1px solid var(--line); padding-top: 24px; }
.step-num { font: 500 13px/1 var(--font-mono); color: var(--accent); display: block; margin-bottom: 20px; }
.step h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.01em; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 17px; }
.svc-top { position: relative; isolation: isolate; padding-top: calc(var(--nav-h) + 48px); padding-bottom: 56px; }
.back { display: inline-flex; gap: 8px; font-size: 16px; text-decoration: none; color: var(--muted); margin-bottom: 32px; }
.back:hover { color: var(--ink); }
.svc-top .h1 { margin-bottom: 20px; max-width: 18ch; text-wrap: balance; }
.svc-top .lead { font-size: 20px; max-width: 40ch; margin-bottom: 32px; }
.svc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.svc-actions .link-u { color: var(--muted); }
.svc-actions .link-u:hover { color: var(--ink); }
@media (max-width: 560px) {
  .svc-actions { flex-direction: column; align-items: stretch; }
  .svc-actions .link-u { align-self: center; }
}
.work + .work { margin-top: 96px; }
.work-head { margin-bottom: 24px; max-width: 720px; }
.work-head h3 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 6px; }
.work-head .client { font: 400 13px/1.4 var(--font-mono); color: var(--muted); display: block; margin-bottom: 12px; }
.work-head p { color: var(--muted); }
.work-head .work-context { margin-bottom: 14px; padding-left: 12px; border-left: 2px solid var(--accent); color: rgba(243, 241, 237, .82); font-size: 15px; line-height: 1.5; }
/* a real result, set like the big numbers */
.work-result { display: flex; align-items: baseline; gap: 14px; margin: 4px 0 18px; padding: 16px 20px; width: fit-content; max-width: 100%; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); }
.work-head .work-result { color: var(--ink); }
.work-result b { font-weight: 600; font-size: clamp(44px, 5vw, 60px); line-height: 1; letter-spacing: -0.03em; color: var(--accent); }
.work-result span { font-size: 17px; line-height: 1.35; max-width: 24ch; }
.work-figure { position: relative; margin: 0; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.work-figure img { width: 100%; }
.work-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* secondary button: clearly clickable, quieter than the purple CTA */
.btn-outline {
  background: rgba(255, 255, 255, .04); color: var(--ink);
  border: 1px solid var(--line-strong);
  transition: background-color .25s ease, border-color .25s ease, transform .35s var(--ease-out);
}
.btn-outline:hover { background: rgba(139, 61, 255, .14); border-color: var(--accent); }

/* full-page preview: the page scrolls inside a browser frame or a phone */
.lp-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 16px; }
.lp-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.lp-tabs button { position: relative; z-index: 1; min-width: 104px; padding: 9px 16px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 500 14px/1.2 var(--font-sans); cursor: pointer; transition: color .3s ease; }
.lp-tabs button[aria-selected="true"] { color: #fff; }
.lp-tabs-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--accent-btn); transform: translateX(calc(var(--tab, 0) * 100%)); transition: transform .45s var(--ease-out); }
.lp-hint { font: 400 12px/1.4 var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.lp-hint::after { content: ' ↓'; }
.lp-panel:not([hidden]) { animation: ciIn .45s var(--ease-out); }
.lp-scroll { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; background: #fff; }
.lp-scroll img { display: block; width: 100%; height: auto; }
.lp-browser { border-radius: 14px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); }
.lp-browser .lp-scroll { height: min(680px, 72svh); }
.lp-phone {
  width: min(340px, 100%); margin-inline: auto;
  padding: 10px; border-radius: 40px;
  background: #0F0F11; border: 1px solid var(--line-strong);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .95), 0 0 60px -20px var(--accent-glow);
}
.lp-phone .lp-scroll { height: min(640px, 70svh); border-radius: 30px; }
@media (max-width: 860px) {
  .lp-hint { width: 100%; order: 2; }
  .lp-browser .lp-scroll, .lp-phone .lp-scroll { overscroll-behavior: auto; }   /* touch: let the page keep scrolling at the ends */
  .lp-browser .lp-scroll { height: 60svh; }
}

.receive { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; max-width: 900px; }
.receive li { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.receive li::before { content: '✓'; color: var(--accent); font-weight: 600; }
@media (max-width: 640px) { .receive { grid-template-columns: 1fr; } }
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 760px) { .how { grid-template-columns: 1fr; gap: 24px; } }
.deadline { margin-top: 32px; font: 500 14px/1.4 var(--font-mono); }
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-weight: 600; font-size: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 400 24px/1 var(--font-mono); color: var(--muted); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--muted); max-width: 60ch; }

/* ===== REVEAL ===== */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease-out, transform .5s ease-out; transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ===== REDUCED MOTION: final state only ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .split:not(.in) .wi, .hero h1 .wi { opacity: 1; transform: none; }
  .hl path { stroke-dashoffset: 0; }
  .float-parallax, .hero-texture { transform: none !important; }
  .fade-in { opacity: 1; transform: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { width: auto; }
  .marquee-list { flex-wrap: wrap; justify-content: center; gap: 16px 40px; padding-right: 0; flex-shrink: 1; }
  .marquee-list[aria-hidden="true"], .marquee-list .dup { display: none; }
  .bcard:hover, .bcard:hover .fan svg { transform: none; }
  .sc-lens { --lx: .145; --ly: .388; }
  .mk, .ch-line { stroke-dashoffset: 0; }
  .th-pulse { display: none; }
  .sc-slide-2, .sc-slide-3 { opacity: 1; transform: var(--to); }
  .sc-v-a { transform: rotate(-3deg) scale(.93); filter: brightness(.45) saturate(.5); }
  .sc-v-b { transform: rotate(1deg) scale(1.05); }
}

/* ad gallery (home card): a hand of cards that opens up on hover */
/* cards are sized and spread off the container width, so the fan fits any box */
.ads-deck {
  position: relative; display: flex; justify-content: center; align-items: center;
  height: clamp(280px, 34vw, 440px);
  background: radial-gradient(60% 70% at 50% 60%, rgba(139, 61, 255, .22), transparent 72%);
  --spread: min(8cqw, 92px);
}
.ads-card {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  height: min(72%, 52cqw); padding: 0; border: 0; border-radius: 10px; overflow: hidden;
  background: #111; cursor: zoom-in;
  transform: translate(-50%, -50%) translateX(calc(var(--k) * var(--spread))) translateY(calc(var(--k) * var(--k) * 3px)) rotate(calc(var(--k) * 4deg));
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .08);
  transition: transform .6s var(--ease-out), box-shadow .4s ease, filter .4s ease;
}
.ads-card img { display: block; height: 100%; width: auto; }
.ads-deck:hover .ads-card { --spread: min(8.8cqw, 104px); filter: brightness(.7); }
.ads-deck .ads-card:hover, .ads-deck .ads-card:focus-visible {
  z-index: 20; filter: none;
  transform: translate(-50%, -50%) translateX(calc(var(--k) * var(--spread))) translateY(-8%) rotate(0deg) scale(1.12);
  box-shadow: 0 30px 60px -18px rgba(0, 0, 0, .95), 0 0 50px -8px var(--accent-glow), 0 0 0 1px rgba(255, 255, 255, .14);
}
.mock-ads { container-type: inline-size; z-index: 2; min-height: 380px; background: var(--surface-2); }
.mock-ads .ads-deck { position: absolute; inset: 0; height: auto; }
.mock-ads .cfan-hint { z-index: 3; pointer-events: none; }
.mock-ads:hover .cfan-hint { background: var(--accent-btn); border-color: var(--accent-btn); }
@media (max-width: 860px) {
  .ads-deck { height: clamp(280px, 62vw, 420px); }
  .ads-deck:hover .ads-card { --spread: min(8cqw, 92px); filter: none; }
  .mock-ads { min-height: 320px; }
}

/* ad dialog: 4:5 and 9:16 pieces share the viewer; the info panel follows the piece */
.case-slide img.r916 { width: min(100cqw, 100cqh * .5625); }
.case--ads .case-thumbs img { object-position: top; }
.ad-panel { padding-top: 28px; border-top: 1px solid var(--line); }
.ad-panel[hidden] { display: none; }
.ad-panel:not([hidden]) { animation: ciIn .45s var(--ease-out); }
.ad-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 12px; font: 400 12px/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.ad-num { color: var(--accent); }
.ad-camp { color: var(--muted); }
.ad-angle { font-size: clamp(22px, 1.9vw, 26px); line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 10px; }
.ad-text { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 54ch; margin-bottom: 20px; }
.bcard--wide .mock-ads { min-height: 400px; }
@media (max-width: 860px) { .bcard--wide .mock-ads { min-height: 320px; } }

/* ===== RÉSUMÉ PAGE (/curriculo) ===== */
.cv-top { padding-bottom: 40px; }
.cv-top-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.cv-open i { display: none; }
.cv-open::before { background: var(--green); opacity: 1; box-shadow: 0 0 0 0 rgba(47, 191, 113, .6); animation: cv-ping 2.4s ease-out infinite; }
@keyframes cv-ping { 0% { box-shadow: 0 0 0 0 rgba(47, 191, 113, .55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(47, 191, 113, 0); } }
.cv-name { font: 500 14px/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.cv-top .h1 { max-width: none; margin-bottom: 14px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .12em 0 .02em; margin: 0 -.12em 0 -.02em; }
.cv-focus { display: flex; flex-wrap: wrap; gap: 6px 0; font-size: clamp(17px, 1.5vw, 21px); color: var(--ink); margin-bottom: 22px; }
.cv-focus li + li::before { content: '·'; color: var(--accent); margin: 0 .55em; }
.cv-top .lead { max-width: 58ch; font-size: 18px; margin-bottom: 32px; }
.cv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cv-actions .btn svg, .cv-cta-actions .btn svg { width: 18px; height: 18px; }
.cv-card { margin-top: 40px; padding: 22px 24px 24px; display: grid; gap: 18px; max-width: 620px; }
.cv-figure { position: relative; display: flex; justify-content: center; align-items: flex-end; align-self: start; }
.cv-figure::before { content: ''; position: absolute; left: 50%; bottom: 8%; width: 86%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(169, 112, 255, .38), rgba(169, 112, 255, 0)); pointer-events: none; }
.cv-photo { position: relative; width: auto; max-width: 100%; height: auto; max-height: min(720px, 82vh); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .7)); }
.cv-goal { font-size: 17px; line-height: 1.5; }
.cv-goal b { display: block; font: 500 11px/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 6px; }
.cv-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.cv-meta li { font-size: 13px; padding: 5px 11px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); }
.cv-contact { display: grid; gap: 4px; font-size: 15px; padding-top: 16px; border-top: 1px solid var(--line); }
.cv-contact a { text-decoration: none; color: var(--ink); width: fit-content; }
.cv-contact a:hover { color: var(--accent); }

.cv-stats-wrap { padding-block: 24px 8px; }
.cv-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cv-stats li { padding: 28px 24px 28px 0; display: grid; align-content: start; gap: 2px; }
.cv-stats li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.cv-stats b { font-size: clamp(40px, 4.4vw, 60px); line-height: 1; letter-spacing: -0.03em; font-weight: 600; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content; }
.cv-unit { font: 500 12px/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin: 8px 0 6px; }
.cv-stats span:last-child { color: var(--muted); font-size: 15px; line-height: 1.45; max-width: 26ch; }

.cv-group + .cv-group { margin-top: 72px; }
.cv-group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 8px; }
.cv-group-head h3 { font-size: 22px; letter-spacing: -0.01em; }
.cv-group-head p { flex-basis: 100%; color: var(--muted); font-size: 17px; max-width: 64ch; }
.cv-period { font: 400 13px/1.4 var(--font-mono); color: var(--muted); }
.cv-jobs { counter-reset: none; }
.cv-job { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.cv-job:first-child { border-top: 1px solid var(--line); margin-top: 20px; }
.cv-job-side { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.cv-logo { height: 44px; display: flex; align-items: center; margin-bottom: 10px; }
.cv-logo img { max-height: 36px; width: auto; opacity: .9; }
.cv-initials { display: inline-grid; place-items: center; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-strong); font: 600 15px/1 var(--font-sans); letter-spacing: .02em; }
.cv-type { font: 500 11px/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.cv-job-main h3 { font-size: clamp(22px, 2vw, 26px); line-height: 1.2; letter-spacing: -0.015em; }
.cv-company { color: var(--muted); font-size: 17px; margin: 4px 0 16px; }
.cv-bullets { display: grid; gap: 10px; max-width: 70ch; }
.cv-bullets li { position: relative; padding-left: 22px; color: rgba(243, 241, 237, .82); font-size: 17px; line-height: 1.6; }
.cv-bullets li::before { content: ''; position: absolute; left: 2px; top: .7em; width: 8px; height: 1.5px; background: var(--accent); }
.cv-earlier { margin-top: 32px; }
.cv-earlier ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 32px; margin-top: 14px; }
.cv-earlier li { display: grid; gap: 2px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 16px; }
.cv-earlier li span:not(.cv-period) { color: var(--muted); }
.cv-head-lead { margin-top: 18px; }

.cv-skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cv-skill { position: relative; padding: 28px; }
.cv-skill h3 { font-size: 22px; letter-spacing: -0.01em; margin-bottom: 8px; }
.cv-skill > p { color: var(--muted); font-size: 16px; margin-bottom: 20px; max-width: 46ch; }
.cv-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.cv-tags li { font-size: 14px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }

.cv-about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.cv-about .section-head { margin-bottom: 0; }

.cv-edu { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; align-items: start; }
.cv-degree { padding: 28px; }
.cv-degree h3 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.015em; line-height: 1.15; margin: 10px 0 8px; }
.cv-degree p { color: var(--muted); }
.cv-courses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.cv-courses li { display: grid; gap: 2px; padding: 18px 0; border-top: 1px solid var(--line); }
.cv-courses li b { font-weight: 600; font-size: 17px; }
.cv-courses li span { color: var(--muted); font-size: 15px; }

.cv-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 8px; }

/* PT / EN switch in the résumé nav: two links, the current language lit */
.lang-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(255, 255, 255, .03); }
.lang-switch a { min-width: 38px; padding: 6px 10px; border-radius: 999px; text-align: center; text-decoration: none; font: 500 12px/1 var(--font-mono); letter-spacing: .06em; color: var(--muted); transition: color .2s ease, background-color .2s ease; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.lang-switch a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* phones: logo + switch + menu; the PDF stays one tap away in the hero and the floating button */
@media (max-width: 520px) { .nav-cta { display: none; } }
.wa-float svg { flex-shrink: 0; }

@media (max-width: 960px) {
  .cv-top-grid, .cv-about, .cv-edu { grid-template-columns: 1fr; }
  .cv-figure { order: -1; }
  .cv-photo { max-height: 440px; }
  .cv-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cv-stats li:nth-child(3) { padding-left: 0; border-left: 0; }
  .cv-stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .cv-job { grid-template-columns: 1fr; gap: 14px; }
  .cv-job-side { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
  .cv-logo { flex-basis: 100%; margin-bottom: 4px; }
  .cv-skills, .cv-courses, .cv-earlier ul { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cv-photo { max-height: 260px; }
  .cv-card { margin-top: 32px; }
  .cv-stats li { padding: 22px 14px 22px 0; }
  .cv-stats li + li { padding-left: 14px; }
  .cv-stats li:nth-child(3) { padding-left: 0; }
  .cv-actions .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .cv-open::before { animation: none; } }
