/* =========================================================
   Assured with Thad Site Stylesheet
   Deep-navy editorial theme: Fraunces display + Inter body,
   cyan→indigo accents, glassmorphism, scroll-driven motion.
   No frameworks: plain CSS, custom properties, mobile-first.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
    --bg: #faf8f3;
    --bg-2: #f1ede3;
    --surface: #ffffff;
    --accent: #0e7490;
    --accent-2: #1ba8c0;
    --accent-strong: #0c6378;
    --accent-glow: rgba(14, 116, 144, 0.30);
    --text: #16223a;
    --text-muted: #51607a;
    --text-faint: #8a95a8;
    --border-soft: rgba(20, 34, 58, 0.10);
    --border-softer: rgba(20, 34, 58, 0.06);
    --error: #dc2626;
    --success: #16a34a;
    --radius: 18px;
    --radius-lg: 26px;
    --nav-height: 84px;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg);
}

body {
    font-family: var(--font-body);
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(14, 116, 144, 0.08), transparent),
        linear-gradient(to bottom, var(--bg), var(--bg) 60%, #f1ede3);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
    touch-action: manipulation;
}

input, select, textarea, output {
    font-family: inherit;
    font-size: 1rem;
}

::selection { background: var(--accent); color: var(--bg); }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #d8d2c6; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

section[id], footer[id] { scroll-margin-top: var(--nav-height); }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section { padding: 5.5rem 0; position: relative; }

.section-alt {
    background: #f4f1e9;
    border-top: 1px solid var(--border-softer);
    border-bottom: 1px solid var(--border-softer);
}

.section-head { max-width: 720px; margin-bottom: 1rem; }

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.8vw, 3.3rem);
    font-weight: 500;
    line-height: 1.12;
    margin-bottom: 0.9rem;
    letter-spacing: -0.015em;
}

.section-kicker {
    color: var(--accent);
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
    display: block;
    margin-bottom: 0.9rem;
}

.accent { color: var(--accent); }
.muted { color: var(--text-muted); }

.accent-gradient {
    background: linear-gradient(95deg, #0e7490 10%, #1ba8c0 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Fallback so headings never go invisible where clip-to-text is unsupported */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    .accent-gradient {
        background: none;
        -webkit-text-fill-color: currentColor;
        color: var(--accent);
    }
}

.icon {
    width: 1.25em;
    height: 1.25em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* ---------- Glass components ---------- */
.glass-panel {
    background: #ffffff;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-softer);
    box-shadow: 0 18px 48px -26px rgba(20, 34, 58, 0.20), 0 2px 6px rgba(20, 34, 58, 0.04);
}

.glass-card {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    box-shadow: 0 14px 40px -24px rgba(20, 34, 58, 0.16), 0 1px 3px rgba(20, 34, 58, 0.04);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.glass-card:hover,
.glass-card:focus-within {
    border-color: rgba(14, 116, 144, 0.35);
    box-shadow: 0 8px 32px rgba(20, 34, 58, 0.18), 0 0 24px rgba(14, 116, 144, 0.12);
    transform: translateY(-3px);
}

/* Mouse-following spotlight (driven by JS via --mx / --my) */
.spotlight::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%),
        rgba(14, 116, 144, 0.12), transparent 65%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.spotlight:hover::before { opacity: 1; }

/* ---------- Buttons & CTAs ---------- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    min-height: 48px;
    border-radius: 999px;
    background: linear-gradient(95deg, #0e7490, #1ba8c0);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.25s ease;
    will-change: transform;
}

/* Sweeping light beam across primary buttons */
.btn-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
    background-size: 250% 100%;
    background-position: 130% 0;
    animation: btn-sweep 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes btn-sweep {
    0%, 55%  { background-position: 130% 0; }
    85%, 100% { background-position: -130% 0; }
}

.btn-primary:hover {
    box-shadow: 0 0 42px rgba(14, 116, 144, 0.55);
}

.btn-primary:active { transform: scale(0.97); }
.btn-primary .icon { transition: transform 0.25s ease; }
.btn-primary:hover .icon { transform: translateX(4px); }

.btn-lg { padding: 1.05rem 2.1rem; font-size: 1.05rem; }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.5rem;
    min-height: 48px;
    border-radius: 999px;
    border: 1px solid rgba(20, 34, 58, 0.16);
    background: rgba(20, 34, 58, 0.04);
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.25s ease;
    will-change: transform;
}

.btn-ghost:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
}

.btn-ghost:active { transform: scale(0.97); }

.section-cta {
    margin-top: 3.25rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
}

.section-cta a {
    color: var(--accent);
    font-weight: 600;
    border-bottom: 1px solid rgba(14, 116, 144, 0.4);
    padding-bottom: 1px;
    transition: border-color 0.2s ease;
}

.section-cta a:hover { border-color: var(--accent); }

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, #0e7490, #1ba8c0);
    transform-origin: 0 50%;
    transform: scaleX(0);
    z-index: 70;
    pointer-events: none;
}

/* ---------- Navigation ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 1.2rem 1.5rem;
    transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    padding: 0.6rem 1.5rem;
    background: rgba(250, 248, 243, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 6px 24px rgba(20, 34, 58, 0.10);
}

.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-logo:hover { color: var(--accent); }

.nav-menu { display: none; }

.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: var(--text);
    transition: color 0.2s ease;
    z-index: 60;
}

.nav-toggle:hover { color: var(--accent); }
.nav-toggle .icon { width: 1.8rem; height: 1.8rem; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(250, 248, 243, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 55;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.6rem;
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu.open { transform: translateX(0); }

.mobile-menu a {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 400;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s ease, color 0.2s ease;
    transition-delay: 0s;
    padding: 0.25rem 1rem;
}

.mobile-menu.open a { opacity: 1; transform: none; }

.mobile-menu.open a:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.13s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.18s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.23s; }
.mobile-menu.open a:nth-child(5) { transition-delay: 0.28s; }
.mobile-menu.open a:nth-child(6) { transition-delay: 0.33s; }
.mobile-menu.open a:nth-child(7) { transition-delay: 0.38s; }

.mobile-menu a:hover { color: var(--accent); }
.mobile-menu .btn-primary { font-family: var(--font-body); font-size: 1.05rem; }

@media (min-width: 960px) {
    .nav-menu {
        display: flex;
        align-items: center;
        gap: 1.9rem;
        padding: 0.6rem 0.6rem 0.6rem 1.75rem;
        border-radius: 999px;
    }

    .nav-menu a:not(.btn-primary) {
        font-size: 0.9rem;
        font-weight: 500;
        color: var(--text-muted);
        transition: color 0.2s ease;
        position: relative;
    }

    .nav-menu a:not(.btn-primary)::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -4px;
        height: 2px;
        width: 100%;
        background: var(--accent);
        transform: scaleX(0);
        transform-origin: 0 50%;
        transition: transform 0.25s ease;
    }

    .nav-menu a:not(.btn-primary):hover,
    .nav-menu a.is-active { color: var(--text); }
    .nav-menu a.is-active::after { transform: scaleX(1); }

    .nav-menu .btn-primary {
        padding: 0.55rem 1.25rem;
        min-height: 0;
        font-size: 0.88rem;
    }

    .nav-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: calc(var(--nav-height) + 2.5rem) 0 4.5rem;
}

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-glow {
    position: absolute;
    width: 70vw;
    height: 70vw;
    max-width: 900px;
    max-height: 900px;
    top: -20%;
    right: -20%;
    background: radial-gradient(circle, rgba(14, 116, 144, 0.14), rgba(27, 168, 192, 0.06) 45%, transparent 70%);
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
    animation: glow-breathe 9s ease-in-out infinite alternate;
}

@keyframes glow-breathe {
    from { transform: scale(1); opacity: 0.85; }
    to   { transform: scale(1.15); opacity: 1; }
}

.hero-vignette {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 28% 45%, rgba(250, 248, 243, 0), transparent 58%),
        linear-gradient(to top, var(--bg), transparent 28%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
}

.hero-copy { max-width: 720px; }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1.4rem;
}

.hero-eyebrow::before {
    content: "";
    width: 2.2rem;
    height: 1px;
    background: var(--accent);
    opacity: 0.6;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 7.2vw, 5rem);
    font-weight: 500;
    line-height: 1.06;
    letter-spacing: -0.02em;
    margin-bottom: 1.4rem;
}

.hero-line { display: block; }

/* Staggered word reveal */
.hero-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.6em) rotate(2deg);
    animation: word-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-word:nth-child(1) { animation-delay: 0.05s; }
.hero-word:nth-child(2) { animation-delay: 0.13s; }
.hero-word:nth-child(3) { animation-delay: 0.21s; }
.hero-line:nth-child(2) .hero-word:nth-child(1) { animation-delay: 0.32s; }
.hero-line:nth-child(2) .hero-word:nth-child(2) { animation-delay: 0.4s; }
.hero-line:nth-child(2) .hero-word:nth-child(3) { animation-delay: 0.48s; }

@keyframes word-rise {
    to { opacity: 1; transform: none; }
}

.hero-sub {
    color: var(--text-muted);
    font-size: clamp(1.05rem, 2.2vw, 1.3rem);
    max-width: 560px;
    margin-bottom: 2.25rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2.75rem;
}

/* Hero stats with animated counters */
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 3rem;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.hero-stat-num {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 500;
    line-height: 1.1;
    color: var(--text);
}

.hero-stat-num em {
    font-style: normal;
    font-size: 1rem;
    color: var(--accent);
    margin-left: 0.15rem;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Floating glass chips */
.hero-visual {
    position: relative;
    display: none;
    flex-direction: column;
    gap: 1.1rem;
    width: 320px;
    flex-shrink: 0;
}

.hero-chip {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.95rem 1.2rem;
    border-radius: var(--radius);
    animation: chip-float 6s ease-in-out infinite;
    will-change: transform;
}

.hero-chip:nth-child(2) { animation-delay: -2s; margin-left: 2.25rem; }
.hero-chip:nth-child(3) { animation-delay: -4s; margin-left: 0.75rem; }

/* Hover: gently enlarge each box. Uses the independent `scale` property so it
   doesn't conflict with the float animation (translate) or parallax (transform). */
.hero-chip,
.hero-promise {
    transition: scale 0.3s ease, box-shadow 0.3s ease;
}

.hero-chip:hover,
.hero-promise:hover {
    scale: 1.05;
    position: relative;
    z-index: 3;
    box-shadow: 0 24px 56px -22px rgba(20, 34, 58, 0.30), 0 4px 12px rgba(20, 34, 58, 0.07);
}

@keyframes chip-float {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -9px; }
}

.chip-icon {
    width: 2.2rem;
    height: 2.2rem;
    padding: 0.45rem;
    border-radius: 10px;
    background: rgba(14, 116, 144, 0.08);
}

.chip-green  { color: #16a34a; }
.chip-cyan   { color: var(--accent); }
.chip-indigo { color: #6366f1; }

.hero-chip strong { display: block; font-size: 0.9rem; }
.hero-chip span { font-size: 0.75rem; color: var(--text-muted); }

.hero-promise {
    margin-top: 0.5rem;
    padding: 1.3rem 1.45rem;
    border-radius: var(--radius);
}

.hero-promise h3 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 0.9rem;
}

.hero-promise ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.hero-promise li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
}

.hero-promise li .icon {
    width: 1.45rem;
    height: 1.45rem;
    padding: 0.28rem;
    border-radius: 7px;
    background: rgba(14, 116, 144, 0.09);
    color: var(--accent);
    stroke-width: 2.4;
}

@media (min-width: 1024px) {
    .hero-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .hero-visual { display: flex; }
}

.hero-scroll-hint {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.55;
    animation: bounce 2s ease-in-out infinite;
    z-index: 1;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.hero-scroll-hint:hover { opacity: 1; color: var(--accent); }

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(8px); }
}

/* One-time entrance animation (hero, runs at load) */
.hero-enter { animation: rise-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero-enter-delay-1 { animation-delay: 0.1s; }
.hero-enter-delay-2 { animation-delay: 0.45s; }
.hero-enter-delay-3 { animation-delay: 0.6s; }
.hero-enter-delay-4 { animation-delay: 0.78s; }

@keyframes rise-in {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: none; }
}

/* ---------- Trust strip & marquee ---------- */
.trust-strip {
    border-top: 1px solid var(--border-softer);
    border-bottom: 1px solid var(--border-softer);
    background: #f6f3ec;
    padding: 3rem 0 0;
    overflow: hidden;
}

.trust-headline {
    text-align: center;
    margin-bottom: 2.25rem;
}

.trust-headline h2 {
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 3.2vw, 2rem);
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.trust-headline p {
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
}

.marquee {
    position: relative;
    border-top: 1px solid var(--border-softer);
    padding: 1.1rem 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
    mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 30s linear infinite;
}

.marquee-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.marquee-group span {
    font-size: 0.95rem;
    font-weight: 500;
    color: #3c4860;
    white-space: nowrap;
    padding: 0 1.4rem;
}

.marquee-group i {
    font-style: normal;
    color: var(--accent);
    font-size: 0.7rem;
}

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ---------- About ---------- */
.about-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3.5rem;
}

@media (min-width: 1024px) {
    .about-grid {
        flex-direction: row;
        align-items: center;
        gap: 5rem;
    }
    .about-photo-col, .about-content { width: 50%; }
}

.about-photo-col { display: flex; justify-content: center; }

.about-photo {
    position: relative;
    width: min(70vw, 310px);
    aspect-ratio: 1;
    transform-style: preserve-3d;
    will-change: transform;
}

.about-photo-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(14, 116, 144, 0.3);
    transform: scale(1.1);
    transition: transform 0.7s ease;
    pointer-events: none;
}

.about-photo-ring-dashed {
    border: 1px dashed rgba(20, 34, 58, 0.16);
    transform: scale(1.22);
    animation: ring-spin 40s linear infinite;
}

@keyframes ring-spin {
    from { transform: scale(1.22) rotate(0deg); }
    to   { transform: scale(1.22) rotate(360deg); }
}

.about-photo:hover .about-photo-ring { transform: scale(1.18); }

.about-photo-frame {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(20, 34, 58, 0.1);
    background: var(--surface);
}

.about-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    filter: none;
    transition: filter 0.5s ease;
}

.about-photo:hover .about-photo-frame img { filter: grayscale(0); }

/* Fallback initials avatar (shown by JS if the photo 404s) */
.about-photo-fallback {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 4.2rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.05em;
}

.about-photo.img-failed .about-photo-frame img { display: none; }
.about-photo.img-failed .about-photo-fallback { display: flex; }

.about-photo-badge {
    position: absolute;
    right: -0.5rem;
    top: 2rem;
    background: var(--bg);
    border: 1px solid var(--accent);
    border-radius: 12px;
    padding: 0.7rem;
    color: var(--accent);
    box-shadow: 0 0 20px rgba(14, 116, 144, 0.4);
    animation: badge-float 5s ease-in-out infinite;
    z-index: 2;
}

.about-photo-badge .icon { width: 1.5rem; height: 1.5rem; }

@keyframes badge-float {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -10px; }
}

.about-content .section-title { margin-bottom: 1.4rem; }

.about-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .skills-grid { grid-template-columns: repeat(3, 1fr); }
}

.skill-card {
    min-height: 9.5rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    text-align: center;
}

.skill-card .icon,
.skill-card svg {
    width: 2.1rem;
    height: 2.1rem;
    transition: transform 0.25s ease;
}

.skill-card:hover .icon,
.skill-card:hover svg { transform: scale(1.14); }

.skill-card span {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.35;
    font-weight: 500;
}

.skill-orange { color: #f97316; }
.skill-green  { color: #22c55e; }
.skill-blue   { color: #3b82f6; }
.skill-yellow { color: #facc15; }
.skill-purple { color: #c084fc; }
.skill-red    { color: #f87171; }

/* ---------- Process timeline ---------- */
.timeline {
    position: relative;
    margin-top: 3.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
    padding-left: 2.25rem;
}

.timeline-rail {
    position: absolute;
    left: 0.55rem;
    top: 0.5rem;
    bottom: 1.6rem;
    width: 2px;
    background: rgba(20, 34, 58, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.timeline-fill {
    width: 100%;
    height: 0%;
    background: linear-gradient(to bottom, #0e7490, #1ba8c0);
    box-shadow: 0 0 12px var(--accent-glow);
    transition: height 0.15s linear;
}

.timeline-item { position: relative; }

/* CTA at the end of the progress line, so the line leads into it */
.timeline-cta {
    position: relative;
    z-index: 1;
    margin: 2.5rem 0 1.5rem;
    display: flex;
    justify-content: center;
    transform-origin: center;
    --cta-rest: 1.5;
    --cta-peak: 1.5;
}

/* Smaller phones: keep the drama but avoid overflowing the viewport */
@media (max-width: 600px) {
    .timeline-cta { --cta-rest: 1.3; --cta-peak: 1.42; }
}

/* When the progress line reaches the CTA: smoothly grow, then breathe gently */
.timeline-cta.is-reached {
    animation: cta-enter 0.9s cubic-bezier(.22,1,.36,1) forwards,
               cta-breathe 3.2s ease-in-out 0.9s infinite;
}

.timeline-cta.is-reached .btn-primary {
    animation: cta-glow 3.2s ease-in-out 0.9s infinite;
}

@keyframes cta-enter {
    0%   { transform: scale(1); }
    100% { transform: scale(var(--cta-rest)); }
}

@keyframes cta-breathe {
    0%, 100% { transform: scale(var(--cta-rest)); }
    50%      { transform: scale(var(--cta-peak)); }
}

@keyframes cta-glow {
    0%, 100% { box-shadow: 0 6px 22px rgba(14, 116, 144, 0.38); }
    50%      { box-shadow: 0 0 46px 7px rgba(14, 116, 144, 0.7); }
}

@media (prefers-reduced-motion: reduce) {
    .timeline-cta.is-reached { animation: none; transform: scale(var(--cta-rest)); }
    .timeline-cta.is-reached .btn-primary { animation: none; }
}

.timeline-dot {
    position: absolute;
    left: -2.25rem;
    top: 50%;
    width: 13px;
    height: 13px;
    margin-left: 0.12rem;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid rgba(20, 34, 58, 0.18);
    transform: translateY(-50%);
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.timeline-item.is-active .timeline-dot {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 14px var(--accent-glow);
}

.timeline-card {
    padding: 2rem;
    opacity: 0.45;
    transition: opacity 0.5s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.4s ease;
}

.timeline-item.is-active .timeline-card { opacity: 1; }

/* Current step: enlarges while the progress line sits between this dot and the next */
.timeline-item.is-current .timeline-card {
    transform: scale(1.045);
    border-color: rgba(14, 116, 144, 0.35);
    box-shadow: 0 18px 48px -18px rgba(20, 34, 58, 0.28), 0 0 28px rgba(14, 116, 144, 0.14);
}

.timeline-item.is-current .timeline-dot {
    box-shadow: 0 0 0 5px rgba(14, 116, 144, 0.16), 0 0 16px var(--accent-glow);
}

.process-num {
    width: 3rem;
    height: 3rem;
    border-radius: 12px;
    background: rgba(14, 116, 144, 0.1);
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.timeline-card h3 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 500;
    margin-bottom: 0.6rem;
}

.timeline-card p {
    color: var(--text-muted);
    font-size: 0.93rem;
}

.process-tagline {
    border-top: 1px solid var(--border-soft);
    margin-top: 1.4rem;
    padding-top: 1rem;
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 500;
}

/* Desktop: alternating zigzag around a central rail */
@media (min-width: 900px) {
    .timeline { padding-left: 0; gap: 2.5rem; }

    .timeline-rail {
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline-item:nth-child(odd) {
        padding-right: calc(50% + 2.75rem);
    }

    .timeline-item:nth-child(even) {
        padding-left: calc(50% + 2.75rem);
    }

    .timeline-item .timeline-dot {
        left: 50%;
        transform: translate(-50%, -50%);
        margin-left: 0;
    }
}

/* ---------- Growth calculator ---------- */
.calc-card {
    margin-top: 2.5rem;
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .calc-card { padding: 2.5rem; }
}

@media (min-width: 960px) {
    .calc-card { grid-template-columns: minmax(300px, 5fr) 7fr; gap: 3rem; }
}

.calc-controls {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.calc-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.6rem;
}

.calc-label label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.calc-label output {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
}

input[type="range"] {
    width: 100%;
    height: 28px;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--accent) var(--fill, 50%), rgba(20, 34, 58, 0.12) var(--fill, 50%));
}

input[type="range"]::-moz-range-track {
    height: 6px;
    border-radius: 3px;
    background: rgba(20, 34, 58, 0.12);
}

input[type="range"]::-moz-range-progress {
    height: 6px;
    border-radius: 3px;
    background: var(--accent);
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    margin-top: -8px;
    border-radius: 50%;
    background: #fff;
    border: 5px solid var(--accent);
    box-shadow: 0 0 14px var(--accent-glow);
    transition: transform 0.15s ease;
}

input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 5px solid var(--accent);
    box-shadow: 0 0 14px var(--accent-glow);
}

input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.18); }

.calc-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 0.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-soft);
}

.calc-result { display: flex; flex-direction: column; gap: 0.25rem; }

/* On narrow phones the three nowrap currency figures don't fit side by side;
   lay each out as a label-left / value-right row instead. */
@media (max-width: 479.98px) {
    .calc-results { grid-template-columns: 1fr; gap: 0.9rem; }
    .calc-result {
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
        gap: 1rem;
    }
}

.calc-result-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-faint);
}

.calc-result-num {
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 2.4vw, 1.45rem);
    font-weight: 500;
    white-space: nowrap;
}

.calc-result-hero .calc-result-num { font-size: clamp(1.25rem, 3vw, 1.8rem); }

.calc-chart-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    min-width: 0;
}

#calc-chart {
    width: 100%;
    height: 280px;
    border-radius: var(--radius);
    background: #f6f3ec;
    border: 1px solid var(--border-softer);
}

@media (min-width: 960px) {
    #calc-chart { height: 100%; min-height: 320px; }
}

.calc-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.calc-legend span { display: inline-flex; align-items: center; gap: 0.45rem; }

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    display: inline-block;
}

.legend-growth { background: linear-gradient(135deg, #0e7490, #1ba8c0); }
.legend-saved { background: rgba(20, 34, 58, 0.28); }

.calc-disclaimer {
    grid-column: 1 / -1;
    font-size: 0.74rem;
    color: var(--text-faint);
    border-top: 1px solid var(--border-softer);
    padding-top: 1.25rem;
}

/* ---------- Testimonials ---------- */
.reviews-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.reviews-controls { display: flex; gap: 0.75rem; }

.reviews-controls button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(20, 34, 58, 0.14);
    background: rgba(20, 34, 58, 0.035);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.reviews-controls button:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
}

.reviews-controls button:active { transform: scale(0.94); }

.reviews-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0.25rem 1.5rem 1.5rem;
    margin: 0 -1.5rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
}

.reviews-track::-webkit-scrollbar { display: none; }

.reviews-track.dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto;
    user-select: none;
}

.review-card {
    flex-shrink: 0;
    width: min(85vw, 390px);
    scroll-snap-align: center;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
}

.reviews-track.dragging .review-card { pointer-events: none; }

.review-quote-mark {
    font-family: var(--font-display);
    font-size: 3.6rem;
    line-height: 0.6;
    color: var(--accent);
    opacity: 0.5;
    display: block;
    margin-bottom: 1rem;
}

.review-card blockquote {
    color: #3c4860;
    font-size: 0.92rem;
    font-style: italic;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    border-top: 1px solid var(--border-soft);
    padding-top: 1rem;
}

.review-avatar {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.25), rgba(27, 168, 192, 0.25));
    color: var(--accent);
    font-weight: 700;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.review-author strong { display: block; font-size: 0.95rem; }
.review-author span { font-size: 0.75rem; color: var(--accent); }

.reviews-dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1.25rem;
}

.reviews-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 50%;
    background: rgba(20, 34, 58, 0.18);
    transition: background 0.25s ease, transform 0.25s ease;
}

.reviews-dots button.is-active {
    background: var(--accent);
    transform: scale(1.25);
}

/* ---------- FAQ ---------- */
.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

@media (min-width: 1024px) {
    .faq-grid { flex-direction: row; gap: 4.5rem; }
    .faq-intro-col {
        width: 38%;
        position: sticky;
        top: calc(var(--nav-height) + 1.5rem);
        align-self: flex-start;
    }
    .faq-list { width: 62%; }
}

.faq-intro {
    color: var(--text-muted);
    margin-bottom: 1.75rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.faq-item { border-radius: var(--radius); overflow: hidden; }
.faq-item:hover { transform: none; }

.faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.5rem;
    font-weight: 600;
    font-size: 0.96rem;
    min-height: 48px;
    transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }

.faq-item summary .icon {
    transition: transform 0.35s ease;
    color: var(--accent);
}

.faq-item.open summary .icon { transform: rotate(45deg); }
.faq-item.open summary { color: var(--accent); }

/* Height animated by JS; overflow hidden keeps it tidy */
.faq-answer-wrap { overflow: hidden; }

.faq-answer {
    padding: 0 1.5rem 1.35rem;
    color: var(--text-muted);
    font-size: 0.93rem;
}

.faq-answer a {
    color: var(--accent);
    border-bottom: 1px solid rgba(14, 116, 144, 0.4);
}

/* ---------- Contact form ---------- */
.contact-section { overflow: hidden; }

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header .section-kicker { text-align: center; }

.contact-header p {
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto;
}

.contact-card {
    max-width: 780px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    position: relative;
}

.contact-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.4), transparent 30%, transparent 70%, rgba(27, 168, 192, 0.4));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

@media (min-width: 640px) {
    .contact-card { padding: 3rem; }
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .form-grid { grid-template-columns: 1fr 1fr; }
    .form-field-full { grid-column: 1 / -1; }
}

.form-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    margin-left: 0.25rem;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 0.95rem 1.25rem;
    border-radius: 12px;
    background: #fbfaf6;
    border: 1px solid rgba(20, 34, 58, 0.1);
    color: var(--text);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-field textarea { resize: vertical; min-height: 7rem; }

.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-faint); }

.form-field input:focus,
.form-field textarea:focus {
    background: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(14, 116, 144, 0.2);
    outline: none;
}

.form-field input.invalid,
.form-field textarea.invalid { border-color: var(--error); }

.field-error {
    display: none;
    color: var(--error);
    font-size: 0.78rem;
    margin: 0.4rem 0 0 0.25rem;
}

.field-error.show { display: block; }

.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.form-consent input {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.15rem;
    accent-color: var(--accent);
    flex-shrink: 0;
}

.form-consent a {
    color: var(--accent);
    border-bottom: 1px solid rgba(14, 116, 144, 0.4);
}

.form-error-banner {
    display: none;
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.35);
    color: #b91c1c;
    border-radius: 12px;
    padding: 0.9rem 1.25rem;
    font-size: 0.88rem;
}

.form-error-banner.show { display: block; }

.btn-submit {
    width: 100%;
    padding: 1.2rem;
    border-radius: 14px;
    background: linear-gradient(95deg, #0e7490, #1ba8c0);
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: box-shadow 0.3s ease, transform 0.25s ease, opacity 0.2s ease;
    will-change: transform;
}

.btn-submit:hover { box-shadow: 0 0 30px rgba(14, 116, 144, 0.5); }
.btn-submit:active { transform: scale(0.98); }
.btn-submit:disabled { opacity: 0.6; cursor: wait; }

.btn-submit .spinner {
    display: none;
    width: 1.15rem;
    height: 1.15rem;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.btn-submit.loading .spinner { display: inline-block; }
.btn-submit.loading .icon { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }

.form-success {
    display: none;
    text-align: center;
    padding: 2rem 1rem;
}

.form-success.show { display: block; }

.form-success .icon {
    width: 3.5rem;
    height: 3.5rem;
    color: var(--success);
    margin: 0 auto 1.25rem;
}

.form-success h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.form-success p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.form-success button {
    color: var(--accent);
    font-weight: 600;
    border-bottom: 1px solid rgba(14, 116, 144, 0.4);
    padding-bottom: 1px;
}

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--border-softer);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.site-footer::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.12;
    background-image: radial-gradient(rgba(20, 34, 58, 0.4) 1px, transparent 1px);
    background-size: 30px 30px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links a { transition: color 0.2s ease; padding: 0.25rem 0; }
.footer-links a:hover { color: var(--accent); }

.footer-copy { font-size: 0.85rem; color: var(--text-faint); }

.footer-disclaimer {
    font-size: 0.72rem;
    color: var(--text-muted);
    max-width: 760px;
}

/* ---------- Scroll-reveal animations ---------- */
/* Hidden state only applies when JS is running (html.js),
   so content is always visible without JavaScript. */
html.js [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.65s ease, transform 0.65s ease;
    transition-delay: calc(var(--d, 0) * 90ms);
}

html.js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* ---------- Legal pages ---------- */
.legal-main {
    max-width: 800px;
    margin: 0 auto;
    padding: calc(var(--nav-height) + 2rem) 1.5rem 5rem;
}

.draft-banner {
    background: rgba(202, 138, 4, 0.10);
    border: 1px solid rgba(202, 138, 4, 0.35);
    color: #92710a;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    font-size: 0.88rem;
    margin-bottom: 2.5rem;
}

.legal-main h1 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: -0.015em;
}

.legal-updated {
    color: var(--text-faint);
    font-size: 0.85rem;
    margin-bottom: 2.5rem;
}

.legal-main h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 500;
    margin: 2.25rem 0 0.75rem;
    color: var(--text);
}

.legal-main p,
.legal-main li {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.85rem;
}

.legal-main ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-main a {
    color: var(--accent);
    border-bottom: 1px solid rgba(14, 116, 144, 0.4);
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.back-home .icon { transform: rotate(180deg); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .hero-canvas { display: none; }

    .hero-glow,
    .hero-scroll-hint,
    .hero-enter,
    .hero-word,
    .about-photo-badge,
    .about-photo-ring-dashed,
    .marquee-track,
    .btn-primary::after {
        animation: none;
    }

    .hero-enter, .hero-word { opacity: 1; transform: none; }

    .marquee {
        -webkit-mask-image: none;
        mask-image: none;
    }

    .marquee-track { flex-wrap: wrap; width: 100%; justify-content: center; }
    .marquee-group:nth-child(2) { display: none; }

    html.js [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .timeline-card { opacity: 1; }

    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* =========================================================
   Service detail pages
   ========================================================= */

/* ---- Nav: Services dropdown ---- */
.nav-dropdown { position: relative; display: flex; align-items: center; }

.nav-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s ease;
    position: relative;
    padding: 0;
}

.nav-dropdown-btn::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    height: 2px;
    width: calc(100% - 1.1rem);
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 0.25s ease;
}

.nav-dropdown:hover .nav-dropdown-btn,
.nav-dropdown:focus-within .nav-dropdown-btn,
.nav-dropdown-btn.is-active,
.nav-dropdown-btn[aria-expanded="true"] { color: var(--text); }

.nav-dropdown:hover .nav-dropdown-btn::after,
.nav-dropdown-btn.is-active::after,
.nav-dropdown:focus-within .nav-dropdown-btn::after { transform: scaleX(1); }

.nav-dropdown-btn .caret { width: 0.95rem; height: 0.95rem; transition: transform 0.25s ease; }
.nav-dropdown:hover .nav-dropdown-btn .caret,
.nav-dropdown:focus-within .nav-dropdown-btn .caret,
.nav-dropdown-btn[aria-expanded="true"] .caret { transform: rotate(180deg); }

.nav-dropdown-panel {
    position: absolute;
    top: calc(100% + 0.9rem);
    left: 0;
    transform: translateY(8px);
    width: 600px;
    max-width: calc(100vw - 3rem);
    background: rgba(250, 248, 243, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    box-shadow: 0 24px 60px -28px rgba(20, 34, 58, 0.4), 0 2px 8px rgba(20, 34, 58, 0.06);
    padding: 0.6rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.1rem 0.3rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    z-index: 60;
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel,
.nav-dropdown-panel.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* Hover bridge so the panel doesn't vanish when crossing the gap */
.nav-dropdown-panel::before {
    content: "";
    position: absolute;
    top: -0.9rem;
    left: 0;
    right: 0;
    height: 0.9rem;
}

.nav-dd-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    transition: background 0.2s ease;
}

.nav-dd-item:hover { background: rgba(14, 116, 144, 0.08); }

.nav-dd-item svg {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    color: var(--accent);
}

.nav-dd-item span {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.25;
}

.nav-dd-item small {
    display: block;
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--text-faint);
    margin-top: 0.05rem;
}

/* Mobile menu services group */
.mobile-services {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.mobile-services .mobile-services-label {
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    opacity: 1;
    transform: none;
}

.mobile-services a {
    font-size: 1.15rem;
    padding: 0.15rem 1rem;
}

/* ---- Service hero ---- */
.svc-hero {
    position: relative;
    padding: calc(var(--nav-height) + 3rem) 0 3.5rem;
    overflow: hidden;
}

.svc-hero::before {
    content: "";
    position: absolute;
    width: 60vw;
    max-width: 760px;
    height: 60vw;
    max-height: 760px;
    top: -28%;
    right: -16%;
    background: radial-gradient(circle, rgba(14, 116, 144, 0.12), rgba(27, 168, 192, 0.05) 45%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
    z-index: 0;
}

.svc-hero .container { position: relative; z-index: 1; }

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-faint);
    margin-bottom: 1.75rem;
}

.breadcrumb a {
    color: var(--text-muted);
    transition: color 0.2s ease;
    border-bottom: 1px solid transparent;
}

.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .current { color: var(--text); }

.svc-hero-head {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    max-width: 880px;
}

.svc-icon-badge {
    width: 4.75rem;
    height: 4.75rem;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid var(--border-soft);
    box-shadow: 0 18px 48px -26px rgba(20, 34, 58, 0.25), 0 2px 6px rgba(20, 34, 58, 0.04);
    flex-shrink: 0;
}

.svc-icon-badge svg { width: 2.5rem; height: 2.5rem; color: var(--accent); }

.svc-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5.2vw, 3.6rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.018em;
    margin-bottom: 0.4rem;
}

.svc-hero .svc-tag {
    color: var(--accent);
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
    display: block;
    margin-bottom: 0.6rem;
}

.svc-lead {
    color: var(--text-muted);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    max-width: 720px;
    margin-top: 1.5rem;
}

.svc-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.25rem;
}

@media (max-width: 560px) {
    .svc-hero-head { flex-direction: column; gap: 1.1rem; }
    .svc-icon-badge { width: 4rem; height: 4rem; }
    .svc-icon-badge svg { width: 2.1rem; height: 2.1rem; }
}

/* ---- Service generic sections ---- */
.svc-section { padding: 4.5rem 0; position: relative; }
.svc-section-alt {
    background: #f4f1e9;
    border-top: 1px solid var(--border-softer);
    border-bottom: 1px solid var(--border-softer);
}

.svc-two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
}

@media (min-width: 900px) {
    .svc-two-col { grid-template-columns: 0.85fr 1.15fr; gap: 4rem; }
    .svc-two-col.sticky-left .svc-col-head {
        position: sticky;
        top: calc(var(--nav-height) + 1.5rem);
    }
}

.svc-prose p {
    color: var(--text-muted);
    font-size: 1.02rem;
    margin-bottom: 1.1rem;
}

.svc-prose p:last-child { margin-bottom: 0; }

.svc-prose strong { color: var(--text); font-weight: 600; }

/* Feature / "what's included" cards */
.svc-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 600px) {
    .svc-features { grid-template-columns: 1fr 1fr; }
}

.feature-card {
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    transition: transform 0.3s cubic-bezier(.22,1,.36,1), box-shadow 0.3s ease, border-color 0.3s ease;
    transform-origin: center;
    cursor: pointer;
}

/* Enlarge on hover or when tapped/clicked (.is-active toggled by JS).
   Scoped tightly so it beats `html.js [data-reveal].is-visible { transform:none }`. */
html.js [data-reveal].feature-card:hover,
html.js [data-reveal].feature-card:focus-visible,
html.js [data-reveal].feature-card.is-active,
.feature-card:hover,
.feature-card:focus-visible,
.feature-card.is-active {
    transform: scale(1.04);
    z-index: 2;
    border-color: rgba(14, 116, 144, 0.35);
    box-shadow: 0 18px 48px -18px rgba(20, 34, 58, 0.28), 0 0 28px rgba(14, 116, 144, 0.14);
}

.feature-card .icon-chip {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 12px;
    background: rgba(14, 116, 144, 0.09);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.3rem;
}

.feature-card .icon-chip svg { width: 1.4rem; height: 1.4rem; }

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.18rem;
    font-weight: 500;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

/* Bullet list */
.svc-bullets { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; }

.svc-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.98rem;
}

.svc-bullets li svg {
    width: 1.3rem;
    height: 1.3rem;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

/* ---- Interactive widget shell ---- */
.widget-card {
    margin-top: 0;
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
}

@media (min-width: 640px) { .widget-card { padding: 2.5rem; } }

.widget-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.25rem;
    align-items: stretch;
}

@media (min-width: 880px) {
    .widget-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

.widget-controls { display: flex; flex-direction: column; gap: 1.5rem; }

.widget-viz {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #f6f3ec;
    border: 1px solid var(--border-softer);
    border-radius: var(--radius);
    padding: 1.5rem;
    justify-content: center;
}

.widget-result-big {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    text-align: center;
}

.widget-result-big .label {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-faint);
}

.widget-result-big .num {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 2.9rem);
    font-weight: 500;
    line-height: 1.05;
}

.widget-sub-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-soft);
}

.widget-sub {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    text-align: center;
}

.widget-sub .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-faint);
}

.widget-sub .val {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    white-space: nowrap;
}

.widget-note {
    font-size: 0.74rem;
    color: var(--text-faint);
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-softer);
    grid-column: 1 / -1;
}

#allocation-donut { width: 100%; max-width: 240px; height: 240px; margin: 0 auto; display: block; }

.alloc-legend {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 0.5rem;
}

.alloc-legend-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.alloc-legend-row .left { display: flex; align-items: center; gap: 0.6rem; }
.alloc-legend-row .dot { width: 11px; height: 11px; border-radius: 3px; flex-shrink: 0; }
.alloc-legend-row .pct { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }

.risk-label-out {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--text);
}

/* ---- Checklist / self-assessment widget ---- */
.svc-checklist { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }

.svc-check {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    background: #fbfaf6;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.svc-check:hover { border-color: rgba(14, 116, 144, 0.35); }

.svc-check input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.svc-check .box {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 7px;
    border: 2px solid rgba(20, 34, 58, 0.22);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
    margin-top: 0.05rem;
}

.svc-check .box svg {
    width: 1rem;
    height: 1rem;
    color: #fff;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.svc-check input:checked ~ .box {
    background: var(--accent);
    border-color: var(--accent);
}

.svc-check input:checked ~ .box svg { opacity: 1; transform: none; }

.svc-check input:focus-visible ~ .box {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.svc-check .text strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 600;
}

.svc-check .text span {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

.svc-check input:checked ~ .text strong { color: var(--accent); }

.score-meter {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    text-align: center;
    justify-content: center;
}

.score-num {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 6vw, 3.4rem);
    font-weight: 500;
    line-height: 1;
}

.score-num em { font-style: normal; font-size: 0.4em; color: var(--text-faint); }

.score-label { font-size: 0.95rem; color: var(--text-muted); font-weight: 500; }

.score-bar {
    height: 12px;
    border-radius: 6px;
    background: rgba(20, 34, 58, 0.1);
    overflow: hidden;
}

.score-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 6px;
    background: linear-gradient(90deg, #0e7490, #1ba8c0);
    transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.score-readout {
    font-size: 0.88rem;
    color: var(--text-muted);
    min-height: 2.6em;
}

/* ---- Case studies ---- */
.case-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 860px) {
    .case-grid { grid-template-columns: 1fr 1fr; }
}

.case-card { padding: 2rem; display: flex; flex-direction: column; gap: 1.25rem; }

.case-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.case-chip {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--accent);
    background: rgba(14, 116, 144, 0.09);
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
}

.case-card h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.2;
}

.case-block { display: flex; flex-direction: column; gap: 0.3rem; }

.case-block .case-k {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-faint);
    font-weight: 600;
}

.case-block p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.6; }

.case-outcome {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    border-top: 1px solid var(--border-soft);
    padding-top: 1.25rem;
    margin-top: auto;
}

.case-stat { display: flex; flex-direction: column; gap: 0.1rem; }

.case-stat strong {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--accent);
    line-height: 1.1;
}

.case-stat span { font-size: 0.76rem; color: var(--text-muted); }

.illustrative-note {
    background: rgba(20, 34, 58, 0.04);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 0.9rem 1.25rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1.75rem;
}

.illustrative-note strong { color: var(--text); }

/* ---- CTA band ---- */
.svc-cta {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    border-radius: var(--radius-lg);
    position: relative;
}

.svc-cta::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.45), transparent 35%, transparent 65%, rgba(27, 168, 192, 0.45));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.svc-cta h2 {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3.6vw, 2.5rem);
    font-weight: 500;
    margin-bottom: 0.75rem;
    letter-spacing: -0.015em;
}

.svc-cta p { color: var(--text-muted); max-width: 480px; margin: 0 auto 1.75rem; }

/* "Related services" footer nav */
.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }

.related-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.1rem 1.25rem;
}

.related-card svg.svc-glyph { width: 1.9rem; height: 1.9rem; flex-shrink: 0; color: var(--accent); }
.related-card .r-text strong { display: block; font-size: 0.9rem; color: var(--text); }
.related-card .r-text span { font-size: 0.75rem; color: var(--text-muted); }
.related-card .arrow { margin-left: auto; color: var(--accent); width: 1.1rem; height: 1.1rem; transition: transform 0.25s ease; }
.related-card:hover .arrow { transform: translateX(4px); }

/* Skill cards as links on the homepage */
a.skill-card { text-decoration: none; }

.skill-card .skill-more {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.skill-card .skill-more svg { width: 0.85rem; height: 0.85rem; }

a.skill-card:hover .skill-more,
a.skill-card:focus-visible .skill-more { opacity: 1; transform: none; }

/* Section icon colours reused on service pages */
.svc-orange { color: #f97316; }
.svc-green  { color: #22c55e; }
.svc-blue   { color: #3b82f6; }
.svc-yellow { color: #facc15; }
.svc-purple { color: #c084fc; }
.svc-red    { color: #f87171; }

@media (prefers-reduced-motion: reduce) {
    .nav-dropdown-panel { transition: none; }
    .skill-card .skill-more { opacity: 1; transform: none; }
}

/* ---- Homepage Services section ---- */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 3rem;
}

@media (min-width: 600px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 920px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    text-decoration: none;
    height: 100%;
}

.service-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 14px;
    background: rgba(14, 116, 144, 0.09);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.35rem;
    transition: transform 0.25s ease, background 0.25s ease;
}

.service-icon svg { width: 1.6rem; height: 1.6rem; transform-origin: center; }

.service-card:hover .service-icon,
.service-card:focus-visible .service-icon,
.service-card.icon-play .service-icon {
    background: rgba(14, 116, 144, 0.16);
    color: var(--accent-2, #1ba8c0);
}

/* Card enlarges on hover / focus / tap (scale stacks with the lift) */
.service-card:hover,
.service-card:focus-visible,
.service-card.icon-play {
    transform: translateY(-4px) scale(1.035);
    z-index: 2;
}

/* ----- Per-icon animations (one tailored to each card's glyph) ----- */
@keyframes svc-stack   { 0%,100%{transform:translateY(0)} 30%{transform:translateY(-4px) scale(1.08)} 60%{transform:translateY(1px) scale(.97)} }
@keyframes svc-rise    { 0%{transform:translateY(4px) scale(.9);opacity:.4} 60%{transform:translateY(-3px) scale(1.05)} 100%{transform:translateY(0) scale(1);opacity:1} }
@keyframes svc-search  { 0%,100%{transform:rotate(0)} 25%{transform:rotate(-16deg) translateX(-1px)} 60%{transform:rotate(14deg) translateX(1px)} 80%{transform:rotate(-6deg)} }
@keyframes svc-beat    { 0%,100%{transform:scale(1)} 20%{transform:scale(1.22)} 40%{transform:scale(.95)} 60%{transform:scale(1.14)} 80%{transform:scale(.99)} }
@keyframes svc-flip    { 0%{transform:rotate(0)} 100%{transform:rotate(180deg)} }
@keyframes svc-toss    { 0%{transform:translateY(0) rotate(0)} 35%{transform:translateY(-6px) rotate(-12deg)} 70%{transform:translateY(-1px) rotate(8deg)} 100%{transform:translateY(0) rotate(0)} }
@keyframes svc-guard   { 0%,100%{transform:scale(1)} 35%{transform:scale(1.16)} 55%{transform:scale(.96)} 75%{transform:scale(1.06)} }
@keyframes svc-sway    { 0%,100%{transform:rotate(0) translateY(0)} 25%{transform:rotate(-12deg) translateY(-1px)} 55%{transform:rotate(10deg)} 80%{transform:rotate(-4deg)} }
@keyframes svc-spin    { 0%{transform:rotate(0)} 100%{transform:rotate(360deg)} }

.service-card:nth-child(1):hover .service-icon svg,
.service-card:nth-child(1):focus-visible .service-icon svg,
.service-card:nth-child(1).icon-play .service-icon svg { animation: svc-stack 0.7s ease; }
.service-card:nth-child(2):hover .service-icon svg,
.service-card:nth-child(2):focus-visible .service-icon svg,
.service-card:nth-child(2).icon-play .service-icon svg { animation: svc-rise 0.6s ease; }
.service-card:nth-child(3):hover .service-icon svg,
.service-card:nth-child(3):focus-visible .service-icon svg,
.service-card:nth-child(3).icon-play .service-icon svg { animation: svc-search 0.7s ease; }
.service-card:nth-child(4):hover .service-icon svg,
.service-card:nth-child(4):focus-visible .service-icon svg,
.service-card:nth-child(4).icon-play .service-icon svg { animation: svc-beat 0.8s ease; }
.service-card:nth-child(5):hover .service-icon svg,
.service-card:nth-child(5):focus-visible .service-icon svg,
.service-card:nth-child(5).icon-play .service-icon svg { animation: svc-flip 0.7s ease; }
.service-card:nth-child(6):hover .service-icon svg,
.service-card:nth-child(6):focus-visible .service-icon svg,
.service-card:nth-child(6).icon-play .service-icon svg { animation: svc-toss 0.7s ease; }
.service-card:nth-child(7):hover .service-icon svg,
.service-card:nth-child(7):focus-visible .service-icon svg,
.service-card:nth-child(7).icon-play .service-icon svg { animation: svc-guard 0.7s ease; }
.service-card:nth-child(8):hover .service-icon svg,
.service-card:nth-child(8):focus-visible .service-icon svg,
.service-card:nth-child(8).icon-play .service-icon svg { animation: svc-sway 0.8s ease; }
.service-card:nth-child(9):hover .service-icon svg,
.service-card:nth-child(9):focus-visible .service-icon svg,
.service-card:nth-child(9).icon-play .service-icon svg { animation: svc-spin 0.8s ease; }

.service-title {
    font-family: var(--font-display);
    font-size: 1.22rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.2;
}

.service-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.service-more {
    margin-top: auto;
    padding-top: 0.6rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--accent);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.service-more svg { width: 0.9rem; height: 0.9rem; }

.service-card:hover .service-more,
.service-card:focus-visible .service-more { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .service-more { opacity: 1; transform: none; }
    .service-card:hover, .service-card:focus-visible, .service-card.icon-play { transform: none; }
    .service-card .service-icon svg { animation: none !important; }
}
