/* ==========================================================================
   Fullstack Solutions — site styles
   ========================================================================== */

:root {
  --navy-950: #060e1c;
  --navy-900: #0a1628;
  --navy-800: #102340;
  --navy-700: #16305a;
  --blue-700: #0647d8;
  --blue-600: #0b63f6;
  --blue-500: #1d7bff;
  --blue-400: #3d94ff;
  --blue-300: #8cc0ff;
  --cyan-400: #22c7f5;
  --yellow-300: #ffe27a;
  --yellow-400: #ffc928;
  --yellow-500: #f5b70a;
  --orange-500: #f59e0b;

  --ink: #0b1324;
  --ink-soft: #2b3445;
  --muted: #5a6478;
  --line: #e4e9f1;
  --surface: #ffffff;
  --surface-alt: #f5f7fb;

  --grad-blue: linear-gradient(135deg, var(--blue-500) 0%, var(--blue-700) 100%);
  --grad-brand: linear-gradient(90deg, #5aa9ff 0%, var(--cyan-400) 100%);
  --grad-yellow: linear-gradient(135deg, var(--yellow-300) 0%, var(--yellow-400) 45%, var(--orange-500) 100%);

  --font-head: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 19, 36, .06);
  --shadow: 0 12px 30px -14px rgba(11, 19, 36, .22);
  --shadow-lg: 0 28px 60px -24px rgba(11, 19, 36, .35);

  --header-h: 76px;
  --gutter: 24px;
  --container: 1200px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, blockquote { margin: 0; }

h1, h2, h3 {
  font-family: var(--font-head);
  color: inherit;
  letter-spacing: -0.01em;
}

h1, h2 { text-wrap: balance; }

h2 {
  font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.08;
}

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.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: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.icon {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(72px, 9vw, 112px); }

.dot { color: var(--yellow-400); }

.text-gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  width: fit-content;
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.eyebrow-pill {
  padding: 7px 14px;
  border-radius: 999px;
}

.section-head h2 { margin-bottom: 16px; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.0625rem; }
.section-head.center { text-align: center; max-width: 680px; margin-inline: auto; }
.section-head.center .eyebrow { margin-inline: auto; }

/* Faint grid texture for dark sections */
.has-grid { position: relative; isolation: isolate; }
.has-grid::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 65% 70% at var(--grid-x, 70%) var(--grid-y, 40%), #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 65% 70% at var(--grid-x, 70%) var(--grid-y, 40%), #000 0%, transparent 75%);
}

/* The yellow "full stop" orb from the logo, used as a recurring accent */
.orb {
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #fff3a3 0%, var(--yellow-400) 42%, var(--orange-500) 100%);
  box-shadow: 0 0 60px 8px rgba(255, 201, 40, .35);
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- Glass ---------- */
/* Frosted panels: they blur whatever sits behind them (orbs, glows, images). */
.glass,
.glass-dark {
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 18px 40px -22px rgba(2, 12, 40, .6), inset 0 1px 0 rgba(255, 255, 255, .26);
}
.glass {
  border: 1px solid rgba(255, 255, 255, .22);
  background: linear-gradient(135deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .05) 100%);
}
.glass-dark {
  border: 1px solid rgba(255, 255, 255, .16);
  background: linear-gradient(135deg, rgba(22, 42, 78, .58) 0%, rgba(8, 18, 36, .42) 100%);
}

/* ---------- Image placeholders ---------- */
.media { position: relative; width: 100%; height: 100%; overflow: hidden; }
.media > img { width: 100%; height: 100%; object-fit: cover; }

.ph {
  --ph-a: #e8f1ff;
  --ph-b: #f8fbff;
  --ph-line: rgba(11, 99, 246, .07);
  --ph-fg: #3b5a8c;
  --ph-accent: var(--blue-600);
  --ph-icon-bg: #fff;
  container-type: inline-size;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  width: 100%; height: 100%;
  padding: 14px;
  text-align: center;
  color: var(--ph-fg);
  background:
    repeating-linear-gradient(-45deg, var(--ph-line) 0 1px, transparent 1px 12px),
    linear-gradient(160deg, var(--ph-a), var(--ph-b));
  transition: transform .6s var(--ease-out);
}
.ph-icon {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 8px;
  border-radius: 14px;
  background: var(--ph-icon-bg);
  color: var(--ph-accent);
  font-size: 22px;
  box-shadow: 0 8px 20px -10px rgba(11, 19, 36, .35);
}
.ph-icon .icon { stroke-width: 1.8; }
.ph-label { font-family: var(--font-head); font-size: 15px; font-weight: 600; line-height: 1.25; }
.ph-hint { font-size: 12px; opacity: .72; }
/* Live-site placeholders: just a large icon (or the logo) until real images arrive */
.ph-icon--lg { width: 88px; height: 88px; margin: 0; border-radius: 26px; font-size: 38px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .18); }
.ph-icon--lg .icon { stroke-width: 1.5; }
.ph--brand {
  background:
    radial-gradient(60% 45% at 50% 42%, rgba(29, 123, 255, .45) 0%, rgba(29, 123, 255, 0) 70%),
    repeating-linear-gradient(-45deg, var(--ph-line) 0 1px, transparent 1px 12px),
    linear-gradient(160deg, var(--ph-a), var(--ph-b));
}
.ph-logo {
  display: grid; place-items: center;
  width: 112px; height: 112px;
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .6);
}
.ph-logo img { width: 58px; height: auto; }

@container (max-width: 200px) {
  .ph-icon { width: 34px; height: 34px; font-size: 17px; border-radius: 10px; margin-bottom: 4px; }
  .ph-label { font-size: 12px; }
  .ph-hint { font-size: 10.5px; }
}
@container (max-width: 120px) {
  .ph-hint { display: none; }
}

.ph--yellow {
  --ph-a: #fff2cc; --ph-b: #fffaf0;
  --ph-line: rgba(245, 158, 11, .1);
  --ph-fg: #8a5a00;
  --ph-accent: var(--orange-500);
}
.ph--dark {
  --ph-a: #183461; --ph-b: #0d1d38;
  --ph-line: rgba(255, 255, 255, .035);
  --ph-fg: rgba(255, 255, 255, .8);
  --ph-icon-bg: rgba(255, 255, 255, .1);
  --ph-accent: var(--blue-300);
}
.ph--dark.ph--cyan { --ph-a: #0f3a52; --ph-b: #0b1c33; --ph-accent: #7ee0ff; }
.ph--dark.ph--gold { --ph-a: #3a3220; --ph-b: #121a2b; --ph-accent: var(--yellow-400); }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .25s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn .icon { font-size: 18px; transition: transform .2s ease; }
.btn:hover .icon { transform: translateX(3px); }

.btn-yellow {
  background: var(--yellow-400);
  color: var(--ink);
  box-shadow: 0 10px 24px -12px rgba(245, 183, 10, .9), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn-yellow::after {
  content: "";
  position: absolute; top: 0; bottom: 0; left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .6), transparent);
  transform: skewX(-20deg);
  transition: left .7s ease;
}
.btn-yellow:hover {
  background: #ffd54f;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -12px rgba(245, 183, 10, .9), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn-yellow:hover::after { left: 130%; }

.btn-outline-light {
  border-color: rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .04);
  color: #fff;
  backdrop-filter: blur(6px);
}
.btn-outline-light:hover { background: #fff; border-color: #fff; color: var(--ink); transform: translateY(-2px); }

.btn-pill { border-radius: 999px; min-height: 44px; padding: 11px 22px; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { width: 41px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-head);
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-sub {
  margin-top: 4px;
  padding-left: 2px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: #4a5568;
}
.brand-light .brand-name { color: #fff; }
.brand-light .brand-sub { color: rgba(255, 255, 255, .7); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
/* Backdrop lives on a pseudo-element: an element with backdrop-filter stops its
   children (the mobile menu) from blurring the page behind them. */
.site-header::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .84);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -16px rgba(11, 19, 36, .35); }

.header-inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }

.nav { flex: 1; display: flex; align-items: center; }
.nav-list { display: flex; gap: 36px; margin-inline: auto; }
.nav-list a {
  position: relative;
  display: block;
  padding: 8px 0;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color .2s;
}
.nav-list a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2.5px; border-radius: 2px;
  background: var(--blue-600);
  transform: scaleX(0);
  transition: transform .25s ease;
}
.nav-list a:hover { color: var(--blue-600); }
.nav-list a:hover::after { transform: scaleX(.4); }
.nav-list a.is-active { color: var(--ink); font-weight: 600; }
.nav-list a.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 22px;
  cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero {
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(45% 60% at 78% 45%, rgba(29, 123, 255, .38) 0%, rgba(29, 123, 255, 0) 70%),
    radial-gradient(28% 40% at 98% 5%, rgba(34, 199, 245, .28) 0%, rgba(34, 199, 245, 0) 70%),
    radial-gradient(35% 50% at 0% 100%, rgba(255, 201, 40, .1) 0%, rgba(255, 201, 40, 0) 70%),
    var(--navy-900);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 5vw, 72px);
  min-height: min(720px, calc(100svh - var(--header-h)));
  padding-block: clamp(64px, 8vw, 96px);
}

.hero-copy > * { animation: rise .9s var(--ease-out) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .32s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

.hero .eyebrow { color: var(--blue-300); margin-bottom: 22px; }
.hero h1 {
  max-width: 14ch;
  font-size: clamp(2.5rem, 1.5rem + 4vw, 4.25rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.hero-lead {
  max-width: 540px;
  margin-top: 24px;
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, .78);
}
.hero .btn-row { margin-top: 34px; }
.hero-checks { display: flex; flex-wrap: wrap; gap: 14px 32px; margin-top: 38px; }
.hero-checks li {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 16.5px; font-weight: 500; color: rgba(255, 255, 255, .88);
}
.hero-checks .icon { font-size: 22px; color: var(--cyan-400); stroke-width: 1.8; }

/* Device composition */
.hero-visual {
  --px: 0; --py: 0;
  position: relative;
  width: 100%;
  max-width: 600px;
  justify-self: end;
  aspect-ratio: 6 / 5;
  animation: visual-in 1.1s var(--ease-out) .15s both;
}
.hero-visual::before {
  content: "";
  position: absolute; inset: 8% 6% 4% 0; z-index: -1;
  background: radial-gradient(closest-side, rgba(29, 123, 255, .5), transparent);
  filter: blur(30px);
}
@keyframes visual-in {
  from { opacity: 0; transform: translateY(30px) scale(.96); }
  to { opacity: 1; transform: none; }
}

.layer {
  translate: calc(var(--px) * var(--d, 1) * -10px) calc(var(--py) * var(--d, 1) * -10px);
  transition: translate .4s ease-out;
}

.hero-visual .orb { top: 3%; right: 1%; width: 16%; }

.laptop { position: absolute; top: 11%; left: 0; width: 87%; }
.laptop-screen {
  padding: 10px 10px 12px;
  border-radius: 16px 16px 6px 6px;
  background: linear-gradient(180deg, #1c2638, #0b1220);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.browser-bar {
  display: flex; align-items: center; gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 6px 6px 0 0;
  background: #e9eef6;
}
.browser-bar span { width: 8px; height: 8px; border-radius: 50%; background: #ff6b6b; }
.browser-bar span:nth-child(2) { background: var(--yellow-400); }
.browser-bar span:nth-child(3) { background: #34d399; }
.browser-bar i { flex: 0 1 46%; height: 12px; margin-left: 12px; border-radius: 6px; background: #fff; }
.laptop .media { aspect-ratio: 16 / 10; border-radius: 0 0 6px 6px; }
.laptop .ph { padding-right: 20%; } /* keep the label clear of the overlapping phone */
.laptop-base {
  position: relative;
  height: 14px;
  margin: 0 -7%;
  border-radius: 2px 2px 14px 14px;
  background: linear-gradient(180deg, #d3dae5 0%, #9099aa 55%, #5b6474 100%);
  box-shadow: 0 24px 30px -12px rgba(0, 0, 0, .7);
}
.laptop-base::before {
  content: "";
  position: absolute; top: 0; left: 50%;
  width: 16%; height: 5px;
  transform: translateX(-50%);
  border-radius: 0 0 8px 8px;
  background: #7a8496;
}

.phone { position: absolute; right: 0; bottom: 0; width: 29%; }
.phone-screen {
  position: relative;
  display: flex;
  aspect-ratio: 9 / 19;
  padding: 7px;
  border-radius: 30px;
  background: #0b1220;
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 40px 70px -24px rgba(0, 0, 0, .9), inset 0 0 0 2px #1e293b;
}
.phone .media { border-radius: 23px; }
.phone-island {
  position: absolute; top: 14px; left: 50%; z-index: 2;
  width: 30%; height: 13px;
  transform: translateX(-50%);
  border-radius: 10px;
  background: #0b1220;
}

.chip {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: 14px;
  color: #fff;
  white-space: nowrap;
}
.chip strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.25; }
.chip small { display: block; font-size: 11.5px; color: rgba(255, 255, 255, .65); }
.chip-icon {
  display: grid; place-items: center; flex: none;
  width: 34px; height: 34px;
  border-radius: 10px;
  font-size: 17px;
}
.chip-icon.is-yellow { background: var(--grad-yellow); color: var(--ink); }
.chip-icon.is-green { background: linear-gradient(135deg, #34d399, #059669); color: #fff; }
.chip-bars {
  display: flex; align-items: flex-end; gap: 3px; flex: none;
  width: 34px; height: 34px;
  padding: 8px 7px 7px;
  border-radius: 10px;
  background: var(--grad-blue);
}
.chip-bars i { flex: 1; border-radius: 2px; background: #fff; transform-origin: bottom; animation: bar 2.6s ease-in-out infinite; }
.chip-bars i:nth-child(1) { height: 35%; }
.chip-bars i:nth-child(2) { height: 55%; animation-delay: .2s; }
.chip-bars i:nth-child(3) { height: 45%; animation-delay: .4s; }
.chip-bars i:nth-child(4) { height: 75%; animation-delay: .6s; }
.chip-bars i:nth-child(5) { height: 100%; animation-delay: .8s; }
@keyframes bar {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(.6); }
}

.hero-visual .chip { animation: float 6s ease-in-out infinite; }
.hero-visual .chip-1 { top: 3%; left: -3%; animation-delay: -1s; }
.hero-visual .chip-2 { top: 13%; right: -3%; animation-duration: 7s; animation-delay: -3s; }
.hero-visual .chip-3 { bottom: 5%; left: 6%; animation-duration: 8s; animation-delay: -2s; }

/* ---------- Crossing ribbons (bottom of hero) ---------- */
.ribbons {
  position: relative;
  height: 172px;
  margin-top: -24px;
}
.ribbon {
  position: absolute; left: -6%; right: -6%; top: 50%;
  overflow: hidden;
}
.ribbon--back {
  padding-block: 13px;
  background: var(--yellow-400);
  color: var(--ink);
  transform: translateY(-50%) rotate(2.5deg);
  box-shadow: 0 16px 32px -18px rgba(0, 0, 0, .6);
}
/* Frosted: the yellow ribbon and hero glow blur through it where they cross */
.ribbon--front {
  z-index: 1;
  padding-block: 15px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .24) 0%, rgba(255, 255, 255, .06) 50%, rgba(255, 255, 255, .02) 100%),
    linear-gradient(90deg, rgba(6, 71, 216, .57) 0%, rgba(11, 99, 246, .53) 35%, rgba(31, 139, 255, .5) 70%, rgba(34, 199, 245, .48) 100%);
  -webkit-backdrop-filter: blur(9px) saturate(125%);
  backdrop-filter: blur(9px) saturate(125%);
  color: #fff;
  transform: translateY(-50%) rotate(-3deg);
  box-shadow: 0 24px 44px -18px rgba(0, 0, 0, .75);
}

.ribbon-track { display: flex; width: max-content; animation: marquee 120s linear infinite; }
.ribbon--back .ribbon-track { animation-direction: reverse; }
.ribbons:hover .ribbon-track { animation-play-state: paused; }
.ribbon-group { display: flex; flex: none; align-items: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

.ribbon--front li {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-head);
  font-size: clamp(1.05rem, .9rem + .55vw, 1.35rem);
  font-weight: 600;
  white-space: nowrap;
  margin-right: 56px;
}
.ri-icon {
  display: grid; place-items: center; flex: none;
  width: 38px; height: 38px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .14);
  font-size: 19px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
}
.ri-icon .icon { stroke-width: 1.8; }

.ribbon--back li {
  display: flex; align-items: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ribbon--back li::after {
  content: "";
  width: 7px; height: 7px;
  margin-inline: 26px;
  border-radius: 50%;
  background: var(--navy-900);
}

/* ---------- Services (bento) ---------- */
.services {
  background:
    radial-gradient(60% 45% at 50% 0%, #eaf3ff 0%, rgba(234, 243, 255, 0) 70%),
    var(--surface);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 56px;
}

.service-card {
  --spot: rgba(29, 123, 255, .1);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  min-height: 290px;
  padding: 30px 28px 26px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 1px 2px rgba(11, 19, 36, .04), 0 12px 32px -20px rgba(11, 19, 36, .22);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.service-card::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), var(--spot), transparent 60%);
  opacity: 0;
  transition: opacity .3s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { opacity: 1; }

.service-content { position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1; }
.service-icon {
  display: grid; place-items: center;
  width: 54px; height: 54px;
  margin-bottom: 24px;
  border-radius: 15px;
  background: var(--grad-blue);
  color: #fff;
  font-size: 25px;
  box-shadow: 0 12px 24px -12px rgba(11, 99, 246, .8), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .35s var(--ease-out);
}
.service-icon .icon { stroke-width: 1.8; }
.service-card:hover .service-icon { transform: rotate(-6deg) scale(1.06); }
.service-card h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.25; margin-bottom: 10px; }
.service-text { display: block; font-size: 14.5px; color: var(--muted); }
.service-more {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: auto;
  padding-top: 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-600);
}
.service-more .icon { transition: transform .25s ease; }
.service-card:hover .service-more .icon { transform: translateX(4px); }

.tint-blue { background: linear-gradient(180deg, #edf4ff 0%, #f6f9ff 100%); }

.tint-sky {
  background: linear-gradient(120deg, #eaf3ff 0%, #f4fbff 55%, #e9f9ff 100%);
}

.tint-yellow {
  --spot: rgba(255, 201, 40, .2);
  background: linear-gradient(180deg, #fff5dc 0%, #fffaee 100%);
}
.tint-yellow .service-icon,
.service-icon.is-yellow { background: var(--grad-yellow); color: var(--ink); box-shadow: 0 12px 24px -12px rgba(245, 158, 11, .9), inset 0 1px 0 rgba(255, 255, 255, .4); }
.tint-yellow .service-more { color: #b26b00; }

.is-wide { grid-column: span 2; }
.is-wide .service-content { max-width: 50%; }

.is-dark {
  --spot: rgba(34, 199, 245, .16);
  color: #fff;
  background:
    radial-gradient(70% 110% at 100% 0%, rgba(29, 123, 255, .45) 0%, rgba(29, 123, 255, 0) 60%),
    radial-gradient(40% 60% at 0% 100%, rgba(255, 201, 40, .12) 0%, rgba(255, 201, 40, 0) 70%),
    var(--navy-900);
}
.is-dark .service-text { color: rgba(255, 255, 255, .72); }
.is-dark .service-more { color: var(--yellow-400); }

/* Decorative mini-UIs inside the wide cards */
.service-art { position: absolute; z-index: 0; pointer-events: none; }

.art-browser {
  right: -28px; bottom: -36px;
  width: 52%;
  aspect-ratio: 4 / 3.2;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7);
  transform: rotate(-5deg);
  transition: transform .5s var(--ease-out);
}
.service-card:hover .art-browser { transform: rotate(-2deg) translateY(-8px); }
.art-bar { display: flex; gap: 5px; padding: 9px 12px; background: #eef2f8; }
.art-bar i { width: 7px; height: 7px; border-radius: 50%; background: #cfd7e4; }
.art-hero {
  position: relative;
  display: block;
  height: 36%;
  margin: 12px;
  border-radius: 9px;
  background: linear-gradient(120deg, var(--blue-600), var(--cyan-400));
}
.art-hero::before, .art-hero::after { content: ""; position: absolute; border-radius: 4px; background: rgba(255, 255, 255, .85); }
.art-hero::before { left: 12px; top: 14px; width: 45%; height: 9px; }
.art-hero::after { left: 12px; top: 30px; width: 28%; height: 9px; background: var(--yellow-400); border-radius: 5px; }
.art-lines { display: block; margin: 0 12px; }
.art-lines i { display: block; height: 7px; margin-bottom: 7px; border-radius: 4px; background: #e3e9f2; }
.art-lines i:first-child { width: 72%; }
.art-lines i:last-child { width: 48%; }
.art-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px; }
.art-cards i { height: 42px; border-radius: 7px; background: #eef2f8; }

.art-brand {
  right: 30px; top: 50%;
  width: 40%;
  transform: translateY(-50%);
}
.brand-board {
  display: block;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  transition: transform .5s var(--ease-out);
}
.service-card:hover .brand-board { transform: rotate(0deg) translateY(-4px); }
.bb-head { display: flex; align-items: center; gap: 12px; }
.bb-logo {
  position: relative; flex: none;
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--grad-blue);
}
.bb-logo::before,
.bb-logo::after { content: ""; position: absolute; border-radius: 50%; }
.bb-logo::before { inset: 12px; border: 3px solid #fff; }
.bb-logo::after { right: 7px; bottom: 7px; width: 9px; height: 9px; background: var(--yellow-400); }
.bb-lines { display: flex; flex-direction: column; gap: 7px; flex: 1; }
.bb-lines i { display: block; height: 8px; border-radius: 4px; background: #e3e9f2; }
.bb-lines i:first-child { width: 72%; }
.bb-lines i:last-child { width: 46%; }
.bb-swatches { display: flex; gap: 8px; margin-top: 16px; }
.bb-swatches i { width: 22px; height: 22px; border-radius: 50%; background: var(--navy-900); }
.bb-swatches i:nth-child(2) { background: var(--blue-600); }
.bb-swatches i:nth-child(3) { background: var(--cyan-400); }
.bb-swatches i:nth-child(4) { background: var(--yellow-400); }
.bb-swatches i:nth-child(5) { background: #eef2f8; box-shadow: inset 0 0 0 1px #dbe3ef; }

.merch { position: relative; z-index: 1; display: flex; gap: 10px; margin-top: -12px; padding-left: 20px; }
.merch-item {
  display: grid; place-items: center;
  width: 54px; height: 54px;
  border-radius: 14px;
  background: #fff;
  color: var(--blue-600);
  font-size: 24px;
  box-shadow: var(--shadow);
  transform: rotate(-6deg);
  transition: transform .45s var(--ease-out);
}
.merch-item .icon { stroke-width: 1.7; }
.merch-item:nth-child(2) { color: var(--orange-500); transform: rotate(4deg) translateY(6px); transition-delay: .05s; }
.merch-item:nth-child(3) { color: var(--navy-900); transform: rotate(-2deg); transition-delay: .1s; }
.service-card:hover .merch-item { transform: rotate(0deg) translateY(-6px); }

.art-ads {
  right: 30px; top: 50%;
  width: 40%;
  transform: translateY(-50%);
}
.ads-panel {
  display: block;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
  transition: transform .5s var(--ease-out);
}
.service-card:hover .ads-panel { transform: rotate(0deg) translateY(-4px); }
.ads-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ads-title { display: flex; flex-direction: column; gap: 7px; flex: 1; }
.ads-title i { display: block; height: 8px; border-radius: 4px; background: #efe8d6; }
.ads-title i:first-child { width: 62%; }
.ads-title i:last-child { width: 38%; }
.ads-live {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e6f8ef;
  color: #047857;
  font-size: 11px;
  font-weight: 600;
}
.ads-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, .2); }
.ads-chart { display: flex; align-items: flex-end; gap: 7px; height: 84px; margin-top: 16px; }
.ads-chart i {
  flex: 1;
  border-radius: 5px 5px 2px 2px;
  background: var(--grad-yellow);
  transform-origin: bottom;
  transition: transform .5s var(--ease-out);
}
.ads-chart i:nth-child(1) { height: 30%; }
.ads-chart i:nth-child(2) { height: 46%; transition-delay: .03s; }
.ads-chart i:nth-child(3) { height: 38%; transition-delay: .06s; }
.ads-chart i:nth-child(4) { height: 58%; transition-delay: .09s; }
.ads-chart i:nth-child(5) { height: 52%; transition-delay: .12s; }
.ads-chart i:nth-child(6) { height: 76%; transition-delay: .15s; }
.ads-chart i:nth-child(7) { height: 100%; transition-delay: .18s; background: var(--grad-blue); }
.service-card:hover .ads-chart i { transform: scaleY(1.1); }
.ads-chips { position: relative; z-index: 1; display: flex; gap: 8px; margin-top: -12px; padding-left: 20px; }
.ads-chips span {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.ads-chips span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow-400); }
.ads-chips span:last-child::before { background: var(--blue-600); }

/* ---------- Our Work ---------- */
.work {
  --grid-x: 20%; --grid-y: 30%;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(40% 60% at 0% 0%, rgba(29, 123, 255, .28) 0%, rgba(29, 123, 255, 0) 70%),
    radial-gradient(40% 60% at 100% 100%, rgba(34, 199, 245, .16) 0%, rgba(34, 199, 245, 0) 70%),
    var(--navy-900);
}
.work .eyebrow { color: var(--blue-300); }
.work-inner {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.work-intro h2 { margin-bottom: 18px; }
.work-intro p:not(.eyebrow) { color: rgba(255, 255, 255, .75); margin-bottom: 30px; }

.carousel { min-width: 0; }
.carousel-viewport { position: relative; }

.carousel-track {
  --per-view: 3;
  --gap: 18px;
  display: flex;
  gap: var(--gap);
  position: relative;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  border-radius: 18px;
}
.carousel-track::-webkit-scrollbar { display: none; }

.work-card {
  position: relative;
  flex: 0 0 calc((100% - var(--gap) * (var(--per-view) - 1)) / var(--per-view));
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: var(--navy-800);
  scroll-snap-align: start;
  transition: border-color .3s ease;
}
.work-card .media { position: absolute; inset: 0; }
.work-card .ph { padding-bottom: 30%; }
.work-card:hover { border-color: rgba(61, 148, 255, .55); }
.work-card:hover .ph,
.work-card:hover .media > img { transform: scale(1.05); }
.work-card .media > img { transition: transform .6s var(--ease-out); }
.work-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 14, 28, 0) 60%, rgba(6, 14, 28, .55) 100%);
  pointer-events: none;
}
.work-icon {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  color: #fff;
  font-size: 18px;
}
/* While a card has no real image, the large placeholder icon already shows the service */
.work-card:has(.ph) .work-icon { display: none; }
.work-meta {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
}
.work-meta h3 { font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.work-meta p { margin-top: 4px; font-size: 13px; color: rgba(255, 255, 255, .68); }

.carousel-btn {
  position: absolute; top: 50%; z-index: 2;
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color .2s, color .2s, transform .2s;
}
.carousel-btn:hover { background: var(--yellow-400); border-color: var(--yellow-400); color: var(--ink); }
.carousel-btn:active { transform: translateY(-50%) scale(.94); }
.carousel-prev { left: -23px; }
.carousel-next { right: -23px; }

.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 26px; min-height: 8px; }
.carousel-dots button {
  width: 8px; height: 8px; padding: 0;
  border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .28);
  cursor: pointer;
  transition: width .3s var(--ease-out), background-color .25s ease;
}
.carousel-dots button[aria-current="true"] { width: 26px; background: var(--grad-brand); }

/* Two cards on larger screens: share the width instead of leaving a gap */
@media (min-width: 601px) {
  .carousel-track:not(:has(> :nth-child(3))) { --per-view: 2; }
}

/* "Your project could be next": an honest invitation beside the real projects */
.work-card--next {
  display: grid; place-items: center;
  padding: 28px;
  border: 1.5px dashed rgba(140, 192, 255, .35);
  background:
    radial-gradient(80% 55% at 50% 0%, rgba(29, 123, 255, .32) 0%, rgba(29, 123, 255, 0) 70%),
    var(--navy-800);
  text-align: center;
}
.work-card--next::after { display: none; }
.work-card--next:hover { border-color: var(--yellow-400); }
.next-inner { max-width: 300px; }
.next-icon {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  margin: 0 auto 20px;
  border-radius: 16px;
  background: var(--grad-yellow);
  color: var(--ink);
  font-size: 26px;
  box-shadow: 0 14px 30px -14px rgba(245, 158, 11, .9), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.next-icon .icon { stroke-width: 2.4; }
.work-card--next h3 { font-size: 1.35rem; font-weight: 700; line-height: 1.2; }
.work-card--next p { margin: 10px 0 24px; font-size: 14.5px; color: rgba(255, 255, 255, .72); }

/* ---------- Process ---------- */
.process-inner {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
/* Track line behind the icons; the gradient fill animates in when scrolled into view */
.steps::before,
.steps::after {
  content: "";
  position: absolute; top: 35px; left: 12.5%; right: 12.5%;
  height: 2px;
  border-radius: 2px;
}
.steps::before { background: repeating-linear-gradient(90deg, #d3dbe8 0 6px, transparent 6px 12px); }
.steps::after {
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-400) 60%, var(--yellow-400));
  transform-origin: left;
  transition: transform 1.6s cubic-bezier(.65, 0, .35, 1) .3s;
}
.js .steps::after { transform: scaleX(0); }
.js .steps.is-visible::after { transform: scaleX(1); }

.step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.step-icon {
  position: relative;
  display: grid; place-items: center;
  width: 72px; height: 72px;
  margin-bottom: 22px;
  border-radius: 50%;
  /* Thin gradient ring around a softly tinted face */
  border: 2px solid transparent;
  background:
    radial-gradient(circle at 30% 25%, #fff 0%, #f1f7ff 100%) padding-box,
    linear-gradient(135deg, var(--blue-500), var(--cyan-400)) border-box;
  color: var(--blue-600);
  font-size: 29px;
  box-shadow: 0 0 0 8px #fff, 0 18px 34px -14px rgba(11, 99, 246, .5);
  transition: color .3s ease, transform .35s var(--ease-out);
}
.step-icon .icon { stroke-width: 1.7; }
.step-icon.is-yellow {
  background:
    radial-gradient(circle at 30% 25%, #fff 0%, #fff8e6 100%) padding-box,
    var(--grad-yellow) border-box;
  color: var(--orange-500);
  box-shadow: 0 0 0 8px #fff, 0 18px 34px -14px rgba(245, 158, 11, .55);
}
.step:hover .step-icon { background: var(--grad-blue); color: #fff; transform: translateY(-4px); }
.step:hover .step-icon.is-yellow { background: var(--grad-yellow); color: var(--ink); }
.step-num {
  position: absolute; top: -6px; right: -8px;
  display: grid; place-items: center;
  min-width: 28px; height: 24px;
  padding: 0 6px;
  border-radius: 12px;
  background: var(--navy-900);
  color: #fff;
  font-family: var(--font-head);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 0 0 3px #fff;
}
.step h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 8px; }

/* A small light that travels along the filled line, passing behind each icon.
   It lives in the first step and moves to the centre of the fourth
   (3 step widths + 3 gaps of 20px). */
.step-pulse {
  position: absolute; z-index: -1; top: 36px; left: 50%;
  width: 10px; height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(34, 199, 245, .35), 0 0 16px 5px rgba(34, 199, 245, .75);
  opacity: 0;
  pointer-events: none;
}
.js .steps.is-visible .step-pulse { animation: pulse-travel 4.8s ease-in-out 2.2s infinite; }
@keyframes pulse-travel {
  0% { left: 50%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: calc(350% + 60px); opacity: 0; }
}
.step p { font-size: 14px; color: var(--muted); max-width: 19ch; }

/* ---------- Why / About ---------- */
.why {
  --grid-x: 50%; --grid-y: 50%;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(40% 55% at 50% 50%, rgba(29, 123, 255, .3) 0%, rgba(29, 123, 255, 0) 70%),
    radial-gradient(30% 40% at 100% 0%, rgba(34, 199, 245, .12) 0%, rgba(34, 199, 245, 0) 70%),
    var(--navy-950);
}
.why .eyebrow { color: var(--blue-300); }
.why-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr) minmax(0, 1fr);
  grid-template-areas: "intro media list";
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}
.why-intro { grid-area: intro; }
.why-intro h2 { margin-bottom: 18px; }
.why-intro p:not(.eyebrow) { color: rgba(255, 255, 255, .76); }

.why-media { grid-area: media; position: relative; }
.why-media .media {
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .85);
}
.why-media .orb { top: -22px; right: -18px; z-index: 1; width: 66px; }
.why-badge { left: -22px; bottom: 30px; }

.why-list { grid-area: list; position: relative; isolation: isolate; display: grid; gap: 14px; }
/* Colour for the glass to blur: the logo's yellow orb and a cyan glow */
.why-list::before,
.why-list::after {
  content: "";
  position: absolute; z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}
.why-list::before {
  top: -34px; right: -26px;
  width: 104px; height: 104px;
  background: radial-gradient(circle at 32% 30%, #fff3a3 0%, var(--yellow-400) 42%, var(--orange-500) 100%);
  box-shadow: 0 0 60px 8px rgba(255, 201, 40, .3);
}
.why-list::after {
  bottom: -50px; left: -40px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(34, 199, 245, .75) 0%, rgba(29, 123, 255, .45) 45%, rgba(29, 123, 255, 0) 70%);
}
.why-list li {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px;
  border-radius: 16px;
  transition: background .3s ease, border-color .3s ease, transform .35s var(--ease-out);
}
.why-list li:hover { background: rgba(255, 255, 255, .14); border-color: rgba(140, 192, 255, .55); transform: translateX(4px); }
.why-icon {
  display: grid; place-items: center; flex: none;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--grad-blue);
  color: #fff;
  font-size: 22px;
  box-shadow: 0 10px 24px -8px rgba(11, 99, 246, .8), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.why-icon .icon { stroke-width: 1.8; }
.why-list h3 { font-size: 1.0625rem; font-weight: 600; }
.why-list p { font-size: 14px; color: rgba(255, 255, 255, .68); }

/* ---------- CTA ---------- */
.cta {
  padding-block: 0 clamp(56px, 7vw, 88px);
  background: var(--navy-950);
}
#contact { scroll-margin-top: 24px; }

.cta-panel {
  --grid-x: 85%; --grid-y: 15%;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
  padding: clamp(44px, 6vw, 76px);
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, .12);
  color: #fff;
  background:
    radial-gradient(55% 75% at 100% 0%, rgba(34, 199, 245, .45) 0%, rgba(34, 199, 245, 0) 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(4, 54, 184, .9) 0%, rgba(4, 54, 184, 0) 70%),
    linear-gradient(120deg, #0436b8 0%, var(--blue-600) 55%, #1f8bff 100%);
  box-shadow: 0 50px 110px -45px rgba(11, 99, 246, .75), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.cta-panel.has-grid::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
}
.cta-waves { position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; width: 100%; height: 55%; }

/* The logo's yellow full stop, rippling out behind the glass card */
.cta-panel .orb { top: 48px; right: 46px; width: 92px; }
.cta-rings {
  position: absolute; top: -118px; right: -118px; z-index: -1;
  width: 420px; height: 420px;
  pointer-events: none;
}
.cta-rings i {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .22);
  animation: ripple 7.5s ease-out infinite;
}
.cta-rings i:nth-child(2) { animation-delay: 2.5s; }
.cta-rings i:nth-child(3) { animation-delay: 5s; }
@keyframes ripple {
  from { transform: scale(.25); opacity: 1; }
  to { transform: scale(1); opacity: 0; }
}

.cta-copy { position: relative; z-index: 1; }
.cta .eyebrow { color: rgba(255, 255, 255, .88); }
.cta h2 {
  font-size: clamp(2.3rem, 1.3rem + 3.6vw, 3.75rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.cta-lead { max-width: 44ch; font-size: 1.125rem; color: rgba(255, 255, 255, .86); }
.cta .btn-row { margin-top: 32px; }
.cta-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; }
.cta-points li {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, .88);
}
.cta-points .icon { font-size: 17px; color: var(--yellow-400); stroke-width: 1.8; }

.cta-card {
  position: relative; z-index: 1;
  padding: 30px 28px 26px;
  border-radius: 24px;
  box-shadow: 0 30px 60px -30px rgba(2, 12, 40, .6), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.cta-card-title { font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; }
.cta-card-sub { margin-top: 4px; font-size: 14px; color: rgba(255, 255, 255, .75); }
.cta-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 22px;
}
.cta-chips li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.cta-chips a {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 16px 8px 8px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .12);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .25s var(--ease-out), box-shadow .25s ease;
}
.cta-chips a:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -12px rgba(2, 12, 40, .6);
}
.cc-icon {
  display: grid; place-items: center; flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  font-size: 15px;
  transition: background-color .2s ease, color .2s ease;
}
.cc-icon .icon { stroke-width: 1.9; }
.cta-chips a:hover .cc-icon { background: var(--yellow-400); color: var(--ink); }
.cc-label { flex: 1; }
.cc-arrow { font-size: 16px; opacity: .7; transition: transform .25s var(--ease-out), opacity .2s ease; }
.cta-chips a:hover .cc-arrow { opacity: 1; transform: translateX(3px); }

.cta-steps {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
}
.cta-steps li { display: inline-flex; align-items: center; gap: 10px; }
.cta-steps li:not(:last-child)::after { content: ""; width: 18px; height: 1px; background: rgba(255, 255, 255, .45); }
.cta-steps li:last-child { color: var(--yellow-400); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, .75); }
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
  padding-block: 52px 38px;
}
.footer-brand p { margin-top: 14px; font-size: 14px; }
.footer-contact { display: grid; gap: 8px; margin-top: 16px; font-size: 14px; }
.footer-contact li,
.footer-contact a { display: inline-flex; align-items: center; gap: 9px; color: rgba(255, 255, 255, .85); }
.footer-contact a { transition: color .2s; }
.footer-contact a:hover { color: var(--yellow-400); }
.footer-contact .icon { font-size: 16px; color: var(--yellow-400); }

.footer-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; }
.footer-nav a { font-size: 14px; color: rgba(255, 255, 255, .85); transition: color .2s; }
.footer-nav a:hover { color: var(--yellow-400); }

.footer-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; }
.veteran {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: #fff;
}
.veteran > .icon { font-size: 26px; stroke-width: 1.6; color: #fff; }
.flag { width: 40px; height: 20px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); }
.flag-sm { display: block; width: 28px; height: 14px; margin-top: 5px; }

.socials { display: flex; gap: 12px; }
.socials a {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  color: #fff;
  font-size: 19px;
  background: rgba(255, 255, 255, .06);
  transition: background-color .2s, color .2s, transform .2s;
}
.socials a:hover { background: var(--yellow-400); color: var(--ink); transform: translateY(-2px); }

.footer-bottom { padding-bottom: 28px; }
.footer-bottom-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.footer-bottom p { font-size: 13px; color: rgba(255, 255, 255, .5); }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; }
.footer-legal ul { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-legal a {
  font-size: 13px;
  color: rgba(255, 255, 255, .7);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .25);
  text-underline-offset: 3px;
  transition: color .2s;
}
.footer-legal a:hover { color: var(--yellow-400); }

/* ---------- Toast (e.g. "Email address copied") ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 200;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 18px 40px -12px rgba(2, 12, 40, .45);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Legal pages (privacy.html, terms.html) ---------- */
.legal-back {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: color .2s;
}
.legal-back .icon { font-size: 18px; }
.legal-back:hover { color: var(--blue-600); }
.legal { max-width: calc(760px + var(--gutter) * 2); padding-block: 56px 88px; }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); font-weight: 700; line-height: 1.1; }
.legal-meta { margin-top: 10px; font-size: 14px; color: var(--muted); }
.legal-lead { margin-top: 24px; font-size: 1.125rem; color: var(--ink-soft); }
.legal h2 { margin: 40px 0 12px; font-size: 1.35rem; font-weight: 600; line-height: 1.25; }
.legal p:not(.eyebrow):not(.legal-meta):not(.legal-lead),
.legal li { color: var(--ink-soft); }
.legal p + p,
.legal ul + p { margin-top: 12px; }
.legal ul { margin-top: 10px; padding-left: 22px; list-style: disc; }
.legal li + li { margin-top: 8px; }
.legal li::marker { color: var(--blue-600); }
.legal a:not(.btn) { color: var(--blue-600); text-decoration: underline; text-underline-offset: 3px; }
.legal-footer .footer-bottom-inner { border-top: 0; padding-top: 28px; }

/* ---------- Booking modal ---------- */
html.modal-open { overflow: hidden; }

.booking,
.packages {
  width: min(var(--modal-w, 780px), calc(100% - 32px));
  max-width: none;
  max-height: min(900px, calc(100dvh - 32px));
  padding: 0;
  border: 0;
  border-radius: 26px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 50px 120px -30px rgba(2, 12, 40, .75);
  overflow: hidden;
}
.booking[open],
.packages[open] { display: flex; flex-direction: column; animation: modal-in .45s var(--ease-out); }
.booking::backdrop,
.packages::backdrop {
  background: rgba(6, 14, 28, .55);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  backdrop-filter: blur(8px) saturate(140%);
  animation: fade-in .3s ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to { opacity: 1; transform: none; }
}
@keyframes fade-in { from { opacity: 0; } }

.booking-form { display: flex; flex-direction: column; flex: 1; min-height: 0; }

/* Header */
.booking-head,
.pkg-head {
  --grid-x: 85%; --grid-y: 0%;
  flex: none;
  overflow: hidden;
  padding: 28px 32px 20px;
  color: #fff;
  /* Same deep navy + blue glow as the hero and other dark sections */
  background:
    radial-gradient(55% 150% at 100% 0%, rgba(29, 123, 255, .42) 0%, rgba(29, 123, 255, 0) 65%),
    radial-gradient(35% 120% at 0% 100%, rgba(34, 199, 245, .12) 0%, rgba(34, 199, 245, 0) 70%),
    var(--navy-900);
}
.booking-head .orb,
.pkg-head .orb { top: -30px; right: 0; width: 96px; z-index: -1; }
.booking-brand { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; padding-right: 56px; }
/* Full-colour mark on a white tile so it stands out against the blue */
.booking-logo {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 10px 24px -12px rgba(2, 12, 40, .6);
}
.booking-logo img { width: 26px; height: auto; }
.booking-brand .brand-name { font-size: 22px; }
.booking-brand .brand-sub { margin-top: 3px; font-size: 8px; letter-spacing: .4em; }
.booking-head .eyebrow { margin: 0; padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .22); color: var(--blue-300); }
.booking-head h2 { max-width: 30ch; font-size: clamp(1.45rem, 1.15rem + 1.2vw, 2rem); padding-right: 48px; }
.booking-sub { margin-top: 6px; font-size: 14.5px; color: rgba(255, 255, 255, .75); }
.booking-close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.booking-close:hover { background: rgba(255, 255, 255, .28); transform: rotate(90deg); }

.booking-progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.booking-progress li {
  display: flex; align-items: center; gap: 8px;
  padding-top: 10px;
  border-top: 3px solid rgba(255, 255, 255, .16);
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, .7);
  white-space: nowrap;
  transition: border-color .3s ease, color .3s ease;
}
.bp-num {
  display: grid; place-items: center; flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  font-size: 11.5px;
  transition: background-color .3s ease, color .3s ease;
}
.booking-progress li.is-current { border-color: var(--yellow-400); color: #fff; }
.booking-progress li.is-current .bp-num { background: var(--yellow-400); color: var(--ink); }
.booking-progress li.is-done { color: #fff; }
.booking-progress li.is-done { border-color: var(--blue-400); }
.booking-progress li.is-done .bp-num { background: var(--blue-500); color: #fff; }

/* Body */
.booking-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 28px 32px 12px; }
.step-title { margin-bottom: 20px; font-size: 1.3rem; font-weight: 600; outline: none; }
.step-note { display: flex; align-items: center; gap: 8px; margin: -12px 0 20px; font-size: 14px; color: var(--muted); }
.step-note .icon { font-size: 16px; color: var(--blue-600); }

.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; }
.field-full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; margin: 0 0 18px; padding: 0; border: 0; }
.field label,
.field legend { font-size: 14px; font-weight: 600; color: var(--ink); }
.field legend { float: left; width: 100%; padding: 0; margin-bottom: 10px; }
.field legend + * { clear: both; }
.req { color: var(--blue-600); }
.hint { margin-left: 4px; font-size: 12.5px; font-weight: 400; color: var(--muted); }

.booking input[type="text"],
.booking input[type="email"],
.booking input[type="tel"],
.booking select,
.booking textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fbfcfe;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.booking textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
.booking select {
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a6478' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.booking input::placeholder,
.booking textarea::placeholder { color: #9aa4b5; }
.booking input:hover,
.booking select:hover,
.booking textarea:hover { border-color: #cbd6e6; }
.booking input:focus,
.booking select:focus,
.booking textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(29, 123, 255, .15);
}
.booking [aria-invalid="true"] { border-color: #e5484d; box-shadow: 0 0 0 4px rgba(229, 72, 77, .12); }
.field-error { font-size: 13px; color: #d93d42; }
.form-note { margin-top: 2px; font-size: 13px; color: var(--muted); }
.form-note a { color: var(--blue-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.field-error:empty { display: none; }

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue-600);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-btn:hover { color: var(--blue-700); }

/* Choice chips (checkboxes / radios) */
.chip-group { display: flex; flex-wrap: wrap; gap: 10px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.opt span .icon { font-size: 16px; color: var(--blue-600); }
.opt:hover span { border-color: #b9d2f7; }
.opt input:checked + span {
  border-color: var(--blue-600);
  background: #eef5ff;
  color: var(--blue-700);
  box-shadow: inset 0 0 0 1px var(--blue-600);
}
.opt input:focus-visible + span { outline: 3px solid var(--blue-400); outline-offset: 2px; }

/* Embedded Cal.com booking page (step 3) */
.booking.is-embed { height: min(900px, calc(100dvh - 32px)); }
.booking.is-embed .booking-head h2,
.booking.is-embed .booking-sub {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.booking.is-embed .booking-body { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 14px; }
.booking-step--embed:not([hidden]) { display: flex; flex-direction: column; flex: 1; min-height: 0; }
/* The progress bar already says "Pick a time"; keep the heading for screen readers only */
.booking-step--embed .step-title {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.booking-step--embed .step-note { align-items: flex-start; margin: 0 0 14px; }
.booking-step--embed .step-note .icon { flex: none; margin-top: 3px; }
.booking-step--embed .step-note a { color: var(--blue-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.embed {
  position: relative;
  flex: 1;
  min-height: 320px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.embed-target { position: relative; z-index: 1; min-height: 100%; }
.embed-target iframe { display: block; width: 100% !important; border: 0; }
.embed-loading {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 14px;
  color: var(--muted);
}
.booking.embed-loaded .embed-loading { display: none; }
.embed-alt { margin-top: 10px; font-size: 13px; color: var(--muted); }
.booking.embed-failed .embed-alt { padding: 10px 12px; border-radius: 10px; background: #fff4d6; color: #7a5200; }
.embed-alt a { color: var(--blue-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Done */
.booking-done { padding: 8px 0 12px; text-align: center; }
.booking-done .step-title { margin-bottom: 8px; font-size: 1.6rem; }
.done-icon {
  display: grid; place-items: center;
  width: 76px; height: 76px;
  margin: 4px auto 22px;
  border-radius: 50%;
  background: var(--grad-blue);
  color: #fff;
  font-size: 34px;
  box-shadow: 0 0 0 10px #eef5ff, 0 22px 40px -16px rgba(11, 99, 246, .75);
  animation: pop-in .6s var(--ease-out) both;
}
.done-icon .icon { stroke-width: 2.6; }
@keyframes pop-in {
  from { opacity: 0; transform: scale(.5); }
  to { opacity: 1; transform: none; }
}
.done-text { max-width: 46ch; margin: 0 auto; color: var(--muted); }
.done-when {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--blue-700);
  font-size: 14.5px;
  font-weight: 600;
}
.done-mail {
  max-width: 440px;
  margin: 18px auto 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface-alt);
  font-size: 13.5px;
  color: var(--muted);
}
.done-mail a { color: var(--blue-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.btn-sm { min-height: 40px; margin-top: 10px; padding: 9px 16px; border-radius: 10px; font-size: 13.5px; }
.btn-sm .icon { font-size: 16px; }
.btn-sm:hover .icon { transform: none; }
/* Footer */
.booking-foot {
  flex: none;
  display: flex; align-items: center; gap: 12px;
  padding: 16px 32px 20px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.booking-foot .btn { min-height: 48px; }
.booking-foot .btn-yellow { margin-left: auto; }
.btn-ghost { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-ghost:hover { border-color: #b8c3d4; }
.btn-ghost:hover .icon { transform: translateX(-3px); }
.btn.is-loading { pointer-events: none; opacity: .75; }
.booking.is-done .booking-progress { opacity: .9; }

@media (max-width: 600px) {
  .booking,
  .packages {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }
  .booking[open],
  .packages[open] { animation: sheet-in .45s var(--ease-out); }
  .booking.is-embed { height: 100dvh; }
  .booking.is-embed .booking-body { padding: 14px 12px 10px; }
  .embed { border-radius: 12px; }
  @keyframes sheet-in {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: none; opacity: 1; }
  }
  .booking-head,
  .pkg-head { padding: 22px 20px 16px; }
  .booking-head .orb,
  .pkg-head .orb { top: -26px; right: -4px; width: 80px; }
  .booking-sub { display: none; }
  .booking-brand { margin-bottom: 14px; }
  .booking-head .eyebrow { display: none; }
  .booking-progress { display: flex; gap: 6px; margin-top: 16px; }
  .booking-progress li { flex: 1; }
  .booking-progress li.is-current { flex: 2.6; }
  .booking-progress li:not(.is-current) .bp-label { display: none; }
  .booking-body { padding: 22px 20px 12px; }
  .field-grid { grid-template-columns: 1fr; }
  .booking input[type="text"],
  .booking input[type="email"],
  .booking input[type="tel"],
  .booking select,
  .booking textarea { font-size: 16px; } /* stops iOS zooming into fields */
  .booking-foot { padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); }
  .booking-foot .btn { flex: 1; }
  .booking-foot .btn-ghost { flex: 0 0 auto; }
}

/* Short phones (e.g. iPhone SE): trim the header a little */
@media (max-width: 600px) and (max-height: 700px) {
  .booking-head { padding: 16px 20px 14px; }
  .booking-brand { margin-bottom: 10px; }
  .booking-head h2 { font-size: 1.3rem; }
  .booking-progress { margin-top: 12px; }
}

/* Landscape phones and other very short screens: full-screen sheet with a slim header,
   so the form keeps most of the height */
@media (max-height: 560px) {
  .booking,
  .booking.is-embed,
  .packages {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }
  .embed { min-height: 220px; }
  .booking-head,
  .pkg-head { padding: 10px 20px 8px; }
  .booking-head .orb,
  .pkg-head .orb { top: -40px; width: 72px; }
  .booking-close { top: 8px; right: 12px; width: 36px; height: 36px; font-size: 18px; }
  .booking-brand { margin-bottom: 6px; }
  .booking-logo { width: 34px; height: 34px; border-radius: 10px; }
  .booking-logo img { width: 20px; }
  .booking-brand .brand-name { font-size: 19px; }
  .booking-head .eyebrow { display: flex; }
  /* Title stays available to screen readers (it labels the dialog) */
  .booking-head h2,
  .booking-sub {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .booking-progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 6px; }
  .booking-progress li { flex: none; padding-top: 6px; }
  .booking-progress li:not(.is-current) .bp-label { display: inline; }
  .booking-body { padding: 16px 24px 8px; }
  .step-title { margin-bottom: 12px; font-size: 1.1rem; }
  .booking-foot { padding: 8px 24px calc(8px + env(safe-area-inset-bottom)); }
  .booking-foot .btn { min-height: 42px; }
}

/* ---------- Packages modal ---------- */
/* Shares the booking modal's frame, backdrop, dark header and close button (see above) */
.packages { --modal-w: 1200px; }
.pkg-set:not([hidden]) { display: flex; flex-direction: column; flex: 1; min-height: 0; }

.pkg-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding-right: 56px; }
.pkg-head .service-icon { width: 44px; height: 44px; margin: 0; border-radius: 13px; font-size: 21px; }
.pkg-head .eyebrow { margin: 0; color: var(--blue-300); }
.pkg-head h2 { font-size: clamp(1.45rem, 1.15rem + 1.2vw, 2rem); padding-right: 48px; }
.pkg-sub { max-width: 72ch; margin-top: 6px; font-size: 14.5px; color: rgba(255, 255, 255, .75); }

.pkg-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 32px; background: var(--surface-alt); }
/* Optional intro above the cards */
.pkg-intro { max-width: 760px; margin-bottom: 36px; }
.pkg-intro h3 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.7rem); font-weight: 700; line-height: 1.15; }
.pkg-intro p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.pkg-intro .pkg-intro-strong { font-weight: 600; color: var(--ink); }

.pkg-grid { --cols: 3; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 20px; }
.pkg-grid.is-4 { --cols: 4; gap: 16px; }

/* Package cards */
.pkg-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 26px 22px 22px;
  border: 1.5px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(11, 19, 36, .04), 0 12px 32px -22px rgba(11, 19, 36, .25);
}
.pkg-card.is-featured {
  border-color: var(--blue-600);
  box-shadow: inset 0 0 0 1px var(--blue-600), 0 24px 48px -28px rgba(11, 99, 246, .6);
}
.pkg-badge {
  position: absolute; top: 0; left: 22px;
  transform: translateY(-50%);
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--grad-blue);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pkg-badge.is-alt { background: var(--grad-yellow); color: var(--ink); }
.pkg-name { font-size: 1.3rem; font-weight: 600; line-height: 1.25; }
.pkg-tag { margin-top: 3px; font-size: 13px; font-weight: 600; color: var(--blue-600); }
.pkg-desc { margin-top: 12px; font-size: 14px; color: var(--muted); }
.pkg-for {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-alt);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.pkg-card.is-featured .pkg-for { background: #eef5ff; }
.pkg-includes { margin: 20px 0 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.pkg-lead { margin-bottom: 12px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.pkg-group { margin: 18px 0 10px; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pkg-lead + .pkg-group { margin-top: 0; }
.pkg-features { display: grid; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
.pkg-features li { display: flex; align-items: flex-start; gap: 10px; }
.pkg-features .icon { margin-top: 1px; font-size: 17px; color: var(--blue-600); stroke-width: 2.4; }
.pkg-eg { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.pkg-note { margin: -8px 0 20px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.pkg-cta { width: 100%; min-height: 48px; margin-top: auto; padding-inline: 16px; white-space: normal; text-align: center; line-height: 1.25; }
.pkg-cta.btn-ghost:hover { border-color: var(--blue-600); color: var(--blue-700); }
.pkg-cta.btn-ghost:hover .icon { transform: translateX(3px); }

/* "You own all your accounts" note under the cards */
.pkg-own {
  display: flex; align-items: flex-start; gap: 14px;
  margin-top: 24px;
  padding: 18px 20px;
  border: 1.5px solid #cfe0fb;
  border-radius: 16px;
  background: #eef5ff;
}
.pkg-own-icon {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--grad-blue);
  color: #fff;
  font-size: 19px;
  box-shadow: 0 10px 20px -12px rgba(11, 99, 246, .8);
}
.pkg-own p { font-size: 14px; color: var(--ink-soft); }
/* "Ask our team" callout with a button (e.g. branded shirts) */
.pkg-ask { align-items: center; flex-wrap: wrap; margin-top: 0; }
.pkg-ask p { flex: 1 1 280px; }
.pkg-ask .btn { flex: none; min-height: 46px; }
.pkg-fine { margin-top: 12px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.pkg-own strong { display: block; margin-bottom: 2px; font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; color: var(--ink); }

/* Sections under the cards: compare table, add-ons, care plans */
.pkg-section { margin-top: 48px; }
.pkg-section-head { margin-bottom: 18px; }
.pkg-section-head h3 { font-size: 1.35rem; font-weight: 600; }
.pkg-section-head p { margin-top: 4px; font-size: 14.5px; color: var(--muted); }

.pkg-table-wrap { overflow-x: auto; border: 1.5px solid var(--line); border-radius: 18px; background: #fff; }
.pkg-compare { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 14px; color: var(--ink-soft); }
.pkg-compare col.is-featured { background: #eef5ff; }
.pkg-compare th,
.pkg-compare td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.pkg-compare thead th { padding-block: 16px; font-family: var(--font-head); font-size: 15px; font-weight: 600; color: var(--ink); }
.pkg-compare tbody th { text-align: left; font-weight: 500; white-space: nowrap; }
.pkg-compare tbody tr:last-child > * { border-bottom: 0; }
/* Feature names stay in view while the table scrolls sideways on small screens */
.pkg-compare tbody th,
.pkg-compare thead td { position: sticky; left: 0; z-index: 1; background: #fff; }
.pkg-compare .icon { font-size: 18px; color: var(--blue-600); stroke-width: 2.4; vertical-align: middle; }
.pkg-compare .no { color: #b3bccb; }

.pkg-addons { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.pkg-addons li {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}
.pkg-addons .icon { font-size: 16px; color: var(--blue-600); stroke-width: 2.4; }

.pkg-care { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pkg-care.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.care-card { padding: 22px; border: 1.5px solid var(--line); border-radius: 18px; background: #fff; }
/* Example user journeys (steps joined by arrows) */
.pkg-flows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pkg-flows > .flow-card:only-child { grid-column: 1 / -1; }
.flow-card { padding: 22px; border: 1.5px solid var(--line); border-radius: 18px; background: #fff; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.flow li { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; color: var(--ink-soft); }
.flow li span { padding: 6px 12px; border: 1px solid #d6e4fa; border-radius: 999px; background: #eef5ff; }
.flow li + li::before { content: "→"; content: "→" / ""; color: var(--blue-600); font-weight: 600; }
.flow-note { margin-top: 14px; font-size: 13.5px; color: var(--muted); }

.care-note { margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.care-name,
.flow-title { margin: 0 0 14px; font-family: var(--font-head); font-size: 1.1rem; font-weight: 600; }

.pkg-foot {
  flex: none;
  display: flex; align-items: center; gap: 16px;
  padding: 16px 32px 20px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.pkg-foot p { font-size: 14.5px; color: var(--muted); }
.pkg-foot .btn { min-height: 48px; margin-left: auto; }

@media (max-width: 1100px) {
  .pkg-grid.is-4 { --cols: 2; row-gap: 28px; }
}

@media (max-width: 820px) {
  .pkg-grid:not(.is-4) { --cols: 1; gap: 28px; max-width: 520px; margin-inline: auto; }
  .pkg-care,
  .pkg-care.is-2,
  .pkg-flows { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 680px) {
  .pkg-grid.is-4 { --cols: 1; }
}

@media (max-width: 600px) {
  .pkg-brand { margin-bottom: 14px; }
  .pkg-sub { display: none; }
  .pkg-body { padding: 24px 20px; }
  .pkg-card { padding: 24px 20px 20px; }
  .pkg-section { margin-top: 36px; }
  .pkg-intro { margin-bottom: 30px; }
  .flow-card { padding: 20px; }
  /* All four packages fit across a phone, so nothing hides off to the side */
  .pkg-compare { min-width: 0; font-size: 12.5px; }
  .pkg-compare th,
  .pkg-compare td { padding: 10px 5px; }
  .pkg-compare thead th { font-size: 12.5px; line-height: 1.25; }
  .pkg-compare tbody th { padding-left: 12px; white-space: normal; }
  .pkg-compare .icon { font-size: 16px; }
  .care-card { padding: 20px; }
  .pkg-foot { padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); }
  .pkg-foot p { display: none; }
  .pkg-foot .btn { flex: 1; margin-left: 0; }
}

@media (max-height: 560px) {
  .pkg-brand { margin-bottom: 6px; }
  .pkg-head .service-icon { width: 34px; height: 34px; border-radius: 10px; font-size: 17px; }
  .pkg-head h2 { font-size: 1.2rem; }
  .pkg-sub { display: none; }
  .pkg-body { padding: 20px 24px; }
  .pkg-foot { padding: 8px 24px calc(8px + env(safe-area-inset-bottom)); }
  .pkg-foot .btn { min-height: 42px; }
}

/* ---------- Reveal on scroll (only when JS is running) ---------- */
/* Animates `translate` (not `transform`) so it never fights hover transforms. */
.js .reveal { opacity: 0; }
.js .reveal.is-visible { animation: reveal .8s var(--ease-out) var(--delay, 0s) both; }

@keyframes reveal {
  from { opacity: 0; translate: 0 24px; }
  to { opacity: 1; translate: 0 0; }
}

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

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) {
  /* Hero copy column is narrow here: a two-column grid keeps the checklist compact */
  .hero-checks { display: grid; grid-template-columns: repeat(2, max-content); gap: 12px 28px; }
  .process-inner { grid-template-columns: 1fr; }
  .process-inner .section-head { max-width: 560px; }

  .why-inner {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
    grid-template-areas: "intro media" "list media";
    align-items: start;
  }
  .why-media { align-self: center; }
}

/* Tablet & below: mobile nav */
@media (max-width: 960px) {
  :root { --header-h: 68px; }

  .nav-toggle { display: inline-flex; }

  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 12px var(--gutter) 24px;
    background: rgba(255, 255, 255, .8);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    backdrop-filter: blur(22px) saturate(180%);
    border-bottom: 1px solid rgba(228, 233, 241, .8);
    box-shadow: 0 24px 40px -24px rgba(11, 19, 36, .35);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .nav.is-open {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .2s ease, transform .2s ease, visibility 0s;
  }
  .nav-list { flex-direction: column; gap: 0; margin: 0; }
  .nav-list a { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid rgba(11, 19, 36, .08); }
  .nav-list a::after { display: none; }
  .nav-list a.is-active { color: var(--blue-600); }
  .nav-cta { align-self: stretch; min-height: 50px; }

  .hero-inner { grid-template-columns: 1fr; min-height: 0; gap: 56px; }
  .hero-checks { display: flex; flex-direction: row; gap: 14px 32px; }
  .ribbon--back { top: 34%; }
  .ribbon--front { top: 64%; }
  .hero-visual { justify-self: center; max-width: 560px; }

  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

  .work-inner { grid-template-columns: 1fr; }
  .work-intro { max-width: 560px; }
  .carousel-prev { left: -14px; }
  .carousel-next { right: -14px; }

  .why-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "intro intro" "media list";
    align-items: center;
  }
  .why-intro { max-width: 600px; }

  .cta-panel { grid-template-columns: 1fr; }
  .cta-panel .orb { top: 26px; right: 26px; width: 56px; }
  .cta-rings { top: -116px; right: -116px; width: 340px; height: 340px; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-nav { grid-column: 1 / -1; grid-row: 2; }
  .footer-nav ul { justify-content: flex-start; }
}

@media (max-width: 820px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 44px 24px; }
  .steps::before, .steps::after, .step-pulse { display: none; }
  .carousel-track { --per-view: 2.4; }
  .work-card { aspect-ratio: 4 / 5; }
  .is-wide .service-content { max-width: 56%; }
}

/* Phones */
@media (max-width: 600px) {
  :root { --gutter: 16px; --header-h: 64px; }

  .brand-mark { width: 35px; height: 38px; }
  .brand-name { font-size: 23px; }
  .brand-sub { font-size: 8.5px; letter-spacing: .38em; }

  .hero-inner { padding-block: 48px 64px; gap: 44px; }
  .hero-lead { font-size: 1rem; }
  .hero .btn-row { width: 100%; }
  .hero .btn-row .btn { flex: 1 1 100%; }
  .hero-checks { flex-direction: column; gap: 12px; }
  .chip { padding: 7px 12px 7px 7px; gap: 8px; border-radius: 12px; }
  .chip strong { font-size: 11.5px; }
  .chip small { font-size: 10px; }
  .chip-icon, .chip-bars { width: 28px; height: 28px; font-size: 14px; border-radius: 8px; }
  .chip-bars { padding: 6px 5px 5px; gap: 2px; }
  .laptop { left: 5%; width: 82%; }
  .hero-visual .chip-1 { left: 0; }
  .hero-visual .chip-2 { right: 0; top: 22%; }
  .hero-visual .chip-3 { left: 2%; bottom: 3%; }
  .phone-screen { border-radius: 22px; padding: 5px; }
  .phone .media { border-radius: 17px; }
  .phone-island { top: 10px; height: 9px; }

  /* Narrow screens barely show the tilt, so offset the ribbons into a converging V */
  .ribbons { height: 150px; margin-top: -20px; }
  .ribbon--back { top: 36%; padding-block: 10px; transform: translateY(-50%) rotate(4deg); }
  .ribbon--front { top: 63%; padding-block: 11px; transform: translateY(-50%) rotate(-4deg); }
  .ribbon--front li { gap: 10px; margin-right: 40px; }
  .ri-icon { width: 30px; height: 30px; font-size: 15px; border-radius: 9px; }
  .ribbon--back li { font-size: 11px; }
  .ribbon--back li::after { width: 6px; height: 6px; margin-inline: 18px; }

  .services-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 40px; }
  .is-wide { grid-column: auto; }
  .service-card { flex-direction: column; min-height: 0; padding: 26px 22px 22px; }
  .is-wide .service-content { max-width: none; }
  .service-art { position: relative; inset: auto; transform: none; }
  .art-browser { width: 88%; margin: 26px 0 -48px auto; right: auto; bottom: auto; transform: rotate(-3deg); }
  .art-brand,
  .art-ads { width: auto; max-width: 320px; margin-top: 24px; right: auto; top: auto; transform: none; }

  .carousel-track { --per-view: 1.25; --gap: 14px; }
  .work-card { aspect-ratio: 3 / 4; }
  .carousel-btn { display: none; }

  .steps { grid-template-columns: 1fr; gap: 30px; }
  .steps::before, .steps::after { display: block; top: 36px; bottom: 36px; left: 35px; right: auto; width: 2px; height: auto; }
  .steps::before { background: repeating-linear-gradient(180deg, #d3dbe8 0 6px, transparent 6px 12px); }
  .steps::after { background: linear-gradient(180deg, var(--blue-600), var(--cyan-400) 60%, var(--yellow-400)); transform-origin: top; }
  .js .steps::after { transform: scaleY(0); }
  .js .steps.is-visible::after { transform: scaleY(1); }
  .step {
    display: grid;
    grid-template-columns: 72px 1fr;
    column-gap: 20px;
    align-items: start;
    text-align: left;
  }
  .step-icon { grid-row: span 2; margin: 0; }
  .step h3 { margin: 8px 0 4px; }
  .step p { max-width: none; }

  .why-inner { grid-template-columns: 1fr; grid-template-areas: "intro" "media" "list"; }
  .why-media { max-width: 420px; margin-inline: 8px; }
  .why-media .media { aspect-ratio: 4 / 4.2; }
  .why-badge { left: -8px; bottom: 20px; }
  .why-media .orb { top: -16px; right: -6px; width: 52px; }


  .cta-panel { padding: 40px 20px 22px; border-radius: 26px; gap: 32px; }
  .cta-panel .orb { top: 18px; right: 18px; width: 42px; }
  .cta-rings { top: -82px; right: -82px; width: 250px; height: 250px; }
  .cta h2 { padding-right: 40px; }
  .cta-lead { font-size: 1.0625rem; }
  .cta-points { flex-direction: column; gap: 10px; }
  .cta .btn-row { width: 100%; }
  .cta .btn-row .btn { flex: 1 1 100%; }
  .cta-card { padding: 24px 18px 20px; border-radius: 20px; }
  .cta-chips a { font-size: 13.5px; }
  .cta-steps { gap: 6px 8px; font-size: 10.5px; letter-spacing: .1em; }
  .cta-steps li { gap: 8px; }
  .cta-steps li:not(:last-child)::after { width: 12px; }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; padding-block: 40px 28px; }
  .footer-nav { grid-row: auto; }
  .footer-nav ul { gap: 12px 24px; }
  .footer-meta { align-items: flex-start; }
  .footer-bottom-inner { flex-direction: column-reverse; align-items: flex-start; }
}
