/* Services + Contact concept: blue / white / black, boxy studio (matches home).
   Fonts (Space Grotesk + JetBrains Mono) are already loaded by style.css. */
.page-services,
.page-contact {
    --intent-ink: #0a0a0a;
    --intent-cream: #ffffff;
    --intent-paper: #ffffff;
    --intent-blue: #00D9FF;
    --intent-blue-dark: #00B8E6;
    --intent-lime: #00D9FF;
    --intent-coral: #00D9FF;
    --intent-muted: #555555;
    --intent-line: rgba(10, 10, 10, 0.22);
    color: var(--intent-ink);
    background: var(--intent-cream);
    font-family: 'Space Grotesk', sans-serif;
}

.page-services main,
.page-contact main {
    overflow: hidden;
}

.page-services .page-kicker,
.page-services .section-kicker,
.page-contact .page-kicker,
.page-contact .section-kicker {
    color: inherit;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.page-services .cta,
.page-contact .cta,
.page-contact .submit-btn {
    border-radius: 0;
}

/* Services hero — bold cyan subpage hero (the field, kicker, and photo
   frame live in style.css; these rules keep type and CTAs legible on cyan). */
.page-services .hero h1 {
    color: var(--intent-ink);
    font-size: clamp(2.6rem, 4.6vw, 4.9rem);
    text-transform: uppercase;
    overflow-wrap: normal;
    word-break: normal;
}

.page-services .hero h1 .glitch {
    display: inline;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-transform: uppercase;
}

.page-services .hero h1 .glitch::before,
.page-services .hero h1 .glitch::after {
    display: none;
}

/* "HANDLED." gets the boxed stamp treatment from the home hero. */
.page-services .hero h1 .glitch:last-child {
    display: inline-block;
    margin-top: 0.08em;
    padding: 0.04em 0.14em 0.08em;
    color: #ffffff;
    background: var(--intent-ink);
    box-shadow: 0.1em 0.1em 0 var(--intent-blue);
    transform: rotate(-0.75deg);
    font-style: normal;
}

.page-services .services-hero-lede {
    max-width: 48ch;
    margin-top: 1rem;
    color: rgba(10, 10, 10, 0.78);
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.65;
}

.page-services .cta-group {
    margin-top: 2.25rem;
}

.page-services .hero .cta-primary {
    color: var(--intent-ink);
    border-color: var(--intent-blue);
    background: var(--intent-blue);
}

.page-services .hero .cta-primary:hover,
.page-services .hero .cta-primary:focus-visible {
    color: #ffffff;
    border-color: #0a0a0a;
    background: #0a0a0a;
}

.page-services .hero .cta-secondary {
    color: var(--intent-ink);
    border-color: #0a0a0a;
    background: transparent;
}

.page-services .hero .cta-secondary:hover,
.page-services .hero .cta-secondary:focus-visible {
    color: var(--intent-ink);
    border-color: #0a0a0a;
    background: #ffffff;
}

/* Services bento */
.page-services .services {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem;
    max-width: 1320px;
    padding-block: clamp(6rem, 10vw, 10rem);
}

.page-services .services-header {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.45fr);
    gap: 2rem 6rem;
    align-items: end;
    max-width: none;
    margin-bottom: 2.5rem;
}

.page-services .services-header .section-kicker,
.page-services .services-header h2 {
    grid-column: 1;
}

.page-services .services-header .section-kicker {
    color: var(--intent-blue-dark);
}

.page-services .services-header h2 {
    margin-top: 0.65rem;
    color: var(--intent-ink);
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.page-services .services-header > p:not(.section-kicker),
.page-services .pricing-jump {
    grid-column: 2;
}

.page-services .services-header > p:not(.section-kicker) {
    grid-row: 1 / span 2;
    color: var(--intent-muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.page-services .pricing-jump {
    display: inline-flex;
    width: max-content;
    margin-top: 0.5rem;
    color: var(--intent-blue-dark);
    font-weight: 700;
}

.page-services .service-item,
.page-services .service-item + .service-item {
    display: flex;
    flex-direction: column;
    min-height: 440px;
    margin: 0;
    padding: clamp(1.75rem, 3vw, 2.75rem);
    overflow: hidden;
    color: var(--intent-ink);
    border: 2px solid #0a0a0a;
    border-radius: 0;
    background: var(--intent-paper);
    box-shadow: none;
    transform: none;
}

.page-services .service-item:nth-of-type(1),
.page-services .service-item:nth-of-type(4) {
    grid-column: span 7;
}

.page-services .service-item:nth-of-type(2),
.page-services .service-item:nth-of-type(3) {
    grid-column: span 5;
}

.page-services .service-item:nth-of-type(1) {
    color: #0a0a0a;
    background: var(--intent-blue);
}

.page-services .service-item:nth-of-type(3) {
    color: #ffffff;
    background: var(--intent-ink);
}

.page-services .service-item:nth-of-type(4) {
    color: #0a0a0a;
    background: var(--intent-blue);
}

.page-services .service-item:hover {
    box-shadow: 8px 8px 0 0 #0a0a0a;
    transform: translateY(-5px);
}

.page-services .service-number {
    margin-left: auto;
    color: currentColor !important;
    font-size: 0.72rem;
    opacity: 0.6;
}

.page-services .service-content {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.page-services .service-content .icon {
    width: 58px;
    height: 58px;
    margin: 0 0 auto;
    color: currentColor;
    border: 2px solid currentColor;
    border-radius: 0;
}

.page-services .service-content .icon svg,
.page-services .service-item:hover .icon svg {
    stroke: currentColor !important;
}

.page-services .service-title {
    max-width: 16ch;
    margin: 3rem 0 0.75rem;
    color: currentColor !important;
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(1.5rem, 2.6vw, 2.35rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.page-services .service-subtitle {
    color: currentColor !important;
    font-weight: 700;
}

.page-services .service-description {
    max-width: 48ch;
    color: currentColor !important;
    opacity: 0.72;
}

.page-services .service-tags {
    margin-top: 1.5rem;
}

.page-services .service-item .tag {
    color: currentColor !important;
    border-color: currentColor !important;
    border-radius: 0;
    background: transparent;
    opacity: 0.72;
}

/* Pricing and proof sections */
.page-services .pricing-section {
    color: #ffffff;
    background: var(--intent-ink);
}

.page-services .pricing-header h2,
.page-services .pricing-subtitle,
.page-services .pricing-disclaimer {
    color: #ffffff;
}

.page-services .pricing-subtitle,
.page-services .pricing-disclaimer {
    opacity: 0.62;
}

/* Non-featured tiers sit on the black band: keep text legible */
.page-services .pricing-tier:not(.pricing-tier--featured),
.page-services .pricing-tier:not(.pricing-tier--featured) .pricing-tier-name,
.page-services .pricing-tier:not(.pricing-tier--featured) .pricing-tier-tagline,
.page-services .pricing-tier:not(.pricing-tier--featured) .pricing-price,
.page-services .pricing-tier:not(.pricing-tier--featured) .pricing-currency,
.page-services .pricing-tier:not(.pricing-tier--featured) .pricing-amount,
.page-services .pricing-tier:not(.pricing-tier--featured) .pricing-period,
.page-services .pricing-tier:not(.pricing-tier--featured) .tag {
    color: #ffffff;
}

.page-services .pricing-tier:not(.pricing-tier--featured) .pricing-amount {
    color: var(--intent-blue);
}

.page-services .pricing-tier:not(.pricing-tier--featured) .tag {
    border-color: rgba(255, 255, 255, 0.4);
}

.page-services .pricing-tier {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.05);
}

.page-services .pricing-tier--featured {
    color: var(--intent-ink);
    border-color: var(--intent-blue);
    background: var(--intent-blue);
    transform: translateY(-1.25rem);
}

.page-services .pricing-tier--featured .pricing-badge {
    color: var(--intent-blue);
    background: #0a0a0a;
}

/* Tier CTAs need explicit contrast on their band: outlined white on the
   black tiers, solid black on the featured cyan tier. */
.page-services .pricing-tier:not(.pricing-tier--featured) .pricing-cta {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.55);
    background: transparent;
}

.page-services .pricing-tier:not(.pricing-tier--featured) .pricing-cta:hover,
.page-services .pricing-tier:not(.pricing-tier--featured) .pricing-cta:focus-visible {
    color: var(--intent-ink);
    border-color: var(--intent-blue);
    background: var(--intent-blue);
}

.page-services .pricing-tier--featured .pricing-cta {
    color: #ffffff;
    border-color: #0a0a0a;
    background: #0a0a0a;
}

.page-services .pricing-tier--featured .pricing-cta:hover,
.page-services .pricing-tier--featured .pricing-cta:focus-visible {
    color: var(--intent-ink);
    border-color: #0a0a0a;
    background: #ffffff;
}

.page-services .values-section {
    background: var(--intent-cream);
}

.page-services .values-grid {
    gap: 1rem;
}

.page-services .values-grid .value-item {
    color: var(--intent-ink) !important;
    border: 2px solid #0a0a0a;
    border-radius: 0;
    background: var(--intent-paper) !important;
}

/* Alternate black / cyan fields — same rhythm as the About page grid. */
.page-services .values-grid .value-item:nth-child(1),
.page-services .values-grid .value-item:nth-child(3) {
    color: #ffffff !important;
    background: #111214 !important;
}

.page-services .values-grid .value-item:nth-child(2),
.page-services .values-grid .value-item:nth-child(4) {
    background: var(--intent-blue) !important;
}

.page-services .values-grid .value-item:nth-child(2) .value-number,
.page-services .values-grid .value-item:nth-child(4) .value-number {
    color: rgba(10, 10, 10, 0.16);
}

.page-services .values-grid .value-item:hover {
    box-shadow: 8px 8px 0 0 #0a0a0a;
    transform: translateY(-5px);
}

.page-services .values-grid .value-item h3,
.page-services .values-grid .value-item p,
.page-services .values-grid .value-item .value-icon {
    color: inherit !important;
}

.page-services .cta-section {
    margin: 0 clamp(0.75rem, 2vw, 1.75rem) clamp(0.75rem, 2vw, 1.75rem);
    color: var(--intent-ink);
    border-radius: 0;
    background: var(--intent-blue);
}

.page-services .cta-section h2,
.page-services .cta-section p {
    color: var(--intent-ink);
}

/* Contact — white field (the site's primary surface) with a soft cyan
   wash; the blue comes forward through the panels' hard shadows. */
.page-contact .contact {
    padding: 9.5rem clamp(1rem, 4vw, 4rem) clamp(6rem, 9vw, 9rem);
    background:
        radial-gradient(circle at 8% 16%, rgba(0, 217, 255, 0.12), transparent 26%),
        radial-gradient(circle at 94% 78%, rgba(0, 217, 255, 0.09), transparent 28%),
        var(--intent-cream);
}

.page-contact .contact-content {
    max-width: 1320px;
}

.page-contact .contact-grid {
    grid-template-columns: minmax(320px, 0.72fr) minmax(480px, 1.18fr);
    gap: 1.25rem;
    align-items: stretch;
}

.page-contact .contact-info,
.page-contact .contact-form {
    border-radius: 0;
    box-shadow: none;
}

.page-contact .contact-info {
    display: flex;
    flex-direction: column;
    padding: clamp(2rem, 4vw, 3.75rem);
    color: #ffffff;
    border: 2px solid #0a0a0a;
    background: var(--intent-ink);
    box-shadow: 14px 14px 0 var(--intent-blue);
}

.page-contact .contact-form {
    border: 2px solid #0a0a0a;
    box-shadow: 8px 8px 0 var(--intent-ink);
}

.page-contact .contact-info::before {
    content: '';
    position: absolute;
    top: 2.25rem;
    right: 2.25rem;
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 0;
    background: var(--intent-blue);
    box-shadow: 0 0 0 0.4rem rgba(0, 217, 255, 0.14);
}

.page-contact .contact-info::after {
    display: none;
}

.page-contact .contact-info .page-kicker {
    margin-bottom: clamp(2.5rem, 6vw, 5rem);
    color: var(--intent-blue);
}

.page-contact .contact h1 {
    margin: 0 0 1.5rem;
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(2.4rem, 3.4vw, 3.4rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    overflow-wrap: normal;
    word-break: normal;
}

.page-contact .contact-info .contact-lede {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.05rem;
    line-height: 1.7;
}

.page-contact .contact-methods {
    margin-top: 1rem;
    border-color: rgba(255, 255, 255, 0.16);
}

.page-contact .contact-methods p {
    border-color: rgba(255, 255, 255, 0.16);
}

.page-contact .contact-methods p,
.page-contact .contact-methods p span,
.page-contact .contact-methods p a,
.page-contact .contact-methods .icon {
    color: #ffffff;
}

.page-contact .contact-methods small {
    color: rgba(255, 255, 255, 0.45);
}

.page-contact .fit-block {
    margin-top: auto;
    padding-top: 3rem;
}

.page-contact .fit-block > p,
.page-contact .fit-list li {
    color: #ffffff;
}

.page-contact .fit-block > p {
    opacity: 0.55;
}

.page-contact .fit-list li {
    opacity: 0.82;
}

.page-contact .fit-list li::before {
    border-radius: 0;
    background: var(--intent-blue);
}

.page-contact .contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem 1.25rem;
    align-content: start;
    padding: clamp(2.25rem, 5vw, 4.5rem);
    color: var(--intent-ink);
    background: var(--intent-paper);
}

.page-contact .form-intro,
.page-contact .form-group-message,
.page-contact .submit-btn,
.page-contact .form-note,
.page-contact .contact-form > input[type='hidden'] {
    grid-column: 1 / -1;
}

.page-contact .form-intro {
    margin-bottom: 1.25rem;
    padding-bottom: 2rem;
    border-color: var(--intent-line);
}

.page-contact .form-intro .section-kicker {
    color: var(--intent-blue-dark);
}

.page-contact .form-intro h2 {
    max-width: none;
    margin: 0.6rem 0 0.75rem;
    color: var(--intent-ink);
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.page-contact .form-intro > p:last-child {
    color: var(--intent-muted);
}

.page-contact .form-group label {
    color: var(--intent-ink);
}

.page-contact .form-group input,
.page-contact .form-group textarea,
.page-contact .form-group select {
    width: 100%;
    min-height: 56px;
    padding: 0.8rem 0;
    color: var(--intent-ink);
    border: 0;
    border-bottom: 1px solid rgba(17, 16, 24, 0.26);
    border-radius: 0;
    background: transparent;
    font-family: inherit;
    font-size: 1rem;
}

.page-contact .form-group textarea {
    min-height: 145px;
}

.page-contact .form-group input:focus,
.page-contact .form-group textarea:focus,
.page-contact .form-group select:focus {
    border-bottom-color: var(--intent-blue);
    box-shadow: 0 2px 0 var(--intent-blue);
}

.page-contact .submit-btn {
    min-height: 60px;
    margin-top: 0.75rem;
    color: #ffffff;
    border: 2px solid #0a0a0a;
    background: #0a0a0a;
}

.page-contact .submit-btn:hover,
.page-contact .submit-btn:focus-visible {
    color: var(--intent-ink);
    background: var(--intent-blue);
}

.page-contact .form-note {
    color: var(--intent-muted);
    text-align: center;
}

.page-contact .info-section {
    padding-block: clamp(6rem, 9vw, 9rem);
    background: var(--intent-cream);
}

.page-contact .info-content > h2 {
    color: var(--intent-ink);
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.page-contact .info-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.page-contact .info-box {
    min-height: 270px;
    padding: 1.75rem;
    color: var(--intent-ink) !important;
    border: 2px solid #0a0a0a;
    border-radius: 0;
    background: var(--intent-paper) !important;
}

/* Alternate black / cyan fields — same rhythm as the values grids. */
.page-contact .info-box:nth-child(1),
.page-contact .info-box:nth-child(3) {
    color: #ffffff !important;
    background: #111214 !important;
}

.page-contact .info-box:nth-child(2),
.page-contact .info-box:nth-child(4) {
    background: var(--intent-blue) !important;
}

.page-contact .info-box:hover {
    box-shadow: 8px 8px 0 0 #0a0a0a;
    transform: translateY(-5px);
}

.page-contact .info-box h3,
.page-contact .info-box p {
    color: inherit !important;
}

@media (max-width: 1000px) {
    .page-contact .contact-grid {
        grid-template-columns: 1fr;
    }

    .page-contact .contact-info .page-kicker {
        margin-bottom: 3rem;
    }

    .page-contact .fit-block {
        margin-top: 0;
    }

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

@media (max-width: 768px) {
    .page-services .cta-group {
        display: grid;
        grid-template-columns: 1fr;
    }

    .page-services .services,
    .page-services .services-header {
        grid-template-columns: 1fr;
    }

    .page-services .services-header > *,
    .page-services .services-header > p:not(.section-kicker),
    .page-services .pricing-jump {
        grid-column: 1;
    }

    .page-services .services-header > p:not(.section-kicker) {
        grid-row: auto;
        margin-top: 1rem;
    }

    .page-services .service-item,
    .page-services .service-item + .service-item,
    .page-services .service-item:nth-of-type(n) {
        grid-column: 1;
        min-height: 390px;
    }

    .page-services .pricing-tier--featured {
        transform: none;
    }

    .page-contact .contact {
        padding: 6.75rem 1rem 4.5rem;
    }

    .page-contact .contact-info,
    .page-contact .contact-form {
        border-radius: 0;
    }

    .page-contact .contact-info {
        box-shadow: 8px 8px 0 var(--intent-blue);
    }

    .page-contact .contact-form {
        box-shadow: 5px 5px 0 var(--intent-ink);
    }

    .page-contact .contact h1 {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .page-contact .contact-form {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .page-contact .contact-form > * {
        grid-column: 1;
    }

    .page-contact .form-intro h2 {
        font-size: clamp(2.6rem, 11vw, 3.8rem);
    }

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

@media (prefers-reduced-motion: reduce) {
    .page-services .service-item,
    .page-services .service-item:hover {
        transform: none;
    }
}
