/* ==========================================================================
   Quokka Apps - quokkapps.com.au
   Design system translated from "Quokka Apps Site v2" (Claude Design).
   Palette: sky #29ABE2 · navy #10314F · orange #F7941E on white.
   Type: Plus Jakarta Sans (display + labels) · Inter (body),
   chosen for readability over the original Jost/Marcellus pairing.
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset, variable) ---------- */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-var.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --blue: #29ABE2;          /* brand sky: fills, decorative */
  --blue-ink: #1279AC;      /* accessible blue for text links (AA on white) */
  --navy: #10314F;
  --navy-deep: #0B2439;
  --orange: #F7941E;        /* fills and buttons only */
  --orange-ink: #B35600;    /* accessible orange for small text (AA on white) */
  --orange-soft: #FFB45C;   /* readable orange on dark bands */
  --slate: #42586D;         /* body copy (darkened for readability) */
  --mist: #F2FAFE;          /* pale sky background */
  --line: rgba(16, 49, 79, 0.10);
  --line-soft: rgba(16, 49, 79, 0.08);
  --font-display: 'Plus Jakarta Sans', 'Avenir Next', 'Segoe UI', sans-serif;
  --font-kicker: 'Plus Jakarta Sans', 'Avenir Next', 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --radius-card: 20px;
  --radius-band: 32px;
  --container: 1240px;
  --pad-x: clamp(20px, 4vw, 36px);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: #FFFFFF; }
body {
  font-family: var(--font-body);
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
main { flex: 1; }
a { color: var(--blue-ink); text-decoration: none; }
a:hover { color: var(--navy); }
::selection { background: rgba(41, 171, 226, 0.20); }
img { max-width: 100%; height: auto; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; margin: 0; }
p { margin: 0; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 18px;
  border-radius: 0 0 12px 0; font-family: var(--font-display);
}
.skip-link:focus { left: 0; color: #fff; }

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

.container { max-width: var(--container); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .container {
  padding-top: 12px; padding-bottom: 12px; min-height: 52px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 16px;
}
.site-header .logo img { height: clamp(36px, 5vw, 44px); width: auto; display: block; }
.site-nav {
  order: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 2px;
  flex: 1 1 auto; justify-content: center; min-width: min(100%, 280px);
}
.nav-link {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(14px, 1.8vw, 15.5px);
  padding: 8px clamp(10px, 1.5vw, 16px);
  border-radius: 999px; white-space: nowrap; color: var(--slate);
}
.nav-link:hover { color: var(--blue-ink); }
.nav-link[aria-current="page"] { color: var(--navy); background: rgba(41, 171, 226, 0.12); }
/* Co-Build is always highlighted as an outlined pill */
.nav-link[href="/co-build/"] {
  color: var(--blue-ink);
  background: rgba(41, 171, 226, 0.08);
  box-shadow: inset 0 0 0 1.5px rgba(18, 121, 172, 0.5);
}
.nav-link[href="/co-build/"]:hover { color: var(--navy); background: rgba(41, 171, 226, 0.16); }
.site-header .btn { order: 3; }

/* ---------- Mobile nav (toggle + overlay built by main.js) ---------- */
.nav-toggle, .mm-close {
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: none; border: none; border-radius: 12px;
  color: var(--navy); cursor: pointer;
}
.nav-toggle { display: none; order: 3; }
@media (max-width: 767px) {
  .site-header .btn { display: none; }
  .has-mobile-nav .site-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header .container { flex-wrap: nowrap; }
}
.menu-open, .menu-open body { overflow: hidden; }
.mobile-menu {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(11, 36, 57, 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  padding: 14px; overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
@media (min-width: 768px) { .mobile-menu { display: none; } }
.mm-top {
  display: flex; align-items: center; justify-content: space-between;
  background: #FFFFFF; border-radius: 999px;
  padding: 10px 14px 10px 20px;
  box-shadow: 0 10px 30px rgba(11, 36, 57, 0.18);
}
.mm-top img { height: 38px; width: auto; display: block; }
.mm-close { display: inline-flex; border-radius: 999px; }
.mm-panel {
  display: flex; flex-direction: column; gap: 2px;
  background: #FFFFFF; border-radius: 26px;
  margin-top: 12px; padding: 16px;
  box-shadow: 0 10px 30px rgba(11, 36, 57, 0.18);
}
.mm-link {
  display: block; padding: 15px 14px; border-radius: 14px;
  font-family: var(--font-display); font-weight: 700; font-size: 19px;
  color: var(--navy);
}
.mm-link[aria-current] { background: rgba(41, 171, 226, 0.12); }
.mm-link[href="/co-build/"] { color: var(--blue-ink); }
/* Layout only — the button skin comes from .btn.btn-lg (set in main.js) */
.mm-panel .mm-cta { display: block; margin-top: 14px; text-align: center; }
.mm-top, .mm-panel { animation: mm-in 0.25s ease both; }
@keyframes mm-in { from { opacity: 0; transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) {
  .mm-top, .mm-panel { animation: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(14px, 1.7vw, 15.5px); letter-spacing: 0.01em;
  color: #FFFFFF; background: var(--orange);
  border: none; border-radius: 999px;
  padding: 12px clamp(18px, 2.5vw, 28px);
  cursor: pointer; white-space: nowrap;
  box-shadow: 0 2px 0 rgba(16, 49, 79, 0.15);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn:hover { background: var(--navy); color: #FFFFFF; }
.btn:active { transform: translateY(1px); }
.btn-lg { font-size: 17px; padding: 16px 32px; box-shadow: 0 3px 0 rgba(16, 49, 79, 0.18); }
.btn-glow { box-shadow: 0 0 0 6px rgba(247, 148, 30, 0.18); }
.btn-light { background: #FFFFFF; color: var(--navy); box-shadow: none; }
.btn-light:hover { background: var(--orange); color: #FFFFFF; }

.link-arrow {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(15px, 1.8vw, 17px); color: var(--blue-ink);
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
}
.link-arrow:hover { color: var(--navy); }
.link-arrow .arrow { font-size: 1.2em; line-height: 1; }
.on-dark .link-arrow { color: var(--blue); }
.on-dark .link-arrow:hover { color: #FFFFFF; }

/* ---------- Kickers & headings ---------- */
.eyebrow {
  font-family: var(--font-kicker); font-weight: 700;
  font-size: 13px; letter-spacing: 0.11em;
  color: var(--orange-ink);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(30px, 4vw, 40px);
  letter-spacing: -0.015em;
}
.page-title {
  font-size: clamp(38px, 5.5vw, 58px);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  text-wrap: balance;
}
.lede {
  font-size: clamp(16px, 2vw, 18px); color: var(--slate);
  max-width: 620px; line-height: 1.65; text-wrap: pretty;
}

/* ---------- Page hero (subpage headers) ---------- */
.page-hero { background: linear-gradient(180deg, var(--mist) 0%, #FFFFFF 100%); }
.page-hero .container { padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(40px, 5vw, 64px); }

/* ---------- Home hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--mist) 0%, #FFFFFF 100%);
}
.hero::before {
  content: ""; position: absolute; top: -180px; right: -160px;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(41,171,226,0.12), rgba(41,171,226,0.04) 60%, transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(16, 49, 79, 0.10) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 80% 20%, black, transparent);
  mask-image: radial-gradient(ellipse 70% 60% at 80% 20%, black, transparent);
}
.hero-decor span { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-decor .orb-warm {
  bottom: -160px; left: -140px; width: 460px; height: 460px;
  background: radial-gradient(circle at 60% 40%, rgba(247, 148, 30, 0.13), transparent 65%);
}
.hero-decor .fleck-1 {
  top: 16%; left: 46%; width: 13px; height: 13px;
  background: rgba(41, 171, 226, 0.45);
  animation: qa-drift 6s ease-in-out infinite;
}
.hero-decor .fleck-2 {
  bottom: 26%; left: 49%; width: 22px; height: 22px;
  border: 2px solid rgba(247, 148, 30, 0.45);
  animation: qa-drift 8s ease-in-out 1.2s infinite;
}
.hero .container {
  position: relative; z-index: 1;
  padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: clamp(40px, 6vw, 72px); align-items: center;
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px;
  border: 1px solid rgba(41, 171, 226, 0.35); background: #FFFFFF;
  border-radius: 999px; padding: 8px 18px;
}
.hero-pill .dot {
  position: relative;
  width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex-shrink: 0;
}
/* Pulse ring on a pseudo-element: transform/opacity composite, box-shadow repaints */
.hero-pill .dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: rgba(41, 171, 226, 0.40);
  animation: hero-dot 2.6s ease-out infinite;
}
@keyframes hero-dot {
  0% { transform: scale(1); opacity: 1; }
  70%, 100% { transform: scale(3); opacity: 0; }
}
.hero-pill span:last-child {
  font-family: var(--font-kicker); font-weight: 600;
  font-size: clamp(11px, 1.4vw, 12.5px);
  letter-spacing: 0.1em; color: var(--navy);
}
.hero h1 {
  font-size: clamp(40px, 6vw, 68px); line-height: 1.04;
  letter-spacing: -0.02em; margin: 0 0 24px; text-wrap: balance;
}
.hero h1 .hl, .hero h1 .hl-plain { color: var(--blue); }
.hero h1 .hl { position: relative; }
/* Hand-drawn wavy underline, draws in after the hero entrance */
.hero h1 .hl::after {
  content: ""; position: absolute; left: -0.02em; right: 0; bottom: -0.14em;
  height: 0.18em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 14' preserveAspectRatio='none'%3E%3Cpath d='M4 9 C 45 3, 95 11, 140 7 S 205 4, 216 7' fill='none' stroke='%238ED2F0' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  transform: scaleX(0); transform-origin: left;
  animation: hl-draw 0.55s cubic-bezier(0.33, 1, 0.68, 1) 1s forwards;
}
@keyframes hl-draw { to { transform: scaleX(1); } }
.hero .sub {
  font-size: clamp(16px, 2vw, 19px); line-height: 1.65; color: var(--slate);
  max-width: 500px; margin: 0 0 36px; text-wrap: pretty;
}
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.hero-founders {
  margin-top: 30px; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px;
  border: 1px solid rgba(247, 148, 30, 0.5); background: rgba(247, 148, 30, 0.08);
  border-radius: 999px; padding: 10px 18px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.hero-founders:hover { border-color: var(--orange); background: rgba(247, 148, 30, 0.14); }
.hero-founders .tag { font-family: var(--font-kicker); font-weight: 700; font-size: 11px; letter-spacing: 0.09em; color: var(--orange-ink); }
.hero-founders .txt { font-size: 14px; font-weight: 500; color: var(--navy); font-family: var(--font-body); }
.hero-founders .arrow { color: var(--orange-ink); font-weight: 600; }

/* ---------- Hero figure (home) ---------- */
.hero-figure { position: relative; width: 100%; max-width: 560px; margin: 0 auto; }
.hero-figure img {
  position: relative; z-index: 1;
  width: 100%; height: auto; display: block;
  animation: qa-drift 7s ease-in-out infinite;
}
.hero-figure .fig-glow, .hero-figure .fig-ring {
  position: absolute; top: 50%; left: 50%; aspect-ratio: 1;
  border-radius: 50%; pointer-events: none;
  transform: translate(-50%, -50%);
}
.hero-figure .fig-glow {
  width: 86%;
  background: radial-gradient(circle, rgba(41, 171, 226, 0.14), transparent 65%);
}
.hero-figure .fig-ring {
  width: 106%;
  border: 2px dashed rgba(41, 171, 226, 0.30);
  animation: fig-spin 70s linear infinite;
}
@keyframes fig-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ---------- Circle compositions (brand mark motif) ---------- */
.circles { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1 / 1; margin: 0 auto; }
.circles .c { position: absolute; border-radius: 50%; }
.circles .c1 { top: 7%; right: 7%; width: 61%; aspect-ratio: 1; background: var(--blue); animation: qa-drift 7s ease-in-out infinite; }
.circles .c3 { bottom: 9%; left: 9%; width: 37%; aspect-ratio: 1; background: var(--orange); opacity: 0.92; animation: qa-drift 9s ease-in-out infinite; }
.circles .c4 { bottom: 24%; right: 28%; width: 20%; aspect-ratio: 1; border: 3px solid var(--navy); background: #FFFFFF; animation: qa-drift 8s ease-in-out infinite; }
.circles-sm { max-width: 380px; aspect-ratio: 4 / 3; }
.circles-sm .c1 { top: 7%; left: 10%; right: auto; width: 42%; }
.circles-sm .c3 { bottom: 7%; right: 15%; left: auto; width: 29%; }
.circles-sm .c4 { top: 36%; right: 38%; bottom: auto; width: 16%; }
@keyframes qa-drift {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

@keyframes qa-spin { to { transform: rotate(360deg); } }

/* Centered, width-capped figure wrapper (case-study heroes etc.) */
.fig-wrap { width: 100%; max-width: var(--fig-max, 560px); margin: 0 auto; }
.fig-caption {
  text-align: center; margin-top: 14px;
  font-family: var(--font-kicker); font-weight: 600;
  font-size: 11.5px; letter-spacing: 0.12em; color: var(--slate);
}

/* ---------- Sections ---------- */
.section .container { padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(56px, 7vw, 88px); }
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 16px 24px; margin-bottom: clamp(32px, 4vw, 48px);
}

/* ---------- Service cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.svc-card {
  border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: clamp(22px, 3vw, 30px); background: #FFFFFF;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  color: var(--navy);
}
.svc-card:hover {
  border-color: var(--blue);
  box-shadow: 0 12px 32px rgba(41, 171, 226, 0.14);
  transform: translateY(-3px);
  color: var(--navy);
}
.svc-card .icon-dot {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-bottom: 6px;
}
.svc-card .icon-dot span { width: 14px; height: 14px; border-radius: 50%; display: block; }
.svc-card h3 { font-size: 20px; letter-spacing: -0.01em; }
.svc-card p { font-size: 15.5px; line-height: 1.65; color: var(--slate); }
.svc-card .kicker {
  font-family: var(--font-kicker); font-weight: 700;
  font-size: 11.5px; letter-spacing: 0.09em;
  color: var(--blue-ink); margin-top: auto; padding-top: 8px;
}
/* Spotlight service card — Co-Build stands apart from the blue siblings */
.svc-card--feature {
  position: relative;
  border-color: rgba(247, 148, 30, 0.45);
  background: radial-gradient(130% 110% at 100% 0%, rgba(247, 148, 30, 0.12), rgba(41, 171, 226, 0.06) 52%, #FFFFFF 100%);
  box-shadow: 0 16px 44px rgba(16, 49, 79, 0.12);
}
.svc-card--feature .svc-illo { background: linear-gradient(160deg, #FFF3E4, #FFFFFF); }
.svc-card--feature .kicker { color: var(--orange-ink); }
.svc-card--feature:hover {
  border-color: var(--orange);
  box-shadow: 0 22px 54px rgba(247, 148, 30, 0.24);
}
.tint-blue { background: rgba(41, 171, 226, 0.14); }
.tint-orange { background: rgba(247, 148, 30, 0.14); }
.tint-navy { background: rgba(16, 49, 79, 0.10); }
.fill-blue { background: var(--blue); }
.fill-orange { background: var(--orange); }
.fill-navy { background: var(--navy); }

/* ---------- Own-product section ---------- */
.product-split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(36px, 5vw, 72px); align-items: center;
}
.product-tile {
  position: relative; overflow: hidden;
  border: 1px solid rgba(41, 171, 226, 0.30); border-radius: var(--radius-card);
  background: linear-gradient(160deg, #E1F2FC, #FFFFFF 72%);
  padding: clamp(28px, 4vw, 40px);
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 22px 54px rgba(16, 49, 79, 0.13);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 68px rgba(41, 171, 226, 0.24);
}
.product-tile::before {
  content: ""; position: absolute; top: -70px; right: -70px;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(41, 171, 226, 0.16);
}
.product-tile::after {
  content: ""; position: absolute; bottom: -50px; right: 60px;
  width: 120px; height: 120px; border-radius: 50%;
  border: 2px dashed rgba(41, 171, 226, 0.35);
}
.product-tile .kicker {
  font-family: var(--font-kicker); font-weight: 700; font-size: 11.5px; letter-spacing: 0.1em;
  color: var(--blue-ink); align-self: flex-start; position: relative; z-index: 1;
  background: rgba(41, 171, 226, 0.16); padding: 6px 12px; border-radius: 999px;
}
.product-tile h3 { font-size: clamp(24px, 3vw, 30px); }
.product-tile p { font-size: 15.5px; line-height: 1.65; color: var(--slate); max-width: 44ch; position: relative; z-index: 1; }
/* Media variant: image spans the full card width, text lives in a padded body */
.product-tile--media { padding: 0; gap: 0; }
.product-tile__media { display: block; width: 100%; height: auto; position: relative; z-index: 1; }
.product-tile--media .product-tile__body {
  display: flex; flex-direction: column; gap: 14px;
  padding: clamp(28px, 4vw, 40px); position: relative; z-index: 1;
}
.prose { display: flex; flex-direction: column; gap: 22px; font-size: 17px; line-height: 1.75; color: var(--slate); }
.prose p { text-wrap: pretty; }
.prose strong { color: var(--navy); }

/* ---------- Co-build band ---------- */
.band-wrap { padding: clamp(24px, 4vw, 56px) clamp(16px, 3vw, 40px); background: #FFFFFF; }
.band {
  max-width: 1360px; margin: 0 auto;
  background:
    radial-gradient(ellipse 60% 85% at 88% 12%, rgba(41, 171, 226, 0.16), transparent 62%),
    radial-gradient(ellipse 52% 70% at 6% 96%, rgba(247, 148, 30, 0.13), transparent 60%),
    var(--navy-deep);
  color: #FFFFFF;
  border-radius: var(--radius-band); position: relative; overflow: hidden;
  box-shadow: 0 40px 90px rgba(11, 36, 57, 0.35);
}
.band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
}
.band::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  border-radius: inherit;
  border: 1px solid rgba(41, 171, 226, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.band .orb-1 {
  position: absolute; top: 50%; right: -14%; transform: translateY(-50%);
  width: min(58vw, 780px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #1A5E8A, var(--navy) 70%);
  border: 1px solid rgba(41, 171, 226, 0.25);
}
.band .orb-2 {
  position: absolute; top: 50%; right: -4%; transform: translateY(-50%);
  width: min(38vw, 500px); aspect-ratio: 1; border-radius: 50%;
  border: 2px dashed rgba(41, 171, 226, 0.35);
  animation: band-spin 80s linear infinite;
}
.band .orb-3 {
  position: absolute; top: -60px; left: 32%; width: 140px; height: 140px; border-radius: 50%;
  background: var(--orange); opacity: 0.9;
  box-shadow: 0 0 70px 12px rgba(247, 148, 30, 0.30);
  animation: qa-drift 9s ease-in-out infinite;
}
.band .orb-4 { position: absolute; bottom: -70px; left: 12%; width: 180px; height: 180px; border-radius: 50%; border: 2px solid rgba(247, 148, 30, 0.4); }
@keyframes band-spin {
  from { transform: translateY(-50%) rotate(0deg); }
  to { transform: translateY(-50%) rotate(360deg); }
}
.band .ghost {
  position: absolute; bottom: -1.5vw; left: 0; right: 0;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(80px, 12vw, 190px); line-height: 1; letter-spacing: 0.02em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
  white-space: nowrap; overflow: hidden; pointer-events: none;
  animation: band-ghost 28s ease-in-out infinite alternate;
}
@keyframes band-ghost {
  from { transform: translateX(0); }
  to { transform: translateX(-2.5%); }
}
.band-inner {
  position: relative; z-index: 1;
  padding: clamp(56px, 7vw, 96px) clamp(24px, 5vw, 72px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(40px, 5vw, 72px); align-items: center;
}
.chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-bottom: 26px; }
.chip-solid {
  font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 0.07em;
  color: var(--navy); background: var(--orange); border-radius: 999px; padding: 6px 14px;
}
.chip-status {
  font-family: var(--font-display); font-weight: 500; font-size: 12px; letter-spacing: 0.03em;
  padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.85); display: inline-flex; align-items: center; gap: 7px;
}
.chip-status .dot { width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; animation: band-pulse 2.4s ease-out infinite; }
@keyframes band-pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
.band .kicker-band { font-family: var(--font-kicker); font-weight: 700; font-size: 13px; letter-spacing: 0.12em; color: var(--blue); margin-bottom: 16px; }
.band h2 {
  font-size: clamp(36px, 4.8vw, 57px); line-height: 1.06;
  letter-spacing: -0.018em; margin: 0 0 22px; text-wrap: balance;
}
.band h2 .grad {
  background: linear-gradient(90deg, var(--orange), #FFD9A8, var(--orange), var(--orange-soft));
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: band-shimmer 7s ease-in-out infinite;
}
@keyframes band-shimmer {
  0%, 100% { background-position: 0% 0; }
  50% { background-position: 100% 0; }
}
.band .body {
  font-size: clamp(15px, 1.8vw, 17px); line-height: 1.7;
  color: rgba(255, 255, 255, 0.72); margin: 0 0 32px; text-wrap: pretty;
}
.band-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.band .btn-glow { animation: band-glow 3.5s ease-in-out infinite; }
@keyframes band-glow {
  0%, 100% { box-shadow: 0 0 0 6px rgba(247, 148, 30, 0.18); }
  50% { box-shadow: 0 0 0 13px rgba(247, 148, 30, 0.09); }
}
.highlights { display: flex; flex-direction: column; gap: 14px; max-width: 480px; width: 100%; margin: 0 auto; }
.highlight {
  display: flex; gap: 18px; align-items: flex-start;
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.14); border-left: 3px solid var(--orange);
  border-radius: 16px; padding: 20px 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.highlight:hover {
  background: rgba(255, 255, 255, 0.10); transform: translateX(6px);
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 10px 34px rgba(4, 16, 28, 0.35);
}
.highlight .num { font-family: var(--font-kicker); font-weight: 600; font-size: 16px; color: var(--orange); flex-shrink: 0; padding-top: 1px; }
.highlight h3 { font-size: 17px; margin-bottom: 5px; }
.highlight p { font-size: 14.5px; line-height: 1.62; color: rgba(255, 255, 255, 0.72); }

/* ---------- Process ---------- */
.process-head { max-width: 640px; margin: 0 auto clamp(44px, 6vw, 68px); text-align: center; }
/* Typography comes from .lede (set alongside in the HTML) */
.process-lede { margin: 14px auto 0; text-wrap: balance; }

.process-steps {
  --pgap: clamp(26px, 4vw, 52px);
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--pgap);
}
.pstep {
  --accent: var(--blue); --accent-ink: var(--blue-ink);
  position: relative; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  padding: 4px 6px 0;
}
.pstep.acc-orange { --accent: var(--orange); --accent-ink: var(--orange-ink); }
.pstep.acc-navy   { --accent: var(--navy);   --accent-ink: var(--navy); }

/* connector line flowing from each node to the next (desktop only) */
.pstep::before {
  content: ""; position: absolute; top: 33px; z-index: 0;
  left: calc(50% + 40px); width: calc(100% + var(--pgap) - 80px); height: 2px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 60%, transparent), var(--line) 85%);
  border-radius: 2px;
}
.pstep:last-child::before { display: none; }

/* faint watermark numeral for editorial depth */
.pstep-num {
  position: absolute; top: -20px; right: 6px; z-index: 0; pointer-events: none;
  font-family: var(--font-display); font-weight: 800; line-height: 1;
  font-size: clamp(72px, 9vw, 104px); letter-spacing: -0.03em;
  color: color-mix(in srgb, var(--accent) 12%, transparent);
}

.pstep-node {
  position: relative; z-index: 1;
  width: 66px; height: 66px; border-radius: 20px;
  display: grid; place-items: center;
  color: var(--accent-ink);
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 22%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.pstep-ico { width: 30px; height: 30px; }
.pstep:hover .pstep-node { transform: translateY(-5px); box-shadow: 0 16px 34px color-mix(in srgb, var(--accent) 30%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.6); }

.pstep-kicker {
  margin-top: 22px;
  font-family: var(--font-kicker); font-weight: 700; font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ink);
}
.pstep h3 { font-size: 23px; margin: 8px 0 0; }
.pstep p { margin: 12px 0 0; max-width: 34ch; font-size: 15.5px; line-height: 1.65; color: var(--slate); }

.pstep-meta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  padding: 7px 15px 7px 12px; border-radius: 999px;
  font-family: var(--font-kicker); font-weight: 600; font-size: 12.5px;
  color: var(--navy);
  background: color-mix(in srgb, var(--accent) 8%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
}
.pstep-check { width: 15px; height: 15px; color: var(--accent-ink); flex-shrink: 0; }

@media (max-width: 767px) {
  .process-steps { grid-template-columns: 1fr; gap: clamp(30px, 8vw, 44px); }
  .pstep::before { display: none; }
  .pstep-num { top: -14px; }
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(180deg, #FFFFFF 0%, var(--mist) 100%);
  border-top: 1px solid rgba(16, 49, 79, 0.06);
}
.cta-band .container { padding-top: clamp(64px, 8vw, 100px); padding-bottom: clamp(64px, 8vw, 100px); text-align: center; }
.cta-dots { display: flex; justify-content: center; gap: 10px; margin-bottom: 28px; }
.cta-dots span { width: 12px; height: 12px; border-radius: 50%; }
.cta-band h2 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.02em; margin: 0 0 18px; }
.cta-band p { font-size: clamp(16px, 2vw, 18px); color: var(--slate); margin: 0 0 36px; }

/* ---------- Services page: detail rows ---------- */
.svc-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: clamp(20px, 3vw, 44px);
  padding: clamp(32px, 4vw, 48px) 0;
  border-top: 1px solid var(--line);
}
.svc-row h2 { font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.01em; margin: 0 0 14px; }
.svc-row .desc { font-size: 16px; line-height: 1.7; color: var(--slate); text-wrap: pretty; }
.svc-points { display: flex; flex-direction: column; gap: 11px; padding-top: 10px; }
.svc-points li { display: flex; gap: 12px; align-items: baseline; font-size: 15.5px; line-height: 1.55; color: var(--navy); }
.svc-points { list-style: none; margin: 0; padding-left: 0; }
.svc-points .pt-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; position: relative; top: -1px; }

/* Services page: illustration panel per service row (reuses the home-page SVGs) */
.svc-row { align-items: center; }
.svc-copy .desc { margin-top: 14px; }
.svc-copy .svc-points { margin-top: 22px; }
.svc-illo-panel {
  border: 1px solid var(--line-soft); border-radius: 18px;
  background: linear-gradient(160deg, var(--mist), #FFFFFF);
  padding: clamp(24px, 4vw, 44px) clamp(24px, 4vw, 52px);
  display: flex; align-items: center; justify-content: center;
}
.svc-illo-panel .illo { max-width: 360px; }
.svc-illo-panel.tint-b { background: linear-gradient(160deg, rgba(41, 171, 226, 0.13), #FFFFFF); border-color: rgba(41, 171, 226, 0.22); }
.svc-illo-panel.tint-o { background: linear-gradient(160deg, rgba(247, 148, 30, 0.15), #FFFFFF); border-color: rgba(247, 148, 30, 0.28); }
.svc-illo-panel.tint-n { background: linear-gradient(160deg, rgba(16, 49, 79, 0.10), #FFFFFF); border-color: rgba(16, 49, 79, 0.18); }
.offer-box {
  margin-top: 20px; border: 1px solid rgba(247, 148, 30, 0.45);
  background: rgba(247, 148, 30, 0.07); border-radius: 14px; padding: 18px 20px;
}
.offer-box .offer-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 8px; }
.offer-box .badge {
  font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: 0.07em;
  color: #FFFFFF; background: var(--orange-ink); border-radius: 999px; padding: 4px 11px;
}
.offer-box .offer-title { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--navy); }
.offer-box p { font-size: 15px; line-height: 1.62; color: var(--slate); }

/* ---------- Services page: co-build detail ---------- */
.cobuild-detail {
  background:
    linear-gradient(95deg, rgba(16, 49, 79, 0.93) 0%, rgba(16, 49, 79, 0.84) 62%, rgba(11, 36, 57, 0.55) 100%),
    url("/assets/cobuild-bg.jpg") center / cover no-repeat var(--navy);
  color: #FFFFFF;
  border-radius: 24px; padding: clamp(28px, 5vw, 60px);
  margin-top: 28px; position: relative; overflow: hidden;
}
.cobuild-detail::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}
.cobuild-detail > div { position: relative; }
.cobuild-detail .kicker-band { font-family: var(--font-kicker); font-weight: 700; font-size: 12.5px; letter-spacing: 0.1em; color: var(--orange); }
.cobuild-detail h2 {
  font-size: clamp(26px, 3.5vw, 36px); letter-spacing: -0.015em;
  margin: 0 0 20px; text-wrap: balance;
}
.cobuild-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(24px, 3.5vw, 44px); align-items: center;
}
.cobuild-grid .body { font-size: 16px; line-height: 1.75; color: rgba(255, 255, 255, 0.72); text-wrap: pretty; }
.cobuild-grid .body a { color: var(--orange-soft); }
.cobuild-grid .body a:hover { color: #FFFFFF; }
/* Left column (text + CTAs) centers vertically against the taller card stack */
.cobuild-lead .cobuild-ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 16px 26px; align-items: center; }
/* Points are the home band's .highlight cards (class set in the HTML) with bare text content */
.cobuild-points { display: flex; flex-direction: column; gap: 14px; list-style: none; margin: 0; padding: 0; }
.cobuild-points .highlight { align-items: baseline; font-size: 15px; color: rgba(255, 255, 255, 0.87); line-height: 1.6; }

/* ---------- FAQ ---------- */
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(16.5px, 2vw, 18px); color: var(--navy);
  padding: 20px 4px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-toggle {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--blue-ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; line-height: 1; transition: transform 0.2s ease;
}
.faq-item[open] summary .faq-toggle { transform: rotate(45deg); background: rgba(41, 171, 226, 0.12); }
.faq-item .faq-body { padding: 0 4px 22px; font-size: 16px; line-height: 1.7; color: var(--slate); }

/* ---------- Work page ---------- */
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 26px; }
.work-card { display: flex; flex-direction: column; gap: 16px; }
.work-thumb {
  height: 270px; border-radius: var(--radius-card); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.work-thumb::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(16, 49, 79, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
}
.work-thumb span { position: relative; font-family: var(--font-kicker); font-weight: 600; font-size: 12.5px; color: var(--slate); letter-spacing: 0.08em; }
.work-thumb__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work-thumb__media--contain { object-fit: contain; padding: 14px; }
.work-thumb.bg-blue { background: linear-gradient(160deg, #EAF6FC, #FFFFFF); }
.work-thumb.bg-orange { background: linear-gradient(160deg, #FDF3E6, #FFFFFF); }
.work-thumb.bg-navy { background: linear-gradient(160deg, #EDF1F5, #FFFFFF); }
.work-card h3 { font-size: 20px; letter-spacing: -0.01em; }
.work-card p { font-size: 15px; color: var(--slate); line-height: 1.62; }

.feature-tile {
  border: 1px solid var(--line); border-radius: var(--radius-band);
  background: linear-gradient(160deg, #EAF6FC, #FFFFFF);
  padding: clamp(28px, 5vw, 56px);
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: clamp(28px, 4vw, 56px); align-items: center;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.feature-tile::before {
  content: ""; position: absolute; top: -90px; right: -90px;
  width: 320px; height: 320px; border-radius: 50%; background: rgba(41, 171, 226, 0.14);
}
.feature-tile > * { position: relative; }

/* ---------- QuokkaGuide product banner ---------- */
.qg-banner {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius-card); border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(16, 49, 79, 0.10);
}

/* ---------- About page ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(28px, 4vw, 44px); }
.step { display: flex; flex-direction: column; gap: 14px; border-top: 3px solid var(--line); padding-top: 24px; }
.step.rule-blue { border-top-color: var(--blue); }
.step.rule-orange { border-top-color: var(--orange); }
.step.rule-navy { border-top-color: var(--navy); }
.step .num { font-family: var(--font-kicker); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; color: var(--blue-ink); }
.step h3 { font-size: 23px; }
.step p { font-size: 15.5px; line-height: 1.65; color: var(--slate); }
.about-split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: clamp(36px, 5vw, 72px); margin-bottom: clamp(48px, 6vw, 80px); align-items: center;
}
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 24px; }
.principle {
  border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: clamp(24px, 3vw, 32px); background: #FFFFFF;
  display: flex; gap: 20px; transition: border-color 0.2s ease;
}
.principle:hover { border-color: var(--blue); }
.principle .p-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; margin-top: 6px; }
.principle h3 { font-size: 20px; margin-bottom: 10px; }
.principle p { font-size: 15.5px; line-height: 1.65; color: var(--slate); }

/* ---------- Contact page ---------- */
.contact-wrap { background: linear-gradient(180deg, var(--mist) 0%, #FFFFFF 60%); }
.contact-wrap .container {
  padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(56px, 7vw, 88px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(40px, 6vw, 80px); align-items: start;
}
.contact-meta { display: flex; flex-direction: column; gap: 16px; font-size: 15px; color: var(--navy); }
.contact-meta .row { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.contact-meta .label {
  font-family: var(--font-kicker); font-weight: 700; font-size: 11.5px; letter-spacing: 0.09em;
  color: var(--blue-ink); width: 76px; flex-shrink: 0;
}
.contact-form {
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(24px, 4vw, 44px);
  display: flex; flex-direction: column; gap: 22px;
  box-shadow: 0 20px 50px rgba(16, 49, 79, 0.07);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .check-group .group-label { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.field .optional { font-weight: 400; font-size: 13px; color: var(--slate); }
.field .req { color: var(--orange-ink); }
.field input, .field textarea, .field select {
  font-family: var(--font-body); font-size: 15px;
  padding: 14px 16px; border: 1px solid rgba(16, 49, 79, 0.24);
  border-radius: 12px; background: #F8FCFE; color: var(--navy);
  width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: #5B7186; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.field textarea { resize: vertical; }
.field select { cursor: pointer; }
.field select:invalid { color: #5B7186; } /* muted while on the placeholder option */

/* Contact-preference chips (checkboxes styled as selectable pills) */
.check-group { display: flex; flex-direction: column; gap: 12px; }
.pref-options { display: flex; gap: 12px; flex-wrap: wrap; }
.pref {
  display: flex; align-items: center; gap: 10px; flex: 1 1 0; min-width: 160px;
  padding: 13px 18px; border: 1px solid rgba(16, 49, 79, 0.24);
  border-radius: 12px; background: #F8FCFE; color: var(--navy);
  font-size: 15px; cursor: pointer; user-select: none;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.pref svg { width: 18px; height: 18px; color: var(--slate); flex: none; transition: color .15s ease; }
/* Visible tick-box so it reads as a multi-select checkbox, not a single-choice button. */
.pref::before {
  content: ""; flex: none; width: 20px; height: 20px;
  border: 1.5px solid rgba(16, 49, 79, 0.35); border-radius: 6px; background: #FFFFFF;
  transition: background .15s ease, border-color .15s ease;
}
/* Hide the native box but keep it focusable/accessible; the pill is the affordance. */
.pref input { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }
.pref:hover { border-color: var(--blue); }
.pref:has(input:checked) { border-color: var(--blue); background: #EAF6FC; box-shadow: inset 0 0 0 1px var(--blue); font-weight: 600; }
.pref:has(input:checked)::before {
  border-color: var(--blue);
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.pref:has(input:checked) svg { color: var(--blue); }
.pref:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.form-note { font-size: 13px; color: var(--slate); text-align: center; }
.form-status { font-size: 14px; color: var(--navy); text-align: center; display: none; }
.form-status.show { display: block; }
.form-status.success {
  padding: 20px 22px;
  border-radius: 12px;
  border: 1px solid #B7E4C7;
  background: #EBFBF0;
  color: #14532D;
  font-size: 15px;
  line-height: 1.5;
}
/* Success state: keep only the confirmation, drop the fields and helper text. */
.contact-form.form-sent .field,
.contact-form.form-sent .check-group,
.contact-form.form-sent > button,
.contact-form.form-sent .form-note { display: none; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); background: #FFFFFF; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px 48px;
  padding: 48px 0 40px;
}
.footer-brand img { height: 36px; width: auto; display: block; }
.footer-brand .footer-locale { margin-top: 14px; }
.footer-brand p { margin-top: 12px; max-width: 42ch; font-size: 14px; line-height: 1.65; color: var(--slate); }
.footer-locale { font-family: var(--font-kicker); font-weight: 600; font-size: 11.5px; letter-spacing: 0.1em; color: var(--slate); }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.footer-social a:hover { transform: translateY(-2px); opacity: 0.88; }
.footer-social svg { width: 20px; height: 20px; fill: #FFFFFF; }
.social-facebook { background: #1877F2; }
.social-instagram { background: radial-gradient(circle at 30% 110%, #FDF497 0%, #FD5949 45%, #D6249F 60%, #285AEB 90%); }
.social-youtube { background: #FF0000; }
.footer-col { display: flex; flex-direction: column; gap: 10px; align-content: start; }
.footer-heading {
  font-family: var(--font-kicker); font-weight: 700; font-size: 11.5px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy);
  margin-bottom: 4px;
}
.footer-col a, .footer-nav a { font-size: 14px; color: var(--slate); }
.footer-col a:hover, .footer-nav a:hover { color: var(--blue-ink); }
.site-footer .bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px 24px; flex-wrap: wrap;
  border-top: 1px solid var(--line-soft);
  padding: 18px 0 32px;
  font-size: 13.5px; color: var(--slate);
}
/* ponytail: .footer-nav kept only for the slim 404 footer */
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-nav a { font-size: 13.5px; }
@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding: 40px 0 32px; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- Hero entrance (plays once on load) ---------- */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
.hero-enter > * { animation: rise-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) backwards; }
.hero-enter > *:nth-child(1) { animation-delay: 0.05s; }
.hero-enter > *:nth-child(2) { animation-delay: 0.14s; }
.hero-enter > *:nth-child(3) { animation-delay: 0.23s; }
.hero-enter > *:nth-child(4) { animation-delay: 0.32s; }
.hero-enter > *:nth-child(5) { animation-delay: 0.41s; }
@keyframes scale-in {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: none; }
}
.hero-visual-enter { animation: scale-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s backwards; }

/* ---------- Scroll progress (case-study pages) ---------- */
.progress-bar {
  position: fixed; top: 0; left: 0; z-index: 60;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  transform-origin: 0 50%; transform: scaleX(0);
  pointer-events: none;
}

/* ---------- Inline SVG illustrations ---------- */
.illo { width: 100%; height: auto; display: block; }
.illo .ln { fill: none; stroke: var(--navy); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.illo .ln-blue { stroke: var(--blue); }
.illo .ln-orange { stroke: var(--orange); }
.illo .ln-soft { stroke: rgba(16, 49, 79, 0.25); }
.illo .fl-blue { fill: rgba(41, 171, 226, 0.16); }
.illo .fl-blue-solid { fill: var(--blue); }
.illo .fl-orange { fill: rgba(247, 148, 30, 0.18); }
.illo .fl-orange-solid { fill: var(--orange); }
.illo .fl-navy { fill: var(--navy); }
.illo .fl-mist { fill: var(--mist); }
.illo .fl-soft { fill: rgba(16, 49, 79, 0.07); }
/* paths carrying class="draw" must set pathLength="1" in the SVG */
.illo .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.in-view .illo .draw { animation: illo-draw 1.1s cubic-bezier(0.33, 1, 0.68, 1) forwards; }
.in-view .illo .draw.d2 { animation-delay: 0.25s; }
.in-view .illo .draw.d3 { animation-delay: 0.5s; }
@keyframes illo-draw { to { stroke-dashoffset: 0; } }
.illo .pulse { animation: illo-pulse 3s ease-in-out infinite; }
.illo .pulse.d2 { animation-delay: 0.7s; }
.illo .pulse.d3 { animation-delay: 1.4s; }
@keyframes illo-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}
/* Radar sweep + ambient motion for the pipeline illustration */
.illo .sweep { transform-box: view-box; transform-origin: 110px 150px; animation: qa-spin 9s linear infinite; }
.illo .orbit { transform-box: fill-box; transform-origin: center; animation: qa-spin 40s linear infinite; }
.illo .card-float { animation: qa-drift 6s ease-in-out infinite; }
.illo .play { transform-box: fill-box; transform-origin: center; animation: illo-play 2.6s ease-in-out infinite; }
@keyframes illo-play {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.14); }
}
.illo .nudge { animation: illo-nudge 2.2s ease-in-out infinite; }
@keyframes illo-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}
.illo .sw { animation: illo-sw 3.2s ease-in-out infinite; }
.illo .sw.s2 { animation-delay: 0.35s; }
.illo .sw.s3 { animation-delay: 0.7s; }
.illo .sw.s4 { animation-delay: 1.05s; }
@keyframes illo-sw {
  0%, 24%, 100% { transform: translateY(0); }
  12% { transform: translateY(-5px); }
}
.illo .float-a { animation: qa-drift 7s ease-in-out infinite; }
.illo .float-b { animation: qa-drift 8s ease-in-out 1.2s infinite; }
.svc-card .svc-illo {
  margin: -4px 0 6px;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--mist), #FFFFFF);
  padding: 14px 18px 10px;
}

/* ---------- Case study: hero + meta ---------- */
.cs-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.cs-meta .chip {
  display: inline-flex; align-items: baseline; gap: 8px;
  border: 1px solid var(--line); border-radius: 999px;
  background: #FFFFFF; padding: 8px 16px;
}
.cs-meta .chip .lbl { font-family: var(--font-kicker); font-weight: 700; font-size: 10.5px; letter-spacing: 0.08em; color: var(--blue-ink); }
.cs-meta .chip .val { font-family: var(--font-display); font-weight: 600; font-size: 13.5px; color: var(--navy); white-space: nowrap; }

/* ---------- Case study: stats ---------- */
.stat-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: clamp(18px, 3vw, 32px);
}
.stat { border-top: 3px solid var(--blue); padding-top: 16px; }
.stat.rule-orange { border-top-color: var(--orange); }
.stat.rule-navy { border-top-color: var(--navy); }
.stat .n {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.02em;
  color: var(--navy); line-height: 1.05;
}
.stat .l { font-size: 13.5px; color: var(--slate); margin-top: 6px; line-height: 1.5; }

/* ---------- Case study: chapters ---------- */
.chapter {
  display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(40px, 5vw, 68px) 0;
  border-top: 1px solid var(--line);
}
.chapter:first-of-type { border-top: none; }
.chapter .ch-side { position: relative; }
.chapter .ch-num {
  font-family: var(--font-kicker); font-weight: 300;
  font-size: clamp(40px, 5vw, 56px);
  color: rgba(41, 171, 226, 0.45); line-height: 1;
}
.chapter .ch-kicker {
  font-family: var(--font-kicker); font-weight: 700;
  font-size: 12px; letter-spacing: 0.1em;
  color: var(--orange-ink); margin-top: 10px;
}
.chapter h2 { font-size: clamp(24px, 3.2vw, 32px); letter-spacing: -0.015em; margin: 0 0 18px; text-wrap: balance; }
.chapter .prose { font-size: 16.5px; }
.chapter .prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 767px) {
  .chapter { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .chapter .ch-side { display: flex; align-items: baseline; gap: 14px; }
  .chapter .ch-num { font-size: 34px; }
  .chapter .ch-kicker { margin-top: 0; }
}

/* ---------- Case study: pull quote ---------- */
.pull {
  border-left: 3px solid var(--orange);
  padding: 8px 0 8px clamp(18px, 3vw, 26px); margin: 10px 0;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(18px, 2.3vw, 22px); line-height: 1.52;
  color: var(--navy); text-wrap: pretty;
}

/* ---------- Case study: timeline ---------- */
.timeline { position: relative; display: flex; flex-direction: column; gap: 30px; padding-left: 34px; margin: 8px 0; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px;
  border-radius: 2px; background: linear-gradient(180deg, var(--blue), var(--orange));
  opacity: 0.4;
}
.tl-item { position: relative; }
.tl-item::before {
  content: ""; position: absolute; left: -34px; top: 3px;
  width: 13px; height: 13px; border-radius: 50%;
  background: #FFFFFF; border: 3px solid var(--blue);
}
.tl-item.flag::before { border-color: var(--orange); background: var(--orange); }
.tl-item .tl-tag { font-family: var(--font-kicker); font-weight: 700; font-size: 11px; letter-spacing: 0.09em; color: var(--blue-ink); margin-bottom: 5px; }
.tl-item.flag .tl-tag { color: var(--orange-ink); }
.tl-item h3 { font-size: 18px; margin-bottom: 6px; }
.tl-item p { font-size: 15.5px; line-height: 1.65; color: var(--slate); max-width: 62ch; }

/* ---------- Case study: pipeline flow ---------- */
.flow {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 16px;
}
.flow-step {
  border: 1px solid var(--line); border-radius: 16px; background: #FFFFFF;
  padding: 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.flow-step:hover { border-color: var(--blue); box-shadow: 0 10px 26px rgba(41, 171, 226, 0.12); }
.flow-step .f-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(41, 171, 226, 0.14); color: var(--blue-ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 13.5px;
  margin-bottom: 12px;
}
.flow-step.human { border-style: dashed; border-color: rgba(247, 148, 30, 0.55); background: rgba(247, 148, 30, 0.05); }
.flow-step.human .f-num { background: rgba(247, 148, 30, 0.16); color: var(--orange-ink); }
.flow-step h3 { font-size: 16px; margin-bottom: 7px; }
.flow-step p { font-size: 14.5px; line-height: 1.62; color: var(--slate); }

/* ---------- Mockups: browser frame ---------- */
.mock-browser {
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: #FFFFFF; box-shadow: 0 24px 60px rgba(16, 49, 79, 0.10);
}
.mock-browser .bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; background: #F7FAFC; border-bottom: 1px solid var(--line-soft);
}
.mock-browser .bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(16, 49, 79, 0.14); }
.mock-browser .bar .addr { flex: 1; height: 16px; margin-left: 8px; border-radius: 999px; background: rgba(16, 49, 79, 0.06); }
.mock-browser img { display: block; width: 100%; height: auto; }

/* ---------- Mockups: real phone screenshots (already framed) ---------- */
.phone-shots { display: flex; gap: 14px; justify-content: center; align-items: flex-end; flex-wrap: wrap; }
.phone-shots img { height: clamp(180px, 30vw, 260px); width: auto; filter: drop-shadow(0 20px 40px rgba(16, 49, 79, 0.18)); }
.ba-full { grid-column: 1 / -1; }
.site-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 767px) {
  .site-pair { grid-template-columns: 1fr; }
}

/* ---------- Before / after ---------- */
.ba-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(22px, 3vw, 36px); align-items: start;
}
.ba-tag {
  display: inline-block; margin-bottom: 14px;
  font-family: var(--font-display); font-weight: 700; font-size: 11.5px; letter-spacing: 0.07em;
  border-radius: 999px; padding: 5px 13px;
}
.ba-tag.before { background: rgba(16, 49, 79, 0.08); color: var(--navy); }
.ba-tag.after { background: var(--orange); color: var(--navy); }
.ba-note { margin-top: 14px; font-size: 14.5px; line-height: 1.62; color: var(--slate); }

/* Full-page screenshot in a fixed-height frame that slowly scrolls top-to-bottom
   and back; --scroll-dur per shot keeps taller pages from scrolling faster. */
.ba-shot { --ba-vp: clamp(320px, 42vw, 460px); display: block; }
.ba-shot .viewport { height: var(--ba-vp); overflow: hidden; }
.ba-shot .viewport img {
  animation: ba-scroll var(--scroll-dur, 22s) ease-in-out 1.2s infinite alternate;
}
.ba-shot:hover .viewport img, .ba-shot:focus-visible .viewport img { animation-play-state: paused; }
@keyframes ba-scroll { to { transform: translateY(calc(-100% + var(--ba-vp))); } }

/* Side-by-side full-length comparison page; two columns even on mobile, like an open book */
.cmp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 3vw, 36px); align-items: start; }
.cmp-grid figure { margin: 0; }
.cmp-grid .ba-tag { position: sticky; top: 12px; z-index: 1; box-shadow: 0 6px 18px rgba(16, 49, 79, 0.14); }

/* ---------- Case study: screenshot carousel (auto-scrolling marquee) ---------- */
.shot-carousel { overflow: hidden; padding: 6px 2px 16px; }
.shot-track { --shot-gap: 22px; display: flex; gap: var(--shot-gap); width: max-content; animation: shot-scroll 45s linear infinite; }
.shot-carousel:hover .shot-track, .shot-carousel:focus-within .shot-track { animation-play-state: paused; }
.shot-carousel figure { flex: 0 0 auto; margin: 0; }
.shot-carousel img { height: clamp(300px, 38vw, 420px); width: auto; display: block; }
.shot-carousel figcaption { margin-top: 10px; font-size: 13.5px; line-height: 1.55; color: var(--slate); max-width: 320px; }
/* Track holds two identical sets (cloned in main.js); sliding one set's width (-50% minus half a gap) loops seamlessly */
@keyframes shot-scroll { to { transform: translateX(calc(-50% - var(--shot-gap) / 2)); } }

/* ---------- Case study: prev/next nav ---------- */
.cs-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; border-top: 1px solid var(--line); }
.cs-nav a { display: flex; flex-direction: column; gap: 7px; padding: 30px 0 6px; }
.cs-nav .dir { font-family: var(--font-kicker); font-weight: 700; font-size: 11px; letter-spacing: 0.1em; color: var(--blue-ink); }
.cs-nav .t { font-family: var(--font-display); font-weight: 600; font-size: clamp(16px, 2vw, 19px); color: var(--navy); transition: color 0.2s ease; }
.cs-nav a:hover .t { color: var(--blue-ink); }
.cs-nav .next { text-align: right; align-items: flex-end; grid-column: 2; }
.cs-nav .prev { grid-column: 1; }

/* ---------- Work index: linked case cards ---------- */
.work-card { border-radius: var(--radius-card); }
a.work-card { color: var(--navy); }
a.work-card .work-thumb { transition: border-color 0.2s ease, box-shadow 0.2s ease; }
a.work-card:hover .work-thumb { border-color: var(--blue); box-shadow: 0 14px 36px rgba(41, 171, 226, 0.16); }
a.work-card:hover h3 { color: var(--blue-ink); }
a.work-card h3 { transition: color 0.2s ease; }
.work-thumb .illo { width: 78%; max-width: 300px; }
.work-card .meta-line { font-family: var(--font-kicker); font-weight: 700; font-size: 11px; letter-spacing: 0.09em; color: var(--blue-ink); }
.work-card .cta-hint { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: var(--orange-ink); margin-top: 2px; }

/* ---------- About: experience chips ---------- */
.exp-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.exp-chip {
  border: 1px solid var(--line); border-radius: 999px; background: #FFFFFF;
  padding: 9px 18px; font-family: var(--font-display); font-weight: 600;
  font-size: 14px; color: var(--navy);
}

/* ---------- App store badges ---------- */
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.store-badges a { display: inline-block; transition: transform 0.15s ease, opacity 0.15s ease; }
.store-badges a:hover { transform: translateY(-2px); opacity: 0.9; }
.store-badges svg { display: block; height: 44px; width: auto; font-family: var(--font-display); }

/* ---------- Soft tint section ---------- */
.tint-section { background: linear-gradient(180deg, #FFFFFF 0%, var(--mist) 50%, #FFFFFF 100%); }
.tint-section--deep {
  background: linear-gradient(180deg, #EAF5FB 0%, #F4FBFE 100%);
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}

/* Space between an intro line (lede or title) and the content it introduces */
.mb-intro { margin-bottom: clamp(28px, 4vw, 40px); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .circles .c,
  .band .orb-2, .band .orb-3, .band .ghost, .hero-figure img,
  .hero-figure .fig-ring, .hero-decor span, .hero-pill .dot::after,
  .band h2 .grad, .band .btn-glow, .chip-status .dot { animation: none !important; }
  .hero h1 .hl::after { animation: none; transform: scaleX(1); }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .svc-card, .highlight, .pstep-node { transition: none; }
  .hero-enter > *, .hero-visual-enter { animation: none; }
  .illo .draw { stroke-dasharray: none; stroke-dashoffset: 0; animation: none !important; }
  .illo .pulse { animation: none; opacity: 1; }
  .illo .sweep, .illo .orbit, .illo .card-float, .illo .play,
  .illo .nudge, .illo .sw, .illo .float-a, .illo .float-b { animation: none !important; }
  .shot-carousel { overflow-x: auto; }
  .shot-track { animation: none; }
  .ba-shot .viewport { overflow-y: auto; }
  .ba-shot .viewport img { animation: none; }
  .progress-bar { display: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  .section-head { align-items: flex-start; flex-direction: column; }
  .band-inner { padding-left: 24px; padding-right: 24px; }
  .work-thumb { height: 220px; }
  /* Flecks sit between the hero columns; when columns stack they land on text */
  .hero-decor .fleck { display: none; }
}

/* ---------- Comparison table (co-build) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-card); background: #FFFFFF; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare-table th, .compare-table td {
  padding: 16px 20px; text-align: left; vertical-align: top;
  font-size: 15px; line-height: 1.55;
  border-bottom: 1px solid var(--line-soft);
}
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: none; }
.compare-table thead th {
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  letter-spacing: 0.02em; color: var(--navy);
  border-bottom: 1px solid var(--line);
}
.compare-table tbody th { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: var(--navy); width: 26%; }
.compare-table td { color: var(--slate); }
/* Featured column: tint + side rails span header through body so it reads as one block */
.compare-table { --rail: inset 1px 0 0 rgba(247, 148, 30, 0.28), inset -1px 0 0 rgba(247, 148, 30, 0.28); }
.compare-table thead th.col-hl,
.compare-table td.cell-hl {
  background: rgba(247, 148, 30, 0.08);
  box-shadow: var(--rail);
}
.compare-table thead th.col-hl {
  color: var(--orange-ink);
  box-shadow: var(--rail), inset 0 3px 0 var(--orange);
}
.compare-table tr:last-child td.cell-hl {
  box-shadow: var(--rail), inset 0 -1px 0 rgba(247, 148, 30, 0.28);
}
.compare-table td.cell-hl { color: var(--navy); font-weight: 500; }

/* Co-Build page: text blocks run full container width (overrides shared reading-measure caps) */
.page-cobuild .lede,
.page-cobuild .tl-item p { max-width: none; }

/* Work pages (index + case studies): hero lede runs full container width */
.page-work .page-hero .lede { max-width: none; }

/* ---------- Deal cards (co-build) ---------- */
.deal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.deal-card {
  border: 1px solid var(--line); border-radius: var(--radius-card);
  background: #FFFFFF; padding: clamp(24px, 3vw, 32px);
  display: flex; flex-direction: column; gap: 12px;
}
.deal-card .deal-num {
  font-family: var(--font-display); font-weight: 300;
  font-size: 40px; line-height: 1; color: rgba(41, 171, 226, 0.5);
}
.deal-card h3 { font-size: 20px; letter-spacing: -0.01em; }
.deal-card p { font-size: 15.5px; line-height: 1.65; color: var(--slate); }
.deal-card .deal-big {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(34px, 4vw, 46px); letter-spacing: -0.02em; line-height: 1.05;
  color: var(--navy);
}
.deal-card .deal-big .u { color: var(--orange-ink); }
