/* =========================================================
   Bluwin Infotech: main stylesheet
   Brand (guidelines Oct 2026): blue #3558A6, navy #282663, tint #D2DCF0. Font: Poppins.
   ========================================================= */

:root {
  --navy: #282663;
  --navy-deep: #17143d;
  --blue: #3558A6;
  --blue-soft: #5078BD;
  --tint: #D2DCF0;
  --pixel-mid: #5078BD;
  --pixel-deep: #235496;
  --font-head: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ink: #14122e;
  --paper: #F6F7FB;
  --tile: #ECEFF7;
  --line: rgba(20, 18, 46, .12);
  --muted: #5A5F7A;

  --bg: var(--navy-deep);
  --fg: #fff;
  --fg-muted: rgba(255, 255, 255, .66);
  --line-c: rgba(255, 255, 255, .14);

  --radius: 22px;
  --radius-sm: 14px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  /* Moderate type scale (no giant headlines) */
  --fs-h1: clamp(28px, 3.6vw, 46px);
  --fs-h2: clamp(26px, 3vw, 40px);
  --fs-h3: clamp(18px, 1.6vw, 22px);
  --fs-body: clamp(15px, 1.1vw, 17px);
}

body[data-bg="light"] {
  --bg: var(--paper);
  --fg: var(--ink);
  --fg-muted: var(--muted);
  --line-c: var(--line);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  background: var(--bg);
  color: var(--fg);
  transition: background-color .7s var(--ease), color .7s var(--ease);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue-soft); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.h2 { font-size: var(--fs-h2); }
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-muted); }
.accent { color: var(--blue-soft); }
.muted { color: var(--fg-muted); }

.skip-link { position: absolute; left: 12px; top: -60px; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 10px; z-index: 200; }
.skip-link:focus { top: 12px; }

/* ---------- Top edge blur (Huge style) ---------- */
.edge-blur {
  position: fixed; inset: 0 0 auto 0; height: 96px; z-index: 40; pointer-events: none;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  mask-image: linear-gradient(to bottom, #000 30%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
}
/* Dark version of the logo on dark sections, full-colour version on light sections */
.brand { position: relative; display: block; height: 42px; width: 114px; }
.brand__logo { position: absolute; inset: 0; height: 42px; width: auto; transition: opacity .4s var(--ease); }
.brand__logo--dark { opacity: 0; }
body.header-on-light .brand__logo--light { opacity: 0; }
body.header-on-light .brand__logo--dark { opacity: 1; }
body.menu-open .brand__logo--light { opacity: 1; }
body.menu-open .brand__logo--dark { opacity: 0; }
.header-actions { display: flex; gap: 10px; align-items: center; }

/* ---------- Pills / buttons ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 22px; border-radius: 999px;
  font: 500 15px/1 var(--font-body); border: 0; cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
  will-change: transform;
}
.pill--lg { height: 58px; padding: 0 34px; font-size: 17px; }
.pill--solid { background: var(--blue); color: #fff; box-shadow: 0 10px 30px -10px rgba(53, 88, 166, .7); }
.pill--solid:hover { background: #2b4b90; }
.pill--line { border: 1px solid currentColor; color: var(--fg); background: transparent; }
.pill--line:hover { background: var(--fg); color: var(--bg); }
.pill--ghost { background: rgba(255,255,255,.1); color: #fff; backdrop-filter: blur(8px); }
.pill--menu { background: #fff; color: var(--ink); }
body.header-on-light .pill--menu { background: var(--ink); color: #fff; }
body.header-on-light .pill--ghost { background: rgba(20,18,46,.07); color: var(--ink); }
body.menu-open .pill--menu { background: #fff; color: var(--ink); }
body.menu-open .pill--ghost { opacity: 0; pointer-events: none; }

.burger { position: relative; width: 16px; height: 10px; }
.burger i { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform .45s var(--ease), top .45s var(--ease); }
.burger i:first-child { top: 0; }
.burger i:last-child { top: 8px; }
body.menu-open .burger i:first-child { top: 4px; transform: rotate(45deg); }
body.menu-open .burger i:last-child { top: 4px; transform: rotate(-45deg); }

.link-arrow { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow span { transition: transform .35s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Menu overlay ---------- */
.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--navy-deep); color: #fff;
  display: flex; align-items: center;
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease);
}
.menu[hidden] { display: flex; visibility: hidden; }
body.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu__inner { width: 100%; max-width: var(--max); margin: 0 auto; padding: 100px var(--gutter) 40px; display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: end; }
.menu__links li { overflow: hidden; }
.menu__links a { display: inline-block; font-size: clamp(30px, 4.4vw, 54px); font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.menu__links a span { display: inline-block; transform: translateY(110%); transition: transform .8s var(--ease), color .3s; }
.menu__links a:hover span, .menu__links a[aria-current] span { color: var(--blue-soft); }
body.menu-open .menu__links a span { transform: none; }
.menu__links li:nth-child(2) span { transition-delay: .05s; }
.menu__links li:nth-child(3) span { transition-delay: .1s; }
.menu__links li:nth-child(4) span { transition-delay: .15s; }
.menu__links li:nth-child(5) span { transition-delay: .2s; }
.menu__links li:nth-child(6) span { transition-delay: .25s; }
.menu__side { display: grid; gap: 8px; opacity: 0; transform: translateY(20px); transition: opacity .6s .3s, transform .6s .3s var(--ease); }
body.menu-open .menu__side { opacity: 1; transform: none; }

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

/* ---------- 1. Hero ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px 0 clamp(40px, 7vh, 80px);
  background: radial-gradient(120% 80% at 70% 30%, #2f2a78 0%, var(--navy-deep) 60%);
  color: #fff;
}
.hero__glow { position: absolute; width: 60vmax; height: 60vmax; right: -10vmax; top: -15vmax; background: radial-gradient(circle, rgba(53, 88, 166,.55), transparent 60%); filter: blur(40px); animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(-8vmax, 6vmax) scale(1.1); } }

.hero__mark {
  position: absolute; right: clamp(16px, 9vw, 160px); top: 50%;
  width: clamp(180px, 26vw, 360px); aspect-ratio: 900 / 1353;
  transform: translateY(-55%) perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--s, 1));
  transition: transform .6s var(--ease);
  filter: drop-shadow(0 40px 60px rgba(0,0,0,.45));
  opacity: var(--o, 1);
}
.hero__mark img { width: 100%; height: 100%; animation: float 6s ease-in-out infinite; }
.hero__sheen { position: absolute; inset: 0; mask: url(../img/brand/bluwin-mark-dark-480.png) center / contain no-repeat; -webkit-mask: url(../img/brand/bluwin-mark-dark-480.png) center / contain no-repeat; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.55) 48%, transparent 60%) 0 0 / 300% 100%; animation: sheen 5s ease-in-out infinite, float 6s ease-in-out infinite; mix-blend-mode: screen; }
@keyframes float { 50% { transform: translateY(-14px); } }
@keyframes sheen { 0%, 30% { background-position: 120% 0; } 70%, 100% { background-position: -40% 0; } }

.hero__copy { position: relative; z-index: 2; display: grid; gap: 18px; }
.hero__copy h1 { font-size: var(--fs-h1); max-width: 17ch; }
.hero__sub { max-width: 54ch; color: rgba(255,255,255,.72); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero .pill--line { color: #fff; }
.hero .pill--line:hover { background: #fff; color: var(--ink); }

.scroll-cue { position: absolute; right: var(--gutter); bottom: 32px; width: 1px; height: 56px; background: rgba(255,255,255,.2); overflow: hidden; }
.scroll-cue span { position: absolute; inset: 0; background: #fff; animation: cue 2s var(--ease) infinite; }
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

/* ---------- 2. Reel card ---------- */
.reel { padding: 0 var(--gutter); margin-top: -1px; background: var(--navy-deep); }
body[data-bg="light"] .reel { background: transparent; }
.reel__card {
  --p: 0;
  position: relative; height: min(86svh, 760px); border-radius: calc(var(--radius) * (1 - var(--p) * .4));
  overflow: hidden; background: #0c0a24;
  transform: scale(calc(.9 + var(--p) * .1));
  transform-origin: 50% 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12);
}
.reel__cols { position: absolute; inset: -10% -4%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; transform: rotate(-6deg) scale(1.08); opacity: .85; }
.reel__col { display: grid; gap: 14px; align-content: start; animation: colUp 40s linear infinite; }
.reel__col--down { animation-name: colDown; }
.reel__col img { width: 100%; border-radius: 12px; aspect-ratio: 1366 / 625; object-fit: cover; }
@keyframes colUp { to { transform: translateY(-50%); } }
@keyframes colDown { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.reel__card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(23,20,61,.25), rgba(23,20,61,.75)); pointer-events: none; }
.reel__play {
  position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 28px; border-radius: 999px;
  background: rgba(255,255,255,.16); color: #fff; font-weight: 500; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: background .35s var(--ease), transform .35s var(--ease);
}
.reel__play:hover { background: rgba(255,255,255,.28); transform: translate(-50%, -50%) scale(1.04); }

/* ---------- 3. Statement ---------- */
.statement { padding: clamp(90px, 16vh, 180px) 0 clamp(60px, 10vh, 120px); }
.statement__text { font-size: clamp(26px, 3.4vw, 44px); max-width: 24ch; line-height: 1.2; }
.statement__text .w { color: var(--fg); opacity: .16; transition: opacity .3s linear; }
.statement__text .w.on { opacity: 1; }
.rotator { position: relative; display: inline-grid; vertical-align: bottom; color: var(--blue); overflow: hidden; height: 1.2em; transition: width .7s var(--ease); }
.rotator__word { grid-area: 1 / 1; transform: translateY(105%); opacity: 0; transition: transform .7s var(--ease), opacity .7s var(--ease); white-space: nowrap; }
.rotator__word.is-active { transform: none; opacity: 1; }
.rotator__word.is-out { transform: translateY(-105%); opacity: 0; }
.statement__foot { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 52ch) auto; gap: 24px 48px; align-items: end; justify-content: space-between; color: var(--fg-muted); }
.statement__foot .link-arrow { color: var(--fg); }

/* ---------- Section heads ---------- */
.section-head { display: grid; gap: 10px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--row { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }

/* ---------- 4. Clients ---------- */
.clients { padding: clamp(40px, 8vh, 80px) 0 clamp(80px, 14vh, 160px); }
.clients__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { background: var(--tile); border-radius: var(--radius-sm); aspect-ratio: 16 / 9; display: grid; place-items: center; transition: background .4s var(--ease); }
.tile img { width: auto; max-width: 52%; max-height: 38%; object-fit: contain; filter: grayscale(1) contrast(1.1); opacity: .75; transition: filter .45s var(--ease), opacity .45s var(--ease), transform .45s var(--ease); }
.tile:hover { background: #e3e8f4; }
.tile:hover img { filter: none; opacity: 1; transform: scale(1.06); }

/* ---------- 5. Work (stacking cards) ---------- */
.work { padding: clamp(80px, 14vh, 160px) 0 clamp(40px, 8vh, 100px); }
.stack { display: grid; gap: 24px; }
.case { position: sticky; top: 96px; transform-origin: 50% 0; }
.case__inner {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 0; overflow: hidden;
  border-radius: var(--radius); background: #221e57; color: #fff;
  box-shadow: 0 -20px 60px -30px rgba(0,0,0,.6);
  transform: scale(var(--sc, 1)); transition: transform .2s linear;
  min-height: min(70svh, 560px);
}
.case:nth-child(2) .case__inner { background: #263b78; }
.case:nth-child(3) .case__inner { background: #1d2a5f; }
.case:nth-child(4) .case__inner { background: #2c2a6c; }
.case__media { overflow: hidden; background: #0c0a24; }
.case__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1.2s var(--ease); }
.case__inner:hover .case__media img { transform: scale(1.05); }
.case__meta { padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; }
.case__client { font-size: 14px; color: rgba(255,255,255,.65); }
.case h3 { font-size: var(--fs-h3); line-height: 1.35; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); }

/* ---------- 6. Services ---------- */
.services { padding: clamp(80px, 14vh, 160px) 0 clamp(60px, 10vh, 120px); }
.svc-list { border-top: 1px solid var(--line-c); }
.svc-list li { border-bottom: 1px solid var(--line-c); }
.svc-list a {
  position: relative; display: grid; grid-template-columns: 60px minmax(160px, 1fr) 1.4fr 40px; gap: 20px; align-items: center;
  padding: 26px 12px; overflow: hidden; isolation: isolate;
}
.svc-list a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .55s var(--ease); }
.svc-list a:hover::before, .svc-list a:focus-visible::before { transform: scaleY(1); }
.svc-list a:hover, .svc-list a:focus-visible { color: #fff; }
.svc__no { font-size: 13px; color: var(--fg-muted); transition: color .3s; }
.svc-list a:hover .svc__no { color: rgba(255,255,255,.6); }
.svc__name { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -.01em; transition: transform .55s var(--ease); }
.svc-list a:hover .svc__name { transform: translateX(10px); }
.svc__line { color: var(--fg-muted); transition: color .3s; }
.svc-list a:hover .svc__line { color: rgba(255,255,255,.78); }
.svc__arrow { justify-self: end; font-size: 20px; transform: translateX(-10px) rotate(-45deg); opacity: .4; transition: transform .5s var(--ease), opacity .3s; }
.svc-list a:hover .svc__arrow { transform: none; opacity: 1; }

/* ---------- 7. Process ---------- */
.process { padding: clamp(60px, 10vh, 120px) 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.step { background: var(--tile); border-radius: var(--radius-sm); padding: 28px 24px 32px; display: grid; gap: 10px; align-content: start; min-height: 240px; transition: transform .5s var(--ease), background .4s; }
.step:hover { transform: translateY(-6px); background: #e3e8f4; }
.step__no { font-size: 13px; color: var(--blue); font-weight: 600; margin-bottom: 40px; }
.step h3 { font-size: var(--fs-h3); }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- 8. Numbers ---------- */
.numbers { padding: clamp(40px, 8vh, 80px) 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-c); }
.stats li { padding: 28px 20px 8px 0; display: grid; gap: 6px; }
.stats strong { font-size: clamp(28px, 3vw, 40px); font-weight: 600; color: var(--navy); letter-spacing: -.02em; }
.stats span:not([data-count]) { color: var(--fg-muted); font-size: 15px; }

/* ---------- 9. FAQ ---------- */
.faq { padding: clamp(60px, 10vh, 120px) 0; }
.faq__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; }
.faq__list { border-top: 1px solid var(--line-c); }
.faq details { border-bottom: 1px solid var(--line-c); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; font-weight: 500; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--blue); transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 40px 24px 0; color: var(--fg-muted); }

/* ---------- 10. Insights ---------- */
.insights { padding: clamp(60px, 10vh, 120px) 0 clamp(80px, 14vh, 160px); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card a { display: grid; gap: 12px; }
.card__art { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; position: relative; transition: border-radius .5s var(--ease); }
.card__art::after { content: ""; position: absolute; inset: 0; background: url(../img/bi-mark-light.svg) 85% 60% / 28% auto no-repeat; opacity: .35; transition: transform 1s var(--ease); }
.card__art--a { background: linear-gradient(135deg, #282663, #3558A6); }
.card__art--b { background: linear-gradient(135deg, #3558A6, #9fb6ea); }
.card__art--c { background: linear-gradient(135deg, #17143d, #282663 60%, #3558A6); }
.card a:hover .card__art { border-radius: 36px; }
.card a:hover .card__art::after { transform: scale(1.12) rotate(-4deg); }
.card__meta { font-size: 13px; color: var(--fg-muted); }
.card h3 { font-size: var(--fs-h3); line-height: 1.35; }
.card a:hover h3 { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 11. CTA ---------- */
.cta { padding: clamp(100px, 18vh, 200px) 0; text-align: center; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; left: 50%; top: 50%; width: 70vmax; height: 70vmax; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(53, 88, 166,.35), transparent 60%); pointer-events: none; }
.cta__inner { position: relative; display: grid; justify-items: center; gap: 22px; }
.cta__direct { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; color: var(--fg-muted); }
.cta__direct a:hover { color: var(--fg); }

/* ---------- Footer ---------- */
.site-footer { background: #0f0d2b; color: rgba(255,255,255,.75); padding: 72px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer__brand img { width: 150px; margin-bottom: 18px; }
.footer__brand p { max-width: 36ch; font-size: 15px; }
.footer__h { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 16px; font-weight: 500; }
.site-footer ul { display: grid; gap: 8px; font-size: 15px; }
.site-footer a:hover { color: #fff; }
.social { display: flex !important; gap: 8px !important; margin-top: 18px; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); font-size: 13px; font-weight: 600; transition: background .3s, color .3s; }
.social a:hover { background: #fff; color: var(--ink); }
.footer__base { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }

/* ---------- WhatsApp ---------- */
.whatsapp { position: fixed; right: 18px; bottom: 18px; z-index: 50; width: 52px; height: 52px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(0,0,0,.4); transition: transform .35s var(--ease); }
.whatsapp:hover { transform: scale(1.08); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .faq__grid { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 760px) {
  .hide-sm { display: none !important; }
  .brand, .brand__logo { height: 36px; }
  .brand { width: 98px; }
  .hero { justify-content: flex-end; padding-top: 110px; }
  .hero__mark { right: 50%; top: 32%; transform: translate(50%, -50%) scale(var(--s, 1)); width: 150px; }
  .menu__inner { grid-template-columns: 1fr; align-items: start; }
  .reel__card { height: 62svh; }
  .reel__cols { grid-template-columns: repeat(2, 1fr); }
  .reel__col:last-child { display: none; }
  .statement__foot { grid-template-columns: 1fr; }
  .clients__grid { grid-template-columns: repeat(2, 1fr); }
  .case { top: 80px; }
  .case__inner { grid-template-columns: 1fr; min-height: 0; }
  .case__media { aspect-ratio: 16 / 10; }
  .svc-list a { grid-template-columns: 36px 1fr 24px; padding: 20px 4px; }
  .svc__line { grid-column: 2 / 3; grid-row: 2; font-size: 14px; }
  .svc__arrow { grid-row: 1; grid-column: 3; }
  .steps, .cards { grid-template-columns: 1fr; }
  .step { min-height: 0; }
  .step__no { margin-bottom: 12px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
  .reel__card { transform: none; }
  .statement__text .w { opacity: 1; }
}

/* =========================================================
   EXTRA MOTION (phase 1b)
   ========================================================= */

/* ---------- Intro loader / page transition curtain ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 300; background: var(--navy-deep);
  display: grid; place-items: center;
  clip-path: inset(0 0 0 0);
  transition: clip-path 1s cubic-bezier(.77, 0, .18, 1);
}
.curtain.is-gone { clip-path: inset(0 0 100% 0); pointer-events: none; }
.curtain.is-leaving { clip-path: inset(0 0 0 0); transition-duration: .7s; }
.curtain.is-skip { display: none; }
.curtain__mark { display: grid; justify-items: center; gap: 26px; transition: opacity .4s, transform .8s var(--ease); }
.curtain.is-gone .curtain__mark { opacity: 0; transform: translateY(-40px); }
.draw { fill: transparent; stroke-width: 3; stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 1.1s var(--ease) forwards, fillIn .5s .9s forwards; }
.draw--b { stroke: #5078BD; --f: #5078BD; }
.draw--n { stroke: #fff; --f: #fff; animation-delay: .15s, 1s; }
.draw--d { stroke: #fff; --f: #fff; animation-delay: .3s, 1.05s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillIn { to { fill: var(--f); } }
.curtain__logo { width: 80px; height: auto; animation: logoIn 1s var(--ease) both; }
@keyframes logoIn { from { opacity: 0; transform: translateY(14px) scale(.92); } }
.curtain__bar { width: 120px; height: 2px; background: rgba(255,255,255,.15); overflow: hidden; border-radius: 2px; }
.curtain__bar i { display: block; height: 100%; width: 100%; background: #fff; transform: scaleX(0); transform-origin: 0 50%; animation: load 1.2s var(--ease) forwards; }
@keyframes load { to { transform: scaleX(1); } }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 70; pointer-events: none; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), #5078BD); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- Custom cursor ---------- */
.cursor, .cursor-dot { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; opacity: 0; transition: opacity .3s; }
body.has-cursor .cursor, body.has-cursor .cursor-dot { opacity: 1; }
.cursor {
  width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
  border: 1px solid rgba(127,150,220,.7); display: grid; place-items: center;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background .35s, border-color .35s, opacity .3s;
  mix-blend-mode: normal;
}
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--blue); }
.cursor__label { font-size: 13px; font-weight: 500; color: #fff; opacity: 0; transform: scale(.6); transition: opacity .3s, transform .45s var(--ease); white-space: nowrap; }
body.cursor-label .cursor { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--blue); border-color: var(--blue); }
body.cursor-label .cursor__label { opacity: 1; transform: none; }
body.cursor-label .cursor-dot { opacity: 0; }
body.cursor-link .cursor { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: rgba(53, 88, 166,.12); }
@media (pointer: coarse) { .cursor, .cursor-dot { display: none; } }

/* ---------- Hero headline: word-by-word masked rise ---------- */
[data-split] .wd { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .wd > span { display: inline-block; transform: translateY(105%) rotate(4deg); transform-origin: 0 100%; transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 55ms + .1s); }
[data-split].is-in .wd > span { transform: none; }

/* ---------- Eyebrow line draws in ---------- */
.eyebrow[data-reveal] { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow[data-reveal]::before { content: ""; width: 22px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; transition: transform .9s .25s var(--ease); }
.eyebrow[data-reveal].is-in::before { transform: scaleX(1); }

/* ---------- Moving band ---------- */
.band { padding: 10px 0 clamp(50px, 9vh, 100px); overflow: hidden; }
.band__row { display: flex; white-space: nowrap; overflow: hidden; padding: 14px 0; border-top: 1px solid var(--line-c); }
.band__row--alt { border-bottom: 1px solid var(--line-c); }
.band__track { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); padding-right: clamp(18px, 2.4vw, 34px); flex-shrink: 0; will-change: transform; }
.band span { font-size: clamp(22px, 2.6vw, 34px); font-weight: 600; letter-spacing: -.02em; color: var(--fg); }
.band span.o { color: transparent; -webkit-text-stroke: 1px var(--blue); }
.band__row--alt span { font-size: clamp(16px, 1.6vw, 20px); font-weight: 500; color: var(--fg-muted); }
.band__row--alt span.o { -webkit-text-stroke: 0; color: var(--blue); }
.band i { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); flex-shrink: 0; animation: spinPulse 2.4s ease-in-out infinite; }
@keyframes spinPulse { 50% { transform: scale(.5); opacity: .5; } }

/* ---------- Parallax image in work cards ---------- */
.case__media img[data-parallax] { height: 118%; transform: translateY(var(--py, 0px)); transition: transform .1s linear; }
.case__inner:hover .case__media img[data-parallax] { transform: translateY(var(--py, 0px)) scale(1.05); transition: transform 1.2s var(--ease); }

/* ---------- Process line ---------- */
.steps__line { height: 2px; background: var(--line-c); margin-bottom: 18px; border-radius: 2px; overflow: hidden; }
.steps__line i { display: block; height: 100%; background: var(--blue); transform: scaleX(var(--lp, 0)); transform-origin: 0 50%; }
.step { position: relative; }
.step__no { transition: color .4s, transform .5s var(--ease); display: inline-block; }
.step.is-lit { background: var(--navy); color: #fff; }
.step.is-lit p { color: rgba(255,255,255,.75); }
.step.is-lit .step__no { color: #5078BD; transform: translateX(6px); }
.step { transition: transform .5s var(--ease), background .6s var(--ease), color .6s var(--ease); }

/* ---------- Tilt cards ---------- */
[data-tilt] { transform-style: preserve-3d; }
[data-tilt] .card__art { transform: perspective(800px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform .5s var(--ease), border-radius .5s var(--ease); }

/* ---------- Fill-sweep button ---------- */
.pill--fill { position: relative; overflow: hidden; isolation: isolate; }
.pill--fill::before { content: ""; position: absolute; left: var(--mx, 50%); top: var(--my, 50%); width: 0; height: 0; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); transition: width .6s var(--ease), height .6s var(--ease); z-index: -1; }
.pill--fill:hover::before { width: 420px; height: 420px; }
.pill--fill:hover { color: var(--navy); background: var(--blue); }

/* ---------- Clients: wave on hover across the grid ---------- */
.clients__grid:hover .tile:not(:hover) img { opacity: .4; }

@media (prefers-reduced-motion: reduce) {
  .curtain { display: none; }
  [data-split] .wd > span { transform: none; }
  .band__track { transform: none !important; }
}
.no-js .curtain { display: none; }

/* =========================================================
   BURST SECTION (pinned): words fill, cards fan out
   ========================================================= */
.burst { position: relative; height: 280vh; }
.burst__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; padding-top: clamp(96px, 14vh, 140px); }
.burst__text { position: relative; z-index: 2; }
.burst__title {
  max-width: 28ch; font-size: clamp(26px, 3.4vw, 46px); line-height: 1.18;
  background: linear-gradient(100deg, var(--ink) 0%, var(--navy) 35%, var(--blue) 70%, #5078BD 100%);
  -webkit-background-clip: text; background-clip: text;
}
.burst__title .bw { -webkit-text-fill-color: #cfd3e1; color: #cfd3e1; transition: -webkit-text-fill-color .35s linear, color .35s linear; }
.burst__title .bw.on { -webkit-text-fill-color: transparent; color: transparent; }

.chip { position: relative; display: inline-block; background: none; padding: 0 .22em; margin: 0 -.05em; color: inherit; isolation: isolate; }
.chip::before { content: ""; position: absolute; inset: .06em 0 .02em; background: var(--blue); border-radius: 6px; transform: scaleX(0); transform-origin: 0 50%; transition: transform .8s var(--ease); z-index: -1; }
.chip .bw { transition: -webkit-text-fill-color .4s .2s, color .4s .2s; }
.chip.is-on::before { transform: scaleX(1); }
.chip.is-on .bw, .chip.is-on .bw.on { -webkit-text-fill-color: #fff !important; color: #fff !important; }

.burst__cloud { position: absolute; left: 50%; top: 64%; width: 0; height: 0; z-index: 3; pointer-events: none; }
.bc {
  --w: clamp(130px, 15vw, 240px);
  position: absolute; left: 0; top: 0; width: var(--w); aspect-ratio: 1;
  margin: calc(var(--w) / -2) 0 0 calc(var(--w) / -2);
  border-radius: 14px; overflow: hidden; z-index: var(--z); opacity: 0;
  box-shadow: 0 30px 60px -30px rgba(20, 18, 46, .45);
  will-change: transform, opacity;
}
.bc--img { --w: clamp(170px, 20vw, 320px); aspect-ratio: 16 / 10; background: #0c0a24; }
.bc--sm { --w: clamp(140px, 15vw, 240px); }
.bc img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.bc--tile { display: grid; place-items: center; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.bc--tile img { width: 64%; height: auto; object-fit: contain; }
.bc--tile .bc__mark { width: 34%; }
.bc--lav { background: rgba(196, 181, 253, .55); }
.bc--sky { background: rgba(147, 178, 240, .5); }
.bc--mint { background: rgba(178, 234, 205, .55); }
.bc--sand { background: rgba(250, 226, 170, .7); }
.bc--navy { background: rgba(40, 38, 99, .9); }
.bc--blue { background: rgba(53, 88, 166, .85); }
.bc--tile span { color: #fff; font-weight: 600; font-size: clamp(20px, 2.2vw, 32px); letter-spacing: -.02em; }

@media (max-width: 760px) {
  .burst { height: 240vh; }
  .burst__cloud { top: 62%; }
  .bc { --w: 26vw; }
  .bc--img { --w: 40vw; }
  .bc--sm { --w: 32vw; }
}
@media (prefers-reduced-motion: reduce) {
  .burst { height: auto; }
  .burst__pin { position: relative; height: auto; padding-bottom: 80px; }
  .burst__cloud { display: none; }
  .burst__title .bw { -webkit-text-fill-color: transparent; }
  .chip::before { transform: scaleX(1); }
  .chip .bw { -webkit-text-fill-color: #fff !important; }
}

/* =========================================================
   FULL FUNNEL STRATEGY cards
   ========================================================= */
.strategy__intro { display: grid; gap: 10px; max-width: 46ch; }
.strategy__lead { color: var(--fg-muted); }
.case--stage .case__inner { grid-template-columns: 1.25fr 1fr; min-height: min(78svh, 620px); }
.case--stage .case__media img { object-position: center; }
.case--stage .case__meta { justify-content: center; gap: 14px; }
.case--stage .case__client { color: #D2DCF0; font-weight: 500; letter-spacing: .02em; }
.case__desc { color: rgba(255,255,255,.72); font-size: 15px; max-width: 46ch; }
.checks { display: grid; gap: 10px; margin-top: 6px; }
.checks li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: #fff; }
.checks__icon { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(111,147,224,.18); color: #D2DCF0; box-shadow: inset 0 0 0 1px rgba(210, 220, 240,.25); }
.case--stage:nth-child(1) .case__inner { background: #221e57; }
.case--stage:nth-child(2) .case__inner { background: #23336f; }
.case--stage:nth-child(3) .case__inner { background: #1b2a62; }
@media (max-width: 760px) {
  .case--stage .case__inner { grid-template-columns: 1fr; }
  .case--stage .case__media { aspect-ratio: 3 / 2; }
  .checks li { font-size: 14px; }
}
/* keep the full illustration visible on desktop */
@media (min-width: 761px) {
  .case--stage .case__inner { grid-template-columns: 1.45fr 1fr; min-height: 0; }
  .case--stage .case__media { aspect-ratio: 3 / 2; }
  .case--stage .case__media img[data-parallax] { height: 112%; }
}

