body { font-family: 'Poppins', sans-serif; font-style: normal !important; }
        * { font-style: normal !important; }
        .material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24; }
        .reveal { opacity: 0; transform: translateY(20px); transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); }
        .reveal.active { opacity: 1; transform: translateY(0); }
        .glass-panel { background: rgba(17, 20, 21, 0.6); backdrop-filter: blur(24px); border: 1px solid rgba(177, 200, 233, 0.1); }
        .hero-video-background {
            position: absolute;
            inset: 0;
            z-index: 0;
            overflow: hidden;
            background: #111415;
            pointer-events: none;
        }
        .hero-video-frame {
            position: absolute;
            top: 50%;
            left: 50%;
            display: block;
            max-width: none;
            border: 0;
            transform: translate(-50%, -50%) scale(1.015);
            transform-origin: center;
            pointer-events: none;
        }
        .hero-overlay {
            background:
                linear-gradient(rgba(0, 26, 51, 0.54), rgba(0, 26, 51, 0.54)),
                radial-gradient(circle at center, rgba(0, 26, 51, 0.12) 0%, rgba(17, 20, 21, 0.88) 100%);
        }
        .carousel-track { transition: transform 0.8s cubic-bezier(0.85, 0, 0.15, 1); }
        #lightbox.active { display: flex; opacity: 1; pointer-events: auto; }
        .letter-spacing-tight { letter-spacing: -0.04em; }
        .nav-link { position: relative; }
        .nav-link::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px; background: currentColor; transition: width 0.3s ease; }
        .nav-link:hover::after { width: 100%; }
        
        .code-window { background: #0c0f10; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); }
        .code-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
        
        input[type="checkbox"]:checked + label { color: #b1c8e9; }

/* Mobile drawer */
#mobile-menu.is-open {
    transform: translateX(0);
}

#mobile-menu-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

body.menu-open {
    overflow: hidden;
}

#mobile-menu {
    padding-right: env(safe-area-inset-right);
}

#mobile-menu > div:first-child {
    padding-top: max(1rem, env(safe-area-inset-top));
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* Hero scroll link */
.hero-scroll-link:focus-visible {
    outline: 2px solid #b1c8e9;
    outline-offset: 8px;
}

/* Mobile fixed action bar */
.mobile-action-bar {
    position: fixed;
    left: 50%;
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    z-index: 75;
    display: none;
    width: min(20rem, calc(100vw - 2rem));
    transform: translateX(-50%);
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 9999px;
    background: rgba(17, 20, 21, 0.9);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.mobile-action-bar a {
    display: flex;
    min-height: 3.5rem;
    align-items: center;
    justify-content: center;
    color: #b1c8e9;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.mobile-action-bar a + a {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-action-bar a:hover,
.mobile-action-bar a:focus-visible {
    background: #b1c8e9;
    color: #1a324c;
}

.mobile-action-bar a:active {
    transform: scale(0.96);
}

.mobile-action-bar .material-symbols-outlined {
    font-size: 1.55rem;
}

/* Back to top */
.back-to-top {
    position: fixed;
    right: clamp(0.75rem, 2.5vw, 2rem);
    bottom: clamp(5.25rem, 10vw, 7rem);
    z-index: 72;
    display: flex;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 9999px;
    background: rgba(17, 20, 21, 0.48);
    color: rgba(225, 227, 228, 0.78);
    opacity: 0;
    pointer-events: none;
    transform: translateY(0.75rem);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: opacity 220ms ease, transform 220ms ease, background-color 180ms ease, color 180ms ease;
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
    background: rgba(177, 200, 233, 0.95);
    color: #1a324c;
}

/* Cookie and privacy panel */
.cookie-panel {
    position: fixed;
    left: clamp(0.75rem, 2.5vw, 2rem);
    bottom: clamp(0.75rem, 2.5vw, 2rem);
    z-index: 90;
    width: min(25rem, calc(100vw - 1.5rem));
    max-height: calc(100dvh - 1.5rem);
    overflow: hidden;
    border: 1px solid rgba(17, 20, 21, 0.14);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.92);
    color: #1d2021;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: width 260ms ease, max-height 260ms ease, opacity 220ms ease, transform 220ms ease;
}

.cookie-panel.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(1rem);
}

.cookie-panel.is-policy-open {
    width: min(46rem, calc(100vw - 2rem));
    max-height: min(80dvh, 48rem);
}

.cookie-consent-view {
    padding: 1.15rem;
}

.cookie-heading-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}

.cookie-heading-row .material-symbols-outlined {
    color: #324863;
}

.cookie-heading-row h2,
.privacy-policy-view h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.cookie-consent-view p {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.65;
    color: #43474d;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1rem;
}

.cookie-btn,
.cookie-policy-btn {
    min-height: 2.55rem;
    border-radius: 0.25rem;
    font-family: inherit;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.cookie-btn {
    border: 1px solid rgba(29, 32, 33, 0.2);
    padding: 0.7rem 0.95rem;
    background: transparent;
    color: #1d2021;
}

.cookie-btn:hover,
.cookie-btn:focus-visible {
    border-color: #324863;
    background: rgba(50, 72, 99, 0.08);
}

.cookie-btn-primary {
    border-color: #1a324c;
    background: #1a324c;
    color: #fff;
}

.cookie-btn-primary:hover,
.cookie-btn-primary:focus-visible {
    background: #324863;
    color: #fff;
}

.cookie-policy-btn {
    border: 0;
    padding: 0.7rem 0.3rem;
    background: transparent;
    color: #324863;
    text-decoration: underline;
    text-underline-offset: 0.25rem;
}

.privacy-policy-view {
    position: relative;
    height: 100%;
}

.privacy-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    display: flex;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: rgba(29, 32, 33, 0.07);
    color: #1d2021;
}

.privacy-close:hover,
.privacy-close:focus-visible {
    background: #1a324c;
    color: #fff;
}

.privacy-policy-scroll {
    max-height: min(80dvh, 48rem);
    overflow-y: auto;
    padding: 1.5rem 3.75rem 1.5rem 1.5rem;
    scrollbar-width: thin;
}

.privacy-policy-view h2 {
    margin-bottom: 0.25rem;
    font-size: clamp(1.35rem, 3vw, 2rem);
}

.privacy-policy-view h3 {
    margin: 1.35rem 0 0.35rem;
    font-size: 0.9rem;
    font-weight: 700;
}

.privacy-policy-view p {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.7;
    color: #43474d;
}

.privacy-updated {
    opacity: 0.7;
}

@media (max-width: 767px) {
    body {
        padding-bottom: calc(5rem + env(safe-area-inset-bottom));
    }

    .mobile-action-bar {
        display: grid;
    }

    .cookie-panel {
        bottom: calc(5.2rem + env(safe-area-inset-bottom));
    }

    .cookie-panel.is-policy-open {
        left: 0.75rem;
        width: calc(100vw - 1.5rem);
        max-height: calc(100dvh - 6.25rem - env(safe-area-inset-bottom));
    }

    .privacy-policy-scroll {
        max-height: calc(100dvh - 6.25rem - env(safe-area-inset-bottom));
        padding: 1.25rem 3.5rem 1.25rem 1.25rem;
    }

    .back-to-top {
        bottom: calc(5.25rem + env(safe-area-inset-bottom));
    }
}

@media (min-width: 768px) {
    .back-to-top {
        bottom: 2rem;
    }
}

/* Contact form feedback and anti-spam fields */
.captcha-panel {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(12, 15, 16, 0.35);
    padding: 1rem;
}

.form-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.form-status {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.9rem 1rem;
    font-size: 0.8rem;
    line-height: 1.55;
}

.form-status.is-success {
    border-color: rgba(167, 200, 255, 0.35);
    background: rgba(31, 71, 123, 0.22);
    color: #d5e3ff;
}

.form-status.is-error {
    border-color: rgba(255, 180, 171, 0.35);
    background: rgba(147, 0, 10, 0.2);
    color: #ffdad6;
}

.form-status.is-info {
    color: #c4c6ce;
}

/* Restored contact presentation */
.contact-detail {
    position: relative;
    display: grid;
    grid-template-columns: 3.25rem minmax(0, 1fr);
    gap: 1.25rem;
    align-items: center;
    border-left: 1px solid rgba(177, 200, 233, 0.2);
    padding-left: 1.5rem;
}

.contact-detail::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 0;
    width: 1px;
    height: 0;
    background: #b1c8e9;
    transition: height 300ms ease;
}

.contact-detail:hover::before {
    height: 100%;
}

.contact-detail-icon {
    display: flex;
    width: 3.25rem;
    height: 3.25rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(177, 200, 233, 0.18);
    background: rgba(177, 200, 233, 0.035);
    color: #b1c8e9;
    transition: border-color 200ms ease, background-color 200ms ease, transform 200ms ease;
}

.contact-detail:hover .contact-detail-icon {
    border-color: rgba(177, 200, 233, 0.55);
    background: rgba(177, 200, 233, 0.08);
    transform: translateY(-2px);
}

/* Premium pricing calculator */
.calculator-tabs {
    display: grid;
    gap: 0.75rem;
}

.calculator-tab {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: #191c1d;
    padding: 1.25rem 1.35rem;
    text-align: left;
    color: #e1e3e4;
    transition: border-color 220ms ease, background-color 220ms ease, transform 220ms ease;
}

.calculator-tab:hover,
.calculator-tab:focus-visible {
    border-color: rgba(177, 200, 233, 0.35);
    transform: translateX(0.2rem);
}

.calculator-tab.tab-active {
    border-color: rgba(177, 200, 233, 0.55);
    background: #282a2b;
}

.calculator-tab-number {
    color: rgba(177, 200, 233, 0.62);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.calculator-tab small {
    display: block;
    margin-bottom: 0.25rem;
    color: #8e9198;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.calculator-tab strong {
    display: block;
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.calculator-tab > .material-symbols-outlined {
    color: rgba(177, 200, 233, 0.44);
}

.calculator-tab.tab-active > .material-symbols-outlined {
    color: #b1c8e9;
}

.calculator-panel {
    overflow: hidden;
    border: 1px solid rgba(177, 200, 233, 0.12);
}

.calculator-header {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.calculator-eyebrow,
.calculator-base-price span,
.calculator-summary-row span,
.calculator-summary-total span,
.calculator-duration span {
    color: #8e9198;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.calculator-header h4 {
    margin: 0.3rem 0 0.45rem;
    color: #fff;
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 700;
}

.calculator-header p {
    max-width: 38rem;
    margin: 0;
    color: #c4c6ce;
    font-size: 0.8rem;
    line-height: 1.65;
}

.calculator-base-price {
    flex: 0 0 auto;
    text-align: right;
}

.calculator-base-price strong {
    display: block;
    margin-top: 0.35rem;
    color: #b1c8e9;
    font-size: 1.2rem;
}

.calculator-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    max-height: 34rem;
    overflow-y: auto;
    padding: 1rem;
    scrollbar-width: thin;
}

.calculator-option {
    position: relative;
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: 0.85rem;
    min-height: 8.25rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(12, 15, 16, 0.44);
    padding: 1rem;
    text-align: left;
    color: #e1e3e4;
    transition: border-color 200ms ease, background-color 200ms ease, transform 200ms ease;
}

.calculator-option:hover,
.calculator-option:focus-visible {
    border-color: rgba(177, 200, 233, 0.32);
    background: rgba(177, 200, 233, 0.055);
    transform: translateY(-2px);
}

.calculator-option.is-selected {
    border-color: rgba(177, 200, 233, 0.7);
    background: rgba(31, 71, 123, 0.28);
}

.calculator-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.calculator-option-icon {
    display: flex;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(177, 200, 233, 0.14);
    color: rgba(177, 200, 233, 0.72);
}

.calculator-option-copy strong {
    display: block;
    padding-right: 1.3rem;
    color: #fff;
    font-size: 0.78rem;
    line-height: 1.35;
}

.calculator-option-copy small {
    display: block;
    margin-top: 0.45rem;
    color: #8e9198;
    font-size: 0.67rem;
    line-height: 1.5;
}

.calculator-option-price {
    grid-column: 2;
    margin-top: auto;
    color: #b1c8e9;
    font-size: 0.68rem;
    font-weight: 700;
}

.calculator-option-check {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    width: 1.5rem;
    height: 1.5rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 9999px;
    color: transparent;
    font-size: 0.9rem;
}

.calculator-option.is-selected .calculator-option-check {
    border-color: #b1c8e9;
    background: #b1c8e9;
    color: #1a324c;
}

.calculator-summary {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 1.5rem 1.5rem;
}

.calculator-summary-list {
    max-height: 8rem;
    overflow-y: auto;
    margin-bottom: 1rem;
    padding-right: 0.3rem;
}

.calculator-summary-heading {
    margin-bottom: 0.5rem;
    color: #8e9198;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.calculator-summary-list > div:not(.calculator-summary-heading),
.calculator-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
    color: #c4c6ce;
    font-size: 0.7rem;
}

.calculator-summary-list strong,
.calculator-summary-row strong {
    flex: 0 0 auto;
    color: #e1e3e4;
}

.calculator-empty-summary {
    margin: 0;
    color: #8e9198;
    font-size: 0.72rem;
}

.calculator-summary-row {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 0.85rem;
}

.calculator-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.calculator-summary-total > div:first-child > strong {
    display: block;
    margin-top: 0.35rem;
    color: #fff;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.calculator-duration {
    text-align: right;
}

.calculator-duration strong {
    display: block;
    margin-top: 0.35rem;
    color: #b1c8e9;
    font-size: 0.85rem;
}

.calculator-cta {
    display: flex;
    width: 100%;
    min-height: 3.75rem;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 1.25rem;
    background: #b1c8e9;
    color: #1a324c;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: background-color 200ms ease, transform 200ms ease;
}

.calculator-cta:hover,
.calculator-cta:focus-visible {
    background: #fff;
    transform: translateY(-2px);
}

.calculator-note {
    margin: 0.85rem 0 0;
    color: #8e9198;
    font-size: 0.62rem;
    line-height: 1.55;
}

@media (max-width: 1199px) {
    .calculator-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .contact-detail {
        grid-template-columns: 2.75rem minmax(0, 1fr);
        gap: 1rem;
        padding-left: 1rem;
    }

    .contact-detail-icon {
        width: 2.75rem;
        height: 2.75rem;
    }

    .calculator-header,
    .calculator-summary-total {
        flex-direction: column;
        align-items: flex-start;
    }

    .calculator-base-price,
    .calculator-duration {
        text-align: left;
    }

    .calculator-options {
        max-height: none;
    }

    .calculator-option {
        min-height: 7.5rem;
    }
}

/* Animated, syntax-highlighted hero code */
.code-editor-body {
    height: 430px;
    overflow: hidden;
    scrollbar-width: none;
}

.code-editor-body::-webkit-scrollbar {
    display: none;
}

.hero-code-pre {
    min-height: 100%;
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: normal;
    tab-size: 4;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

#hero-code.hero-code-output {
    color: #d4d4d4 !important;
}

#hero-code .hero-code-token {
    display: inline;
}

#hero-code .hero-code-token.token-tag {
    color: #569cd6 !important;
}

#hero-code .hero-code-token.token-keyword {
    color: #c586c0 !important;
}

#hero-code .hero-code-token.token-language {
    color: #569cd6 !important;
}

#hero-code .hero-code-token.token-type {
    color: #4ec9b0 !important;
}

#hero-code .hero-code-token.token-function {
    color: #dcdcaa !important;
}

#hero-code .hero-code-token.token-variable {
    color: #9cdcfe !important;
}

#hero-code .hero-code-token.token-string {
    color: #ce9178 !important;
}

#hero-code .hero-code-token.token-number {
    color: #b5cea8 !important;
}

#hero-code .hero-code-token.token-constant {
    color: #4fc1ff !important;
}

#hero-code .hero-code-token.token-comment {
    color: #6a9955 !important;
}

#hero-code .hero-code-token.token-operator,
#hero-code .hero-code-token.token-punctuation {
    color: #d4d4d4 !important;
}

.hero-code-cursor {
    display: inline-block;
    width: 0.55em;
    height: 1.15em;
    margin-left: 0.15em;
    vertical-align: -0.18em;
    background: #b1c8e9;
    animation: hero-code-cursor-blink 0.82s steps(1, end) infinite;
}

.code-editor-body.is-active .hero-code-cursor {
    animation-duration: 0.68s;
}

.code-editor-body.is-correcting .hero-code-cursor {
    background: #f0c674;
    animation-duration: 0.34s;
}

.code-editor-body.is-rewinding .hero-code-cursor {
    background: #f07178;
    animation-duration: 0.26s;
}

.code-editor-body.is-reduced-motion .hero-code-cursor {
    animation: none;
    opacity: 0.7;
}

@keyframes hero-code-cursor-blink {
    0%, 46% { opacity: 1; }
    47%, 100% { opacity: 0; }
}

/* The code editor is an intentional live demo, even when the OS limits UI motion. */
@media (prefers-reduced-motion: reduce) {
    .hero-code-cursor {
        animation: hero-code-cursor-blink 0.82s steps(1, end) infinite !important;
    }

    .code-editor-body.is-correcting .hero-code-cursor {
        animation-duration: 0.34s !important;
    }

    .code-editor-body.is-rewinding .hero-code-cursor {
        animation-duration: 0.26s !important;
    }
}


/* Expandable services tabs */
.services-tabs-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.06);
}

.service-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 27.75rem;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(2rem, 3.5vw, 4rem);
    background: #111415;
    transition: background-color 260ms ease, box-shadow 260ms ease;
}

.service-card::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: #b1c8e9;
    opacity: 0;
    transform: scaleX(0.25);
    transform-origin: left;
    transition: opacity 260ms ease, transform 260ms ease;
}

.service-card:hover,
.service-card.is-active {
    background: #191c1d;
}

.service-card.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.service-card-icon {
    margin-bottom: 3rem;
    color: rgba(177, 200, 233, 0.4);
    font-size: 2.25rem;
    transition: color 220ms ease, transform 220ms ease;
}

.service-card:hover .service-card-icon,
.service-card.is-active .service-card-icon {
    color: #b1c8e9;
    transform: translateY(-2px);
}

.service-card h4 {
    margin: 0 0 1.5rem;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
}

.service-card > p {
    margin: 0 0 2.5rem;
    color: #c4c6ce;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.7;
}

.service-details-trigger,
.service-details-close {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border: 0;
    background: transparent;
    color: #b1c8e9;
    font-family: inherit;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
}

.service-details-trigger {
    margin-top: auto;
    padding: 0.6rem 0;
}

.service-details-trigger .material-symbols-outlined,
.service-details-close .material-symbols-outlined {
    font-size: 1rem;
    transition: transform 200ms ease;
}

.service-details-trigger:hover .material-symbols-outlined,
.service-details-trigger:focus-visible .material-symbols-outlined {
    transform: translateX(0.25rem);
}

.service-details-trigger.is-active .material-symbols-outlined {
    transform: rotate(90deg);
}

.service-details-trigger:focus-visible,
.service-details-close:focus-visible {
    outline: 2px solid #b1c8e9;
    outline-offset: 0.4rem;
}

.service-details-panels {
    background: #0c0f10;
}

.service-details-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
    gap: clamp(2rem, 5vw, 6rem);
    align-items: stretch;
    border: 1px solid rgba(177, 200, 233, 0.16);
    border-top: 0;
    padding: clamp(1.5rem, 5vw, 4.5rem);
    background:
        linear-gradient(135deg, rgba(177, 200, 233, 0.055), transparent 48%),
        #0c0f10;
    opacity: 0;
    transform: translateY(-0.5rem);
}

.service-details-panel.is-open {
    animation: service-details-reveal 320ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.service-details-panel[hidden] {
    display: none;
}

.service-details-copy {
    align-self: center;
    max-width: 52rem;
}

.service-details-eyebrow {
    margin: 0 0 1rem;
    color: #b1c8e9;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.32em;
    text-transform: uppercase;
}

.service-details-copy h4 {
    max-width: 48rem;
    margin: 0 0 1.75rem;
    color: #fff;
    font-size: clamp(1.75rem, 3.5vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.service-details-copy > p:not(.service-details-eyebrow) {
    margin: 0 0 1rem;
    color: #c4c6ce;
    font-size: 0.9rem;
    line-height: 1.8;
}

.service-details-list {
    display: grid;
    gap: 0.7rem;
    margin: 1.75rem 0 2rem;
    padding: 0;
    list-style: none;
}

.service-details-list li {
    position: relative;
    padding-left: 1.5rem;
    color: #e1e3e4;
    font-size: 0.82rem;
    line-height: 1.65;
}

.service-details-list li::before {
    content: '';
    position: absolute;
    top: 0.7em;
    left: 0;
    width: 0.45rem;
    height: 1px;
    background: #b1c8e9;
}

.service-details-close {
    padding: 0.7rem 0;
}

.service-details-close:hover .material-symbols-outlined,
.service-details-close:focus-visible .material-symbols-outlined {
    transform: translateY(-0.2rem);
}

.service-details-media {
    position: relative;
    min-height: 22rem;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #191c1d;
}

.service-details-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 22rem;
    object-fit: cover;
    filter: saturate(0.72) contrast(1.05);
    transition: filter 500ms ease, transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.service-details-panel:hover .service-details-media img {
    filter: saturate(1) contrast(1.02);
    transform: scale(1.025);
}

.service-details-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12, 15, 16, 0.78), transparent 42%);
    pointer-events: none;
}

.service-details-media figcaption {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    z-index: 1;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.62rem;
    line-height: 1.5;
}

@keyframes service-details-reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1023px) {
    .services-tabs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-card {
        min-height: 23rem;
    }

    .service-details-panel {
        grid-template-columns: 1fr;
    }

    .service-details-media {
        min-height: 20rem;
    }
}

@media (max-width: 767px) {
    .services-tabs-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 0;
        padding: 2rem 1.5rem;
    }

    .service-card-icon {
        margin-bottom: 1.75rem;
    }

    .service-card > p {
        margin-bottom: 1.5rem;
    }

    .service-details-trigger {
        margin-top: 0;
    }

    .service-details-panel {
        gap: 1.75rem;
        padding: 1.5rem;
    }

    .service-details-copy {
        order: 2;
    }

    .service-details-media {
        order: 1;
        min-height: 15rem;
        aspect-ratio: 16 / 10;
    }

    .service-details-media img {
        min-height: 15rem;
    }
}
