/* =========================================================================
   Aspient — site layer (minimal enterprise).
   Loaded after tailwind.css. One accent colour, hairline borders, precise
   motion. All motion is gated by prefers-reduced-motion at the bottom.

   Motion vocabulary (kept deliberately small and consistent):
     · rise      — content enters 28px below, 0.9s expo-out, staggered by --i
     · words     — headlines slide up out of a mask, word by word
     · draw      — hairlines / connectors scale in from the left
     · count     — numbers tick up once
     · spotlight — cards follow the cursor with a soft highlight
     · float     — one hero visual drifts a few px (nothing else loops)
   ========================================================================= */

/* ---------- Base ---------- */
html { scroll-behavior: auto; }
::selection { background: rgb(var(--brand-500) / .18); }
:focus-visible { outline: 2px solid rgb(var(--brand-500)); outline-offset: 3px; }
h1, h2, h3, h4, .font-display { letter-spacing: -0.03em; font-weight: 600; }
h1 { text-wrap: balance; }
h2 { text-wrap: balance; }
.hero-headline { letter-spacing: -0.035em; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.cc-hide { display: none !important; }

/* Retire decorative layers inherited from earlier designs */
#cursor-glow, #page-loader, #particles-bg { display: none !important; }
.bg-grid-pattern, .bg-noise-overlay, .bg-dots-pattern { background-image: none !important; }
.text-gradient { color: rgb(var(--brand-600)); background: none; -webkit-text-fill-color: currentColor; animation: none; }

/* ---------- Surfaces ---------- */
.bg-surface { background-color: rgb(var(--c-surface)); }
.section-mesh { background-color: rgb(var(--c-surface)); position: relative; }
.bg-ink-deep { background-color: rgb(var(--c-ink-deep)); }

/* Section rhythm: hairline between adjacent sections */
main > section + section { border-top: 1px solid rgb(var(--c-border) / .7); }

/* ---------- Buttons ---------- */
.btn-primary, .btn-secondary, .btn-ghost {
  position: relative; overflow: hidden; isolation: isolate;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease,
              box-shadow .35s var(--ease-out-soft), transform .2s var(--ease-out-soft);
}
.btn-primary {
  background-image: none;
  box-shadow: 0 1px 0 rgb(255 255 255 / .18) inset, 0 1px 2px rgb(var(--brand-700) / .35);
}
.btn-primary::before {              /* sheen sweep on hover */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / .22) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease-out-expo);
}
.btn-primary:hover { background-color: rgb(var(--brand-600)); box-shadow: 0 8px 20px -8px rgb(var(--brand-600) / .55); }
.btn-primary:hover::before { transform: translateX(120%); }
.btn-secondary:hover { border-color: rgb(var(--brand-500)); color: rgb(var(--brand-600)); }
.btn-ghost:hover { background-color: rgb(var(--brand-50)); }
.btn-primary:active, .btn-secondary:active, .btn-ghost:active { transform: translateY(1px); }
.btn-primary i.fa-arrow-right, .btn-secondary i.fa-arrow-right { transition: transform .3s var(--ease-out-soft); }
.btn-primary:hover i.fa-arrow-right, .btn-secondary:hover i.fa-arrow-right { transform: translateX(3px); }
.magnetic, .tilt { transform: none !important; }

/* ---------- Eyebrow with a drawing hairline ---------- */
.eyebrow::before {
  content: ""; width: 22px; height: 1.5px; background: currentColor;
  transform-origin: 0 50%; display: inline-block;
}
.js .eyebrow:not(.is-in)::before { transform: scaleX(0); }
.eyebrow.is-in::before { animation: draw .9s var(--ease-out-expo) .1s backwards; }
.text-center .eyebrow::before, .eyebrow.justify-center::before { display: none; }

/* ---------- Cards ---------- */
.card-surface, .card-hover {
  position: relative;
  background-color: rgb(var(--c-bg));
  border: 1px solid rgb(var(--c-border));
  box-shadow: none;
  backdrop-filter: none;
  transition: transform .45s var(--ease-out-soft), border-color .3s ease, box-shadow .45s var(--ease-out-soft), background-color .3s ease;
}
.card-surface:hover, .card-hover:hover {
  transform: translateY(-3px);
  border-color: rgb(var(--brand-500) / .35);
  box-shadow: 0 18px 40px -22px rgb(var(--shadow-color) / .22);
}
/* cursor spotlight — position fed by site.js via --sx/--sy */
.card-surface::after, .card-hover::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(380px circle at var(--sx, 50%) var(--sy, 50%), rgb(var(--brand-500) / .07), transparent 60%);
  transition: opacity .35s ease;
}
.card-surface:hover::after, .card-hover:hover::after { opacity: 1; }
.card-hover img { transition: transform .9s var(--ease-out-expo); }
.card-hover:hover img { transform: scale(1.035); }

/* Icon tile: fills on card hover */
.icon-tile {
  background-image: none !important; box-shadow: none;
  transition: background-color .35s ease, color .35s ease, border-color .35s ease, transform .45s var(--ease-out-soft);
}
.icon-tile::after { display: none; }
.card-hover:hover .icon-tile, .card-surface:hover .icon-tile, a.group:hover .icon-tile {
  background-color: rgb(var(--brand-500)); color: #fff; border-color: rgb(var(--brand-500));
}

/* ---------- Header ---------- */
nav[aria-label="Primary"] {
  background: rgb(255 255 255 / .86) !important;
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  box-shadow: none !important;
  border-bottom: 1px solid transparent !important;
  transition: transform .5s var(--ease-out-expo), border-color .3s ease, background-color .3s ease;
}
nav[aria-label="Primary"].is-scrolled { border-bottom-color: rgb(var(--c-border)) !important; background: rgb(255 255 255 / .94) !important; }
nav[aria-label="Primary"].is-hidden { transform: translateY(-100%); }
.nav-link { border-radius: 8px; font-weight: 500; letter-spacing: 0; color: rgb(var(--c-text-muted)); position: relative; }
.nav-link:hover { background: transparent; color: rgb(var(--c-text)); }
.nav-link::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .3rem; height: 1.5px;
  background: rgb(var(--brand-500)); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .4s var(--ease-out-expo);
}
.nav-link:hover::after, .nav-link.nav-link-active::after { transform: scaleX(1); }
.nav-link.nav-link-active, .nav-link.glassy-active { background: transparent; color: rgb(var(--c-text)); }
#services-submenu { border-radius: 14px; box-shadow: 0 24px 60px -24px rgb(var(--shadow-color) / .3); }
.dropdown-link { transition: background-color .2s ease; }
.dropdown-link:hover { background: rgb(var(--c-surface)); }
.nav-item-cta { background: rgb(var(--brand-500)); background-image: none; }
.nav-icon, .service-icon { background: rgb(var(--brand-50)); color: rgb(var(--brand-600)); }
.action-bar-icon { background: rgb(var(--c-surface)); border-radius: 10px; }

/* ---------- Scroll progress + page transition ---------- */
#scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 9990; pointer-events: none;
  background: rgb(var(--brand-500)); transform-origin: 0 50%; transform: scaleX(0);
}
main { transition: opacity .28s ease, transform .28s ease; }
html.is-leaving main { opacity: 0; transform: translateY(-6px); }

/* =========================================================================
   Motion primitives
   ========================================================================= */
@keyframes rise  { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes riseS { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes wordUp { from { transform: translateY(108%); } to { transform: none; } }
@keyframes draw  { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fade-in-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.animate-fade-in-up { animation: fade-in-up .9s var(--ease-out-expo) both; }

/* Scroll reveal: hidden only when JS is present; animation (not transition) so
   it never fights hover transforms once finished. */
.js [data-reveal]:not(.is-in), .js .rv:not(.is-in) { opacity: 0; }
[data-reveal].is-in, .rv.is-in { animation: rise .95s var(--ease-out-expo) backwards; animation-delay: calc(var(--i, 0) * 75ms); }
[data-reveal="fade"].is-in { animation-name: riseS; }

/* Word-by-word headline reveal (JS wraps words in .w > .wi) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.wi { display: inline-block; will-change: transform; }
.js .sh:not(.is-in) .wi { transform: translateY(108%); }
.sh.is-in .wi { animation: wordUp 1s var(--ease-out-expo) backwards; animation-delay: calc(var(--w, 0) * 38ms); }

/* Hairlines that draw themselves */
.draw { transform-origin: 0 50%; }
.js .draw:not(.is-in) { transform: scaleX(0); }
.draw.is-in { animation: draw 1.2s var(--ease-out-expo) backwards; animation-delay: calc(var(--i, 0) * 90ms); }
.draw-y { transform-origin: 50% 0; }
.js .draw-y:not(.is-in) { transform: scaleY(0); }
.draw-y.is-in { animation: drawY 1.4s var(--ease-out-expo) backwards; }
@keyframes drawY { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Media: image wipes open and settles */
.media-reveal { overflow: hidden; }
.js .media-reveal:not(.is-in) { clip-path: inset(0 0 100% 0); }
.media-reveal.is-in { animation: wipe 1.2s var(--ease-out-expo) backwards; }
.media-reveal img { transition: transform 1.4s var(--ease-out-expo); }
.js .media-reveal:not(.is-in) img { transform: scale(1.12); }
@keyframes wipe { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

/* ---------- Hero entrance (first section of every page) ---------- */
main > section:first-of-type .animate-fade-in-up, .a3-hero .animate-fade-in-up { animation: none; }
html.js:not(.is-ready) main > section:first-of-type :is(.eyebrow, h1 ~ p, h1 ~ div, .hv-panel, .hv-chip),
html.js:not(.is-ready) .a3-hero :is(.a3-eyebrow, .sub, .a3-hero__cta, .a3-hero__links, .a3-pill, .a3-sheet-wrap) { opacity: 0; }
html.js:not(.is-ready) main > section:first-of-type h1:not(.is-split),
html.js:not(.is-ready) .a3-hero h1:not(.is-split) { visibility: hidden; }
html.is-ready .hero-t { animation: rise 1.1s var(--ease-out-expo) backwards; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
html.is-ready h1.is-split .wi { animation: wordUp 1.1s var(--ease-out-expo) backwards; animation-delay: calc(var(--w, 0) * 50ms + 120ms); }
html.js:not(.is-ready) h1.is-split .wi { transform: translateY(108%); }

/* ---------- Hero canvas: clean paper with a faint measuring grid ---------- */
main > section:first-of-type, .aurora { position: relative; isolation: isolate; background-color: rgb(var(--c-bg)) !important; background-image: none !important; overflow: hidden; }
main > section:first-of-type > .absolute, .aurora > .absolute { display: none !important; }
main > section:first-of-type::before, .aurora::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(520px 420px at 8% 12%, rgb(var(--tone-coral) / .16), transparent 70%),
    radial-gradient(560px 460px at 92% 8%, rgb(var(--tone-indigo) / .16), transparent 70%),
    radial-gradient(520px 420px at 70% 108%, rgb(var(--tone-teal) / .16), transparent 70%),
    radial-gradient(420px 320px at 30% 105%, rgb(var(--tone-amber) / .12), transparent 70%);
}
main > section:first-of-type::after, .aurora::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgb(var(--c-text) / .07) 1px, transparent 1.2px); background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%);
}

/* ---------- Hero visual: product console ---------- */
.hv { position: relative; width: 100%; max-width: 560px; margin-left: auto; }
.hv-panel {
  position: relative; background: rgb(var(--c-bg)); border: 1px solid rgb(var(--c-border));
  border-radius: 16px; box-shadow: 0 40px 80px -40px rgb(var(--shadow-color) / .3), 0 2px 6px rgb(var(--shadow-color) / .04);
  overflow: hidden;
}
.hv-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid rgb(var(--c-border)); background: rgb(var(--c-surface)); }
.hv-bar > i { width: 9px; height: 9px; border-radius: 50%; background: rgb(var(--c-border-strong)); display: block; }
.hv-url { margin-left: 10px; font: 500 12px/1 'Inter', sans-serif; color: rgb(var(--c-text-faint)); letter-spacing: .01em; }
.hv-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font: 600 11px/1 'Inter', sans-serif; color: rgb(var(--c-success)); text-transform: uppercase; letter-spacing: .08em; }
.hv-live b { width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--c-success)); display: block; animation: livePing 2.4s ease-out infinite; }
@keyframes livePing { 0% { box-shadow: 0 0 0 0 rgb(var(--c-success) / .5); } 80%, 100% { box-shadow: 0 0 0 7px rgb(var(--c-success) / 0); } }
.hv-body { padding: 20px; }
.hv-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.hv-core { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: rgb(var(--brand-500)); color: #fff; font-size: 1.1rem; }
.hv-title { font: 600 15px/1.2 'Sora', sans-serif; color: rgb(var(--c-text)); letter-spacing: -.02em; }
.hv-sub { font: 500 12px/1.3 'Inter', sans-serif; color: rgb(var(--c-text-faint)); margin-top: 3px; }
.hv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hv-row {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px;
  border: 1px solid rgb(var(--c-border)); background: rgb(var(--c-bg)); position: relative;
  animation: rowFocus 10s var(--ease-out-soft) infinite; animation-delay: calc(var(--r, 0) * 2.5s);
}
.hv-row .ic { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: rgb(var(--brand-50)); color: rgb(var(--brand-600)); font-size: .85rem; flex-shrink: 0; }
.hv-row .t { font: 600 13px/1.2 'Inter', sans-serif; color: rgb(var(--c-text)); }
.hv-row .s { font: 500 11.5px/1.3 'Inter', sans-serif; color: rgb(var(--c-text-faint)); margin-top: 2px; }
.hv-row .ok { margin-left: auto; font-size: .7rem; color: rgb(var(--c-success)); }
@keyframes rowFocus {
  0%, 22%, 100% { border-color: rgb(var(--c-border)); box-shadow: none; transform: none; }
  4%, 18% { border-color: rgb(var(--brand-500) / .5); box-shadow: 0 8px 22px -14px rgb(var(--brand-500) / .55); transform: translateX(4px); }
}
.hv-chart { margin-top: 16px; padding-top: 16px; border-top: 1px dashed rgb(var(--c-border)); display: flex; align-items: flex-end; gap: 6px; height: 74px; }
.hv-chart span { flex: 1; border-radius: 4px 4px 0 0; background: rgb(var(--brand-100)); height: var(--h, 40%); transform-origin: 50% 100%; }
.hv-chart span:nth-child(3n) { background: rgb(var(--brand-300)); }
.hv-chart span:last-child { background: rgb(var(--brand-500)); }
html.is-ready .hv-chart span { animation: barGrow 1.2s var(--ease-out-expo) backwards; animation-delay: calc(.7s + var(--k, 0) * 55ms); }
@keyframes barGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.hv-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 9px; padding: 9px 13px; border-radius: 12px;
  background: rgb(var(--c-bg)); border: 1px solid rgb(var(--c-border)); box-shadow: 0 18px 40px -20px rgb(var(--shadow-color) / .3);
  font: 600 12.5px/1 'Inter', sans-serif; color: rgb(var(--c-text)); white-space: nowrap;
}
.hv-chip i { color: rgb(var(--brand-500)); }
.hv-chip small { font-weight: 500; color: rgb(var(--c-text-faint)); font-size: 11px; display: block; margin-top: 3px; }
.hv-chip-a { left: -28px; bottom: 54px; animation: hvFloat 7s ease-in-out infinite; }
.hv-chip-b { right: -18px; top: -18px; animation: hvFloat 8s ease-in-out -3s infinite; }
@keyframes hvFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@media (max-width: 1023px) { .hv-chip-a { left: -8px; } .hv-chip-b { right: -4px; } }

/* ---------- Stat strip ---------- */
.stat-num { font-family: 'Sora', sans-serif; font-weight: 600; letter-spacing: -.04em; color: rgb(var(--c-text)); font-variant-numeric: tabular-nums; }

/* ---------- Dark CTA band (static, confident) ---------- */
.cta-band {
  position: relative; isolation: isolate; overflow: hidden;
  background: rgb(var(--c-ink-deep)); color: #fff;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgb(255 255 255 / .06) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / .06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 60% 100% at 50% 0%, #000, transparent 75%);
          mask-image: radial-gradient(ellipse 60% 100% at 50% 0%, #000, transparent 75%);
}
.cta-band::after { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(520px 360px at 15% 0%, rgb(var(--tone-coral) / .35), transparent 70%), radial-gradient(560px 380px at 85% 10%, rgb(var(--tone-indigo) / .5), transparent 70%), radial-gradient(520px 360px at 55% 110%, rgb(var(--tone-teal) / .35), transparent 70%); animation: ctaBreath 9s ease-in-out infinite; }
@keyframes ctaBreath { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
.cta-band h2 { color: #fff; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 14px; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 7px)); } }
.marquee-item {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px;
  border: 1px solid rgb(var(--c-border)); background: rgb(var(--c-bg));
  font: 600 14px/1 'Inter', sans-serif; color: rgb(var(--c-text-muted)); white-space: nowrap;
  transition: color .25s ease, border-color .25s ease;
}
.marquee-item i { font-size: 1.15rem; color: rgb(var(--c-text-faint)); transition: color .25s ease; }
.marquee-item:hover { color: rgb(var(--c-text)); border-color: rgb(var(--brand-500) / .4); }
.marquee-item:hover i { color: rgb(var(--brand-500)); }

/* ---------- Process / timeline ---------- */
.tl-line { background: rgb(var(--c-border)); position: relative; }
.tl-line > i { position: absolute; inset: 0; background: rgb(var(--brand-500)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); display: block; }
.step-dot { width: 10px; height: 10px; border-radius: 50%; background: rgb(var(--c-bg)); border: 2px solid rgb(var(--brand-500)); display: inline-block; }

/* ---------- Footer (light, so it separates cleanly from the dark CTA band) ---------- */
footer[role="contentinfo"] { background: rgb(var(--c-surface)); color: rgb(var(--c-text-muted)); border-top: 1px solid rgb(var(--c-border)) !important; margin-top: 0 !important; }
footer[role="contentinfo"] > .absolute { display: none; }
footer[role="contentinfo"] .bg-surface { background: transparent !important; }
footer[role="contentinfo"] h4 { font-size: .75rem; letter-spacing: .14em; color: rgb(var(--c-text)); }
footer[role="contentinfo"] a { transition: color .25s ease; }
.footer-social { width: 2.4rem; height: 2.4rem; border-radius: 10px; display: grid; place-items: center; color: rgb(var(--c-text-muted)); border: 1px solid rgb(var(--c-border-strong)); background: rgb(var(--c-bg)); transition: background-color .3s ease, color .3s ease, transform .3s var(--ease-out-soft), border-color .3s ease; }
.footer-social:hover { background: rgb(var(--brand-500)); border-color: rgb(var(--brand-500)); color: #fff; transform: translateY(-2px); }
.footer-link { display: inline-flex; align-items: center; gap: .6rem; color: rgb(var(--c-text-muted)); font-size: .92rem; transition: color .25s ease, transform .3s var(--ease-out-soft); }
.footer-link i { color: rgb(var(--c-text-faint)); width: 1rem; text-align: center; transition: color .25s ease; }
.footer-link:hover { color: rgb(var(--brand-600)); transform: translateX(3px); }
.footer-link:hover i { color: rgb(var(--brand-500)); }

/* ---------- Misc retained utilities ---------- */
.scroll-indicator-mouse { display: block; width: 22px; height: 34px; border-radius: 12px; border: 2px solid currentColor; position: relative; }
.scroll-indicator-dot { position: absolute; top: 6px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: currentColor; animation: scrollDot 1.8s ease-in-out infinite; }
@keyframes scrollDot { 0% { opacity: 1; transform: translateY(0); } 70% { opacity: 0; transform: translateY(10px); } 100% { opacity: 0; transform: translateY(0); } }
.corner-fade { -webkit-mask-image: radial-gradient(circle at center, #000 0%, #000 30%, transparent 78%); mask-image: radial-gradient(circle at center, #000 0%, #000 30%, transparent 78%); }
[data-modal-spinner] { animation: modalSpin .85s linear infinite; }
@keyframes modalSpin { to { transform: rotate(360deg); } }
#message-rich:empty:before { content: attr(data-placeholder); color: rgb(var(--c-text-faint)); pointer-events: none; }
#message-rich:focus { outline: none; box-shadow: 0 0 0 2px rgb(var(--brand-500) / .5); }
#message-rich ol { list-style: decimal; margin-left: 1.25rem; }
#message-rich ul { list-style: disc; margin-left: 1.25rem; }
#message-rich div { min-height: 1em; }
.works-strip .works-viewport { overflow-x: auto; scrollbar-width: none; }

/* ---------- Mobile ---------- */
@media (max-width: 639px) {
  .flex-col.sm\:flex-row > .btn-primary, .flex-col.sm\:flex-row > .btn-secondary, .flex-col.sm\:flex-row > .btn-ghost { width: 100%; justify-content: center; }
  .hero-headline { line-height: 1.1; }
}
@media (max-width: 1023px) { body { padding-bottom: 4.5rem; } }

/* ---------- Reduced motion: everything visible, nothing moves ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .js [data-reveal]:not(.is-in), .js .rv:not(.is-in), .js .sh:not(.is-in) .wi, .js .draw:not(.is-in), .js .draw-y:not(.is-in), .js .media-reveal:not(.is-in) { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  #scroll-progress { display: none; }
  .marquee-track { animation: none; }
}

/* =========================================================================
   Homepage / shared patterns
   ========================================================================= */

/* Text link with a sliding arrow */
.link-arrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .95rem; color: rgb(var(--brand-600)); transition: gap .3s var(--ease-out-soft), color .25s ease; }
.link-arrow:hover, a:hover > .link-arrow, .group:hover .link-arrow { gap: .8rem; }

/* Service index list: hairline rows that fill and draw on hover */
.svc-row { position: relative; display: grid; grid-template-columns: 2.25rem 2.75rem 1fr auto; gap: 1.1rem; align-items: start; padding: 1.9rem .25rem; border-top: 1px solid rgb(var(--c-border)); transition: padding .5s var(--ease-out-soft), background-color .3s ease; }
.svc-row::after { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: rgb(var(--brand-500)); transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s var(--ease-out-expo); }
.svc-row:hover { padding-left: 1rem; padding-right: 1rem; background: rgb(var(--c-surface)); }
.svc-row:hover::after { transform: scaleX(1); }
.svc-num { font: 600 .85rem/2.75rem 'Sora', sans-serif; color: rgb(var(--c-text-faint)); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.svc-ic { width: 2.75rem; height: 2.75rem; border-radius: 10px; display: grid; place-items: center; background: rgb(var(--brand-50)); color: rgb(var(--brand-600)); border: 1px solid rgb(var(--brand-100)); transition: background-color .35s ease, color .35s ease, border-color .35s ease; }
.svc-row:hover .svc-ic { background: rgb(var(--brand-500)); color: #fff; border-color: rgb(var(--brand-500)); }
.svc-arrow { align-self: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgb(var(--c-border)); color: rgb(var(--c-text-muted)); transition: transform .45s var(--ease-out-soft), background-color .3s ease, color .3s ease, border-color .3s ease; font-size: .8rem; }
.svc-row:hover .svc-arrow { background: rgb(var(--brand-500)); border-color: rgb(var(--brand-500)); color: #fff; transform: translateX(4px) rotate(-45deg); }
@media (max-width: 639px) { .svc-row { grid-template-columns: 2.75rem 1fr; } .svc-num, .svc-arrow { display: none; } }

/* Dark panels */
.dark-grid {
  background-image: linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 0%, #000, transparent 78%); mask-image: radial-gradient(ellipse 70% 90% at 50% 0%, #000, transparent 78%);
}
.work-card { transition: border-color .35s ease, background-color .35s ease, transform .5s var(--ease-out-soft); }
.work-card:hover { border-color: rgb(var(--brand-400) / .6); background-color: rgb(255 255 255 / .06); transform: translateY(-4px); }
.work-card .icon-tile { transition: background-color .35s ease, color .35s ease; }
.work-card:hover .icon-tile { background: rgb(var(--brand-500)) !important; border-color: rgb(var(--brand-500)) !important; }

/* Why items: line + number drift */
.why-item .icon-tile { transition: background-color .35s ease, color .35s ease, border-color .35s ease; }
.why-item:hover .icon-tile { background: rgb(var(--brand-500)); color: #fff; border-color: rgb(var(--brand-500)); }

/* Marquee: second row runs the other way */
.marquee-rev .marquee-track { animation-direction: reverse; animation-duration: 56s; }
.marquee-track { animation-duration: 52s; }

/* Footer top edge + cookie toast */
#cookie-consent > div { border-radius: 14px; box-shadow: 0 24px 60px -24px rgb(var(--shadow-color) / .35); backdrop-filter: none; background: rgb(var(--c-bg)); }
#cookie-consent:not(.cc-hide) { animation: rise .9s var(--ease-out-expo) 1.2s backwards; }

/* Aspirant (a3) pages: same section motion as the rest of the site */
.a3 h2.a3-h2 { font-weight: 600; letter-spacing: -.03em; }
.a3-hero h1, .a3-hero h1 .a3-hl { font-weight: 600 !important; }

/* Brand emphasis on dark surfaces */
.text-white .text-gradient, .cta-band .text-gradient, .bg-ink-deep .text-gradient, [class*="bg-slate-9"] .text-gradient { color: rgb(var(--brand-300)); }

/* Clear the fixed header on every page's first section */
main > section:first-of-type { padding-top: 5.25rem; }

.js [data-reveal].hero-open, .js .rv.hero-open { opacity: 1; animation: none; }

/* Services mega-menu: solid panel, tidy rows (the old bg-white/98 class never compiled, leaving it see-through) */
#services-submenu { background: #fff !important; border: 1px solid rgb(var(--c-border)); border-radius: 16px; padding: .75rem !important; box-shadow: 0 30px 70px -28px rgb(var(--shadow-color) / .35); backdrop-filter: none; z-index: 60; }
#services-submenu .dropdown-link { padding: .7rem .8rem; border-radius: 10px; align-items: center; }
#services-submenu .dropdown-link:hover { background: rgb(var(--c-surface)); }
#services-submenu .dropdown-link:hover .icon-tile { background: rgb(var(--brand-500)); color: #fff; border-color: rgb(var(--brand-500)); }
#services-submenu .dropdown-link .text-ink { font-weight: 600; font-size: .9rem; }
#services-submenu .dropdown-link .text-muted { font-size: .78rem; }
#services-submenu a:not(.dropdown-link) { color: rgb(var(--brand-600)); }
#services-submenu::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }

/* =========================================================================
   Warm & colourful pass
   ========================================================================= */

/* Cards sit white on the warm paper */
.card-surface, .card-hover { background-color: #fff; }
.role-panels, .bg-surface .card-surface { background-color: #fff; }

/* Rotating tone per grid cell / list row, consumed by icon tiles, numbers and hovers */
:root { --tone: var(--tone-indigo); --tone-t: var(--tone-indigo-t); }
.grid > :nth-child(4n+1), .svc-row:nth-child(4n+1), .step-t:nth-child(4n+1) { --tone: var(--tone-indigo); --tone-t: var(--tone-indigo-t); }
.grid > :nth-child(4n+2), .svc-row:nth-child(4n+2), .step-t:nth-child(4n+2) { --tone: var(--tone-teal); --tone-t: var(--tone-teal-t); }
.grid > :nth-child(4n+3), .svc-row:nth-child(4n+3), .step-t:nth-child(4n+3) { --tone: var(--tone-coral); --tone-t: var(--tone-coral-t); }
.grid > :nth-child(4n+4), .svc-row:nth-child(4n+4), .step-t:nth-child(4n+4) { --tone: var(--tone-amber); --tone-t: var(--tone-amber-t); }
.icon-tile, .svc-ic { background: rgb(var(--tone) / .12) !important; color: rgb(var(--tone-t)) !important; border-color: rgb(var(--tone) / .25) !important; }
.card-hover:hover .icon-tile, .card-surface:hover .icon-tile, a.group:hover .icon-tile, .svc-row:hover .svc-ic, .why-item:hover .icon-tile, .dropdown-link:hover .icon-tile {
  background: rgb(var(--tone)) !important; color: #fff !important; border-color: rgb(var(--tone)) !important;
}
.card-hover:hover, .card-surface:hover { border-color: rgb(var(--tone) / .45); }
.svc-row::after { background: rgb(var(--tone)); }
.svc-row:hover .svc-arrow { background: rgb(var(--tone)); border-color: rgb(var(--tone)); }
.svc-num { color: rgb(var(--tone-t)); }
.draw { background-color: rgb(var(--tone)) !important; }
.work-card:hover .icon-tile { background: rgb(var(--tone)) !important; }
.hv-row .ic { background: rgb(var(--tone) / .12); color: rgb(var(--tone-t)); }
.hv-list > :nth-child(1) { --tone: var(--tone-indigo); --tone-t: var(--tone-indigo-t); } .hv-list > :nth-child(2) { --tone: var(--tone-teal); --tone-t: var(--tone-teal-t); } .hv-list > :nth-child(3) { --tone: var(--tone-coral); --tone-t: var(--tone-coral-t); } .hv-list > :nth-child(4) { --tone: var(--tone-amber); --tone-t: var(--tone-amber-t); }
.hv-chart span { background: rgb(var(--tone-indigo) / .18); }
.hv-chart span:nth-child(3n) { background: rgb(var(--tone-teal) / .5); }
.hv-chart span:nth-child(5n) { background: rgb(var(--tone-coral) / .55); }
.hv-chart span:last-child { background: rgb(var(--tone-indigo)); }
.chip { background: #fff; }

/* Dark panels: warmer, with colour glows instead of a flat grid */
.bg-ink-deep { position: relative; isolation: isolate; }
.dark-grid { background: radial-gradient(520px 340px at 10% 0%, rgb(var(--tone-coral) / .22), transparent 70%), radial-gradient(560px 380px at 95% 15%, rgb(var(--tone-indigo) / .4), transparent 70%), radial-gradient(520px 340px at 60% 110%, rgb(var(--tone-teal) / .22), transparent 70%); -webkit-mask-image: none; mask-image: none; }

/* Hero visual: photo with the console overlapping it */
.hv { max-width: 580px; }
.hv-photo { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 11; box-shadow: 0 40px 80px -40px rgb(var(--shadow-color) / .45); }
.hv-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hv-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgb(var(--tone-indigo) / .28), transparent 55%, rgb(var(--tone-coral) / .22)); mix-blend-mode: multiply; }
.hv-photo + .hv-panel { width: 86%; margin: -150px 0 0 -6%; position: relative; }
.hv-chip-b { top: 14px; right: 14px; }
.hv-chip-a { left: auto; right: -8px; bottom: 36px; }

/* Imagery used across sections */
.img-card { position: relative; overflow: hidden; border-radius: 14px; aspect-ratio: 16 / 10; background: rgb(var(--c-surface-2)); }
.img-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out-expo); }
.card-hover:hover .img-card img, a.group:hover .img-card img { transform: scale(1.06); }
.img-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgb(var(--c-ink-deep) / .35)); }
.img-tag { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .7rem; border-radius: 999px; background: rgb(255 255 255 / .92); font: 600 12px/1 'Inter', sans-serif; color: rgb(var(--c-text)); }
.img-tag i { color: rgb(var(--tone-t)); }

/* Floating photo preview that follows the cursor over the service index */
#svc-preview { position: fixed; z-index: 40; width: 280px; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; pointer-events: none; opacity: 0; transform: translate3d(0, 0, 0) scale(.92); transition: opacity .3s ease, scale .4s var(--ease-out-soft); box-shadow: 0 30px 60px -24px rgb(var(--shadow-color) / .5); border: 4px solid #fff; }
#svc-preview.is-on { opacity: 1; scale: 1; }
#svc-preview img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none), (max-width: 1023px) { #svc-preview { display: none; } }

/* Work cards: full-bleed photo, shade, details lift on hover */
.work-card { border: 1px solid rgb(255 255 255 / .12); background: rgb(var(--c-ink-deep)); }
.work-card:hover { transform: translateY(-4px); background: rgb(var(--c-ink-deep)); }
.work-bg { transition: transform 1.4s var(--ease-out-expo), filter .6s ease; filter: saturate(.9); }
.work-card:hover .work-bg { transform: scale(1.07); filter: saturate(1.1); }
.work-shade { background: linear-gradient(180deg, rgb(var(--c-ink-deep) / .15) 0%, rgb(var(--c-ink-deep) / .55) 45%, rgb(var(--c-ink-deep) / .94) 100%); transition: opacity .5s ease; }
.work-card:hover .work-shade { background: linear-gradient(180deg, rgb(var(--tone) / .25) 0%, rgb(var(--c-ink-deep) / .7) 40%, rgb(var(--c-ink-deep) / .96) 100%); }
.work-more { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .6s var(--ease-out-expo), opacity .5s ease; }
.work-more > p { overflow: hidden; }
.work-card:hover .work-more, .work-card:focus-within .work-more { grid-template-rows: 1fr; opacity: 1; }
@media (hover: none) { .work-more { grid-template-rows: 1fr; opacity: 1; } }
.work-card .icon-tile { color: rgb(var(--tone-t)) !important; }

/* CTA band photo (sits under the colour glows) */
.cta-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .45; mix-blend-mode: luminosity; pointer-events: none; }
.cta-band::before { background: linear-gradient(180deg, rgb(var(--c-ink-deep) / .55), rgb(var(--c-ink-deep) / .75)) !important; -webkit-mask-image: none !important; mask-image: none !important; z-index: -1; }
.cta-band::after { z-index: -1; mix-blend-mode: screen; }

/* =========================================================================
   Multi-step contact form
   ========================================================================= */
.cf-progress { list-style: none; margin: 0 0 .9rem; padding: 0; display: flex; gap: .5rem; justify-content: space-between; }
.cf-progress li { display: flex; align-items: center; gap: .55rem; font: 600 .8rem/1 'Inter', sans-serif; color: rgb(var(--c-text-faint)); }
.cf-dot { width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid rgb(var(--c-border-strong)); background: #fff; font-size: .75rem; transition: all .4s var(--ease-out-soft); }
.cf-progress li.is-current { color: rgb(var(--c-text)); }
.cf-progress li.is-current .cf-dot { border-color: rgb(var(--brand-500)); background: rgb(var(--brand-500)); color: #fff; box-shadow: 0 0 0 4px rgb(var(--brand-500) / .15); }
.cf-progress li.is-done { color: rgb(var(--c-text-muted)); }
.cf-progress li.is-done .cf-dot { border-color: rgb(var(--tone-teal)); background: rgb(var(--tone-teal)); color: #fff; }
.cf-bar { height: 3px; border-radius: 3px; background: rgb(var(--c-border)); margin-bottom: 1.5rem; overflow: hidden; }
.cf-bar > i { display: block; height: 100%; background: rgb(var(--brand-500)); transform-origin: 0 50%; transform: scaleX(0); transition: transform .6s var(--ease-out-expo); }
.cf-step[hidden] { display: none !important; }
.cf-step.cf-in { animation: riseS .55s var(--ease-out-expo) both; }
@media (max-width: 520px) { .cf-label { display: none; } .cf-progress li.is-current .cf-label { display: inline; } }

/* Keyboard / click-open state for the services menu (hover still works via utilities) */
li.group.is-open > #services-submenu, li.group:focus-within > #services-submenu { visibility: visible !important; opacity: 1 !important; transform: translateX(-50%) scale(1) !important; }
li.group.is-open #services-menu-button svg, li.group:focus-within #services-menu-button svg { transform: rotate(180deg); }
/* Skip link and focus visibility on dark surfaces */
.cta-band :focus-visible, .bg-ink-deep :focus-visible, footer :focus-visible { outline-color: #fff; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline-offset: 3px; }
.role-switch-input:focus-visible + .role-switch-label { outline: 2px solid rgb(var(--brand-500)); outline-offset: 2px; }

/* =========================================================================
   Page transitions (cross-document View Transitions), curved section edges,
   animated logo
   ========================================================================= */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .28s ease both; }
::view-transition-new(root) { animation: vtIn .5s var(--ease-out-expo) both; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; transform: translateY(10px); } }
nav[aria-label="Primary"] { view-transition-name: site-nav; }
/* Card photo morphs into the destination page's hero photo */
[style*="view-transition-name: vt-"] { contain: layout; }
::view-transition-group(*) { animation-duration: .6s; animation-timing-function: var(--ease-out-expo); }
::view-transition-old(site-nav), ::view-transition-new(site-nav) { animation: none; mix-blend-mode: normal; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* Hero chips keep floating after their entrance */
html.is-ready .hv-chip.hero-t { animation: rise 1.1s var(--ease-out-expo) backwards, hvFloat 7s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 90ms + 120ms), 0s; }

/* Curved section edges: each tinted/dark section overlaps the previous one with rounded top corners */
main > section.bg-surface:not(:first-of-type), main > section.bg-ink-deep:not(:first-of-type), main > section.section-mesh:not(:first-of-type),
main > section.bg-slate-50:not(:first-of-type), .cta-band, footer[role="contentinfo"] {
  border-top: 0 !important; border-top-left-radius: 2.25rem; border-top-right-radius: 2.25rem; margin-top: -2.25rem; position: relative;
}
main > section.bg-surface:not(:first-of-type), main > section.bg-ink-deep:not(:first-of-type), main > section.section-mesh:not(:first-of-type), main > section.bg-slate-50:not(:first-of-type) { padding-top: calc(var(--sec-pt, 6rem) + 1rem); }
main > section:has(+ section.bg-surface), main > section:has(+ section.bg-ink-deep), main > section:has(+ section.cta-band), main > section:has(+ section.section-mesh) { padding-bottom: calc(var(--sec-pb, 6rem) + 2.25rem); }
footer[role="contentinfo"] { margin-top: -2.25rem !important; }
@media (max-width: 767px) { main > section, .cta-band, footer[role="contentinfo"] { border-top-left-radius: 1.5rem !important; border-top-right-radius: 1.5rem !important; } }

/* Animated logo: wipes in once, lifts on hover */
nav[aria-label="Primary"] a[href$="index.php"] > img { animation: logoReveal 1.1s var(--ease-out-expo) .15s backwards; transition: transform .4s var(--ease-out-soft), filter .4s ease; }
nav[aria-label="Primary"] a[href$="index.php"]:hover > img { transform: translateY(-1px) scale(1.03); filter: drop-shadow(0 6px 14px rgb(var(--tone-indigo) / .35)); }
@keyframes logoReveal { from { clip-path: inset(0 100% 0 0); opacity: .2; transform: translateX(-8px); } to { clip-path: inset(0 0 0 0); opacity: 1; transform: none; } }

/* Sticky sub-navs follow the header: sit under it when shown, snap to the top when it hides */
html .a3 .a3-subnav { top: var(--sticky-top, 88px); transition: top .5s var(--ease-out-expo); }
html .a3 .a3-sec { scroll-margin-top: calc(var(--nav-h, 88px) + 64px); }
.a3-subnav__in { scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.a3-subnav a { scroll-snap-align: center; }
@media (max-width: 767px) {
  .a3-subnav__in { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 28px), transparent 100%); padding-left: 1rem; padding-right: 1.5rem; }
}
