/* ==========================================================================
   RJ's Design Studio — Global Stylesheet
   Palette drawn from the logo: cyan → purple gradient on deep navy
   ========================================================================== */

:root {
    --navy-900: #0b1026;
    --navy-800: #121a38;
    --navy-700: #1b2549;
    --cyan: #3ec6f0;
    --purple: #7d3fa8;
    --violet: #5a54c9;
    --grad: linear-gradient(120deg, var(--cyan), var(--violet) 55%, var(--purple));
    --text: #e8ebf5;
    --text-muted: #9aa3c0;
    --surface: #ffffff;
    --ink: #1b2136;
    --ink-muted: #5b6478;
    --radius: 14px;
    --container: 1140px;
    --font-display: "Playfair Display", Georgia, serif;
    --font-body: "Poppins", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--ink);
    background: var(--surface);
    line-height: 1.7;
}

img { max-width: 100%; display: block; }

a { color: var(--violet); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--cyan); }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.25; }

/* Gradient text helper, used for headings/accents */
.grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(27, 33, 54, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.brand-logo { height: 52px; width: auto; }

.nav-list {
    display: flex;
    gap: 0.25rem;
    list-style: none;
}

.nav-link {
    display: block;
    padding: 0.5rem 0.9rem;
    font-size: 0.92rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--ink);
    border-radius: 999px;
}

.nav-link:hover { color: var(--purple); }

.nav-link.active {
    background: var(--grad);
    color: #fff;
    font-weight: 500;
}

/* Mobile hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Page scaffolding (placeholder pages use these)
   ========================================================================== */

.page-hero {
    background: radial-gradient(1200px 500px at 80% -10%, rgba(62, 198, 240, 0.25), transparent 60%),
                radial-gradient(900px 500px at 10% 110%, rgba(125, 63, 168, 0.3), transparent 60%),
                var(--navy-900);
    color: var(--text);
    padding: 5rem 0 4.5rem;
    text-align: center;
}

.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 0.75rem; }
.page-hero p { color: var(--text-muted); max-width: 640px; margin: 0 auto; }

.section { padding: 4rem 0; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: var(--navy-900);
    color: var(--text);
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 3rem;
    padding-top: 3.5rem;
    padding-bottom: 2.5rem;
}

.footer-logo {
    height: 56px;
    width: auto;
    /* the logo artwork is dark-on-light; lift it on navy */
    background: #fff;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
}

.footer-tagline {
    margin-top: 1.25rem;
    font-style: italic;
    color: var(--text-muted);
    max-width: 320px;
}

.footer-heading {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.1rem;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.45rem; }
.footer-links a { color: var(--text-muted); font-size: 0.92rem; }
.footer-links a:hover { color: var(--cyan); }

.footer-contact { list-style: none; }

.footer-contact li {
    margin-bottom: 0.9rem;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.footer-contact a { color: var(--text-muted); }
.footer-contact a:hover { color: var(--cyan); }

.contact-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--cyan);
    margin-bottom: 0.1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(232, 235, 245, 0.1);
    padding: 1.1rem 0;
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: center;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 860px) {
    .nav-toggle { display: flex; }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid rgba(27, 33, 54, 0.08);
        display: none;
    }

    .site-nav.open { display: block; }

    .nav-list {
        flex-direction: column;
        padding: 0.75rem 1.5rem 1.25rem;
        gap: 0.35rem;
    }

    .footer-grid { grid-template-columns: 1fr; gap: 2.25rem; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 0.7rem 1.6rem;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
    background: var(--grad);
    color: #fff;
    box-shadow: 0 8px 24px rgba(90, 84, 201, 0.35);
}
.btn-primary:hover { color: #fff; box-shadow: 0 12px 30px rgba(90, 84, 201, 0.5); }

.btn-ghost {
    border: 1px solid rgba(232, 235, 245, 0.4);
    color: var(--text);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.btn-light {
    background: #fff;
    color: var(--purple);
    box-shadow: 0 8px 24px rgba(11, 16, 38, 0.25);
}
.btn-light:hover { color: var(--violet); }

/* ==========================================================================
   Hero (homepage)
   ========================================================================== */

.hero {
    background: radial-gradient(1200px 600px at 85% -10%, rgba(62, 198, 240, 0.28), transparent 60%),
                radial-gradient(1000px 600px at 5% 110%, rgba(125, 63, 168, 0.35), transparent 60%),
                var(--navy-900);
    color: var(--text);
    text-align: center;
    padding: 7rem 0 7.5rem;
}

.hero-kicker {
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--cyan);
    margin-bottom: 1.25rem;
}

.hero-title { font-size: clamp(2.6rem, 6.5vw, 4.4rem); margin-bottom: 1.1rem; }

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 2.25rem;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   Sections & headings
   ========================================================================== */

.section-kicker {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--purple);
    margin-bottom: 0.6rem;
}

.section-title { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 1.4rem; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }

.section-dark {
    background: var(--navy-900);
    color: var(--text);
}
.section-dark .section-kicker { color: var(--cyan); }

.section-tint { background: #f4f5fb; }

/* ==========================================================================
   Split layout (Who We Are)
   ========================================================================== */

.split {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3.5rem;
    align-items: center;
}

.split-media { position: relative; }

.split-media img {
    border-radius: var(--radius);
    box-shadow: 0 24px 60px rgba(11, 16, 38, 0.25);
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.media-badge {
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1.25rem;
    background: rgba(11, 16, 38, 0.85);
    backdrop-filter: blur(6px);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-size: 0.88rem;
    font-style: italic;
    line-height: 1.55;
    text-align: center;
}

.split-copy p { margin-bottom: 1.1rem; color: var(--ink-muted); }
.split-copy .btn { margin-top: 0.75rem; }

/* ==========================================================================
   Card grids
   ========================================================================== */

.card-grid { display: grid; gap: 1.5rem; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Value proposition cards (dark section) */
.value-card {
    background: var(--navy-800);
    border: 1px solid rgba(232, 235, 245, 0.08);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.value-card:hover { transform: translateY(-6px); border-color: rgba(62, 198, 240, 0.45); }

.value-card h3 { font-size: 1.12rem; margin: 1rem 0 0.6rem; }
.value-card p { font-size: 0.9rem; color: var(--text-muted); }

.value-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--grad);
    color: #fff;
}

/* CTA band */
.cta-band {
    background: var(--grad);
    color: #fff;
    text-align: center;
    margin: 0;
}
.cta-inner h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: 0.6rem; }
.cta-inner p { opacity: 0.9; margin-bottom: 1.75rem; }

/* ==========================================================================
   About page — CEO message
   ========================================================================== */

.ceo-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 3rem;
    align-items: start;
}

.ceo-card {
    background: var(--navy-900);
    color: var(--text);
    border-radius: var(--radius);
    padding: 2.25rem 1.75rem;
    text-align: center;
    position: sticky;
    top: 100px;
}

.ceo-avatar {
    width: 96px;
    height: 96px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: var(--grad);
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
}

.ceo-card h3 { font-size: 1.3rem; }

.ceo-role {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--cyan);
    margin: 0.35rem 0 1.25rem;
}

.ceo-quote {
    font-style: italic;
    font-size: 0.92rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(232, 235, 245, 0.12);
    padding-top: 1.25rem;
}

.ceo-message p { margin-bottom: 1.15rem; color: var(--ink-muted); }
.ceo-salutation { font-weight: 500; color: var(--ink); }
.ceo-signature { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }

/* Mission / vision cards */
.mv-card {
    background: var(--navy-800);
    border: 1px solid rgba(232, 235, 245, 0.08);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
}
.mv-card h3 { font-size: 1.35rem; margin-bottom: 0.75rem; display: inline-block; }
.mv-card p { color: var(--text-muted); }

/* Skills matrix */
.skill-card {
    background: #fff;
    border: 1px solid rgba(27, 33, 54, 0.09);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    box-shadow: 0 6px 18px rgba(11, 16, 38, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.skill-card:hover { transform: translateY(-5px); box-shadow: 0 14px 32px rgba(11, 16, 38, 0.1); }

.skill-card h3 {
    font-size: 1.08rem;
    padding-bottom: 0.75rem;
    margin-bottom: 0.9rem;
    border-bottom: 2px solid transparent;
    border-image: var(--grad) 1;
    border-bottom-style: solid;
    border-bottom-width: 2px;
}

.skill-list { list-style: none; }

.skill-list li {
    font-size: 0.88rem;
    color: var(--ink-muted);
    padding: 0.28rem 0 0.28rem 1.4rem;
    position: relative;
}

.skill-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.78em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--grad);
}

/* Industries */
.industry-card {
    background: #fff;
    border: 1px solid rgba(27, 33, 54, 0.09);
    border-radius: var(--radius);
    padding: 1.6rem 1.4rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.industry-card:hover { transform: translateY(-5px); box-shadow: 0 14px 32px rgba(11, 16, 38, 0.1); }

.industry-card h3 { font-size: 1.02rem; margin: 0.9rem 0 0.6rem; }

.client-list { list-style: none; }

.client-list li {
    font-size: 0.82rem;
    color: var(--ink-muted);
    padding: 0.18rem 0;
}

/* ==========================================================================
   Responsive additions
   ========================================================================== */

@media (max-width: 1024px) {
    .cols-4 { grid-template-columns: repeat(2, 1fr); }
    .cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .split { grid-template-columns: 1fr; gap: 2.25rem; }
    .split-media img { aspect-ratio: 16 / 10; }
    .ceo-layout { grid-template-columns: 1fr; }
    .ceo-card { position: static; }
}

@media (max-width: 600px) {
    .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
    .hero { padding: 5rem 0 5.5rem; }
}

/* ==========================================================================
   Portfolio — website cards
   ========================================================================== */

.site-card {
    display: block;
    background: #fff;
    border: 1px solid rgba(27, 33, 54, 0.09);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(11, 16, 38, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    color: inherit;
}

.site-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(11, 16, 38, 0.14);
    color: inherit;
}

.site-chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.6rem 0.9rem;
    background: var(--navy-900);
}

.chrome-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(232, 235, 245, 0.25);
}

.chrome-url {
    margin-left: 0.5rem;
    flex: 1;
    background: var(--navy-700);
    border-radius: 6px;
    padding: 0.15rem 0.7rem;
    font-size: 0.74rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-body { padding: 1.4rem 1.4rem 1.5rem; }
.site-body h3 { font-size: 1.25rem; display: inline-block; margin-bottom: 0.4rem; }
.site-body p { font-size: 0.88rem; color: var(--ink-muted); margin-bottom: 0.9rem; }

.site-visit {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--violet);
}
.site-card:hover .site-visit { color: var(--cyan); }

/* ==========================================================================
   Portfolio — logo tiles
   ========================================================================== */

.logo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.logo-tile {
    background: var(--navy-800);
    border: 1px solid rgba(232, 235, 245, 0.08);
    border-radius: var(--radius);
    padding: 1.75rem 1rem 1.4rem;
    text-align: center;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.logo-tile:hover { transform: translateY(-6px); border-color: rgba(62, 198, 240, 0.45); }

.logo-mark {
    width: 76px;
    height: 76px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--grad);
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}

.logo-tile figcaption {
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

/* ==========================================================================
   Chips (portfolio branding, service features)
   ========================================================================== */

.chip-cloud {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

.chip {
    background: #fff;
    border: 1px solid rgba(90, 84, 201, 0.3);
    border-radius: 999px;
    padding: 0.4rem 1.1rem;
    font-size: 0.85rem;
    color: var(--ink-muted);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.chip:hover { border-color: var(--violet); color: var(--violet); }

/* ==========================================================================
   Services page
   ========================================================================== */

.service-row {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 3rem;
    align-items: start;
    padding: 3rem 0;
    border-bottom: 1px solid rgba(27, 33, 54, 0.08);
}

.service-row:first-child { padding-top: 0; }
.service-row:last-child { border-bottom: none; padding-bottom: 0; }

.service-row.reverse { grid-template-columns: 1fr 260px; }
.service-row.reverse .service-visual { order: 2; }

.service-visual {
    position: relative;
    background: var(--navy-900);
    border-radius: var(--radius);
    min-height: 200px;
    display: grid;
    place-items: center;
}

.service-icon {
    width: 84px;
    height: 84px;
    border-radius: 22px;
    background: var(--grad);
    color: #fff;
    display: grid;
    place-items: center;
}

.service-number {
    position: absolute;
    bottom: 0.6rem;
    right: 1rem;
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 700;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0.8;
}

.service-copy h2 { font-size: 1.6rem; margin-bottom: 0.4rem; }

.service-lead {
    font-size: 1.02rem;
    font-weight: 500;
    color: var(--violet);
    margin-bottom: 0.8rem;
}

.service-copy > p:not(.service-lead) { color: var(--ink-muted); margin-bottom: 1.2rem; }

.service-copy .chip-cloud { justify-content: flex-start; }

/* ==========================================================================
   Responsive — portfolio & services
   ========================================================================== */

@media (max-width: 1024px) {
    .logo-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
    .service-row, .service-row.reverse { grid-template-columns: 1fr; gap: 1.5rem; }
    .service-row.reverse .service-visual { order: 0; }
    .service-visual { min-height: 150px; }
}

@media (max-width: 600px) {
    .logo-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Blog — post cards
   ========================================================================== */

.post-card {
    background: #fff;
    border: 1px solid rgba(27, 33, 54, 0.09);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(11, 16, 38, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(11, 16, 38, 0.14);
}

.post-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.post-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-card:hover .post-media img { transform: scale(1.05); }

.post-category {
    position: absolute;
    top: 0.9rem;
    left: 0.9rem;
    background: var(--grad);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
}

.post-category.inline {
    position: static;
    display: inline-block;
    margin-right: 0.75rem;
}

.post-body {
    padding: 1.4rem 1.5rem 1.6rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-meta {
    font-size: 0.8rem;
    color: var(--ink-muted);
    margin-bottom: 0.5rem;
}

.post-title { font-size: 1.22rem; margin-bottom: 0.7rem; }
.post-title a { color: var(--ink); }
.post-title a:hover { color: var(--violet); }

.post-excerpt {
    font-size: 0.9rem;
    color: var(--ink-muted);
    margin-bottom: 1.1rem;
    flex: 1;
}

.post-readmore { font-size: 0.88rem; font-weight: 500; color: var(--violet); }
.post-readmore:hover { color: var(--cyan); }

/* Horizontal variant (More From the Blog) */
.post-card.horizontal { flex-direction: row; align-items: stretch; }
.post-card.horizontal .post-media { flex: 0 0 40%; aspect-ratio: auto; }
.post-card.horizontal .post-body { padding: 1.2rem 1.4rem; }
.post-card.horizontal .post-title { font-size: 1.05rem; }

/* ==========================================================================
   Blog — article page
   ========================================================================== */

.post-hero { text-align: left; }
.post-hero h1 { max-width: 820px; }

.post-hero-meta {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.article-container { max-width: 780px; }

.article-cover {
    border-radius: var(--radius);
    box-shadow: 0 18px 48px rgba(11, 16, 38, 0.18);
    margin-bottom: 2.5rem;
    aspect-ratio: 21 / 9;
    object-fit: cover;
    width: 100%;
}

.article-container h2 {
    font-size: 1.5rem;
    margin: 2.2rem 0 0.9rem;
}

.article-container > p {
    color: var(--ink-muted);
    margin-bottom: 1.15rem;
    font-size: 1.02rem;
}

.article-list {
    list-style: none;
    margin: 0 0 1.3rem;
}

.article-list li {
    position: relative;
    padding: 0.35rem 0 0.35rem 1.7rem;
    color: var(--ink-muted);
}

.article-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.85em;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--grad);
}

.article-footer {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(27, 33, 54, 0.09);
}

/* ==========================================================================
   Responsive — blog
   ========================================================================== */

@media (max-width: 600px) {
    .post-card.horizontal { flex-direction: column; }
    .post-card.horizontal .post-media { flex: none; aspect-ratio: 16 / 9; }
}

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-card {
    background: var(--navy-900);
    color: var(--text);
    border-radius: var(--radius);
    padding: 2.25rem 2rem;
}

.contact-card h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }

.contact-card-intro {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
}

.contact-list { list-style: none; }

.contact-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.contact-list a { color: var(--text); }
.contact-list a:hover { color: var(--cyan); }

.contact-list-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--grad);
    color: #fff;
    display: grid;
    place-items: center;
}

.contact-tagline {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(232, 235, 245, 0.12);
    font-style: italic;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Enquiry form */
.contact-form-wrap {
    background: #fff;
    border: 1px solid rgba(27, 33, 54, 0.09);
    border-radius: var(--radius);
    padding: 2.25rem 2rem;
    box-shadow: 0 6px 18px rgba(11, 16, 38, 0.05);
}

.flash-success {
    background: rgba(62, 198, 240, 0.12);
    border: 1px solid rgba(62, 198, 240, 0.5);
    color: #1b7fa8;
    border-radius: 10px;
    padding: 0.85rem 1.2rem;
    font-size: 0.92rem;
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-field { margin-bottom: 1.25rem; }

.form-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
    color: var(--ink);
}

.form-field input,
.form-field textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink);
    background: #f7f8fc;
    border: 1px solid rgba(27, 33, 54, 0.14);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: #a4abc2; }

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--violet);
    box-shadow: 0 0 0 3px rgba(90, 84, 201, 0.18);
}

.form-field textarea { resize: vertical; }

/* ==========================================================================
   Responsive — contact
   ========================================================================== */

@media (max-width: 860px) {
    .contact-layout { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* ==========================================================================
   DARK THEME — site-wide overrides
   Deep navy surfaces + logo-derived squircle pattern background.
   Appended last so these rules win the cascade over the light defaults.
   ========================================================================== */

:root {
    /* repoint "ink" (dark-on-light text) to light-on-dark equivalents */
    --ink: #e8ebf5;
    --ink-muted: #a7aecb;
    --card: #121a38;
    --card-border: rgba(232, 235, 245, 0.09);
    --card-border-hover: rgba(62, 198, 240, 0.45);
}

body {
    background-color: var(--navy-900);
    background-image: url("../img/pattern.svg");
    background-size: 360px 360px;
    color: var(--text);
}

/* ---- Header ---- */

.site-header {
    background: rgba(11, 16, 38, 0.88);
    border-bottom: 1px solid rgba(232, 235, 245, 0.08);
}

.brand-logo {
    height: 48px;
    padding: 0;
    background: none;
    border-radius: 0;
    /* lift the gradient mark slightly so the purple strokes read on navy */
    filter: brightness(1.35) saturate(1.1) drop-shadow(0 0 10px rgba(62, 198, 240, 0.25));
}

.footer-logo {
    background: none;
    padding: 0;
    border-radius: 0;
    filter: brightness(1.35) saturate(1.1) drop-shadow(0 0 10px rgba(62, 198, 240, 0.25));
}

.nav-link { color: var(--text); }
.nav-link:hover { color: var(--cyan); }
.nav-link.active { color: #fff; }

.nav-toggle span { background: var(--text); }

@media (max-width: 860px) {
    .site-nav {
        background: var(--navy-800);
        border-bottom: 1px solid rgba(232, 235, 245, 0.08);
    }
}

/* ---- Sections ---- */

.section-kicker { color: var(--cyan); }

.section-dark { background: transparent; }

.section-tint { background: rgba(232, 235, 245, 0.03); }

.page-hero,
.hero {
    border-bottom: 1px solid rgba(232, 235, 245, 0.06);
}

/* ---- Cards on dark ---- */

.value-card,
.mv-card,
.skill-card,
.industry-card,
.site-card,
.post-card,
.logo-tile,
.contact-form-wrap {
    background: var(--card);
    border: 1px solid var(--card-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.skill-card:hover,
.industry-card:hover,
.site-card:hover,
.post-card:hover,
.logo-tile:hover,
.value-card:hover {
    border-color: var(--card-border-hover);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}

.site-chrome { background: #060a1a; }
.chrome-url { background: rgba(232, 235, 245, 0.08); }

.post-title a { color: var(--text); }
.post-title a:hover { color: var(--cyan); }
.post-readmore { color: var(--cyan); }
.post-readmore:hover { color: #fff; }
.site-visit { color: var(--cyan); }

/* ---- Chips ---- */

.chip {
    background: rgba(232, 235, 245, 0.04);
    border-color: rgba(90, 84, 201, 0.45);
    color: var(--text-muted);
}
.chip:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---- Services page ---- */

.service-row { border-bottom-color: rgba(232, 235, 245, 0.08); }
.service-visual { border: 1px solid var(--card-border); }
.service-lead { color: var(--cyan); }

/* ---- About page ---- */

.ceo-card,
.contact-card { border: 1px solid var(--card-border); }

/* ---- Article pages ---- */

.article-footer { border-top-color: rgba(232, 235, 245, 0.1); }
.article-cover { box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45); }

/* ---- Contact form ---- */

.form-field input,
.form-field textarea {
    background: rgba(232, 235, 245, 0.05);
    border-color: rgba(232, 235, 245, 0.16);
    color: var(--text);
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(167, 174, 203, 0.55); }

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(62, 198, 240, 0.18);
}

.flash-success {
    background: rgba(62, 198, 240, 0.1);
    border-color: rgba(62, 198, 240, 0.45);
    color: #8fd8f5;
}

/* ---- Links ---- */

a { color: #8f8af0; }
a:hover { color: var(--cyan); }

/* ---- Footer ---- */

.site-footer {
    background: #080d20;
    border-top: 1px solid rgba(232, 235, 245, 0.07);
}

/* ==========================================================================
   BROCHURE LOOK — full-bleed dark imagery from the printed brochure
   Circuit-board hero (cover), server-room page heroes, neon CTA band.
   ========================================================================== */

.hero {
    background:
        linear-gradient(165deg, rgba(11, 16, 38, 0.93) 0%, rgba(11, 16, 38, 0.72) 45%, rgba(16, 12, 40, 0.88) 100%),
        radial-gradient(900px 500px at 85% 0%, rgba(62, 198, 240, 0.18), transparent 60%),
        url("../img/bg-circuit.jpg") center / cover no-repeat,
        var(--navy-900);
}

.page-hero {
    background:
        linear-gradient(170deg, rgba(11, 16, 38, 0.9) 0%, rgba(11, 16, 38, 0.82) 50%, rgba(16, 12, 40, 0.92) 100%),
        url("../img/bg-servers.jpg") center 30% / cover no-repeat,
        var(--navy-900);
}

.cta-band {
    background:
        linear-gradient(120deg, rgba(43, 150, 200, 0.88), rgba(74, 68, 180, 0.86) 55%, rgba(104, 48, 150, 0.9)),
        url("../img/bg-neon.jpg") center / cover no-repeat,
        var(--navy-900);
}

/* the split "who we are" photo is now the brochure's own night-team shot */
.split-media img { aspect-ratio: 3 / 2; }

/* ==========================================================================
   BROCHURE LOOK v2 — pattern removed, one brochure image per page hero
   ========================================================================== */

body { background-image: none; }

.hero-about {
    background:
        linear-gradient(170deg, rgba(11, 16, 38, 0.88) 0%, rgba(11, 16, 38, 0.78) 50%, rgba(16, 12, 40, 0.92) 100%),
        url("../img/bg-sparks.jpg") center / cover no-repeat,
        var(--navy-900);
}

.hero-services {
    background:
        linear-gradient(170deg, rgba(11, 16, 38, 0.88) 0%, rgba(11, 16, 38, 0.78) 50%, rgba(16, 12, 40, 0.92) 100%),
        url("../img/bg-chip.jpg") center 35% / cover no-repeat,
        var(--navy-900);
}

.hero-portfolio {
    background:
        linear-gradient(170deg, rgba(11, 16, 38, 0.96) 0%, rgba(11, 16, 38, 0.93) 50%, rgba(16, 12, 40, 0.97) 100%),
        url("../img/bg-hands.jpg") center 40% / cover no-repeat,
        var(--navy-900);
}

.hero-blog {
    background:
        linear-gradient(170deg, rgba(11, 16, 38, 0.88) 0%, rgba(11, 16, 38, 0.8) 50%, rgba(16, 12, 40, 0.92) 100%),
        url("../img/bg-dancer.jpg") center 30% / cover no-repeat,
        var(--navy-900);
}

.hero-contact {
    background:
        linear-gradient(170deg, rgba(11, 16, 38, 0.9) 0%, rgba(11, 16, 38, 0.82) 50%, rgba(16, 12, 40, 0.92) 100%),
        url("../img/bg-servers.jpg") center 30% / cover no-repeat,
        var(--navy-900);
}

/* ==========================================================================
   BROCHURE LOOK v3 — full-page background imagery
   The brochure image now covers the whole page (fixed layer behind content);
   heroes become transparent windows onto it.
   ========================================================================== */

/* fixed image layer behind everything */
body[class*="pg-"]::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: var(--navy-900);
}

body.pg-home::before {
    background-image:
        linear-gradient(165deg, rgba(11, 16, 38, 0.9) 0%, rgba(11, 16, 38, 0.82) 45%, rgba(16, 12, 40, 0.93) 100%),
        url("../img/bg-circuit.jpg");
}

body.pg-about::before {
    background-image:
        linear-gradient(165deg, rgba(11, 16, 38, 0.92) 0%, rgba(11, 16, 38, 0.86) 45%, rgba(16, 12, 40, 0.94) 100%),
        url("../img/bg-sparks.jpg");
}

body.pg-services::before {
    background-image:
        linear-gradient(165deg, rgba(11, 16, 38, 0.92) 0%, rgba(11, 16, 38, 0.87) 45%, rgba(16, 12, 40, 0.94) 100%),
        url("../img/bg-chip.jpg");
}

body.pg-portfolio::before {
    background-image:
        linear-gradient(165deg, rgba(11, 16, 38, 0.96) 0%, rgba(11, 16, 38, 0.94) 45%, rgba(16, 12, 40, 0.97) 100%),
        url("../img/bg-hands.jpg");
}

body.pg-blog::before {
    background-image:
        linear-gradient(165deg, rgba(11, 16, 38, 0.93) 0%, rgba(11, 16, 38, 0.88) 45%, rgba(16, 12, 40, 0.95) 100%),
        url("../img/bg-dancer.jpg");
}

body.pg-contact::before {
    background-image:
        linear-gradient(165deg, rgba(11, 16, 38, 0.93) 0%, rgba(11, 16, 38, 0.88) 45%, rgba(16, 12, 40, 0.95) 100%),
        url("../img/bg-servers.jpg");
}

/* heroes become transparent — the fixed layer shows through */
body[class*="pg-"] .hero,
body[class*="pg-"] .page-hero {
    background: transparent;
    border-bottom: 1px solid rgba(232, 235, 245, 0.07);
}

/* let the image breathe through the dark sections too */
body[class*="pg-"] .section-tint { background: rgba(6, 10, 26, 0.35); }

/* keep footer readable but slightly translucent over the image */
body[class*="pg-"] .site-footer { background: rgba(6, 9, 22, 0.92); }
