/* ------------------------------------------------------------------
   Ads Guru — navy and orange, straight from the logo.
   States on <html>: none = no JS, .js = JS without motion,
   .motion = animated. Nothing is hidden in CSS waiting for a
   script, so a failed script can never leave the page blank.
------------------------------------------------------------------- */
:root {
  --navy: #0b1a33;
  --navy-2: #13284d;
  --navy-3: #1d3766;
  --orange: #f26a1b;
  --amber: #ffae00;
  --grad: linear-gradient(100deg, #ef5a18 0%, #f78a10 55%, #ffb000 100%);
  --paper: #fffaf3;
  --paper-2: #fdf1e3;
  --ink: #0b1a33;
  --ink-soft: #4a5873;
  --ink-faint: #8a94a8;
  --line: #ecdfcd;
  --whatsapp: #25d366;
  --whatsapp-deep: #1da851;
  --shell: 1200px;
  --display: "Poppins", ui-sans-serif, system-ui, sans-serif;
  --sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.motion { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: 20px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0; font-size: .74rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--amber);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--grad); border-radius: 2px; }
.eyebrow-dark { color: var(--orange); }
.display {
  margin: .35em 0 .8em; font-family: var(--display); font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.08; letter-spacing: -.02em;
}
em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.small { font-size: .85rem; }

/* split words */
.w { display: inline-block; vertical-align: top; }
.w-mask { overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.wi { display: inline-block; will-change: transform; }

/* ------------------------------- progress ----------------------------- */
.progress { display: none; }
.motion .progress { display: block; position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; }

/* -------------------------------- header ------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 250, 243, .9); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s, transform .5s var(--ease);
}
.site-header.is-solid { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(11, 26, 51, .5); }
.site-header.is-hidden { transform: translateY(-101%); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: auto; height: 46px; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 1.32rem; letter-spacing: -.01em; color: var(--navy); }
.brand b { font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; gap: 28px; margin-left: auto; font-size: .95rem; }
.nav a { position: relative; text-decoration: none; color: var(--ink-soft); transition: color .25s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:hover { color: var(--navy); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ------------------------------- buttons ------------------------------ */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--display); font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .92rem; }
.btn-wa { background: var(--whatsapp); color: #fff; box-shadow: 0 10px 24px -12px rgba(37, 211, 102, .9); }
.btn-wa:hover { background: var(--whatsapp-deep); }
.btn-ghost { border-color: rgba(11, 26, 51, .22); color: var(--navy); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn-line { border-color: rgba(255, 250, 243, .3); color: var(--paper); }
.btn-line:hover { border-color: var(--amber); color: var(--amber); }
.wa-glyph { width: 1.3em; height: 1.3em; fill: currentColor; flex: none; }

/* --------------------------------- hero ------------------------------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px); }
.hero::before {
  content: ""; position: absolute; width: 900px; height: 900px; right: -320px; top: -380px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 174, 0, .22), rgba(242, 106, 27, .08) 60%, transparent 72%);
}
.hero-grid { position: relative; display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }
.hero h1 {
  margin: .3em 0 .45em; font-family: var(--display); font-weight: 800;
  font-size: clamp(2.6rem, 7.2vw, 5.2rem); line-height: 1.02; letter-spacing: -.035em;
}
.lede { max-width: 40ch; margin: 0 0 2rem; font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--ink-soft); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 480px; width: 100%; margin-inline: auto; }
.chart {
  position: absolute; inset: 14% 4% 8% 4%; display: flex; align-items: flex-end; gap: 6%;
  padding: 0 6%; border-bottom: 2px solid rgba(11, 26, 51, .1);
}
.chart i { flex: 1; height: var(--h); border-radius: 10px 10px 2px 2px; background: var(--grad); opacity: .2; transform-origin: bottom; }
.chart i:last-of-type { opacity: .34; }
.chart-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chart-line path { fill: none; stroke: var(--orange); stroke-width: 4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.motion .chart-line path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.hero-mark { position: absolute; left: 21%; top: 9%; width: 58%; filter: drop-shadow(0 26px 30px rgba(11, 26, 51, .18)); }
.orbit { position: absolute; border-radius: 50%; border: 1.5px dashed rgba(242, 106, 27, .35); }
.orbit-a { inset: 6%; }
.orbit-b { inset: -4%; border-color: rgba(11, 26, 51, .1); }
.motion .orbit-a { animation: spin 46s linear infinite; }
.motion .orbit-b { animation: spin 70s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 899px) { .hero-art { max-width: 340px; } }

/* -------------------------------- marquee ----------------------------- */
.marquee { overflow: hidden; background: var(--navy); color: var(--paper); padding-block: clamp(18px, 2.6vw, 28px); }
.marquee-track {
  display: flex; align-items: center; gap: clamp(22px, 3vw, 44px); width: max-content; white-space: nowrap;
  font-family: var(--display); font-weight: 600; font-size: clamp(1.15rem, 2.8vw, 2rem); will-change: transform;
}
.marquee-track b { font-size: .55em; color: var(--amber); }

/* ------------------------------- sections ----------------------------- */
.section { position: relative; padding-block: clamp(72px, 10vw, 128px); }
.section-dark { background: var(--navy); color: var(--paper); }
.section-dark .display { color: var(--paper); }

.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative; overflow: hidden; padding: 30px 28px 32px; border-radius: 18px;
  background: #fff; border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
.card::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.card:hover { box-shadow: 0 22px 40px -26px rgba(11, 26, 51, .45); border-color: transparent; }
.card:hover::after { transform: scaleX(1); }
.card-no { font-family: var(--display); font-weight: 700; font-size: .85rem; color: var(--orange); }
.card h3 { margin: 14px 0 8px; font-family: var(--display); font-weight: 600; font-size: 1.3rem; line-height: 1.25; }
.card p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* --------------------------------- work ------------------------------- */
.work { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .work { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .work { grid-template-columns: repeat(3, 1fr); } .work-feature { grid-column: span 2; } }
.work-card {
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 220px; padding: 28px;
  border-radius: 18px; background: var(--navy-2); border: 1px solid rgba(255, 250, 243, .08);
  text-decoration: none; transition: background-color .35s, border-color .35s, transform .4s var(--ease);
}
a.work-card:hover { border-color: rgba(255, 174, 0, .5); }
.work-card h3 { margin: 14px 0 4px; font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.2; }
.work-card p { margin: 0; color: rgba(255, 250, 243, .62); }
.work-feature {
  min-height: 300px;
  background: radial-gradient(circle at 85% 15%, rgba(255, 174, 0, .35), transparent 50%), linear-gradient(140deg, var(--navy-3), var(--navy-2));
}
.work-feature h3 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.work-cta { background: var(--grad); border: 0; color: #fff; }
.work-cta p { color: rgba(255, 255, 255, .88); }
.tag {
  align-self: flex-start; padding: 5px 12px; border-radius: 999px; font-size: .72rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; background: rgba(255, 250, 243, .08); color: rgba(255, 250, 243, .8);
}
.tag-hot { background: var(--grad); color: #fff; }
.work-link { margin-top: 18px; font-family: var(--display); font-weight: 600; font-size: .95rem; color: var(--amber); }
.work-cta .work-link { color: #fff; }

/* -------------------------------- steps ------------------------------- */
.steps { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { padding: 28px 24px; border-radius: 18px; background: var(--paper-2); }
.step b {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: #fff; font-family: var(--display); font-weight: 700;
}
.step h3 { margin: 18px 0 6px; font-family: var(--display); font-weight: 600; font-size: 1.22rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: .96rem; }
.steps-wrap { position: relative; }
.steps-line { display: none; }
@media (min-width: 760px) {
  /* joins the four numbers: from the centre of the first circle to the centre of the last */
  .steps-line {
    display: block; position: absolute; z-index: 2; top: 51px; height: 2px;
    left: 47px; right: calc((100% - 48px) / 4 - 47px);
    background: var(--grad); transform-origin: left;
  }
  .step b { position: relative; z-index: 3; }
}

/* ------------------------------ statement ----------------------------- */
.statement { padding-top: 0; }
.lit {
  max-width: 26em; margin: 0; font-family: var(--display); font-weight: 600;
  font-size: clamp(1.5rem, 3.6vw, 2.6rem); line-height: 1.25; letter-spacing: -.015em;
}

/* ------------------------------- contact ------------------------------ */
.contact { overflow: hidden; }
.contact::before {
  content: ""; position: absolute; width: 760px; height: 760px; left: -260px; bottom: -420px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(242, 106, 27, .3), transparent 70%);
}
.contact .shell { position: relative; }
.contact-lede { margin: -1.2em 0 2rem; color: rgba(255, 250, 243, .7); }
.contact-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-card { padding: 26px; border-radius: 18px; background: rgba(255, 250, 243, .05); border: 1px solid rgba(255, 250, 243, .12); }
.contact-card > span { display: block; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 250, 243, .55); }
.num { display: block; margin: 10px 0 18px; font-family: var(--display); font-weight: 600; font-size: clamp(1.35rem, 2.6vw, 1.75rem); text-decoration: none; }
.num-mail { font-size: clamp(1.05rem, 2vw, 1.25rem); overflow-wrap: anywhere; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* -------------------------------- footer ------------------------------ */
.site-footer { background: #07122a; color: rgba(255, 250, 243, .7); padding-block: 48px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-logo { width: 150px; }
.footer-meta p { margin: 4px 0; text-align: right; }
.footer-meta a { text-decoration: none; }
.footer-meta a:hover { color: var(--amber); }
@media (max-width: 640px) { .footer-meta p { text-align: left; } }

/* ------------------------- floating WhatsApp -------------------------- */
.wa-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 45; width: 62px; height: 62px; display: grid; place-items: center;
  border-radius: 50%; background: var(--whatsapp); box-shadow: 0 10px 28px -6px rgba(0, 0, 0, .4);
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), background-color .25s;
}
.wa-fab:hover { background: var(--whatsapp-deep); transform: scale(1.07); }
.wa-fab svg { width: 32px; height: 32px; fill: #fff; }
.motion .wa-fab { transform: scale(0); }
.motion .wa-fab.is-in { transform: scale(1); }
.motion .wa-fab.is-in::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--whatsapp);
  animation: ring 2.8s ease-out infinite; pointer-events: none;
}
@keyframes ring { 0% { transform: scale(1); opacity: .75; } 75%, 100% { transform: scale(1.8); opacity: 0; } }

/* ----------------------------- small screens -------------------------- */
@media (max-width: 860px) {
  .nav { display: none; }
  .header-inner .btn { margin-left: auto; }
}
@media (max-width: 420px) {
  .header-inner .btn span { display: none; }
  .header-inner .btn { padding: 0 12px; }
  .brand span { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* Gradient words survive being split: each animated piece carries the gradient itself,
   because a parent's background-clip:text cannot paint into transformed inline-blocks. */
em .wi, em > span[aria-hidden] {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Small phones: nothing may push the page wider than the screen. */
.hero-grid > *, .cards > *, .work > *, .contact-grid > * { min-width: 0; }
@media (max-width: 480px) {
  .hero h1 { font-size: clamp(2.05rem, 10.5vw, 2.6rem); }
  .cta-row .btn { white-space: normal; text-align: center; width: 100%; }
  .eyebrow { letter-spacing: .16em; }
}
