/* Aricxpoint — home page (navy hero, staggered service cards, dark footer) */
body.home {
  --navy: #0a0f24;
  --navy-2: #141c3d;
  --navy-3: #1d2752;
  --soft: #d9d4ff;
  --soft-ink: #1a1440;
  --tint: #f3f4fb;
  --hi: #5546e0;           /* illustration highlight */
  --hi-light: #8f82ff;
  --blob-a: #7b6cff; --blob-b: #5546e0; --blob-c: #3a2fb8;
  --sun: #ffe7a8;
  --foot: #070a17;
}
/* Aricxpoint Labs: same layout, tech palette (graphite / electric cyan → blue) */
body.home.labs {
  --navy: #060a13;
  --navy-2: #0c1424;
  --navy-3: #14223a;
  --soft: #a5f3fc;
  --soft-ink: #03141a;
  --tint: #eefbfd;
  --hi: #0891b2;
  --hi-light: #67e8f9;
  --blob-a: #22d3ee; --blob-b: #0ea5e9; --blob-c: #2563eb;
  --sun: #818cf8;
  --foot: #03060c;
  --accent: #0e7490;
  --accent-ink: #ffffff;
}

/* ---------- Header on navy ---------- */
body.home .site-header { background: var(--navy); border-bottom-color: transparent; }
body.home .site-header.scrolled { background: color-mix(in srgb, var(--navy) 92%, transparent); border-bottom-color: rgba(255, 255, 255, .08); box-shadow: none; }
body.home .brand-logo { filter: invert(1); }
body.home .nav-links a { color: rgba(255, 255, 255, .78); }
body.home .nav-links a:hover { color: #fff; }
body.home .nav-toggle { color: #fff; }

.btn-soft { background: var(--soft); border-color: var(--soft); color: var(--soft-ink); border-radius: 12px; }
.btn-soft:hover { background: #fff; border-color: #fff; }
body.home .nav-links a.btn-soft, body.home .nav-links a.btn-soft:hover { color: var(--soft-ink); }
.btn-line { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; border-radius: 12px; }
.btn-line:hover { background: rgba(255, 255, 255, .08); }
.btn-lg { padding: 18px 28px; font-size: 17px; }

/* ---------- Hero ---------- */
.hx {
  position: relative; overflow: hidden; background: var(--navy); color: rgba(255, 255, 255, .82);
  padding: clamp(56px, 8vw, 96px) 0 clamp(120px, 12vw, 170px);
}
.hx::after { /* curved bottom edge */
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -2px; height: clamp(50px, 6vw, 90px);
  background: var(--tint); border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.hx-arcs { position: absolute; inset: 0; width: 100%; height: 100%; color: #fff; opacity: .05; pointer-events: none; }
.hx-grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hx-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); color: #fff; font-size: 15px; margin-bottom: 26px;
}
.hx-pill svg { width: 20px; height: 20px; color: var(--soft); }
.hx h1 { color: #fff; font-size: clamp(40px, 5.6vw, 72px); font-weight: 600; letter-spacing: -0.025em; }
.hx .lede { margin-top: 24px; max-width: 560px; font-size: clamp(18px, 1.6vw, 20px); color: rgba(255, 255, 255, .82); }
.hx .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* Blob composition */
.hx-art { position: relative; height: clamp(420px, 42vw, 560px); }
.blob { position: absolute; overflow: hidden; display: grid; place-items: center; }
.blob-main {
  width: 74%; height: 76%; left: 6%; top: 18%;
  background: linear-gradient(145deg, var(--blob-a) 0%, var(--blob-b) 55%, var(--blob-c) 100%);
  border-radius: 46% 54% 42% 58% / 52% 40% 60% 48%;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .35);
}
.blob-top {
  width: 44%; height: 34%; right: -2%; top: -2%;
  background: linear-gradient(160deg, #eef0f7, #cfd4e6);
  border-radius: 58% 42% 50% 50% / 40% 55% 45% 60%;
}
.blob-side {
  width: 34%; height: 30%; right: -6%; bottom: 6%;
  background: #fff; border-radius: 50% 50% 46% 54% / 56% 48% 52% 44%;
}
.deco { position: absolute; display: block; }
.deco-circle { width: 26%; aspect-ratio: 1; left: 30%; top: -14%; border-radius: 50%; background: var(--navy-3); }
.deco-square { width: 13%; aspect-ratio: 1; left: -4%; bottom: 4%; border-radius: 28%; background: var(--navy-3); transform: rotate(18deg); }
.deco-sun { width: 22%; aspect-ratio: 1; left: 52%; bottom: -16%; border-radius: 50%; background: var(--sun); opacity: .9; }
.deco-logo { display: grid; place-items: center; }
.deco-logo img { width: 52%; height: auto; }
.deco-square.deco-logo img { width: 60%; transform: rotate(-18deg); }
.deco-sun.deco-logo { opacity: 1; }

/* Mock UI inside blobs */
.mock { font-size: 14px; color: var(--soft-ink); }
.mock-deploy {
  width: 72%; background: #0e1430; color: #dfe3ff; border-radius: 16px; padding: 16px 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .3); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px;
}
.mock-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; color: #8d93b8; }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a4170; }
.mock-bar span { margin-left: 8px; }
.mock-deploy ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mock-deploy li { display: flex; gap: 10px; align-items: center; }
.mock-deploy em { margin-left: auto; font-style: normal; color: #8d93b8; }
.ok { color: #4ade80; }
.mock-status { margin-top: 14px; padding-top: 12px; border-top: 1px solid #252c55; display: flex; align-items: center; gap: 8px; color: #fff; font-family: var(--font); font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .2); display: inline-block; }
.mock-gpu { display: grid; gap: 8px; justify-items: start; }
.mock-label { font-weight: 600; font-size: 15px; }
.gpu-grid { display: grid; grid-template-columns: repeat(4, 22px); gap: 6px; }
.gpu-grid i { height: 22px; border-radius: 6px; background: var(--hi); }
.mock-sub { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #4b4a6b; }
.mock-uptime { display: flex; align-items: center; gap: 10px; }
.mock-uptime svg, .chip-big svg { width: 44px; height: 44px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: #e6e4f5; stroke-width: 5; }
.ring { fill: none; stroke: var(--hi); stroke-width: 5; stroke-linecap: round; }
.mock-uptime strong { display: block; font-size: 18px; color: var(--soft-ink); }
.mock-uptime span { font-size: 12px; color: #6b6a88; }

/* ---------- Services ---------- */
.svc { background: linear-gradient(180deg, var(--tint) 0%, #fff 100%); padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 9vw, 120px); }
.svc-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.svc-head h2 { font-size: clamp(34px, 4.4vw, 54px); }
.svc-head p { margin-top: 16px; font-size: 19px; }
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.svc-grid > :nth-child(odd) { margin-top: 56px; } /* staggered columns */
.svc-card {
  position: relative; overflow: hidden; background: #fff; border-radius: 28px;
  padding: clamp(32px, 3.4vw, 44px); padding-bottom: 210px; min-height: 520px;
  box-shadow: 0 1px 2px rgba(20, 18, 60, .04), 0 18px 50px rgba(40, 40, 120, .07);
  display: flex; flex-direction: column; gap: 16px;
}
.svc-card .step { font-size: 14px; color: var(--accent); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.svc-card h3 { font-size: clamp(28px, 2.8vw, 36px); font-weight: 600; }
.svc-card p { font-size: 18px; max-width: 520px; }
.svc-card .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-card .more { color: var(--accent); text-decoration: none; font-weight: 500; font-size: 17px; display: inline-flex; gap: 8px; width: fit-content; }
.svc-card .more span { transition: transform .15s; }
.svc-card .more:hover span { transform: translateX(4px); }

/* Illustrations anchored bottom-right of each card */
.svc-art { position: absolute; right: 0; bottom: 0; width: 62%; height: 190px; pointer-events: none; }
.svc-art::before { /* soft accent wedge */
  content: ""; position: absolute; right: -10%; bottom: -30%; width: 80%; height: 140%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--hi) 16%, transparent), transparent);
}
.chip {
  position: absolute; display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px;
  padding: 12px 16px; box-shadow: 0 10px 30px rgba(30, 30, 90, .14); color: var(--soft-ink);
}
.chip small { display: block; font-size: 12px; color: #77768f; }
.chip b { font-size: 16px; font-weight: 600; }
.chip-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--hi) 12%, #fff); color: var(--accent); font-weight: 700; }
.chip-ic.ok { background: #e7f9ee; color: #16a34a; }
.chip-float { right: 8%; bottom: 96px; }
.chip-big { right: 10%; bottom: 36px; padding: 16px 20px; }
.chip-big b { font-size: 20px; }

.phone {
  position: absolute; left: 14%; bottom: -30px; width: 150px; height: 210px; border-radius: 26px;
  background: #fff; border: 6px solid #141c3d; padding: 22px 14px; display: grid; gap: 8px; align-content: start;
  box-shadow: 0 16px 40px rgba(20, 20, 70, .2);
}
.phone-notch { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 46px; height: 6px; border-radius: 6px; background: #141c3d; }
.phone-row { height: 9px; border-radius: 6px; background: #e8e7f6; }
.phone-row.w70 { width: 70%; } .phone-row.w50 { width: 50%; } .phone-row.w60 { width: 60%; } .phone-row.w40 { width: 40%; }
.phone-card { height: 48px; border-radius: 10px; background: linear-gradient(135deg, var(--blob-a), var(--blob-b)); margin: 4px 0; }

.panel {
  position: absolute; left: 12%; bottom: 24px; width: 220px; padding: 16px 18px; border-radius: 18px;
  background: var(--navy); color: #fff; box-shadow: 0 16px 40px rgba(10, 15, 36, .3);
}
.panel small { display: block; color: #9aa0c7; font-size: 12px; }
.panel b { font-size: 16px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 56px; margin-top: 12px; }
.bars i { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--hi-light), var(--hi)); }
.svc-card:nth-child(2) .chip-float { bottom: 140px; right: 6%; }

.avatars { display: flex; }
.avatars i {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-style: normal;
  font-size: 13px; font-weight: 600; color: #fff; border: 3px solid #fff; margin-left: -10px;
}
.avatars i:first-child { margin-left: 0; background: #5b4bdb; }
.avatars i:nth-child(2) { background: #0ea5a4; }
.avatars i:nth-child(3) { background: #f59e0b; }
.avatars i:nth-child(4) { background: #141c3d; }

/* ---------- Footer ---------- */
.fx { background: var(--foot); color: rgba(255, 255, 255, .68); padding: clamp(56px, 7vw, 88px) 0 32px; font-size: 16px; }
.fx-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(40px, 6vw, 96px); }
.fx-logo { height: 112px; width: auto; filter: invert(1); margin-bottom: 24px; }
body.home:not(.labs) .fx-logo { height: 104px; }
.fx-brand p { max-width: 400px; line-height: 1.7; }
.fx-brand p + p { margin-top: 16px; }
.fx-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.fx h4 { color: #fff; font-size: 17px; font-weight: 500; margin: 0 0 18px; }
.fx ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fx a { color: rgba(255, 255, 255, .68); text-decoration: none; transition: color .15s; }
.fx a:hover { color: #fff; }
.fx-connect > a { display: block; word-break: break-word; }
.fx-social { display: flex; gap: 10px; margin-top: 16px; }
.fx-social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); }
.fx-social svg { width: 18px; height: 18px; }
.fx-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 15px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .fx-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .hx-grid { grid-template-columns: 1fr; }
  .hx-art { height: 380px; max-width: 560px; }
  .fx-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body.home .nav-links { background: var(--navy); border-bottom-color: rgba(255, 255, 255, .08); }
  body.home .nav-links li a { border-bottom-color: rgba(255, 255, 255, .08); }
  .hx-art { height: 300px; }
  .mock-deploy { width: 84%; font-size: 11.5px; padding: 12px 14px; }
  .blob-top { width: 50%; }
  .blob-side { width: 42%; right: -4%; }
  .svc-grid { grid-template-columns: 1fr; gap: 20px; }
  .svc-grid > :nth-child(odd) { margin-top: 0; }
  .svc-card { min-height: 0; padding-bottom: 200px; }
  .svc-art { width: 100%; }
  .fx-cols { grid-template-columns: 1fr 1fr; }
}

/* Per-card illustration placement (keep chips from overlapping) */
.svc-card:nth-child(2) .panel { left: 6%; bottom: 22px; }
.svc-card:nth-child(2) .chip-float { right: 5%; bottom: 152px; }
.fx-cols { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.35fr); }
.fx-connect > a { white-space: nowrap; word-break: normal; }
@media (max-width: 1100px) { .fx-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
}
@media (max-width: 760px) {
  .hx-art { height: 340px; }
  .blob-main { width: 96%; height: 84%; left: 2%; top: 6%; }
  .mock-deploy { width: 80%; }
  .blob-top, .deco-circle { display: none; }
  .blob-side { width: 40%; height: 28%; right: -2%; bottom: -2%; }
  .deco-sun { left: 8%; bottom: -10%; width: 20%; }
}

/* ---------- Labs extras ---------- */
.next { color: var(--hi-light); }
.mock-uptime .cert { width: 40px; height: 40px; transform: none; color: var(--hi); }
.blob-top .avatars i { width: 34px; height: 34px; font-size: 12px; border-color: #e8eef5; }
body.labs .avatars i:first-child { background: #0891b2; }
body.labs .avatars i:nth-child(2) { background: #6366f1; }
body.labs .avatars i:nth-child(3) { background: #0c1424; }
body.labs .banner { background: var(--navy); }
body.labs .banner .btn { background: var(--soft); border-color: var(--soft); color: var(--soft-ink); }
body.labs .section-head h2, body.labs .svc-head h2 { color: var(--ink); }

/* Labs hero: blueprint grid + cyan glow instead of arcs, diagonal cut instead of a curve */
body.labs .hx {
  background-color: var(--navy);
  background-image:
    radial-gradient(60% 70% at 78% 45%, rgba(34, 211, 238, .16), transparent 70%),
    linear-gradient(rgba(148, 197, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 197, 255, .06) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
}
body.labs .hx-arcs { display: none; }
body.labs .hx::after { display: none; } /* straight bottom edge */
body.labs .blob-main { box-shadow: 0 40px 90px rgba(14, 165, 233, .28); }
body.labs .mock-deploy { background: #070d18; color: #d6f6ff; border: 1px solid rgba(103, 232, 249, .18); }
body.labs .mock-bar, body.labs .mock-deploy em { color: #7aa7bd; }
body.labs .mock-bar i { background: #1c2b44; }
body.labs .mock-status { border-top-color: #15243b; }
body.labs .ok { color: #22d3ee; }
body.labs .dot { background: #22d3ee; box-shadow: 0 0 0 4px rgba(34, 211, 238, .2); }

/* Labs track cards: light cards matching the rest of the page, each with its course colour */
body.labs #tracks .grid-4 { gap: 18px; }
body.labs #tracks .track {
  --c: #0e7490; position: relative; overflow: visible; width: 100%; align-self: stretch;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 18px;
  padding: 26px 24px 20px; gap: 10px; color: var(--muted);
  box-shadow: 0 1px 2px rgba(20, 30, 60, .04), 0 12px 32px rgba(20, 30, 60, .06);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
body.labs #tracks .track::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--c); }
body.labs #tracks .track:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 45%, var(--line-soft)); box-shadow: 0 18px 40px rgba(20, 30, 60, .10); }
body.labs #tracks .track:nth-child(1) { --c: #f5a524; }
body.labs #tracks .track:nth-child(2) { --c: #8b5cf6; }
body.labs #tracks .track:nth-child(3) { --c: #f97316; }
body.labs #tracks .track:nth-child(4) { --c: #ef4444; }
body.labs #tracks .track:nth-child(5) { --c: #3b82f6; }
body.labs #tracks .track:nth-child(6) { --c: #22c55e; }
body.labs #tracks .track:nth-child(7) { --c: #14b8a6; }
body.labs #tracks .track:nth-child(8) { --c: #ec4899; }
body.labs #tracks .track .icon { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 6px; background: linear-gradient(145deg, #13213d, var(--navy)); color: var(--c); }
body.labs #tracks .track h3 { color: var(--ink); font-size: 20px; line-height: 1.25; }
body.labs #tracks .track p { font-size: 15px; line-height: 1.55; color: var(--muted); }
body.labs #tracks .track details { margin-top: auto; border-top: 1px solid var(--line-soft); padding-top: 12px; }
body.labs #tracks .track summary { color: var(--ink); font-size: 15px; }
body.labs #tracks .track summary::after, body.labs #tracks .track details[open] summary::after { color: var(--c); }
body.labs #tracks .track details ul { font-size: 14px; color: var(--muted); }
body.labs #tracks .track .meta { position: absolute; top: 26px; right: 24px; margin: 0; padding: 0; justify-content: flex-end; max-width: 64%; }
body.labs #tracks .track .meta .tag:first-child { display: none; }
body.labs #tracks .track .tag { font-size: 12px; padding: 4px 10px; border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); color: color-mix(in srgb, var(--c) 70%, #111); background: color-mix(in srgb, var(--c) 9%, transparent); }
body.home:not(.labs) .deco-circle.deco-logo img { width: 40%; }
body.labs .deco-circle.deco-logo img { width: 66%; }

/* Third (last) service card spans full width so the grid has no gap */
@media (min-width: 761px) {
  .svc-grid > .svc-card:nth-child(3):last-child { grid-column: 1 / -1; margin-top: 0; min-height: 0;
    padding-bottom: clamp(32px, 3.4vw, 44px); padding-right: 46%; }
  .svc-grid > .svc-card:nth-child(3):last-child .svc-art { width: 44%; height: 100%; }
  .svc-grid > .svc-card:nth-child(3):last-child .chip-big { right: 12%; bottom: 50%; transform: translateY(50%); }
}

/* Labs hero: full-bleed photo (person coding at night) covering the whole section, text over a dark left fade */
body.labs .hx.hx-photo { display: flex; align-items: center; min-height: max(600px, calc(100vh - 88px)); background: var(--navy); }
body.labs .hx-photo::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 9, 18, .9) 0%, rgba(5, 9, 18, .72) 32%, rgba(5, 9, 18, .2) 58%, rgba(5, 9, 18, 0) 75%),
    linear-gradient(0deg, rgba(5, 9, 18, .45) 0%, rgba(5, 9, 18, 0) 30%),
    url("/assets/lab-hero.jpg?v=202611061200") 50% 38% / cover no-repeat;
}
body.labs .hx-photo .hx-grid { grid-template-columns: 1fr; width: 100%; z-index: 1; }
body.labs .hx-photo .hx-copy { max-width: 600px; }
body.labs .hx-photo h1 { text-shadow: 0 2px 24px rgba(0, 0, 0, .45); }
@media (max-width: 760px) {
  body.labs .hx.hx-photo { min-height: 0; padding-top: clamp(300px, 72vw, 440px); }
  body.labs .hx-photo::before { bottom: auto; height: clamp(360px, 84vw, 520px);
    background:
      linear-gradient(180deg, rgba(5, 9, 18, 0) 50%, var(--navy) 100%),
      url("/assets/lab-hero.jpg?v=202611061200") 60% 30% / cover no-repeat; }
}

/* Labs: tools strip under the hero — two logo belts scrolling in opposite directions */
.tools-strip { padding: clamp(32px, 4vw, 48px) 0 clamp(8px, 2vw, 16px); }
.tools-title { text-align: center; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 24px; }
.mq { display: grid; gap: 14px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mq-belt { display: flex; width: max-content; animation: mq-scroll 60s linear infinite; }
.mq-rev { animation-direction: reverse; animation-duration: 70s; }
.mq:hover .mq-belt { animation-play-state: paused; }
.mq-set { list-style: none; margin: 0; padding: 0 7px; display: flex; gap: 14px; }
.mq-set li { display: flex; align-items: center; gap: 10px; white-space: nowrap; padding: 11px 18px 11px 14px; border-radius: 999px;
  background: linear-gradient(145deg, #13213d, var(--navy)); color: #e6f6ff; font-size: 15px; font-weight: 500;
  box-shadow: 0 8px 20px rgba(10, 20, 40, .14), inset 0 0 0 1px rgba(103, 232, 249, .14); }
.mq-set img { width: 22px; height: 22px; }
@keyframes mq-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .mq { -webkit-mask-image: none; mask-image: none; }
  .mq-belt { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .mq-set { flex-wrap: wrap; justify-content: center; }
  .mq-set[aria-hidden="true"] { display: none; }
}
@media (max-width: 760px) { .mq-set li { font-size: 14px; padding: 9px 15px 9px 12px; } .mq-set img { width: 19px; height: 19px; } }

/* Labs: where you could work */
.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.work-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.work-card h3 { font-size: 19px; line-height: 1.25; margin: 4px 0 0; }
.work-card p { font-size: 15px; line-height: 1.55; margin: 0; }
.work-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(145deg, #13213d, var(--navy)); color: #67e8f9; }
.work-ic svg { width: 22px; height: 22px; }
.work-card:first-child { background: linear-gradient(145deg, #0b3a8c, #0a1f4d); border-color: #1d4fa8; }
.work-card:first-child h3 { color: #fff; } .work-card:first-child p { color: #c7d4e6; }
.work-card:first-child .work-ic { background: rgba(34, 211, 238, .16); }
@media (max-width: 1100px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .work-grid { gap: 12px; } .work-card { padding: 16px; border-radius: 14px; } .work-card h3 { font-size: 16px; } .work-card p { font-size: 13.5px; } .work-ic { width: 38px; height: 38px; } }

/* Labs events: two cards side by side on wide screens */
@media (min-width: 1500px) {
  body.labs .events { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  body.labs .event { grid-template-columns: minmax(180px, 250px) 1fr; gap: 28px; }
  body.labs .event-body { gap: 12px; }
  body.labs .event-body h3 { font-size: clamp(22px, 1.7vw, 28px); }
  body.labs .event-body > p { font-size: 16px; }
  body.labs .event-facts { gap: 10px 18px; }
  body.labs .event .tag { font-size: 13px; padding: 4px 10px; }
}
@media (min-width: 1500px) {
  /* flyer shown whole; text spread so its top and bottom line up with the flyer */
  body.labs .event { grid-template-columns: 316px 1fr; align-items: stretch; }
  body.labs .event-flyer { align-self: start; }
  body.labs .event-flyer img { width: 100%; height: auto; }
  body.labs .event-body { padding: 0; justify-content: space-between; }
  body.labs .event .tags { display: none; } /* topics are already printed on the flyer */
}

/* Labs hero: larger copy on wide screens */
body.labs .hx-photo .hx-copy { max-width: min(720px, 52vw); }
body.labs .hx-photo h1 { font-size: clamp(40px, 5.4vw, 92px); line-height: 1.02; }
body.labs .hx-photo .lede { max-width: 680px; font-size: clamp(18px, 1.5vw, 24px); }
body.labs .hx-photo .hx-pill { font-size: clamp(15px, 1.1vw, 17px); padding: 11px 20px; }
@media (min-width: 1200px) { body.labs .hx-photo .btn-lg { padding: 20px 32px; font-size: 18px; } }

/* Main page hero: team photo behind the copy and illustration, darkened for legibility */
.hx-bgphoto::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 13, 34, .9) 0%, rgba(11, 13, 34, .7) 40%, rgba(11, 13, 34, .3) 100%),
    url("/assets/home-hero.jpg?v=202611080200") 50% 55% / cover no-repeat;
}
.hx-bgphoto .hx-arcs { display: none; }
.hx-bgphoto .hx-grid { z-index: 1; }

/* Labs: hero stands alone with a curved bottom edge; tools strip sits below on the light page */
body.labs .hx.hx-photo::after {
  display: block; content: ""; position: absolute; left: -10%; right: -10%; bottom: -2px; height: clamp(50px, 6vw, 90px);
  background: var(--bg); border-radius: 50% 50% 0 0 / 100% 100% 0 0; pointer-events: none; z-index: 0;
}
body.labs .hx.hx-photo { padding-bottom: clamp(96px, 9vw, 140px); min-height: max(560px, calc(100vh - 88px - 100px)); }
@media (max-width: 760px) { body.labs .hx.hx-photo { min-height: 0; } }

/* "Most in demand" tag on the highlighted (fintech) work card */
.work-card { position: relative; }
.work-tag { position: absolute; top: 24px; right: 24px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: .02em; color: #0a1f4d; background: #67e8f9;
  padding: 5px 11px; border-radius: 999px; }
.work-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #0a1f4d; }
@media (max-width: 560px) { .work-tag { position: static; align-self: flex-start; font-size: 11px; padding: 4px 9px; margin-top: 2px; } }

/* Main hero: slow "Ken Burns" zoom + drift on the background photo */
.hx-bgphoto::before { transform-origin: 62% 50%; will-change: transform; }
@media (prefers-reduced-motion: no-preference) {
  .hx-bgphoto::before { animation: hx-kenburns 26s ease-in-out infinite alternate; }
}
@keyframes hx-kenburns {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(-2.5%, -1.5%, 0); }
}

/* Main hero: animated network layer (assets/hero-net.js) above the photo, below the content */
.hx-net { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; display: block; }
.hx-bgphoto .hx-grid { z-index: 1; }

/* Labs hero: looping video of students learning (photo stays as the reduced-motion fallback) */
body.labs .hx-photo .hx-video { display: none; }
@media (prefers-reduced-motion: no-preference) {
  body.labs .hx-photo.has-video .hx-video { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; pointer-events: none; }
  body.labs .hx-photo.has-video::before { z-index: 1;
    background:
      linear-gradient(90deg, rgba(5, 9, 18, .93) 0%, rgba(5, 9, 18, .8) 32%, rgba(5, 9, 18, .42) 58%, rgba(5, 9, 18, .22) 80%),
      linear-gradient(0deg, rgba(5, 9, 18, .5) 0%, rgba(5, 9, 18, 0) 32%); }
  body.labs .hx-photo.has-video .hx-grid { z-index: 2; }
  body.labs .hx.hx-photo.has-video::after { z-index: 3; }
  @media (max-width: 760px) {
    body.labs .hx-photo.has-video .hx-video { bottom: auto; height: clamp(360px, 84vw, 520px); }
    body.labs .hx-photo.has-video::before {
      background: linear-gradient(180deg, rgba(5, 9, 18, .25) 0%, rgba(5, 9, 18, .2) 50%, var(--navy) 100%); }
  }
}

/* Footer location line (moved from the header flag) */
.fx-loc { display: inline-flex; align-items: center; gap: 8px; }
.fx-loc .flag-ng { width: 18px; height: 18px; }

/* Labs hero: floating "live lab" terminal card over the video (desktop) */
.lab-term { display: none; }
@media (min-width: 1100px) {
  body.labs .hx-photo .hx-grid { position: relative; }
  .lab-term {
    display: block; position: absolute; right: 0; bottom: -8px; width: 380px; z-index: 2;
    background: rgba(7, 13, 24, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border: 1px solid rgba(103, 232, 249, .22); border-radius: 16px; padding: 14px 18px 14px;
    color: #d6f6ff; font: 13.5px/1.75 "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  }
  .lt-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; color: #7aa7bd; font-size: 12px; }
  .lt-bar i { width: 9px; height: 9px; border-radius: 50%; background: #1c2b44; }
  .lt-bar span { margin-left: 8px; }
  .lt-lines { list-style: none; margin: 0; padding: 0; min-height: calc(6 * 1.75em); }
  .lt-lines b { color: #67e8f9; font-weight: 500; }
  body.labs .lt-lines .ok { color: #7ee787; }
  .lt-foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #15243b; font-family: Outfit, sans-serif; font-size: 13px; color: #a5c4d4; }
  .lt-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); }
  .lt-cursor { width: 7px; height: 14px; background: #67e8f9; margin-left: auto; }
}
@media (min-width: 1100px) and (prefers-reduced-motion: no-preference) {
  .lt-lines li { opacity: 0; }
  .lt-lines li:nth-child(1) { animation: lt-l1 12s infinite; }
  .lt-lines li:nth-child(2) { animation: lt-l2 12s infinite; }
  .lt-lines li:nth-child(3) { animation: lt-l3 12s infinite; }
  .lt-lines li:nth-child(4) { animation: lt-l4 12s infinite; }
  .lt-lines li:nth-child(5) { animation: lt-l5 12s infinite; }
  .lt-lines li:nth-child(6) { animation: lt-l6 12s infinite; }
  .lt-dot { animation: lt-pulse 1.6s ease-in-out infinite; }
  .lt-cursor { animation: lt-blink 1s steps(1) infinite; }
}
@keyframes lt-l1 { 0%, 3.3% { opacity: 0; transform: translateY(4px); } 5.8%, 86% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; } }
@keyframes lt-l2 { 0%, 12.5% { opacity: 0; transform: translateY(4px); } 15.0%, 86% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; } }
@keyframes lt-l3 { 0%, 21.7% { opacity: 0; transform: translateY(4px); } 24.2%, 86% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; } }
@keyframes lt-l4 { 0%, 31.7% { opacity: 0; transform: translateY(4px); } 34.2%, 86% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; } }
@keyframes lt-l5 { 0%, 40.8% { opacity: 0; transform: translateY(4px); } 43.3%, 86% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; } }
@keyframes lt-l6 { 0%, 51.7% { opacity: 0; transform: translateY(4px); } 54.2%, 86% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; } }
@keyframes lt-pulse { 50% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } }
@keyframes lt-blink { 50% { opacity: 0; } }

/* Labs tools strip: keep the moving logos inside the page width, fading softly before the edges */
body.labs .mq {
  max-width: min(var(--max), calc(100% - 2 * var(--gutter))); margin: 0 auto;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

/* Labs tools: static, centred rows on tablet/desktop (phones keep the contained scroll to save space) */
@media (min-width: 761px) {
  body.labs .mq { max-width: min(1240px, calc(100% - 2 * var(--gutter))); -webkit-mask-image: none; mask-image: none; padding-bottom: 14px; }
  body.labs .mq-belt { animation: none; width: auto; justify-content: center; }
  body.labs .mq-set { flex-wrap: wrap; justify-content: center; row-gap: 12px; }
  body.labs .mq-set[aria-hidden="true"] { display: none; }
}

/* Labs: "Inside a lab: PayLab" showcase */
.pl-stats { list-style: none; margin: 0 0 clamp(24px, 3vw, 36px); padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pl-stats li { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.pl-stats b { font-size: clamp(28px, 2.6vw, 38px); font-weight: 600; letter-spacing: -.02em; color: var(--ink); line-height: 1.1; }
.pl-stats span { font-size: 14.5px; color: var(--muted); line-height: 1.4; }
.pl-stats code, .pl-svcs code { font-size: .92em; background: color-mix(in srgb, var(--ink) 7%, transparent); padding: 1px 6px; border-radius: 6px; }
.pl-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.pl-arch { margin: 0; background: #070d18; border-radius: 20px; padding: clamp(14px, 1.6vw, 22px); box-shadow: 0 18px 50px rgba(10, 20, 40, .18); }
.pl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pl-arch svg { display: block; width: 100%; min-width: 620px; height: auto; font-family: Outfit, sans-serif; }
.pl-arch figcaption { margin-top: 12px; font-size: 13.5px; color: #8aa3b8; }
.pl-zone { fill: rgba(103, 232, 249, .04); stroke: rgba(103, 232, 249, .28); stroke-dasharray: 5 5; }
.pl-zone-ci { fill: rgba(143, 130, 255, .05); stroke: rgba(143, 130, 255, .35); }
.pl-zt { fill: #8aa3b8; font-size: 12.5px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.pl-zs { fill: #5f7a8f; font-size: 11.5px; }
.pl-e path { fill: none; stroke: #4b6a85; stroke-width: 1.6; }
.pl-ah { fill: #4b6a85; }
.pl-el { fill: #67e8f9; font-size: 12px; font-family: ui-monospace, Menlo, monospace; }
.pl-n rect { fill: #13213d; stroke: rgba(255, 255, 255, .14); }
.pl-n text { fill: #e6f6ff; font-size: 14px; font-weight: 500; text-anchor: middle; }
.pl-n .pl-ns { fill: #8aa3b8; font-size: 11px; font-weight: 400; }
.pl-n-alb rect { fill: #0e3a4a; stroke: rgba(103, 232, 249, .45); }
.pl-n-svc rect { fill: #10284a; stroke: rgba(103, 232, 249, .35); }
.pl-n-svc text { font-family: ui-monospace, Menlo, monospace; font-size: 13.5px; }
.pl-n-db rect { fill: #1b2a52; stroke: rgba(143, 130, 255, .5); }
.pl-n-ci rect { fill: #1a1f45; stroke: rgba(143, 130, 255, .4); }
.pl-n-ci text { font-size: 12.5px; }
.pl-n-log rect { fill: #13213d; stroke: rgba(255, 255, 255, .14); }
.pl-side h3 { font-size: 20px; margin: 0 0 12px; color: var(--ink); }
.pl-side h3 + * { margin-top: 0; }
.pl-svcs { margin: 0 0 26px; display: grid; gap: 10px; }
.pl-svcs div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: baseline; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 12px; }
.pl-svcs dt { font: 600 14px/1.4 ui-monospace, Menlo, monospace; color: #0e7490; }
.pl-svcs dd { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.pl-steps { margin: 0 0 26px; padding: 0; list-style: none; counter-reset: pl; display: grid; gap: 10px; }
.pl-steps li { counter-increment: pl; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; font-size: 15.5px; line-height: 1.5; color: var(--ink); }
.pl-steps li::before { content: counter(pl); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: #fff; background: var(--navy); }
.pl-cta { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 1100px) { .pl-grid { grid-template-columns: minmax(0, 1fr); } .pl-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pl-svcs div { grid-template-columns: 1fr; gap: 2px; } .pl-stats li { padding: 14px; } }
.pl-swipe { display: none; }
@media (max-width: 700px) { .pl-swipe { display: inline; color: #67e8f9; } }

/* PayLab teaser card on the Labs page */
.pl-teaser { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: center;
  padding: clamp(24px, 3.4vw, 48px); border-radius: 24px; text-decoration: none; color: #d6e6f2;
  background: radial-gradient(70% 90% at 90% 10%, rgba(34, 211, 238, .14), transparent 60%), linear-gradient(145deg, #0b1830, var(--navy));
  box-shadow: 0 20px 50px rgba(10, 20, 40, .18); transition: transform .2s, box-shadow .2s; }
.pl-teaser:hover { transform: translateY(-3px); box-shadow: 0 26px 60px rgba(10, 20, 40, .24); }
.pl-teaser .eyebrow { color: #67e8f9; }
.pl-teaser h2 { color: #fff; font-size: clamp(28px, 3vw, 44px); line-height: 1.1; margin: 10px 0 14px; }
.pl-teaser p { color: #a9c1d3; font-size: 17px; line-height: 1.6; margin: 0 0 22px; max-width: 560px; }
.pl-teaser .btn { background: var(--soft); border-color: var(--soft); color: var(--soft-ink); border-radius: 12px; }
.pl-teaser:hover .btn .arrow { transform: translateX(3px); }
.pl-t-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pl-t-stats li { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.pl-t-stats b { color: #fff; font-size: clamp(28px, 2.6vw, 38px); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.pl-t-stats span { color: #a9c1d3; font-size: 14.5px; line-height: 1.4; }
@media (max-width: 900px) { .pl-teaser { grid-template-columns: minmax(0, 1fr); } }

/* PayLab project page */
.pl-page-head { padding-top: clamp(28px, 3vw, 44px); }
.pl-back { display: inline-block; margin-bottom: 18px; font-size: 15px; color: var(--muted); text-decoration: none; }
.pl-back:hover { color: var(--ink); }
.pl-page-head h1 { font-size: clamp(34px, 4.4vw, 64px); line-height: 1.05; letter-spacing: -.02em; color: var(--ink); margin: 8px 0 0; }

/* PayLab page: real class architecture diagram, full width */
.pl-diagram { margin: 0 0 clamp(28px, 3.5vw, 48px); background: #fff; border: 1px solid var(--line-soft); border-radius: 20px; padding: clamp(10px, 1.4vw, 20px); box-shadow: 0 18px 50px rgba(10, 20, 40, .10); }
.pl-diagram a { display: block; }
.pl-diagram img { display: block; width: 100%; height: auto; border-radius: 10px; cursor: zoom-in; }
.pl-diagram figcaption { margin: 12px 4px 2px; font-size: 14px; color: var(--muted); }
.pl-diagram figcaption a { display: inline; color: #0e7490; font-weight: 500; text-decoration: none; }
.pl-grid-2 { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .pl-grid-2 { grid-template-columns: minmax(0, 1fr); } }
/* PayLab diagram: dark theme card to match the dark diagram */
.pl-diagram { background: #070d18; border-color: #15243b; box-shadow: 0 18px 50px rgba(10, 20, 40, .22); }
.pl-diagram figcaption { color: #8aa3b8; }
.pl-diagram figcaption a { color: #67e8f9; }

/* Hero deploy card: animated AI / MCP runs (assets/hero-deploy.js) */
.mock-deploy.md-live ul { min-height: 8.6em; align-content: start; }
.mock-deploy.md-live > * { transition: opacity .35s ease; }
.mock-deploy.md-out ul, .mock-deploy.md-out .mock-status, .mock-deploy.md-out .mock-bar span { opacity: 0; }
.mock-deploy.md-live .mock-status { opacity: 0; transform: translateY(4px); transition: opacity .4s ease, transform .4s ease; }
.mock-deploy.md-live .mock-status.md-show { opacity: 1; transform: none; }
.mock-deploy li.md-in:not(.md-done) { color: #fff; }
.md-spin { width: 11px; height: 11px; flex: none; border-radius: 50%; border: 2px solid rgba(143, 130, 255, .3); border-top-color: #a99bff; animation: md-rot .7s linear infinite; }
@keyframes md-rot { to { transform: rotate(360deg); } }
.md-prompt { color: #fff; }
.md-caret-ic { color: #a99bff; }
.md-typed::after { content: ""; display: inline-block; width: 7px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: #a99bff; animation: md-blink 1s steps(1) infinite; }
.md-sent .md-typed::after { display: none; }
.md-sent { color: #a9b0d6; }
@keyframes md-blink { 50% { opacity: 0; } }

/* Footer: real Lagos skyline video (assets/footer-video.js) */
.fx { position: relative; overflow: hidden; isolation: isolate; }
.fx-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--foot); }
.fx-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%;
  filter: grayscale(1) contrast(1.2) brightness(.95); opacity: .8; }
.fx-bg::before { content: ""; position: absolute; inset: 0; z-index: 1; background: #7c6cff; mix-blend-mode: color; opacity: .28; }
.fx-bg::after { content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to bottom, rgba(7, 10, 23, .96) 0%, rgba(7, 10, 23, .72) 35%, rgba(7, 10, 23, .5) 75%, rgba(7, 10, 23, .62) 100%); }
body.labs .fx-bg::before { background: #22d3ee; opacity: .22; }
body.labs .fx-bg::after { background: linear-gradient(to bottom, rgba(3, 6, 12, .96) 0%, rgba(3, 6, 12, .72) 35%, rgba(3, 6, 12, .5) 75%, rgba(3, 6, 12, .62) 100%); }
/* Labs footer: scrolling code (assets/footer-code.js) */
.fx-code { position: absolute; inset: 0; }
.fx-bg-code::before { display: none; }
body.labs .fx-bg-code::after { background: linear-gradient(to bottom, rgba(3, 6, 12, .95) 0%, rgba(3, 6, 12, .6) 35%, rgba(3, 6, 12, .3) 75%, rgba(3, 6, 12, .55) 100%); }

/* Labs FAQ: heading on top, questions as cards in two columns */
.faq-grid { display: block; }
.faq-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 36px; }
.faq-head p { margin: 0; max-width: 420px; }
.faq-head a, .faq-a a { color: var(--hi); font-weight: 500; }
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.faq-item { background: #fff; border: 1px solid rgba(13, 13, 18, .08); border-radius: 18px; transition: border-color .2s ease, box-shadow .2s ease; }
.faq-item:hover, .faq-item[open] { border-color: rgba(8, 145, 178, .35); box-shadow: 0 8px 24px rgba(13, 13, 18, .06); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-size: 17px; font-weight: 500; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--tint); color: var(--hi); font-size: 19px; font-weight: 400; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:focus-visible { outline: 2px solid var(--hi); outline-offset: 3px; border-radius: 18px; }
.faq-a { padding: 0 22px 20px; }
.faq-a p { margin: 0; line-height: 1.65; color: #5b5970; font-size: 15.5px; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } .faq-head { display: block; } .faq-head p { margin-top: 12px; } }

/* Learn section (/learn/) */
.lr-head .eyebrow { display: block; margin-top: 18px; }
.lr-head h1 { margin: 10px 0 0; max-width: 18ch; }
.lr-lede { max-width: 62ch; font-size: 19px; line-height: 1.65; color: #5b5970; margin-top: 18px; }
.lr-body-sec { padding-top: 0; }
.lr-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.lr-body { max-width: 68ch; font-size: 17px; line-height: 1.75; color: #34324a; }
.lr-body h2 { font-size: 24px; margin: 36px 0 10px; color: var(--ink); }
.lr-body h2:first-child { margin-top: 0; }
.lr-body p { margin: 0 0 14px; }
.lr-body ul, .lr-body ol { padding-left: 22px; margin: 0 0 14px; }
.lr-body li { margin: 6px 0; }
.lr-body a { color: var(--hi); font-weight: 500; }
.lr-body code { font: 15px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--tint); padding: 2px 6px; border-radius: 6px; }
.lr-key { display: flex; gap: 14px; align-items: flex-start; margin: 32px 0 8px; padding: 18px 20px; border-radius: 16px; background: var(--tint); border: 1px solid rgba(8, 145, 178, .2); }
.lr-key span { flex: none; background: #fcd34d; color: #1a1440; font-weight: 600; font-size: 14px; border-radius: 999px; padding: 4px 12px; }
.lr-key p { margin: 0; font-weight: 500; color: var(--ink); }
.lr-table { border: 1px solid rgba(13, 13, 18, .1); border-radius: 16px; overflow: hidden; margin: 0 0 8px; font-size: 15.5px; }
.lr-tr { display: grid; grid-template-columns: 1fr 1.4fr 1.4fr; }
.lr-tr + .lr-tr { border-top: 1px solid rgba(13, 13, 18, .08); }
.lr-tr span { padding: 12px 14px; line-height: 1.45; }
.lr-tr span:first-child { font-weight: 600; color: var(--ink); }
.lr-th span { font-weight: 600; color: var(--ink); background: var(--tint); }
.lr-aside { position: sticky; top: 100px; }
.lr-aside img, .lr-card img, .lr-gallery img { display: block; width: 100%; height: auto; border-radius: 18px; }
.lr-cardimg img { box-shadow: 0 20px 50px rgba(6, 10, 19, .25); }
.lr-save { font-size: 14px; color: #5b5970; margin-top: 12px; text-align: center; }
.lr-save a { color: var(--hi); font-weight: 500; }
.lr-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.lr-gallery img { border-radius: 10px; }
.lr-h { font-size: 26px; margin: 0 0 20px; }
.lr-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.lr-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lr-card { display: block; text-decoration: none; color: inherit; background: #fff; border: 1px solid rgba(13, 13, 18, .08); border-radius: 22px; padding: 12px 12px 18px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.lr-card:hover { transform: translateY(-3px); border-color: rgba(8, 145, 178, .35); box-shadow: 0 14px 30px rgba(13, 13, 18, .08); }
.lr-card img { border-radius: 14px; }
.lr-cat { display: block; margin: 14px 6px 4px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--hi); font-weight: 600; }
.lr-card b { display: block; margin: 0 6px; font-size: 18px; font-weight: 600; color: var(--ink); }
.lr-card p { margin: 6px 6px 0; font-size: 14.5px; line-height: 1.55; color: #5b5970; }
@media (max-width: 1100px) { .lr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .lr-layout { grid-template-columns: 1fr; }
  .lr-aside { position: static; max-width: 420px; order: -1; }
  .lr-grid, .lr-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lr-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) { .lr-grid, .lr-grid-3 { grid-template-columns: 1fr; } .lr-tr { font-size: 14px; } .lr-tr span { padding: 10px; } }
