/* =====================================================================
   SHINA Technologies Ltd — site stylesheet
   Root • Flow • Pulse
   ---------------------------------------------------------------------
   1. Tokens          5. Header / nav       9. Cards & grids
   2. Base            6. Footer             10. Page-specific
   3. Layout          7. Hero & page hero   11. Forms, toast
   4. Buttons, chips  8. Sections           12. Motion & responsive
   ===================================================================== */

/* 1. Tokens ---------------------------------------------------------- */
:root {
    --green-950: #0B2919;
    --green-900: #114228;
    --green-700: #1F5B39;
    --green-500: #2F7A50;
    --cream: #F7F5F0;
    --cream-2: #EAE6DD;
    --white: #FFFFFF;
    --gold: #D4AF37;
    --gold-600: #B59226;
    --gold-soft: rgba(212, 175, 55, 0.14);
    --ink: #1C2421;
    --muted: #59625D;
    --muted-light: #B9C4BD;
    --line: #E2DDD2;
    --line-dark: rgba(255, 255, 255, 0.10);
    --danger: #B42318;

    --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --shadow-sm: 0 1px 2px rgba(11, 41, 25, 0.06), 0 1px 3px rgba(11, 41, 25, 0.05);
    --shadow: 0 10px 30px -12px rgba(11, 41, 25, 0.18);
    --shadow-lg: 0 30px 60px -20px rgba(11, 41, 25, 0.35);

    --container: 1200px;
    --header-h: 76px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* 2. Base ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--cream);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; color: var(--green-950); }
h1, h2 { font-family: var(--font-serif); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--gold); color: var(--green-950); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 100;
    background: var(--green-950); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 12px; }
i[data-lucide], svg.lucide { width: 1.15em; height: 1.15em; flex-shrink: 0; stroke-width: 2; }

/* 3. Layout ---------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .container { padding-inline: 32px; } }

.section { padding-block: 88px; position: relative; }
.section-sm { padding-block: 56px; }
.section-white { background: var(--white); }
.section-cream2 { background: var(--cream-2); }
.section-dark { background: var(--green-950); color: #E7ECE9; overflow: hidden; }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark p { color: var(--muted-light); }
.border-y { border-block: 1px solid var(--line); }

.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.85rem); margin-top: 16px; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.05rem; }
.section-dark .section-head p { color: var(--muted-light); }
.section-head-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 48px; }
.section-head-row .section-head { margin: 0; text-align: left; }

.grid { display: grid; gap: 24px; }
.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%, 240px), 1fr)); }
.split { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1024px) {
    .split { grid-template-columns: 1.1fr 0.9fr; }
    .split.even { grid-template-columns: 1fr 1fr; }
    .split.reverse > :first-child { order: 2; }
}
.stack > * + * { margin-top: 20px; }
.center { text-align: center; }
.mt-lg { margin-top: 48px; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.mono { font-family: var(--font-mono); }

.bg-dots {
    background-image: radial-gradient(rgba(17, 66, 40, 0.09) 1px, transparent 1px);
    background-size: 24px 24px;
}
.section-dark.bg-dots, .bg-dots-dark {
    background-image: radial-gradient(rgba(212, 175, 55, 0.10) 1px, transparent 1px);
    background-size: 26px 26px;
}
.glow { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; z-index: 0; }
.glow-gold { background: rgba(212, 175, 55, 0.16); }
.glow-green { background: rgba(31, 91, 57, 0.30); }
.rel { position: relative; z-index: 1; }

/* 4. Buttons, chips -------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 26px; border-radius: 14px; border: 1px solid transparent;
    font-weight: 700; font-size: 0.95rem; line-height: 1.2; white-space: nowrap;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green-900); color: #fff; border-color: rgba(212, 175, 55, 0.35); box-shadow: 0 12px 24px -12px rgba(17, 66, 40, 0.6); }
.btn-primary:hover { background: var(--green-950); box-shadow: 0 18px 30px -14px rgba(17, 66, 40, 0.7); }
.btn-primary i, .btn-primary svg { color: var(--gold); }
.btn-gold { background: var(--gold); color: var(--green-950); }
.btn-gold:hover { background: var(--gold-600); }
.btn-ghost { background: var(--white); color: var(--green-950); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { background: var(--cream-2); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.btn-outline-light:hover { border-color: var(--gold); color: var(--gold); }
.btn-whatsapp { background: #128C4A; color: #fff; }
.btn-whatsapp:hover { background: #0E733C; }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 999px;
    font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
    background: var(--gold-soft); color: var(--gold-600); border: 1px solid rgba(212, 175, 55, 0.25);
}
.eyebrow.green { background: rgba(17, 66, 40, 0.08); color: var(--green-900); border-color: rgba(17, 66, 40, 0.15); }
.section-dark .eyebrow { color: var(--gold); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: blink 1.8s infinite; }

.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px; border-radius: 999px; font-size: 0.72rem; font-weight: 700;
    background: rgba(17, 66, 40, 0.08); color: var(--green-900);
}
.chip.gold { background: var(--gold-soft); color: #7A6114; }
.chip.dark { background: rgba(255, 255, 255, 0.08); color: #E7ECE9; }
.chip-root { background: #E6EFE9; color: var(--green-900); }
.chip-flow { background: #EEF0E2; color: #4E5A12; }
.chip-pulse { background: #F7EDD0; color: #7A6114; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
    padding: 9px 16px; border-radius: 12px; border: 1px solid var(--line);
    background: var(--white); color: var(--green-950); font-size: 0.82rem; font-weight: 700;
    transition: background .2s, color .2s, border-color .2s;
}
.filter-btn:hover { border-color: var(--gold); }
.filter-btn.is-active { background: var(--green-950); color: #fff; border-color: var(--green-950); }

/* 5. Header / nav ---------------------------------------------------- */
.topbar { background: var(--green-950); color: #C9D3CD; font-size: 0.78rem; border-bottom: 1px solid rgba(212, 175, 55, 0.18); }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar-left { display: flex; align-items: center; gap: 8px; }
.topbar-right { display: none; gap: 22px; }
.topbar a { display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.topbar a:hover { color: var(--gold); }
@media (min-width: 640px) { .topbar-right { display: flex; } }

#site-header { min-height: calc(var(--header-h) + 38px); }
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(247, 245, 240, 0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .3s, background .3s;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(11, 41, 25, 0.35); background: rgba(247, 245, 240, 0.96); }
.nav { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
    width: 46px; height: 46px; border-radius: 12px; overflow: hidden; flex-shrink: 0;
    background: #E9E4D9; border: 1px solid rgba(212, 175, 55, 0.4); box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.brand:hover .brand-mark { transform: rotate(-4deg) scale(1.05); }
.brand-name { font-family: var(--font-serif); font-weight: 700; font-size: 1.45rem; line-height: 1; color: var(--green-950); letter-spacing: 0.04em; display: block; }
.brand-tag { font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-600); font-weight: 700; display: block; margin-top: 4px; }

.nav-links { display: none; align-items: center; gap: 4px; }
.nav-links a {
    position: relative; padding: 8px 12px; border-radius: 10px;
    font-size: 0.9rem; font-weight: 600; color: var(--green-950); transition: color .2s, background .2s;
    display: inline-flex; align-items: center; gap: 6px;
}
.nav-links a:hover { color: var(--green-700); background: rgba(17, 66, 40, 0.05); }
.nav-links a.is-active { color: var(--green-900); }
.nav-links a.is-active::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--gold);
}
.nav-badge { font-size: 0.6rem; font-weight: 800; padding: 2px 6px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-600); }
.nav-cta { display: none; }
.menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); color: var(--green-950);
}
.menu-btn svg { width: 22px; height: 22px; }
@media (min-width: 1080px) {
    .nav-links { display: flex; }
    .nav-cta { display: inline-flex; }
    .menu-btn { display: none; }
}

.mobile-nav {
    display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease);
    border-top: 1px solid transparent;
}
.mobile-nav > div { overflow: hidden; }
.mobile-nav.is-open { grid-template-rows: 1fr; border-top-color: var(--line); }
.mobile-nav nav { padding: 12px 0 22px; display: grid; gap: 4px; }
.mobile-nav a { padding: 12px 14px; border-radius: 12px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.mobile-nav a:hover, .mobile-nav a.is-active { background: var(--cream-2); }
.mobile-nav .btn { margin-top: 10px; }
@media (min-width: 1080px) { .mobile-nav { display: none; } }

/* 6. Footer ---------------------------------------------------------- */
.site-footer { background: var(--green-950); color: #C9D3CD; border-top: 1px solid rgba(212, 175, 55, 0.2); position: relative; overflow: hidden; }
.footer-cta { padding-block: 64px; border-bottom: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: center; }
.footer-cta h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.4rem); max-width: 620px; }
.footer-cta p { color: var(--muted-light); margin-top: 10px; }
.footer-grid { padding-block: 56px; display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.footer-brand { grid-column: 1 / -1; max-width: 380px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } .footer-brand { grid-column: auto; } }
.footer-brand p { font-size: 0.86rem; margin-top: 16px; color: #9FB0A6; }
.footer-brand .brand-name { color: #fff; }
.footer-motto { margin-top: 14px; font-size: 0.8rem; color: var(--gold); font-weight: 700; letter-spacing: .06em; }
.footer-title { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer-links { display: grid; gap: 10px; font-size: 0.88rem; }
.footer-links a { transition: color .2s; display: inline-flex; gap: 8px; align-items: center; }
.footer-links a:hover { color: var(--gold); }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
    width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
    border: 1px solid var(--line-dark); color: var(--gold); transition: background .2s, color .2s;
}
.socials a:hover { background: var(--gold); color: var(--green-950); }
.footer-bottom { border-top: 1px solid var(--line-dark); padding-block: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 0.78rem; color: #84978B; }
.footer-bottom a:hover { color: var(--gold); }

/* 7. Hero & page hero ------------------------------------------------ */
.hero { padding-block: 64px 96px; position: relative; overflow: hidden; }
@media (min-width: 1024px) { .hero { padding-block: 88px 120px; } }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.3rem); line-height: 1.04; margin-top: 22px; }
.hero h1 .accent { color: var(--green-700); position: relative; white-space: nowrap; }
.hero h1 .underline { background: linear-gradient(transparent 82%, rgba(212, 175, 55, 0.55) 82%); }
.hero-lead { font-size: 1.12rem; color: var(--muted); max-width: 600px; margin-top: 22px; }
.hero .btn-row { margin-top: 32px; }
.typed { font-family: var(--font-mono); color: var(--green-700); font-size: 0.95rem; margin-top: 18px; min-height: 1.6em; }
.typed::after { content: "▍"; color: var(--gold); animation: blink 1s steps(1) infinite; margin-left: 2px; }

.hero-stats { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hero-stats strong { display: block; font-family: var(--font-serif); font-size: clamp(1.5rem, 3vw, 2rem); color: var(--green-900); line-height: 1.1; }
.hero-stats > div > span { display: block; margin-top: 4px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 600; }

/* Hero "console" visual */
.console {
    position: relative; background: var(--green-950); color: #fff; border-radius: var(--radius-xl);
    padding: 26px; border: 1px solid rgba(212, 175, 55, 0.35); box-shadow: var(--shadow-lg); overflow: hidden;
}
.console::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(400px 200px at 100% 100%, rgba(212, 175, 55, 0.18), transparent 70%);
}
.console-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line-dark); margin-bottom: 18px; position: relative; }
.console-dots { display: flex; gap: 7px; }
.console-dots span { width: 11px; height: 11px; border-radius: 50%; background: #E5534B; }
.console-dots span:nth-child(2) { background: #E2B93B; }
.console-dots span:nth-child(3) { background: #3FB950; }
.console-title { font-family: var(--font-mono); font-size: 0.72rem; color: var(--gold); letter-spacing: .06em; }
.console-body { display: grid; gap: 12px; position: relative; }
.console-tile { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-dark); border-radius: 14px; padding: 14px 16px; }
.console-tile .label { display: flex; justify-content: space-between; align-items: center; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: #9FB0A6; font-weight: 700; }
.console-tile .value { font-family: var(--font-mono); font-size: 1.05rem; color: #fff; margin-top: 4px; }
.console-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.console-row .console-tile { padding: 12px; }
.console-row .console-tile svg { color: var(--gold); width: 20px; height: 20px; margin-bottom: 6px; }
.console-row strong { display: block; font-size: 0.85rem; }
.console-row small { font-size: 0.68rem; color: #9FB0A6; }
.pulse-line { width: 100%; height: 70px; margin-top: 6px; }
.pulse-line path { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 3.2s linear infinite; }
.pulse-line path.ghost { stroke: rgba(212, 175, 55, 0.18); stroke-dasharray: none; animation: none; }
.log { font-family: var(--font-mono); font-size: 0.72rem; color: #9FB0A6; height: 4.8em; overflow: hidden; }
.log div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: fadeUp .4s var(--ease); }
.log .ok { color: #3FB950; }
.log .gd { color: var(--gold); }
.console-foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-dark); font-size: 0.75rem; color: #9FB0A6; display: flex; justify-content: space-between; gap: 10px; position: relative; }
.live { display: inline-flex; align-items: center; gap: 6px; color: #3FB950; font-weight: 700; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 1.4s infinite; }

.float-badge {
    position: absolute; left: -18px; bottom: -26px; z-index: 2;
    display: none; align-items: center; gap: 12px; padding: 14px 18px;
    background: var(--white); border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow);
    animation: float 5s ease-in-out infinite;
}
.float-badge .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--green-900); color: var(--gold); display: grid; place-items: center; }
.float-badge small { display: block; font-size: 0.66rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.float-badge strong { font-size: 0.9rem; color: var(--green-950); }
@media (min-width: 640px) { .float-badge { display: flex; } .console-foot { justify-content: flex-end; text-align: right; padding-left: 230px; } }

/* Page hero (inner pages) */
.page-hero { padding-block: 64px 72px; position: relative; overflow: hidden; background: var(--green-950); color: #fff; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); margin-top: 18px; max-width: 860px; }
.page-hero p.lead { color: var(--muted-light); font-size: 1.1rem; max-width: 680px; margin-top: 18px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.8rem; color: #9FB0A6; margin-bottom: 22px; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb svg { width: 14px; height: 14px; }
.page-hero .btn-row { margin-top: 28px; }
.page-hero .rel { z-index: 1; }

/* 8. Sections -------------------------------------------------------- */
/* Marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--white); padding-block: 18px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--green-900); font-size: 0.92rem; white-space: nowrap; }
.marquee-item svg { color: var(--gold-600); }

/* Root Flow Pulse principle cards */
.principle {
    position: relative; padding: 32px; border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-dark);
    transition: border-color .3s, transform .3s var(--ease), background .3s;
}
.principle:hover { border-color: rgba(212, 175, 55, 0.5); transform: translateY(-4px); background: rgba(255, 255, 255, 0.06); }
.principle .ic { width: 56px; height: 56px; border-radius: 16px; background: var(--green-900); color: var(--gold); display: grid; place-items: center; margin-bottom: 22px; border: 1px solid rgba(212, 175, 55, 0.25); }
.principle .ic svg { width: 32px; height: 32px; }
.principle .kicker { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 800; }
.principle h3 { font-family: var(--font-serif); font-size: 1.9rem; margin: 6px 0 12px; letter-spacing: .04em; }
.principle p { font-size: 0.92rem; }
.principle ul { margin-top: 18px; display: grid; gap: 9px; font-size: 0.88rem; color: #DCE3DF; }
.principle li { display: flex; gap: 10px; align-items: flex-start; }
.principle li svg { color: var(--gold); margin-top: 4px; width: 16px; height: 16px; }
.principle .num { position: absolute; top: 22px; right: 26px; font-family: var(--font-serif); font-size: 3.4rem; color: rgba(255, 255, 255, 0.05); font-weight: 700; line-height: 1; }

/* Flow diagram connecting principles */
.flow-diagram { margin: 0 auto 48px; max-width: 760px; }
.flow-diagram svg { width: 100%; height: auto; overflow: visible; }
.flow-diagram .node circle { fill: var(--green-900); stroke: var(--gold); stroke-width: 1.5; }
.flow-diagram .node text { fill: #fff; font-family: var(--font-serif); font-weight: 700; font-size: 15px; letter-spacing: .08em; text-anchor: middle; }
.flow-diagram .node .sub { fill: #9FB0A6; font-family: var(--font-sans); font-size: 10px; font-weight: 600; letter-spacing: .14em; }
.flow-diagram .link { stroke: rgba(212, 175, 55, 0.35); stroke-width: 1.5; fill: none; stroke-dasharray: 5 7; animation: dash 1.6s linear infinite; }
.flow-diagram .packet { fill: var(--gold); }

/* Compare */
.compare-card { border-radius: var(--radius-lg); padding: 34px; height: 100%; }
.compare-card h3 { display: flex; gap: 12px; align-items: center; font-size: 1.25rem; margin-bottom: 22px; }
.compare-card h3 .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; }
.compare-card ul { display: grid; gap: 14px; font-size: 0.93rem; }
.compare-card li { display: flex; gap: 12px; align-items: flex-start; }
.compare-card li svg { margin-top: 4px; }
.compare-bad { background: #FBF3F2; border: 1px solid #F3D9D6; }
.compare-bad h3 { color: #8E2A20; }
.compare-bad h3 .ic { background: #F6DEDA; color: #B42318; }
.compare-bad li svg { color: #C2453A; }
.compare-good { background: var(--green-950); border: 1px solid rgba(212, 175, 55, 0.3); color: #DCE3DF; box-shadow: var(--shadow); }
.compare-good h3 { color: var(--gold); }
.compare-good h3 .ic { background: rgba(212, 175, 55, 0.18); color: var(--gold); }
.compare-good li svg { color: var(--gold); }

/* Stats band */
.stats-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0; border: 1px solid var(--line-dark); border-radius: var(--radius-lg); overflow: hidden; }
.stat { padding: 30px 26px; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.stat strong { display: block; font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--gold); line-height: 1.05; }
.stat span { display: block; margin-top: 8px; font-size: 0.86rem; color: var(--muted-light); }

/* CTA band */
.cta-band {
    position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: clamp(32px, 6vw, 64px);
    background: linear-gradient(135deg, var(--green-900), var(--green-950)); color: #fff;
    display: grid; gap: 28px; align-items: center; border: 1px solid rgba(212, 175, 55, 0.3);
}
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.4fr auto; } }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.cta-band p { color: var(--muted-light); margin-top: 12px; max-width: 560px; }

/* 9. Cards & grids --------------------------------------------------- */
.card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
    position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(212, 175, 55, 0.45); }
.card .ic {
    width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
    background: rgba(17, 66, 40, 0.07); color: var(--green-900); margin-bottom: 20px;
    transition: background .3s, color .3s;
}
.card:hover .ic { background: var(--green-900); color: var(--gold); }
.card .ic svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.92rem; color: var(--muted); }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 700; font-size: 0.86rem; color: var(--green-900); }
.card .more svg { transition: transform .25s var(--ease); width: 16px; height: 16px; }
.card:hover .more svg { transform: translateX(4px); }
.card-cream { background: var(--cream); }
.card-link { display: block; height: 100%; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }

.check-list { display: grid; gap: 10px; font-size: 0.92rem; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list svg { color: var(--gold-600); margin-top: 4px; width: 17px; height: 17px; }
.section-dark .check-list svg { color: var(--gold); }

/* Service pillar on Services page */
.pillar { padding-block: 72px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.pillar:last-of-type { border-bottom: 0; }
.pillar-head { display: grid; gap: 24px; margin-bottom: 36px; }
@media (min-width: 960px) { .pillar-head { grid-template-columns: 1fr 1fr; align-items: end; } }
.pillar-num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--gold-600); font-weight: 700; letter-spacing: .1em; }
.pillar-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-top: 8px; }
.pillar-head p { color: var(--muted); }
.pillar-aside { margin-top: 28px; display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.panel .btn { white-space: normal; text-align: center; }
@media (min-width: 900px) { .pillar-aside { grid-template-columns: 1.3fr 1fr; } }
.panel { border-radius: var(--radius-lg); padding: 26px 28px; background: var(--cream); border: 1px solid var(--line); }
.panel-dark { background: var(--green-950); color: #DCE3DF; border-color: rgba(212, 175, 55, 0.25); }
.panel-dark h4 { color: var(--gold); }
.panel h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 14px; }
.panel .chips { display: flex; flex-wrap: wrap; gap: 8px; }

.service-nav { position: sticky; top: var(--header-h); z-index: 20; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.service-nav .container { display: flex; gap: 6px; overflow-x: auto; padding-block: 12px; scrollbar-width: none; }
.service-nav .container::-webkit-scrollbar { display: none; }
.service-nav a { white-space: nowrap; padding: 9px 14px; border-radius: 10px; font-size: 0.85rem; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.service-nav a:hover { color: var(--green-950); background: var(--cream); }
.service-nav a.is-active { background: var(--green-950); color: #fff; }
.service-nav a.is-active svg { color: var(--gold); }

/* Service tabs (home) */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 32px; }
.tab {
    display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 14px;
    border: 1px solid var(--line); background: var(--white); color: var(--green-950); font-weight: 700; font-size: 0.88rem;
    transition: background .2s, color .2s, box-shadow .2s;
}
.tab:hover { background: var(--cream-2); }
.tab[aria-selected="true"] { background: var(--green-900); color: #fff; border-color: var(--green-900); box-shadow: var(--shadow); }
.tab[aria-selected="true"] svg { color: var(--gold); }
.tab-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow); }
.tab-panel-head { display: grid; gap: 16px; padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
@media (min-width: 960px) { .tab-panel-head { grid-template-columns: 1fr 1fr; align-items: end; } }
.tab-panel-head h3 { font-family: var(--font-serif); font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 6px; }
.tab-panel-head p { color: var(--muted); font-size: 0.95rem; }
.tab-panel .grid { animation: fadeUp .5s var(--ease); }
.mini { padding: 22px; border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line); transition: border-color .2s; }
.mini:hover { border-color: rgba(212, 175, 55, 0.6); }
.mini svg { width: 28px; height: 28px; color: var(--green-900); margin-bottom: 12px; }
.mini h4 { font-size: 1rem; margin-bottom: 6px; }
.mini p { font-size: 0.82rem; color: var(--muted); }

/* Projects */
.project {
    display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden;
    background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
/* --- Project posters (animated) ---------------------------------------
   Layers, back to front: drifting gradient + dot grid, rotating orbit
   rings with a gold satellite, pulse line, monogram, labels, glare.
   Letters animate in when the card gets .is-in (scroll reveal); hover
   adds a pointer-driven tilt (--rx/--ry) and glare (--mx/--my) from main.js. */
.project-visual {
    --c1: var(--green-900); --c2: var(--green-950);
    --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
    position: relative; aspect-ratio: 16 / 8; overflow: hidden; isolation: isolate;
    background: linear-gradient(135deg, var(--c1), var(--c2), var(--c1));
    background-size: 220% 220%;
    animation: posterGradient 14s ease-in-out infinite;
    display: grid; place-items: center; color: var(--gold);
}
.project-visual.v-gold  { --c1: #3A3212; }
.project-visual.v-sage  { --c1: var(--green-700); --c2: #0E3320; }
.project-visual.v-earth { --c1: #3B2A17; }
.project-visual::before {
    content: ""; position: absolute; inset: -18px; z-index: -1;
    background-image: radial-gradient(rgba(212, 175, 55, 0.18) 1px, transparent 1px);
    background-size: 18px 18px;
    animation: posterDots 9s linear infinite;
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 85%);
            mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 85%);
}

/* Orbit rings + satellite */
.pv-orbits { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: -1; pointer-events: none;
    transform: translate(calc(var(--ry) * -1.6), calc(var(--rx) * 1.6)); transition: transform .4s var(--ease); }
.pv-orbits i, .pv-orbits b { position: absolute; left: 50%; top: 50%; border-radius: 50%; }
.pv-orbits i:nth-child(1) { width: 170px; height: 170px; margin: -85px; border: 1px dashed rgba(212, 175, 55, 0.35); animation: spin 26s linear infinite; }
.pv-orbits i:nth-child(2) { width: 250px; height: 250px; margin: -125px; border: 1px solid rgba(255, 255, 255, 0.07); animation: spin 40s linear infinite reverse; }
.pv-orbits b { width: 170px; height: 170px; margin: -85px; animation: spin 7s linear infinite; }
.pv-orbits b::after { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px 3px rgba(212, 175, 55, 0.6); }
.project:nth-child(2n) .pv-orbits b { animation-duration: 9s; animation-direction: reverse; }

/* Heartbeat line along the bottom */
.pv-pulse { position: absolute; left: 0; right: 0; bottom: 34px; width: 100%; height: 34px; z-index: -1; opacity: .55; }
.pv-pulse path { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 520; stroke-dashoffset: 520; animation: draw 4.5s linear infinite; }
.project:nth-child(2) .pv-pulse path { animation-delay: -1.2s; }
.project:nth-child(3) .pv-pulse path { animation-delay: -2.4s; }
.project:nth-child(4) .pv-pulse path { animation-delay: -3.3s; }

/* Monogram: letters rise in, gold rule draws, then tilts with the pointer */
.project-visual .mono-mark {
    position: relative; display: inline-flex; font-family: var(--font-serif); font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 700;
    color: rgba(255, 255, 255, 0.94); letter-spacing: .04em; text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    transform: perspective(700px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .4s var(--ease);
}
.project-visual.is-tilting .mono-mark { transform: perspective(700px) rotateX(var(--rx)) rotateY(var(--ry)) scale(1.08); transition-duration: .12s; }
.mono-mark > span { display: inline-block; opacity: 0; transform: translateY(45%) rotateX(-70deg); filter: blur(6px);
    transition: opacity .7s var(--ease), transform .9s var(--ease), filter .7s var(--ease); transition-delay: calc(.25s + var(--i) * .09s); }
.mono-mark .pv-rule { position: absolute; left: 6%; right: 6%; bottom: -6px; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent); transform: scaleX(0); transition: transform .9s var(--ease) .7s; }
.project.is-in .mono-mark > span, .no-js .mono-mark > span { opacity: 1; transform: none; filter: none; }
.project.is-in .mono-mark .pv-rule, .no-js .mono-mark .pv-rule { transform: scaleX(1); }
.project:hover .mono-mark > span { animation: letterBob .9s var(--ease); animation-delay: calc(var(--i) * .06s); }

/* Glare that follows the pointer + one diagonal sweep on hover */
.pv-shine { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
    background: radial-gradient(260px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.14), transparent 60%); }
.pv-shine::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
    background: linear-gradient(100deg, transparent, rgba(255, 236, 170, 0.22), transparent); transform: skewX(-18deg); }
.project-visual:hover .pv-shine { opacity: 1; }
.project-visual:hover .pv-shine::after { animation: sweep 1.1s var(--ease); }

.project-visual .tag-corner { position: absolute; top: 16px; left: 16px; transition: transform .35s var(--ease); }
.project-visual:hover .tag-corner { transform: translateY(-2px); }
.project-visual .loc { position: absolute; bottom: 14px; right: 16px; font-size: 0.74rem; color: #DCE3DF; display: inline-flex; gap: 6px; align-items: center; }
.project-visual .loc svg { color: var(--gold); width: 14px; height: 14px; }

@keyframes posterGradient { 0%, 100% { background-position: 0% 0%; } 50% { background-position: 100% 100%; } }
@keyframes posterDots { to { background-position: 18px 18px; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes letterBob { 40% { transform: translateY(-10%); color: var(--gold); } }
@keyframes sweep { to { left: 130%; } }
.project-body { padding: 26px 28px; flex: 1; display: flex; flex-direction: column; gap: 14px; }
.project-body h3 { font-family: var(--font-serif); font-size: 1.55rem; }
.project-body p { font-size: 0.9rem; color: var(--muted); }
.highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; padding-top: 6px; }
.highlight { padding: 12px 14px; border-radius: 12px; background: var(--cream); border: 1px solid var(--line); }
.highlight b { display: block; font-size: 0.78rem; color: var(--green-900); }
.highlight span { font-size: 0.8rem; color: var(--muted); }
.project-foot { padding: 16px 28px; background: var(--green-950); color: #DCE3DF; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 0.8rem; font-weight: 600; }
.project-foot a { color: var(--gold); display: inline-flex; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap; }
.project-foot a:hover { text-decoration: underline; }
.project.is-hidden { display: none; }
.empty-note { text-align: center; color: var(--muted); padding: 40px 0; }

/* Case study page */
.case-grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .case-grid { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.case-block + .case-block { margin-top: 44px; }
.case-block h2 { font-size: 1.8rem; margin-bottom: 14px; }
.case-block > p { color: var(--muted); }
.rfp-steps { display: grid; gap: 14px; margin-top: 20px; }
.rfp-step { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.rfp-step .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--green-900); color: var(--gold); display: grid; place-items: center; }
.rfp-step h4 { font-size: 0.78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-600); margin-bottom: 4px; }
.rfp-step p { font-size: 0.92rem; color: var(--muted); }
.fact-card { position: sticky; top: calc(var(--header-h) + 24px); }
.facts { display: grid; gap: 16px; margin-top: 4px; }
.facts div { padding-bottom: 14px; border-bottom: 1px solid var(--line-dark); }
.facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { font-size: 0.7rem; text-transform: uppercase; letter-spacing: .14em; color: #9FB0A6; font-weight: 700; }
.facts dd { margin: 4px 0 0; color: #fff; font-weight: 600; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 14px; margin-top: 20px; }
.result { padding: 20px; border-radius: var(--radius); background: var(--green-950); color: #fff; }
.result strong { display: block; font-family: var(--font-serif); font-size: 1.6rem; color: var(--gold); line-height: 1.15; }
.result span { font-size: 0.82rem; color: var(--muted-light); }
.pager { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.pager a { display: inline-flex; flex-direction: column; gap: 2px; font-weight: 700; color: var(--green-900); }
.pager a small { font-size: 0.72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 700; }
.pager a:hover { color: var(--gold-600); }
.pager .next { text-align: right; margin-left: auto; }

/* Process timeline */
.timeline { position: relative; display: grid; gap: 22px; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--gold), var(--green-700)); opacity: .45; }
.t-step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 22px; }
.t-dot { width: 56px; height: 56px; border-radius: 16px; background: var(--green-900); color: var(--gold); display: grid; place-items: center; font-family: var(--font-serif); font-weight: 700; font-size: 1.2rem; border: 1px solid rgba(212, 175, 55, 0.35); position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--cream); }
.t-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 26px; transition: box-shadow .3s, border-color .3s; }
.t-card:hover { box-shadow: var(--shadow); border-color: rgba(212, 175, 55, 0.45); }
.t-card h3 { font-size: 1.3rem; margin: 8px 0 8px; }
.t-card p { color: var(--muted); font-size: 0.93rem; }
.t-card .outputs { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.phase-label { font-family: var(--font-serif); font-size: 1.5rem; margin: 26px 0 4px 78px; color: var(--green-900); display: flex; align-items: center; gap: 12px; }
.phase-label:first-child { margin-top: 0; }
.phase-label small { font-family: var(--font-sans); font-size: 0.78rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; }

.steps-mini { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .steps-mini { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .steps-mini { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .steps-mini { grid-template-columns: repeat(6, 1fr); } }
.steps-mini li { padding: 22px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); position: relative; }
.steps-mini .n { font-family: var(--font-mono); font-size: 0.78rem; color: var(--gold-600); font-weight: 700; }
.steps-mini h4 { font-size: 1.05rem; margin: 6px 0 4px; }
.steps-mini p { font-size: 0.8rem; color: var(--muted); }
.steps-mini .phase { position: absolute; top: 18px; right: 18px; }

/* Values / about */
.value { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 24px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }
.value .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--gold-soft); color: var(--gold-600); display: grid; place-items: center; }
.value h3 { font-size: 1.1rem; margin-bottom: 6px; }
.value p { font-size: 0.9rem; color: var(--muted); }
.logo-frame { border-radius: var(--radius-xl); background: #E9E4D9; border: 1px solid var(--line); padding: clamp(28px, 6vw, 64px); display: grid; place-items: center; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.logo-frame img { width: min(100%, 320px); height: auto; }
.logo-frame figcaption { margin-top: 18px; font-size: 0.82rem; color: var(--muted); text-align: center; max-width: 360px; }
.quote { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.35; color: #fff; max-width: 900px; margin: 0 auto; text-align: center; }
.quote-mark { color: var(--gold); font-size: 4rem; line-height: 0.5; display: block; margin-bottom: 22px; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; transition: border-color .2s; }
.faq details[open] { border-color: rgba(212, 175, 55, 0.6); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; align-items: center; color: var(--green-950); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { transition: transform .3s var(--ease); color: var(--gold-600); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--muted); font-size: 0.94rem; }

/* 10. Growth plan tool ---------------------------------------------- */
.planner { display: grid; gap: 28px; }
@media (min-width: 1024px) { .planner { grid-template-columns: 1.35fr 1fr; align-items: start; } }
.planner-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }
.progress { display: flex; gap: 8px; margin-bottom: 26px; }
.progress span { flex: 1; height: 6px; border-radius: 6px; background: var(--cream-2); overflow: hidden; position: relative; }
.progress span::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.progress span.done::after { transform: scaleX(1); }
.q-step { animation: fadeUp .45s var(--ease); }
.q-step h3 { font-family: var(--font-serif); font-size: clamp(1.4rem, 3vw, 1.8rem); }
.q-step > p { color: var(--muted); margin-top: 8px; font-size: 0.94rem; }
.q-kicker { font-family: var(--font-mono); font-size: 0.75rem; color: var(--gold-600); font-weight: 700; letter-spacing: .1em; margin-bottom: 6px; }
.options { display: grid; gap: 12px; margin-top: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.option { position: relative; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option label {
    display: flex; gap: 12px; align-items: flex-start; height: 100%;
    padding: 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--cream); cursor: pointer;
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.option label:hover { border-color: rgba(212, 175, 55, 0.6); }
.option label svg { color: var(--green-900); width: 22px; height: 22px; margin-top: 2px; }
.option label b { display: block; font-size: 0.92rem; color: var(--green-950); }
.option label small { display: block; font-size: 0.78rem; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.option input:checked + label { border-color: var(--green-900); background: #EEF3EF; box-shadow: 0 0 0 3px rgba(17, 66, 40, 0.10); }
.option input:checked + label::after { content: "✓"; position: absolute; top: 10px; right: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--green-900); color: var(--gold); font-size: 0.75rem; display: grid; place-items: center; font-weight: 800; }
.option input:focus-visible + label { outline: 3px solid var(--gold); outline-offset: 2px; }
.q-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.q-error { color: var(--danger); font-size: 0.85rem; margin-top: 14px; font-weight: 600; }

.meter-card { background: var(--green-950); color: #DCE3DF; border-radius: var(--radius-xl); padding: 30px; border: 1px solid rgba(212, 175, 55, 0.3); position: sticky; top: calc(var(--header-h) + 24px); overflow: hidden; }
.meter-card h3 { color: #fff; font-family: var(--font-serif); font-size: 1.5rem; }
.meter-card > p { font-size: 0.86rem; color: #9FB0A6; margin-top: 6px; }
.meters { display: grid; gap: 18px; margin-top: 24px; }
.meter-top { display: flex; justify-content: space-between; font-size: 0.78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.meter-top span:last-child { font-family: var(--font-mono); color: var(--gold); letter-spacing: 0; }
.meter-bar { height: 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.08); overflow: hidden; margin-top: 8px; }
.meter-bar i { display: block; height: 100%; width: 0; border-radius: 10px; background: linear-gradient(90deg, var(--gold-600), var(--gold)); transition: width .8s var(--ease); }
.meter-note { font-size: 0.78rem; color: #9FB0A6; margin-top: 6px; }
.meter-card .focus { margin-top: 24px; padding: 16px; border-radius: 14px; background: rgba(212, 175, 55, 0.1); border: 1px solid rgba(212, 175, 55, 0.25); font-size: 0.88rem; }
.meter-card .focus b { color: var(--gold); }

.result-panel { animation: fadeUp .5s var(--ease); }
.reco { display: grid; gap: 12px; margin-top: 18px; }
.reco-item { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--cream); }
.reco-item .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--green-900); color: var(--gold); display: grid; place-items: center; }
.reco-item b { color: var(--green-950); }
.reco-item p { font-size: 0.84rem; color: var(--muted); margin-top: 2px; }
.reco-item .chip { margin-left: 6px; vertical-align: middle; }
.roadmap { margin-top: 18px; display: grid; gap: 10px; }
.roadmap li { display: grid; grid-template-columns: 90px 1fr; gap: 14px; font-size: 0.88rem; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.roadmap li b { font-family: var(--font-mono); font-size: 0.78rem; color: var(--gold-600); }

/* 11. Forms, toast --------------------------------------------------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.field label { display: block; font-size: 0.74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #3E4743; margin-bottom: 7px; }
.field label .req { color: var(--gold-600); }
.input, .select, .textarea {
    width: 100%; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--line);
    background: var(--cream); color: var(--ink); font: inherit; font-size: 0.95rem;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.textarea { resize: vertical; min-height: 140px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--green-900); background: #fff; box-shadow: 0 0 0 4px rgba(17, 66, 40, 0.08); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.8rem; color: var(--muted); }
.form-status { padding: 14px 16px; border-radius: 12px; font-size: 0.9rem; font-weight: 600; }
.form-status.ok { background: #E8F3EC; color: #145A32; border: 1px solid #BFDCC9; }
.form-status.err { background: #FBEDEB; color: #8E2A20; border: 1px solid #F1C9C4; }
.form-status a { text-decoration: underline; }
.contact-item { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.contact-item .ic { width: 50px; height: 50px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); color: var(--green-900); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.contact-item small { display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-item a, .contact-item span { font-weight: 800; color: var(--green-950); word-break: break-word; }
.contact-item a:hover { color: var(--gold-600); }
.hours { display: grid; gap: 8px; font-size: 0.88rem; }
.hours div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }

.toast {
    position: fixed; right: 20px; bottom: 20px; z-index: 90; max-width: min(380px, calc(100vw - 40px));
    display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 16px;
    background: var(--green-950); color: #fff; border: 1px solid rgba(212, 175, 55, 0.4); box-shadow: var(--shadow-lg);
    font-size: 0.86rem; font-weight: 600; transform: translateY(20px); opacity: 0; pointer-events: none;
    transition: opacity .3s, transform .3s var(--ease);
}
.toast.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.toast svg { color: var(--gold); margin-top: 2px; }

.back-top {
    position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 46px; height: 46px; border-radius: 14px;
    background: var(--green-900); color: var(--gold); border: 1px solid rgba(212, 175, 55, 0.4); display: grid; place-items: center;
    box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
}
.back-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float {
    position: fixed; left: 20px; bottom: 20px; z-index: 40; width: 52px; height: 52px; border-radius: 50%;
    background: #128C4A; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 24px -8px rgba(18, 140, 74, 0.6);
    transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 26px; height: 26px; }

/* 12. Motion & responsive ------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@keyframes blink { 50% { opacity: 0.25; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes dash { to { stroke-dashoffset: -24; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 640px) {
    .section { padding-block: 64px; }
    .hero-stats { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
    .console { padding: 20px; }
    .console-row { grid-template-columns: 1fr 1fr; }
    .console-row .console-tile:last-child { grid-column: 1 / -1; }
    .highlights { grid-template-columns: 1fr; }
    .project-foot { flex-direction: column; align-items: flex-start; }
    .roadmap li { grid-template-columns: 1fr; gap: 2px; }
    .phase-label { margin-left: 0; }
    .t-step { grid-template-columns: 44px 1fr; gap: 14px; }
    .t-dot { width: 44px; height: 44px; font-size: 1rem; border-radius: 12px; }
    .timeline::before { left: 21px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
    .marquee-track { animation: none; }
}

@media print {
    .topbar, .site-header, .site-footer, .back-top, .wa-float, .toast { display: none !important; }
    .reveal { opacity: 1; transform: none; }
}

.text-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 700; font-size: 0.88rem; color: var(--green-900); border-bottom: 2px solid rgba(212, 175, 55, 0.5); padding-bottom: 2px; }
.text-link:hover { color: var(--gold-600); }
.text-link svg { width: 16px; height: 16px; }
.mobile-nav a.btn { justify-content: center; }
/* Not sticky on narrow screens. Must stay position:relative (not static) so the
   card still clips its decorative .glow circles - static let them widen the page on phones. */
@media (max-width: 1023px) { .meter-card, .fact-card { position: relative; top: auto; } }

/* --- Animated principle icons (built in main.js → ANIM_ICONS) ---------- */
.anim-icon { overflow: visible; }
.anim-icon .ghost { opacity: 0.18; }

/* ROOT: roots draw downward/outward in sequence, hold, fade, regrow; leaves sway */
.anim-root .roots path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: rootGrow 4.2s cubic-bezier(.45, 0, .2, 1) infinite; animation-delay: var(--dl, 0s); }
.anim-root .leaves { transform-box: view-box; transform-origin: 12px 12px; animation: leafSway 4.2s ease-in-out infinite; }
.anim-root .soil { opacity: 0.55; }
@keyframes rootGrow {
    0%       { stroke-dashoffset: 1; opacity: 1; }
    45%      { stroke-dashoffset: 0; opacity: 1; }
    82%      { stroke-dashoffset: 0; opacity: 1; }
    96%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes leafSway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg) scale(1.04); } }

/* FLOW: current runs along both connectors, nodes light up as packets arrive */
.anim-flow .wire { stroke-dasharray: 2 2.4; animation: flowDash .7s linear infinite; }
.anim-flow .wire-up { stroke-width: 1.4; opacity: 0.65; }
.anim-flow .node { fill: currentColor; fill-opacity: 0; animation: nodeGlow 1.6s ease-in-out infinite; }
.anim-flow .n1 { animation-delay: .8s; }
.anim-flow .packet { fill: currentColor; stroke: none; }
@keyframes flowDash { to { stroke-dashoffset: -4.4; } }
@keyframes nodeGlow { 0%, 100% { fill-opacity: 0; } 12% { fill-opacity: 0.35; } 40% { fill-opacity: 0; } }

/* PULSE: ECG trace sweeps across, icon beats lub-dub as it hits the spike */
.anim-pulse { transform-origin: center; animation: heartbeat 1.6s ease-in-out infinite; }
.anim-pulse .trace { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ecgSweep 1.6s linear infinite; }
.anim-pulse .blip { fill: currentColor; stroke: none; opacity: 0; transform-box: fill-box; transform-origin: center; animation: blip 1.6s ease-out infinite; }
@keyframes ecgSweep { 0% { stroke-dashoffset: 1; opacity: 1; } 70% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes heartbeat { 0%, 22%, 44%, 100% { transform: scale(1); } 30% { transform: scale(1.14); } 38% { transform: scale(1.02); } 40% { transform: scale(1.09); } }
@keyframes blip { 0%, 64% { opacity: 0; transform: scale(.4); } 72% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(2.2); } }

/* Reduced motion: show the finished, static icons */
@media (prefers-reduced-motion: reduce) {
    .anim-icon, .anim-icon * { animation: none !important; }
    .anim-root .roots path, .anim-pulse .trace { stroke-dashoffset: 0; }
    .anim-flow .wire { stroke-dasharray: none; }
}

/* Phones: safety net so a stray decoration can never widen the page */
@supports (overflow: clip) { body { overflow-x: clip; } }

/* --- Project photos (from the company profile) ------------------------- */
/* Cover photo behind the animated poster: tinted with the poster's own green
   so the orbits, monogram and pulse line stay readable on top. */
.pv-photo {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
    opacity: .38; filter: grayscale(.35) contrast(1.05);
    transform: scale(1.04); transition: transform .9s var(--ease), opacity .5s;
}
.project-visual.has-photo::before { z-index: -1; opacity: .55; }
.project:hover .pv-photo { transform: scale(1.1); opacity: .5; }

/* Case-study gallery */
.case-gallery { display: grid; gap: 14px; margin-top: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.case-gallery figure { margin: 0; }
.cg-open {
    display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    background: var(--white); aspect-ratio: 4 / 3; cursor: zoom-in; transition: border-color .2s, box-shadow .3s var(--ease);
}
.cg-open img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s var(--ease); }
.cg-open:hover { border-color: rgba(212, 175, 55, 0.6); box-shadow: var(--shadow); }
.cg-open:hover img { transform: scale(1.04); }
.case-gallery figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 8px; line-height: 1.4; }

/* Photo viewer */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(11, 41, 25, 0.92); }
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 12px; padding: 56px 8px 24px; min-width: 0; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; border-radius: 12px; box-shadow: var(--shadow-lg); background: #fff; }
.lightbox figcaption { color: #E7ECE9; font-size: 0.9rem; text-align: center; }
.lb-close, .lb-nav { border: 1px solid rgba(212, 175, 55, 0.4); background: rgba(11, 41, 25, 0.8); color: var(--gold); border-radius: 12px; width: 46px; height: 46px; display: grid; place-items: center; }
.lb-close { position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; }
.lb-nav { margin: 0 8px; }
.lb-close svg, .lb-nav svg { width: 22px; height: 22px; }
@media (max-width: 640px) { .lb-nav { position: fixed; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); margin: 0; } .lb-prev { left: 18px; } .lb-next { right: 18px; } .lightbox[open] { grid-template-columns: 1fr; } .lightbox figure { padding-bottom: 92px; } .lightbox img { max-height: calc(100vh - 210px); } .lightbox figcaption { padding: 0 64px; font-size: 0.82rem; } }

/* About page header: the carved wooden doors from the company profile cover */
.page-hero.hero-door { background: linear-gradient(100deg, rgba(11, 41, 25, 0.96) 35%, rgba(11, 41, 25, 0.72)), url("../assets/work/brand/carved-door.webp") 85% 40% / cover no-repeat, var(--green-950); }

/* Case study: long unbroken words (e.g. kianyingilandpropertycompanylimited.com) may wrap,
   and the layout columns may shrink below their content's widest word. */
.case-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .case-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.facts dd, .case-block p, .check-list li { overflow-wrap: anywhere; }
/* Category label stays readable over a cover photo */
.project-visual.has-photo .tag-corner { background: rgba(11, 41, 25, 0.78); color: var(--gold); border: 1px solid rgba(212, 175, 55, 0.35); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }

/* Three-across project grids: slightly taller posters so the label, monogram and pulse line have room */
.grid-3 .project-visual { aspect-ratio: 16 / 10; }

/* --- Services (9) and Digital Growth Packages ---------------------------- */
.svc-card { display: flex; flex-direction: column; }
.svc-card .pillar-num { margin-bottom: 4px; }
.svc-card p { flex: 1; }
.svc-h-ic { display: inline-block !important; width: 0.85em !important; height: 0.85em !important; color: var(--gold-600); vertical-align: -0.06em; margin-right: 6px; }
.svc-body { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .svc-body { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.svc-list { display: grid; gap: 10px 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.svc-list li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; font-size: 0.93rem; font-weight: 600; color: var(--green-950); }
.svc-list li svg { color: var(--gold-600); width: 18px; height: 18px; margin-top: 2px; }
.svc-side .chips a.chip { text-decoration: none; }
.svc-side .chips a.chip:hover { background: var(--gold); color: var(--green-950); }
.pkg { display: flex; flex-direction: column; }
.pkg .check-list { margin: 14px 0 18px; align-content: start; }
.pkg .more { margin-top: auto; }
.pkg-featured { background: var(--green-950); border-color: rgba(212, 175, 55, 0.5); }
.pkg-featured h3 { color: #fff; }
.pkg-featured p, .pkg-featured .check-list li { color: #DCE3DF; }
.pkg-featured .ic { background: var(--gold); color: var(--green-950); }
.pkg-featured .more { color: var(--gold); }
#service-nav a { font-size: 0.8rem; }

/* Small phones: long button labels wrap instead of widening the page */
@media (max-width: 480px) { .btn { white-space: normal; text-align: center; } }
