:root {
    --page-bg: #fcfbf7;
    --surface: #ffffff;
    --surface-strong: #eef5ee;
    --heading-text: #1e361a;
    --body-text: #334537;
    --muted-text: #5a6e5d;
    --accent-deep: #1e361a;
    --accent-warm: #00a35b;
    --accent-soft: #dff2e6;
    --line: rgba(30, 54, 26, 0.12);
    --shadow: 0 24px 60px rgba(30, 54, 26, 0.1);
    --radius-lg: 28px;
    --radius-md: 20px;
}

html, body {
    margin: 0;
    min-height: 100%;
    background:
        radial-gradient(circle at top left, rgba(0, 163, 91, 0.14), transparent 32%),
        radial-gradient(circle at 85% 20%, rgba(30, 54, 26, 0.11), transparent 28%),
        linear-gradient(180deg, #fefefe 0%, #fbfdf9 55%, #f1f7f0 100%);
    color: var(--body-text);
    font-family: "Aptos", "Segoe UI Variable Text", "Trebuchet MS", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

a {
    color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    color: var(--heading-text);
    font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
    line-height: 1.05;
}

h1:focus {
    outline: none;
}

p {
    line-height: 1.7;
}

.hero,
.page-hero,
.content-section {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.hero {
    position: relative;
    overflow: visible;
    padding: 4.5rem 0 3rem;
    display: grid;
    grid-template-columns: 1.35fr 0.9fr;
    gap: 2rem;
    align-items: center;
}

.hero-watermark {
    position: absolute;
    right: -2rem;
    top: 0.4rem;
    width: clamp(14rem, 28vw, 23rem);
    opacity: 0.08;
    pointer-events: none;
    transform: rotate(-8deg);
}

.hero-watermark img {
    display: block;
    width: 100%;
    height: auto;
    filter: saturate(0.95);
}

.hero-copy {
    position: relative;
    z-index: 1;
}

.hero-copy::before {
    content: "";
    position: absolute;
    inset: -1rem auto auto -0.35rem;
    width: 7rem;
    height: 7rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(0, 163, 91, 0.18), rgba(0, 163, 91, 0));
    filter: blur(4px);
    pointer-events: none;
}

.page-hero {
    padding: 4rem 0 1rem;
    margin-top: 1rem;
}

.compact-hero {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

.services-hero,
.about-hero,
.contact-hero {
    position: relative;
    padding: 2.35rem 2rem 1.65rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(30, 54, 26, 0.08);
    box-shadow: var(--shadow);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.services-hero {
    background: linear-gradient(135deg, rgba(223, 242, 230, 0.86), rgba(255, 255, 255, 0.84));
}

.about-hero {
    background: linear-gradient(135deg, rgba(240, 247, 242, 0.92), rgba(223, 242, 230, 0.72));
}

.contact-hero {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(223, 242, 230, 0.76));
}

.services-hero::after,
.about-hero::after,
.contact-hero::after {
    content: "";
    position: absolute;
    right: -2rem;
    top: -2rem;
    width: 9rem;
    height: 9rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(0, 163, 91, 0.16), rgba(0, 163, 91, 0));
}

.hero h1,
.page-hero h1 {
    font-size: clamp(2.8rem, 5vw, 5.4rem);
    letter-spacing: -0.04em;
}

.hero h1 {
    font-size: clamp(2.2rem, 4vw, 4rem);
}

.services-hero h1,
.about-hero h1,
.contact-hero h1 {
    font-size: clamp(2.15rem, 3.8vw, 3.5rem);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    margin: 0 0 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(30, 54, 26, 0.08);
    color: var(--accent-deep);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-kicker {
    margin: 0 0 0.9rem;
    color: var(--accent-deep);
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 700;
}

.hero-lead {
    margin: 1.25rem 0 0;
    max-width: 42rem;
    font-size: 1.1rem;
    color: var(--muted-text);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.media-split {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1.75rem;
}

.media-split-reverse {
    grid-template-columns: 0.9fr 1fr;
}

.media-copy {
    max-width: 34rem;
}

.media-copy h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    letter-spacing: -0.03em;
}

.media-copy p {
    margin: 0.9rem 0 0;
    color: var(--muted-text);
}

.image-card {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(30, 54, 26, 0.08);
    box-shadow: var(--shadow);
    min-height: 16rem;
}

.image-card img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 16rem;
    object-fit: cover;
    filter: saturate(0.9) contrast(1.03);
}

.illustration-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 240, 0.96));
}

.illustration-card img {
    object-fit: contain;
    padding: 1.25rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 240, 0.96));
}

.pill-row,
.topic-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.35rem;
}

.pill-chip {
    display: inline-flex;
    align-items: center;
    min-height: 2.1rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(30, 54, 26, 0.08);
    color: var(--heading-text);
    font-size: 0.92rem;
    font-weight: 600;
}

.button-primary,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    padding: 0.9rem 1.35rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
}

.button-primary {
    color: white;
    background: linear-gradient(135deg, var(--accent-deep), var(--accent-warm));
    box-shadow: 0 18px 40px rgba(22, 75, 50, 0.18);
}

.button-secondary {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.88);
}

.hero-panel,
.feature-card,
.service-card,
.mini-card,
.quote-card,
.contact-card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(30, 54, 26, 0.08);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.hero-panel {
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
}

.hero-panel::after {
    content: "";
    position: absolute;
    inset: auto -3rem -3rem auto;
    width: 10rem;
    height: 10rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(0, 163, 91, 0.18), rgba(0, 163, 91, 0));
}

.panel-label {
    margin: 0 0 1rem;
    font-weight: 700;
    color: var(--heading-text);
}

.hero-signal {
    position: relative;
    margin-top: 1.5rem;
    height: 4.75rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(223, 242, 230, 0.8), rgba(255, 255, 255, 0.3));
    border: 1px solid rgba(30, 54, 26, 0.08);
    overflow: hidden;
}

.signal-line {
    position: absolute;
    display: block;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(0, 163, 91, 0.15), rgba(0, 163, 91, 0.8), rgba(30, 54, 26, 0.15));
    animation: pulseFlow 6s ease-in-out infinite;
}

.signal-line-a {
    left: 1rem;
    right: 1.8rem;
    top: 1.6rem;
}

.signal-line-b {
    left: 2.2rem;
    right: 0.8rem;
    bottom: 1.35rem;
    animation-delay: 1.4s;
}

.signal-node {
    position: absolute;
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent-warm), var(--accent-deep));
    box-shadow: 0 0 0 8px rgba(0, 163, 91, 0.08);
    animation: driftNode 5s ease-in-out infinite;
}

.signal-node-a {
    left: 1.2rem;
    top: 1.16rem;
}

.signal-node-b {
    left: 50%;
    top: 1.16rem;
    animation-delay: 0.9s;
}

.signal-node-c {
    right: 1.2rem;
    bottom: 0.92rem;
    animation-delay: 1.8s;
}

.hero-list,
.check-list {
    margin: 0;
    padding-left: 1.2rem;
    display: grid;
    gap: 0.8rem;
}

.content-section {
    padding: 2rem 0 3rem;
}

.section-heading {
    max-width: 46rem;
    margin-bottom: 1.6rem;
}

.section-heading h2,
.split-section h2,
.callout-section h2 {
    font-size: clamp(2rem, 3.2vw, 3.25rem);
    letter-spacing: -0.03em;
}

.feature-grid,
.service-grid,
.contact-layout {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card,
.service-card,
.contact-card {
    padding: 1.5rem;
    border-radius: var(--radius-md);
}

.interactive-card,
.button-primary,
.button-secondary,
.nav-cta {
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease;
}

.interactive-card:hover,
.interactive-card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 26px 54px rgba(30, 54, 26, 0.14);
}

.button-primary:hover,
.button-secondary:hover,
.nav-cta:hover {
    transform: translateY(-2px);
}

.button-secondary:hover {
    border-color: rgba(0, 163, 91, 0.35);
    background: rgba(255, 255, 255, 0.96);
}

.feature-card h3,
.service-card h2,
.mini-card h3,
.contact-card h2 {
    margin-bottom: 0.75rem;
}

.contact-email-action {
    margin-top: 1rem;
}

.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.stacked-cards {
    display: grid;
    gap: 1rem;
}

.signal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.mini-card {
    padding: 1.2rem 1.3rem;
    border-radius: var(--radius-md);
}

.mini-stat {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(30, 54, 26, 0.08);
    box-shadow: var(--shadow);
}

.mini-stat-value {
    color: var(--accent-deep);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.mini-stat-label {
    color: var(--muted-text);
    line-height: 1.55;
}

.mini-card span {
    display: inline-block;
    margin-bottom: 0.65rem;
    color: #14834f;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.callout-section {
    padding-bottom: 4.25rem;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    align-items: center;
}

.callout-section .button-primary {
    flex-shrink: 0;
    min-width: 20rem;
    text-align: center;
    white-space: nowrap;
}

.quote-card {
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    font-size: 1.1rem;
}

.detail-text,
.contact-card p,
.feature-card p,
.service-card p,
.mini-card p {
    margin: 0;
    color: var(--muted-text);
}

.compact-list {
    gap: 0.55rem;
}

.reveal {
    opacity: 0;
    animation: revealUp 720ms cubic-bezier(.2, .8, .2, 1) forwards;
}

.reveal-slide {
    opacity: 0;
    animation: revealSide 820ms cubic-bezier(.2, .8, .2, 1) forwards;
}

.reveal-delay-1 {
    animation-delay: 100ms;
}

.reveal-delay-2 {
    animation-delay: 180ms;
}

.reveal-delay-3 {
    animation-delay: 260ms;
}

#blazor-error-ui {
    color-scheme: light only;
    background: #fff4d3;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: var(--accent-warm);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes revealSide {
    from {
        opacity: 0;
        transform: translateX(18px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulseFlow {
    0%,
    100% {
        opacity: 0.45;
        transform: scaleX(0.98);
    }

    50% {
        opacity: 1;
        transform: scaleX(1);
    }
}

@keyframes driftNode {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

@media (max-width: 960px) {
    .hero,
    .split-section,
    .callout-section,
    .feature-grid,
    .service-grid,
    .contact-layout,
    .signal-grid,
    .media-split,
    .media-split-reverse {
        grid-template-columns: 1fr;
    }

    .callout-section {
        align-items: flex-start;
        flex-direction: column;
    }

    .callout-section .button-primary {
        min-width: 0;
    }

    .hero-watermark {
        right: -1.5rem;
        top: 1.5rem;
        width: 13rem;
        opacity: 0.06;
    }

    .industry-split {
        margin-top: 1.5rem;
    }
}

@media (max-width: 640px) {
    .hero {
        padding-top: 3rem;
    }

    .hero h1,
    .page-hero h1 {
        font-size: clamp(2.3rem, 12vw, 3.4rem);
    }

    .hero h1 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .services-hero,
    .about-hero,
    .contact-hero {
        padding: 2rem 1.2rem 1.35rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .button-primary,
    .button-secondary {
        width: 100%;
    }

    .hero-watermark {
        width: 9rem;
        right: -1rem;
        top: 3.25rem;
        opacity: 0.05;
    }

    .hero-signal {
        height: 4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
