/* =============================================================
   Rider Tech website
   All styles live here. No framework or external font is required.
   Palette values below are the main controls for future branding.
   ============================================================= */

:root {
    --navy: #101d40;
    --text: #43516b;
    --pink: #d90069;
    --pink-hover: #b90059;
    --cyan: #04b5e5;
    --blue: #087eae;
    --ice: #edf8fd;
    --line: #daebf3;
    --white: #ffffff;
    --content-width: 1200px;
}

/* The credential band shares the contact gradient and particles, without its neon line. */
.credibility-strip {
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 0% 100%, #074960 0%, transparent 48%), radial-gradient(ellipse at 100% 0%, #492149 0%, transparent 45%), var(--navy);
    color: #dae6f4;
    border-block: 1px solid #ffffff20;
}

.credibility-list {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
    margin-block: 0;
    padding-block: 30px;
    padding-inline: 0;
}

.credibility-list li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 8px 24px;
}

.credibility-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    fill: none;
    stroke: #ff74b6;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.credibility-list li:nth-child(2) .credibility-icon {
    stroke: #7ee3ff;
}

.credibility-list strong,
.credibility-list span {
    display: block;
}

.credibility-list strong {
    color: var(--white);
    font-size: 17px;
    line-height: 1.3;
}

.credibility-list span {
    margin-top: 6px;
    font-size: 12px;
}

@media (max-width: 900px) {
    .credibility-list {
        grid-template-columns: 1fr;
        padding-block: 18px;
    }

    .credibility-list li {
        justify-content: flex-start;
        padding: 18px 0;
    }

    .credibility-list li + li {
        border-left: 0;
        border-top: 1px solid #ffffff30;
    }
}

/* Base typography and accessibility. */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 28px;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--white);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p {
    margin: 0;
}

h1, h2, h3 {
    color: var(--navy);
    line-height: 1.15;
}

h1, h2 {
    letter-spacing: -0.045em;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible, summary:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 5px;
    border-radius: 3px;
}

.container {
    width: min(var(--content-width), calc(100% - 64px));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 10;
    padding: 12px 20px;
    color: var(--white);
    background: var(--navy);
}

.skip-link:focus {
    top: 12px;
}

.icon-library {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    width: 23px;
    height: 23px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.eyebrow {
    color: var(--blue);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* Shared buttons and smaller text links. */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    min-height: 52px;
    padding: 13px 24px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--white);
    background: var(--pink);
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    transition: background-color 160ms ease, box-shadow 160ms ease;
}

.button:hover {
    background: var(--pink-hover);
    box-shadow: 0 5px 18px #d900691f;
}

.button-small {
    min-height: 43px;
    padding: 10px 16px;
    font-size: 13px;
    gap: 9px;
}

.button-outline {
    border-color: var(--blue);
    color: var(--navy);
    background: var(--white);
}

.button-outline:hover {
    background: var(--ice);
    box-shadow: none;
}

.text-link {
    display: inline-block;
    margin-top: 18px;
    color: var(--pink);
    font-size: 14px;
    font-weight: 700;
}

.text-link span {
    margin-left: 6px;
}

.text-link:hover, .main-nav a:hover, .site-footer a:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}

/* Header and footer share the original pink vector logo. */
.site-header {
    border-bottom: 1px solid var(--line);
    background: var(--white);
}

.header-layout, .header-actions, .main-nav {
    display: flex;
    align-items: center;
}

.header-layout {
    min-height: 84px;
    justify-content: space-between;
    gap: 24px;
}

.brand-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
    padding-block: 8px;
}

.brand-logo img {
    display: block;
    width: 58px;
    height: auto;
}

/* Real HTML lettering inherits the site's font alongside the vector mark. */
.brand-name {
    color: var(--pink);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.15;
}

.main-nav {
    gap: 30px;
    color: var(--navy);
    font-size: 14px;
    font-weight: 600;
}

.header-actions {
    gap: 24px;
}
/* Shared social links keep the header and footer consistent. */
.social-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-links a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--pink);
}

.social-links a:hover {
    background: #d9006910;
}

.site-footer .social-links {
    margin-top: 20px;
}

.site-footer .social-links a {
    color: var(--white);
    border-color: #ffffff30;
}

.phone-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--navy);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.phone-link .icon {
    color: var(--blue);
    width: 19px;
}

/* Hero: a white gradient protects the text over the desk photograph. */
.hero {
    background-color: var(--ice);
    background-image: linear-gradient(90deg, #f3faff 0%, #f3fafff5 30%, #f3faff95 48%, #ffffff00 66%), url("../assets/hero.webp");
    background-position: center, right center;
    background-size: cover;
}

.hero-layout {
    display: flex;
    align-items: center;
    min-height: 505px;
    padding-block: 54px 90px;
}

.hero-copy {
    max-width: 545px;
}

.hero h1 {
    margin-top: 18px;
    font-size: clamp(42px, 4.4vw, 63px);
    font-weight: 800;
    line-height: 1.03;
}

.hero h1 span {
    color: var(--pink);
}

.hero-description {
    max-width: 420px;
    margin-top: 21px;
    color: var(--navy);
    font-size: 19px;
    line-height: 1.5;
}

.veteran-label {
    margin-block: 23px;
    color: var(--navy);
    font-size: 11px;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

/* Support panel overlaps the hero and keeps remote access prominent. */
.support-section {
    position: relative;
    margin-top: -49px;
}

.support-panel {
    display: flex;
    align-items: center;
    gap: 26px;
    padding: 29px 34px;
    border: 1px solid #e3eff7;
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 8px 28px #184d7414;
}

.support-icon {
    width: 60px;
    height: 60px;
    color: var(--cyan);
    stroke-width: 1.6;
}

.support-copy {
    flex: 1;
    padding-left: 25px;
    border-left: 1px solid var(--line);
}

.support-copy h2 {
    margin-bottom: 7px;
    font-size: 32px;
}

.support-copy p {
    font-size: 15px;
    line-height: 1.5;
}

.support-actions {
    display: flex;
    gap: 16px;
}

/* One square sprite sheet holds eight drawings. The artwork rows sit
   inside white margins; these positions show one square drawing at a time. */
.illustration {
    flex-shrink: 0;
    width: 140px;
    aspect-ratio: 1;
    background-image: url("../assets/illustrations.webp");
    background-repeat: no-repeat;
    background-size: 400% 400%;
    mix-blend-mode: multiply;
}

.illustration-business {
    background-position: 0% 28.5%;
}

.illustration-computer {
    background-position: 66.667% 28.5%;
}

.illustration-managed {
    background-position: 100% 28.5%;
}

.illustration-network {
    background-position: 0% 71.5%;
}

.illustration-backup {
    background-position: 66.667% 71.5%;
}

.illustration-consulting {
    background-position: 100% 71.5%;
}
/* Web services uses its own light pencil drawing. */
.illustration-web {
    background-image: url("../assets/web-services.webp");
    background-size: 135%;
    background-position: center;
}

/* Benefits lead the sales flow; the owner panel also accepts a future video. */
.why-us {
    padding-block: 65px 40px;
}

.why-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    align-items: center;
    gap: 48px;
}

.why-copy > h2 {
    margin-block: 14px 18px;
    font-size: 39px;
}

.why-intro {
    max-width: 570px;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-block: 28px 44px;
}

.benefit-number {
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
}

.benefit-grid h3 {
    margin-block: 7px 9px;
    font-size: 18px;
}

.benefit-grid p {
    font-size: 14px;
}

.owner-panel {
    overflow: hidden;
    border: 1px solid #c9e6f0;
    border-radius: 12px;
    background: #e0f5fc;
}

.owner-art {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #d1f2fa, #f1faff);
}

.owner-art .illustration {
    width: 65%;
}

.owner-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--navy);
}

/* Preserve the full portrait so the face and embroidered logo remain visible. */
.owner-portrait {
    display: block;
    width: 100%;
    height: auto;
}

.owner-caption {
    padding: 26px;
}

.owner-caption h3 {
    margin-block: 10px;
    font-size: 25px;
}

.owner-caption > p:not(.eyebrow) {
    font-size: 15px;
}

@media (max-width: 800px) {
    .why-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .why-us {
        padding-top: 45px;
    }
    .why-copy > h2 {
        font-size: 32px;
    }
    .owner-panel {
        width: 100%;
        max-width: 480px;
    }
}

@media (max-width: 380px) {
    .benefit-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Service descriptions expand in place with native HTML details. */
.services {
    margin-top: 0;
    padding-block: 55px 52px;
    background: var(--white);
}

.section-heading {
    margin-bottom: 38px;
    text-align: center;
}

.section-heading h2 {
    margin-block: 12px;
    font-size: 37px;
}

.section-heading::after {
    display: block;
    width: 60px;
    height: 2px;
    margin: 19px auto 0;
    background: var(--cyan);
    content: "";
}

.mobile-break {
    display: none;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
    grid-auto-rows: 1fr;
}

/* Individual cards keep each service distinct while preserving pencil artwork. */
.service {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(145deg, #ffffff 65%, #f5fafc);
    box-shadow: 0 7px 22px #101d4006;
}

.service .illustration {
    width: 110px;
    margin-block: 0;
}

.service-copy {
    min-width: 0;
    position: relative;
    width: 100%;
}

.service h3 {
    /* Reserve two lines so descriptions align even when a title fits on one. */
    min-height: 2.5em;
    margin-bottom: 12px;
    font-size: 18px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.service p {
    font-size: 14px;
    line-height: 1.55;
}

.service summary {
    width: fit-content;
    margin: 13px auto 0;
    color: var(--pink);
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
}

.service details[open] summary {
    margin-bottom: 12px;
}

.service details p {
    padding-left: 12px;
    border-left: 2px solid var(--cyan);
}

/* Customer reviews sit between supported technologies and the contact form. */
.customer-reviews {
    padding-block: 48px;
    background: var(--white);
}

.customer-reviews .section-heading {
    margin-bottom: 30px;
}
/* Supported brand cards: one repeated track creates a continuous loop. */
.technology-section {
    padding-block: 38px 45px;
    background: #edf8fd;
    border-block: 1px solid var(--line);
}

.technology-heading {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 20px;
    margin-bottom: 24px;
}

.technology-heading h2 {
    margin-top: 10px;
    font-size: 30px;
}

.brand-window {
    overflow: hidden;
}

.brand-track {
    display: flex;
    width: max-content;
    animation: brand-scroll 91s linear infinite;
}

.brand-group {
    display: flex;
    flex-shrink: 0;
    gap: 20px;
    margin: 0;
    padding: 0 20px 0 0;
    list-style: none;
}

.brand-group li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 230px;
    height: 90px;
    border: 1px solid #cce2ee;
    border-radius: 9px;
    background: var(--white);
    color: var(--navy);
    font-size: 19px;
    font-weight: 700;
}

/* Brand artwork shares one local SVG file to keep assets compact. */
.technology-logo {
    width: 185px;
    height: 45px;
}

.technology-logo-ubiquiti {
    width: 135px;
    height: 65px;
}

.technology-logo-cisco {
    width: 95px;
    height: 55px;
}

@keyframes brand-scroll {
    to {
        transform: translateX(-50%);
    }
}

/* About and contact sections. */
.about {
    padding-top: 55px;
    padding-bottom: 55px;
}

.about-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 40px 48px;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(120deg, #d9f5fb, #e8f8fc);
}

.about-copy {
    max-width: 650px;
    position: relative;
}

.about h2 {
    margin-block: 14px 20px;
    font-size: 37px;
}

.about-copy > p:not(.eyebrow) + p {
    margin-top: 12px;
}

.about-illustration {
    width: 230px;
    margin-block: 0;
}

.contact {
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 0% 100%, #074960 0%, transparent 48%), radial-gradient(ellipse at 100% 0%, #492149 0%, transparent 45%), var(--navy);
    color: #dae6f4;
}

/* Two tiled particle layers drift gently; no scripts or new images. */
.contact::before,
.credibility-strip::before {
    position: absolute;
    inset: -90px 0;
    background-image: radial-gradient(circle, #7ee3ff90 1px, transparent 2px), radial-gradient(circle, #ff74b660 1px, transparent 2px);
    background-size: 89px 89px, 137px 137px;
    background-position: 0 0, 31px 25px;
    opacity: 0.45;
    animation: particle-drift 16s linear infinite;
    pointer-events: none;
    content: "";
}

@keyframes particle-drift {
    to {
        transform: translateY(89px);
    }
}

.contact::after {
    position: absolute;
    right: -10%;
    bottom: -150px;
    width: 60%;
    height: 210px;
    border: 1px solid #04b5e577;
    border-radius: 50%;
    box-shadow: 0 -9px 0 -8px #04b5e577, 0 -18px 0 -17px #04b5e577, 0 -27px 0 -26px #d9006980;
    transform: rotate(-14deg);
    pointer-events: none;
    content: "";
}

.contact-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding-block: 48px;
}

.contact-phone {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    padding: 18px 24px;
    border: 1px solid #7ee3ff60;
    border-radius: 10px;
    background: #ffffff08;
    color: var(--white);
    font-weight: 700;
}

.contact-phone .icon {
    width: 28px;
    height: 28px;
    color: #7ee3ff;
}

.call-copy {
    display: grid;
    gap: 3px;
}

.call-label {
    color: #dae6f4;
    font-size: 13px;
    font-weight: 400;
}

.call-number {
    font-size: 21px;
    line-height: 1.3;
}

.contact-phone:hover {
    background: #ffffff12;
    border-color: #7ee3ff;
}

.talk-form {
    padding: 30px;
    border: 1px solid #ffffff25;
    border-radius: 12px;
    background: #ffffff;
    color: var(--text);
    box-shadow: 0 12px 35px #00000020;
}

.talk-form h3 {
    font-size: 25px;
}

.form-intro {
    margin-top: 8px;
    font-size: 14px;
}

.form-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-block: 22px;
}

.talk-form label {
    display: block;
    margin-bottom: 6px;
    color: var(--navy);
    font-size: 12px;
    font-weight: 600;
}

.talk-form label span {
    font-size: 10px;
    font-weight: 400;
}

.talk-form input,
.talk-form textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px;
    border: 1px solid #b8cad8;
    border-radius: 5px;
    background: #f8fcff;
    color: var(--navy);
    font: inherit;
    font-size: 15px;
}

.talk-form input:focus-visible,
.talk-form textarea:focus-visible,
button:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
}

.talk-form textarea {
    resize: vertical;
}

.form-message {
    grid-column: 1 / -1;
}

.contact .talk-form .button {
    width: 100%;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.form-note {
    margin-top: 12px;
    font-size: 11px;
    line-height: 1.5;
}

.form-trap {
    display: none;
}

.form-errors, .form-success {
    margin-top: 18px;
    padding: 12px 15px;
    border-radius: 5px;
    background: #fff1f6;
    color: #8e1745;
    font-size: 13px;
}

.form-errors ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.form-success {
    background: #e7f8ee;
    color: #175530;
}

.contact .eyebrow {
    color: #70dcff;
}

.contact h2 {
    margin-block: 12px;
    color: var(--white);
    font-size: 34px;
}

.contact .button {
    flex-shrink: 0;
    font-size: 20px;
}

.footer-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 50px;
    padding-block: 48px 36px;
    font-size: 14px;
}

.footer-brand p {
    max-width: 270px;
    margin-top: 15px;
}

.footer-ownership {
    color: var(--cyan);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-footer h2 {
    margin-bottom: 18px;
    color: var(--white);
    font-size: 18px;
}

.footer-links ul {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-contact address {
    display: grid;
    gap: 12px;
    font-style: normal;
}

.footer-phone {
    color: var(--white);
    font-size: 22px;
    font-weight: 700;
}

.footer-contact p {
    margin-top: 18px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-block: 20px;
    border-top: 1px solid #ffffff20;
    font-size: 12px;
}

/* A deeper navy footer gives the page a clear visual ending. */
.site-footer {
    border-top: 1px solid #ffffff20;
    color: #c9d8e9;
    background: #09132b;
}

.site-footer .brand-logo img {
    width: 52px;
}
/* Tablet layouts: keep support accessible and reduce service columns. */
@media (max-width: 1050px) {
    .header-actions .phone-link {
        display: none;
    }
    .main-nav {
        gap: 22px;
    }
    .support-panel {
        flex-wrap: wrap;
    }
    .support-actions {
        margin-left: 86px;
    }

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

/* Phones: no hidden navigation, horizontal scrolling or tiny support buttons. */
@media (max-width: 700px) {
    .container {
        width: calc(100% - 36px);
    }
    .header-layout {
        flex-wrap: wrap;
        gap: 16px;
        padding-block: 18px 12px;
    }

    .brand-logo img {
        width: 50px;
    }
    .header-actions {
        margin-left: auto;
    }
    .button-small {
        padding-inline: 11px;
        font-size: 12px;
    }

    .main-nav {
        order: 3;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
        gap: 8px 20px;
    }

    .main-nav a {
        padding-block: 8px;
    }
    .hero {
        background-image: linear-gradient(90deg, #f3fafffa 0%, #f3faffed 55%, #f3faff90 100%), url("../assets/hero.webp");
        background-position: center, 66% center;
    }

    .hero-layout {
        min-height: 465px;
        padding-block: 42px 80px;
    }

    .hero h1 {
        font-size: clamp(38px, 8.5vw, 55px);
    }
    .hero-description {
        font-size: 17px;
    }
    .hero .eyebrow {
        font-size: 10px;
        letter-spacing: 0.1em;
    }

    .support-panel {
        gap: 16px;
        padding: 24px;
    }

    .support-icon {
        width: 42px;
        height: 42px;
    }

    .support-copy {
        padding-left: 16px;
    }
    .support-copy h2 {
        font-size: 26px;
    }
    .support-copy p {
        font-size: 13px;
    }
    .support-actions {
        flex-direction: column;
        width: 100%;
        margin-left: 0;
        gap: 10px;
    }

    .services {
        margin-top: 0;
        padding-block: 35px 30px;
    }

    .section-heading h2, .about h2 {
        font-size: 30px;
    }
    .section-heading > p:not(.eyebrow) {
        font-size: 14px;
    }
    .mobile-break {
        display: block;
    }
    .service-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .service {
        flex-direction: column;
        gap: 18px;
        padding: 22px 18px;
    }

    .service .illustration {
        width: 85px;
        margin-block: 0;
    }

    .service-copy {
        padding-block: 5px;
    }
    .about {
        padding-top: 35px;
        padding-bottom: 35px;
    }

    .about-panel {
        flex-direction: column;
        align-items: flex-start;
        padding: 30px;
    }

    .about-illustration {
        align-self: center;
        width: 200px;
        margin-block: 0;
    }

    .contact-layout {
        align-items: flex-start;
        flex-direction: column;
        padding-block: 35px;
        gap: 22px;
    }

    .contact h2 {
        font-size: 29px;
    }
    .footer-layout {
        grid-template-columns: 1fr;
        padding-block: 35px;
        gap: 30px;
    }

    .footer-bottom {
        flex-wrap: wrap;
        gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact::before, .credibility-strip::before, .brand-track {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
    .button {
        transition: none;
    }
}

/* Meeting requests stay readable on smaller screens. */
@media (max-width: 800px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
    .technology-heading {
        align-items: center;
        flex-direction: column;
    }

    .talk-form {
        width: 100%;
        padding: 24px;
    }
}

@media (max-width: 450px) {
    .form-fields {
        grid-template-columns: 1fr;
    }
}

/* Square brand marks use the same visual height as the wordmarks. */
.technology-logo-tplink,
.technology-logo-dell,
.technology-logo-hp {
    width: 60px;
    height: 60px;
}

.technology-logo-synology {
    height: 170px;
}

.technology-logo-ibm {
    height: 125px;
}
/* Three-card review carousel: compact sides and a prominent center card. */
.review-window {
    overflow: hidden;
    padding-block: 20px;
}

.review-track {
    position: relative;
    transition: height 550ms ease;
}

.review-card {
    position: absolute;
    top: 0;
    left: 33.333%;
    display: flex;
    flex-direction: column;
    width: 33.333%;
    height: auto;
    margin: 0;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fcfafb;
    opacity: 0;
    transform: translateX(200%) scale(0.88);
    transform-origin: center top;
    transition: transform 550ms ease, opacity 550ms ease, box-shadow 550ms ease;
    pointer-events: none;
}

.review-card[data-position="-2"] {
    transform: translateX(-200%) scale(0.88);
}

.review-card[data-position="-1"] {
    transform: translateX(-100%) scale(0.88);
    opacity: 0.72;
}

.review-card[data-position="0"] {
    transform: translateX(0) scale(1);
    opacity: 1;
}

.review-card[data-position="1"] {
    transform: translateX(100%) scale(0.88);
    opacity: 0.72;
}

.review-card.is-selected {
    z-index: 1;
    border-color: #d9006940;
    box-shadow: 0 8px 20px #101d4010;
    pointer-events: auto;
}

/* Review text expands on request; the card never uses internal scrolling. */
.review-card blockquote {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.6;
}

.review-card blockquote::before,
.review-card blockquote::after {
    display: block;
    color: var(--pink);
    font-family: Georgia, serif;
    font-size: 44px;
    line-height: 0.8;
}

.review-card blockquote::before {
    content: "“";

    margin-bottom: 10px;
}

.review-card blockquote::after {
    content: "”";
    margin-top: 14px;
    text-align: right;
}

.review-card blockquote p + p {
    margin-top: 14px;
}

.review-card figcaption {
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

.review-card figcaption strong,
.review-card figcaption span {
    display: block;
}

.review-card figcaption strong {
    color: var(--navy);
    font-size: 14px;
}

.review-card figcaption span {
    margin-top: 5px;
    font-size: 12px;
}

@media (max-width: 700px) {
    .review-card {
        left: 11%;
        width: 78%;
        padding: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .review-card, .review-track {
        transition: none;
    }
}

/* Clamp only the review text; quotation marks and attribution remain visible. */
.review-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    overflow: hidden;
}

.review-card.is-expanded .review-text {
    display: block;
    overflow: visible;
}

.review-toggle {
    align-self: flex-start;
    margin: -4px 0 18px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--pink);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.review-toggle[hidden] {
    display: none;
}
/* Reserve the control's space so carousel height stays steady as selection moves. */
.review-card:not(.is-selected) .review-toggle {
    visibility: hidden;
}

.service-area {
    margin-top: 22px;
    max-width: 480px;
    font-size: 14px;
    line-height: 1.7;
}

.service-area strong {
    color: var(--white);
}

.review-toggle:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 4px;
}

/* Mobile finishing: collapsible navigation, centered contact, and compact footer. */
.menu-toggle,
.mobile-connect {
    display: none;
}

@media (max-width: 700px) {
    .header-layout {
        gap: 12px;
        padding-block: 12px;
    }

    .header-actions {
        gap: 12px;
    }
    .site-header.menu-ready .menu-toggle {
        display: grid;
        place-items: center;
        width: 42px;
        height: 42px;
        padding: 0;
        border: 1px solid var(--line);
        border-radius: 8px;
        color: var(--navy);
        background: var(--white);
        cursor: pointer;
    }

    .site-header.menu-ready .main-nav {
        display: none;
    }
    .site-header.menu-open .main-nav {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding-top: 10px;
        border-top: 1px solid var(--line);
    }

    .site-header.menu-open .main-nav a {
        padding: 12px 8px;
        text-align: center;
    }

    .desktop-connect {
        display: none;
    }
    .mobile-connect {
        display: inline-flex;
        justify-self: center;
    }

    .owner-panel {
        justify-self: center;
    }
    .credibility-list li {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 10px;
    }

    .credibility-list li + li {
        border: 0;
    }
    .contact-layout > div {
        text-align: center;
    }
    .service-area {
        margin-inline: auto;
    }
    .footer-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 20px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
        padding-bottom: 24px;
        border-bottom: 1px solid #ffffff20;
    }

    .footer-brand p {
        margin-inline: auto;
    }
    .site-footer h2 {
        font-size: 16px;
    }
    .footer-phone {
        font-size: 18px;
    }
    .footer-contact p {
        font-size: 12px;
    }
    .footer-links {
        font-size: 13px;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Approved navbar gradient, without the animated particles. */
.site-header {
    background: radial-gradient(ellipse at 0% 100%, #074960 0%, transparent 48%), radial-gradient(ellipse at 100% 0%, #492149 0%, transparent 45%), var(--navy);
    border-bottom-color: #ffffff20;
}

.site-header .main-nav,
.site-header .phone-link,
.site-header .social-links a {
    color: var(--white);
}

.site-header .phone-link .icon {
    color: #7ee3ff;
}

.site-header .social-links a {
    border-color: #ffffff30;
}

.site-header .social-links a:hover {
    background: #ffffff12;
}

@media (max-width: 700px) {
    .site-header.menu-ready .menu-toggle {
        color: var(--white);
        background: #ffffff08;
        border-color: #ffffff30;
    }

    .site-header.menu-open .main-nav {
        border-top-color: #ffffff30;
    }
}
/* Portfolio shares the homepage navigation, footer and stylesheet. */
.portfolio-intro {
    padding-block: 65px 30px;
    text-align: center;
}

.portfolio-intro h1 {
    margin-block: 14px 20px;
    font-size: clamp(36px, 5vw, 56px);
}

.portfolio-showcase {
    margin-bottom: 60px;
    padding: 40px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fcfafb;
    text-align: center;
}

.portfolio-contact {
    padding-block: 45px;
    background: var(--ice);
    text-align: center;
}

.portfolio-contact h2 {
    font-size: 30px;
}

.portfolio-contact p {
    margin-block: 16px 24px;
}

.main-nav a[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 5px;
}

/* Portfolio device frames use real responsive screenshots, with no extra libraries. */
.portfolio-showcase {
    padding: 0;
    border: 0;
    background: none;
    text-align: left;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

.project-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
}

/* Segmented category control: pink selection with a soft cyan backdrop. */
.portfolio-filter {
    display: flex;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 32px;
    padding: 6px;
    gap: 6px;
    border: 1px solid #b9dce9;
    border-radius: 999px;
    background: #edf8fd;
}

.portfolio-filter[hidden],
.project-card[hidden] {
    display: none;
}

.portfolio-filter button {
    padding: 12px 22px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--navy);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.portfolio-filter button[aria-pressed="true"] {
    color: #fff;
    background: var(--pink);
    box-shadow: 0 4px 12px #d9006925;
}

.portfolio-filter button:focus-visible {
    outline: 3px solid #148ca9;
    outline-offset: 2px;
}

.device-preview {
    position: relative;
    padding: 34px 60px 48px 26px;
    background: linear-gradient(135deg, #edf8fd, #f8f0f5);
}

.desktop-device {
    position: relative;
    padding: 10px 10px 17px;
    border-radius: 12px 12px 5px 5px;
    background: #17233d;
    box-shadow: 0 12px 24px #101d4020;
}

.desktop-device::after {
    position: absolute;
    bottom: -9px;
    left: -5%;
    width: 110%;
    height: 9px;
    border-radius: 0 0 12px 12px;
    background: #aeb8c8;
    content: "";
}

.desktop-device img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1366 / 900;
    object-fit: cover;
}

.phone-device {
    position: absolute;
    right: 22px;
    bottom: 24px;
    width: 23%;
    padding: 6px;
    border: 2px solid #34405a;
    border-radius: 18px;
    background: #17233d;
    box-shadow: 0 8px 18px #101d4040;
}

.phone-device img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 11px;
}

/* Keep the illustrated future project screens inside the existing device frames. */
.future-desktop,
.future-phone {
    display: block;
    width: 100%;
    height: auto;
}

.future-phone {
    border-radius: 11px;
}

.project-copy {
    padding: 26px;
}

.project-copy h2 {
    margin-block: 10px 14px;
    font-size: 26px;
}

.project-copy > p:not(.eyebrow) {
    font-size: 14px;
}

.project-copy .text-link {
    display: inline-block;
    margin-top: 20px;
}

.project-pending {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 335px;
    padding: 30px;
    background: linear-gradient(135deg, #edf8fd, #f8f0f5);
}

.project-pending strong {
    margin-block: 20px 8px;
    font-size: 34px;
    color: var(--navy);
}

.project-status {
    padding: 5px 12px;
    border-radius: 20px;
    color: var(--pink);
    background: #d9006910;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 700px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .device-preview {
        padding: 25px 44px 40px 18px;
    }
    .phone-device {
        right: 16px;
        bottom: 18px;
        padding: 4px;
        border-radius: 13px;
    }

    .project-pending {
        min-height: 230px;
    }
}
