/* Signify Technologies — shared styles */
:root {
  --ink: #1e293a;
  --ink-2: #475569;
  --blue: #008aff;
  --sky: #c1e4fc;
  --pink: #f9dce6;
  --yellow: #ffec80;
  --lav: #e9e1ff;
  --mint: #c9f2df;
  --card-blue: #cfe8fd;
  --shadow-hard: 4px 4px 0 var(--ink);
  --max: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: "Poppins", system-ui, sans-serif; color: var(--ink); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  /* Backdrop outside the box: soft dot grid */
  background: #eef1f7 radial-gradient(circle, #c3cad8 1.2px, transparent 1.6px) 0 0 / 22px 22px fixed;
  padding: 24px 24px 0;
}
/* Boxed layout: the whole site lives in one framed card */
.site {
  max-width: 1320px; margin: 0 auto 24px; border: 2px solid var(--ink); border-radius: 28px;
  overflow: clip; box-shadow: 10px 10px 0 var(--ink);
  background: linear-gradient(115deg, var(--sky) 0%, #dfe4f7 55%, var(--pink) 100%) fixed;
}
a { color: inherit; text-decoration: none; }
svg { display: block; }
.wrap { width: min(var(--max), 100% - 48px); margin-inline: auto; position: relative; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.12; font-weight: 600; }
h2 { font-size: clamp(32px, 4.2vw, 52px); }
p { margin: 0; }
section { position: relative; padding: 110px 0; }
.center { text-align: center; }
.muted { color: var(--ink-2); }
.grad { background: linear-gradient(88deg, #000 30%, var(--blue) 130%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad span { display: inline-block; }

/* Buttons: pill + hard shadow that presses in */
.btn {
  display: inline-flex; align-items: center; gap: 8px; font: 600 15px "Poppins", sans-serif;
  padding: 13px 26px; border-radius: 999px; border: 2px solid var(--ink); cursor: pointer;
  box-shadow: var(--shadow-hard); transition: translate .15s ease, box-shadow .15s ease;
}
/* `translate` (not `transform`) so hover never fights GSAP's transform tweens; !important beats the inline `translate: none` GSAP writes */
.btn:hover { translate: 2px 2px !important; box-shadow: 2px 2px 0 var(--ink); }
.btn:active { translate: 4px 4px !important; box-shadow: 0 0 0 var(--ink); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-white { background: #fff; color: var(--blue); }
.btn-sm { padding: 9px 20px; font-size: 14px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 2px solid var(--ink);
  transition: transform .35s ease;
}
.nav.hide { transform: translateY(-100%); }
.nav-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 22px; letter-spacing: .02em; }
.logo sup { font-size: 9px; background: var(--blue); color: #fff; padding: 2px 5px; border-radius: 4px; letter-spacing: .04em; }
.nav-links { display: flex; gap: 30px; font-size: 15px; font-weight: 500; }
.nav-links a { position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: var(--blue); transition: right .25s ease; }
.nav-links a:hover::after { right: 0; }
.nav-right { display: flex; align-items: center; gap: 22px; }
.nav-right .link { color: var(--blue); font-weight: 600; font-size: 14px; }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }

/* Decorative outline swooshes */
.swoosh { position: absolute; pointer-events: none; z-index: 0; fill: none; stroke-width: 2; }

/* Hero */
.hero { padding: 80px 0 40px; text-align: center; }
.sticker {
  display: inline-block; background: var(--yellow); border: 2px solid #000; border-radius: 4px;
  font-weight: 600; font-size: clamp(22px, 3vw, 38px); padding: 12px 30px; transform: rotate(-2deg);
  box-shadow: 6px 6px 0 rgba(0,0,0,.08);
}
.hero h1 { font-size: clamp(40px, 6vw, 70px); margin: 56px auto 24px; max-width: 1000px; }
.hero .sub { font-size: clamp(16px, 1.5vw, 19px); max-width: 720px; margin: 0 auto 34px; color: var(--ink-2); }
.hero .tagline { display: inline-block; font-weight: 600; color: var(--blue); margin-bottom: 18px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Dashboard mock */
.stage { perspective: 1400px; margin-top: 80px; }
.dash {
  background: #fff; border: 2px solid var(--ink); border-radius: 22px; overflow: hidden; text-align: left;
  box-shadow: 10px 10px 0 var(--ink); display: grid; grid-template-columns: 220px 1fr;
  transform-origin: center top; position: relative;
}
.dash-side { background: #f8fafc; border-right: 1px solid #e5e7eb; padding: 22px 14px; font-size: 13px; }
.dash-side .grp { font-weight: 600; padding: 8px 10px; display: flex; gap: 8px; align-items: center; }
.dash-side a { display: block; padding: 7px 10px 7px 28px; border-radius: 8px; color: var(--ink-2); }
.dash-side a.on { background: #e0f0ff; color: var(--blue); font-weight: 600; }
.dash-main { padding: 24px; display: grid; grid-template-columns: 1fr 120px 1fr; gap: 0; align-items: start; position: relative; }
.col-title { font-weight: 600; font-size: 15px; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; }
.col-title small { font-weight: 500; font-size: 11px; color: var(--blue); border: 1px solid #bfdbfe; border-radius: 6px; padding: 3px 8px; }
.row {
  display: flex; align-items: center; gap: 10px; border: 1px solid #e5e7eb; border-radius: 12px;
  padding: 10px 12px; margin-bottom: 9px; font-size: 13.5px; font-weight: 500; background: #fff;
}
.row .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 14px; flex: none; }
.row .tag { margin-left: auto; font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 5px; background: #e0f2fe; color: #0369a1; }
.row .tag.ai { background: #ede9fe; color: #6d28d9; }
.toggle { width: 26px; height: 15px; border-radius: 99px; background: var(--blue); position: relative; flex: none; }
.toggle::after { content: ""; position: absolute; right: 2px; top: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; }
.hub-col { display: grid; justify-items: center; padding-top: 30px; position: relative; height: 100%; }
.hub {
  width: 58px; height: 58px; border-radius: 16px; background: var(--ink); color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 22px; position: relative; z-index: 2;
}
.hub::before { content: ""; position: absolute; inset: -8px; border-radius: 20px; border: 2px solid var(--blue); opacity: .6; animation: pulse 2s ease-out infinite; }
@keyframes pulse { from { transform: scale(.85); opacity: .8; } to { transform: scale(1.35); opacity: 0; } }
.hub-label { font-size: 11px; font-weight: 600; color: var(--blue); margin-bottom: 8px; }
.flow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.flow path { fill: none; stroke: #94a3b8; stroke-width: 1.5; stroke-dasharray: 5 6; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -22; } }
.play {
  position: absolute; left: 50%; top: 55%; translate: -50% -50%; z-index: 5; width: 84px; height: 84px; border-radius: 50%;
  background: var(--blue); border: 3px solid #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,138,255,.45);
  cursor: pointer; transition: transform .2s;
}
.play:hover { transform: scale(1.08); }

/* Capability tiles (logo-grid style) */
.tiles-wrap { padding: 100px 0 40px; }
.tiles-box {
  background: #fff; border: 2px solid var(--ink); border-radius: 22px; padding: 44px; display: grid;
  grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: center; box-shadow: var(--shadow-hard); position: relative; z-index: 1;
}
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tile {
  height: 64px; border-radius: 12px; display: grid; place-items: center; text-align: center; font-weight: 600; font-size: 13.5px;
  padding: 6px; line-height: 1.25;
}
.tile:nth-child(4n+1) { background: var(--card-blue); }
.tile:nth-child(4n+2) { background: var(--yellow); }
.tile:nth-child(4n+3) { background: var(--lav); }
.tile:nth-child(4n+4) { background: var(--mint); }
.tile.more { background: var(--ink) !important; color: #fff; font-size: 20px; }

/* Pinned cards */
.pins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 64px; align-items: start; }
.pin-card { position: relative; }
.pin-card .back { position: absolute; inset: 0; border: 2px solid var(--ink); border-radius: 18px; transform: translate(-16px, -12px) rotate(-3deg); }
.pin-card .face { position: relative; border: 2px solid var(--ink); border-radius: 18px; padding: 44px 28px 32px; min-height: 280px; }
.pin-card:nth-child(1) .face { background: var(--card-blue); }
.pin-card:nth-child(2) .face { background: var(--ink); color: #fff; margin-top: 40px; }
.pin-card:nth-child(2) .face p { color: #cbd5e1; }
.pin-card:nth-child(2) .back { transform: translate(-12px, 28px) rotate(2deg); }
.pin-card:nth-child(3) .face { background: var(--yellow); }
.pin-card:nth-child(3) .back { transform: translate(14px, -10px) rotate(3deg); }
.pin-card h3 { font-size: 24px; margin-bottom: 14px; }
.pin-card p { color: var(--ink-2); }
.pin { position: absolute; top: -34px; right: 36px; z-index: 3; }
.pin-card:nth-child(2) .pin { right: auto; left: 50%; translate: -50% 0; top: 6px; }

/* Services */
.toggle-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 30px 0 56px; }
.toggle-row .btn[aria-pressed="false"] { background: #fff; color: var(--blue); }
.toggle-row .btn[aria-pressed="true"] { background: var(--blue); color: #fff; }
.svc-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.svc { background: #fff; border-radius: 20px; padding: 30px; display: flex; flex-direction: column; gap: 10px; transition: translate .3s ease, box-shadow .3s ease; position: relative; overflow: hidden; }
.svc:hover { translate: 0 -6px !important; box-shadow: 0 24px 40px -20px rgba(30,41,58,.35); }
.svc:nth-child(1) { grid-column: span 7; }
.svc:nth-child(2) { grid-column: span 5; }
.svc:nth-child(3) { grid-column: span 5; }
.svc:nth-child(4) { grid-column: span 7; }
.svc .num { font-size: 13px; color: #94a3b8; }
.svc h3 { font-size: 24px; }
.svc .kicker { font-weight: 600; color: var(--blue); font-size: 14px; }
.svc > p { color: var(--ink-2); font-size: 15px; }
.svc ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.svc li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.svc li b { color: var(--ink); font-weight: 600; }
.svc li::before { content: ""; width: 18px; height: 18px; margin-top: 3px; border-radius: 5px; border: 2px solid var(--ink); background: var(--yellow); }
.svc .blob { position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%; opacity: .55; z-index: 0; }
.svc > * { position: relative; z-index: 1; }

/* Advantage (notebook) */
.adv { display: grid; grid-template-columns: 260px 1fr; gap: 50px; align-items: center; }
.badges { display: grid; gap: 34px; justify-items: center; }
.badge {
  width: 150px; height: 150px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); display: grid; place-items: center;
  box-shadow: var(--shadow-hard);
}
.badge > div { width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; text-align: center; font-weight: 700; font-size: 15px; line-height: 1.15; color: #fff; padding: 10px; }
.badge:nth-child(2) { margin-left: 70px; }
.notebook {
  position: relative; background: #fff; border: 2px solid var(--ink); border-radius: 16px; padding: 56px 56px 48px;
  background-image: repeating-linear-gradient(#fff 0 39px, #e2e8f0 39px 40px);
  background-position: 0 22px; box-shadow: var(--shadow-hard);
}
.notebook h2 { margin-bottom: 20px; }
.notebook .intro { color: var(--ink-2); max-width: 640px; margin-bottom: 28px; }
.checks { display: grid; gap: 18px; }
.check-item { display: grid; grid-template-columns: 36px 1fr; gap: 16px; align-items: start; }
.box { width: 32px; height: 32px; border: 2px solid var(--ink); border-radius: 6px; background: var(--card-blue); display: grid; place-items: center; }
.box path { stroke: var(--ink); stroke-width: 3.2; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 0; }
.check-item h3 { font-size: 19px; }
.check-item p { color: var(--ink-2); font-size: 15px; }
.tape { position: absolute; top: -18px; right: 70px; width: 110px; height: 34px; background: rgba(255,236,128,.85); border: 1.5px solid rgba(0,0,0,.15); transform: rotate(6deg); }

/* Mission */
.mission-box { background: #fff; border-radius: 26px; padding: clamp(36px, 6vw, 80px); position: relative; overflow: hidden; }
.mission-box .q { font-size: clamp(22px, 2.6vw, 34px); font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.mission-box .q .w { opacity: .15; transition: opacity .2s; }
.mission-box .eyebrow { display: inline-block; font-weight: 600; color: var(--blue); margin-bottom: 18px; }

/* FAQ */
.faq { max-width: 860px; margin: 48px auto 0; display: grid; gap: 14px; }
.faq details { background: #fff; border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { transition: transform .3s ease; flex: none; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq .ans { padding: 0 24px 22px; color: var(--ink-2); }

/* Curtain CTA */
.cta-outer { padding: 40px 0 0; }
.cta-sheet { background: linear-gradient(180deg, #fff, #fff6f8); border-radius: 40px 40px 0 0; padding: 70px 0 90px; }
.curtain {
  position: relative; border: 2px solid var(--ink); border-radius: 24px; overflow: hidden; background: #fff;
  min-height: 520px; display: grid; place-items: center; text-align: center;
}
.curtain .inner { position: relative; z-index: 1; padding: 60px 24px; display: grid; gap: 20px; justify-items: center; max-width: 780px; }
.curtain h2 { font-size: clamp(36px, 5vw, 64px); }
.curtain p { color: var(--ink-2); font-size: 18px; }
.curtain .small { font-size: 15px; }
.drape { position: absolute; top: -2px; bottom: -2px; width: 52%; z-index: 2; border: 2px solid var(--ink); }
.drape.l { left: -2px; background: var(--yellow); clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%); }
.drape.r { right: -2px; background: var(--lav); clip-path: polygon(0 0, 100% 0, 100% 100%, 18% 100%); }
.drape::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 60px, rgba(0,0,0,.05) 60px 62px); }

/* Footer */
footer { background: #fff; padding: 20px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-top: 40px; border-top: 2px solid var(--ink); }
.foot-grid p { color: var(--ink-2); margin-top: 12px; max-width: 280px; }
.foot-grid h4 { margin: 0 0 14px; font-size: 15px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; color: var(--ink-2); font-size: 15px; }
.foot-grid ul a:hover { color: var(--blue); }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 38px; height: 38px; border: 2px solid var(--ink); border-radius: 50%; display: grid; place-items: center; box-shadow: 2px 2px 0 var(--ink); transition: translate .15s, box-shadow .15s; }
.socials a:hover { translate: 2px 2px; box-shadow: 0 0 0 var(--ink); }
.foot-bottom { margin-top: 48px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--ink-2); font-size: 14px; }

/* Industries */
.scale-row { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 34px 0 48px; flex-wrap: wrap; }
.scale-row span { background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 8px 20px; font-weight: 600; font-size: 15px; box-shadow: 3px 3px 0 var(--ink); }
.scale-row i { width: 48px; height: 2px; background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 11px); }
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ind {
  background: #fff; border: 2px solid var(--ink); border-radius: 18px; padding: 28px; box-shadow: var(--shadow-hard);
  transition: translate .2s ease, box-shadow .2s ease;
}
.ind:hover { translate: -3px -3px !important; box-shadow: 7px 7px 0 var(--ink); }
.ind-ic { width: 56px; height: 56px; border-radius: 14px; border: 2px solid var(--ink); display: grid; place-items: center; font-size: 26px; margin-bottom: 18px; }
.ind h3 { font-size: 19px; margin-bottom: 8px; }
.ind p { color: var(--ink-2); font-size: 15px; }

/* Responsive */
@media (max-width: 1000px) {
  .nav-links, .nav-right .link { display: none; }
  .menu-btn { display: block; }
  .nav.open .nav-links { display: grid; position: absolute; top: 68px; left: 0; right: 0; background: #fff; padding: 20px 24px; gap: 16px; border-bottom: 2px solid var(--ink); }
  .dash { grid-template-columns: 1fr; }
  .dash-side { display: none; }
  .tiles-box, .adv { grid-template-columns: 1fr; }
  .badges { grid-template-columns: repeat(3, 1fr); }
  .badge:nth-child(2) { margin-left: 0; }
  .pins { grid-template-columns: 1fr; gap: 56px; }
  .pin-card:nth-child(2) .face { margin-top: 0; }
  .svc:nth-child(n) { grid-column: span 12; }
  .ind-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { padding: 10px 10px 0; }
  .site { border-radius: 18px; margin-bottom: 10px; box-shadow: 5px 5px 0 var(--ink); }
  section { padding: 80px 0; }
  .nav-right .btn { display: none; }
  .dash-main { grid-template-columns: 1fr; }
  .hub-col { display: none; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tiles-box, .notebook { padding: 28px; }
  .badge { width: 100px; height: 100px; } .badge > div { width: 76px; height: 76px; font-size: 11px; }
  .foot-grid { grid-template-columns: 1fr; }
  .ind-grid { grid-template-columns: 1fr; }
}

/* ============ Hand-drawn accents ============ */
.scribble-word { position: relative; display: inline-block; white-space: nowrap; }
.scribble-word > svg { position: absolute; left: -4%; bottom: -0.34em; width: 108%; height: .55em; overflow: visible; pointer-events: none; }
.scribble path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.hl-yellow { color: #f2b521; }
.hl-red { color: #e34c64; }

/* ============ Busywork panel (blue panel + breakout illustration) ============ */
.hand-panel {
  position: relative; background: #cfe6fb; border-radius: 40px; margin-top: 170px;
  padding: 250px 48px 52px; text-align: center;
}
.hand-art { position: absolute; left: 50%; top: -140px; translate: -50% 0; width: min(640px, 94%); height: 360px; }
.hand-art .slab { position: absolute; left: 20%; top: -12px; width: 58%; height: 300px; background: #a9d1f5; border-radius: 30px; }
.hand-art .slab.r { left: auto; right: -2%; top: 90px; width: 12%; height: 210px; border-radius: 0 30px 30px 0; }
.win { position: absolute; background: #fff; border: 2px solid var(--ink); border-radius: 16px; overflow: hidden; }
.win-bar { height: 26px; display: flex; gap: 6px; align-items: center; padding: 0 10px; border-bottom: 1.5px solid #cbd5e1; }
.win-bar i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #64748b; }
.win-bar i:first-child { background: #64748b; }
.win.old { left: 4%; top: 18px; width: 52%; height: 250px; background: #e4f0fb; border-color: #7aa6cf; }
.win.old .sk { height: 9px; border-radius: 5px; background: #c2d8ee; margin: 14px 16px 0; }
.win.old .sk.s { width: 45%; } .win.old .sk.m { width: 70%; }
.win.old .sheet { margin: 14px 16px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.win.old .sheet span { height: 16px; border: 1px solid #9fbfdf; border-radius: 3px; }
.win.new { right: 4%; top: 52px; width: 46%; height: 270px; box-shadow: 0 18px 40px -16px rgba(30,41,58,.45); }
.win.new .task { display: flex; align-items: center; gap: 8px; margin: 10px 14px 0; padding: 8px 10px; border-radius: 10px; background: #f1f7ff; font-size: 12.5px; font-weight: 600; text-align: left; }
.win.new .task b { width: 18px; height: 18px; border-radius: 50%; background: #22c55e; color: #fff; display: grid; place-items: center; font-size: 11px; flex: none; }
.win.new .agent-chip { margin: 12px 14px 0; display: inline-flex; gap: 6px; align-items: center; font-size: 11px; font-weight: 700; color: var(--blue); background: #e0f0ff; padding: 4px 10px; border-radius: 99px; }
.flytag {
  position: absolute; z-index: 3; background: #475569; color: #fff; font: 700 11px "Poppins", sans-serif; letter-spacing: .06em;
  padding: 6px 14px; border-radius: 6px; box-shadow: 0 0 0 5px #fff, 0 0 0 6.5px #7aa6cf;
}
.hand-art .feather { position: absolute; left: 22%; bottom: 0; width: 46%; overflow: visible; }
.hand-panel h2 { max-width: 760px; margin: 0 auto 18px; }
.hand-panel > p { max-width: 720px; margin: 0 auto; font-size: 18px; color: #1f3550; }
.pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 52px; text-align: left; }
.pill { background: #e9f4fe; border-radius: 24px; padding: 20px 22px; transition: background .2s; }
.pill:hover, .pill[open] { background: #fff; }
.pill summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; font-weight: 500; font-size: 15.5px; }
.pill summary::-webkit-details-marker { display: none; }
.pill .pic { font-size: 40px; line-height: 1; flex: none; }
.pill .plus { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; background: #d4e8fb; display: grid; place-items: center; flex: none; transition: rotate .3s ease, background .2s; }
.pill[open] .plus { rotate: 45deg; background: var(--blue); color: #fff; }
.pill .more { padding: 14px 0 2px 56px; color: var(--ink-2); font-size: 14.5px; }

/* ============ Persona cards (tilted labels) ============ */
/* minmax(0,1fr) lets columns shrink below their content width, so nothing overflows sideways */
.personas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin: 64px auto 0; max-width: 1040px; }
.persona {
  position: relative; background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); border-radius: 24px;
  padding: 58px 22px 0; text-align: center; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: var(--shadow-hard); min-width: 0;
}
.persona:nth-child(2) { background: var(--card-blue); }
.persona:nth-child(3) { background: var(--lav); }
/* Label sits inside the card's top edge (overflow is clipped so the photo arch stays inside the frame) */
.persona .label {
  position: absolute; top: 12px; left: 50%; translate: -50% 0; rotate: -2deg; width: max-content; max-width: 88%;
  background: var(--ink); color: #fff; font-weight: 700; font-size: clamp(15px, 1.5vw, 19px); padding: 4px 14px; line-height: 1.3;
}
.persona:nth-child(2) .label { rotate: 1.5deg; background: var(--blue); }
.persona:nth-child(3) .label { rotate: -1deg; }
.persona p { font-size: 15.5px; line-height: 1.45; color: var(--ink-2); margin: 8px auto 0; max-width: 280px; }
/* Photo in an arch rising from the card's bottom edge: black & white like the reference, colour on hover */
.persona .art { position: relative; margin: auto 0 0; padding-top: 20px; display: flex; justify-content: center; }
.persona .art img {
  display: block; width: min(210px, 100%); height: 170px; object-fit: cover;
  border-radius: 105px 105px 0 0; border: 2px solid var(--ink); border-bottom: 0;
  filter: grayscale(1) contrast(1.08); transition: filter .5s ease;
}
.persona:hover .art img { filter: grayscale(0); }
.persona figcaption {
  position: absolute; left: 50%; translate: -50% 0; bottom: 6px; max-width: 92%; font-size: 10px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; background: rgba(0,0,0,.55); color: #fff; padding: 2px 8px; border-radius: 99px;
}
.persona figcaption a { color: inherit; text-decoration: underline; }
/* ============ "That's why…" bridge heading ============ */
.bridge-head { text-align: center; }
.bridge-head h2 { font-size: clamp(34px, 5.4vw, 66px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; }
.bridge-head .arrow { display: block; margin: 18px auto; width: 90px; height: 120px; }

/* ============ Audit panel (plum + label cards around a centrepiece) ============ */
.audit {
  margin-top: 56px; background: var(--yellow); border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); border-radius: 30px; padding: 56px 48px;
  display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: center; position: relative;
}
.audit-col { display: grid; gap: 18px; position: relative; z-index: 2; }
.audit-col.l { margin-right: -46px; }
.audit-col.r { margin-left: -46px; padding-top: 110px; }
/* The thick yellow ring (same as the panel) gives the "cut-out" overlap on the centrepiece */
.acard { background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 20px; padding: 18px 22px; box-shadow: 0 0 0 9px var(--yellow); }
.audit-col .acard:nth-child(2) { background: var(--card-blue); }
.audit-col.r .acard:nth-child(2) { background: var(--lav); }
.acard p { color: var(--ink-2); }
.acard h3 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.acard p { font-size: 14.5px; line-height: 1.45; }
/* Side padding clears the label cards that overlap the centrepiece's edges */
.audit-center { position: relative; z-index: 1; background: #fff; border: 2px solid var(--ink); border-radius: 26px; padding: 30px 72px 32px; min-height: 420px; }
.report-title { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 15px; }
.report-title small { font-size: 11px; font-weight: 600; color: var(--ink); background: var(--lav); padding: 3px 10px; border-radius: 99px; }
.opp { margin-top: 14px; }
.opp .lbl { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 600; margin-bottom: 5px; }
.opp .lbl em { font-style: normal; font-size: 10.5px; padding: 1px 8px; border-radius: 99px; background: #dcfce7; color: #166534; }
.opp .lbl em.mid { background: #fef3c7; color: #92400e; }
.opp .track { height: 10px; border-radius: 99px; background: #f1f5f9; overflow: hidden; }
.opp .track span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #5cb4ff, var(--blue)); transform-origin: left; }
.phases { margin-top: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.phases div { border: 1.5px dashed #cbd5e1; border-radius: 12px; padding: 10px; font-size: 11.5px; font-weight: 600; text-align: center; }
.phases div b { display: block; font-size: 10px; color: var(--blue); letter-spacing: .08em; }

/* ============ Illustrative case cards (before / after) ============ */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 56px; }
.case .uses { margin-top: auto; }
.case {
  background: #fff; border: 2px solid var(--ink); border-radius: 22px; padding: 24px; box-shadow: 6px 6px 0 var(--ink);
  display: flex; flex-direction: column; gap: 14px;
}
.case-head { display: flex; gap: 14px; align-items: center; }
.case-head .av { width: 58px; height: 58px; border-radius: 50%; border: 3px solid #f2c94c; display: grid; place-items: center; font-size: 26px; background: #fff7d6; flex: none; }
.case-head h3 { font-size: 19px; }
.case-head .tagline { color: var(--blue); font-weight: 500; font-size: 14px; }
.case-head small { display: block; color: #94a3b8; font-size: 12.5px; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi { border-radius: 12px; padding: 12px; text-align: center; border: 1.5px solid #eee3c4; background: #fdfaf2; }
.kpi.y { background: #f6c945; border-color: #e3b22c; }
.kpi strong { display: block; font-size: 17px; line-height: 1.2; }
.kpi span { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #6b5b2e; }
.ba { display: grid; grid-template-columns: 1fr 24px 1fr; gap: 6px; align-items: center; }
.ba > div { border-radius: 14px; padding: 12px 14px; font-size: 14px; line-height: 1.4; min-height: 132px; }
.ba .before { background: #f2f2f2; color: #555; }
.ba .after { background: #1f1f24; color: #fff; }
.ba b { display: block; font-size: 10.5px; letter-spacing: .1em; margin-bottom: 4px; }
.ba .before b { color: #777; }
.ba .after b { color: #f6c945; }
.ba .to { color: #e34c64; font-size: 20px; text-align: center; }
.helped { background: #fdf1c7; border-radius: 14px; padding: 12px 14px; font-weight: 600; font-size: 14px; line-height: 1.4; }
.helped b { display: block; font-size: 10.5px; letter-spacing: .1em; color: #8a6d1c; margin-bottom: 2px; }
.uses { border-left: 3px solid #f6c945; padding-left: 12px; font-style: italic; font-size: 14.5px; color: var(--ink-2); }
.disclaimer { text-align: center; margin-top: 22px; font-size: 13px; color: var(--ink-2); }

/* ============ Subpages ============ */
.nav-links a[aria-current="page"] { color: var(--blue); }
.nav-links a[aria-current="page"]::after { right: 0; }
.page-hero { padding: 90px 0 30px; text-align: center; }
.page-hero h1 { font-size: clamp(38px, 5.6vw, 64px); margin: 46px auto 20px; max-width: 900px; }
.page-hero .sub { font-size: clamp(16px, 1.5vw, 19px); max-width: 700px; margin: 0 auto; color: var(--ink-2); }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; color: var(--ink-2); }
.ticks li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; }
.ticks li::before { content: ""; width: 18px; height: 18px; margin-top: 4px; border-radius: 5px; border: 2px solid var(--ink); background: var(--yellow); }
.ticks b { color: var(--ink); font-weight: 600; }

/* Services detail rows */
.sd { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding: 70px 0; border-bottom: 2px dashed rgba(30,41,58,.18); }
.sd:last-child { border-bottom: 0; }
.sd:nth-child(even) .sd-art { order: -1; }
.sd .num { font-weight: 600; color: var(--blue); }
.sd h2 { margin: 6px 0 8px; }
.sd .kicker { font-weight: 600; color: #e34c64; }
.sd .copy > p { color: var(--ink-2); margin-top: 14px; font-size: 17px; }
.sd-art { background: #fff; border: 2px solid var(--ink); border-radius: 24px; padding: 34px; box-shadow: 8px 8px 0 var(--ink); position: relative; }
.sd-art .big { font-size: 64px; line-height: 1; margin-bottom: 18px; }
.sd-art .tiles { grid-template-columns: repeat(2, 1fr); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; position: relative; }
.steps::before { content: ""; position: absolute; left: 6%; right: 6%; top: 34px; border-top: 2px dashed var(--ink); z-index: 0; }
.step { position: relative; z-index: 1; text-align: center; }
.step .dotn { width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; font-weight: 700; font-size: 20px; border: 2px solid var(--ink); background: #fff; box-shadow: 4px 4px 0 var(--ink); }
.step:nth-child(1) .dotn { background: var(--yellow); }
.step:nth-child(2) .dotn { background: var(--card-blue); }
.step:nth-child(3) .dotn { background: var(--lav); }
.step:nth-child(4) .dotn { background: var(--mint); }
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { color: var(--ink-2); font-size: 15px; }

/* Team grid (alternating photo / yellow tiles) */
.team-wrap { background: linear-gradient(160deg, #b9d64a, #1a9a7e); padding: 26px; border-radius: 26px; margin-top: 50px; }
.team { display: grid; grid-template-columns: repeat(4, 1fr); }
.team > div { aspect-ratio: 1; position: relative; }
.tphoto { background: linear-gradient(160deg, #3b3f4a, #15171c); display: grid; place-items: end center; overflow: hidden; }
.tphoto svg { width: 82%; height: auto; }
.tinfo { background: #ffdd00; display: grid; place-content: center; text-align: center; gap: 6px; z-index: 1; }
.tinfo h3 { font-size: 19px; font-weight: 700; }
.tinfo p { font-size: 14.5px; }
.tinfo::before { content: ""; position: absolute; top: 50%; translate: 0 -50%; border: 14px solid transparent; }
.tinfo.pl::before { left: -28px; border-right-color: #ffdd00; }
.tinfo.pr::before { right: -28px; border-left-color: #ffdd00; }
.tsocial { display: flex; gap: 10px; justify-content: center; margin-top: 10px; }
.tsocial a { width: 34px; height: 34px; border: 1.5px solid var(--ink); display: grid; place-items: center; transition: background .2s; }
.tsocial a:hover { background: var(--ink); color: #ffdd00; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 34px; align-items: start; margin-top: 30px; }
.form-card { background: #fff; border: 2px solid var(--ink); border-radius: 22px; padding: 38px; box-shadow: 8px 8px 0 var(--ink); }
.form-card h2 { font-size: 30px; margin-bottom: 22px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: 14px; }
.field input, .field select, .field textarea {
  font: 400 15px "Poppins", sans-serif; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 12px; background: #fbfcff; color: var(--ink);
  transition: box-shadow .15s, background .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; box-shadow: 4px 4px 0 var(--blue); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { margin-top: 14px; font-size: 14px; font-weight: 600; color: #166534; background: #dcfce7; border-radius: 10px; padding: 10px 14px; }
.info-card { background: var(--ink); color: #fff; border-radius: 22px; padding: 34px; }
.info-card h3 { font-size: 22px; margin-bottom: 18px; }
.info-card a { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); color: #e2e8f0; }
.info-card a:hover { color: #fff; }
.next { margin-top: 26px; display: grid; gap: 14px; }
.next div { display: grid; grid-template-columns: 34px 1fr; gap: 12px; font-size: 14.5px; color: #cbd5e1; }
.next b { width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: grid; place-items: center; }
.next strong { color: #fff; display: block; }

@media (max-width: 1000px) {
  .pills, .personas, .cases { grid-template-columns: 1fr; }
  .personas { gap: 26px; max-width: 420px; }
  .audit { grid-template-columns: 1fr; padding: 36px 24px; gap: 18px; }
  .audit-col.l, .audit-col.r { margin: 0; padding: 0; }
  .audit-center { min-height: 0; padding: 26px; }
  .sd { grid-template-columns: 1fr; gap: 30px; }
  .sd:nth-child(even) .sd-art { order: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hand-panel { padding: 210px 20px 28px; border-radius: 26px; }
  .hand-art { transform: scale(.62); transform-origin: top center; top: -110px; }
  .steps, .field-row { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
}

/* ============ Stitch-derived: chips, segmented toggles ============ */
.chip-pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 13px; border-radius: 999px; background: #fff;
  border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); font-weight: 700; font-size: 12px; letter-spacing: .04em;
}
.chip-pill.y { background: var(--yellow); }
.beacon { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; border: 1.5px solid var(--ink); animation: beacon 1.6s ease-out infinite; }
@keyframes beacon { from { box-shadow: 0 0 0 0 rgba(34,197,94,.6); } to { box-shadow: 0 0 0 9px rgba(34,197,94,0); } }
.seg { display: flex; gap: 4px; padding: 4px; background: #fff; border: 2px solid var(--ink); border-radius: 14px; box-shadow: 3px 3px 0 var(--ink); }
.seg button {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 12px; border-radius: 10px;
  border: 2px solid transparent; background: none; color: var(--ink-2); font: 600 13.5px "Poppins", sans-serif; cursor: pointer; transition: background .2s, color .2s;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--blue); color: #fff; border-color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.seg.dark button[aria-pressed="true"] { background: var(--ink); color: var(--yellow); }

/* Hero floating stickers */
.float-st {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
  border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); font-weight: 700; font-size: 13.5px; animation: bob 6s ease-in-out infinite;
}
/* Kept level with the yellow label, above the headline, so they never cover hero text */
.float-st.a { right: 2%; top: -14px; rotate: 4deg; background: var(--mint); }
.float-st.b { left: 2%; top: 46px; rotate: -6deg; background: var(--lav); animation-delay: -3s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ============ Agency stack ============ */
.stack-head { display: grid; gap: 14px; justify-items: center; text-align: center; }
.stack-head .chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.stack-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; margin-top: 46px; align-items: start; }
.topo { background: #fff; border: 2px solid var(--ink); border-radius: 20px; padding: 20px; box-shadow: 6px 6px 0 var(--ink); margin-top: 16px; }
.topo-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 2px solid rgba(30,41,58,.1); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.topo-head .t { display: flex; align-items: center; gap: 8px; }
.topo-head .t::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--blue); border: 1.5px solid var(--ink); }
.mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }
.topo-ind { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 99px; border: 1.5px solid var(--ink); background: var(--card-blue); text-transform: none; letter-spacing: 0; white-space: nowrap; }
.topo.is-flow .topo-ind { background: var(--mint); }
.node {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 14px; box-shadow: 3px 3px 0 var(--ink);
  outline: 3px solid transparent; outline-offset: 3px; transition: translate .2s, box-shadow .2s, outline-color .25s;
}
.node:hover { translate: -2px -2px !important; box-shadow: 5px 5px 0 var(--ink); }
.node.lit { outline-color: var(--blue); }
.nic { width: 42px; height: 42px; flex: none; border-radius: 12px; border: 2px solid var(--ink); background: #fff; box-shadow: 2px 2px 0 var(--ink); display: grid; place-items: center; font-size: 20px; }
.node strong { display: block; font-size: 14.5px; line-height: 1.3; }
.node small { color: var(--ink-2); font-size: 12.5px; }
.ntag { margin-left: auto; flex: none; font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 6px; border: 1.5px solid var(--ink); background: #fff; }
.ntag.ok { width: 26px; height: 26px; padding: 0; border-radius: 50%; background: #22c55e; color: #fff; display: grid; place-items: center; font-size: 13px; }
.link { height: 22px; display: flex; justify-content: center; }
.link i { width: 2px; background: var(--ink); position: relative; }
.link i::after { content: ""; position: absolute; left: -4px; top: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); border: 1.5px solid var(--ink); animation: packet 1.2s linear infinite; }
@keyframes packet { from { top: -5px; opacity: 0; } 25% { opacity: 1; } to { top: 18px; opacity: 0; } }
.topo.is-flow .link i::after { animation: none; opacity: 0; }
.topo.is-flow .link.on i::after { animation: packet .9s linear infinite; background: var(--yellow); }
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feat { padding: 20px; border-radius: 18px; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); display: flex; flex-direction: column; gap: 10px; background: #fff; }
.feat-top { display: flex; align-items: center; gap: 10px; }
.feat-top .nic { width: 36px; height: 36px; font-size: 17px; border-radius: 10px; }
.feat h3 { font-size: 15.5px; }
.ftag { align-self: flex-start; font-size: 10.5px; font-weight: 700; padding: 2px 9px; border-radius: 99px; border: 1.5px solid var(--ink); background: #fff; }
.feat p { font-size: 14px; color: var(--ink-2); line-height: 1.5; }

/* ============ Runtime terminal ============ */
.term-wrap { max-width: 920px; margin: 0 auto; }
.term-top { display: flex; justify-content: space-between; align-items: end; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; }
.term-top .eyebrow { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.term-top p { color: var(--ink-2); margin-top: 8px; max-width: 520px; }
.term { margin-top: 16px; background: var(--ink); color: #fff; border: 2px solid var(--ink); border-radius: 20px; padding: 20px 22px; box-shadow: 8px 8px 0 var(--yellow), 8px 8px 0 2px var(--ink); }
.term-bar { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.14); }
.term-bar .dots { display: flex; align-items: center; gap: 7px; }
.term-bar .dots i { width: 11px; height: 11px; border-radius: 50%; }
.term-bar .who { margin-left: 8px; font-size: 12px; color: #94a3b8; }
.term-bar .sim { font-size: 11px; color: var(--yellow); padding: 2px 8px; border-radius: 6px; border: 1px solid rgba(255,255,255,.25); }
.term-logs { min-height: 205px; padding: 16px 0; font-size: 13.5px; line-height: 1.75; }
.term-logs div { white-space: pre-wrap; }
.c-muted { color: #94a3b8; } .c-blue { color: #7cc4ff; } .c-lav { color: #c4b5fd; } .c-mint { color: #86efac; font-weight: 600; } .c-yellow { color: var(--yellow); }
.caret { display: inline-block; width: 8px; height: 15px; background: var(--yellow); vertical-align: -2px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.term-prog { height: 6px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; }
.term-prog span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #7cc4ff, var(--yellow), #86efac); transition: width .45s ease; }

@media (max-width: 1000px) {
  .stack-grid { grid-template-columns: minmax(0, 1fr); }
  .float-st { display: none; }
}
@media (max-width: 640px) {
  .feat-grid { grid-template-columns: 1fr; }
  .node .ntag:not(.ok) { display: none; }
}

/* ================= Insights page ================= */
/* Split hero with product composition over an organic blob (tilts use transform, which GSAP preserves; it resets the `rotate` property) */
.ins-hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; padding: 80px 0 40px; }
.ins-hero .eyebrow-caps { font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); }
.ins-hero h1 { font-size: clamp(44px, 6vw, 76px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.02; margin: 14px 0 20px; }
.ins-hero p { font-size: 18px; color: var(--ink-2); max-width: 470px; margin-bottom: 30px; }
.compo { position: relative; height: 430px; }
.compo .blob { position: absolute; inset: 40px 30px 10px 60px; background: var(--yellow); border: 2px solid var(--ink); border-radius: 58% 42% 48% 52% / 46% 58% 42% 54%; animation: morph 12s ease-in-out infinite; }
@keyframes morph { 50% { border-radius: 42% 58% 60% 40% / 58% 40% 60% 42%; } }
.compo .leaf { position: absolute; right: 6px; top: 34px; width: 120px; }
.compo .seed { position: absolute; left: 70px; bottom: 6px; width: 46px; height: 34px; background: var(--ink); border-radius: 50%; transform: rotate(-24deg); }
.compo .seed::after { content: ""; position: absolute; left: 50%; top: 10%; bottom: 10%; width: 3px; background: #e34c64; border-radius: 3px; }
.pack { position: absolute; border: 2px solid var(--ink); border-radius: 18px; box-shadow: 6px 6px 0 var(--ink); padding: 18px 16px; display: flex; flex-direction: column; gap: 6px; }
.pack .k { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.pack strong { font-size: 22px; line-height: 1.1; }
.pack .ico { font-size: 34px; }
.pack.tall { left: 34%; top: 0; width: 200px; height: 300px; background: var(--ink); color: #fff; z-index: 2; }
.pack.tall .ring { margin-top: auto; align-self: flex-end; width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--yellow); display: grid; place-items: center; font-weight: 700; color: var(--yellow); font-size: 12px; text-align: center; line-height: 1.1; }
.pack.a { left: 6%; top: 150px; width: 150px; height: 190px; background: var(--card-blue); z-index: 3; transform: rotate(-5deg); }
.pack.b { right: 4%; top: 170px; width: 150px; height: 200px; background: #fff; z-index: 3; transform: rotate(4deg); }
.pack.c { left: 26%; top: 270px; width: 210px; height: 110px; background: var(--lav); z-index: 4; transform: rotate(-2deg); flex-direction: row; align-items: center; gap: 12px; }

/* Bento grid */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(250px, auto); gap: 18px; margin-top: 44px; }
.bx { background: rgba(255,255,255,.72); border: 2px solid var(--ink); border-radius: 22px; padding: 24px; box-shadow: var(--shadow-hard); position: relative; overflow: hidden; min-width: 0; }
.bx h3 { font-size: 18px; }
.bx .lead2 { font-size: 13.5px; color: var(--ink-2); margin-top: 4px; }
.bx.blue { background: linear-gradient(160deg, #2f8dff, #0a5fd1); color: #fff; }
.bx.blue h3 { font-size: 22px; line-height: 1.25; font-weight: 500; }
.bx.blue h3 em { font-weight: 700; }
.bx.blue .cloud { position: absolute; right: 16px; top: 12px; font-size: 44px; animation: bob 5s ease-in-out infinite; }
.chipset { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chipset button { font: 600 12.5px "Poppins", sans-serif; padding: 6px 14px; border-radius: 99px; border: 1.5px solid rgba(255,255,255,.7); background: transparent; color: #fff; cursor: pointer; transition: background .2s, color .2s; }
.chipset button[aria-pressed="true"] { background: #fff; color: #0a5fd1; }
.bx.wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px; align-items: center; }
.bx.wide h3 { font-size: 30px; line-height: 1.15; }
.bx.wide .ph { position: relative; height: 100%; min-height: 210px; border-radius: 16px; overflow: hidden; border: 2px solid var(--ink); }
.bx.wide .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bx.wide .ph .fav { position: absolute; left: -2px; top: 14px; background: #e34c64; color: #fff; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 2px solid #fff; }
.bx.wide .ph figcaption { position: absolute; left: 10px; bottom: 10px; font-size: 10.5px; background: rgba(0,0,0,.6); color: #fff; padding: 2px 8px; border-radius: 99px; }
.bx.wide .ph figcaption a { color: inherit; }
.tl { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 16px; position: relative; }
.tl::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; border-left: 2px dotted #94a3b8; }
.tl li { display: grid; grid-template-columns: 18px 1fr auto; gap: 12px; align-items: start; position: relative; }
.tl li i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #94a3b8; background: #fff; margin-top: 3px; }
.tl li.on i { border-color: var(--blue); box-shadow: inset 0 0 0 3px #fff; background: var(--blue); }
.tl b { display: block; font-size: 14px; }
.tl small { color: var(--ink-2); font-size: 12px; }
.tl .av { display: flex; } .tl .av span { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; margin-left: -7px; display: grid; place-items: center; font-size: 11px; }
.route { margin-top: 12px; background: #fff; border: 1.5px solid #e2e8f0; border-radius: 14px; padding: 12px 14px; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.route .end b { display: block; font-size: 20px; font-weight: 700; }
.route .end small { font-size: 11px; color: var(--ink-2); }
.route .mid { text-align: center; font-size: 10.5px; color: var(--ink-2); }
.route .mid .line { height: 2px; background: repeating-linear-gradient(90deg, #94a3b8 0 5px, transparent 5px 9px); margin: 6px 0; position: relative; }
.route .mid .line::after { content: "✦"; position: absolute; top: -9px; left: 0; color: var(--blue); font-size: 14px; animation: travel 2.6s ease-in-out infinite; }
@keyframes travel { from { left: 0; } to { left: calc(100% - 12px); } }
.mapsvg { width: 100%; height: 110px; margin-top: 10px; }
.story .thumb { margin: 16px auto 0; width: 120px; height: 90px; border-radius: 12px; border: 3px solid #fff; box-shadow: 0 10px 24px -8px rgba(30,41,58,.5); rotate: -4deg; display: grid; place-items: center; font-size: 46px; background: linear-gradient(160deg, var(--lav), var(--card-blue)); }
.story .dock { position: absolute; left: 50%; bottom: 16px; translate: -50% 0; display: flex; gap: 14px; align-items: center; color: #94a3b8; font-size: 15px; }
.story .dock b { width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 14px -4px rgba(0,138,255,.6); }

/* Split integration buttons */
.int-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
.intb {
  display: flex; align-items: stretch; background: #fff; border: 2px solid var(--ink); border-radius: 14px; overflow: hidden;
  box-shadow: 4px 4px 0 var(--ink); transition: translate .15s, box-shadow .15s; min-width: 0;
}
.intb:hover { translate: 2px 2px !important; box-shadow: 2px 2px 0 var(--ink); }
.intb .ic { width: 58px; flex: none; border-right: 2px solid var(--ink); display: grid; place-items: center; font-size: 24px; position: relative; overflow: hidden; }
.intb .ic::before, .intb .ic::after { content: ""; position: absolute; width: 26px; height: 26px; border-radius: 50%; }
.intb .ic::before { left: -10px; top: -10px; background: var(--blue); }
.intb .ic::after { right: -10px; bottom: -10px; background: var(--yellow); }
.intb .ic span { position: relative; z-index: 1; }
.intb .lb { padding: 14px 16px; font-weight: 700; font-size: 16px; display: flex; align-items: center; }
.intb.grey .ic { background: #8f96a6; color: #fff; } .intb.grey .ic::before, .intb.grey .ic::after { display: none; }

/* Dark "digital workforce" marquee */
.dark-band { background: #141418; color: #ece4e8; border-radius: 30px; padding: 70px 0 60px; margin: 0 26px; position: relative; overflow: hidden; }
.dark-band h2 { text-align: center; font-size: clamp(34px, 4.6vw, 58px); color: #e9dde3; letter-spacing: -0.03em; }
.dark-band .sub { text-align: center; color: #a39aa0; max-width: 560px; margin: 14px auto 0; }
.marquee { margin-top: 46px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 18px; width: max-content; animation: slide 46s linear infinite; padding: 6px 0; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.wcard { width: 280px; flex: none; border-radius: 18px; padding: 34px 24px 30px; text-align: center; color: #1b1b1f; display: flex; flex-direction: column; align-items: center; gap: 12px; transition: translate .3s; }
.wcard:hover { translate: 0 -8px; }
.wcard .shape { width: 190px; height: 190px; display: grid; place-items: center; font-size: 82px; background: rgba(255,255,255,.35); }
.wcard h3 { font-size: 22px; margin-top: 12px; }
.wcard p { font-size: 14.5px; line-height: 1.45; color: rgba(27,27,31,.82); }
.wcard.g1 { background: linear-gradient(160deg, #c95f8d, #e57ba7); }
.wcard.g2 { background: linear-gradient(160deg, #c9c35a, #e6dd72); }
.wcard.g3 { background: linear-gradient(160deg, #f0a35e, #f7c27f); }
.wcard.g4 { background: linear-gradient(160deg, #8f5bb8, #b98ad8); }
.wcard.g5 { background: linear-gradient(160deg, #d4535f, #ec7d84); }
.wcard.g6 { background: linear-gradient(160deg, #4f8fd8, #7fb5ee); }

/* Blog cards */
.blog-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 30px 0 40px; }
.blog-filter button { font: 600 13.5px "Poppins", sans-serif; padding: 8px 16px; border-radius: 99px; border: 2px solid var(--ink); background: #fff; cursor: pointer; box-shadow: 2px 2px 0 var(--ink); }
.blog-filter button[aria-pressed="true"] { background: var(--ink); color: var(--yellow); }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.post { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 40px -22px rgba(30,41,58,.45); display: flex; flex-direction: column; transition: translate .25s, box-shadow .25s; }
.post[hidden] { display: none; }  /* author display:flex would otherwise override [hidden] */
.post:hover { translate: 0 -6px !important; box-shadow: 0 26px 50px -22px rgba(30,41,58,.55); }
.post figure { margin: 0; position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.post figure img { width: 100%; height: 100%; object-fit: cover; display: block; transition: scale .6s ease; }
.post:hover figure img { scale: 1.06; }
.post figcaption { position: absolute; right: 8px; bottom: 8px; font-size: 10px; background: rgba(0,0,0,.55); color: #fff; padding: 2px 8px; border-radius: 99px; }
.post figcaption a { color: inherit; }
.post .body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post .cat { align-self: flex-start; background: #fde68a; color: #92400e; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 3px 12px; border-radius: 99px; }
.post h3 { font-size: 20px; line-height: 1.3; }
.post p { color: #64748b; font-size: 15px; line-height: 1.55; }
.post .by { margin-top: auto; padding-top: 10px; display: flex; align-items: center; gap: 10px; font-size: 14px; }
.post .by .me { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--yellow); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.post .by b { font-weight: 700; } .post .by span { color: #94a3b8; }

@media (max-width: 1000px) {
  .ins-hero { grid-template-columns: 1fr; text-align: center; }
  .ins-hero p { margin-inline: auto; }
  .compo { max-width: 520px; width: 100%; margin: 0 auto; }
  .bento { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bx.wide { grid-column: span 2; }
  .int-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dark-band { margin: 0 12px; }
}
@media (max-width: 640px) {
  .compo { transform: scale(.78); transform-origin: top center; height: 340px; }
  .bento, .posts { grid-template-columns: minmax(0, 1fr); }
  .bx.wide { grid-column: auto; grid-template-columns: 1fr; }
  .int-grid { grid-template-columns: 1fr; }
}

/* ============ Typography: navbar + section titles ============ */
/* All Round Gothic is a commercial font (Adobe Fonts / licensed files): used when available,
   otherwise Nunito ExtraBold, the closest free rounded geometric face. */
@font-face {
  font-family: "All Round Gothic";
  src: local("All Round Gothic Bold"), local("AllRoundGothic-Bold"), local("AllRoundGothic Bold");
  font-weight: 700 900;
  font-display: swap;
}
h2 { font-family: "All Round Gothic", "Nunito", "Poppins", system-ui, sans-serif; font-weight: 800; letter-spacing: -0.01em; }

/* Bitcount Grid Single, readable setting: normal weight, half-round pixels, darker ink, +4px sizes.
   (Full "Circle" pixels at book weight break up at small sizes; ELXP fragments the glyphs further.) */
.nav-links a, .nav-right .link,
.btn, .seg button, .blog-filter button, .chipset button,
.chip-pill, .ftag, .ntag:not(.ok), .scale-row span, .post .cat, .float-st, .flytag {
  font-family: "Bitcount Grid Single", ui-monospace, monospace;
  font-weight: 400; font-variation-settings: "ELSH" 50, "ELXP" 0, "CRSV" 0.5;
}
/* Bitcount runs wide: keep every nav item on one line and tighten spacing */
.nav-links { gap: 22px; }
.nav-links a, .nav-right .link, .nav-right .btn { white-space: nowrap; }
.nav-links a, .nav-right .link { font-size: 16px; letter-spacing: 0; }
@media (max-width: 1180px) { .nav-right .link { display: none; } }

/* Bitcount sizes (+4px over the original sizes) and darker text */
.nav-links a, .nav-right .link { font-size: 20px; }
.btn { font-size: 19px; }
.btn-sm { font-size: 18px; }
.seg button, .blog-filter button { font-size: 17.5px; }
.chipset button { font-size: 16.5px; }
.chip-pill { font-size: 16px; }
.ftag, .ntag:not(.ok) { font-size: 14.5px; }
.scale-row span { font-size: 19px; }
.post .cat { font-size: 16px; color: #78350f; }
.float-st { font-size: 17.5px; }
.flytag { font-size: 15px; }
.nav-links a, .seg button, .blog-filter button, .chip-pill, .scale-row span, .float-st, .btn-white { color: #0b1220; }
.nav-right .link, .btn-white { color: #0062c4; }
.nav-links a[aria-current="page"] { color: #0062c4; }
.seg.dark button[aria-pressed="true"], .blog-filter button[aria-pressed="true"] { color: var(--yellow); }
.seg button[aria-pressed="true"] { color: #fff; }

/* Bigger nav text needs more room: secondary link goes first, then the menu collapses earlier */
@media (max-width: 1440px) { .nav-right .link { display: none; } }
@media (max-width: 1140px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .nav.open .nav-links { display: grid; position: absolute; top: 68px; left: 0; right: 0; background: #fff; padding: 20px 24px; gap: 16px; border-bottom: 2px solid var(--ink); }
}
/* ===== Database-driven pages (PHP) ===== */
/* Contact form states */
.form-note.err { color: #991b1b; background: #fee2e2; margin: 0 0 18px; }
.field-err { color: #b91c1c; font-size: 13px; font-weight: 600; }
.field [aria-invalid="true"] { box-shadow: 4px 4px 0 #ef4444; }
.field .opt { font-weight: 400; color: var(--ink-2); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Card titles that link to their own page (whole card stays readable) */
.post-link { color: inherit; text-decoration: none; }
.post-link:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Single article / case study */
.preview-bar { margin: 0; padding: 10px 24px; text-align: center; font-weight: 600; background: var(--yellow); border-bottom: 2px solid var(--ink); }
.article-head { max-width: 820px; padding: 80px 0 34px; text-align: center; display: grid; justify-items: center; gap: 16px; }
.article-head h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.08; }
.article-head .lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 680px; }
.back-link { font-weight: 600; color: var(--blue); text-decoration: none; }
.article-head .meta { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.article-head .meta .me { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--yellow); display: grid; place-items: center; font-weight: 700; }
.article-head .meta span:last-child { color: var(--ink-2); }
.article-cover { max-width: 1040px; margin: 0 auto; position: relative; }
.article-cover img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; display: block; border: 2px solid var(--ink); border-radius: 22px; box-shadow: 8px 8px 0 var(--ink); }
.article-cover figcaption { position: absolute; right: 16px; bottom: 14px; font-size: 11px; background: rgba(0,0,0,.55); color: #fff; padding: 3px 10px; border-radius: 99px; }
.article-cover figcaption a { color: inherit; }
.prose { max-width: 720px; padding: 50px 0 30px; font-size: 18px; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); margin-top: 1.6em; }
.prose h3 { font-size: 22px; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--blue); font-weight: 700; }
.prose a { color: var(--blue); font-weight: 600; }
.prose blockquote { margin-left: 0; padding: 14px 22px; background: var(--yellow); border: 2px solid var(--ink); border-radius: 14px; box-shadow: var(--shadow-hard); }
.prose code { background: var(--lav); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.case-solo { max-width: 560px; margin: 0 auto; }
.case-solo .case { height: auto; }
