:root {
    --color-bg: #e6e2d3;
    --color-bg-soft: #f5f1e6;
    --color-surface: rgba(255, 255, 255, 0.68);
    --color-surface-strong: rgba(255, 255, 255, 0.86);
    --color-primary: #2f221a;
    --color-secondary: #6f6359;
    --color-accent: #b45309;
    --color-accent-soft: #f4cfaa;
    --color-border: rgba(47, 34, 26, 0.12);
    --color-dark: #241912;
    --color-dark-surface: rgba(255, 255, 255, 0.06);
    --shadow-soft: 0 24px 80px rgba(47, 34, 26, 0.12);
    --shadow-card: 0 16px 40px rgba(47, 34, 26, 0.1);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --container: 1200px;
    --font-main: "Inter", sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

@keyframes orbit-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes orbit-drift {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -12px, 0);
    }
}

@keyframes dash-flow {
    to {
        stroke-dashoffset: -180;
    }
}

@keyframes pulse-node {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.45;
    }

    50% {
        transform: scale(1.4);
        opacity: 1;
    }
}

@keyframes radar-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes line-glow {
    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.95;
    }
}

body {
    font-family: var(--font-main);
    background:
        radial-gradient(circle at top left, rgba(180, 83, 9, 0.08), transparent 28%),
        linear-gradient(180deg, #e9e4d8 0%, #e6e2d3 30%, #f3eee5 100%);
    color: var(--color-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

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

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -10rem;
    background: var(--color-primary);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    z-index: 300;
}

.skip-link:focus {
    top: 1rem;
}

.container {
    width: min(100% - 2.5rem, var(--container));
    margin: 0 auto;
}

.section {
    padding: 6rem 0;
}

.section-light {
    background: rgba(255, 255, 255, 0.26);
}

.section-dark {
    background:
        radial-gradient(circle at top right, rgba(180, 83, 9, 0.22), transparent 25%),
        linear-gradient(160deg, #271b14 0%, #1f1611 100%);
    color: #f8f1e7;
}

.section-header {
    max-width: 720px;
    margin: 0 auto 3rem;
    text-align: center;
}

.section-header-left {
    margin-left: 0;
    text-align: left;
}

.section-label,
.eyebrow,
.trust-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
    font-weight: 700;
}

.section-header h2,
.about-copy h2,
.contact-copy h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.08;
    margin-bottom: 1rem;
}

.section-header p,
.about-copy p,
.contact-copy p,
.service-card p,
.process-card p,
.case-body p,
.testimonial-card p,
.faq-item p {
    color: var(--color-secondary);
}

.section-dark .section-header p,
.section-dark .case-body p {
    color: rgba(248, 241, 231, 0.74);
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(248, 244, 237, 0.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(47, 34, 26, 0.12);
    box-shadow: 0 10px 24px rgba(47, 34, 26, 0.05);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background: rgba(248, 244, 237, 0.98);
    border-color: rgba(47, 34, 26, 0.16);
    box-shadow: 0 14px 34px rgba(47, 34, 26, 0.1);
}

.navbar-inner {
    width: min(100% - 2.5rem, var(--container));
    margin: 0 auto;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-weight: 800;
}

.logo-text {
    font-size: 1.1rem;
    letter-spacing: 0.08em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    font-weight: 600;
    color: var(--color-primary);
    transition: color 0.25s ease;
}

.nav-links a:hover,
.footer-links a:hover,
.contact-details a:hover {
    color: var(--color-accent);
}

.btn-nav,
.btn-primary,
.btn-secondary,
.btn-submit {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn-nav,
.btn-primary,
.btn-submit {
    background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
    color: #fff;
    box-shadow: 0 16px 32px rgba(180, 83, 9, 0.24);
}

.btn-nav {
    border: 1px solid rgba(180, 83, 9, 0.12);
    background: linear-gradient(135deg, rgba(196, 107, 27, 0.88) 0%, rgba(217, 140, 63, 0.9) 100%);
    color: #fffaf4;
    box-shadow: 0 12px 24px rgba(180, 83, 9, 0.14);
}

.btn-nav {
    padding: 0.85rem 1.2rem;
}

.btn-primary,
.btn-secondary,
.btn-submit {
    padding: 1rem 1.5rem;
}

.btn-submit {
    border: 1px solid rgba(180, 83, 9, 0.12);
    background: linear-gradient(135deg, rgba(196, 107, 27, 0.88) 0%, rgba(217, 140, 63, 0.9) 100%);
    color: #fffaf4;
    box-shadow: 0 12px 24px rgba(180, 83, 9, 0.14);
}

.btn-secondary {
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.52);
}

.btn-nav:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-submit:hover {
    transform: translateY(-2px);
}

.btn-submit:hover {
    background: linear-gradient(135deg, rgba(184, 98, 23, 0.94) 0%, rgba(208, 129, 50, 0.96) 100%);
    border-color: rgba(180, 83, 9, 0.18);
    box-shadow: 0 14px 28px rgba(180, 83, 9, 0.18);
}

.btn-nav:hover {
    background: linear-gradient(135deg, rgba(184, 98, 23, 0.94) 0%, rgba(208, 129, 50, 0.96) 100%);
    border-color: rgba(180, 83, 9, 0.18);
    box-shadow: 0 14px 28px rgba(180, 83, 9, 0.18);
}

.hamburger {
    display: none;
    background: transparent;
    border: 0;
    padding: 0.25rem;
    flex-direction: column;
    gap: 0.28rem;
}

.hamburger span {
    display: block;
    width: 1.75rem;
    height: 2px;
    border-radius: 999px;
    background: var(--color-primary);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    inset: 80px 1rem auto 1rem;
    background: rgba(245, 241, 230, 0.97);
    border: 1px solid var(--color-border);
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
    padding: 1.5rem;
    display: none;
    flex-direction: column;
    gap: 1rem;
    z-index: 90;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
}

.hero {
    position: relative;
    min-height: calc(100vh - 80px);
    padding: 5rem 0 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 34%, rgba(180, 83, 9, 0.12), transparent 18%),
        radial-gradient(circle at 83% 16%, rgba(180, 83, 9, 0.08), transparent 10%),
        linear-gradient(180deg, rgba(243, 238, 229, 0.95), rgba(230, 226, 211, 0.78));
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 3rem;
    align-items: center;
}

.hero-copy h1 {
    font-size: clamp(3rem, 6vw, 5.4rem);
    line-height: 0.95;
    max-width: 10ch;
    margin-bottom: 1.7rem;
}

.hero-accent {
    position: relative;
    display: inline-block;
    color: var(--color-accent);
}

.hero-accent::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.16em;
    height: 0.16em;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(217, 119, 6, 0.18), rgba(180, 83, 9, 0.42));
}

.hero-copy p {
    font-size: 1.1rem;
    max-width: 58ch;
    color: var(--color-secondary);
}

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

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.stat-card,
.service-card,
.process-card,
.testimonial-card,
.faq-item,
.contact-form,
.about-media,
.point-card,
.hero-panel-card,
.case-card {
    backdrop-filter: blur(10px);
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: var(--shadow-card);
}

.stat-card {
    padding: 1.25rem;
    border-radius: var(--radius-md);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--color-secondary);
    font-size: 0.95rem;
}

.hero-visual {
    position: relative;
    min-height: 34rem;
    overflow: visible;
}

.hero-illustration-shell {
    position: absolute;
    top: 50%;
    right: -7.5rem;
    width: min(100vw, 50rem);
    transform: translateY(-52%);
    pointer-events: none;
}

.hero-lottie,
.hero-illustration {
    width: 100%;
    height: auto;
    display: block;
    max-width: none;
    filter: drop-shadow(0 30px 50px rgba(47, 34, 26, 0.12));
}

.hero-lottie {
    aspect-ratio: 9 / 7;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.hero-lottie.is-ready {
    opacity: 1;
}

.hero-lottie svg {
    width: 100% !important;
    height: 100% !important;
}

.hero-illustration-fallback {
    position: absolute;
    inset: 0;
}

.hero-illustration-fallback.is-hidden {
    opacity: 0;
}

.section-divider {
    position: relative;
    margin-top: -3rem;
    height: 150px;
    pointer-events: none;
}

.section-divider svg {
    width: 100%;
    height: 100%;
    display: block;
}

.section-divider path {
    fill: rgba(255, 255, 255, 0.38);
}

.section-divider-dark {
    margin-bottom: -2rem;
}

.section-divider-dark path {
    fill: rgba(36, 25, 18, 0.96);
}

.about-grid {
    display: grid;
    grid-template-columns: 0.96fr 1.04fr;
    gap: 3rem;
    align-items: center;
}

.about-media {
    position: relative;
    padding: 0.85rem;
    border-radius: 30px;
}

.about-images {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 520px;
    padding: 2rem;
}

.team-badge {
    position: absolute;
    left: 1.5rem;
    top: 1.5rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: var(--color-surface-strong);
    color: var(--color-accent);
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    box-shadow: var(--shadow-card);
    z-index: 5;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.team-member {
    position: relative;
    flex-shrink: 0;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.team-member img {
    width: 310px;
    height: 310px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 25%;
    border: 10px solid var(--color-surface-strong);
    box-shadow: var(--shadow-card);
    display: block;
}

.team-name {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-primary);
    box-shadow: 0 8px 24px rgba(47, 34, 26, 0.12);
    white-space: nowrap;
    transition: transform 0.3s ease, background 0.3s ease;
}

.about-images .team-member:first-child {
    margin-bottom: 80px;
}

.about-images .team-member:last-child {
    margin-left: -80px;
    margin-top: 80px;
}

.about-images .team-member:hover {
    z-index: 10;
    transform: scale(1.08);
}

.about-images .team-member:hover .team-name {
    background: #fff;
    transform: translateX(-50%) translateY(-2px) scale(1.03);
}

.about-badge {
    position: absolute;
    left: 1.5rem;
    bottom: 1.5rem;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: rgba(47, 34, 26, 0.84);
    color: #fff;
    font-weight: 700;
}

.about-radar {
    position: absolute;
    right: -2.2rem;
    top: -2.2rem;
    width: 11rem;
    height: 11rem;
    overflow: visible;
}

.about-radar circle,
.about-radar path {
    fill: none;
    stroke: rgba(180, 83, 9, 0.3);
    stroke-width: 1.4;
}

.about-radar .radar-sweep {
    fill: rgba(180, 83, 9, 0.85);
    stroke: rgba(255, 255, 255, 0.8);
    transform-origin: 160px 160px;
    animation: radar-spin 8s linear infinite;
}

.about-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.75rem;
}

.point-card,
.service-card,
.process-card,
.testimonial-card,
.faq-item {
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.point-card strong,
.service-card h3,
.process-card h3,
.case-body h3,
.contact-copy h2 {
    display: block;
    margin-bottom: 0.6rem;
}

.services-grid,
.process-grid,
.testimonials-grid,
.faq-grid {
    display: grid;
    gap: 1.25rem;
}

.section-illustration {
    max-width: 900px;
    margin: 0 auto 2rem;
}

.section-illustration svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.illustration-line {
    fill: none;
    stroke: rgba(47, 34, 26, 0.22);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 10 14;
    animation: dash-flow 11s linear infinite;
}

.illustration-node {
    fill: rgba(180, 83, 9, 0.92);
    animation: pulse-node 2.4s ease-in-out infinite;
    transform-origin: center;
}

.illustration-node-delay {
    animation-delay: 0.9s;
}

.services-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
}

.service-card-pair {
    grid-column: span 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.service-visual-card {
    grid-column: span 2;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    position: relative;
    min-height: 0;
    padding: 0 0 0 1rem;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-visual-card::before {
    content: "";
    position: absolute;
    inset: 2% 8% 8% 12%;
    z-index: 0;
    border-radius: 50%;
    background: rgba(244, 207, 170, 0.55);
    filter: none;
    pointer-events: none;
}

.service-lottie-crop {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 37rem;
    aspect-ratio: 470 / 270;
    overflow: hidden;
}

.service-lottie {
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.service-lottie.is-ready {
    opacity: 1;
}

.service-lottie svg {
    width: 100% !important;
    height: 100% !important;
    overflow: visible;
    filter: drop-shadow(0 24px 42px rgba(47, 34, 26, 0.08));
    transform: translateY(-4.5rem) scale(1.06);
    transform-origin: center;
}

.process-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    position: relative;
    align-items: start;
}

.process-route {
    position: relative;
    margin-top: 1.25rem;
}

.process-route-line {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    margin-bottom: 1.75rem;
}

.process-connector-return {
    position: absolute;
    top: 50%;
    left: 12.5%;
    right: 12.5%;
    height: 3px;
    transform: translateY(-50%);
    overflow: hidden;
    pointer-events: none;
}

.process-connector-return::after {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: 12%;
    background: linear-gradient(
        270deg,
        rgba(180, 83, 9, 0),
        rgba(180, 83, 9, 0.98) 40%,
        rgba(180, 83, 9, 0)
    );
    opacity: 0;
    transform: translateX(120%);
    animation: connector-flow-return 10s linear infinite;
}

.process-connector {
    position: relative;
    height: 3px;
    background-image: repeating-linear-gradient(
        90deg,
        rgba(180, 83, 9, 0.42) 0 14px,
        transparent 14px 26px
    );
    overflow: hidden;
}

.process-connector-1,
.process-connector-2,
.process-connector-3 {
    position: absolute;
    top: 50%;
    width: 25%;
    transform: translateY(-50%);
}

.process-connector-1 {
    left: 12.5%;
}

.process-connector-2 {
    left: 37.5%;
}

.process-connector-3 {
    left: 62.5%;
}

.process-connector::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 32%;
    background: linear-gradient(
        90deg,
        rgba(180, 83, 9, 0),
        rgba(180, 83, 9, 0.98) 40%,
        rgba(180, 83, 9, 0)
    );
    opacity: 0;
    transform: translateX(-120%);
}

.process-connector-1::after {
    animation: connector-flow-1 10s linear infinite;
}

.process-connector-2::after {
    animation: connector-flow-2 10s linear infinite;
}

.process-connector-3::after {
    animation: connector-flow-3 10s linear infinite;
}

.process-route-node:nth-child(2) {
    grid-column: 1;
}

.process-route-node:nth-child(4) {
    grid-column: 2;
}

.process-route-node:nth-child(6) {
    grid-column: 3;
}

.process-route-node:nth-child(8) {
    grid-column: 4;
}

.process-route-node {
    position: relative;
    z-index: 1;
    justify-self: center;
    width: 3.25rem;
    height: 3.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 248, 238, 0.96);
    border: 0;
    box-shadow: inset 0 0 0 4px rgba(111, 99, 89, 0.42), 0 14px 30px rgba(47, 34, 26, 0.08);
    color: rgba(111, 99, 89, 0.78);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
    transform: scale(1);
    animation: process-node-cycle 10s ease-in-out infinite;
    overflow: hidden;
}

.process-route-node span {
    position: relative;
    z-index: 2;
}

.process-route-node::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(180, 83, 9, 0.92);
    transform: scale3d(0, 0, 1);
    transform-origin: center;
    animation: process-node-fill 10s cubic-bezier(0.55, 0, 0.92, 0.45) infinite;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.process-route-node {
    isolation: isolate;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, color 0.35s ease;
    z-index: 1;
}

.process-route-node:nth-child(2) {
    animation-delay: 0s;
}

.process-route-node:nth-child(2)::before {
    animation-delay: 0s;
}

.process-route-node:nth-child(4) {
    animation-delay: 2.5s;
}

.process-route-node:nth-child(4)::before {
    animation-delay: 2.5s;
}

.process-route-node:nth-child(6) {
    animation-delay: 5s;
}

.process-route-node:nth-child(6)::before {
    animation-delay: 5s;
}

.process-route-node:nth-child(8) {
    animation-delay: 7.5s;
}

.process-route-node:nth-child(8)::before {
    animation-delay: 7.5s;
}

@keyframes process-node-cycle {
    0%,
    18% {
        color: #fff8ee;
        transform: scale(1.16);
        box-shadow: inset 0 0 0 0 rgba(180, 83, 9, 0), 0 18px 34px rgba(180, 83, 9, 0.18);
    }

    19%,
    21%,
    100% {
        color: rgba(111, 99, 89, 0.78);
        transform: scale(1);
        box-shadow: inset 0 0 0 4px rgba(111, 99, 89, 0.42), 0 14px 30px rgba(47, 34, 26, 0.08);
    }
}

@keyframes process-node-fill {
    0% {
        transform: scale3d(0, 0, 1);
        opacity: 0;
    }

    0.4% {
        transform: scale3d(0.04, 0.04, 1);
        opacity: 1;
    }

    1.6% {
        transform: scale3d(0.16, 0.16, 1);
        opacity: 1;
    }

    3% {
        transform: scale3d(0.4, 0.4, 1);
        opacity: 1;
    }

    4.2% {
        transform: scale3d(0.68, 0.68, 1);
        opacity: 1;
    }

    5.3% {
        transform: scale3d(1, 1, 1);
        opacity: 1;
    }

    18% {
        transform: scale3d(1, 1, 1);
        opacity: 1;
    }

    20% {
        transform: scale3d(0.72, 0.72, 1);
        opacity: 0.72;
    }

    21%,
    100% {
        transform: scale3d(0, 0, 1);
        opacity: 0;
    }
}

@keyframes connector-flow-1 {
    0%,
    19% {
        transform: translateX(-120%);
        opacity: 0;
    }

    20% {
        transform: translateX(-5%);
        opacity: 1;
    }

    22.4% {
        transform: translateX(225%);
        opacity: 1;
    }

    22.8%,
    100% {
        transform: translateX(225%);
        opacity: 0;
    }
}

@keyframes connector-flow-2 {
    0%,
    44% {
        transform: translateX(-120%);
        opacity: 0;
    }

    45% {
        transform: translateX(-5%);
        opacity: 1;
    }

    47.4% {
        transform: translateX(225%);
        opacity: 1;
    }

    47.8%,
    100% {
        transform: translateX(225%);
        opacity: 0;
    }
}

@keyframes connector-flow-3 {
    0%,
    69% {
        transform: translateX(-120%);
        opacity: 0;
    }

    70% {
        transform: translateX(-5%);
        opacity: 1;
    }

    72.4% {
        transform: translateX(225%);
        opacity: 1;
    }

    72.8%,
    100% {
        transform: translateX(225%);
        opacity: 0;
    }
}

@keyframes connector-flow-return {
    0%,
    94% {
        transform: translateX(120%);
        opacity: 0;
    }

    95% {
        transform: translateX(5%);
        opacity: 1;
    }

    98.8% {
        transform: translateX(-645%);
        opacity: 1;
    }

    99.6%,
    100% {
        transform: translateX(-645%);
        opacity: 0;
    }
}

.process-card-route {
    min-height: 100%;
    padding: 1.25rem;
}

.testimonials-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-icon {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 16px;
    background: rgba(180, 83, 9, 0.12);
    color: var(--color-accent);
}

.service-icon svg {
    width: 1.4rem;
    height: 1.4rem;
}

.process-number {
    width: fit-content;
    margin-bottom: 1rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(180, 83, 9, 0.1);
    color: var(--color-accent);
    font-weight: 800;
}

.process-card ul {
    list-style: none;
    margin-top: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    color: var(--color-secondary);
}

.process-card li {
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    background: rgba(180, 83, 9, 0.1);
    color: var(--color-primary);
    font-size: 0.88rem;
    font-weight: 600;
}

.cases-carousel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
}

.cases-grid {
    display: flex;
    align-items: flex-start;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    padding: 0.25rem 7% 0.5rem;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 7%;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.cases-grid::-webkit-scrollbar {
    display: none;
}

.cases-grid > * {
    scroll-snap-align: center;
}

.cases-nav {
    width: 3.4rem;
    height: 3.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #f7e6d6;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease, opacity 0.25s ease;
}

.cases-nav:hover {
    background: rgba(180, 83, 9, 0.22);
    transform: translateY(-1px);
}

.cases-nav:disabled {
    opacity: 0.42;
    cursor: default;
    transform: none;
}

.cases-nav span {
    font-size: 1.25rem;
    line-height: 1;
}

.cases-grid-lines {
    width: 100%;
    height: auto;
    margin: -0.5rem 0 1.5rem;
    opacity: 0.9;
}

.cases-grid-lines path {
    fill: none;
    stroke: rgba(247, 230, 214, 0.3);
    stroke-width: 2;
    stroke-dasharray: 10 14;
    animation: dash-flow 12s linear infinite;
}

.cases-pulse {
    fill: rgba(217, 119, 6, 0.9);
    transform-origin: center;
    animation: pulse-node 2s ease-in-out infinite;
}

.cases-pulse-delay {
    animation-delay: 0.8s;
}

.case-card {
    overflow: hidden;
    border-radius: 28px;
    background: var(--color-dark-surface);
    border-color: rgba(255, 255, 255, 0.08);
    height: 34rem;
    flex: 0 0 84%;
    width: 84%;
    margin-right: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.45s ease;
}

.case-card.case-active {
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.22);
}

.case-card:last-child {
    margin-right: 0;
}

.case-body {
    padding: 2.15rem 1.6rem 2.2rem;
    flex: 1;
    min-height: 0;
    overflow-y: hidden; /* Changed from auto for the expand effect */
    position: relative;
    max-height: 480px; /* Peek height */
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-card.is-expanded .case-body {
    max-height: 2500px;
    -webkit-mask-image: none;
    mask-image: none;
}

.case-copy-block + .case-copy-block {
    margin-top: 1.35rem;
}

.case-copy-block h4 {
    margin-bottom: 0.55rem;
    color: #f7e6d6;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.case-copy-block p + p {
    margin-top: 0.7rem;
}

.case-body::-webkit-scrollbar {
    width: 0.55rem;
}

.case-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
}

.case-body::-webkit-scrollbar-thumb {
    background: rgba(180, 83, 9, 0.55);
    border-radius: 999px;
}

.case-body::-webkit-scrollbar-thumb:hover {
    background: rgba(180, 83, 9, 0.72);
}

.case-tag {
    display: inline-flex;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #f7e6d6;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.case-metrics {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.4rem;
}

.case-metrics strong {
    display: block;
    font-size: 1.35rem;
    color: #fff;
}

.case-metrics span {
    font-size: 0.92rem;
    color: rgba(248, 241, 231, 0.72);
}

/* Desk Guru Grouping */
.company-case-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1 1 auto;
    width: 100%;
    max-width: 1140px;
    background: rgba(47, 34, 26, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 36px;
    padding: 2.5rem;
    margin: 0 auto; /* Center it */
}

/* Remove carousel padding if it's just the group */
.cases-grid:has(.company-case-group) {
    padding-inline: 0;
    justify-content: center;
}

.company-profile {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.company-profile img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-accent);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.company-profile-info {
    display: flex;
    flex-direction: column;
}

.company-profile-info h4 {
    font-size: 1.15rem;
    color: #fff;
    margin: 0;
}

.company-website-link {
    font-size: 0.88rem;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.company-website-link:hover {
    opacity: 0.8;
}

.company-cases-row {
    display: flex;
    gap: 1.5rem;
}

.company-case-group .case-card {
    flex: 1 1 480px;
    max-width: 100%;
    margin-right: 0;
    height: auto;
    min-height: 34rem;
    background: var(--color-dark-surface);
}

@media (max-width: 1000px) {
    .company-case-group {
        padding: 1.5rem 1rem;
    }
    
    .company-cases-row {
        flex-direction: column;
    }
    
    .company-case-group .case-card {
        flex: 1 1 auto;
        width: 100%;
        min-height: 0; /* Allow it to be shorter if content is small */
    }
}

.testimonial-card p {
    margin-bottom: 1.4rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.testimonial-avatar {
    width: 2.8rem;
    height: 2.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(180, 83, 9, 0.12);
    color: var(--color-accent);
    font-weight: 800;
}

.testimonial-author span {
    display: block;
    color: var(--color-secondary);
    font-size: 0.92rem;
}

.faq-item {
    background: var(--color-surface-strong);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    font-weight: 700;
    padding-right: 2rem;
    position: relative;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    color: var(--color-accent);
    font-size: 1.4rem;
    line-height: 1;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item p {
    margin-top: 1rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2rem;
    align-items: start;
}

.contact-copy {
    padding-top: 1rem;
}

.contact-actions {
    display: grid;
    grid-template-columns: minmax(0, 0.68fr) minmax(0, 1.32fr);
    gap: 1rem;
    align-items: start;
}

.contact-booking-card,
.contact-form {
    padding: 1.45rem;
    border-radius: 28px;
}

.contact-booking-card {
    display: grid;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--color-primary);
    background: rgba(255, 255, 255, 0.52);
    border: 1px solid rgba(180, 83, 9, 0.12);
    box-shadow: 0 20px 40px rgba(92, 57, 33, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.contact-booking-card {
    padding-block: 1.3rem;
}

.contact-booking-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 26px 46px rgba(92, 57, 33, 0.13);
    border-color: rgba(180, 83, 9, 0.28);
}

.contact-booking-card h3,
.contact-form-header h3 {
    font-size: 1.28rem;
    line-height: 1.15;
}

.contact-booking-card p {
    color: var(--color-secondary);
}

.contact-booking-visual {
    width: min(100%, 17rem);
    height: 10.75rem;
    margin: 0.15rem auto 0.1rem;
    pointer-events: none;
    filter: drop-shadow(0 18px 24px rgba(92, 57, 33, 0.12));
}

.contact-booking-visual-copy {
    width: min(100%, 52rem);
    height: 34rem;
    margin: 0.35rem 0 -1.2rem;
}

.contact-booking-visual svg {
    width: 100%;
    height: 100%;
}

.contact-booking-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 700;
    color: var(--color-accent);
}

.contact-booking-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.45rem 0.72rem;
    border-radius: 999px;
    background: rgba(180, 83, 9, 0.1);
    color: var(--color-accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-form {
    background: rgba(255, 255, 255, 0.52);
    border: 1px solid rgba(180, 83, 9, 0.12);
    padding: 1.65rem;
}

.contact-form-header {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.form-group {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.form-group label {
    font-weight: 700;
}

.form-input {
    width: 100%;
    border: 1px solid rgba(47, 34, 26, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    padding: 1rem 1.1rem;
    color: var(--color-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea.form-input {
    min-height: 165px;
    resize: vertical;
}

.form-input:focus,
.nav-links a:focus-visible,
.btn-nav:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-submit:focus-visible,
.mobile-menu a:focus-visible,
.logo:focus-visible,
.faq-item summary:focus-visible {
    outline: none;
    border-color: rgba(180, 83, 9, 0.55);
    box-shadow: 0 0 0 4px rgba(180, 83, 9, 0.12);
}

.input-error {
    border-color: rgba(185, 28, 28, 0.7);
    box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.12);
}

.form-status {
    margin-top: 0.75rem;
    min-height: 1.5rem;
    color: var(--color-secondary);
    font-size: 0.95rem;
}

.footer {
    padding: 2.5rem 0 3rem;
    border-top: 1px solid var(--color-border);
}

.footer-inner {
    width: min(100% - 2.5rem, var(--container));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    align-items: end;
}

.footer-brand p,
.footer-copy {
    color: var(--color-secondary);
}

.footer-links {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-links a {
    text-decoration: none;
    font-weight: 600;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.08s;
}

.reveal-delay-2 {
    transition-delay: 0.16s;
}

.reveal-delay-3 {
    transition-delay: 0.24s;
}

.reveal-delay-4 {
    transition-delay: 0.32s;
}

@media (max-width: 1100px) {
    .hero-grid,
    .about-grid,
    .contact-layout,
    .process-grid,
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-grid,
    .about-grid,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding-top: 3rem;
    }

    .cases-grid-lines,
    .section-divider {
        opacity: 0.55;
    }

    .hero-copy h1,
    .section-header h2,
    .about-copy h2,
    .contact-copy h2 {
        max-width: none;
    }

    .service-card-pair {
        grid-template-columns: 1fr;
    }

    .process-route-line {
        display: none;
    }

    .process-card-route {
        max-width: none;
    }

    .hero-stats,
    .services-grid,
    .process-grid,
    .cases-grid,
    .testimonials-grid,
    .faq-grid,
    .about-points,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .contact-actions {
        grid-template-columns: 1fr;
    }

    .cases-carousel {
        grid-template-columns: 1fr;
    }

    .cases-nav {
        display: none;
    }

    .case-metrics {
        flex-direction: column;
        gap: 0.8rem;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .about-radar {
        right: 0.5rem;
        top: 0.5rem;
        width: 8rem;
        height: 8rem;
    }
}

@media (max-width: 560px) {
    .container,
    .navbar-inner,
    .footer-inner {
        width: min(100% - 1.5rem, var(--container));
    }

    .section {
        padding: 4.5rem 0;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary,
    .btn-submit {
        width: 100%;
    }

    .about-radar {
        display: none;
    }

    .stat-card,
    .hero-panel-card,
    .service-card,
    .process-card,
    .testimonial-card,
    .faq-item,
    .contact-form {
        padding: 1.25rem;
    }
}

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

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Extra Mobile Consistency Adjustments */
@media (max-width: 560px) {
    .hero-copy h1, h1 {
        font-size: 2.25rem !important;
        line-height: 1.1 !important;
    }
    h2, .section-header h2 {
        font-size: 1.85rem !important;
        line-height: 1.2 !important;
    }
    .hero-illustration-shell {
        position: relative !important;
        right: auto !important;
        transform: none !important;
        top: auto !important;
        width: 100% !important;
        display: flex;
        justify-content: center;
        margin-top: 1.5rem;
    }
    .hero-visual {
        min-height: auto !important;
    }
    .about-media {
        min-height: auto !important;
        padding: 4rem 1rem 1.5rem !important;
    }
    .case-card {
        width: 100% !important;
        flex: 1 1 auto !important;
        margin-right: 0 !important;
        height: auto !important;
    }
    .case-body {
        padding: 1.5rem 1.25rem !important;
        overflow: hidden !important;
    }
    .cases-carousel {
        padding-bottom: 0.25rem;
    }
    .cases-grid:has(.company-case-group) + .cases-carousel::after,
    .cases-carousel:has(.company-case-group)::after {
        display: none !important;
    }
    .contact-booking-visual-copy {
        width: 100%;
        height: auto;
    }
    .case-body {
        padding: 1.5rem 1.25rem !important;
        max-height: 280px; /* Shorter peek on mobile */
    }
    .case-expand-btn {
        margin: 1.5rem auto 0.5rem;
    }
    .team-member img {
        width: 50vw !important;
        height: 50vw !important;
        border-width: 5px !important;
    }
    .team-name {
        font-size: 0.85rem !important;
        padding: 0.4rem 0.8rem !important;
    }
    .about-images {
        min-height: auto !important;
        padding: 1.5rem 0 0 !important;
    }
    .about-images .team-member:first-child {
        margin-bottom: 12vw !important;
        margin-right: 0 !important;
        z-index: 1 !important;
    }
    .about-images .team-member:last-child {
        margin-left: -12vw !important;
        margin-top: 12vw !important;
        z-index: 2 !important;
    }
    .about-images .team-member:active,
    .about-images .team-member:hover {
        z-index: 10 !important;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
    .service-card-pair {
        display: contents !important;
    }
    .service-card {
        padding: 1.15rem 0.85rem !important;
    }
    .service-card h3 {
        font-size: 1rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.4rem !important;
        word-wrap: break-word;
    }
    .service-card p {
        font-size: 0.82rem !important;
    }
    .service-icon {
        width: 2.25rem !important;
        height: 2.25rem !important;
        margin-bottom: 0.75rem !important;
    }
    .service-visual-card {
        margin-top: 3.5rem !important;
        margin-bottom: -2rem !important;
    }
    .service-lottie svg,
    .service-monitor {
        transform: scale(1.06) !important;
        filter: none !important;
    }
}
.case-expand-btn {
    display: block;
    width: fit-content;
    margin: 1.5rem auto 0;
    background: rgba(180, 83, 9, 0.1);
    color: var(--color-accent);
    padding: 0.75rem 2rem;
    font-weight: 700;
    text-align: center;
    border: 1px solid rgba(180, 83, 9, 0.2);
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.case-expand-btn:hover {
    background: rgba(180, 83, 9, 0.2);
    transform: translateY(-2px);
}

/* Ensure standalone cards still look good if they have a button */
.case-card .case-expand-btn {
    margin: 1rem auto 1.5rem;
}

/* ── Het team dividers ────────────────────────────────────────── */
.section-divider-team-in {
    margin-top: -3rem;
    margin-bottom: -1px;
    z-index: 1;
    position: relative;
}

.section-divider-team-in path {
    fill: rgba(36, 25, 18, 0.96);
}

.section-divider-team-out {
    margin-top: -1px;
    margin-bottom: -3rem;
    z-index: 1;
    position: relative;
}

.section-divider-team-out path {
    fill: rgba(36, 25, 18, 0.96);
}

/* ── Het team ─────────────────────────────────────────────────── */
#het-team {
    position: relative;
    overflow: hidden;
    padding: 8rem 0;
}

#het-team::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(180, 83, 9, 0.10) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
    z-index: 0;
}

#het-team::after {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(180, 83, 9, 0.18) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.team-deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.team-deco svg {
    width: 100%;
    height: 100%;
}

#het-team .container {
    position: relative;
    z-index: 1;
}

.team-profiles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem 2rem;
    margin-top: 3.5rem;
}

.team-profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.team-profile-img-wrap {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid rgba(47, 34, 26, 0.12);
    box-shadow: 0 16px 48px rgba(47, 34, 26, 0.14);
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.team-profile-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.team-profile-img-wrap img.img-zoom {
    transform: scale(1.15) translateY(-7%);
    transform-origin: center top;
}

.team-profile-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: #f8f1e7;
}

.team-profile-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: #b45309;
    margin: 0.3rem 0 0;
    letter-spacing: 0.03em;
}

@media (max-width: 1100px) {
    .team-profiles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .team-profiles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1rem;
    }
}

