/* ==========================================================================
   Site-wide look (13 Nov 2026). Loaded on every page after style.css, which it builds on.
   New parts use an x- prefix. Built by client-fixes/2026-11-13-redesign/build.mjs;
   from now on edit this file directly.
   ========================================================================== */

:root {
    /* Used by style.css but never defined there */
    --color-text-primary: var(--color-text);
    --color-text-secondary: var(--color-text-muted);
    --color-brand-primary: var(--color-primary);
    --border-radius-md: 12px;
    --shadow-lg: 0 30px 60px -24px rgba(26, 26, 46, 0.35);

    --navy: #1a1a2e;
    --navy-2: #22223d;
    --grad-flow: linear-gradient(100deg, #0d95bc 0%, #a5a437 30%, #84141b 55%, #a5a437 78%, #0d95bc 100%);
    --grad-bright: linear-gradient(100deg, #35c3ea 0%, #d6d55a 50%, #ff7a6b 100%);
    --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Scroll progress bar along the very top of the window */
.x-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 1100;
    background: var(--gradient-brand);
    transform: scaleX(0);
    transform-origin: 0 50%;
    pointer-events: none;
}

/* Gradient text */
.x-grad-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-forced-color-adjust: none;
    forced-color-adjust: none;
}
.x-grad-text--bright { background-image: var(--grad-bright); }
.forced-dark-mode .x-grad-text,
.forced-dark-mode .x-title .x-grad {
    background: none;
    color: #fef3c7;
    -webkit-text-fill-color: #fef3c7;
}

/* Light sweep across primary buttons */
.btn--primary {
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px -8px rgba(13, 149, 188, 0.55);
}
.btn--primary::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -90%;
    width: 70%;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.05) 75%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    animation: xShine 5.5s ease-in-out infinite;
    pointer-events: none;
}
@keyframes xShine {
    0%, 55% { left: -90%; }
    100% { left: 130%; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.x-hero {
    position: relative;
    isolation: isolate;
    margin-top: 120px;
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    padding: clamp(2rem, 3.5vw, 3.25rem) 0 clamp(4.5rem, 6vw, 5.5rem);
    background: linear-gradient(180deg, #f3f8fb 0%, #ffffff 75%);
    overflow: hidden;
}

.x-hero__aurora {
    position: absolute;
    inset: 0;
    z-index: -2;
}
.x-hero__aurora span {
    position: absolute;
    border-radius: 50%;
    will-change: transform;
}
.x-hero__aurora span:nth-child(1) {
    width: 58vw;
    height: 58vw;
    right: -14vw;
    top: -22vw;
    background: radial-gradient(circle, rgba(13, 149, 188, 0.30) 0%, rgba(13, 149, 188, 0) 65%);
    animation: xDrift1 16s ease-in-out infinite alternate;
}
.x-hero__aurora span:nth-child(2) {
    width: 44vw;
    height: 44vw;
    right: 12vw;
    bottom: -24vw;
    background: radial-gradient(circle, rgba(165, 164, 55, 0.30) 0%, rgba(165, 164, 55, 0) 65%);
    animation: xDrift2 19s ease-in-out infinite alternate;
}
.x-hero__aurora span:nth-child(3) {
    width: 34vw;
    height: 34vw;
    right: -10vw;
    bottom: -8vw;
    background: radial-gradient(circle, rgba(132, 20, 27, 0.20) 0%, rgba(132, 20, 27, 0) 65%);
    animation: xDrift1 22s ease-in-out infinite alternate-reverse;
}
@keyframes xDrift1 {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-6vw, 4vw, 0) scale(1.12); }
}
@keyframes xDrift2 {
    from { transform: translate3d(0, 0, 0) scale(1.05); }
    to { transform: translate3d(7vw, -5vw, 0) scale(0.92); }
}

.x-hero__grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(26, 26, 46, 0.16) 1px, transparent 1.6px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(ellipse 60% 75% at 72% 45%, #000 0%, transparent 78%);
    mask-image: radial-gradient(ellipse 60% 75% at 72% 45%, #000 0%, transparent 78%);
}

.x-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
}
@media (min-width: 769px) {
    .x-hero__inner {
        padding-left: clamp(1.5rem, 3.5vw, 3.5rem);
        padding-right: clamp(1.5rem, 3.5vw, 3.5rem);
    }
}

/* Rating pill above the title */
.x-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem 0.5rem 0.8rem;
    margin-bottom: var(--space-md);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(13, 149, 188, 0.25);
    box-shadow: 0 6px 20px rgba(26, 26, 46, 0.07);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    opacity: 0;
    animation: fadeInUp 0.7s ease forwards;
}
.x-eyebrow:hover { border-color: var(--color-primary); transform: translateY(-2px); }
.x-eyebrow__stars { display: inline-flex; gap: 1px; }
.x-eyebrow__stars svg { width: 15px; height: 15px; fill: #fbbc04; }
.x-eyebrow__sep { width: 4px; height: 4px; border-radius: 50%; background: var(--color-gray); }

/* Title: each line rises out of a mask, the middle line carries a moving gradient */
.x-title {
    font-family: var(--font-hero);
    font-weight: 400;
    font-size: clamp(3.3rem, 6.5vw, 6.6rem);
    line-height: 0.93;
    letter-spacing: 0.015em;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
    -webkit-forced-color-adjust: none;
    forced-color-adjust: none;
}
.x-title .x-line {
    display: block;
    overflow: hidden;
    padding-top: 0.07em;
}
.x-title .x-line > span {
    display: inline-block;
    transform: translateY(110%);
    animation: xRise 0.95s var(--ease-out) forwards;
}
.x-title .x-line:nth-child(2) > span { animation-delay: 0.12s; }
.x-title .x-line:nth-child(3) > span { animation-delay: 0.24s; }
.x-title .x-grad {
    background: var(--grad-flow);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: xRise 0.95s var(--ease-out) 0.12s forwards, xFlow 9s linear infinite;
}
@keyframes xRise { to { transform: translateY(0); } }
@keyframes xFlow { to { background-position: -250% 0; } }

.x-hero__subtitle {
    font-size: clamp(1.1rem, 1.6vw, 1.3rem);
    color: var(--color-text-muted);
    max-width: 560px;
    margin-bottom: var(--space-lg);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.35s forwards;
}
.x-hero__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-md);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.45s forwards;
}

/* Stage: three browser windows in 3D that lean towards the pointer */
.x-stage {
    position: relative;
    aspect-ratio: 1 / 0.86;
    perspective: 1500px;
    opacity: 0;
    animation: xStageIn 1.2s var(--ease-out) 0.25s forwards;
}
@keyframes xStageIn {
    from { opacity: 0; transform: translate3d(60px, 20px, 0) scale(0.94); }
    to { opacity: 1; transform: none; }
}
.x-stage__star {
    position: absolute;
    width: 128%;
    aspect-ratio: 1;
    left: -10%;
    top: -24%;
    background: url('/assets/images/star.svg') center / contain no-repeat;
    opacity: 0.13;
    animation: xSpin 80s linear infinite;
}
@keyframes xSpin { to { transform: rotate(360deg); } }

.x-stage__tilt {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transform: rotateY(calc(-15deg + var(--ry, 0deg))) rotateX(calc(6deg + var(--rx, 0deg)));
    transition: transform 0.35s ease-out;
}

.x-browser {
    position: absolute;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 40px 70px -24px rgba(26, 26, 46, 0.45), 0 0 0 1px rgba(26, 26, 46, 0.08);
}
.x-browser__bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    background: var(--navy);
}
.x-browser__bar i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--color-cyan);
}
.x-browser__bar i:nth-child(2) { background: var(--color-gold); }
.x-browser__bar i:nth-child(3) { background: #c0392b; }
.x-browser__url {
    flex: 1;
    min-width: 0;
    height: 20px;
    margin-left: 8px;
    padding: 0 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.7rem;
    line-height: 20px;
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.x-browser__screen {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #e9edf1;
}
.x-browser__screen img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 0.9s ease, transform 5s ease-out;
}
.x-browser__screen img.is-active { opacity: 1; transform: scale(1); }

.x-browser--main { width: 84%; left: 6%; top: 15%; }
.x-browser--back {
    width: 46%;
    right: -2%;
    top: 0;
    animation: xFloatBack 8s ease-in-out infinite;
}
.x-browser--front {
    width: 40%;
    left: -4%;
    bottom: 3%;
    animation: xFloatFront 7s ease-in-out infinite;
}
.x-browser--back .x-browser__bar,
.x-browser--front .x-browser__bar { padding: 6px 9px; }
.x-browser--back .x-browser__bar i,
.x-browser--front .x-browser__bar i { width: 6px; height: 6px; }
.x-browser--back .x-browser__url,
.x-browser--front .x-browser__url { height: 12px; }

@keyframes xFloatBack {
    0%, 100% { transform: translate3d(0, 0, -110px); }
    50% { transform: translate3d(0, -16px, -110px); }
}
@keyframes xFloatFront {
    0%, 100% { transform: translate3d(0, 0, 90px); }
    50% { transform: translate3d(0, 14px, 90px); }
}

.x-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 18px 40px -10px rgba(26, 26, 46, 0.35), 0 0 0 1px rgba(26, 26, 46, 0.05);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-text-muted);
    white-space: nowrap;
}
.x-chip b { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: #202124; line-height: 1; }
.x-chip > span { display: flex; align-items: center; gap: 0.45rem; }
.x-chip__stars { display: inline-flex; gap: 1px; }
.x-chip__stars svg { width: 15px; height: 15px; fill: #fbbc04; }
.x-chip--google { right: 0; bottom: 12%; animation: xFloatChip 6s ease-in-out infinite; }
.x-chip--built { left: 2%; top: 6%; animation: xFloatChip 7s ease-in-out -3s infinite; }
@keyframes xFloatChip {
    0%, 100% { transform: translate3d(0, 0, 150px); }
    50% { transform: translate3d(0, -12px, 150px); }
}

.x-hero__scroll {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    animation: bounce 2s ease infinite;
}
.x-hero__scroll svg { width: 22px; height: 22px; }

@media (max-width: 1000px) {
    .x-hero { min-height: 0; padding-bottom: var(--space-2xl); }
    .x-hero__inner { grid-template-columns: 1fr; }
    .x-title { font-size: clamp(3.3rem, 13vw, 6.5rem); }
    .x-stage { width: 100%; max-width: 560px; margin: var(--space-md) auto 0; }
    .x-stage__tilt { transform: rotateY(-9deg) rotateX(4deg); }
    .x-hero__scroll { display: none; }
    .x-hero__grid {
        -webkit-mask-image: radial-gradient(ellipse 90% 45% at 50% 78%, #000 0%, transparent 80%);
        mask-image: radial-gradient(ellipse 90% 45% at 50% 78%, #000 0%, transparent 80%);
    }
}
@media (max-width: 768px) {
    /* The header is 128px tall on phones too (80px logo plus padding) */
    .x-hero { margin-top: 120px; padding-top: calc(var(--space-lg) + 8px); }
    .x-hero__aurora span:nth-child(1) { width: 120vw; height: 120vw; right: -50vw; top: -40vw; }
    .x-hero__aurora span:nth-child(2) { width: 100vw; height: 100vw; right: 10vw; bottom: -40vw; }
    .x-hero__aurora span:nth-child(3) { width: 80vw; height: 80vw; right: -30vw; bottom: 0; }
    .x-eyebrow { font-size: 0.8rem; gap: 0.45rem; white-space: nowrap; }
    .x-browser--front { left: 0; }
    .x-browser--back { right: 0; }
    .x-chip { padding: 0.5rem 0.75rem; font-size: 0.75rem; border-radius: 12px; }
    .x-chip b { font-size: 1.05rem; }
    .x-chip svg { width: 20px; height: 20px; }
    .x-chip__stars svg { width: 12px; height: 12px; }
    .x-hero__cta .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   Client-name ticker
   -------------------------------------------------------------------------- */
.x-marquee {
    position: relative;
    overflow: hidden;
    background: #1a1a2e;
    padding: 1.15rem 0;
}
.x-marquee::before,
.x-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 12%;
    z-index: 1;
    pointer-events: none;
}
.x-marquee::before { left: 0; background: linear-gradient(90deg, #1a1a2e, transparent); }
.x-marquee::after { right: 0; background: linear-gradient(270deg, #1a1a2e, transparent); }
.x-marquee__track {
    display: flex;
    width: max-content;
    animation: xMarquee 45s linear infinite;
}
.x-marquee:hover .x-marquee__track { animation-play-state: paused; }
.x-marquee ul { display: flex; flex-shrink: 0; }
.x-marquee li {
    display: flex;
    align-items: center;
    font-family: var(--font-hero);
    font-size: 1.45rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
    white-space: nowrap;
}
.x-marquee li::after {
    content: '';
    width: 22px;
    height: 22px;
    margin: 0 2rem;
    background: url('/assets/images/star.svg') center / contain no-repeat;
}
@keyframes xMarquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Why choose us
   -------------------------------------------------------------------------- */
.x-value { position: relative; overflow: hidden; }
.x-value .value-showcase__media { position: relative; }
.x-value .value-showcase__media::before {
    content: '';
    position: absolute;
    inset: 5% 0;
    z-index: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, rgba(13, 149, 188, 0.22), transparent 55%),
        radial-gradient(circle at 70% 70%, rgba(165, 164, 55, 0.22), transparent 55%);
    filter: blur(20px);
}
.x-value .value-showcase__media img {
    position: relative;
    z-index: 1;
    animation: xBob 7s ease-in-out infinite;
}
.x-value .value-showcase__media img:nth-child(2) { animation-delay: -3.5s; }
@keyframes xBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.x-value .value-showcase__card {
    box-shadow: 0 30px 70px -30px rgba(13, 149, 188, 0.35), 0 10px 40px rgba(0, 0, 0, 0.06);
}

/* --------------------------------------------------------------------------
   What we deliver: dark band, cards lit by the pointer
   -------------------------------------------------------------------------- */
.section--dark {
    --color-bg-card: #22223d;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: #1a1a2e;
    color: #fff;
}
.section--dark::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(45% 55% at 12% 0%, rgba(13, 149, 188, 0.28), transparent 70%),
        radial-gradient(40% 50% at 92% 100%, rgba(132, 20, 27, 0.30), transparent 70%),
        radial-gradient(30% 40% at 60% 40%, rgba(165, 164, 55, 0.10), transparent 70%),
        radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.6px) 0 0 / 26px 26px;
}
.section--dark .section-title { color: #fff; }
.section--dark .section-description { color: rgba(255, 255, 255, 0.72); }
.section--dark .section-label { color: #5fd0ee; }
.section--dark .section-label::before,
.section--dark .section-label::after { background: #5fd0ee; }

.section--dark .feature-card,
.section--dark .feature-card:hover {
    background-image:
        radial-gradient(380px circle at var(--mx, 50%) var(--my, -40%), rgba(53, 195, 234, 0.20), transparent 65%),
        linear-gradient(var(--color-bg-card), var(--color-bg-card)),
        linear-gradient(135deg, rgba(13, 149, 188, 0.7), rgba(165, 164, 55, 0.55), rgba(132, 20, 27, 0.7));
    background-origin: border-box;
    background-clip: padding-box, padding-box, border-box;
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
}
.section--dark .feature-card:hover {
    box-shadow: 0 30px 60px -20px rgba(13, 149, 188, 0.45);
}
.section--dark .feature-card::after { opacity: 0.16; }
.section--dark .feature-card:hover::after { opacity: 0.5; }
.section--dark .feature-title { color: #fff; }
.section--dark .feature-card:hover .feature-title {
    background-image: var(--grad-bright);
}
.section--dark .feature-description { color: rgba(255, 255, 255, 0.72); }

/* --------------------------------------------------------------------------
   Recent projects
   -------------------------------------------------------------------------- */
.portfolio-grid { perspective: 1400px; }
.portfolio-grid .portfolio-item {
    aspect-ratio: 16 / 10;
    transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
    transition: opacity 0.6s ease, transform 0.35s ease-out, box-shadow 0.35s ease;
    will-change: transform;
}
.portfolio-grid .portfolio-item.fade-in:not(.visible) { transform: translateY(30px); }
.portfolio-grid .portfolio-item img { object-position: top center; }
.portfolio-grid .portfolio-item:hover {
    box-shadow: 0 30px 60px -24px rgba(13, 149, 188, 0.55), 0 0 0 2px rgba(13, 149, 188, 0.35);
}
.portfolio-grid .portfolio-category { color: #5fd0ee; }
/* Phones and tablets have no hover, so the project name is always shown there */
@media (hover: none) {
    .portfolio-grid .portfolio-overlay {
        opacity: 1;
        transform: none;
        background: linear-gradient(to top, rgba(10, 10, 15, 0.92) 0%, rgba(10, 10, 15, 0.55) 32%, transparent 58%);
        padding: var(--space-md);
    }
    .portfolio-grid .portfolio-title { font-size: 1.2rem; margin-bottom: 0.15rem; }
    .portfolio-grid .portfolio-link { font-size: 0.9rem; }
    .portfolio-grid .portfolio-category { display: none; }
}
.portfolio-filters .filter-btn.active,
.portfolio-filters .filter-btn:hover {
    background: var(--gradient-brand);
    border-color: transparent;
    box-shadow: 0 8px 20px -8px rgba(13, 149, 188, 0.6);
}

/* --------------------------------------------------------------------------
   Stats band
   -------------------------------------------------------------------------- */
.x-stats {
    overflow: hidden;
    background: linear-gradient(110deg, #0d95bc, #a5a437, #84141b, #a5a437, #0d95bc);
    background-size: 300% 100%;
    animation: xBand 18s linear infinite;
}
@keyframes xBand { to { background-position: -300% 0; } }
.x-stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1.6px) 0 0 / 22px 22px;
    pointer-events: none;
}
.x-stats .container { position: relative; }
.x-stats .stat-number {
    font-family: var(--font-hero);
    font-weight: 400;
    font-size: clamp(3.2rem, 6.5vw, 5.5rem);
    letter-spacing: 0.02em;
    text-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}
.x-stats .stat-label { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem; }
@media (min-width: 769px) {
    .x-stats .stat-item + .stat-item { border-left: 1px solid rgba(255, 255, 255, 0.28); }
}

/* --------------------------------------------------------------------------
   Reviews
   -------------------------------------------------------------------------- */
.x-reviews { background: var(--color-bg-off-white); }
.x-reviews__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-lg);
    align-items: start;
}
.x-review {
    position: relative;
    overflow: hidden;
    padding: var(--space-xl) var(--space-lg) var(--space-lg);
    border-radius: var(--border-radius-lg);
    border: 1px solid transparent;
    background-image: linear-gradient(#fff, #fff),
        linear-gradient(135deg, rgba(13, 149, 188, 0.35), rgba(165, 164, 55, 0.35), rgba(132, 20, 27, 0.35));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 16px 40px -20px rgba(26, 26, 46, 0.25);
    transition: opacity 0.6s ease, transform 0.4s ease, box-shadow 0.4s ease;
}
.x-review.visible:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -24px rgba(13, 149, 188, 0.4);
}
.x-review::before {
    content: '\201C';
    position: absolute;
    top: 0.02em;
    right: 0.12em;
    font-family: Georgia, serif;
    font-size: 11rem;
    line-height: 1;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.16;
    pointer-events: none;
}
.x-review__stars { display: flex; gap: 2px; margin-bottom: var(--space-sm); }
.x-review__stars svg { width: 20px; height: 20px; fill: #fbbc04; }
.x-review blockquote {
    position: relative;
    color: var(--color-text-muted);
    line-height: 1.75;
    margin-bottom: var(--space-md);
}
.x-review figcaption { display: flex; align-items: center; gap: 0.85rem; }
.x-review__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
}
.x-review figcaption strong { display: block; font-family: var(--font-display); color: var(--color-text); line-height: 1.3; }
.x-review figcaption small { color: var(--color-text-subtle); font-size: 0.85rem; }
@media (max-width: 1000px) {
    .x-reviews__grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
}

/* --------------------------------------------------------------------------
   Closing call to action
   -------------------------------------------------------------------------- */
.cta-section { padding: var(--space-3xl) var(--space-md); background: #fff; }
.cta-section::before { display: none; }
.cta-section > .container {
    max-width: calc(var(--container-max) - 2 * var(--space-md));
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4.5rem);
    border-radius: 36px;
    background:
        radial-gradient(50% 80% at 0% 0%, rgba(13, 149, 188, 0.40), transparent 70%),
        radial-gradient(45% 80% at 100% 100%, rgba(132, 20, 27, 0.45), transparent 70%),
        radial-gradient(30% 50% at 55% 110%, rgba(165, 164, 55, 0.25), transparent 70%),
        #1a1a2e;
    box-shadow: 0 40px 80px -30px rgba(26, 26, 46, 0.6);
    color: #fff;
}
.cta-section > .container::before {
    content: '';
    pointer-events: none;
    position: absolute;
    z-index: -1;
    width: 520px;
    height: 520px;
    right: -140px;
    top: -170px;
    background: url('/assets/images/star.svg') center / contain no-repeat;
    opacity: 0.16;
    animation: xSpin 70s linear infinite;
}
.cta-section .cta-reviews { padding-left: 0; }
.cta-section .cta-content h2 {
    font-family: var(--font-hero);
    font-weight: 400;
    font-size: clamp(3rem, 6vw, 5.25rem);
    line-height: 0.95;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #fff;
}
.cta-section .cta-content p { color: rgba(255, 255, 255, 0.78); }
.cta-section .cta-grid .cta-content p { max-width: 560px; }
.cta-section .btn--secondary { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.cta-section .btn--secondary:hover { background: #fff; color: #1a1a2e; border-color: #fff; }
.cta-section .google-review-box { box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.6); }
@media (max-width: 900px) {
    .cta-section { padding: var(--space-2xl) var(--space-md); }
    .cta-section > .container { border-radius: 24px; }
    .cta-section .cta-content p { margin-left: auto; margin-right: auto; }
    .cta-section .cta-buttons .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   Visitors who ask for less motion get a still page
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .x-hero__aurora span,
    .x-stage__star,
    .cta-section > .container::before,
    .x-browser--back,
    .x-browser--front,
    .x-chip,
    .btn--primary::after,
    .x-marquee__track,
    .x-hero__scroll,
    .x-stats,
    .x-value .value-showcase__media img { animation: none; }
    .x-browser--back { transform: translateZ(-110px); }
    .x-browser--front { transform: translateZ(90px); }
    .x-chip { transform: translateZ(150px); }
    .x-title .x-line > span,
    .x-title .x-grad { animation: none; transform: none; }
    .x-eyebrow, .x-hero__subtitle, .x-hero__cta, .x-stage { animation: none; opacity: 1; }
    .x-marquee { overflow-x: auto; }
}

@media (max-width: 420px) {
    .x-eyebrow__sep, .x-eyebrow__extra { display: none; }
}

/* ==========================================================================
   Inner pages: the same look applied to the blocks every other page is built from.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Title banner at the top of every inner page
   -------------------------------------------------------------------------- */
.page-header {
    isolation: isolate;
    background: linear-gradient(180deg, #f3f8fb 0%, #ffffff 100%);
}
.page-header::before {
    z-index: -2;
    background:
        radial-gradient(42% 90% at 88% 0%, rgba(13, 149, 188, 0.26), transparent 70%),
        radial-gradient(36% 80% at 8% 100%, rgba(165, 164, 55, 0.22), transparent 70%),
        radial-gradient(26% 60% at 100% 100%, rgba(132, 20, 27, 0.14), transparent 70%);
}
.page-header::after {
    content: '';
    position: absolute;
    z-index: -1;
    width: 440px;
    height: 440px;
    right: -90px;
    top: 40px;
    background: url('/assets/images/star.svg') center / contain no-repeat;
    opacity: 0.1;
    animation: xSpin 80s linear infinite;
    pointer-events: none;
}
.page-header-content::before {
    content: '';
    position: absolute;
    inset: -140px -40px -60px;
    z-index: -1;
    background: radial-gradient(rgba(26, 26, 46, 0.13) 1px, transparent 1.6px) 0 0 / 26px 26px;
    -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 20%, transparent 80%);
    mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 20%, transparent 80%);
    pointer-events: none;
}
.page-header-content h1 {
    font-family: var(--font-hero);
    font-weight: 400;
    font-size: clamp(3rem, 7vw, 5.75rem);
    line-height: 0.95;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out) 0.05s forwards;
}
.page-header-content h1::after {
    content: '';
    display: block;
    width: 96px;
    height: 5px;
    margin: var(--space-md) auto 0;
    border-radius: 3px;
    background: var(--grad-flow);
    background-size: 250% 100%;
    animation: xFlow 9s linear infinite;
}
.page-header-content p {
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}
.breadcrumbs {
    display: inline-flex;
    flex-wrap: wrap;
    padding: 0.4rem 1.1rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(13, 149, 188, 0.25);
    box-shadow: 0 6px 20px rgba(26, 26, 46, 0.07);
    font-weight: 500;
}
@media (max-width: 768px) {
    .page-header::after { width: 280px; height: 280px; right: -110px; top: 90px; }
}

/* --------------------------------------------------------------------------
   Navy bands: text and blocks that can sit inside one
   -------------------------------------------------------------------------- */
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: #fff; }
.section--dark .about-intro p { color: rgba(255, 255, 255, 0.78); }
.section--dark .about-intro .about-lead { color: #fff; }
.section--dark .about-intro a { color: #5fd0ee; }
.section--dark .service-item {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 36px -22px rgba(0, 0, 0, 0.7);
}
.section--dark .service-item:hover {
    background: #2a2a4a;
    border-color: #35c3ea;
    box-shadow: 0 20px 44px -20px rgba(13, 149, 188, 0.55);
}
.section--dark .service-content p { color: rgba(255, 255, 255, 0.7); }

/* --------------------------------------------------------------------------
   Cards on light backgrounds
   -------------------------------------------------------------------------- */
.feature-card,
.feature-card:hover {
    background-image:
        radial-gradient(380px circle at var(--mx, 50%) var(--my, -60%), rgba(13, 149, 188, 0.12), transparent 65%),
        linear-gradient(var(--color-bg-card), var(--color-bg-card)),
        linear-gradient(135deg, rgba(13, 149, 188, 0.4), rgba(165, 164, 55, 0.4), rgba(132, 20, 27, 0.4));
    background-origin: border-box;
    background-clip: padding-box, padding-box, border-box;
}
.feature-card::after { background-image: url('/assets/images/star.svg'); }
.value-showcase__card::after { background-image: url('/assets/images/star.svg'); }

.service-item { box-shadow: 0 10px 28px -20px rgba(26, 26, 46, 0.35); }
.service-item:hover { box-shadow: 0 18px 40px -20px rgba(13, 149, 188, 0.5); }
.service-icon { box-shadow: 0 6px 16px -4px rgba(13, 149, 188, 0.5); }

.area-card {
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    background-image: linear-gradient(#fff, #fff),
        linear-gradient(135deg, rgba(13, 149, 188, 0.4), rgba(165, 164, 55, 0.4), rgba(132, 20, 27, 0.4));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 16px 40px -24px rgba(26, 26, 46, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.area-card::after {
    content: '';
    position: absolute;
    top: -24px;
    right: -24px;
    width: 130px;
    height: 130px;
    background: url('/assets/images/star.svg') center / contain no-repeat;
    opacity: 0.08;
    transition: opacity 0.4s ease, transform 0.6s ease;
    pointer-events: none;
}
.area-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -24px rgba(13, 149, 188, 0.45);
}
.area-card:hover::after { opacity: 0.3; transform: rotate(36deg); }
.area-card .area-icon { box-shadow: 0 6px 16px -4px rgba(13, 149, 188, 0.5); }

/* --------------------------------------------------------------------------
   Reviews page
   -------------------------------------------------------------------------- */
.review-card {
    overflow: hidden;
    border: 1px solid transparent;
    background-image: linear-gradient(#fff, #fff),
        linear-gradient(135deg, rgba(13, 149, 188, 0.35), rgba(165, 164, 55, 0.35), rgba(132, 20, 27, 0.35));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 16px 40px -20px rgba(26, 26, 46, 0.25);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.review-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -24px rgba(13, 149, 188, 0.4);
}
.review-card::before {
    content: '\201C';
    top: 0.02em;
    left: auto;
    right: 0.12em;
    font-family: Georgia, serif;
    font-size: 11rem;
    color: transparent;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.16;
}
.review-stars { color: #fbbc04; }
.review-text { font-size: 1rem; color: var(--color-text-muted); }
.review-avatar { color: #fff; font-size: 1rem; }

/* --------------------------------------------------------------------------
   Project pages: the screenshot sits in a browser window
   -------------------------------------------------------------------------- */
.project-image {
    border-radius: 14px;
    background: #1a1a2e;
    box-shadow: 0 40px 70px -28px rgba(26, 26, 46, 0.5), 0 0 0 1px rgba(26, 26, 46, 0.08);
    transition: transform 0.5s var(--ease-out), box-shadow 0.5s ease;
}
.project-image::before {
    content: '';
    display: block;
    height: 34px;
    background:
        radial-gradient(circle at 18px 50%, #0d95bc 4.5px, transparent 5.5px),
        radial-gradient(circle at 34px 50%, #a5a437 4.5px, transparent 5.5px),
        radial-gradient(circle at 50px 50%, #c0392b 4.5px, transparent 5.5px),
        linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)) 70px 50% / calc(100% - 86px) 18px no-repeat,
        #1a1a2e;
}
.project-image:hover {
    transform: translateY(-6px);
    box-shadow: 0 50px 80px -28px rgba(13, 149, 188, 0.5), 0 0 0 1px rgba(13, 149, 188, 0.25);
}
.project-meta {
    border: 1px solid transparent;
    background-image: linear-gradient(var(--color-bg-off-white), var(--color-bg-off-white)),
        linear-gradient(135deg, rgba(13, 149, 188, 0.4), rgba(165, 164, 55, 0.4), rgba(132, 20, 27, 0.4));
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */
.contact-form-wrapper {
    position: relative;
    border: 1px solid transparent;
    background-image: linear-gradient(#fff, #fff),
        linear-gradient(135deg, rgba(13, 149, 188, 0.45), rgba(165, 164, 55, 0.45), rgba(132, 20, 27, 0.45));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 30px 70px -30px rgba(13, 149, 188, 0.4), 0 10px 40px rgba(0, 0, 0, 0.05);
}
.contact-item { box-shadow: 0 10px 28px -20px rgba(26, 26, 46, 0.35); }
.contact-item:hover { transform: translateX(6px); box-shadow: 0 18px 40px -20px rgba(13, 149, 188, 0.5); }
.contact-icon {
    background: var(--gradient-brand);
    color: #fff;
    box-shadow: 0 6px 16px -4px rgba(13, 149, 188, 0.5);
}

/* --------------------------------------------------------------------------
   Less motion for visitors who ask for it
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .page-header::after,
    .page-header-content h1::after { animation: none; }
    .page-header-content h1,
    .page-header-content p { animation: none; opacity: 1; }
}

/* A white section followed by the closing panel would leave a double gap */
.section:not(.section--dark):not(.contact-section):not(.reviews-section):not(.x-reviews) + .cta-section { padding-top: 0; }

/* The 1px line under the title banner, for pages whose first section doesn't already draw one */
.page-header + .section:not(.section--gradient-line):not(.section--with-separator) { position: relative; }
.page-header + .section:not(.section--gradient-line):not(.section--with-separator)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}
