/* =========================================================
   HBTN Media — Landing page styles
   ========================================================= */

:root {
  /* Brand: taken from the HBTN Media logo */
  --brand: #024aac;        /* logo blue */
  --brand-2: #1b6ae0;      /* brighter brand blue */
  --sky: #8db9ff;          /* light blue highlight */
  --white: #ffffff;        /* logo white */

  --bg: #02163f;           /* deep navy derived from the brand blue */
  --bg-2: #011232;
  --surface: #072a66;
  --surface-2: #0d3677;
  --border: rgba(255, 255, 255, 0.12);
  --text: #ffffff;
  --muted: #b3c6e8;
  --accent: var(--white);  /* primary fills: buttons, toggles, badges */
  --accent-ink: var(--brand);
  --hl: var(--sky);        /* highlighted text and icons */
  --danger: #ff8a8a;
  --success: #7ee2b8;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px -20px rgba(0, 5, 25, 0.7);
  --container: 1200px;
  --header-h: 84px;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Space Grotesk", var(--font-body);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }

p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button, input, select, textarea { font: inherit; color: inherit; }

button { cursor: pointer; background: none; border: 0; }

svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 8px; font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px -8px rgba(255, 255, 255, .45); }
.btn--ghost { border-color: var(--border); background: rgba(255, 255, 255, .03); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn.is-loading .btn__label::after {
  content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; vertical-align: -2px;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(2, 22, 63, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; }
.logo__img { height: 58px; width: auto; display: block; }
.footer .logo__img { height: 80px; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav__list { display: flex; gap: 28px; }
.nav__link { color: var(--muted); font-weight: 500; font-size: 15px; position: relative; transition: color .2s; }
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link.is-active::after { transform: scaleX(1); }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); position: relative; }
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Common ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--hl);
  margin-bottom: 16px;
}
.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--hl); }
/* Pulse ring uses transform + opacity only (GPU-composited, no repaint every frame) */
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--hl); animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(3.2); opacity: 0; } }

.section { padding: 120px 0; position: relative; }
.section--alt { background: rgba(1, 18, 50, .55); }
.section__head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; text-align: left; }
.section__title { font-size: clamp(32px, 5vw, 52px); font-weight: 700; }
.section__title em { font-style: normal; color: var(--muted); }
.section__sub { color: var(--muted); font-size: 18px; margin-top: 18px; }

/* Reveal on scroll */
.reveal { opacity: 0; translate: 0 40px; transition: opacity .9s var(--ease), translate .9s var(--ease); }
.reveal.is-visible { opacity: 1; translate: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--header-h) + 80px) 0 0; overflow: hidden; }
.hero__glow {
  position: absolute; inset: -20% -10% auto; height: 900px; pointer-events: none;
  background:
    radial-gradient(600px 400px at 75% 30%, rgba(27, 106, 224, .35), transparent 70%),
    radial-gradient(500px 360px at 20% 10%, rgba(141, 185, 255, .14), transparent 70%),
    radial-gradient(400px 300px at 90% 70%, rgba(141, 185, 255, .18), transparent 70%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.hero__title { font-size: clamp(38px, 4.6vw, 66px); /* sized so the longest rotating word fits on one line */ font-weight: 700; line-height: 1; letter-spacing: -0.04em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .line > span { display: inline-block; }
.rotator { display: inline-block; position: relative; }
.rotator__word {
  display: inline-block;
  background: linear-gradient(90deg, var(--white), var(--sky) 45%, #4f8dff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.rotator__word.is-out { opacity: 0; transform: translateY(20px); }
.hero__sub { font-size: 19px; color: var(--muted); margin-top: 24px; max-width: 560px; }
.hero__actions { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero__proof { display: flex; gap: 32px; margin-top: 44px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.hero__proof strong { display: block; color: var(--text); font-family: var(--font-head); font-size: 22px; }

.hero__visual { position: relative; height: 560px; }
.card-float {
  position: absolute; background: rgba(7, 42, 102, .8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px;
}
.card-float small { display: block; color: var(--muted); font-size: 12px; }
.card-float b { font-family: var(--font-head); font-size: 24px; }
.card-float--main { width: 300px; right: -10px; bottom: 10px; }
.card-float--a { top: 110px; left: 0; }
.card-float--a b { color: var(--hl); font-size: 18px; white-space: nowrap; }
.card-float--b { top: 20px; right: 10px; }
.card-float--b b { color: var(--sky); }
@keyframes float { 50% { transform: translateY(-12px); } }
.card-float__head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 14px; margin-bottom: 16px; }
.chip { font-size: 12px; padding: 4px 10px; border-radius: 999px; font-weight: 600; }
.chip--up { background: rgba(141, 185, 255, .15); color: var(--hl); }
.chart { width: 100%; height: 90px; }
.chart__line { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.4s var(--ease) forwards .4s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.card-float__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.card-float__stats b { font-size: 17px; }

/* Marquee */
.marquee {
  position: relative; margin-top: 100px; padding: 28px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; gap: 72px; width: max-content; animation: marquee 30s linear infinite; }
.marquee__track span { font-family: var(--font-head); font-weight: 700; font-size: 22px; color: rgba(255, 255, 255, .35); letter-spacing: .06em; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 36px)); } }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
  position: relative; padding: 32px; background: rgba(7, 42, 102, .72); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: border-color .3s; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
/* Shared card animation for "What we produce", "Selected work" and "Pricing":
   3D flip-up entrance (main.js), tilt + glare, cursor-following light,
   highlighted border and a zoom on the card's visual. */
.fx-card { position: relative; transition: border-color .3s, box-shadow .4s; }
.fx-card::before {
  content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; opacity: 0; transition: opacity .3s; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(141, 185, 255, .16), transparent 42%);
}
.fx-card:hover { border-color: rgba(141, 185, 255, .45); box-shadow: 0 30px 60px -30px rgba(27, 106, 224, .6); }
.fx-card:hover::before { opacity: 1; }
/* scale/rotate (not transform) so the zoom combines with the GSAP parallax on case titles */
.service__icon, .case__media span, .plan__price, .plan__quote { transition: scale .5s var(--ease), rotate .5s var(--ease); }
.fx-card:hover .service__icon { scale: 1.12; rotate: -6deg; }
.fx-card:hover .case__media span { scale: 1.1; }
.plan__price { transform-origin: left center; }
.fx-card:hover .plan__price, .fx-card:hover .plan__quote { scale: 1.06; }
.service__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 24px;
  background: rgba(141, 185, 255, .12); color: var(--hl);
}
.service__icon svg { width: 24px; height: 24px; }
.service h3 { font-size: 22px; margin-bottom: 10px; }
.service p { color: var(--muted); }
.service ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.service li { font-size: 13px; padding: 5px 12px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }

/* ---------- Stats ---------- */
.stats { position: relative; padding: 80px 0; background: linear-gradient(135deg, rgba(2, 74, 172, .92), rgba(2, 60, 145, .85)); border-block: 1px solid var(--border); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat b { display: block; font-family: var(--font-head); font-size: clamp(40px, 5vw, 60px); font-weight: 700; letter-spacing: -0.03em; }
.stat span { color: var(--muted); }

/* ---------- Work ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); font-size: 14px; font-weight: 500;
  transition: all .2s;
}
.filter:hover { color: var(--text); border-color: rgba(255, 255, 255, .25); }
.filter.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }

.work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.case.is-hidden { display: none; }
.case__media {
  aspect-ratio: 16 / 10; display: grid; place-items: center; position: relative; overflow: hidden;
}
.case__media span {
  font-family: var(--font-head); font-weight: 700; font-size: 26px; color: rgba(255, 255, 255, .92);
  text-align: center; padding: 0 16px;
}
.case__media::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px); background-size: 16px 16px;
}
.case__media--1 { background: linear-gradient(135deg, #024aac, #012a66); }
.case__media--2 { background: linear-gradient(135deg, #1b6ae0, #02307a); }
.case__media--3 { background: linear-gradient(135deg, #4f8dff, #024aac); }
.case__media--4 { background: linear-gradient(135deg, #013a8a, #00163d); }
.case__media--5 { background: linear-gradient(135deg, #2c7bf0, #0a3f99); }
.case__media--6 { background: linear-gradient(135deg, #0b2f6b, #010f2e); }
.case__body { padding: 24px; }
.case__tag { font-size: 12px; color: var(--hl); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.case h3 { font-size: 20px; margin: 10px 0 14px; line-height: 1.25; }
.case__metric { color: var(--muted); font-size: 14px; }
.case__metric b { color: var(--text); font-family: var(--font-head); font-size: 20px; margin-right: 6px; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 32px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step__num {
  font-family: var(--font-head); font-size: 56px; font-weight: 700; line-height: 1; display: block; margin-bottom: 20px;
  background: linear-gradient(180deg, var(--white), var(--sky) 60%, transparent 130%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { font-size: 22px; margin-bottom: 10px; }
.step p { color: var(--muted); }

/* ---------- Testimonials ---------- */
.slider { max-width: 880px; margin: 0 auto; }
.slider__viewport { overflow: hidden; border-radius: var(--radius); }
.slider__track { display: flex; transition: transform .6s var(--ease); }
.quote {
  flex: 0 0 100%; margin: 0; padding: 56px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  position: relative;
}
.quote::before {
  content: "“"; position: absolute; top: 10px; right: 40px; font-family: var(--font-head); font-size: 180px; line-height: 1; color: rgba(141, 185, 255, .12);
}
.quote blockquote { margin: 0; font-family: var(--font-head); font-size: clamp(20px, 2.6vw, 28px); line-height: 1.4; font-weight: 500; position: relative; }
.quote figcaption { display: flex; align-items: center; gap: 14px; margin-top: 32px; }
.quote figcaption small { display: block; color: var(--muted); }
.avatar {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 700;
  background: linear-gradient(135deg, var(--brand-2), var(--sky));
}
.slider__controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 28px; }
.slider__btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; transition: all .2s;
}
.slider__btn svg { width: 20px; height: 20px; }
.slider__btn:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.slider__dots { display: flex; gap: 8px; }
.slider__dot { width: 10px; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .2); transition: all .3s var(--ease); }
.slider__dot.is-active { width: 28px; background: var(--accent); }

/* ---------- Pricing ---------- */

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; padding: 40px 32px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
}
.plan--featured {
  background: linear-gradient(180deg, var(--brand), #023a88) !important;
  border-color: rgba(255, 255, 255, .5); box-shadow: 0 30px 80px -30px rgba(27, 106, 224, .7);
}
.plan--featured .plan__desc, .plan--featured .plan__price .cur, .plan--featured .plan__price .per { color: #d7e5ff; }
.plan__badge {
  position: absolute; top: -13px; left: 32px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: var(--accent); color: var(--accent-ink);
}
.plan h3 { font-size: 24px; }
.plan__desc { color: var(--muted); margin-top: 8px; min-height: 78px; } /* 3 lines, keeps prices aligned */
.plan__price { display: flex; align-items: baseline; gap: 2px; margin: 28px 0; font-family: var(--font-head); }
.plan__price .cur { font-size: 24px; color: var(--muted); }
.plan__price .amt { font-size: 52px; font-weight: 700; letter-spacing: -0.03em; transition: opacity .2s; }
.plan__price .per { color: var(--muted); font-size: 16px; margin-left: 4px; }
.plan__list { display: grid; gap: 14px; margin-bottom: 36px; flex: 1; }
.plan__list li { position: relative; padding-left: 30px; color: #dbe7fb; }
.plan__list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(141, 185, 255, .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.plans__note { text-align: center; color: var(--muted); margin-top: 32px; font-size: 14px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq__item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; transition: border-color .2s; }
.faq__item[open] { border-color: rgba(141, 185, 255, .35); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 22px 64px 22px 24px; font-weight: 600; font-size: 17px; position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); font-size: 20px; font-weight: 400; transition: transform .3s var(--ease), background .2s, color .2s;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--accent); color: var(--accent-ink); }
.faq__item p { padding: 0 24px 24px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { background: radial-gradient(900px 500px at 0% 100%, rgba(2, 74, 172, .45), transparent 70%); }
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.contact__info .section__title { text-align: left; }
.contact__list { display: grid; gap: 18px; margin-top: 40px; }
.contact__list li { display: flex; align-items: center; gap: 14px; color: var(--muted); }
.contact__list svg { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--hl); flex-shrink: 0; }
.contact__list a:hover { color: var(--text); }

.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; display: grid; gap: 20px; box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: 14px; font-weight: 500; color: #dbe7fb; padding: 0; margin-bottom: 8px; }
.field label { margin-bottom: 0; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--border);
  transition: border-color .2s, box-shadow .2s; outline: none;
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b3c6e8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px;
}
.field select option { background: var(--surface); }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(141, 185, 255, .12); }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: 13px; min-height: 0; }
.field__error:empty { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span {
  display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); font-size: 14px; color: var(--muted);
  cursor: pointer; transition: all .2s; user-select: none;
}
.chip-check span:hover { border-color: rgba(255, 255, 255, .3); color: var(--text); }
.chip-check input:checked + span { background: var(--white); border-color: var(--white); color: var(--brand); }
.chip-check input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form__status { font-size: 15px; text-align: center; }
.form__status:empty { display: none; }
.form__status.is-success { color: var(--success); }
.form__status.is-error { color: var(--danger); }

/* ---------- Footer ---------- */
.footer { padding: 80px 0 32px; border-top: 1px solid var(--border); background: var(--brand); }
.footer p, .footer ul a { color: #d7e5ff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 48px; }
.footer p { color: var(--muted); margin-top: 16px; font-size: 15px; }
.footer h4 { font-size: 16px; margin-bottom: 18px; }
.footer ul { display: grid; gap: 10px; }
.footer ul a { color: var(--muted); font-size: 15px; transition: color .2s; }
.footer ul a:hover { color: var(--white); }
.socials { display: flex; gap: 10px; margin-top: 24px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border); display: grid; place-items: center; transition: all .2s; }
.socials a:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.socials svg { width: 18px; height: 18px; }
.newsletter { display: flex; gap: 8px; margin-top: 16px; }
.newsletter input { flex: 1; min-width: 0; padding: 12px 16px; border-radius: 999px; background: rgba(1, 18, 50, .45); border: 1px solid var(--border); outline: none; }
.newsletter input:focus { border-color: var(--accent); }
.newsletter .btn { padding: 12px 18px; font-size: 18px; }
.newsletter__status { font-size: 14px !important; margin-top: 10px !important; }
.newsletter__status:empty { display: none; }
.newsletter__status.is-success { color: var(--success) !important; }
.newsletter__status.is-error { color: var(--danger) !important; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--border); }
.footer__bottom p { margin: 0; font-size: 14px; }
.footer__bottom a:hover { color: var(--text); }

/* Back to top */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(20px); pointer-events: none; transition: all .3s var(--ease);
}
.to-top svg { width: 20px; height: 20px; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 520px; width: 100%; margin: 0 auto; }
  .services, .work { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; z-index: 101; }
  /* Phone menu: compact two-column tiles + CTA + quick contacts, sized to the
     visible screen (dvh) so browser toolbars never hide the bottom of it */
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    flex-direction: column; align-items: stretch; gap: 16px; overflow-y: auto; overscroll-behavior: contain;
    padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--border);
    opacity: 0; transform: translateY(-12px); pointer-events: none; visibility: hidden;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
  .nav__list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .nav__link {
    display: flex; align-items: center; min-height: 54px; padding: 12px 16px; font-size: 18px; font-family: var(--font-head);
    color: var(--text); border: 1px solid var(--border); border-radius: 14px; background: rgba(7, 42, 102, .6);
  }
  .nav__link.is-active { border-color: rgba(141, 185, 255, .5); background: rgba(27, 106, 224, .25); }
  .nav__link::after { display: none; }
  .nav__cta { padding: 15px; flex-shrink: 0; }
  .nav__extra { display: grid; gap: 4px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); }
  .nav__extra a { display: flex; align-items: center; gap: 10px; padding: 10px 2px; color: var(--muted); font-size: 15px; }
  .nav__extra svg { width: 18px; height: 18px; color: var(--hl); flex-shrink: 0; }
  .header.menu-active { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }

  .plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .contact__grid { grid-template-columns: 1fr; gap: 48px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 80px 0; }
  .section__head { margin-bottom: 44px; }
  .hero { padding-top: calc(var(--header-h) + 48px); }
  .hero__visual { height: 420px; }
  .card-float--main { width: 250px; right: 0; bottom: 0; }
  .card-float--b { top: 0; right: 0; }
  .card-float--a { top: 120px; left: 0; }
  .services, .work, .process { grid-template-columns: 1fr; }
  .form { padding: 24px; }
  .form__row { grid-template-columns: 1fr; }
  .quote { padding: 32px 24px; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .marquee { margin-top: 64px; }
  .hero__proof { gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}


/* =========================================================
   3D / motion layer
   ========================================================= */
main { position: relative; z-index: 1; }
.footer { position: relative; z-index: 1; }

.webgl { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: 0; pointer-events: none; display: block; }
.no-webgl .webgl { display: none; }

/* CSS orb used only when WebGL is unavailable */
.orb-fallback { display: none; }
.no-webgl .orb-fallback {
  display: block; position: absolute; left: 50%; top: 50%; width: 340px; height: 340px; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--sky), var(--brand-2) 45%, #011232 75%);
  box-shadow: 0 0 120px rgba(27, 106, 224, .5), inset -20px -30px 60px rgba(0, 0, 0, .5);
  animation: float 6s ease-in-out infinite;
}
.has-webgl .hero__glow { opacity: .55; }

/* Film grain */
.grain {
  position: fixed; inset: -50%; z-index: 300; pointer-events: none; opacity: .055;
  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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-5%, 3%); } 40% { transform: translate(3%, -6%); }
  60% { transform: translate(-7%, -2%); } 80% { transform: translate(5%, 5%); } 100% { transform: translate(0, 0); }
}

/* Preloader */
.loader {
  position: fixed; inset: 0; z-index: 500; background: var(--brand); display: grid; place-items: center;
  clip-path: inset(0 0 0 0);
}
.loader__inner { display: grid; justify-items: center; gap: 22px; }
.loader__logo { width: 180px; height: auto; animation: loaderPulse 1.6s ease-in-out infinite; }
@keyframes loaderPulse { 50% { opacity: .55; transform: scale(.97); } }
@keyframes loaderSpin { 0%, 100% { transform: perspective(400px) rotateY(0); } 50% { transform: perspective(400px) rotateY(180deg); } }
.loader__bar { width: 180px; height: 2px; background: rgba(255, 255, 255, .25); overflow: hidden; border-radius: 2px; }
.loader__bar span { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.loader__count { font-family: var(--font-head); font-size: 14px; color: #d7e5ff; letter-spacing: .2em; font-variant-numeric: tabular-nums; }
.is-loaded .loader { pointer-events: none; }

/* Hero intro states (only hidden when JS + GSAP run) */
.js-anim .hero__title .line > span { transform: translateY(110%); }
.js-anim .hero__anim, .js-anim .hero__visual .card-float, .js-anim .header { opacity: 0; }

/* Floating hero cards: gentle bob + depth parallax via CSS vars */
.card-float { will-change: transform; transform: translate3d(var(--px, 0), var(--py, 0), 0); }

/* Scroll cue */
.scroll-cue {
  position: absolute; left: 50%; bottom: 120px; translate: -50% 0; display: grid; justify-items: center; gap: 10px;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
}
.scroll-cue span { width: 1px; height: 46px; background: linear-gradient(var(--white), transparent); animation: cue 2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Split-word headings */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.split.is-in .w > span { transform: none; }

/* 3D tilt + glare */
.tilt { transform-style: preserve-3d; will-change: transform; transition: transform .6s var(--ease), border-color .3s, box-shadow .4s; }
.tilt.is-tilting { transition: transform .1s linear, border-color .3s, box-shadow .4s; }
.tilt::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(500px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .13), transparent 45%);
  z-index: 2;
}
.tilt.is-tilting::after { opacity: 1; }
.step, .plan { background: rgba(7, 42, 102, .78); }

/* Process: horizontal pinned track on large screens */
.process__wrap { position: relative; }
.process__progress { display: none; }
.process.is-horizontal { display: flex; gap: 28px; width: max-content; padding-right: 10vw; }
.process.is-horizontal .step { width: min(440px, 34vw); min-height: 340px; padding: 44px 40px; display: flex; flex-direction: column; justify-content: flex-end; }
.process.is-horizontal .step__num { font-size: 120px; margin-bottom: auto; }
.process.is-horizontal .step h3 { font-size: 30px; }
.process__progress.is-on { display: block; }
.process__progress { height: 2px; background: var(--border); margin-top: 48px; border-radius: 2px; overflow: hidden; }
.process__progress span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
#process { overflow: hidden; }

/* Custom cursor */
.cursor, .cursor-dot { display: none; }
.has-cursor .cursor, .has-cursor .cursor-dot {
  display: grid; position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; border-radius: 50%;
}
.has-cursor .cursor {
  width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid rgba(255, 255, 255, .45); place-items: center;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s;
  mix-blend-mode: difference;
}
.has-cursor .cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--white); }
.has-cursor .cursor.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(255, 255, 255, .9); border-color: transparent; }
.has-cursor .cursor.is-label { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--accent); border-color: transparent; mix-blend-mode: normal; }
.cursor__label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); opacity: 0; transition: opacity .2s; }
.cursor.is-label .cursor__label { opacity: 1; }
.has-cursor .cursor.is-down { transform: scale(.8); }

/* Marquee velocity skew target */
.marquee__track { will-change: transform; }

@media (max-width: 640px) {
  .scroll-cue { display: none; }
  .no-webgl .orb-fallback { width: 240px; height: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .split .w > span, .js-anim .hero__title .line > span { transform: none; }
  .js-anim .hero__anim, .js-anim .hero__visual .card-float, .js-anim .header { opacity: 1; }
}
.has-cursor .cursor.is-label ~ .cursor-dot { opacity: 0 !important; }

/* =========================================================
   Agency production content
   ========================================================= */
.section--tight { padding-top: 40px; }

/* Hero "deliverables" card */
.pipeline { display: grid; gap: 14px; }
.pipeline__row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: #dbe7fb; margin-bottom: 6px; }
.pipeline__row em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--hl); white-space: nowrap; }
.pipeline__row em.is-done { color: var(--success); }
.pipeline__bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.pipeline__bar span {
  display: block; height: 100%; width: var(--p); border-radius: inherit;
  background: linear-gradient(90deg, var(--sky), var(--white));
  transform-origin: left; animation: grow 1.6s var(--ease) both .8s;
}
@keyframes grow { from { transform: scaleX(0); } }
.card-float--main { width: 320px; }
.card-float--b b { font-size: 20px; }

/* White-label perks */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.perk {
  padding: 28px; border-radius: var(--radius); border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(2, 74, 172, .35), rgba(7, 42, 102, .45));
}
.perk__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--white); color: var(--brand); margin-bottom: 20px; }
.perk__icon svg { width: 22px; height: 22px; }
.perk h3 { font-size: 20px; margin-bottom: 8px; }
.perk p { color: var(--muted); font-size: 15px; }

@media (max-width: 1080px) { .perks { grid-template-columns: repeat(2, 1fr); } .nav { gap: 20px; } .nav__list { gap: 18px; } }
@media (max-width: 640px) {
  .perks { grid-template-columns: 1fr; }
  .card-float--main { width: 270px; }
}
@media (prefers-reduced-motion: reduce) { .pipeline__bar span { animation: none; } }

/* =========================================================
   Team
   ========================================================= */
.founder {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center;
  padding: 48px; border-radius: 28px; border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(7, 42, 102, .75), rgba(1, 18, 50, .6));
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.founder__media {
  position: relative; aspect-ratio: 1; border-radius: 24px; overflow: hidden;
  background:
    radial-gradient(circle at 50% 35%, rgba(141, 185, 255, .55), transparent 60%),
    linear-gradient(160deg, #1b6ae0, var(--brand) 55%, #012a66);
  box-shadow: 0 40px 80px -30px rgba(2, 74, 172, .8);
}
.founder__media picture, .founder__media img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.founder__media img { object-fit: cover; object-position: 50% 20%; }
/* Brand-blue wash at the bottom ties the studio photo into the page */
.founder__media::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(2, 74, 172, .55) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15);
  border-radius: inherit;
}
.founder__badge {
  position: absolute; left: 20px; top: 20px; z-index: 3; padding: 6px 14px; border-radius: 999px;
  background: var(--white); color: var(--brand); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.founder__role { color: var(--hl); font-weight: 600; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.founder__name { font-size: clamp(40px, 5vw, 64px); font-weight: 700; letter-spacing: -0.03em; margin: 10px 0 24px; }
.founder__bio { color: var(--muted); font-size: 17px; margin-bottom: 16px; }
.founder__quote {
  margin: 28px 0 32px; padding-left: 20px; border-left: 3px solid var(--white);
  font-family: var(--font-head); font-size: 22px; line-height: 1.35; font-weight: 500;
}
.founder__links { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.founder__social { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; transition: background .2s, color .2s, border-color .2s; }
.founder__social svg { width: 18px; height: 18px; }
.founder__social:hover { background: var(--white); color: var(--brand); border-color: var(--white); }

.crew { display: flex; align-items: center; justify-content: center; gap: 16px 24px; flex-wrap: wrap; margin-top: 40px; text-align: center; }
.crew__label { color: var(--muted); font-size: 15px; }
.crew__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.crew__list li { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); background: rgba(7, 42, 102, .6); font-size: 14px; font-weight: 500; }

@media (max-width: 900px) {
  .founder { grid-template-columns: 1fr; gap: 36px; padding: 28px; }
  .founder__media { max-width: 440px; width: 100%; margin: 0 auto; }
}
@media (max-width: 640px) {
  .founder { padding: 20px; border-radius: 22px; }
  .founder__quote { font-size: 19px; }
}

/* =========================================================
   Mobile optimisation
   ========================================================= */
.carousel-dots { display: none; }
.mobile-cta { display: none; }

/* Touch devices: drop effects that are costly on mobile GPUs */
@media (hover: none), (pointer: coarse) {
  .grain { display: none; }
  .tilt, .card-float { will-change: auto; }
  .service, .founder { backdrop-filter: none; -webkit-backdrop-filter: none; }
  /* frosted-glass header re-blurs the page on every scroll frame: use a solid bar on touch devices */
  .header.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(2, 22, 63, .96); }
  .service { background: rgba(7, 42, 102, .88); }
  .founder { background: linear-gradient(135deg, rgba(7, 42, 102, .92), rgba(1, 18, 50, .85)); }
  .btn--primary:hover { transform: none; box-shadow: none; }
}

@media (max-width: 640px) {
  :root { --header-h: 72px; }
  .logo__img { height: 48px; }
  .section { padding: 72px 0; }
  .section--tight { padding-top: 24px; }
  .section__head { margin-bottom: 32px; }
  .section__sub { font-size: 16px; }
  .eyebrow { font-size: 12px; }
  input, select, textarea { font-size: 16px; } /* prevents iOS zoom on focus */

  /* Hero: stack the floating cards cleanly instead of overlapping */
  .hero { padding-top: calc(var(--header-h) + 36px); }
  .hero__sub { font-size: 17px; margin-top: 18px; }
  .hero__actions { margin-top: 28px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__proof { margin-top: 32px; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 24px; font-size: 13px; }
  .hero__proof strong { font-size: 20px; }
  .hero__inner { gap: 36px; }
  .hero__visual { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero__visual .card-float { position: relative; inset: auto; width: auto; transform: none; }
  .card-float--main { grid-column: 1 / -1; order: 3; }
  .card-float--a { order: 1; }
  .card-float--b { order: 2; }
  .card-float--b b { font-size: 18px; }
  .card-float--a b { font-size: 16px; white-space: normal; }
  .marquee { margin-top: 48px; padding: 20px 0; }
  .marquee__track span { font-size: 17px; }
  .marquee__track { gap: 44px; }

  /* Swipe carousels */
  [data-carousel] {
    display: flex !important; grid-template-columns: none; gap: 14px; position: relative;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    margin: 0 -16px; padding: 6px 16px 8px; scroll-padding-inline: 16px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    max-width: none;
  }
  [data-carousel]::-webkit-scrollbar { display: none; }
  [data-carousel] > * { flex: 0 0 84%; scroll-snap-align: start; min-width: 0; }
  [data-carousel] > .is-hidden { display: none; }
  [data-carousel] .reveal, [data-carousel] > * { opacity: 1; translate: none; }
  .plans[data-carousel] { padding-top: 20px; align-items: stretch; }
  .plans[data-carousel] > * { flex-basis: 86%; }
  .carousel-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
  .carousel-dots button {
    width: 8px; height: 8px; padding: 0; border-radius: 999px; background: rgba(255, 255, 255, .25);
    transition: width .3s var(--ease), background .3s;
    /* bigger invisible tap area */
    box-shadow: 0 0 0 10px transparent;
  }
  .carousel-dots button.is-active { width: 22px; background: var(--white); }

  .service { padding: 26px 22px; }
  .perk { padding: 24px 22px; }
  .step { padding: 28px 24px; }
  .plan { padding: 32px 24px; }
  .plan__price { margin: 20px 0; }
  .plan__price .amt { font-size: 44px; }
  .process__progress { display: none !important; }

  /* Work: filters become a single swipeable row */
  .section__head--row { gap: 18px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 2px 16px; width: calc(100% + 32px); scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: 0 0 auto; padding: 10px 18px; min-height: 44px; }

  /* Bigger tap targets */
  .slider__dot { position: relative; }
  .slider__dot::after { content: ""; position: absolute; inset: -14px -4px; }
  .faq__item summary { padding: 20px 56px 20px 20px; font-size: 16px; }
  .faq__item p { padding: 0 20px 20px; }
  .contact__list a { padding: 8px 0; }
  .chip-check span { padding: 10px 16px; }

  /* Stats: tighter */
  .stats { padding: 56px 0; }
  .stat b { font-size: 40px; }

  /* Footer: compact two-column links */
  .footer { padding: 56px 0 calc(28px + env(safe-area-inset-bottom)); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer__brand, .footer__grid > div:last-child { grid-column: 1 / -1; }
  .footer .logo__img { height: 64px; }
  .footer ul { gap: 4px; }
  .footer ul a { display: inline-block; padding: 7px 0; }
  .footer__bottom { margin-top: 40px; }
  .footer__bottom a { display: inline-block; padding: 6px 0; }

  /* Sticky CTA replaces the back-to-top button on phones */
  .to-top { display: none; }
  .mobile-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(2, 22, 63, 0), rgba(2, 22, 63, .92) 35%);
    transform: translateY(110%); transition: transform .4s var(--ease);
  }
  .mobile-cta.is-visible { transform: none; }
  .mobile-cta .btn { padding: 15px 22px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); }

  .scroll-cue { display: none; }
}

/* =========================================================
   3D studio interactions
   ========================================================= */
/* A service card spotlighted after clicking its 3D object */
.fx-card.is-spotlight { animation: spotlight 2.2s var(--ease); }
@keyframes spotlight {
  0% { box-shadow: 0 0 0 0 rgba(141, 185, 255, .0); border-color: var(--border); }
  20% { box-shadow: 0 0 0 4px rgba(141, 185, 255, .55), 0 30px 80px -20px rgba(27, 106, 224, .9); border-color: var(--white); }
  100% { box-shadow: 0 0 0 0 rgba(141, 185, 255, 0); border-color: var(--border); }
}
/* The 3D studio shows the deliverables on larger screens, so the HTML hero
   cards are only used on phones (and as the no-WebGL fallback). */
.has-webgl .hero__visual .card-float { display: none; }
@media (max-width: 1080px) { .has-webgl .hero__visual { height: 440px; } }
@media (max-width: 640px) { .has-webgl .hero__visual { height: 320px; display: block; } }

/* =========================================================
   Agency partners
   ========================================================= */
.partners { position: relative; padding: 64px 0 24px; }
.partners__head { text-align: center; margin-bottom: 36px; }
.partners__head .eyebrow { margin-bottom: 10px; }
.partners__title { font-size: clamp(18px, 2vw, 22px); font-weight: 500; color: var(--muted); letter-spacing: -0.01em; }
.partners__list { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 72px; }
.partner img { display: block; height: 58px; width: auto; opacity: .62; transition: opacity .4s var(--ease), transform .4s var(--ease), filter .4s var(--ease); }
.partner--wide img { height: 54px; }
.partner:hover img { opacity: 1; transform: translateY(-4px) scale(1.04); filter: drop-shadow(0 8px 22px rgba(141, 185, 255, .45)); }

@media (max-width: 640px) {
  .partners { padding: 48px 0 8px; }
  .partners__head { margin-bottom: 28px; }
  .partners__list { gap: 26px 40px; }
  .partner img { height: 44px; opacity: .75; }
  .partner--wide { flex-basis: 100%; display: flex; justify-content: center; }
  .partner--wide img { height: 46px; }
}

/* Hero headline on phones: scale with the screen so "video production." stays on one line */
@media (max-width: 640px) { .hero__title { font-size: 9.2vw; } }

/* Case-study links on the work cards (the whole card is clickable) */
.work__note { color: var(--muted); max-width: 560px; margin-top: 14px; font-size: 16px; }
.case__link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  font-size: 14px; font-weight: 600; color: var(--hl); transition: color .2s, gap .3s var(--ease);
}
.case__link::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.case:hover .case__link { color: var(--white); gap: 10px; }
.case__link:focus-visible { outline: none; }
.case:has(.case__link:focus-visible) { outline: 2px solid var(--white); outline-offset: 3px; }

/* Footer phone + email */
.footer .footer__contact { display: grid; gap: 4px; margin-top: 14px; }
.footer__contact a { color: var(--white); font-weight: 500; font-size: 15px; width: fit-content; }
.footer__contact a:hover { color: var(--sky); }
@media (max-width: 640px) { .footer__contact a { padding: 6px 0; } }

/* WhatsApp icon (brand glyph is filled, unlike the stroked UI icons) */
svg .wa { fill: currentColor; stroke: none; }
.footer__wa { display: inline-flex; align-items: center; gap: 8px; }
.footer__wa svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Phones/tablets: the 3D studio fades out (and stops rendering) once the hero is scrolled away */
.webgl { transition: opacity .5s ease; }
.scene-asleep .webgl { opacity: 0; }

/* Pause the hero's looping animations while the hero is off-screen */
.hero-offscreen .hero .marquee__track,
.hero-offscreen .hero .dot::after,
.hero-offscreen .hero .scroll-cue span { animation-play-state: paused; }

.nav__extra { display: none; }
@media (max-width: 900px) { .nav__extra { display: grid; } }
@media (max-width: 900px) { .nav__list li:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* Phones/tablets: the 3D studio canvas lives inside the hero box and scrolls with the page */
.webgl.webgl--inline { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; transition: none; will-change: transform; transform: translateZ(0); } /* own compositor layer: 3D frames never repaint the page */

/* =========================================================
   Pricing: quote on a call (no public prices)
   ========================================================= */
#pricing .section__sub { max-width: 640px; margin-left: auto; margin-right: auto; }
.plan__quote { margin: 24px 0 28px; transform-origin: left center; }
.plan__quote b { display: block; font-family: var(--font-head); font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.plan__quote span { display: block; margin-top: 6px; color: var(--muted); font-size: 15px; }
.plan--featured .plan__quote span { color: #d7e5ff; }

.book-call {
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  margin-top: 40px; padding: 32px 36px; border-radius: 24px;
  background: linear-gradient(135deg, var(--brand), #012a66); border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 30px 80px -30px rgba(27, 106, 224, .6);
}
.book-call__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--white); color: var(--brand); }
.book-call__icon svg { width: 30px; height: 30px; }
.book-call h3 { font-size: 26px; }
.book-call p { color: #d7e5ff; margin-top: 8px; max-width: 560px; }
.book-call__points { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; }
.book-call__points li { position: relative; padding-left: 24px; font-size: 14px; font-weight: 500; }
.book-call__points li::before {
  content: ""; position: absolute; left: 0; top: 50%; translate: 0 -50%; width: 16px; height: 16px; border-radius: 50%;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23024aac' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.book-call__actions { display: grid; gap: 10px; }
.book-call__actions .btn { justify-content: center; }

@media (max-width: 1080px) {
  .book-call { grid-template-columns: auto 1fr; }
  .book-call__actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .plan__quote b { font-size: 30px; }
  .book-call { grid-template-columns: 1fr; gap: 18px; padding: 26px 22px; margin-top: 28px; }
  .book-call__icon { width: 52px; height: 52px; border-radius: 14px; }
  .book-call h3 { font-size: 22px; }
  .book-call__actions { grid-template-columns: 1fr; }
}

/* Book a call (Cal.com inline embed) */
.book__frame {
  max-width: 1000px; margin: 0 auto; padding: 12px; border-radius: 24px;
  background: rgba(7, 42, 102, .55); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.book__cal { width: 100%; min-height: 640px; overflow: auto; border-radius: 16px; display: grid; }
.book__cal iframe { width: 100% !important; border: 0; }
.book__loading { place-self: center; color: var(--muted); }
.book__cal:has(iframe) .book__loading { display: none; }
.book__fallback { text-align: center; color: var(--muted); font-size: 14px; margin: 14px 0 6px; }
.book__fallback a { color: var(--hl); text-decoration: underline; text-underline-offset: 3px; }
.book__frame.is-fallback .book__fallback { color: var(--text); font-size: 16px; }
@media (max-width: 640px) {
  .book__frame { padding: 6px; border-radius: 18px; margin: 0 -6px; }
  .book__cal { min-height: 560px; }
}
