/* Motion, colour and readability layer */
:root { --grad: linear-gradient(110deg, #087d73 0%, #22b59a 35%, #d6a84c 65%, #7765a8 100%); }
body { font-size: 15px; }

.scroll-progress { position: fixed; top: 0; left: 0; z-index: 50; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); background: var(--grad); }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(245, 244, 239, .82); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); transition: box-shadow .25s ease, background .25s ease; }
.site-header.scrolled { background: rgba(245, 244, 239, .94); box-shadow: 0 6px 24px #102a3514; }
.site-header.scrolled .nav-shell { min-height: 66px; }
.nav-shell { transition: min-height .25s ease; }
.main-nav a { position: relative; font-size: 14px; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--teal); }

/* Hero colour */
.hero-blobs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-blobs i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45; animation: blob 18s ease-in-out infinite alternate; }
.hero-blobs i:nth-child(1) { width: 420px; height: 420px; top: -120px; left: -100px; background: #40c5a7; }
.hero-blobs i:nth-child(2) { width: 360px; height: 360px; bottom: -140px; left: 35%; background: #e9c46a; animation-delay: -6s; opacity: .35; }
.hero-blobs i:nth-child(3) { width: 300px; height: 300px; top: 10%; right: -80px; background: #8c8be3; animation-delay: -12s; opacity: .3; }
@keyframes blob { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, 30px) scale(1.12); } 100% { transform: translate(-30px, 10px) scale(.95); } }
.hero-grid { position: relative; z-index: 1; }
.hero h1 span { background: var(--grad); background-size: 220% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 7s linear infinite; padding-right: .06em; }
@keyframes shine { to { background-position: 220% center; } }
.hero-intro { font-size: 17px; }
.hero-footnote { font-size: 13px; }
.eyebrow { font-size: 11px; }
.text-link { font-size: 14px; }
.button { font-size: 14px; }
.button-primary { background: linear-gradient(135deg, #087d73, #13a189); box-shadow: 0 10px 26px #087d7340; }
.button-primary:hover { background: linear-gradient(135deg, #066c64, #0f8f7a); box-shadow: 0 14px 30px #087d7355; }

.hero-visual { transition: transform .3s ease; transform: perspective(1000px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)); box-shadow: 0 30px 60px #102a3530; }
.flow-card { animation: float 6s ease-in-out infinite; }
.flow-service-card { animation-delay: -2s; }
.flow-results > div { animation: float 7s ease-in-out infinite; transition: transform .2s ease, background .2s ease; }
.flow-results > div:nth-child(2) { animation-delay: -1.5s; }
.flow-results > div:nth-child(3) { animation-delay: -3s; }
.flow-results > div:hover { background: #ffffff18; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.flow-connector i { animation: drop 1.6s ease-in-out infinite; }
@keyframes drop { 0% { opacity: .2; transform: translateY(-6px) rotate(45deg); } 50% { opacity: 1; } 100% { opacity: .2; transform: translateY(4px) rotate(45deg); } }
.status-dot, .pulse { animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 #40c5a780; } 100% { box-shadow: 0 0 0 12px #40c5a700; } }
.visual-spark { animation: twinkle 4s ease-in-out infinite; }
.spark-b { animation-delay: -2s; }
@keyframes twinkle { 0%, 100% { opacity: .35; transform: scale(.85) rotate(0); } 50% { opacity: 1; transform: scale(1.15) rotate(20deg); } }
.flow-card small, .flow-results small, .visual-caption { font-size: 9px; }
.flow-card strong { font-size: 14px; }
.flow-results strong { font-size: 11px; }
.visual-note { font-size: 11px; }

/* Capability strip */
.capability-strip { background: linear-gradient(90deg, #e3f3ec, #f5efe0 50%, #ece9f6); }
.capability-row > span { font-size: 11px; }
.capability-row > div { font-size: 13px; transition: transform .2s ease; }
.capability-row > div:hover { transform: translateY(-2px); color: var(--teal); }

/* Services */
.section-heading > p { font-size: 15px; }
.service-card { position: relative; overflow: hidden; border-radius: 12px; }
.service-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px #1b3a351f; }
.service-card .card-icon { transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.service-card:hover .card-icon { transform: scale(1.15) rotate(-6deg); }
.service-card h3 { font-size: 18px; }
.service-card p { font-size: 14px; }
.card-link { font-size: 12px; }
.card-index { font-size: 14px; }
.scope-note { font-size: 13px; }

/* Approach, company, CTA */
.platform-section { background: radial-gradient(ellipse at 15% 0%, #154a55 0, transparent 55%), radial-gradient(ellipse at 90% 100%, #1d5a4a 0, transparent 50%), var(--deep); }
.platform-copy > p:not(.eyebrow) { font-size: 15px; }
.platform-steps article { transition: background .25s ease, padding .25s ease; border-radius: 8px; }
.platform-steps article:hover { background: #ffffff0a; padding-inline: 12px; }
.platform-steps h3 { font-size: 16px; }
.platform-steps p { font-size: 13px; }
.step-number { font-size: 18px; }
.company-row > p { font-size: 15px; }
.company-copy .eyebrow { font-size: 11px; }
.company-mark { animation: spinmark 14s linear infinite; }
.company-mark span { animation: spinmark 14s linear infinite reverse; }
@keyframes spinmark { to { transform: rotate(360deg); } }
.admin-cta { background: linear-gradient(120deg, #066c64, #0c8f7f 45%, #12786d); background-size: 200% 200%; animation: wave 12s ease infinite; }
@keyframes wave { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.admin-cta p:not(.eyebrow) { font-size: 14px; }
.site-footer p, .site-footer small { font-size: 12px; }
.site-footer a:not(.brand) { font-size: 13px; }

/* Scroll reveal (only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .service-card.reveal.in:hover { transform: translateY(-6px); }
.js .hero-visual.reveal.in { transform: perspective(1000px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)); }

@media (max-width: 760px) {
  .main-nav a { font-size: 13px; }
  .hero-intro { font-size: 15px; }
  .hero-blobs i { filter: blur(50px); }
  .nav-admin { font-size: 12px; }
}
@media (max-width: 480px) {
  .main-nav a { font-size: 12px; }
  .nav-admin { font-size: 11px; }
  .flow-results small { font-size: 7px; }
  .flow-results strong { font-size: 10px; }
  .capability-row > div { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .hero-blobs i, .hero h1 span, .flow-card, .flow-results > div, .company-mark, .company-mark span, .admin-cta { animation: none !important; }
}
.hero { position: relative; overflow: hidden; isolation: isolate; }
