/* AppSage site styles — shared by every PHP page.
   Same tokens as the cinematic home page (appsage-cinematic). */
:root {
  --bg: #eef2f7;
  --surface: #ffffff;
  --ink: #0b1020;
  --ink-2: #3a4256;
  --muted: #5d667a;
  --line: rgba(11, 16, 32, 0.1);
  --paper: #f8f3e7;
  --navy: #023a74;
  --orange: #ff7a18;
  --orange-ink: #b44a00;
  --c1: #1fb6e8;
  --c2: #6f4bff;
  --c3: #e9449a;
  --paint: linear-gradient(100deg, var(--c1) 0%, var(--c2) 48%, var(--c3) 78%, var(--orange) 100%);
  --radius: 22px;
  --display: "Archivo", system-ui, sans-serif;
  --body: "Nunito Sans", system-ui, sans-serif;
  --wrap: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--body);
  overflow-x: clip;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
}
h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.1;
}
p {
  margin: 0 0 1em;
}
:focus-visible {
  outline: 2px solid var(--c2);
  outline-offset: 3px;
  border-radius: 6px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
}
.skip:focus {
  top: 12px;
}
.wrap {
  width: min(var(--wrap), 100% - 32px);
  margin-inline: auto;
}
@media (min-width: 768px) {
  .wrap {
    width: min(var(--wrap), 100% - 64px);
  }
}

/* ---------- type ---------- */
.display {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.paint {
  /* room for the last glyph, which tight letter-spacing would clip */
  padding-right: 0.08em;
  margin-right: -0.08em;
  background: var(--paint);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.lead {
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--ink-2);
  max-width: 62ch;
}
.prose {
  max-width: 72ch;
}
.prose h2 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(24px, 2.6vw, 32px);
  margin-top: 1.6em;
}
.prose h3 {
  font-family: var(--display);
  font-size: 21px;
  margin-top: 1.4em;
}
.prose ul,
.prose ol {
  padding-left: 1.2em;
  margin: 0 0 1.2em;
}
.prose li {
  margin-bottom: 0.45em;
}
.prose a {
  color: var(--navy);
  text-underline-offset: 3px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 700 15px/1 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-ink {
  background: var(--ink);
  color: #fff;
}
.btn-ink:hover {
  background: var(--orange);
  color: var(--ink);
}
.btn-orange {
  background: var(--orange);
  color: var(--ink);
}
.btn-orange:hover {
  background: #fff;
}
.btn-ghost {
  border-color: rgba(11, 16, 32, 0.25);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--ink);
}
.btn-ghost-light {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.btn-ghost-light:hover {
  border-color: #fff;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(238, 242, 247, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}
.brand {
  font: 800 24px/1 var(--display);
  letter-spacing: -0.04em;
  text-decoration: none;
  color: var(--ink);
}
.brand span {
  color: var(--orange);
}
.main-nav {
  margin-left: auto;
}
.main-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  color: var(--ink-2);
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(11, 16, 32, 0.06);
}
.header-cta {
  min-height: 42px;
  padding: 10px 20px;
}
.menu-btn {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  position: relative;
}
.menu-btn span:not(.sr-only) {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s;
}
.menu-btn span:nth-child(2) {
  top: 18px;
}
.menu-btn span:nth-child(3) {
  top: 26px;
}
.menu-btn[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(4px) rotate(45deg);
}
.menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}
.mobile-menu {
  padding: 8px 16px 24px;
  border-top: 1px solid var(--line);
}
.mobile-menu ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
.mobile-menu li a {
  display: block;
  padding: 12px 4px;
  font: 800 24px/1.1 var(--display);
  letter-spacing: -0.02em;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mobile-menu p {
  margin-top: 16px;
  font-size: 15px;
  color: var(--muted);
}
@media (max-width: 1180px) {
  .main-nav,
  .header-cta {
    display: none;
  }
  .menu-btn {
    display: block;
  }
}

/* ---------- page hero ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 88px);
}
.page-hero h1 {
  font-size: clamp(42px, 7vw, 96px);
  max-width: 16ch;
}
.hero-paint {
  position: absolute;
  inset: -20% -10% auto auto;
  width: min(760px, 90vw);
  aspect-ratio: 1;
  background: radial-gradient(closest-side at 40% 45%, rgba(31, 182, 232, 0.45), transparent 70%),
    radial-gradient(closest-side at 62% 38%, rgba(111, 75, 255, 0.42), transparent 70%),
    radial-gradient(closest-side at 55% 66%, rgba(233, 68, 154, 0.35), transparent 70%),
    radial-gradient(closest-side at 32% 70%, rgba(255, 122, 24, 0.28), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}
.page-hero .wrap {
  position: relative;
  z-index: 1;
}
.crumbs {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
}
.crumbs a {
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--ink);
}
.crumbs span {
  margin: 0 6px;
  opacity: 0.5;
}

/* ---------- sections ---------- */
.section {
  padding: clamp(56px, 8vw, 110px) 0;
}
.section-tight {
  padding: clamp(40px, 5vw, 70px) 0;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 40px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head h2 {
  font-size: clamp(32px, 4.6vw, 58px);
  max-width: 18ch;
  margin: 0;
}
.section-head p {
  max-width: 46ch;
  color: var(--ink-2);
  margin: 0;
}
.surface {
  background: var(--surface);
}
.dark {
  background: var(--ink);
  color: #fff;
}
.dark .eyebrow,
.dark .section-head p {
  color: rgba(255, 255, 255, 0.7);
}
.navy {
  background: var(--navy);
  color: #fff;
}

/* ---------- cards ---------- */
.grid {
  display: grid;
  gap: 18px;
}
.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}
.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.card h3 {
  font: 800 22px/1.15 var(--display);
  letter-spacing: -0.02em;
}
.card p {
  color: var(--ink-2);
  margin: 0;
}
a.card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
a.card:hover {
  transform: translateY(-4px);
  border-color: rgba(11, 16, 32, 0.2);
  box-shadow: 0 24px 48px -28px rgba(11, 16, 32, 0.35);
}
.card .more {
  margin-top: auto;
  padding-top: 18px;
  font-weight: 800;
  font-size: 15px;
}
.card .more::after {
  content: " →";
}
.icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--bg);
  margin-bottom: 18px;
}
.icon svg {
  width: 26px;
  height: 26px;
}
.dark .card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.dark .card p {
  color: rgba(255, 255, 255, 0.72);
}
.tick-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.tick-list li {
  position: relative;
  padding-left: 30px;
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--paint);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.chips li {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 14px;
  font-weight: 700;
}
.dark .chips li {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
}

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.stats dt {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.stats dd {
  margin: 6px 0 0;
  font: 800 clamp(36px, 5vw, 60px) / 1 var(--display);
  letter-spacing: -0.04em;
}

/* ---------- portfolio ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.filters button {
  font: 700 14px/1 var(--body);
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
}
.filters button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.work-card {
  padding: 0;
  overflow: hidden;
}
.work-card .thumb {
  aspect-ratio: 16 / 10;
  background: var(--bg);
  overflow: hidden;
}
.work-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
a.work-card:hover .thumb img {
  transform: scale(1.04);
}
.work-card .body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.work-card h3 {
  font-size: 20px;
}
.work-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.work-card .tags li {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink-2);
}
.work-card[hidden] {
  display: none;
}
.logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px 56px;
}
.logos img {
  height: 44px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.7;
  transition: filter 0.2s, opacity 0.2s;
}
.logos img:hover {
  filter: none;
  opacity: 1;
}

/* ---------- steps ---------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}
.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.steps li::before {
  content: "0" counter(step);
  display: block;
  font: 800 14px/1 var(--display);
  letter-spacing: 0.1em;
  color: var(--orange-ink);
  margin-bottom: 18px;
}
.steps h3 {
  font: 800 20px/1.15 var(--display);
}
.steps p {
  color: var(--ink-2);
  margin: 0;
}

/* ---------- faq ---------- */
.faq {
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font: 800 clamp(18px, 1.8vw, 21px) / 1.3 var(--display);
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 20px;
  line-height: 1;
  transition: transform 0.25s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details > div {
  padding: 0 0 24px;
  color: var(--ink-2);
  max-width: 75ch;
}

/* ---------- forms ---------- */
.form {
  display: grid;
  gap: 16px;
}
.form .row {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
.form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
}
.form input,
.form select,
.form textarea {
  font: 400 16px/1.4 var(--body);
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(11, 16, 32, 0.18);
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.form textarea {
  min-height: 150px;
  resize: vertical;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--c2);
  outline-offset: 1px;
  border-color: transparent;
}
.hp {
  position: absolute;
  left: -9999px;
}
.form-status {
  margin: 0;
  font-weight: 700;
  min-height: 1.6em;
}
.form-status.ok {
  color: #0a7a3d;
}
.form-status.err {
  color: #b42318;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}
.contact-list strong {
  display: block;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-list a {
  font: 800 20px/1.3 var(--display);
  text-decoration: none;
}
.map {
  border: 0;
  width: 100%;
  min-height: 320px;
  border-radius: var(--radius);
}

/* ---------- article ---------- */
.article-meta {
  color: var(--muted);
  font-size: 15px;
}
.article-layout {
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 1000px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}
.aside-card {
  position: sticky;
  top: 96px;
  align-self: start;
}

/* ---------- cta band & footer ---------- */
.cta-band {
  background: var(--navy);
  color: #fff;
  padding: clamp(56px, 8vw, 100px) 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  right: -10%;
  top: -40%;
  width: 640px;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(255, 122, 24, 0.5), transparent 70%);
  filter: blur(20px);
}
.cta-band .wrap {
  position: relative;
}
.cta-band h2 {
  font-size: clamp(36px, 6vw, 80px);
  max-width: 14ch;
}
.cta-band p {
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  margin-bottom: 28px;
}
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 72px 0 28px;
  font-size: 15px;
}
.site-footer .brand {
  color: #fff;
}
.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
@media (min-width: 1000px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  }
}
.footer-about p {
  margin: 16px 0;
  max-width: 42ch;
}
.footer-about address {
  font-style: normal;
}
.footer-title {
  font: 800 13px/1 var(--body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.site-footer a {
  text-decoration: none;
}
.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.45);
}
.wa-float svg {
  width: 30px;
  height: 30px;
}

/* ---------- reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn:hover,
  a.card:hover {
    transform: none;
  }
}

/* ---------- utilities ---------- */
.split {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  align-items: start;
}
.mt-0 {
  margin-top: 0;
}
.center {
  text-align: center;
}
.muted {
  color: var(--muted);
}
.wa-send {
  background: #25d366;
  color: #fff;
  width: fit-content;
}
.wa-send:hover {
  background: #1ebe5b;
}

/* ---------- colourful cursor (fine pointers only, added by site.js) ---------- */
.has-cursor,
.has-cursor * {
  cursor: none !important;
}
.cur-layer {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.cur-layer.on {
  opacity: 1;
}
.cur-layer > span {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
}
.cur-dot {
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  background: var(--paint);
  box-shadow: 0 0 12px rgba(111, 75, 255, 0.8);
}
.cur-ring {
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  transition: width 0.3s, height 0.3s, margin 0.3s;
}
.cur-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 2px;
  background: conic-gradient(from var(--spin, 0deg), #1fb6e8, #6f4bff, #e9449a, #ff7a18, #1fb6e8);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: cur-spin 3s linear infinite;
}
.cur-ring::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(111, 75, 255, 0.22), transparent);
}
.cur-ring.is-hover {
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
}
.cur-ring.is-down::before {
  padding: 4px;
}
@property --spin {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@keyframes cur-spin {
  to {
    --spin: 360deg;
  }
}

/* ---------- lighting & effects ---------- */
.hero-paint {
  filter: blur(26px) saturate(1.35);
  opacity: 1;
  animation: hero-float 18s ease-in-out infinite alternate;
}
.hero-paint::after {
  /* a bright core of light inside the colour cloud */
  content: "";
  position: absolute;
  inset: 30% 30% 30% 30%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.85), rgba(160, 231, 255, 0.35) 55%, transparent);
}
@keyframes hero-float {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  100% { transform: translate3d(-4vw, 3vh, 0) rotate(25deg) scale(1.08); }
}
.page-hero::after {
  /* thin light line under the hero */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(111, 75, 255, 0.45), rgba(31, 182, 232, 0.45), transparent);
}
.paint {
  background-size: 220% 100%;
  animation: shimmer 7s ease-in-out infinite;
  filter: drop-shadow(0 0 16px rgba(111, 75, 255, 0.25));
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
/* cards: crisp edge, soft light following the pointer */
.card {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 10px 30px -22px rgba(11, 16, 32, 0.35);
  isolation: isolate;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, -40%), rgba(111, 75, 255, 0.12), rgba(31, 182, 232, 0.06) 40%, transparent 65%);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
  pointer-events: none;
}
.card:hover::before {
  opacity: 1;
}
a.card:hover {
  border-color: rgba(111, 75, 255, 0.35);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 28px 60px -30px rgba(111, 75, 255, 0.55);
}
.icon {
  background: linear-gradient(135deg, rgba(31, 182, 232, 0.16), rgba(111, 75, 255, 0.16) 50%, rgba(233, 68, 154, 0.14));
  color: #3b2fd1;
}
.btn-ink:hover,
.btn-orange:hover {
  box-shadow: 0 10px 30px -10px rgba(255, 122, 24, 0.75);
}
.btn-ink {
  box-shadow: 0 10px 26px -14px rgba(11, 16, 32, 0.8);
}
/* dark and navy sections get their own light */
.dark,
.cta-band {
  position: relative;
  overflow: hidden;
}
.dark::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto auto;
  width: 70vmax;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(111, 75, 255, 0.4), transparent 70%), radial-gradient(closest-side at 30% 70%, rgba(31, 182, 232, 0.3), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.dark > .wrap {
  position: relative;
}
.dark .card::before {
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, -40%), rgba(160, 231, 255, 0.18), transparent 65%);
}
.cta-band::after {
  content: "";
  position: absolute;
  left: -10%;
  bottom: -50%;
  width: 560px;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(31, 182, 232, 0.45), transparent 70%);
  filter: blur(30px);
}
@media (prefers-reduced-motion: reduce) {
  .hero-paint, .paint { animation: none; }
}

/* ---------- header dropdowns ---------- */
.main-nav li {
  position: relative;
}
.main-nav .caret {
  width: 12px;
  height: 12px;
  margin-left: 2px;
  vertical-align: -1px;
  transition: transform 0.2s;
}
.main-nav .has-sub:hover .caret,
.main-nav .has-sub:focus-within .caret {
  transform: rotate(180deg);
}
.submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 340px;
  max-width: 420px;
  padding: 10px;
  margin-top: 8px;
  display: grid;
  gap: 2px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 30px 60px -25px rgba(11, 16, 32, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  z-index: 60;
}
.submenu::before {
  /* hover bridge between the link and the panel */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}
.has-sub:hover > .submenu,
.has-sub:focus-within > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.main-nav .submenu a {
  display: grid;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 15px;
  color: var(--ink);
  background: none;
}
.main-nav .submenu a:hover {
  background: linear-gradient(100deg, rgba(31, 182, 232, 0.1), rgba(111, 75, 255, 0.1));
}
.submenu span {
  font-weight: 400;
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
}
.mobile-menu details summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  padding: 12px 4px;
  font: 800 24px/1.1 var(--display);
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--line);
}
.mobile-menu details summary::-webkit-details-marker {
  display: none;
}
.mobile-menu details summary::after {
  content: "+";
  font-weight: 400;
}
.mobile-menu details[open] summary::after {
  content: "–";
}
.mobile-menu details a {
  display: block;
  padding: 9px 4px 9px 14px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-2);
}
.mobile-menu details .sub-all {
  color: var(--navy);
  font-weight: 800;
}
.mobile-menu {
  max-height: calc(100vh - 72px);
  overflow-y: auto;
}
.submenu.wide {
  grid-template-columns: 1fr 1fr;
  min-width: 660px;
  max-width: 720px;
}
